[x-cloak] {
    display: none !important;
}

[style*="display: none"] {
    display: none !important;
}

.status-radio-btn-padding {
    padding: 6px 16px;
}

.fs-xxl-1 {
    font-size: calc(1.3rem + .6vw) !important;
}

.fs-xxl-2 {
    font-size: calc(1.275rem + .3vw) !important;
}
.fs-xxl-2x {
    font-size: calc(1.325rem + .9vw) !important;
}

.fs-xxl-2qx {
    font-size: calc(1.35rem + 1.2vw) !important;
}

.fs-xxl-3qx {
    font-size: calc(1.45rem + 2.4vw) !important;
}

.red-border   { border: 1px solid #f44336; color: #f44336;}
.pink-border  { border: 1px solid #ec407a; color: #ec407a;}
.orange-border{ border: 1px solid #ff9800; color: #ff9800;}
.yellow-border{ border: 1px solid #EBBD2C; color: #EBBD2C;}
.peach-border { border: 1px solid #ffb74d; color: #ffb74d;}
.lemon-border { border: 1px solid #f9e045; color: #f9e045;}
.green-border { border: 1px solid #8bc34a; color: #8bc34a;}
.blue-border  { border: 1px solid #29b6f6; color: #29b6f6;}
.purple-border{ border: 1px solid #ba68c8; color: #ba68c8;}
.coffee-border{ border: 1px solid #A18461; color: #A18461;}
.gray-border{ border: 1px solid #bfbfbf; color: #bfbfbf;}

.red-text   { color: #f44336;}
.pink-text  { color: #ec407a;}
.orange-text{ color: #ff9800;}
.yellow-text{ color: #EBBD2C;}
.peach-text { color: #ffb74d;}
.lemon-text { color: #f9e045;}
.green-text { color: #8bc34a;}
.blue-text  { color: #29b6f6;}
.purple-text{ color: #ba68c8;}
.coffee-text{ color: #A18461;}
.gray-border{ color: #bfbfbf;}

.select2-results__group {
    background-color: #d0d2db !important;
}

/* Lead form referrer typeahead suggestions */
.referrer-suggestions {
    top: 100%;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
}

.referrer-suggestions .dropdown-item.active,
.referrer-suggestions .dropdown-item:hover {
    background-color: #657d3d;
    color: #fff;
}

a.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.bg-confirm {
    background-color: #50ce89;
    border: 1px solid #50ce89;
    color: #FFF;
}

.bg-confirm-past {
    background-color: #eefaf3;
    border: 1px solid #50ce89;
    color: #50ce89;
}

.bg-invited {
    background-color: #a7e6c4;
    border: 1px solid #50ce89;
    color: #50ce89;
}

.bg-invited-past {
    background-color: #eefaf3;
    border: 1px solid #50ce89;
    color: #50ce89;
}

.bg-available {
    background-color: #eefaf3;
    border: 2px solid #50ce89;
    color: #50ce89;
}

.bg-o_job {
    background-color: #fef9ec;
    border: 1px solid #f2da82;
    color: #f2da82;
}

.bg-no-rtw {
    background-color: #F1416C;
    border: 1px solid #F1416C;
    color: #FFF;
}

.bg-no-rtw-past {
    background-color: #FFF;
    border: 1px solid #F1416C;
    color: #F1416C;
}

.confirm-text { color: #FFF; }
.confirm-text-past { color: #50ce89; }
.invited-text { color: #FFF; }
.invited-text-past { color: #50ce89; }
.available-text { color: #50ce89; }
.o_job-text { color: #f2da82; }
.bg-no-rtw-text { color: #FFF; }
.bg-no-rtw-text-past { color: #F1416C; }

.booking-green-no-border {
    background-color: #eefaf3;
    color: #50ce89;
}
.booking-gray-no-border {
    background-color: #F4F4F4;
}
.bg-booking-gray {
    background-color: #F4F4F4;
    border: 1px solid #7e8299;
    color: #7e8299;
}
.bg-booking-gray-text { color: #7e8299; }

.bg-booking-white {
    background-color: #FFF;
    border: 1px solid #7e8299;
    color: #7e8299;
}

.kt_aside_toolbar{ border-bottom: 1px dotted #fff; }

.aside-menu .menu>.menu-item{ padding: 0; }
.aside-menu .menu-link {
    min-width: auto !important;
    overflow: visible !important;
}

.aside-menu .menu-title {
    white-space: nowrap !important;
    overflow: visible !important;
}
.aside-menu.flex-column-fluid {
    flex-shrink: 1 !important;
}
#kt_aside_toggle.active {
    background-color: transparent !important;
    border: none !important;
}
.u-flip{
    transform: scaleX(-1);
}

.client-booking-bg-confirm {
    background-color: #FFFFFF;
    border: 1px solid #50ce89;
    color: #50ce89;
    padding: .25rem !important;
    border-radius: .475rem !important;
}

.client-booking-bg-invitation {
    background-color: #FFFFFF;
    border: 1px solid #319AFB;
    color: #319AFB;
    padding: .25rem !important;
    border-radius: .475rem !important;
}

.client-booking-bg-other-job {
    background-color: #FFFFFF;
    border: 1px solid #E1454A;
    color: #E1454A;
    padding: .25rem !important;
    border-radius: .475rem !important;
}

.client-booking-bg-absence {
    background-color: #FFFFFF;
    border: 1px solid #A1A5B7;
    color: #A1A5B7;
    padding: .25rem !important;
    border-radius: .475rem !important;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 160px;
    background-color: #F5F8FA;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.loader {
    border: 4px solid #909FAF;
    border-top: 8px solid #019EF7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
}

.note-editor .note-toolbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.note-editor .note-btn {
    background-color: #fff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

.note-editor .note-btn i,
.note-editor .note-btn svg {
    color: #212529 !important;
    fill: #212529 !important;
}

.note-editor .dropdown-toggle {
    color: #212529 !important;
}

.note-editor .note-btn:hover {
    background-color: #e9ecef !important;
}

.note-editor .note-editable table {
    border-collapse: collapse !important;
    width: 100%;
}

.note-editor .note-editable table,
.note-editor .note-editable th,
.note-editor .note-editable td {
    border: 1px solid #000 !important;
}

.note-editor .note-editable th,
.note-editor .note-editable td {
    padding: 8px;
}

/* ========================================================= */
/* Griffin Brand Styling Overrides                           */
/* Brand palette:                                            */
/* Background: #628c7a (LHS menu)                            */
/* Hover: #49601f                                            */
/* Active: #304400                                           */
/* Content background: #e8edeb (Main panel)                  */
/* ========================================================= */

.header .header-brand,
.header-brand {
    background-color: #628c7a !important;
}

.aside {
    background-color: #628c7a !important;
}

.aside .aside-toolbar .aside-user {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.kt_aside_toolbar {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.25) !important;
}

/* Aside menu link text and icons */
.aside-menu .menu .menu-item .menu-link .menu-title,
.aside-menu .menu .menu-item .menu-link .menu-icon i {
    color: #ffffff !important;
}

/* Hover state: #49601f */
.aside-menu .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
.aside-menu .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: #49601f !important;
    color: #ffffff !important;
}

.aside-menu .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
.aside-menu .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title,
.aside-menu .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-icon i,
.aside-menu .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon i {
    color: #ffffff !important;
}

/* Active state: #304400 */
.aside-menu .menu .menu-item .menu-link.active,
.aside-menu .menu .menu-item.here > .menu-link {
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: #304400 !important;
    color: #ffffff !important;
}

.aside-menu .menu .menu-item .menu-link.active .menu-title,
.aside-menu .menu .menu-item.here > .menu-link .menu-title,
.aside-menu .menu .menu-item .menu-link.active .menu-icon i,
.aside-menu .menu .menu-item.here > .menu-link .menu-icon i {
    color: #ffffff !important;
}

/* ========================================================= */
/* LHS Aside Menu Sections & Links Styling                   */
/* ========================================================= */

.aside-section-header {
    background-color: rgba(0, 0, 0, 0.16) !important;
    border-radius: 4px;
    margin: 6px 4px 2px 4px;
    padding: 8px 12px !important;
    user-select: none;
    transition: background-color 0.2s ease;
}

.aside-section-header:hover {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

.aside-section-header .section-title {
    font-size: 0.725rem !important;
    letter-spacing: 0.05em;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2;
}

.aside-section-header .section-arrow i {
    transition: transform 0.25s ease;
    display: inline-block;
}

.aside-section-header.collapsed .section-arrow i,
.aside-section-header[aria-expanded="false"] .section-arrow i {
    transform: rotate(-90deg);
}

.aside-menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    margin: 2px 0 !important;
    text-decoration: none !important;
}

.aside-menu-link .menu-icon {
    width: 28px !important;
    min-width: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
}

.aside-menu-link .menu-icon i {
    color: #ffffff !important;
}

.aside-menu-link .menu-title {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

/* Aside menu link hover & active */
.aside-menu-link:hover:not(.active) {
    background-color: #49601f !important;
    color: #ffffff !important;
}

.aside-menu-link.active {
    background-color: #304400 !important;
    color: #ffffff !important;
}

/* User cog dropdown menu */
#kt_user_menu_dropdown {
    z-index: 1060 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Content Area Background: #e8edeb */
.griffin-content-wrapper {
    background-color: #e8edeb !important;
    min-height: calc(100vh - 74px);
}

body#kt_body {
    background-color: #e8edeb !important;
}

/* Primary buttons with Griffin colors */
.btn.btn-primary {
    background-color: #657d3d !important;
    border-color: #657d3d !important;
    color: #ffffff !important;
}

.btn.btn-primary:hover:not(.btn-active),
.btn.btn-primary:focus:not(.btn-active) {
    background-color: #49601f !important;
    border-color: #49601f !important;
    color: #ffffff !important;
}

.btn.btn-primary:active:not(.btn-active),
.btn.btn-primary.active {
    background-color: #304400 !important;
    border-color: #304400 !important;
    color: #ffffff !important;
}

.link-primary {
    color: #657d3d !important;
}

.link-primary:hover {
    color: #304400 !important;
}

/* Badge success */
.badge-light-success {
    color: #304400 !important;
    background-color: #e5f2d0 !important;
}

/* Fix dropdown menu z-index and appearance */
.menu-sub-dropdown {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2) !important;
}

/* ========================================================= */
/* Mobile Responsiveness Rules (< 992px)                     */
/* ========================================================= */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

#kt_wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.griffin-content-wrapper {
    max-width: 100%;
    min-width: 0;
}

/* ==========================================================================
   Shared admin list-page components
   All page styles live here; views should not add their own <style> blocks.
   ========================================================================== */

/* Table headers */
.table th {
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #7e8299;
}

/* Quickfind search input */
.quickfind-input {
    background-color: #f5f8fa;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    height: 42px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.quickfind-input:focus {
    background-color: #ffffff;
    border-color: #657d3d !important;
    box-shadow: 0 0 0 0.25rem rgba(101, 125, 61, 0.15);
}

/* Segmented status tabs (Active / Archived / All, Incomplete / Complete, ...) */
.segmented-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #f5f8fa;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e4e6ef;
}

.segment-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #657d3d;
    background-color: transparent;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.segment-btn:hover {
    color: #49601f;
    background-color: rgba(101, 125, 61, 0.1);
}

.segment-btn.active {
    background-color: #657d3d;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(101, 125, 61, 0.25);
}

/* Placements list: status filter dropdown beside the (+) button */
.placement-status-filter {
    width: 220px;
    height: 42px;
    border-radius: 8px;
    font-weight: 600;
    color: #657d3d;
}

.placement-status-filter:focus {
    border-color: #657d3d !important;
    box-shadow: 0 0 0 0.25rem rgba(101, 125, 61, 0.15);
}

/* Leads status tabs */
.leads-status-tabs-container {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.leads-tabs-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: max-content;
}

.leads-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #657d3d;
    background-color: transparent;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
    user-select: none;
}

.leads-tab-item:hover {
    background-color: rgba(101, 125, 61, 0.28);
    color: #657d3d;
}

.leads-tab-item.active,
.leads-tab-item.active:hover {
    background-color: #657d3d;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(101, 125, 61, 0.28);
}

/* Circular (+) button above tables that opens a create overlay */
.btn-status-plus-circle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #657d3d;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-status-plus-circle i {
    font-size: 2.3rem;
    color: #657d3d;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-status-plus-circle:hover i {
    transform: scale(1.12);
}

/* "With selected" bulk action box */
.with-selected-box {
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 12px 18px;
}

/* Applicants: flag badges, IP box */
.badge-applicant-flag,
.badge-flag-red,
.badge-flag-health,
.badge-flag-orange {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    display: inline-block;
    text-transform: uppercase;
}

/* Red: ENGLISH, RUSSIAN, VISA, BLACKLIST MATCH */
.badge-applicant-flag,
.badge-flag-red {
    background-color: #fff5f5;
    color: #d93838 !important;
    border: 1px solid #f87171;
}

/* Orange: QUESTIONNAIRE, COMMISSION, HEALTH */
.badge-flag-health,
.badge-flag-orange {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #f59e0b !important;
}

.applicant-ip-box {
    background-color: #f5f8fa;
    color: #181c32;
    font-family: monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New";
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e4e6ef;
    display: inline-block;
}

/* Applicants: full application form view */
.app-view-card {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* .card.app-view-card outranks Metronic's .card .card-header .card-title */
.card.app-view-card .card-header {
    justify-content: center;
    min-height: 60px;
}

/* .card-title is a flex box (and full width on mobile), so centre its content too */
.card.app-view-card .card-header .card-title {
    margin: 0.5rem auto;
    justify-content: center;
    text-align: center;
    color: #657d3d;
    font-weight: 700;
    font-size: 1.25rem;
}

.app-view-field {
    background-color: #f5f8fa;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.app-view-label {
    display: block;
    color: #7e8299;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.app-view-value {
    color: #181c32;
    font-weight: 600;
    white-space: pre-line;
}

.app-view-field.is-incorrect {
    background-color: #fff5f5;
    border: 1px solid #f87171;
}

.app-view-field.is-incorrect .app-view-value {
    color: #d93838;
}

.app-view-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}

.app-view-scan-thumb {
    display: block;
    width: 120px;
    height: 80px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.app-view-scan-thumb:hover {
    border-color: #657d3d;
    box-shadow: 0 2px 8px rgba(101, 125, 61, 0.25);
}

.app-view-scan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-view-scan-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #d93838;
    font-weight: 700;
    font-size: 0.8rem;
}

.app-view-scan-pdf i {
    font-size: 2rem;
}

.app-view-doc-link {
    color: #657d3d;
    font-weight: 600;
}

.app-view-doc-link:hover {
    color: #49601f;
}

/* Interview locations: what3words "///" prefix */
.w3w-prefix {
    font-size: 1.15rem;
    letter-spacing: -1px;
    color: #a1a5b7;
}

/* Interview events: date input with calendar icon */
.event-date-field {
    position: relative;
}

.event-date-field > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a5b7;
    pointer-events: none;
    z-index: 2;
}

.event-date-field .form-control {
    padding-left: 38px;
}

/* Client details: Active / Archived toggle and logo box */
.client-status-toggle {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e4e6ef;
}

.client-status-toggle .btn {
    border-radius: 0;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f1faff;
    color: #50cd89;
    border: 0;
}

.client-status-toggle .btn.active-status {
    background-color: #50cd89;
    color: #ffffff;
    cursor: default;
}

.client-status-toggle .btn.archived-status.active-status {
    background-color: #ffc700;
    color: #181c32;
}

.client-logo-box {
    width: 390px;
    max-width: 100%;
    height: 85px;
    padding: 8px 16px;
    border: 1px solid #b5b5c3;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    flex-shrink: 1;
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Client list logo column + basic info preview */
.client-logo-cell {
    display: flex;
    align-items: center;
    width: 150px;
    height: 50px;
}

.client-logo-cell img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo-preview {
    width: 150px;
    height: 50px;
    padding: 4px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    background-color: #ffffff;
    flex-shrink: 0;
    justify-content: center;
}

/* Client contacts tab: 36px profile photo, site badges and modal photo preview */
.contact-photo-cell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2e6;
}

.contact-photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-photo-initials {
    color: #657d3d;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-contact-site {
    background-color: #7239ea;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
}

.contact-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e6ef;
    background-color: #f5f8fa;
}

.contact-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Site details: map embed and gallery thumbnails */
.site-map-frame {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f8fa;
}

.site-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.site-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e4e6ef;
}

.site-gallery-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f8fa;
}

.site-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.site-gallery-thumb:hover img {
    transform: scale(1.03);
}

.site-gallery-delete {
    position: absolute;
    top: 8px;
    right: 8px;
}

@media (max-width: 767.98px) {
    .site-map-frame {
        height: 280px;
    }
}

/* Accommodation: header, form sections, owner / manager options, audits */
.acc-header-icon,
.acc-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: rgba(101, 125, 61, 0.12);
    color: #657d3d;
}

.acc-header-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
}

.acc-section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.acc-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: #7e8299;
    font-size: 0.9rem;
}

.acc-header-meta i {
    color: #657d3d;
    font-size: 1.15rem;
    margin-right: 4px;
    vertical-align: -2px;
}

.acc-form-section {
    padding-bottom: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px dashed #e4e6ef;
}

.acc-form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0.5rem;
}

.acc-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.acc-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 2px;
}

.acc-section-subtitle {
    font-size: 0.85rem;
    color: #a1a5b7;
}

/* Owned by / Managed by: segmented radio options */
.ownership-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background-color: #f5f8fa;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
}

.ownership-options.is-invalid {
    border-color: #f1416c;
}

.ownership-option {
    flex: 1 1 0;
    min-width: 80px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #657d3d;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
}

.ownership-option:hover {
    color: #49601f;
    background-color: rgba(101, 125, 61, 0.1);
}

.btn-check:checked + .ownership-option {
    background-color: #657d3d;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(101, 125, 61, 0.25);
}

.btn-check:focus-visible + .ownership-option {
    outline: 2px solid #49601f;
    outline-offset: 1px;
}

.acc-conditional {
    padding: 12px 14px;
    background-color: #f9faf6;
    border-left: 3px solid #657d3d;
    border-radius: 0 6px 6px 0;
}

/* Audits tab: upload panel and superseded rows */
.audit-upload-panel {
    padding: 20px;
    border: 1px dashed #b5c49a;
    border-radius: 8px;
    background-color: #f9faf6;
}

.audit-row-historic td {
    color: #a1a5b7;
}

.audit-row-historic td a {
    color: #7e8299 !important;
}

/* Client documents tab: required / other document wells */
.client-doc-well {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background-color: #f5f8fa;
    border-radius: 8px;
}

.client-doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
    flex: 1 1 auto;
    min-width: 0;
}

.client-doc-name {
    min-width: 180px;
}

.client-doc-field {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    max-width: 260px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3f4254;
}

.client-doc-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a1a5b7;
    margin-bottom: 2px;
}

.client-doc-field a {
    color: #657d3d;
}

.client-doc-field a:hover {
    color: #49601f;
}

.client-doc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    /* Prevent horizontal page blowout on mobile */
    .container,
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }

    .card {
        max-width: 100% !important;
        border-radius: 8px !important;
    }

    .card .card-header {
        padding: 1rem !important;
        gap: 0.75rem !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .card .card-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .card .card-title > div {
        width: 100% !important;
    }

    .card .card-title input.quickfind-input {
        width: 100% !important;
    }

    .card .card-toolbar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .leads-status-tabs-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
    }

    .leads-tabs-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        min-width: max-content !important;
    }

    .leads-tab-item {
        padding: 6px 14px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .btn-status-plus-circle i {
        font-size: 1.85rem !important;
    }

    .placement-status-filter {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    /* Table responsive wrapper on mobile */
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Breadcrumbs on mobile */
    .toolbar {
        min-height: auto !important;
    }

    .toolbar .page-title {
        align-items: flex-start !important;
        margin-right: 0 !important;
    }

    .breadcrumb {
        flex-wrap: wrap !important;
        font-size: 0.8rem !important;
    }

    /* Mobile Aside Drawer */
    .aside.drawer {
        background-color: #628c7a !important;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3) !important;
    }

    .aside.drawer .aside-menu {
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
    }

    #kt_user_menu_dropdown {
        max-width: 240px !important;
    }

    /* Clean, centered empty state on mobile */
    table.table-is-empty thead {
        display: none !important;
    }

    table.table-is-empty tbody td {
        display: block !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Card that sits directly under a nav-line-tabs strip (square top-left corner) */
.tab-attached-card {
    border-top-left-radius: 0 !important;
}

/* Add placement: latest CoS date / duration strip under the dates */
.placement-date-summary {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: #f5f8fa;
    color: #7e8299;
    font-size: 0.9rem;
    font-weight: 600;
}

.placement-date-summary span {
    color: #181c32;
}

/* Secondary action in theme green (outline), e.g. "Create and add returnees" */
.btn.btn-griffin-outline {
    border: 1px solid #657d3d !important;
    color: #657d3d !important;
    background-color: transparent !important;
}

.btn.btn-griffin-outline:hover:not(:disabled) {
    background-color: #657d3d !important;
    color: #ffffff !important;
}

/* DataTables sort icon on the active column: Metronic draws a chevron as a background
   image while datatables.bundle.css adds a "↓" glyph to the same ::after, so the two overlap.
   Keep the glyph only, pointing the way the column is sorted. */
table.dataTable > thead > tr > th.sorting_asc::after,
table.dataTable > thead > tr > th.sorting_desc::after {
    background-image: none;
    width: auto;
    height: auto;
    margin-left: 0;
    opacity: 1;
}

table.dataTable > thead > tr > th.sorting_asc::after {
    content: "↑";
}

/* Narrow list columns (ID, Status): size to content, without the 30px sort-icon gutter
   datatables.bundle.css adds on the right (the arrow above sits inline after the text). */
table.dataTable > thead > tr > th.col-fit:not(.sorting_disabled) {
    padding-right: 0.75rem;
}

table.dataTable th.col-fit,
table.dataTable td.col-fit {
    white-space: nowrap;
}
