:root { --aipl: #1f3864; --aipl-red: #d8372b; --aipl-blue: #19a3d8; }
body { background: #f5f6f8; font-size: .9rem; }
.bg-aipl { background: var(--aipl); }
.navbar-brand { font-size: 1.05rem; }
.sidebar { width: 230px; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e3e6ea; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.menu-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; padding: .9rem 1rem .3rem; font-weight: 600; }
.menu-link { display: block; padding: .35rem 1rem .35rem 1.6rem; color: #212529; text-decoration: none; border-left: 3px solid transparent; }
.menu-link:hover { background: #f0f3f8; }
.menu-link.active { background: #e8eef8; border-left-color: var(--aipl); font-weight: 600; color: var(--aipl); }
.main { min-width: 0; }
.card { border: 1px solid #e3e6ea; box-shadow: none; }
.table { font-size: .85rem; }
.table th { white-space: nowrap; background: #f8f9fb; font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.access-panel { background: #fff; border: 1px solid #e3e6ea; border-radius: .375rem; padding: .4rem .8rem; font-size: .82rem; }
.access-panel summary { cursor: pointer; color: #6c757d; }
.kpi { background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; padding: .9rem 1rem; }
.kpi .v { font-size: 1.35rem; font-weight: 600; }
.kpi .l { color: #6c757d; font-size: .8rem; }
.login-box { max-width: 380px; margin: 8vh auto; }
.form-label { font-size: .8rem; margin-bottom: .15rem; color: #495057; }
.trip-lines input, .trip-lines select { min-width: 90px; }
.sticky-actions { position: sticky; bottom: 0; background: #f5f6f8; padding: .6rem 0; border-top: 1px solid #e3e6ea; }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }

/* ---------- printed invoice (A4) ---------- */
.inv-sheet { background: #fff; width: 210mm; min-height: 280mm; margin: 0 auto; padding: 10mm 12mm; color: #000; font-family: Arial, sans-serif; font-size: 10.5px; }
.inv-sheet table { width: 100%; border-collapse: collapse; }
.inv-sheet .bx td, .inv-sheet .bx th { border: 1px solid #000; padding: 3px 4px; vertical-align: top; }
.inv-sheet .head-logo { height: 70px; }
.inv-sheet .title { font-size: 15px; font-weight: 700; text-align: center; letter-spacing: .04em; margin: 6px 0; }
.inv-sheet .r { text-align: right; }
.inv-sheet .c { text-align: center; }
.inv-sheet .b { font-weight: 700; }
@media print {
  body { background: #fff; }
  .d-print-none, .access-panel { display: none !important; }
  .main { padding: 0 !important; }
  .inv-sheet { width: auto; min-height: 0; margin: 0; padding: 0; }
  @page { size: A4; margin: 10mm; }
  .page-break { page-break-before: always; }
}
