:root {
    --ink: #1c2b2a;
    --forest: #11373a;
    --forest-2: #1a4b4e;
    --brass: #c28a2c;
    --paper: #f2f5f4;
    --line: #dfe6e4;
    --sb-w: 264px;
}
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; background: var(--paper); color: var(--ink); }
h1, h2, h3, .brand-name, .page-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); background: var(--forest); color: #c9dad8; overflow-y: auto; z-index: 1040; transition: transform .25s ease; padding-bottom: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.25rem 1.5rem; text-decoration: none; color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brass); color: var(--forest); display: grid; place-items: center; font-size: 1.15rem; }
.brand-name { font-size: 1.25rem; letter-spacing: .01em; }
.sidebar .nav-link { color: #c9dad8; display: flex; align-items: center; gap: .8rem; padding: .65rem 1rem; margin: .1rem .75rem; border-radius: .6rem; font-weight: 500; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .nav-link.active { background: var(--forest-2); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.sidebar .nav-link .chev { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.sidebar .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 0 0 .4rem; }
.sub-link { display: block; padding: .42rem 1.25rem .42rem 3.35rem; color: #8fb0ad; text-decoration: none; font-size: .92rem; }
.sub-link:hover, .sub-link.active { color: #fff; }
.sub-link.active { font-weight: 600; }
.soon { font-size: .68rem; background: rgba(194,138,44,.2); color: var(--brass); border-radius: 99px; padding: .05rem .45rem; margin-left: .3rem; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(8,24,25,.55); z-index: 1030; }

/* Layout */
.main { margin-left: var(--sb-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 1020; background: #fff; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); }
.page-title { font-size: 1.35rem; margin: 0; }
.content { padding: 1.25rem; max-width: 1400px; }

/* Components */
.panel { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; }
.panel-title { font-size: 1.05rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.15rem; height: 100%; border-left: 4px solid var(--forest-2); }
.stat.brass { border-left-color: var(--brass); }
.stat.red { border-left-color: #b4452f; }
.stat .label { color: #5d716f; font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat .sub { color: #7b8d8b; font-size: .8rem; }
.btn-brand { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-brand:hover { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 .2rem rgba(26,75,78,.15); }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-weight: 600; color: #4b5f5d; background: #f7faf9; white-space: nowrap; }
.empty { text-align: center; color: #6b7d7b; padding: 2rem 1rem; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--forest); padding: 1rem; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 1rem; padding: 2rem; }

/* Receipt */
.receipt { max-width: 560px; margin: 0 auto; }

/* Mobile */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: none; }
    .sidebar-overlay.show { display: block; }
    .main { margin-left: 0; }
    .content { padding: 1rem .85rem; }
    .stat .value { font-size: 1.3rem; }
}
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main { margin: 0; }
    body { background: #fff; }
    .panel { border: 0; }
}
