:root { --amber: #f59e0b; --slate-900: #0f172a; }
* { -webkit-tap-highlight-color: transparent; }
html { font-size: 14px; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #0f172a; }

/* compact table */
.tbl th { font-weight: 600; font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .02em; }
.tbl td, .tbl th { padding: .45rem .5rem; }
.tbl tbody tr:hover { background: #f1f5f9; }

/* bottom nav mobile */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid #e2e8f0; display: flex; }
.bottom-nav a { flex: 1; padding: .5rem 0 .4rem; text-align: center; font-size: 11px; color: #64748b; }
.bottom-nav a.active { color: var(--amber); }
.bottom-nav svg { width: 20px; height: 20px; margin: 0 auto .1rem; display: block; }

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  .app-sidebar { display: flex !important; }
  .app-main { margin-left: 220px; }
}
.app-sidebar { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 220px; background: var(--slate-900); color: #cbd5e1; flex-direction: column; padding: 1rem .75rem; z-index: 40; }
.app-sidebar a { padding: .55rem .75rem; border-radius: .5rem; font-size: 14px; color: #cbd5e1; display: block; }
.app-sidebar a.active, .app-sidebar a:hover { background: #1e293b; color: #fff; }
.app-sidebar .brand { color: var(--amber); font-weight: 700; font-size: 16px; padding: 0 .75rem 1rem; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; }
.stat-num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 9999px; font-size: 11px; font-weight: 600; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-slate { background: #e2e8f0; color: #475569; }

.btn { padding: .5rem .9rem; border-radius: .5rem; font-weight: 600; font-size: 13px; }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:active { filter: brightness(.9); }
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-outline { border: 1px solid #cbd5e1; background: #fff; }

input, select, textarea { border: 1px solid #cbd5e1; border-radius: .5rem; padding: .5rem .65rem; font-size: 14px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #fbbf24; border-color: var(--amber); }
label { font-size: 12px; color: #475569; font-weight: 600; display: block; margin-bottom: .25rem; }

@media print { .no-print { display: none !important; } }
