

*{box-sizing:border-box;margin:0;padding:0}
:root{
  --nv:#1B3A6B;--nvd:#122850;--nvl:#E8EDF5;
  --pg:#6B9A2A;--pgd:#4E7320;--pgl:#EEF4E0;
  --bg:#f5f6f8;--surface:#fff;--border:#e2e4e9;
  --text:#111;--muted:#6b7280;--danger:#A32D2D;
}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);font-size:13px;background:var(--bg)}
.app{display:flex;height:100vh;overflow:hidden}
/* Sidebar */
.sb{width:210px;min-width:210px;background:#1B3A6B;display:flex;flex-direction:column;border-right:0.5px solid rgba(255,255,255,0.08)}
.brand{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nav{padding:8px;flex:1;overflow-y:auto}
.ns{font-size:9px;color:rgba(255,255,255,0.3);padding:10px 10px 3px;letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.ni{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:6px;cursor:pointer;color:rgba(255,255,255,0.6);font-size:12px;border:none;background:none;width:100%;text-align:left;transition:all .15s}
.ni:hover{background:rgba(255,255,255,0.08);color:#fff}
.ni.active{background:rgba(107,154,42,0.28);color:#fff;font-weight:500}
.nd{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,0.25);flex-shrink:0;transition:background .15s}
.ni.active .nd{background:#7EB03A}
/* Main */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden}
.topbar{padding:13px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:#fff}
.pt{font-size:15px;font-weight:600;color:#1B3A6B}
.ta{display:flex;gap:7px;align-items:center}
.ct{flex:1;overflow-y:auto;padding:20px;background:var(--bg)}
/* Buttons */
.btn{padding:7px 14px;border-radius:7px;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:12px;color:var(--text);font-family:inherit;transition:all .12s}
.btn:hover{background:#f0f2f5;border-color:#c8cdd6}
.btn-p{background:#1B3A6B;border-color:#1B3A6B;color:#fff}
.btn-p:hover{background:#122850;border-color:#122850}
.btn-g{background:#6B9A2A;border-color:#6B9A2A;color:#fff}
.btn-g:hover{background:#4E7320;border-color:#4E7320}
.btn-r{color:#A32D2D;border-color:#e8c2c2}
.btn-r:hover{background:#fdf0f0}
.btn-sm{padding:4px 10px;font-size:11px}
.btn-timer{padding:7px 16px;border-radius:7px;font-size:12px;font-weight:500;border:none;cursor:pointer;transition:all .12s}
.btn-start{background:#6B9A2A;color:#fff}
.btn-start:hover{background:#4E7320}
.btn-stop{background:#A32D2D;color:#fff}
.btn-stop:hover{background:#7a1f1f}
/* Metrics */
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.metric{background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px}
.ml{font-size:11px;color:var(--muted);margin-bottom:4px}
.mv{font-size:22px;font-weight:600;color:#1B3A6B}
.ms{font-size:11px;color:var(--muted);margin-top:3px}
/* Cards */
.card{background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:14px}
.ch{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-weight:500;font-size:13px;color:#1B3A6B}
/* Tables */
.table{width:100%;border-collapse:collapse;table-layout:fixed}
.table th{text-align:left;padding:8px 14px;font-weight:500;font-size:11px;color:var(--muted);border-bottom:1px solid var(--border);background:#f8f9fa;text-transform:uppercase;letter-spacing:.03em}
.table td{padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table tr:last-child td{border-bottom:none}
.table tbody tr:hover td{background:#f4f7ff;cursor:pointer}
/* Badges */
.badge{display:inline-block;padding:3px 8px;border-radius:20px;font-size:11px;font-weight:500}
.b-new{background:#E8EDF5;color:#1B3A6B}
.b-sched{background:#FFF8E8;color:#7A5200}
.b-prog{background:#EEF4E0;color:#4E7320}
.b-done{background:#E5F2E5;color:#1B5E20}
.b-cancel{background:#f0f0f0;color:#555}
/* Drawer/Overlay */
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.38);z-index:1000;align-items:flex-start;justify-content:flex-end}
.overlay.open{display:flex}
.drawer{background:#fff;width:520px;height:100%;overflow-y:auto;border-left:1px solid var(--border);display:flex;flex-direction:column;box-shadow:-4px 0 24px rgba(0,0,0,0.08)}
.dh{padding:14px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:14px;color:#1B3A6B}
.db{flex:1;overflow-y:auto;padding:20px}
.df{padding:14px 20px;border-top:1px solid var(--border);display:flex;gap:8px;justify-content:flex-end;background:#f8f9fa}
/* Form sections */
.fs{margin-bottom:20px}
.fst{font-size:10px;font-weight:600;color:#6B9A2A;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;padding-bottom:5px;border-bottom:2px solid #EEF4E0}
.fg{display:flex;flex-direction:column;gap:4px}
.fl{font-size:11px;color:var(--muted);font-weight:500}
.g2{display:grid;gap:10px;margin-bottom:10px;grid-template-columns:1fr 1fr}
.g3{display:grid;gap:10px;margin-bottom:10px;grid-template-columns:1fr 1fr 1fr}
input,select,textarea{padding:8px 10px;border:1px solid var(--border);border-radius:7px;font-size:13px;font-family:inherit;background:#fff;color:var(--text);width:100%;transition:border-color .12s}
input:focus,select:focus,textarea:focus{outline:none;border-color:#1B3A6B;box-shadow:0 0 0 3px rgba(27,58,107,0.08)}
textarea{resize:vertical;min-height:64px}
/* Photos */
.pg{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:6px}
.pt2{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:1px solid var(--border);cursor:pointer}
.pa{width:100%;aspect-ratio:1;border:1px dashed #c8cdd6;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;background:#f8f9fa;font-size:10px;color:var(--muted);gap:3px;transition:all .12s}
.pa:hover{border-color:#6B9A2A;color:#6B9A2A;background:#EEF4E0}
/* Checklist */
.cli{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.cli:last-child{border-bottom:none}
.cli input[type=checkbox]{width:auto;accent-color:#1B3A6B;width:15px;height:15px}
/* Comms */
.ci{padding:10px 0;border-bottom:1px solid var(--border);font-size:12px}
.ci:last-child{border-bottom:none}
.cm{color:var(--muted);font-size:11px;margin-bottom:2px}
/* Scan */
.sz{border:2px dashed var(--border);border-radius:10px;padding:30px 20px;text-align:center;cursor:pointer;background:#f8f9fa;transition:all .15s}
.sz:hover{border-color:#6B9A2A;background:#EEF4E0}
.ss{margin-top:12px;padding:10px 14px;border-radius:7px;background:#f8f9fa;font-size:12px;color:var(--muted);min-height:40px;border:1px solid var(--border)}
/* Calendar */
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cdl{text-align:center;font-size:11px;color:var(--muted);padding:4px 0;font-weight:500}
.cc{min-height:80px;border:1px solid var(--border);border-radius:6px;padding:4px 5px;background:#fff;cursor:pointer;transition:background .1s}
.cc:hover{background:#f4f7ff}
.cc.today{border-color:#1B3A6B;border-width:2px}
.cc.om{background:#f8f9fa}
.cd{font-size:11px;margin-bottom:3px;color:var(--muted)}
.cd.tn{color:#1B3A6B;font-weight:700}
.cj{font-size:10px;padding:2px 4px;border-radius:3px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.cj.new{background:#E8EDF5;color:#1B3A6B}
.cj.sc{background:#FFF8E8;color:#7A5200}
.cj.pr{background:#EEF4E0;color:#4E7320}
/* Crew cards */
.ecard{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border)}
.ecard:last-child{border-bottom:none}
.av{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;flex-shrink:0}
/* Tab bar */
.tbar{display:flex;border-bottom:1px solid var(--border);padding:0 20px;background:#fff}
.tab{padding:10px 14px;font-size:12px;cursor:pointer;border-bottom:2px solid transparent;color:var(--muted);margin-bottom:-1px;transition:all .12s}
.tab.active{color:#1B3A6B;border-bottom-color:#1B3A6B;font-weight:500}
.tab:hover{color:var(--text)}
/* Timer */
.timer-display{font-size:22px;font-weight:600;color:#1B3A6B;font-variant-numeric:tabular-nums;font-family:'Courier New',monospace}
/* Expenses */
.xp-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}
.xp-item:last-child{border-bottom:none}
/* Reports */
.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.stat-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:16px}
.stat-label{font-size:11px;color:var(--muted);margin-bottom:4px}
.stat-val{font-size:22px;font-weight:600;color:#1B3A6B}
.bar-wrap{background:#f0f2f5;border-radius:4px;height:7px;overflow:hidden;margin-top:5px}
.bar-fill{height:100%;border-radius:4px;background:#6B9A2A}
.progress-ring{display:flex;align-items:center;gap:8px;margin:4px 0}
/* Empty */
.empty{text-align:center;padding:40px 20px;color:var(--muted)}
/* Scrollbar */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#9ca3af}

.btn-d{background:#fff;color:#dc2626;border:1.5px solid #dc2626}.btn-d:hover{background:#fef2f2}

.btn-d{background:#fff;color:#dc2626;border:1.5px solid #dc2626}.btn-d:hover{background:#fef2f2}
