:root {
    /* BianVera brand colours (from the logo) */
    --cheese: #1f3a2d;        /* forest green */
    --cheese-dark: #152a20;
    --cheese-soft: #f4eee6;   /* cream */
    --gold: #b8955a;
    --gold-light: #cba86c;
    --gold-dark: #9f7c45;
    --sidebar-w: 240px;
}

body { background: #f5f6f8; }

.bg-cheese { background: linear-gradient(90deg, var(--cheese-dark), var(--cheese)); }
.bg-cheese-soft { background: var(--cheese-soft); color: var(--cheese-dark); border: 1px solid #e3d6bf; }
.brand-mark { height: 34px; width: 34px; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.navbar-brand { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .06em; }
.btn-cheese { background: var(--cheese); border-color: var(--cheese); color: #fff; }
.btn-cheese:hover, .btn-cheese:focus { background: var(--cheese-dark); border-color: var(--cheese-dark); color: #fff; }

/* Sidebar */
@media (min-width: 992px) {
    .sidebar { width: var(--sidebar-w); min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e5e7eb; position: sticky; top: 56px; align-self: flex-start; }
}
.sidebar .nav-link { color: #374151; padding: .6rem 1.25rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: #f9fafb; color: var(--cheese-dark); }
.sidebar .nav-link.active { background: var(--cheese-soft); color: var(--cheese-dark); border-left-color: var(--gold); font-weight: 600; }
.main-content { min-width: 0; }

.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card-header { background: #fff; font-weight: 600; }

/* KPI cards */
.kpi { position: relative; overflow: hidden; color: #fff; }
.kpi .kpi-icon { position: absolute; right: 12px; top: 8px; font-size: 2.6rem; opacity: .25; }
.kpi .kpi-label { font-size: .85rem; opacity: .9; }
.kpi .kpi-value { font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
.kpi-amber { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.kpi-blue  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.kpi-green { background: linear-gradient(135deg, #22a06b, #157a50); }
.kpi-slate { background: linear-gradient(135deg, #64748b, #334155); }
.kpi-red   { background: linear-gradient(135deg, #e5484d, #b42318); }

.chart-box { position: relative; height: 300px; }
.chart-box-sm { position: relative; height: 200px; }
.chart-box-xs { position: relative; height: 150px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot-pending { background: #d9a441; } .dot-received { background: #22a06b; }
.dot-cash { background: #8b5cf6; } .dot-bank { background: #3b82f6; }

.stat-pill { background: #fff; border-radius: .5rem; padding: .5rem .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); height: 100%; }
.stat-pill b { display: block; font-size: 1.05rem; color: #111827; }

.role-admin { background: #b42318; } .role-sales_manager { background: #1d4ed8; } .role-manager { background: #157a50; }

/* Pagination colours */
.pagination .page-link { color: var(--cheese-dark); }
.pagination .page-item.active .page-link { background: var(--cheese); border-color: var(--cheese); color: #fff; }

/* Auth */
.auth-bg { background: linear-gradient(135deg, #f4eee6 0%, #e6d8bf 100%); }
.auth-logo-img { max-width: 230px; width: 100%; height: auto; border-radius: 8px; }

.ts-wrapper.form-select { padding: 0; }

/* Print */
.print-header, .print-footer { display: none; }
@media print {
    .no-print, .navbar, .sidebar, .btn, .alert { display: none !important; }
    .print-header, .print-footer { display: block; }
    body { background: #fff; font-size: 11px; }
    .main-content { padding: 0 !important; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .stat-pill { box-shadow: none; border: 1px solid #ddd; }
    .badge { color: #000 !important; background: none !important; border: 1px solid #999; }
}
