/* Button Styles */
.btn-primary {
    background-color: #ee1300 !important;
    /* Primary button color */
    border-color: #ee1300 !important;
}

.btn-outline-custom-red {
    color: #ee1306;
    border-color: #ee1306;
}

.btn-outline-custom-red:hover {
    background-color: #ffe3e1;
}

.badge-contracts {
    display: inline-block;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .375rem;
    color: black;
    background-color: white;
    border: 1px solid #ee1306;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.badge-contracts:hover {
    background-color: #ffe3e1;
}

/* Uniform candidate badge style (for both available and selected items) */
.badge.candidate-item {
    color: black;
    background-color: white;
    border: 1px solid #ee1306;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

/* When hovering, available candidate badges get a very pale red background */
.badge.candidate-item:hover {
    background-color: #ffe5e5;
}

sub-candidate-btn {
    color: black;
    background-color: white;
    border: 1px solid #ee1306;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    box-shadow: rgba(245, 92, 92, 0.03) 0px 0px 0px 0.256517px;
}

#candidateList {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    border: none;
    /* No border when empty */
}

#candidateList:not(:empty) {
    border: 1px solid #ddd;
}

/* Container for selected sub-contracts */
#selectedSubContracts {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

/* When hovering, available candidate badges get a very pale red background */
.badge.candidate-item:hover {
    background-color: #ffe5e5;
}



/* Add this somewhere in your CSS or <style> block */
.btn-extra-sm {
    color: black;
    background-color: white;
    border: 1px solid #ee1306;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    box-shadow: rgba(245, 92, 92, 0.03) 0px 0px 0px 0.256517px;
}

.btn-primary:hover {
    background-color: #c90f00 !important;
    /* Hover color */
    border-color: #c90f00 !important;
}

/* Navigation Styles */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #ee1300 !important;
    /* Active tab color */
    border-color: transparent transparent #ee1300 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.nav-link:hover,
.nav-link:focus {
    color: #ee1300;
    /* Link hover and focus color */
}

.navbar-vertical.navbar-light .navbar-nav>.nav-item>.nav-link:hover {
    background-color: #fffafa;
    /* Vertical navbar hover background */
}

.navbar-vertical.navbar-light .navbar-nav .nav-link i,
.navbar-vertical.navbar-light .navbar-nav .nav-link svg {
    color: #000;
    /* Icon color in vertical navbar */
}

.navbar-vertical.navbar-expand-lg.show {
    min-width: 200px;
    /* Ensure consistent width when expanded */
    flex-shrink: 0;
}

/* Form Styles */
.form-check-input:checked {
    background-color: #ee1300;
    /* Checked checkbox color */
    border-color: #ee1300;
}

.form-check-input:focus {
    border-color: #ee1300;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 250, 250, 0.25);
    /* Soft focus shadow */
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #d5d5d5;
    /* Disabled input color */
    opacity: 1;
}

/* Background and Text Colors */
.text-primary {
    color: #c90f00 !important;
    /* Primary text color */
}

.bg-soft-primary {
    background-color: #ffe0e0 !important;
    /* Soft primary background */
}

.bg-primary {
    background-color: #ee1300 !important;
    /* Primary background color */
}

/* Input Group */
.input-group {
    max-width: 400px;
    /* Max width for input groups */
    margin-bottom: 1rem;
    /* Space below input group */
}

.input-group .form-control {
    flex: 1;
    /* Expand input to fill space */
}

/* Grid.js Search Box */
.gridjs .gridjs-search {
    float: right;
    /* Align search box to the right */
    margin-bottom: 10px;
    /* Space below search box */
}

.gridjs-table {
    font-size: 0.85rem;
    /* Adjust this value as needed */
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
}

.bg-success {
    background-color: #28a745;
}

.bg-warning {
    background-color: #ffc107;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-secondary {
    background-color: #6c757d;
}

#messageArea {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-placeholder {
    margin-top: 20%;
    font-size: 1.25rem;
    color: #6c757d;
    text-align: center;
}

#scroll-container {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
}

#item-list {
    padding: 0;
    margin: 0;
}

.clusterize-scroll {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.clusterize-content {
    width: 100%;
    box-sizing: border-box;
}

.list-group-item {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.highlight {
    background-color: yellow;
}

.spinner-overlay {
    position: absolute;
    /* Position relative to scrollArea */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center horizontally and vertically */
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #ee1300;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#h-scroll-container {
    width: 100%;
    max-width: 1100px;
    height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border: 1px solid #ccc;
    margin: 0 auto;
    position: relative;
}

#h-item-list {
    width: 100%;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    white-space: nowrap;
}

.h-list-item {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: auto;
    min-width: 180px;
    max-width: 300px;
}

.drop-zone {
    border: 1px solid #ee1000;
    /* Thin primary color border */
    border-radius: 0.5rem;
    /* Rounded corners */
    background-color: #f8f9fa;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.drop-zone.dragover {
    background-color: #e9ecef;
    border-color: #0a58ca;
    /* Darker shade for dragover state */
}

/* Custom styles for nested modals */
.modal.modal-nested {
    z-index: 1060 !important;
    /* higher than the main modal (default ~1055) */
}

.modal-backdrop.modal-backdrop-nested {
    z-index: 1058 !important;
    /* sits just below the nested modal */
}

.btn-spacing {
    margin-right: 10px !important;
}

/* Scrollable list with fixed height */
#managedAccountsList {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    /* remove any side scroll */
}

/* Center the spinner in the div */
#spinnerWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    /* ensures vertical centering */
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
input[readonly],
select[readonly],
textarea[readonly],
button[readonly] {
    background-color: #f8f9fa !important;
    /* Lighter grey */
    color: #6c757d !important;
    /* Adjust text color as needed */
    opacity: 1 !important;
    /* Ensures colors show as specified */
}

.my-black-text-btn {
    color: black !important;
    /* Force black text */
}

.clusterize-scroll {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.clusterize-content {
    width: 100%;
    box-sizing: border-box;
}

.list-group-item {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.custom-btn-info {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: 1px solid #ed1200 !important;
    color: #ed1200 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0 8px;
    /* Adjust horizontal padding as needed */
}

.custom-btn-info:hover {
    background-color: #ed1200 !important;
    color: #fff !important;
    box-shadow: none;
}

.btn-outline-info:focus {
    box-shadow: none !important;
}

.custom-btn-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: 1px solid #17b7a7 !important;
    color: #17b7a7 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-btn-request:hover {
    background-color: #17b7a7 !important;
    color: #fff !important;
}

#statementModal {
    z-index: 9999 !important;
}

#myLineChart {
    width: 100% !important;
    height: 100% !important;
}

.alert-warning {
    color: #ee0000;
    background-color: #ffe6e6;
    border-color: #ffcccc;
}

/* Keyframes for the shimmer animation */
@keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* Base shimmer effect for placeholder elements (light mode) */
.placeholder,
.placeholder-glow {
    background-color: #f6f7f8 !important;
    border-radius: 10px !important;
    background-image: linear-gradient(to right,
            #f6f7f8 0%,
            #edeef1 20%,
            #f6f7f8 40%,
            #f6f7f8 100%) !important;
    background-repeat: no-repeat !important;
    animation-duration: 1s !important;
    animation-fill-mode: forwards !important;
    animation-iteration-count: infinite !important;
    animation-name: placeholderShimmer !important;
    animation-timing-function: linear !important;
}


/* Dark mode shimmer overrides */
body.dark .placeholder,
body.dark .placeholder-glow {
    background-color: #343a40 !important;
    background-image: linear-gradient(to right,
            #343a40 0%,
            #4a4f55 20%,
            #343a40 40%,
            #343a40 100%) !important;
}


@media (min-width: 576px) {
    .modal-dialog.modal-xl {
        max-width: 70vw;
    }
}

/* default for small → large screens */
#client-contract-grid {
    height: 55vh;
    overflow-y: auto;
}

/* Keep search bar visible when scrolling the grid */
#client-contract-grid .gridjs-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bs-body-bg, #fff);
    padding-bottom: 10px;
    margin-bottom: 0;
}

/* Prevent body rows from stretching when only a few search matches exist */
#client-contract-grid .gridjs-table,
#client-contract-grid .gridjs-tbody,
#client-contract-grid .gridjs-tr,
#client-contract-grid .gridjs-td {
    height: auto !important;
}

/* Inactive contract rows: lighter grey text (no Active column) */
.text-inactive,
.gridjs-td.text-inactive {
    color: #bdbdbd !important;
}

@media (min-width: 1500px) {
    #client-contract-grid {
        height: 70vh;
    }
}

#mainAdvanceGridJS {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #mainAdvanceGridJS {
        height: 70vh;
    }
}

#mainCostGridJS {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #mainCostGridJS {
        height: 70vh;
    }
}



#gridjs-table-statements {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #gridjs-table-statements {
        height: 70vh;
    }
}

#report-transaction-grid {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #report-transaction-grid {
        height: 70vh;
    }
}

#gridjs-table-userAccounts {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #gridjs-table-userAccounts {
        height: 70vh;
    }
}

#gridjs-table-accountManagers {
    height: 55vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #gridjs-table-accountManagers {
        height: 70vh;
    }
}

.disabled-section {
    opacity: 0.5;
    pointer-events: none;
}

/* one solid outline for the whole list */
#mainAdvanceProfileDropdown {
    border: 1px solid #000;
    border-radius: .25rem;
    /* optional rounded corners */
}

/* remove the default borders, keep only a bottom rule */
#mainAdvanceProfileDropdown .list-group-item {
    border: none;
    /* kill Bootstrap’s 1 px grey outline */
    border-bottom: 1px solid #000;
}

/* last item: no bottom border so the outline isn’t doubled */
#mainAdvanceProfileDropdown .list-group-item:last-child {
    border-bottom: none;
}


#searchInput {
    margin-bottom: 0 !important;
}

#mainCostProfileDropdown {
    border: 1px solid #000;
    border-radius: .25rem;
    overflow: hidden;
}

#mainCostProfileDropdown .list-group-item {
    border: none;
    border-bottom: 1px solid #000;
}

#mainCostProfileDropdown .list-group-item:last-child {
    border-bottom: 0;
}

.disabled-section {
    opacity: .5;
    pointer-events: none;
}

.copy-btn {
    padding: .125rem .5rem;
    /* a bit wider */
    line-height: 1.1;
    font-size: .85rem;
    /* slightly larger */
    border-color: #e5e7eb;
    cursor: pointer;
    /* hand pointer */
}

.copy-btn i {
    font-size: 1rem;
    /* slightly larger icon */
}

.copy-btn.copied i {
    /* optional: tiny color cue when copied */
    color: #198754;
}

/* modal contacts grid cells we made copyable */
#ClientListModal .contact-copy-cell {
    cursor: copy;
}

/* the copy buttons next to inputs */
#ClientListModal .copy-btn {
    cursor: copy;
}

/* compact 2×2 grid; doesn’t stretch outside the form control width */
.deal-status-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem .75rem;
}

/* make each item tight like an inline control */
.deal-status-item {
    margin: 0;
}

.deal-status-item .form-check-input {
    margin-right: .35rem;
}

.deal-status-item .form-check-label {
    white-space: nowrap;
}

/* if you want all four inline on wide screens (optional) */
/* @media (min-width: 576px) {
  .deal-status-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
} */

#client-list-dealStatus .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#client-list-dealStatus .form-check-label {
    color: #6c757d;
    /* Bootstrap's default text-muted color */
}

/* Only affect the view-only deal status checkboxes */
#client-list-dealStatus .form-check-input:disabled {
    opacity: .6;
    /* muted like the labels */
    cursor: not-allowed;
    border-color: #adb5bd;
}

#client-list-dealStatus .form-check-input:disabled:checked {
    background-color: #ee1300 !important;
    /* your red */
    border-color: #ee1300 !important;
    opacity: 1;
    /* make the tick fully visible */
    box-shadow: none;
    /* crisp white tick */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 14px;
    background-position: center;
}

/* Keep header and icons on one row inside the notes list */
#profileNotesList .note-header {
    white-space: nowrap;
}

#profileNotesList .note-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#profileNotesList .note-icons {
    flex: 0 0 auto;
    white-space: nowrap;
}

#profileNotesList .note-icons i {
    cursor: pointer;
    line-height: 1;
    /* avoids vertical jiggle */
}

#ClientListModal .input-group {
    max-width: 100% !important;
}

#ClientListModal .copy-btn {
    flex: 0 0 auto;
}

#gridjs-table-contactList {
    height: 65vh;
    overflow-y: auto;
}

@media (min-width: 1500px) {
    #gridjs-table-contactList {
        height: 70vh;
    }
}

/* lighter grey + normal weight for the edited flag */
.note-edited {
    color: #9aa3ad;
    /* tweak to taste; #6c757d if you want Bootstrap's muted */
    font-weight: 400;
}

/* subtle slide-in for the details card */
.animate-slide-in {
    animation: slideIn 280ms ease-out both;
}

@keyframes slideIn {
    from {
        transform: translateY(6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* row hover affordance for your Grid container */
#creditsResultsGrid .grid-row:hover {
    background-color: rgba(255, 0, 0, 0.06);
    cursor: pointer;
}

#detailsPlaceholder {
    display: none !important;
}

/* When we want it visible, JS toggles this class */
#detailsPlaceholder.placeholder--show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.exclusion-chip {
    border: 1px solid #ec1303;
    color: #ec1303;
    background: transparent;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.exclusion-chip:hover {
    background: rgba(236, 19, 3, 0.08);
}

.btn-fetch-csv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    border: 1px solid #17b7a7 !important;
    color: #17b7a7 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-fetch-csv:hover {
    background-color: #17b7a7 !important;
    color: #fff !important;
}

.text-inactive,
.text-inactive *,
#client-contract-grid tr.inactive-row td {
    color: #bdbdbd !important;
}

.inactive-row td {
    color: #bdbdbd !important;
}

/* ═══════════════════════════════════════════════════════════════
   Lite Dashboard — Account Manager / Staff home page
   ═══════════════════════════════════════════════════════════════ */

/* ── fade-up entrance ── */
@keyframes liteFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lite-stagger>* {
    animation: liteFadeUp .45s ease-out both;
}

.lite-stagger>*:nth-child(1) {
    animation-delay: .05s;
}

.lite-stagger>*:nth-child(2) {
    animation-delay: .12s;
}

.lite-stagger>*:nth-child(3) {
    animation-delay: .19s;
}

.lite-stagger>*:nth-child(4) {
    animation-delay: .26s;
}

/* ── KPI stat card ── */
.lite-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    position: relative;
}

.lite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.lite-card__body {
    padding: 1.35rem 1.4rem 1.25rem;
}

/* colour border strip (left) — applied via JS setCardTone */
.lite-card.border-start {
    border-left-width: 3px !important;
}

/* ── icon circles ── */
.lite-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lite-icon--blue {
    background: #e8f0fe;
    color: #1a73e8;
}

.lite-icon--emerald {
    background: #e6f4ea;
    color: #1e8e3e;
}

.lite-icon--amber {
    background: #fef7e0;
    color: #e37400;
}

.lite-icon--red {
    background: #fce8e6;
    color: #d93025;
}

/* ── typography ── */
.lite-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .7rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 6px;
}

.lite-metric {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: #202124;
}

.lite-sub {
    display: block;
    font-size: .72rem;
    color: #80868b;
    margin-top: 4px;
}

.lite-neutral-metric {
    color: #202124;
}

/* ── panel (table container) ── */
.lite-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.lite-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid #f0f0f0;
}

.lite-panel__title {
    font-size: .88rem;
    font-weight: 700;
    color: #202124;
    margin: 0;
}

.lite-panel__badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5f6368;
    background: #f1f3f4;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.lite-panel__body {
    padding: 1rem 1.3rem;
}

/* ── table ── */
.lite-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .82rem;
}

.lite-table thead th {
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #80868b;
    padding: .55rem .6rem;
    border-bottom: 2px solid #e8eaed;
    white-space: nowrap;
}

.lite-table tbody td {
    padding: .55rem .6rem;
    border-bottom: 1px solid #f3f4f6;
    color: #3c4043;
    vertical-align: middle;
}

.lite-table tbody tr:last-child td {
    border-bottom: none;
}

.lite-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.lite-table tbody tr:hover td {
    background: #f1f3f4;
}

/* rank badge inside tables */
.lite-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    background: #f1f3f4;
    color: #3c4043;
}

.lite-rank--gold {
    background: #fef7e0;
    color: #e37400;
}

.lite-rank--silver {
    background: #f1f3f4;
    color: #5f6368;
}

.lite-rank--bronze {
    background: #fce8e6;
    color: #b06000;
}

/* ── empty state ── */
.lite-empty-state {
    text-align: center;
    padding: 2.2rem 1.5rem;
    border-radius: 14px;
    border: 1px dashed #dadce0;
    background: #fafbfc;
    color: #5f6368;
    font-size: .85rem;
    line-height: 1.6;
}

/* ── chart wrapper ── */
.lite-chart-wrap {
    position: relative;
    background: #fafbfc;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    height: 420px;
    margin-inline: auto;
}

.lite-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

@media (max-width: 767.98px) {
    .lite-chart-wrap {
        width: min(100%, 340px);
        height: 340px;
    }
}

@media (max-width: 991.98px) {
    #dashboard>main {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }

    #dashboard .container-fluid {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .nonAdminDashboard {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .lite-card__body {
        padding: 1rem;
    }

    .lite-metric {
        font-size: 1.45rem;
    }

    .lite-panel__header {
        padding: 0.9rem 1rem;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .lite-panel__body {
        padding: 0.9rem 1rem;
    }

    .lite-panel[style*="min-height: 520px"] {
        min-height: 440px !important;
    }

    .lite-panel__body[style*="max-height: 430px"] {
        max-height: 360px !important;
        min-height: 360px !important;
    }

    .lite-panel__body[style*="max-height: 420px"] {
        max-height: 360px !important;
    }

    .lite-table thead th {
        font-size: 0.64rem;
        padding: 0.48rem 0.45rem;
    }

    .lite-table tbody td {
        padding: 0.48rem 0.45rem;
    }

    .allowedToView .card-body[style*="min-height: 600px"] {
        min-height: 360px !important;
    }

    .allowedToView .card-body>div[style*="height: 600px"] {
        height: 320px !important;
    }

    .allowedToView .overflow-auto[style*="height:600px"] {
        height: 320px !important;
    }
}

@media (max-width: 575.98px) {
    .lite-metric {
        font-size: 1.3rem;
    }

    .lite-sub {
        font-size: 0.7rem;
    }

    .lite-panel__title {
        font-size: 0.82rem;
    }

    .lite-panel__badge {
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .lite-panel[style*="min-height: 520px"] {
        min-height: auto !important;
    }

    .lite-panel__body[style*="max-height: 430px"] {
        max-height: 300px !important;
        min-height: 300px !important;
    }

    .lite-panel__body[style*="max-height: 420px"] {
        max-height: 300px !important;
    }

    .lite-chart-wrap {
        width: min(100%, 300px);
        height: 300px;
    }
}

/* ═══ Lite Dashboard — Dark Mode ═══ */
body.dark .lite-card {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

body.dark .lite-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

body.dark .lite-metric {
    color: #e8eaed;
}

body.dark .lite-label {
    color: #9aa0a6;
}

body.dark .lite-sub {
    color: #9aa0a6;
}

body.dark .lite-neutral-metric {
    color: #e8eaed;
}

body.dark .lite-icon--blue {
    background: #1a3a5c;
    color: #8ab4f8;
}

body.dark .lite-icon--emerald {
    background: #1a3c26;
    color: #81c995;
}

body.dark .lite-icon--amber {
    background: #3c3018;
    color: #fdd663;
}

body.dark .lite-icon--red {
    background: #3c1f1e;
    color: #f28b82;
}

body.dark .lite-panel {
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

body.dark .lite-panel__header {
    border-bottom-color: #3c3c3c;
}

body.dark .lite-panel__title {
    color: #e8eaed;
}

body.dark .lite-panel__badge {
    background: #3c3c3c;
    color: #9aa0a6;
}

body.dark .lite-table thead th {
    color: #9aa0a6;
    border-bottom-color: #3c3c3c;
}

body.dark .lite-table tbody td {
    color: #bdc1c6;
    border-bottom-color: #333;
}

body.dark .lite-table tbody tr:nth-child(even) td {
    background: #2e2e2e;
}

body.dark .lite-table tbody tr:hover td {
    background: #353535;
}

body.dark .lite-rank {
    background: #3c3c3c;
    color: #bdc1c6;
}

body.dark .lite-rank--gold {
    background: #3c3018;
    color: #fdd663;
}

body.dark .lite-rank--silver {
    background: #3c3c3c;
    color: #9aa0a6;
}

body.dark .lite-rank--bronze {
    background: #3c2a1e;
    color: #e8a86d;
}

body.dark .lite-empty-state {
    background: #292929;
    border-color: #3c3c3c;
    color: #9aa0a6;
}

body.dark .lite-chart-wrap {
    background: #2e2e2e;
}

.chart-skeleton-wrap {
    position: relative;
    width: min(100%, 350px);
    height: 350px;
}

.chart-skeleton-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.chart-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chart-skeleton.d-none {
    display: none !important;
}

.chart-skeleton__text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

body.dark .chart-skeleton__text {
    color: #adb5bd;
}
