:root{font-family:-apple-system,Segoe UI,system-ui,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;color:#0f172a;background:#edf2f7;--primary: #001c77;--primary-mid: #0a2d9c;--accent: #00c6c1;--warning: #f59e0b;--alert: #ef4444;--orange: #f97316;--success: #10b981;--surface: #ffffff;--border: #dde6f0;--muted: #64748b;--shadow-xs: 0 1px 2px rgba(0,28,119,.05);--shadow-sm: 0 1px 4px rgba(0,28,119,.07), 0 1px 2px rgba(0,28,119,.04);--shadow-md: 0 4px 14px rgba(0,28,119,.1), 0 1px 4px rgba(0,28,119,.06);--shadow-lg: 0 16px 40px rgba(0,28,119,.18), 0 2px 10px rgba(0,28,119,.08)}*{box-sizing:border-box}body{margin:0}.layout{max-width:1280px;margin:0 auto;padding:0 24px 40px;display:grid;gap:16px}.center{min-height:100vh;display:grid;place-items:center}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--primary);border-radius:0 0 20px 20px;padding:18px 28px 22px;margin:0 -24px 8px;box-shadow:0 8px 28px #001c7752,0 2px 6px #001c7729}.topbar-brand{display:flex;align-items:center;gap:14px}.topbar-logo{width:42px;height:42px;background:var(--accent);color:var(--primary);border-radius:10px;display:grid;place-items:center;font-size:13px;font-weight:900;letter-spacing:.04em;flex-shrink:0}.topbar h1{color:#fff;font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0 0 2px}.topbar p{color:#ffffff8c;font-size:12px;margin:0}.topbar-right{display:flex;align-items:center;gap:14px;flex-shrink:0}.topbar-viewing{font-size:12px;font-weight:600;color:var(--accent);background:#00c6c11f;border:1px solid rgba(0,198,193,.25);padding:5px 12px;border-radius:999px;white-space:nowrap}.topbar button{background:#ffffff1f;color:#fff;border:1px solid rgba(255,255,255,.2);padding:8px 16px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;letter-spacing:.02em}.topbar button:hover{background:#ffffff38;border-color:#ffffff59}.topbar-nav{display:flex;gap:4px;margin-left:12px}.topbar .topbar-tab{background:transparent;border:none;padding:7px 16px;font-weight:500;font-size:13px}.topbar .topbar-tab.active{background:#ffffff2e;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm)}h1,h2,h3{margin:0 0 6px;color:var(--primary)}p{margin:0}.subtle{color:var(--muted);font-size:13px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.summary-grid article{background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--border);border-radius:14px;padding:18px 16px 15px;box-shadow:var(--shadow-sm)}.summary-grid article h2{font-size:32px;line-height:1;font-weight:800;letter-spacing:-.025em;margin:0 0 6px}.summary-grid article p{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.summary-grid article:nth-child(1){border-top-color:var(--primary)}.summary-grid article:nth-child(1) h2{color:var(--primary)}.summary-grid article:nth-child(2){border-top-color:var(--alert)}.summary-grid article:nth-child(2) h2{color:var(--alert)}.summary-grid article:nth-child(3){border-top-color:var(--orange)}.summary-grid article:nth-child(3) h2{color:var(--orange)}.summary-grid article:nth-child(4){border-top-color:var(--warning)}.summary-grid article:nth-child(4) h2{color:#d97706}.summary-grid article:nth-child(5){border-top-color:var(--accent)}.summary-grid article:nth-child(5) h2{color:#0d9b98}.summary-grid article:nth-child(6){border-top-color:var(--success)}.summary-grid article:nth-child(6) h2{color:var(--success)}.summary-grid article h2{font-variant-numeric:tabular-nums}.summary-grid article.clickable{cursor:pointer;transition:transform .1s,box-shadow .1s}.summary-grid article.clickable:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.summary-grid article.clickable.active{outline:2px solid var(--primary);outline-offset:-1px;box-shadow:var(--shadow-md)}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.section-heading h3{font-size:15px;font-weight:700;margin:0 0 3px}.section-heading p{font-size:12px;color:var(--muted)}.location-nav{display:grid;gap:14px}.location-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.location-select{display:grid;gap:0}.location-select span{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;display:block}.location-meta{display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:13px}.location-meta strong{font-size:22px;line-height:1;color:var(--primary);font-weight:800}button{background:var(--primary);color:#fff;border:0;padding:9px 16px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:600;letter-spacing:.01em;transition:background .12s}button:hover{background:var(--primary-mid)}.secondary-button{background:#f1f5fb;color:#1e3a6e;border:1px solid #ccd8ea}.secondary-button:hover{background:#e6eef8}.danger-button{background:#c64d4d}.danger-button:hover{background:#b84040}input,select{width:100%;border:1px solid #c6d3e2;border-radius:9px;padding:9px 10px;font-size:13px;background:#fafcff;color:#0f172a;transition:border-color .15s,box-shadow .15s;margin-top:0}input:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #001c771a}input::placeholder{color:#94a3b8}table{width:100%;border-collapse:collapse;font-size:13px}.table-wrap{overflow-x:auto;border-radius:10px;border:1px solid var(--border);max-height:70vh}.table-wrap thead th{position:sticky;top:0;background:#f3f7fc;z-index:1}thead tr{background:#f3f7fc}th{padding:10px 12px;border-bottom:2px solid var(--border);text-align:left;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);white-space:nowrap}td{padding:10px 12px;border-bottom:1px solid #edf3f8;vertical-align:middle;color:#1e293b}tr:last-child td{border-bottom:none}tbody tr:hover td{background:#f6faff}td:first-child{font-weight:600;color:var(--primary);font-size:12px}.badge{display:inline-block;text-transform:uppercase;font-size:10px;padding:3px 9px;border-radius:999px;font-weight:700;letter-spacing:.05em;white-space:nowrap}.badge.ok{background:#dcfce7;color:#15803d}.badge.warning{background:#fef9c3;color:#92400e}.badge.due_soon{background:#ffedd5;color:#c2410c}.badge.overdue{background:#fee2e2;color:#b91c1c}.badge.never_calibrated{background:#e2e8f0;color:#475569}.badge.under_repair{background:#fef3c7;color:#92400e}.badge.reported{background:#fce7f3;color:#9d174d}.cal-cell{display:flex;align-items:center;gap:6px;white-space:nowrap}.due-chip{font-size:10px;font-weight:700;color:var(--muted);background:#f1f5f9;border-radius:999px;padding:2px 7px;font-variant-numeric:tabular-nums;white-space:nowrap}.due-chip.soon{background:#ffedd5;color:#c2410c}.due-chip.late{background:#fee2e2;color:#b91c1c}td.num{font-variant-numeric:tabular-nums;text-align:right}.inline-controls{display:flex;gap:8px;align-items:center}.inline-controls input{flex:1}.scan-result{margin-top:10px;font-size:13px;color:#0f7470;background:#f0fdfb;border:1px solid #99f6e4;padding:8px 12px;border-radius:8px}.asset-toolbar{display:grid;gap:12px}.asset-toolbar-actions{display:flex;align-items:flex-end;gap:10px;flex-shrink:0}.actions{display:flex;gap:10px;align-items:center}.bulk-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:4px 4px 14px;border-bottom:1px solid var(--border);margin-bottom:8px}.bulk-grid td{vertical-align:middle}.bulk-grid select,.bulk-grid input{width:100%;min-width:90px;font-size:13px;padding:6px 8px}.bulk-grid tr.bulk-dirty td{background:#fffbeb}.bulk-grid tr.bulk-dirty td:first-child{box-shadow:inset 3px 0 0 var(--warning)}.cal-photo-add{display:inline-flex;align-items:center;cursor:pointer;width:fit-content}.cal-photo-preview{display:flex;align-items:center;gap:12px}.cal-photo-preview img{width:84px;height:84px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}.status-strip{display:flex;justify-content:space-between;align-items:center;gap:16px}.status-strip{background:linear-gradient(135deg,#f0fdf4,#e8faf0);border-color:#bbf7d0}.row-actions{display:flex;gap:6px}.icon-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border-radius:8px;border:1px solid #d7e0eb;background:#fff;color:#365274;box-shadow:var(--shadow-xs);cursor:pointer;transition:transform .1s,box-shadow .1s,background .1s}.icon-action:hover{background:#eef4fb;transform:translateY(-1px);box-shadow:var(--shadow-sm)}.icon-action svg{width:14px;height:14px}.icon-action.edit{color:#2563eb;border-color:#bfdbfe}.icon-action.delete{color:#dc2626;border-color:#fecaca}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.form-grid h3,.form-grid .error,.form-grid .actions{grid-column:1 / -1}.form-grid label{display:grid;gap:5px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.form-grid label input,.form-grid label select{margin-top:0;font-size:14px}.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;padding:10px 14px;border-radius:9px;font-size:13px}.login-page{min-height:100vh;background:linear-gradient(150deg,#001060,#001c77 40%,#013a8c,#005f8a)}.login{max-width:420px;width:100%;display:grid;gap:16px;padding:32px 28px;box-shadow:var(--shadow-lg)}.login-brand{display:flex;align-items:center;gap:14px}.login-brand h2{font-size:18px;font-weight:700;margin:0 0 3px;color:var(--primary)}.login-brand p{font-size:12px;color:var(--muted)}.login-divider{height:1px;background:var(--border);margin:2px 0}.scan-box p{font-size:12px;color:var(--muted);margin-bottom:10px}.regional-alerts{display:grid;gap:16px}.alert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.alert-card{border-radius:12px;padding:22px 16px 18px;text-align:center;border:1px solid transparent}.alert-card h2{font-size:44px;line-height:1;font-weight:800;letter-spacing:-.025em;margin:0 0 5px}.alert-card p{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin:0 0 3px}.alert-card span{font-size:11px;opacity:.65}.alert-card.critical{background:#fef2f2;border-color:#fca5a5;color:#991b1b}.alert-card.critical h2{color:#dc2626}.alert-card.overdue{background:#fff7ed;border-color:#fdba74;color:#9a3412}.alert-card.overdue h2{color:#ea580c}.alert-card.due-now{background:#fefce8;border-color:#fde047;color:#854d0e}.alert-card.due-now h2{color:#ca8a04}.sites-issues{display:grid;gap:6px}.site-issue-row{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f8fafc;border:1px solid #e2ecf4;border-radius:9px;gap:12px;transition:background .1s}.site-issue-row:hover{background:#f0f6ff}.site-info{display:flex;flex-direction:column;gap:2px}.site-code{font-weight:700;color:var(--primary);font-size:13px;font-variant-numeric:tabular-nums}.site-location{font-size:11px;color:var(--muted)}.issue-badges{display:flex;gap:6px;align-items:center;flex-shrink:0}.asset-cards{display:none}.asset-card{border:1px solid var(--border);border-radius:12px;padding:14px;display:grid;gap:12px;background:#fbfdff}.asset-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.asset-card-title{display:grid;gap:2px;min-width:0}.asset-card-number{font-weight:700;color:var(--primary);font-size:13px;font-variant-numeric:tabular-nums;word-break:break-all}.asset-card-name{font-size:14px;color:#1e293b}.asset-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin:0}.asset-card-meta div{display:grid;gap:1px;min-width:0}.asset-card-meta dt{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.asset-card-meta dd{margin:0;font-size:13px;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf3f8;padding-top:10px}.asset-card-flags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.team-list{display:grid;gap:8px}.team-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:#fafcff;flex-wrap:wrap}.team-row.inactive{opacity:.6;background:#f4f6f9}.team-identity{display:grid;gap:2px;min-width:200px}.team-name{font-weight:700;color:var(--primary);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.team-email{font-size:12px;color:var(--muted)}.chip-you{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;background:#00c6c126;color:#0b7a70;border:1px solid rgba(0,198,193,.35);border-radius:999px;padding:1px 8px}.team-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.team-controls .location-select{min-width:170px}.invite-box{border:1px dashed var(--border);border-radius:12px;padding:16px;margin-bottom:14px;background:#f8fbff}.role-legend{margin:8px 0 0;padding-left:18px;display:grid;gap:6px}.role-legend li{font-size:13px;color:#1e293b}@media (max-width: 768px){.team-row{flex-direction:column;align-items:stretch}.team-controls{align-items:stretch;flex-direction:column}.team-controls .location-select{min-width:0}.team-summary{grid-template-columns:1fr 1fr}}.empty-state{text-align:center;padding:44px 24px}.empty-state h3{font-size:18px}.empty-state .subtle{max-width:52ch;margin:6px auto 0}.import-drop{border:2px dashed var(--border);border-radius:12px;padding:28px 20px;text-align:center}.import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.import-summary>div{background:#f6f9fd;border:1px solid var(--border);border-radius:10px;padding:12px;display:grid;gap:2px;text-align:center}.import-summary strong{font-size:24px;line-height:1;color:var(--primary);font-variant-numeric:tabular-nums}.import-summary span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.import-sites{display:grid;gap:4px;max-height:260px;overflow-y:auto;padding-right:4px}.import-site-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:#f8fafc;border:1px solid #e2ecf4;border-radius:8px}.import-toggle{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#1e293b;cursor:pointer}.import-toggle input{width:auto;margin-top:2px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#001c777a;display:grid;place-items:center;z-index:200;padding:20px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:var(--surface);border-radius:18px;padding:28px 24px;width:100%;max-width:480px;max-height:90dvh;overflow-y:auto;box-shadow:var(--shadow-lg);display:grid;gap:16px;animation:modal-in .18s ease-out}@media (prefers-reduced-motion: reduce){.modal{animation:none}}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal h3{font-size:17px;margin:0}.modal-wide{max-width:640px}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.wizard-steps{display:flex;align-items:center;list-style:none;margin:0;padding:0;gap:8px}.wizard-step{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);white-space:nowrap}.wizard-step:not(:last-child){flex:1}.wizard-step:not(:last-child):after{content:"";flex:1;height:2px;border-radius:2px;background:var(--border)}.wizard-step.done:not(:last-child):after{background:var(--accent)}.wizard-step-dot{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:999px;background:var(--border);color:var(--muted);font-size:12px;transition:background .15s ease,color .15s ease}.wizard-step.active .wizard-step-dot{background:var(--primary);color:#fff}.wizard-step.done .wizard-step-dot{background:var(--accent);color:#00211f}.wizard-step.active .wizard-step-label,.wizard-step.done .wizard-step-label{color:var(--primary)}.wizard-review{display:grid;gap:0;margin:0}.wizard-review>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--border)}.wizard-review dt{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.wizard-review dd{margin:0;font-size:14px;font-weight:600;text-align:right}.assignment-pill{display:inline-flex;align-items:center;gap:4px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;white-space:nowrap}.assignment-number{color:#60a5fa;font-weight:400}.icon-action.checkout{color:#0891b2;border-color:#a5f3fc}.icon-action.checkin{color:#059669;border-color:#a7f3d0}.custody-list{display:grid;gap:8px}.custody-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px 16px;align-items:start;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:#fafcff;font-size:13px}.custody-row--active{background:#eff6ff;border-color:#bfdbfe}.custody-assignee{display:flex;flex-direction:column;gap:2px}.custody-name{font-weight:700;color:var(--primary)}.custody-number{font-size:12px;color:var(--muted)}.custody-dates{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:12px}.custody-duration{font-weight:600;color:#475569}.custody-meta{display:flex;flex-direction:column;gap:2px;text-align:right}.custody-notes{font-size:12px;color:#374151;font-style:italic}.custody-by{font-size:11px;color:var(--muted)}@media (max-width: 768px){.layout{padding:0 12px 28px}.topbar{flex-direction:column;align-items:flex-start;gap:12px;margin:0 -12px 4px;padding:16px 18px 20px;border-radius:0 0 16px 16px}.topbar-brand{flex-wrap:wrap;row-gap:8px}.topbar-nav{margin-left:0;width:100%}.topbar-right{width:100%;justify-content:space-between;flex-wrap:wrap;row-gap:8px}input,select{font-size:16px}button{padding:11px 18px}.topbar button{padding:9px 14px}.icon-action{width:40px;height:40px;border-radius:10px}.icon-action svg{width:17px;height:17px}.inline-controls{flex-direction:column}.inline-controls button{width:100%}.section-heading{flex-direction:column}.location-toolbar{grid-template-columns:1fr}.location-meta{flex-wrap:wrap}.status-strip{flex-direction:column;align-items:stretch}.alert-grid{grid-template-columns:repeat(3,1fr);gap:8px}.alert-card{padding:14px 8px 12px}.alert-card h2{font-size:30px}.alert-card span{display:none}.summary-grid{grid-template-columns:1fr 1fr;gap:8px}.summary-grid article{padding:14px 12px 12px}.summary-grid article h2{font-size:24px}.asset-toolbar-actions{flex-direction:column;align-items:stretch;width:100%}.site-issue-row{flex-direction:column;align-items:flex-start}.modal{padding:20px 16px}.modal .actions{flex-wrap:wrap}.modal .actions button{flex:1}.asset-list .asset-table-wrap{display:none}.asset-list .asset-cards{display:grid;gap:10px}.asset-list.card{padding:12px}}.toaster{position:fixed;right:28px;bottom:28px;display:flex;flex-direction:column;gap:14px;z-index:1000;max-width:480px}.toast{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);border-left:5px solid var(--muted);border-radius:16px;padding:20px 24px;box-shadow:var(--shadow-lg);animation:toast-in .28s cubic-bezier(.16,1,.3,1)}.toast-dot{width:12px;height:12px;border-radius:50%;background:var(--muted);flex-shrink:0}.toast-msg{font-size:16px;font-weight:500;color:#0f172a}.toast-x{margin-left:auto;background:none;border:none;font-size:24px;line-height:1;color:var(--muted);cursor:pointer;padding:0 4px}.toast-success{border-left-color:var(--success)}.toast-success .toast-dot{background:var(--success)}.toast-error{border-left-color:var(--alert)}.toast-error .toast-dot{background:var(--alert)}.toast-info{border-left-color:var(--accent)}.toast-info .toast-dot{background:var(--accent)}@media (max-width: 768px){.toaster{left:12px;right:12px;bottom:12px;max-width:none}.toast{padding:16px 18px;gap:12px}.toast-msg{font-size:15px}}@keyframes toast-in{0%{opacity:0;transform:translate(120%)}to{opacity:1;transform:translate(0)}}
