.metric-card {
    border-left: 4px solid #5b5fef;
}

.table-responsive {
    border-radius: 0.5rem;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --app-header-h: 56px;
    --app-footer-h: 56px;
    --admin-sidebar-w: 240px;
    --admin-sidebar-gap: 0;
    --admin-content-pad: 12px;
}

.app-bg {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    min-height: 100vh;
    padding-top: var(--app-header-h);
    padding-bottom: var(--app-footer-h);
}

.app-navbar {
    background: linear-gradient(90deg, #1f2a44 0%, #2b3a67 45%, #4a5bb9 100%);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
}

.app-navbar .navbar-toggler {
    box-shadow: none;
}

.app-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.nav-action-group .btn {
    white-space: nowrap;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.nav-main-links .nav-link {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-main-links {
    margin-left: 0.75rem;
}

.nav-main-links .nav-link:hover,
.nav-main-links .nav-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.app-logo {
    height: 34px;
    width: 34px;
    object-fit: cover;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
}

.app-footer {
    background: linear-gradient(90deg, #1a2238 0%, #2b3259 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    height: var(--app-footer-h);
}

.hero-banner {
    border-radius: 1rem;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(26, 34, 56, 0.9), rgba(74, 91, 185, 0.5)), url("https://images.unsplash.com/photo-1610030469983-98e550d6193c?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    padding: 2rem;
}

.home-feature-img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.feature-visual {
    min-height: 300px;
    border-radius: 0.9rem;
    overflow: hidden;
    background-image: linear-gradient(120deg, rgba(18, 26, 49, 0.85), rgba(74, 91, 185, 0.6)),
        url("https://images.unsplash.com/photo-1602810318383-e386cc2a3ccf?auto=format&fit=crop&w=1200&q=80");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.feature-visual-overlay {
    color: #fff;
    padding: 1rem 1.1rem;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 18, 35, 0.65) 100%);
}

.feature-chip {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 0.65rem;
}

.home-gallery-img {
    height: 180px;
    object-fit: cover;
}

.process-step {
    border: 1px solid #dbe4ff;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    background: #f8fbff;
    height: 100%;
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #4a5bb9;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.process-step p {
    margin: 0;
    font-weight: 600;
    color: #2b365a;
}

.process-step .process-step-note {
    font-weight: 400;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.35rem !important;
}

.navbar-brand {
    font-weight: 700;
}

.admin-shell {
    position: relative;
    min-height: 70vh;
}

.admin-sidebar {
    background: radial-gradient(circle at top left, #283657 0, #161b2e 55%, #101423 100%);
    border-radius: 0;
    padding: 0.7rem 0.55rem;
}

.admin-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0.85rem 0.95rem;
}

.admin-sidebar .offcanvas-title {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-sidebar .offcanvas-body {
    display: block;
}

.admin-sidebar-fixed {
    width: var(--admin-sidebar-w);
    position: fixed;
    top: var(--app-header-h);
    left: 0;
    bottom: var(--app-footer-h);
    overflow-y: auto;
}

.admin-content-wrap {
    margin-left: var(--admin-sidebar-w);
    padding: 1.25rem var(--admin-content-pad) 1.25rem var(--admin-content-pad);
}

@media (min-width: 992px) {
    .customer-form-panel {
        flex: 0 0 0;
        max-width: 0;
        padding: 0;
    }

    .customer-form-fixed {
        position: fixed;
        top: calc(var(--app-header-h) + 12px);
        right: 16px;
        bottom: calc(var(--app-footer-h) + 12px);
        width: 280px;
        z-index: 1010;
        overflow: auto;
    }

    .customers-list-wrap {
        flex: 0 0 calc(100% - 304px);
        max-width: calc(100% - 304px);
        margin-right: 0;
    }
}

.admin-sidebar-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-sidebar-subtitle {
    color: #a3b2e0;
    font-size: 0.75rem;
}

.admin-sidebar-header {
    padding: 0;
}

.admin-sidebar-avatar {
    height: 34px;
    width: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 1.15rem;
}

.admin-sidebar-section-label {
    color: #7f8ab8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.45rem 0.2rem;
}

.admin-link {
    display: block;
    color: #d5def7;
    text-decoration: none;
    padding: 0.43rem 0.45rem;
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.87rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-link:hover,
.admin-link.active {
    background: linear-gradient(90deg, #4a5bb9 0%, #6f7bff 100%);
    color: #fff;
}

.admin-link i {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    :root {
        --app-header-h: 60px;
    }

    .app-navbar .container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .app-navbar .navbar-brand {
        font-size: 0.94rem;
    }

    .app-navbar .navbar-toggler {
        padding: 0.22rem 0.4rem;
    }

    .admin-sidebar-fixed {
        --bs-offcanvas-width: min(85vw, 300px);
        top: var(--app-header-h);
        bottom: var(--app-footer-h);
        height: auto;
        border-radius: 0;
        padding: 0.75rem 0.6rem;
        overflow-y: auto;
    }

    .admin-sidebar-fixed.showing,
    .admin-sidebar-fixed.show:not(.hiding) {
        visibility: visible;
    }

    .admin-content-wrap {
        margin-left: 0;
        padding: 0.5rem 10px;
    }

    .admin-content-wrap > .d-lg-none {
        margin-bottom: 0.4rem !important;
    }

    .admin-content-wrap > .d-lg-none .btn {
        padding: 0.34rem 0.58rem;
        font-size: 0.79rem;
    }

    .customer-form-panel {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
    }

    .customers-list-wrap {
        margin-right: 0 !important;
    }
}

.admin-content .card {
    border: none;
    border-radius: 0.9rem;
}

.admin-alert-stack {
    position: fixed;
    top: calc(var(--app-header-h) + 10px);
    right: 14px;
    z-index: 1085;
    width: min(92vw, 380px);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.admin-alert-stack .alert {
    margin: 0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-alert-stack .alert.alert-hiding {
    opacity: 0;
    transform: translateX(10px);
}

.chart-box {
    height: 220px;
}

.auth-wrap {
    height: calc(100vh - var(--app-header-h) - var(--app-footer-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.password-toggle i {
    width: 1.1rem;
    display: inline-block;
    text-align: center;
}

.action-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-icon {
    border: 0;
    background: transparent;
    padding: 2px 4px;
    line-height: 1;
    color: #4a5bb9;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
}

.action-icon i {
    font-size: 1.05rem;
}

.action-icon:hover,
.action-icon:focus {
    background: rgba(74, 91, 185, 0.12);
    color: #3948a6;
    outline: none;
}

.action-delete {
    color: #dc2626;
}

.action-delete:hover,
.action-delete:focus {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.search-spinner {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(100, 116, 139, 0.35);
    border-top-color: rgba(74, 91, 185, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-table {
    --table-head-bg: linear-gradient(90deg, #eef2ff 0%, #e3ecff 100%);
}

.profile-table thead th {
    background: var(--table-head-bg);
    color: #1f2a44;
    font-weight: 700;
    border-bottom: 2px solid #cdd8ff;
    white-space: nowrap;
}

.profile-table tbody tr {
    border-color: #edf1ff;
}

.profile-table tbody tr:hover {
    background: #f7f9ff;
}

.profile-table td,
.profile-table th {
    vertical-align: middle;
}

.profile-table tfoot th {
    background: #f3f6ff;
    color: #22345f;
    border-top: 2px solid #cdd8ff;
}

.profile-table-search {
    position: relative;
    width: min(100%, 280px);
}

.profile-table-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #65759f;
    pointer-events: none;
}

.profile-table-search .form-control {
    border-color: #cdd8ff;
    padding-left: 2rem;
    border-radius: 999px;
    background: #f8faff;
}

.profile-table-search .form-control:focus {
    border-color: #7587d9;
    box-shadow: 0 0 0 0.2rem rgba(74, 91, 185, 0.16);
    background: #fff;
}

.profile-section .card-header {
    border-bottom: 1px solid rgba(31, 42, 68, 0.08);
    padding: 0.75rem 1rem;
}

.profile-section--orders .card-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.10) 55%, rgba(255, 255, 255, 0) 100%);
}

.profile-section--payments .card-header {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.10) 55%, rgba(255, 255, 255, 0) 100%);
}

.profile-section--ledger .card-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(236, 72, 153, 0.08) 55%, rgba(255, 255, 255, 0) 100%);
}

.profile-section--history .card-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.14) 0%, rgba(99, 102, 241, 0.08) 55%, rgba(255, 255, 255, 0) 100%);
}

.profile-section .section-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(31, 42, 68, 0.08);
    color: #2b3a67;
}

.badge-soft {
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.badge-soft-primary { background: rgba(74, 91, 185, 0.14); color: #3948a6; border-color: rgba(74, 91, 185, 0.20); }
.badge-soft-secondary { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.18); }
.badge-soft-success { background: rgba(16, 185, 129, 0.14); color: #047857; border-color: rgba(16, 185, 129, 0.20); }
.badge-soft-info { background: rgba(6, 182, 212, 0.14); color: #0e7490; border-color: rgba(6, 182, 212, 0.20); }
.badge-soft-warning { background: rgba(245, 158, 11, 0.16); color: #92400e; border-color: rgba(245, 158, 11, 0.22); }
.badge-soft-danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; border-color: rgba(239, 68, 68, 0.22); }

.customer-hero-card {
    background: radial-gradient(circle at top left, #4a5bb9 0, #1f2937 55%, #020617 100%);
    color: #e5e7eb;
    border: none;
    border-radius: 1rem;
}

.customer-hero-card .card-body {
    padding: 1.25rem 1.4rem;
}

.customer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.customer-avatar i {
    font-size: 1.4rem;
}

.customer-code-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

.customer-contact div + div {
    margin-top: 0.1rem;
}

.customer-metrics {
    min-width: 210px;
}

.customer-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.customer-actions .btn {
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.customer-actions .dropdown-menu {
    border-radius: 0.75rem;
}

.metric-pill {
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.metric-pill--orders {
    background: rgba(59, 130, 246, 0.16);
    color: #eff6ff;
}

.metric-pill--outstanding {
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.customer-hero-card .small {
    font-size: 0.8rem;
}

.customer-hero-card .customer-contact,
.customer-hero-card .customer-notes {
    line-height: 1.4;
}

.customer-hero-card .badge-soft-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.9);
}

.order-hero-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(120deg, #ffffff 0%, #f5f8ff 100%);
}

.order-hero-card .card-body {
    padding: 0.8rem 0.9rem !important;
}

.order-hero-card .mb-3 {
    margin-bottom: 0.55rem !important;
}

.order-hero-card .small {
    font-size: 0.74rem;
}

.order-hero-card .fs-5 {
    font-size: 1rem !important;
}

.order-hero-card .badge {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.72rem;
}

.order-hero-card .row {
    --bs-gutter-y: 0.45rem;
    --bs-gutter-x: 0.45rem;
}

.order-meta-chip {
    border: none;
    border-radius: 0.75rem;
    padding: 0.38rem 0.5rem;
    background: transparent;
    height: 100%;
}

.order-meta-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5b6b94;
    font-weight: 700;
    margin-bottom: 0.08rem;
}

.order-meta-value {
    color: #1f2a44;
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1.2;
    word-break: break-word;
}

.order-hero-card .row > [class*="col-"]:nth-child(1) .order-meta-label { color: #1d4ed8; }
.order-hero-card .row > [class*="col-"]:nth-child(2) .order-meta-label { color: #15803d; }
.order-hero-card .row > [class*="col-"]:nth-child(3) .order-meta-label { color: #b45309; }
.order-hero-card .row > [class*="col-"]:nth-child(4) .order-meta-label { color: #b91c1c; }
.order-hero-card .row > [class*="col-"]:nth-child(5) .order-meta-label { color: #6d28d9; }
.order-hero-card .row > [class*="col-"]:nth-child(6) .order-meta-label { color: #0e7490; }
.order-hero-card .row > [class*="col-"]:nth-child(7) .order-meta-label { color: #be185d; }
.order-hero-card .row > [class*="col-"]:nth-child(8) .order-meta-label { color: #0369a1; }


.order-sections .order-section-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.9rem;
    overflow: hidden;
}

.order-sections {
    margin-top: 0.25rem;
}

.order-sections > [class*="col-"] {
    margin-bottom: 0.15rem;
}

.order-sections .card-header,
.order-section-card .card-header {
    border-bottom: 1px solid rgba(31, 42, 68, 0.08);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
    padding: 0.52rem 0.78rem;
}

.order-section-card .card-body {
    padding: 0.54rem 0.72rem;
}

.order-section-card .table-responsive {
    padding: 0.12rem 0.28rem 0.28rem;
}

.order-details-table thead th {
    background: #f1f5ff;
    color: #334155;
    font-weight: 700;
    border-bottom: 1px solid #d8e0fb;
    padding: 0.38rem 0.45rem;
    font-size: 0.76rem;
    vertical-align: middle;
}

.order-details-table tbody th {
    width: 28%;
    color: #475569;
    font-weight: 600;
    padding: 0.34rem 0.45rem;
    font-size: 0.78rem;
    vertical-align: middle;
}

.order-details-table tbody td {
    color: #1f2937;
    font-weight: 500;
    padding: 0.34rem 0.45rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.2;
}

.order-details-table tbody tr {
    border-color: #edf2ff;
}

.order-details-table tbody tr:hover {
    background: #f8faff;
}

.order-section-card h2.h6 {
    font-size: 0.82rem;
    line-height: 1.15;
    margin-bottom: 0;
}

.order-section-card .section-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 0.86rem;
}

.order-sections > .col-lg-6:nth-child(1) .card-header h2 { color: #1d4ed8; }
.order-sections > .col-lg-6:nth-child(2) .card-header h2 { color: #15803d; }
.order-sections > .col-lg-6:nth-child(3) .card-header h2 { color: #b45309; }
.order-sections > .col-lg-6:nth-child(4) .card-header h2 { color: #6d28d9; }

.admin-content > .order-section-card.mt-3 .card-header h2 {
    color: #0e7490;
}

.admin-content table select[name="new_status"].form-select-sm {
    font-size: 0.74rem;
    padding-top: 0.16rem;
    padding-bottom: 0.16rem;
    padding-left: 0.4rem;
    min-height: 26px;
    height: 26px;
    width: 92px;
}

.create-order-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.create-order-modal .modal-header {
    background: linear-gradient(90deg, #1f2a44 0%, #3d4fa8 100%);
    color: #fff;
    border-bottom: none;
}

.create-order-modal .modal-header .btn-close {
    filter: invert(1);
}

.create-order-modal .modal-body {
    background: #f8faff;
}

.create-order-modal .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #3f4f78;
}

.create-order-section {
    background: #fff;
    border: 1px solid #dde6ff;
    border-radius: 0.8rem;
    padding: 0.75rem;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.06);
}

.create-order-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1f2a44;
    margin-bottom: 0.55rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed #d5ddf6;
}

.payments-list-body {
    padding: 0.65rem 0.75rem;
}

.payments-list-body .h5 {
    font-size: 0.96rem;
}

.payments-list-body .form-control.form-control-sm,
.payments-list-body .btn.btn-sm {
    font-size: 0.78rem;
}

.payments-list-body .table thead th {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.4rem 0.45rem;
}

.payments-list-body .table tbody td {
    font-size: 0.78rem;
    padding: 0.38rem 0.45rem;
    line-height: 1.2;
}

.payments-list-body .badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.38rem;
}

.payments-form-body {
    padding: 0.7rem 0.78rem;
}

.payments-form-body .h5 {
    font-size: 0.96rem;
    margin-bottom: 0.55rem !important;
}

.payments-form-body .form-label {
    font-size: 0.74rem;
    margin-bottom: 0.2rem !important;
    font-weight: 700;
}

.payments-form-body .form-control,
.payments-form-body .form-select {
    font-size: 0.8rem;
    padding: 0.36rem 0.5rem;
}

.payments-form-body textarea.form-control {
    min-height: 74px;
}

.payments-form-body .btn {
    font-size: 0.8rem;
    padding: 0.38rem 0.55rem;
}

@media (max-width: 767.98px) {
    .order-sections .card-header,
    .order-section-card .card-header {
        padding: 0.46rem 0.6rem;
    }

    .order-section-card .card-body {
        padding: 0.5rem 0.6rem;
    }

    .order-section-card .table-responsive {
        padding: 0.1rem 0.2rem 0.24rem;
    }
}

@media (min-width: 768px) {
    .customer-hero-card .d-flex.flex-column.gap-2 {
        max-width: 70%;
    }
}

@media (max-width: 767.98px) {
    .customer-hero-card .card-body {
        padding: 1rem 1rem;
    }

    .customer-metrics {
        width: 100%;
        justify-content: center;
    }

    .metric-pill {
        flex: 1 1 0;
    }
}

.expenses-summary-row > [class*="col-"] {
    align-items: stretch;
}

.expenses-summary-card {
    min-height: 92px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expenses-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.4rem rgba(34, 57, 94, 0.12) !important;
}

.expenses-summary-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0.62rem 0.8rem;
}

.expenses-summary-card .small {
    letter-spacing: 0.02em;
    color: #5e6f8f !important;
    font-size: 0.69rem;
    margin-bottom: 0.2rem !important;
}

.expenses-summary-card .h4 {
    color: #1f2a3d;
    font-size: 1.2rem;
}

.expenses-summary-card--overall {
    background: linear-gradient(135deg, #f4f8ff 0%, #eaf2ff 100%);
}

.expenses-summary-card--view {
    background: linear-gradient(135deg, #f8f6ff 0%, #efe9ff 100%);
}

.expenses-summary-card--action {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
}

.expenses-summary-card--action .btn {
    font-weight: 600;
    border-radius: 10px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .expenses-summary-card {
        min-height: 84px;
    }
}

.reports-hero {
    border: 1px solid #e6ebf4;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.reports-kpi-card {
    border-left-width: 5px;
    border-left-color: #4a5bb9;
    border-radius: 0.85rem;
}

.reports-kpi-card .card-body {
    padding: 0.88rem 0.95rem;
}

.reports-kpi-card small {
    display: block;
    color: #5d6d8a;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reports-kpi-card h4 {
    margin-bottom: 0;
    font-weight: 700;
    color: #1f2a3d;
}

.reports-chart-lg {
    height: 280px;
}

.reports-chart-sm {
    height: 240px;
}

.reports-mini-summary .card-body {
    padding: 0.8rem;
}

.reports-filters {
    width: 100%;
}

.reports-filters .form-select-sm,
.reports-filters .form-control-sm {
    min-width: 0;
}

.reports-export-btn {
    padding: 0.18rem 0.45rem;
    font-size: 0.72rem;
}

.dashboard-pipeline-card .card-body {
    padding: 0.95rem 1rem;
}

.dashboard-pipeline-pill {
    height: 100%;
    border: 1px solid #dbe4ff;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border-radius: 0.8rem;
    padding: 0.65rem 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
}

.dashboard-pipeline-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #5e6f8f;
}

.dashboard-pipeline-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2a3d;
    line-height: 1.05;
}

.dashboard-pipeline > .col:nth-child(1) .dashboard-pipeline-pill { background: linear-gradient(135deg, #f4f8ff 0%, #eaf2ff 100%); }
.dashboard-pipeline > .col:nth-child(2) .dashboard-pipeline-pill { background: linear-gradient(135deg, #f2fbff 0%, #e7f7ff 100%); }
.dashboard-pipeline > .col:nth-child(3) .dashboard-pipeline-pill { background: linear-gradient(135deg, #fbf7ff 0%, #f1e9ff 100%); }
.dashboard-pipeline > .col:nth-child(4) .dashboard-pipeline-pill { background: linear-gradient(135deg, #fff8ee 0%, #fff0d8 100%); }
.dashboard-pipeline > .col:nth-child(5) .dashboard-pipeline-pill { background: linear-gradient(135deg, #f1fff3 0%, #e4ffe9 100%); }

@media (max-width: 575.98px) {
    .dashboard-pipeline-pill {
        padding: 0.6rem 0.55rem;
    }
    .dashboard-pipeline-value {
        font-size: 1.15rem;
    }
}

/* Orders list: color full row by status */
.admin-content table.table tbody tr[data-status] {
    /* Force same color even with table-striped */
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-hover-bg: transparent;
}

.admin-content table.table tbody tr[data-status="Order"] {
    --bs-table-bg: rgba(59, 130, 246, 0.14);
    --bs-table-striped-bg: rgba(59, 130, 246, 0.14);
}

.admin-content table.table tbody tr[data-status="Cutting"] {
    --bs-table-bg: rgba(14, 165, 233, 0.14);
    --bs-table-striped-bg: rgba(14, 165, 233, 0.14);
}

.admin-content table.table tbody tr[data-status="Stitching"] {
    --bs-table-bg: rgba(168, 85, 247, 0.13);
    --bs-table-striped-bg: rgba(168, 85, 247, 0.13);
}

.admin-content table.table tbody tr[data-status="Ready"] {
    --bs-table-bg: rgba(245, 158, 11, 0.15);
    --bs-table-striped-bg: rgba(245, 158, 11, 0.15);
}

.admin-content table.table tbody tr[data-status="Delivered"] {
    --bs-table-bg: rgba(34, 197, 94, 0.14);
    --bs-table-striped-bg: rgba(34, 197, 94, 0.14);
}

.admin-content table.table tbody tr[data-status] > * {
    background-color: var(--bs-table-bg) !important;
}

.admin-content table.table tbody tr[data-status] a {
    color: inherit;
}

.admin-content table.table tbody tr[data-status] a.orders-row-link {
    color: #1d4ed8 !important;
}

.admin-content table.table tbody tr[data-status] a.orders-row-link:hover {
    color: #1e40af !important;
}

/* Status select: match the same status colors */
.admin-content select.status-select[data-status] {
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    min-width: 118px;
}

.admin-content select.status-select[data-status="Order"] {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.30);
    color: #1e3a8a;
}

.admin-content select.status-select[data-status="Cutting"] {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.30);
    color: #075985;
}

.admin-content select.status-select[data-status="Stitching"] {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.30);
    color: #6b21a8;
}

.admin-content select.status-select[data-status="Ready"] {
    background: rgba(245, 158, 11, 0.17);
    border-color: rgba(245, 158, 11, 0.32);
    color: #92400e;
}

.admin-content select.status-select[data-status="Delivered"] {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.30);
    color: #166534;
}

/* Color each option in the status list (browser support varies) */
.admin-content select.status-select option[value="Order"] {
    background: rgba(59, 130, 246, 0.18);
    color: #1e3a8a;
}

.admin-content select.status-select option[value="Cutting"] {
    background: rgba(14, 165, 233, 0.18);
    color: #075985;
}

.admin-content select.status-select option[value="Stitching"] {
    background: rgba(168, 85, 247, 0.18);
    color: #6b21a8;
}

.admin-content select.status-select option[value="Ready"] {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.admin-content select.status-select option[value="Delivered"] {
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
}

/* Orders table: highlight Total and Balance columns */
.admin-content table th.orders-col-total {
    background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 100%);
    color: #1e3a8a;
}

.admin-content table th.orders-col-advance {
    background: linear-gradient(135deg, #eafaf0 0%, #d1fae5 100%);
    color: #166534;
}

.admin-content table th.orders-col-balance {
    background: linear-gradient(135deg, #fff3df 0%, #ffe4bf 100%);
    color: #9a3412;
}

.admin-content table td.orders-col-advance {
    font-weight: 700;
    color: #15803d;
}

.admin-content table td.orders-col-total {
    font-weight: 700;
    color: #1d4ed8;
}

.admin-content table td.orders-col-balance {
    font-weight: 700;
    color: #b45309;
}

.orders-filter-form .orders-filter-search {
    width: 285px;
}

.orders-filter-form .orders-filter-status {
    width: 145px;
}

.orders-toolbar {
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.customer-orders-card .card-body {
    padding: 1rem 1rem;
}

.customer-orders-table thead th {
    background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    white-space: nowrap;
}

.customer-orders-table tbody tr > * {
    border-color: #dbe4ff;
}

.customer-status-track {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.customer-status-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d6e0ef;
    display: inline-block;
}

.customer-status-step.active {
    background: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14);
}

