@font-face{font-family:Archivo;src:url(archivo.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{
  --steel:#E7EBEE; --plate:#FFFFFF; --line:#C9D1D8; --line-soft:#E0E5E9;
  --ink:#16222E; --dim:#54636F; --layout:#123F73; --layout-deep:#0C2C52; --layout-tint:#DCE7F3;
  --go:#17744A; --go-tint:#D8EEE3; --wait:#9A5B00; --wait-tint:#FBEBCF; --stop:#B3261E; --stop-tint:#F9DEDB; --idle:#66727D; --idle-tint:#E6E9EC;
  --mark:#F2B705;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--steel);color:var(--ink);font:var(--fs,15px)/1.45 Archivo,"Segoe UI",Roboto,"Noto Sans Devanagari",system-ui,sans-serif;font-variant-numeric:tabular-nums}
h1{font-size:24px;line-height:1.2;margin:0;font-weight:700}
h2{font-size:17px;margin:0 0 10px;font-weight:700}
h3{font-size:15px;margin:0 0 6px;font-weight:700}
p{margin:0 0 10px}
a{color:var(--layout)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--mark);outline-offset:1px}
.btn{appearance:none;border:1px solid var(--layout);background:var(--layout);color:#fff;padding:8px 14px;border-radius:4px;font-weight:600;cursor:pointer;min-height:38px;text-decoration:none;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.btn:hover{background:var(--layout-deep)}
.btn.plain{background:var(--plate);color:var(--layout)}
.btn.plain:hover{background:var(--layout-tint)}
.btn.danger{background:var(--plate);color:var(--stop);border-color:var(--stop)}
.btn.danger:hover{background:var(--stop-tint)}
.btn.go{background:var(--go);border-color:var(--go)}
.btn:disabled{opacity:.5;cursor:default}
.btn.small{min-height:30px;padding:3px 9px;font-size:13.5px}
label.f{display:block;font-size:13px;font-weight:600;color:var(--dim)}
label.f input,label.f select,label.f textarea{display:block;width:100%;margin-top:3px;font-weight:400;color:var(--ink)}
input,select,textarea{background:#fff;border:1px solid #9AA7B2;border-radius:4px;padding:7px 9px;min-height:38px;max-width:100%}
textarea{min-height:110px;font-size:14px}
input[type=checkbox]{min-height:0;width:18px;height:18px;vertical-align:-3px}
.check{display:flex;gap:8px;align-items:center;font-size:14px}
.grid{display:grid;gap:12px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}
.sheet{background:var(--plate);border:1px solid var(--line);padding:16px;margin-bottom:16px}
.muted{color:var(--dim)}.small{font-size:13px}.right{text-align:right}.nowrap{white-space:nowrap}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%}
th{text-align:left;font-size:13px;font-weight:600;color:var(--dim);border-bottom:2px solid var(--line);padding:6px 9px;white-space:nowrap}
td{border-bottom:1px solid var(--line-soft);padding:7px 9px;vertical-align:top}
tr.link{cursor:pointer}tr.link:hover td{background:#F3F6F9}
td.num,th.num{text-align:right}
.tag{display:inline-block;padding:1px 7px;border-radius:3px;font-size:12.5px;font-weight:600;white-space:nowrap;background:var(--idle-tint);color:#3D4852}
.tag.go{background:var(--go-tint);color:#0F5736}.tag.wait{background:var(--wait-tint);color:#744400}.tag.stop{background:var(--stop-tint);color:#8C1C15}.tag.blue{background:var(--layout-tint);color:var(--layout-deep)}
.notice{padding:9px 12px;margin-bottom:12px;border-left:4px solid var(--wait);background:var(--wait-tint)}
.notice.stop{border-color:var(--stop);background:var(--stop-tint)}.notice.go{border-color:var(--go);background:var(--go-tint)}
.empty{padding:22px 8px;color:var(--dim);text-align:center}

/* office frame */
.frame{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100vh}
.side{background:var(--layout-deep);color:#D5E0EC;padding:14px 0;position:sticky;top:0;height:100vh;overflow:auto}
.brand{padding:0 16px 12px;color:#fff;font-weight:700;font-size:16px;line-height:1.25}
.side h4{margin:14px 16px 3px;font-size:12.5px;font-weight:600;color:#8FA9C4}
.side a{display:flex;justify-content:space-between;padding:7px 16px;color:inherit;text-decoration:none;border-left:4px solid transparent}
.side a:hover{background:#163A68}
.side a.on{background:#fff;color:var(--layout-deep);border-left-color:var(--mark);font-weight:600}
.side .count{background:var(--mark);color:#1b1b1b;border-radius:3px;padding:0 6px;font-size:12.5px;font-weight:700}
.side .who{padding:12px 16px;border-top:1px solid #24497A;margin-top:14px;font-size:13.5px}
.side .who button{background:none;border:0;color:#fff;text-decoration:underline;padding:0;cursor:pointer}
.main{padding:18px 22px;min-width:0}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.menu-btn{display:none}

/* dashboard counters */
.counters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:16px}
.counter{background:var(--plate);padding:10px 12px;text-decoration:none;color:inherit;display:block}
.counter b{display:block;font-size:26px;line-height:1.15}
.counter.alert b{color:var(--stop)}
.counter span{font-size:13px;color:var(--dim)}

/* plan board */
.board{overflow-x:auto;background:var(--plate);border:1px solid var(--line);-webkit-overflow-scrolling:touch}
.b-inner{position:relative;min-width:100%}
.b-head{position:relative;height:50px;border-bottom:2px solid var(--line);background:#F4F6F8}
.b-row{position:relative;height:66px;border-bottom:1px solid var(--line-soft)}
.b-name{position:sticky;left:0;z-index:4;width:112px;height:100%;background:var(--plate);border-right:2px solid var(--line);padding:9px 10px;font-weight:600;font-size:14px;line-height:1.2}
.b-name small{display:block;color:var(--dim);font-weight:400;font-size:12.5px}
.b-head .b-name{background:#F4F6F8}
.b-track{position:absolute;left:112px;top:0;bottom:0}
.b-shift{position:absolute;top:0;bottom:0;background:#EEF3F8;border-left:1px solid var(--line)}
.b-shift.alt{background:#FDF6E5}
.b-off{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,#E4E7EA 0 6px,#EFF1F3 6px 12px)}
.b-day{position:absolute;top:3px;font-weight:700;font-size:13.5px;white-space:nowrap;padding-left:5px}
.b-day span{position:sticky;left:118px}
.b-sh{position:absolute;top:26px;font-size:12px;color:var(--dim);white-space:nowrap;padding-left:5px}
.b-now{position:absolute;top:0;bottom:0;width:2px;background:var(--stop);z-index:3}
.bar{position:absolute;top:6px;bottom:6px;background:var(--layout);color:#fff;font-size:12px;line-height:1.2;padding:3px 5px;overflow:hidden;cursor:pointer;border:0;border-left:4px solid rgba(255,255,255,.45);text-align:left;white-space:nowrap;border-radius:2px}
.bar b{display:block;font-size:12.5px}
.bar.run{background:var(--go)}.bar.urgent{border-left-color:var(--mark);border-left-width:6px}.bar.wait{background:#4B6D93}.bar.qc{background:var(--wait)}.bar.done{background:#8A97A3}.bar.none{background:var(--stop)}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;margin:8px 0 0;color:var(--dim)}
.legend i{display:inline-block;width:13px;height:13px;margin-right:5px;vertical-align:-2px}

/* login */
.login{min-height:100vh;display:grid;place-items:center;padding:16px;background:var(--layout-deep)}
.login-card{background:var(--plate);padding:24px;width:100%;max-width:420px}
.login-card h1{margin-bottom:4px}
.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.pinpad button{min-height:62px;font-size:24px;font-weight:600;background:#EDF1F4;border:1px solid var(--line);border-radius:4px;cursor:pointer}
.pinpad button:active{background:var(--layout-tint)}
.pin-dots{font-size:30px;letter-spacing:10px;text-align:center;height:44px;margin-top:10px}

.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:20px;background:#16222E;color:#fff;padding:10px 16px;border-radius:4px;z-index:60;max-width:90vw}
.toast.bad{background:var(--stop)}
dialog{border:1px solid var(--line);padding:18px;max-width:560px;width:calc(100vw - 32px);border-radius:4px}
dialog::backdrop{background:rgba(12,44,82,.45)}
.slotline{font-size:13.5px;white-space:nowrap}

@media(max-width:900px){
  .frame{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;z-index:30;left:0;top:0;width:230px;transform:translateX(-100%);transition:transform .15s}
  .side.open{transform:none}
  .menu-btn{display:inline-flex}
  .main{padding:14px 16px}
  .counters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g3,.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){.g2,.g3,.g4{grid-template-columns:minmax(0,1fr)}.counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* job card print */
.jobcard{background:#fff;padding:14px;color:#000;overflow-x:auto}
.jc-head{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;border:1.5px solid #000}
.jc-head>div{border:.5px solid #000;padding:4px 7px;font-size:13px}
.jc-head b{display:block;font-size:15px}
.jc-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:6px}
.jobcard table{margin-top:8px;border:1.5px solid #000}
.jobcard th,.jobcard td{border:.5px solid #000;color:#000;padding:4px 5px;font-size:12px;white-space:normal}
.jobcard td.blank{height:44px;min-width:50px}
@media print{
  @page{size:A4 landscape;margin:9mm}
  body{background:#fff}
  .side,.head,.no-print,.toast{display:none!important}
  .frame{display:block}.main{padding:0}
  .jobcard{padding:0;overflow:visible}
}

/* document viewer */
.viewer{position:fixed;inset:0;z-index:80;background:#1E2A36;display:flex;flex-direction:column}
.v-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--layout-deep);color:#fff;padding:8px 12px}
.v-bar b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v-bar span{display:flex;gap:6px;flex:none}
.v-bar button{min-height:46px;min-width:50px;font-size:19px;background:#fff;color:var(--layout-deep);border:0;border-radius:4px;font-weight:700;padding:0 12px;cursor:pointer}
.v-body{flex:1;overflow:auto;padding:8px;-webkit-overflow-scrolling:touch}
.v-body canvas{display:block;margin:0 auto 8px;background:#fff}
.v-msg{color:#fff;text-align:center;padding:30px}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.thumb{padding:0;border:1px solid var(--line);background:#fff;cursor:pointer;text-align:left;font-size:12.5px;line-height:1.25}
.thumb img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.thumb span{display:block;padding:4px 5px}
.jc-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:6px}
.jc-photos div{border:.5px solid #000;font-size:10.5px;padding:2px;break-inside:avoid}
.jc-photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.jc-break{break-before:auto;margin-top:12px}

#rt th,#rt td{padding:5px 3px}

.dh{display:flex;gap:14px;align-items:center;border:1.5px solid #000;padding:7px 10px;margin-bottom:6px}
.dh img{max-height:58px;max-width:150px}
.dh-co{flex:1;font-size:12px;line-height:1.35}.dh-co b{font-size:17px}
.dh-doc{text-align:right;font-size:13px}.dh-doc b{font-size:15px}.dh-no{font-size:17px;font-weight:700}
.dh-foot{display:flex;justify-content:space-between;font-size:11.5px;margin:8px 0 0}
.tabs{display:flex;gap:2px;margin:-4px 0 14px;border-bottom:2px solid var(--line);overflow-x:auto}
.tabs a{padding:8px 13px;color:var(--dim);text-decoration:none;font-weight:600;white-space:nowrap;border-bottom:3px solid transparent;margin-bottom:-2px}
.tabs a.on{color:var(--layout-deep);border-bottom-color:var(--mark)}
.work{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));margin-bottom:16px}
.work .sheet{margin:0}
.task{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line-soft)}
.task:last-child{border-bottom:0}
details.more{margin-top:10px}details.more>summary{cursor:pointer;font-weight:600;color:var(--layout);padding:4px 0}
details.rec{background:var(--plate);border:1px solid var(--line);padding:12px 16px;margin-bottom:12px}details.rec>summary{cursor:pointer;font-weight:700}
@media print{.tabs{display:none!important}}
@media(max-width:520px){.work{grid-template-columns:minmax(0,1fr)}.dh{flex-wrap:wrap}.dh-doc{text-align:left}}

.clock{padding:0 16px 10px;color:#BFD1E4;font-size:13px;white-space:pre}
.health{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 16px;margin-bottom:14px;color:#fff;font-weight:600}
.health b{font-size:22px}.health.ok{background:var(--go)}.health.warn{background:var(--wait)}.health.bad{background:var(--stop)}
td.h0{background:#fff}td.h1{background:#DCE7F3}td.h2{background:#FBEBCF}td.h3{background:#F9DEDB;font-weight:700}td.hx{background:repeating-linear-gradient(135deg,#E4E7EA 0 6px,#EFF1F3 6px 12px)}
.heat th,.heat td{text-align:center;padding:4px 3px;font-size:13px;border:1px solid var(--line-soft)}.heat td:first-child,.heat th:first-child{text-align:left;white-space:nowrap;position:sticky;left:0;background:#fff}

#mp td.chk{min-width:170px;white-space:normal}#mp td.chk .tag{white-space:normal}
#mp input,#mp select{min-height:34px}

.alarm{position:fixed;right:16px;top:16px;z-index:70;background:var(--stop);color:#fff;padding:12px 16px;border-radius:4px;max-width:420px;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.alarm b{display:block;font-size:16px;margin-bottom:4px}.alarm button{background:#fff;color:var(--stop);border:0;border-radius:3px;padding:5px 12px;font-weight:700;margin-top:8px;cursor:pointer}
.cr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:12px}.cr>*{min-width:0;margin:0}.cr .sheet{margin:0;overflow-x:auto}
.iorep td,.iorep th{border:1px solid #9aa;padding:4px 6px;font-size:13px;vertical-align:middle}.iorep th{background:#e8edf2}.iorep .tot{background:#ffc000;font-weight:700}.iorep .out{background:#92d050}.iorep .rsn{background:#ffe699}.iorep input{width:100%;min-width:140px;font:inherit;padding:3px}
@media print{.iorep input{border:0}}
.bar2{height:10px;background:var(--line-soft);border-radius:2px;overflow:hidden;min-width:70px}.bar2 i{display:block;height:100%;background:var(--go)}.bar2 i.lo{background:var(--stop)}.bar2 i.mid{background:var(--wait)}

.iorep td:nth-child(2){white-space:nowrap}

.bigsel{font-size:20px;padding:14px;min-height:56px;width:100%}
.bigcam{display:block;text-align:center;font-size:22px;font-weight:700;padding:20px;margin:12px 0;border:2px dashed var(--ink,#123);border-radius:12px;background:#fff}

#mp th,#mp td{padding:6px 4px;font-size:14px}#mp select{max-width:130px;font-size:14px;padding:6px 4px}#mp select[data-f=part]{max-width:150px}#mp select[data-f=set]{max-width:78px}#mp input{font-size:14px;padding:6px 4px}#mp td:first-child{white-space:nowrap}
#mp select[data-f=fixture]{max-width:92px}#mp select[data-f=insert]{max-width:112px}#mp select[data-f=worker_id]{max-width:120px}#mp select[data-f=part]{max-width:140px}#mp td.chk{min-width:70px}
#mp select[data-f=worker_id]{max-width:140px}
#mp select[data-f=worker_id]{max-width:128px}#mp select[data-f=part]{max-width:132px}#mp select[data-f=insert]{max-width:100px}#mp select[data-f=fixture]{max-width:84px}#mp input[data-f=remark]{width:64px!important}#mp td:last-child .btn{padding:4px 6px}

html.s-small{--fs:13px}html.s-large{--fs:17px}html.s-xlarge{--fs:19px}
html.s-small h1{font-size:22px}html.s-large h1{font-size:30px}html.s-xlarge h1{font-size:32px}
html.t-green{--layout:#1E5B3A;--layout-deep:#123A25;--layout-tint:#DDEFE4}
html.t-maroon{--layout:#6B1F2A;--layout-deep:#4A1520;--layout-tint:#F3DFE2}
html.t-grey{--layout:#3D4852;--layout-deep:#2A333B;--layout-tint:#E3E7EA}
html.t-ocean{--layout:#0E5E78;--layout-deep:#083E50;--layout-tint:#DCEFF5;--steel:#EEF4F7}
html.t-indigo{--layout:#3730A3;--layout-deep:#24206E;--layout-tint:#E4E3F7;--steel:#F0F1F8}
html.t-graphite{--layout:#1F2937;--layout-deep:#111827;--layout-tint:#E5E7EB;--steel:#F3F4F6;--mark:#F59E0B}
html.t-sand{--layout:#7C5A2E;--layout-deep:#563E1F;--layout-tint:#F2E8D9;--steel:#F7F3EC}
html.t-teal{--layout:#0F766E;--layout-deep:#0A4F4A;--layout-tint:#D7F0EC;--steel:#EFF6F5}
html.t-dark{--steel:#11171D;--plate:#1A222A;--line:#34414D;--line-soft:#26303A;--ink:#E5ECF2;--dim:#9DABB7;--layout:#0B1C2E;--layout-deep:#06111C;--layout-tint:#1D3550;--go-tint:#123828;--wait-tint:#3D2B0C;--stop-tint:#46201D;--idle-tint:#2A3138}
html.t-dark input,html.t-dark select,html.t-dark textarea{background:#0F151B;color:var(--ink);border-color:var(--line)}
html.t-dark .tag.go{color:#9BE0BC}html.t-dark .tag.wait{color:#F2C47A}html.t-dark .tag.stop{color:#F4A9A3}
html.t-dark .jobcard,html.t-dark .jobcard *{background-color:#fff;color:#111}
html.t-dark dialog{background:var(--plate);color:var(--ink)}
html.t-dark a{color:#8CC4FF}
html.t-dark .btn.plain,html.t-dark details.more summary{color:#8CC4FF;border-color:var(--line)}
html.t-dark .btn.plain:hover{background:var(--layout-tint)}
html.t-dark .tabs a.on{color:var(--ink)}
html.t-dark .notice{background:var(--plate);color:var(--ink)}
html.t-dark .tag.go{background:var(--go-tint)}
html.t-dark .tag.blue{color:#9CC8F5}
html.t-dark{--stop:#E5534B;--go:#2E9E68;--wait:#C98A1A}
html.t-dark .tag{color:#C9D3DC}
html.t-dark .b-head,html.t-dark .b-head .b-name{background:#202A33}
html.t-dark .b-shift{background:#1C2833}html.t-dark .b-shift.alt{background:#2A2618}
html.t-dark .b-off{background:repeating-linear-gradient(135deg,#1A2027 0 6px,#222A32 6px 12px)}
html.t-dark .iorep th{background:#26303A}html.t-dark .iorep .tot,html.t-dark .iorep .out,html.t-dark .iorep .rsn{color:#111}
html.t-dark .heat td:first-child,html.t-dark .heat th:first-child{background:var(--plate)}
html.t-dark td.h0{background:var(--plate)}html.t-dark td.h1,html.t-dark td.h2,html.t-dark td.h3,html.t-dark .thumb{color:#111}
html.t-dark .iorep thead th:not(.out):not(.tot):not(.rsn){background:#26303A;color:var(--ink)}
html.t-dark{--go:#23875A}
html.t-dark .health a{color:#fff}
html.t-dark a.health{color:#fff}
html.t-dark .iorep thead th.out,html.t-dark .iorep thead th.tot,html.t-dark .iorep thead th.rsn{color:#111}
html.t-dark .iorep .out{background:#92d050}html.t-dark .iorep .tot{background:#ffc000}html.t-dark .iorep .rsn{background:#ffe699}
/* type-to-search picker */
.combo{position:relative;display:block}
.combo>select{width:100%}
.combo-hit{position:absolute;inset:0;cursor:pointer}
.combo-pop{position:absolute;z-index:1000;background:var(--plate);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:10px;display:flex;flex-direction:column;gap:6px;max-height:380px}
.combo-pop.full{position:fixed;inset:0;max-height:none;border-radius:0;z-index:2000;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
.combo-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.combo-q{width:100%;min-height:44px;font-size:16px;padding:8px 10px}
.combo-list{overflow:auto;flex:1;min-height:60px;border-top:1px solid var(--line)}
.combo-o{padding:10px 8px;border-bottom:1px solid var(--line-soft);cursor:pointer;line-height:1.3}
.combo-o.hi{background:rgba(30,90,160,.12)}
.combo-o.on{font-weight:700}
.combo-o.blank{color:var(--dim)}
.combo-o.off{opacity:.45;cursor:not-allowed}
.combo-o mark{background:#ffe08a;color:#111;padding:0 1px;border-radius:2px}
.combo-none{padding:14px 8px;color:var(--dim)}
.combo-add{margin-top:4px;min-height:44px;width:100%}
/* movable windows */
dialog.movable, .combo-pop.movable:not(.full){cursor:move}
dialog.movable input, dialog.movable select, dialog.movable textarea, dialog.movable button, dialog.movable a, dialog.movable label{cursor:auto}
dialog.movable button, dialog.movable a{cursor:pointer}
body.dragging{user-select:none;-webkit-user-select:none}
/* morning plan */
#mp .pcell{min-width:280px;max-width:420px}
#mp .pcell select{width:100%}
#mp .pinfo{font-size:12px;line-height:1.35;color:var(--dim);margin-top:4px;white-space:normal}
#mp .pinfo span.on{color:var(--ink);font-weight:700}
#mp .pinfo .bad{color:var(--stop)}
#mp tr.first td{border-top:2px solid var(--line)}
#mp [data-f=worker_id]{min-width:160px}
#mp [data-f=fixture],#mp [data-f=insert]{min-width:96px}
#mp [data-f=set]{min-width:96px}
#mp .pcell .combo, #mp .pcell select{width:100% !important;min-width:250px}
#mp td.chk{min-width:170px;white-space:normal}
#mp [data-f=cam]{width:66px!important}#mp [data-f=setting]{width:56px!important}
#mp .psel{display:flex;gap:4px;align-items:center}
#mp .psel .combo{flex:1}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.kpi{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--plate)}
.kpi b{display:block;font-size:22px;line-height:1.2}
.kpi b.bad{color:var(--stop)}
.kpi span{font-size:12px;color:var(--dim)}
.v-text{white-space:pre;font:13px/1.45 ui-monospace,Consolas,monospace;background:#fff;color:#111;padding:12px;margin:0;overflow:auto}
/* admin edits the screen */
html.editing .ren{outline:1px dashed var(--line);outline-offset:2px;cursor:text}
html.editing .ren:hover{outline:2px solid #e0a800;background:rgba(255,224,138,.25)}
th{position:relative}
.rz{position:absolute;top:0;right:-3px;width:8px;height:100%;cursor:col-resize;z-index:2}
html.editing .rz{background:linear-gradient(90deg,transparent 3px,#e0a800 3px,#e0a800 5px,transparent 5px)}
.editbar{position:fixed;left:50%;transform:translateX(-50%);bottom:12px;z-index:3000;background:#1b2a3a;color:#fff;border-radius:10px;padding:10px 14px;display:flex;gap:12px;align-items:center;box-shadow:0 8px 24px rgba(0,0,0,.3);max-width:calc(100vw - 24px);flex-wrap:wrap;font-size:13px}
.cx-add{margin:0 6px 6px 0}
td.cx{min-width:90px;background:rgba(255,224,138,.12);outline:none}
td.cx:focus{box-shadow:inset 0 0 0 2px #e0a800}
html.r-compact td,html.r-compact th{padding-top:3px!important;padding-bottom:3px!important}
html.r-roomy td,html.r-roomy th{padding-top:14px!important;padding-bottom:14px!important}
html.w-medium #view{max-width:1280px;margin-left:auto;margin-right:auto}
.instbtn{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom));z-index:4000;display:flex;gap:8px;align-items:center;background:#fff;color:#0d2b52;border-radius:14px;padding:8px;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:calc(100vw - 24px)}
.instbtn .go{background:#1b6b3a;color:#fff;border:0;border-radius:10px;padding:14px 18px;font-size:17px;font-weight:700}
.instbtn .x{background:none;border:0;font-size:20px;padding:8px 10px;color:#0d2b52}
.instbtn span{padding:6px 8px;font-size:15px}
.tbo{color:inherit;border:1px solid rgba(255,255,255,.5);border-radius:8px;padding:8px 10px;margin-right:6px;text-decoration:none;font-weight:600}
.practag{margin-top:6px;background:#e0a800;color:#1b1b1b;font-size:11.5px;font-weight:700;border-radius:6px;padding:4px 8px;letter-spacing:.02em}

/* grid lines on every table (Screen settings > Table lines: all / rows only) */
html:not(.g-rows) .tbl-wrap>table{border:1px solid var(--line)}
html:not(.g-rows) .tbl-wrap>table th,html:not(.g-rows) .tbl-wrap>table td{border:1px solid var(--line)}
html:not(.g-rows) .tbl-wrap>table th{background:var(--steel,#F1F4F7)}
table.cw th,table.cw td{overflow:hidden;text-overflow:ellipsis}
