/* DKLPO Maintenance — © 2026 Ennedey Studio — responsive, offline-safe shell. */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color-scheme:light;--navy:#0b1f35;--navy2:#163858;--ink:#14263c;--muted:#6a7a8b;--bg:#f2f5f9;--line:#dbe3ec;--white:#fff;--accent:#117c9a;--good:#077b59;--bad:#b13240;--warn:#ac6919;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.site-top{position:sticky;top:0;z-index:20;background:var(--navy);color:white;box-shadow:0 2px 14px #112e4f20}.site-top .inner{max-width:1440px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 22px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{width:54px;height:54px;border-radius:14px;flex-shrink:0}.brand b{display:block;font-size:17px;letter-spacing:.1px}.brand small{display:block;color:#c3d1e3;font-size:12px}.top-right{display:flex;gap:12px;align-items:center}.connection{font-size:12px;background:#255173;border:1px solid #47708b;padding:5px 9px;border-radius:999px}.connection.offline{background:#794922;border-color:#b68347}.ghost{background:transparent;border:1px solid #cad6e2;color:inherit;border-radius:9px;padding:9px 12px}.top-right .ghost{border-color:#6c849b;color:white}.pill{border-radius:999px;background:#dceaf0;color:#245067;padding:3px 10px;font-size:12px;font-weight:650}.banner{padding:9px 20px;background:#fff1d9;color:#7c4e0a;border-bottom:1px solid #edcd8e;font-size:13px;text-align:center}.page{max-width:1440px;margin:0 auto;padding:24px 20px;min-height:calc(100dvh - 156px)}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px}.sidebar{background:var(--navy);color:white;border-radius:var(--radius);padding:16px 12px;align-self:start;position:sticky;top:96px}.sidebar p{color:#8faec7;font-size:11px;letter-spacing:1.2px;padding:5px 12px;margin:0 0 10px;text-transform:uppercase}.navbtn{display:flex;width:100%;align-items:center;gap:10px;padding:12px 14px;text-align:left;border:none;background:transparent;color:#cad5e1;border-radius:10px;margin:3px 0;font-weight:550}.navbtn:hover,.navbtn.active{color:white;background:#1b4464;text-decoration:none}.navbtn i{font-style:normal;font-size:18px}.content{min-width:0}.content-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 20px;flex-wrap:wrap}.content-title h1,.content-title h2{font-size:clamp(20px,2vw,27px);margin:0;letter-spacing:-.5px}.content-title p{margin:4px 0;color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 5px 22px #14263c07;margin-bottom:18px}.card h2,.card h3{margin:0 0 12px;font-size:18px}.card p{margin:5px 0 13px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{padding:20px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 12px #14263c08}.metric strong{display:block;font-size:31px;color:#143b5b}.metric span{font-size:13px;color:var(--muted)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.field label{font-weight:650;font-size:13px}.field input,.field select,.field textarea{background:white;color:var(--ink);border:1px solid #c5d3e2;border-radius:10px;padding:11px 12px;min-height:44px;width:100%;outline-offset:2px}.field textarea{min-height:100px;resize:vertical}.field .hint{font-size:12px;color:var(--muted)}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #74baca;border-color:#168eac}.btn{border:none;border-radius:10px;padding:11px 15px;color:white;background:var(--navy2);font-weight:700;min-height:44px}.btn:hover{filter:brightness(1.13)}.btn.alt{background:#e6eef5;color:#163955}.btn.good{background:var(--good)}.btn.warn{background:#91580c}.btn.danger{background:var(--bad)}.btn.outline{border:1px solid #bac8d8;background:transparent;color:var(--ink)}.btn.small{font-size:13px;min-height:34px;padding:7px 10px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.muted{color:var(--muted)}.small{font-size:13px}.muted-box{background:#eef4f8;padding:13px;border-radius:11px;border:1px solid #dce7ef}.notice{background:#fff4d6;border:1px solid #efd39a;color:#785113;padding:13px;border-radius:11px;margin:12px 0}.error{background:#ffedef;color:#9c1d2e;border:1px solid #f3c0c8;padding:11px;border-radius:11px}.success{background:#e6f6ef;color:#066345;border:1px solid #c5e8d7;padding:11px;border-radius:11px}.list{display:grid;gap:10px}.item{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.item strong{display:block}.item .sub{font-size:13px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.item .actions{justify-content:end}.tag{font-size:11px;letter-spacing:.3px;border-radius:6px;padding:3px 7px;background:#e6edf4;color:#28445f;font-weight:750}.tag.NEW,.tag.ASSIGNED,.tag.SUBMITTED{background:#fff1d6;color:#805410}.tag.VERIFIED_CLOSED,.tag.APPROVED,.tag.REVIEWED{background:#d8f3e7;color:#0d6b4c}.tag.REJECTED,.tag.REWORK,.tag.BREAKDOWN{background:#ffdee4;color:#a52b37}.empty{padding:26px;text-align:center;color:var(--muted);border:1px dashed #bfccd9;border-radius:12px}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:540px;font-size:13px}th{text-align:left;background:#eef3f7;color:#304a60}th,td{padding:11px 12px;border-bottom:1px solid #e7edf4}tr:last-child td{border:0}.brand-foot{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;text-align:center;font-size:12px;color:#8795a5;padding:14px 20px 24px}.brand-foot img{width:23px;height:23px;border-radius:5px}.landing{max-width:950px;margin:7vh auto 0}.hero{display:flex;gap:30px;align-items:center;justify-content:space-between}.hero h1{font-size:clamp(27px,3.5vw,44px);letter-spacing:-1px;line-height:1.15}.hero p{color:var(--muted);font-size:16px}.hero img{max-width:200px;width:28vw;border-radius:36px}.option{display:flex;align-items:center;gap:16px;border:1px solid var(--line);padding:22px;background:#fff;border-radius:16px;text-decoration:none}.option:hover{border-color:#328caa;box-shadow:0 8px 26px #153c5722;text-decoration:none}.option i{font-style:normal;font-size:33px}.option h3{margin:0 0 5px}.option p{margin:0;color:var(--muted);font-size:13px}.login-card{max-width:440px;margin:6vh auto}.mobile-tabs{display:none}.status-dot{width:8px;height:8px;display:inline-block;background:#3cd4a5;border-radius:50%;margin-right:5px}.status-dot.offline{background:#ffc35f}.checkrow{display:flex;align-items:center;gap:10px;padding:8px 0}.checkrow input{width:18px;height:18px;flex-shrink:0}.logo-en{width:28px;height:28px;object-fit:contain;display:none}.logo-fallback{font-weight:700;color:#577891;letter-spacing:.8px}.dialog-backdrop{position:fixed;inset:0;background:#061725bf;display:flex;align-items:center;justify-content:center;z-index:100;padding:14px}.dialog{width:min(640px,100%);max-height:90dvh;overflow:auto;background:white;padding:22px;border-radius:18px;box-shadow:0 30px 90px #0005}.dialog .title-row{display:flex;justify-content:space-between;gap:15px;align-items:center}.dialog h2{margin:0 0 15px;font-size:21px}.truncate{overflow-wrap:anywhere}.loading{opacity:.6;pointer-events:none}.toast-area{position:fixed;right:20px;bottom:20px;z-index:200;display:grid;gap:8px;max-width:400px}.toast{padding:12px 14px;background:#173850;color:#fff;border-radius:11px;box-shadow:0 8px 26px #0003}.toast.error-toast{background:#9c2e3c}.kbd{font-family:ui-monospace,Consolas,monospace;background:#eaf0f7;color:#1d4967;padding:2px 5px;border-radius:4px;font-size:12px}.photo-note{font-size:12px;color:var(--muted)}.warn-ribbon{border-left:4px solid #ba7a17;padding:12px;background:#fff7e9;font-size:13px}
@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){.site-top .inner{padding:10px 14px}.brand img{width:42px;height:42px;border-radius:11px}.brand b{font-size:15px}.brand small{font-size:10px}.top-right .user-name{display:none}.page{padding:14px 12px 92px}.layout{display:block}.sidebar{display:none}.mobile-tabs{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:45;overflow-x:auto;background:#0d2740;border-top:1px solid #365876;gap:3px;padding:7px 8px max(8px,env(safe-area-inset-bottom))}.mobile-tabs .navbtn{min-width:82px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:1px;padding:6px 5px;font-size:11px;text-align:center}.mobile-tabs .navbtn i{font-size:18px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:14px}.metric strong{font-size:26px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.card{padding:16px;margin-bottom:12px}.item{display:block}.item .actions{margin-top:11px;justify-content:start}.item .actions .btn{flex:1}.landing{margin:4vh auto}.hero{display:block;text-align:center}.hero img{width:115px;margin:15px auto}.option{padding:16px}.login-card{margin:3vh auto}.toast-area{left:12px;right:12px;bottom:85px;max-width:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.sidebar-divider{margin-top:20px!important}.sidebar-user-role{padding:0 12px;color:#b8cbdc!important}.scroll-checklist{max-height:160px;overflow:auto}

.landing-options{margin-top:30px}

/* DKLPO Maintenance — accessible corporate UI refinements (frontend only) */
:root{--surface:#fff;--surface-soft:#f6f9fc;--surface-raised:#fff;--stroke:#dbe3ec;--accent-strong:#147594;--focus:#62b5d0;--shadow-card:0 9px 28px rgba(18,43,65,.055);font-variant-numeric:tabular-nums}
html{scroll-behavior:smooth}
body{font-variant-numeric:tabular-nums}
:where(.card,.metric,.option,.item,.dialog){transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
:where(.btn,.navbtn,.ui-theme){transition:background .16s ease,transform .16s ease,filter .16s ease}
:where(.btn,.option,.ui-theme):active{transform:scale(.985)}
:focus-visible{outline:3px solid var(--focus)!important;outline-offset:2px}
.ui-icon{width:20px;height:20px;flex:0 0 20px;vertical-align:middle;stroke:currentColor}
.option .ui-icon{width:30px;height:30px;flex-basis:30px;stroke-width:1.6}
.navbtn .ui-icon{width:20px;height:20px}
.navbtn.active{box-shadow:inset 3px 0 0 #5cc4db}
.ui-controls{display:flex;align-items:center;gap:6px}
.ui-controls select,.ui-theme{height:36px;min-width:43px;border:1px solid rgba(217,230,241,.38);border-radius:9px;background:rgba(255,255,255,.11);color:#fff;padding:5px 8px;font-size:12px;font-weight:700}
.ui-controls select option{color:#172e45;background:#fff}
.ui-theme{width:36px;font-size:19px;line-height:1}
.top-right{flex-wrap:wrap;justify-content:flex-end;gap:8px}
.landing .hero{border-radius:24px;padding:30px 36px;background:linear-gradient(115deg,#e8f3fa 0%,#f5faff 54%,#e4f2f2 100%);border:1px solid #d4e8f1;min-height:266px}
.hero .pill{display:inline-flex;margin:0 0 12px;background:#d7eaf4;color:#174764}
.hero h1{max-width:650px;font-weight:790;color:#13344d}
.hero p{max-width:600px}
.option{box-shadow:var(--shadow-card);min-height:124px}
.option .option-icon{display:grid;place-items:center;width:54px;height:54px;background:#e6f2f7;border-radius:14px;color:#16617e;flex:0 0 54px}
.option h3{font-size:17px;letter-spacing:-.3px}
.metric{position:relative;overflow:hidden;border-top:3px solid #1d779d;box-shadow:var(--shadow-card)}
.metric:nth-child(2){border-top-color:#5b7dc2}.metric:nth-child(3){border-top-color:#2b9681}.metric:nth-child(4){border-top-color:#b48d4c}
.metric strong{font-variant-numeric:tabular-nums;font-size:clamp(25px,3vw,34px);letter-spacing:-1px}
.card,.item{background:var(--surface);box-shadow:var(--shadow-card)}
.item{border-color:var(--stroke);align-items:center}
.item strong,.item .record-ref{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.4px;font-size:13px;color:#126080;overflow-wrap:anywhere}
.item .item-title{font-size:15px;font-weight:750;color:var(--ink);margin-top:4px}
.item .sub{line-height:1.5}
.table-scroll{max-height:65vh;scrollbar-gutter:stable}
table{font-variant-numeric:tabular-nums}
.table-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--line)}
tbody tr:nth-child(even){background:rgba(28,89,131,.035)}
tbody tr:hover{background:rgba(29,127,171,.07)}
.tag{display:inline-flex;align-items:center;min-height:22px;white-space:normal;border-radius:999px;letter-spacing:.05px;padding:3px 9px;background:#e9eff6;color:#36536b}
.tag.NEW,.tag.OPEN,.tag.ASSIGNED,.tag.ACKNOWLEDGED{background:#e7f0fc;color:#235e9c}
.tag.IN_PROGRESS{background:#e0f0ff;color:#13659c}
.tag.KIV,.tag.KIV_PARTS,.tag.KIV_VENDOR,.tag.KIV_OTHER{background:#f5eafc;color:#7952a0}
.tag.SUBMITTED,.tag.PENDING,.tag.PENDING_PIC,.tag.REQUEST_INFO{background:#fff0cf;color:#936207}
.tag.ACTIVE,.tag.APPROVED,.tag.VERIFIED_CLOSED,.tag.CLOSED,.tag.REVIEWED,.tag.COMPLETED{background:#daf3e6;color:#0f7651}
.tag.DISABLED,.tag.INACTIVE,.tag.REJECTED,.tag.REWORK,.tag.BREAKDOWN,.tag.FAILED{background:#ffeaeb;color:#aa3143}
.tag.DRAFT,.tag.RETURNED{background:#e9edf2;color:#506070}
.dialog-backdrop{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);background:rgba(7,22,37,.63)}
.dialog{background:var(--surface-raised);border:1px solid var(--stroke);animation:dialog-arrive .2s ease-out;box-shadow:0 28px 96px rgba(2,15,29,.26)}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(9px) scale(.988)}to{opacity:1;transform:translateY(0) scale(1)}}
.loading{opacity:1;pointer-events:auto}
button.is-loading{position:relative;padding-right:38px!important;pointer-events:none}
button.is-loading:after{content:'';width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;position:absolute;right:12px;top:50%;margin-top:-8px;animation:ui-spin .7s linear infinite}
@keyframes ui-spin{to{transform:rotate(360deg)}}
.list-toolbar{display:flex;align-items:center;gap:9px;margin:10px 0}
.list-toolbar input,.list-toolbar select,.machine-lookup,.station-lookup{width:100%;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--surface);color:var(--ink)}
.list-toolbar input{flex:1 1 auto}.list-toolbar select{width:min(190px,42%)}
.machine-lookup,.station-lookup{margin:0 0 7px}
.part-rows{display:grid;gap:9px;margin:12px 0}
.part-row{display:grid;grid-template-columns:minmax(130px,2fr) minmax(85px,1fr) minmax(75px,1fr) auto;gap:7px;align-items:center}
.part-row input{min-height:42px;min-width:0;width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:8px}
.photo-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:9px;margin:11px 0}
.photo-preview{min-width:0;background:var(--surface-soft);border:1px solid var(--stroke);border-radius:10px;padding:7px}
.photo-preview img{width:100%;height:95px;object-fit:cover;border-radius:7px;display:block}
.photo-preview span{display:block;font-size:11px;overflow-wrap:anywhere;margin-top:5px;color:var(--muted)}
[hidden]{display:none!important}
html[data-theme=dark]{color-scheme:dark;--navy:#081a2a;--navy2:#215374;--ink:#e5eef8;--muted:#a3b4c6;--bg:#0c1928;--line:#30455b;--stroke:#30465e;--surface:#152638;--surface-raised:#172b40;--surface-soft:#1a3147;--white:#152638;--accent:#5bc4df;--focus:#75d2ee;--shadow-card:0 8px 22px rgba(0,0,0,.12)}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.card,.metric,.item,.option,.dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.metric strong,.item .item-title,.item strong,.item .record-ref){color:#b1e4fb}
html[data-theme=dark] :is(.field input,.field select,.field textarea,.machine-lookup,.station-lookup,.list-toolbar input,.list-toolbar select){background:#20364b;color:var(--ink);border-color:#446078}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a4bbd0}
html[data-theme=dark] :is(th,.muted-box,.kbd){background:#20384e;color:#d6e6f2;border-color:#334f67}
html[data-theme=dark] .notice{background:#4a3c24;color:#ffdda0;border-color:#7e6438}
html[data-theme=dark] .success{background:#173d32;color:#92e4be;border-color:#2c735b}
html[data-theme=dark] .error{background:#4f2a34;color:#ffd0d6;border-color:#8a4959}
html[data-theme=dark] .btn.alt{background:#294a65;color:#e9f5fd}
html[data-theme=dark] .btn.outline{color:#e8f2fa;border-color:#5d758d}
html[data-theme=dark] .pill{background:#22495c;color:#d3f0f9}
html[data-theme=dark] .hero{background:linear-gradient(115deg,#18334b 0%,#14273b 55%,#184047 100%);border-color:#305369}
html[data-theme=dark] .hero h1{color:#e7f5ff}
html[data-theme=dark] .option .option-icon{background:#264e65;color:#bcf0ff}
html[data-theme=dark] tbody tr:nth-child(even){background:rgba(154,208,243,.035)}
html[data-theme=dark] tbody tr:hover{background:rgba(154,208,243,.08)}
html[data-theme=dark] .tag.NEW,html[data-theme=dark] .tag.IN_PROGRESS{background:#1d4664;color:#9ad9ff}
html[data-theme=dark] .tag.KIV{background:#493660;color:#e5c1ff}
html[data-theme=dark] .tag.ACTIVE,html[data-theme=dark] .tag.VERIFIED_CLOSED{background:#194a3a;color:#a0f4c8}
html[data-theme=dark] :is(.tag.SUBMITTED,.tag.PENDING,.tag.PENDING_PIC,.tag.REQUEST_INFO){background:#574321;color:#ffe0a1}
html[data-theme=dark] :is(.tag.REWORK,.tag.REJECTED,.tag.DISABLED,.tag.INACTIVE,.tag.BREAKDOWN,.tag.FAILED){background:#562e3a;color:#ffb3c0}
@media(max-width:760px){.site-top .inner{align-items:flex-start;gap:7px}.top-right{flex-wrap:wrap;row-gap:6px;max-width:66%;justify-content:flex-end}.ui-controls{order:0}.top-right .ghost{padding:7px 8px;min-height:34px;font-size:11px}.connection{font-size:11px}.landing .hero{padding:22px 17px;border-radius:18px}.hero h1{font-size:clamp(24px,6vw,36px)}.list-toolbar{flex-direction:column;align-items:stretch}.list-toolbar select{width:100%}.part-row{grid-template-columns:minmax(0,1fr) 78px 72px auto;gap:5px}.part-row input{padding:6px;font-size:12px}.ui-theme{height:32px;min-width:34px}.ui-controls select{height:32px}.option .option-icon{width:44px;height:44px;flex-basis:44px}}
@media(max-width:390px){.site-top .inner{flex-wrap:wrap}.top-right{max-width:none;width:100%;justify-content:space-between}.brand img{width:38px;height:38px}.brand b{font-size:14px}.brand small{font-size:10px}.top-right .ghost{flex:0 1 auto}}
@media(prefers-reduced-motion:reduce){.dialog{animation:none!important}.btn,.metric,.option,.item{transition:none!important}button.is-loading:after{animation:none!important}}
.asset-list-scroll{max-height:620px;overflow:auto;padding-right:4px;scrollbar-gutter:stable}
@media(max-width:460px){.part-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.part-row input[name=partName]{grid-column:1/-1}.part-row button{justify-self:start}}
.ui-theme{display:inline-grid;place-items:center}.ui-theme .ui-icon{width:18px;height:18px;flex-basis:18px}
