html,
body {
    background: #f4f7fb;
}

.sidebar-nav-wrapper {
    background: linear-gradient(180deg, #0f1d33 0%, #111827 72%, #0b1220 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 18px 0 45px rgba(15, 29, 51, 0.13);
}

.sidebar-nav-wrapper .navbar-logo {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav-wrapper .navbar-logo img {
    max-height: 54px !important;
    object-fit: contain;
}

.sidebar-nav {
    padding: 18px 14px;
}

.sidebar-nav ul li {
    margin-bottom: 6px !important;
}

.sidebar-nav ul li a {
    gap: 12px;
    min-height: 44px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.74) !important;
    font-weight: 700;
    letter-spacing: 0;
    padding: 10px 14px !important;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active,
.sidebar-nav ul li a[aria-expanded="true"] {
    color: #fff !important;
    background: rgba(213, 150, 33, 0.16);
    box-shadow: inset 3px 0 0 #d59621;
}

.sidebar-nav ul li a .icon {
    width: 22px;
    margin-right: 0 !important;
    color: #d59621;
    text-align: center;
}

.sidebar-nav .dropdown-nav {
    margin: 6px 0 10px 34px;
    padding: 6px 0 6px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-nav .dropdown-nav a {
    min-height: 36px;
    padding: 8px 12px !important;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.64) !important;
}

.promo-box {
    margin: 18px;
    border: 1px solid rgba(213, 150, 33, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.main-wrapper {
    background:
        radial-gradient(circle at top right, rgba(213, 150, 33, 0.08), transparent 26rem),
        #f4f7fb;
}

.header {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 29, 51, 0.08);
    box-shadow: 0 10px 30px rgba(15, 29, 51, 0.04);
}

.header .header-search form {
    min-width: min(430px, 42vw);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 29, 51, 0.04);
}

.header .header-search input {
    height: 42px;
    font-size: 0.92rem;
}

.header .main-btn.primary-btn {
    border: 0;
    border-radius: 999px;
    background: #0f1d33 !important;
    box-shadow: 0 12px 24px rgba(15, 29, 51, 0.16);
}

.angaza-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
}

.angaza-topbar-icon {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: #0f1d33;
    background: #fff;
}

.angaza-topbar-icon::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d59621;
}

.profile-info .info {
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
}

.profile-info .image img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.profile-info h6 {
    margin-bottom: 0;
    color: #0f1d33;
}

.profile-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    padding: 22px clamp(14px, 2vw, 28px) 34px;
}

.angaza-dashboard {
    color: #0f1d33;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(15, 29, 51, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 29, 51, 0.96), rgba(6, 52, 60, 0.94)),
        #0f1d33;
    box-shadow: 0 24px 50px rgba(15, 29, 51, 0.16);
    color: #fff;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #f5c061;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0;
}

.dashboard-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
}

.dashboard-date-card {
    min-width: 190px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-date-card span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-date-card strong {
    color: #fff;
    font-size: 1.15rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.quick-action-card,
.stat-card,
.chart-card,
.dashboard-table-card,
.module-card {
    border: 1px solid rgba(15, 29, 51, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 29, 51, 0.06);
}

.quick-action-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    color: #0f1d33;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action-card:hover {
    color: #0f1d33;
    transform: translateY(-3px);
    border-color: rgba(213, 150, 33, 0.34);
    box-shadow: 0 20px 46px rgba(15, 29, 51, 0.10);
}

.quick-action-icon,
.stat-icon,
.module-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: rgba(213, 150, 33, 0.13);
    color: #b87911;
    font-size: 1.2rem;
}

.quick-action-card strong {
    display: block;
    font-size: 0.94rem;
}

.quick-action-card span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -52px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(15, 29, 51, 0.04);
}

.stat-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.stat-label {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-value {
    margin: 8px 0 4px;
    color: #0f1d33;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1;
}

.stat-description {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.tone-green .stat-icon { background: rgba(16, 185, 129, 0.13); color: #059669; }
.tone-orange .stat-icon { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.tone-blue .stat-icon { background: rgba(59, 130, 246, 0.13); color: #2563eb; }
.tone-purple .stat-icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.tone-red .stat-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.tone-gold .stat-icon { background: rgba(213, 150, 33, 0.14); color: #b87911; }
.tone-navy .stat-icon { background: rgba(15, 29, 51, 0.10); color: #0f1d33; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 16px;
    margin-bottom: 18px;
}

.chart-card,
.dashboard-table-card,
.module-card {
    padding: 18px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.card-title-row h2,
.card-title-row h3 {
    margin: 0;
    color: #0f1d33;
    font-size: 1rem;
    font-weight: 900;
}

.card-title-row a {
    color: #b87911;
    font-size: 0.84rem;
    font-weight: 900;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 230px;
    padding: 14px 4px 0;
}

.bar-item {
    display: grid;
    grid-template-rows: 1fr auto;
    flex: 1;
    min-width: 0;
    height: 100%;
    text-align: center;
}

.bar-track {
    display: flex;
    align-items: end;
    min-height: 0;
    border-radius: 999px 999px 10px 10px;
    background: #f1f5f9;
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    min-height: 8px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, #d59621, #0f1d33);
}

.bar-label {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
}

.chart-summary {
    color: #64748b;
    font-size: 0.86rem;
}

.donut-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 220px;
}

.donut-chart {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 999px;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.legend-list {
    display: grid;
    gap: 9px;
}

.legend-item,
.table-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.legend-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.legend-value {
    color: #0f1d33;
    font-weight: 900;
}

.list-bar {
    display: grid;
    gap: 12px;
}

.list-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.list-bar-track {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.list-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f1d33, #d59621);
}

.dashboard-tables-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.table-list {
    display: grid;
    gap: 10px;
}

.table-row {
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fbfdff;
}

.table-row-title {
    display: block;
    color: #0f1d33;
    font-weight: 900;
}

.table-row-subtitle {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.8rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 6px 9px;
    background: #eef2f7;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-badge.status-active,
.status-badge.status-approved,
.status-badge.status-paid,
.status-badge.status-completed,
.status-badge.status-completed,
.status-badge.status-delivered,
.status-badge.status-order_completed,
.status-badge.status-order_delivered {
    background: rgba(16, 185, 129, 0.13);
    color: #047857;
}

.status-badge.status-pending,
.status-badge.status-payment_pending,
.status-badge.status-order_pending {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.status-badge.status-failed,
.status-badge.status-rejected,
.status-badge.status-cancelled,
.status-badge.status-order_cancelled {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
}

.status-badge.status-processing,
.status-badge.status-order_processing,
.status-badge.status-in_transit,
.status-badge.status-order_in_transit {
    background: rgba(59, 130, 246, 0.13);
    color: #1d4ed8;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.module-card strong {
    display: block;
    color: #0f1d33;
}

.module-card span {
    color: #64748b;
    font-size: 0.8rem;
}

.empty-state {
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

@media (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dashboard-tables-grid {
        grid-template-columns: 1fr;
    }
}

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

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .section {
        padding-inline: 12px;
    }

    .stats-grid,
    .quick-actions-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .header .header-left {
        gap: 8px;
    }

    .angaza-topbar-actions,
    .profile-info .info > div:not(.image) {
        display: none;
    }

    .bar-chart {
        height: 180px;
        gap: 6px;
    }
}
