.custom-card-header {
    padding: 0.5rem 1rem !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /* border-radius: 8px; */
}

.btn-xs {
    padding: 5px 5px !important;
    font-size: 14px;
    font-weight: 400;
}

.btn-xs i {
    /* padding: 5px 5px !important; */
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Custom CSS to force wrapping within table cells */
.table-wrap-content th,
.table-wrap-content td {
    white-space: normal !important;
    word-wrap: break-word !important;
    /* overflow-wrap: anywhere !important; */
    max-width: 250px;
}

.table-responsive .table-wrap-content td {
    white-space: normal !important;
}


.overlay-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 50;
}

.loss-td td {
    color: #e3291d !important;
}

.bootstrap-tagsinput {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    display: inline-block;
    padding: 4px 6px;
    color: #555;
    vertical-align: middle;
    border-radius: 4px;
    max-width: 100%;
    line-height: 22px;
    cursor: text;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: unset !important;
}

.select2-container--default .select2-selection--single {
    min-height: 2.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 30% !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 2.5rem !important;
}

.bootstrap-tagsinput input {
    border: none;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    padding: 0 6px;
    margin: 0;
    width: auto;
    max-width: inherit;
}

.bootstrap-tagsinput.form-control input::-moz-placeholder {
    color: #777;
    opacity: 1;
}

.bootstrap-tagsinput.form-control input:-ms-input-placeholder {
    color: #777;
}

.bootstrap-tagsinput.form-control input::-webkit-input-placeholder {
    color: #777;
}

.bootstrap-tagsinput input:focus {
    border: none;
    box-shadow: none;
}

.bootstrap-tagsinput .tag {
    margin-right: 2px;
    background-color: lightgray;
    padding: 2px 8px;
    border-radius: 8px;
    color: black;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
    margin-left: 8px;
    cursor: pointer;
}

.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content: "x";
    padding: 0px 2px;
}

.bootstrap-tagsinput .tag [data-role="remove"]:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bootstrap-tagsinput .tag [data-role="remove"]:hover:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-blue {
    background-color: #529bfc;
    color: white;

}

.btn-blue:hover {
    background-color: #529bfc;
    color: white;

}

.codex-menu .submenu-list a {
    -webkit-padding-start: 0px !important;
    padding-inline-start: 0px !important;
    padding: 0px 0px !important;
}

.codex-menu li>a {
    /* padding: 0px 0px  !important; */
}

.innerCarrData {
    position: absolute;
    top: 100%;
    /* just below the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* max-width: 80%; */
    /* max-height: 250px; */
    overflow-y: auto;
    z-index: 1000;
}

.bg-gray {
    background-color: #edede9;
}

.img-circular {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: #edede9 4px solid;
    padding: 10px;
}

.floating-button-group {
    padding: 15px;
    border-radius: 10px;
    position: fixed;
    bottom: 95px;
    right: 35px;
    display: flex;
    z-index: 3;
    background-color: black;
    justify-content: flex-end;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #8392a5;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
}

.sorting-icons .bi-caret-down-fill {
    margin-top: -5px;
}

.user-card {
    position: relative;
    overflow: hidden;
    /* keeps ribbon inside */
}

.ribbon-user {
    position: absolute;
    top: 24px;
    left: -30px;
    transform: rotate(-45deg);
    background: #212529;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 140px;
    line-height: 20px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.text-blue {
    color: #0d6efd !important;
}

.d-cards {
    position: relative;
    /* padding: 1.5rem 2rem; */
    padding: 1.5rem 0rem 1.5rem 1rem;
    border-radius: 16px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    /* cursor: pointer; */
    height: 100%;
}

.d-cards:hover {
    transform: translateY(-3px);
}

.card-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.watermark-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    pointer-events: none;
    z-index: 0;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #2d3748;
}

.card-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: #4a5568;
    margin-top: 0.25rem;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Violet Card */
.d-card-violet {
    border: 1px solid #e9d5ff;
    /* box-shadow: rgba(123, 44, 191, 0.12) 0px 2px 4px 0px, rgba(123, 44, 191, 0.32) 0px 2px 16px 0px; */
}

.d-card-violet .card-icon-circle {
    background-color: rgba(123, 44, 191, 0.1);
    color: #7b2cbf;
}

.d-card-violet .watermark-icon {
    color: rgba(123, 44, 191, 0.08);
}

/* Blue Card */
.d-card-blue {
    border: 1px solid #dbeafe;
    /* box-shadow: rgba(13, 110, 253, 0.12) 0px 2px 4px 0px, rgba(13, 110, 253, 0.32) 0px 2px 16px 0px; */
}

.d-card-blue .card-icon-circle {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.bg-blue {
    background-color: #15283c !important;
    /* background-image: linear-gradient(to top, #a3bded 0%, #6991c7 100%) !important; */
}

.d-card-blue .watermark-icon {
    color: rgba(13, 110, 253, 0.08);
}

/* Green Card */
.d-card-green {
    border: 1px solid #d1fae5;
    /* box-shadow: rgba(25, 135, 84, 0.12) 0px 2px 4px 0px, rgba(25, 135, 84, 0.32) 0px 2px 16px 0px; */
}

.d-card-green .card-icon-circle {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.d-card-primary {
    /* border: 1px solid lightgray; */
    box-shadow: 0 0 20px 5px rgba(5, 23, 34, .05);
}

.d-card-green .watermark-icon {
    color: rgba(25, 135, 84, 0.08);
}

/* Orange Card */
.d-card-orange {
    border: 1px solid #fed7aa;
    /* box-shadow: rgba(253, 126, 20, 0.12) 0px 2px 4px 0px, rgba(253, 126, 20, 0.32) 0px 2px 16px 0px; */
}

.d-card-orange .card-icon-circle {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.d-card-orange .watermark-icon {
    color: rgba(253, 126, 20, 0.08);
}

@media (max-width: 768px) {
    .card-value {
        font-size: 1.5rem;
    }

    .watermark-icon {
        font-size: 80px;
    }
}

.financial-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    /* cursor: pointer; */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.financial-card:hover {
    transform: translateY(-4px);
}

.financial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-header-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.card-amount {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-projection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.75rem;
}

.projection-amount {
    font-weight: 600;
    color: #4a5568;
}

.projection-label {
    color: #a0aec0;
}

/* Receivables Card - Green */
.card-receivables {
    border: 1px solid #d1fae5;
    box-shadow: rgba(16, 185, 129, 0.08) 0px 2px 8px 0px, rgba(16, 185, 129, 0.12) 0px 1px 4px 0px;
}

.card-receivables::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.card-receivables .card-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-receivables .card-amount {
    color: #10b981;
}

/* Payables Card - Red */
.card-payables {
    border: 1px solid #fee2e2;
    box-shadow: rgba(239, 68, 68, 0.08) 0px 2px 8px 0px, rgba(239, 68, 68, 0.12) 0px 1px 4px 0px;
}

.card-payables::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.card-payables .card-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.card-payables .card-amount {
    color: #ef4444;
}

/* Gross Profit Card - Blue */
.card-profit {
    border: 1px solid #dbeafe;
    box-shadow: rgba(59, 130, 246, 0.08) 0px 2px 8px 0px, rgba(59, 130, 246, 0.12) 0px 1px 4px 0px;
}

.card-profit::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.card-profit .card-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-profit .card-amount {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .card-amount {
        font-size: 1.85rem;
    }
}

.amount-section {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.amount-box {
    text-align: center;
    flex: 1;
}

.amount-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
}

.mode {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .15s ease;
    border: 1px solid transparent;
    cursor: default;
}

/* ------------------------------
   INDIVIDUAL STATUS COLORS
--------------------------------*/

/* OPEN - RED */
.mode.open {
    background-color: #d50c1f;
    color: #fff;
}

.mode.open:hover {
    background-color: #b20a1a;
    box-shadow: 0 2px 6px rgba(213, 12, 31, 0.36);
}

/* CANCELLED - DARK */
.mode.cancelled {
    background-color: #23272b;
    color: #fff;
}

.mode.cancelled:hover {
    background-color: #1b1f22;
    box-shadow: 0 2px 6px rgba(35, 39, 43, 0.35);
}

/* INVOICED - ORANGE */
.mode.invoiced {
    background-color: #e67c0e;
    color: white;
}

.mode.invoiced:hover {
    background-color: #cc6d0d;
    box-shadow: 0 2px 6px rgba(230, 124, 14, 0.35);
    cursor: pointer;
}

/* COMPLETED - YELLOW */
.mode.completed {
    background-color: #ffff00fc;
    color: #000;
}

.mode.completed:hover {
    background-color: #f5f204;
    box-shadow: 0 2px 6px rgba(255, 255, 0, 0.4);
}

/* PAID */
.mode.paid,
.mode.paidf {
    background-color: #28a745;
    color: #fff;
}

.mode.paid:hover,
.mode.paidf:hover {
    background-color: #218838;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.35);
}

/* GENERATE INVOICE - BLUE */
.mode.generate-invoice {
    background-color: #306ebb;
    color: white;
}

.mode.generate-invoice:hover {
    background-color: #255fa6;
    box-shadow: 0 2px 6px rgba(48, 110, 187, 0.35);
    cursor: pointer;
}

/* PRE-PAY - GREY */
.mode.pre-pay {
    background-color: #6c757d;
    color: #fff;
}

.mode.pre-pay:hover {
    background-color: #5c636a;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.35);
}

/* PROCESSED - OUTLINED GREEN */
.mode.processed {
    background-color: #fff;
    color: #28a745;
    border: 1px solid #28a745;
}

.mode.processed:hover {
    background-color: #28a745;
    color: #fff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.35);
}

.cursor-pointer {
    cursor: pointer;
}

.card-icon-circle-gen {
    background-color: var(--primary-lightest-color);
    color: var(--primary-main-color);
}

.card-icon-circle-loss {
    background-color: rgba(255, 228, 228);
    ;
    color: #d9534f;
}

#loadShipperSelect2,
#load_number_carrier {
    height: 40px;
}

.dashboard-stats-container {
    position: relative;
}

.dashboard-more-stats {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    top: 100%;
    left: 0;
    padding: 10px 10px;
    z-index: 1000;
    min-width: 300px;
}

.toggle-stats:hover+.dashboard-more-stats,
.dashboard-more-stats:hover {
    /* display: block; */
    display: flex !important;
}

.dashboard-more-stats .card {
    margin-top: 0;
}

.json-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-left: 20px;
    margin-bottom: 10px;
}

.json-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.json-body {
    padding: 10px 15px;
}

.indent-line {
    border-left: 2px solid #e0e0e0;
    margin-left: 15px;
    padding-left: 15px;
}

.search-modal {
    border-radius: 12px;
    overflow: hidden;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    gap: 10px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
}

.search-group-title {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
}

.search-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    text-decoration: none;
    color: #212529;
    cursor: pointer;
}

.search-item small {
    color: #6c757d;
}

.search-item.active,
.search-item:hover {
    background: var(--primary-focus-color);
}

.search-footer {
    border-top: 1px solid #dee2e6;
    padding: 8px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: #6c757d;
}

.search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.search-recent {
    font-size: 11px;
    color: #0d6efd;
    border: 1px solid #cfe2ff;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Move Apply / Cancel buttons to bottom */
.daterangepicker .drp-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

/* Optional: make buttons consistent */
.daterangepicker .drp-buttons .btn {
    min-width: 90px;
}

.daterangepicker .drp-buttons .btn {
    flex: 1;
}

.daterangepicker .ranges {
    float: unset !important;
}

.filter-dropdown {
    position: relative;
    /* anchor */
}

.filter-panel {
    position: absolute;
    right: 0;
    margin-top: 50px;
    z-index: 1050;
    width: 350px;
    display: none;
}

.loader {
    color: #f89508;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-weight: bold;
    font-size: 50px;
    opacity: 0.8;
}

.loader:before {
    content: "{";
    display: inline-block;
    animation: pulse2 0.4s alternate infinite ease-in-out;
}

.loader:after {
    content: "}";
    display: inline-block;
    animation: pulse2 0.4s 0.3s alternate infinite ease-in-out;
}

@keyframes pulse2 {
    to {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.quote {
    margin-top: 15px;
    padding: 20px 24px;
    border-left: 4px solid #d1d5db;
    /* background: #f9fafb; */
    font-style: italic;
    max-width: 600px;
}

.quote-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 8px;
}

.quote-author {
    display: block;
    color: #6b7280;
    /* gray */
    font-size: 0.95rem;
    font-style: normal;
}

/* 
.fixed-table {
    table-layout: fixed;   
    width: 100%;
}

.fixed-table th,
.fixed-table td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
} */

/* DataTables Default Styles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length input,
.dataTables_wrapper .dataTables_filter select,
.dataTables_wrapper .dataTables_filter input {
    border-color: #e5e5e5;
    outline: none;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_length input:focus,
.dataTables_wrapper .dataTables_filter select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #e5e5e5;
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 15px;
}

.dataTables_wrapper .dt-button {
    background-color: var(--primary-main-color);
    border-color: var(--primary-main-color);
    color: #fff;
}

.dataTables_wrapper .dt-button:hover {
    background-color: var(--primary-main-color) !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e5e5e5;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-main-color) !important;
    color: #fff !important;
    border-color: var(--primary-main-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:hover {
    background: var(--primary-main-color) !important;
    color: #fff !important;
    border-color: var(--primary-main-color) !important;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-color: #e5e5e5;
}

table.dataTable thead th {
    border: 1px solid #e5e5e5;
}

table.dataTable tfoot {
    margin-top: 15px;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    border: 1px solid #e5e5e5;
}

/* Fixed Table Layout */
.fixed-table {
    width: 100%;
}

.fixed-table table {
    /* table-layout: fixed; */
    width: 100%;
}

.fixed-table th,
.fixed-table td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Override Livewire's inline-block ONLY when it has the style attribute */
.fixed-table tbody[style*="display: inline-block"] {
    display: table-row-group !important;
}

/* Skeleton Loading Styles */
.fixed-table .skeleton-table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.fixed-table .skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 4px;
    display: block;
    width: 100%;
    height: 20px;
    margin: 0;
}

.fixed-table .skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: sk-shimmer 1.2s infinite;
}

.fixed-table .skeleton-cell {
    height: 20px;
}

.fixed-table .skeleton-btn {
    height: 28px;
    width: 100px;
}

.fixed-table .mx-auto {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Shimmer Animation */
@keyframes sk-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Add Bootstrap Icon */
/* .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f282"; 
    font-family: "Bootstrap-icons";
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */
.select2-container--default .select2-selection--single .select2-selection__arrow::before {
    content: "\f282";
    /* bi-chevron-down */
    font-family: "Bootstrap-icons";
    font-size: 14px;
    position: absolute;
    top: 50%;
    right: 20%;
    color: black;
    transform: translate(-50%, -50%);
}

.btn-suggestions {
    /* position: fixed; */
    background: linear-gradient(135deg, #6f42c1, #845ef7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    z-index: 1050;
    padding: 2px 6px;
}

.btn-suggestions i {
    font-size: 14px;
}

.btn-suggestions:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.btn-suggestions:active {
    transform: scale(0.95);
}

.darkmode .table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: white !important;
}

.darkmode .table-hover>tbody>tr:hover {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: white !important;
}



/* hero section */
.hero-card {
    /* background: rgba(255, 255, 255, 0.7); */
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* box-shadow: 0 20px 60px rgba(0, 29, 61, 0.08); */
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-main-color), var(--primary-light-color), var(--primary-focus-color));
    /* animation: sk-shimmer 3s ease-in-out infinite; */
}

@keyframes hc-shimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.greeting-wrapper h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-main-color), var(--primary-light-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.greeting-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-main-color);
    font-size: 1.1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: var(--accent-success);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Sales Progress Module */
.sales-module {
    background: linear-gradient(135deg, var(--primary-lightest-color), rgba(255, 255, 255, 0.5));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    min-width: 420px;
    backdrop-filter: blur(10px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.module-title i {
    font-size: 1.5rem;
    color: var(--primary-main-color);
}

.module-badge {
    background: var(--primary-main-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sales-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.darkmode .metric {
    background-color: unset;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-main-color);
    line-height: 1;
}

.metric-target {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-section {
    position: relative;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-main-color);
}

.progress-track {
    height: 16px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-main-color), var(--primary-light-color));
    border-radius: 12px;
    position: relative;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px var(--primary-lightest-color);
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressShine 2.5s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.progress-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-message i {
    color: var(--accent-success);
    font-size: 1rem;
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .sales-module {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .fixed-table {
        overflow: scroll;
    }

    .fixed-table th,
    .fixed-table td {
        word-break: normal;
    }

    .header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .greeting-wrapper h2 {
        font-size: 2rem;
    }

    .hero-card {
        padding: 12px;
    }

    .sales-module {
        padding: 16px;
    }

    .sales-metrics {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .motivation-banner {
        padding: 3rem 2rem;
    }

    .motivation-quote {
        font-size: 1.5rem;
    }
}

/* Skeleton base */
.skeleton {
    pointer-events: none;
}

.skeleton-box {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 12px;
}

/* Shimmer effect */
.skeleton-box::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: sk2-shimmer 1.6s infinite;
}

@keyframes sk2-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Header */
.skeleton-title {
    width: 140px;
    height: 18px;
}

.skeleton-badge {
    width: 60px;
    height: 18px;
    border-radius: 999px;
}

/* Metrics */
.skeleton-label {
    width: 60%;
    height: 10px;
    margin: 0 auto 0.75rem;
}

.skeleton-value {
    width: 80%;
    height: 32px;
    margin: 0 auto 0.5rem;
}

.skeleton-target {
    width: 40%;
    height: 12px;
    margin: 0 auto;
}

/* Progress */
.skeleton-label-lg {
    width: 120px;
    height: 14px;
}

.skeleton-small {
    width: 80px;
    height: 14px;
}

.skeleton-progress {
    height: 16px;
    border-radius: 12px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.skeleton-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: sk-shimmer 1.6s infinite;
}

.skeleton-message {
    width: 100%;
    height: 16px;
}


.score-card {
    padding: 0.25rem;
    transition: transform 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
}

.score-card .card {
    border-radius: 1rem;
    overflow: visible;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.score-card:hover .card {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Ribbon - Straight, No Rotation */
.ribbon {
    position: absolute;
    left: 15px;
    top: 0;
    padding: 12px 16px 18px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    z-index: 10;
    min-width: 2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
    line-height: 1.3;
    transform: rotate(0deg) !important;
}

.ribbon i {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.ribbon-gold {
    background: linear-gradient(180deg, #ffd700 0%, #f4c430 100%);
    animation: pulse-ribbon 2s infinite;
}

.ribbon-silver {
    background: linear-gradient(180deg, #c0c0c0 0%, #d3d3d3 100%);
}

.ribbon-bronze {
    background: linear-gradient(180deg, #cd7f32 0%, #e6a672 100%);
}

.ribbon-default {
    background: linear-gradient(180deg, #0d6efd 0%, #5599ff 100%);
}

@keyframes pulse-ribbon {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(0deg) scale(1.05);
    }
}

.avatar {
    width: 80px !important;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.score-card:hover .avatar {
    transform: scale(1.05);
}

.progress-bar-golden {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% 100%;
    animation: pg-shimmer 2s infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc3545 0%, #f1aeb5 50%, #dc3545 100%);
    background-size: 200% 100%;
    animation: pg-shimmer 2s linear infinite;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.progress-bar.bg-info {
    background: linear-gradient(90deg,
            #0d6efd 0%,
            #9ec5fe 50%,
            #0d6efd 100%);
    background-size: 200% 100%;
    animation: pg-shimmer 2s linear infinite;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}


@keyframes pg-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.daactive-sidebar .icon-logo .img-fluid {
    min-width: 40px;
}

.daactive-sidebar .profile-custom-initials {
    width: 38px;
    height: 38px;
}

.daactive-sidebar .small-img {
    width: 38px !important;
    height: 38px !important;
}


/* Modal Overlay */
.permission-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.permission-modal {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
}

.permission-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Dark Mode */
body.darkmode .permission-modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* Modal Header */
.permission-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.darkmode .permission-modal-header {
    border-bottom-color: #3a3a3a;
}

.permission-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

body.darkmode .permission-modal-title {
    color: #e0e0e0;
}

.permission-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.permission-modal-close:hover {
    background: #f8f9fa;
    color: #212529;
}

body.darkmode .permission-modal-close {
    color: #a0a0a0;
}

body.darkmode .permission-modal-close:hover {
    background: #18223a;
    color: #ffffff;
}

/* Modal Body */
.permission-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Alert */
.permission-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.permission-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

body.darkmode .permission-alert-success {
    background: #1a3d2a;
    color: #7dffb3;
    border-color: #2d5a3d;
}

/* Legend */
.permission-legend {
    padding: 1rem;
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #004085;
}

body.darkmode .permission-legend {
    background: #1a2a3a;
    border-left-color: #4a9eff;
    color: #a0d0ff;
}

.permission-legend strong {
    margin-right: 0.75rem;
}

/* Badges */
.permission-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.permission-badge-grant {
    background: #28a745;
    color: white;
}

body.darkmode .permission-badge-grant {
    background: #1e7e34;
    color: #90ee90;
}

.permission-badge-deny {
    background: #dc3545;
    color: white;
}

body.darkmode .permission-badge-deny {
    background: #a71d2a;
    color: #ffb3b3;
}

.permission-badge-role {
    background: #6c757d;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 3px;
    vertical-align: middle;
}

body.darkmode .permission-badge-role {
    background: #4a4a4a;
}

/* Permission Groups */
.permission-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.permission-group-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

body.darkmode .permission-group-card {
    border-color: #3a3a3a;
    background: #18223a;
}

.permission-group-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: #0066cc;
    border-left: 5px solid #dc3545;
    background: #f8f9fa;
}

body.darkmode .permission-group-header {
    background: #1e1e1e;
    color: #4a9eff;
    border-left-color: #dc3545;
}

.permission-group-body {
    padding: 1rem;
}

/* Permission Items */
.permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.permission-item-grant {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

body.darkmode .permission-item-grant {
    background: rgba(30, 126, 52, 0.2);
    border-color: rgba(30, 126, 52, 0.3);
}

.permission-item-deny {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

body.darkmode .permission-item-deny {
    background: rgba(167, 29, 42, 0.2);
    border-color: rgba(167, 29, 42, 0.3);
}

.permission-item-inherited {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.2);
}

body.darkmode .permission-item-inherited {
    background: rgba(74, 74, 74, 0.2);
    border-color: rgba(74, 74, 74, 0.3);
}

.permission-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permission-name {
    font-size: 0.9rem;
    color: #212529;
}

body.darkmode .permission-name {
    color: #e0e0e0;
}

/* Permission Actions */
.permission-actions {
    display: flex;
    gap: 0.25rem;
}

.permission-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-btn-grant {
    border-color: #28a745;
    color: #28a745;
}

.permission-btn-grant:hover {
    background: #28a745;
    color: white;
}

.permission-btn-grant.active {
    background: #28a745;
    color: white;
}

body.darkmode .permission-btn-grant {
    border-color: #1e7e34;
    color: #90ee90;
}

body.darkmode .permission-btn-grant:hover,
body.darkmode .permission-btn-grant.active {
    background: #1e7e34;
    color: white;
}

.permission-btn-deny {
    border-color: #dc3545;
    color: #dc3545;
}

.permission-btn-deny:hover {
    background: #dc3545;
    color: white;
}

.permission-btn-deny.active {
    background: #dc3545;
    color: white;
}

body.darkmode .permission-btn-deny {
    border-color: #a71d2a;
    color: #ffb3b3;
}

body.darkmode .permission-btn-deny:hover,
body.darkmode .permission-btn-deny.active {
    background: #a71d2a;
    color: white;
}

.permission-btn-reset {
    border-color: #6c757d;
    color: #6c757d;
}

.permission-btn-reset:hover {
    background: #6c757d;
    color: white;
}

body.darkmode .permission-btn-reset {
    border-color: #4a4a4a;
    color: #d0d0d0;
}

body.darkmode .permission-btn-reset:hover {
    background: #4a4a4a;
    color: white;
}

/* Modal Footer */
.permission-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

body.darkmode .permission-modal-footer {
    border-top-color: #3a3a3a;
}

.permission-btn-close {
    padding: 0.5rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.permission-btn-close:hover {
    background: #5a6268;
}

body.darkmode .permission-btn-close {
    background: #4a4a4a;
}

body.darkmode .permission-btn-close:hover {
    background: #5a5a5a;
}

/* Responsive */
@media (max-width: 768px) {
    .permission-groups {
        grid-template-columns: 1fr;
    }

    .permission-modal {
        width: 95%;
    }
}

/* ============================================
   SIMPLE PROFESSIONAL DASHBOARD STYLES
   ============================================ */

/* -------------------- Base Card Styles -------------------- */
.dashboard-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* -------------------- Metric Boxes -------------------- */
.metric-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.metric-box-primary {
    background: #f0f7ff;
    border-color: #d6e9ff;
}

.metric-label {
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.metric-change {
    display: inline-block;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.metric-change-up {
    background: #d4edda;
    color: #155724;
}

.metric-change-down {
    background: #f8d7da;
    color: #721c24;
}

/* -------------------- Manager Section -------------------- */
.manager-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.manager-stats {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.total-card.total-card {
    background: var(--primary-lightest-color);
}

.team-name {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.team-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* -------------------- Financial Cards -------------------- */
.finance-box {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.finance-box-receivable {
    border-color: #28a745;
    background: #f8fff9;
}

.finance-box-payable {
    border-color: #ffc107;
    background: #fffef8;
}

.finance-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.finance-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.finance-icon-success {
    background: #d4edda;
    color: #28a745;
}

.finance-icon-warning {
    background: #fff3cd;
    color: #ffc107;
}

.finance-stat {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.finance-stat-label {
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
}

.finance-stat-value {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.finance-stat-value a {
    color: #1a1a1a;
    text-decoration: none;
}

.finance-stat-value a:hover {
    color: #007bff;
}

/* -------------------- Dues Section -------------------- */
.dues-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.dues-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
}

.dues-stat-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.dues-amount {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.dues-amount a {
    color: #1a1a1a;
    text-decoration: none;
}

.dues-amount a:hover {
    color: #007bff;
}

.dues-label {
    font-size: 13px;
    color: #666666;
    margin-bottom: 12px;
}

.dues-count {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

/* -------------------- Chart Container -------------------- */
.chart-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* -------------------- Export Section -------------------- */
.export-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
}

.export-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* -------------------- Tab Styles -------------------- */
.simple-tabs .nav-link {
    color: #666666;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 14px;
}

.simple-tabs .nav-link:hover {
    color: #007bff;
    background: transparent;
}

.simple-tabs .nav-link.active {
    color: #007bff;
    background: transparent;
    border-bottom-color: #007bff;
}

/* -------------------- Spacing Utilities -------------------- */
.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.my-20 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.p-30 {
    padding: 30px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
    .dashboard-card {
        padding: 16px;
    }

    .metric-value {
        font-size: 20px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

.darkmode .dashboard-card {
    background: #18223a;
    border-color: #2d2d2d;
}

.darkmode .dashboard-card-title {
    color: #e0e0e0;
    border-bottom-color: #2d2d2d;
}

/* -------------------- Dark Mode Metric Boxes -------------------- */
.darkmode .metric-box {
    background: #18223a;
    border-color: #3a3a3a;
}

.darkmode .metric-box-primary {
    background: #18223a;
    border-color: #2d3f5f;
}

.darkmode .metric-label {
    color: #a0a0a0;
}

.darkmode .metric-value {
    color: #e0e0e0;
}

.darkmode .metric-change-up {
    background: #1e4620;
    color: #7bc67e;
}

.darkmode .metric-change-down {
    background: #4a1c1c;
    color: #f48989;
}

/* -------------------- Dark Mode Manager Section -------------------- */
.darkmode .manager-box {
    background: #18223a;
    border-color: #2d2d2d;
}

.darkmode .manager-stats {
    background: #18223a;
}

.darkmode .team-card {
    background: #18223a;
    border-color: #3a3a3a;
}

.darkmode .team-name {
    color: #b0b0b0;
}

.darkmode .team-amount {
    color: #e0e0e0;
}

/* -------------------- Dark Mode Financial Cards -------------------- */
.darkmode .finance-box {
    background: #1e1e1e;
    border-color: #2d2d2d;
}

.darkmode .finance-box-receivable {
    border-color: #28a745;
    background: #1a2e1f;
}

.darkmode .finance-box-payable {
    border-color: #ffc107;
    background: #2e2a1a;
}

.darkmode .finance-title {
    color: #e0e0e0;
}

.darkmode .finance-icon-success {
    background: #1e4620;
    color: #7bc67e;
}

.darkmode .finance-icon-warning {
    background: #3d3520;
    color: #ffd54f;
}

.darkmode .finance-stat {
    background: #18223a;
    border-color: #3a3a3a;
}

.darkmode .finance-stat-label {
    color: #a0a0a0;
}

.darkmode .finance-stat-value {
    color: #e0e0e0;
}

.darkmode .finance-stat-value a {
    color: #e0e0e0;
}

.darkmode .finance-stat-value a:hover {
    color: #66b3ff;
}

/* -------------------- Dark Mode Dues Section -------------------- */
.darkmode .dues-box {
    background: #18223a;
    border-color: #2d2d2d;
}

.darkmode .dues-title {
    color: #e0e0e0;
}

.darkmode .dues-stat-box {
    background: #18223a;
}

.darkmode .dues-amount {
    color: #e0e0e0;
}

.darkmode .dues-amount a {
    color: #e0e0e0;
}

.darkmode .dues-amount a:hover {
    color: #66b3ff;
}

.darkmode .dues-label {
    color: #a0a0a0;
}

.darkmode .dues-count {
    color: #e0e0e0;
}

/* -------------------- Dark Mode Chart Container -------------------- */
.darkmode .chart-box {
    background: #18223a;
    border-color: #2d2d2d;
}

.darkmode .chart-title {
    color: #e0e0e0;
}

/* -------------------- Dark Mode Export Section -------------------- */
.darkmode .export-box {
    background: #18223a;
    border-color: #3a3a3a;
}

.darkmode .export-title {
    color: #e0e0e0;
}

/* -------------------- Dark Mode Tab Styles -------------------- */
.darkmode .simple-tabs .nav-link {
    color: #a0a0a0;
}

.darkmode .simple-tabs .nav-link:hover {
    color: #66b3ff;
}

.darkmode .simple-tabs .nav-link.active {
    color: #66b3ff;
    border-bottom-color: #66b3ff;
}

/* -------------------- Dark Mode Text Colors -------------------- */
.darkmode h1,
.darkmode h2,
.darkmode h3,
.darkmode h4,
.darkmode h5,
.darkmode h6 {
    color: #e0e0e0;
}

.darkmode .text-body {
    color: #e0e0e0 !important;
}

.darkmode strong {
    color: #e0e0e0;
}

.darkmode a {
    color: #66b3ff;
}

.darkmode a:hover {
    color: #99ccff;
}