.accordion-button {
    user-select: text;
}

.copy-app-id-btn {
    cursor: pointer;
    opacity: 0.6;
    font-size: 0.85em;
    vertical-align: middle;
}
.copy-app-id-btn:hover {
    opacity: 1;
}

.docview {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border: 1px solid #aaa;
    /* Border color */
    border-radius: 10px;
    /* Border radius for rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    /* Box shadow */
}

.tile-shadow {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.fixed-bottom-right {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1030;
    /* Ensure it's above other content */
}


.nav-link:hover {
    text-decoration: underline;
}

.color1 {
    padding: 20px;
    background-color: lightgoldenrodyellow;
}

.maxwidth1 {
    max-width: 1000px;
    align-self: auto;
}

.navbar_color1 {
    background-color: #99bc2a;
}

body {
    overflow-x: hidden;
    /* Baseline text size for the admin UI. Inherited text picks this up;
       rem-based rules resolve against <html> and are unaffected. */
    font-size: 14px;
}

.navbar-expand-xl .navbar-nav .nav-link {
    font-size: 14px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}


.calls-card {
    /* background-color: #99bc2a; */
    background-image: linear-gradient(to bottom, #e6e6e6 0%, #fff 100%);
}

.calls-card:hover {
    /* background-color: #e6e6e6; */
    background-image: linear-gradient(to bottom, #e6e6e6 0%, #e6e6e6 100%);
}

.tabulator-menu {
    padding: 10px;
    background-color: #fdbe15;
}

#menu_group_applications_dropdown,
#menu_group_interview_dropdown,
#menu_group_stages_dropdown {
    min-width: 250px;
    width: max-content;
}

/* Add scroll to dropdown menus to prevent overflow */
.navbar .dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#menu_group_admin_dropdown {
    width: max-content;
}

.select1 {
    height: 2.5rem;
}

.tabulator-cell.small1 {
    font-size: 0.85rem;
}



.preview-image-container {
    text-align: center;
    margin-top: 20px;
}

.preview-toggle-image {
    max-height: 200px;
    /* Initial limited height */
    width: auto;
    transition: all 5s ease;
    /* Smooth transition */
    cursor: pointer;
}

.preview-input {
    font-family: monospace;
    font-size: 1.5rem;
}


#buttons button {
    width: 250px;
    white-space: nowrap;
    margin: 1%;
}

.inline-text {
    display: inline-block;
    white-space: nowrap;
}

.table-bordered{
    background-color: #e9e9e9;
}

.table-student-image-container { 
    overflow: hidden;
    position: relative;
}

.table-student-images {
    width: auto;
    height: 75px;
    transition: transform 0.3s ease;
}

.tabulator .tabulator-cell,.tabulator .tabulator-cell .btn {
    /* text-align: center; */
    padding: 2px 2px;
    line-height: 1.1; 
}

  #imagePreview {
    position: fixed;
    top: 80px;
    right: 10px;
    width: 280px;
    height: 200px;
    border: 1px solid #ccc;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    z-index: 999;
  }
  #imagePreview img {
    max-width: 100%;
    max-height: 100%;
  }

  #api-table .custom-checkbox, 
  #update-api-table .custom-checkbox,
  #application-table .custom-checkbox,
  #offerLetter-table .custom-checkbox,
  #publish-application-table .custom-checkbox,
  #disbursalAwardees .custom-checkbox,
  #onboardingTable .custom-checkbox {
    transform: scale(1.4);
  }
  
  .large-checkbox{
    transform: scale(1.5);
  }
 


.menu-hover:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;  
  } 
  .dropdown-menu {
    transition: opacity 0.1s, visibility 0.1s;
  }
  .menu-hover .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
  }
  .menu-hover:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

.menu-hover .dropdown-menu-end{
    right: 0 !important;
    left: auto !important;
}

@media (max-width: 991.98px) { 
    .menu-hover .dropdown-menu {
        display: none !important;  
        opacity: 1;
        visibility: visible;
    }
}

.duplicate-statustext-negative {
    background-color: darkred;
    color: white;
}


.duplicate-student-holder {
    width: 500px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid gray;
}

.duplicate-student-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
}


.selected-photo-row {
    background-color: #d1e7dd !important; 
    border: 1px solid rgb(161, 160, 160);
}

.toastui-editor-md-container pre, 
.toastui-editor-md-container code, 
.toastui-editor-md-container .toastui-editor-md-preview,
.toastui-editor-md-container .ProseMirror {
  font-size: 20px !important;
}

.toastui-editor-contents {
  font-size: 20px !important;
}


.select2-dropdown {
    max-height: 400px !important;  
}
 
.select2-results__options {
    max-height: 350px !important;  
    overflow-y: auto !important;
}

.application-details-docs {
    height: 249px; 
  }
   
  @media (min-width: 768px) {
    .application-details-docs {
      height: 438px; 
    }
  }

  .announcement-card {
    height: 55vh;
    overflow-y: auto;
  }

  #nprogress .bar {
  height: 6px !important;  
  background:#004ec4
}

/* Profile Fields Table Styles */
.profile-fields-checkbox-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* gap: 5px; */
}

.profile-fields-option-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2px;
}
.profile-fields-checkbox{
    transform: scale(1.2);
}
 
.profile-fields-badge {
    font-size: 0.75em;
    padding: 0.1em 0.6em;
    border-radius: 0.25rem;
    font-weight: 500;
    
}

.profile-fields-badge-hidden {
    background-color: #6c757d;
    color: white;
}

.profile-fields-badge-optional {
    background-color: #ffc107;
    color: #212529;
}

.profile-fields-badge-mandatory {
    background-color: #198754;
    color: white;
}

.tabulator-cell input[type="checkbox"],
.tabulator-header input[type="checkbox"]
  {
  transform: scale(1.3) !important;
  cursor: pointer; 
}
 
.tabulator{
 height: 400px !important;
 background-color: #f8f9fa !important; 
}

 /* Calendar View Styles  */
      .interview-calendar-header-cell, .interview-calendar-time-cell {
        font-weight: bold;
        padding: 10px;
        text-align: center;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
      }
      
      .interview-calendar-slot-cell {
        min-height: 120px;
        border: 1px solid #dee2e6;
        padding: 10px;
      }
      
      .interview-slot-content {
        text-align: center;
      }
      
      .interview-slot-header {
        font-weight: bold;
        margin-bottom: 5px;
      }
      
      .interview-calendar-row {
        margin-bottom: 0;
      }
      
      .interview-view-toggle-btn.active {
        background-color: #0d6efd;
        color: white;
      }
      
      /* Custom styles for slot cells based on status */
      .interview-slot-empty {
        background-color: rgba(25, 135, 84, 0.2) !important;
      }
      
      .interview-slot-partial {
        background-color: rgba(255, 193, 7, 0.2) !important;
      }
      
      .interview-slot-full {
        background-color: rgba(220, 53, 69, 0.2) !important;
      }

 .select2-dropdown-above {
      z-index: 9999 !important;
    }

      .nav-pills .nav-item .nav-link{
        border: 1px solid black
      }
     .nav-pills .nav-link:not(.active):hover {
      text-decoration: none;
        background-color: rgb(241, 241, 241); 
      }
      .nav-pills .nav-link.active {
        text-decoration: none;
        background-color: rgb(171, 206, 250);
      }

/* Funnel step styling */
.funnel-step {
  padding: 10px 15px;
  margin: 5px auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Funnel-specific width classes*/
div.funnel-step.w-100 { width: 100% !important; }
div.funnel-step.w-95  { width: 95% !important; }
div.funnel-step.w-90  { width: 90% !important; }
div.funnel-step.w-85  { width: 85% !important; }
div.funnel-step.w-80  { width: 80% !important; }
div.funnel-step.w-75  { width: 75% !important; }
div.funnel-step.w-70  { width: 70% !important; }
div.funnel-step.w-65  { width: 65% !important; }
div.funnel-step.w-62  { width: 62% !important; }
div.funnel-step.w-60  { width: 60% !important; }
div.funnel-step.w-58  { width: 58% !important; }
div.funnel-step.w-57  { width: 57% !important; }
div.funnel-step.w-55  { width: 55% !important; }
div.funnel-step.w-54  { width: 54% !important; }
div.funnel-step.w-51  { width: 51% !important; }
div.funnel-step.w-50  { width: 50% !important; }
div.funnel-step.w-48  { width: 48% !important; }
div.funnel-step.w-45  { width: 45% !important; }
div.funnel-step.w-44  { width: 44% !important; }
div.funnel-step.w-42  { width: 42% !important; }
div.funnel-step.w-40  { width: 40% !important; }
div.funnel-step.w-39  { width: 39% !important; }
div.funnel-step.w-37  { width: 37% !important; }
div.funnel-step.w-35  { width: 35% !important; }
div.funnel-step.w-32  { width: 32% !important; }
div.funnel-step.w-30  { width: 30% !important; }

/* Funnel step background colors - a gradient from cool to warm colors */
.funnel-bg-1 {
  background-color: #e3f2fd; /* Light Blue */
  border-left: 4px solid #2196F3;
}

.funnel-bg-2 {
  background-color: #e8f5e9; /* Light Green */
  border-left: 4px solid #4CAF50;
}

.funnel-bg-3 {
  background-color: #f3e5f5; /* Light Purple */
  border-left: 4px solid #9C27B0;
}

.funnel-bg-4 {
  background-color: #e0f7fa; /* Light Cyan */
  border-left: 4px solid #00BCD4;
}

.funnel-bg-5 {
  background-color: #fff8e1; /* Light Amber */
  border-left: 4px solid #FFC107;
}

.funnel-bg-6 {
  background-color: #f1f8e9; /* Light Light Green */
  border-left: 4px solid #8BC34A;
}

.funnel-bg-7 {
  background-color: #e8eaf6; /* Light Indigo */
  border-left: 4px solid #3F51B5;
}

.funnel-bg-8 {
  background-color: #fce4ec; /* Light Pink */
  border-left: 4px solid #E91E63;
}

.funnel-bg-9 {
  background-color: #fffde7; /* Light Yellow */
  border-left: 4px solid #FFEB3B;
}

.funnel-bg-10 {
  background-color: #efebe9; /* Light Brown */
  border-left: 4px solid #795548;
}

.funnel-bg-11 {
  background-color: #ffebee; /* Light Red */
  border-left: 4px solid #F44336;
}

.funnel-bg-12 {
 background-color: #fff3e0; /* Light Orange - for final "Awardee" step */
  border-left: 4px solid #FF9800;
}

.funnel-bg-13 {
  background-color: #e1f5fe; /* Light Blue */
  border-left: 4px solid #03A9F4;
}

.funnel-bg-14 {
  background-color: #f9fbe7; /* Light Lime */
  border-left: 4px solid #CDDC39;
}

.funnel-bg-15 {
  background-color: #e0f2f1; /* Light Teal */
  border-left: 4px solid #009688;
}

.funnel-bg-16 {
  background-color: #fce4ec; /* Light Pink */
  border-left: 4px solid #E91E63;
}

.funnel-bg-17 {
  background-color: #e1bee7; /* Light Purple */
  border-left: 4px solid #9C27B0;
}

.funnel-bg-18 {
  background-color: #fff9c4; /* Light Yellow */
  border-left: 4px solid #FDD835;
}

.funnel-bg-19 {
  background-color: #d1c4e9; /* Light Deep Purple */
  border-left: 4px solid #673AB7;
}

.funnel-bg-20 {
  background-color: #c5cae9; /* Light Indigo */
  border-left: 4px solid #5C6BC0;
}

.funnel-bg-21 {
  background-color: #b2dfdb; /* Light Teal */
  border-left: 4px solid #26A69A;
}

.funnel-bg-22 {
  background-color: lightgreen; /* Light Green - for final "Awardee" step */
  border-left: 4px solid green;
}

/* Hover effect for better user interaction */
.funnel-step:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#scrollToTop {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 99;
        border: none;
        outline: none;
        background-color: #0d6efd;
        color: white;
        cursor: pointer;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }
      
      #scrollToTop:hover {
        background-color: #0b5ed7;
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
      }

#content,
#update_content {
  font-family: 'Courier New', Courier, monospace;
}

.app-id-item {
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.app-id-item:hover {
  background-color: #bbd7ff; /* light blue background on hover */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); /* subtle glow */
}

/* Image Zoom Controls */
.document-zoom-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  max-height: 600px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.document-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.zoom-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.zoom-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.zoom-btn:disabled {
  background-color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.zoomable-image {
  transition: transform 0.2s ease;
  cursor: grab;
  display: block;
  max-width: none;
}

.zoomable-image:active {
  cursor: grabbing;
}


#columnCustomizerModal.modal,
#docsReviewColumnCustomizerModal.modal,
#docsIncompleteColumnCustomizerModal.modal,
#interviewScheduleColumnCustomizerModal.modal,
#interviewColumnCustomizerModal.modal,
#offerLetterColumnCustomizerModal.modal,
#publishColumnCustomizerModal.modal,
#partnerStudentsColumnCustomizerModal.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

#columnCustomizerModal .modal-content,
#docsReviewColumnCustomizerModal .modal-content,
#docsIncompleteColumnCustomizerModal .modal-content,
#interviewScheduleColumnCustomizerModal .modal-content,
#interviewColumnCustomizerModal .modal-content,
#offerLetterColumnCustomizerModal .modal-content,
#publishColumnCustomizerModal .modal-content,
#partnerStudentsColumnCustomizerModal .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 5px;
}

#columnCustomizerModal .modal-header,
#docsReviewColumnCustomizerModal .modal-header,
#docsIncompleteColumnCustomizerModal .modal-header,
#interviewScheduleColumnCustomizerModal .modal-header,
#interviewColumnCustomizerModal .modal-header,
#offerLetterColumnCustomizerModal .modal-header,
#publishColumnCustomizerModal .modal-header,
#partnerStudentsColumnCustomizerModal .modal-header {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#columnCustomizerModal .modal-body,
#docsReviewColumnCustomizerModal .modal-body,
#docsIncompleteColumnCustomizerModal .modal-body,
#interviewScheduleColumnCustomizerModal .modal-body,
#interviewColumnCustomizerModal .modal-body,
#offerLetterColumnCustomizerModal .modal-body,
#publishColumnCustomizerModal .modal-body,
#partnerStudentsColumnCustomizerModal .modal-body {
  padding: 20px;
}

#columnCustomizerModal .modal-footer,
#docsReviewColumnCustomizerModal .modal-footer,
#docsIncompleteColumnCustomizerModal .modal-footer,
#interviewScheduleColumnCustomizerModal .modal-footer,
#interviewColumnCustomizerModal .modal-footer,
#offerLetterColumnCustomizerModal .modal-footer,
#publishColumnCustomizerModal .modal-footer,
#partnerStudentsColumnCustomizerModal .modal-footer {
  padding: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#columnCustomizerModal .close,
#docsReviewColumnCustomizerModal .close,
#docsIncompleteColumnCustomizerModal .close,
#interviewScheduleColumnCustomizerModal .close,
#interviewColumnCustomizerModal .close,
#offerLetterColumnCustomizerModal .close,
#publishColumnCustomizerModal .close,
#partnerStudentsColumnCustomizerModal .close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#columnCustomizerModal .close:hover,
#docsReviewColumnCustomizerModal .close:hover,
#docsIncompleteColumnCustomizerModal .close:hover,
#interviewScheduleColumnCustomizerModal .close:hover,
#interviewColumnCustomizerModal .close:hover,
#offerLetterColumnCustomizerModal .close:hover,
#publishColumnCustomizerModal .close:hover,
#partnerStudentsColumnCustomizerModal .close:hover {
  color: black;
}

#columnList,
#docsReviewColumnList,
#docsIncompleteColumnList,
#interviewScheduleColumnList,
#interviewColumnList,
#offerLetterColumnList,
#publishColumnList,
#partnerStudentsColumnList {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

#columnList .column-item,
#docsReviewColumnList .column-item,
#docsIncompleteColumnList .column-item,
#docsReuploadedColumnList .column-item,
#interviewScheduleColumnList .column-item,
#interviewColumnList .column-item,
#offerLetterColumnList .column-item,
#publishColumnList .column-item,
#negativeStatusColumnList .column-item,
#partnerStudentsColumnList .column-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  background: white;
  cursor: move;
}

#columnList .column-item:hover,
#docsReviewColumnList .column-item:hover,
#docsIncompleteColumnList .column-item:hover,
#docsReuploadedColumnList .column-item:hover,
#interviewScheduleColumnList .column-item:hover,
#interviewColumnList .column-item:hover,
#offerLetterColumnList .column-item:hover,
#publishColumnList .column-item:hover,
#negativeStatusColumnList .column-item:hover,
#partnerStudentsColumnList .column-item:hover {
  background: #f5f5f5;
}

#columnList .drag-handle,
#docsReviewColumnList .drag-handle,
#docsIncompleteColumnList .drag-handle,
#docsReuploadedColumnList .drag-handle,
#interviewScheduleColumnList .drag-handle,
#interviewColumnList .drag-handle,
#offerLetterColumnList .drag-handle,
#publishColumnList .drag-handle,
#negativeStatusColumnList .drag-handle,
#partnerStudentsColumnList .drag-handle {
  margin-right: 10px;
  color: #999;
  cursor: grab;
}

#columnList .column-item input[type="checkbox"],
#docsReviewColumnList .column-item input[type="checkbox"],
#docsIncompleteColumnList .column-item input[type="checkbox"],
#docsReuploadedColumnList .column-item input[type="checkbox"],
#interviewScheduleColumnList .column-item input[type="checkbox"],
#interviewColumnList .column-item input[type="checkbox"],
#offerLetterColumnList .column-item input[type="checkbox"],
#publishColumnList .column-item input[type="checkbox"],
#negativeStatusColumnList .column-item input[type="checkbox"],
#partnerStudentsColumnList .column-item input[type="checkbox"] {
  margin-right: 10px;
}

#columnList .column-item label,
#docsReviewColumnList .column-item label,
#docsIncompleteColumnList .column-item label,
#docsReuploadedColumnList .column-item label,
#interviewScheduleColumnList .column-item label,
#interviewColumnList .column-item label,
#offerLetterColumnList .column-item label,
#publishColumnList .column-item label,
#negativeStatusColumnList .column-item label,
#partnerStudentsColumnList .column-item label {
  flex: 1;
  margin: 0;
  cursor: pointer;
}

#average-score {
  font-size: 3rem;
}

.menu-title {
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: bold;
}

/* --- NAVBAR PAGE SEARCH (search-as-you-type over visible menu pages) --- */

.nav-search-wrap {
  width: 220px;
}

#nav-search-input {
  background-color: #f8fafc;
}

#nav-search-results.dropdown-menu {
  min-width: 320px;
  max-width: 420px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.25rem 0;
}

#nav-search-results .nav-search-group {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 700;
}

#nav-search-results .nav-search-item {
  display: block;
  padding: 0.4rem 0.75rem;
  margin: 0 0.25rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

#nav-search-results .nav-search-item:hover,
#nav-search-results .nav-search-item.active {
  background-color: #e9ecef;
}

#nav-search-results .nav-search-empty {
  padding: 0.75rem;
  color: #6c757d;
  font-style: italic;
}

@media (max-width: 991.98px) {
  .nav-search-wrap {
    width: 100%;
    margin: 0.25rem 0;
  }

  #nav-search-results.dropdown-menu {
    min-width: 100%;
    max-width: 100%;
  }
}


/* --- USER PROFILE STYLES (ADDITIVE ONLY) --- */

.usp-custom-profile-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #b0d366 !important;
    letter-spacing: 5px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin-bottom: 40px !important;
    position: relative;
    display: block;
}

.usp-custom-profile-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #99bc2a !important;
    border-radius: 2px;
}

.usp-profile-card {
    background: #fcfcfd !important;
    border-radius: 12px !important;
    padding: 30px !important;
    border-top: 5px solid #99bc2a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.usp-profile-label {
    color: #99bc2a !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 5px !important;
}

.usp-badge-item {
    background-color: #f8f9fa !important;
    color: #666 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50px !important;
    padding: 5px 15px !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    display: inline-block;
    margin: 3px;
}

.usp-api-scroller {
    max-height: 250px !important;
    overflow-y: auto !important;
    background: rgba(248, 250, 252, 0.7) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

.usp-body-profile {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    background-attachment: fixed;
}

.word-wrap-cell {
  white-space: normal !important;
  word-wrap: break-word;
}

#student-table {
    height: 70vh !important;
    min-height: 600px !important;
}

#student-table .tabulator {
    height: 100% !important;
}

.form-label {
    margin-bottom: 2px;
}
.selected-photo-row {
  background-color: #ffcc80 !important;
}

.selected-photo-row:hover {
  background-color: #ffb74d !important;
}

/* Rows stay visible but dimmed while a refresh is in flight */
.rows-refreshing {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

#profileFieldsTable.tabulator,
#questionsTable.tabulator {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-size: 0.9rem;
  height: 500px !important;
}

#profileFieldsTable .tabulator-header,
#questionsTable .tabulator-header {
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
#profileFieldsTable .tabulator-header .tabulator-col,
#questionsTable .tabulator-header .tabulator-col {
  background: transparent;
  border-right: none;
}
#profileFieldsTable .tabulator-header .tabulator-col .tabulator-col-title,
#questionsTable .tabulator-header .tabulator-col .tabulator-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  white-space: normal;
}

#profileFieldsTable .tabulator-row,
#questionsTable .tabulator-row {
  border-bottom: 1px solid #eef1f5;
  min-height: 32px;
}
#profileFieldsTable .tabulator-row .tabulator-cell,
#questionsTable .tabulator-row .tabulator-cell {
  border-right: none;
  padding: 4px 12px;
}
#profileFieldsTable .tabulator-row.tabulator-row-even,
#questionsTable .tabulator-row.tabulator-row-even {
  background: #eef2f7;
}
#profileFieldsTable .tabulator-row:hover,
#questionsTable .tabulator-row:hover {
  background: #e2e9f3 !important;
}

#questionsTable .tabulator-cell[tabulator-field="question"] {
  white-space: normal;
  line-height: 1.35;
  color: #1f2937;
}

#profileFieldsTable .tabulator-cell[tabulator-field="choices_v2"],
#questionsTable .tabulator-cell[tabulator-field="choices_v2"] {
  white-space: normal;
  overflow: visible;
  padding-top: 5px;
  padding-bottom: 5px;
}
.v2-choice-csv {
  line-height: 1.35;
  font-size: 0.8rem;
  color: #3b4a6b;
  white-space: normal;
  overflow-wrap: anywhere;
}


#document-table.tabulator {
  height: 650px !important;
}
#document-table .tabulator-header .tabulator-col-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
}
#document-table .tabulator-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profileFieldsTable .tabulator-row .tabulator-row-handle,
#questionsTable .tabulator-row .tabulator-row-handle {
  color: #cbd5e1;
}

.tabulator .tabulator-cell.v2-col {
  color: #334155;
}
#profileFieldsTable .tabulator-cell[tabulator-field="parent_v2"],
#profileFieldsTable .tabulator-cell[tabulator-field="qtype_v2"] {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.tabulator .tabulator-cell.v2-col.tabulator-editable {
  cursor: text;
}
.tabulator .tabulator-cell.v2-col.tabulator-editable:hover {
  background: #f8fafc;
  box-shadow: inset 2px 0 0 #94a3b8;
}

#profileFieldsTable .tabulator-header .tabulator-col.v2-col,
#questionsTable .tabulator-header .tabulator-col.v2-col {
  box-shadow: inset 0 -2px 0 #cbd5e1;
}

.qtype-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.qtype-cell > *:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.qtype-chevron {
  color: #000;
  font-size: 0.75em;
  flex-shrink: 0;
}

.v2-muted {
  color: #9aa5b1;
  font-style: italic;
  font-size: 0.85em;
}

#profileFieldsTable .tabulator-row.tabulator-selected {
  background: #f0fdf4 !important;
  box-shadow: inset 3px 0 0 #22c55e;
}
#profileFieldsTable .tabulator-row.tabulator-selected:hover {
  background: #e7fbee !important;
}

/* Merged application-form table: distinguish profile fields from questions */
#profileFieldsTable .tabulator-cell[tabulator-field="field_name"],
#profileFieldsTable .tabulator-cell[tabulator-field="title_v2"] {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.af-name-question {
  color: #1f2937;
}
.af-name-profile {
  color: #334155;
  font-weight: 500;
}
.af-subheading-readonly {
  color: #334155;
  display: block;
  white-space: nowrap;
}

.sub-heading-order-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sub-heading-order-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease,
              transform 0.15s ease;
}
.sub-heading-order-list.sub-heading-order-dragging .sub-heading-order-item:not(.dragging) {
  transition: transform 0.15s ease;
}
.sub-heading-order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: #3b5bdb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
.sub-heading-order-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.sub-heading-order-item.dragging {
  position: absolute;
  z-index: 20;
  margin: 0;
  cursor: grabbing;
  border-color: #94a3b8;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: none;
  pointer-events: none;
}
.sub-heading-order-handle {
  color: #cbd5e1;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.sub-heading-order-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
}
.table-filter-bar {
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}
.table-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.table-filter-btn {
  color: #1e293b !important;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
}
.table-filter-btn:hover {
  color: #0f172a !important;
  background-color: #e2e8f0;
  border-color: #94a3b8;
}
.table-filter-btn:focus,
.table-filter-btn:focus-visible {
  color: #0f172a !important;
  box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.4);
  outline: none;
}
.table-filter-btn.active {
  color: #0f172a !important;
  background-color: #cbd5e1;
  border-color: #64748b;
  font-weight: 600;
}
.table-filter-btn.active:hover {
  background-color: #b8c4d4;
}
.table-filter-count {
  font-size: 0.8rem;
  color: #334155;
}

/* WhatsApp template preview (whatsapp-templates.html) */
.wa-preview-screen {
  background-color: #e5ddd5;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
}
/* The body textarea and the preview screen sit in sibling flex columns; a shared
   height plus a shared toolbar height keeps their tops and bottoms aligned. */
.wa-pane-toolbar {
  min-height: 59px;
  margin-bottom: 8px;
}
.wa-pane-content {
  height: 440px;
  resize: none;
}
.wa-preview-bubble {
  background-color: #ffffff;
  border-radius: 8px;
  border-top-left-radius: 0;
  padding: 8px 10px 6px;
  max-width: 88%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  color: #111b21;
}
.wa-preview-header {
  margin-bottom: 4px;
}
.wa-preview-header:empty,
.wa-preview-footer:empty,
.wa-preview-media:empty {
  display: none;
}
/* Body text comes from a textarea, so newlines must survive into the rendered preview. */
.wa-preview-body {
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-preview-body:empty::before {
  content: "Your message preview will appear here.";
  color: #667781;
  font-style: italic;
}
.wa-preview-footer {
  color: #667781;
  font-size: 0.78rem;
  margin-top: 4px;
}
.wa-preview-time {
  color: #667781;
  font-size: 0.68rem;
  text-align: right;
  margin-top: 2px;
}
.wa-preview-media {
  background-color: #ccd0d5;
  color: #3b4a54;
  border-radius: 6px;
  padding: 24px 8px;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.wa-preview-media.has-image {
  background-color: transparent;
  padding: 0;
}
.wa-preview-media img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.wa-preview-btn {
  background-color: #ffffff;
  color: #00a5f4;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.88rem;
  max-width: 88%;
  margin-top: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  word-break: break-word;
}

/* The global .tabulator height cap above applies to every table; these two pages page server-side
   at up to 1000 rows, so they need the taller viewport. */
#campaign-messages-table.tabulator,
#campaigns-table.tabulator {
  height: 700px !important;
}

/* ---- Multilingual application form ---- */

.ml-accordion-toggle {
  border: 0;
  background: none;
}
.ml-accordion-chevron {
  transition: transform 0.15s ease;
  display: inline-block;
  transform: rotate(0deg);
}
.ml-accordion-toggle[aria-expanded="true"] .ml-accordion-chevron {
  transform: rotate(90deg);
}

.ml-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}
.ml-lang-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  line-height: 1.25;
  min-width: 0;
}
.ml-lang-chip:hover {
  border-color: #c4b5fd;
  background: #faf9ff;
}
.ml-lang-chip-on {
  border-color: #a78bfa;
  background: #f5f3ff;
}
.ml-lang-chip-cb {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #7c3aed;
  cursor: pointer;
}
.ml-lang-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ml-lang-chip-del {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: none;
  color: #94a3b8;
  padding: 0 2px;
  line-height: 1;
}
.ml-lang-chip-del:hover {
  color: #dc2626;
}
.ml-lang-native {
  font-weight: 600;
  color: #1e293b;
  margin-right: 5px;
}
.ml-lang-meta {
  font-size: 0.78rem;
  color: #64748b;
}
.ml-custom-lang {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fcfcfd;
}
.ml-custom-name { max-width: 190px; }
.ml-custom-code { max-width: 110px; }
.ml-lang-status {
  font-size: 0.82rem;
}

.tabulator .tabulator-cell.ml-col {
  background: #fcfbff;
}
.tabulator .tabulator-cell.ml-col.tabulator-editable:hover {
  background: #f3f0ff;
  box-shadow: inset 2px 0 0 #8b5cf6;
}
#profileFieldsTable .tabulator-header .tabulator-col.ml-col,
#documentsTable .tabulator-header .tabulator-col.ml-col {
  background: #f5f3ff;
  box-shadow: inset 0 -2px 0 #a78bfa;
}
#profileFieldsTable .tabulator-header .tabulator-col.ml-col small,
#documentsTable .tabulator-header .tabulator-col.ml-col small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: #6d28d9;
}

#documentsTable .tabulator-row.tabulator-selected {
  background-color: #fff;
}
#documentsTable .tabulator-row.tabulator-selected.tabulator-row-even {
  background-color: #e9ecef;
}
#documentsTable .tabulator-row.tabulator-selected:hover {
  background-color: #ced4da;
}

.tabulator .tabulator-cell.tabulator-editable:not(.tabulator-editing) {
  cursor: text;
}

.tabulator .tabulator-cell.override-col {
  background: #fffdf7;
}
.tabulator .tabulator-cell.override-col.tabulator-editable:hover {
  background: #fef6e7;
  box-shadow: inset 2px 0 0 #f59e0b;
}
#documentsTable .tabulator-header .tabulator-col.override-col {
  background: #fef9ec;
  box-shadow: inset 0 -2px 0 #fbbf24;
}

.tabulator-tooltip {
  background: #212529 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  font-size: 0.8rem !important;
  line-height: 1.35;
  padding: 6px 9px !important;
}

/* ---- Compact table rows ----
   The bootstrap5 theme floors every row at min-height 40px while the cell
   content only needs ~22px, leaving dead space under each row. Drop the floor
   and let padding set the height, so rows stay compact but variable-height and
   wrapping cells can still grow past it. */
.tabulator .tabulator-row {
  min-height: 0;
}
.tabulator .tabulator-row .tabulator-cell {
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1.4;
}

/* ---- Compact filter panels ----
   Section headings sit directly above their controls instead of each taking a
   full-width row with its own bottom border. */
.filters-accordion .accordion-body {
  padding: 10px 12px;
}
.filters-accordion .accordion-body > .row {
  margin-bottom: 8px !important;
}
.filters-accordion .accordion-body > .row:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Top-align so the other controls stay put when a multi-select grows tall. */
.filters-accordion .filter-row {
  align-items: flex-start;
  row-gap: 6px;
}
.filters-accordion .filter-row > .col-12 {
  margin-bottom: 2px;
}
.filters-accordion .filter-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.filters-accordion .btn {
  padding: 0.25rem 0.6rem;
}

.application-card {
  cursor: pointer;
}

/* Follows the pointer, so it must never sit under it and eat the hover. */
.cursor-tooltip {
  display: none;
  position: fixed;
  z-index: 1080;
  pointer-events: none;
  background-color: #000;
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* Bulk QID Answers page */
#answers-table.tabulator { height: 600px !important; }
.bulk-qid-page .stats-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.bulk-qid-page .stat-item { background: #f8f9fa; padding: 0.6rem 1.25rem; border-radius: 0.375rem; min-width: 125px; text-align: center; }
.bulk-qid-page .stat-item .stat-value { font-size: 1.6rem; font-weight: bold; line-height: 1.2; }
.bulk-qid-page .stat-item .stat-label { font-size: 0.95rem; }
.bulk-qid-page .stat-applications .stat-value { color: #007bff; }
.bulk-qid-page .stat-questions .stat-value { color: #28a745; }
.bulk-qid-page .stat-answered .stat-value { color: #ffc107; }
.bulk-qid-page .stat-rules .stat-value { color: #6f42c1; }
.bulk-qid-page .answer-cell { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; }
.bulk-qid-page #answers-table .tabulator-cell { white-space: normal !important; text-overflow: clip; padding: 4px 6px !important; vertical-align: top; }
.bulk-qid-page #answers-table .tabulator-col .tabulator-col-title { white-space: normal !important; text-overflow: clip; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }
.bulk-qid-page #answers-table .tabulator-col .tabulator-col-content { padding: 4px 6px; }
.bulk-qid-page .question-legend td { vertical-align: top; font-size: 0.85rem; }
.bulk-qid-page .questions-checklist { max-height: 320px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 0.375rem; padding: 0.5rem 0.75rem; }
.bulk-qid-page .questions-checklist .q-category { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: #6c757d; margin: 0.6rem 0 0.25rem; }
.bulk-qid-page .questions-checklist .q-category:first-child { margin-top: 0; }
.bulk-qid-page .questions-checklist .q-item { display: flex; align-items: flex-start; padding: 0.2rem 0; }
.bulk-qid-page .questions-checklist .q-item .q-checkbox { flex: 0 0 auto; margin-top: 0.3rem; margin-left: 0.25rem; cursor: pointer; }
.bulk-qid-page .questions-checklist .q-item label { font-size: 0.9rem; cursor: pointer; }
.bulk-qid-page .questions-checklist .q-qid { color: #6c757d; font-size: 0.8rem; }
.bulk-qid-page .questions-checklist .q-mandatory { color: #dc3545; }

/* ── Global 14px text scale for data-dense UI ─────────────────────────────
   The body baseline covers inherited text. These components set their own
   font-size (Bootstrap/Tabulator defaults), so they need overriding here.
   Anything that declares a size deliberately still wins. */
/* Bootstrap's padding is in rem, so it stays sized for 16px text and looks
   loose around 14px. Retune padding and line-height to match. */
.btn {
  font-size: 14px;
  padding: 5px 12px;
  line-height: 1.45;
}

.btn-sm {
  padding: 3px 9px;
}

.btn-lg {
  padding: 8px 16px;
  font-size: 16px;
}

.form-control,
.form-select {
  font-size: 14px;
  padding: 5px 10px;
  line-height: 1.45;
}

.form-control-sm,
.form-select-sm {
  padding: 3px 8px;
}

.form-label {
  margin-bottom: 4px;
}

.tabulator,
.tabulator .tabulator-cell {
  font-size: 14px;
}

.tabulator .tabulator-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Bootstrap sets 1rem on these, which resolves against <html> (16px) and so
   escapes the body baseline. */
.dropdown-menu,
.modal,
.tooltip,
.popover,
.list-group,
.card,
.alert,
.nav,
.table {
  font-size: 14px;
}

.dropdown-item {
  padding: 4px 14px;
  line-height: 1.35;
}

.dropdown-menu {
  padding: 4px 0;
}

.table > :not(caption) > * > * {
  padding: 6px 8px;
}
