:root {
  --bg: #14161a; --panel: #1c1f26; --panel2: #23272f; --border: #2c3038;
  --text: #e6e8eb; --muted: #8b93a1; --accent: #4f8ef7; --accent2: #f7b84f;
  --green: #4fd88a; --red: #f76464; --yellow: #f7d34f;
}
* { box-sizing: border-box; }
body { margin:0; font-family:'IBM Plex Sans',sans-serif; background:var(--bg); color:var(--text); }
#app { display:flex; min-height:100vh; }
#sidebar { width:220px; background:var(--panel); border-right:1px solid var(--border); flex-shrink:0; }
.sidebar-brand { display:flex; gap:10px; align-items:center; padding:20px 16px; border-bottom:1px solid var(--border); }
.brand-icon { font-size:22px; color:var(--accent); }
.brand-icon-img { width:36px; height:36px; object-fit:contain; flex-shrink:0; }
.brand-name { font-family:'IBM Plex Mono',monospace; font-weight:600; letter-spacing:1px; }
.brand-sub { font-size:11px; color:var(--muted); }
.nav-menu { list-style:none; margin:0; padding:10px 0; }
.nav-section { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; padding:14px 16px 4px; }
.nav-link { display:flex; gap:10px; align-items:center; padding:9px 16px; color:var(--muted); text-decoration:none; font-size:14px; }
.nav-link:hover { background:var(--panel2); color:var(--text); }
.nav-link.active { background:var(--panel2); color:var(--accent); border-left:3px solid var(--accent); }
.badge-count { margin-left:auto; background:var(--accent2); color:#000; border-radius:10px; padding:0 6px; font-size:11px; }
#main { flex:1; display:flex; flex-direction:column; min-width:0; }
#topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; border-bottom:1px solid var(--border); }
#page-title { font-size:18px; font-weight:600; }
#content { padding:24px; overflow:auto; }
table { width:100%; border-collapse:collapse; background:var(--panel); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:10px 14px; font-size:13px; border-bottom:1px solid var(--border); }
th { color:var(--muted); text-transform:uppercase; font-size:11px; letter-spacing:.5px; }
tr:hover td { background:var(--panel2); cursor:pointer; }
.btn { background:var(--accent); color:#fff; border:none; padding:8px 16px; border-radius:6px; cursor:pointer; font-size:13px; }
.btn:hover { opacity:.9; }
.btn-secondary { background:var(--panel2); border:1px solid var(--border); color:var(--text); }
input, select, textarea { background:var(--panel2); border:1px solid var(--border); color:var(--text); padding:8px 10px; border-radius:6px; font-size:13px; font-family:inherit; }
.search-row { display:flex; gap:10px; margin-bottom:16px; }
.search-row input { flex:1; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-bottom:20px; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:16px; }
.card .val { font-size:26px; font-weight:600; }
.card .lbl { font-size:12px; color:var(--muted); margin-top:4px; }
.status-pill { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.status-Open, .status-O { background:#2a3d2e; color:var(--green); }
.status-Closed, .status-C { background:#3d2a2a; color:var(--red); }
#modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:100; }
#modal-box { background:var(--panel); border-radius:10px; width:600px; max-width:90vw; max-height:85vh; display:flex; flex-direction:column; }
#modal-header { display:flex; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); font-weight:600; }
#modal-body { padding:20px; overflow:auto; }
#modal-footer { padding:14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
.modal-close { background:none; border:none; color:var(--muted); font-size:20px; cursor:pointer; }
.field { margin-bottom:12px; display:flex; flex-direction:column; gap:4px; }
.field label { font-size:12px; color:var(--muted); }
.field input, .field select, .field textarea { width:100%; }
.traveler { background:#fff; color:#111; padding:24px; border-radius:8px; font-family:'IBM Plex Mono',monospace; font-size:12px; white-space:pre-wrap; }
.step-row { border:1px solid var(--border); border-radius:6px; padding:10px 14px; margin-bottom:8px; }
.step-row .step-num { color:var(--accent); font-weight:600; margin-right:8px; }
.section-title { font-size:14px; font-weight:600; margin:20px 0 10px; color:var(--accent2); }
.line-item { display:grid; grid-template-columns:2fr 3fr 1fr 1fr; gap:8px; margin-bottom:8px; }

.card-click { cursor:pointer; transition: transform .08s ease, box-shadow .08s ease; }
.card-click:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.perf-bar { height:14px; background:var(--accent); border-radius:3px; min-width:2px; }
.perf-bar.prev { background:#3d4b5c; }
@media print {
  #sidebar, #topbar, .searchbar, .btn { display:none !important; }
  #content { padding:0 !important; } body { background:#fff !important; color:#000 !important; }
  table { color:#000 !important; } td, th { border-color:#ccc !important; }
}

.cr-box { width:20px; height:20px; border:1.5px solid #9aa4af; border-radius:4px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; color:#fff; user-select:none; }
.cr-box.checked { background:var(--accent); border-color:var(--accent); }
.qb-line { border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:12px; position:relative; }
.qb-line .qb-type { position:absolute; top:-9px; left:12px; background:var(--accent); color:#fff; font-size:10px; padding:2px 8px; border-radius:4px; letter-spacing:1px; }
.qb-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-bottom:8px; }
.qb-grid input, .qb-grid select { width:100%; }
.qb-checks { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--muted); margin:6px 0; }
.qb-checks label { display:flex; gap:4px; align-items:center; }
.qb-remove { position:absolute; top:8px; right:10px; color:#dc2626; cursor:pointer; font-size:13px; }
.calc-out { background:var(--card); border:1px solid var(--border); border-radius:6px; padding:8px 10px; font-size:12px; color:var(--muted); margin-top:6px; }
