body { background: #f4f6fa; font-size: .925rem; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e8ef;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { font-weight: 700; font-size: 1.15rem; padding: 1rem 1.25rem; color: #1f2937; text-decoration: none; }
.sidebar .brand i { color: #2563eb; }
.sidebar .nav-link { color: #4b5563; padding: .5rem 1.25rem; border-radius: 0 20px 20px 0; margin-right: .75rem; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: #f1f5ff; color: #1d4ed8; }
.sidebar .nav-link.active { background: #e8efff; color: #1d4ed8; font-weight: 600; }
.nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; padding: 1rem 1.25rem .25rem; }
.content { flex: 1; padding: 1.5rem 2rem; min-width: 0; }
.page-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.5rem; margin: 0; font-weight: 600; }
.card { border: 1px solid #e5e8ef; border-radius: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.kpi .label { color: #6b7280; font-size: .8rem; }
.kpi .value { font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.kpi .sub { color: #6b7280; font-size: .8rem; }
.status-tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.status-tabs a { text-decoration: none; padding: .35rem .75rem; border-radius: 2rem; color: #4b5563; border: 1px solid transparent; font-size: .85rem; }
.status-tabs a.active { background: #fff; border-color: #cbd5e1; color: #111827; font-weight: 600; }
.status-tabs .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; }
.progress-stack { height: 6px; border-radius: 3px; overflow: hidden; display: flex; background: #e5e7eb; }
.inv-card { transition: box-shadow .15s; color: inherit; text-decoration: none; display: block; }
.inv-card:hover { box-shadow: 0 4px 14px rgba(37,99,235,.12); border-color: #c7d6fb; }
.inv-card .num { background: #eef2f7; border-radius: .35rem; padding: .05rem .45rem; font-size: .8rem; }
.inv-card .client { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-card .sum { font-size: 1.2rem; font-weight: 700; }
.table td, .table th { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #6b7280; font-weight: 600; letter-spacing: .02em; }
.num-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items-table input { min-width: 70px; }
.items-table .col-name { min-width: 280px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar .nav { flex-direction: row !important; flex-wrap: wrap; }
  .nav-section { display: none; }
  .content { padding: 1rem; }
}
