:root{
  --bg:#f2f2f4;
  --surface:#ffffff;
  --surface-soft:#f7f7f8;
  --surface-soft-2:#eef3ff;
  --text:#0b0d12;
  --muted:#727887;
  --line:#dde1e7;
  --line-strong:#cfd6df;
  --primary:#4c82f6;
  --primary-dark:#2f68df;
  --primary-soft:#edf3ff;
  --dark:#06070c;
  --danger:#b42318;
  --danger-bg:#fff0ef;
  --ok:#087443;
  --ok-bg:#eaf7ef;
  --warning:#8a6100;
  --warning-bg:#fff6cc;
  --warning-line:#f0d566;
  --info:#194b7a;
  --info-bg:#edf6ff;
  --shadow:0 12px 34px rgba(10,12,18,.08);
  --shadow-soft:0 4px 16px rgba(10,12,18,.05);
  --radius:18px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:linear-gradient(180deg,#f5f5f6 0,#f1f2f5 100%);color:var(--text);line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}
.topbar{background:linear-gradient(90deg,#09101f 0%, #0e2549 42%, #09101f 100%);color:#fff;padding:0 28px;min-height:72px;display:flex;gap:20px;align-items:center;position:sticky;top:0;z-index:20;box-shadow:0 2px 14px rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.08)}
.topbar a{color:#d9deea;font-size:14px;font-weight:600;white-space:nowrap}.topbar a:hover{color:#fff}.topbar span{color:#b6bfce;font-size:13px;white-space:nowrap}
.brand{display:flex;align-items:center;gap:10px;margin-right:10px;padding-right:14px;border-right:1px solid rgba(255,255,255,.10)}
.brand-fallback{color:#fff!important;font-size:14px!important;font-weight:700;letter-spacing:.02em}
.nav-logo{height:36px;max-width:220px;object-fit:contain;background:#fff;border-radius:8px;padding:4px 8px;box-shadow:0 3px 12px rgba(0,0,0,.18)}.nav-user{margin-left:auto!important}
.dropdown{position:relative;display:inline-flex}.dropbtn{background:transparent!important;box-shadow:none!important;padding:8px 9px!important;color:#dce7f5!important;font-size:14px!important}.dropbtn:hover{color:#fff!important;transform:none!important}
.dropdown-content{display:none;position:absolute;top:100%;right:0;min-width:210px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:7px;z-index:50}.dropdown:hover .dropdown-content,.dropdown:focus-within .dropdown-content{display:block}.dropdown-content a{display:block!important;color:#27364a!important;padding:9px 11px;border-radius:8px}.dropdown-content a:hover{background:#f1f5f9;color:#142033!important}

.container{max-width:1260px;margin:34px auto;padding:0 24px}
h1,h2,h3{letter-spacing:-.03em;margin-top:0;color:#11151d}h1{font-size:31px;margin-bottom:4px}h2{font-size:18px;margin-bottom:4px}h3{font-size:16px}
.page-subtitle{margin:0}.muted{color:var(--muted)}
.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.stats-grid{margin-bottom:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px;box-shadow:var(--shadow-soft)}
.card.brand-card{position:relative;overflow:hidden}.card.brand-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--primary)}
.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.card-heading p{margin:0;font-size:13px}
.table-card{padding:14px 18px 10px}.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:separate;border-spacing:0}.data-table th,.data-table td,th,td{padding:12px 11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
th{background:var(--surface-soft);font-size:12px;font-weight:750;color:#475166;letter-spacing:.01em;text-transform:none}tr:last-child td{border-bottom:0}.data-table tbody tr:hover td,table tbody tr:hover td{background:#fafbfd}
.serial-link{font-weight:750}.empty-row{color:var(--muted);text-align:center!important;padding:28px!important}
.btn,button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:10px 15px;background:var(--primary);color:#fff;cursor:pointer;font:inherit;font-size:14px;font-weight:650;box-shadow:0 2px 6px rgba(76,130,246,.18);transition:.15s ease}.btn:hover,button:hover{background:var(--primary-dark);color:#fff;transform:translateY(-1px)}
.btn.secondary,button.secondary{background:#fff;color:#334155;border-color:var(--line-strong);box-shadow:none}.btn.secondary:hover,button.secondary:hover{background:#f8fafc;color:#18212f}.btn.light{background:#eef3f8;color:#2d4058;box-shadow:none}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.search-form{width:min(430px,100%)}.toolbar input{max-width:none}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfd6df;border-radius:12px;background:#fff;color:var(--text);font:inherit;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#83a8ff;box-shadow:0 0 0 4px rgba(76,130,246,.12)}textarea{min-height:96px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:650;font-size:13px;margin-bottom:6px;color:#384860}
.badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#edf2f7;color:#425268;font-size:11px;font-weight:700;border:1px solid #e4eaf1}
.badge.lifecycle{margin-left:7px;font-weight:700}.badge.lifecycle.installed{background:#dcfce7;color:#166534}.badge.lifecycle.warehouse{background:#e0f2fe;color:#075985}.badge.lifecycle.uninstalled{background:#fef3c7;color:#92400e}.badge.danger{background:#fee2e2;color:#991b1b}.badge.warning{background:#fff7db;color:#8a5a00;border-color:#f2d071}.badge.success{background:#dcfce7;color:#166534;border-color:#b7e4c7}.badge.info{background:#edf6ff;color:#195188;border-color:#cadfff}
.qty-badge{width:30px;height:30px;min-width:30px;padding:0!important;border-radius:50%!important;justify-content:center;text-align:center}

.pm-column{white-space:nowrap;color:var(--text)!important;background:transparent!important;font-weight:400!important}
.pm-date{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;border:1px solid transparent}
.pm-green{background:#e5f6eb!important;color:#156c3b!important;border-color:#b9e4c8!important}
.pm-yellow{background:#fff3cf!important;color:#875900!important;border-color:#f2d887!important}
.pm-red{background:#fee8e7!important;color:#a3261e!important;border-color:#f3c1bd!important}
.pm-separator{display:inline-block;margin:0 7px;color:#9aa6b5}.pm-copy{color:var(--text);font-weight:400;background:transparent!important}

.ok{color:var(--ok)}.danger{color:var(--danger)}.warning-text{color:var(--warning)}
.success,.error,.notice,.info,.warning{padding:14px 16px;border-radius:16px;margin-bottom:16px;border:1px solid transparent;box-shadow:var(--shadow-soft)}
.success{background:var(--ok-bg);color:#1d633d;border-color:#c9ebd5}
.error{background:var(--danger-bg);color:#912018;border-color:#ffd0cc}
.notice,.info{background:var(--info-bg);border-color:#c9e2ff;color:var(--info)}
.warning{background:var(--warning-bg);border-color:var(--warning-line);color:#674d00}
.alert-banner{font-size:14px;line-height:1.5}.alert-banner b{font-weight:750}
.login{max-width:430px;margin:90px auto}.parts-row{display:grid;grid-template-columns:1fr 2fr 1fr .5fr auto;gap:8px;margin-bottom:8px}.info-grid{display:grid;grid-template-columns:180px 1fr;gap:0 18px}.info-grid div{padding:9px 0;border-bottom:1px solid #eef2f6}.info-grid .k{font-weight:700;color:#526176}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:14px;align-items:end}.filter-actions{display:flex;gap:8px;align-items:center}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bar-chart{margin-top:16px}.bar-row{display:grid;grid-template-columns:minmax(120px,1.5fr) 3fr 44px;gap:10px;align-items:center;margin:10px 0}.bar-label{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#76a2ff,#4c82f6);border-radius:999px;min-width:3px}.bar-value{font-size:12px;font-weight:700;text-align:right}.topbar{scrollbar-width:thin}
.checkline{display:flex;align-items:flex-start;gap:10px;font-weight:600;line-height:1.5}.checkline input{margin-top:4px;flex:0 0 auto}blockquote{margin:10px 0;padding:12px 14px;border-left:4px solid #b8c8dc;background:#f8fafc;border-radius:0 8px 8px 0;color:#334155}
.component-serials{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.component-serials h3{margin:0 0 4px}.component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.th a{color:#415065;display:inline-flex;align-items:center;gap:3px}th a{color:#415065;display:inline-flex;align-items:center;gap:3px}th a:hover{color:var(--primary)}

.report-hero{position:relative;overflow:hidden;background:var(--dark);color:#fff;border-radius:28px;padding:28px 30px;border:1px solid rgba(255,255,255,.06);box-shadow:var(--shadow);margin-bottom:20px}
.report-hero::after{content:"";position:absolute;right:-120px;bottom:-110px;width:520px;height:240px;border-top:2px solid rgba(255,255,255,.78);border-radius:50% 50% 0 0/100% 100% 0 0;opacity:.55;transform:rotate(-6deg)}
.report-hero .eyebrow{color:#b7c1d4;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.report-hero h1,.report-hero h2,.report-hero h3,.report-hero p,.report-hero a{position:relative;z-index:1}.report-hero h1{color:#fff;margin-bottom:8px;font-size:34px}.report-hero p{color:#d7dfec;margin:0}
.report-hero .hero-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}.report-hero .hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-hero .hero-actions .btn.secondary{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15);color:#fff}.report-hero .hero-actions .btn.secondary:hover{background:rgba(255,255,255,.12)}
.hero-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hero-pills .badge{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}
.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.report-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow-soft);margin-bottom:18px}
.report-card h2,.report-card h3{margin-bottom:8px}
.report-section-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.report-copy{white-space:pre-wrap;line-height:1.65;font-size:14px}
.kpi-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.kpi-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface-soft);padding:10px 12px;border-radius:14px;font-size:13px;color:#253043}.kpi-tag strong{font-size:14px;color:#101722}
.checklist-stack{display:flex;flex-direction:column;gap:14px}.checklist-summary{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff 0,#fafbff 100%)}
.checklist-summary .meta{margin:0;color:var(--muted)}.checklist-summary h3{margin-bottom:6px}.checklist-summary .actions{justify-content:flex-end}
.not-required-card{background:var(--warning-bg);border-color:var(--warning-line)}
.signature-box{background:#fbfbfc;border:1px dashed #cfd6df;border-radius:16px;padding:16px}
.table-title{margin-bottom:10px}
.checklist-sheet{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow-soft)}
.checklist-header-bar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.checklist-options{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.checklist-options label{margin-bottom:0}
.checklist-table th{background:#eff4ff;color:#31425d}.checklist-table .section-row td{background:#eef3ff!important;color:#22324f;font-weight:700;border-bottom-color:#d9e4ff}
.checklist-table input[type=radio]{width:auto}
.section-note{font-size:12px;color:var(--muted)}
.info-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:var(--primary-soft);color:#3157b7;border:1px solid #d3ddff;font-size:12px;font-weight:700}
.login-brand{text-align:center}.login-logo{max-width:260px;max-height:90px;object-fit:contain;margin:0 auto 14px}.branding-preview{max-width:320px;max-height:120px;object-fit:contain;display:block;margin:10px 0 20px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}.mini-upload{display:flex;gap:6px;align-items:center;margin-top:7px}.mini-upload input[type=file]{font-size:11px;padding:5px;max-width:180px}.mini-upload button{padding:5px 8px;font-size:11px}

@media(max-width:900px){.topbar{gap:13px;overflow-x:auto}.container{margin-top:24px}.section-title{align-items:flex-start}.pm-column{min-width:230px}.filter-grid{grid-template-columns:repeat(2,1fr)}.analytics-grid{grid-template-columns:1fr}.component-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}}
@media(max-width:700px){.container{padding:0 14px}.form-grid{grid-template-columns:1fr}.parts-row{grid-template-columns:1fr}.topbar{flex-wrap:wrap;padding:12px 16px}.info-grid{grid-template-columns:1fr}.section-title{flex-direction:column}.actions{width:100%;flex-wrap:wrap}.table-card{padding:8px}.report-hero{padding:22px 20px;border-radius:22px}.report-hero h1{font-size:28px}.checklist-summary{padding:16px}.hero-pills{margin-top:10px}.report-card,.checklist-sheet,.card{padding:18px}}
@media(max-width:650px){.filter-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:110px 1fr 36px}.component-grid{grid-template-columns:1fr}}

.req{color:#ef3f5c;font-weight:800}
.checklist-table .result-radio{
  width:24px!important;height:24px!important;min-width:24px;min-height:24px;
  margin:0 auto;cursor:pointer;accent-color:#4c82f6;transform:none!important;
}
.checklist-table td:nth-child(5),.checklist-table td:nth-child(6),.checklist-table td:nth-child(7){text-align:center}
