:root{--ink:#132d53;--muted:#576b85;--teal:#1759b7;--teal-dark:#10458f;--line:#dfe6f1;--surface:#fff;--bg:#f6f8fc;--amber:#aa650b;--red:#ad3e37;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--teal)}.shell{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:#112f56;color:#d1e0f5;padding:30px 22px;display:flex;flex-direction:column;position:fixed;height:100vh}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:19px;font-weight:650;letter-spacing:-.3px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:#227267;color:#eefbf9;font-size:26px}.brand small{display:block;font-size:11px;font-weight:400;color:#a8c5c5;margin-top:4px;letter-spacing:.6px}.env{margin:28px 0 30px;font-size:10px;letter-spacing:1.1px;color:#b3cbe6}.dot{width:6px;height:6px;background:#68bc9f;display:inline-block;border-radius:50%;margin-right:5px}.sidebar nav{display:grid;gap:8px}.nav{background:none;border:0;color:#b9cfe9;text-align:left;padding:12px 13px;border-radius:7px;font-weight:550}.nav span{display:inline-block;width:24px;font-size:18px}.nav.active{background:#244e80;color:#fff}.nav:hover{background:#1c416c;color:white}.sidebar-foot{margin-top:auto;border-top:1px solid #355b87;padding-top:25px;font-size:12px}.sidebar-foot p{color:#aec6e3;line-height:1.8;margin:10px 0}.sidebar-foot span{font-size:10px;color:#9ebbdc}.workspace{margin-left:244px;flex:1;min-width:0}.topbar{height:86px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:18px 38px;gap:20px}.crumb{color:var(--muted);font-size:12px}.crumb b{font-weight:550;color:var(--ink)}.role-label{font-size:10px;color:var(--muted);letter-spacing:.3px}.role-label select{display:block;min-width:265px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#fff;padding:8px 10px;margin-top:5px;font-size:12px}.notice{display:flex;gap:12px;background:#fff8e6;border-bottom:1px solid #eee1b8;color:#765619;padding:11px 38px;line-height:1.5;font-size:11px}.notice p{margin:0;max-width:1080px}.notice-icon{font-weight:bold;border:1px solid #c6a058;border-radius:50%;height:17px;width:17px;display:grid;place-items:center;flex-shrink:0;margin-top:2px}main{padding:32px 38px 45px;max-width:1700px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;font-weight:650;color:var(--teal);letter-spacing:1.5px;margin-bottom:8px}h1{font-size:29px;line-height:1.2;margin:0 0 10px;letter-spacing:-.7px;font-weight:650}h2{font-size:18px;margin:0;letter-spacing:-.2px}h3{font-size:14px;margin:0 0 12px}.subtitle{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.btn{border:1px solid transparent;border-radius:6px;padding:10px 14px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none}.primary{background:var(--teal);color:white}.primary:hover{background:var(--teal-dark)}.secondary{background:white;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#edf5f4}.danger{background:#fff0eb;border-color:#efcbc6;color:var(--red)}.small{padding:7px 10px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{padding:21px 23px;background:white;border:1px solid var(--line);border-radius:9px}.stat-label{color:var(--muted);font-size:11px;display:flex;justify-content:space-between}.stat-number{font-size:32px;font-weight:650;letter-spacing:-1px;margin:13px 0 5px;color:var(--ink)}.stat-note{font-size:10px;color:var(--muted)}.stat.accent{border-top:3px solid var(--teal);padding-top:19px}.grid-two{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:23px}.panel{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:22px;overflow:hidden}.panel-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.panel-head p{color:var(--muted);font-size:11px;margin:5px 0 0}.panel-body{padding:22px 23px}.link-button{background:none;border:0;color:var(--teal);font-size:11px;font-weight:600;padding:6px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#f8fafb;padding:12px 17px;color:var(--muted);font-weight:550;font-size:10px;letter-spacing:.3px;white-space:nowrap}td{padding:15px 17px;border-top:1px solid #edf1f2;vertical-align:middle}td small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.5}td strong{font-weight:600}.code{font-family:Consolas,monospace;color:var(--teal);font-size:11px}.asset-link{text-align:left;background:none;border:0;color:var(--ink);padding:0;font-weight:550}.asset-link:hover{text-decoration:underline;color:var(--teal)}.badge{padding:5px 8px;border-radius:4px;background:#edf4f5;color:#496a73;font-size:10px;display:inline-block;line-height:1.5;white-space:nowrap}.badge.teal{background:#e0f3ee;color:#167861}.badge.amber{background:#fff1d8;color:#9a650e}.badge.red{background:#fbe8e6;color:#a5453a}.badges{display:flex;gap:6px;flex-wrap:wrap}.workflow-step{display:flex;gap:13px;align-items:flex-start;margin:0 0 21px}.step-number{border-radius:50%;background:#e6f2ef;color:var(--teal);height:27px;width:27px;display:grid;place-items:center;font-weight:600;font-size:11px;flex-shrink:0}.workflow-step strong{font-size:12px}.workflow-step p{margin:4px 0 0;font-size:10px;color:var(--muted);line-height:1.6}.workflow-step:last-child{margin-bottom:0}.mini-info{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.quality-item{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf1f2;font-size:11px}.quality-item:last-child{border-bottom:0}.quality-item b{font-size:14px;color:var(--amber)}.toolbar{display:flex;align-items:center;gap:15px;margin-bottom:19px}.search{max-width:430px;width:100%;background:white;border:1px solid var(--line);border-radius:6px;padding:10px 13px;font-size:12px}.filter{display:flex;gap:5px;flex-wrap:wrap}.filter button{background:white;border:1px solid var(--line);padding:8px 11px;font-size:11px;color:var(--muted);border-radius:5px}.filter button.active{background:var(--teal);color:white;border-color:var(--teal)}.count-label{font-size:11px;color:var(--muted);margin-left:auto}.empty{text-align:center;padding:65px 25px;color:var(--muted)}.empty h1,.empty h3{color:var(--ink)}.empty p{max-width:550px;margin:15px auto;line-height:1.7}.empty.mini{padding:32px 20px;font-size:12px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:21px}.detail-item dt{font-size:10px;color:var(--muted);margin-bottom:7px}.detail-item dd{font-size:12px;margin:0;line-height:1.7;word-break:break-word}.warning-box{background:#fff8e8;border:1px solid #f1e1ba;border-radius:6px;padding:15px;font-size:11px;line-height:1.7;color:#7b622d;margin-top:16px}.source-note{font-size:11px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:25px}.timeline div{background:white;padding:13px 10px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:10px;line-height:1.6}.timeline div.done{background:#e8f5f1;border-color:#b3d8ce;color:#2b7460}.timeline b{display:block;font-size:11px;color:var(--ink);margin-top:4px}.record{padding:19px 23px;border-top:1px solid var(--line)}.record:first-child{border-top:0}.record-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.record p{font-size:12px;line-height:1.7;margin:9px 0;color:var(--muted);overflow-wrap:anywhere}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.record-meta{font-size:10px;color:var(--muted);margin-top:10px}.form-error{font-size:12px;color:var(--red);line-height:1.6;margin:15px 0}.toast{position:fixed;bottom:24px;right:28px;z-index:5;padding:14px 20px;background:#112f56;color:white;border-radius:7px;max-width:480px;box-shadow:0 6px 20px #163a4326;font-size:12px}.toast.error{background:#922f29}dialog{width:620px;max-width:94vw;max-height:90vh;border:0;border-radius:11px;box-shadow:0 18px 80px #102f4340;padding:0;color:var(--ink)}dialog::backdrop{background:#132b436b}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid var(--line)}.dialog-head small{font-size:9px;color:var(--teal);letter-spacing:1.2px}.dialog-head h2{margin-top:8px}.icon-button{background:transparent;border:0;font-size:25px;color:var(--muted);padding:0 7px}#action-fields{padding:21px 24px 0}.field{display:block;margin-bottom:17px;font-size:12px;font-weight:550}.field input:not([type=checkbox]),.field select,.field textarea{display:block;width:100%;margin-top:7px;padding:10px 12px;border:1px solid #ccdadd;border-radius:5px;font-size:12px;color:var(--ink);background:white;font-weight:400}.field textarea{min-height:78px;resize:vertical}.field small{display:block;margin-top:5px;font-size:10px;color:var(--muted);font-weight:400}.check-field{font-size:12px;line-height:1.7;margin-bottom:14px;display:block}.ack{display:flex;align-items:flex-start;gap:9px;padding:17px 24px;font-size:11px;color:var(--muted);line-height:1.6}.ack input{margin-top:4px}.dialog-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}#form-error{padding:0 24px}.mono{font-family:Consolas,monospace;font-size:10px;overflow-wrap:anywhere}details{font-size:12px;line-height:1.7}details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:400px;overflow:auto;background:#f6f8fc;padding:15px}summary{cursor:pointer;font-weight:550;color:var(--teal)}.file-input{margin:15px 0;max-width:100%;font-size:12px}.section-gap{margin-top:25px}.muted{color:var(--muted)}.right{text-align:right}.hidden,[hidden]{display:none!important}@media(max-width:1100px){.sidebar{width:210px;padding:25px 15px}.workspace{margin-left:210px}.topbar,.notice{padding-left:25px;padding-right:25px}main{padding:25px}.stats{gap:11px}.stat{padding:17px}.grid-two{grid-template-columns:1fr}.timeline{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.sidebar{position:static;width:100%;height:auto;padding:16px}.shell{display:block}.sidebar nav{display:flex;overflow:auto;margin-top:15px;gap:4px}.nav{white-space:nowrap;padding:8px;font-size:11px}.nav span,.env,.sidebar-foot{display:none}.brand{font-size:17px}.workspace{margin-left:0}.topbar{height:auto;padding:14px 18px}.crumb{display:none}.role-label{width:100%}.role-label select{width:100%}.notice{padding:11px 18px}main{padding:23px 18px}.page-head{align-items:flex-start}h1{font-size:24px}.stats{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.count-label{margin-left:0}.timeline{grid-template-columns:repeat(2,1fr)}.panel-head{padding:17px}.panel-body,.record{padding:17px}.record-top{align-items:flex-start}}
/* Asset dossier extension; raw identifiers remain visibly distinct. */
.record pre,#reg-finance pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;overflow:auto}
.grid-two>div{min-width:0}.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-grid>div{min-width:0}.detail-grid dd{margin:0;overflow-wrap:anywhere}.page-head>div{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-head{flex-wrap:wrap}.page-head{flex-wrap:wrap}}
.raw-code{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:13px}.raw-input{white-space:pre-wrap;min-height:48px!important;font-family:Consolas,monospace}.registry-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.registry-filters .field{margin:0}.registry-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.registry-preview{max-height:55vh}.asset-photo{max-width:100%;max-height:330px;object-fit:contain;border:1px solid #dce7e8;border-radius:8px}.file-hash{display:block;overflow-wrap:anywhere;font-size:11px}.registry-filters .actions{align-self:end;margin-bottom:4px}@media(max-width:700px){.registry-filters,.registry-fields-grid{grid-template-columns:1fr}.registry-filters .actions{flex-wrap:wrap}}
/* Electronic logbook uses the existing Vietnamese pilot layout. */
.book-cover{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px}.book-qr{text-align:center}.book-qr img{width:220px;height:220px;image-rendering:pixelated}.book-qr small{display:block;margin-top:12px;color:#596779;line-height:1.5}.book-history table{min-width:1100px}.book-history td{white-space:pre-wrap;max-width:240px;overflow-wrap:anywhere}.book-history th{font-size:12px}.book-history td small{display:block}.detail-grid dd{white-space:pre-wrap;overflow-wrap:anywhere}.detail-grid small{color:#667485}#book-search{flex-wrap:wrap}#book-search input[name=q]{min-width:260px;padding:10px;border:1px solid #d9e1e6;border-radius:8px}#book-dialog{max-width:780px;width:92vw}#book-dialog form{padding:24px}#book-dialog textarea{min-height:58px}@media(max-width:800px){.book-cover{grid-template-columns:1fr}.book-qr{order:-1}.book-qr img{width:180px;height:180px}}
.repair-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;padding:20px}
.repair-actions article{border:1px solid var(--border,#dce4e6);border-radius:10px;padding:16px;min-width:0}
.repair-actions h3{font-size:15px;margin:0 0 12px}
.repair-event{border-left:3px solid #1759b7;padding:12px 0 22px 18px;margin-bottom:18px;min-width:0}
.repair-file{border:1px solid #dce4e6;background:#f7faf9;border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}
.repair-file .badge{display:inline-block;margin:8px 0}
.repair-file small{display:block;overflow-wrap:anywhere}
.repair-upload{border:1px solid #dce4e6;border-radius:8px;margin-top:20px;padding:14px;min-width:0}
.repair-upload legend{font-weight:650}
.repair-event .detail-grid dd{white-space:pre-wrap;overflow-wrap:anywhere}
.repair-actions button:disabled{opacity:.6;cursor:not-allowed}
#action-dialog .dialog-foot{position:sticky;bottom:0;z-index:2;background:#fff}
@media(max-width:600px){.repair-actions{grid-template-columns:1fr;padding:12px}.repair-event{padding-left:12px}.repair-file .actions{display:flex;flex-wrap:wrap}.repair-file .btn{max-width:100%;white-space:normal}.repair-actions .btn{white-space:normal}#action-dialog{width:calc(100% - 20px);max-height:92dvh}.repair-upload input[type=file]{max-width:100%}}
.cert-number{display:block;margin-top:12px}.badge.orange{background:#ffddbe;color:#9a3e00}.badge.yellow{background:#fff1b5;color:#765c00}
#cert-detail .actions button,#cert-refresh,#cert-all,#cert-export,#cert-form button{padding:8px 12px;border:1px solid #b5c9cd;border-radius:6px;background:#f8fcfc;color:#123d43;font:inherit;cursor:pointer}
#cert-detail .actions button:focus-visible,#cert-form button:focus-visible{outline:3px solid #1759b7;outline-offset:2px}
/* Maintenance reuses registry fields and the shared dossier layout. */
#maintenance-dialog{width:850px;max-width:94vw}#maintenance-dialog .dialog-foot{position:sticky;bottom:0;background:white;z-index:2}#maintenance-dialog h3{margin-top:24px}#maintenance-dialog .pm-part{border-bottom:1px solid var(--line);padding:10px 0}#maintenance-dialog input[type=number]{min-width:0}.maintenance-table{min-width:950px}.maintenance-table .badge{white-space:normal}#pm-filter{flex-wrap:wrap;align-items:flex-end;margin-bottom:0}#pm-filter .field{flex:1;min-width:180px}#pm-reminders p{overflow-wrap:anywhere}#pm-reminder-badge{border-radius:10px;padding:2px 7px;background:#fff1d8;color:#77530d;font-size:11px}#maintenance-dialog button:focus-visible,#pm-form input:focus-visible,#pm-form select:focus-visible,#pm-form textarea:focus-visible{outline:3px solid #1759b7;outline-offset:2px}@media(max-width:600px){#maintenance-dialog .panel-body{padding:16px}#maintenance-dialog .dialog-foot{flex-wrap:wrap}.maintenance-table .btn{white-space:normal}}

.standard-filters{flex-wrap:wrap;align-items:flex-end}
.standard-code{white-space:pre-wrap;overflow-wrap:anywhere}

.sidebar{overflow-y:auto}

[data-reg-row]{cursor:pointer}[data-reg-row]:focus-visible{outline:2px solid #1759b7;outline-offset:-2px}[data-reg-row]:hover{background:#f1f8f8}

/* TBYTQN identity shared by the login page and authenticated modules. */
:root{--red:#ce1530;--blue:#1759b7;--radius:12px}
.brand-logo{object-fit:contain;background:#fff;border-radius:10px;flex:none;width:54px;height:54px}.brand-copy{min-width:0}.brand-copy>b{font-size:22px}.brand .brand-hospital{font-size:9px;line-height:1.6;letter-spacing:0;margin-top:9px}.sidebar{border-top:3px solid #ce1530}.nav.active{box-shadow:inset 3px 0 #f6536d}.btn,.panel,.stat{border-radius:10px}.btn:focus-visible,a:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid #1759b7;outline-offset:3px}
.signed-out .sidebar,.signed-out .topbar,.signed-out .notice{display:none}.signed-out .workspace{margin-left:0}.signed-out main{max-width:1368px;padding:0 26px;margin:0 auto}.signed-out .shell{display:block}
.entry-header{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:110px;border-top:3px solid #ce1530}.entry-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#1759b7;min-width:0}.entry-brand>img{object-fit:contain;background:white;border-radius:10px;flex:none}.entry-brand>b{font-size:14px}.entry-brand span{max-width:330px}.entry-full-name{display:block;font-size:14px;line-height:1.45;text-transform:uppercase}.entry-motto{display:block;font-size:9px;line-height:1.5;color:#576b85;margin-top:5px}.entry-short-name{display:none}.entry-header>.btn{background:#ce1530;color:white;padding:13px 20px;flex:none}
.entry-hero{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:68px;padding:62px 54px;background:radial-gradient(ellipse at 90% 0,#21548b66,transparent 65%),linear-gradient(115deg,#102b52,#174572);border-radius:26px;color:white;overflow:hidden}.entry-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#c1d9f4;margin:0 0 25px}.entry-eyebrow:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#ff7188;margin-right:9px}.entry-copy h1{font-size:clamp(42px,4.6vw,62px);line-height:1.14;letter-spacing:-2px;font-weight:750;margin:0 0 25px;color:white}.entry-lead{font-size:14px;color:#c6d9ee;line-height:1.95;max-width:475px}.entry-button{background:#ce1530;color:#fff;min-height:49px;margin-top:18px;padding:12px 19px;white-space:normal}.entry-button:hover,.entry-header>.btn:hover{background:#ad1029}.entry-signals{display:flex;flex-wrap:wrap;gap:23px;font-size:11px;border-top:1px solid #ffffff26;padding-top:23px;margin-top:32px;color:#d3e5f7}
.entry-login{background:#fff;color:#132d53;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px #041c3430}.entry-login-heading{display:flex;gap:12px;align-items:center;background:#f0f5fc;padding:22px 26px;border-bottom:1px solid #dfe6f1}.entry-login-heading>img{object-fit:contain;flex:none}.entry-login-heading strong{font-size:17px}.entry-login-heading small{display:block;font-size:11px;margin-top:5px;color:#576b85}.entry-login>.panel{border:0;margin:0;border-radius:0}.entry-login .panel-body{padding:28px}.entry-login .field{font-size:13px;margin-bottom:21px}.entry-login input{min-height:46px;font-size:15px!important;border-radius:9px!important}.entry-login form>.btn{width:100%;min-height:46px;font-size:13px}.entry-login #login-error{font-size:12px;color:#ae1630;line-height:1.6}.entry-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 30px}.entry-modules article{padding:26px;background:#fff;border:1px solid #dfe6f1;border-radius:17px}.entry-modules article>span{font-size:9px;letter-spacing:1px;color:#1759b7;font-weight:700}.entry-modules article:nth-child(2)>span{color:#ce1530}.entry-modules h2{font-size:19px;line-height:1.45;margin:14px 0 12px}.entry-modules p{font-size:12px;color:#576b85;line-height:1.85;margin:0}.entry-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #dfe6f1;padding:22px 0 28px;font-size:10px;color:#576b85}
@media(max-width:1000px){.entry-hero{gap:32px;padding:40px 32px}.entry-copy h1{font-size:43px}.entry-login .panel-body{padding:23px}}
@media(max-width:760px){.brand .brand-hospital{display:none}.brand-logo{width:44px;height:44px}.brand-copy>b{font-size:19px}.signed-out main{padding:0 17px}.entry-header{min-height:86px;gap:12px}.entry-brand{gap:10px}.entry-brand>img{width:48px;height:48px}.entry-full-name,.entry-motto{display:none}.entry-short-name{display:block}.entry-brand b.entry-short-name{font-size:21px;letter-spacing:.3px}.entry-brand small.entry-short-name{font-size:10px;color:#576b85;margin-top:3px}.entry-header>.btn{font-size:11px;padding:11px 14px}.entry-hero{grid-template-columns:1fr;gap:30px;padding:32px 24px;border-radius:21px}.entry-copy h1{font-size:44px;letter-spacing:-1.8px}.entry-eyebrow{font-size:8px;letter-spacing:1.1px}.entry-lead{font-size:13px}.entry-signals{gap:18px;font-size:10px}.entry-login-heading{padding:19px}.entry-login-heading strong{font-size:16px}.entry-login .panel-body{padding:22px}.entry-modules{grid-template-columns:1fr;gap:13px}.entry-modules article{padding:22px}.entry-footer{display:block;font-size:9px;line-height:1.8}.entry-footer>span{display:block}}
@media(max-width:360px){.signed-out main{padding:0 12px}.entry-copy h1{font-size:37px}.entry-hero{padding:28px 18px}.entry-brand>img{width:42px;height:42px}.entry-header>.btn{padding:10px}.entry-signals{gap:11px}.entry-brand b.entry-short-name{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Authenticated workspace follows the user-approved HTML 03 composition. */
body:not(.signed-out) .actions>button:not(.btn),body:not(.signed-out) #cert-form button,body:not(.signed-out) #cert-refresh,body:not(.signed-out) #cert-all,body:not(.signed-out) #cert-export{min-height:37px;padding:8px 12px;border:1px solid #cfdbea;border-radius:9px;background:#f8faff;color:#1759b7;font:inherit;font-size:12px}
body:not(.signed-out) #registry-fields{padding:22px 24px 0}body:not(.signed-out) #registry-error{padding:0 24px}body:not(.signed-out) .registry-fields-grid{gap:0 17px}
.workspace-brand .workspace-region{display:none}@media(max-width:760px){.workspace-brand .workspace-motto{display:none}.workspace-brand .workspace-region{display:block;font-size:10px}}
.workspace-skip{position:fixed;top:8px;left:12px;z-index:20;padding:12px 18px;background:#fff;border:2px solid #1759b7;border-radius:10px;transform:translateY(-150%)}.workspace-skip:focus{transform:none}.signed-out .workspace-skip{display:none}
.workspace-header{position:sticky;top:0;z-index:3;height:90px;border-top:3px solid #ce1530;padding:12px 32px;gap:28px;box-shadow:0 3px 18px #18395b06}.workspace-brand{display:flex;align-items:center;gap:12px;color:#132d53;text-decoration:none;flex:none;max-width:375px}.workspace-brand img{object-fit:contain;flex:none}.workspace-brand b{display:block;font-size:13px;line-height:1.5;text-transform:uppercase;font-weight:750;max-width:275px}.workspace-brand small{display:block;font-size:8px;color:#576b85;margin-top:3px}.workspace-brand .workspace-brand-short{display:none}.workspace-location{flex:1;min-width:0;padding-left:25px;border-left:1px solid #dfe6f1}.workspace-location>small{display:block;font-size:8px;color:#576b85;letter-spacing:1.2px;margin-bottom:5px}.workspace-location .crumb{font-size:13px}.workspace-header .role-label{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px 12px;max-width:320px;letter-spacing:0;font-size:11px}.workspace-header .role-label>span{font-weight:600;color:#132d53;overflow-wrap:anywhere}.workspace-header #owner-capability-badge{flex-basis:100%;font-size:8px;text-align:right}.workspace-header #logout{border-radius:10px;padding:9px 13px}
body:not(.signed-out) .shell{min-height:calc(100dvh - 90px)}body:not(.signed-out) .sidebar{top:90px;height:calc(100dvh - 90px);padding:30px 18px 22px;border-top:0;z-index:2}body:not(.signed-out) .brand{gap:10px}body:not(.signed-out) .brand-copy>b{font-size:23px}body:not(.signed-out) .brand small{letter-spacing:0;color:#b3cbe6}body:not(.signed-out) .brand .brand-hospital{font-size:9px}body:not(.signed-out) .env{font-size:9px;letter-spacing:.6px;line-height:1.7;margin:25px 10px 20px}body:not(.signed-out) .sidebar nav{gap:6px}body:not(.signed-out) .nav{display:flex;align-items:center;gap:8px;min-height:45px;padding:11px 13px;border-radius:12px;font-size:12px}body:not(.signed-out) .nav span{width:20px;font-size:17px}body:not(.signed-out) .nav.active{background:#284f7f;box-shadow:inset 3px 0 #f6536d}body:not(.signed-out) .sidebar-foot{margin-top:30px;border-color:#355b87;padding:20px 10px 0;font-size:10px}body:not(.signed-out) .sidebar-foot p{font-size:10px}
body:not(.signed-out) main{padding:28px 32px 55px;max-width:1550px}body:not(.signed-out) .notice{margin:24px 32px 0;border:1px solid #eee1b8;border-radius:12px;padding:11px 14px;font-size:10px}body:not(.signed-out) .page-head{margin-bottom:23px;align-items:center}body:not(.signed-out) h1{font-size:30px;font-weight:730;letter-spacing:-.9px}body:not(.signed-out) .eyebrow{font-size:9px}body:not(.signed-out) .subtitle{font-size:12px}body:not(.signed-out) .btn{min-height:43px;padding:10px 15px;border-radius:11px;font-size:12px}body:not(.signed-out) .btn.small{min-height:34px;padding:7px 11px;font-size:11px}body:not(.signed-out) .btn.primary{box-shadow:0 4px 14px #1759b718}body:not(.signed-out) .secondary:hover{background:#edf3fe}
.workspace-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(105deg,#e0edff,#f3f7ff);border:1px solid #dce7f7;border-radius:21px;padding:28px 32px;margin-bottom:23px}.workspace-welcome>div:first-child{min-width:0}.workspace-welcome span{display:block;font-size:8px;letter-spacing:1.2px;color:#4b6b91;font-weight:700}.workspace-welcome h2{font-size:27px;line-height:1.3;margin:12px 0 9px;font-weight:750;letter-spacing:-.6px}.workspace-welcome p{font-size:11px;color:#576b85;margin:0;line-height:1.8;max-width:620px}.workspace-welcome-symbol{display:grid;place-items:center;width:78px;height:78px;border:1px solid #d2dff0;border-radius:21px;background:#fff;transform:rotate(-9deg);color:#1759b7;flex:none;box-shadow:0 10px 28px #1759b70b}.workspace-icon{width:48px;height:48px}
body:not(.signed-out) .stats{gap:16px;margin-bottom:23px}body:not(.signed-out) .stat{padding:21px;border-radius:17px;box-shadow:0 6px 18px #132d5303}body:not(.signed-out) .stat.accent{border-top:1px solid var(--line)}body:not(.signed-out) .stat-label{font-size:11px;align-items:center;gap:10px}body:not(.signed-out) .stat-label>span{display:grid;place-items:center;color:#1759b7;font-size:18px;height:28px;width:28px;border-radius:8px;background:#edf3fe}body:not(.signed-out) .stat-number{font-size:34px;font-weight:730;margin:10px 0 7px}body:not(.signed-out) .stat-note{font-size:10px;line-height:1.6}
body:not(.signed-out) .panel{border-radius:18px;box-shadow:0 6px 20px #132d5303;margin-bottom:22px}body:not(.signed-out) .panel-head{padding:22px 24px;border-bottom-color:#edf1f8}body:not(.signed-out) .panel-head h2{font-size:16px;font-weight:700}body:not(.signed-out) .panel-body{padding:23px 24px}body:not(.signed-out) .panel-head p{font-size:11px;line-height:1.6}body:not(.signed-out) .grid-two{gap:21px}body:not(.signed-out) th{background:#f0f4fc;padding:13px 17px;font-weight:700;color:#576b85}body:not(.signed-out) td{padding:16px 17px;border-color:#e8edf6}body:not(.signed-out) .badge{border-radius:7px}body:not(.signed-out) .table-wrap{border-radius:0 0 17px 17px}body:not(.signed-out) .step-number{background:#edf3fe;color:#1759b7}body:not(.signed-out) .toolbar{gap:10px;flex-wrap:wrap}body:not(.signed-out) .search{min-height:44px;border-radius:11px}body:not(.signed-out) .filter button{min-height:37px;border-radius:9px}body:not(.signed-out) .field input:not([type=checkbox]),body:not(.signed-out) .field select,body:not(.signed-out) .field textarea{min-height:43px;border-color:#cfdbea;border-radius:9px;font-size:13px}body:not(.signed-out) .field small{line-height:1.6}body:not(.signed-out) dialog{border-radius:19px;box-shadow:0 22px 80px #132d5340}body:not(.signed-out) .dialog-head{background:#f6f8fc;padding:23px 24px}body:not(.signed-out) .dialog-head h2{font-size:21px}body:not(.signed-out) .dialog-foot{background:#f8faff}body:not(.signed-out) .record{padding:21px 24px}body:not(.signed-out) .detail-grid{gap:20px}body:not(.signed-out) .empty.mini{padding:30px 22px;line-height:1.8}
.workspace-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 24px 24px}.workspace-shortcut{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid #dfe6f1;border-radius:13px;padding:16px;color:#132d53;min-width:0;min-height:91px}.workspace-shortcut:hover{border-color:#b9cfee;background:#f8faff}.workspace-shortcut>span:nth-child(2){min-width:0}.workspace-shortcut-icon{display:grid;place-items:center;width:39px;height:39px;background:#edf3fe;color:#1759b7;border-radius:11px;font-size:21px;flex:none}.workspace-shortcut:nth-child(3n) .workspace-shortcut-icon{color:#ce1530;background:#fff0f3}.workspace-shortcut b{display:block;font-size:12px;line-height:1.5}.workspace-shortcut small{display:block;font-size:10px;line-height:1.6;color:#576b85;margin-top:4px}.workspace-shortcut-arrow{margin-left:auto;font-size:16px;color:#1759b7;flex:none}
@media(max-width:1150px){.workspace-header{padding:12px 22px;gap:18px}.workspace-brand{max-width:330px}.workspace-brand b{font-size:11px}.workspace-location{padding-left:18px}.workspace-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.signed-out) main{padding:25px}body:not(.signed-out) .notice{margin-left:25px;margin-right:25px}}
@media(max-width:760px){.workspace-header{height:auto;min-height:79px;padding:12px 17px;gap:13px}.workspace-brand{max-width:165px;gap:9px}.workspace-brand img{width:44px;height:44px}.workspace-brand .workspace-brand-full{display:none}.workspace-brand .workspace-brand-short{display:block;font-size:20px;letter-spacing:-.5px}.workspace-brand small{font-size:8px;max-width:95px;line-height:1.4}.workspace-location{display:none}.workspace-header .role-label{margin-left:auto;max-width:155px;gap:5px 7px;font-size:10px;width:auto}.workspace-header .role-label>span{max-width:155px}.workspace-header #logout{font-size:10px;min-height:31px;padding:6px 9px}.workspace-header #owner-capability-badge{font-size:7px;line-height:1.5}body:not(.signed-out) .shell{display:block}body:not(.signed-out) .sidebar{position:static;width:100%;height:auto;padding:10px 12px;background:#112f56}body:not(.signed-out) .sidebar .brand,body:not(.signed-out) .env,body:not(.signed-out) .sidebar-foot{display:none}body:not(.signed-out) .sidebar nav{display:flex;overflow:auto;margin:0;gap:5px}body:not(.signed-out) .nav{min-height:40px;flex:none;font-size:11px;padding:9px 12px;white-space:nowrap}body:not(.signed-out) .nav span{display:none}body:not(.signed-out) .workspace{margin-left:0}body:not(.signed-out) main{padding:22px 17px 40px}body:not(.signed-out) .notice{margin:16px 17px 0;padding:11px 12px;font-size:9px}body:not(.signed-out) .page-head{align-items:flex-start;gap:13px}body:not(.signed-out) h1{font-size:26px}body:not(.signed-out) .page-head .btn{font-size:11px;min-height:39px;white-space:normal}body:not(.signed-out) .subtitle{font-size:11px}.workspace-welcome{padding:23px 21px;gap:12px;border-radius:17px}.workspace-welcome h2{font-size:23px}.workspace-welcome span{font-size:7px;letter-spacing:.6px}.workspace-welcome p{font-size:10px}.workspace-welcome-symbol{display:none}body:not(.signed-out) .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:not(.signed-out) .stat{padding:17px;border-radius:14px}body:not(.signed-out) .stat-label{font-size:10px;align-items:flex-start}body:not(.signed-out) .stat-label>span{height:23px;width:23px;font-size:15px;flex:none}body:not(.signed-out) .stat-number{font-size:30px}body:not(.signed-out) .stat-note{font-size:9px}body:not(.signed-out) .panel{border-radius:16px}body:not(.signed-out) .panel-head,body:not(.signed-out) .panel-body,body:not(.signed-out) .record{padding:19px}body:not(.signed-out) .panel-head h2{font-size:15px}.workspace-shortcuts{grid-template-columns:1fr;padding:16px 18px 19px;gap:10px}.workspace-shortcut{min-height:77px;padding:14px}.workspace-shortcut b{font-size:12px}.workspace-shortcut small{font-size:10px}body:not(.signed-out) .dialog-head h2{font-size:20px}body:not(.signed-out) .grid-two{grid-template-columns:1fr}body:not(.signed-out) .toolbar .count-label{margin-left:0}}
@media(max-width:359px){.workspace-header{padding:10px 12px;gap:9px}.workspace-brand img{width:39px;height:39px}.workspace-brand .workspace-brand-short{font-size:18px}.workspace-brand small{font-size:7px}.workspace-header .role-label{max-width:130px}.workspace-header .role-label>span{max-width:130px;font-size:9px}body:not(.signed-out) main{padding-left:12px;padding-right:12px}body:not(.signed-out) .notice{margin-left:12px;margin-right:12px}body:not(.signed-out) .stat{padding:14px}.workspace-welcome{padding:21px 18px}.workspace-welcome h2{font-size:21px}}
body:not(.signed-out) #main{scroll-margin-top:106px}


.public-info{max-width:1240px;margin:0 auto;padding:20px 32px 60px;color:#132d53;line-height:1.8}.public-info nav{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 36px}.public-info nav a{padding:9px 16px;background:#edf3fe;border-radius:10px;color:#1759b7}.public-info section{padding:44px 0;scroll-margin-top:24px;border-top:1px solid #dfe6f1}.public-info .info-label{font-size:11px;letter-spacing:1.4px;font-weight:700;color:#ce1530}.public-info h2{font-size:clamp(26px,4vw,38px);line-height:1.3;margin:12px 0 18px}.public-info h3{font-size:20px;line-height:1.4;margin:12px 0}.public-info p{color:#576b85;max-width:850px}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}.public-info article{padding:25px;background:#fff;border:1px solid #dfe6f1;border-radius:18px;min-width:0}.public-info article>span{font-weight:700;color:#1759b7;font-size:12px}.public-info details{border-top:1px solid #dfe6f1;margin-top:18px;padding-top:12px}.public-info summary{cursor:pointer;color:#1759b7;font-weight:650;min-height:44px;display:list-item}.public-info summary:focus-visible,.public-info a:focus-visible{outline:3px solid #ce1530;outline-offset:4px}.public-info ol,.public-info ul{padding-left:22px;color:#576b85}.public-info li{margin:9px 0}.info-band{background:#112f56;border-radius:20px;padding:32px;margin-top:24px}.info-band h3,.info-band p{color:#fff}.public-info .info-notice{background:#edf3fe;padding:22px;border-radius:14px;margin-top:24px}.public-info .info-wide{grid-column:1/-1}.public-info a{overflow-wrap:anywhere}@media(max-width:760px){.public-info{padding:15px 18px 40px}.info-grid{grid-template-columns:1fr}.public-info section{padding:30px 0}.public-info article{padding:22px}.info-band{padding:24px}}



.qr-dialog{width:min(480px,calc(100% - 32px));max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:24px}.qr-dialog::backdrop{background:#10243bbd}.qr-dialog video{width:100%;max-height:40dvh;border-radius:12px;background:#10243b;object-fit:cover}.qr-dialog input{width:100%;margin:8px 0 16px}.qr-dialog label{display:block}#scan-qr{white-space:nowrap}

/* Import stays in the existing modal, with compact source-level review. */
.catalog-import-preview {max-height: 48vh; overflow: auto;}
.catalog-import-preview td {vertical-align: top;}
.catalog-import-preview td small {display: block; white-space: normal; overflow-wrap: anywhere;}
.catalog-import-preview .check-field {min-width: 190px; max-width: 320px; font-size: 12px;}

/* Shared visual refinement: keep existing controls, routing and semantic status colors. */
:root{--ink:#18324e;--muted:#526579;--line:#dce4ed;--bg:#f4f7fa;--teal:#1759b7;--teal-dark:#10458f}
html{scroll-behavior:smooth;scroll-padding-top:24px}
:focus-visible{outline:3px solid #1964cb;outline-offset:3px}
button,a,input,select,textarea,summary{touch-action:manipulation}
.btn,.nav,.workspace-shortcut{transition:background-color .16s,border-color .16s,box-shadow .16s}
.btn:disabled{box-shadow:none}
.signed-out main{max-width:1440px;padding:0 48px}
.entry-header{min-height:112px;border-top:3px solid #ce1530;gap:24px}
.entry-header nav{display:flex;gap:24px;align-items:center;margin-left:auto}
.entry-header nav a{font-size:14px;color:#435974;text-decoration:none;padding:12px 0}
.entry-header nav a:hover{color:#1759b7;text-decoration:underline;text-underline-offset:5px}
.entry-header .entry-brand{max-width:430px}
.entry-full-name{font-size:15px!important;line-height:1.45}
.entry-motto{font-size:11px!important}
.entry-header>.btn{font-size:14px;min-height:44px;border-radius:8px;padding:10px 18px}
.entry-hero{grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:64px;padding:68px 60px;border-radius:24px;background:#112f56;box-shadow:none;align-items:center}
.entry-copy h1{font-size:clamp(42px,4.7vw,64px);line-height:1.12;letter-spacing:-2.2px;margin-bottom:25px}
.entry-eyebrow{font-size:11px;letter-spacing:1.5px;color:#bcd0e9;margin-bottom:24px}
.entry-lead{font-size:16px;line-height:1.8;max-width:530px;color:#d6e2f0}
.entry-button{font-size:14px;background:white;color:#163858;border-radius:8px;margin-top:18px;min-height:46px}
.entry-button:hover{background:#e8f0fa;color:#163858}
.entry-signals{gap:20px;margin-top:34px;padding-top:22px;font-size:11px;color:#8eafd6}
.entry-signals span{display:grid;gap:6px}
.entry-signals b{font-size:12px;color:#e0eaf7;font-weight:500}
.entry-login{border-radius:16px;box-shadow:0 20px 45px #05172c33}
.entry-login-heading{padding:27px 28px;background:#fff;gap:13px}
.entry-login-heading strong{font-size:20px;font-weight:650}
.entry-login-heading small{font-size:12px;line-height:1.6}
.entry-login-icon{display:grid;place-items:center;background:#eef4fc;color:#1759b7;width:42px;height:42px;flex:none;border-radius:10px;font-size:23px}
.entry-login .panel-body{padding:28px}
.entry-login .field{font-size:14px;color:#344c67}
.entry-login input{min-height:48px;font-size:16px!important}
.entry-login form>.btn{min-height:48px;font-size:15px;border-radius:8px}
.entry-login-note{font-size:12px;line-height:1.6;text-align:center;color:#64758a;margin:17px 0 0}
#login-form{scroll-margin-top:28px}
.public-info{max-width:none;padding:0 12px 20px;line-height:1.8}
.public-info>nav{justify-content:center;gap:8px;padding:22px 0;border-bottom:1px solid var(--line);margin:0}
.public-info>nav a{font-size:13px;padding:8px 14px;border-radius:6px;background:transparent;text-decoration:none}
.public-info>nav a:hover{background:#e8eef7}
.public-info section{padding:64px 0;border-top:0;border-bottom:1px solid var(--line);scroll-margin-top:20px}
.public-info h2{font-size:clamp(30px,3.2vw,44px);line-height:1.2;font-weight:700;letter-spacing:-1px;margin:14px 0 22px}
.public-info section>p{font-size:17px;line-height:1.8;max-width:770px}
.public-info .info-label{font-size:11px;letter-spacing:1.5px}
.public-info .info-grid{gap:28px;margin-top:32px}
.public-info article{padding:0 24px 0 0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent}
.public-info article:last-child{border-right:0}
.public-info h3{font-size:22px;letter-spacing:-.4px;line-height:1.4;margin:12px 0}
.public-info article p{font-size:15px;line-height:1.85}
.public-info details{font-size:14px;line-height:1.8;margin-top:18px}
.public-info summary{min-height:44px;padding:7px 0;font-size:14px}
.public-info details p{font-size:14px}
.info-band{display:flex;align-items:center;gap:48px;border-radius:12px;background:#e8f0fa;margin-top:36px;padding:24px 30px}
.info-band h3{font-size:19px;color:#163858;min-width:240px}
.info-band p{font-size:14px!important;color:#425c79!important;margin:0}
#vong-doi .info-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
#vong-doi article{border-right:0;border-top:2px solid #c7d7ec;padding:20px 20px 0 0}
#vong-doi article>span{font-size:13px;color:#1759b7}
#vong-doi h3{font-size:19px}
#vong-doi article p{font-size:14px}
#vai-tro{background:#edf3fa;margin:0 -12px;padding:48px 32px;border-radius:16px;border-bottom:0}
#vai-tro h2 br{display:none}
#vai-tro .info-notice{padding:0;background:none;font-size:13px;border-top:1px solid #cfdaea;padding-top:20px;max-width:none}
#huong-dan .info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#huong-dan .info-wide{margin-top:18px;padding:28px 0 0;border-top:1px solid var(--line);border-right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px}
#huong-dan .info-wide h3{grid-column:1/-1;font-size:22px}
#huong-dan .info-wide details{margin-top:0}
#thong-bao{padding:32px 0 42px}
#thong-bao h2{font-size:23px;letter-spacing:-.4px}
#thong-bao>p{font-size:14px}
#thong-bao .info-notice{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;padding:22px 26px;background:#112f56;color:white;border-radius:12px}
#thong-bao .info-notice h3{font-size:20px;margin:0}
#thong-bao .info-notice p{font-size:14px;color:#d6e2f0;flex:1;margin:0;min-width:250px}
#thong-bao .info-notice a{color:white;font-size:14px}
.entry-footer{display:grid;grid-template-columns:minmax(0,1fr)230px;gap:32px;align-items:stretch;background:var(--ink);border:1px solid #25466f;border-radius:16px;color:#e3ebf5;font-size:14px;line-height:1.6;margin:20px 0 24px;padding:32px}
.entry-footer a:focus-visible{outline:3px solid #fff;outline-offset:4px}
.entry-footer-main{min-width:0}.entry-footer-brand{display:flex;align-items:center;gap:18px}.entry-footer-brand img{width:72px;height:72px;object-fit:contain;background:#fff;padding:4px;border-radius:12px;flex:none}.entry-footer-brand p{margin:4px 0 0}.entry-footer-brand strong{display:block;font-size:19px;line-height:1.4;color:#fff}.entry-footer .entry-footer-label{display:block;margin:0 0 7px;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#b8cce4}
.entry-footer-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin-top:24px;padding-top:18px;border-top:1px solid #36516f}.entry-footer-contact p{margin:0}.entry-footer-contact span,.entry-footer-contact strong{display:block}.entry-footer-contact span{font-size:12px;color:#b8cce4}.entry-footer-contact strong{font-size:16px;color:#fff;margin-top:3px}.entry-footer-contact a{display:inline-flex;align-items:center;min-height:36px;color:#e3ebf5;white-space:nowrap;text-decoration:none}.entry-footer-contact a:hover{text-decoration:underline;text-underline-offset:4px}
.entry-footer-hotline{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:24px;background:#ffffff0a;border:1px solid #36516f;border-radius:12px}.entry-footer-hotline .entry-footer-label{margin:0}.entry-hotline-number{font-size:23px;font-weight:700;line-height:1.5;color:#fff;text-decoration:none;white-space:nowrap}.entry-hotline-number:hover{text-decoration:underline;text-underline-offset:5px}.entry-footer-hotline .btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:44px;margin-top:8px;background:#fff;color:#1759b7;border-color:#fff;font-size:14px}.entry-footer-hotline .btn:hover{background:#e8f1ff;color:#10458f}
@media(max-width:1000px){.entry-footer{grid-template-columns:1fr}.entry-footer-hotline{flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px 22px;padding:18px 22px}.entry-footer-hotline .btn{margin:0 0 0 auto}}
@media(max-width:540px){.entry-footer-brand{align-items:flex-start;gap:14px}.entry-footer-brand img{width:56px;height:56px}.entry-footer-brand strong{font-size:17px}.entry-footer-brand p{font-size:13px}.entry-footer-contact{grid-template-columns:1fr;gap:16px}.entry-footer-hotline{display:flex;flex-direction:column;align-items:flex-start;padding:20px}.entry-footer-hotline .btn{margin:6px 0 0}}


/* Workspace: legible density, predictable toolbars, contained wide tables. */
.workspace-menu-toggle{display:none}
body:not(.signed-out) .sidebar{width:232px;padding:18px 12px;overflow:auto}
body:not(.signed-out) .sidebar .brand{display:none}
body:not(.signed-out) .env{margin:6px 12px 16px;font-size:10px}
body:not(.signed-out) .workspace{margin-left:232px}
body:not(.signed-out) .nav{border-radius:7px;min-height:44px;font-size:13px;line-height:1.4;padding:10px 12px}
body:not(.signed-out) .nav.active{background:#2a4f7d;box-shadow:inset 3px 0 #f75c73}
body:not(.signed-out) .sidebar-foot{font-size:11px;margin-top:24px;padding:18px 12px 0}
body:not(.signed-out) .sidebar-foot p{font-size:11px}
.workspace-brand b{font-size:14px}
.workspace-brand small{font-size:10px}
.workspace-location>small{font-size:10px}
.workspace-location .crumb{font-size:14px}
.workspace-header .role-label{font-size:13px;max-width:350px}
.workspace-header #owner-capability-badge{font-size:10px}
body:not(.signed-out) main{padding:28px 30px 48px}
body:not(.signed-out) .notice{margin:20px 30px 0;font-size:12px;border-radius:8px;line-height:1.7}
body:not(.signed-out) h1{font-size:30px;letter-spacing:-.8px}
body:not(.signed-out) .eyebrow{font-size:10px}
body:not(.signed-out) .subtitle{font-size:14px;line-height:1.7}
body:not(.signed-out) .btn{font-size:13px;min-height:44px;border-radius:7px;box-shadow:none!important;white-space:normal}
body:not(.signed-out) .btn.small{font-size:12px;min-height:36px}
body:not(.signed-out) .panel{border-radius:10px;box-shadow:none}
body:not(.signed-out) .panel-head{padding:20px 22px}
body:not(.signed-out) .panel-head h2{font-size:18px}
body:not(.signed-out) .panel-head p{font-size:13px}
body:not(.signed-out) .panel-body{padding:22px}
body:not(.signed-out) .field{font-size:14px;line-height:1.6}
body:not(.signed-out) .field input:not([type=checkbox]),body:not(.signed-out) .field select,body:not(.signed-out) .field textarea{font-size:14px;min-height:44px;border-radius:6px}
body:not(.signed-out) .field small{font-size:12px}
body:not(.signed-out) table{font-size:13px;line-height:1.55}
body:not(.signed-out) th{font-size:11px;padding:13px 16px;background:#edf2f8;letter-spacing:.25px}
body:not(.signed-out) td{padding:14px 16px}
body:not(.signed-out) tbody tr:hover{background:#f5f8fc}
body:not(.signed-out) td small{font-size:12px}
body:not(.signed-out) .table-wrap{border-radius:0;overscroll-behavior-inline:contain;max-width:100%}
body:not(.signed-out) .badge{font-size:11px;border-radius:5px;white-space:normal}
body:not(.signed-out) .search{font-size:14px;border-radius:6px}
body:not(.signed-out) .filter button{font-size:12px;border-radius:6px}
body:not(.signed-out) .stat{border-radius:10px;padding:20px;box-shadow:none}
body:not(.signed-out) .stat-label{font-size:13px}
body:not(.signed-out) .stat-note{font-size:12px}
body:not(.signed-out) .stat-number{font-variant-numeric:tabular-nums}
body:not(.signed-out) .detail-item dt,body:not(.signed-out) .record-meta{font-size:12px}
body:not(.signed-out) .detail-item dd,body:not(.signed-out) .record p{font-size:14px}
body:not(.signed-out) .mini-info,body:not(.signed-out) .warning-box,body:not(.signed-out) .source-note,body:not(.signed-out) .quality-item,body:not(.signed-out) .ack{font-size:13px}
body:not(.signed-out) .link-button,body:not(.signed-out) .count-label{font-size:12px}
body:not(.signed-out) .workflow-step strong{font-size:14px}
body:not(.signed-out) .workflow-step p{font-size:12px}
.workspace-welcome{padding:24px 28px;border-radius:12px;background:#edf3fb}
.workspace-welcome span{font-size:10px}
.workspace-welcome p{font-size:14px}
.workspace-welcome h2{font-size:26px}
.workspace-welcome-symbol{transform:none;border-radius:12px}
.workspace-shortcut{border-radius:8px;min-height:90px}
.workspace-shortcut b{font-size:14px}
.workspace-shortcut small{font-size:12px}
body:not(.signed-out) dialog{border-radius:12px;max-height:90dvh}
body:not(.signed-out) .dialog-foot{position:sticky;bottom:0;z-index:1;flex-wrap:wrap}
.toast{font-size:14px;max-width:min(480px,calc(100vw - 32px));right:16px;line-height:1.6}
@media(max-width:1100px){
 .signed-out main{padding:0 28px}.entry-header nav{gap:16px}.entry-header .entry-brand{max-width:330px}.entry-full-name{font-size:13px!important}.entry-motto{font-size:10px!important}.entry-hero{gap:36px;padding:48px 36px}.entry-copy h1{font-size:48px}.entry-signals{gap:14px}
 .workspace-header{gap:18px}.workspace-brand{max-width:310px}.workspace-brand b{font-size:12px}.workspace-location{display:none}
 body:not(.signed-out) .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .entry-header nav{display:none}.entry-header>.btn{margin-left:auto}.entry-hero{gap:26px;padding:38px 28px}.entry-copy h1{font-size:42px}.entry-login .panel-body,.entry-login-heading{padding:22px}.entry-login-heading strong{font-size:18px}.entry-signals{flex-direction:column;gap:10px}.entry-signals span{display:flex;gap:9px}.info-band{display:block}.info-band h3{min-width:0}
 body:not(.signed-out) .sidebar{width:210px}body:not(.signed-out) .workspace{margin-left:210px}body:not(.signed-out) main{padding:24px 22px}body:not(.signed-out) .notice{margin:18px 22px 0}
}
@media(max-width:760px){
 .signed-out main{padding:0 18px}.entry-header{min-height:92px}.entry-header .entry-brand{max-width:65%}.entry-header>.btn{font-size:13px;padding:10px 12px}.entry-hero{grid-template-columns:1fr;gap:32px;padding:34px 24px;border-radius:16px}.entry-copy h1{font-size:44px;letter-spacing:-1.7px;line-height:1.13}.entry-eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:20px}.entry-lead{font-size:16px}.entry-signals{flex-direction:row;gap:14px}.entry-signals span{display:grid;gap:4px}.entry-signals b{font-size:11px}.entry-login .panel-body{padding:22px}.entry-login-heading{padding:22px}.entry-login-heading small{font-size:11px}
 .public-info{padding:0 4px 16px}.public-info>nav{justify-content:flex-start;gap:2px;padding:16px 0}.public-info>nav a{padding:8px 10px;font-size:13px;min-height:40px}.public-info section{padding:38px 0}.public-info h2{font-size:32px;letter-spacing:-.7px}.public-info .info-label{font-size:10px;letter-spacing:1px}.public-info section>p{font-size:15px}.public-info .info-grid,#vong-doi .info-grid,#huong-dan .info-grid{grid-template-columns:1fr;gap:26px}.public-info article{border-right:0;border-bottom:1px solid var(--line);padding:0 0 22px}.public-info article:last-child{border-bottom:0;padding-bottom:0}.public-info h3{font-size:21px}.public-info article p{font-size:15px}.info-band{padding:22px;margin-top:22px}.info-band h3{font-size:20px;margin-top:0}#vong-doi article{padding-top:16px;border-bottom:0}#vong-doi .info-grid{gap:24px}#vai-tro{margin:0 -4px;padding:30px 22px;border-radius:12px}#vai-tro .info-notice{font-size:13px}#huong-dan .info-wide{display:block;padding:22px 0 0;margin-top:0}#huong-dan .info-wide details{margin-top:12px}#thong-bao .info-notice{padding:22px;display:block}#thong-bao .info-notice p{min-width:0;margin:10px 0} .entry-footer{padding:24px 20px;font-size:14px;gap:24px}
 .workspace-header{position:static;min-height:80px;gap:10px;padding:12px 16px;align-items:flex-start}.workspace-header .role-label{font-size:12px;max-width:185px;gap:7px}.workspace-header .role-label>span{font-size:12px}.workspace-header #logout{font-size:12px;min-height:36px}.workspace-header #owner-capability-badge{font-size:10px}.workspace-brand small{font-size:10px}.workspace-brand{max-width:155px}
 body:not(.signed-out) .sidebar{position:static;width:100%;height:auto;padding:8px 16px}
 .workspace-menu-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:10px 12px;background:#183e6b;color:#fff;border:1px solid #3e6086;border-radius:7px;font-size:14px;text-align:left}
 body:not(.signed-out) .sidebar nav{display:none;overflow:visible}
 body:not(.signed-out) .sidebar nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:10px}
 body:not(.signed-out) .nav{font-size:13px;white-space:normal;min-height:46px;padding:10px}
 body:not(.signed-out) .workspace{margin-left:0}
 body:not(.signed-out) main{padding:22px 16px 36px}
 body:not(.signed-out) .notice{margin:16px 16px 0;font-size:12px;padding:12px}
 body:not(.signed-out) .subtitle{font-size:14px}
 body:not(.signed-out) h1{font-size:27px}
 body:not(.signed-out) .panel-head,body:not(.signed-out) .panel-body,body:not(.signed-out) .record{padding:18px}
 body:not(.signed-out) .panel-head h2{font-size:17px}
 body:not(.signed-out) .page-head .btn{font-size:13px;min-height:44px}
 body:not(.signed-out) .field input:not([type=checkbox]),body:not(.signed-out) .field select,body:not(.signed-out) .field textarea{font-size:16px}
 body:not(.signed-out) .stat{padding:16px}.workspace-welcome{padding:22px}.workspace-welcome h2{font-size:23px}.workspace-welcome span{font-size:10px}.workspace-welcome p{font-size:14px}.workspace-shortcut small{font-size:12px}.workspace-shortcuts{padding:16px}
 body:not(.signed-out) .detail-grid{grid-template-columns:1fr}
 body:not(.signed-out) .btn.small{min-height:40px}
}
@media(max-width:360px){
 .signed-out main{padding:0 12px}.entry-hero{padding:28px 18px}.entry-copy h1{font-size:36px;letter-spacing:-1.4px}.entry-eyebrow{font-size:9px}.entry-signals{gap:10px}.entry-signals b{font-size:10px}.entry-login .panel-body,.entry-login-heading{padding:18px}.entry-login-heading strong{font-size:16px}.entry-login-heading small{font-size:11px}.entry-login-icon{width:34px;height:34px}.public-info h2{font-size:29px}.workspace-brand{max-width:120px}.workspace-header .role-label{max-width:155px}.workspace-header{padding:12px;gap:8px}body:not(.signed-out) main{padding:20px 12px}body:not(.signed-out) .notice{margin:12px 12px 0}body:not(.signed-out) .sidebar{padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.nav,.workspace-shortcut{transition:none}}
@media(max-width:760px){.entry-copy h1{font-size:clamp(32px,8.9vw,42px);letter-spacing:-1.3px}.entry-signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.entry-signals b{font-size:11px;line-height:1.6}}
@media(max-width:360px){.entry-signals b{font-size:10px}}
.signed-out .workspace-skip{display:block}
/* The department and certification toolbars use native labels outside .field. */
body:not(.signed-out) .actions>label{display:grid;gap:7px;flex:1 1 180px;min-width:0;font-size:14px}
body:not(.signed-out) .panel-body.actions{align-items:flex-end}
#cert-query,#dept-query,#dept-location,#dept-as-of,#dept-filter{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cfdbea;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
body:not(.signed-out) td>button:not(.btn):not(.asset-link){min-height:40px;padding:8px 12px;border:1px solid #cfdbea;border-radius:6px;background:#fff;color:#1759b7;font:inherit}
body:not(.signed-out) td>button:not(.btn):not(.asset-link):hover{background:#edf3fe}
body:not(.signed-out) .stats>button.stat .stat-number{display:block}
body:not(.signed-out) .panel:empty{display:none}
@media(max-width:760px){#cert-query,#dept-query,#dept-location,#dept-as-of,#dept-filter{font-size:16px}}

/* Sourced policies reuse workspace controls; distinguish saved drafts from current decisions. */
.policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}
.policy-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:22px;min-width:0}
.policy-card>h2{font-size:19px;margin-bottom:20px;color:var(--teal)}
.policy-summary+.policy-summary{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}
.policy-summary h3{font-size:13px;margin:0 0 8px}
.policy-summary p,.policy-details p{font-size:13px;line-height:1.7;margin:7px 0;overflow-wrap:anywhere}
.policy-state{font-weight:600;color:var(--ink)}
.policy-source,.policy-help{color:var(--muted);overflow-wrap:anywhere}
.policy-help{font-size:13px;line-height:1.75;margin:12px 0 20px;max-width:950px}
.policy-details{margin-top:8px}.policy-details summary{padding:8px 0;min-height:40px}
.policy-details li{margin:12px 0;overflow-wrap:anywhere}.policy-details ol{padding-left:22px}
.policy-editor .panel-body{max-width:1050px}.policy-editor h2{margin-bottom:16px}
.policy-editor .field{max-width:900px}
.policy-fields{min-width:0;margin:22px 0;padding:20px;border:1px solid var(--line);border-radius:8px;background:#f8fafd}
.policy-fields legend{font-size:16px;font-weight:600;padding:0 8px}
.policy-fields>.field:last-child{margin-bottom:0}
.policy-checklist-row{display:grid;grid-template-columns:minmax(110px,.5fr) repeat(2,minmax(0,1fr));gap:12px 16px;padding:18px 0;border-top:1px solid var(--line)}
.policy-checklist-row>.field{margin-bottom:0;min-width:0}.policy-checklist-row>button{grid-column:1/-1;justify-self:start}
.policy-error{color:var(--red);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.policy-error:empty,#policy-feedback:empty{display:none}
#policy-feedback{padding:14px 18px;background:#e9f3ed;border:1px solid #bdd9c8;border-radius:8px;color:#235c3c;line-height:1.7}
#policy-review{padding:16px 20px;margin:18px 0;background:#f0f5fc;border-radius:8px;overflow-wrap:anywhere}
@media(max-width:900px){.policy-grid{grid-template-columns:1fr}}
@media(max-width:760px){.policy-card{padding:18px}.policy-fields{padding:14px}.policy-checklist-row{grid-template-columns:1fr}.policy-editor .field input,.policy-editor .field select,.policy-editor .field textarea{font-size:16px!important}.policy-editor .panel-body{padding:18px}}

#policy-source-records,#policy-source-feedback{overflow-wrap:anywhere}
.policy-source-version+.policy-source-version{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}
.assignment-card{padding:1rem 0;border-bottom:1px solid #d9e2ee;overflow-wrap:anywhere}
.assignment-card:last-child{border-bottom:0}
.assignment-card details{margin:.75rem 0}
.assignment-card summary{cursor:pointer;font-weight:600;padding:.4rem 0}
.assignment-card form{max-width:760px}
#assignment-settings fieldset{min-width:0;margin:1rem 0;border:1px solid #d9e2ee;border-radius:8px}


/* Keep the catalog's wide, readable columns inside its own scroll region. */
#main,#reg-results,.registry-results-panel{min-width:0;max-width:100%;box-sizing:border-box}
.registry-results-panel{overflow:hidden}
.registry-table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.registry-table-scroll table{min-width:2100px;table-layout:fixed;width:100%}
.registry-table-scroll th,.registry-table-scroll td{overflow-wrap:anywhere;white-space:normal;vertical-align:top}
.registry-table-scroll th:first-child{width:150px}
.registry-table-scroll th:nth-child(2){width:130px}
.registry-table-scroll th:nth-child(3){width:260px}
.registry-table-scroll th:nth-child(9){width:84px}
.registry-table-scroll:focus-visible{outline:2px solid var(--primary,#2563eb);outline-offset:-2px}
@media screen {
 .registry-table-scroll{max-height:65vh;max-height:65dvh;scroll-padding-block-start:8rem}
 .registry-table-scroll thead th{position:sticky;top:0;z-index:2;background:#f2f5f8;box-shadow:inset 0 -1px #cbd8e4}
}
@media screen and (min-width:901px){
 .registry-table-scroll{scroll-padding-inline-start:166px}
 .registry-table-scroll tbody tr>td:first-child:not([colspan]){position:sticky;left:0;background:#fff;box-shadow:inset -1px 0 #cbd8e4;z-index:1}
 .registry-table-scroll thead tr>th:first-child{left:0;background:#f2f5f8;z-index:3}
 .registry-table-scroll tbody tr:is(:hover,:focus-within)>td:first-child{background:#edf3fa}
}
#reg-results .toolbar,.page-head .actions{flex-wrap:wrap;min-width:0}
.registry-filters .field,.registry-filters input,.registry-filters select{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:700px){.registry-filters .actions{flex-wrap:wrap}.registry-table-scroll table{min-width:2100px}}

/* Department forms share one layout without changing other dialogs. */
#department-dialog{width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
#department-dialog>form{display:flex;flex-direction:column;max-height:inherit;min-width:0;margin:0}
#department-dialog .dialog-head{flex-shrink:0;padding:20px 24px}
#department-dialog .dialog-head h2{margin:0;line-height:1.4;overflow-wrap:anywhere}
#department-dialog .department-dialog-body{min-height:0;padding:20px 24px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
#department-dialog .department-dialog-body>p{margin:0 0 18px;line-height:1.6}
#department-dialog .department-dialog-body>p:last-child{margin-bottom:0}
#department-dialog .field{min-width:0;font-size:14px;line-height:1.6}
#department-dialog .field input:not([type=checkbox]),#department-dialog .field select,#department-dialog .field textarea{min-width:0;max-width:100%;width:100%;min-height:44px;box-sizing:border-box;font:inherit}
#department-dialog .field textarea{min-height:136px;resize:vertical}
#department-dialog .check-field{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6}
#department-dialog .check-field input{flex:none;width:18px;height:18px;margin:3px 0 0}
#department-dialog .check-field span{min-width:0}
#department-dialog .dialog-foot{position:static;flex-shrink:0;gap:10px;padding:16px 24px}
#department-dialog .dialog-foot .btn{min-height:44px;white-space:normal;line-height:1.5}
#department-dialog .form-error:empty{display:none}
#department-dialog :is(input,select,textarea,button):focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@media(max-width:600px){
 #department-dialog .dialog-head{padding:18px 16px}
 #department-dialog .department-dialog-body{padding:18px 16px}
 #department-dialog .dialog-foot{flex-direction:column;align-items:stretch;padding:14px 16px}
 #department-dialog .field input:not([type=checkbox]),#department-dialog .field select,#department-dialog .field textarea{font-size:16px}
}
@media(max-height:480px){
 #department-dialog .dialog-head{padding:12px 16px}
 #department-dialog .department-dialog-body{padding:14px 16px}
 #department-dialog .dialog-foot{padding:12px 16px}
}

/* Monthly ledger shares the department state and has no write controls. */
.department-monthly-report{background:#fff;color:#172b3a;padding:20px;margin:16px 0;border:1px solid #cbd5e1;border-radius:8px}
.monthly-heading{display:flex;justify-content:space-between;gap:16px;font-size:12px}
.department-monthly-report h2{text-align:center;font-size:18px;margin:16px 0 10px}
.monthly-meta{font-size:13px;line-height:1.6;margin:0 0 14px}
.department-monthly-table{table-layout:fixed;width:100%;min-width:1140px;border-collapse:collapse}
body:not(.signed-out) .department-monthly-table th,body:not(.signed-out) .department-monthly-table td{border:1px solid #94a3b8;padding:3px;text-align:center;white-space:normal;overflow-wrap:anywhere}
.department-monthly-table th:first-child{width:32px}.department-monthly-table th:nth-child(2){width:235px}
body:not(.signed-out) .department-monthly-table tbody th{text-align:left;font-weight:400}.department-monthly-table small{display:block;font-size:10px;line-height:1.25}
.department-monthly-table tbody .asset-link{font-size:12px;line-height:1.25;text-align:left;overflow-wrap:anywhere;white-space:normal}
body:not(.signed-out) .department-monthly-table td>button.monthly-state{display:block;width:100%;min-width:0;min-height:36px;padding:1px;border:0;border-radius:3px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
.device-status{display:inline-block;border-radius:6px;padding:3px 8px;font-weight:600}
:is(.device-status,.monthly-state).normal{background:#dcfce7;color:#14532d}
:is(.device-status,.monthly-state).repair{background:#fee2e2;color:#7f1d1d}
:is(.device-status,.monthly-state):is(.problem,.missing,.unknown){background:#fef3c7;color:#78350f}
.stat.device-status[aria-pressed=true]{outline:3px solid currentColor;outline-offset:2px}
.monthly-unavailable{background:#e2e8f0}.monthly-legend,.monthly-basis{font-size:12px;line-height:1.45;margin:10px 0 0}
.monthly-signatures{display:flex;justify-content:space-around;text-align:center;font-size:12px;font-weight:700;margin-top:18px;padding-bottom:45px}.monthly-signatures small{font-weight:400}
@page departmentMonth{size:A4 landscape;margin:10mm}
@media print{
  body.printing-department-month{display:block!important;background:#fff!important}
  body.printing-department-month>*:not(.shell){display:none!important}
  body.printing-department-month .shell{display:block!important;margin:0!important;padding:0!important}
  body.printing-department-month .sidebar,body.printing-department-month .notice{display:none!important}
  body.printing-department-month .workspace{display:block!important;width:100%!important;margin:0!important;padding:0!important}
  body.printing-department-month .shell{min-height:0!important}
  body.printing-department-month #main{display:block!important;position:static!important;width:auto!important;margin:0!important;padding:0!important}
  body.printing-department-month #main>*:not(#monthly-pages){display:none!important}
  body.printing-department-month #monthly-pages{display:block!important}
  body.printing-department-month .department-monthly-report{page:departmentMonth;break-after:page;border:0;border-radius:0;padding:0;margin:0;color:#000}
  body.printing-department-month .department-monthly-report:last-child{break-after:auto}
  body.printing-department-month .monthly-heading{font-size:9pt}
  body.printing-department-month .department-monthly-report h2{font-size:13pt;margin:3mm 0 2mm}
  body.printing-department-month .monthly-meta{font-size:9pt;line-height:1.35;margin-bottom:3mm}
  body.printing-department-month .table-wrap{overflow:visible;border:0}
  body.printing-department-month .department-monthly-table{min-width:0;width:100%;font-size:8pt}
  body.printing-department-month .department-monthly-table th:first-child{width:7mm}
  body.printing-department-month .department-monthly-table th:nth-child(2){width:68mm}
  body.printing-department-month .department-monthly-table th,body.printing-department-month .department-monthly-table td{padding:.6mm .4mm;border-color:#777;font-size:8pt;line-height:1.2}
  body.printing-department-month .department-monthly-table tbody .asset-link{font-size:8pt;color:#000;text-decoration:none}
  body.printing-department-month .department-monthly-table small{font-size:6.5pt;line-height:1.15}
  body.printing-department-month .department-monthly-table td>button.monthly-state{min-height:0;height:auto;font-size:8pt;padding:0;color:#000;background:none}
  body.printing-department-month tr{break-inside:avoid}
  body.printing-department-month .monthly-legend,body.printing-department-month .monthly-basis{font-size:8pt;line-height:1.25;margin-top:2mm}
  body.printing-department-month .monthly-signatures{font-size:9pt;margin-top:3mm;padding-bottom:10mm}
}

.department-monthly-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}


/* Keep device details and certificate actions in the viewport, even for long lists. */
body:has(:is(#cert-dialog,#cert-detail-dialog)[open]){overflow:hidden}
:is(#cert-dialog,#cert-detail-dialog){position:fixed;inset:0;margin:auto;width:960px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
:is(#cert-dialog,#cert-detail-dialog)[open],#cert-form{display:flex;flex-direction:column;min-height:0}
#cert-form{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head,:is(#cert-dialog,#cert-detail-dialog) .dialog-foot{flex:none;background:var(--surface);gap:12px}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head>div{min-width:0;overflow-wrap:anywhere}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head .subtitle{margin-top:8px}
:is(#cert-dialog,#cert-detail-dialog) .cert-body{min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-gutter:stable}
:is(#cert-dialog,#cert-detail-dialog) .dialog-foot{flex-wrap:wrap;margin:0}
:is(#cert-dialog,#cert-detail-dialog) .dialog-foot button{padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);white-space:normal}
:is(#cert-dialog,#cert-detail-dialog) .dialog-foot button.primary{background:var(--teal);color:white;border-color:var(--teal)}
.cert-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.cert-fields>*{min-width:0}
.cert-fields>.detail-grid,.cert-fields>.check-field,.cert-fields>p,.cert-fields>fieldset,.cert-fields>section{grid-column:1/-1}
.cert-fields .field input,.cert-fields .field select,.cert-fields .field textarea{min-width:0;max-width:100%}
:is(#cert-dialog,#cert-detail-dialog) .badge{white-space:normal}
@media(max-width:600px){:is(#cert-dialog,#cert-detail-dialog){max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#cert-form{max-height:calc(100dvh - 16px)}:is(#cert-dialog,#cert-detail-dialog) .dialog-head,:is(#cert-dialog,#cert-detail-dialog) .dialog-foot{padding:16px}:is(#cert-dialog,#cert-detail-dialog) .cert-body.panel-body{padding:16px}:is(#cert-dialog,#cert-detail-dialog) .field input,:is(#cert-dialog,#cert-detail-dialog) .field select,:is(#cert-dialog,#cert-detail-dialog) .field textarea{font-size:16px}.cert-fields{grid-template-columns:1fr}:is(#cert-dialog,#cert-detail-dialog) .dialog-foot button{flex:1 1 130px}:is(#cert-dialog,#cert-detail-dialog) .detail-grid{grid-template-columns:1fr}}

#cert-dialog #cert-close{font-size:24px;min-width:40px;min-height:40px;padding:0 7px;flex:none}

/* One maintenance occurrence, with extra details kept out of the main form. */
#maintenance-dialog{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
#maintenance-dialog[open],#pm-form{display:flex;flex-direction:column;min-height:0}
#pm-form{max-height:inherit}
#pm-form>.panel-body{min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
#pm-form .dialog-head,#pm-form .dialog-foot{flex:none;background:var(--surface)}
#pm-form .dialog-foot{position:static;flex-wrap:wrap}
#pm-form details>summary{cursor:pointer;padding:12px 0;font-weight:600}
#pm-form details>.field,#pm-form details>.check-field{margin:12px 0}
#pm-form .field{min-width:0}
#pm-form .field input,#pm-form .field select,#pm-form .field textarea{max-width:100%;box-sizing:border-box}
#pm-form [aria-invalid=true]{border-color:var(--red,#b42318)}
#pm-form .pm-field-error{display:block}
@media(max-width:600px){#pm-form .dialog-head,#pm-form>.panel-body,#pm-form .dialog-foot{padding:16px}#pm-form .dialog-foot .btn{flex:1 1 130px;white-space:normal;min-height:44px}#pm-form .field input,#pm-form .field select,#pm-form .field textarea{font-size:16px}#pm-form .registry-fields-grid{grid-template-columns:1fr}}

/* Stage 2: scoped workspaces; the underlying business forms stay intact. */
body:has(.workspace-window[open]){overflow:hidden;overscroll-behavior:none}
body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window{position:fixed;inset:0;margin:auto;padding:0;border:1px solid var(--line);width:min(680px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100% - 24px);overflow:hidden;box-sizing:border-box}
body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window[data-workspace=wide]{width:min(1100px,calc(100% - 32px))}
body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window[data-workspace=drawer]{inset:0 0 0 auto;margin:0;width:min(860px,94%);max-width:100%;height:100%;max-height:100%;border-radius:12px 0 0 12px}
.workspace-window[open],.workspace-window>form{display:flex;flex-direction:column;min-height:0;max-height:inherit}
.workspace-window>form{flex:1;margin:0;overflow:hidden}
body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .dialog-head,body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .dialog-foot{position:static;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;margin:0}
.workspace-window .dialog-head h2{margin:0;overflow-wrap:anywhere;line-height:1.35}
.workspace-window .dialog-head .icon-button{flex:none;min-width:44px;min-height:44px}
.workspace-window .workspace-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere;padding:20px 24px;scroll-padding-block:20px}
.workspace-window .workspace-body #registry-fields,.workspace-window .workspace-body #registry-error,.workspace-window .workspace-body #action-fields{padding:0}
.workspace-window .workspace-body>.department-dialog-body{overflow:visible;padding:0}
.workspace-window .dialog-foot .btn{min-height:44px;white-space:normal}
.workspace-window :is(input,select,textarea,button):focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.workspace-window :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.workspace-window .workspace-body .panel{margin-bottom:0}
.workspace-window .workspace-borrowed>summary,.workspace-window .workspace-borrowed>form>button.primary:not([type=button]),.workspace-window form.workspace-borrowed>button:not([type=button]){display:none}
.workspace-source{display:none!important}
.workspace-launches{margin-bottom:22px;gap:10px}
@media(max-width:600px),(max-height:500px){
 body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window,body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window[data-workspace=wide],body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window[data-workspace=drawer]{inset:0;margin:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}
 body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .dialog-head,body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .dialog-foot{padding:12px 16px}
 body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .dialog-head h2{font-size:18px}
 .workspace-window .workspace-body{padding:16px}
 .workspace-window .dialog-foot{flex-wrap:wrap}
 .workspace-window .dialog-foot .btn{flex:1 1 120px}
 .workspace-window .registry-fields-grid,.workspace-window .detail-grid{grid-template-columns:1fr}
 body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog).workspace-window .field :is(input,select,textarea){font-size:16px}
}

#book-dialog.workspace-window>form{padding:0}
.workspace-window small.form-error{display:block;margin-block:8px}

.workspace-window .workspace-borrowed :is(button[type=submit],button:not([type])){display:none}

.workspace-source-panel{display:none}

/* Stage 3 list controls, scoped to query forms and pagers. */
.query-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.query-filters>.field{flex:1 1 190px;min-width:0;margin:0}.query-advanced{flex-basis:100%;border-top:1px solid var(--line);padding-top:12px}.query-advanced>summary{cursor:pointer;padding:8px 0;font-weight:600}.query-advanced>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;padding-block:12px}.query-pager{padding:14px 20px;gap:12px;flex-wrap:wrap;border-block:1px solid var(--line)}.query-pager>p{margin:0;flex:1 1 300px}.query-filters .actions{margin:0}.query-pager button{min-height:44px}@media(max-width:600px){.query-filters{align-items:stretch}.query-filters>.field{flex-basis:100%}.query-advanced>div{grid-template-columns:1fr}.query-pager{padding:12px}.query-pager>p{flex-basis:100%}.query-filters input,.query-filters select{font-size:16px}}

/* Overview: scoped operational information before secondary distribution. */
.overview-dashboard{--overview-blue:#1759b7;--overview-navy:#142f53;color:var(--overview-navy)}
.overview-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.overview-heading h1{margin-bottom:8px}.overview-eyebrow,.overview-section-label{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#596f8c;margin:0 0 9px}.overview-scope{font-size:14px;margin:0;color:#536982;line-height:1.6}.overview-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.overview-updated{font-size:12px;color:#536982;line-height:1.6;text-align:right}.overview-updated small{display:block;font-size:11px}.overview-filters{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end;padding:18px 20px;background:#eaf0f8;border:1px solid #dbe4ef;border-radius:10px;margin-bottom:22px}.overview-filters label{display:grid;gap:7px;min-width:150px;font-size:12px;font-weight:600}.overview-filters select{border:1px solid #c8d5e6;border-radius:6px;background:white;min-height:40px;max-width:100%;padding:8px 30px 8px 10px;color:#173858;font-size:13px}.overview-reset,.overview-text-button{border:0;background:transparent;color:#1759b7;font-size:13px;padding:10px 0;min-height:40px;white-space:nowrap}.overview-filter-note{margin-left:auto;font-size:12px;color:#596d86;padding-bottom:12px}.overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.overview-kpi{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid #dce5f0;border-radius:12px;padding:20px;min-width:0;box-shadow:0 2px 5px #16355b04;color:#142f53;position:relative}.overview-kpi:hover,.overview-kpi.is-selected{border-color:#1759b7;background:#fbfdff}.overview-kpi-label{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;line-height:1.5}.overview-kpi-label>span{color:#6c829d}.overview-kpi-number{display:flex;gap:10px;align-items:baseline;font-size:38px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.3;margin:13px 0 8px;letter-spacing:-1px}.overview-kpi-number small{font-size:12px;font-weight:400;letter-spacing:0;color:#60728c}.overview-kpi-note{font-size:12px;line-height:1.6;color:#60728c;min-height:38px}.overview-kpi-action{display:flex;justify-content:space-between;border-top:1px solid #edf1f6;padding-top:12px;margin-top:12px;color:#1759b7;font-size:12px}.overview-kpi.has-attention .overview-kpi-number{color:#a04432}.overview-work-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:24px;align-items:start}.overview-panel{background:white;border:1px solid #dce5f0;border-radius:12px;min-width:0;margin-bottom:24px;overflow:hidden}.overview-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 22px 18px}.overview-panel-heading h2,.overview-deadline-heading h2{font-size:19px;line-height:1.4;margin:0}.overview-panel-heading h3{font-size:15px;margin:0;line-height:1.5}.overview-panel-heading p,.overview-deadline-heading p{font-size:12px;color:#60728c;line-height:1.6;margin:6px 0 0}.overview-count{display:inline-block;border-radius:20px;background:#eaf1fb;font-size:12px;padding:3px 9px;color:#1b57a3;vertical-align:middle;margin-left:6px}.overview-queue{border-top:3px solid #235da6}.overview-queue-groups{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 18px;border-bottom:1px solid #edf1f6}.overview-queue-groups button{display:flex;gap:12px;align-items:center;min-height:36px;border:1px solid #dae4f1;background:#f5f8fd;border-radius:6px;padding:7px 10px;color:#345578;font-size:12px}.overview-queue-groups b{color:#183c6b}.overview-queue-groups>span{font-size:13px;color:#60728c}.overview-records{list-style:none;margin:0;padding:0}.overview-records li{display:flex;justify-content:space-between;gap:18px;padding:17px 22px;border-top:1px solid #edf1f6;align-items:flex-start}.overview-record-main{min-width:0;flex:1}.overview-record-link{display:inline-block;color:#173858;font-size:14px;font-weight:600;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}.overview-record-link:hover{text-decoration:underline;color:#1759b7}.overview-record-main small{display:block;font-size:12px;color:#60728c;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.overview-record-main p{font-size:13px;margin:6px 0 0;color:#465c77;line-height:1.6;overflow-wrap:anywhere}.overview-record-main .overview-reference{font-size:10px;letter-spacing:.15px}.overview-record-status{display:grid;justify-items:end;gap:8px;max-width:42%;text-align:right}.overview-record-status time{font-size:13px;font-variant-numeric:tabular-nums}.overview-record-status small{font-size:11px;color:#60728c;line-height:1.6}.overview-tag{font-size:11px;font-weight:500;background:#edf3fa;color:#345578;padding:4px 8px;border-radius:5px;line-height:1.5}.overview-tag.is-overdue{background:#fff0e9;color:#9d3f29}.overview-panel-footnote{font-size:11px;color:#60728c;margin:0;padding:14px 22px;background:#fafcfe;border-top:1px solid #edf1f6}.overview-deadline-heading{margin:0 0 18px}.overview-deadlines .overview-panel{margin-bottom:16px}.overview-deadlines .overview-panel-heading{padding:16px 18px 10px}.overview-deadlines .overview-records li{padding:14px 18px}.overview-deadlines .overview-record-main p{font-size:12px}.overview-deadline-note{font-size:12px;color:#60728c;line-height:1.7;margin:0 0 24px}.overview-distribution{margin-top:2px}.overview-bars{padding:0 22px 20px;display:grid;gap:4px}.overview-bar-row{display:grid;grid-template-columns:230px minmax(0,1fr) 55px;gap:18px;align-items:center;text-align:left;min-height:44px;padding:9px 6px;border:0;background:transparent;color:#345578;font-size:13px}.overview-bar-row:hover{background:#f3f7fd}.overview-bar-row b{text-align:right;font-variant-numeric:tabular-nums;color:#142f53}.overview-bar-track{background:#f0f4f9;height:12px;border-radius:3px;overflow:hidden}.overview-bar-track{display:block;width:100%}.overview-bar-track rect{fill:#346db8}.overview-bar-row:last-child .overview-bar-track rect{fill:#9caec4}.overview-data-alternative{border-top:1px solid #edf1f6;padding:16px 22px}.overview-data-alternative summary,.overview-definitions summary{font-size:13px;color:#3c597c;cursor:pointer;min-height:24px}.overview-data-alternative caption{text-align:left;font-size:12px;padding:12px}.overview-definitions{font-size:12px;color:#60728c;line-height:1.7;margin-bottom:12px}.overview-definitions dl{display:grid;grid-template-columns:1fr 1fr;gap:18px}.overview-definitions dt{font-weight:600;color:#345578}.overview-definitions dd{margin:3px 0}.overview-empty{padding:24px 22px;margin:0;line-height:1.7;color:#60728c;font-size:13px}.overview-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 22px;border-top:1px solid #edf1f6}.overview-pagination>span{margin-right:auto;font-size:13px}.overview-state{border:1px solid #dce5f0;border-radius:12px;background:white;padding:48px 24px;text-align:center}.overview-state h2{font-size:20px;margin:12px 0}.overview-state p{font-size:14px;color:#60728c;line-height:1.7}.overview-state-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff0e9;color:#9d3f29}.overview-placeholder{height:190px;background:linear-gradient(100deg,#e7edf5,#f0f4fa,#e7edf5);border-radius:12px}.overview-placeholder-large{height:360px}.overview-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.overview-dashboard :is(button,a,select,summary):focus-visible{outline:3px solid #2d68bb;outline-offset:3px}
@media(max-width:1200px){.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-heading{align-items:flex-start}.overview-heading-actions{max-width:360px}.overview-work-grid{grid-template-columns:1fr}.overview-deadlines{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.overview-deadline-heading,.overview-deadline-note{grid-column:1/-1}.overview-filter-note{display:none}}
@media(max-width:760px){.overview-heading{display:block;margin-bottom:18px}.overview-heading-actions{max-width:none;justify-content:flex-start;margin-top:14px}.overview-updated{text-align:left;flex-basis:100%;font-size:12px}.overview-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px}.overview-filters label{min-width:0}.overview-filters select{font-size:16px;min-height:44px;width:100%}.overview-reset{align-self:end;justify-self:start}.overview-kpis{gap:12px}.overview-kpi{padding:16px}.overview-kpi-label{font-size:13px}.overview-kpi-number{font-size:32px;flex-wrap:wrap;gap:4px 8px}.overview-kpi-note{font-size:11px;min-height:36px}.overview-kpi-action{font-size:12px}.overview-work-grid{gap:0}.overview-deadlines{display:block}.overview-panel-heading{padding:18px;flex-wrap:wrap;gap:10px}.overview-queue-groups{padding:0 18px 16px}.overview-records li{padding:16px 18px;gap:12px}.overview-record-status{max-width:40%}.overview-record-link{font-size:14px}.overview-bar-row{grid-template-columns:minmax(0,1fr) 40px;gap:6px 12px;padding:10px 2px}.overview-bar-row>span:first-child{grid-column:1/-1}.overview-bar-track{height:10px}.overview-bars{padding:0 18px 18px}.overview-definitions dl{grid-template-columns:1fr}.overview-panel-heading h2{font-size:18px}}
@media(max-width:380px){.overview-kpis{grid-template-columns:1fr}.overview-kpi-note{min-height:0}.overview-kpi-number{margin:8px 0}.overview-kpi{padding:16px 18px}.overview-filters{grid-template-columns:1fr}.overview-records li{display:block}.overview-record-status{max-width:none;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-top:10px;align-items:center;text-align:left}.overview-record-status small{flex-basis:100%}}

@media(max-width:1000px){.overview-deadlines{display:block}.overview-heading{display:block}.overview-heading-actions{max-width:none;justify-content:flex-start;margin-top:14px}.overview-updated{text-align:left}}
@media(max-width:760px){.overview-eyebrow{display:none}.overview-heading-actions{gap:8px;align-items:center}.overview-updated{flex:1;min-width:180px;font-size:11px}.overview-updated small{font-size:10px}.overview-filters{padding:12px;gap:10px 12px}.overview-filters label{gap:5px}.overview-kpi-label{min-height:40px}}
@media(max-width:380px){.overview-kpi-label{min-height:0}}
.overview-heading>div{min-width:0}.overview-scope{overflow-wrap:anywhere}.overview-filters label{max-width:100%}
.overview-filters select{min-width:0;width:100%}

/* Stage 4: screen presentation only; printed forms and data contracts stay intact. */
@media screen{
 body:not(.signed-out){--ui-text:#1b3553;--ui-muted:#526880;--ui-border:#d8e2ee;color:var(--ui-text)}
 body:not(.signed-out) #main{font-size:14px;line-height:1.6;min-width:0}
 body:not(.signed-out) #main h1{font-size:30px;line-height:1.3;letter-spacing:-.6px}
 body:not(.signed-out) #main :is(h2,h3){line-height:1.45;overflow-wrap:anywhere}
 body:not(.signed-out) #main .subtitle{font-size:13px;line-height:1.65;color:var(--ui-muted);max-width:860px}
 body:not(.signed-out) #main :is(.panel,.overview-panel){border-color:var(--ui-border);box-shadow:0 1px 3px #18324e04}
 body:not(.signed-out) #main .panel{border-radius:12px;margin-bottom:20px;min-width:0}
 body:not(.signed-out) #main :is(.panel-head,.panel-body){padding:18px 20px}
 body:not(.signed-out) #main .panel-head{gap:14px;flex-wrap:wrap}
 body:not(.signed-out) #main .panel-head h2{font-size:17px;line-height:1.5}
 body:not(.signed-out) #main :is(.panel-head p,.mini-info,.source-note){font-size:12px;line-height:1.7;color:var(--ui-muted)}
 body:not(.signed-out) #main :is(.toolbar,.actions){gap:10px;flex-wrap:wrap}
 body:not(.signed-out) #main .toolbar{align-items:center}
 body:not(.signed-out) #main .field,body:not(.signed-out) dialog .field{font-size:13px;line-height:1.6}
 body:not(.signed-out) :is(#main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;border:1px solid #c8d6e6;border-radius:7px;background:#fff;color:var(--ui-text);font:inherit;font-weight:400;line-height:1.5;padding:9px 11px;max-width:100%;min-width:0;min-height:42px}
 body:not(.signed-out) :is(#main,dialog) textarea{min-height:88px;resize:vertical}
 body:not(.signed-out) :is(#main,dialog) :is(input,select,textarea):disabled{background:#f0f3f7;color:#5e7084;border-color:#d2dbe5;opacity:1;cursor:not-allowed}
 body:not(.signed-out) :is(#main,dialog) :is(input,select,textarea):focus-visible{outline:3px solid #1759b7;outline-offset:2px;border-color:#1759b7}
 body:not(.signed-out) #main .actions>label:has(input:not([type=checkbox])):not(.check-field),body:not(.signed-out) #main .actions>label:has(select){display:grid;gap:6px;flex:1 1 170px;min-width:0;font-size:13px}
 body:not(.signed-out) :is(#main,dialog) .btn{border-radius:7px;font-size:13px;line-height:1.45;min-height:40px;padding:9px 14px;white-space:normal;font-weight:600}
 body:not(.signed-out) :is(#main,dialog) .dialog-foot .btn{min-height:44px}
 body:not(.signed-out) :is(#main,dialog) .btn.primary{background:#1759b7;border:1px solid #1759b7;color:#fff;box-shadow:none}
 body:not(.signed-out) :is(#main,dialog) .btn.primary:hover:not(:disabled){background:#104b9f;border-color:#104b9f}
 body:not(.signed-out) :is(#main,dialog) .btn.secondary{background:#fff;border:1px solid #ccd9e9;color:#23466d}
 body:not(.signed-out) :is(#main,dialog) .btn.secondary:hover:not(:disabled){background:#f0f5fc;border-color:#9db8dc}
 body:not(.signed-out) :is(#main,dialog) .btn.small{min-height:34px;padding:6px 10px;font-size:12px}
 body:not(.signed-out) :is(#main,dialog) :is(button,.btn):disabled{background:#edf1f6!important;border-color:#d4dde7!important;color:#65778d!important;opacity:1;box-shadow:none;cursor:not-allowed}
 body:not(.signed-out) :is(#account-revoke .btn.primary,#account-update:has([name=action] option[value=disable]:checked) .btn.primary,#account-activation:has([name=action] option[value=revoke]:checked) .btn.primary){background:#fff4f2;border-color:#d99992;color:#9c291e}
 body:not(.signed-out) :is(#reg-cancel-draft,#registry-dialog[data-ui-action=cancel-draft] [type=submit]){background:#fff4f2;border-color:#d99992;color:#9c291e}
 body:not(.signed-out) #registry-dialog[data-ui-action=cancel-draft] [type=submit]:hover:not(:disabled){background:#9c291e;border-color:#9c291e;color:#fff}
 body:not(.signed-out) #main .stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
 body:not(.signed-out) #main .stat{border-radius:10px;padding:14px;min-width:0}
 body:not(.signed-out) #main .stat-number{font-size:30px;line-height:1.2;margin:7px 0 0;font-variant-numeric:tabular-nums}
 body:not(.signed-out) #main .stat-label{font-size:12px;line-height:1.5}
 body:not(.signed-out) #main button.stat{font-size:12px;line-height:1.5;color:#23466d}
 body:not(.signed-out) #main :is(.grid-two,.detail-grid,.registry-fields-grid)>*{min-width:0}
 body:not(.signed-out) #main .table-wrap,body:not(.signed-out) dialog .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#9aafca #edf2f8}
 body:not(.signed-out) #main .table-wrap table,body:not(.signed-out) dialog .table-wrap table:not(.department-monthly-table){min-width:860px}
 body:not(.signed-out) #main .registry-table-scroll table{min-width:2100px}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) th{font-size:11px;line-height:1.5;letter-spacing:.35px;padding:13px 16px;background:#edf3fa;color:#4e6684;text-align:left}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) td{font-size:13px;line-height:1.6;padding:14px 16px;vertical-align:top;border-color:#e4ebf3;overflow-wrap:anywhere}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) td small{font-size:12px;line-height:1.6;color:#526880;margin-top:5px}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) .asset-link{font-size:13px;line-height:1.6;min-height:32px;overflow-wrap:anywhere}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) td .btn{margin:0 3px 6px 0}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) .form-error{font-size:12px;line-height:1.6;margin:8px 0;color:#9f3226}
 body:not(.signed-out) .ui-table-hint{font-size:12px;line-height:1.6;color:#3f6086;padding:9px 16px;margin:0;background:#f1f6fd;border-block:1px solid #dce6f3}
 body:not(.signed-out) .ui-table-overflow:focus-visible{outline:3px solid #1759b7;outline-offset:-3px}
 body:not(.signed-out) .query-pager{margin:0;align-items:center;font-size:13px}
 body:not(.signed-out) .query-pager>p{line-height:1.65}
 body:not(.signed-out) .query-pager [role=alert]{padding:10px 12px;border:1px solid #e8b2aa;border-radius:7px;background:#fff4f2;color:#8f2a20}
 body:not(.signed-out) #main[aria-busy=true] [role=status]{color:#1759b7}
 body:not(.signed-out) .query-advanced{grid-column:1/-1;flex-basis:100%;min-width:0}
 body:not(.signed-out) .query-advanced>summary{font-size:13px;line-height:1.6;color:#24558b;padding:10px 0;min-height:40px}
 body:not(.signed-out) .query-advanced>div>.field{margin:0}
 body:not(.signed-out) .query-advanced>div>label{display:grid;gap:6px;min-width:0;font-size:13px}
 body:not(.signed-out) .registry-filters>.actions{grid-column:1/-1}
 body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}
 body:not(.signed-out) .workspace-window .dialog-head h2{font-size:21px;line-height:1.4}
 body:not(.signed-out) :is(dialog,.workspace-window) .dialog-foot{gap:10px}
 body:not(.signed-out) :is(dialog,.workspace-window) .form-error{font-size:13px;line-height:1.6}
}
@media screen and (max-width:760px){
 body:not(.signed-out) #main h1{font-size:27px}
 body:not(.signed-out) #main .page-head{display:block;margin-bottom:18px}
 body:not(.signed-out) #main .page-head>.btn,body:not(.signed-out) #main .page-head>.actions{margin-top:14px}
 body:not(.signed-out) #main :is(.panel-head,.panel-body){padding:16px}
 body:not(.signed-out) #main .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body:not(.signed-out) #main .stat{padding:12px}
 body:not(.signed-out) #main .stat-number{font-size:27px}
 body:not(.signed-out) #main .stat-label{font-size:12px}
 body:not(.signed-out) #main .stat:last-child:nth-child(odd){grid-column:1/-1}
 body:not(.signed-out) #main button.stat:last-child:nth-child(odd){display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px}
 body:not(.signed-out) #main button.stat:last-child:nth-child(odd) .stat-number{margin:0}
 body:not(.signed-out) :is(#main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px}
 body:not(.signed-out) :is(#main,dialog) .btn,body:not(.signed-out) :is(#main,dialog) .btn.small{min-height:44px;font-size:13px;padding:10px 12px}
 body:not(.signed-out) #main .query-pager{padding:12px;gap:10px}
 body:not(.signed-out) #main .query-pager>p{flex-basis:100%}
 body:not(.signed-out) #main .actions>label:has(input:not([type=checkbox])):not(.check-field),body:not(.signed-out) #main .actions>label:has(select){flex-basis:100%}
 body:not(.signed-out) .ui-table-hint{padding:9px 12px}
 body:not(.signed-out) .workspace-window .dialog-head h2{font-size:19px}
}
@media print{.ui-table-hint{display:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.nav{transition:none}}
@media screen {
  .cw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  .cw-tabs{margin-bottom:14px;flex-wrap:wrap}
  .cw-form-content>details,.cw-form-content>fieldset{margin:14px 0;padding:12px;border:1px solid var(--line,#dbe3ed);border-radius:8px;min-width:0}
  .cw-form-content summary{cursor:pointer;font-weight:600;margin-bottom:10px}
  .cw-device-options{max-height:260px;overflow:auto;overscroll-behavior:contain}
  .cw-device-option{padding:8px 2px;border-bottom:1px solid var(--line,#dbe3ed)}
  .cw-device-option details{padding:10px;background:var(--bg,#f5f8fb);border-radius:6px}
  .cw-table td{vertical-align:top}.cw-table .actions{flex-wrap:wrap}
  .cw-form-content input,.cw-form-content select{min-width:0;width:100%}
  .cw-form-content input[type=checkbox]{width:auto}
  @media(max-width:600px){.cw-grid{grid-template-columns:1fr}.cw-device-options{max-height:220px}}
}

/* Contract prototype: size only its own two workspace windows. */
@media screen {
 body:not(.signed-out) :is(#cw-dialog,#cw-history-dialog).workspace-window{position:fixed;inset:0;margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;width:min(1100px,calc(100% - 32px));max-width:calc(100% - 24px);max-height:calc(100% - 24px);overflow:hidden;box-sizing:border-box}
 body:not(.signed-out) :is(#cw-dialog,#cw-history-dialog).workspace-window :is(.dialog-head,.dialog-foot){position:static;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;margin:0}
 @media(max-width:760px),(max-height:640px){
  body:not(.signed-out) :is(#cw-dialog,#cw-history-dialog).workspace-window{inset:0;margin:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}
  body:not(.signed-out) :is(#cw-dialog,#cw-history-dialog).workspace-window :is(.dialog-head,.dialog-foot){padding:12px 16px}
 }
}

/* Restrained screen motion: closing and permission changes remain immediate. */
@media screen {
 body:not(.signed-out) .sidebar .nav.active{background:linear-gradient(110deg,#255b91,#1b426f);box-shadow:inset 3px 0 #f6536d}
 body:not(.signed-out) #main :is(.panel,.overview-panel){box-shadow:0 2px 8px #18324e06}
}
@media screen and (prefers-reduced-motion:no-preference) {
 body:not(.signed-out) :is(.nav,.btn,.workspace-shortcut){transition:background-color 140ms ease-out,border-color 140ms ease-out,box-shadow 140ms ease-out}
 body:not(.signed-out) :is(input,select,textarea){transition:border-color 140ms ease-out,background-color 140ms ease-out}
 body:not(.signed-out) dialog[open]{animation:ui-dialog-enter 180ms cubic-bezier(.2,.8,.2,1)}
 body:not(.signed-out) dialog[open]::backdrop{animation:ui-backdrop-enter 160ms ease-out}
 body:not(.signed-out) .workspace-window[open][data-workspace=drawer]{animation-name:ui-drawer-enter}
 body:not(.signed-out) .query-advanced[open]>div{animation:ui-filter-enter 140ms ease-out}
 body:not(.signed-out) .toast:not([hidden]){animation:ui-toast-enter 160ms ease-out}
 @keyframes ui-dialog-enter{from{opacity:.7;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
 @keyframes ui-drawer-enter{from{opacity:.8}to{opacity:1}}
 @keyframes ui-backdrop-enter{from{opacity:.5}to{opacity:1}}
 @keyframes ui-filter-enter{from{opacity:.8}to{opacity:1}}
 @keyframes ui-toast-enter{from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
}
@media screen and (max-width:760px) and (prefers-reduced-motion:no-preference) {
 /* Fullscreen windows fade in place so their footer never moves outside the viewport. */
 body:not(.signed-out) dialog[open],body:not(.signed-out) .workspace-window[open][data-workspace=drawer]{animation-name:ui-filter-enter}
 body:not(.signed-out) .sidebar nav.is-open{animation:ui-filter-enter 140ms ease-out}
}

/* Preview v2: a distinct visual hierarchy on the existing controls and workflows. */
@media screen {
 body:not(.signed-out){--bg:#f0f5f7;background:var(--bg)}
 body:not(.signed-out) .sidebar{background:#fff;color:#334b61;border-right:1px solid #dae5e9;border-top:0}
 body:not(.signed-out) .sidebar .env{margin:4px 4px 18px;padding:10px 12px;border:1px solid #d8e8e5;border-radius:10px;background:#f0f7f5;color:#42625c;letter-spacing:.25px;line-height:1.7}
 body:not(.signed-out) .sidebar nav{gap:6px}
 body:not(.signed-out) .sidebar .nav{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 10px;border:1px solid transparent;border-radius:11px;background:transparent;color:#40586c;font-weight:600;text-align:left}
 body:not(.signed-out) .sidebar .nav>span{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:#eff5f7;color:#386478;font-size:17px}
 body:not(.signed-out) .sidebar .nav:hover:not(:disabled){background:#edf7f5;color:#174d4b}
 body:not(.signed-out) .sidebar .nav.active,body:not(.signed-out) .sidebar .nav.active:hover{background:#163e55;border-color:#163e55;color:#fff;box-shadow:inset 4px 0 #50d5bd}
 body:not(.signed-out) .sidebar .nav.active>span{background:#2b566c;color:#b9f4e7}
 body:not(.signed-out) .sidebar-foot{border-top-color:#e0e9ed;color:#365666}
 body:not(.signed-out) .sidebar-foot :is(p,span){color:#5b7181}
 body:not(.signed-out) .workspace-header{border-bottom-color:#dce7ec}
 body:not(.signed-out) .workspace-location .crumb{padding:7px 12px;border:1px solid #e1eaef;border-radius:9px;background:#f4f8fa}
 body:not(.signed-out) :is(#main,dialog) .btn{border-radius:10px}
 body:not(.signed-out) .workspace-menu-toggle{background:#163e55;border-color:#2d5d70;border-radius:10px}
 body:not(.signed-out) #main .page-head:not(.overview-heading){border-left:4px solid #238e82;padding-left:16px}
 body:not(.signed-out) #main :is(.panel,.overview-panel){box-shadow:0 4px 16px #163e5507;border-color:#dbe6eb}
 body:not(.signed-out) .overview-heading{position:relative;padding:18px 22px;border-radius:18px;background:#163e55;color:#fff;margin-bottom:14px}
 body:not(.signed-out) #main .overview-heading h1{color:#fff;font-size:34px;letter-spacing:-.8px}
 body:not(.signed-out) .overview-heading .overview-eyebrow{color:#a7e2d9;letter-spacing:1.6px}
 body:not(.signed-out) .overview-heading :is(.overview-scope,.overview-updated,.overview-updated small){color:#dfedef}
 body:not(.signed-out) .overview-heading .btn.secondary{background:#fff;border-color:#fff;color:#164858}
 body:not(.signed-out) .overview-filters{background:#fff;border-color:#dbe7eb;border-radius:14px;padding:14px 18px;box-shadow:0 4px 16px #163e5506}
 body:not(.signed-out) .overview-kpis{gap:12px}
 body:not(.signed-out) .overview-kpi{border-radius:16px;border-color:#dce7ed;border-top:4px solid #2c72c9;padding:16px;background:#fff;box-shadow:0 4px 16px #163e5507}
 body:not(.signed-out) .overview-kpi:first-child{background:#edf5ff}
 body:not(.signed-out) .overview-kpi:nth-child(2){background:#eef8f5;border-top-color:#208a7c}
 body:not(.signed-out) .overview-kpi:nth-child(3){border-top-color:#ab7a24}
 body:not(.signed-out) .overview-kpi:nth-child(4){border-top-color:#596d9f}
 body:not(.signed-out) .overview-kpi.has-attention{border-top-color:#c56b55}
 body:not(.signed-out) .overview-kpi:hover,body:not(.signed-out) .overview-kpi.is-selected{border-color:#2d7f88;box-shadow:0 4px 16px #163e5514}
 body:not(.signed-out) .overview-kpi-label>span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#dfeafb;color:#285a95}
 body:not(.signed-out) .overview-kpi:nth-child(2) .overview-kpi-label>span{background:#dcefe9;color:#176d63}
 body:not(.signed-out) .overview-kpi.has-attention .overview-kpi-label>span{background:#faeee8;color:#a04432}
 body:not(.signed-out) .overview-kpi-number{font-size:42px;font-weight:700;letter-spacing:-1.4px;margin:8px 0 6px}
 body:not(.signed-out) .overview-kpi :is(.overview-kpi-note,.overview-kpi-number small){color:#536982}
 body:not(.signed-out) .overview-kpi-action{font-weight:600;border-top-color:#dbe6ed;padding-top:10px;margin-top:10px}
 body:not(.signed-out) .overview-queue{border-top:4px solid #208a7c}
 body:not(.signed-out) .overview-queue .overview-panel-heading{background:#f0f8f6;margin-bottom:16px}
 body:not(.signed-out) .overview-count{background:#dcefe8;color:#1c655b}
 body:not(.signed-out) .overview-queue-groups button{border-color:#d5e5e3;border-radius:6px;background:#f5faf9;color:#385b61}
 body:not(.signed-out) .overview-records li:hover{background:#f6fafb}
 body:not(.signed-out) .overview-deadline-heading{background:#e8f2f3;border-radius:14px;padding:18px 20px;border:1px solid #d9e8e9}
 body:not(.signed-out) .overview-bar-track rect{fill:#23877d}
 body:not(.signed-out) .overview-bar-row:last-child .overview-bar-track rect{fill:#9caec4}
 body:not(.signed-out) dialog.workspace-window{box-shadow:0 20px 80px #142e4a38}
 body:not(.signed-out) dialog.workspace-window .dialog-head{background:#163e55;border-bottom-color:#1e6670;color:#fff}
 body:not(.signed-out) dialog.workspace-window .dialog-head :is(h2,small){color:#fff}
 body:not(.signed-out) dialog.workspace-window .dialog-head small{color:#bae7e0;letter-spacing:1px}
 body:not(.signed-out) dialog.workspace-window .dialog-head .icon-button{background:#ffffff12;color:#fff;border:1px solid #ffffff55;border-radius:10px}
 body:not(.signed-out) dialog.workspace-window .workspace-body{background:#f1f5f8}
 body:not(.signed-out) dialog.workspace-window .field{padding:9px 12px;border:1px solid #dee6ec;border-radius:12px;background:#fff;font-weight:600;margin-bottom:12px;min-width:0}
 body:not(.signed-out) dialog.workspace-window .field:focus-within{border-color:#279184;box-shadow:0 0 0 2px #27918416}
 body:not(.signed-out) dialog.workspace-window .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f9fbfc;border-color:#ccd9e3;border-radius:8px}
 body:not(.signed-out) dialog.workspace-window .field small{font-weight:400;color:#566d80}
 body:not(.signed-out) dialog.workspace-window .dialog-foot{background:#fff;border-top:1px solid #dce6ed}
 body:not(.signed-out) dialog.workspace-window .ack{background:#fff;border:1px solid #dfe7ed;border-radius:10px;padding:14px}
 /* Compact v2.1: one gap between cards; controls keep their touch size. */
 body:not(.signed-out) dialog.workspace-window .registry-fields-grid{gap:8px 14px}
 body:not(.signed-out) dialog.workspace-window .registry-fields-grid>.field{margin-bottom:0}
 body:not(.signed-out) dialog.workspace-window #quantity-policy-note{background:#e7f3f0;border:1px solid #cfe5de;border-left:4px solid #23877d;border-radius:10px;padding:12px 14px;color:#365e5a}
}
@media screen and (max-width:760px) {
 body:not(.signed-out) .sidebar{border-right:0;border-bottom:1px solid #dce7ec}
 body:not(.signed-out) .sidebar .nav{gap:8px;min-height:48px;font-size:13px;padding:8px}
 body:not(.signed-out) .sidebar .nav>span{display:none}
 body:not(.signed-out) .overview-heading{padding:16px;border-radius:15px}
 body:not(.signed-out) #main .overview-heading h1{font-size:29px}
 body:not(.signed-out) .overview-kpis{gap:12px}
 body:not(.signed-out) .overview-kpi{padding:12px;border-radius:13px}
 body:not(.signed-out) .overview-kpi-number{font-size:34px;letter-spacing:-1px}
 body:not(.signed-out) .overview-kpi-label{font-size:13px;flex-wrap:wrap}
 body:not(.signed-out) .overview-kpi-label>span{width:28px;height:28px;border-radius:8px}
 body:not(.signed-out) .overview-deadline-heading{padding:16px}
 body:not(.signed-out) dialog.workspace-window .field{padding:9px 10px}
}
/* Compact v2.2: shared spacing across modules, with unchanged controls and field order. */
@media screen {
 body:not(.signed-out) #main{padding:20px 24px 30px}
 body:not(.signed-out) #main .page-head{margin-bottom:14px;gap:12px}
 body:not(.signed-out) #main .page-head h1{margin-bottom:6px}
 body:not(.signed-out) #main .panel{margin-bottom:14px}
 body:not(.signed-out) #main :is(.panel-head,.panel-body){padding:12px 16px}
 body:not(.signed-out) #main .stats{gap:10px;margin-bottom:12px}
 body:not(.signed-out) #main .stat{padding:10px 12px}
 body:not(.signed-out) #main .stat-number{margin-top:4px}
 body:not(.signed-out) #main :is(.toolbar,.workspace-launches){margin-bottom:12px}
 body:not(.signed-out) #main .detail-grid{gap:12px}
 body:not(.signed-out) #main :is(.query-filters,.registry-filters,.query-advanced>div)>.field{margin-bottom:0}
 body:not(.signed-out) :is(#main,dialog.workspace-window) .field{margin-bottom:8px}
 body:not(.signed-out) dialog.workspace-window .field{padding:6px 10px}
 body:not(.signed-out) dialog.workspace-window .field :is(input,select,textarea){margin-top:5px}
 body:not(.signed-out) :is(#main,dialog.workspace-window) :is(.registry-fields-grid,.cert-fields,.cw-grid){gap:8px 12px}
 body:not(.signed-out) :is(#main,dialog.workspace-window) :is(.registry-fields-grid,.cert-fields,.cw-grid)>.field{margin-bottom:0}
 body:not(.signed-out) dialog.workspace-window .workspace-body{padding:12px 16px;scroll-padding-block:12px}
 body:not(.signed-out) dialog.workspace-window .workspace-body :is(.panel-body,.cert-body){padding:0}
 body:not(.signed-out) :is(#registry-dialog,#book-dialog,#action-dialog,#department-dialog,#workspace-detail-dialog,#workspace-action-dialog,#maintenance-dialog,#cert-dialog,#cert-detail-dialog,#cw-dialog,#cw-history-dialog).workspace-window :is(.dialog-head,.dialog-foot){padding:10px 16px}
 body:not(.signed-out) dialog.workspace-window .ack{padding:10px 12px}
 body:not(.signed-out) .overview-heading{padding:12px 18px}
 body:not(.signed-out) .overview-filters{padding:10px 14px;gap:10px}
 body:not(.signed-out) .overview-kpi{padding:12px}
 body:not(.signed-out) .overview-kpi-number{margin:6px 0 4px}
 body:not(.signed-out) .overview-kpi-action{padding-top:8px;margin-top:8px}
 body:not(.signed-out) .overview-queue .overview-panel-heading{margin-bottom:10px}
 body:not(.signed-out) .overview-panel-heading{padding:14px 16px}
 body:not(.signed-out) .overview-deadline-heading{padding:12px 16px}
}
@media screen and (max-width:1000px) {
 body:not(.signed-out) #main{padding:18px 16px 28px}
}
@media screen and (max-width:760px) {
 body:not(.signed-out) #main{padding:16px 12px 24px}
 body:not(.signed-out) #main .page-head>.actions,body:not(.signed-out) #main .page-head>.btn{margin-top:10px}
 body:not(.signed-out) dialog.workspace-window .workspace-body{padding:12px}
 body:not(.signed-out) .overview-kpi{padding:10px}
}

/* Workspace location labels keep their painted boxes in the normal line flow. */
@media screen {
 body:not(.signed-out) .workspace-location>small{margin:0 0 7px;line-height:1.4}
 body:not(.signed-out) .workspace-location>.crumb{display:inline-flex;align-items:center;max-width:100%;line-height:1.4;vertical-align:top}
}
/* Touch layouts: keep short fields paired and give tablet content the full width. */
@media screen and (min-width:761px) and (max-width:1024px) {
 body:not(.signed-out) .shell{display:block}
 body:not(.signed-out) .sidebar{position:static;width:100%;height:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);align-items:center;gap:8px 16px;padding:8px 16px;overflow:visible}
 body:not(.signed-out) .sidebar .env{margin:0;padding:8px 12px}
 body:not(.signed-out) .workspace-menu-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:10px 12px;color:#fff;font-size:14px;text-align:left}
 body:not(.signed-out) .sidebar nav{display:none;grid-column:1/-1}
 body:not(.signed-out) .sidebar nav.is-open{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 body:not(.signed-out) .sidebar .nav{white-space:normal;min-width:0}
 body:not(.signed-out) .sidebar .nav>span{display:none}
 body:not(.signed-out) .sidebar-foot{grid-column:1/-1;margin-top:0;padding-top:8px}
 body:not(.signed-out) .sidebar:not(:has(nav.is-open)) .sidebar-foot{display:none}
 body:not(.signed-out) .workspace{margin-left:0}
 body:not(.signed-out) .overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media screen and (min-width:360px) and (max-width:760px) {
 body:not(.signed-out) .overview-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not(.signed-out) .overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body:not(.signed-out) .overview-kpi-label{min-height:40px;align-items:flex-start;overflow-wrap:anywhere}
 body:not(.signed-out) .overview-kpi-label>span{display:none}
 body:not(.signed-out) .overview-kpi-note{min-height:36px}
 body:not(.signed-out) #main .actions>label:has(select),body:not(.signed-out) #main .query-filters>.field{flex-basis:calc(50% - 6px)}
 body:not(.signed-out) #main .query-filters>.field:has(input){flex-basis:100%}
}
@media screen and (min-width:360px) and (max-width:700px) {
 body:not(.signed-out) #registry-dialog .registry-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not(.signed-out) #registry-dialog .registry-fields-grid>.field{grid-column:1/-1}
 body:not(.signed-out) #registry-dialog .registry-fields-grid>.field:has([name=model],[name=serial_number],[name=manufacturer],[name=country_of_origin],[name=device_unit],[name=device_quantity]){grid-column:auto}
}
@media screen and (max-width:1024px) {
 body:not(.signed-out) :is(#main,dialog.workspace-window) :is(.actions,.dialog-foot,.panel-head){row-gap:10px}
 body:not(.signed-out) dialog.workspace-window .dialog-head>div{min-width:0}
}

/* Long authority references and identifiers must wrap inside shared notices. */
@media screen {
 body:not(.signed-out) :is(#main,dialog) :is(.warning-box,.mini-info){overflow-wrap:anywhere}
}

/* Dossier folders share existing document identities and permission-filtered data. */
.dossier-folder{border:1px solid var(--border);border-radius:8px;padding:12px;margin-bottom:12px;min-width:0}
.dossier-folder>summary,.dossier-repair>summary{cursor:pointer;font-weight:650;overflow-wrap:anywhere}
.dossier-repair{padding:10px;border-left:3px solid var(--primary,#1759b7);margin-top:12px;min-width:0}
.dossier-file,.dossier-reference{overflow-wrap:anywhere}.dossier-file .asset-photo{max-width:100%;max-height:150px;object-fit:contain}.dossier-file>small{display:block;margin:8px 0}
.dossier-drop{border:2px dashed var(--border);padding:16px;border-radius:8px;overflow-wrap:anywhere}.dossier-drop input{max-width:100%}

@media screen and (max-width:600px){
 body:not(.signed-out) #department-dialog.workspace-window .dialog-foot{align-items:stretch}
 body:not(.signed-out) #department-dialog.workspace-window .dialog-foot .btn{flex:0 0 auto}
}

@media screen and (max-height:500px) and (prefers-reduced-motion:no-preference){
 body:not(.signed-out) dialog.workspace-window[open]{animation-name:ui-filter-enter}
}

/* Inspection uses the PR60 workspace dialogs and shared fields. */
.inspection-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.inspection-groups .panel{margin:0}.inspection-groups .panel-body{padding:14px 16px}
.inspection-groups h2{font-size:1rem;line-height:1.5;margin:0 0 6px}.inspection-groups p{margin:6px 0}
.inspection-groups .actions{flex-wrap:wrap;margin-top:10px}.inspection-active{outline:2px solid var(--teal)}
.inspection-quick-search{display:flex;align-items:end;gap:10px;margin:12px 0 16px}
.inspection-quick-search .field{flex:1;margin:0;min-width:0}.inspection-quick-search button{min-height:44px;flex-shrink:0}
.inspection-group-tabs,.inspection-stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.inspection-group-tabs button,.inspection-status{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:9px 12px;min-height:44px;line-height:1.4}
.inspection-status{display:inline-flex;align-items:center;gap:10px;font-size:13px}.inspection-status strong{font-size:16px}
.inspection-group-tabs [aria-current=page],.inspection-status.selected{border-color:var(--teal);background:#e5f3ee;box-shadow:inset 0 0 0 1px var(--teal)}
.inspection-guidance,.inspection-filter-panel{margin:12px 0}.inspection-guidance summary,.inspection-filter-panel summary{cursor:pointer;font-weight:600;padding:8px 0;color:var(--teal)}
.inspection-toolbar{flex-wrap:wrap;gap:8px;margin:12px 0}.inspection-object-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:16px;align-items:start}
.inspection-object-layout>.panel{min-width:0;margin:0}.inspection-object-choice{display:block;width:100%;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);margin:0 0 8px;line-height:1.5;overflow-wrap:anywhere}
.inspection-object-choice.selected{border-color:var(--teal);background:#e5f3ee}.inspection-object-choice small{display:block;margin-top:4px;color:var(--muted)}
.inspection-event{padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.inspection-event h3{font-size:16px;margin:0}
.inspection-event-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:10px}.inspection-event-head small{color:var(--muted)}
.inspection-event .detail-grid{margin:10px 0}.inspection-event details{margin-top:10px;font-size:12px;color:var(--muted)}
.inspection-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0}
.inspection-form>:is(h2,h3,p,details,button),.inspection-form>.field:has(input[type=file]){grid-column:1/-1}
.inspection-certificate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.inspection-form>details>summary{grid-column:1/-1;padding:8px 0;font-weight:600}
.inspection-form>.field,.inspection-certificate-fields>.field{margin:0;min-width:0}.inspection-form input[type=file]{padding:10px;line-height:1.5}
.workspace-window .inspection-form>:is(h2,h3){display:none}.inspection-form .form-error{white-space:pre-line}
.inspection-table td{overflow-wrap:anywhere}.inspection-table td strong{font-size:14px}.inspection-table td small{display:block;margin-top:5px}
.inspection-labels{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:100%;vertical-align:middle}.inspection-labels .badge{white-space:normal;text-align:left}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head{background:#163e55;color:#fff}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head :is(h2,small,.subtitle){color:inherit}
:is(#cert-dialog,#cert-detail-dialog) .dialog-head .icon-button{color:#fff;background:#ffffff15;border:1px solid #ffffff55}
:is(#cert-dialog,#cert-detail-dialog) .cert-fields>.field{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
@media(max-width:760px){
 .inspection-groups{grid-template-columns:1fr}.inspection-object-layout{grid-template-columns:1fr}
 .inspection-object-detail{order:0}.inspection-object-list{order:1}
 .inspection-group-tabs button{flex:1 1 40%}.inspection-group-tabs button:last-child[data-inspection-instruments]{flex-basis:100%}
 .inspection-table-wrap{overflow:visible!important}.inspection-table{width:100%;min-width:0!important}
 .inspection-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .inspection-table tbody,.inspection-table tr,.inspection-table td{display:block;width:auto;min-width:0;max-width:100%}
 .inspection-table tbody tr{border:1px solid var(--line);border-radius:10px;margin:10px;padding:12px;background:var(--surface)}
 .inspection-table tbody td{border:0!important;padding:6px 0!important;white-space:normal}
 .inspection-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin-bottom:3px}
 .inspection-table td:last-child .btn{min-height:44px;width:100%}
 .inspection-form,.inspection-certificate-fields{grid-template-columns:1fr}
 .inspection-form :is(input,select,textarea),:is(#cert-dialog,#cert-detail-dialog) :is(input,select,textarea){font-size:16px}
 .inspection-event .detail-grid{grid-template-columns:1fr}
}
@media(max-width:440px){.inspection-quick-search{align-items:stretch;flex-direction:column}.inspection-quick-search button{align-self:flex-end}.inspection-stats{gap:6px}.inspection-status{padding:7px 9px}}

/* Keep dialog content sharp and opaque from the first frame. */
body:not(.signed-out) dialog[open]{animation:none!important;opacity:1;filter:none}
body:not(.signed-out) dialog[open]::backdrop{animation:none!important}

/* Public entry: direct instructions, readable form, and stable document flow. */
.signed-out #main{max-width:1240px}
body.signed-out{background:#fff}
.entry-header{min-height:88px;border-bottom:1px solid var(--line)}
.entry-header nav{gap:24px}
.entry-header>.btn{background:#fff;color:#1759b7;border:1px solid #b9cadc;box-shadow:none}
.entry-header>.btn:hover{background:#edf3f8;color:#10458f}
.entry-header .entry-full-name{text-transform:none}
.entry-hero{grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:64px;padding:32px 4px 36px;background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;align-items:start}
.entry-copy{padding:24px 0 0}
.entry-copy h1{font-size:clamp(32px,3vw,36px);line-height:1.25;letter-spacing:-.5px;color:var(--ink);margin:0 0 16px;max-width:530px}
.entry-eyebrow{font-size:14px;letter-spacing:0;font-weight:500;color:#435974;margin:0 0 16px}
.entry-eyebrow::before{content:none}
.entry-lead{font-size:17px;line-height:1.7;color:#435974;max-width:500px}
.entry-button{background:#fff;color:#1759b7;border:1px solid #bccddd;border-radius:6px;margin-top:12px}
.entry-login{border:1px solid #cbd8e4;border-radius:6px;box-shadow:none}
.entry-login-heading{padding:20px;background:#fff}
.entry-login-heading h2{font-size:24px;line-height:1.4;margin:0 0 8px;color:var(--ink)}
.entry-login-heading p{font-size:16px;line-height:1.6;color:#435974;margin:0}
.entry-login .panel-body{padding:20px}
.entry-login .field{margin-bottom:16px}
.entry-login #public-activation{padding-top:12px;border-top:1px solid var(--line)}
.entry-login-help{display:inline-block;min-height:44px;padding:8px 0;font-size:16px;line-height:1.6;text-underline-offset:3px}
.entry-login .field input{border-radius:6px!important;border-color:#718399}
.entry-login #login-error{font-size:16px;line-height:1.6}
.entry-login #login-error:empty{display:none}
.entry-login #login-error:not(:empty){padding:10px 12px;border-left:3px solid currentColor;background:#fff4f4}
.entry-login form>.btn:disabled{opacity:1;background:#435974;color:#fff}
.entry-login form>.btn,.entry-header>.btn{border-radius:6px}
.entry-login-note{font-size:15px;text-align:left}
.public-info{padding:0 4px 12px}
.public-info section{padding:32px 0}
.public-info h2{font-size:28px;line-height:1.4;letter-spacing:-.3px;margin:0 0 16px}
.public-info h3{font-size:18px;line-height:1.5;letter-spacing:0;margin:0}
.public-info section>p{font-size:16px;line-height:1.7}
.public-info .entry-task-list{display:block;margin:0}
.public-info .entry-task-list article{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:baseline;border:0;border-bottom:1px solid var(--line);padding:16px 0;border-radius:0;background:transparent}
.public-info .entry-task-list article:last-child{border-bottom:0}
.public-info .entry-task-list p{font-size:17px;line-height:1.7;margin:0}
.public-info details{margin:0;font-size:16px}
.public-info details p,.public-info summary{font-size:16px}
.public-info summary{padding:12px 0;min-height:48px}
.public-info .entry-lifecycle{padding-left:24px;max-width:900px}
#vai-tro{background:transparent;margin:0;padding:32px 0;border-radius:0;border-bottom:1px solid var(--line)}
.public-info .entry-permission-note{font-size:15px;border-left:3px solid #b7cadd;padding:8px 14px;margin:16px 0 0}
.entry-footer{border-radius:0;padding:28px 0 20px;margin-top:16px;scroll-margin-top:20px;background:transparent;border:0;border-top:2px solid #cbd8e4;color:var(--ink);gap:24px}
.entry-footer .entry-footer-brand strong,.entry-footer .entry-footer-contact strong{color:var(--ink)}
.entry-footer .entry-footer-label,.entry-footer .entry-footer-contact span{color:#526579}
.entry-footer .entry-footer-contact{border-top-color:var(--line)}
.entry-footer .entry-footer-contact a,.entry-footer .entry-hotline-number{color:#1759b7}
.entry-footer .entry-footer-hotline{border-color:var(--line);justify-content:flex-start}
.entry-footer .entry-footer-hotline .btn{background:#fff;border:1px solid #b9cadc}
.entry-footer a:focus-visible{outline-color:#1759b7}
.entry-footer-top{grid-column:1/-1;min-height:44px;padding:10px 0;border-top:1px solid var(--line);font-size:14px;text-underline-offset:3px}
.entry-footer .entry-footer-label{font-size:15px;text-transform:none;letter-spacing:0}
.entry-footer-hotline{background:transparent;border-radius:6px}
@media(max-width:900px){.entry-hero{gap:28px;padding:28px 4px}}
@media(max-width:760px){
 .entry-hero{grid-template-columns:1fr;gap:24px;padding:24px 0 28px}
 .entry-copy{padding:0}
 .entry-header{min-height:80px}
 .entry-copy h1{font-size:32px;letter-spacing:-.4px}
 .entry-eyebrow{font-size:13px}
 .entry-lead{font-size:17px}
 .entry-login-heading,.entry-login .panel-body{padding:20px}
 .entry-login-heading h2{font-size:23px}
 .entry-header .entry-brand{max-width:65%}
 .public-info section,#vai-tro{padding:28px 0}
 .public-info h2{font-size:26px}
 .public-info .entry-task-list article{grid-template-columns:1fr;gap:6px;padding:16px 0}
 .entry-footer{padding:24px 0 16px}
 .entry-footer .entry-footer-hotline{padding:18px 0 0;border:0;border-top:1px solid var(--line)}
}

/* Reading sizes: preserve explicit headings, touch targets and table scrolling. */
@media screen {
 body{font-size:15px;line-height:1.65}
 .entry-header nav a,.entry-header>.btn{font-size:15px}
 .entry-login .field,.entry-login form>.btn,.entry-button{font-size:16px;line-height:1.65}
 .entry-login input{font-size:17px!important}
 .entry-login #public-activation{font-size:15px;line-height:1.65}
 .entry-login #public-activation>summary{min-height:44px;padding:9px 0}
 .entry-footer,.entry-footer .entry-footer-contact span,.entry-footer-top{font-size:15px;line-height:1.7}
 body:not(.signed-out) #main{font-size:15px;line-height:1.65}
 body:not(.signed-out) :is(#main,dialog) :is(.badge,.field small,.mini-info){font-size:13px;line-height:1.6}
 body:not(.signed-out) :is(#main,dialog) .badge.amber{color:#87590c}
 body:not(.signed-out) .sidebar .nav,body:not(.signed-out) .workspace-header .role-label{font-size:14px}
 body:not(.signed-out) .notice{font-size:14px;line-height:1.7}
 body:not(.signed-out) #main .subtitle{font-size:15px;line-height:1.7}
 body:not(.signed-out) :is(#main,dialog) .field{font-size:15px;line-height:1.65}
 body:not(.signed-out) :is(#main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;line-height:1.6}
 body:not(.signed-out) :is(#main,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):enabled:not([aria-invalid=true]){border-color:#718399}
 body:not(.signed-out) .workspace-header :is(#scan-qr,#logout){min-height:44px;font-size:14px}
 body:not(.signed-out) :is(#main,dialog) .btn{font-size:15px;line-height:1.5;min-height:44px}
 body:not(.signed-out) :is(#main,dialog) .btn.small{font-size:14px}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) th{font-size:13px;line-height:1.6}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) td{font-size:14px;line-height:1.65}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) td small{font-size:13px;line-height:1.6}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:not(.department-monthly-table) .asset-link{font-size:15px;line-height:1.6}
 body:not(.signed-out) #main :is(.overview-kpi-label,.overview-record-link){font-size:15px}
 body:not(.signed-out) #main :is(.overview-kpi-note,.overview-record-main small,.overview-record-status small,.overview-tag,.overview-panel-footnote,.overview-definitions){font-size:13px;line-height:1.65}
 body:not(.signed-out) #main :is(.overview-filters label,.overview-filters select,.overview-text-button,.overview-record-main p,.overview-bar-row){font-size:14px;line-height:1.6}
}

/* Keep the asset columns readable within the workspace; expose the same cells as labeled rows on narrow screens. */
body:not(.signed-out) #main .registry-table-scroll table.registry-list-table{width:100%;min-width:0;table-layout:fixed}
body:not(.signed-out) :is(#main,dialog) .table-wrap table.ui-responsive-table{width:100%;min-width:0}
body:not(.signed-out) :is(#main,dialog) .table-wrap table:is(.registry-list-table,.ui-responsive-table) :is(th,td){
  padding:9px clamp(8px, .65vw, 12px);white-space:normal;overflow-wrap:anywhere
}
body:not(.signed-out) :is(#main,dialog) .table-wrap :is(.registry-list-table,.ui-responsive-table) .raw-code{white-space:pre-wrap;overflow-wrap:anywhere}
body:not(.signed-out) :is(#main,dialog) :is(.panel-head,.page-head,.toolbar,.dialog-foot)>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
body:not(.signed-out) #main .table-wrap table.registry-list-table :is(th,td){padding:7px}
body:not(.signed-out) #main .table-wrap table.registry-list-table td small{margin-top:3px;line-height:1.45}
body:not(.signed-out) #main .table-wrap table.registry-list-table .asset-link{min-height:24px}
body:not(.signed-out) #main .registry-list-table .badge{padding:3px 6px;white-space:normal}
#main .registry-list-table th:nth-child(1){width:10%}
#main .registry-list-table th:nth-child(2){width:10%}
#main .registry-list-table th:nth-child(3){width:19%}
#main .registry-list-table th:nth-child(4){width:12%}
#main .registry-list-table th:nth-child(5){width:14%}
#main .registry-list-table th:nth-child(6){width:6.5%}
#main .registry-list-table th:nth-child(7){width:7%}
#main .registry-list-table th:nth-child(8){width:10%}
#main .registry-list-table th:nth-child(9){width:11.5%}
.cert-record-documents{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.cert-record-documents h4,.cert-record-documents ul{margin:0 0 6px}
.cert-record-documents ul{padding-inline-start:20px}
.cert-record-documents :is(a,.asset-link){color:var(--teal);text-decoration:underline;text-underline-offset:3px}
#main .cw-contract-list td .actions{margin-block:0;gap:6px}
@media screen and (min-width:1051px) {
 body:not(.signed-out) #main .department-list-table{table-layout:fixed}
 body:not(.signed-out) #main .department-list-table th:first-child{width:4.5rem;white-space:nowrap}
 #main .department-list-table th:nth-child(2){width:24%}
 #main .department-list-table th:nth-child(3){width:17%}
 #main .department-list-table th:nth-child(5){width:21%}
 #main .cw-contract-list th:first-child{width:23%}
 #main .cw-contract-list th:nth-child(3){width:6.5rem}
 #main .cw-contract-list th:last-child{width:24%}
 body:not(.signed-out) #main .inspection-table-wrap .inspection-table{min-width:0;table-layout:fixed}
 body:not(.signed-out) #main .inspection-table-wrap .inspection-table :is(th,td){padding:9px 10px;white-space:normal}
 #main .inspection-table th:nth-child(2){width:17%}
 #main .inspection-table th:nth-child(3){width:25%}
 #main .inspection-table th:nth-child(4){width:11%}
 #main .inspection-table th:nth-child(5){width:17%}
 #main .inspection-table th:nth-child(6){width:13%}
}
@media screen and (max-width:1050px) {
 #main .registry-table-scroll{max-height:none;scroll-padding:0}
 #main .registry-table-scroll tbody tr>td:first-child{position:static;box-shadow:none;background:transparent}
 body:not(.signed-out) #main .inspection-table-wrap .inspection-table{min-width:0}
 body:not(.signed-out) :is(#main,dialog) .table-wrap :is(.registry-list-table,.ui-responsive-table) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body:not(.signed-out) #main .inspection-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body:not(.signed-out) :is(#main,dialog) .table-wrap :is(.registry-list-table,.ui-responsive-table,.inspection-table) :is(tbody,tr){display:block}
 body:not(.signed-out) :is(#main,dialog) .table-wrap :is(.registry-list-table,.ui-responsive-table,.inspection-table) tbody tr{padding:10px 12px;border-bottom:1px solid var(--line)}
 body:not(.signed-out) :is(#main,dialog) .table-wrap table:is(.registry-list-table,.ui-responsive-table,.inspection-table) tbody :is(th,td){display:block;padding:5px 0;border:0}
 body:not(.signed-out) #main .table-wrap table.registry-list-table tbody td{padding-block:4px}
 body:not(.signed-out) :is(#main,dialog) .table-wrap :is(.registry-list-table,.ui-responsive-table,.inspection-table) [data-label]:not([data-label=""])::before{
   content:attr(data-label);display:block;font-size:13px;font-weight:600;color:var(--muted)
 }
}
