:root {
    --brand-navy: #1f2a44;
    --brand-navy-dark: #161e34;
    --brand-accent: #d9822b;
    --brand-bg: #f4f6fa;
}

body {
    background: var(--brand-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.login-bg {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--brand-navy);
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.75);
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.sidebar .nav-link.active {
    background: var(--brand-accent);
    color: #fff;
}

main {
    flex: 1;
    padding: 24px 28px;
    min-height: 100vh;
}

/* KPI cards */
.kpi-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.kpi-card .kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.table thead th {
    background: #eef1f7;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #566;
}

/* --- Status badges (fixed: self-contained, no dependency on Bootstrap load order) --- */
.badge-received,
.badge-pending {
    display: inline-block;
    color: #fff !important;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

.badge-received { background-color: #1e9e6a !important; }
.badge-pending  { background-color: #d9822b !important; }

.report-date-row td {
    background: #1f2a44 !important;
    color: #fff !important;
    font-weight: 600;
}

.report-total-row td {
    background: #eef1f7 !important;
    font-weight: 700;
}

@media print {
    .sidebar, .no-print, .navbar { display: none !important; }
    main { padding: 0 !important; }
    body { background: #fff !important; }
}

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -240px; z-index: 1050; transition: left .2s; height: 100vh; }
    .sidebar.show { left: 0; }
}