.nav-count{float:right;background:var(--red);color:#fff;border-radius:999px;padding:0 7px}.issue-row,.notification{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px;border-bottom:1px solid var(--line)}.issue-row form,.notification form{display:flex;gap:8px}.notification.unread{border-left:4px solid var(--gold)}.notification.read{opacity:.72}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-grid .panel{margin:0}.admin-grid .wide{grid-column:1/-1}@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.admin-grid .wide{grid-column:auto}.issue-row,.notification{align-items:stretch;flex-direction:column}}
.nav-group{display:grid;gap:4px;margin:4px 0 10px}.nav-label{color:#91acbd;padding:8px 12px 3px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.auth-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin:18px 0}.auth-wide{width:min(760px,100%)}.auth-form{text-align:left;margin:24px 0}.activation-code{font:800 22px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;background:var(--sky);padding:16px;border-radius:10px;color:var(--navy);margin:18px 0}.permission-matrix{display:grid;gap:12px}.permission-group{border:1px solid var(--line);border-radius:10px;padding:14px}.permission-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.registration-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.registration-meta div{background:var(--bg);padding:10px;border-radius:8px}.status-pending_approval,.status-approved_pending_code{background:#fff1ce;color:#765600}.status-active{background:#e4f3eb;color:#185f3d}.status-rejected,.status-disabled{background:#f8dfe1;color:#852530}.access-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,2fr);gap:18px}@media(max-width:900px){.access-layout{grid-template-columns:1fr}.auth-form{grid-template-columns:1fr}.auth-form .wide{grid-column:auto}}
/* v1.2.1 visual refresh — reference-driven dark laboratory UI */
:root{--app-bg:#071525;--app-surface:#0e1f33;--app-surface2:#13263c;--app-line:#244563;--app-blue:#4eb2f2;--app-text:#eef6ff;--app-muted:#91abc2}
body{background:radial-gradient(circle at 85% 5%,#0d2d4a 0,transparent 28%),linear-gradient(180deg,#071423,#0a1b2d);color:var(--app-text)}
.top{background:rgba(7,21,37,.92);border-bottom:1px solid rgba(110,185,235,.15);box-shadow:0 12px 34px rgba(0,0,0,.16)}.brand,.page-head h1,h1,h2,h3{color:#f2f8ff}.brand small,.user small{color:#86a3bb}.brand-mark{background:linear-gradient(145deg,#178bd0,#53b8f2);box-shadow:0 10px 28px rgba(34,158,224,.25)}.sidebar{background:linear-gradient(180deg,#071626,#0b1e31);border-right:1px solid rgba(92,167,218,.13)}.content{max-width:none}.page-head{padding:0 4px}.eyebrow,.kicker{color:#61bdf6}.panel,.hero{background:linear-gradient(145deg,rgba(17,36,57,.96),rgba(12,29,47,.96));border-color:#24435e;box-shadow:0 18px 55px rgba(0,0,0,.18)}.hero p,p,.panel small{color:var(--app-muted)}input,select,textarea{background:#091a2c!important;color:#eef6ff!important;border-color:#284b68!important}input::placeholder,textarea::placeholder{color:#6f879c}.button,button{border-color:#315a78;background:#102941;color:#eaf5ff}.primary,.monitor-save{background:linear-gradient(90deg,#188bc7,#2d9fd8)!important;color:white!important;border:0}.table-wrap{border-color:#284760}table{background:#0c1d30}th{background:#122a42;color:#b9d8ee}td{border-color:#1d3850;color:#e7f1f9}.badge{background:#18344e;color:#d7efff}
.monitor-shell{max-width:1300px;margin:0 auto 24px}.monitor-government-head{display:grid;grid-template-columns:90px 1fr 90px;align-items:center;gap:20px;background:linear-gradient(145deg,#0b2035,#102a44);border:1px solid #285273;border-radius:28px 28px 0 0;padding:26px 38px 18px;box-shadow:0 24px 70px rgba(0,0,0,.2)}.gov-emblem,.simolab-emblem{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.06em}.gov-emblem{background:linear-gradient(145deg,#f2d75b,#56a86e);color:#0a2740}.simolab-emblem{background:linear-gradient(145deg,#27a7e8,#52d2bb);color:#052139;font-size:22px}.gov-copy{text-align:center;display:grid;gap:4px;color:#b9d2e6;font-size:17px;font-weight:800;letter-spacing:.02em}.gov-copy strong{color:#f4f8fc;font-size:18px}.monitor-titlebar{text-align:center;background:#091b2d;border:1px solid #285273;border-top:0;padding:15px 20px 20px;border-radius:0 0 28px 28px}.monitor-titlebar small{color:#4eb2f2;font-weight:900;letter-spacing:.14em}.monitor-titlebar h2{font-size:38px;margin:2px 0 0}.monitor-form-card{margin-top:22px;background:linear-gradient(145deg,#12243a,#102136);border:1px solid #294760;border-radius:28px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.18)}.form-status{display:inline-flex;padding:9px 16px;border-radius:999px;border:1px solid #3479aa;background:#173b59;color:#68bdf2;font-size:12px;font-weight:900;letter-spacing:.1em}.monitor-form-card h3{font-size:21px;margin:16px 0}.monitor-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.monitor-form>label>span,.measure-control>span{display:block;font-weight:800;margin:0 0 8px}.context-box{min-height:74px;border:1px solid #28506e;border-radius:18px;background:#0a1d30;padding:12px 16px;display:grid;align-content:center}.context-box small{font-size:11px;font-weight:900;letter-spacing:.1em;color:#8bb6d3}.context-box strong{font-size:16px;margin-top:2px}.context-box select{border:0!important;padding:0!important;min-height:auto!important;font-weight:800;background:transparent!important}.monitor-form input[type=date],.monitor-form input[type=time]{width:100%;min-height:54px;border-radius:15px;padding:0 16px}.measure-box{display:grid;grid-template-columns:1fr 92px;border:1px solid #28506e;border-radius:18px;overflow:hidden;background:#091a2c}.measure-box input{border:0!important;border-radius:0!important;min-height:56px;font-size:18px}.measure-box b{display:grid;place-items:center;background:linear-gradient(180deg,#143b5b,#102e49);border-left:1px solid #28506e}.range{width:100%;height:6px!important;min-height:0!important;padding:0!important;margin:12px 0 4px;accent-color:#56b8f4}.measure-control small{display:block}.signature-block{grid-column:1/-1}.signature-head{display:flex;justify-content:space-between;align-items:center;margin:5px 0 10px}.clear-signature{border:0;background:#173b59;color:#68bdf2;border-radius:999px;padding:8px 15px}.signature-block canvas{display:block;width:100%;height:180px;background:#dce6f1;border-radius:20px;border:1px solid #6c8296;touch-action:none}.signature-block>small{display:block;margin-top:7px}.monitor-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid #24445e;padding-top:18px}.monitor-actions a,.monitor-actions button{height:54px;border-radius:17px;display:grid;place-items:center;font-weight:850}.monitor-cancel{border:1px solid #315a78;color:#eef6ff}.monitor-save{font-size:15px}.history-panel{max-width:1300px;margin-left:auto;margin-right:auto}
@media(max-width:800px){.monitor-government-head{grid-template-columns:52px 1fr 52px;padding:18px 14px}.gov-emblem,.simolab-emblem{width:48px;height:48px;border-radius:14px;font-size:9px}.simolab-emblem{font-size:16px}.gov-copy{font-size:11px}.gov-copy strong{font-size:12px}.monitor-titlebar h2{font-size:27px}.monitor-form{grid-template-columns:1fr}.signature-block,.monitor-actions{grid-column:auto}.monitor-form-card{padding:16px;border-radius:20px}.monitor-actions{grid-template-columns:1fr}.signature-block canvas{height:150px}}
/* v1.3.0 employee portal, one-time intern biodata, laboratory QR management */
.profile-onboarding{max-width:980px;margin:0 auto 40px}.profile-onboarding-card{background:linear-gradient(145deg,#0e2238,#102b45);border:1px solid #2a5271;border-radius:28px;padding:28px;box-shadow:0 28px 80px rgba(0,0,0,.24)}.profile-onboarding-card h2{font-size:30px;margin:4px 0 8px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.profile-grid label{display:grid;gap:8px;font-weight:800;color:#dcecf8}.profile-grid .span-2{grid-column:1/-1}.onboarding-note{background:#0a1b2d;border:1px solid #294b66;border-radius:16px;padding:14px;color:#9cb8ce}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.portal-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(135deg,#102a45,#0d2137);border:1px solid #2a4e6c;border-radius:26px;padding:26px;margin-bottom:20px}.portal-hero.compact{align-items:flex-start}.portal-hero h2{font-size:30px;margin:4px 0 6px}.portal-code{min-width:240px;padding:16px 18px;border-radius:18px;background:#081a2c;border:1px solid #2d5370;display:grid;gap:4px}.portal-code small{color:#70bfee;font-weight:900;letter-spacing:.12em}.portal-code strong{color:#f4f9ff}.portal-code span{color:#8eacc3}.portal-cards,.qr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}.portal-card,.qr-card{background:linear-gradient(145deg,#10243a,#0c1f33);border:1px solid #294c68;border-radius:22px;padding:20px}.portal-card{display:grid;gap:7px;text-decoration:none;min-height:120px;align-content:center;transition:.18s ease}.portal-card:hover{transform:translateY(-2px);border-color:#4aa8df}.portal-card b{font-size:18px;color:#f2f8ff}.portal-card span{color:#8faec5}.qr-card h4{font-size:18px;margin:8px 0 4px;color:#f3f9ff}.qr-card p{margin:0 0 10px}.qr-card code{display:block;background:#071827;border:1px solid #294a65;border-radius:12px;padding:10px;color:#79c6f4;margin-bottom:14px;overflow-wrap:anywhere}.qr-type{display:inline-flex;border-radius:999px;background:#173c5b;color:#73c5f5;padding:6px 10px;font-size:11px;font-weight:900;letter-spacing:.1em}.qr-card .form-actions a,.qr-card .form-actions button{text-decoration:none;padding:10px 13px;border-radius:12px}.panel .qr-grid{margin-top:14px}@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-grid .span-2{grid-column:auto}.portal-hero{align-items:stretch;flex-direction:column}.portal-code{min-width:0;width:100%}}

.demo-access{margin-top:16px;background:#081a2c;border:1px solid #284b68;border-radius:16px;padding:12px}.demo-access summary{cursor:pointer;font-weight:850;color:#dff2ff}.demo-access p{font-size:12px}.demo-code-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.demo-code-grid div{display:flex;justify-content:space-between;gap:8px;background:#0d2439;padding:8px 10px;border-radius:10px}.demo-code-grid span{font-size:12px;color:#aac4d8}.demo-code-grid code{color:#68c0f3;font-weight:900}@media(max-width:560px){.demo-code-grid{grid-template-columns:1fr}}

/* v1.3.2 official temperature record preview */
.record-shortcut{display:flex;justify-content:flex-end;margin:12px 0 0}.official-record-shell{max-width:1480px;margin:0 auto}.record-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto auto auto;gap:12px;align-items:end}.record-filter label{display:grid;gap:7px;font-weight:800}.record-check{display:flex!important;align-items:center;gap:8px;padding-bottom:12px}.record-check input{width:auto!important}.record-preview-wrap{padding:24px;border-radius:24px;background:#dbe4eb;margin-top:18px;overflow:auto}.record-paper{width:794px;min-height:1123px;margin:auto;background:#fff;color:#111;padding:42px 48px;box-shadow:0 12px 40px rgba(0,0,0,.18)}.record-letterhead{display:grid;grid-template-columns:92px 1fr;align-items:center;text-align:center;font-family:Arial,sans-serif}.record-letterhead img{width:78px;height:78px;object-fit:contain}.record-letterhead div{display:grid;gap:2px;font-size:12px}.record-letterhead strong{font-size:13px}.record-letterhead small{color:#111;font-size:9px}.double-rule{border-top:2px solid #111;border-bottom:1px solid #111;height:4px;margin:11px 0 12px}.record-title-grid{display:grid;grid-template-columns:62% 38%;border:1px solid #111}.record-doc-title{display:grid;place-items:center;text-align:center;font-weight:800;min-height:70px;border-right:1px solid #111}.record-title-grid>div:last-child{display:grid;grid-template-columns:110px 1fr;font-size:10px}.record-title-grid>div:last-child>*{padding:9px;border-bottom:1px solid #111}.record-title-grid>div:last-child>*:nth-last-child(-n+2){border-bottom:0}.record-meta{display:grid;grid-template-columns:48px 14px 1fr;gap:3px;font-size:10px;padding:13px 8px}.official-table{width:100%;border-collapse:collapse;background:#fff!important;color:#111!important;font-family:Arial,sans-serif}.official-table th,.official-table td{border:1px solid #111!important;background:#fff!important;color:#111!important;text-align:center;padding:0;font-size:9px}.official-table th{height:38px}.official-table td{height:38px}.official-table .two-line{line-height:18px}.official-table .two-line hr{border:0;border-top:1px solid #111;margin:0}.sig-preview{max-width:68px;max-height:34px;object-fit:contain}.record-notes{display:grid;gap:3px;font-size:9px;margin-top:14px}.record-notes span{padding-left:8px}.validator-signature{margin:10px 0}.validator-signature>div{display:flex;justify-content:space-between;align-items:center}.validator-signature canvas{width:100%;height:120px;background:#fff;border:1px solid #789;border-radius:12px;touch-action:none}.validator-signature button{padding:6px 10px}
@media(max-width:1000px){.record-filter{grid-template-columns:1fr 1fr}.record-filter .button,.record-filter button{width:100%}.record-paper{transform-origin:top left}.record-preview-wrap{padding:10px}}
/* v1.3.6 contrast + focused monitoring delivery */
.empty{background:#10243a!important;border:1px solid #315a78!important;color:#eef6ff!important;box-shadow:0 18px 55px rgba(0,0,0,.18)}
.empty h2{color:#ffffff!important}.empty p{color:#b8cfe1!important}.empty a{color:#70c7ff!important;font-weight:800}
.panel,.hero,.portal-card,.qr-card{color:#eef6ff}.panel p,.panel label,.hero p,.portal-card span,.qr-card p{color:#b4cadd!important}
.panel h2,.panel h3,.panel h4,.hero h2,.portal-card b,.qr-card h4{color:#f7fbff!important}
.muted,.helper{color:#a9c1d4!important}.sidebar-version{color:#9bbbd2!important}
.focus-stats article{min-height:112px}.focus-stats article span:last-child{color:#a9c1d4!important}

/* v1.3.14 — compact intern biodata list; scalable for many interns */
.intern-monitoring .section-title{align-items:center}.intern-count{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:8px 12px;border-radius:999px;background:#102a42;border:1px solid #31546f;color:#dcecf8;font-weight:800;font-size:12px}.intern-list{display:grid;gap:8px;margin-top:18px}.intern-row{background:#0c1f33;border:1px solid #294b66;border-radius:14px;overflow:hidden}.intern-row summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:42px minmax(0,1fr) minmax(190px,.55fr) 24px;gap:12px;align-items:center;padding:13px 15px}.intern-row summary::-webkit-details-marker{display:none}.intern-row[open]{border-color:#4c88ad;background:#0d2238}.intern-avatar{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#173c5b;color:#9bd6fa;font-weight:900}.intern-main{display:grid;min-width:0}.intern-main strong{color:#f4f9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.intern-main small,.intern-period small{color:#8faec5}.intern-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.intern-period{display:grid;justify-items:start}.intern-period b{font-size:12px;color:#dcecf8;font-weight:800}.intern-chevron{color:#75bfea;font-size:18px;transition:.16s}.intern-row[open] .intern-chevron{transform:rotate(180deg)}.intern-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#294b66;border-top:1px solid #294b66}.intern-detail-grid>div{display:grid;gap:4px;background:#0a1b2d;padding:13px 15px;min-width:0}.intern-detail-grid small{color:#819fb6}.intern-detail-grid strong{color:#eef7ff;overflow-wrap:anywhere}.intern-empty{padding:26px;text-align:center;color:#8faec5;border:1px dashed #31546f;border-radius:14px;background:#0a1b2d}@media(max-width:760px){.intern-row summary{grid-template-columns:40px minmax(0,1fr) 22px}.intern-period{grid-column:2/3}.intern-chevron{grid-column:3;grid-row:1/3}.intern-detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.intern-detail-grid{grid-template-columns:1fr}}

/* v1.3.18 official record print readability */
.official-table .sig-preview-large{display:block;max-width:96px!important;max-height:42px!important;width:auto;height:auto;margin:2px auto;object-fit:contain}.official-table tbody td{height:48px;vertical-align:middle}.record-filter select[name="paper_size"]{min-width:180px}

.print-studio{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}.print-controls{position:sticky;top:84px;display:grid;gap:14px}.print-controls form,.print-controls label{display:grid;gap:7px}.print-controls h3{margin:10px 0 0}.print-controls textarea{min-height:76px}.print-controls .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.print-controls .four{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.print-controls .four label{font-size:12px}.print-download{width:100%;text-align:center}.aqua-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.aquadest-paper .official-table th{font-size:8px}.aquadest-paper .official-table td{height:38px}@media(max-width:1100px){.print-studio{grid-template-columns:1fr}.print-controls{position:static}.print-controls .four{grid-template-columns:1fr 1fr}}

/* v1.3.21 — responsive official-record preview. Keep the whole sheet centered
   inside the preview viewport instead of exposing a horizontally scrollable
   fixed-width canvas. This applies to Suhu & Kelembapan and Akuades. */
.paper-preview{
  overflow:hidden;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  width:100%;
  box-sizing:border-box;
}
.paper-preview .record-paper{
  box-sizing:border-box;
  margin:0 auto;
  flex:0 1 auto;
  width:100%;
  height:auto;
  min-height:0;
  transform:none!important;
  transform-origin:top center;
}
.paper-preview .record-paper.paper-a4.paper-portrait{
  max-width:794px;
  aspect-ratio:210 / 297;
}
.paper-preview .record-paper.paper-f4.paper-portrait{
  max-width:794px;
  aspect-ratio:210 / 330;
}
.paper-preview .record-paper.paper-a4.paper-landscape{
  max-width:1123px;
  aspect-ratio:297 / 210;
}
.paper-preview .record-paper.paper-f4.paper-landscape{
  max-width:1247px;
  aspect-ratio:330 / 210;
}
@media(max-width:1100px){
  .paper-preview{padding:14px}
  .paper-preview .record-paper{max-width:100%!important}
}

/* v1.3.22 — keep official tables inside the paper canvas.
   Grid children previously used their intrinsic table width, so Akuades could
   spill past the right edge even though the paper itself was responsive. */
.paper-preview .record-paper{overflow:hidden}
.paper-preview .official-table{table-layout:fixed;max-width:100%;min-width:0}
.paper-preview .official-table th,.paper-preview .official-table td{overflow:hidden;overflow-wrap:anywhere;word-break:normal}
.paper-preview .aqua-columns{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
.paper-preview .aqua-columns>.official-table{width:100%;min-width:0}
.aquadest-paper .aqua-columns .official-table th:nth-child(1){width:8%}
.aquadest-paper .aqua-columns .official-table th:nth-child(2){width:31%}
.aquadest-paper .aqua-columns .official-table th:nth-child(3){width:10%}
.aquadest-paper .aqua-columns .official-table th:nth-child(4){width:19%}
.aquadest-paper .aqua-columns .official-table th:nth-child(5){width:32%}

/* v1.3.24: signature snapshots are cropped server-side to the actual ink.
   Fit the cropped signature naturally inside the cell; do not scale the transparent source canvas. */
.official-table td:has(.sig-preview-large){overflow:hidden;position:relative;}
.official-table .sig-preview-large{
  display:block!important;
  width:auto!important;max-width:86%!important;
  height:auto!important;max-height:80%!important;
  object-fit:contain!important;
  transform:none!important;
  margin:2px auto!important;
}

/* v1.4.3 public instruction document carousel */
.public-doc-stack{display:grid;gap:1rem}.public-doc-card{border:1px solid rgba(127,127,127,.22);border-radius:18px;padding:1rem;background:var(--panel,#fff)}.public-doc-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.8rem}.public-doc-head h3{margin:.35rem 0 .2rem}.page-count{white-space:nowrap;font-size:.82rem;opacity:.72}.doc-carousel{position:relative}.carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:14px;background:rgba(127,127,127,.08)}.carousel-track::-webkit-scrollbar{display:none}.carousel-slide{flex:0 0 100%;scroll-snap-align:start;min-width:100%;height:min(72vh,780px);display:grid;place-items:center}.carousel-slide iframe,.carousel-slide img{width:100%;height:100%;border:0;border-radius:14px;background:#fff;object-fit:contain}.carousel-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.92);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 5px 20px rgba(0,0,0,.12)}.carousel-arrow.prev{left:10px}.carousel-arrow.next{right:10px}.carousel-arrow:disabled{opacity:.3;cursor:default}.carousel-dots{display:flex;justify-content:center;gap:7px;padding-top:.7rem}.carousel-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#aaa;opacity:.45}.carousel-dots button.active{opacity:1;transform:scale(1.25)}@media(max-width:720px){.carousel-slide{height:66vh}.public-doc-head{flex-direction:column}.carousel-arrow{width:36px;height:36px}}

/* v1.4.4 — polished IKA/IKK/IKM master document workspace */
.quality-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;background:linear-gradient(135deg,#102a42,#123d5c);border:1px solid #31546f}.quality-hero h2{margin:2px 0 5px;font-size:24px}.quality-hero p{margin:0}.quality-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.quality-hero-actions .button{background:#173c5b;border-color:#3e6785;color:#eef7ff}.quality-title-row{align-items:flex-start}.quality-file-note{display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;background:#0f2940;border:1px solid #31546f;color:#9fc5dd;font-size:11px;font-weight:800;letter-spacing:.04em;white-space:nowrap}.quality-form-card{padding:24px}.quality-form-grid{display:grid;grid-template-columns:90px repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.quality-field{display:grid;gap:7px;min-width:0}.quality-field>span{font-size:12px;font-weight:800;color:#cfe1ee}.quality-field input,.quality-field select,.quality-inline-edit input,.quality-inline-edit select{width:100%;min-height:44px;border:1px solid #31546f;border-radius:11px;background:#0a1b2d;color:#eef7ff;padding:10px 12px;outline:none;transition:.15s}.quality-field input:focus,.quality-field select:focus,.quality-inline-edit input:focus,.quality-inline-edit select:focus{border-color:#64b9ee;box-shadow:0 0 0 3px rgba(100,185,238,.12)}.quality-field input::placeholder,.quality-inline-edit input::placeholder{color:#7293aa}.quality-field-title{grid-column:span 2}.quality-upload-card{grid-column:1/4;min-height:92px;border:1px dashed #477493;border-radius:14px;background:#0b2033;padding:16px;display:grid;grid-template-columns:48px 1fr minmax(180px,270px);gap:14px;align-items:center;cursor:pointer}.quality-upload-card:hover{border-color:#6dc3f2;background:#0d253a}.quality-upload-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#153e5e;color:#8fd8ff;font-size:24px;font-weight:900}.quality-upload-copy{display:grid}.quality-upload-copy strong{color:#f4f9ff}.quality-upload-copy small{color:#8faec5;margin-top:3px}.quality-upload-card input[type=file]{width:100%;color:#b7cddd}.quality-upload-card input[type=file]::file-selector-button{border:1px solid #3a6686;background:#153b59;color:#eef7ff;border-radius:9px;padding:8px 10px;margin-right:8px;cursor:pointer}.quality-public-field{grid-column:4}.quality-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:2px}.quality-list-card{padding:24px}.quality-empty{min-height:210px;border:1px dashed #31546f;border-radius:14px;background:#0a1b2d;display:grid;place-items:center;align-content:center;text-align:center;padding:30px}.quality-empty-icon{width:54px;height:54px;border-radius:14px;background:#153b59;color:#8fd8ff;display:grid;place-items:center;font-size:26px;margin-bottom:10px}.quality-empty h4{margin:0;color:#f4f9ff;font-size:17px}.quality-empty p{margin:5px 0 0;color:#8faec5!important}.quality-table-wrap{border:1px solid #294b66;border-radius:14px;overflow:auto}.quality-table{margin:0}.quality-table th{white-space:nowrap}.quality-number{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#153b59;color:#9bd6fa;font-weight:900}.quality-actions-cell{display:flex;gap:7px;align-items:flex-start;white-space:nowrap}.quality-edit-details{position:relative}.quality-edit-details summary{cursor:pointer;list-style:none}.quality-edit-details summary::-webkit-details-marker{display:none}.quality-inline-edit{position:absolute;right:0;top:42px;z-index:10;width:min(460px,78vw);padding:14px;border:1px solid #3c6684;border-radius:14px;background:#0a1b2d;box-shadow:0 18px 55px rgba(0,0,0,.35);display:grid;grid-template-columns:1fr 1fr;gap:9px}.quality-inline-edit label{display:grid;gap:6px;color:#cfe1ee}.quality-inline-edit button{grid-column:1/-1}.quality-actions-cell .small{margin-top:0}.quality-form-card .primary.big-button{min-width:180px}
@media(max-width:1100px){.quality-form-grid{grid-template-columns:90px 1fr 1fr}.quality-field-title{grid-column:span 2}.quality-upload-card{grid-column:1/-1}.quality-public-field{grid-column:1/-1}.quality-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.quality-form-grid{grid-template-columns:1fr}.quality-field,.quality-field-title,.quality-upload-card,.quality-public-field{grid-column:1}.quality-upload-card{grid-template-columns:44px 1fr}.quality-upload-card input[type=file]{grid-column:1/-1}.quality-file-note{white-space:normal}.quality-inline-edit{grid-template-columns:1fr}.quality-inline-edit button{grid-column:1}.quality-hero-actions{width:100%}.quality-hero-actions .button{flex:1;text-align:center}}

/* v1.4.5 Quality Studio — final visual override */
.release-proof{display:inline-flex;margin:0 0 10px;padding:6px 9px;border-radius:8px;background:#e7f2f8;color:#1f6f9f;font-size:10px;font-weight:900;letter-spacing:.07em}.quality-hero{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:20px!important;padding:25px 27px!important;background:linear-gradient(135deg,#103b60,#17618e)!important;border:0!important;color:#fff!important;box-shadow:0 14px 34px rgba(18,60,105,.16)!important}.quality-hero h2{color:#fff!important;font-size:27px!important;margin:4px 0 6px!important}.quality-hero p,.quality-hero .kicker{color:#d9edf8!important}.quality-hero-actions .button{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.28)!important;color:#fff!important}.quality-form-card,.quality-list-card{padding:25px!important;background:#fff!important;border:1px solid var(--line)!important}.quality-title-row{display:flex!important;justify-content:space-between!important;gap:18px!important;align-items:flex-start!important}.quality-title-row h3{color:var(--navy)!important;font-size:20px!important;margin:3px 0!important}.quality-title-row p{color:var(--muted)!important}.quality-file-note{background:#f4f8fa!important;border:1px solid var(--line)!important;color:#607989!important}.quality-stats{display:flex;gap:8px;margin-left:auto}.quality-stats span{display:grid;min-width:74px;padding:7px 10px;border-radius:10px;background:#f7fafc;border:1px solid var(--line);color:var(--muted);font-size:9px;text-align:center}.quality-stats b{font-size:17px;color:var(--navy)}.quality-form-grid{display:grid!important;grid-template-columns:90px repeat(3,minmax(0,1fr))!important;gap:15px!important;margin-top:20px!important}.quality-field>span{color:#344b5c!important}.quality-field input,.quality-field select,.quality-inline-edit input,.quality-inline-edit select{background:#fff!important;color:var(--ink)!important;border:1px solid #c4d2dc!important}.quality-field input:focus,.quality-field select:focus{border-color:#66a7d3!important;box-shadow:0 0 0 3px rgba(46,127,193,.12)!important}.quality-upload-card{grid-column:1/4!important;min-height:108px!important;background:#f8fbfd!important;border:1.5px dashed #9bbdce!important;border-radius:15px!important;position:relative!important}.quality-upload-card:hover{background:#f1f8fc!important;border-color:#4c98c5!important}.quality-upload-icon{background:#e4f2fa!important;color:#1f79ad!important}.quality-upload-copy strong{color:var(--navy)!important}.quality-upload-copy small{color:var(--muted)!important}.quality-upload-copy em{display:block;color:#1f79ad;font-size:11px;font-style:normal;font-weight:750;margin-top:6px}.quality-upload-card input[type=file]{color:#526c7c!important}.quality-upload-card input[type=file]::file-selector-button{background:#fff!important;color:var(--navy)!important;border:1px solid #bfd0db!important}.quality-public-field{grid-column:4!important}.quality-form-actions{grid-column:1/-1!important;border-top:1px solid var(--line);padding-top:15px!important}.quality-empty{background:#fbfdff!important;border-color:#b8c7d0!important;min-height:240px!important}.quality-empty-icon{background:var(--sky)!important;color:var(--blue)!important}.quality-empty h4{color:var(--navy)!important}.quality-table-wrap{border-color:var(--line)!important}.quality-number{background:var(--sky)!important;color:var(--blue)!important}.quality-inline-edit{background:#fff!important;border-color:#c4d2dc!important;box-shadow:0 20px 55px rgba(18,60,105,.18)!important}.quality-inline-edit label{color:#344b5c!important}
@media(max-width:1100px){.quality-form-grid{grid-template-columns:90px 1fr 1fr!important}.quality-upload-card,.quality-public-field{grid-column:1/-1!important}.quality-hero{align-items:flex-start!important;flex-direction:column!important}.quality-stats{margin-left:0}}
@media(max-width:720px){.quality-form-grid{grid-template-columns:1fr!important}.quality-field,.quality-field-title,.quality-upload-card,.quality-public-field{grid-column:1!important}.quality-title-row{flex-direction:column}.quality-stats{width:100%}.quality-stats span{flex:1}.quality-hero-actions{width:100%}.quality-hero-actions .button{flex:1}}
/* Quality Document recovery UI */
.qd-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 28px;background:linear-gradient(135deg,#0c3555,#155d87);color:#fff;border:0}.qd-hero h2{font-size:28px;margin:4px 0 6px;color:#fff}.qd-hero p,.qd-hero .kicker{color:#dceef8}.qd-actions{display:flex;gap:9px;flex-wrap:wrap}.qd-actions .button{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}.qd-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:14px 0}.qd-summary article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 17px;box-shadow:0 4px 14px rgba(20,56,82,.04)}.qd-summary span,.qd-summary small{display:block;color:var(--muted);font-size:11px}.qd-summary strong{display:block;font-size:25px;color:var(--navy);margin:3px 0}.qd-list{padding:22px}.qd-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.qd-toolbar h3{margin:3px 0 0;color:var(--navy);font-size:20px}.qd-filters{display:flex;gap:8px;flex-wrap:wrap}.qd-filters input,.qd-filters select{min-height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:8px 10px}.qd-filters input{min-width:260px}.qd-table-wrap{border:1px solid var(--line);border-radius:13px;overflow:auto}.qd-table{margin:0;min-width:940px}.qd-table td{vertical-align:middle}.qd-table td small{display:block;color:var(--muted);margin-top:4px;max-width:250px;overflow:hidden;text-overflow:ellipsis}.qd-num{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--sky);color:var(--blue);font-weight:800}.qd-row-actions{display:flex;align-items:center;gap:5px}.qd-row-actions form{margin:0}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.status-pill.ok{background:#e9f7ef;color:#277a4b}.status-pill.neutral{background:#eef3f6;color:#5f7482}.status-bad{color:#a75050;font-size:11px}.qd-empty{padding:48px 20px;text-align:center;border:1px dashed #b9cad5;border-radius:14px;background:#fbfdff}.qd-empty>div{font-size:32px;color:var(--blue)}.qd-empty h4{font-size:18px;color:var(--navy);margin:8px 0}.qd-empty p{color:var(--muted);margin:0 auto 16px;max-width:520px}.qd-no-result{text-align:center;padding:28px;color:var(--muted)}.qd-dialog{width:min(780px,calc(100vw - 28px));max-height:88vh;border:0;border-radius:18px;padding:0;background:#fff;color:var(--ink);box-shadow:0 30px 90px rgba(5,29,48,.32)}.qd-dialog::backdrop{background:rgba(4,24,39,.68);backdrop-filter:blur(3px)}.qd-dialog>form{padding:0}.qd-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.qd-dialog-head h3{margin:3px 0 0;color:var(--navy);font-size:21px}.qd-editor{padding:20px 22px;display:grid;gap:17px;max-height:62vh;overflow:auto}.qd-editor fieldset{border:1px solid var(--line);border-radius:13px;padding:15px}.qd-editor legend{padding:0 7px;color:var(--navy);font-weight:850;font-size:12px}.qd-editor fieldset>p{margin:0 0 12px}.qd-grid{display:grid;grid-template-columns:110px repeat(2,minmax(0,1fr));gap:12px}.qd-grid label{display:grid;gap:6px}.qd-grid label>span{font-size:11px;font-weight:800;color:#3b5363}.qd-grid input,.qd-grid select{width:100%;min-height:42px;border:1px solid #c4d2dc;border-radius:10px;background:#fff;color:var(--ink);padding:9px 10px}.qd-grid input:focus,.qd-grid select:focus{outline:none;border-color:#5ca7d5;box-shadow:0 0 0 3px rgba(50,139,195,.11)}.qd-grid .wide{grid-column:span 2}.qd-grid label.wide:first-of-type{grid-column:span 2}.qd-grid small{color:var(--muted)}.qd-existing{padding:10px 12px;border-radius:10px;background:#f4f8fa;border:1px solid var(--line);display:grid;gap:3px}.qd-existing span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.qd-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:15px 22px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff}.alert.warning{background:#fff8e6;border-color:#ead69a;color:#725b1f}
@media(max-width:1100px){.qd-summary{grid-template-columns:repeat(3,1fr)}.qd-toolbar{align-items:flex-start;flex-direction:column}.qd-filters{width:100%}.qd-filters input{flex:1}}
@media(max-width:720px){.qd-hero{align-items:flex-start;flex-direction:column;padding:21px}.qd-hero h2{font-size:23px}.qd-actions{width:100%}.qd-actions>*{flex:1;text-align:center}.qd-summary{grid-template-columns:1fr 1fr}.qd-list{padding:15px}.qd-filters{display:grid;grid-template-columns:1fr;width:100%}.qd-filters input{min-width:0}.qd-grid{grid-template-columns:1fr}.qd-grid .wide,.qd-grid label.wide:first-of-type{grid-column:1}.qd-dialog-head,.qd-editor,.qd-dialog-actions{padding-left:15px;padding-right:15px}.qd-row-actions{flex-wrap:wrap}}
.operational-bottom-nav{position:sticky;bottom:14px;z-index:30;margin:22px auto 8px;max-width:520px;display:grid;grid-template-columns:repeat(3,1fr);background:rgba(5,29,48,.96);border:1px solid rgba(80,184,235,.3);border-radius:18px;padding:7px;box-shadow:0 18px 50px rgba(0,0,0,.28);backdrop-filter:blur(16px)}.operational-bottom-nav a{padding:12px 16px;text-align:center;border-radius:12px;color:#a9bfd0;font-weight:800;letter-spacing:.08em;text-decoration:none}.operational-bottom-nav a.active,.operational-bottom-nav a:hover{background:#159ad4;color:white}.qd-mapping-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:260px;overflow:auto}.qd-map-option{display:flex!important;align-items:flex-start;gap:10px;padding:12px;border:1px solid rgba(100,160,195,.25);border-radius:12px;background:rgba(255,255,255,.025)}.qd-map-option input{width:auto!important;margin-top:3px}.context-doc-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0}.context-doc-tab{white-space:nowrap;padding:10px 14px;border-radius:999px}.context-doc-tab.active{background:#159ad4;color:white}.context-doc-panel{display:none}.context-doc-panel.active{display:block}.contextual-doc-view .doc-carousel{margin-top:14px}.contextual-empty{margin-top:18px}@media(max-width:700px){.qd-mapping-list{grid-template-columns:1fr}.operational-bottom-nav{bottom:8px;margin-left:8px;margin-right:8px}}
/* Internal Quality Document lifecycle workspace */
.quality-work-grid{display:grid;gap:16px}.quality-work-card{border-left:4px solid #234d70}.quality-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.quality-meta-grid span{background:#f6f8fa;border:1px solid #e2e7eb;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px}.quality-point-list{margin:12px 0 12px 24px}.quality-history{border-top:1px solid #e3e7ea;margin-top:12px;padding-top:8px}.quality-actions{margin-top:14px}.quality-validate{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.quality-validate input{min-width:260px}.quality-points{grid-column:1/-1;border-top:1px solid #e2e7eb;margin-top:10px;padding-top:14px}.quality-point-items{display:grid;gap:8px}.quality-point-row{display:grid;grid-template-columns:32px 1fr auto;gap:8px;align-items:start}.quality-point-row>span{width:30px;height:30px;border-radius:50%;background:#eef3f7;display:grid;place-items:center;font-weight:700}.quality-point-row textarea{width:100%;resize:vertical}.span-2{grid-column:span 2}@media(max-width:800px){.quality-meta-grid{grid-template-columns:1fr 1fr}.span-2{grid-column:1/-1}.quality-point-row{grid-template-columns:28px 1fr}.quality-point-row button{grid-column:2}}@media(max-width:520px){.quality-meta-grid{grid-template-columns:1fr}}
.intern-card-list{display:grid;gap:12px}.intern-record-card{background:#fff;border:1px solid #e4e9ef;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(20,45,70,.06)}.intern-record-card>div:first-child{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.intern-record-card small{display:block;color:#687789;margin-top:4px}.intern-values{display:flex;gap:10px;margin:14px 0}.intern-values span{background:#f3f6f9;border-radius:12px;padding:10px 12px;font-weight:700}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.issue-icon{border:0;background:#fff4d8;color:#805900;border-radius:12px;padding:9px 12px;font-weight:700}.reason-dialog{border:0;border-radius:18px;max-width:360px;width:calc(100% - 32px);padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.reason-dialog::backdrop{background:rgba(12,24,38,.45)}@media(max-width:640px){.content{padding:14px}.intern-history{padding:4px}.intern-record-card{border-radius:16px}.operational-form{padding:0}.scan-context{margin:0;border-radius:0;min-height:100vh}.scan-context .section-title{padding-top:8px}}

/* v1.5.1 — Institutional presentation UI: calm, legible, government-office friendly */
:root{--inst-navy:#123b5d;--inst-blue:#2878a5;--inst-bg:#f4f7f9;--inst-surface:#ffffff;--inst-line:#dce5eb;--inst-text:#22313d;--inst-muted:#667985;--inst-green:#287a55;--inst-red:#a6424a;--inst-amber:#8a651b}
html{background:var(--inst-bg)}body{background:var(--inst-bg);color:var(--inst-text);font-size:14px;line-height:1.55}
.top{background:#fff;border-bottom:1px solid var(--inst-line);box-shadow:0 3px 14px rgba(30,57,75,.06)}.brand,.page-head h1,h1,h2,h3{color:var(--inst-navy)}.brand small,.user small{color:var(--inst-muted)}.brand-mark{background:var(--inst-navy);box-shadow:none}.sidebar{background:#12344f;border-right:0;box-shadow:none}.sidebar a{color:#d8e6ef}.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.12);color:#fff}.nav-label,.sidebar-head span{color:#9fc5dc}.sidebar-head small,.sidebar-version{color:#aac0ce}.content{background:var(--inst-bg);max-width:1540px}.page-head{margin-bottom:18px}.page-head h1{font-size:28px;letter-spacing:-.02em}.eyebrow,.kicker{color:var(--inst-blue);font-weight:800;letter-spacing:.1em}.panel,.hero,.portal-hero,.portal-card,.qr-card,.monitor-form-card{background:#fff;border:1px solid var(--inst-line);box-shadow:0 5px 18px rgba(31,59,77,.055);color:var(--inst-text)}.hero p,p,.panel small,.portal-card span,.portal-code span{color:var(--inst-muted)}
.portal-hero{border-radius:16px;padding:24px}.portal-hero h2{color:var(--inst-navy);font-size:28px}.portal-code{background:#f5f8fa;border:1px solid var(--inst-line);border-radius:12px}.portal-code small{color:var(--inst-blue)}.portal-code strong{color:var(--inst-navy)}.portal-card{border-radius:14px;min-height:110px;padding:18px}.portal-card:hover{transform:translateY(-1px);border-color:#9dc5dc;box-shadow:0 8px 22px rgba(31,59,77,.08)}.portal-card b{color:var(--inst-navy);font-size:16px}
input,select,textarea{background:#fff!important;color:var(--inst-text)!important;border:1px solid #cbd8df!important;border-radius:9px!important}input::placeholder,textarea::placeholder{color:#98a7b0}input:focus,select:focus,textarea:focus{border-color:#6ba4c5!important;box-shadow:0 0 0 3px rgba(40,120,165,.1)!important}.button,button{background:#fff;color:var(--inst-navy);border:1px solid #cbd8df;border-radius:9px;box-shadow:none}.button:hover,button:hover{transform:none;box-shadow:none;border-color:#8fb6cd}.primary,.monitor-save{background:var(--inst-navy)!important;border-color:var(--inst-navy)!important;color:#fff!important}.danger-btn{background:#fff!important;border-color:#dfb6ba!important;color:var(--inst-red)!important}
.table-wrap{border:1px solid var(--inst-line);border-radius:10px;background:#fff}table{background:#fff}th{background:#f4f7f9;color:#536975;border-bottom:1px solid var(--inst-line)}td{color:var(--inst-text);border-color:#e7edf1}tbody tr:hover{background:#f8fafb}.badge{background:#eaf3f8;color:#276d94}.badge.validated,.badge.active,.badge.completed{background:#e8f4ed;color:var(--inst-green)}.alert{border-radius:10px}.alert.danger{background:#fbebed;color:#8f343c;border-color:#efcdd0}.alert.success{background:#eaf5ef;color:#246746;border-color:#cfe7da}.alert.warning{background:#fff7e5;color:#775a1e;border-color:#ead8aa}
.login-shell{background:linear-gradient(135deg,#eef4f7,#f8fafb);padding:28px}.login-brand h1{color:var(--inst-navy)}.login-brand>p,.login-feature small{color:var(--inst-muted)}.login-feature>span{background:#fff;border-color:var(--inst-line);color:var(--inst-blue)}.login-card{border:1px solid var(--inst-line);border-radius:18px;box-shadow:0 18px 50px rgba(25,55,73,.1)}.login-card h2{color:var(--inst-navy);font-size:28px}.access-input input{background:#f8fafb!important;color:var(--inst-navy)!important;font-size:26px;letter-spacing:.28em}.login-foot{color:var(--inst-muted)}
.intern-card-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}.intern-record-card{background:#fff;border:1px solid var(--inst-line);border-radius:14px;box-shadow:0 4px 14px rgba(31,59,77,.05)}.intern-values span{background:#f3f7f9;color:var(--inst-navy)}.issue-icon{background:#fff7e5;color:#755819;border:1px solid #ecd9aa}.reason-dialog{background:#fff;color:var(--inst-text)}
.analyst-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px}.review{border-radius:14px}.review .measure{display:flex;gap:10px;margin:14px 0}.review .measure b{background:#eef5f8;color:var(--inst-navy);padding:10px 12px;border-radius:9px}.review form{display:flex;gap:8px;flex-wrap:wrap}.review textarea{width:100%}
.monitor-government-head{background:#fff;border-color:var(--inst-line);box-shadow:none}.gov-copy,.gov-copy strong{color:var(--inst-navy)}.monitor-titlebar{background:#f7fafb;border-color:var(--inst-line)}.monitor-titlebar h2{color:var(--inst-navy)}.context-box,.measure-box{background:#fff;border-color:#cbd8df;color:var(--inst-text)}.context-box strong{color:var(--inst-navy)}.measure-box b{background:#eef4f7;color:var(--inst-navy);border-color:#d7e2e8}.signature-block canvas{background:#fff;border-color:#cbd8df}
.empty{background:#fff;border-color:#cbd8df;color:var(--inst-muted)}
@media(max-width:800px){.content{padding:84px 14px 32px}.portal-hero{border-radius:12px}.portal-code{width:100%;min-width:0}.intern-card-list{grid-template-columns:1fr}.page-head h1{font-size:24px}.login-card{border-radius:14px}}
/* v1.5.2 FINAL — institutional design system */
:root{--f-navy:#123b5d;--f-blue:#1f6f9f;--f-ink:#1e2d38;--f-muted:#647783;--f-bg:#f3f6f8;--f-line:#d9e2e8;--f-soft:#eef4f7;--f-white:#fff;--f-green:#287454;--f-red:#a43e48;--f-shadow:0 12px 34px rgba(24,52,70,.07)}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif!important;background:var(--f-bg)!important;color:var(--f-ink)!important;font-size:14px!important;letter-spacing:0!important}
.top{height:72px!important;padding:0 24px!important}.sidebar{top:72px!important;width:244px!important;padding:18px 12px!important}.content{margin-left:244px!important;padding:98px 28px 48px!important}.brand strong{font-size:18px!important}.brand-mark{width:42px!important;height:42px!important;border-radius:10px!important}.sidebar a{min-height:42px!important;padding:10px 12px!important;border-radius:8px!important;font-size:13px!important}.sidebar a.active{box-shadow:inset 3px 0 #79b7d8!important}.panel,.hero{border-radius:12px!important;box-shadow:0 4px 16px rgba(24,52,70,.045)!important;padding:20px!important}.page-head h1{font-size:26px!important;font-weight:720!important}.page-head .eyebrow{font-size:10px!important}.stats article{border-radius:11px!important;box-shadow:none!important}.stats b{font-size:27px!important}.table-wrap{border-radius:9px!important}th{font-size:10px!important;padding:11px 12px!important}td{padding:11px 12px!important}.button,button,input,select,textarea{border-radius:8px!important}.button,button{min-height:40px!important}.primary{background:#123b5d!important}.badge{border-radius:6px!important;padding:4px 8px!important}
.final-login{min-height:100vh!important;background:linear-gradient(120deg,#edf3f6 0%,#f8fafb 55%,#edf3f6 100%)!important;padding:32px!important}.final-login-wrap{width:min(1080px,100%)!important;grid-template-columns:minmax(0,1.15fr) 420px!important;gap:72px!important}.final-login-brand{padding:20px 10px!important}.institution-lockup{display:flex;align-items:center;gap:14px;margin-bottom:72px}.institution-lockup .seal-modern{width:50px!important;height:50px!important;margin:0!important;border-radius:11px!important;box-shadow:none!important;background:#123b5d!important}.institution-lockup>div:last-child{display:grid;gap:2px}.institution-lockup span{font-size:10px;font-weight:750;letter-spacing:.13em;color:#72838d}.institution-lockup strong{font-size:14px;color:#123b5d;letter-spacing:.025em}.login-brand-copy{max-width:580px}.login-brand-copy .eyebrow{font-size:10px!important;letter-spacing:.16em!important;margin-bottom:10px!important}.login-brand-copy h1{font-size:64px!important;line-height:.95!important;letter-spacing:-.055em!important;font-weight:780!important;margin-bottom:18px!important}.login-brand-copy>p:last-child{font-size:17px!important;line-height:1.65!important;color:#5d717d!important;max-width:560px}.login-assurance{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:44px;max-width:570px}.login-assurance span{border-top:1px solid #cdd9df;padding-top:13px;display:grid;gap:4px}.login-assurance b{font-size:11px;color:#1f6f9f;letter-spacing:.08em}.login-assurance small{font-size:12px;color:#5f737f}.final-login-card{padding:34px!important;border-radius:14px!important;border:1px solid #d5e0e6!important;box-shadow:0 20px 60px rgba(28,57,75,.09)!important}.login-card-head h2{font-size:25px!important;letter-spacing:-.025em!important;margin:4px 0 8px!important}.login-card-head p{font-size:13px!important;line-height:1.55!important;color:#667985!important}.login-form{margin:26px 0 18px!important;gap:10px!important}.login-form>label{font-size:12px!important;color:#314957!important}.access-input input{height:58px!important;font-size:25px!important;letter-spacing:.34em!important;border-radius:8px!important;background:#f7f9fa!important;border:1px solid #cbd8df!important}.login-form .big-button{height:48px!important;margin-top:4px!important;font-size:14px!important}.auth-divider{margin:21px 0 15px!important}.auth-divider span{font-size:10px!important;text-transform:uppercase;letter-spacing:.1em!important}.secondary-action{width:100%!important;height:44px!important}.text-link{font-size:12px!important;margin-top:2px}.login-security{display:flex;gap:10px;align-items:flex-start;background:#f5f8fa;border:1px solid #e0e8ed;border-radius:9px;padding:12px;margin-top:22px}.login-security>span{font-size:9px;color:#287454;margin-top:4px}.login-security p{display:grid;margin:0!important}.login-security b{font-size:11px;color:#405764}.login-security small{font-size:10px;color:#7a8a93;line-height:1.45}.login-foot{border-top:1px solid #e2e8ec;padding-top:16px!important;margin-top:18px!important;font-size:10px!important;letter-spacing:.02em!important}.demo-access,.demo-code-grid{display:none!important}
@media(max-width:980px){.final-login-wrap{grid-template-columns:1fr!important;max-width:470px!important;gap:0!important}.final-login-brand{display:block!important;padding:0!important}.institution-lockup{margin-bottom:26px!important}.login-brand-copy,.login-assurance{display:none!important}.final-login-card{padding:28px!important}}
@media(max-width:800px){.top{height:64px!important;padding:0 12px!important}.sidebar{top:64px!important}.content{margin-left:0!important;padding:82px 14px 30px!important}.final-login{padding:18px!important}.final-login-card{border-radius:12px!important}.institution-lockup{justify-content:center;text-align:left}}
@media(max-width:480px){.final-login{padding:12px!important}.final-login-card{padding:24px 20px!important}.institution-lockup{justify-content:flex-start}.institution-lockup strong{font-size:12px}.login-card-head h2{font-size:23px!important}}


/* v1.5.3 FINAL QA — global contrast, hierarchy, spacing, and institutional consistency */
:root{--qa-navy:#123b5d;--qa-blue:#246f9b;--qa-text:#243640;--qa-muted:#657985;--qa-bg:#f4f7f9;--qa-line:#d8e2e8;--qa-soft:#eef4f7;--qa-white:#fff}
body{background:var(--qa-bg)!important;color:var(--qa-text)!important}
.content{max-width:none!important}
.page-head{align-items:flex-end!important;margin-bottom:20px!important}.page-head .eyebrow{color:var(--qa-blue)!important;opacity:1!important}.page-head h1{color:var(--qa-navy)!important;opacity:1!important}
h1,h2,h3,h4,.panel h1,.panel h2,.panel h3,.hero h1,.hero h2,.hero h3{color:var(--qa-navy)!important;opacity:1!important;text-shadow:none!important}
p,.panel p,.hero p,.panel small,.hero small,.muted{color:var(--qa-muted)!important;opacity:1!important}
.kicker,.eyebrow{color:var(--qa-blue)!important;opacity:1!important}
.panel,.hero,.portal-card,.intern-row,.intern-record-card{background:#fff!important;color:var(--qa-text)!important;border-color:var(--qa-line)!important}
.dashboard-hero{min-height:0!important;padding:26px!important;background:linear-gradient(135deg,#fff 0%,#f5f9fb 100%)!important}.dashboard-hero h2{font-size:28px!important}.dashboard-hero>div>p:last-of-type{max-width:720px!important;color:var(--qa-muted)!important}.hero-mark{background:var(--qa-navy)!important;color:#fff!important}
.focus-stats article{min-height:104px!important;background:#fff!important;border-color:var(--qa-line)!important}.focus-stats article span:last-child{color:var(--qa-muted)!important}.stats b{color:var(--qa-navy)!important}
.top{background:#fff!important;border-color:var(--qa-line)!important}.brand,.brand strong{color:var(--qa-navy)!important}.brand small{color:var(--qa-muted)!important}.brand-mark{background:var(--qa-navy)!important;color:#fff!important;box-shadow:none!important}
.user{gap:14px!important;align-items:center!important}.user>div{display:grid!important;gap:1px!important;line-height:1.25!important}.user b{color:var(--qa-text)!important;font-size:13px!important}.user small{color:var(--qa-muted)!important;font-size:11px!important}.user form{margin-left:2px!important}.user .danger-text{color:#a33d47!important;padding:8px 10px!important}
.sidebar{background:#123b5d!important;border-right:0!important}.sidebar-head span{color:#fff!important}.sidebar-head small{color:#b9ccda!important}.sidebar a{color:#e5eef4!important}.sidebar .nav-label{color:#a9c3d4!important}.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.11)!important;color:#fff!important}
.table-wrap,table{background:#fff!important}th{background:#f3f6f8!important;color:#526a77!important}td{color:var(--qa-text)!important}.empty,.intern-empty{background:#f8fafb!important;color:var(--qa-muted)!important;border-color:#cbd8df!important}
.intern-monitoring .section-title h2,.intern-main strong,.intern-detail-grid strong{color:var(--qa-navy)!important}.intern-count{background:var(--qa-navy)!important;color:#fff!important;border-color:var(--qa-navy)!important}.intern-row summary{background:#fff!important}.intern-avatar{background:#eaf3f8!important;color:var(--qa-blue)!important}.intern-main small,.intern-period small{color:var(--qa-muted)!important}.intern-period b{color:var(--qa-text)!important}.intern-detail-grid{background:var(--qa-line)!important}.intern-detail-grid>div{background:#f8fafb!important}.intern-detail-grid small{color:var(--qa-muted)!important}
.button,button{font-weight:700!important}.danger-btn{background:#fff!important;color:#9c3641!important}.primary{background:var(--qa-navy)!important;color:#fff!important}
.context-box,.measure-box,.quality-field input,.quality-field select,.quality-inline-edit input,.quality-inline-edit select{background:#fff!important;color:var(--qa-text)!important;border-color:#cbd8df!important}.quality-field>span,.quality-upload-copy strong{color:var(--qa-text)!important}.quality-upload-copy small{color:var(--qa-muted)!important}
/* Never allow white/light text on white institutional cards */
.panel [style*="color:white"],.panel [style*="color: white"]{color:var(--qa-text)!important}
@media(max-width:800px){.user{gap:6px!important}.dashboard-hero{padding:20px!important}}


/* v1.5.4 FINAL INSTITUTIONAL — restrained government information-system UI */
:root{--inst-navy:#123b5d;--inst-navy-2:#0e304d;--inst-blue:#2d7198;--inst-bg:#f5f7f9;--inst-card:#ffffff;--inst-text:#243640;--inst-muted:#687b86;--inst-line:#dce4e9;--inst-soft:#f0f4f6;--inst-danger:#a43c46;--inst-success:#287253}
*{box-sizing:border-box}body{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;background:var(--inst-bg)!important;color:var(--inst-text)!important;letter-spacing:0!important}.top{height:72px!important;padding:0 28px!important;border-bottom:1px solid var(--inst-line)!important;box-shadow:0 2px 12px rgba(25,52,68,.04)!important}.brand-mark{width:40px!important;height:40px!important;border-radius:8px!important;font-size:12px!important}.brand-copy strong{font-size:17px!important;letter-spacing:-.01em!important}.brand-copy small{font-size:10.5px!important}.top-actions{gap:18px!important}.scan-shortcut{font-size:12px!important;font-weight:700!important;color:var(--inst-blue)!important;background:var(--inst-soft)!important;border:1px solid var(--inst-line)!important;border-radius:7px!important;padding:8px 11px!important}.user{padding-left:18px!important;border-left:1px solid var(--inst-line)!important}.user b{font-size:12.5px!important;font-weight:700!important}.user small{font-size:10.5px!important}.sidebar{top:72px!important;width:246px!important;background:var(--inst-navy-2)!important;padding:20px 12px!important}.sidebar-head{padding:0 10px 15px!important;margin-bottom:9px!important;border-bottom:1px solid rgba(255,255,255,.1)!important}.sidebar-head span{font-size:10px!important;letter-spacing:.14em!important}.sidebar-head small{font-size:10px!important;margin-top:4px!important}.sidebar nav{gap:2px!important}.sidebar a{min-height:39px!important;border-radius:6px!important;padding:9px 11px!important;font-size:12px!important}.sidebar a span{width:20px!important;opacity:.78!important}.sidebar a.active{background:rgba(255,255,255,.12)!important;box-shadow:inset 2px 0 #7eb4d1!important}.nav-label{font-size:9px!important;letter-spacing:.12em!important;padding:15px 11px 5px!important}.content{margin-left:246px!important;padding:98px 30px 44px!important}.page-head{margin:0 0 18px!important;padding:0!important}.page-head .eyebrow{font-size:9.5px!important;letter-spacing:.14em!important;margin-bottom:5px!important}.page-head h1{font-size:25px!important;line-height:1.2!important;letter-spacing:-.025em!important}.panel,.hero,.portal-hero,.portal-card,.intern-row,.intern-record-card{border:1px solid var(--inst-line)!important;border-radius:10px!important;box-shadow:0 5px 18px rgba(27,55,72,.045)!important;background:#fff!important}.panel{padding:22px!important}.hero,.portal-hero{padding:24px!important}.panel h2,.portal-hero h2{font-size:20px!important;letter-spacing:-.02em!important}.panel h3{font-size:15px!important}.panel p,.portal-hero p,.muted{font-size:12.5px!important;line-height:1.6!important}.eyebrow,.kicker{font-size:9.5px!important;font-weight:800!important;letter-spacing:.13em!important}.button,button{border-radius:6px!important;min-height:38px!important;padding:8px 13px!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}.primary{background:var(--inst-navy)!important}.danger-text{color:var(--inst-danger)!important}.table-wrap{border:1px solid var(--inst-line)!important;border-radius:8px!important;box-shadow:none!important}table{font-size:12px!important}th{font-size:10px!important;letter-spacing:.05em!important;text-transform:uppercase!important;padding:11px 13px!important}td{padding:12px 13px!important}.badge{border-radius:999px!important;font-size:10px!important;font-weight:700!important;padding:4px 8px!important}.empty,.intern-empty{min-height:110px!important;padding:28px!important;border:1px dashed #c8d5dc!important;border-radius:8px!important;background:#fafcfd!important;color:var(--inst-muted)!important}.dashboard-hero{padding:24px!important;border-radius:10px!important}.dashboard-hero h2{font-size:24px!important}.focus-stats{gap:12px!important}.focus-stats article{border-radius:9px!important;min-height:90px!important;padding:17px!important}.final-login{background:#f2f5f7!important}.final-login-wrap{gap:64px!important}.institution-lockup{margin-bottom:62px!important}.login-brand-copy h1{font-size:58px!important;color:var(--inst-navy)!important}.login-assurance{margin-top:38px!important}.final-login-card{border-radius:10px!important;box-shadow:0 16px 44px rgba(28,57,75,.075)!important}.access-input input{background:#fff!important;border-color:#cbd7de!important;color:var(--inst-text)!important}.auth-divider span{background:#fff!important}.login-security{background:#f7f9fa!important}.monitor-government-head,.monitor-titlebar,.monitor-form-card,.profile-onboarding-card{border-radius:10px!important}.monitor-government-head{border-radius:10px 10px 0 0!important}.monitor-titlebar{border-radius:0 0 10px 10px!important}.monitor-form-card{background:#fff!important;color:var(--inst-text)!important;border-color:var(--inst-line)!important}.monitor-form-card h3,.monitor-form-card strong,.monitor-form-card span{color:var(--inst-text)!important}.monitor-form-card small{color:var(--inst-muted)!important}.context-box,.measure-box{background:#f8fafb!important;border-color:var(--inst-line)!important;border-radius:7px!important}.measure-box input{background:#fff!important;color:var(--inst-text)!important}.measure-box b{background:#eef3f6!important;color:var(--inst-navy)!important;border-color:var(--inst-line)!important}
@media(max-width:800px){.top{height:62px!important;padding:0 12px!important}.sidebar{top:62px!important;width:min(280px,84vw)!important}.content{margin-left:0!important;padding:78px 14px 30px!important}.user>div{display:none!important}.user{padding-left:0!important;border-left:0!important}.brand-copy small{display:none!important}.page-head h1{font-size:22px!important}.panel{padding:16px!important}}

/* v1.5.6 MOBILE-FIRST PRODUCT SYSTEM */
:root{--m-navy:#123b5d;--m-blue:#2d7198;--m-bg:#f4f7f9;--m-card:#fff;--m-text:#1f313b;--m-muted:#667985;--m-line:#dce5ea;--m-soft:#eef3f6;--m-danger:#a33b45}
body{background:var(--m-bg)!important;color:var(--m-text)!important}.page-head h1,.panel h1,.panel h2,.panel h3,.hero h1,.hero h2{color:var(--m-text)!important}.panel p,.panel small,.hero p,.muted{color:var(--m-muted)!important}
@media(max-width:800px){
 body{padding-bottom:78px!important}.top{height:58px!important;padding:0 14px!important;background:#fff!important}.brand-mark{width:36px!important;height:36px!important}.brand-copy strong{font-size:15px!important}.top-actions .scan-shortcut{display:none!important}.user form .ghost{font-size:11px!important;min-height:34px!important}.content{padding:74px 14px 28px!important;margin:0!important;max-width:100%!important}.page-head{margin-bottom:14px!important}.page-head .eyebrow{display:none!important}.page-head h1{font-size:21px!important}.panel,.hero,.portal-card,.portal-hero{border-radius:14px!important;padding:16px!important;box-shadow:0 3px 12px rgba(31,49,59,.05)!important}.sidebar{position:fixed!important;z-index:80!important;top:auto!important;bottom:0!important;left:0!important;width:100%!important;height:66px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;transform:none!important;background:#fff!important;border:0!important;border-top:1px solid var(--m-line)!important;box-shadow:0 -4px 18px rgba(31,49,59,.06)!important;overflow-x:auto!important}.sidebar-head,.nav-label{display:none!important}.sidebar nav{display:flex!important;gap:4px!important;height:100%!important;align-items:stretch!important}.sidebar .nav-group{display:contents!important}.sidebar a{flex:1 0 68px!important;min-width:68px!important;min-height:50px!important;padding:5px 4px!important;border-radius:10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;font-size:9px!important;line-height:1.05!important;text-align:center!important;color:#667985!important;white-space:normal!important}.sidebar a span{width:auto!important;font-size:16px!important;line-height:1!important}.sidebar a.active{background:#eaf2f6!important;color:var(--m-navy)!important;box-shadow:none!important}.sidebar a[href="/auth/change-access-code"]{display:none!important}.nav-toggle{display:none!important}.table-wrap{overflow:auto!important;border-radius:12px!important}table{min-width:620px!important}.button,button,input,select,textarea{font-size:14px!important}.button,button{min-height:44px!important}.admin-grid,.focus-stats,.portal-grid{grid-template-columns:1fr!important}.dashboard-hero{padding:17px!important}.dashboard-hero h2{font-size:20px!important}.monitor-government-head{display:none!important}.monitor-titlebar{border:1px solid var(--m-line)!important;border-radius:14px!important;background:#fff!important;text-align:left!important;padding:16px!important}.monitor-titlebar h2{font-size:21px!important;color:var(--m-text)!important}.monitor-form-card{margin-top:12px!important;padding:16px!important;border-radius:14px!important}.monitor-actions{grid-template-columns:1fr!important}.signature-block canvas{height:140px!important}.final-login-wrap{display:block!important;padding:24px 16px!important}.final-login-brand{display:none!important}.final-login-card{width:100%!important;max-width:430px!important;margin:8vh auto 0!important;padding:24px 20px!important;border-radius:16px!important}.auth-links{gap:8px!important}.intern-record-card,.intern-row{border-radius:14px!important}
}
/* v1.5.7 FINAL QA — single institutional visual layer */
:root{--f-bg:#f5f7f9;--f-surface:#fff;--f-text:#1d2f39;--f-muted:#61747f;--f-navy:#103a59;--f-blue:#286f98;--f-line:#d9e3e8;--f-soft:#edf3f6;--f-success:#267153;--f-warning:#956b18;--f-danger:#a23c46}
body{background:var(--f-bg)!important;color:var(--f-text)!important}.content *{text-shadow:none!important}.content h1,.content h2,.content h3,.content h4,.content strong,.content label,.content legend{color:var(--f-text)!important}.content p,.content small,.content .muted,.content .helper{color:var(--f-muted)!important}.content .eyebrow,.content .kicker{color:var(--f-blue)!important}.panel,.portal-card,.dashboard-welcome,.summary-grid article,.announcement-card{background:var(--f-surface)!important;border:1px solid var(--f-line)!important;color:var(--f-text)!important;box-shadow:0 4px 14px rgba(24,49,63,.04)!important}.dashboard-welcome{padding:22px 24px;border-radius:10px;margin-bottom:16px}.dashboard-welcome h2{font-size:23px;margin:5px 0 6px}.dashboard-welcome p{margin:0}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.summary-grid article{padding:18px;border-radius:9px}.summary-grid small,.summary-grid span{display:block;color:var(--f-muted)!important}.summary-grid strong{display:block;font-size:28px;margin:6px 0}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.section-title h2{margin:3px 0 0}.announcement-list{display:grid;gap:10px}.announcement-card{padding:15px 16px;border-radius:8px;box-shadow:none!important}.announcement-card h3{font-size:14px;margin:0 0 5px}.announcement-card p{margin:0;white-space:pre-line}.check-row{display:flex;flex-wrap:wrap;gap:10px 18px}.target-field{border:1px solid var(--f-line);border-radius:8px;padding:14px}.attendance-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.attendance-actions>div{border:1px solid var(--f-line);background:var(--f-soft);padding:16px;border-radius:8px}.attendance-actions strong{display:block;font-size:20px;margin:5px 0 12px}.monitor-form-card,.measure-box,.context-box,input,select,textarea{color:var(--f-text)!important}input::placeholder,textarea::placeholder{color:#8b9ca5!important}.portal-hero,.portal-cards{display:none!important}.ghost{color:var(--f-navy)!important;background:#fff!important;border:1px solid var(--f-line)!important}.primary{color:#fff!important;background:var(--f-navy)!important}.badge{color:var(--f-navy)!important;background:var(--f-soft)!important;border:1px solid var(--f-line)!important}
@media(max-width:800px){.dashboard-welcome{padding:16px;border-radius:12px}.dashboard-welcome h2{font-size:19px}.summary-grid{grid-template-columns:1fr 1fr}.summary-grid article{padding:14px}.attendance-actions{grid-template-columns:1fr}.announcement-card{padding:14px}.content{padding-bottom:88px!important}}
/* v1.5.8 login refinement */
.final-login-wrap{grid-template-columns:minmax(0,1fr) 400px!important;gap:84px!important}
.final-login-brand{padding:20px 12px!important}
.institution-lockup{margin-bottom:86px!important}
.login-brand-copy{max-width:520px!important}
.login-brand-copy h1{font-size:58px!important;margin-bottom:16px!important}
.login-brand-copy>p:last-child{font-size:15px!important;line-height:1.7!important;max-width:500px!important}
.final-login-card{padding:36px!important}
.login-card-head h2{font-size:24px!important;margin:0 0 8px!important}
.access-input input{text-align:left!important;padding-left:18px!important;padding-right:18px!important;letter-spacing:.28em!important;background:#fff!important}
.access-input input::-ms-reveal,.access-input input::-ms-clear{display:none!important}
.auth-divider span{text-transform:none!important;letter-spacing:0!important;font-size:11px!important}
.login-assurance,.login-security{display:none!important}
@media(max-width:980px){.institution-lockup{margin-bottom:26px!important}}
/* v1.5.9 readability + archive workflow */
.profile-onboarding-card{background:#fff!important;color:var(--inst-text)!important;border:1px solid var(--inst-line)!important;box-shadow:0 8px 28px rgba(27,55,72,.07)!important}
.profile-onboarding-card h2,.profile-onboarding-card label,.profile-onboarding-card .eyebrow{color:var(--inst-text)!important}.profile-onboarding-card .eyebrow{color:var(--inst-blue)!important}.profile-onboarding-card .muted{color:var(--inst-muted)!important}.profile-onboarding-card input,.profile-onboarding-card select,.profile-onboarding-card textarea{background:#fff!important;color:var(--inst-text)!important;border-color:#c8d5dc!important}.profile-onboarding-card .onboarding-note{background:#f5f8fa!important;color:#536a78!important;border-color:var(--inst-line)!important}
.form-status{background:#eaf2f7!important;color:#174f73!important;border:1px solid #c9dce8!important;font-weight:800!important;letter-spacing:.08em!important}.monitor-internal .monitor-form-card{margin-top:0!important}.historical-filter{display:grid;grid-template-columns:220px minmax(280px,1fr) auto auto;gap:10px;align-items:end;margin-bottom:18px}.historical-manual{margin-top:18px}.historical-intro{padding-bottom:16px!important}.historical-intro .section-title{margin-bottom:0!important}details summary{cursor:pointer;color:var(--inst-navy);padding:4px 0}.table-wrap a.button{white-space:nowrap}
@media(max-width:800px){.historical-filter{grid-template-columns:1fr}.profile-onboarding-card{padding:18px!important}.profile-onboarding-card h2{font-size:23px!important}}
.asset-card{display:grid!important;gap:14px!important}.asset-main{display:block;color:inherit!important}.asset-main>div{display:flex;justify-content:space-between}.asset-actions{display:flex;gap:8px;padding-top:12px;border-top:1px solid var(--inst-line)}
.attendance-shell{max-width:980px}.attendance-intro{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.attendance-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.attendance-status{border:1px solid #d8e2e8;border-radius:14px;padding:18px;background:#f8fbfc}.attendance-status small,.attendance-status strong{display:block;color:#20343e}.attendance-status strong{font-size:1.35rem;margin-top:6px}.camera-box{display:grid;grid-template-columns:minmax(240px,420px) 1fr;gap:22px;align-items:center;border-top:1px solid #e2e9ed;padding-top:22px}.camera-box video{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;background:#0c2637}.camera-help{display:flex;flex-direction:column;gap:8px;color:#526874}.camera-help b{color:#20343e;font-size:1.1rem}.attendance-submit{margin-top:20px;min-width:180px}.attendance-review-list{display:grid;gap:16px}.review-card{border:1px solid #d8e2e8;border-radius:16px;padding:18px;display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.review-card small{display:block;color:#607783;margin-top:4px}.review-photos{display:flex;gap:10px}.review-photos img{width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid #d8e2e8}.review-card form{grid-column:1/-1;display:flex;gap:10px;align-items:center}.review-card form input{flex:1}.button-row{display:flex;gap:8px}@media(max-width:720px){.attendance-grid,.camera-box,.review-card{grid-template-columns:1fr}.attendance-intro{flex-direction:column}.review-card form{flex-direction:column;align-items:stretch}.review-photos img{width:48%;height:auto}}
.face-enroll{margin-top:8px;border:1px solid var(--f-line);border-radius:12px;padding:20px;background:#f8fbfc}.face-enroll h3{margin:4px 0 6px}.face-enroll-grid{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:22px;margin-top:16px;align-items:center}.face-camera{position:relative;overflow:hidden;border-radius:16px;background:#0c2637;aspect-ratio:4/3}.face-camera video{width:100%;height:100%;object-fit:cover;transform:none}.face-guide{position:absolute;inset:10% 24%;border:2px solid rgba(255,255,255,.9);border-radius:48% 48% 44% 44%;box-shadow:0 0 0 999px rgba(4,24,38,.18);pointer-events:none}.face-preview{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.profile-blue{width:150px;height:180px;border-radius:12px;background:#1769aa;overflow:hidden;border:4px solid #fff;box-shadow:0 4px 16px rgba(19,55,78,.16)}.profile-blue img{width:100%;height:100%;object-fit:cover}.profile-blue.small{width:72px;height:86px;border-width:2px;flex:none}.attendance-identity{display:flex;gap:16px;align-items:center;border:1px solid var(--f-line);background:#f8fbfc;border-radius:12px;padding:14px 16px;margin:18px 0}.attendance-identity small,.attendance-identity strong,.attendance-identity span{display:block}.attendance-identity strong{margin:4px 0;color:var(--f-text)}@media(max-width:720px){.face-enroll-grid{grid-template-columns:1fr}.profile-blue{width:120px;height:145px}.face-enroll{padding:14px}}
.camera-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:24px;color:#fff;background:rgba(5,30,45,.78);z-index:2}.camera-state[hidden]{display:none}.camera-state span{font-size:13px;color:rgba(255,255,255,.82)}.camera-security-note{max-width:360px;font-size:13px;line-height:1.5;color:#8a4b16;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px}.face-preview button:disabled{opacity:.5;cursor:not-allowed}
/* v1.5.16 biodata PKL/Magang */
.profile-section-title{border-top:1px solid var(--inst-line);padding-top:18px;margin-top:6px;display:flex;gap:8px;align-items:baseline}.profile-section-title b{font-size:15px;color:var(--inst-navy)}.profile-section-title span,.optional{font-size:11px;font-weight:500;color:var(--inst-muted)}.profile-onboarding-card textarea{resize:vertical;min-height:82px}.photo-bg-choice,.photo-source-tabs{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px}.photo-bg-choice label{display:flex!important;grid-template-columns:auto auto!important;align-items:center;gap:6px!important;color:var(--inst-text)!important;font-weight:600!important}.photo-bg-choice input{width:auto!important}.upload-rule{padding:10px 12px;background:#fff7e8;border:1px solid #ead6ae;border-radius:7px;color:#70551f}.camera-state{position:absolute;inset:auto 12px 12px;background:rgba(5,25,38,.85);color:white;padding:9px 11px;border-radius:7px;display:grid;font-size:11px}.camera-state[hidden]{display:none}.camera-security-note{font-size:11px;color:#9b3b32}.profile-blue{transition:background .15s ease}@media(max-width:720px){.profile-section-title{align-items:flex-start;flex-direction:column}.photo-bg-choice{align-items:flex-start}}

/* v1.5.20 photo capture: preserve geometry; no mirror/distortion */
.face-camera{aspect-ratio:3/4;max-height:560px}.face-camera video{transform:none!important;object-fit:cover!important}.profile-blue{width:150px;height:200px;aspect-ratio:3/4}.profile-blue img{object-fit:cover!important;width:100%;height:100%}

/* v1.5.23 biodata camera: clean full rectangular live preview, no face oval */
#cameraWrap.face-camera{aspect-ratio:4/3;border-radius:14px;background:#0c2637}
#cameraWrap.face-camera video{width:100%;height:100%;object-fit:cover;transform:none}
#cameraWrap .face-guide{display:none!important}

/* v1.5.25 — QR contextual pages intentionally have no internal sidebar/header. */
body:has(.operational-bottom-nav) { padding-bottom: 76px; }
.operational-bottom-nav{position:sticky;bottom:0;z-index:30;display:flex;justify-content:center;gap:8px;padding:10px 14px;background:rgba(255,255,255,.96);border-top:1px solid #dbe5ea;backdrop-filter:blur(10px)}
.operational-bottom-nav a{min-width:92px;text-align:center;text-decoration:none;font-weight:700;padding:11px 16px;border-radius:10px;color:#294554}
.operational-bottom-nav a.active{background:#123f5f;color:#fff}
.contextual-shell,.scan-context{max-width:980px;margin:22px auto}
body > main.container{max-width:1050px;margin:0 auto;padding:24px 18px}
/* v1.5.28 attendance camera: full rectangular preview; recognition must not depend on UI guides/mirroring */
.attendance-shell .camera-box .face-camera{aspect-ratio:4/3!important;border-radius:14px!important;overflow:hidden!important}
.attendance-shell .camera-box .face-camera video{width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important}
.attendance-shell .camera-box .face-guide{display:none!important}

/* v1.5.31 — front camera behaves like a selfie mirror: physical right appears screen-right.
   This transform is UI-only; face-template.js reads the raw video frame for matching. */
#cameraWrap.face-camera video,
.attendance-shell .camera-box .face-camera video{
  transform:scaleX(-1)!important;
  transform-origin:center center!important;
}
/* v1.5.33 intern Profile */
.profile-detail-head{display:flex;gap:22px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--f-line)}
.profile-photo-large{width:135px;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#eef3f6;flex:none}.profile-photo-large img{width:100%;height:100%;object-fit:cover}.profile-detail-head h2{margin:4px 0 6px}.profile-detail-head p{margin:0 0 6px}.profile-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin-top:16px}.profile-data-grid>div{padding:13px 0;border-bottom:1px solid var(--f-line)}.profile-data-grid small,.profile-data-grid strong{display:block}.profile-data-grid small{color:var(--f-muted);margin-bottom:4px}.photo-bg-choice #bgChoices{display:flex;align-items:center;gap:12px;flex-wrap:wrap}@media(max-width:720px){.profile-detail-head{align-items:flex-start}.profile-data-grid{grid-template-columns:1fr}}

/* v1.5.34: transparent background preview before optional formal colour */
.profile-blue.transparent-preview{background-color:#fff;background-image:linear-gradient(45deg,#dfe5e9 25%,transparent 25%),linear-gradient(-45deg,#dfe5e9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe5e9 75%),linear-gradient(-45deg,transparent 75%,#dfe5e9 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}

/* v1.5.43 — dedicated QR entry: never render internal sidebar */
.qr-access-body{margin:0;min-height:100vh;background:linear-gradient(145deg,#07192b,#0c2944);display:grid;place-items:center;padding:24px}
.qr-access-shell{width:min(100%,520px)}
.qr-access-card{background:#fff;border-radius:28px;padding:34px;box-shadow:0 28px 80px rgba(0,0,0,.28)}
.qr-access-mark{width:64px;height:64px;border-radius:18px;background:#123f63;color:#fff;display:grid;place-items:center;font-weight:800;font-size:22px;margin-bottom:22px}
.qr-access-card h1{margin:.2rem 0 .5rem}.qr-access-resource{margin:22px 0;padding:16px 18px;border-radius:16px;background:#f1f6f9;display:flex;flex-direction:column;gap:4px}.qr-access-resource small{font-size:11px;letter-spacing:.12em;color:#587083}.qr-access-resource strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.qr-access-card input[name=access_code]{font-size:24px;letter-spacing:.3em;text-align:center}

/* v1.5.50 — isolated QR mini-site */
.qr-mini-body{margin:0;background:#07182a;color:#eaf4ff;min-height:100vh;padding-bottom:110px}.qr-mini-shell{width:min(1160px,calc(100% - 32px));margin:0 auto;padding:28px 0 70px}.qr-mini-header{border:1px solid #214969;border-radius:18px;background:#0b2239;padding:28px;text-align:center;margin-bottom:22px}.qr-mini-header p{margin:0 0 18px;color:#9db4ca;font-weight:700}.qr-mini-header span,.qr-section-head span{font-size:12px;letter-spacing:.14em;color:#62b8ef;font-weight:800}.qr-mini-header h1{margin:5px 0 0;font-size:clamp(28px,4vw,44px);color:#f4f9ff}.qr-mini-panel,.qr-doc-area{border:1px solid #29445e;border-radius:18px;background:#111f31;padding:24px}.qr-section-head h2{margin:8px 0 22px}.qr-context,.spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.qr-context>div,.spec-grid>div{background:#091a2d;border:1px solid #204663;border-radius:12px;padding:14px 16px}.qr-context small,.spec-grid small{display:block;color:#8fa9c0;letter-spacing:.1em;font-weight:700;margin-bottom:6px}.qr-form label{display:block;font-weight:700;margin-bottom:16px}.qr-form input,.qr-form select{width:100%;box-sizing:border-box;margin-top:8px}.qr-form small{display:block;color:#90a8be;margin-top:7px;font-weight:400}.qr-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.unit-input{display:flex}.unit-input input{border-radius:10px 0 0 10px}.unit-input b{margin-top:8px;display:grid;place-items:center;min-width:78px;background:#103a5d;border:1px solid #295875;border-left:0;border-radius:0 10px 10px 0}.qr-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.qr-mini-nav{position:fixed;z-index:50;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:stretch;justify-content:center;gap:5px;padding:8px;background:rgba(18,36,55,.94);border:1px solid #34506a;border-radius:22px;box-shadow:0 16px 40px rgba(0,0,0,.35);backdrop-filter:blur(12px);max-width:calc(100vw - 24px);overflow-x:auto}.qr-mini-nav a{min-width:88px;padding:10px 14px;border-radius:15px;text-align:center;text-decoration:none;color:#9fd5f8;font-weight:800;font-size:13px}.qr-mini-nav a span{display:block;font-size:20px;margin-bottom:4px}.qr-mini-nav a.active{background:#29455f;color:#d8efff}.qr-mini-nav a.exit{color:#ff9a91}.qr-doc-area>.public-quality-section,.equipment-doc-section .public-quality-section{background:transparent;border:0;padding:0}.public-doc-card{background:#0c1d30!important;border-color:#294c69!important}.doc-carousel{overflow:hidden}.carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.carousel-track::-webkit-scrollbar{display:none}.carousel-slide{flex:0 0 100%;scroll-snap-align:start;min-width:100%}.carousel-slide iframe{width:100%;height:min(74vh,900px);border:0;background:#fff}.equipment-name{text-align:center;font-size:30px;margin:8px 0 22px}.equipment-doc-section{margin-top:22px}.equipment-nav a{min-width:76px}.equipment-passport-body .qr-mini-shell{padding-bottom:100px}
@media(max-width:700px){.qr-mini-shell{width:min(100% - 20px,1160px);padding-top:12px}.qr-mini-header,.qr-mini-panel,.qr-doc-area{padding:17px;border-radius:14px}.qr-two,.qr-context,.spec-grid{grid-template-columns:1fr}.qr-mini-nav{bottom:10px}.qr-mini-nav a{min-width:65px;padding:8px 9px;font-size:11px}.carousel-slide iframe{height:65vh}}

/* v1.5.51 — QR visual system: readable, institutional, mobile-first */
.qr-mini-body,.equipment-passport-body{--qr-bg:#f4f7fa;--qr-surface:#fff;--qr-surface-2:#eef4f8;--qr-ink:#172b3a;--qr-muted:#607789;--qr-navy:#0c3552;--qr-blue:#1479b8;--qr-line:#d5e1e9;--qr-danger:#a84242;background:var(--qr-bg)!important;color:var(--qr-ink)!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.qr-mini-shell{width:min(1080px,calc(100% - 32px));padding-top:24px}
.qr-mini-header{background:linear-gradient(145deg,#0b304a,#0d3d5d)!important;border:0!important;border-radius:16px!important;box-shadow:0 10px 30px rgba(18,55,78,.12);padding:30px!important}
.qr-mini-header p{color:#c5d7e3!important;font-size:13px;letter-spacing:.04em;margin-bottom:14px!important}.qr-mini-header span,.qr-section-head span{color:#7fd0ff!important}.qr-mini-header h1{color:#fff!important;letter-spacing:-.025em}
.qr-mini-panel,.qr-doc-area{background:var(--qr-surface)!important;border:1px solid var(--qr-line)!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(24,55,74,.06);color:var(--qr-ink)!important}
.qr-section-head h2,.qr-doc-area h2,.public-quality-section h2,.public-doc-card h3{color:var(--qr-ink)!important}.qr-section-head p,.qr-doc-area p,.muted{color:var(--qr-muted)!important}
.qr-context>div,.spec-grid>div{background:var(--qr-surface-2)!important;border:1px solid var(--qr-line)!important;border-radius:10px!important}.qr-context small,.spec-grid small{color:var(--qr-muted)!important}
.qr-form label{color:#294252!important}.qr-form input,.qr-form select,.qr-form textarea{background:#fff!important;color:#142b3b!important;border:1px solid #b9cbd7!important;border-radius:10px!important;box-shadow:0 1px 2px rgba(20,48,67,.04);min-height:48px}.qr-form input:focus,.qr-form select:focus,.qr-form textarea:focus{outline:3px solid rgba(20,121,184,.14)!important;border-color:var(--qr-blue)!important}.qr-form small{color:var(--qr-muted)!important}.unit-input b{background:#e7f1f7!important;color:#24475d!important;border-color:#b9cbd7!important;border-radius:0 10px 10px 0!important}
.qr-actions .button,.qr-actions button{min-height:48px;border-radius:10px!important;font-weight:750}.qr-actions .primary,.qr-actions button[type=submit]{background:var(--qr-blue)!important;color:#fff!important}
.qr-mini-nav{bottom:16px!important;padding:6px!important;gap:2px!important;background:rgba(255,255,255,.96)!important;border:1px solid var(--qr-line)!important;border-radius:14px!important;box-shadow:0 12px 32px rgba(24,55,74,.18)!important;backdrop-filter:blur(14px)}
.qr-mini-nav a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:74px!important;padding:8px 11px!important;border-radius:9px!important;color:#5b7384!important;font-size:11px!important;letter-spacing:.035em}.qr-mini-nav a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.qr-mini-nav a span{font-size:11px!important;margin:0!important}.qr-mini-nav a.active{background:#e5f2fa!important;color:#0b659b!important}.qr-mini-nav a.exit{color:var(--qr-danger)!important}
.public-quality-section{background:transparent!important}.public-doc-card{background:#fff!important;border:1px solid var(--qr-line)!important;border-radius:12px!important;color:var(--qr-ink)!important;box-shadow:none!important}.public-doc-head{align-items:center}.public-doc-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.page-count{color:var(--qr-muted)!important}.doc-download{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:9px;background:#e7f3fa;color:#0c669c;text-decoration:none;font-weight:750;font-size:13px}.doc-download svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.carousel-arrow{background:#fff!important;color:#173d55!important;border:1px solid var(--qr-line)!important;box-shadow:0 4px 14px rgba(20,48,67,.12)}
@media(max-width:700px){.qr-mini-shell{width:calc(100% - 24px)!important;padding-top:12px!important;padding-bottom:92px!important}.qr-mini-header{padding:22px 18px!important;border-radius:13px!important}.qr-mini-header p{font-size:11px!important}.qr-mini-header h1{font-size:30px!important}.qr-mini-panel,.qr-doc-area{padding:18px!important;border-radius:12px!important}.qr-form label{margin-bottom:18px}.qr-form input,.qr-form select{font-size:16px!important}.qr-two{gap:2px!important}.qr-mini-nav{width:auto;max-width:calc(100vw - 20px)!important;bottom:10px!important}.qr-mini-nav a{min-width:61px!important;padding:7px 8px!important}.qr-mini-nav a svg{width:19px;height:19px}.public-doc-head{gap:12px}.public-doc-actions{width:100%;justify-content:space-between}.carousel-slide iframe{height:58vh!important}}

/* v1.5.56 — Akuades official form: keep all 6 columns readable inside A4/F4.
   The previous rule assigned 100% to only the first five columns, forcing
   Paraf Validator to steal space and collapsing pH/DHL values vertically. */
.aquadest-paper .aqua-columns{gap:5px!important;margin-top:10px!important}
.aquadest-paper .aqua-columns .official-table{table-layout:fixed!important;width:100%!important;font-family:Arial,sans-serif}
.aquadest-paper .aqua-columns .official-table th:nth-child(1){width:7%!important}
.aquadest-paper .aqua-columns .official-table th:nth-child(2){width:25%!important}
.aquadest-paper .aqua-columns .official-table th:nth-child(3){width:9%!important}
.aquadest-paper .aqua-columns .official-table th:nth-child(4){width:15%!important}
.aquadest-paper .aqua-columns .official-table th:nth-child(5){width:22%!important}
.aquadest-paper .aqua-columns .official-table th:nth-child(6){width:22%!important}
.aquadest-paper .official-table th{height:30px!important;font-size:6.5px!important;line-height:1.15!important;padding:2px 1px!important;white-space:normal!important}
.aquadest-paper .official-table td{height:29px!important;font-size:6.7px!important;line-height:1.1!important;padding:1px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.aquadest-paper .official-table .sig-preview-large{max-width:90%!important;max-height:25px!important;margin:1px auto!important}
.aquadest-paper .record-letterhead{grid-template-columns:72px 1fr!important}
.aquadest-paper .record-letterhead img{width:58px!important;height:58px!important}
.aquadest-paper .record-letterhead div{font-size:10px!important}
.aquadest-paper .record-letterhead strong{font-size:11px!important}
.aquadest-paper .record-title-grid{font-size:9px!important}
.aquadest-paper .record-doc-title{min-height:54px!important}

/* SiModis identity */
.brand-mark.brand-logo,.seal-modern.seal-logo{overflow:hidden;background:#fff;padding:0;border:1px solid #dbe5ea;}
.brand-mark.brand-logo img,.seal-modern.seal-logo img{width:100%;height:100%;object-fit:contain;display:block;}
.brand-mark.brand-logo{border-radius:10px;}
.seal-modern.seal-logo{border-radius:18px;}
/* v1.5.60 public equipment read-only tabs */
.public-readonly-note{display:inline-block;margin-top:14px;color:#cfe2ee;font-weight:700;letter-spacing:.03em}.public-equipment-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding:2px;scrollbar-width:none}.public-equipment-tabs::-webkit-scrollbar{display:none}.public-equipment-tabs button{appearance:none;border:1px solid var(--qr-line);background:#fff;color:var(--qr-navy);font:inherit;font-weight:800;white-space:nowrap;border-radius:10px;padding:12px 18px;cursor:pointer}.public-equipment-tabs button.active{border-color:#0b1d2a;box-shadow:inset 0 0 0 1px #0b1d2a;background:#f8fbfd}.public-equipment-tab{margin-bottom:18px}.public-section-copy{color:var(--qr-muted);margin:-8px 0 18px}.public-equipment-table{overflow:auto;border:1px solid var(--qr-line);border-radius:10px}.public-equipment-table table{min-width:860px;margin:0;background:#fff}.public-equipment-table th{background:#eef4f8;color:#496575;font-size:11px;letter-spacing:.05em}.public-equipment-table td,.public-equipment-table th{padding:11px 12px;vertical-align:top}.public-equipment-table td{color:var(--qr-ink)}
@media(max-width:700px){.public-equipment-tabs{position:sticky;top:0;z-index:20;background:rgba(244,247,250,.96);padding:8px 0}.public-equipment-tabs button{padding:10px 13px;font-size:12px}.public-equipment-table table{min-width:760px}}

/* v1.5.61 — consistent institutional letterhead for every QR destination */
.qr-mini-header.institutional-qr-header{background:#fff!important;color:#172f3d!important;border:1px solid #d7e1e7!important;padding:22px 28px 24px!important;box-shadow:0 8px 28px rgba(18,55,78,.09)!important;text-align:center!important}
.institutional-qr-kop{display:grid;grid-template-columns:112px minmax(0,1fr) 112px;align-items:center;gap:22px;max-width:920px;margin:0 auto}
.institutional-logo-wrap{height:104px;display:flex;align-items:center;justify-content:center}
.institutional-logo{display:block;max-width:100%;max-height:100%;object-fit:contain}
.institutional-logo.jabar-logo{width:88px;height:100px}
.institutional-logo.uptd-logo{width:104px;height:104px}
.institutional-kop-text{line-height:1.28;color:#172f3d}
.institutional-gov{font-size:15px;font-weight:700;letter-spacing:.02em}
.institutional-agency{font-size:17px;font-weight:750;margin-top:3px}
.institutional-unit{font-size:19px;font-weight:850;margin-top:4px}
.institutional-city{font-size:12px;color:#607785;font-weight:700;letter-spacing:.08em;margin-top:5px}
.institutional-rule{height:4px;border-top:2px solid #172f3d;border-bottom:1px solid #172f3d;max-width:920px;margin:17px auto 19px}
.qr-mini-header.institutional-qr-header .institutional-section{display:block!important;color:#267aa9!important;font-size:11px!important;letter-spacing:.16em!important;font-weight:850!important;margin-bottom:6px}
.qr-mini-header.institutional-qr-header h1{color:#172f3d!important;font-size:clamp(25px,3.3vw,38px)!important;margin:0!important;letter-spacing:-.025em!important}
.qr-mini-header.institutional-qr-header .public-readonly-note{display:block;color:#6d808a!important;margin-top:7px;font-size:12px}
@media(max-width:700px){
 .qr-mini-header.institutional-qr-header{padding:16px 12px 18px!important}
 .institutional-qr-kop{grid-template-columns:62px minmax(0,1fr) 62px;gap:8px}
 .institutional-logo-wrap{height:62px}.institutional-logo.jabar-logo{width:53px;height:60px}.institutional-logo.uptd-logo{width:60px;height:60px}
 .institutional-gov{font-size:8px}.institutional-agency{font-size:9.5px}.institutional-unit{font-size:10.5px}.institutional-city{font-size:7.5px;margin-top:2px}
 .institutional-rule{margin:11px auto 14px;height:3px}
 .qr-mini-header.institutional-qr-header .institutional-section{font-size:9px!important}
 .qr-mini-header.institutional-qr-header h1{font-size:25px!important}
}

/* v1.5.62 — balanced institutional letterhead for official record preview */
.record-letterhead{display:grid!important;grid-template-columns:82px minmax(0,1fr) 82px!important;align-items:center!important;column-gap:12px!important;min-height:82px!important;text-align:center!important;font-family:Arial,sans-serif!important}
.record-letterhead .record-logo-slot{display:flex!important;align-items:center!important;justify-content:center!important;width:82px!important;height:76px!important}
.record-letterhead .record-logo-slot img{display:block!important;width:auto!important;height:auto!important;max-width:70px!important;max-height:70px!important;object-fit:contain!important}
.record-letterhead .record-letterhead-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;line-height:1.18!important;font-size:11.5px!important;letter-spacing:0!important}
.record-letterhead .record-letterhead-copy strong{font-size:13px!important;line-height:1.2!important}
.record-letterhead .record-letterhead-copy small{font-size:8.5px!important;line-height:1.25!important;color:#111!important;margin-top:2px!important}
.record-paper .double-rule{height:5px!important;border-top:2px solid #111!important;border-bottom:1px solid #111!important;margin:7px 0 11px!important}
.aquadest-paper .record-letterhead{grid-template-columns:70px minmax(0,1fr) 70px!important;min-height:70px!important;column-gap:8px!important}
.aquadest-paper .record-letterhead .record-logo-slot{width:70px!important;height:64px!important}
.aquadest-paper .record-letterhead .record-logo-slot img{max-width:58px!important;max-height:58px!important}
.aquadest-paper .record-letterhead .record-letterhead-copy{font-size:9.5px!important}
.aquadest-paper .record-letterhead .record-letterhead-copy strong{font-size:10.5px!important}
.aquadest-paper .record-letterhead .record-letterhead-copy small{font-size:7.5px!important}

/* v1.5.63 — official record paper must actually change size and all 15 rows must fit.
   Previous preview used aspect-ratio with height:auto while table rows retained a global 48px
   minimum; overflow:hidden then visually cut rows 14–15. */
.paper-preview .record-paper.paper-a4.paper-portrait{width:min(100%,794px)!important;height:auto!important;min-height:1123px!important;aspect-ratio:auto!important}
.paper-preview .record-paper.paper-f4.paper-portrait{width:min(100%,794px)!important;height:auto!important;min-height:1247px!important;aspect-ratio:auto!important}
.paper-preview .record-paper.paper-a4.paper-landscape{width:min(100%,1123px)!important;min-height:794px!important;aspect-ratio:auto!important}
.paper-preview .record-paper.paper-f4.paper-landscape{width:min(100%,1247px)!important;min-height:794px!important;aspect-ratio:auto!important}
.record-paper:not(.aquadest-paper) .official-table{table-layout:fixed!important}
.record-paper:not(.aquadest-paper) .official-table thead th{height:34px!important;padding:2px 3px!important;font-size:8px!important;line-height:1.15!important}
.record-paper:not(.aquadest-paper) .official-table tbody td{height:36px!important;padding:1px 3px!important;font-size:8px!important;line-height:1.1!important}
.record-paper:not(.aquadest-paper) .official-table .sig-preview-large{max-height:30px!important;max-width:88%!important}
.record-paper:not(.aquadest-paper) .record-meta{padding:8px 8px!important}
.record-paper:not(.aquadest-paper) .record-notes{margin-top:8px!important}
/* F4 gets genuine additional vertical canvas rather than the same clipped A4 box. */
.paper-preview[data-paper-size="F4"]{align-items:flex-start}
@media(max-width:1100px){
 .paper-preview .record-paper.paper-a4.paper-portrait,.paper-preview .record-paper.paper-f4.paper-portrait{width:100%!important}
}

.gov-emblem img,.simolab-emblem img{width:100%;height:100%;object-fit:contain;display:block}.gov-emblem,.simolab-emblem{background:#fff!important;padding:5px;overflow:hidden}

.qr-access-mark img,.seal img{max-width:100%;max-height:100%;object-fit:contain}

/* v1.5.70 — QR Equipment five-menu navigation */
.public-equipment-bottom-nav{position:fixed!important;left:50%;bottom:18px;top:auto!important;transform:translateX(-50%);z-index:80;width:min(760px,calc(100vw - 24px));margin:0!important;padding:8px!important;background:rgba(10,28,43,.94)!important;border:1px solid rgba(135,190,224,.28);border-radius:22px;box-shadow:0 14px 38px rgba(0,0,0,.28);backdrop-filter:blur(14px);display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px!important}.public-equipment-bottom-nav button,.public-equipment-bottom-nav a{min-width:0;border:0!important;background:transparent!important;color:#b9d5e7!important;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 5px!important;border-radius:15px!important;font:inherit;cursor:pointer;text-align:center}.public-equipment-bottom-nav span{font-size:20px;line-height:1}.public-equipment-bottom-nav b{font-size:11px;line-height:1.15;white-space:normal}.public-equipment-bottom-nav .active{background:rgba(83,164,216,.18)!important;color:#7bc7f7!important;box-shadow:none!important}.equipment-passport-body .qr-mini-shell,.qr-mini-body .qr-mini-shell{padding-bottom:105px}@media(max-width:700px){.public-equipment-bottom-nav{bottom:10px;width:calc(100vw - 16px);border-radius:18px;padding:6px!important}.public-equipment-bottom-nav button,.public-equipment-bottom-nav a{padding:7px 2px!important}.public-equipment-bottom-nav b{font-size:9px}.public-equipment-bottom-nav span{font-size:18px}}
/* v1.5.72 — SPS equipment input controls */
.choice-grid{display:flex;flex-wrap:wrap;gap:.65rem}.choice-item{display:flex!important;align-items:center;gap:.55rem;padding:.7rem .85rem;border:1px solid var(--line,#29435f);border-radius:12px;background:rgba(255,255,255,.025);cursor:pointer}.choice-item input{width:18px!important;height:18px!important;margin:0!important}.choice-item span{font-weight:700}.form-grid fieldset,.qr-form fieldset{border:1px solid var(--line,#29435f);border-radius:14px;padding:.85rem 1rem}.form-grid legend,.qr-form legend{padding:0 .35rem;font-weight:800}

/* v1.5.73 — compact SPS-style multi-selects for equipment usage/care input only */
.multi-dropdown{position:relative;border:0!important;padding:0!important;background:transparent!important}
.multi-dropdown>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:.45rem}
.multi-dropdown>summary::-webkit-details-marker{display:none}
.multi-dropdown .multi-label{font-weight:800}
.multi-dropdown .multi-value{display:flex;align-items:center;min-height:48px;padding:.8rem 2.8rem .8rem 1rem;border:1px solid var(--line,#29435f);border-radius:14px;background:rgba(255,255,255,.025);font-weight:700;position:relative}
.multi-dropdown .multi-value:after{content:'⌄';position:absolute;right:1rem;font-size:1.25rem}
.multi-dropdown[open] .multi-value:after{content:'⌃'}
.multi-dropdown>.choice-grid{margin-top:.45rem;padding:.65rem;border:1px solid var(--line,#29435f);border-radius:14px;background:var(--panel,#0d2033);display:flex;max-height:220px;overflow:auto}
.multi-dropdown>.choice-grid .choice-item{width:100%}

/* v1.5.77 — compact view switch + persistent global theme */
.theme-toggle{width:42px;height:42px;border:1px solid var(--line,#d7e1e7);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#183040);display:inline-flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;flex:0 0 auto}.theme-toggle:hover{transform:translateY(-1px)}
.equipment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.equipment-toolbar form{flex:1}.view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #d5e1e7;border-radius:12px;background:#fff;white-space:nowrap}.view-switch button{border:0;background:transparent;color:#627985;padding:9px 12px;border-radius:8px;font-weight:750;cursor:pointer}.view-switch button.active{background:#123f5f;color:#fff}.equipment-collection[data-view="list"]{display:flex!important;flex-direction:column;gap:8px}.equipment-collection[data-view="list"] .asset-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:12px 16px;min-height:0}.equipment-collection[data-view="list"] .asset-main{display:grid;grid-template-columns:220px minmax(240px,1fr) minmax(180px,.7fr);align-items:center;gap:16px;padding:0}.equipment-collection[data-view="list"] .asset-main>div{display:flex;align-items:center;gap:10px}.equipment-collection[data-view="list"] .asset-main h3,.equipment-collection[data-view="list"] .asset-main p{margin:0}.equipment-collection[data-view="list"] .asset-actions{border:0;padding:0 0 0 14px;display:flex;gap:8px}.equipment-collection[data-view="list"] .asset-actions .button{white-space:nowrap}
html[data-theme="dark"]{color-scheme:dark;--bg:#0b1520;--panel:#111f2c;--ink:#e8f0f5;--muted:#9eb0bc;--line:#294050}html[data-theme="dark"] body{background:#0b1520!important;color:#e8f0f5!important}html[data-theme="dark"] .content{background:#0b1520!important}html[data-theme="dark"] .top,html[data-theme="dark"] .panel,html[data-theme="dark"] .asset-card,html[data-theme="dark"] .card,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .table-wrap{background:#111f2c!important;color:#e8f0f5!important;border-color:#294050!important}html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] strong,html[data-theme="dark"] label,html[data-theme="dark"] td,html[data-theme="dark"] th{color:#e8f0f5!important}html[data-theme="dark"] .muted,html[data-theme="dark"] small,html[data-theme="dark"] p{color:#9eb0bc!important}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0d1a26!important;color:#e8f0f5!important;border-color:#355063!important}html[data-theme="dark"] table thead,html[data-theme="dark"] th{background:#172938!important}html[data-theme="dark"] tr,html[data-theme="dark"] td{border-color:#294050!important}html[data-theme="dark"] .button:not(.primary),html[data-theme="dark"] button.ghost,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .view-switch{background:#132432!important;color:#dce8ef!important;border-color:#355063!important}html[data-theme="dark"] .view-switch button.active{background:#2677a7!important;color:#fff!important}html[data-theme="dark"] .badge{background:#183245!important;color:#cce8f7!important}html[data-theme="dark"] .sidebar{background:#0d3048!important}html[data-theme="dark"] .page-head .eyebrow{color:#67b7e3!important}
/* Official print/preview stays paper-white regardless of UI theme. */
html[data-theme="dark"] .record-paper,html[data-theme="dark"] .paper-preview .record-paper,html[data-theme="dark"] .record-paper *{color:#111!important}html[data-theme="dark"] .record-paper{background:#fff!important}html[data-theme="dark"] .record-paper td,html[data-theme="dark"] .record-paper th{background:#fff!important;border-color:#111!important}
@media(max-width:900px){.equipment-toolbar{align-items:stretch;flex-direction:column}.view-switch{align-self:flex-end}.equipment-collection[data-view="list"] .asset-card{display:block}.equipment-collection[data-view="list"] .asset-main{display:block}.equipment-collection[data-view="list"] .asset-main h3{margin-top:8px}.equipment-collection[data-view="list"] .asset-main p{margin-top:5px}.equipment-collection[data-view="list"] .asset-actions{padding:10px 0 0;margin-top:10px}}

/* v1.5.78 FINAL — authentication screens always keep the approved light appearance. */
html[data-theme="light"] .final-login{color:#183040!important}html[data-theme="light"] .final-login .login-brand-copy h1,html[data-theme="light"] .final-login .login-card-head h2,html[data-theme="light"] .final-login .institution-lockup strong{color:#123b5d!important}html[data-theme="light"] .final-login .login-card-head p,html[data-theme="light"] .final-login .login-brand-copy>p:last-child,html[data-theme="light"] .final-login .login-foot{color:#667985!important}html[data-theme="light"] .final-login .login-form>label{color:#314957!important}


/* v1.5.80 FINAL THEME — complete, persistent light/dark surfaces */
.theme-toggle{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border-radius:13px!important;font-size:25px!important;line-height:1!important} .theme-toggle [data-theme-icon]{display:block;font-size:25px;line-height:1}
html[data-theme="dark"]{--navy:#72b8e8;--navy2:#e9f3fa;--blue:#75bce9;--blue2:#58a8dc;--sky:#173449;--cyan:#16384b;--gold:#e6b95c;--ink:#e8f0f5;--muted:#9fb2bf;--line:#294253;--bg:#09131d;--white:#111f2c;--red:#f0808c;--green:#71c59f;--shadow:0 12px 34px rgba(0,0,0,.22);color-scheme:dark}
html[data-theme="dark"] body,html[data-theme="dark"] .content{background:var(--bg)!important;color:var(--ink)!important}
html[data-theme="dark"] .top,html[data-theme="dark"] .panel,html[data-theme="dark"] .hero,html[data-theme="dark"] .card,html[data-theme="dark"] .asset-card,html[data-theme="dark"] .stats article,html[data-theme="dark"] .quick,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] table,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .empty,html[data-theme="dark"] .qr-card,html[data-theme="dark"] .view-switch,html[data-theme="dark"] .division-card,html[data-theme="dark"] .permission-group{background:#111f2c!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none}
html[data-theme="dark"] .hero{background:linear-gradient(120deg,#111f2c 55%,#132b3b)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] .page-head h1,html[data-theme="dark"] .asset-card h3,html[data-theme="dark"] .stats b,html[data-theme="dark"] .stock-number,html[data-theme="dark"] label,html[data-theme="dark"] strong,html[data-theme="dark"] b,html[data-theme="dark"] td{color:var(--ink)!important}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] .muted,html[data-theme="dark"] .helper,html[data-theme="dark"] .asset-card p,html[data-theme="dark"] .section-title p,html[data-theme="dark"] td small,html[data-theme="dark"] .details dt{color:var(--muted)!important}
html[data-theme="dark"] th,html[data-theme="dark"] table thead{background:#172938!important;color:#b9cad5!important;border-color:var(--line)!important}
html[data-theme="dark"] tbody tr:hover{background:#152736!important}
html[data-theme="dark"] tr,html[data-theme="dark"] td{border-color:var(--line)!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .unit-input,html[data-theme="dark"] .multi-dropdown .multi-value{background:#0c1924!important;color:var(--ink)!important;border-color:#355164!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#78909f!important}
html[data-theme="dark"] .button:not(.primary),html[data-theme="dark"] button:not(.primary):not(.danger-btn),html[data-theme="dark"] .theme-toggle{background:#142633!important;color:#dce8ef!important;border-color:#355164!important}
html[data-theme="dark"] .quick span,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .kicker,html[data-theme="dark"] a:not(.primary):not(.scan-shortcut){color:#77c3ef}
html[data-theme="dark"] .stat-icon,html[data-theme="dark"] .context-chip{background:#173449!important;color:#8bd0f5!important}
html[data-theme="dark"] .badge{background:#183447!important;color:#cce9f8!important}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#081f30,#0b2940)!important}
html[data-theme="dark"] .choice-item,html[data-theme="dark"] .multi-dropdown>.choice-grid{background:#0e1c28!important;border-color:#355164!important;color:var(--ink)!important}
html[data-theme="dark"] .view-switch button{color:#afc2cf!important}html[data-theme="dark"] .view-switch button.active{background:#287eaf!important;color:#fff!important}
/* Official printable documents always remain paper-white. */
html[data-theme="dark"] .record-paper,html[data-theme="dark"] .paper-preview .record-paper,html[data-theme="dark"] .record-paper *,html[data-theme="dark"] .paper-preview .record-paper *{color:#111!important}html[data-theme="dark"] .record-paper,html[data-theme="dark"] .record-paper td,html[data-theme="dark"] .record-paper th{background:#fff!important;border-color:#111!important}

/* v1.5.81 — authoritative theme layer. Keep this LAST so older light-only rules cannot leak through. */
html[data-theme="dark"] body:not(.final-login){background:#09131d!important;color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) .content{background:#09131d!important;color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) .top{background:#0d1b27!important;border-color:#294253!important;color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) .brand strong,html[data-theme="dark"] body:not(.final-login) .user b{color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) .brand small,html[data-theme="dark"] body:not(.final-login) .user small{color:#9fb2bf!important}
html[data-theme="dark"] body:not(.final-login) .panel,html[data-theme="dark"] body:not(.final-login) .hero,html[data-theme="dark"] body:not(.final-login) .portal-hero,html[data-theme="dark"] body:not(.final-login) .portal-card,html[data-theme="dark"] body:not(.final-login) .qr-card,html[data-theme="dark"] body:not(.final-login) .asset-card,html[data-theme="dark"] body:not(.final-login) .intern-row,html[data-theme="dark"] body:not(.final-login) .intern-record-card,html[data-theme="dark"] body:not(.final-login) .dashboard-welcome,html[data-theme="dark"] body:not(.final-login) .summary-grid article,html[data-theme="dark"] body:not(.final-login) .announcement-card,html[data-theme="dark"] body:not(.final-login) .monitor-form-card,html[data-theme="dark"] body:not(.final-login) .table-wrap,html[data-theme="dark"] body:not(.final-login) .empty,html[data-theme="dark"] body:not(.final-login) .target-field,html[data-theme="dark"] body:not(.final-login) .attendance-actions>div{background:#111f2c!important;color:#e8f0f5!important;border-color:#294253!important;box-shadow:none!important}
html[data-theme="dark"] body:not(.final-login) h1,html[data-theme="dark"] body:not(.final-login) h2,html[data-theme="dark"] body:not(.final-login) h3,html[data-theme="dark"] body:not(.final-login) h4,html[data-theme="dark"] body:not(.final-login) strong,html[data-theme="dark"] body:not(.final-login) b,html[data-theme="dark"] body:not(.final-login) label,html[data-theme="dark"] body:not(.final-login) legend,html[data-theme="dark"] body:not(.final-login) td{color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) p,html[data-theme="dark"] body:not(.final-login) small,html[data-theme="dark"] body:not(.final-login) .muted,html[data-theme="dark"] body:not(.final-login) .helper,html[data-theme="dark"] body:not(.final-login) .summary-grid span{color:#9fb2bf!important}
html[data-theme="dark"] body:not(.final-login) .eyebrow,html[data-theme="dark"] body:not(.final-login) .kicker{color:#75bce9!important}
html[data-theme="dark"] body:not(.final-login) .context-box,html[data-theme="dark"] body:not(.final-login) .measure-box,html[data-theme="dark"] body:not(.final-login) input,html[data-theme="dark"] body:not(.final-login) select,html[data-theme="dark"] body:not(.final-login) textarea,html[data-theme="dark"] body:not(.final-login) .unit-input,html[data-theme="dark"] body:not(.final-login) .multi-dropdown .multi-value,html[data-theme="dark"] body:not(.final-login) .choice-item,html[data-theme="dark"] body:not(.final-login) .multi-dropdown>.choice-grid{background:#0c1924!important;color:#e8f0f5!important;border-color:#355164!important}
html[data-theme="dark"] body:not(.final-login) input::placeholder,html[data-theme="dark"] body:not(.final-login) textarea::placeholder{color:#78909f!important}
html[data-theme="dark"] body:not(.final-login) .measure-box b{background:#173449!important;color:#e8f0f5!important;border-color:#355164!important}
html[data-theme="dark"] body:not(.final-login) .signature-block canvas{background:#dfe7ec!important;border-color:#526b7b!important}
html[data-theme="dark"] body:not(.final-login) table,html[data-theme="dark"] body:not(.final-login) tbody{background:#111f2c!important;color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) th,html[data-theme="dark"] body:not(.final-login) thead{background:#172938!important;color:#b9cad5!important;border-color:#294253!important}
html[data-theme="dark"] body:not(.final-login) tr,html[data-theme="dark"] body:not(.final-login) td{border-color:#294253!important}
html[data-theme="dark"] body:not(.final-login) tbody tr:hover{background:#152736!important}
html[data-theme="dark"] body:not(.final-login) .ghost,html[data-theme="dark"] body:not(.final-login) .button:not(.primary),html[data-theme="dark"] body:not(.final-login) button:not(.primary):not(.danger-btn),html[data-theme="dark"] body:not(.final-login) .theme-toggle,html[data-theme="dark"] body:not(.final-login) .view-switch{background:#142633!important;color:#dce8ef!important;border-color:#355164!important}
html[data-theme="dark"] body:not(.final-login) .primary{background:#174e70!important;color:#fff!important}
html[data-theme="dark"] body:not(.final-login) .badge,html[data-theme="dark"] body:not(.final-login) .form-status{background:#183447!important;color:#cce9f8!important;border-color:#355164!important}
html[data-theme="dark"] body:not(.final-login) .sidebar{background:#0b2940!important;color:#e8f0f5!important}
html[data-theme="dark"] body:not(.final-login) .sidebar a{color:#d8e6ef!important}
html[data-theme="dark"] body:not(.final-login) .sidebar a.active,html[data-theme="dark"] body:not(.final-login) .sidebar a:hover{background:rgba(117,188,233,.16)!important;color:#fff!important}
html[data-theme="dark"] body:not(.final-login) .view-switch button{color:#afc2cf!important}html[data-theme="dark"] body:not(.final-login) .view-switch button.active{background:#287eaf!important;color:#fff!important}
/* Printed/official document remains white paper. */
html[data-theme="dark"] body:not(.final-login) .record-paper,html[data-theme="dark"] body:not(.final-login) .record-paper *,html[data-theme="dark"] body:not(.final-login) .paper-preview .record-paper,html[data-theme="dark"] body:not(.final-login) .paper-preview .record-paper *{background:#fff!important;color:#111!important;border-color:#111!important}
/* Authentication is intentionally theme-independent and always uses the approved light UI. */
html body.final-login,html[data-theme="dark"] body.final-login,html[data-theme="light"] body.final-login{background:#f2f5f7!important;color:#183040!important}
html body.final-login .login-brand-copy h1,html body.final-login .login-card-head h2,html body.final-login .institution-lockup strong{color:#123b5d!important}
html body.final-login .login-card-head p,html body.final-login .login-brand-copy>p:last-child,html body.final-login .login-foot,html body.final-login small{color:#667985!important}
html body.final-login .login-form>label{color:#314957!important}
html body.final-login .final-login-card{background:#fff!important;color:#183040!important;border-color:#d7e2e8!important}
html body.final-login .access-input input,html body.final-login input{background:#fff!important;color:#183040!important;border-color:#cbd7de!important}
html body.final-login .access-input input::placeholder,html body.final-login input::placeholder{color:#82939d!important}

/* v1.5.81 auth hard isolation */
html[data-theme="light"] body.auth-page .final-login{background:linear-gradient(120deg,#edf3f6 0%,#f8fafb 55%,#edf3f6 100%)!important;color:#243640!important}
body.auth-page .institution-lockup strong,body.auth-page .login-brand-copy h1,body.auth-page .login-card-head h2{color:#123b5d!important;opacity:1!important}
body.auth-page .institution-lockup span,body.auth-page .login-brand-copy .eyebrow{color:#72838d!important;opacity:1!important}
body.auth-page .login-brand-copy>p:last-child,body.auth-page .login-card-head p,body.auth-page .login-foot,body.auth-page .login-form>label{color:#5d717d!important;opacity:1!important}
body.auth-page .final-login-card{background:#fff!important;color:#243640!important;border-color:#d5e0e6!important}
body.auth-page .access-input input{background:#f7f9fa!important;color:#243640!important;border-color:#cbd8df!important}

/* v1.5.82 — dark canvas height fix ONLY. Do not alter fixed components/workflows. */
html[data-theme="dark"]{background:#09131d!important;min-height:100%!important}
html[data-theme="dark"] body{background:#09131d!important;min-height:100vh!important}
html[data-theme="dark"] body:not(.auth-page) .content{background:#09131d!important;min-height:100vh!important}
@media(max-width:800px){html[data-theme="dark"] body:not(.auth-page) .content{min-height:100vh!important}}

/* v1.5.86 Admin data pages — additive only */
.nav-admin-reference{display:grid;gap:4px;margin:8px 0 14px;padding-bottom:12px;border-bottom:1px solid var(--border,#dce4ee)}.nav-admin-reference a{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;text-decoration:none}.nav-section-label{font-size:10px;font-weight:800;letter-spacing:.12em;opacity:.62;padding:5px 12px}.admin-data-card{text-decoration:none;color:inherit;display:block}.admin-data-card:hover{transform:translateY(-1px)}.admin-table-search{max-width:360px}.admin-qr-thumb{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}
/* v1.5.87 — Admin legacy bulk import */
.admin-import-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;margin:16px 0}.admin-import-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px}.admin-import-actions{display:flex;flex-direction:column;gap:10px}.admin-import-actions form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.file-field{flex:1;min-width:210px}.file-field input{display:block;width:100%;margin-top:6px}
/* v1.5.88 contextual quality controls */
.context-quality-picker{display:inline-flex;align-items:center;gap:8px;margin:0}.context-quality-picker>span{font-weight:750;font-size:13px}.context-quality-picker select{min-width:210px;padding:10px 12px;border-radius:10px}
/* v1.6.02 validation readability: preserve layout, fix dark-mode contrast only */
html[data-theme="dark"] body:not(.final-login) .review .measure b{background:#173449!important;color:#e8f0f5!important;border:1px solid #355164!important}
html[data-theme="dark"] body:not(.final-login) .review .measure b.out{background:#4a2028!important;color:#ffb8c0!important;border-color:#7b3b45!important}
html[data-theme="dark"] body:not(.final-login) .validator-signature canvas{background:#eef3f6!important;border-color:#526b7b!important}
html[data-theme="dark"] body:not(.final-login) .validation-choice{background:#0c1924!important;color:#e8f0f5!important;border-color:#355164!important}
html[data-theme="dark"] body:not(.final-login) .validation-choice small{color:#9fb2bf!important}
.validation-choice{display:flex;grid-template-columns:none;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.validation-choice input{width:auto;min-height:auto}.validation-choice span{display:grid}.validation-return-list{display:grid;gap:10px}.validation-return-row{display:grid;grid-template-columns:minmax(180px,.8fr) 1fr auto;gap:10px;align-items:center}.validation-return-row textarea{min-height:44px}@media(max-width:800px){.validation-return-row{grid-template-columns:1fr}}

/* v1.6.04 — global responsive + theme contrast hardening.
   UI-only: no routes, forms, permissions, workflow, or database logic changed. */
:root{
  --ui-surface:#ffffff;
  --ui-surface-2:#f8fafc;
  --ui-text:#152331;
  --ui-muted:#607483;
  --ui-border:#d5e0e7;
  --ui-link:#175f94;
  --ui-focus:#2e7fc1;
}
html[data-theme="dark"]{
  --ui-surface:#111f2c;
  --ui-surface-2:#172938;
  --ui-text:#e8f0f5;
  --ui-muted:#a9bac5;
  --ui-border:#355164;
  --ui-link:#8ed0f5;
  --ui-focus:#75bce9;
}
/* Theme-safe text and surfaces. Keep official paper previews white below. */
body:not(.auth-page){color:var(--ui-text)}
body:not(.auth-page) .content :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,li){color:var(--ui-text)}
body:not(.auth-page) .content :where(p,small,.muted,.helper,.hint,.description,.subtitle){color:var(--ui-muted)}
body:not(.auth-page) .content a:not(.button):not(.primary):not(.danger-btn){color:var(--ui-link)}
body:not(.auth-page) :where(input,select,textarea){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
body:not(.auth-page) :where(input,textarea)::placeholder{color:var(--ui-muted);opacity:1}
body:not(.auth-page) select option{background:var(--ui-surface);color:var(--ui-text)}
body:not(.auth-page) :where(fieldset,.table-wrap,.modal-card,.dialog-card){border-color:var(--ui-border)}
body:not(.auth-page) :where(.panel,.card,.modal-card,.dialog-card,.asset-card,.empty){color:var(--ui-text)}
body:not(.auth-page) button:disabled,body:not(.auth-page) .button[aria-disabled="true"]{opacity:.58}
body:not(.auth-page) :focus-visible{outline:3px solid color-mix(in srgb,var(--ui-focus) 42%,transparent);outline-offset:2px}
html[data-theme="dark"] body:not(.auth-page) :where(.toolbar,.section-title,.page-head,.tabs){color:var(--ui-text)}
html[data-theme="dark"] body:not(.auth-page) :where(.tab,.context-quality-picker,.admin-import-actions,.form-actions,.button-row){color:var(--ui-text)}
html[data-theme="dark"] body:not(.auth-page) :where(.quick,.stats article,.hero,.context-chip,.status-dot){border-color:var(--ui-border)}
html[data-theme="dark"] body:not(.auth-page) .quick{background:var(--ui-surface);color:var(--ui-text)}
html[data-theme="dark"] body:not(.auth-page) .quick :where(b,strong){color:var(--ui-text)!important}
html[data-theme="dark"] body:not(.auth-page) .quick small{color:var(--ui-muted)!important}
html[data-theme="dark"] body:not(.auth-page) .stats article{background:var(--ui-surface);color:var(--ui-text)}
html[data-theme="dark"] body:not(.auth-page) .stats b{color:#b9ddf3!important}
html[data-theme="dark"] body:not(.auth-page) .hero{background:var(--ui-surface)!important;color:var(--ui-text)!important}
html[data-theme="dark"] body:not(.auth-page) .alert-shortcut{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
html[data-theme="dark"] body:not(.auth-page) .unit-input b{color:var(--ui-muted)!important}
html[data-theme="dark"] body:not(.auth-page) .details dt{color:var(--ui-muted)!important}
html[data-theme="dark"] body:not(.auth-page) .danger-text{color:#ff9eaa!important}
html[data-theme="dark"] body:not(.auth-page) .link{color:#ff9eaa!important}
/* Preserve semantic alert/badge contrast instead of letting generic text rules erase it. */
html[data-theme="dark"] body:not(.auth-page) .alert.success{background:#123326!important;color:#bdebd4!important;border-color:#285c45!important}
html[data-theme="dark"] body:not(.auth-page) .alert.danger{background:#3b1d24!important;color:#ffc1c8!important;border-color:#6f3440!important}
html[data-theme="dark"] body:not(.auth-page) .alert.warning{background:#3a3018!important;color:#ffe1a0!important;border-color:#68562a!important}
html[data-theme="dark"] body:not(.auth-page) .badge.available,html[data-theme="dark"] body:not(.auth-page) .badge.completed,html[data-theme="dark"] body:not(.auth-page) .badge.validated,html[data-theme="dark"] body:not(.auth-page) .badge.active{background:#173a2c!important;color:#bdebd4!important}
html[data-theme="dark"] body:not(.auth-page) .badge.in_use,html[data-theme="dark"] body:not(.auth-page) .badge.maintenance,html[data-theme="dark"] body:not(.auth-page) .badge.calibration,html[data-theme="dark"] body:not(.auth-page) .badge.submitted{background:#3b3119!important;color:#ffe0a0!important}
html[data-theme="dark"] body:not(.auth-page) .badge.damaged,html[data-theme="dark"] body:not(.auth-page) .badge.inactive,html[data-theme="dark"] body:not(.auth-page) .badge.rejected{background:#3c1f26!important;color:#ffc0c8!important}
/* Responsive foundation shared by every authenticated role/page. */
img,svg,video,canvas{max-width:100%}
.content{width:auto;min-width:0}
.panel,.hero,.card,.asset-card,.table-wrap,.form-grid>*{min-width:0}
.toolbar,.section-title,.page-head,.button-row,.form-actions,.quick-actions,.inline-form{flex-wrap:wrap}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.modal-card,.dialog-card{max-width:min(94vw,760px);max-height:90vh;overflow:auto}
.signature-block canvas,.validator-signature canvas{width:100%;max-width:100%;touch-action:none}
@media(max-width:1100px){
  .content{padding-left:24px;padding-right:24px}
  .split-grid,.passport .identity{grid-template-columns:1fr}
  .passport .identity{justify-items:start}
  .details{grid-template-columns:minmax(130px,.45fr) 1fr}
}
@media(max-width:800px){
  .top{height:68px;padding:0 12px;gap:8px}
  .brand-copy small{display:none}
  .brand strong{font-size:17px}
  .brand-mark{width:40px;height:40px}
  .top-actions{gap:7px;min-width:0}
  .top-actions .user>div{display:none}
  .scan-shortcut span{display:none}
  .scan-shortcut{padding:9px 11px}
  .sidebar{top:68px;width:min(84vw,300px);transform:translateX(-105%);transition:transform .2s ease;box-shadow:16px 0 40px rgba(0,0,0,.22)}
  body.nav-open .sidebar{transform:translateX(0)}
  .content{margin-left:0!important;padding:88px 16px 36px!important;max-width:none}
  .page-head{align-items:flex-start;gap:12px}
  .page-head h1,h1{font-size:clamp(24px,7vw,30px)}
  .hero{padding:20px;align-items:flex-start;gap:16px;flex-direction:column}
  .hero h2{font-size:24px}
  .hero-icon,.hero-mark{width:64px;height:64px;border-radius:17px;font-size:27px}
  .form-grid,.measure-grid{grid-template-columns:1fr!important}
  .wide{grid-column:auto}
  .toolbar,.toolbar form{width:100%;max-width:none}
  .toolbar{align-items:stretch;flex-direction:column}
  .toolbar form{flex-wrap:wrap}
  .toolbar form :where(input,select){flex:1 1 190px}
  .button-row,.form-actions,.qr-actions{width:100%}
  .button-row>.button,.button-row>button,.form-actions>.button,.form-actions>button{flex:1 1 150px}
  .quick{min-width:min(100%,160px);flex:1 1 160px}
  .stats,.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
  .details{grid-template-columns:1fr}.details dt{padding-bottom:2px}.details dd{padding-top:2px}
  .admin-import-grid{grid-template-columns:1fr!important}
  .context-quality-picker{width:100%;flex-wrap:wrap}.context-quality-picker select{width:100%;min-width:0}
  .tabs{padding-bottom:3px}
}
@media(max-width:520px){
  .content{padding-left:12px!important;padding-right:12px!important}
  .panel,.hero{padding:16px;border-radius:13px}
  .page-head{display:grid}
  .stats,.cards{grid-template-columns:1fr}
  .button-row,.form-actions,.qr-actions{display:grid!important;grid-template-columns:1fr}
  .button-row>* ,.form-actions>* ,.qr-actions>*{width:100%}
  .top .theme-toggle{width:38px;height:38px}
  .top .ghost{padding:6px}
  table{min-width:620px}
  .modal-card,.dialog-card{width:calc(100vw - 20px);max-width:none;border-radius:14px}
}
/* Never theme official/final paper: it must remain print-white with dark text. */
html[data-theme="dark"] body:not(.auth-page) :where(.record-paper,.record-paper *,.paper-preview .record-paper,.paper-preview .record-paper *){color:#111!important}
html[data-theme="dark"] body:not(.auth-page) :where(.record-paper,.record-paper td,.record-paper th,.paper-preview .record-paper,.paper-preview .record-paper td,.paper-preview .record-paper th){background:#fff!important;border-color:#111!important}

/* v1.6.05 — theme surface/foreground pairing */
html[data-theme="light"] body:not(.auth-page){--ui-surface:#fff;--ui-surface-2:#f7f9fb;--ui-text:#243640;--ui-muted:#687b86;--ui-border:#dce4e9}
html[data-theme="dark"] body:not(.auth-page){--ui-surface:#111f2c;--ui-surface-2:#172938;--ui-text:#e8f0f5;--ui-muted:#a9bac5;--ui-border:#355164}
body:not(.auth-page) .profile-onboarding-card,body:not(.auth-page) .face-enroll,body:not(.auth-page) .attendance-identity,body:not(.auth-page) .attendance-status{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
body:not(.auth-page) .profile-onboarding-card :where(h2,h3,label,strong,b),body:not(.auth-page) .face-enroll :where(h3,label,strong,b),body:not(.auth-page) .attendance-identity :where(strong,b),body:not(.auth-page) .attendance-status :where(strong,b){color:var(--ui-text)!important}
body:not(.auth-page) .profile-onboarding-card :where(p,small,.muted,.profile-section-title span,.optional),body:not(.auth-page) .face-enroll :where(p,small),body:not(.auth-page) .attendance-identity :where(small,span),body:not(.auth-page) .attendance-status small{color:var(--ui-muted)!important}
body:not(.auth-page) .profile-onboarding-card .profile-section-title{border-color:var(--ui-border)!important}
body:not(.auth-page) .profile-onboarding-card :where(input,select,textarea){background:var(--ui-surface-2)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
body:not(.auth-page) .profile-onboarding-card :where(input,textarea)::placeholder{color:var(--ui-muted)!important;opacity:1!important}
body:not(.auth-page) .profile-onboarding-card select option{background:var(--ui-surface)!important;color:var(--ui-text)!important}
body:not(.auth-page) .profile-onboarding-card .onboarding-note{background:var(--ui-surface-2)!important;color:var(--ui-muted)!important;border-color:var(--ui-border)!important}
html[data-theme="dark"] body:not(.auth-page) .upload-rule{background:#302817!important;color:#f2d895!important;border-color:#67572c!important}
html[data-theme="light"] body:not(.auth-page) .upload-rule{background:#fff7e8!important;color:#70551f!important;border-color:#ead6ae!important}
body:not(.auth-page) :where(.panel,.portal-card,.intern-row,.intern-record-card,.monitor-form-card,.context-box,.measure-box,.focus-stats article,.intern-row summary,.intern-detail-grid>div,.table-wrap,table){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
body:not(.auth-page) :where(.empty,.intern-empty){background:var(--ui-surface-2)!important;color:var(--ui-muted)!important;border-color:var(--ui-border)!important}
html[data-theme="dark"] body:not(.auth-page) :where(th,table thead){background:var(--ui-surface-2)!important;color:#c3d1da!important}
html[data-theme="light"] body:not(.auth-page) :where(th,table thead){background:#f3f6f8!important;color:#526a77!important}
body:not(.auth-page) td{color:var(--ui-text)!important}
html[data-theme="dark"] body:not(.auth-page) .ghost{background:#142633!important;color:#dce8ef!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body:not(.auth-page) .ghost{background:#fff!important;color:#123b5d!important;border-color:var(--ui-border)!important}
@media(max-width:800px){.profile-onboarding{width:100%;max-width:100%;margin-left:0;margin-right:0}.profile-grid{grid-template-columns:1fr!important}.profile-grid .span-2{grid-column:1!important}.face-enroll-grid{grid-template-columns:1fr!important}.nav-toggle{display:inline-flex!important;align-items:center;justify-content:center}}
@media(min-width:801px){.nav-toggle{display:none!important}}
/* v1.6.06 — responsive Penilaian & Sertifikat builder */
.intern-doc-builder{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:20px;align-items:start}.intern-doc-sidebar{display:grid;gap:13px;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.intern-doc-sidebar label{display:grid;gap:6px}.intern-doc-sidebar hr{width:100%;border:0;border-top:1px solid var(--line,#d9e1e7);margin:5px 0}.locked-profile,.score-summary,.document-preview-card{display:grid;gap:5px;padding:14px;border:1px solid var(--line,#d9e1e7);border-radius:12px;background:var(--surface,#fff);color:var(--text,#15232d)}.locked-profile span,.document-preview-card p{color:var(--muted,#647582)}.score-summary{grid-template-columns:1fr auto;align-items:center}.score-summary span:last-child{grid-column:1/-1}.intern-doc-preview{min-width:0}.document-preview-card{margin-bottom:14px}.document-preview-card>span{font-size:.75rem;font-weight:700;letter-spacing:.08em}.sticky-actions{position:sticky;bottom:0;padding:10px 0;background:var(--surface,#fff);z-index:2}@media(max-width:900px){.intern-doc-builder{grid-template-columns:1fr}.intern-doc-sidebar{position:static;max-height:none}.intern-doc-preview{order:-1}}@media(max-width:520px){.intern-doc-builder{gap:12px}.intern-doc-sidebar,.intern-doc-preview{padding:14px}.sticky-actions>*{width:100%}}
[data-theme="dark"] .intern-doc-sidebar,[data-theme="dark"] .intern-doc-preview,[data-theme="dark"] .locked-profile,[data-theme="dark"] .score-summary,[data-theme="dark"] .document-preview-card{background:#0d202b;color:#eef7fb;border-color:#34505f}[data-theme="dark"] .locked-profile span,[data-theme="dark"] .document-preview-card p,[data-theme="dark"] .intern-doc-sidebar p,[data-theme="dark"] .intern-doc-preview p{color:#b8cbd5}[data-theme="dark"] .sticky-actions{background:#0d202b}

/* v1.6.07 — Intern assessment uses the same editor + real paper-preview studio as official records. */
.intern-print-studio{grid-template-columns:minmax(420px,470px) minmax(0,1fr)!important;gap:20px!important;align-items:start}.intern-print-studio .intern-doc-sidebar{position:sticky;top:84px;max-height:calc(100vh - 104px);overflow:auto;padding:24px}.intern-doc-sidebar .score-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.intern-paper-preview{background:#dfe7ec;border-radius:26px;padding:24px;overflow:auto;display:block}.intern-paper-stack{display:grid;gap:24px;justify-items:center;min-width:0}.intern-paper-preview .record-paper{width:min(100%,794px)!important;min-height:1123px!important;background:#fff!important;color:#111!important;padding:52px!important;position:relative;font-family:Arial,sans-serif;box-shadow:0 1px 5px rgba(0,0,0,.12);overflow:hidden}.intern-letterhead{display:grid;grid-template-columns:72px 1fr 72px;gap:12px;align-items:center;text-align:center;font-size:12px;line-height:1.25}.intern-letterhead img{width:68px;height:68px;object-fit:contain}.intern-letterhead div{display:grid;gap:2px}.intern-letterhead strong{font-size:13px}.intern-letterhead small{font-size:9px}.intern-double-rule{height:5px;border-top:2px solid #111;border-bottom:1px solid #111;margin:10px 0 30px}.intern-paper-preview h2{text-align:center;font-size:18px;text-decoration:underline;margin:18px 0 6px;color:#111!important}.intern-doc-number{text-align:center;font-size:11px;margin-bottom:34px}.intern-letter-paper>p{font-size:12px;line-height:1.55;color:#111!important}.intern-identity{display:grid;grid-template-columns:185px 1fr;gap:7px 10px;margin:20px 14px 26px;font-size:12px}.intern-identity dt,.intern-identity dd{margin:0;color:#111!important}.intern-statement{margin:0 14px}.intern-sign-area{width:250px;margin:72px 0 0 auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;font-size:11px;color:#111}.manual-sign-space{height:72px;width:100%}.tte-preview{width:100%;min-height:80px;display:grid;grid-template-columns:58px 1fr;align-items:center;text-align:left;gap:8px;border:1px solid #555;padding:8px;margin:8px 0}.tte-preview[hidden]{display:none!important}.tte-preview img{width:54px;height:54px;object-fit:contain}.tte-preview small{font-size:9px;color:#111!important}.intern-sign-area strong{text-decoration:underline}.intern-sign-area span,.intern-sign-area b{color:#111!important}.intern-paper-preview footer{position:absolute;bottom:24px;left:0;right:0;text-align:center;font-size:8px;color:#111}.intern-assessment-paper>h2{margin:55px 0 45px}.intern-assessment-table{width:100%;border-collapse:collapse;font-size:10px;color:#111!important}.intern-assessment-table th,.intern-assessment-table td{border:1px solid #111;padding:7px 6px;background:#fff!important;color:#111!important}.intern-assessment-table th{text-align:center}.intern-assessment-table td:nth-child(2),.intern-assessment-table td:nth-child(4),.intern-assessment-table td:nth-child(5){text-align:center}.assessment-total td{font-weight:700}.intern-notes{font-size:9px;margin-top:34px;color:#111}.intern-notes p{color:#111!important}.intern-notes table{border-collapse:collapse}.intern-notes th,.intern-notes td{border:1px solid #111;padding:3px 8px;background:#fff!important;color:#111!important}.intern-assessment-paper .intern-sign-area{margin-top:22px}@media(max-width:1200px){.intern-print-studio{grid-template-columns:minmax(360px,420px) minmax(0,1fr)!important}.intern-paper-preview .record-paper{padding:38px!important}}@media(max-width:980px){.intern-print-studio{grid-template-columns:1fr!important}.intern-print-studio .intern-doc-sidebar{position:static;max-height:none}.intern-paper-preview{padding:14px}.intern-doc-sidebar .score-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.intern-doc-sidebar .score-grid,.intern-doc-sidebar .two{grid-template-columns:1fr!important}.intern-paper-preview{border-radius:16px;padding:8px}.intern-paper-preview .record-paper{padding:24px 18px!important;min-height:auto!important;aspect-ratio:210/297}.intern-letterhead{grid-template-columns:48px 1fr 48px;font-size:8px}.intern-letterhead img{width:44px;height:44px}.intern-letterhead strong{font-size:9px}.intern-letterhead small{font-size:6px}.intern-identity{grid-template-columns:120px 1fr;font-size:8px}.intern-letter-paper>p,.intern-sign-area{font-size:8px}.intern-assessment-table{font-size:6.5px}.intern-paper-preview h2{font-size:12px}}

/* v1.6.08 — collapsible global navigation + document preview parity hardening */
@media (min-width: 901px){
  .sidebar{transition:width .2s ease,padding .2s ease;overflow-x:hidden}
  .content{transition:margin-left .2s ease}
  .sidebar-collapse-toggle{position:sticky;top:0;margin:0 0 8px auto;width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer;z-index:2}
  body.sidebar-collapsed .sidebar{width:72px;padding-left:8px;padding-right:8px}
  body.sidebar-collapsed .content{margin-left:72px}
  body.sidebar-collapsed .sidebar-collapse-toggle{margin-left:auto;margin-right:auto;transform:rotate(180deg)}
  body.sidebar-collapsed .sidebar-head{display:none}
  body.sidebar-collapsed .sidebar nav{margin-top:4px}
  body.sidebar-collapsed .sidebar a,body.sidebar-collapsed .nav-label{justify-content:center;padding:10px 6px;font-size:0;gap:0;white-space:nowrap}
  body.sidebar-collapsed .sidebar a span,body.sidebar-collapsed .nav-label span{font-size:15px;width:28px}
  body.sidebar-collapsed .nav-count{position:absolute;margin:0 0 20px 26px;font-size:9px}
  body.sidebar-collapsed .intern-print-studio{grid-template-columns:minmax(430px,480px) minmax(0,1fr)!important}
}
@media (max-width:900px){.sidebar-collapse-toggle{display:none!important}}

.intern-print-studio{grid-template-columns:minmax(430px,480px) minmax(0,1fr)!important}
.intern-paper-preview{padding:22px!important}
.intern-paper-preview .record-paper{width:min(100%,794px)!important;min-height:1123px!important;padding:44px 50px!important;overflow:hidden!important}
.intern-letterhead{grid-template-columns:74px minmax(0,1fr) 74px!important;gap:14px!important;font-size:11px!important;line-height:1.18!important}
.intern-letterhead img{width:72px!important;height:72px!important}
.intern-letterhead strong{font-size:12.5px!important;line-height:1.18!important}
.intern-letterhead small{font-size:8px!important;line-height:1.18!important}
.intern-double-rule{margin:11px 0 38px!important}
.intern-paper-preview h2{font-size:18px!important;margin:0 0 7px!important;line-height:1.2!important}
.intern-doc-number{font-size:11px!important;margin-bottom:45px!important}
.intern-letter-paper>p{font-size:11px!important;line-height:1.45!important;margin-left:0!important;margin-right:0!important}
.intern-identity{grid-template-columns:190px minmax(0,1fr)!important;gap:5px 10px!important;margin:28px 20px 30px!important;font-size:11px!important;line-height:1.35!important}
.intern-identity dd{min-width:0;overflow-wrap:anywhere}
.intern-statement{margin:0 20px!important;line-height:1.5!important}
.intern-letter-paper .intern-sign-area{margin-top:78px!important}
.intern-sign-area{width:260px!important;font-size:10.5px!important;gap:3px!important;min-height:165px}
.manual-sign-space{height:62px!important}
.intern-sign-area strong:empty,.intern-sign-area span:empty{display:none!important}
.intern-sign-area strong{text-decoration:underline;text-underline-offset:2px}
.intern-assessment-paper>h2{margin:52px 0 44px!important}
.intern-assessment-paper>.intern-identity{margin:0 18px 28px!important}
.intern-assessment-table{table-layout:fixed!important;width:100%!important;font-size:9px!important;line-height:1.25!important}
.intern-assessment-table th,.intern-assessment-table td{padding:5px 5px!important;vertical-align:top!important;overflow-wrap:break-word!important}
.intern-assessment-table th:nth-child(1),.intern-assessment-table td:nth-child(1){width:35%!important}
.intern-assessment-table th:nth-child(2),.intern-assessment-table td:nth-child(2){width:15%!important}
.intern-assessment-table th:nth-child(3),.intern-assessment-table td:nth-child(3){width:25%!important}
.intern-assessment-table th:nth-child(4),.intern-assessment-table td:nth-child(4){width:10%!important}
.intern-assessment-table th:nth-child(5),.intern-assessment-table td:nth-child(5){width:15%!important}
.intern-assessment-table tbody tr:not(.assessment-total){height:38px!important}
.intern-assessment-table .assessment-total{height:22px!important}
.intern-notes{font-size:8.5px!important;margin-top:26px!important;line-height:1.3!important}
.intern-notes p{margin:7px 0!important}
.intern-notes table{width:190px!important;font-size:8px!important}
.intern-notes th,.intern-notes td{padding:2px 6px!important}
.intern-assessment-paper .intern-sign-area{margin-top:18px!important}
.tte-preview{min-height:74px!important;padding:6px!important;grid-template-columns:52px 1fr!important}
.tte-preview img{width:48px!important;height:48px!important}
@media(max-width:1200px) and (min-width:981px){.intern-print-studio{grid-template-columns:minmax(390px,440px) minmax(0,1fr)!important}.intern-paper-preview .record-paper{padding:38px!important}}
@media(max-width:980px){.intern-print-studio{grid-template-columns:1fr!important}.intern-paper-preview .record-paper{width:794px!important;max-width:100%!important}}
/* v1.6.10 — repeatable document rooms + explicit official signature blocks */
.document-rooms{display:grid;gap:9px}.document-rooms .section-title{align-items:center;margin:0}.document-room-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:center}.document-room-row .ghost{height:42px;padding:0;font-size:20px}.official-document-signature{width:270px;margin:24px 0 0 auto;color:#111!important;text-align:center;font-family:Arial,sans-serif;font-size:10px}.official-document-signature .manual-space{height:62px}.official-document-signature .tte-block{border:1px solid #777;padding:7px;display:grid;grid-template-columns:58px 1fr;gap:8px;align-items:center;text-align:left}.official-document-signature .tte-block img{width:54px;height:64px;object-fit:contain}.official-document-signature .tte-copy{display:grid;gap:2px}.official-document-signature strong,.official-document-signature span,.official-document-signature small{color:#111!important}.record-paper.has-official-signature{padding-bottom:175px!important}

/* v1.6.11 — true desktop sidebar collapse. Overrides legacy institutional !important widths. */
@media (min-width:801px){
  .sidebar-collapse-toggle{display:grid!important}
  body.sidebar-collapsed .sidebar{width:72px!important;padding-left:8px!important;padding-right:8px!important;overflow-x:hidden!important}
  body.sidebar-collapsed .content{margin-left:72px!important}
  body.sidebar-collapsed .sidebar-head{display:none!important}
  body.sidebar-collapsed .sidebar nav{margin-top:4px!important}
  body.sidebar-collapsed .sidebar a,body.sidebar-collapsed .nav-label{justify-content:center!important;padding:10px 6px!important;font-size:0!important;gap:0!important;white-space:nowrap!important;min-width:0!important}
  body.sidebar-collapsed .sidebar a span,body.sidebar-collapsed .nav-label span{font-size:15px!important;width:28px!important;margin:0!important}
  body.sidebar-collapsed .nav-label{height:38px!important;overflow:hidden!important}
  body.sidebar-collapsed .nav-count{position:absolute!important;margin:0 0 20px 26px!important;font-size:9px!important}
}
@media (max-width:800px){.sidebar-collapse-toggle{display:none!important}}

/* v1.6.12 — Official TTE visual source of truth. */
.official-document-signature .tte-block{
  width:270px!important; min-height:86px!important; box-sizing:border-box!important;
  border:1px solid #d9d9d9!important; padding:9px 10px!important;
  display:grid!important; grid-template-columns:62px minmax(0,1fr)!important;
  gap:10px!important; align-items:start!important; text-align:left!important;
  background:#fff!important; color:#111!important;
}
.official-document-signature .tte-block img{width:58px!important;height:64px!important;object-fit:contain!important;margin:0!important}
.official-document-signature .tte-copy{display:flex!important;flex-direction:column!important;gap:0!important;line-height:1.15!important;padding-top:0!important}
.official-document-signature .tte-copy small,.official-document-signature .tte-copy strong,.official-document-signature .tte-copy span{font-family:Arial,sans-serif!important;font-size:9px!important;font-weight:400!important;line-height:1.15!important;color:#111!important;margin:0!important}
.official-document-signature .tte-copy strong{margin-top:2px!important;text-transform:none!important}
.official-document-signature .tte-copy span:nth-of-type(1){margin-top:9px!important}

.intern-sign-area .manual-sign-content{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.intern-sign-area .tte-preview{
  width:100%!important;min-height:78px!important;box-sizing:border-box!important;
  border:1px solid #d9d9d9!important;padding:8px 9px!important;margin:0!important;
  display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important;
  align-items:start!important;text-align:left!important;background:#fff!important;color:#111!important;
}
.intern-sign-area .tte-preview[hidden]{display:none!important}
.intern-sign-area[hidden]{display:none!important}
.intern-sign-area .tte-preview img{width:54px!important;height:60px!important;object-fit:contain!important;margin:0!important}
.intern-sign-area .tte-preview-copy{display:flex!important;flex-direction:column!important;gap:0!important;line-height:1.15!important}
.intern-sign-area .tte-preview-copy small,.intern-sign-area .tte-preview-copy span{font-family:Arial,sans-serif!important;font-size:8.5px!important;font-weight:400!important;line-height:1.15!important;color:#111!important;margin:0!important;text-decoration:none!important}
.intern-sign-area .tte-preview-copy span:first-of-type{margin-top:2px!important}
.intern-sign-area .tte-preview-copy span:nth-of-type(2){margin-top:9px!important}

/* v1.6.13 — official A4/F4 page utilization + strict 15-row pagination. */
.paper-preview .official-record-page{display:flex!important;flex-direction:column!important;box-sizing:border-box!important}
.paper-preview .official-record-page.paper-a4.paper-portrait{width:min(100%,794px)!important;min-height:1123px!important;height:1123px!important;padding:38px 46px 34px!important}
.paper-preview .official-record-page.paper-f4.paper-portrait{width:min(100%,794px)!important;min-height:1247px!important;height:1247px!important;padding:38px 46px 34px!important}
.paper-preview .official-record-page .official-table{width:100%!important;table-layout:fixed!important}
.paper-preview .official-record-page .official-table thead th{height:34px!important;padding:2px 3px!important;font-size:8px!important}
.paper-preview .official-record-page.paper-a4.paper-portrait .official-table tbody td{height:43px!important;padding:1px 3px!important;font-size:8px!important}
.paper-preview .official-record-page.paper-f4.paper-portrait .official-table tbody td{height:50px!important;padding:1px 3px!important;font-size:8px!important}
.paper-preview .official-record-page .official-document-signature{margin-top:auto!important;margin-bottom:0!important}
.paper-preview .aquadest-paper .aqua-columns.aqua-single-page{display:block!important;width:100%!important;margin-top:12px!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table{width:100%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(1){width:7%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(2){width:20%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(3){width:10%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(4){width:15%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(5){width:24%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table th:nth-child(6){width:24%!important}
.paper-preview .aquadest-paper .aqua-single-page .official-table thead th{height:34px!important;font-size:7.5px!important;padding:2px!important}
.paper-preview .aquadest-paper.paper-a4.paper-portrait .aqua-single-page .official-table tbody td{height:43px!important;font-size:8px!important}
.paper-preview .aquadest-paper.paper-f4.paper-portrait .aqua-single-page .official-table tbody td{height:50px!important;font-size:8px!important}
@media(max-width:800px){.paper-preview .official-record-page.paper-a4.paper-portrait,.paper-preview .official-record-page.paper-f4.paper-portrait{height:auto!important;min-height:0!important;aspect-ratio:210/297}.paper-preview .official-record-page.paper-f4.paper-portrait{aspect-ratio:210/330}}
/* v1.6.15 — equipment official-print studio; keep equipment's own 9-column document format. */
.equipment-official-table th:nth-child(1){width:5%}.equipment-official-table th:nth-child(2){width:10%}.equipment-official-table th:nth-child(3),.equipment-official-table th:nth-child(4){width:7%}.equipment-official-table th:nth-child(5){width:13%}.equipment-official-table th:nth-child(6){width:14%}.equipment-official-table th:nth-child(7){width:17%}.equipment-official-table th:nth-child(8){width:12%}.equipment-official-table th:nth-child(9){width:15%}
.equipment-record-page .official-table th,.equipment-record-page .official-table td{overflow-wrap:anywhere;line-height:1.15}
.validation-sign-dialog,.validation-return-row .reason-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface,#fff)}
.validation-sign-dialog::backdrop,.validation-return-row .reason-dialog::backdrop{background:rgba(5,25,43,.65)}
.validation-sign-dialog .validator-signature,.validation-return-row .reason-dialog textarea{width:100%;box-sizing:border-box}
.validation-return-row .reason-dialog textarea{min-height:100px}
.validation-sign-dialog .button-row,.validation-return-row .reason-dialog .button-row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}

/* RC12 direct release sweep — official PKL/Magang output controls */
.output-mode-picker{border:1px solid var(--line,#d9e1e7);border-radius:14px;padding:14px;margin:0;display:grid;gap:8px}.output-mode-picker legend{font-weight:800;padding:0 6px}.output-mode-picker>p{margin:0;color:var(--muted,#647582);font-size:.82rem}.output-mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.output-mode-options label{cursor:pointer}.output-mode-options input{position:absolute;opacity:0;pointer-events:none}.output-mode-options span{display:grid;gap:2px;height:100%;padding:10px;border:1px solid var(--line,#d9e1e7);border-radius:10px;background:var(--surface,#fff)}.output-mode-options input:checked+span{outline:2px solid currentColor;outline-offset:1px}.output-mode-options small{font-size:.7rem;color:var(--muted,#647582)}
.intern-paper-preview .record-paper{font-family:Arial,Helvetica,sans-serif!important}.intern-assessment-paper>h2{margin-top:48px!important;margin-bottom:48px!important}.intern-assessment-paper .intern-identity{margin-bottom:34px!important}.intern-assessment-table th,.intern-assessment-table td{padding:5px 5px!important}.intern-notes{margin-top:30px!important}.intern-assessment-paper .intern-sign-area{margin-top:16px!important}.intern-letterhead img{object-fit:contain!important;background:transparent!important}
@media(max-width:620px){.output-mode-options{grid-template-columns:1fr}}

/* DIRECT FIX 5 — intern official-paper preview must fit inside its preview column. */
.intern-paper-preview .record-paper{
  box-sizing:border-box!important;
  max-width:100%!important;
}
.intern-paper-preview .intern-assessment-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-table th:nth-child(1),
.intern-paper-preview .intern-assessment-table td:nth-child(1){width:26%!important}
.intern-paper-preview .intern-assessment-table th:nth-child(2),
.intern-paper-preview .intern-assessment-table td:nth-child(2){width:16%!important}
.intern-paper-preview .intern-assessment-table th:nth-child(3),
.intern-paper-preview .intern-assessment-table td:nth-child(3){width:25%!important}
.intern-paper-preview .intern-assessment-table th:nth-child(4),
.intern-paper-preview .intern-assessment-table td:nth-child(4){width:12%!important}
.intern-paper-preview .intern-assessment-table th:nth-child(5),
.intern-paper-preview .intern-assessment-table td:nth-child(5){width:21%!important}
.intern-paper-preview .intern-assessment-table th,
.intern-paper-preview .intern-assessment-table td{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
@media(max-width:1200px) and (min-width:981px){
  .intern-print-studio{grid-template-columns:minmax(360px,410px) minmax(0,1fr)!important}
  .intern-paper-preview{padding:14px!important}
  .intern-paper-preview .record-paper{padding:34px!important}
}
/* FINAL SWEEP: compact document mode + full A4 intern preview. */
.document-mode-select{display:grid;gap:7px}.document-mode-select select{width:100%;color:var(--text);background:var(--surface);border:1px solid var(--line)}.document-mode-select small{color:var(--muted)}
.intern-paper-preview .record-paper{height:1123px!important;min-height:1123px!important;box-sizing:border-box!important;overflow:hidden!important}
.intern-assessment-paper>h2{margin:34px 0 28px!important}.intern-assessment-paper>.intern-identity{margin:0 18px 20px!important}.intern-assessment-table th,.intern-assessment-table td{padding:4px 5px!important}.intern-notes{margin-top:20px!important}.intern-assessment-paper .intern-sign-area{margin-top:10px!important}.intern-assessment-paper .manual-sign-space{height:48px!important}
.record-letterhead img,.intern-letterhead img{background:transparent!important}

/* FINAL assessment fit — keep the complete PKL/Magang assessment sheet inside one A4 preview. */
.intern-paper-preview .intern-assessment-paper{
  padding:40px 46px!important;
  font-size:10px!important;
}
.intern-paper-preview .intern-assessment-paper>h2{
  font-size:16px!important;
  margin:24px 0 20px!important;
}
.intern-paper-preview .intern-assessment-paper>.intern-identity{
  grid-template-columns:170px 1fr!important;
  gap:4px 8px!important;
  margin:0 14px 16px!important;
  font-size:10.5px!important;
  line-height:1.2!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  font-size:8px!important;
  line-height:1.12!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,
.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{
  padding:3px 4px!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table tbody tr:not(.assessment-total){
  height:30px!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table .assessment-total{
  height:18px!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  margin-top:14px!important;
  font-size:8px!important;
  line-height:1.18!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes p{
  margin:7px 0 8px!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes th,
.intern-paper-preview .intern-assessment-paper .intern-notes td{
  padding:2px 7px!important;
}
.intern-paper-preview .intern-assessment-paper .intern-sign-area{
  width:220px!important;
  margin-top:8px!important;
  font-size:9px!important;
  gap:2px!important;
}
.intern-paper-preview .intern-assessment-paper .manual-sign-space{
  height:30px!important;
}
.intern-paper-preview .intern-assessment-paper .tte-preview{
  min-height:58px!important;
  padding:5px!important;
  margin:4px 0!important;
}
.intern-paper-preview .intern-assessment-paper .tte-preview img{
  width:42px!important;
  height:42px!important;
}
.intern-paper-preview .intern-assessment-paper footer{
  bottom:14px!important;
}

/* FINAL assessment rebuild — balanced A4 page 2, readable without cropping. */
.intern-paper-preview .intern-assessment-paper{
  padding:48px 52px 42px!important;
  font-size:11px!important;
  display:block!important;
}
.intern-paper-preview .intern-assessment-paper>b:first-child{
  display:block!important;
  font-size:11px!important;
  margin:0 0 34px!important;
}
.intern-paper-preview .intern-assessment-paper>h2{
  font-size:17px!important;
  line-height:1.2!important;
  margin:0 0 38px!important;
}
.intern-paper-preview .intern-assessment-paper>.intern-identity{
  grid-template-columns:190px 1fr!important;
  gap:6px 10px!important;
  margin:0 20px 32px!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  font-size:9px!important;
  line-height:1.2!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,
.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{
  padding:5px 6px!important;
  vertical-align:top!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table tbody tr:not(.assessment-total){height:43px!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table .assessment-total{height:24px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  margin-top:25px!important;
  font-size:9px!important;
  line-height:1.25!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes p{margin:9px 0 12px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes table{width:100%!important}
.intern-paper-preview .intern-assessment-paper .intern-notes th,
.intern-paper-preview .intern-assessment-paper .intern-notes td{padding:3px 8px!important}
.intern-paper-preview .intern-assessment-paper .intern-sign-area{
  width:245px!important;
  margin-top:18px!important;
  font-size:10px!important;
  gap:3px!important;
}
.intern-paper-preview .intern-assessment-paper .manual-sign-space{height:54px!important}
.intern-paper-preview .intern-assessment-paper .tte-preview{min-height:72px!important;padding:7px!important;margin:5px 0!important}
.intern-paper-preview .intern-assessment-paper .tte-preview img{width:50px!important;height:50px!important}
.intern-paper-preview .intern-assessment-paper footer{bottom:18px!important}


/* Assessment horizontal fit — 2026-09-26.
   Keep the accepted vertical rhythm. Narrow only the assessment tables and center them. */
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  width:86%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  font-size:9px!important;
  line-height:1.2!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,
.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{
  padding:5px 6px!important;
  vertical-align:top!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table tbody tr:not(.assessment-total){height:43px!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table .assessment-total{height:24px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  width:86%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  margin-top:25px!important;
  font-size:9px!important;
  line-height:1.25!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes p{margin:9px 0 12px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes table{
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes th,
.intern-paper-preview .intern-assessment-paper .intern-notes td{padding:3px 8px!important}

/* ASSESSMENT RIGHT-EDGE FIX — 2026-09-26
   The paper itself is correct. Constrain both assessment tables to the paper's
   inner printable box with equal physical left/right insets. Do not change
   vertical rhythm, title, identity, or signature block. */
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  width:calc(100% - 96px)!important;
  max-width:calc(100% - 96px)!important;
  margin-left:48px!important;
  margin-right:48px!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,
.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{
  box-sizing:border-box!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  width:calc(100% - 96px)!important;
  max-width:calc(100% - 96px)!important;
  margin-left:48px!important;
  margin-right:48px!important;
  box-sizing:border-box!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes table{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes th,
.intern-paper-preview .intern-assessment-paper .intern-notes td{
  box-sizing:border-box!important;
}

/* ASSESSMENT LEFT-SAFE FIT — 2026-09-26
   Final horizontal correction: shrink toward the left edge of the printable
   content box. Explicitly cancel the global table min-width that caused the
   right edge to overflow. Vertical layout remains untouched. */
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  width:78%!important;
  max-width:78%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  width:78%!important;
  max-width:78%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}

/* ASSESSMENT CENTERED SAFE FIT — 2026-09-26
   Keep the already-safe 78% width, but center it symmetrically inside the
   assessment paper. No vertical/layout changes. */
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  width:78%!important;
  max-width:78%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  width:78%!important;
  max-width:78%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}

/* ASSESSMENT BIODATA-SPAN FIT — 2026-09-26
   Horizontal-only final sizing. Match the assessment tables to the visual span
   of the biodata block: from the left edge of the identity labels to roughly
   the end of the longest address line. Keep both tables identical and centered.
   Do not alter vertical rhythm, typography, or signature placement. */
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{
  width:91.5%!important;
  max-width:91.5%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes{
  width:91.5%!important;
  max-width:91.5%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.intern-paper-preview .intern-assessment-paper .intern-notes table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  table-layout:fixed!important;
}

/* Letter page balance patch — 2026-09-26
   Scope: Surat Keterangan PKL/Magang only. Assessment page is intentionally untouched. */
.intern-paper-preview .intern-letter-paper .intern-doc-number{
  margin-bottom:36px!important;
}
.intern-paper-preview .intern-letter-paper .intern-identity{
  margin-top:30px!important;
  margin-bottom:34px!important;
  gap:7px 10px!important;
  line-height:1.42!important;
}
.intern-paper-preview .intern-letter-paper .intern-statement{
  font-size:11.25px!important;
  line-height:1.62!important;
  max-width:100%!important;
}
.intern-paper-preview .intern-letter-paper .intern-sign-area{
  margin-top:132px!important;
  margin-right:18px!important;
}
.intern-paper-preview .intern-letter-paper .manual-sign-space{
  height:76px!important;
}

/* SOURCE-TRUTH SURKET — 2026-09-26
   A4 only. Geometry follows the supplied official Magang/PKL PDFs.
   Preview is a scaled A4 page; browser width must not reflow document geometry. */
.intern-paper-preview .record-paper{width:794px!important;min-width:794px!important;height:1123px!important;min-height:1123px!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;}
.intern-paper-preview .intern-letter-paper{padding:64px 76px 34px!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead{grid-template-columns:74px 1fr!important;column-gap:12px!important;width:100%!important;align-items:center!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead>img:first-child{width:68px!important;height:68px!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead>img:last-child{display:none!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead>div{font-size:13px!important;line-height:1.16!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead strong{font-size:15px!important;}
.intern-paper-preview .intern-letter-paper .intern-letterhead small{font-size:10px!important;line-height:1.2!important;}
.intern-paper-preview .intern-letter-paper .intern-double-rule{margin:10px 0 32px!important;}
.intern-paper-preview .intern-letter-paper>h2{font-size:20px!important;font-weight:500!important;margin:0 0 3px!important;}
.intern-paper-preview .intern-letter-paper .intern-doc-number{font-size:13px!important;margin:0 0 55px!important;}
.intern-paper-preview .intern-letter-paper>p:not(.intern-statement){font-size:13px!important;text-align:center!important;margin:0 0 45px!important;line-height:1.35!important;}
.intern-paper-preview .intern-letter-paper .intern-identity{width:520px!important;margin:0 auto 45px!important;grid-template-columns:220px 1fr!important;gap:5px 10px!important;font-size:13px!important;line-height:1.25!important;}
.intern-paper-preview .intern-letter-paper .intern-identity dt{text-align:right!important;}
.intern-paper-preview .intern-letter-paper .intern-identity dd{font-weight:400!important;}
.intern-paper-preview .intern-letter-paper .intern-identity dd:first-of-type b{font-size:20px!important;display:block!important;text-align:center!important;margin-left:-220px!important;margin-bottom:26px!important;}
.intern-paper-preview .intern-letter-paper .intern-statement{width:500px!important;margin:0 auto!important;text-align:center!important;font-size:13px!important;line-height:1.45!important;}
.intern-paper-preview .intern-letter-paper .intern-sign-area{width:300px!important;margin:76px 0 0 auto!important;font-size:12px!important;gap:4px!important;}
.intern-paper-preview .intern-letter-paper .manual-sign-space{height:72px!important;}
.intern-paper-preview .intern-letter-paper .tte-preview{min-height:95px!important;grid-template-columns:62px 1fr!important;padding:9px!important;}
.intern-paper-preview .intern-letter-paper .tte-preview img{width:58px!important;height:58px!important;}
.intern-paper-preview .intern-letter-paper footer{bottom:28px!important;}

/* Page 2 follows the supplied official assessment sheet proportions. */
.intern-paper-preview .intern-assessment-paper{padding:34px 18px 34px!important;}
.intern-paper-preview .intern-assessment-paper>h2{font-size:18px!important;margin:48px 0 54px!important;}
.intern-paper-preview .intern-assessment-paper>.intern-identity{width:650px!important;margin:0 auto 48px!important;grid-template-columns:235px 1fr!important;font-size:12px!important;gap:5px 10px!important;}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{width:650px!important;max-width:650px!important;margin:0 auto!important;font-size:10px!important;table-layout:fixed!important;}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{padding:5px 6px!important;}
.intern-paper-preview .intern-assessment-paper .intern-notes{width:650px!important;max-width:650px!important;margin:42px auto 0!important;font-size:9px!important;}
.intern-paper-preview .intern-assessment-paper .intern-notes table{width:175px!important;max-width:175px!important;margin-left:18px!important;}
.intern-paper-preview .intern-assessment-paper .intern-sign-area{width:260px!important;margin:18px 70px 0 auto!important;}
@media(max-width:1200px){.intern-paper-preview .record-paper{transform-origin:top center;}}
@media(max-width:1200px){
 .intern-paper-preview .intern-letter-paper{padding:64px 76px 34px!important;}
 .intern-paper-preview .intern-assessment-paper{padding:34px 18px 34px!important;}
}

/* FINAL: Surat Keterangan body follows official letter flow; assessment page is intentionally untouched. */
.intern-paper-preview .intern-letter-paper .intern-letterhead{
  grid-template-columns:74px minmax(0,1fr) 74px!important;
  column-gap:12px!important;
}
.intern-paper-preview .intern-letter-paper .intern-letterhead>img:first-child,
.intern-paper-preview .intern-letter-paper .intern-letterhead>img:last-child{
  display:block!important;width:68px!important;height:68px!important;object-fit:contain!important;background:transparent!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-intro{
  width:auto!important;margin:0 0 22px!important;text-align:left!important;font-size:14px!important;line-height:1.5!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-person{
  margin:0 0 8px!important;text-align:left!important;font-size:14px!important;line-height:1.45!important;color:#111!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-person strong{font-size:14px!important;font-weight:700!important;text-transform:none!important;color:#111!important;}
.intern-paper-preview .intern-letter-paper .intern-letter-identity{
  display:grid!important;grid-template-columns:205px minmax(0,1fr)!important;gap:5px 10px!important;
  width:100%!important;margin:0 0 28px!important;font-size:14px!important;line-height:1.45!important;color:#111!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-identity dt,
.intern-paper-preview .intern-letter-paper .intern-letter-identity dd{margin:0!important;text-align:left!important;color:#111!important;font-weight:400!important;min-width:0!important;overflow-wrap:anywhere!important;}
.intern-paper-preview .intern-letter-paper .intern-statement{
  width:100%!important;margin:0!important;text-align:left!important;font-size:14px!important;line-height:1.55!important;color:#111!important;
}

/* FINAL OFFICIAL INTERN DOCUMENT COMPOSITION — 2026-09-26 */
.intern-paper-preview .intern-letter-paper .intern-letter-intro{width:100%!important;margin:0 0 42px!important;text-align:center!important;font-size:14px!important;line-height:1.4!important}
.intern-paper-preview .intern-letter-paper .intern-letter-person{width:100%!important;margin:0 0 38px!important;text-align:center!important;line-height:1.2!important}
.intern-paper-preview .intern-letter-paper .intern-letter-person strong{display:block!important;font-size:24px!important;font-weight:700!important;text-transform:uppercase!important;text-align:center!important}
.intern-paper-preview .intern-letter-paper .intern-letter-identity{display:grid!important;width:560px!important;grid-template-columns:230px minmax(0,1fr)!important;gap:5px 10px!important;margin:0 auto 42px!important;font-size:14px!important;line-height:1.32!important}
.intern-paper-preview .intern-letter-paper .intern-letter-identity dt{margin:0!important;text-align:right!important;font-weight:400!important}
.intern-paper-preview .intern-letter-paper .intern-letter-identity dd{margin:0!important;text-align:left!important;font-weight:400!important;overflow-wrap:anywhere!important}
.intern-paper-preview .intern-letter-paper .intern-statement{width:540px!important;margin:0 auto!important;text-align:center!important;font-size:14px!important;line-height:1.48!important}
.intern-paper-preview .intern-letter-paper .intern-sign-area{width:300px!important;margin:70px 12px 0 auto!important}
.intern-paper-preview .intern-assessment-paper{padding:48px 72px 34px!important;font-family:Arial,Helvetica,sans-serif!important}
.intern-paper-preview .intern-assessment-paper>b:first-child{display:block!important;font-size:13px!important;margin:0!important}
.intern-paper-preview .intern-assessment-paper>h2{font-size:19px!important;margin:58px 0 48px!important;text-align:center!important}
.intern-paper-preview .intern-assessment-paper>.intern-identity{width:100%!important;margin:0 0 34px!important;grid-template-columns:210px minmax(0,1fr)!important;gap:5px 10px!important;font-size:13px!important;line-height:1.25!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table{width:100%!important;max-width:100%!important;margin:0!important;font-size:11px!important;table-layout:fixed!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table th,.intern-paper-preview .intern-assessment-paper .intern-assessment-table td{padding:5px 7px!important;line-height:1.22!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table tbody tr:not(.assessment-total){height:46px!important}
.intern-paper-preview .intern-assessment-paper .intern-assessment-table .assessment-total{height:23px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes{width:100%!important;max-width:100%!important;margin:38px 0 0!important;font-size:10px!important}
.intern-paper-preview .intern-assessment-paper .intern-notes table{width:190px!important;max-width:190px!important;margin:10px 0 0 18px!important}
.intern-paper-preview .intern-assessment-paper .intern-sign-area{width:270px!important;margin:24px 8px 0 auto!important}

/* FINAL SURKET ALIGNMENT: official body left-aligned; participant name alone centered. */
.intern-paper-preview .intern-letter-paper .intern-letter-intro{
  width:100%!important;
  margin:0 0 34px!important;
  text-align:left!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-person{
  width:100%!important;
  margin:0 0 34px!important;
  text-align:center!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-person strong{
  display:block!important;
  text-align:center!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-identity{
  width:100%!important;
  grid-template-columns:205px minmax(0,1fr)!important;
  margin:0 0 34px!important;
}
.intern-paper-preview .intern-letter-paper .intern-letter-identity dt,
.intern-paper-preview .intern-letter-paper .intern-letter-identity dd{
  text-align:left!important;
}
.intern-paper-preview .intern-letter-paper .intern-statement{
  width:100%!important;
  margin:0!important;
  text-align:left!important;
}
\n\n/* RC13 stabilization: readable light dialogs even while the application uses dark theme. */\nhtml[data-theme="dark"] :where(.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog){background:#fff!important;color:#172532!important;border-color:#d7e0e6!important}\nhtml[data-theme="dark"] :where(.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog) :where(h1,h2,h3,h4,strong,b,label,legend,.kicker){color:#172532!important}\nhtml[data-theme="dark"] :where(.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog) :where(p,small,.muted){color:#627482!important}\nhtml[data-theme="dark"] :where(.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog) :where(input,select,textarea){background:#fff!important;color:#172532!important;border-color:#b9c8d2!important}\nhtml[data-theme="dark"] :where(.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog) .validator-signature canvas{background:#f7fafb!important;border-color:#8da4b3!important}\nhtml[data-theme="dark"] .qd-dialog-head,html[data-theme="dark"] .qd-dialog-actions{background:#fff!important;border-color:#d7e0e6!important}\n.qd-dialog>form{max-height:88vh;display:flex;flex-direction:column}.qd-dialog .qd-editor,.qd-dialog .stack{overflow:auto;min-height:0}.validation-sign-dialog,.analyst-signature-dialog{max-height:calc(100dvh - 24px);overflow:auto}\n.validator-signature canvas,[data-equipment-signature],#temperature-signature-pad,#aquadest-signature-pad{height:140px!important}\n
/* RC13 stabilization: readable dialogs in both themes */
dialog.reason-dialog,dialog.qd-dialog{background:#fff!important;color:#17232d!important;border:1px solid #cbd8df!important}
dialog.reason-dialog h1,dialog.reason-dialog h2,dialog.reason-dialog h3,dialog.reason-dialog h4,dialog.reason-dialog label,dialog.reason-dialog b,dialog.reason-dialog strong,
dialog.qd-dialog h1,dialog.qd-dialog h2,dialog.qd-dialog h3,dialog.qd-dialog h4,dialog.qd-dialog label,dialog.qd-dialog b,dialog.qd-dialog strong{color:#17232d!important}
dialog.reason-dialog p,dialog.reason-dialog small,dialog.reason-dialog .muted,dialog.reason-dialog .helper,
dialog.qd-dialog p,dialog.qd-dialog small,dialog.qd-dialog .muted,dialog.qd-dialog .helper{color:#607482!important}
dialog.reason-dialog input,dialog.reason-dialog select,dialog.reason-dialog textarea,dialog.qd-dialog input,dialog.qd-dialog select,dialog.qd-dialog textarea{background:#f7fafb!important;color:#17232d!important;border-color:#9fb2bf!important}
dialog.reason-dialog::backdrop,dialog.qd-dialog::backdrop{background:rgba(3,17,27,.78)!important}
dialog.reason-dialog,dialog.qd-dialog{max-height:min(86vh,760px)!important;overflow:auto!important}
html[data-theme="dark"] dialog.reason-dialog,html[data-theme="dark"] dialog.qd-dialog{background:#f8fafb!important;color:#17232d!important}
.quality-meta-grid>span{background:#122330!important;color:#dce8ef!important;border:1px solid #355164!important}
.quality-meta-grid>span b{color:#9fcbe6!important}

/* RC13 stabilization: readable dialogs in both themes */
dialog.reason-dialog,dialog.qd-dialog{background:#fff!important;color:#17232d!important;border:1px solid #cbd8df!important}
dialog.reason-dialog h1,dialog.reason-dialog h2,dialog.reason-dialog h3,dialog.reason-dialog h4,dialog.reason-dialog label,dialog.reason-dialog b,dialog.reason-dialog strong,dialog.qd-dialog h1,dialog.qd-dialog h2,dialog.qd-dialog h3,dialog.qd-dialog h4,dialog.qd-dialog label,dialog.qd-dialog b,dialog.qd-dialog strong{color:#17232d!important}
dialog.reason-dialog p,dialog.reason-dialog small,dialog.reason-dialog .muted,dialog.reason-dialog .helper,dialog.qd-dialog p,dialog.qd-dialog small,dialog.qd-dialog .muted,dialog.qd-dialog .helper{color:#607482!important}
dialog.reason-dialog input,dialog.reason-dialog select,dialog.reason-dialog textarea,dialog.qd-dialog input,dialog.qd-dialog select,dialog.qd-dialog textarea{background:#f7fafb!important;color:#17232d!important;border-color:#9fb2bf!important}
dialog.reason-dialog::backdrop,dialog.qd-dialog::backdrop{background:rgba(3,17,27,.78)!important}
dialog.reason-dialog,dialog.qd-dialog{max-height:min(86vh,760px)!important;overflow:auto!important}
html[data-theme="dark"] dialog.reason-dialog,html[data-theme="dark"] dialog.qd-dialog{background:#f8fafb!important;color:#17232d!important}
.quality-meta-grid>span{background:#122330!important;color:#dce8ef!important;border:1px solid #355164!important}.quality-meta-grid>span b{color:#9fcbe6!important}

/* RC14 quality workspace: compact, readable editor + explicit document placement. */
dialog.qd-dialog{width:min(820px,calc(100vw - 40px))!important;max-height:88vh!important;overflow:hidden!important;background:#f8fafb!important}
dialog.qd-dialog>form{max-height:88vh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
dialog.qd-dialog .qd-dialog-head{flex:0 0 auto!important;background:#f8fafb!important;padding:18px 22px!important}
dialog.qd-dialog .quality-workflow-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:20px 22px 8px!important;overflow:visible!important;background:#f8fafb!important}
dialog.qd-dialog .quality-workflow-form label{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;color:#17232d!important;font-size:13px!important;font-weight:750!important}
dialog.qd-dialog .quality-workflow-form label>span{display:block!important;color:#263b49!important;font-size:12px!important;font-weight:800!important;line-height:1.25!important}
dialog.qd-dialog .quality-workflow-form input,dialog.qd-dialog .quality-workflow-form select,dialog.qd-dialog .quality-workflow-form textarea{width:100%!important;box-sizing:border-box!important;min-height:44px!important;background:#fff!important;color:#17232d!important;border:1px solid #9fb2bf!important;border-radius:10px!important;padding:10px 12px!important;font:inherit!important}
dialog.qd-dialog .quality-workflow-form textarea{min-height:72px!important;resize:vertical!important}
dialog.qd-dialog .quality-workflow-form small{display:block!important;color:#607482!important;font-size:11px!important;line-height:1.4!important;margin-top:1px!important}
dialog.qd-dialog .quality-workflow-form .span-2{grid-column:1/-1!important}
dialog.qd-dialog .quality-points{margin:8px 22px 18px!important;padding:16px 0 0!important;overflow:visible!important}
dialog.qd-dialog .quality-point-row textarea{background:#fff!important;color:#17232d!important;border:1px solid #9fb2bf!important}
dialog.qd-dialog .qd-dialog-actions{flex:0 0 auto!important;background:#f8fafb!important;padding:14px 22px!important}
dialog.qd-dialog form:has(.quality-workflow-form){overflow-y:auto!important;scrollbar-gutter:stable!important}
dialog.qd-dialog form:has(.quality-workflow-form) .qd-dialog-head,dialog.qd-dialog form:has(.quality-workflow-form) .qd-dialog-actions{position:sticky!important;z-index:4!important}
dialog.qd-dialog form:has(.quality-workflow-form) .qd-dialog-head{top:0!important}dialog.qd-dialog form:has(.quality-workflow-form) .qd-dialog-actions{bottom:0!important}
@media(max-width:720px){dialog.qd-dialog{width:min(96vw,820px)!important}dialog.qd-dialog .quality-workflow-form{grid-template-columns:1fr!important;padding:16px!important}dialog.qd-dialog .quality-workflow-form .span-2{grid-column:1!important}dialog.qd-dialog .quality-points{margin-left:16px!important;margin-right:16px!important}}

/* RC15 contrast-only hardening. No layout/workflow changes. */
:root{--surface-readable:#ffffff;--surface-soft-readable:#f4f7f9;--text-readable:#17232d;--text-muted-readable:#526875;--border-readable:#aebfca}
html[data-theme="dark"]{--surface-readable:#102432;--surface-soft-readable:#173142;--text-readable:#f3f7fa;--text-muted-readable:#c1d0d9;--border-readable:#456173}
/* Every text-bearing surface must keep strong foreground/background separation. */
:where(.panel,.quality-work-card,.quality-meta-grid span,.table-wrap,table,.asset-card,.qd-existing,.code-examples span,.empty){color:var(--text-readable)}
:where(.quality-meta-grid span,.qd-existing,.code-examples span){background:var(--surface-soft-readable);border-color:var(--border-readable)}
:where(.panel,.quality-work-card,.table-wrap,table,.asset-card,.empty){border-color:var(--border-readable)}
:where(.panel,.quality-work-card,.quality-meta-grid span,.table-wrap,table,.asset-card,.qd-existing,.code-examples span,.empty) :where(p,small,.muted){color:var(--text-muted-readable)}
:where(.panel,.quality-work-card,.quality-meta-grid span,.table-wrap,table,.asset-card,.qd-existing,.code-examples span,.empty) :where(h1,h2,h3,h4,b,strong,label,legend,td){color:var(--text-readable)}
html[data-theme="dark"] :where(.quality-meta-grid span,.qd-existing,.code-examples span){background:#173142!important;color:#f3f7fa!important}
html[data-theme="dark"] :where(.quality-meta-grid span,.qd-existing,.code-examples span) :where(b,strong,p,small,span){color:#f3f7fa!important}
/* Quality editor dialogs intentionally use a light surface in both app themes: force dark readable copy. */
dialog.qd-dialog,dialog.qd-dialog :where(.qd-dialog-head,.qd-dialog-actions,.quality-workflow-form){background:#f8fafb!important;color:#17232d!important}
dialog.qd-dialog :where(h1,h2,h3,h4,b,strong,label,legend,.kicker,.quality-workflow-form label>span){color:#17232d!important}
dialog.qd-dialog :where(p,small,.muted,.helper){color:#526875!important}
dialog.qd-dialog :where(input,select,textarea){background:#fff!important;color:#17232d!important;border-color:#8fa6b4!important}
dialog.qd-dialog :where(input,select,textarea)::placeholder{color:#687d89!important;opacity:1!important}
dialog.qd-dialog option{background:#fff!important;color:#17232d!important}

/* RC16 — GLOBAL AUTHENTICATED UI/UX CONTRAST CONTRACT
   Scope: presentation only. No route, permission, workflow, data, PDF/paper or business-logic changes. */
body:not(.auth-page){
  --ux-surface:#ffffff;
  --ux-surface-2:#f3f6f8;
  --ux-surface-3:#e9eff3;
  --ux-text:#172b38;
  --ux-muted:#536b79;
  --ux-border:#9fb2bf;
  --ux-control:#ffffff;
  --ux-control-text:#172b38;
  --ux-button:#102b3c;
  --ux-button-text:#f7fbfd;
}
html[data-theme="dark"] body:not(.auth-page){
  --ux-surface:#111f2c;
  --ux-surface-2:#172938;
  --ux-surface-3:#203748;
  --ux-text:#f2f7fa;
  --ux-muted:#b4c5cf;
  --ux-border:#456274;
  --ux-control:#0c1924;
  --ux-control-text:#f2f7fa;
  --ux-button:#17384d;
  --ux-button-text:#f4f9fc;
}
/* All application dialogs follow the selected theme. This intentionally supersedes old
   one-off light-dialog patches which caused light-on-light labels and dark controls on white. */
body:not(.auth-page) dialog,
body:not(.auth-page) :where(.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog,.qd-dialog){
  background:var(--ux-surface)!important;
  color:var(--ux-text)!important;
  border:1px solid var(--ux-border)!important;
}
body:not(.auth-page) dialog :where(.qd-dialog-head,.qd-dialog-actions,.quality-workflow-form,.qd-editor,fieldset,.stack),
body:not(.auth-page) :where(.modal-card,.dialog-card) :where(header,footer,section,fieldset){
  background:var(--ux-surface)!important;
  color:var(--ux-text)!important;
  border-color:var(--ux-border)!important;
}
body:not(.auth-page) dialog :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,b,strong,.kicker,.eyebrow,.quality-workflow-form label>span),
body:not(.auth-page) :where(.modal-card,.dialog-card) :where(h1,h2,h3,h4,h5,h6,label,legend,b,strong){
  color:var(--ux-text)!important;
}
body:not(.auth-page) dialog :where(p,small,.muted,.helper,.hint,.description,.subtitle),
body:not(.auth-page) :where(.modal-card,.dialog-card) :where(p,small,.muted,.helper,.hint,.description,.subtitle){
  color:var(--ux-muted)!important;
}
body:not(.auth-page) dialog :where(input,select,textarea),
body:not(.auth-page) :where(.modal-card,.dialog-card) :where(input,select,textarea){
  background:var(--ux-control)!important;
  color:var(--ux-control-text)!important;
  border:1px solid var(--ux-border)!important;
  opacity:1!important;
}
body:not(.auth-page) dialog :where(input,textarea)::placeholder,
body:not(.auth-page) :where(.modal-card,.dialog-card) :where(input,textarea)::placeholder{
  color:var(--ux-muted)!important;opacity:1!important;
}
body:not(.auth-page) dialog select option{background:var(--ux-control)!important;color:var(--ux-control-text)!important}
body:not(.auth-page) dialog :where(input,select,textarea):focus{
  border-color:var(--ui-focus)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-focus) 22%,transparent)!important;
  outline:none!important;
}
/* Generic text-bearing surfaces across every authenticated role. */
body:not(.auth-page) :where(.panel,.card,.hero,.asset-card,.quick,.empty,.portal-card,.qr-card,.permission-group,.division-card,.quality-work-card,.quality-meta-grid>span,.qd-existing,.context-box,.intern-row,.intern-record-card,.attendance-identity,.attendance-status,.profile-onboarding-card,.face-enroll){
  color:var(--ux-text)!important;border-color:var(--ux-border)!important;
}
body:not(.auth-page) :where(.panel,.card,.hero,.asset-card,.quick,.empty,.portal-card,.qr-card,.permission-group,.division-card,.quality-work-card,.quality-meta-grid>span,.qd-existing,.context-box,.intern-row,.intern-record-card,.attendance-identity,.attendance-status,.profile-onboarding-card,.face-enroll) :where(h1,h2,h3,h4,h5,h6,label,legend,b,strong,dt,dd){color:var(--ux-text)!important}
body:not(.auth-page) :where(.panel,.card,.hero,.asset-card,.quick,.empty,.portal-card,.qr-card,.permission-group,.division-card,.quality-work-card,.quality-meta-grid>span,.qd-existing,.context-box,.intern-row,.intern-record-card,.attendance-identity,.attendance-status,.profile-onboarding-card,.face-enroll) :where(p,small,.muted,.helper,.hint,.description,.subtitle){color:var(--ux-muted)!important}
/* Controls outside dialogs also obey the active theme. */
body:not(.auth-page) .content :where(input,select,textarea){background:var(--ux-control)!important;color:var(--ux-control-text)!important;border-color:var(--ux-border)!important}
body:not(.auth-page) .content :where(input,textarea)::placeholder{color:var(--ux-muted)!important;opacity:1!important}
body:not(.auth-page) .content select option{background:var(--ux-control)!important;color:var(--ux-control-text)!important}
/* Non-primary controls must never become low-contrast after theme switching. */
body:not(.auth-page) :where(button,.button):not(.primary):not(.danger-btn){background:var(--ux-button)!important;color:var(--ux-button-text)!important;border-color:var(--ux-border)!important}
body:not(.auth-page) :where(button,.button):not(.primary):not(.danger-btn) :where(span,b,strong){color:inherit!important}
/* Quality editor: coherent hierarchy and scroll behavior without changing its field structure. */
body:not(.auth-page) dialog.qd-dialog{width:min(860px,calc(100vw - 32px))!important;max-height:90dvh!important;overflow:hidden!important}
body:not(.auth-page) dialog.qd-dialog>form{max-height:90dvh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body:not(.auth-page) dialog.qd-dialog .qd-dialog-head{position:sticky!important;top:0!important;z-index:5!important;flex:0 0 auto!important}
body:not(.auth-page) dialog.qd-dialog .quality-workflow-form{background:var(--ux-surface)!important;overflow-y:auto!important;align-content:start!important}
body:not(.auth-page) dialog.qd-dialog .qd-dialog-actions{position:sticky!important;bottom:0!important;z-index:5!important;flex:0 0 auto!important}
body:not(.auth-page) dialog.qd-dialog .quality-points{color:var(--ux-text)!important}
body:not(.auth-page) dialog.qd-dialog .quality-point-row{border-color:var(--ux-border)!important}
/* Keep canvases intentionally light: signatures require a paper-like drawing surface. */
body:not(.auth-page) :where(.validator-signature canvas,.signature-block canvas,[data-equipment-signature],#temperature-signature-pad,#aquadest-signature-pad){background:#f7fafb!important;border-color:#738c9b!important}
/* Official/final paper remains print-white regardless of application theme. */
html[data-theme="dark"] body:not(.auth-page) :where(.record-paper,.record-paper *,.paper-preview .record-paper,.paper-preview .record-paper *, .intern-paper-preview .intern-paper, .intern-paper-preview .intern-paper *){color:#111!important}
html[data-theme="dark"] body:not(.auth-page) :where(.record-paper,.record-paper td,.record-paper th,.paper-preview .record-paper,.paper-preview .record-paper td,.paper-preview .record-paper th,.intern-paper-preview .intern-paper){background:#fff!important;border-color:#111!important}
@media(max-width:720px){body:not(.auth-page) dialog.qd-dialog{width:calc(100vw - 16px)!important;max-height:94dvh!important}body:not(.auth-page) dialog.qd-dialog>form{max-height:94dvh!important}}

/* RC17 — CONTRAST CORRECTION ONLY.
   Fixes legacy high-specificity rules that overrode RC16 and produced dark-on-dark / light-on-light text.
   No layout, workflow, permission, route, data, QR, PDF, or business-logic changes. */
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog,
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog :where(.qd-dialog-head,.qd-dialog-actions,.quality-workflow-form,.qd-editor,.quality-points,fieldset,.stack){background:#111f2c!important;color:#f2f7fa!important;border-color:#456274!important}
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form label,
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form label>span,
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,b,strong){color:#f2f7fa!important}
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog :where(p,small,.muted,.helper,.hint,.description,.subtitle),
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form small{color:#b4c5cf!important}
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form :where(input,select,textarea),
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog .quality-point-row textarea{background:#0c1924!important;color:#f2f7fa!important;border-color:#587487!important}
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog :where(input,textarea)::placeholder{color:#9db0bd!important;opacity:1!important}
html[data-theme="dark"] body:not(.auth-page) dialog.qd-dialog option{background:#0c1924!important;color:#f2f7fa!important}

html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog,
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog :where(.qd-dialog-head,.qd-dialog-actions,.quality-workflow-form,.qd-editor,.quality-points,fieldset,.stack){background:#f8fafb!important;color:#17232d!important;border-color:#9fb2bf!important}
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form label,
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form label>span,
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,b,strong){color:#17232d!important}
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog :where(p,small,.muted,.helper,.hint,.description,.subtitle),
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form small{color:#526875!important}
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog .quality-workflow-form :where(input,select,textarea),
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog .quality-point-row textarea{background:#fff!important;color:#17232d!important;border-color:#8fa6b4!important}
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog :where(input,textarea)::placeholder{color:#687d89!important;opacity:1!important}
html[data-theme="light"] body:not(.auth-page) dialog.qd-dialog option{background:#fff!important;color:#17232d!important}

/* Same contrast guarantee for approval/return/signature dialogs used by every role. */
html[data-theme="dark"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,b,strong){color:#f2f7fa!important}
html[data-theme="dark"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(p,small,.muted,.helper,.hint,.description,.subtitle){color:#b4c5cf!important}
html[data-theme="dark"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(input,select,textarea){background:#0c1924!important;color:#f2f7fa!important;border-color:#587487!important}
html[data-theme="light"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(h1,h2,h3,h4,h5,h6,label,legend,dt,dd,b,strong){color:#17232d!important}
html[data-theme="light"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(p,small,.muted,.helper,.hint,.description,.subtitle){color:#526875!important}
html[data-theme="light"] body:not(.auth-page) :where(dialog,.modal-card,.dialog-card,.reason-dialog,.validation-sign-dialog,.analyst-signature-dialog) :where(input,select,textarea){background:#fff!important;color:#17232d!important;border-color:#8fa6b4!important}
.pdf-page-render{position:relative;width:100%;min-height:260px;display:flex;align-items:flex-start;justify-content:center;background:#fff;overflow:hidden}.pdf-page-render canvas{display:block;max-width:100%;height:auto;background:#fff}.pdf-page-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;text-align:center;color:#526b7a;background:#fff}.pdf-page-status.is-error{color:#8b2f2f}

/* RC22 publication control */
.quality-publication-state{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.quality-publication-state form{margin:0}

/* RC28 — compact analyst signature + Aquadest bulk validation */
body:not(.auth-page) dialog.analyst-signature-dialog{width:min(520px,calc(100vw - 32px))!important;max-width:520px!important;height:auto!important;min-height:0!important;padding:20px!important;box-sizing:border-box!important;overflow:auto!important;border-radius:16px!important}
body:not(.auth-page) dialog.analyst-signature-dialog h3{margin:0 0 6px!important}
body:not(.auth-page) dialog.analyst-signature-dialog p{margin:0 0 14px!important}
body:not(.auth-page) dialog.analyst-signature-dialog .validator-signature{margin:0!important}
body:not(.auth-page) dialog.analyst-signature-dialog .validator-signature>div{margin-bottom:7px!important}
body:not(.auth-page) dialog.analyst-signature-dialog .validator-signature canvas{height:150px!important}
body:not(.auth-page) dialog.analyst-signature-dialog .button-row{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin-top:14px!important}
.aquadest-bulk-panel .section-title{align-items:center}.aquadest-bulk-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 28px 90px rgba(0,0,0,.3)}.aquadest-bulk-dialog::backdrop{background:rgba(3,17,27,.72)}.aquadest-bulk-dialog form{padding:20px}.aquadest-bulk-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.aquadest-bulk-head h3{font-size:22px;margin:3px 0 4px}.aquadest-bulk-head p{margin:0}.aquadest-dialog-close{border:0;background:transparent;font-size:28px;line-height:1;padding:2px 7px}.aquadest-scope{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;border:0;padding:0;margin:18px 0}.aquadest-scope legend{font-weight:800;margin-bottom:8px}.aquadest-scope label{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:11px;cursor:pointer}.aquadest-scope input{width:auto;margin-top:3px}.aquadest-scope span{display:grid;gap:2px}.aquadest-scope small{font-weight:400}.aquadest-selection-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 0 7px}.aquadest-selection-head label{display:flex;gap:7px;align-items:center;font-weight:700}.aquadest-selection-head input{width:auto}.aquadest-bulk-list{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:12px}.aquadest-bulk-row{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-bottom:1px solid var(--line);cursor:pointer}.aquadest-bulk-row:last-child{border-bottom:0}.aquadest-bulk-row[hidden]{display:none!important}.aquadest-bulk-row input{width:auto;margin-top:3px}.aquadest-bulk-row span{display:grid;gap:3px}.aquadest-signature-compact{margin-top:16px}.aquadest-signature-compact .signature-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.aquadest-signature-compact canvas{display:block;width:100%;height:145px;background:#f7fafb;border:1px solid #8da4b3;border-radius:12px;touch-action:none}.aquadest-signature-compact small{display:block;margin-top:6px}.aquadest-bulk-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}@media(max-width:640px){.aquadest-scope{grid-template-columns:1fr}.aquadest-bulk-dialog form{padding:16px}.aquadest-bulk-actions{flex-direction:column-reverse}.aquadest-bulk-actions button{width:100%}}

/* RC29 — analyst Aquadest selection mirrors Validator interaction pattern */
.aquadest-validation-select .section-title{margin-bottom:16px}.aquadest-validation-select .form-grid.compact{margin-bottom:14px}.aquadest-validation-select .form-grid.compact label{max-width:none;width:100%}.aquadest-validation-list{display:grid;gap:0;margin:0 0 14px}.aquadest-validation-row{display:flex;align-items:flex-start;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;margin-top:-1px;cursor:pointer}.aquadest-validation-row:first-child{margin-top:0}.aquadest-validation-row input{width:auto;margin-top:4px;flex:0 0 auto}.aquadest-validation-row span{display:grid;gap:4px;min-width:0}.aquadest-validation-row b{font-size:15px}.aquadest-validation-row small{font-weight:600}.aquadest-validation-submit{display:block;width:100%;min-height:42px}.aquadest-validation-select dialog.analyst-signature-dialog{width:min(520px,calc(100vw - 32px))!important}.aquadest-validation-select .validator-signature canvas{height:150px!important}
