/* ===== Projax-style shell: blue sidebar, white topbar, soft cards ===== */
:root { --brand: #173a8a; --brand-2: #2563eb; --side-w: 260px; --ink: #1e293b; --line: #e5e9f2; }
html, body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); }
body { background: #f1f4fa; font-size: .93rem; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 1030; background: #fff; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(15,23,42,.05); }
.topbar .brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-badge { background: var(--brand); color: #fff; border-radius: 8px; padding: 3px 8px; font-weight: 700; font-size: .85rem; align-self: center; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-sub { color: #64748b; font-size: .95rem; }
.icon-btn { background: none; border: 0; color: #334155; font-size: 1.5rem; line-height: 1; padding: 4px 6px; border-radius: 8px; text-decoration: none; }
.icon-btn:hover { background: #eef2fb; color: var(--brand); }
.user-chip { color: #475569; font-weight: 500; }
.role-pill { background: #e8eefc; color: var(--brand-2); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 600; text-transform: uppercase; margin-left: 4px; }
.sidebar { position: fixed; top: 64px; bottom: 0; left: 0; width: var(--side-w); background: var(--brand); z-index: 1020; transition: transform .2s; }
.side-scroll { height: 100%; overflow-y: auto; padding: 8px 12px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.side-title { color: #a9bbe8; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 18px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 10px 12px; margin: 2px 0; border-radius: 10px; font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.side-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.side-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-link.active { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.app-main { margin-left: var(--side-w); padding-top: 64px; min-height: 100vh; transition: margin .2s; }
.app-shell.collapsed .sidebar { transform: translateX(-100%); }
.app-shell.collapsed .app-main { margin-left: 0; }
.content { padding: 24px 28px; }
.public-content { padding-top: 88px; max-width: 1280px; margin: 0 auto; }
@media (max-width: 991px) { .app-main { margin-left: 0; } .sidebar { transform: translateX(-100%); } .app-shell.collapsed .sidebar { transform: none; } .brand-sub { display: none; } .content { padding: 16px; } .user-chip { display: none; } }
h1, h2, h3, h4, h5 { font-weight: 700; color: #0f172a; }
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0 !important; padding: 14px 18px; }
.kpi .card-body { padding: 16px 18px; }
.kpi .text-muted { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem !important; font-weight: 600; }
.kpi .fs-4 { color: var(--ink); font-weight: 700; font-size: 1.25rem !important; white-space: nowrap; }
.table { --bs-table-bg: transparent; }
.table thead th { background: #f7f9fd; color: #64748b; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; border-bottom: 1px solid var(--line); padding: 12px 14px; white-space: nowrap; }
.table td { padding: 14px; border-color: var(--line); }
.table-hover tbody tr:hover { background: #f8faff; }
.table-responsive, .card > .table { border-radius: 14px; }
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); }
.btn-primary:hover { background: #1d4fd0; border-color: #1d4fd0; }
.btn-outline-primary { color: var(--brand-2); border-color: #bcd0fa; background: #f3f7ff; }
.btn-outline-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.form-control, .form-select { border-radius: 10px; border-color: #d8deea; padding: .5rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.form-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.badge { border-radius: 8px; font-weight: 600; padding: .4em .7em; letter-spacing: .01em; }
.badge.text-bg-success { background: #dcfce7 !important; color: #15803d !important; }
.badge.text-bg-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.badge.text-bg-warning { background: #fef3c7 !important; color: #b45309 !important; }
.badge.text-bg-primary, .badge.text-bg-info { background: #e0e9ff !important; color: #1d4ed8 !important; }
.badge.text-bg-secondary, .badge.text-bg-light { background: #eef1f6 !important; color: #475569 !important; }
.alert { border-radius: 12px; }
.pagination .page-link { border-radius: 8px; margin: 0 2px; border-color: var(--line); }
.hero { background: linear-gradient(120deg, #173a8a, #2563eb); color: #fff; border-radius: 16px; }
.bg-brand { background: var(--brand); }
.table td, .table th { vertical-align: middle; }
.table-sm td { font-size: .9rem; }
.map { height: 420px; border-radius: 8px; }
.map-sm { height: 260px; border-radius: 8px; }
.capacity { height: 10px; min-width: 120px; }
.timeline { list-style: none; padding-left: 1rem; border-left: 3px solid #dee2e6; }
.timeline li { position: relative; margin-bottom: 1rem; padding-left: .75rem; }
.timeline li::before { content: ""; position: absolute; left: -1.45rem; top: .35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.sigpad { border: 2px dashed #adb5bd; border-radius: 8px; width: 100%; height: 180px; touch-action: none; background: #fff; }
.scan-input { font-size: 1.6rem; letter-spacing: 2px; }
.qr svg, .bc svg { max-width: 100%; height: auto; }
.lock-banner { border-left: 5px solid #dc3545; }
@media print {
  .no-print, nav.navbar, .sidebar, .topbar, footer, .btn, .alert { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; } .app-main { margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none; }
}
/* 4x6 inch thermal labels */
.label-4x6 { width: 4in; height: 6in; border: 1px solid #000; padding: .15in; margin: 0 auto .2in; background: #fff;
  page-break-after: always; font-family: Arial, sans-serif; font-size: 11px; display: flex; flex-direction: column; }
.label-4x6 .big { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.label-4x6 .box { border: 1px solid #000; padding: 4px 6px; margin-bottom: 4px; }
@media print { .label-4x6 { margin: 0; border: none; } @page { size: 4in 6in; margin: 0; } }

.brand-logo { height: 52px; max-width: 240px; object-fit: contain; align-self: center; }
