#contracts + .select2-container .select2-selection {
  height: 150px;
  overflow-y: auto;
}


#the-canvas {
  border: 1px solid black;
  direction: ltr;
}

@keyframes flicker{
  0% {opacity:1;}
  50% {opacity:0;}
  100% {opacity:1;}
}


.flicker{
  animation:flicker 1s infinite;
}

.cookie_statement_box {
  display: block        !important;
  margin-top: 5px      !important;
  margin-bottom: 30px   !important;
  padding: 15px         !important;
  text-align: center    !important;
  border-style: solid   !important;
  border-width: 1px     !important;
  border-color: #e0e0e0 !important;
}

.btn-primary {
  background-color: #045197 !important;
  border-radius: 20px;
  font-size: 16px;
}

.btn-success {
    border-color: #3c4b64     !important;
}

.js-cookie-consent {
  display: block;
  text-align: center;
  padding: 15px;
  background-color: #dfe5f5;
  font-size: 18px;
  border-top-style: solid;
  border-top-color: black;
  border-top-width: 1px;
}

.js-cookie-consent button{
  text-align: center;
  padding: 4px 12px;
  background-color: #faa237;
  font-size: 17px;
  font-weight: 500;
  border-style: solid;
  border-color: white;
  border-width: 2px;
  border-radius: 22px;
}


.dashboard-container{
  height:   100%;
  margin:auto 0;
  padding: 20px;
  background-color: white;

  vertical-align: top;
  border-radius: 10px;
}

.dashboard_header img{
  float: left;
  width: 70px;
  height: 70px;
}

.dashboard_header h1 {
  position: relative;
  top: 18px;
  float: right;
}

.row-flex {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}


#document_categories{
  padding:  5px;
  border-radius: 4px;
  border-color: lightgray;
  color:  #707070;
}

.dashboard-container h4{
  text-align: right;
}

.dashboard_container span{
  font-size: 17px;
  color: #575757     !important;

}

.dashboard-tile {
  display: block;
  line-height: 120px;
  padding: 25px 20px;
  text-align: center;
  background-color: #748299;
  color:  white;
  font-size: 24px;
  font-weight: 500;
  margin-top: 15px;
  margin-left: 10px;
  margin-right: 10px;
  min-height: 120px;
  border-radius: 20px;
  box-shadow: 3px 3px 7px #9da1a8;
  cursor: pointer;
}

.dashboard_doc_table, .messages_table {
  display: table;
  width:   100%;
}

.dashboard_doc_table td{
  padding: 4px 12px;
  font-size: 15px;
  border-width:  1px;
  border-style: solid;
  border-color: #ebebeb;
}

.dashboard_doc_table th{
  padding: 5px 12px 5px 12px;
  border-style: none;
  font-size: 17px;
  background-color: #ebebeb;
  border-width:  1px;
  border-style: solid;
  border-color: #ebebeb;
  color:   #666666;

}

#messageModal{
  z-index: 1100;
}


.messages_table td{
  padding: 4px 12px;
  font-size: 15px;
  border-width:  1px;
  border-style: solid;
  border-color: #ebebeb;
  vertical-align: top;
}

.messages_table th{
  padding: 5px 12px 5px 12px;
  border-style: none;
  font-size: 17px;
  background-color: #ebebeb;
  border-width:  1px;
  border-style: solid;
  border-color: #ebebeb;
  color:   #666666;

}

.dashboard-tile:hover {
  background-color: #66748c;
}

.page-link {
  background-color: #c5ccd6     !important;
  margin-left: 5px     !important;
  margin-top: 10px   !important;
  border-style: none       !important;
  font-weight:  400;
}

.previous a, .next a, .active a{
  font-weight:  400  !important;
  color: black      !important;
  font-size: 16px    !important;
}


.page-link:hover {
  background-color: #7c889c     !important;
  color:  white   !important;
}


.cust_top {
  padding-left: 30px;
  padding-right: 30px;
}


.header_3{
  color: #656b75;
  margin-left: 15px;
  margin-bottom: 10px;

}

.dz-size {
  margin-bottom: 0px     !important;
  padding-bottom: 2px    !important;
}


.dz-details span {
  background-color: transparent    !important;
  color:    #4d6782       !important;
}

.dz-remove {
  margin-top:  5px  !important;
}

.dz-preview.dz-file-preview .dz-image{
  background: linear-gradient(to bottom, #e3f1ff, #c7dcf0)   !important;
}


.dz-preview-link {
  background-color: #667e96;
  border-color: white;
  border-radius: 6px;
  border-style: solid;
  border: 10px;
  width: 70px;
  padding: 3px 0px 5px 0px;
  margin: 0 auto;
  margin-top: 12px;
  cursor: pointer     !important;
}

.dz-preview-link a{
  text-decoration: none;
  color:    white;
  font-weight: 400;
  cursor: pointer     !important;
}

/*  ------------ Declined Reasons ---------------*/

.reasons-dropdown-list {
  margin-bottom: 30px;

}

.reasons_table {
  display: table;
  width: 100%;
}

.reasons_table td{
  padding: 4px 12px;
  border-width:  1px;
  border-style: solid;
  border-color: #cccccc;
}

.reasons_table th{
  padding: 5px 12px 5px 12px;
  border-left-width:  1px;
  border-right-width:  1px;
  border-top-width:     2px;
  border-bottom-width:   2px;
  border-style: solid;
  border-color: #cccccc;
  color:   #666666;

}


#mySelect {
  padding:  5px;
  border-radius: 4px;
  border-color: lightgray;
  color:  #707070;
}

.add-reason-button {
  padding:  2px 8px;
  margin-top:  4px;
  margin-left:  10px;
  background-color: #8195b6 !important;
  border-radius: 22px;
  border-style: none !important;
  padding: 8px 20px !important;
  font-weight: 500 !important;
  color: white !important;
  font-size: 17px !important;

}


.custom-report-button {
  margin-left:  10px;
  adding:  2px 8px;
  background-color: #8195b6 !important;
  border-radius: 22px;
  border-style: none !important;
  padding: 4px 20px !important;
  font-weight: 500 !important;
  color: white !important;
  font-size: 16px !important;

}

.bg-info {
    background-color: #8195b6     !important;
}

.pointer{
  cursor: pointer;
}



/*  ------------ Matrix ---------------*/

.matrix_table {
  margin-left: 20px;
  margin-bottom: 30px;
}

.matrix_header {
  text-align: center;
  background-color: #4f6180;
  color: white;

}

.matrix_table h5{
  margin-bottom: 0  !important;
  padding: 8px 19px;
}

.matrix_table h4{
  margin-bottom: 0  !important;
  padding: 8px 20px;
}

.col_border {
    padding: 0px   !important;
    min-width: 0px  !important;
}

.matrix_table td{
    padding-left:  10px;
    padding-right: 10px;
    min-width: 70px;

}

.matrix_col2, .matrix_col3 {
  background-color: #e4eaf5;
  text-align: center;
  vertical-align: middle;
}

.matrix_col1 {
  background-color: #91a3b5;
  text-align: center;
  vertical-align: middle;
}

.line_item {
  color:  white;
  font-size: 16px   !important;
  padding-left: 30px  !important;
  padding-right: 30px  !important;
}

.matrix_vertical_headers {
  background-color: #c3ccdb;
  text-align: center;
  vertical-align: middle;

}

.matrix_vertical_headers p{
    color:  #4e5154;
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
}

.table_end_column{
    background-color: white;
}

.gray1 {
  background-color: #e4eaf5;

}

.gray2 {

}

.vertical_box {
  color:white;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 15px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  overflow: visible;

}

/* ------------ File Upload Fields ------------*/

.file_upload
{
  background-image: url('https://ffd-dev.co.za/images/upload.png');
  width:10%;
  height:auto;
  background-position:center;
  background-repeat: no-repeat;
  background-size:contain !important;
  margin-top:5px;
  margin-bottom:5px;
}


/*  ------------Buttons ---------------*/

.btn-success {
  background-color: #8195b6     !important;
  border-radius: 22px;
  border-style: none            !important;
  padding:  8px 20px            !important;
  font-weight: 500              !important;
  color: white                  !important;
  font-size:   17px     !important;

}

.btn-primary {
  background-color: #3d5b8e     !important;
  border-style: none            !important;
  padding:  8px 18px            !important;
  font-weight: 500              !important;
  color: white                !important;
  font-size:   16px     !important;
}

.btn-danger {
  background-color: #a0c2e8     !important;
  border-style: none            !important;
  padding:  8px 18px            !important;
  font-weight: 500              !important;
  color: #383e47                !important;
  font-size:   16px     !important;
}

.btn-info {
  padding:  4px 10px       !important;
  background-color: #d7e3f7     !important;
  color:      #515d70        !important;
  border-top-left-radius: 10px     !important;
  border-top-right-radius: 10px     !important;
  border-style: none     !important;
  font-weight: 600;
}


.badge-info {
  padding:  4px 10px       !important;
  background-color: #dae6f7     !important;
  color:      #515d70        !important;
  border-radius: 14px     !important;
  font-size:   13px     !important;
  border-style: none     !important;
  font-weight: 500;
  margin-bottom: 4px    !important;
  border-style: solid !important;
  border-width: 2px  !important;
  border-color: white  !important;

}

.active_button_yes, .active_button_no {
  display: block;
  float: left;
  padding: 3px 20px 3px 20px;
  margin-right: 12px;
  background-color: #8195b6;
  color: white;
  cursor: pointer;

  border-color: white;
  border-radius: 15px;
  border: 10px;

  font-size: 18px;
}


/*  ----------- Enrolment ---------------*/

.enrolment-table td, .enrolment-table th  {
  line-height: 20px      !important;
  padding: 4px 25px 4px 25px      !important;
  font-size: 16px      !important;


}

.enrolment-table label, .enrolment-table h5 {
  margin-bottom: 0px      !important;
}

.enrolment-table {
  margin-top: 15px;
  margin-bottom: 15px;
}










/* ------------------------------- */



.card-header{
    font-size: 22px    !important;
    font-weight: 500    !important;
    color: white        !important;
    background-color: #3c4b64     !important;
    padding-top: 5px             !important;
    padding-bottom: 5px          !important;
}


.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}


table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}



/*  ------------gridview buttons view, edit, delete ---------------*/

.buttonBox button {
  border:none !important;
  background-color: transparent;
}


.view-buttons
{
  width:100px;
  min-width:50px;
}

.view-buttons a{
  text-decoration: none   ;
}

.grid::before {
  border-width:0px;
  padding:0;
  background:none;
  border:none !important;
  font-size: large;
  padding-right:0.25em;
  -webkit-font-smoothing: antialiased;
}

.show::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #316ac4;
  content: "\f06e";
}

.edit::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #d6a25a;
  content: "\f044";
}

.delete::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #c43f65;
  content: "\f2ed";
}

.exit::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #f23427;
  content: "\f08b";
}


.book::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #60ba5d;
  content: "\f073";
}

.archived::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #f23427;
  content: "\f410";
}


/*  ------------Navigation Menu styling ---------------*/

.c-sidebar-brand {
  padding: 20px;
  background-color: #ccdaf0   !important;
  color:#005eff               !important;

}

.c-sidebar-brand-full {
  text-decoration: none       !important;

}



.c-sidebar-nav-link:hover, .c-sidebar-nav-dropdown-toggle:hover {
  color:#1b1f26               !important;
  background-color: #ccdaf0   !important;
}


/* ------------------------------------------------- */

.intervention-tilebox {
  display: block;
  background-color: #fffdf5;
  width: 100%;
  height: auto;
  border-style: solid;
  border-width: 1px;
  border-color: #d6d6d6;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top:  15px;

}


.set_top_margin {
  margin-top: 20px;
}

/* CUSTOM MODAL & ACCORION STYLES */
.custom-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top, adjust if needed to be above other elements */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

.custom-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  /* 10% from the top and centered horizontally */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Could be responsive or fixed width */
  max-width: 500px;
  /* Max width for larger screens */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 5px;
  /* Optional: adds rounded corners */
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0
  }

  to {
    top: 10%;
    opacity: 1
  }
}

.custom-modal-header {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  /* Adjust font size */
  color: #333;
  /* Default text color */
}

.custom-close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 10px;
}

.custom-close-button:hover,
.custom-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.custom-modal-body {
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Basic button styles (e.g., for the "Add New Comment" and modal "ok" buttons) */
.btn-default {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  display: inline-flex;
  /* To align icon and text */
  align-items: center;
  gap: 5px;
  /* Space between icon and text */
}

.btn-default:hover {
  background-color: #e0e0e0;
}

/* --- CUSTOM ACCORDION STYLES FOR EXISTING COMMENTS --- */
.custom-accordion-container {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  /* Important for rounded corners and border-collapse */
  margin-top: 10px;
  /* Adjust as needed */
  background-color: #fcfcfc;
}

.custom-accordion-item {
  border-bottom: 1px solid #eee;
  /* Separator between items */
}

.custom-accordion-item:last-child {
  border-bottom: none;
  /* No border for the last item */
}

.custom-accordion-header {
  display: flex;
  /* Aligns button and any potential icons */
  justify-content: space-between;
  /* Pushes content to ends */
  align-items: center;
  background-color: #f8f8f8;
  /* Light background for header */
}

.custom-accordion-button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  /* Keep this padding for internal spacing */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* REMOVE or adjust this fixed height property */
  /* height: 50px; */
  /* <-- REMOVE or set to min-height */
  min-height: 50px;
  /* Use min-height if you want a guaranteed minimum, but allow it to grow */
  font-size: 1em;
  color: #333;
}

.custom-accordion-button:hover {
  background-color: #f0f0f0;
}

.custom-accordion-button small div {
  display: block;
  /* Ensure divs are on new lines within button */
}

.custom-accordion-body {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  /* Separator from header */
  background-color: #ffffff;
  /* display: none; by default in HTML and managed by JS */
}

.comment-date {
  font-weight: bold;
  color: #333;
}

.comment-text {
  white-space: pre-wrap;
  /* Preserves whitespace */
  word-wrap: break-word;
  /* Wraps long words */
  font-size: 0.9em;
  color: #555;
}

/* Placeholder for no comments in the accordion container */
.custom-accordion-placeholder {
  padding: 15px;
  color: #888;
  text-align: center;
  background-color: #fefefe;
  border-radius: 4px;
}

/* --- New Comment Display Area (similar to create page) --- */
.new-comment-display {
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #f9f9f9;
  min-height: 50px;
  /* Ensure it has some height even if empty */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
  border-radius: 5px;
}