:root{--bg:#f4f6f8;--panel:#fff;--ink:#19212a;--muted:#708090;--line:#e3e8ed;--nav:#101923;--nav2:#182532;--accent:#ef6c2c;--accent2:#d7541a;--green:#157f5b;--red:#c73a3a;--amber:#a96b08;--blue:#2468a9;--radius:16px;--shadow:0 10px 30px rgba(27,39,52,.07)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,Segoe UI,Arial,sans-serif}a{color:#1d64a7;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:linear-gradient(180deg,var(--nav),#0d151d);color:#c8d2dc;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand,.public-header{display:flex;align-items:center;gap:12px}.brand{padding:0 8px 26px;border-bottom:1px solid #24323f}.brand strong,.public-header strong{display:block;color:#fff;font-size:15px}.brand span,.public-header span{display:block;color:#8193a3;font-size:11px;text-transform:uppercase;letter-spacing:.13em}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--accent);color:#fff;font-weight:900;font-size:20px}.sidebar nav{padding:20px 0;display:flex;flex-direction:column;gap:5px}.sidebar nav a{color:#aebbc7;padding:11px 12px;border-radius:10px;display:flex;gap:11px;align-items:center}.sidebar nav a:hover,.sidebar nav a.active{background:var(--nav2);color:#fff;text-decoration:none}.sidebar nav a.active{box-shadow:inset 3px 0 var(--accent)}.sidebar-foot{margin-top:auto;border-top:1px solid #24323f;padding:18px 8px 0;display:grid;gap:10px}.sidebar-foot>a{color:#aebbc7;font-size:12px}.user-chip b,.user-chip span{display:block}.user-chip b{color:#fff}.user-chip span{color:#8193a3;font-size:11px;text-transform:uppercase}.main{padding:26px 30px 50px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.topbar h1{margin:2px 0 0;font-size:26px;line-height:1.2}.eyebrow{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.18em}.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;padding:9px 14px;cursor:pointer;font-weight:650;display:inline-block}.btn:hover{box-shadow:0 3px 12px rgba(0,0,0,.06);text-decoration:none}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent2)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.kpi{background:var(--panel);padding:20px;border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow)}.kpi span,.kpi em{display:block;color:var(--muted);font-style:normal}.kpi strong{display:block;font-size:34px;margin:6px 0}.kpi.danger strong{color:var(--red)}.kpi.warning strong{color:var(--amber)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:18px}.panel h2,.panel h3{margin:0 0 8px}.panel-head{display:flex;align-items:start;justify-content:space-between;margin-bottom:14px}.panel-head h2{margin:0;font-size:18px}.panel-head p{margin:3px 0;color:var(--muted)}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:720px}.table-wrap th{text-align:left;color:#7d8995;font-size:10px;text-transform:uppercase;letter-spacing:.1em;padding:10px 12px;border-bottom:1px solid var(--line)}.table-wrap td{padding:13px 12px;border-bottom:1px solid #edf0f2;vertical-align:middle}.table-wrap tr:last-child td{border-bottom:0}.table-wrap small,td small{display:block;color:var(--muted);margin-top:2px}.strong{font-weight:800;color:var(--ink)}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;background:#edf1f4;color:#516170;margin:2px 4px 2px 0}.badge-critical,.badge-rejected,.badge-cancelled{background:#fde8e8;color:#a52626}.badge-high,.badge-waiting-approval,.badge-manufacturer-approval{background:#fff0d8;color:#945b00}.badge-warranty,.badge-completed,.badge-resolved,.badge-active{background:#e2f5ec;color:#126b4d}.badge-billable{background:#e9eff8;color:#365a84}.badge-goodwill{background:#efe8fb;color:#674399}.badge-new,.badge-scheduled,.badge-diagnosis{background:#e6f1fb;color:#246394}.empty{text-align:center!important;color:var(--muted);padding:32px!important}.flash{padding:12px 14px;border-radius:10px;margin:0 0 16px;transition:.3s}.flash.success{background:#e2f5ec;color:#126b4d;border:1px solid #c4eadc}.flash.error{background:#fdeaea;color:#9f2a2a;border:1px solid #f6cccc}.form-panel summary,.action-panel summary{cursor:pointer;font-weight:800;color:#315b82;margin:0 0 10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.single{grid-template-columns:1fr}.form-grid label,.check-form label{display:grid;gap:6px;font-weight:650;font-size:12px}.form-grid label small{color:var(--muted);font-weight:400}.form-grid input,.form-grid select,.form-grid textarea,.inline-form input,.inline-form select,.check-form textarea,.searchbar input{width:100%;border:1px solid #d7dee4;border-radius:9px;background:#fff;padding:10px 11px;color:var(--ink);outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.searchbar input:focus{border-color:#9db8cf;box-shadow:0 0 0 3px #e9f2f9}.span2{grid-column:1/-1}.form-grid .btn{justify-self:start}.searchbar{display:flex;gap:9px;margin-bottom:14px}.searchbar input{max-width:440px}.ticket-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.85fr);gap:18px}.ticket-hero{display:flex;justify-content:space-between;gap:20px}.ticket-hero h2{font-size:22px}.ticket-code{font-size:11px;color:var(--accent);font-weight:900;letter-spacing:.12em}.ticket-meta{text-align:right;min-width:130px}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.info-grid span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.info-grid strong,.info-grid small{display:block;margin-top:3px}.info-grid small{color:var(--muted)}.action-panel h3{font-size:14px;text-transform:uppercase;letter-spacing:.06em}.decision-box{background:#f6f8fa;border:1px solid #e4e9ed;border-radius:10px;padding:12px;margin:8px 0 14px}.decision-box>span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.decision-box p{font-size:12px}.decision-box small{color:var(--muted)}.check-form{display:grid;gap:9px}.check-form>label:not(:last-of-type){display:flex;align-items:flex-start;gap:8px;font-weight:500}.check-form input[type=checkbox]{margin-top:3px}.inline-form{display:flex;gap:9px;align-items:center;margin-top:12px}.note-form{margin:0 0 18px}.timeline{display:grid;gap:0}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:10px;position:relative;padding-bottom:18px}.timeline-item:before{content:"";position:absolute;left:5px;top:12px;bottom:-2px;width:1px;background:#dfe5e9}.timeline-item:last-child:before{display:none}.timeline-item i{width:11px;height:11px;border-radius:50%;background:var(--accent);margin-top:4px;z-index:1}.timeline-item strong{font-size:12px}.timeline-item p{margin:3px 0}.timeline-item small{color:var(--muted)}.attachment-list{display:grid;gap:8px}.attachment-list a{display:flex;gap:10px;align-items:center;background:#f7f9fa;border:1px solid #e8ecef;border-radius:9px;padding:10px;color:var(--ink)}.attachment-list a:hover{text-decoration:none;background:#f1f5f7}.attachment-list small{display:block;color:var(--muted)}.wo-card{display:grid;grid-template-columns:1fr auto;gap:4px;border:1px solid var(--line);border-radius:9px;padding:10px;margin-bottom:8px;color:var(--ink)}.wo-card small{grid-column:1/-1;color:var(--muted)}.two-col{display:grid;grid-template-columns:.9fr 1.4fr;gap:18px}.public-shell{min-height:100vh;background:linear-gradient(135deg,#0f1b26 0,#14293a 38%,#eef2f4 38%,#f6f7f8 100%);padding:32px}.public-header{max-width:1000px;margin:0 auto 50px}.public-card{max-width:560px;margin:0 auto;background:#fff;padding:30px;border-radius:20px;border:1px solid #e3e8ed;box-shadow:0 22px 60px rgba(9,19,28,.16)}.public-card.wide{max-width:800px}.public-card h1{font-size:30px;margin:6px 0 10px}.muted{color:var(--muted)}.login-wrap{padding-top:28px}.login-help{text-align:center;margin-top:18px;color:var(--muted);font-size:12px}.public-footer{text-align:center;color:#8895a0;font-size:11px;margin:28px auto}.machine-banner{background:#f5f8fa;border:1px solid var(--line);border-radius:12px;padding:14px;margin:18px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.machine-banner span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.machine-banner strong{display:block;margin-top:3px}.success-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#e2f5ec;color:var(--green);font-size:30px;font-weight:900}.public-card code{background:#f1f4f6;padding:2px 5px;border-radius:5px}@media(max-width:1050px){.kpis{grid-template-columns:repeat(2,1fr)}.ticket-grid,.two-col{grid-template-columns:1fr}}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:14px}.brand{padding-bottom:12px}.sidebar nav{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0}.sidebar nav a{font-size:11px;justify-content:center}.sidebar-foot{display:none}.main{padding:18px 12px 40px}.topbar{align-items:flex-start;gap:12px}.topbar h1{font-size:21px}.kpis{grid-template-columns:1fr 1fr;gap:9px}.kpi{padding:14px}.kpi strong{font-size:26px}.form-grid,.info-grid{grid-template-columns:1fr}.span2{grid-column:auto}.public-shell{padding:18px 12px}.public-header{margin-bottom:24px}.public-card{padding:22px}.machine-banner{grid-template-columns:1fr}.inline-form{align-items:stretch;flex-direction:column}}

.lang-switch{display:inline-flex;gap:4px;align-items:center}.lang-switch a{font-size:10px;font-weight:800;letter-spacing:.08em;padding:5px 7px;border-radius:7px;color:#8292a1;border:1px solid transparent}.lang-switch a:hover,.lang-switch a.active{color:#fff;background:#263744;text-decoration:none}.topbar-actions{display:flex;align-items:center;gap:10px}.public-header .lang-switch{margin-left:auto}.public-header .lang-switch a{color:#c4d0da}.public-header .lang-switch a.active{background:#fff;color:#172634}.btn-small{padding:6px 10px;font-size:11px}.btn-danger-outline{border-color:#e6b5b5;color:#a72d2d}.btn-danger-outline:hover{background:#fff2f2}.small-text{font-size:12px}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.checkbox-line{display:flex!important;align-items:flex-start;gap:10px!important;background:#f7f9fa;border:1px solid var(--line);border-radius:10px;padding:12px}.checkbox-line input{width:auto!important;margin-top:3px}.checkbox-line span{display:block}.checkbox-line small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.privacy-note{font-size:11px;color:var(--muted);background:#f7f9fa;border-radius:8px;padding:10px 12px}.tracking-card{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.tracking-card>div{background:#f6f8fa;border:1px solid var(--line);border-radius:10px;padding:12px}.tracking-card span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.tracking-card strong{display:block;margin-top:4px}.qr-admin-panel{max-width:1050px}.qr-layout{display:grid;grid-template-columns:minmax(320px,460px) minmax(300px,1fr);gap:28px;align-items:start}.qr-label-card{background:#fff;border:1px solid #cad3da;border-radius:18px;padding:28px;box-shadow:0 10px 30px rgba(0,0,0,.08);max-width:440px;text-align:center}.qr-label-brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:18px}.qr-label-brand strong,.qr-label-brand span{display:block;text-align:left}.qr-label-brand span{font-size:10px;color:#657482;letter-spacing:.16em}.qr-label-copy strong{font-size:15px;display:block}.qr-label-copy span{display:block;color:var(--muted);font-size:12px;margin:4px 0 16px}.qrcode-box{width:184px;min-height:184px;margin:0 auto 14px;padding:10px;background:#fff;border:1px solid #e7ebee;display:grid;place-items:center}.qrcode-box img,.qrcode-box canvas{max-width:164px!important;width:164px!important;height:164px!important}.qr-machine-id{border-top:1px solid var(--line);padding-top:12px}.qr-machine-id span{display:block;color:var(--muted);text-transform:uppercase;font-size:9px;letter-spacing:.1em}.qr-machine-id strong{display:block;font-size:22px;margin-top:2px}.qr-machine-id small{display:block;color:var(--muted)}.qr-domain{font-size:11px;margin-top:14px;color:#526271;font-weight:700}.qr-actions{padding-top:8px}.qr-actions h3{margin-top:0}.copy-row{display:flex;gap:8px;margin:12px 0}.copy-row input{flex:1;min-width:0;border:1px solid #d7dee4;border-radius:9px;padding:10px;background:#f7f9fa}.qr-button-row{display:flex;gap:8px;flex-wrap:wrap}.qr-actions hr{border:0;border-top:1px solid var(--line);margin:22px 0}.qr-actions .inline-form{margin:8px 0}.qr-actions .inline-form input[type=hidden]{display:none}
@media(max-width:760px){.qr-layout{grid-template-columns:1fr}.qr-label-card{margin:0 auto;width:100%}.tracking-card{grid-template-columns:1fr}.topbar-actions .lang-switch{display:none}.qrcode-box{width:184px;min-height:184px}.qrcode-box img,.qrcode-box canvas{max-width:164px!important;width:164px!important;height:164px!important}}
@media print{body{background:#fff!important}.sidebar,.topbar,.flash,.qr-actions,.panel-head>a,.public-header,.public-footer{display:none!important}.app-shell{display:block!important}.main{padding:0!important}.qr-admin-panel{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}.qr-admin-panel>.panel-head{display:none!important}.qr-layout{display:block!important}.qr-label-card{box-shadow:none!important;border:1px solid #000!important;margin:0 auto!important;width:70mm!important;max-width:70mm!important;padding:4.5mm!important;border-radius:4mm!important}.qrcode-box{width:38mm!important;min-height:38mm!important;padding:2mm!important}.qrcode-box img,.qrcode-box canvas{width:34mm!important;height:34mm!important;max-width:34mm!important}.brand-mark{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* v0.6 language switcher + master data */
.lang-switch{display:inline-flex;align-items:center;gap:8px;padding:3px 5px;border:1px solid rgba(130,146,161,.22);border-radius:10px;background:rgba(255,255,255,.04)}
.lang-switch a{font-size:10px;font-weight:850;letter-spacing:.09em;padding:5px 8px;border-radius:7px;color:#8292a1;border:1px solid transparent;line-height:1}
.lang-switch .lang-sep{font-size:11px;color:#9aa8b4;opacity:.45;user-select:none}
.lang-switch a:hover{color:#172634;background:#eef3f6;text-decoration:none}
.lang-switch a.active{color:#fff;background:#263744;box-shadow:0 1px 4px rgba(0,0,0,.16)}
.sidebar .lang-switch{justify-self:start;border-color:#2a3947;background:#111d28}
.sidebar .lang-switch a{color:#aebbc7}.sidebar .lang-switch a:hover{background:#243542;color:#fff}.sidebar .lang-switch a.active{background:var(--accent);color:#fff}
.public-header .lang-switch{margin-left:auto;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.07)}
.public-header .lang-switch .lang-sep{color:#d8e0e6}.public-header .lang-switch a{color:#c4d0da}.public-header .lang-switch a:hover{background:rgba(255,255,255,.14);color:#fff}.public-header .lang-switch a.active{background:#fff;color:#172634}
.inline-create{border:1px dashed #bdc9d2;background:#f8fafb;border-radius:12px;padding:14px}.inline-create h4{margin:0 0 10px;font-size:13px}.inline-create.hidden{display:none}.field-note{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:5px}.field-link{font-size:11px;margin-top:6px;display:inline-block}.master-grid{display:grid;grid-template-columns:1fr;gap:18px}.master-section .panel-head{align-items:center}.master-actions{display:flex;gap:6px;flex-wrap:wrap}.master-actions form{display:inline}.btn-muted{background:#f6f8fa}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#99a6b0}.status-dot.active{background:var(--green)}.edit-note{background:#fff7e9;border:1px solid #f1d7a7;border-radius:9px;padding:9px 11px;color:#805100;font-size:12px;margin-bottom:12px}
@media(max-width:760px){.lang-switch{gap:5px}.lang-switch .lang-sep{display:inline}.master-actions{min-width:210px}.inline-create{grid-column:auto}}

/* v0.7 machine registration UX */
.inline-create[hidden]{display:none!important}
.location-fieldset{border:1px solid var(--line);border-radius:12px;padding:14px 14px 4px;margin:0;min-width:0}
.location-fieldset legend{font-size:12px;font-weight:800;padding:0 6px;color:var(--text)}
.location-note{margin:0 0 10px}
@media(max-width:760px){.location-fieldset{grid-column:auto}.location-fieldset .form-grid{grid-template-columns:1fr}}

/* v0.8 workflow, email log and service report */
.checkbox-line.compact{padding:9px 10px;margin:0}.checkbox-line.compact span{font-size:12px;font-weight:650}
.notification-list{display:grid;gap:9px}.notification-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#f9fafb}.notification-row small{display:block;color:var(--muted);margin-top:2px}.notification-state{width:9px;height:9px;border-radius:50%;background:#9aa7b1;flex:0 0 auto}.notification-state.sent{background:var(--green)}.notification-state.failed{background:var(--red)}.notification-state.pending{background:var(--amber)}.notification-state.disabled{background:#8795a0}
.signature-block{border:1px solid var(--line);background:#fafbfc;border-radius:12px;padding:12px}.signature-block .field-title{display:block;font-weight:750;margin-bottom:8px}.signature-block canvas{display:block;width:100%;height:170px;border:1px dashed #b8c3cc;border-radius:9px;background:#fff;touch-action:none;cursor:crosshair}.signature-existing{display:block;max-width:320px;max-height:110px;margin:0 0 10px;border:1px solid #e2e7eb;background:#fff;padding:5px;border-radius:7px}.signature-actions{display:flex;align-items:center;gap:10px;margin-top:8px}.signature-actions small{color:var(--muted)}.form-actions{display:flex;gap:8px;flex-wrap:wrap}
.workflow-note{font-size:12px;color:var(--muted);padding:9px 10px;background:#f7f9fa;border:1px solid var(--line);border-radius:9px}
@media(max-width:760px){.signature-block canvas{height:145px}.signature-actions{align-items:flex-start;flex-direction:column}.form-actions{flex-direction:column}.form-actions .btn{text-align:center}}
.badge-waiting-customer,.badge-waiting-kalitegaz{background:#fff0d8;color:#945b00}.badge-approved-warranty{background:#e2f5ec;color:#126b4d}.badge-testing,.badge-on-site,.badge-travelling{background:#e6f1fb;color:#246394}.badge-request-info{background:#fff0d8;color:#945b00}

/* v0.9 linked machine and customer service records */
.entity-hero{display:flex;justify-content:space-between;align-items:center;gap:18px}.entity-hero h2{margin:3px 0 4px;font-size:24px}.entity-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.compact-kpis{margin-bottom:18px}.compact-kpis .kpi{min-height:112px}.info-grid .span2{grid-column:span 2}.table-wrap td a:not(.btn){font-weight:650}.panel .strong{font-weight:800}.entity-hero .muted{margin:0}
@media(max-width:760px){.entity-hero{align-items:flex-start;flex-direction:column}.entity-actions{justify-content:flex-start;width:100%}.entity-actions .btn{flex:1;text-align:center}.info-grid .span2{grid-column:auto}.compact-kpis{grid-template-columns:1fr 1fr}}

/* v0.10 Machine ID + dedicated QR label preview */
.qr-label-notes{display:grid;gap:5px;text-align:left;background:#f6f8fa;border:1px solid var(--line);border-radius:9px;padding:9px 10px;margin:8px 0 14px}.qr-label-notes span{display:block!important;margin:0!important;color:#53626f!important;font-size:10px!important;line-height:1.35}.qr-label-notes b{display:inline-block;width:24px;color:#173a55}.form-grid input[readonly]{background:#f4f6f8;color:#52616d;font-weight:750}

/* v0.12 billing, case closure and spare-parts warehouse */
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.stat-card span,.stat-card small{display:block;color:var(--muted)}.stat-card strong{display:block;font-size:30px;margin:4px 0}.stock-low td{background:#fffaf0}.billing-lines{display:grid;gap:8px}.billing-lines>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}.billing-lines>div span{color:var(--muted)}.billing-lines>div strong{white-space:nowrap}.billing-lines .billing-total{font-size:16px;border-top:2px solid var(--ink);border-bottom:0;padding-top:13px;margin-top:4px}.mini-list{margin:8px 0 14px;padding-left:18px;color:var(--muted)}.mini-list li{margin:4px 0}.badge-draft{background:#edf1f4;color:#516170}.badge-finalized{background:#e2f5ec;color:#126b4d}.badge-receipt,.badge-return,.badge-opening-balance{background:#e2f5ec;color:#126b4d}.badge-issue{background:#fff0d8;color:#945b00}.badge-adjustment{background:#efe8fb;color:#674399}
@media(max-width:760px){.stat-grid{grid-template-columns:1fr}.billing-lines>div{align-items:flex-start;flex-direction:column;gap:2px}}

/* v0.13 technician portal · mobile-first field operations */
.tech-body{margin:0;background:#eef2f5;color:#172634;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.tech-shell{min-height:100vh;padding-bottom:82px}.tech-header{position:sticky;top:0;z-index:50;background:#122230;color:#fff;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));box-shadow:0 8px 24px rgba(15,28,40,.18)}.tech-brand,.tech-vn-brand{display:flex;align-items:center;gap:10px}.tech-k-mark{width:38px;height:38px;border-radius:10px;background:#e58b29;display:grid;place-items:center;font-weight:900;font-size:20px}.tech-brand-copy strong,.tech-vn-brand b{display:block}.tech-brand-copy span,.tech-vn-brand small{display:block;color:#aebdca;font-size:11px}.tech-vn-brand{justify-self:center;padding:6px 12px;border-left:1px solid rgba(255,255,255,.14);border-right:1px solid rgba(255,255,255,.14)}.tech-vn-brand img{height:34px;max-width:180px;object-fit:contain}.tech-vn-monogram{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#fff;color:#122230;font-weight:900;font-size:13px;letter-spacing:.06em}.tech-head-actions{display:flex;align-items:center;gap:8px}.tech-head-actions .lang-switch{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}.tech-head-actions .lang-switch a{color:#c9d5df}.tech-head-actions .lang-switch a.active{background:#fff;color:#122230}.tech-admin-link,.tech-signout{color:#d7e1e9;font-size:12px;text-decoration:none;padding:7px 9px;border-radius:8px}.tech-admin-link:hover,.tech-signout:hover{background:rgba(255,255,255,.08);color:#fff}.tech-main{max-width:1180px;margin:0 auto;padding:18px 18px 30px}.tech-previewbar{display:flex;align-items:center;gap:12px;background:#fff8e8;border:1px solid #ecd29c;border-radius:12px;padding:10px 12px;margin-bottom:12px}.tech-previewbar form{margin-left:auto}.tech-previewbar select{border:1px solid #d4c08d;border-radius:8px;padding:7px 9px;background:#fff}.tech-welcome{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 18px}.tech-welcome span,.tech-welcome small{display:block;color:#6c7a87;font-size:12px}.tech-welcome strong{display:block;font-size:22px}.tech-refresh{font-size:12px;color:#3b5569;text-decoration:none;background:#fff;border:1px solid #d6dfe5;padding:8px 10px;border-radius:9px}.tech-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.tech-stats>div{background:#fff;border:1px solid #dce4e9;border-radius:14px;padding:15px;box-shadow:0 6px 20px rgba(17,34,48,.05)}.tech-stats span{display:block;color:#687886;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}.tech-stats strong{font-size:28px;display:block;margin-top:3px}.tech-section{margin:22px 0}.tech-section-head,.tech-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tech-section-head h2,.tech-card h2{font-size:17px;margin:0}.tech-section-head span{background:#dfe7ec;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800}.tech-section-head a{font-size:12px;color:#25506e;text-decoration:none}.tech-job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:11px}.tech-job-card{background:#fff;border:1px solid #dce4e9;border-radius:15px;padding:15px;box-shadow:0 6px 18px rgba(17,34,48,.05)}.tech-job-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.tech-job-top strong{display:block;font-size:16px;margin-top:3px}.tech-job-code{font-size:11px;font-weight:800;letter-spacing:.06em;color:#5e6e7b}.tech-job-meta{display:grid;gap:7px;margin:12px 0}.tech-job-meta>div{display:grid;grid-template-columns:20px 1fr;gap:5px;align-items:start}.tech-job-meta span{color:#70818e}.tech-job-meta b{font-size:12px;font-weight:650}.tech-job-card p{font-size:12px;color:#536471;margin:9px 0 12px}.tech-primary-action,.tech-complete-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:10px;background:#173b54;color:#fff!important;text-decoration:none;font-weight:800;font-size:12px;padding:10px 13px;cursor:pointer}.tech-primary-action:hover,.tech-complete-btn:hover{background:#0e2f46}.tech-empty-inline,.tech-empty-state{background:#fff;border:1px dashed #cbd6dd;border-radius:14px;padding:22px;color:#687886}.tech-empty-state{text-align:center;margin:40px auto;max-width:620px}.tech-bottom-nav{display:none}.tech-back{display:inline-block;margin:2px 0 12px;color:#4c6374;text-decoration:none;font-size:12px;font-weight:700}.tech-order-hero,.tech-card{background:#fff;border:1px solid #dce4e9;border-radius:16px;padding:17px;box-shadow:0 6px 20px rgba(17,34,48,.05);margin-bottom:14px}.tech-order-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tech-order-title span{font-size:11px;font-weight:850;letter-spacing:.07em;color:#687886}.tech-order-title h1{font-size:24px;margin:3px 0}.tech-order-title p{margin:0;color:#63727e;font-size:12px}.tech-order-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.tech-order-facts>div{background:#f6f8fa;border:1px solid #e1e7eb;border-radius:11px;padding:10px}.tech-order-facts span{display:block;color:#6a7985;font-size:10px;text-transform:uppercase;font-weight:750;letter-spacing:.05em;margin-bottom:3px}.tech-order-facts b,.tech-order-facts small{display:block;font-size:12px}.tech-order-facts small{color:#6b7984;margin-top:3px}.tech-contact-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.tech-contact-actions a{display:inline-flex;align-items:center;gap:5px;border:1px solid #ccd7de;background:#fff;color:#294b61;text-decoration:none;padding:8px 10px;border-radius:9px;font-size:11px;font-weight:750}.tech-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tech-card p{color:#536471}.tech-card-head p{font-size:11px;color:#71808c;margin:4px 0 0}.tech-problem-title{font-weight:800;color:#1e3444!important}.tech-info-chip{display:inline-block;background:#e7eef3;color:#385368;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750;margin-right:5px}.tech-info-chip.danger{background:#fbe4e4;color:#922}.tech-workflow-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px}.tech-workflow-actions form{margin:0}.tech-action{width:100%;display:flex;align-items:center;gap:8px;border:1px solid #d5e0e7;border-radius:11px;background:#f8fafb;padding:12px;text-align:left;cursor:pointer;color:#1a3448;font-weight:800}.tech-action:hover{background:#edf4f8}.tech-action.travel{border-color:#d5e5ef}.tech-action.arrive{border-color:#d7e7dd}.tech-action.work{border-color:#eadfc9}.tech-action.test{border-color:#d8d8ef}.tech-live-timer{display:flex;align-items:center;justify-content:space-between;background:#122230;color:#fff;border-radius:10px;padding:10px 12px;margin-top:10px}.tech-live-timer span{font-size:11px;color:#c3d0da}.tech-live-timer strong{font-size:17px}.tech-service-form{display:grid;gap:12px;margin-top:12px}.tech-service-form label,.tech-inline-form label{display:grid;gap:5px;font-size:11px;font-weight:750;color:#3d5364}.tech-service-form input,.tech-service-form textarea,.tech-inline-form input,.tech-inline-form textarea,.tech-inline-form select{width:100%;border:1px solid #ccd7de;border-radius:9px;padding:10px;background:#fff;color:#172634;box-sizing:border-box}.tech-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.tech-form-actions{display:flex;gap:9px;flex-wrap:wrap}.tech-note{background:#fff7e7;border:1px solid #ecd7aa;border-radius:10px;padding:10px;font-size:12px;color:#75510b}.tech-part-list{display:grid;gap:8px;margin:11px 0}.tech-part-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e1e7eb;background:#f8fafb;border-radius:10px;padding:10px}.tech-part-row strong,.tech-part-row small{display:block}.tech-part-row small{color:#6f7e89;margin-top:2px}.tech-link-button{border:0;background:transparent;color:#9a3c30;text-decoration:underline;cursor:pointer;font-size:11px}.tech-details{margin-top:10px}.tech-details summary{cursor:pointer;font-weight:750;color:#2f536a}.tech-inline-form{display:grid;gap:9px;margin-top:10px}.tech-evidence-grid{display:grid;gap:7px;margin:10px 0}.tech-evidence-grid>a{display:flex;gap:9px;align-items:center;padding:9px;border:1px solid #e1e7eb;border-radius:9px;text-decoration:none;color:#1b3446}.tech-evidence-grid strong,.tech-evidence-grid small{display:block}.tech-evidence-grid small{color:#6e7c86;font-size:10px}.tech-card .signature-block{margin-top:2px}.tech-card .signature-block canvas{height:150px}.tech-body .flash{max-width:1180px;margin:0 auto 12px}.tech-body .badge{white-space:nowrap}
@media(max-width:900px){.tech-header{grid-template-columns:1fr auto}.tech-vn-brand{grid-column:1/2;grid-row:2;padding:6px 0;border:0;justify-self:start}.tech-head-actions{grid-column:2/3;grid-row:1/3}.tech-job-grid,.tech-two-col{grid-template-columns:1fr}.tech-order-facts{grid-template-columns:1fr 1fr}.tech-stats{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.tech-shell{padding-bottom:82px}.tech-header{position:relative;padding:12px 14px;gap:8px}.tech-brand-copy strong{font-size:14px}.tech-brand-copy span{font-size:10px}.tech-vn-brand small{font-size:9px}.tech-vn-monogram{width:30px;height:30px}.tech-head-actions .tech-signout,.tech-head-actions .tech-admin-link{display:none}.tech-head-actions .lang-switch{gap:3px}.tech-head-actions .lang-switch a{padding:5px}.tech-main{padding:14px 12px 24px}.tech-previewbar{align-items:flex-start;flex-direction:column}.tech-previewbar form{margin:0;width:100%}.tech-previewbar select{width:100%}.tech-welcome{margin-bottom:13px}.tech-welcome strong{font-size:19px}.tech-stats{gap:8px}.tech-stats>div{padding:12px}.tech-stats strong{font-size:24px}.tech-job-grid{grid-template-columns:1fr}.tech-order-hero,.tech-card{padding:14px;border-radius:14px}.tech-order-title h1{font-size:20px}.tech-order-facts{grid-template-columns:1fr}.tech-contact-actions a{flex:1;justify-content:center}.tech-workflow-actions{grid-template-columns:1fr}.tech-time-grid{grid-template-columns:1fr}.tech-form-actions{display:grid}.tech-form-actions .btn,.tech-form-actions .tech-complete-btn{width:100%}.tech-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(3,1fr);left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid #dbe3e8;padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px rgba(17,34,48,.08)}.tech-bottom-nav a{display:grid;justify-items:center;gap:2px;color:#6c7a86;text-decoration:none;font-size:9px;font-weight:750;padding:4px;border-radius:8px}.tech-bottom-nav a span{font-size:18px}.tech-bottom-nav a.active{color:#173b54;background:#edf3f6}.tech-bottom-nav.has-account{grid-template-columns:repeat(4,1fr)}.tech-card .signature-block canvas{height:135px}.tech-body .badge{font-size:9px}}

/* v0.13.1 Technician assignment visibility + sequential workflow */
.tech-assignment-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.tech-assignment-summary>div{background:#f6f8fa;border:1px solid #e0e7eb;border-radius:10px;padding:9px}.tech-assignment-summary span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#73818c;font-weight:800;margin-bottom:3px}.tech-assignment-summary b{display:block;font-size:13px;color:#172f41}
.tech-assignment-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.tech-assignment-card{background:#f6f8fa;border:1px solid #e1e7eb;border-radius:12px;padding:12px;min-height:78px}.tech-assignment-card>span{display:block;color:#6a7985;font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.05em;margin-bottom:5px}.tech-assignment-card strong,.tech-assignment-card small{display:block}.tech-assignment-card strong{font-size:14px;color:#172f41;line-height:1.35}.tech-assignment-card small{font-size:11px;color:#667785;margin-top:4px}.tech-missing-data{color:#9d342c!important;font-size:12px!important}
.tech-workflow-card{overflow:hidden}.tech-workflow-steps{display:grid;gap:8px;margin-top:12px}.tech-step{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;border:1px solid #dfe7ec;border-radius:12px;padding:10px;background:#f8fafb}.tech-step-no{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#dde5ea;color:#506575;font-weight:900;font-size:12px}.tech-step>div>b{display:block;font-size:13px;color:#20394c;margin:4px 0 7px}.tech-step>div>small{display:block;color:#72808b;font-weight:750;font-size:11px}.tech-step.current{border-color:#b8d1df;background:#f0f7fb}.tech-step.current .tech-step-no{background:#173b54;color:#fff}.tech-step.done{border-color:#cfe0d4;background:#f4faf6}.tech-step.done .tech-step-no{background:#34734c;color:#fff}.tech-step.pending{opacity:.7}.tech-step .tech-action{margin-top:5px;max-width:330px}.tech-step.done .tech-action{display:none}
@media(max-width:900px){.tech-assignment-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.tech-assignment-summary,.tech-assignment-detail-grid{grid-template-columns:1fr}.tech-assignment-card{min-height:0}.tech-step .tech-action{max-width:none}}

/* v0.13.2 technician access + workflow visibility */
.tech-card-link{display:block;color:inherit;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.tech-card-link:hover{border-color:#b9ccd8;box-shadow:0 7px 18px rgba(17,34,48,.08);text-decoration:none;transform:translateY(-1px)}.tech-open-hint{margin-top:8px!important;color:#245d81!important;font-weight:800!important}.tech-next-action{position:sticky;top:74px;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#173b54;color:#fff;border-radius:14px;padding:13px 15px;margin:0 0 14px;box-shadow:0 9px 26px rgba(18,34,48,.18)}.tech-next-action span{display:block;color:#b9cad6;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.tech-next-action strong{display:block;font-size:17px;margin-top:2px}.tech-next-action form{margin:0}.tech-next-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;background:#fff;color:#173b54!important;text-decoration:none;padding:10px 14px;font-weight:900;cursor:pointer;min-width:170px}.tech-next-button:hover{text-decoration:none;background:#f2f6f8}.tech-machine-list{display:grid;gap:9px;margin-top:12px}.tech-record-link{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe7ec;background:#f8fafb;border-radius:11px;padding:11px 12px;color:#183246;text-decoration:none}.tech-record-link:hover{background:#eef5f8;text-decoration:none}.tech-record-link strong,.tech-record-link small{display:block}.tech-record-link small{color:#6c7b86;margin-top:3px;font-size:11px}
.tech-card .signature-block canvas{touch-action:none!important;-ms-touch-action:none!important;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.tech-body.signature-drawing{overscroll-behavior:none}
@media(max-width:640px){.tech-next-action{top:8px;align-items:stretch;flex-direction:column}.tech-next-button{width:100%;min-width:0}.tech-record-link{align-items:flex-start}.tech-card .signature-block canvas{height:180px}}


/* v0.13.3 technician mobile hotfix */
.tech-card .signature-block{overflow:hidden;position:relative}
.tech-card .signature-block canvas{display:block;width:100%;max-width:100%;touch-action:none!important;-ms-touch-action:none!important;overscroll-behavior:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}
html:has(body.signature-drawing){overscroll-behavior:none}
body.signature-drawing{overscroll-behavior:none!important;touch-action:none}
@media(max-width:640px){
  .tech-header{display:grid!important;grid-template-columns:1fr auto!important;background:#122230!important;color:#fff!important;border-radius:0!important}
  .tech-brand{min-width:0}.tech-brand-copy strong{white-space:nowrap}.tech-vn-brand{grid-column:1/-1!important;grid-row:auto!important;width:100%;justify-self:stretch!important;background:rgba(255,255,255,.05);border-radius:10px;padding:7px 9px!important}
  .tech-head-actions{grid-column:2!important;grid-row:1!important;align-self:center!important}.tech-main{width:100%;max-width:100%;overflow-x:hidden}.tech-order-hero,.tech-card,.tech-next-action{width:100%;max-width:100%}.tech-assignment-detail-grid{grid-template-columns:1fr!important}.tech-contact-actions{display:grid;grid-template-columns:1fr 1fr}.tech-contact-actions a:last-child{grid-column:1/-1}.tech-next-action{position:relative!important;top:auto!important}.tech-card .signature-block canvas{height:190px!important}
}

/* v0.13.4 automatic operational time */
.tech-auto-time{display:grid;gap:4px;border:1px solid #dce5ea;background:#f7fafb;border-radius:10px;padding:10px 11px;min-height:76px;align-content:center}.tech-auto-time>span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#6c7c88;font-weight:800}.tech-auto-time>strong{font-size:18px;color:#17384f}.tech-auto-time>small{font-size:10px;color:#3b7650;font-weight:800}.admin-auto-time{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11px;color:var(--muted)}.admin-auto-time input{width:auto!important}.readonly-time{display:block;background:#f5f7f9;border:1px solid var(--line);border-radius:9px;padding:10px 11px;font-weight:800;color:#435767}

/* v0.14 Service Case / Installation & Commissioning */
.installation-panel{border-left:4px solid #ef6c2c}.installation-panel .form-grid{align-items:end}.tech-install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}.tech-install-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}.tech-install-grid select,.tech-install-grid input{width:100%;box-sizing:border-box}@media(max-width:680px){.tech-install-grid{grid-template-columns:1fr}}

/* v0.14.1 Installation/Demo machine provisioning */
.panel-subsection{border:1px solid var(--border,#d9e0e7);border-radius:14px;padding:18px;background:rgba(18,34,48,.025)}
.panel-subsection h3{margin:0 0 4px}.panel-subsection>.muted{margin-top:0;margin-bottom:16px}

/* v0.14.3 – smaller service label */
.qr-label-card{max-width:350px;padding:18px;border-radius:14px}
.qr-label-brand{gap:7px;margin-bottom:10px}
.qr-label-brand .brand-mark{width:28px;height:28px;font-size:14px}
.qr-label-brand strong{font-size:13px;line-height:1.05}
.qr-label-brand span{font-size:7px;letter-spacing:.12em;line-height:1.1;margin-top:2px}
.qr-label-brand em{display:block;text-align:left;font-style:normal;font-size:8px;font-weight:800;letter-spacing:.08em;color:#263744;margin-top:2px}
.qr-label-copy strong{font-size:10px;line-height:1.2}
.qr-label-notes span{font-size:8px!important;line-height:1.2;margin:2px 0 7px!important}
.qrcode-box{width:142px;min-height:142px;margin:0 auto 8px;padding:7px}
.qrcode-box img,.qrcode-box canvas{max-width:128px!important;width:128px!important;height:128px!important}
.qr-machine-id{padding-top:7px}
.qr-machine-id span{font-size:7px}
.qr-machine-id strong{font-size:15px;margin-top:1px;line-height:1.05}
.qr-machine-id small{font-size:8px;line-height:1.15}
.qr-domain{font-size:8px;margin-top:7px}
@media(max-width:760px){.qrcode-box{width:142px;min-height:142px}.qrcode-box img,.qrcode-box canvas{max-width:128px!important;width:128px!important;height:128px!important}}
@media print{
  @page{size:55mm 70mm;margin:0}
  html,body{width:55mm!important;height:70mm!important;margin:0!important;padding:0!important}
  .qr-label-card{width:55mm!important;max-width:55mm!important;min-height:70mm!important;box-sizing:border-box!important;padding:2.8mm!important;border-radius:2.5mm!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
  .qr-label-brand{margin-bottom:1.4mm!important;gap:1.5mm!important}
  .qr-label-brand .brand-mark{width:6mm!important;height:6mm!important;font-size:8pt!important}
  .qr-label-brand strong{font-size:7.8pt!important;line-height:1!important}
  .qr-label-brand span{font-size:4.5pt!important;letter-spacing:.1em!important;margin-top:.4mm!important}
  .qr-label-brand em{font-size:5pt!important;letter-spacing:.08em!important;margin-top:.3mm!important}
  .qr-label-copy strong{font-size:5.6pt!important;line-height:1.1!important}
  .qr-label-notes span{font-size:4.4pt!important;line-height:1.1!important;margin:.5mm 0 1.2mm!important}
  .qrcode-box{width:31mm!important;min-height:31mm!important;padding:1.5mm!important;margin:0 auto 1.2mm!important}
  .qrcode-box img,.qrcode-box canvas{width:28mm!important;height:28mm!important;max-width:28mm!important}
  .qr-machine-id{padding-top:1.2mm!important}
  .qr-machine-id span{font-size:4.2pt!important}
  .qr-machine-id strong{font-size:8.5pt!important;line-height:1!important;margin-top:.3mm!important}
  .qr-machine-id small{font-size:4.5pt!important;line-height:1.05!important}
  .qr-domain{font-size:4.5pt!important;margin-top:1mm!important}
}

/* v0.14.4 full-screen technician signature modal. The signing surface never lives in the scrolling page. */
.tech-signature-summary{display:grid;gap:10px}.tech-signature-preview{min-height:92px;border:1px dashed #c7d4dc;border-radius:12px;background:#f8fafb;display:flex;align-items:center;justify-content:center;padding:8px;color:#758591;font-size:12px}.tech-signature-preview img{display:block;max-width:100%;max-height:110px;object-fit:contain}.tech-signature-open{width:100%;justify-content:center}.signature-modal[hidden]{display:none!important}.signature-modal{position:fixed;inset:0;z-index:100000;background:rgba(8,18,27,.96);display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));touch-action:none!important;overscroll-behavior:none!important;-webkit-overflow-scrolling:auto}.signature-modal-panel{width:min(920px,100%);height:min(760px,96dvh);max-height:96dvh;background:#eef3f6;border-radius:18px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.38);touch-action:none!important;overscroll-behavior:none!important}.signature-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#122230;color:#fff;padding:13px 15px}.signature-modal-head span{display:block;color:#b8c9d4;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.signature-modal-head strong{display:block;font-size:16px;margin-top:2px}.signature-modal-close{width:42px;height:42px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;cursor:pointer}.signature-modal-instruction{padding:10px 14px;background:#fff;border-bottom:1px solid #d8e1e7;color:#52636f;font-size:12px;font-weight:650}.signature-modal-canvas-wrap{min-height:0;padding:12px;display:flex;background:#dfe7ec;touch-action:none!important;overscroll-behavior:none!important}.signature-modal-canvas-wrap canvas{display:block;flex:1;width:100%;height:100%;min-height:260px;background:#fff;border:2px solid #aebec8;border-radius:12px;touch-action:none!important;-ms-touch-action:none!important;overscroll-behavior:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}.signature-modal-actions{display:grid;grid-template-columns:auto auto 1fr;gap:8px;padding:11px 12px;background:#fff;border-top:1px solid #d8e1e7}.signature-modal-actions .tech-primary-action{justify-self:stretch}.signature-modal-actions button{min-height:46px}html.signature-modal-open,body.signature-modal-open{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important}body.signature-modal-open{height:100vh!important;height:100dvh!important}
@media(max-width:640px){.signature-modal{padding:0}.signature-modal-panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.signature-modal-head{padding:calc(10px + env(safe-area-inset-top)) 12px 10px}.signature-modal-canvas-wrap{padding:8px}.signature-modal-canvas-wrap canvas{min-height:0;border-radius:10px}.signature-modal-actions{grid-template-columns:1fr 1fr;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.signature-modal-actions .tech-primary-action{grid-column:1/-1;grid-row:1}.signature-modal-actions #clearSignature,.signature-modal-actions #cancelSignatureModalBottom{grid-row:2}.tech-signature-preview{min-height:80px}}

.backup-warning{margin:12px 0;padding:12px 14px;border:1px solid #f0c36a;background:#fff8e7;border-radius:10px;font-size:.9rem;line-height:1.45}

.btn-danger{background:#b42318;border-color:#b42318;color:#fff}.btn-danger:hover{background:#912018;border-color:#912018;color:#fff}.backup-warning strong{color:#9f2a2a}

/* v0.18 admin operational data reset */
.danger-zone{border:1px solid #efb3ad;background:linear-gradient(180deg,#fff,#fffafa)}
.reset-counts{margin:14px 0}.reset-counts>strong{display:block;margin-bottom:8px}
.reset-counts .kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.reset-counts .kpi-card{border:1px solid #e5e9ec;background:#fff;border-radius:10px;padding:10px 12px}
.reset-counts .kpi-card span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#71818d}
.reset-counts .kpi-card strong{display:block;font-size:20px;margin-top:3px;color:#172634}
.danger-details{border-color:#efb3ad!important}.danger-details summary{color:#a8271c;font-weight:800}
@media(max-width:760px){.reset-counts .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.21 Customer Portal */
.customer-portal-body{background:#f3f5f7;min-height:100vh}.customer-portal-shell{min-height:100vh;display:flex;flex-direction:column}.customer-portal-header{min-height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px clamp(18px,4vw,54px);position:sticky;top:0;z-index:20}.customer-brand-pair{display:flex;align-items:center;gap:16px}.customer-brand-pair img:first-child{width:185px;max-height:42px;object-fit:contain}.customer-brand-pair img:last-child{width:118px;max-height:42px;object-fit:contain}.brand-divider{width:1px;height:34px;background:#dbe1e6}.customer-header-actions{display:flex;align-items:center;gap:14px}.customer-signout{font-weight:700;color:#4a5c6a}.customer-portal-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:30px clamp(18px,4vw,54px) 18px;max-width:1280px;width:100%;margin:0 auto}.customer-portal-title h1{margin:4px 0 2px;font-size:30px;line-height:1.1}.customer-portal-title p{margin:0;color:var(--muted);font-weight:650}.customer-nav{display:flex;gap:6px;max-width:1280px;width:calc(100% - 36px);margin:0 auto 18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;overflow:auto;box-shadow:var(--shadow)}.customer-nav a{white-space:nowrap;padding:9px 13px;border-radius:9px;color:#586a77;font-weight:750}.customer-nav a.active,.customer-nav a:hover{background:#172634;color:#fff;text-decoration:none}.customer-main{max-width:1280px;width:100%;margin:0 auto;padding:0 clamp(18px,4vw,54px) 44px;flex:1}.customer-portal-footer{text-align:center;color:#84919b;font-size:11px;padding:24px}.customer-preview-note{max-width:1280px;width:calc(100% - 36px);margin:0 auto 12px;padding:9px 12px;border:1px solid #f1d7a7;background:#fff7e9;border-radius:9px;color:#805100}.customer-welcome{background:linear-gradient(115deg,#142838,#1a3b51);color:#fff;border-radius:18px;padding:22px 24px;margin-bottom:16px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:0 12px 30px rgba(16,34,47,.14)}.customer-welcome span,.customer-welcome strong{display:block}.customer-welcome span{font-size:11px;opacity:.72;text-transform:uppercase;letter-spacing:.08em}.customer-welcome strong{font-size:24px;margin-top:3px}.customer-welcome p{margin:0;max-width:640px;color:#c9d6df}.customer-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.customer-kpis a{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;color:var(--ink);box-shadow:var(--shadow)}.customer-kpis a:hover{text-decoration:none;transform:translateY(-1px)}.customer-kpis span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.customer-kpis strong{display:block;font-size:32px;margin-top:5px}.customer-card-list{display:grid;gap:9px}.customer-case-card,.customer-workorder-card{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:#fff;color:var(--ink)}.customer-case-card:hover{background:#f9fbfc;text-decoration:none}.customer-case-card>div,.customer-workorder-card>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.customer-case-card>div:first-child,.customer-workorder-card>div:first-child{display:grid;gap:1px}.customer-case-card small,.customer-case-card span,.customer-workorder-card span{color:var(--muted);font-size:12px}.customer-machine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.customer-machine-card{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--ink);box-shadow:var(--shadow)}.customer-machine-card:hover{text-decoration:none;transform:translateY(-1px)}.machine-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.machine-card-top>span{font-weight:900;color:var(--accent);letter-spacing:.04em}.customer-machine-card h2{font-size:19px;margin:12px 0}.customer-machine-card dl{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;margin:0}.customer-machine-card dt{color:var(--muted);font-size:11px}.customer-machine-card dd{margin:0;font-weight:650}.customer-back{display:inline-block;margin:0 0 12px;font-weight:750}.customer-machine-hero,.customer-case-hero{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;box-shadow:var(--shadow)}.customer-machine-hero span,.customer-case-hero span{color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.08em}.customer-machine-hero h2,.customer-case-hero h2{margin:4px 0 0;font-size:24px}.customer-case-hero p{margin:4px 0 0;color:var(--muted)}.customer-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.customer-info-grid>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px}.customer-info-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.customer-info-grid strong{display:block;margin-top:5px}.customer-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.customer-doc-grid a{background:#f8fafb;border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:var(--ink)}.customer-doc-grid a:hover{text-decoration:none;background:#f0f5f7}.customer-doc-grid strong,.customer-doc-grid span{display:block}.customer-doc-grid span{color:var(--muted);font-size:11px;margin-top:2px}.customer-filter{display:flex;gap:6px;margin-bottom:14px}.customer-filter a{padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#596a76;font-weight:750}.customer-filter a.active{background:#172634;border-color:#172634;color:#fff}.customer-longtext{white-space:normal;font-size:15px;line-height:1.65}.customer-timeline{display:grid}.customer-timeline>div{display:grid;grid-template-columns:145px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f2}.customer-timeline>div:last-child{border-bottom:0}.customer-timeline time{color:var(--muted);font-size:12px}.customer-timeline span{font-weight:700}.customer-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer-report-card{display:flex;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;color:var(--ink);box-shadow:var(--shadow)}.customer-report-card:hover{text-decoration:none;transform:translateY(-1px)}.customer-report-card span{color:var(--accent);font-size:11px;font-weight:850}.customer-report-card h2{font-size:17px;margin:4px 0}.customer-report-card p{margin:0;color:var(--muted)}.customer-report-card>strong{white-space:nowrap;color:#61717e;font-size:12px}.customer-request-panel{max-width:900px}.customer-report-body{background:#edf1f4;padding:22px}.report-actions{max-width:900px;margin:0 auto 12px;display:flex;justify-content:space-between;gap:10px}.customer-report-page{max-width:900px;margin:0 auto;background:#fff;padding:30px 34px;box-shadow:0 8px 34px rgba(20,32,42,.13);border-radius:4px}.customer-report-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #172634;padding-bottom:15px;margin-bottom:18px}.customer-report-logos{display:flex;gap:18px;align-items:center}.customer-report-logos img:first-child{width:190px;max-height:44px;object-fit:contain}.customer-report-logos img:last-child{width:110px;max-height:44px;object-fit:contain}.customer-report-head>div:last-child{text-align:right}.customer-report-head span,.customer-report-head strong{display:block}.customer-report-head span{font-size:11px;color:#667783;font-weight:800;letter-spacing:.08em}.customer-report-head strong{font-size:18px;margin-top:3px}.customer-report-meta{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid #dfe5e9;margin-bottom:18px}.customer-report-meta>div{padding:9px 11px;border-bottom:1px solid #e8ecef}.customer-report-meta>div:nth-child(odd){border-right:1px solid #e8ecef}.customer-report-meta span,.customer-report-meta strong{display:block}.customer-report-meta span{font-size:9px;text-transform:uppercase;color:#7a8791;letter-spacing:.07em}.customer-report-meta strong{margin-top:2px;font-size:12px}.customer-report-section{margin:20px 0}.customer-report-section h2{font-size:14px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #dfe5e9;padding-bottom:6px}.customer-report-section p{line-height:1.6}.customer-report-table{width:100%;border-collapse:collapse}.customer-report-table th,.customer-report-table td{padding:8px;border-bottom:1px solid #e8ecef;text-align:left}.customer-checklist{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px}.customer-checklist>div{display:flex;gap:8px}.customer-report-sign{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:28px;padding-top:18px;border-top:1px solid #dfe5e9}.customer-report-sign h2{font-size:13px}.customer-report-sign img{max-width:260px;max-height:100px}.customer-report-sign>div:last-child{display:flex;flex-direction:column;justify-content:flex-end}.customer-report-sign span{color:#6f7d87;font-size:11px}.customer-report-foot{display:flex;justify-content:space-between;border-top:1px solid #dfe5e9;margin-top:28px;padding-top:10px;color:#82909a;font-size:10px}
@media(max-width:900px){.customer-machine-grid{grid-template-columns:1fr 1fr}.customer-info-grid{grid-template-columns:1fr 1fr}.customer-doc-grid{grid-template-columns:1fr 1fr}.customer-report-grid{grid-template-columns:1fr}}
@media(max-width:650px){.customer-portal-header{position:static;padding:11px 12px}.customer-brand-pair{gap:8px}.customer-brand-pair img:first-child{width:125px}.customer-brand-pair img:last-child{width:78px}.brand-divider{height:28px}.customer-header-actions .lang-switch{display:none}.customer-signout{font-size:12px}.customer-portal-title{align-items:flex-start;flex-direction:column;padding:20px 14px 14px}.customer-portal-title h1{font-size:24px}.customer-portal-title .btn{width:100%;text-align:center}.customer-nav{width:calc(100% - 24px);margin-bottom:12px}.customer-main{padding:0 12px 30px}.customer-welcome{align-items:flex-start;flex-direction:column;padding:17px}.customer-kpis{grid-template-columns:1fr 1fr}.customer-kpis a:last-child{grid-column:1/-1}.customer-machine-grid,.customer-info-grid,.customer-doc-grid{grid-template-columns:1fr}.customer-machine-card dl{grid-template-columns:100px 1fr}.customer-case-card,.customer-workorder-card{align-items:flex-start;flex-direction:column}.customer-case-card>div:last-child,.customer-workorder-card>div:last-child{width:100%}.customer-timeline>div{grid-template-columns:1fr;gap:2px}.customer-report-body{padding:0}.report-actions{padding:10px}.customer-report-page{border-radius:0;padding:20px 16px}.customer-report-head{align-items:flex-start;flex-direction:column;gap:12px}.customer-report-head>div:last-child{text-align:left}.customer-report-logos img:first-child{width:145px}.customer-report-logos img:last-child{width:85px}.customer-report-meta{grid-template-columns:1fr}.customer-report-meta>div:nth-child(odd){border-right:0}.customer-checklist{grid-template-columns:1fr}.customer-report-sign{grid-template-columns:1fr}.customer-report-foot{gap:10px;flex-direction:column}}

/* v0.29.1 – restore Manufacturer / Kalitegaz portal layout */
.manufacturer-portal-body{background:#f1f4f6;color:var(--ink);min-height:100vh}.manufacturer-portal-shell{min-height:100vh;display:flex;flex-direction:column}.manufacturer-portal-header{max-width:1280px;width:100%;margin:0 auto;padding:18px clamp(18px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:20px}.manufacturer-brand-pair{display:flex;align-items:center;gap:18px}.manufacturer-brand-pair img:first-child{width:130px;max-height:48px;object-fit:contain}.manufacturer-brand-pair img:last-child{width:205px;max-height:48px;object-fit:contain}.manufacturer-header-actions{display:flex;align-items:center;gap:16px}.manufacturer-signout{font-weight:750}.manufacturer-portal-title{max-width:1280px;width:100%;margin:0 auto;padding:18px clamp(18px,4vw,54px) 12px}.manufacturer-portal-title h1{margin:4px 0 2px;font-size:31px}.manufacturer-portal-title p{margin:0;color:var(--muted)}.manufacturer-preview-note{max-width:1280px;width:calc(100% - 36px);margin:0 auto 12px;padding:9px 12px;border:1px solid #b9d7ea;background:#edf8ff;border-radius:9px;color:#24546e}.manufacturer-nav{max-width:1244px;width:calc(100% - 36px);margin:0 auto 18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;display:flex;gap:4px;overflow:auto;box-shadow:var(--shadow)}.manufacturer-nav a{white-space:nowrap;padding:9px 13px;border-radius:9px;color:#586a77;font-weight:750}.manufacturer-nav a.active,.manufacturer-nav a:hover{background:#0b5d8a;color:#fff;text-decoration:none}.manufacturer-main{max-width:1280px;width:100%;margin:0 auto;padding:0 clamp(18px,4vw,54px) 44px;flex:1}.manufacturer-portal-footer{text-align:center;color:#84919b;font-size:11px;padding:24px}.manufacturer-welcome{background:linear-gradient(115deg,#063e61,#0b6696);color:#fff;border-radius:18px;padding:22px 24px;margin-bottom:16px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:0 12px 30px rgba(5,61,96,.18)}.manufacturer-welcome span,.manufacturer-welcome strong{display:block}.manufacturer-welcome span{font-size:11px;opacity:.75;text-transform:uppercase;letter-spacing:.08em}.manufacturer-welcome strong{font-size:25px;margin-top:3px}.manufacturer-welcome p{margin:0;max-width:650px;color:#d9eef9}.manufacturer-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.manufacturer-kpis a{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;color:var(--ink);box-shadow:var(--shadow)}.manufacturer-kpis a:hover{text-decoration:none;transform:translateY(-1px)}.manufacturer-kpis span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.manufacturer-kpis strong{display:block;font-size:30px;margin-top:5px}.manufacturer-case-list{display:grid;gap:9px}.manufacturer-case-card{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:#fff;color:var(--ink)}.manufacturer-case-card:hover{background:#f7fbfd;text-decoration:none}.manufacturer-case-card>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.manufacturer-case-card>div:first-child{display:grid;gap:2px}.manufacturer-case-card span{color:var(--muted);font-size:12px}.manufacturer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.manufacturer-toolbar form{display:flex;gap:7px}.manufacturer-filter{display:flex;gap:6px;flex-wrap:wrap}.manufacturer-filter a{padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#596a76;font-weight:750}.manufacturer-filter a.active{background:#0b5d8a;border-color:#0b5d8a;color:#fff}.manufacturer-back{display:inline-block;margin:0 0 12px;font-weight:750}.manufacturer-case-hero{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;box-shadow:var(--shadow)}.manufacturer-case-hero span{color:#0b5d8a;font-size:11px;font-weight:900;letter-spacing:.08em}.manufacturer-case-hero h2{margin:4px 0 0;font-size:24px}.manufacturer-case-hero p{margin:4px 0 0;color:var(--muted)}.manufacturer-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.manufacturer-info-grid>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px}.manufacturer-info-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.manufacturer-info-grid strong{display:block;margin-top:5px}.manufacturer-info-grid small{display:block;color:var(--muted);margin-top:4px}.manufacturer-case-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}.manufacturer-case-main,.manufacturer-case-side{display:grid;gap:16px}.manufacturer-longtext{font-size:15px;line-height:1.65}.manufacturer-inline-meta{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px;color:var(--muted)}.manufacturer-inline-meta strong{color:var(--ink)}.manufacturer-assessment-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.manufacturer-assessment-head span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.manufacturer-assessment-head strong{display:block;margin-top:4px}.manufacturer-rationale{padding:12px 14px;border-left:3px solid #0b5d8a;background:#f2f8fb;border-radius:4px;line-height:1.55}.manufacturer-check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.manufacturer-check-grid>div{display:flex;justify-content:space-between;gap:10px;border:1px solid #e5eaed;border-radius:9px;padding:9px 10px}.manufacturer-check-grid span{font-size:12px}.mp-check{font-size:11px;font-weight:850;border-radius:999px;padding:2px 7px}.mp-check.yes{background:#e8f7ef;color:#167047}.mp-check.no{background:#f3f5f6;color:#7b8790}.manufacturer-note{margin-top:12px;padding:10px 12px;background:#fafbfc;border:1px solid var(--line);border-radius:9px}.manufacturer-note p{margin:4px 0 0}.manufacturer-evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.manufacturer-evidence-card{display:grid!important;grid-template-rows:auto 1fr;gap:0!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:10px!important;padding:0!important;color:var(--ink)!important;overflow:hidden;min-width:0;box-shadow:0 2px 8px rgba(22,39,54,.04)}.manufacturer-evidence-card:hover{text-decoration:none!important;background:#fff!important;border-color:#b9d6e7!important;box-shadow:0 6px 16px rgba(11,93,138,.10);transform:translateY(-1px)}.manufacturer-evidence-preview{position:relative;display:grid;place-items:center;width:100%;height:112px;background:#e9eef2;overflow:hidden}.manufacturer-evidence-preview img,.manufacturer-evidence-preview video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.manufacturer-evidence-preview.is-file{background:linear-gradient(145deg,#f4f7f9,#e8eef2)}.manufacturer-evidence-file-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#fff;border:1px solid #d9e1e7;color:#526775;font-weight:900;font-size:16px;box-shadow:0 4px 14px rgba(21,38,52,.08)}.manufacturer-evidence-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:999px;background:rgba(10,29,43,.78);color:#fff;font-size:17px;padding-left:2px;box-shadow:0 4px 14px rgba(0,0,0,.22);pointer-events:none}.manufacturer-evidence-copy{display:grid;gap:3px;padding:8px 9px 9px;min-width:0}.manufacturer-evidence-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.manufacturer-evidence-copy small{display:block;color:var(--muted);font-size:10px;line-height:1.35;overflow-wrap:anywhere}.manufacturer-evidence-copy em{display:block;margin-top:2px;color:#0b5d8a;font-size:10px;font-style:normal;font-weight:800}.evidence-thumb{font-size:20px}.manufacturer-work-list{display:grid;gap:8px}.manufacturer-work-list>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #edf0f2;padding:8px 0}.manufacturer-work-list span{color:var(--muted);font-size:12px}.manufacturer-decision-panel{border-top:4px solid #0b5d8a}.manufacturer-latest-decision{padding:11px 12px;background:#f5f9fb;border:1px solid #d9e8f0;border-radius:10px;margin-bottom:12px}.manufacturer-latest-decision>span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;margin-bottom:6px}.manufacturer-latest-decision p{margin:8px 0;line-height:1.5}.manufacturer-latest-decision small{color:var(--muted)}.manufacturer-decision-form{display:grid;gap:10px}.manufacturer-decision-form label{display:grid;gap:5px;font-weight:750}.manufacturer-decision-form small{color:var(--muted);line-height:1.45}.manufacturer-decision-history{display:grid;gap:9px}.manufacturer-decision-history>div{border-bottom:1px solid #edf0f2;padding-bottom:9px}.manufacturer-decision-history strong,.manufacturer-decision-history time{display:block;margin-top:4px}.manufacturer-decision-history time{color:var(--muted);font-size:11px}.manufacturer-decision-history p{margin:6px 0 0;font-size:12px;line-height:1.45}
@media(max-width:1100px){.manufacturer-evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.manufacturer-kpis{grid-template-columns:1fr 1fr}.manufacturer-info-grid{grid-template-columns:1fr 1fr}.manufacturer-case-layout{grid-template-columns:1fr}.manufacturer-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.manufacturer-toolbar{align-items:stretch;flex-direction:column}.manufacturer-toolbar form{width:100%}.manufacturer-toolbar form input{flex:1}}
@media(max-width:650px){.manufacturer-portal-header{padding:11px 12px}.manufacturer-brand-pair{gap:8px}.manufacturer-brand-pair img:first-child{width:88px}.manufacturer-brand-pair img:last-child{width:130px}.manufacturer-header-actions .lang-switch{display:none}.manufacturer-signout{font-size:12px}.manufacturer-portal-title{padding:18px 14px 12px}.manufacturer-portal-title h1{font-size:24px}.manufacturer-nav{width:calc(100% - 24px);margin-bottom:12px}.manufacturer-main{padding:0 12px 30px}.manufacturer-welcome{align-items:flex-start;flex-direction:column;padding:17px}.manufacturer-kpis{grid-template-columns:1fr 1fr}.manufacturer-case-card{align-items:flex-start;flex-direction:column}.manufacturer-info-grid,.manufacturer-check-grid,.manufacturer-evidence-grid{grid-template-columns:1fr}.manufacturer-case-hero{align-items:flex-start;flex-direction:column}.manufacturer-assessment-head{flex-direction:column}.manufacturer-toolbar form{display:grid;grid-template-columns:1fr auto}}

/* v0.27.1 warranty multi-photo picker */
.warranty-photo-picker{display:grid;gap:8px;margin:2px 0 10px}.warranty-photo-slots{display:grid;gap:8px}.warranty-photo-slot{display:grid!important;grid-template-columns:minmax(72px,auto) 1fr;align-items:center;gap:10px;padding:9px 10px;border:1px solid #dfe5ea;border-radius:10px;background:#f8fafb;font-weight:650!important}.warranty-photo-slot.has-file{border-color:#b9d7c9;background:#f1faf5}.warranty-photo-slot>span{font-size:11px;color:#596a78}.warranty-photo-slot input[type=file]{width:100%;min-width:0;padding:6px;background:#fff;border:1px solid #d7dee4;border-radius:8px}.warranty-photo-file{grid-column:2;color:#157f5b;overflow-wrap:anywhere}.warranty-photo-picker-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.warranty-photo-count{font-size:12px;font-weight:800;color:#6b7783}.tech-warranty-photo-picker .warranty-photo-slot{background:#fff}.tech-warranty-photo-picker .warranty-photo-slot input[type=file]{font-size:16px}@media(max-width:600px){.warranty-photo-slot{grid-template-columns:1fr}.warranty-photo-file{grid-column:1}.warranty-photo-slot input[type=file]{font-size:16px}}

/* v0.27.2 mobile signed-in user header */
.mobile-user-session{display:none;align-items:center;gap:8px;min-width:0}.mobile-user-name{max-width:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800;color:var(--ink)}.mobile-user-logout{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #d7dee4;border-radius:9px;background:#fff;color:#334553;font-size:11px;font-weight:800;white-space:nowrap}.mobile-user-logout:hover{text-decoration:none;background:#f4f7f9}.tech-header .mobile-user-name{color:#fff}.tech-header .mobile-user-logout{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff}.tech-header .mobile-user-logout:hover{background:rgba(255,255,255,.15)}
@media(max-width:760px){.mobile-user-session{display:flex}.desktop-signout{display:none!important}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}.topbar-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.topbar-actions>.btn-primary{font-size:11px;padding:7px 9px}.mobile-user-session .mobile-user-name{max-width:132px}.tech-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tech-head-actions .mobile-user-session-tech{display:flex}.customer-header-actions,.manufacturer-header-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.customer-header-actions .mobile-user-session,.manufacturer-header-actions .mobile-user-session{display:flex}.customer-portal-header,.manufacturer-portal-header{gap:8px}.customer-brand-pair,.manufacturer-brand-pair{min-width:0}.customer-header-actions,.manufacturer-header-actions{margin-left:auto}.customer-header-actions .mobile-user-name,.manufacturer-header-actions .mobile-user-name{max-width:105px}}
@media(max-width:430px){.mobile-user-name{max-width:88px}.mobile-user-logout{padding:6px 8px}.topbar-actions>.btn-primary{display:none}.customer-brand-pair img:first-child{width:105px}.customer-brand-pair img:last-child{width:62px}.tech-head-actions .lang-switch{order:2;width:100%;justify-content:flex-end}.customer-header-actions .lang-switch,.manufacturer-header-actions .lang-switch{order:2;width:100%;justify-content:flex-end}}

/* v0.27.4 – restore/polish Users & Access edit-user modal */
.user-modal{border:0;padding:0;width:min(760px,calc(100% - 32px));max-width:760px;max-height:none;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 28px 90px rgba(10,24,36,.30);overflow:visible}
.user-modal::backdrop{background:rgba(14,32,48,.66);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.user-edit-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;max-height:min(88dvh,820px);margin:0;overflow:hidden;border-radius:20px;background:#fff}
.user-modal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcfd)}
.user-modal-heading{display:flex;align-items:center;gap:13px;min-width:0}.user-modal-heading h2{margin:2px 0 0;font-size:21px;line-height:1.2}.user-modal-heading p{margin:4px 0 0;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:480px}
.user-modal-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:900;font-size:17px;box-shadow:0 7px 18px rgba(239,108,44,.20);flex:0 0 auto}
.user-modal-eyebrow{display:block;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.14em}
.user-modal-close{border:1px solid var(--line);background:#fff;color:#5c6974;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:25px;line-height:1;cursor:pointer;flex:0 0 auto}.user-modal-close:hover{background:#f4f6f8;color:var(--ink)}
.user-modal-body{padding:20px 22px;overflow-y:auto;overflow-x:hidden;display:grid;gap:16px;background:#f7f9fb;min-height:0;overscroll-behavior:contain}
.user-modal-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 2px 8px rgba(27,39,52,.025)}
.user-modal-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.user-modal-section-title strong{display:block;font-size:13px}.user-modal-section-title span{display:block;color:var(--muted);font-size:11px;margin-top:2px;line-height:1.4}
.user-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.user-modal-grid.one-column{grid-template-columns:1fr}.user-field{display:grid!important;gap:6px!important;font-size:12px!important;font-weight:700!important;min-width:0}.user-field>span{color:#34424f}.user-field>small{font-weight:400!important;color:var(--muted);font-size:11px;line-height:1.35}.user-field-wide{grid-column:1/-1}
.user-modal .user-field input,.user-modal .user-field select{display:block;width:100%;min-height:42px;border:1px solid #d7dee4;border-radius:10px;background:#fff;padding:9px 11px;color:var(--ink);outline:none;appearance:auto}.user-modal .user-field input:focus,.user-modal .user-field select:focus{border-color:#9db8cf;box-shadow:0 0 0 3px #e9f2f9}
.user-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:15px 22px;border-top:1px solid var(--line);background:#fff;position:relative;z-index:2;box-shadow:0 -5px 16px rgba(27,39,52,.05)}.user-modal-footer .btn{min-width:110px;text-align:center}
.user-modal-footer .btn-primary{box-shadow:0 5px 14px rgba(239,108,44,.18)}
.scope-help{display:none!important}
@media(max-width:640px){.user-modal{width:calc(100% - 18px);border-radius:16px}.user-edit-form{max-height:94dvh;border-radius:16px}.user-modal-header{padding:15px 16px}.user-modal-body{padding:14px;gap:12px}.user-modal-section{padding:14px}.user-modal-grid{grid-template-columns:1fr}.user-field-wide{grid-column:auto}.user-modal-heading p{max-width:220px}.user-modal-footer{padding:12px 14px;display:grid;grid-template-columns:1fr 1fr}.user-modal-footer .btn{width:100%;min-width:0}.user-modal-mark{width:38px;height:38px}.user-modal-heading h2{font-size:18px}}

/* v0.27.5 clean login */
.login-card{max-width:520px;padding:34px 34px 28px}
.login-card h1{margin-bottom:12px}
.login-intro{margin:0 0 22px;max-width:430px}
.login-form{gap:16px}
.login-form label{font-size:13px;gap:7px}
.login-form input{min-height:48px;font-size:16px}
.login-submit{min-height:46px;padding:11px 22px;font-size:15px;margin-top:2px}
.login-qr-context{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:start;background:#f6f8fa;border:1px solid #e3e8ed;border-radius:12px;padding:13px 14px;margin:2px 0 22px}
.login-qr-icon{width:34px;height:34px;border-radius:9px;background:#fff1e8;color:var(--accent);display:grid;place-items:center;font-size:18px;font-weight:800}
.login-qr-context strong{display:block;font-size:13px;margin:0 0 2px}
.login-qr-context p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.45}
.login-secure-note{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:11.5px}
@media(max-width:760px){.login-wrap{padding-top:10px}.login-card{max-width:100%;padding:28px 22px 24px}.login-card h1{font-size:34px;line-height:1.08}.login-qr-context{grid-template-columns:34px 1fr}.public-header{margin-bottom:18px}}


/* v0.29.4 manufacturer decision panel polish */
.manufacturer-decision-panel,.manufacturer-decision-history-panel{padding:22px}
.manufacturer-decision-panel h2,.manufacturer-decision-history-panel h3{margin:0 0 10px;font-size:18px;line-height:1.3}
.manufacturer-decision-empty{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.5}
.manufacturer-decision-panel{border-top:4px solid #0b5d8a}
.manufacturer-latest-decision{padding:14px 15px;background:linear-gradient(180deg,#f8fbfd,#f4f8fb);border:1px solid #d9e8f0;border-radius:12px;margin-bottom:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.manufacturer-latest-decision>span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}
.manufacturer-latest-decision p{margin:9px 0 0;line-height:1.55;color:#33424d}
.manufacturer-latest-decision small{display:block;margin-top:10px;color:var(--muted);font-size:11px}
.manufacturer-decision-form{display:grid;gap:13px;margin-top:14px}
.manufacturer-decision-form label{display:grid;gap:7px;font-weight:800;font-size:12px;color:#273642}
.manufacturer-decision-form label>span{display:block}
.manufacturer-decision-form select,.manufacturer-decision-form textarea{width:100%;border:1px solid #d7dee4;border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);outline:none;box-shadow:0 1px 2px rgba(16,25,35,.02)}
.manufacturer-decision-form select{min-height:44px}
.manufacturer-decision-form textarea{min-height:118px;resize:vertical;line-height:1.5}
.manufacturer-decision-form select:focus,.manufacturer-decision-form textarea:focus{border-color:#9db8cf;box-shadow:0 0 0 3px #e9f2f9}
.manufacturer-decision-hint{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:-2px}
.manufacturer-decision-form .btn{width:100%;justify-content:center;min-height:46px;border-radius:11px;font-size:15px;font-weight:800;box-shadow:0 10px 18px rgba(239,108,44,.14)}
.manufacturer-decision-form .btn:hover{box-shadow:0 12px 22px rgba(239,108,44,.18)}
.manufacturer-decision-history{display:grid;gap:12px;margin-top:12px}
.manufacturer-decision-entry{background:#f8fafb;border:1px solid #e5eaed;border-radius:12px;padding:13px 14px}
.manufacturer-decision-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.manufacturer-decision-entry-meta{display:grid;justify-items:end;gap:2px}
.manufacturer-decision-entry strong{display:block;font-size:13px;color:var(--ink)}
.manufacturer-decision-entry time{display:block;color:var(--muted);font-size:11px}
.manufacturer-decision-entry p{margin:9px 0 0;font-size:12.5px;line-height:1.5;color:#33424d}
@media(max-width:650px){.manufacturer-decision-panel,.manufacturer-decision-history-panel{padding:18px}.manufacturer-decision-entry-head{flex-direction:column;align-items:flex-start}.manufacturer-decision-entry-meta{justify-items:start}}


/* v0.29.8 visual evidence gallery in Service Record */
.service-evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:4px 0 14px}
.service-evidence-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 5px 16px rgba(27,39,52,.055)}
.service-evidence-media{display:block;position:relative;width:100%;aspect-ratio:4/3;background:#101820;overflow:hidden}
.service-evidence-media img,.service-evidence-media video{display:block;width:100%;height:100%;object-fit:contain;background:#101820}
.service-evidence-media img{transition:transform .18s ease}.service-evidence-media:hover img{transform:scale(1.015)}
.service-evidence-file{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;background:#f6f8fa;color:var(--ink);text-align:center}.service-evidence-file:hover{text-decoration:none;background:#eef3f6}.service-evidence-file>span{font-size:40px}.service-evidence-file>strong{max-width:100%;overflow-wrap:anywhere;font-size:12px}
.service-evidence-caption{display:grid;gap:3px;padding:11px 12px 12px}.service-evidence-caption>strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.service-evidence-caption>small{color:var(--muted);font-size:10.5px;overflow-wrap:anywhere}.service-evidence-caption>a{font-size:11px;font-weight:750;margin-top:4px;justify-self:start}
.tech-service-evidence-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.tech-service-evidence-grid .service-evidence-card{border-color:#dce4e9}.tech-service-evidence-grid .service-evidence-media{aspect-ratio:4/3}
@media(max-width:650px){.service-evidence-grid,.tech-service-evidence-grid{grid-template-columns:1fr}.service-evidence-media{aspect-ratio:16/10}.service-evidence-file{min-height:150px}}


/* v0.29.9 customer evidence visible inside work orders */
.service-evidence-card{position:relative}
.service-evidence-source{position:absolute;z-index:4;top:9px;left:9px;display:inline-flex;align-items:center;max-width:calc(100% - 18px);padding:5px 8px;border-radius:999px;font-size:9.5px;line-height:1;font-weight:900;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 3px 10px rgba(0,0,0,.14);pointer-events:none}
.service-evidence-source.customer{background:#fff3e9;color:#bd531d;border:1px solid #f2c3a5}
.service-evidence-card.customer-evidence{border-color:#f1c6ab;box-shadow:0 5px 18px rgba(239,108,44,.09)}
.service-evidence-card.customer-evidence .service-evidence-caption{background:#fffaf7}


/* Staging / test environment indicator */
.environment-banner{position:sticky;top:0;z-index:10000;display:flex;align-items:center;justify-content:center;gap:12px;min-height:34px;padding:7px 14px;background:#fff2df;border-bottom:1px solid #f0b879;color:#8a4700;text-align:center;box-shadow:0 2px 10px rgba(16,25,35,.08)}
.environment-banner strong{font-size:11px;line-height:1.2;letter-spacing:.12em;text-transform:uppercase}
.environment-banner span{font-size:11px;line-height:1.2;font-weight:700;opacity:.78}
@media(max-width:650px){.environment-banner{gap:7px;flex-wrap:wrap;min-height:38px;padding:6px 10px}.environment-banner strong,.environment-banner span{font-size:10px}}


/* Interactive dashboard KPI drill-downs */
.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
/* Keep all dashboard KPI numbers neutral, including critical/warning tiles. */
.dashboard-kpis .kpi > strong,.dashboard-kpis .kpi.danger > strong,.dashboard-kpis .kpi.warning > strong{color:var(--ink)}
.kpi-link{display:block;color:var(--ink);text-decoration:none;position:relative;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.kpi-link:hover,.kpi-link:focus-visible{transform:translateY(-2px);box-shadow:0 14px 34px rgba(27,39,52,.12);border-color:#cdd7df;text-decoration:none;outline:none}
.kpi-link:focus-visible{box-shadow:0 0 0 3px rgba(239,108,44,.18),0 14px 34px rgba(27,39,52,.12)}
.kpi-link small{display:block;margin-top:10px;color:var(--accent);font-size:11px;font-weight:800}
.dashboard-filter-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:13px 16px;border:1px solid #f0cda9;border-radius:12px;background:#fff8ef}
.dashboard-filter-banner span,.dashboard-filter-banner small{display:block;color:var(--muted)}
.dashboard-filter-banner strong{display:block;margin:2px 0;font-size:15px}
@media(max-width:1050px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-filter-banner{align-items:flex-start;flex-direction:column}.dashboard-filter-banner .btn{width:100%;text-align:center}}


/* Service Case visual evidence: provenance + before/after intervention */
.service-case-evidence-panel .panel-head{gap:16px;align-items:flex-start}
.evidence-summary{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.evidence-summary span{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#f7f9fb;color:var(--muted);font-size:11px;font-weight:700}
.evidence-summary strong{color:var(--ink);font-size:13px}
.evidence-intervention-marker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:10px 12px;border:1px solid #d9e4ec;border-radius:10px;background:#f6f9fb}
.evidence-intervention-marker span{color:var(--muted);font-size:11px;font-weight:700}
.evidence-intervention-marker strong{font-size:12px}
.evidence-phase{margin-top:18px}
.evidence-phase+.evidence-phase{padding-top:18px;border-top:1px solid var(--line)}
.evidence-phase-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.evidence-phase-head h3{margin:0;font-size:16px}
.evidence-phase-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.evidence-phase-head>strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:#edf1f4;color:#52616d;font-size:12px}
.evidence-phase-before .evidence-phase-head>strong{background:#e8f5ee;color:#17694f}
.evidence-phase-after .evidence-phase-head>strong{background:#e8f0fb;color:#2c5f98}
.evidence-phase-unclassified .evidence-phase-head>strong{background:#fff3df;color:#8c5a0a}
.evidence-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.evidence-card{min-width:0;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(27,39,52,.05)}
.evidence-card-media{position:relative;display:grid;place-items:center;aspect-ratio:4/3;background:#eef2f5;overflow:hidden}
.evidence-card-media>a:not(.evidence-document){display:block;width:100%;height:100%}
.evidence-card-media img,.evidence-card-media video{display:block;width:100%;height:100%;object-fit:cover;background:#111}
.evidence-card-media img{transition:transform .18s ease}
.evidence-card-media a:hover img{transform:scale(1.025)}
.evidence-document{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;color:var(--ink);text-align:center;padding:18px}
.evidence-document span{font-size:34px}
.evidence-document strong{font-size:12px}
.evidence-phase-badge{position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:999px;background:rgba(16,25,35,.84);color:#fff;font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;pointer-events:none}
.evidence-card-body{display:grid;gap:6px;padding:11px 12px 12px}
.evidence-card-source{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.evidence-source-badge,.evidence-workorder-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.evidence-source-badge{background:#edf1f4;color:#52616d}
.evidence-source-customer .evidence-source-badge{background:#e8f5ee;color:#17694f}
.evidence-source-technician .evidence-source-badge{background:#e8f0fb;color:#2c5f98}
.evidence-source-vn_team .evidence-source-badge,.evidence-source-service_team .evidence-source-badge{background:#fff0e7;color:#a34d16}
.evidence-source-manufacturer .evidence-source-badge{background:#efe9fb;color:#674399}
.evidence-source-distributor .evidence-source-badge{background:#edf1f4;color:#42586b}
.evidence-workorder-badge{background:#f6f8fa;color:#657584;border:1px solid var(--line)}
.evidence-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.evidence-card-body small{display:block;color:var(--muted);font-size:10px;line-height:1.35}
.evidence-card-body .attachment-delete-form{margin-top:3px}
.evidence-upload-form{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:760px){
  .service-case-evidence-panel .panel-head{flex-direction:column}
  .evidence-summary{justify-content:flex-start}
  .evidence-gallery{grid-template-columns:1fr 1fr;gap:9px}
}
@media(max-width:480px){.evidence-gallery{grid-template-columns:1fr}}


/* Service Case collapsed timeline / email sections */
.case-section-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.case-section-shortcut{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);padding:8px 11px;font:inherit;cursor:pointer;box-shadow:0 2px 7px rgba(27,39,52,.04);transition:border-color .15s ease,background .15s ease,transform .15s ease}
.case-section-shortcut:hover,.case-section-shortcut:focus-visible{border-color:#c6d3dc;background:#f7fafb;transform:translateY(-1px);outline:none}
.case-section-shortcut>span{color:var(--accent);font-weight:900}
.case-section-shortcut>strong{font-size:11px}
.case-section-shortcut>em{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef2f5;color:#52616d;font-size:10px;font-style:normal;font-weight:900}
.case-collapsible-panel{padding:0;overflow:hidden}
.case-collapsible-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;cursor:pointer;user-select:none}
.case-collapsible-summary::-webkit-details-marker{display:none}
.case-collapsible-summary h2{margin:0;font-size:17px}
.case-collapsible-summary p{margin:4px 0 0;color:var(--muted);font-size:12px}
.case-collapsible-summary:hover{background:#fafcfd}
.case-collapsible-meta{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.case-collapsible-meta span{color:var(--muted);font-size:10px;font-weight:800}
.case-collapsible-meta b{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#eef2f5;color:#596a77;font-size:16px;transition:transform .16s ease}
.case-collapsible-panel[open] .case-collapsible-meta b{transform:rotate(180deg)}
.case-collapsible-panel[open] .case-collapsible-summary{border-bottom:1px solid var(--line)}
.case-collapsible-content{padding:18px 20px 20px}
.case-collapsible-panel:target{scroll-margin-top:84px}
@media(max-width:640px){
  .case-section-shortcuts{display:grid;grid-template-columns:1fr 1fr}
  .case-section-shortcut{justify-content:flex-start;border-radius:11px}
  .case-collapsible-summary{padding:15px 16px;align-items:flex-start}
  .case-collapsible-meta span{display:none}
  .case-collapsible-content{padding:15px 16px 18px}
}


/* Dashboard operations and intervention calendar */
.dashboard-operations-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr);gap:16px;margin-bottom:16px}
.dashboard-live-panel,.dashboard-calendar-panel{min-width:0}
.dashboard-live-list{display:grid;gap:8px}
.dashboard-live-row{display:grid;grid-template-columns:132px minmax(0,1fr) 58px;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.dashboard-live-row:hover,.dashboard-live-row:focus-visible{border-color:#c9d4dc;box-shadow:0 7px 20px rgba(27,39,52,.08);transform:translateY(-1px);outline:none;text-decoration:none}
.dashboard-live-state{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 8px;border-radius:999px;background:#eef2f5;color:#455966;font-size:10px;font-weight:900;text-align:center}
.phase-travelling .dashboard-live-state,.phase-returning .dashboard-live-state{background:#edf2fb;color:#315d91}
.phase-arrived .dashboard-live-state,.phase-working .dashboard-live-state{background:#eaf6f0;color:#176647}
.phase-testing .dashboard-live-state{background:#fff4d8;color:#8a6200}
.phase-testing_finished .dashboard-live-state{background:#f0edf9;color:#5f468c}
.dashboard-live-main{min-width:0}.dashboard-live-main strong,.dashboard-live-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-live-main strong{font-size:12px}.dashboard-live-main small{margin-top:3px;color:var(--muted);font-size:10px}
.dashboard-live-time{text-align:right}.dashboard-live-time strong,.dashboard-live-time small{display:block}.dashboard-live-time strong{font-size:12px}.dashboard-live-time small{color:var(--muted);font-size:10px}

.dashboard-calendar-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px;text-align:center}
.dashboard-calendar-head h2{margin:0;font-size:17px}.dashboard-calendar-head p{margin:3px 0 0;color:var(--muted);font-size:11px}
.dashboard-calendar-weekdays,.dashboard-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.dashboard-calendar-weekdays{margin-bottom:5px}.dashboard-calendar-weekdays span{text-align:center;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase}
.calendar-day{position:relative;display:flex;min-height:55px;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:6px;border:1px solid transparent;border-radius:9px;background:#f7f9fb;color:var(--ink);text-decoration:none;font-size:11px}
.calendar-day.empty-day{background:transparent}
.calendar-day.today{border-color:#efb17f;box-shadow:inset 0 0 0 1px #efb17f}
.calendar-day.has-events{border-color:#e0e6eb;background:#fff;cursor:pointer}
.calendar-day.has-events:hover,.calendar-day.has-events:focus-visible{border-color:var(--accent);box-shadow:0 5px 14px rgba(27,39,52,.08);outline:none;text-decoration:none}
.calendar-day>span{font-weight:900}
.calendar-day .calendar-day-counts{position:absolute;right:5px;top:5px;display:flex;align-items:center;gap:3px}
.calendar-day .calendar-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:var(--accent);color:#fff;font-size:9px;font-weight:900}
.calendar-day .calendar-count.is-open{background:var(--accent)}
.calendar-day .calendar-count.is-active{background:#2671c3}
.calendar-day .calendar-count.is-completed{background:#168455}
.calendar-day.has-events.status-active{background:#f1f7fe;border-color:#bed7f1}
.calendar-day.has-events.status-completed{background:#f0faf4;border-color:#b6dcc7}
.calendar-day.has-events.status-mixed{border-color:#d9e4de}
.calendar-day>small{color:var(--muted);font-size:9px;font-weight:700}
.dashboard-calendar-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;color:var(--muted);font-size:10px}
.dashboard-calendar-legend .calendar-legend-statuses{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dashboard-calendar-legend .calendar-legend-statuses span{display:flex;align-items:center;gap:6px}
.dashboard-calendar-legend i{display:block;width:8px;height:8px;border-radius:999px;background:var(--accent)}
.dashboard-calendar-legend .calendar-legend-active i{background:#2671c3}
.dashboard-calendar-legend .calendar-legend-completed i{background:#168455}
.dashboard-calendar-legend a{font-weight:800;white-space:nowrap}

@media(max-width:1080px){.dashboard-operations-grid{grid-template-columns:1fr}}
@media(max-width:650px){.dashboard-live-row{grid-template-columns:1fr auto;gap:7px}.dashboard-live-state{grid-column:1/-1;justify-self:start}.dashboard-calendar-panel{padding-left:12px;padding-right:12px}.calendar-day{min-height:48px;padding:5px}.calendar-day>small{display:none}.calendar-day.status-mixed .calendar-day-counts{flex-direction:column;gap:2px;top:3px;right:3px}.calendar-day.status-mixed .calendar-count{min-width:16px;height:13px;padding:0 2px;font-size:8px}.dashboard-calendar-legend{flex-wrap:wrap}}


/* Customer Portal account / access management */
.customer-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.customer-account-panel{min-width:0}
.customer-account-readonly{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.customer-account-readonly>div{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}
.customer-account-readonly span{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.customer-account-readonly strong{display:block;overflow-wrap:anywhere}
.customer-account-form{margin-top:8px}
.customer-account-separator{border:0;border-top:1px solid var(--line);margin:22px 0 18px}
.panel-head.compact{margin-bottom:8px}
.customer-access-panel .table-wrap{margin-top:14px}
.customer-manager-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff2df;color:#8a4700;border:1px solid #f0cda9;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.customer-add-user{margin-top:16px}
.customer-access-panel .master-actions{display:flex;gap:7px;flex-wrap:wrap}
.customer-access-panel .inline-form{display:inline}
@media(max-width:900px){.customer-account-grid{grid-template-columns:1fr}.customer-account-readonly{grid-template-columns:1fr}}

/* v0.29.28 multilingual service-record text */
.localized-text-main{white-space:normal}.localized-text-meta{margin-top:8px;font-size:10.5px;font-weight:750;color:#557184}.localized-text-meta.pending{color:#7a6a3e}.localized-text-original{margin-top:7px;border-top:1px dashed #d8e0e5;padding-top:6px}.localized-text-original summary{cursor:pointer;color:#0b5d8a;font-size:11px;font-weight:800}.localized-text-original>div{margin-top:7px;padding:8px 10px;border-radius:8px;background:#f7f9fa;color:#44525d;font-size:12px;line-height:1.5}@media print{.localized-text-original{display:none}.localized-text-meta{font-size:9px}}


/* v0.29.35 Service Center Manager portal */
.service-center-body{margin:0;background:#eef2f5;color:#172634;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.scm-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;background:#122230;color:#fff;padding:12px 18px;box-shadow:0 8px 24px rgba(15,28,40,.16)}
.scm-brand strong,.scm-brand span,.scm-center span,.scm-center strong{display:block}.scm-brand span,.scm-center span{font-size:11px;color:#aebdca}.scm-center{text-align:center}.scm-actions{display:flex;align-items:center;gap:10px;font-size:12px}.scm-actions>a{color:#fff;text-decoration:none}.scm-actions .lang-switch{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}.scm-actions .lang-switch a{color:#c9d5df}.scm-actions .lang-switch a.active{background:#fff;color:#122230}
.scm-nav{display:flex;gap:7px;align-items:center;overflow:auto;background:#fff;border-bottom:1px solid #dce4e9;padding:9px max(14px,calc((100vw - 1180px)/2 + 18px))}.scm-nav a{white-space:nowrap;text-decoration:none;color:#506575;font-size:12px;font-weight:800;padding:8px 10px;border-radius:9px}.scm-nav a.active{background:#173b54;color:#fff}
.scm-main{max-width:1180px;margin:0 auto;padding:18px}.scm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.scm-kpis a{display:block;background:#fff;border:1px solid #dce4e9;border-radius:14px;padding:15px;text-decoration:none;color:inherit;box-shadow:0 6px 18px rgba(17,34,48,.05)}.scm-kpis span{display:block;color:#6b7b87;font-size:11px;text-transform:uppercase;font-weight:800}.scm-kpis strong{display:block;font-size:28px;margin-top:4px}
.scm-back{display:inline-block;margin:0 0 12px;color:#456277;text-decoration:none;font-weight:750;font-size:12px}.scm-case-hero{display:flex;justify-content:space-between;gap:18px}.scm-case-hero>div:first-child{min-width:0}.scm-case-hero span{font-size:11px;color:#687886;font-weight:850}.scm-case-hero h1{font-size:24px;margin:4px 0}.scm-case-hero p{margin:0;color:#536471}.scm-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.scm-info-grid>div{background:#fff;border:1px solid #dce4e9;border-radius:13px;padding:12px}.scm-info-grid span,.scm-info-grid small{display:block;color:#6b7b87;font-size:10px}.scm-info-grid span{text-transform:uppercase;font-weight:800;letter-spacing:.04em}.scm-info-grid strong{display:block;margin:5px 0;font-size:13px}
.scm-actions-panel{display:flex;gap:10px}.scm-file-list{display:grid;gap:8px;margin-top:12px}.scm-file-list a{display:flex;justify-content:space-between;gap:12px;border:1px solid #dce4e9;background:#f8fafb;border-radius:10px;padding:10px 12px;text-decoration:none;color:#183246}.scm-file-list small{color:#6e7c86}
.scm-history{display:grid;gap:10px;margin-top:12px}.scm-history article{border:1px solid #dce4e9;border-radius:12px;background:#f8fafb;padding:12px}.scm-history-head{display:flex;justify-content:space-between;gap:12px}.scm-history-head span{font-size:11px;color:#6e7c86}.scm-history p{font-size:12px;line-height:1.5}
@media(max-width:900px){.scm-header{grid-template-columns:1fr auto}.scm-center{grid-column:1/-1;grid-row:2;text-align:left}.scm-kpis,.scm-info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.scm-header{padding:11px 12px}.scm-actions>span{display:none}.scm-main{padding:12px}.scm-kpis,.scm-info-grid{grid-template-columns:1fr}.scm-case-hero{flex-direction:column}.scm-history-head{flex-direction:column;gap:3px}}


/* v0.29.36 — Unified Central Hub / Service Center admin shell */
.service-center-body.unified-admin-shell{background:var(--bg);color:var(--ink);font:14px/1.5 Inter,Segoe UI,Arial,sans-serif}
.unified-admin-shell .service-center-sidebar-context{display:grid;gap:2px;padding:11px 10px;border:1px solid #24323f;border-radius:10px;background:rgba(255,255,255,.025)}
.unified-admin-shell .service-center-sidebar-context span{color:#8193a3;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.unified-admin-shell .service-center-sidebar-context strong{color:#d9e2e9;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.unified-admin-shell .service-center-top-context{display:grid;grid-template-columns:auto auto;column-gap:7px;align-items:center;min-width:170px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.unified-admin-shell .service-center-top-context span{grid-column:1;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.unified-admin-shell .service-center-top-context strong{grid-column:2;grid-row:1;color:var(--accent);font-size:11px;text-align:right}
.unified-admin-shell .service-center-top-context small{grid-column:1/-1;display:block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:11px;font-weight:750}
.unified-admin-shell .scm-dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.unified-admin-shell .scm-case-hero{align-items:flex-start}
.unified-admin-shell .scm-case-hero>div:last-child{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap}
.unified-admin-shell .scm-info-grid{gap:12px}
.unified-admin-shell .scm-info-grid>div{border-color:var(--line);background:#f8fafb;box-shadow:none}
.unified-admin-shell .scm-actions-panel{align-items:center;flex-wrap:wrap}
.unified-admin-shell .scm-file-list a{border-color:var(--line);background:#f8fafb}
.unified-admin-shell .scm-history article{border-color:var(--line);background:#f8fafb}
@media(max-width:1050px){.unified-admin-shell .scm-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .unified-admin-shell .sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .unified-admin-shell .service-center-top-context{min-width:0;padding:6px 8px}
  .unified-admin-shell .service-center-top-context span,.unified-admin-shell .service-center-top-context small{display:none}
  .unified-admin-shell .service-center-top-context strong{grid-column:1;grid-row:1}
}
@media(max-width:520px){.unified-admin-shell .scm-dashboard-kpis{grid-template-columns:1fr 1fr}}


.login-owner-onboarding{margin-top:18px;padding-top:18px;border-top:1px solid var(--line,#dbe3e8);text-align:center}
.login-owner-onboarding>span{display:block;font-weight:800;margin-bottom:6px}
.login-owner-onboarding p{margin:0 0 12px;color:var(--muted,#667784);font-size:.92rem}
.onboarding-wrap{align-items:flex-start;padding-top:32px;padding-bottom:48px}
.onboarding-card{width:min(920px,calc(100vw - 28px))}
.onboarding-form fieldset{border:1px solid var(--line,#dbe3e8);border-radius:12px;padding:16px;margin:0}
.onboarding-form legend{font-weight:800;padding:0 6px}

/* Existing-machine onboarding: password inputs share one aligned grid row;
   helper text occupies its own full-width row below both fields. */
.onboarding-form .onboarding-password-field{align-content:start;grid-template-rows:auto auto;gap:6px;min-width:0}
.onboarding-form .onboarding-password-field input{width:100%;min-width:0;margin:0}
.onboarding-form .onboarding-password-hint{display:block;grid-column:1/-1;margin:-7px 0 0;color:var(--muted);font-size:11px;font-weight:400;line-height:1.45}
.onboarding-result-card{max-width:560px}
@media(max-width:720px){.onboarding-wrap{padding-top:16px}.onboarding-card{width:min(100%,calc(100vw - 18px))}.onboarding-form fieldset{padding:12px}}


/* Shared evidence phase presentation */
.evidence-group-block{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.evidence-group-block:first-of-type{margin-top:4px}
.evidence-group-block>.panel-head.compact{align-items:flex-start;margin-bottom:9px}
.evidence-group-block>.panel-head.compact h3{margin:0;font-size:13px}
.evidence-group-block>.panel-head.compact p{margin:3px 0 0;color:var(--muted);font-size:11px}
.evidence-group-block>.panel-head.compact>strong{min-width:28px;text-align:center;padding:4px 8px;border-radius:999px;background:#eef3f6;color:#435765}
.manufacturer-evidence-section{margin-top:15px;padding-top:13px;border-top:1px solid #e7ecef}
.manufacturer-evidence-section:first-of-type{margin-top:5px}
.service-evidence-source{background:#eef7fc;color:#0b5d8a;border:1px solid #bddbeb}

/* v0.29.42 unified Service Hub design system */
.unified-role-shell .portal-main{min-width:0}
.portal-sidebar-context{display:grid;gap:2px;padding:0 0 10px;color:#91a0ad}
.portal-sidebar-context span{font-size:9px;text-transform:uppercase;letter-spacing:.09em}
.portal-sidebar-context strong{color:#e8eef3;font-size:11px;line-height:1.35}
.portal-preview-note{margin:0 0 16px;padding:10px 12px;border:1px solid #f1d7a7;background:#fff7e9;border-radius:10px;color:#805100}
.unified-portal-footer{text-align:center;color:#84919b;font-size:11px;padding:26px 8px 0;margin-top:28px;border-top:1px solid var(--line)}
.metric-grid,.manufacturer-kpis,.customer-kpis,.tech-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:18px}
.metric-grid>article,.manufacturer-kpis>a,.customer-kpis>a,.tech-stats>div{background:var(--panel);padding:20px;border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink);min-width:0}
.metric-grid>article span,.manufacturer-kpis>a span,.customer-kpis>a span,.tech-stats>div span{display:block;color:var(--muted);font-size:11px;text-transform:none;letter-spacing:0}
.metric-grid>article strong,.manufacturer-kpis>a strong,.customer-kpis>a strong,.tech-stats>div strong{display:block;font-size:30px;margin:6px 0 0}
.metric-grid>article:hover,.manufacturer-kpis>a:hover,.customer-kpis>a:hover{transform:none;text-decoration:none}
.notice{padding:12px 14px;border-radius:10px;margin:0 0 16px;border:1px solid var(--line);background:#f7f9fa;color:#415261}
.notice.info{background:#edf6fb;border-color:#c9dfeb;color:#24546e}
.notice.warning{background:#fff7e9;border-color:#f1d7a7;color:#805100}
.notice.error{background:#fdeaea;border-color:#f6cccc;color:#9f2a2a}
.unified-role-shell .panel,.unified-role-shell .customer-machine-card,.unified-role-shell .customer-report-card,.unified-role-shell .manufacturer-case-card,.unified-role-shell .tech-job-card,.unified-role-shell .tech-card,.unified-role-shell .tech-order-hero{border-color:var(--line);box-shadow:var(--shadow)}
.unified-role-shell .customer-welcome,.unified-role-shell .manufacturer-welcome{background:var(--panel);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow)}
.unified-role-shell .customer-welcome p,.unified-role-shell .manufacturer-welcome p{color:var(--muted)}
.unified-role-shell .customer-welcome span,.unified-role-shell .manufacturer-welcome span{color:var(--muted);opacity:1}
.unified-role-shell .customer-welcome strong,.unified-role-shell .manufacturer-welcome strong{color:var(--ink)}
.unified-role-shell .customer-filter a.active,.unified-role-shell .manufacturer-filter a.active{background:var(--nav2);border-color:var(--nav2);color:#fff}
.unified-role-shell .manufacturer-case-hero span{color:var(--accent)}
.unified-role-shell .manufacturer-rationale{border-left-color:var(--accent);background:#fff8f3}
.unified-role-shell .manufacturer-decision-panel{border-top-color:var(--accent)}
.unified-role-shell .manufacturer-evidence-copy em{color:var(--accent)}
.unified-role-shell .tech-primary-action,.unified-role-shell .tech-complete-btn{background:var(--accent)}
.unified-role-shell .tech-primary-action:hover,.unified-role-shell .tech-complete-btn:hover{background:var(--accent2)}
.unified-role-shell .tech-main{max-width:none;margin:0;padding:0}
.unified-role-shell .customer-main,.unified-role-shell .manufacturer-main{max-width:none;margin:0;padding:0}
.unified-role-shell .form-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.unified-role-shell details.panel>summary{cursor:pointer;font-weight:800}
.unified-role-shell .table-wrap tbody tr:hover{background:#fafbfc}
@media(max-width:760px){
  .unified-role-shell .sidebar{position:static;height:auto}
  .technician-unified-body .sidebar{display:none}
  .technician-unified-body .main{padding:14px 12px 88px}
  .technician-unified-body .topbar{display:flex}
  .technician-unified-body .topbar-actions .lang-switch{display:flex}
  .metric-grid,.manufacturer-kpis,.customer-kpis,.tech-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .metric-grid,.manufacturer-kpis,.customer-kpis,.tech-stats{grid-template-columns:1fr}
}

/* Demo Program dashboard: same KPI cards and interactions as the central Dashboard */
.demo-dashboard-kpis .kpi{min-width:0}
.demo-dashboard-kpis .kpi span{line-height:1.4}
.demo-dashboard-kpis .demo-kpi-selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(239,108,44,.12),var(--shadow)}
#demo-request-list{scroll-margin-top:20px}

/* Service Case: responsive Service Center dispatch and assignment history */
.service-center-dispatch-panel{min-width:0}
.service-center-dispatch-info{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.service-center-dispatch-info>div:last-child{grid-column:1/-1}
.service-center-dispatch-info strong{overflow-wrap:anywhere}
.service-center-assign-layout{display:flex;align-items:stretch;gap:14px;flex-wrap:wrap;margin:16px 0}
.service-center-assign-form{flex:1 1 530px;min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;background:#f8fafc;border:1px solid var(--line);border-radius:12px}
.service-center-assign-fields{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:12px}
.service-center-assign-fields label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:650}
.service-center-assign-fields select,.service-center-assign-fields input{width:100%;min-width:0;border:1px solid #d7dee4;border-radius:9px;background:#fff;color:var(--ink);padding:10px 11px;outline:none}
.service-center-assign-fields select:focus,.service-center-assign-fields input:focus{border-color:#9db8cf;box-shadow:0 0 0 3px #e9f2f9}
.service-center-assign-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.service-center-assign-actions .btn{max-width:100%;white-space:normal;text-align:center}
.service-center-reroute-form{flex:0 1 205px;min-width:175px;display:flex;align-items:flex-end;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}
.service-center-reroute-form .btn{width:100%;white-space:normal;text-align:center}
.service-center-assignment-history{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);min-width:0}
.service-center-assignment-history>summary{font-weight:750;color:#315b82;cursor:pointer;padding:6px 2px;overflow-wrap:anywhere}
.service-center-assignment-timeline{margin-top:14px;min-width:0}
.service-center-assignment-item{grid-template-columns:18px minmax(0,1fr);gap:12px}
.service-center-assignment-content{min-width:0;overflow-wrap:anywhere}
.service-center-assignment-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px 18px;flex-wrap:wrap}
.service-center-assignment-heading strong{font-size:13px;line-height:1.5;color:var(--ink)}
.service-center-assignment-heading time{font-size:11px;line-height:1.5;color:var(--muted);white-space:nowrap}
.service-center-assignment-meta{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;margin-top:6px;color:var(--muted);font-size:11px}
.service-center-assignment-meta .badge{margin:0}
.service-center-assignment-reason{margin-top:8px!important;font-size:12px;line-height:1.5;color:#485968}
@media(max-width:820px){
  .service-center-assign-form{flex-basis:100%}
  .service-center-reroute-form{flex:1 1 100%;min-width:0}
}
@media(max-width:530px){
  .service-center-dispatch-info,.service-center-assign-fields{grid-template-columns:minmax(0,1fr)}
  .service-center-dispatch-info>div:last-child{grid-column:auto}
  .service-center-assign-actions .btn{width:100%}
}

/* Demo machine custody selection: only show the matching registered-holder list. */
#demoMachineStorageFields[hidden],
#demoMachineStorageFields label[hidden]{display:none!important}
#demoMachineStorageFields{min-width:0}
#demoMachineStorageFields .form-grid>label{min-width:0}
#demoMachineStorageFields select{width:100%;min-width:0}

/* New Service Case / Demo request: keep all inactive form branches truly hidden. */
#demoRequestBlock[hidden],
#newDemoCaseCustomer[hidden],
#caseBillingModeBlock[hidden],
#caseInitialEvidenceBlock[hidden]{display:none!important}
#demoRequestBlock .form-grid > label{min-width:0}
#demoRequestBlock select,#demoRequestBlock input{min-width:0;width:100%}

/* My Account: one two-column layout across Admin, Customer, Manufacturer,
   Distributor, Service Center, and Technician portals. */
.account-unified-grid{align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
.account-unified-grid>.customer-account-panel{min-width:0}
.account-unified-grid .account-login-panel{min-width:0}
.account-unified-grid .account-login-panel .customer-account-form{max-width:none}
.account-unified-grid .account-login-panel input,
.account-unified-grid .account-login-panel select{width:100%;min-width:0}
.account-unified-grid .account-context-panel{display:flex;flex-direction:column;gap:14px}
.account-unified-grid .account-context-panel .panel-head{margin-bottom:0}
.account-unified-grid .account-context-panel .customer-account-readonly{margin-bottom:0}
.account-unified-grid .account-context-details{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:4px}
.account-unified-grid .account-context-details>div{min-width:0;overflow-wrap:anywhere}
.account-unified-grid .account-context-note{margin-top:auto}
.account-unified-grid .account-login-panel .customer-account-separator{margin:22px 0 18px}
.account-unified-grid .account-login-panel .form-actions{display:flex;justify-content:flex-start}
.account-unified-grid .account-login-panel .form-actions .btn{width:auto}
@media(max-width:1000px){.account-unified-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
  .account-unified-grid .customer-account-readonly,
  .account-unified-grid .account-context-details{grid-template-columns:minmax(0,1fr)}
  .account-unified-grid .customer-account-form{grid-template-columns:minmax(0,1fr)}
  .account-unified-grid .customer-account-form>.span2{grid-column:auto}
}

/* User management: consistent Edit / Freeze / Delete actions across locales */
.users-action-row{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;min-width:max-content;margin:0!important}
.users-action-row .inline-form{display:inline-flex;align-items:center;justify-content:center;margin:0!important;flex:0 0 auto}
.users-action-row .btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;min-width:80px;max-width:none;padding:7px 10px;border-radius:9px;font-size:11px;font-weight:750;line-height:1.2;white-space:nowrap;text-align:center;flex:0 0 auto}
.users-action-row .btn-muted{background:#f1f4f7;color:#36516b;border-color:#d8e0e7}
.users-action-row .btn-danger{background:#bd3434;border-color:#bd3434;color:#fff}
.users-action-row .btn-danger:hover{background:#a82929}
@media(max-width:740px){.users-action-row .btn{min-width:75px;font-size:10.5px}}

/* Demo fleet calendar: booked days cannot be selected; badges show free units. */
.demo-date-wrap{position:relative;display:flex;min-width:0;align-items:stretch;gap:6px}
.demo-date-wrap>.demo-date-input{min-width:0;flex:1 1 auto;cursor:pointer;background:#fff}
.demo-date-trigger{display:grid;place-items:center;flex:0 0 42px;background:#eef3f8;border:1px solid #d7dee4;color:#34506b;border-radius:9px;cursor:pointer;font-size:19px}
.demo-date-trigger:hover,.demo-date-trigger:focus-visible{border-color:#ef6c2c;color:#c85724}
.demo-date-popup{position:absolute;top:calc(100% + 7px);left:0;z-index:140;width:min(346px,calc(100vw - 30px));max-width:100%;padding:14px;background:#fff;border:1px solid #d6e0e8;border-radius:13px;box-shadow:0 15px 35px rgba(10,28,44,.2)}
.demo-date-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px}
.demo-date-heading strong{font-weight:800;font-size:13px;text-transform:capitalize}
.demo-date-heading button{background:#f1f5f8;border:1px solid #d6dee6;border-radius:8px;color:#1b3447;width:31px;height:31px;cursor:pointer}
.demo-date-heading button:disabled{opacity:.35;cursor:not-allowed}
.demo-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.demo-date-weekday{text-align:center;font-size:10px;font-weight:750;color:#657486;padding:4px 0}
.demo-date-day{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:43px;padding:4px 1px;border:1px solid #bee3d2;border-radius:8px;background:#f0fbf5;color:#176448;cursor:pointer;font-weight:750}
.demo-date-day small{font-size:8px;white-space:nowrap;line-height:1.1;font-weight:650}
.demo-date-day:hover:not(:disabled){background:#e3f5eb;border-color:#42a375}
.demo-date-day.selected{background:#ef6c2c;border-color:#ef6c2c;color:#fff}
.demo-date-day:disabled{background:#f1f3f5;border-color:#edf0f2;color:#b0b8bf;cursor:not-allowed;opacity:1}
.demo-date-note{color:#6c7f8b;font-size:12px;margin:12px 0 0}
@media(max-width:500px){.demo-date-popup{width:min(320px,calc(100vw - 42px));padding:9px}.demo-date-grid{gap:2px}.demo-date-day{min-height:39px}}



/* Manufacturer Portal mobile navigation & language selector.
   Scoped to Manufacturer so Admin / Technician / Customer layouts remain unchanged.
   The generic mobile rule hides .topbar-actions .lang-switch; override it here. */
@media(max-width:760px){
  .manufacturer-portal-body.unified-role-shell .app-shell{grid-template-columns:minmax(0,1fr);width:100%}
  .manufacturer-portal-body.unified-role-shell .sidebar{position:static;height:auto;min-width:0;padding:12px 12px 8px;background:#101923}
  .manufacturer-portal-body.unified-role-shell .brand{padding:0 4px 10px;gap:10px}
  .manufacturer-portal-body.unified-role-shell .brand strong{font-size:13px}
  .manufacturer-portal-body.unified-role-shell .brand span{font-size:10px;letter-spacing:.07em}
  .manufacturer-portal-body.unified-role-shell .sidebar nav{display:flex;flex-direction:row;grid-template-columns:none;gap:6px;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:10px 0 5px}
  .manufacturer-portal-body.unified-role-shell .sidebar nav a{display:inline-flex;flex:0 0 auto;gap:7px;justify-content:center;align-items:center;min-height:44px;max-width:none;padding:10px 12px;white-space:nowrap;font-size:12px;line-height:1.25;scroll-snap-align:start}
  .manufacturer-portal-body.unified-role-shell .sidebar nav a span:first-child{flex:0 0 auto}
  .manufacturer-portal-body.unified-role-shell .sidebar nav a.active{box-shadow:inset 0 -3px var(--accent)}
  .manufacturer-portal-body.unified-role-shell .portal-main{min-width:0;width:100%;padding:15px 12px 32px}
  .manufacturer-portal-body.unified-role-shell .topbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0 0 16px;min-width:0}
  .manufacturer-portal-body.unified-role-shell .topbar>div:first-child{min-width:0}
  .manufacturer-portal-body.unified-role-shell .topbar h1{font-size:clamp(20px,5.5vw,25px);line-height:1.2;overflow-wrap:anywhere;margin-top:3px}
  .manufacturer-portal-body.unified-role-shell .topbar .eyebrow{font-size:9px;letter-spacing:.12em;line-height:1.4}
  .manufacturer-portal-body.unified-role-shell .topbar-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;width:100%;gap:8px;min-width:0}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.lang-switch{display:inline-flex!important;visibility:visible;order:0;flex:0 0 auto;margin:0;background:#fff;border:1px solid #d8e1e8;border-radius:10px;padding:3px;gap:2px;max-width:100%}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.lang-switch .lang-sep{display:none}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.lang-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:36px;padding:0 8px;color:#435769;border-radius:7px;font-size:12px;font-weight:750;line-height:1;text-decoration:none}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.lang-switch a.active{background:#182532;color:#fff}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.lang-switch a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.mobile-user-session{display:flex;order:1;margin:0 0 0 auto;gap:7px;flex:0 1 auto;min-width:0}
  .manufacturer-portal-body.unified-role-shell .mobile-user-name{max-width:110px;text-overflow:ellipsis;overflow:hidden}
  .manufacturer-portal-body.unified-role-shell .mobile-user-logout{min-height:40px;padding:8px 11px}
  .manufacturer-portal-body.unified-role-shell .panel{padding:15px;margin-bottom:13px;min-width:0;overflow-wrap:anywhere}
  .manufacturer-portal-body.unified-role-shell .panel-head{gap:10px;flex-wrap:wrap;min-width:0}
  .manufacturer-portal-body.unified-role-shell .panel-head>div{min-width:0}
  .manufacturer-portal-body.unified-role-shell .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .manufacturer-portal-body.unified-role-shell .manufacturer-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .manufacturer-portal-body.unified-role-shell .manufacturer-kpis>a{padding:14px;min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-kpis>a span{font-size:11px;line-height:1.4}
  .manufacturer-portal-body.unified-role-shell .manufacturer-kpis>a strong{font-size:26px}
  .manufacturer-portal-body.unified-role-shell .demo-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .manufacturer-portal-body.unified-role-shell .demo-dashboard-kpis>.kpi{min-width:0;padding:14px}
  .manufacturer-portal-body.unified-role-shell .demo-dashboard-kpis>.kpi strong{font-size:27px}
  .manufacturer-portal-body.unified-role-shell .manufacturer-filter{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch;max-width:100%;padding:2px 0 7px}
  .manufacturer-portal-body.unified-role-shell .manufacturer-filter a{white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
  .manufacturer-portal-body.unified-role-shell .manufacturer-toolbar{min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-toolbar form{min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-toolbar form input{min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-case-layout,.manufacturer-portal-body.unified-role-shell .manufacturer-info-grid{min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-case-hero h2{font-size:20px;overflow-wrap:anywhere}
  .manufacturer-portal-body.unified-role-shell .manufacturer-decision-form select,
  .manufacturer-portal-body.unified-role-shell .manufacturer-decision-form textarea{max-width:100%;min-width:0}
  .manufacturer-portal-body.unified-role-shell .manufacturer-case-card{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:420px){
  .manufacturer-portal-body.unified-role-shell .topbar-actions>.mobile-user-session{margin-left:0;width:100%;justify-content:space-between}
  .manufacturer-portal-body.unified-role-shell .mobile-user-name{max-width:calc(100% - 110px)}
  .manufacturer-portal-body.unified-role-shell .manufacturer-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .manufacturer-portal-body.unified-role-shell .demo-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Mobile manufacturer menu: replaces the long, swipe-only navigation row. */
.manufacturer-portal-body .manufacturer-mobile-nav-toggle{display:none}
@media(max-width:760px){
  .manufacturer-portal-body.unified-role-shell .brand>div:nth-child(2){flex:1;min-width:0}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .brand{border-bottom:0;padding-bottom:8px}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .manufacturer-mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;margin-left:auto;min-height:44px;padding:7px 12px;border:1px solid #455969;border-radius:10px;background:#1d2d3b;color:#fff;font-size:13px;font-weight:750;cursor:pointer}
  .manufacturer-portal-body.unified-role-shell .manufacturer-mobile-nav-toggle:focus-visible{outline:3px solid #ef6c2c;outline-offset:3px}
  .manufacturer-portal-body.unified-role-shell .manufacturer-mobile-nav-symbol{font-size:18px;line-height:1}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .sidebar nav{display:none;overflow:visible;scroll-snap-type:none;padding:7px 0 11px}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready.manufacturer-mobile-nav-open .sidebar nav{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;border-top:1px solid #2a3947;margin-top:7px}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .sidebar nav a{display:flex;flex:1 1 auto;justify-content:flex-start;text-align:left;min-width:0;max-width:100%;min-height:46px;white-space:normal;overflow-wrap:anywhere;padding:11px 14px;font-size:13px;scroll-snap-align:none}
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .sidebar nav a.active{box-shadow:inset 3px 0 var(--accent);background:#233645}
  /* Profile, logout and language already appear in the mobile topbar. */
  .manufacturer-portal-body.unified-role-shell.manufacturer-mobile-nav-ready .sidebar-foot{display:none}
}
@media(max-width:360px){
  .manufacturer-portal-body.unified-role-shell .manufacturer-mobile-nav-toggle{padding:7px 9px;gap:5px}
  .manufacturer-portal-body.unified-role-shell .brand-mark{width:33px;height:33px;flex:0 0 auto}
}

@media(max-width:760px){
  /* Brand's generic span typography must not dim the toggle label. */
  .manufacturer-portal-body.unified-role-shell .manufacturer-mobile-nav-toggle span{color:#fff;letter-spacing:normal;text-transform:none;font-weight:750}
  .manufacturer-portal-body.unified-role-shell .manufacturer-mobile-nav-toggle .manufacturer-mobile-nav-symbol{font-size:18px}
}


/* Manufacturer Operations Dashboard — scoped to Manufacturer / Admin preview. */
.manufacturer-portal-body .mp-ops-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(172px,1fr));gap:12px;margin:0 0 18px}
.manufacturer-portal-body .mp-ops-metric{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:123px;border:1px solid #dae3eb;border-radius:13px;padding:15px 16px;background:#fff;color:#183246;text-decoration:none;box-shadow:0 3px 13px rgba(15,35,54,.035);transition:border-color .12s,transform .12s}
.manufacturer-portal-body .mp-ops-metric:hover,.manufacturer-portal-body .mp-ops-metric:focus-visible{border-color:#ea995e;text-decoration:none;transform:translateY(-1px)}
.manufacturer-portal-body .mp-ops-metric span{font-size:12px;line-height:1.4;color:#526578;overflow-wrap:anywhere;min-height:34px}
.manufacturer-portal-body .mp-ops-metric strong{font-size:29px;line-height:1.1;color:#16476b;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mp-ops-metric small{margin-top:auto;font-size:10.5px;color:#53687a;font-weight:700}
.manufacturer-portal-body .mp-ops-metric.is-warning{border-left:4px solid #e4a039}
.manufacturer-portal-body .mp-ops-metric.is-danger{border-left:4px solid #c44444}
.manufacturer-portal-body .mp-ops-metric.is-danger strong{color:#b62f36}
.manufacturer-portal-body .mp-ops-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.manufacturer-portal-body .mp-ops-alert{min-width:0;border:1px solid #ead7c8;border-radius:12px;background:#fffaf6;padding:13px}
.manufacturer-portal-body .mp-ops-alert-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:9px}
.manufacturer-portal-body .mp-ops-alert-head>strong{font-size:13px;color:#633a22;line-height:1.4}
.manufacturer-portal-body .mp-ops-alert-head>a{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:750;text-decoration:none}
.manufacturer-portal-body .mp-ops-alert-num{display:inline-block;padding:2px 9px;border:1px solid #ebcbb9;background:#fff2e9;border-radius:999px;color:#9d4918;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mp-ops-alert-list{display:grid;gap:3px}
.manufacturer-portal-body .mp-ops-alert-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;padding:9px 7px;border-top:1px solid #eee1d8;color:#33485a;text-decoration:none}
.manufacturer-portal-body .mp-ops-alert-list>a:hover{background:#fff3e7;border-radius:8px}
.manufacturer-portal-body .mp-ops-alert-list>a strong{font-size:12px;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-ops-alert-list>a small{grid-column:1;line-height:1.35;color:#687987;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-ops-alert-list>a>span{grid-row:1/3;grid-column:2;color:#a64f1d}
.manufacturer-portal-body .mp-ops-scope{margin:10px 0 0;color:#607284;font-size:11px;line-height:1.5}
.manufacturer-portal-body .mp-ops-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
.manufacturer-portal-body .mp-ops-columns .panel{min-width:0}
.manufacturer-portal-body .mp-ops-network{display:grid;gap:0}
.manufacturer-portal-body .mp-ops-network-head,.manufacturer-portal-body .mp-ops-network-row{display:grid;grid-template-columns:minmax(0,1fr) 75px 75px;align-items:center;gap:8px;padding:10px 8px;border-bottom:1px solid #e7ecf0}
.manufacturer-portal-body .mp-ops-network-head{font-size:10.5px;color:#607385;font-weight:750}
.manufacturer-portal-body .mp-ops-network-head span:not(:first-child),.manufacturer-portal-body .mp-ops-network-row strong{text-align:center}
.manufacturer-portal-body .mp-ops-network-row{color:#27465b;text-decoration:none;font-size:12px;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-ops-network-row:hover{background:#f5f9fc}
.manufacturer-portal-body .mp-ops-network-row strong{font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mp-ops-compact-list{display:grid;gap:6px}
.manufacturer-portal-body .mp-ops-compact-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;border:1px solid #e7ecf0;border-radius:9px;padding:10px 12px;text-decoration:none}
.manufacturer-portal-body .mp-ops-compact-list>a:hover{background:#f6f9fc}
.manufacturer-portal-body .mp-ops-compact-list>a strong{color:#234e6a;font-size:12px}
.manufacturer-portal-body .mp-ops-compact-list>a span{grid-column:1;overflow-wrap:anywhere;color:#566a7d;font-size:11px}
.manufacturer-portal-body .mp-ops-compact-list>a small{grid-column:2;grid-row:1/3;text-align:right;color:#697f90}
.manufacturer-portal-body .mp-ops-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;margin-bottom:12px;scrollbar-width:thin}
.manufacturer-portal-body .mp-ops-tab{display:inline-flex;align-items:center;min-height:42px;padding:9px 13px;border-radius:10px;border:1px solid #dbe4ec;background:#fff;color:#3c5669;font-size:12px;font-weight:750;flex:0 0 auto;text-decoration:none}
.manufacturer-portal-body .mp-ops-tab.active{color:#fff;border-color:#172e3c;background:#172e3c}
.manufacturer-portal-body .mp-ops-tab:hover{text-decoration:none;border-color:#afbdc9}
.manufacturer-portal-body .mp-ops-pill{display:inline-block;padding:4px 8px;border-radius:8px;background:#eef4f8;color:#31566e;font-size:11px;font-weight:750}
.manufacturer-portal-body .mp-ops-results .table-wrap{overflow-x:auto;max-width:100%}
.manufacturer-portal-body .mp-ops-table th,.manufacturer-portal-body .mp-ops-table td{padding:11px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-ops-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px;font-size:12px;color:#586c7d}
.manufacturer-portal-body .mp-ops-pagination>div{display:flex;gap:8px}
@media(max-width:1060px){
 .manufacturer-portal-body .mp-ops-metrics{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
 .manufacturer-portal-body .mp-ops-alerts,.manufacturer-portal-body .mp-ops-columns{grid-template-columns:1fr}
}
@media(max-width:760px){
 .manufacturer-portal-body .mp-ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .manufacturer-portal-body .mp-ops-metric{min-height:116px;padding:12px}
 .manufacturer-portal-body .mp-ops-metric span{font-size:11px}
 .manufacturer-portal-body .mp-ops-metric strong{font-size:26px}
 .manufacturer-portal-body .mp-ops-network-head,.manufacturer-portal-body .mp-ops-network-row{grid-template-columns:minmax(0,1fr) 57px 57px}
 .manufacturer-portal-body .mp-ops-table,.manufacturer-portal-body .mp-ops-table tbody{display:block;width:100%;min-width:0}
 .manufacturer-portal-body .mp-ops-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .manufacturer-portal-body .mp-ops-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;margin-bottom:10px;border:1px solid #e0e7ed;border-radius:10px;background:#fff}
 .manufacturer-portal-body .mp-ops-table td{display:block;padding:0!important;border:0!important;min-width:0;font-size:12px}
 .manufacturer-portal-body .mp-ops-table td:before{display:block;content:attr(data-label);font-size:10px;font-weight:750;color:#748594;margin-bottom:4px}
 .manufacturer-portal-body .mp-ops-table td:nth-child(-n+2){grid-column:1/-1}
}
@media(max-width:380px){.manufacturer-portal-body .mp-ops-metrics{grid-template-columns:1fr 1fr}.manufacturer-portal-body .mp-ops-metric{padding:10px}}

.manufacturer-portal-body .mp-ops-center-filter{margin:0 0 12px;color:#546d7e;font-size:12px}
.manufacturer-portal-body .mp-ops-center-filter strong{color:#214961}

.manufacturer-portal-body .mp-ops-network-row a{display:block;text-align:center;padding:5px 2px;border-radius:7px;color:#1b5b86;text-decoration:none}
.manufacturer-portal-body .mp-ops-network-row a:hover,.manufacturer-portal-body .mp-ops-network-row a:focus-visible{background:#e7f2fa;text-decoration:none}


/* Quality & Failure Analytics — manufacturer-only visual system */
.manufacturer-portal-body .mq-hero{min-width:0}
.manufacturer-portal-body .mq-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end;margin:14px 0 0}
.manufacturer-portal-body .mq-filters label{display:flex;flex-direction:column;min-width:0;gap:6px;color:#43576b;font-size:11px;font-weight:750}
.manufacturer-portal-body .mq-filters label select{min-width:0;width:100%;height:42px;background:#fff;border:1px solid #cedae5;border-radius:9px;color:#26394b;padding:7px 10px;font-size:12px;cursor:pointer}
.manufacturer-portal-body .mq-filter-actions{display:flex;gap:7px;align-items:stretch}
.manufacturer-portal-body .mq-filter-actions .btn{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 12px;white-space:nowrap;font-size:12px}
.manufacturer-portal-body .mq-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:16px 0}
.manufacturer-portal-body .mq-metric{display:flex;flex-direction:column;gap:8px;min-height:125px;padding:16px;background:#fff;border:1px solid #d9e3ec;border-radius:12px;text-decoration:none;min-width:0;color:#1d394f}
.manufacturer-portal-body .mq-metric:hover,.manufacturer-portal-body .mq-metric:focus-visible{border-color:#ef6c2c;text-decoration:none;box-shadow:0 4px 18px #1932470f}
.manufacturer-portal-body .mq-metric span{font-size:12px;color:#566b7d;line-height:1.35;overflow-wrap:anywhere}
.manufacturer-portal-body .mq-metric strong{font-size:30px;line-height:1.1;color:#174a70;font-variant-numeric:tabular-nums;margin-top:auto}
.manufacturer-portal-body .mq-metric small{font-size:10.5px;color:#708292;font-weight:750}
.manufacturer-portal-body .mq-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.manufacturer-portal-body .mq-two>.panel{min-width:0}
.manufacturer-portal-body .mq-two .panel-head{margin-bottom:12px}
.manufacturer-portal-body .mq-bars{display:grid;gap:9px}
.manufacturer-portal-body .mq-bar-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center;padding:9px 10px;border:1px solid #e4ebf1;border-radius:10px;color:#273f52;text-decoration:none}
.manufacturer-portal-body .mq-bar-item:hover{background:#f8fafc;text-decoration:none}
.manufacturer-portal-body .mq-bar-item span{min-width:0;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.manufacturer-portal-body .mq-bar-item strong{font-size:13px;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mq-bar-item>i{grid-column:1/-1;width:100%;height:7px;border-radius:8px;overflow:hidden;background:#e9f0f6}
.manufacturer-portal-body .mq-bar-item>i b{display:block;height:100%;background:#ef6c2c;border-radius:8px;max-width:100%}
.manufacturer-portal-body .mq-bar-item small{grid-column:1/-1;color:#718293;font-size:10.5px}
.manufacturer-portal-body .mq-trend{display:flex;gap:7px;overflow-x:auto;align-items:stretch;min-height:245px;padding:14px 0 7px}
.manufacturer-portal-body .mq-trend-col{display:flex;flex:1 0 34px;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:34px;max-width:75px;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mq-trend-col>strong{color:#244b64;font-size:11px}
.manufacturer-portal-body .mq-trend-track{display:flex;align-items:flex-end;width:100%;height:170px;background:#f0f5f8;border-radius:7px;overflow:hidden}
.manufacturer-portal-body .mq-trend-track i{display:block;width:100%;background:linear-gradient(180deg,#fb954e,#e56728);border-radius:6px 6px 0 0}
.manufacturer-portal-body .mq-trend-col>small{font-size:9px;white-space:nowrap;color:#687a8d;writing-mode:vertical-rl;transform:rotate(180deg);height:51px}
.manufacturer-portal-body .mq-indicators{display:grid;gap:8px}
.manufacturer-portal-body .mq-indicators>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#f7f9fb;border:1px solid #e5ecf2;border-radius:8px}
.manufacturer-portal-body .mq-indicators span{font-size:12px;color:#3e5568}
.manufacturer-portal-body .mq-indicators strong{font-size:16px;color:#1e506f;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mq-parts-table th,.manufacturer-portal-body .mq-parts-table td,.manufacturer-portal-body .mq-case-table th,.manufacturer-portal-body .mq-case-table td,.manufacturer-portal-body .mq-repeat-table th,.manufacturer-portal-body .mq-repeat-table td{padding:10px 12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.manufacturer-portal-body .mq-definitions p{margin:8px 0 0;font-size:12px;color:#617789;line-height:1.55}
.manufacturer-portal-body .mq-focus-chip{display:inline-flex;align-items:center;gap:8px;margin:4px 6px 12px 0;padding:8px 12px;border:1px solid #e4c6af;border-radius:12px;background:#fff7f1;color:#784124;font-size:12px}
.manufacturer-portal-body .mq-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:14px;color:#607486;font-size:12px}
.manufacturer-portal-body .mq-pagination>div{display:flex;gap:8px}
.manufacturer-portal-body .mq-cases-preview{color:#637a8d;margin:4px 0 6px}
@media(max-width:1250px){
 .manufacturer-portal-body .mq-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .manufacturer-portal-body .mq-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:850px){
 .manufacturer-portal-body .mq-two{grid-template-columns:1fr}
 .manufacturer-portal-body .mq-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:620px){
 .manufacturer-portal-body .mq-hero .panel-head{align-items:flex-start;gap:10px;flex-wrap:wrap}
 .manufacturer-portal-body .mq-hero .panel-head>.btn{max-width:100%;white-space:normal}
 .manufacturer-portal-body .mq-filters{grid-template-columns:1fr}
 .manufacturer-portal-body .mq-filter-actions{grid-column:1;justify-content:stretch}
 .manufacturer-portal-body .mq-filter-actions .btn{flex:1}
 .manufacturer-portal-body .mq-metric{min-height:110px;padding:12px}
 .manufacturer-portal-body .mq-metric strong{font-size:26px}
 .manufacturer-portal-body .mq-metric span{font-size:11px}
 .manufacturer-portal-body .mq-case-table,.manufacturer-portal-body .mq-case-table tbody,.manufacturer-portal-body .mq-repeat-table,.manufacturer-portal-body .mq-repeat-table tbody,.manufacturer-portal-body .mq-parts-table,.manufacturer-portal-body .mq-parts-table tbody{display:block;width:100%;min-width:0}
 .manufacturer-portal-body .mq-case-table thead,.manufacturer-portal-body .mq-repeat-table thead,.manufacturer-portal-body .mq-parts-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .manufacturer-portal-body .mq-case-table tbody tr,.manufacturer-portal-body .mq-repeat-table tbody tr,.manufacturer-portal-body .mq-parts-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;padding:12px;margin-bottom:11px;border:1px solid #dce6ed;border-radius:12px;background:#fff}
 .manufacturer-portal-body .mq-case-table td,.manufacturer-portal-body .mq-repeat-table td,.manufacturer-portal-body .mq-parts-table td{display:block;min-width:0;padding:0!important;border:0!important;font-size:12px}
 .manufacturer-portal-body .mq-case-table td:before,.manufacturer-portal-body .mq-repeat-table td:before,.manufacturer-portal-body .mq-parts-table td:before{display:block;content:attr(data-label);color:#6e8191;font-size:10px;font-weight:750;margin-bottom:2px}
 .manufacturer-portal-body .mq-case-table td:first-child,.manufacturer-portal-body .mq-repeat-table td:first-child,.manufacturer-portal-body .mq-parts-table td:first-child{grid-column:1/-1;border-bottom:1px solid #e5ebf1!important;padding-bottom:9px!important}
}


.manufacturer-portal-body .mq-dashboard-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:15px 18px;border:1px solid #e9cdb5;border-radius:12px;background:#fff9f3;color:#274359;text-decoration:none}
.manufacturer-portal-body .mq-dashboard-entry:hover,.manufacturer-portal-body .mq-dashboard-entry:focus-visible{background:#fff3e7;border-color:#ea9a65;text-decoration:none}
.manufacturer-portal-body .mq-dashboard-entry>div{display:grid;gap:3px}
.manufacturer-portal-body .mq-dashboard-entry strong{font-size:14px;color:#b34d19}
.manufacturer-portal-body .mq-dashboard-entry span{font-size:11px;color:#65798a;line-height:1.4}
.manufacturer-portal-body .mq-dashboard-entry>span{font-size:21px;color:#c35b21;flex-shrink:0}


/* Manufacturer Demo Performance reporting — desktop and mobile */
.manufacturer-portal-body .mdp-header-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.manufacturer-portal-body .mdp-dashboard-entry{border-color:#d8e5f0;background:#f3f8fd}
.manufacturer-portal-body .mdp-dashboard-entry:hover{background:#e9f3fc;border-color:#8cbad9}
.manufacturer-portal-body .mdp-dashboard-entry strong{color:#1a597f}
.manufacturer-portal-body .mdp-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px;margin:16px 0 0}
.manufacturer-portal-body .mdp-filters label{display:grid;gap:6px;min-width:0}
.manufacturer-portal-body .mdp-filters label>span{font-size:11px;color:#526678;font-weight:750}
.manufacturer-portal-body .mdp-filters label select{display:block;width:100%;min-width:0;height:43px;padding:7px 10px;border:1px solid #d1dde7;border-radius:10px;background:#fff;color:#23394b;font-size:12px;cursor:pointer}
.manufacturer-portal-body .mdp-filter-actions{display:flex;align-items:center;gap:8px}
.manufacturer-portal-body .mdp-filter-actions .btn{min-height:43px;display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;white-space:normal;text-align:center}
.manufacturer-portal-body .mdp-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:11px;margin-bottom:17px}
.manufacturer-portal-body .mdp-metric{display:flex;flex-direction:column;min-width:0;min-height:125px;padding:15px;gap:8px;border:1px solid #dbe6ee;border-radius:12px;background:#fff;text-decoration:none}
.manufacturer-portal-body .mdp-metric:hover,.manufacturer-portal-body .mdp-metric:focus-visible{border-color:#ef7d39;box-shadow:0 5px 15px rgba(24,50,70,.07);text-decoration:none}
.manufacturer-portal-body .mdp-metric span{font-size:12px;color:#586c7e;overflow-wrap:anywhere;line-height:1.3}
.manufacturer-portal-body .mdp-metric strong{display:block;margin-top:auto;color:#195074;font-size:28px;line-height:1.12;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mdp-metric small{font-size:10px;font-weight:750;color:#687e90;line-height:1.35}
.manufacturer-portal-body .mdp-metric.is-warning{border-left:4px solid #dea13f}
.manufacturer-portal-body .mdp-metric.is-danger{border-left:4px solid #c74b48}
.manufacturer-portal-body .mdp-metric.is-danger strong{color:#ba3434}
.manufacturer-portal-body .mdp-definitions p{margin:8px 0;color:#5f7588;font-size:12px;line-height:1.55}
.manufacturer-portal-body .mdp-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.manufacturer-portal-body .mdp-panels .panel{min-width:0}
.manufacturer-portal-body .mdp-bars{display:grid;gap:9px}
.manufacturer-portal-body .mdp-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px 12px;border:1px solid #e3eaf0;border-radius:10px;text-decoration:none;min-width:0;color:#28465c}
.manufacturer-portal-body a.mdp-bar:hover,.manufacturer-portal-body a.mdp-bar:focus-visible{background:#f6f9fc;text-decoration:none;border-color:#a8c4da}
.manufacturer-portal-body .mdp-bar>span{min-width:0;overflow-wrap:anywhere;font-size:12px}
.manufacturer-portal-body .mdp-bar>strong{font-size:13px;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mdp-bar>i{grid-column:1/-1;display:block;width:100%;height:7px;background:#eaf1f6;border-radius:10px;overflow:hidden}
.manufacturer-portal-body .mdp-bar>i b{display:block;height:100%;max-width:100%;background:#eb742d;border-radius:10px}
.manufacturer-portal-body .mdp-trend{display:flex;gap:8px;min-height:241px;max-width:100%;overflow-x:auto;padding:15px 0 3px}
.manufacturer-portal-body .mdp-trend-col{display:flex;flex-direction:column;flex:1 0 39px;min-width:39px;max-width:80px;align-items:center;justify-content:flex-end;gap:7px;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mdp-trend-col>strong{font-size:11px;color:#244b62}
.manufacturer-portal-body .mdp-trend-col>span{display:flex;align-items:flex-end;width:100%;height:160px;overflow:hidden;border-radius:7px;background:#f0f4f7}
.manufacturer-portal-body .mdp-trend-col>span i{width:100%;display:block;max-height:100%;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#fc9b52,#ee6f2c)}
.manufacturer-portal-body .mdp-trend-col>small{font-size:9px;white-space:nowrap;color:#667a8a;writing-mode:vertical-rl;transform:rotate(180deg);height:49px}
.manufacturer-portal-body .mdp-table th,.manufacturer-portal-body .mdp-table td{padding:10px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.manufacturer-portal-body .mdp-table td a{color:#1b5f88;font-weight:700}
.manufacturer-portal-body .mdp-paging{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;color:#617586;font-size:12px}
.manufacturer-portal-body .mdp-paging>div{display:flex;gap:8px}
@media(max-width:1050px){
 .manufacturer-portal-body .mdp-panels{grid-template-columns:minmax(0,1fr)}
 .manufacturer-portal-body .mdp-metrics{grid-template-columns:repeat(auto-fit,minmax(154px,1fr))}
}
@media(max-width:760px){
 .manufacturer-portal-body .mdp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .manufacturer-portal-body .mdp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .manufacturer-portal-body .mdp-metric{min-height:116px;padding:12px}
 .manufacturer-portal-body .mdp-metric strong{font-size:26px}
 .manufacturer-portal-body .mdp-header-links{width:100%}
 .manufacturer-portal-body .mdp-table,.manufacturer-portal-body .mdp-table tbody{display:block;width:100%;min-width:0}
 .manufacturer-portal-body .mdp-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 .manufacturer-portal-body .mdp-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px;padding:12px;margin-bottom:11px;border:1px solid #dce6ed;border-radius:12px;background:#fff}
 .manufacturer-portal-body .mdp-table tbody td{display:block;min-width:0;padding:0!important;border:0!important;font-size:12px;line-height:1.4}
 .manufacturer-portal-body .mdp-table tbody td:before{content:attr(data-label);display:block;font-size:10px;font-weight:750;color:#6a7c8b;margin-bottom:3px}
 .manufacturer-portal-body .mdp-table tbody td:first-child{grid-column:1/-1;padding-bottom:9px!important;border-bottom:1px solid #e5edf2!important}
}
@media(max-width:480px){
 .manufacturer-portal-body .mdp-filters{grid-template-columns:minmax(0,1fr)}
 .manufacturer-portal-body .mdp-filter-actions{grid-column:1}
 .manufacturer-portal-body .mdp-intro .panel-head{flex-wrap:wrap}
 .manufacturer-portal-body .mdp-header-links .btn{flex:1 1 auto;white-space:normal;text-align:center}
}


.manufacturer-portal-body .mdp-bar>small{grid-column:1/-1;color:#637a8c;font-size:10.5px;line-height:1.4}
.manufacturer-portal-body .mdp-status-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
@media(max-width:620px){.manufacturer-portal-body .mdp-status-bars{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A closed nested Demo new-customer form must not occupy grid space. */
.demo-new-customer-fields[hidden]{display:none!important}


/* Demo warehouse inspection: use the standard technician field styling at every width.
   Prevent iOS min-content overflow from long labels, native file pickers or form buttons. */
.tech-inspection-card,.tech-inspection-card .tech-card-head,.tech-inspection-card .tech-note{min-width:0;max-width:100%;overflow-wrap:anywhere}
.tech-inspection-card .tech-service-form,.tech-inspection-card .tech-inline-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.tech-inspection-card .tech-service-form>label,.tech-inspection-card .tech-inline-form>label{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;max-width:100%;font-size:12px;font-weight:750;color:#3d5364}
.tech-inspection-card .tech-service-form textarea{display:block;min-width:0;max-width:100%;width:100%;box-sizing:border-box;border:1px solid #ccd7de;border-radius:9px;padding:12px;background:#fff;color:#172634;font:inherit;font-size:16px;line-height:1.5;resize:vertical;min-height:112px;overflow-wrap:anywhere}
.tech-inspection-card .tech-service-form textarea[name="work_performed"]{min-height:136px}
.tech-inspection-card .tech-service-form textarea:focus-visible,.tech-inspection-card .tech-inline-form :is(input,select):focus-visible{outline:2px solid #78a7d2;outline-offset:1px}
.tech-inspection-card .tech-inline-form :is(input,select){min-width:0;max-width:100%;box-sizing:border-box}
.tech-inspection-card .tech-inline-form input[type="file"]{width:100%;white-space:normal;overflow:hidden}
.tech-inspection-card .tech-service-form>button,.tech-inspection-card .tech-inline-form>button{justify-self:start;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:center}
@media(max-width:640px){
  .tech-inspection-card{min-width:0}
  .tech-inspection-card .tech-service-form,.tech-inspection-card .tech-inline-form{gap:12px}
  .tech-inspection-card .tech-service-form>button,.tech-inspection-card .tech-inline-form>button{display:flex;width:100%;min-height:46px;justify-content:center;align-items:center}
}


/* Road mileage: planned route and confirmed distance are distinct and readable on phones. */
.wo-mileage-summary{display:grid;gap:5px;min-width:0;padding:13px 15px;border:1px solid #cddce6;border-radius:12px;background:#f3f8fb;color:#26465b}
.wo-mileage-summary strong{font-size:13px}
.wo-mileage-summary small{line-height:1.5;overflow-wrap:anywhere}
.wo-field-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wo-field-record-head>div{flex:1 1 200px;min-width:0}
.wo-field-record-head .wo-mileage-refresh{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;min-width:0;max-width:100%;margin:0}
.wo-field-record-head .wo-mileage-refresh .btn{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:34px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:center}
@media(max-width:640px){
  .wo-mileage-summary{padding:11px 12px}
  .wo-field-record-head{flex-direction:column;align-items:stretch}
  .wo-field-record-head .wo-mileage-refresh{width:100%;justify-content:stretch}
  .wo-field-record-head .wo-mileage-refresh .btn{width:100%}
}


/* Technician My Parts: consistent responsive requisition controls */
.tech-requisition .tech-request-form{display:grid;gap:16px;margin:16px 0 22px}
.tech-requisition .tech-request-line{display:grid;grid-template-columns:minmax(200px,2fr) minmax(125px,0.7fr) auto;align-items:end;gap:12px;margin-bottom:12px}
.tech-requisition .tech-request-line label{display:grid;gap:7px;font-weight:600;min-width:0}
.tech-requisition .tech-request-line input,.tech-requisition .tech-request-line select{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:9px 12px;font:inherit}
.tech-requisition .tech-request-line .btn{min-height:42px;white-space:nowrap}
.tech-requisition .tech-request-meta{grid-template-columns:minmax(190px,1fr) minmax(190px,2fr)}
.tech-requisition #techAddRequestLine{min-height:40px}
.tech-requisition .tech-request-form>.btn-primary{justify-self:start;min-height:42px}
@media(max-width:680px){.tech-requisition .tech-request-line,.tech-requisition .tech-request-meta{grid-template-columns:1fr}.tech-requisition .tech-request-form>.btn-primary{width:100%}}


/* Service-center revers forms: labels and controls should not collapse inline. */
.sc-revers-draft{display:grid;gap:16px;margin-top:16px;max-width:100%}
.sc-revers-draft label,.tech-request-revers-form label{display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0}
.sc-revers-draft input,.sc-revers-draft select,.tech-request-revers-form select{display:block;width:100%;min-width:0;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font:inherit}
.sc-revers-lines{display:grid;gap:12px}
.sc-revers-draft .tech-request-line{display:grid;grid-template-columns:minmax(230px,2fr) minmax(120px,.65fr) auto;align-items:end;gap:12px}
.sc-revers-draft .revers-remove-line{min-height:42px}
.sc-revers-draft #reversAddLine,.sc-revers-draft .sc-revers-actions{justify-self:start}
.sc-revers-draft .sc-revers-actions{margin:0}
.sc-revers-request-row>td{padding:14px 12px 22px!important;background:var(--bg)}
.sc-revers-request-row .tech-request-revers-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);max-width:100%}
.sc-revers-request-row .tech-request-revers-form .muted,.sc-revers-request-row .tech-request-revers-form button{grid-column:1/-1}
.sc-revers-request-row .tech-request-revers-form button{justify-self:start;min-height:42px}
.sc-revers-request-row .tech-request-revers-form .revers-stock-choice{display:flex;flex-direction:column;gap:7px;min-width:0}
@media(max-width:750px){.sc-revers-draft .tech-request-line,.sc-revers-request-row .tech-request-revers-form{grid-template-columns:1fr}.sc-revers-draft #reversAddLine,.sc-revers-draft .sc-revers-actions,.sc-revers-draft .sc-revers-actions button,.sc-revers-request-row .tech-request-revers-form button{width:100%}}


/* HUB transfer drafts */
.hub-transfer-form{display:grid;gap:16px;margin-top:16px}
.hub-transfer-form label{display:grid;gap:7px;font-weight:600;min-width:0}
.hub-transfer-form select,.hub-transfer-form input{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:var(--panel);color:var(--ink);font:inherit}
#hubTransferLines{display:grid;gap:12px}
.hub-transfer-line{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,.6fr);gap:12px;align-items:end}
.hub-transfer-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:700px){.hub-transfer-line{grid-template-columns:1fr}.hub-transfer-actions .btn{width:100%}}


/* Goods receipt movement history grouped by delivery note */
.warehouse-receipt-history{width:100%}
.warehouse-receipt-detail{min-width:210px}
.warehouse-receipt-detail summary{cursor:pointer;color:var(--blue);font-weight:600;padding:8px 0;list-style-position:inside}
.warehouse-receipt-detail[open] summary{margin-bottom:10px}
.warehouse-receipt-detail table{width:100%;margin-top:4px;font-size:13px}
.warehouse-receipt-detail table th,.warehouse-receipt-detail table td{padding:7px 9px}
@media(max-width:780px){.warehouse-receipt-detail{min-width:180px}.warehouse-receipt-history{min-width:760px}}


/* Topic-based collapsible sidebar navigation (HUB and Service Center). */
/* Direct Dashboard link uses exactly the same visual hierarchy as section headers. */
.sidebar nav a.sidebar-direct-link{display:flex;align-items:center;justify-content:flex-start;min-height:34px;padding:8px 11px 15px;margin:0;border:0;border-bottom:1px solid rgba(160,184,206,.14);border-radius:0;background:transparent;box-shadow:none;color:#9fb1c3;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;line-height:1.5;gap:0}
.sidebar nav a.sidebar-direct-link.active{background:transparent;box-shadow:none;color:#e6edf4}
.sidebar nav a.sidebar-direct-link:hover,.sidebar nav a.sidebar-direct-link:focus-visible{background:rgba(255,255,255,.06);box-shadow:none;color:#f1f5f9;text-decoration:none;border-radius:8px}

.sidebar nav{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#354757 transparent;padding:14px 0 12px;gap:8px}
.sidebar .sidebar-nav-group{border:0;border-bottom:1px solid rgba(160,184,206,.14);padding-bottom:7px;min-width:0}
.sidebar .sidebar-nav-group:last-child{border-bottom:0}
.sidebar .sidebar-nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;padding:8px 11px;color:#9fb1c3;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;border-radius:8px;user-select:none}
.sidebar .sidebar-nav-group>summary::-webkit-details-marker{display:none}
.sidebar .sidebar-nav-group>summary:hover,.sidebar .sidebar-nav-group>summary:focus-visible{background:rgba(255,255,255,.06);color:#f1f5f9}
.sidebar .sidebar-nav-chevron{font-size:16px;line-height:1;transition:transform .15s ease;flex:none}
.sidebar .sidebar-nav-group[open] .sidebar-nav-chevron{transform:rotate(180deg)}
.sidebar .sidebar-nav-items{display:flex;flex-direction:column;gap:3px;padding:1px 0 5px}
.sidebar .sidebar-nav-items a{padding:9px 11px;font-size:13px;min-height:37px;line-height:1.3;overflow-wrap:anywhere}
.sidebar .sidebar-nav-items a>span:first-child{flex:0 0 14px;text-align:center}
.sidebar .sidebar-nav-group:has(.active)>summary{color:#e6edf4}
.sidebar .sidebar-foot{flex:0 0 auto}
@media(max-width:780px){.sidebar nav{max-height:calc(100vh - 210px)}.sidebar .sidebar-nav-group>summary{min-height:34px}.sidebar .sidebar-nav-items a{min-height:40px}}


/* P1-01 inventory stock overview — compact, mobile-friendly filters and totals. */
.inventory-overview-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0}
.inventory-overview-toolbar label{display:grid;gap:6px;font-size:12px;font-weight:650;min-width:190px}
.inventory-overview-toolbar label:first-child{flex:1 1 280px}
.inventory-overview-toolbar input,.inventory-overview-toolbar select{width:100%;min-height:40px;border:1px solid #d7dee4;border-radius:9px;background:#fff;color:var(--ink);padding:9px 11px}
.inventory-overview-toolbar .btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.inventory-overview-stats{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}
.inventory-overview-stats span{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:12px}
.inventory-overview-stats strong{font-variant-numeric:tabular-nums}
@media(max-width:650px){.inventory-overview-toolbar label,.inventory-overview-toolbar label:first-child{flex:1 1 100%;min-width:0}.inventory-overview-toolbar .btn{flex:1 1 auto}.inventory-overview-stats span{flex:1 1 auto}}

/* Manufacturer Operations — read-only monthly service calendar (EN/DE/TR/BHS). */
.manufacturer-portal-body .mp-work-calendar{scroll-margin-top:16px;min-width:0}
.manufacturer-portal-body .mp-work-calendar-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.manufacturer-portal-body .mp-work-calendar-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0}
.manufacturer-portal-body .mp-work-calendar-controls strong{font-size:17px;font-variant-numeric:tabular-nums;color:#21435c}
.manufacturer-portal-body .mp-work-calendar-weekdays,.manufacturer-portal-body .mp-work-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.manufacturer-portal-body .mp-work-calendar-weekdays span{text-align:center;font-size:11px;font-weight:750;color:#63788a;padding:5px 0}
.manufacturer-portal-body .mp-cal-blank{min-height:70px}
.manufacturer-portal-body a.mp-cal-day{display:flex;flex-direction:column;justify-content:space-between;gap:7px;min-width:0;min-height:70px;padding:9px;border-radius:9px;border:1px solid #e1e8ee;background:#fff;color:#263f51;text-decoration:none;box-sizing:border-box}
.manufacturer-portal-body a.mp-cal-day.has-events{background:#f7fafc;border-color:#c8d9e5}
.manufacturer-portal-body a.mp-cal-day.is-today{border-color:#3076ae}
.manufacturer-portal-body a.mp-cal-day.is-selected{outline:2px solid #193f5c;outline-offset:-2px;background:#eef5fb}
.manufacturer-portal-body a.mp-cal-day:focus-visible{outline:3px solid #ee782e;outline-offset:1px}
.manufacturer-portal-body .mp-cal-day>strong{font-size:13px;font-variant-numeric:tabular-nums}
.manufacturer-portal-body .mp-cal-counts{display:flex;gap:3px;flex-wrap:wrap}
.manufacturer-portal-body .mp-cal-count{display:inline-flex;justify-content:center;align-items:center;min-width:21px;height:21px;padding:0 4px;border-radius:5px;font-size:10px;color:#fff;font-weight:750}
.manufacturer-portal-body .mp-cal-count.state-open,.manufacturer-portal-body .mp-work-calendar-legend i.state-open{background:#d88a20}
.manufacturer-portal-body .mp-cal-count.state-active,.manufacturer-portal-body .mp-work-calendar-legend i.state-active{background:#2879bd}
.manufacturer-portal-body .mp-cal-count.state-completed,.manufacturer-portal-body .mp-work-calendar-legend i.state-completed{background:#16825c}
.manufacturer-portal-body .mp-work-calendar-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:14px 0;color:#506578;font-size:12px}
.manufacturer-portal-body .mp-work-calendar-legend span{display:inline-flex;align-items:center;gap:6px}
.manufacturer-portal-body .mp-work-calendar-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.manufacturer-portal-body .mp-cal-selected{border-top:1px solid #e4ebf0;padding-top:14px}
.manufacturer-portal-body .mp-cal-selected-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.manufacturer-portal-body .mp-cal-selected-head h3{margin:0;font-size:16px}
.manufacturer-portal-body .mp-cal-selected-head>span{color:#657989;font-size:12px}
.manufacturer-portal-body .mp-cal-agenda{display:grid;gap:8px}
.manufacturer-portal-body a.mp-cal-entry{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #e1e8ee;border-radius:10px;background:#fff;text-decoration:none;color:#274257;min-width:0}
.manufacturer-portal-body a.mp-cal-entry:hover,.manufacturer-portal-body a.mp-cal-entry:focus-visible{background:#f1f7fc;border-color:#b6ccdb}
.manufacturer-portal-body .mp-cal-entry-status{display:inline-block;flex-shrink:0;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:750}
.manufacturer-portal-body .mp-cal-entry-status.state-open{background:#fff0d7;color:#8a540c}
.manufacturer-portal-body .mp-cal-entry-status.state-active{background:#e2f0fc;color:#175687}
.manufacturer-portal-body .mp-cal-entry-status.state-completed{background:#dff5e9;color:#176741}
.manufacturer-portal-body .mp-cal-entry-main{display:grid;gap:3px;min-width:0;flex:1}
.manufacturer-portal-body .mp-cal-entry-main strong{font-size:13px;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-cal-entry-main small{color:#667b8c;line-height:1.4;overflow-wrap:anywhere}
.manufacturer-portal-body .mp-cal-entry-time{font-size:11px;text-align:right;color:#587184}
.manufacturer-portal-body .mp-cal-entry-time small{display:block;margin-top:4px;white-space:nowrap;color:#304b5e}
@media(max-width:680px){
 .manufacturer-portal-body .mp-work-calendar-weekdays,.manufacturer-portal-body .mp-work-calendar-grid{gap:3px}
 .manufacturer-portal-body .mp-cal-blank,.manufacturer-portal-body a.mp-cal-day{min-height:54px}
 .manufacturer-portal-body a.mp-cal-day{padding:5px;gap:4px}
 .manufacturer-portal-body .mp-cal-day>strong{font-size:12px}
 .manufacturer-portal-body .mp-cal-count{min-width:16px;height:17px;padding:0 2px;font-size:9px}
 .manufacturer-portal-body a.mp-cal-entry{flex-wrap:wrap;gap:8px}
 .manufacturer-portal-body .mp-cal-entry-status{order:0}
 .manufacturer-portal-body .mp-cal-entry-main{order:1;flex-basis:calc(100% - 120px)}
 .manufacturer-portal-body .mp-cal-entry-time{order:2;text-align:left}
}
