:root {
  --brand: #0f3d5e;
  --brand-2: #155a8a;
  --accent: #f5a524;
  --bg: #f4f6f9;
}
body { background: var(--bg); font-size: .935rem; }
.bg-brand { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.app-shell { min-height: calc(100vh - 56px); }
.sidebar { width: 230px; background: #fff; border-right: 1px solid #e3e7ee; }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex-shrink: 0; }
}
.sidebar .nav-link { color: #344054; padding: .55rem 1.1rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; color: #667085; }
.sidebar .nav-link:hover { background: #f2f6fb; }
.sidebar .nav-link.active { background: #eaf2fb; color: var(--brand); border-left-color: var(--accent); font-weight: 600; }
.sidebar .nav-link.active i { color: var(--brand); }
.main-content { min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; font-weight: 600; color: #1d2939; }
.card { border: 1px solid #e3e7ee; border-radius: .6rem; }
.stat-card .stat-label { font-size: .78rem; color: #667085; text-transform: uppercase; letter-spacing: .03em; }
.stat-card .stat-value { font-size: 1.4rem; font-weight: 700; color: #101828; }
.stat-card .stat-icon { font-size: 1.6rem; opacity: .8; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #667085; background: #f9fafb; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { text-align: center; color: #98a2b3; padding: 2.5rem 1rem; }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), #0b2538); }
.login-card { width: 100%; max-width: 400px; }
/* Billing screen */
.bill-items td { vertical-align: middle; }
.bill-items input.form-control-sm { min-width: 60px; }
.bill-items td, .bill-items th { padding: .4rem .35rem; }
.bill-items .col-name { min-width: 170px; }
.typeahead { position: relative; }
.typeahead-menu { position: absolute; z-index: 1050; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #d0d5dd; border-radius: .4rem; max-height: 320px; overflow-y: auto; box-shadow: 0 8px 24px rgba(16,24,40,.12); display: none; }
.typeahead-menu .ta-item { padding: .45rem .7rem; cursor: pointer; border-bottom: 1px solid #f2f4f7; }
.typeahead-menu .ta-item:last-child { border-bottom: 0; }
.typeahead-menu .ta-item.active, .typeahead-menu .ta-item:hover { background: #eaf2fb; }
.typeahead-menu .ta-meta { font-size: .78rem; color: #667085; }
.totals-table td { padding: .3rem .4rem; }
.totals-table .grand td { font-size: 1.15rem; font-weight: 700; border-top: 2px solid #344054; }
.kbd-hint { font-size: .75rem; color: #98a2b3; }
.calc-loading { opacity: .55; transition: opacity .1s; }
@media print {
  body { background: #fff; }
  .main-content { padding: 0 !important; }
}
