:root { --brand: #0f6e5c; --brand-dark: #0b5345; }
body { background: #f4f6f8; font-size: .925rem; }
.bg-brand { background: var(--brand); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.sidebar { width: 236px; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e3e7eb; }
/* fixed width on desktop: the content area flexes, never the sidebar */
@media (min-width: 992px) { .sidebar { flex: 0 0 236px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8a94a0; padding: 14px 18px 4px; }
.nav-item { display: block; padding: 7px 18px; color: #2c3640; text-decoration: none; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item i { width: 22px; display: inline-block; color: #6c7a86; }
.nav-item:hover { background: #f1f5f4; }
.nav-item.active { background: #e7f3f0; border-left-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.nav-item.active i { color: var(--brand); }
.main { min-width: 0; }
.card { border: 1px solid #e3e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.stat .label { color: #6c7a86; font-size: .8rem; }
.stat .value { font-size: 1.45rem; font-weight: 600; }

/* dashboard: grids that reflow to whatever width the content area has */
.dash-kpis, .dash-tasks, .dash-panels { display: grid; gap: 1rem; }
.dash-kpis { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dash-tasks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.dash-panels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.kpi { padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; height: 100%; }
.kpi i { font-size: 1.6rem; color: var(--brand); flex: 0 0 auto; }
.kpi .value { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.kpi .label { color: #6c7a86; font-size: .8rem; }
.task { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; height: 100%; border-left: 3px solid transparent; }
.task .n { font-size: 1.35rem; font-weight: 700; min-width: 2ch; text-align: center; color: #9aa5b0; }
.task .t { font-size: .85rem; line-height: 1.25; }
.task .s { font-size: .75rem; color: #8a94a0; }
.task.hot { border-left-color: #d9822b; background: #fffaf3; }
.task.hot .n { color: #b85f0b; }
.task.hot:hover, .task:hover { background: #f1f5f4; }
.dash-section { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6c7a86; margin: 1.5rem 0 .6rem; }
.dash-panels .table td { white-space: nowrap; }
@media (max-width: 575.98px) {
  .main { padding: .75rem !important; }
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { padding: .75rem; gap: .5rem; } .kpi i { display: none; }
  .dash-tasks .zero { display: none; }
  .dash-tasks.show-all .zero { display: block; }
  .navbar-brand { font-size: 1.05rem; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
}
.dash-tasks .zero { opacity: .8; }
.table th { font-size: .78rem; text-transform: uppercase; color: #5b6772; letter-spacing: .03em; background: #f8fafb; }
.table td, .table th { vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos-results { max-height: 340px; overflow-y: auto; }
.pos-results .list-group-item { cursor: pointer; }
.pos-total { font-size: 1.8rem; font-weight: 700; color: var(--brand-dark); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f6e5c, #12324a); }
.receipt { width: 300px; margin: 0 auto; font-family: monospace; font-size: 12px; background: #fff; padding: 12px; }
.receipt table { width: 100%; }
.a4 { max-width: 800px; margin: 0 auto; background: #fff; padding: 32px; }
@media print {
  body { background: #fff; }
  .main { padding: 0 !important; }
  .card { border: none; box-shadow: none; }
}
.min-w-0 { min-width: 0; }
.text-normal { text-transform: none; letter-spacing: 0; }
@media print {
  .row > .d-print-none + [class*="col-"] { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
  .table { font-size: 10px; }
  .table-responsive { overflow: visible !important; }
}
