:root{--ink:#152f34;--sub:#516c72;--dark:#102f35;--teal:#086e66;--light:#e4f3ed;--line:#d9e2e2;--paper:#fff;--bg:#f3f6f5;--orange:#a85823;font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d99035;outline-offset:2px}
button{border:0;background:none}
button:disabled{opacity:.48;cursor:default}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
aside{background:linear-gradient(150deg,#143940,#0c252b 80%);color:#d2e3e1;padding:30px 16px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:3}
.brand{display:flex;align-items:center;gap:10px;color:white;font-size:25px;font-weight:650;letter-spacing:-1.35px;padding:0 6px 32px}
.brand b{color:#81e4bb;font-weight:750}
.logo{height:39px;width:39px;display:grid;place-items:center;border:1px solid #6bcca7;border-radius:12px;background:#154c47;color:#a4f4cb;font-size:35px;line-height:1;font-family:Arial}
.navtitle,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#8da9aa;margin:14px 10px 12px}
.navtitle{font-size:9px}
.sidefoot{margin-top:auto;border-top:1px solid #325054;padding:18px 5px 2px;font-size:12px;color:#bfd1ce}
.dot{display:inline-block;background:#71d5a7;width:7px;height:7px;border-radius:100%;margin-right:6px}
#nav{overflow:auto}
#nav button{display:flex;align-items:center;width:100%;color:#d5e2df;text-align:left;margin:3px 0;padding:10px 12px;border-radius:7px;gap:12px;font-size:14px}
#nav button:hover{background:#21454a}
#nav button.active{color:#aaf2cd;background:#204d4c;box-shadow:inset 3px 0 #80deac}
#nav svg,.metric svg,.ico svg,.button svg{width:19px;height:19px;vertical-align:middle;flex:none}
header{height:67px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fff;padding:0 clamp(16px,3.5vw,60px);font-size:13px;color:var(--sub)}
header i{font-style:normal;color:#afbfbc;padding:0 9px}
header strong{color:var(--ink)}
main{max-width:1600px;padding:30px clamp(16px,3.5vw,60px) 50px;margin:auto}
.mode,.button,.icon,.tab{border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:9px 13px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.35}
.mode{color:var(--teal);background:#eff8f3;border-color:#c8e3d8}
.button:hover,.icon:hover,.tab:hover{border-color:#82b9ae}
.primary{background:#086b60;border-color:#086b60;color:#fff}
.primary:hover{background:#045c53}
.quiet{color:var(--teal)}
.ico{display:inline-flex}
.mobile{display:none}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.metric{text-align:left;background:white;border:1px solid var(--line);border-radius:10px;padding:16px 16px 13px;position:relative}
.metric:hover,.metric.active{border-color:#82b9ae}
.metric small{color:var(--sub);font-weight:600}
.metric strong{display:block;font-size:29px;margin-top:7px;letter-spacing:-1px}
.metric .ico{position:absolute;right:13px;bottom:14px;border-radius:8px;padding:7px;background:#eaf3ee;color:#3c7565}
.metric:nth-child(2) .ico{background:#fff1df;color:#965d20}
.metric:nth-child(3) .ico{background:#e9eff9;color:#466da0}
.metric:nth-child(4) .ico{background:#faeae4;color:#996042}
.heading,.row,.bar,.split,.formfoot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.heading{margin-bottom:20px}
.heading .eyebrow{color:var(--teal);margin:0 0 9px}
.heading p,.hint{color:var(--sub);line-height:1.55}
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.panelhead{padding:19px 20px 10px}
.panelhead h2,h2{font-size:21px;letter-spacing:-.5px;margin:0}
.panelhead h2 span,.count{font-size:12px;vertical-align:middle;margin-left:6px;padding:3px 7px;border-radius:5px;background:#edf2f0;color:var(--sub)}
.bar{flex-wrap:wrap;justify-content:flex-start;padding:10px 20px 16px;align-items:stretch}
.bar .search{flex:1;min-width:min(200px,100%)}
.search,input:not([type=checkbox]):not([type=file]),select,textarea{background:#fff;border:1px solid #c9d7d5;border-radius:6px;padding:9px 10px;min-width:0}
.search{display:flex;align-items:center;gap:7px}
.search input:not([type=checkbox]){border:0;width:100%;padding:0;outline:none}
.tablewrap{overflow:auto}
table{width:100%;border-spacing:0;text-align:left}
th{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#577075;background:#f6f8f7;white-space:nowrap}
td,th{padding:12px 13px;border-top:1px solid #e4eae8}
td:first-child,th:first-child{padding-left:20px}
td{font-size:13px}
tbody tr:hover{background:#f8fbf9}
.idcell{display:flex;align-items:center;gap:11px}
.avatar{width:37px;height:37px;flex:none;display:grid;place-items:center;background:#dceee4;color:#2d6550;border-radius:10px;font-weight:700}
.avatar.g1{background:#e2eef5;color:#39657b}
.avatar.g2{background:#eae6f4;color:#695384}
.avatar.g3{background:#f8eadc;color:#80572c}
.avatar.g4{background:#e1eeeb;color:#29665a}
.link{padding:0;text-align:left;color:#164f4b;font-weight:650}
.link:hover{text-decoration:underline}
.meta{display:block;font-size:12px;color:var(--sub);margin-top:3px}
.pill{font-size:11px;border-radius:15px;padding:4px 8px;display:inline-block;white-space:nowrap;background:#e6f2eb;color:#276049;font-weight:650}
.pill.warn{background:#fff0d7;color:#84541d}
.pill.bad{background:#fce6df;color:#923c30}
.pill.blue{background:#e5eef9;color:#315c8d}
.pill.gray{background:#e9eded;color:#4c6265}
.panelbottom{padding:12px 20px;border-top:1px solid var(--line);color:var(--sub);font-size:12px}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.empty{text-align:center;padding:34px 16px}
.empty h3{margin:0 0 7px}
.empty p{color:var(--sub)}
dialog{color:var(--ink);border:1px solid var(--line);border-radius:13px;width:min(730px,calc(100% - 22px));max-height:90vh;overflow:auto;padding:0;box-shadow:0 20px 75px #102e3555}
dialog::backdrop{background:#09272f72}
.dlghead,.dlgcontent,.formfoot{padding:18px 23px}
.dlghead{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.dlghead h2{margin:0}
.dlghead .eyebrow{margin:0 0 6px;color:var(--teal)}
.formfoot{justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);background:#f8faf9}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.grid label,.field{display:flex;flex-direction:column;gap:5px;color:var(--sub);font-size:12px;font-weight:650}
.wide{grid-column:1/-1}
textarea{resize:vertical;min-height:60px}
.block{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
.block h3,.dlgcontent h3{font-size:15px;margin:0 0 10px}
.doc{padding:10px 0;border-bottom:1px solid #e8edeb}
.doc:last-child{border-bottom:0}
.docedit{border:1px solid var(--line);border-radius:7px;padding:10px;margin:7px 0;background:#f9fbfa}
.docedit .grid{grid-template-columns:1.4fr 1fr 1fr;gap:8px}
.docedit input{width:100%}
.guard-post{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr) auto;align-items:end;gap:12px;margin-top:12px}
.guard-post label{display:grid;gap:5px}
.guard-post input,.guard-post select{width:100%;min-width:0}
@media(max-width:540px){.guard-post{grid-template-columns:minmax(0,1fr) auto}.guard-post label:first-child{grid-column:1/-1}}
.fileline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:12px}
.fileline input{max-width:235px}
.boxrow{padding:16px 20px;border-top:1px solid var(--line)}
.summary{background:#eef6f2;border:1px solid #d2e4db;border-radius:8px;padding:12px 14px;color:#335d50;line-height:1.55}
.danger{color:#99493c}
.data-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.tile{padding:18px;border:1px solid var(--line);background:white;border-radius:10px}
.tile h3{margin:0 0 8px}
.data-actions + .panel{margin-top:18px}
.tile p{color:var(--sub);min-height:42px;line-height:1.5}
#notice{position:fixed;right:18px;bottom:18px;z-index:10;max-width:min(460px,90vw);background:#152f34;color:white;padding:12px 16px;border-radius:8px;box-shadow:0 4px 20px #102f3533}
#notice:empty{display:none}
.errors{color:#913b2e;white-space:pre-line}
.filelink{color:#075f58}
.checkline{display:flex;gap:8px;align-items:center}
.checkline input{accent-color:var(--teal)}
.details{margin:0}
.details dt{font-size:12px;color:var(--sub)}
.details dd{margin:4px 0 0;overflow-wrap:anywhere}
.details p{white-space:pre-wrap}
.nowrap{white-space:nowrap}
.pdf-actions{justify-self:start;flex-wrap:wrap}
.pdf-actions[hidden]{display:none}
.form-pdf-page{max-width:100%;min-width:0}
.form-pdf-page canvas{display:block;max-width:100%;height:auto}
@media screen {
  #attachment-viewer.form-pdf-view[open]{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  #attachment-viewer.form-pdf-view #attachment-content{min-height:0;max-height:72dvh;gap:8px}
}
#attachment-content .form-print-copy{width:min(100%,794px);background:white;color:#111}
#attachment-content .form-print-copy>img{width:100%;height:auto;max-height:none}
#print{display:none}
@media(max-width:1060px){.shell{grid-template-columns:189px minmax(0,1fr)}
.brand{font-size:22px}
.hero{padding:24px}
.metric{padding:12px}
.metric .ico{padding:5px}
.metric small{font-size:11px}
}
@media(max-width:780px){.shell{display:block}
aside{display:none}
.navopen aside{display:flex;position:fixed;top:54px;left:0;width:225px;height:calc(100dvh - 54px);box-shadow:8px 8px 35px #1235}
.mobile{display:inline-flex}
header{height:54px;gap:7px;padding:0 12px}
header>span{margin-right:auto}
header>span i,header>span strong{display:none}
.mode{font-size:12px;padding:7px}
.metrics{grid-template-columns:1fr 1fr}
.hero-art{display:none}
.bar{padding:10px}
.panelhead{padding:15px 12px}
.row,.heading,.split{flex-wrap:wrap}
main{padding:18px 12px 30px}
.grid{gap:10px}
.docedit .grid{grid-template-columns:1fr 1fr}
.docedit .grid label:first-child{grid-column:1/-1}
}
@media(max-width:480px){.grid{grid-template-columns:1fr}
.dlgcontent,.dlghead,.formfoot{padding:14px}
.metrics{gap:8px}
.hero{padding:20px}
.bar select{max-width:100%;flex:1}
.metric strong{font-size:23px}
.panelhead .actions{width:100%}
}
@media print{@page{size:A4;margin:16mm}
  .form-print-copy>img{display:block;width:100%;height:auto;break-after:page}
  .form-print-copy>img:last-child{break-after:auto}
  #print .pdf-paper{break-inside:avoid;break-after:page;margin:0;padding:0}
  #print .pdf-paper:last-child{break-after:auto}
  #print .pdf-paper img{display:block;width:100%;height:auto}
  .form-print-copy .bio-sheet{font:11pt "Times New Roman",serif}
  html:has(#print .bio-sheet),body:has(#print .bio-sheet){background:white}
  .form-print-copy .bio-cards img{max-width:100%;height:auto}
  .form-print-image{display:block;max-width:100%;max-height:258mm;object-fit:contain;margin:auto}
body{color:#111;background:#fff;font:10.5pt Arial,sans-serif}
.shell,#notice,dialog,dialog::backdrop{display:none!important}
#print{display:block}
#print section{page-break-before:always}
#print section:first-child{page-break-before:auto}
#print h1{font-size:18pt}
#print h2{font-size:13pt;margin:14pt 0 5pt}
#print table{width:100%;border-collapse:collapse}
#print td,#print th{border:1px solid #aaa;padding:6pt;font-size:9pt;color:#111}
#print p{white-space:pre-wrap;overflow-wrap:anywhere}
#print tr{break-inside:avoid}
}

[hidden]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(125deg,#102f36,#1b554c);padding:18px}
.auth-card{width:min(100%,410px);background:white;border-radius:16px;padding:32px;box-shadow:0 15px 60px #081d2850}
.login-password{display:grid;gap:7px}
.password-input{display:flex;align-items:stretch}
.password-input input{min-width:0;flex:1;border-radius:7px 0 0 7px}
.password-input button{padding:0 12px;border:1px solid #c7d5d3;border-left:0;border-radius:0 7px 7px 0;background:#f1f7f5;color:#145954;font:inherit;font-weight:600;cursor:pointer}
.password-input button:focus-visible{outline:2px solid #146c63;outline-offset:1px}
.auth-card h1{margin:22px 0 5px;font-size:27px;letter-spacing:-1px}.auth-card p{color:var(--sub);margin:0 0 22px}
.auth-card form,.auth-card label{display:grid;gap:7px}.auth-card form{gap:15px}.auth-card label{font-weight:600}.auth-card small{color:var(--sub);font-weight:400}
.lockmark{background:#114541;color:white;display:inline-block;border-radius:9px;padding:8px 12px;font-size:20px;font-weight:bold;letter-spacing:-1px}.lockmark span{color:#91e5bb;margin-left:3px}.exit-btn{display:block;color:#a5e5ca;text-decoration:underline;padding:8px 0}
@media(max-width:550px){header{flex-wrap:wrap;height:auto;min-height:54px}header>span{display:none}}
@media print{.auth-screen{display:none!important}}

.app-version{font-size:12px;font-weight:600;line-height:1.4;margin:8px 0 2px}
.login-version{color:var(--sub);text-align:center;border-top:1px solid var(--line);padding-top:14px;margin-top:20px}
.candidate-photo{width:32px;height:48px;flex:none;border-radius:8px;object-fit:cover;background:#e2eee9;color:#27634f}
.candidate-photo.large{width:84px;height:126px;border-radius:10px;font-size:24px}
.candidate-photo.initials{display:inline-grid;place-items:center;font-weight:650}
.candidate-tabs{margin-bottom:20px}.candidate-summary{display:flex;align-items:center;gap:16px;margin:10px 0 20px}

.attachment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.record-attachment{margin-top:6px;flex-wrap:wrap}.record-attachment .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.attachment-name,#attachment-title{overflow-wrap:anywhere}
#attachment-viewer{width:min(1060px,calc(100% - 24px));max-height:94vh}
.attachment-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.attachment-head>div{min-width:0}.attachment-head button{flex:none}
#attachment-title{margin:3px 0 0;color:var(--sub);font-size:13px}
#attachment-content{display:grid;place-items:center;overflow:auto;background:#f0f4f3;min-height:150px;padding:10px}
#attachment-content img{display:block;max-width:100%;max-height:72vh;object-fit:contain}
#attachment-content iframe{width:100%;height:71vh;background:white;border:0}
@media(max-width:540px){.attachment-row{grid-template-columns:1fr}.attachment-head{padding:12px}.attachment-head button{font-size:12px}}

.vacancy-hour-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:4px 8px}.vacancy-hour-options .checkline{padding:6px 2px;cursor:pointer}.vacancy-shifts{min-width:0;border:1px solid var(--line);border-radius:7px;margin:0 0 12px;padding:10px 12px}.vacancy-shifts legend{font-size:12px;color:var(--sub);padding:0 5px}.duty-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}
.duty-line + .duty-line{border-top:1px solid var(--line)}
.duty-line strong{font-weight:600}.duty-line .meta{white-space:pre-wrap;overflow-wrap:anywhere}
#duty-live-info:not(:empty){padding:8px 16px;color:var(--sub)}
.vacancy-memo{white-space:pre-wrap;overflow-wrap:anywhere}.vacancy-shifts .checkline{white-space:nowrap}

.info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:16px}.info-card{font:inherit;text-align:left;color:var(--ink,#183036);background:white;border:1px solid #cfddda;border-radius:14px;padding:22px;display:grid;gap:10px;cursor:pointer}.info-card:hover,.info-card:focus-visible{border-color:#168071;background:#f6fbf9}.info-card .ico{color:#087266}.info-card strong{font-size:1.15rem}.info-card span:not(.ico){color:#526768;line-height:1.5}.info-card small{color:#12675a;font-weight:650}#nav button.nav-child{padding-left:28px} .schedule-task{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.roster-filters{flex-wrap:wrap}.roster-filters select{max-width:100%}.roster-filters label{min-width:135px}
.bar label[hidden],.grid label[hidden]{display:none}
#nav{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#537571 transparent}.roster-filters label select{min-width:0;width:100%}.roster-filters label{max-width:min(100%,330px)}
@media screen {
/* Layout and identity */
:root {
  --ink: #162e37;
  --sub: #50666e;
  --teal: #076254;
  --line: #d9e2e2;
  --bg: #f3f6f6;
  --nav-bg: #102c35;
  --mint: #8fe5c5;
  --shadow: 0 3px 12px rgb(32 59 62 / 4%);
  font-family: "Segoe UI", Arial, sans-serif;
}
.shell { grid-template-columns: 252px minmax(0,1fr); }
.workspace { min-width: 0; }
aside { background: var(--nav-bg); padding: 23px 15px 14px; height:100dvh; }
.brand, .scene-brand, .auth-brand { display:flex; align-items:center; gap:11px; letter-spacing:-1.1px; }
.brand { padding:2px 9px 23px; border-bottom:1px solid #34505a; width:100%; }
.brand-emblem {
  display:grid; place-items:center; flex:0 0 auto; width:36px; height:40px;
  color:var(--mint); background:none;
}
.brand-emblem svg { width:100%; height:100%; stroke-width:1.6; }
.brand-name { font-size:23px; font-weight:650; color:#fff; }
.brand-name b { color:var(--mint); font-weight:730; }
.navtitle { color:#adc1c7; letter-spacing:.13em; font-size:10px; margin:25px 11px 10px; }
#nav { flex:1 1 auto; padding:0 2px 12px; }
#nav button, .nav-group summary {
  min-height:41px; display:flex; align-items:center; width:100%; gap:11px;
  text-align:left; font-size:13px; line-height:1.4; font-weight:550;
  letter-spacing:0; color:#dce7e8; padding:9px 11px; margin:2px 0; border-radius:7px;
}
#nav .ico { color:#a1c3c5; }
#nav button.active { color:#e1fff1; background:#20504f; box-shadow:inset 3px 0 var(--mint); }
#nav button.active .ico { color:var(--mint); }
.nav-main { padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid #34505a; }
.nav-group summary { list-style:none; cursor:pointer; }
.nav-group summary::-webkit-details-marker { display:none; }
.nav-group summary::after {
  content:""; margin-left:auto; width:6px; height:6px; flex:none;
  border:solid #a4c3c8; border-width:0 1.5px 1.5px 0; transform:rotate(-45deg);
}
.nav-group[open]>summary::after { transform:rotate(45deg); }
.nav-group summary:hover, #nav button:hover { background:#1c4049; }
.nav-group .nav-links { margin:2px 2px 8px 20px; border-left:1px solid #396069; padding-left:7px; }
#nav .nav-links button { min-height:34px; font-size:12px; padding:7px 8px; gap:8px; }
#nav .nav-links svg { width:15px; height:15px; }
.sidefoot { margin-top:7px; border-top:1px solid #34505a; padding:14px 8px 0; }
.account-line { display:flex; align-items:center; gap:9px; color:#eef7f7; font-weight:600; overflow-wrap:anywhere; }
.account-icon { flex:none; width:30px; height:30px; background:#23464c; color:#baf2dc; border-radius:50%; display:grid; place-items:center; }
.account-icon svg { width:16px; height:16px; }
.sidefoot .app-version { font-size:11px; font-weight:400; color:#b4c8cb; margin:8px 0; }
.account-actions { display:flex; gap:14px; flex-wrap:wrap; }
.exit-btn { color:#b8dcdb; font-size:12px; padding:4px 0; text-decoration:none; }
.exit-btn:hover { color:white; text-decoration:underline; }
.menu-scrim { display:none; }
header { height:66px; justify-content:flex-start; gap:11px; padding:0 clamp(18px,2.6vw,44px); }
.breadcrumb { display:flex; align-items:center; white-space:nowrap; min-width:0; }
.breadcrumb strong { overflow:hidden; text-overflow:ellipsis; }
.top-actions { margin-left:auto; display:flex; gap:9px; align-items:center; flex:none; }
header svg { width:17px; height:17px; }
header .mode { background:#eef7f3; color:#206458; border-color:#cee4da; }
main { padding:25px clamp(18px,2.6vw,44px) 44px; }
.button, .icon, .mode, .tab { border-radius:7px; min-height:36px; font-weight:600; }
.primary { background:#096756; border-color:#096756; }
.primary:hover { background:#064c41; border-color:#064c41; }
:focus-visible, .search:focus-within { outline:2px solid #338c80; outline-offset:2px; }
aside :focus-visible { outline-color:var(--mint); }

/* Overview and records */
.hero {
  display:flex; isolation:isolate; align-items:center; overflow:hidden; position:relative;
  min-height:199px; padding:29px clamp(22px,2.7vw,42px); color:white;
  background:#103237; border-radius:14px; margin:0 0 16px;
}
.hero-copy { position:relative; z-index:1; width:56%; }
.hero-photo {
  position:absolute; inset:0 0 0 40%; z-index:0; pointer-events:none;
  background:linear-gradient(90deg,#103237 0%,rgb(16 50 55 / 47%) 25%,transparent 59%),
             url("/security-lobby.jpg") 74% 39% / cover no-repeat;
}
.hero h1 { margin:0; font-size:clamp(31px,3vw,47px); line-height:1.17; letter-spacing:-.043em; font-weight:660; }
.hero p { font-size:14px; line-height:1.55; max-width:45ch; margin:10px 0 0; color:#e0eceb; }
.hero .hero-date { display:flex; align-items:center; gap:7px; margin:0 0 13px; font-weight:550; font-size:12px; color:#b6e6d4; }
.hero-date svg { width:15px; height:15px; }
.heading { margin:5px 0 21px; }
.heading h1 { margin:0; font-weight:680; font-size:clamp(27px,2.5vw,38px); line-height:1.2; }
.heading p { margin:6px 0 0; }
.metrics { gap:12px; margin:0 0 22px; }
.metric {
  padding:16px 17px; min-height:98px; border-radius:11px; box-shadow:var(--shadow);
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center; column-gap:6px;
}
.metric small { display:block; grid-column:1/-1; font-size:12px; color:#4b626a; }
.metric strong { font-size:30px; line-height:1.1; font-weight:680; align-self:end; font-variant-numeric:tabular-nums; }
.metric .ico { position:static; align-self:end; justify-self:end; padding:7px; border-radius:9px; color:#216552; background:#e2f2eb; }
.metric.active { box-shadow:inset 0 0 0 1px #398b79; }
.panel,.tile,.info-card { border-radius:12px; box-shadow:var(--shadow); }
.panel+.panel { margin-top:16px; }
.panelhead { padding:19px 21px 12px; }
.panelhead h2 { font-size:20px; font-weight:670; }
.panelhead h2 span,.count { display:inline-block; font-size:11px; color:#365c57; background:#e8f2ee; border-radius:20px; padding:3px 9px; }
.bar { padding:8px 21px 15px; gap:8px; }
.bar select,.bar .search { min-height:36px; font-size:13px; }
#listarea>.bar { background:#f8faf9; border-top:1px solid #e6ecea; padding:9px 21px; }
#listarea>.bar .button,#listarea>.bar select { min-height:31px; padding-top:5px; padding-bottom:5px; font-size:12px; }
.search svg { color:#5c7778; width:17px; height:17px; }
.search input:focus-visible { outline:none; }
.tablewrap { max-width:100%; }
th { background:#f0f4f4; color:#4c656d; font-size:10.5px; letter-spacing:.055em; }
td { color:#233d44; line-height:1.45; }
td,th { padding:12px; border-top-color:#e2e9e8; }
td:first-child,th:first-child { padding-left:20px; }
td:last-child,th:last-child { padding-right:20px; }
td .quiet { min-height:28px; padding:4px 10px; color:#226456; }
td .meta { font-size:11.5px; }
.avatar { border-radius:9px; width:34px; height:36px; }
.pill { font-size:11px; }
.panelbottom { font-variant-numeric:tabular-nums; }
.hint { font-size:12px; }
.empty { padding:31px 18px; }
.empty h3 { color:#344f52; }
.info-card { display:flex; flex-direction:column; align-items:flex-start; }
.info-card > .ico { padding:9px; background:#e9f3ee; border-radius:9px; }
.info-card small { margin-top:auto; }
.roster-filters label { display:grid; gap:5px; font-size:12px; font-weight:600; color:var(--sub); }
.duty-line { padding:8px 0; }
.grid { gap:16px; }
.grid label,.field { color:#435d64; font-size:13px; }
.grid :is(input,textarea,select) { font-weight:400; }
input[type=checkbox] { accent-color:var(--teal); }
dialog { border-radius:14px; max-height:90dvh; box-shadow:0 18px 72px #0b292e45; }
dialog .dlghead,.attachment-head { background:#fff; }
dialog .dlghead { position:sticky; top:0; z-index:2; }
dialog .formfoot { position:sticky; bottom:0; z-index:1; }
dialog .dlgcontent { padding-top:20px; padding-bottom:22px; }
dialog::backdrop { background:rgb(13 35 43 / 58%); }

/* Sign in */
.auth-screen { padding:clamp(16px,4vw,60px); background:#eaf0ee; }
.auth-layout {
  display:grid; grid-template-columns:1.04fr 1fr; width:min(100%,960px); min-height:484px;
  border:1px solid #cad8d3; border-radius:18px; overflow:hidden; background:white; box-shadow:0 20px 65px #213d3919;
}
.auth-scene {
  position:relative; padding:30px; background:linear-gradient(180deg,rgb(6 37 40 / 68%),transparent 37%,rgb(6 37 40 / 22%)),
    url("/security-lobby.jpg") 76% center / cover;
}
.auth-card { align-self:center; width:100%; padding:clamp(28px,3.5vw,52px); border:0; border-radius:0; box-shadow:none; }
.auth-card h1 { font-size:clamp(25px,2.6vw,36px); line-height:1.18; margin:0 0 8px; color:var(--ink); }
.auth-card label,.login-password label { color:var(--ink); font-size:13px; }
.auth-card form { gap:16px; }
.auth-card input,.auth-card #login-submit { min-height:42px; }
.auth-brand { display:none; }
.login-version { font-size:11px; margin-top:21px; font-weight:500; }
.software-credit { margin-top:6px; font-size:12px; font-weight:400; line-height:1.5; }
.errors:empty { display:none; }

@media(max-width:1120px) {
  .shell { grid-template-columns:215px minmax(0,1fr); }
  aside { padding-left:10px; padding-right:10px; }
  .hero-copy { width:60%; }
  .metrics { gap:8px; }
  .metric { padding:12px; }
  .metric small { font-size:11.5px; }
}
@media(max-width:780px) {
  .shell { display:block; }
  .workspace>header { position:sticky; top:0; z-index:4; height:55px; min-height:55px; padding:0 12px; flex-wrap:nowrap; }
  .mobile { display:inline-flex; }
  .breadcrumb span,.breadcrumb i,.refresh span { display:none; }
  .breadcrumb strong { font-size:12px; }
  .top-actions { gap:5px; }
  header .mode { font-size:11px; }
  aside { display:none; }
  .navopen aside { position:fixed; display:flex; z-index:5; inset:55px auto 0 0; height:calc(100dvh - 55px); width:min(285px,85vw); padding:15px; }
  .navopen .menu-scrim { display:block; position:fixed; z-index:4; inset:55px 0 0; background:#102b3266; width:100%; }
  body.navopen { overflow:hidden; }
  .brand { padding-bottom:12px; }
  .navtitle { margin-top:15px; }
  main { padding:15px 12px 32px; }
  .hero { min-height:170px; padding:22px; }
  .hero h1 { font-size:29px; }
  .hero-copy { width:63%; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:16px; }
  .metric { min-height:81px; }
  .metric strong { font-size:25px; }
  .panelhead { padding:16px 14px 9px; }
  .bar,#listarea>.bar { padding-left:14px; padding-right:14px; }
}
@media(max-width:620px) {
  .auth-layout { grid-template-columns:1fr; width:min(100%,430px); min-height:0; }
  .auth-scene { height:126px; padding:20px; background-position:75% 36%; }
  .auth-card { padding:25px; }
  .scene-brand { gap:7px; }
  .scene-brand .brand-emblem { width:30px; height:32px; }
}
@media(max-width:480px) {
  .hero { min-height:166px; padding:18px; }
  .hero-copy { width:74%; }
  .hero h1 { font-size:26px; }
  .hero p { font-size:12px; }
  .hero .hero-date { font-size:10.5px; margin-bottom:9px; }
  .hero-photo { left:45%; background-position:0 0,76% 40%; }
  .panelhead,.formfoot { gap:8px; }
  .panelhead h2 { font-size:18px; }
  .panelhead .actions { width:auto; }
  .bar .search { flex-basis:100%; }
  .grid { gap:12px; }
  .bar select { max-width:100%; }
  dialog { max-height:94dvh; }
  .auth-screen { padding:12px; }
}
@media(max-height:510px) {
  .navopen aside { overflow-y:auto; }
  .navopen #nav { flex:1 0 auto; }
  dialog .dlghead,dialog .formfoot { position:static; }
}
}
dialog:has(.site-sheet){width:min(1020px,calc(100% - 24px))}
.site-sheet h3{background:#08685f;color:white;border-radius:7px 7px 0 0;padding:10px 14px;margin:18px 0 0}
.site-facts,.site-cards{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);margin:0}
.site-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.site-facts div,.site-doc{padding:14px;background:white;overflow-wrap:anywhere}
.site-facts dt,.site-doc small{color:var(--muted);font-size:.85rem}
.site-facts dd{margin:5px 0 0;font-weight:650}
#current-site-guards{white-space:pre-line}
.site-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.site-doc h4{font-size:1rem;margin:0 0 12px}
.site-doc small{display:block;margin-top:8px}
.site-thumbnail{height:104px;width:auto;max-width:100%;object-fit:contain;border-radius:5px;margin-bottom:8px}
@media(max-width:620px){.site-facts,.site-cards{grid-template-columns:1fr}}

.notice-row{padding:12px 0;border-bottom:1px solid #dbe5e3}.notice-row small{display:block;margin-top:6px}.notice-text{white-space:pre-wrap;overflow-wrap:anywhere}.notice-row button{white-space:normal;overflow-wrap:anywhere}#publish-notice label{display:grid;gap:6px;margin-bottom:16px}

.decision-audience { min-width:0; }
.decision-rooms { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:4px 16px; padding:4px 0; }
.grid .decision-rooms label { display:flex; flex-direction:row; align-items:center; gap:8px; min-height:36px; grid-column:auto; }
.grid .decision-rooms label:first-child { grid-column:auto; }
.grid .decision-rooms input[type=checkbox] { flex:0 0 16px; width:16px; height:16px; margin:0; }
.dispatch-section {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.dispatch-section + .dispatch-section {
  margin-top: 22px;
}
.dispatch-section legend {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 12px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.grid.dispatch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.dispatch-grid > label {
  min-width: 0;
  justify-content: flex-end;
}
.dispatch-grid :is(input,select) {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
}
.dispatch-grid input[readonly] {
  background: #f4f7f6;
}
@media (max-width:620px) {
  .grid.dispatch-grid { grid-template-columns: minmax(0, 1fr); }
}

.office-form-preview{white-space:pre-wrap;overflow-wrap:anywhere;justify-self:stretch;align-self:start;background:white;color:#203635;padding:16px;margin:0;min-width:0;font:inherit}

.dispatch-preview-page{margin:0 auto 14px;width:min(100%,794px);min-width:0}.dispatch-preview-page figcaption{text-align:center;padding:6px;color:var(--sub)}#attachment-content .dispatch-preview-page img{width:100%;height:auto;max-height:none;box-shadow:0 1px 5px #0002}


#staff-bio-form [data-bio-image] {width:100%;height:108px;object-fit:contain;background:#f4f7f6}
#staff-bio-form img[hidden]{display:none}
#attachment-content .bio-sheet{width:min(100%,720px);margin:auto;padding:22px;box-sizing:border-box;background:white;color:#151919;font:15px Georgia,serif;overflow-wrap:anywhere}
.bio-masthead{display:grid;grid-template-columns:minmax(0,22mm) minmax(0,1fr) minmax(0,42mm);align-items:center;gap:2mm;text-align:center;margin:0 0 3mm;break-inside:avoid}
.bio-heading{min-width:0;line-height:1.25}
.bio-sheet .bio-heading h2{font:700 18pt/1.15 "Times New Roman",serif;margin:3mm 0 0}
.bio-masthead img{display:block;max-width:100%;margin:auto;object-fit:contain}
.bio-logo img{width:18mm;height:21mm}
.bio-portrait{width:var(--frame-width,40mm);max-width:100%;aspect-ratio:var(--frame-ratio,2/3)}
.bio-portrait>img{width:100%;height:100%;object-fit:cover;outline:.5pt solid #c6cdcc;outline-offset:-.5pt}
@media screen and (max-width:550px){
  .bio-masthead{grid-template-columns:12% minmax(0,1fr) 21%;gap:2%;font-size:12px}
  .bio-sheet .bio-heading h2{font-size:16px}
  .bio-masthead img{height:auto}
  .bio-portrait>img{height:100%}
}
.bio-sheet p{margin:4px 0}.bio-sheet table{width:100%;border-collapse:collapse;table-layout:fixed}.bio-sheet td{border:1px solid #87938e;padding:5px}
.bio-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bio-cards figure{margin:10px 0;text-align:center}
#attachment-content .bio-cards img{width:100%;height:auto}.bio-sheet footer{text-align:right;margin:20px 0}


.form-branch {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.form-branch + .form-branch { margin-top: 8px; }
.form-branch > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
  list-style: none;
}
.form-branch > summary::-webkit-details-marker { display: none; }
.form-branch > summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.form-branch[open] > summary::before { transform: rotate(45deg); }
.form-branch[open] > summary, .form-branch > summary:hover { background: var(--light); }
.form-branch > summary:focus-visible { outline: 3px solid #d99035; outline-offset: 2px; }
.form-branch-body {
  margin: 8px 14px 12px 17px;
  padding: 3px 0 3px 13px;
  border-inline-start: 2px solid var(--line);
}
.form-branch-body small { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--sub); }
.analysis-filters { display:grid; gap:20px; padding:clamp(16px,3vw,28px); }
.analysis-filters fieldset { min-width:0; margin:0; padding:14px 0 0; border:0; border-top:1px solid var(--line); }
.analysis-filters legend { padding:0 10px 0 0; font-weight:700; }
.analysis-filters .actions { flex-wrap:wrap; }
#analysis-results { margin-top:20px; scroll-margin-top:12px; }
#analysis-results td { overflow-wrap:anywhere; }
.analysis-filters .wide, #analysis-visit .wide { grid-column:1/-1; }
.camera-open { margin-block:4px; }
dialog.capture-dialog { padding:0; width:min(94vw,480px); max-height:94dvh; overflow:auto; }
.capture-dialog::backdrop { background:rgba(10,25,29,.76); }
.capture-dialog .dlghead { position:static; padding:14px 18px; }
.capture-dialog .dlghead h2 { margin:4px 0 0; overflow-wrap:anywhere; }
.capture-content { padding:14px 18px 18px; }
.capture-stage { position:relative; overflow:hidden; background:#102329; border-radius:10px; margin:auto; }
.capture-portrait { aspect-ratio:2/3; width:min(100%,44vh); }
.capture-card { aspect-ratio:1.586; width:100%; }
.capture-paper { aspect-ratio:1 / 1.414; width:min(100%,44vh); }
.capture-stage video,.capture-stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.capture-guide { position:absolute; inset:5%; border:2px dashed rgba(255,255,255,.88); border-radius:8px; pointer-events:none; }
.capture-portrait .capture-guide { inset:10% 16%; border-radius:46% 46% 22% 22%; }
.capture-dialog [hidden],.capture-dialog:not([data-mode="error"]) [data-cam="reopen"],.capture-dialog[data-mode="error"] [data-live] { display:none; }
.capture-actions { flex-wrap:wrap; justify-content:space-between; }
.capture-actions button { min-height:44px; }
.capture-actions [aria-pressed="true"] { background:var(--light); }
.capture-dialog [role="status"] { margin:12px 0; line-height:1.45; }


/* Shared navigation and lookup controls */
@media screen {
  .mobile-only { display:none; }
  #sidebar #nav { min-height:0; overscroll-behavior:contain; scrollbar-width:thin; }
  #sidebar .sidefoot,#sidebar .brand { flex-shrink:0; }
  #nav .navtitle { font:650 10px/1.4 "Segoe UI",Arial,sans-serif; letter-spacing:.085em; text-transform:uppercase; margin:16px 9px 6px; }
  #nav .navtitle:not(:first-child) { border-top:1px solid #304d55; padding-top:16px; }
  #nav .nav-main { border:0; padding:0; margin:0; }
  #nav [data-open-notices] .ico { order:-1; }
  #department-notices { position:relative; }
  .notice-unread,.filter-count { min-width:18px; padding:1px 5px; border-radius:20px; background:#d9eee6; color:#135448; font-size:11px; font-weight:700; text-align:center; }
  .account-tools { display:flex; flex-wrap:wrap; gap:10px; }
  .overview-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .overview-groups button { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; text-align:left; gap:1px 12px; border:1px solid var(--line); border-radius:12px; padding:16px; background:white; }
  .overview-groups button:hover { border-color:#82b9ae; }
  .overview-groups .ico { grid-row:span 2; color:#246a5b; background:#e2f2ec; border-radius:10px; padding:10px; }
  .overview-groups strong { font-size:26px; font-weight:680; line-height:1.15; font-variant-numeric:tabular-nums; }
  .overview-groups button>span:last-child { font-size:13px; color:var(--sub); }
  .quality-metrics { margin:10px 0 16px; }
  .quality-metrics summary { width:fit-content; padding:8px 0; cursor:pointer; color:var(--teal); font-weight:600; }
  .quality-metrics .metrics { margin:3px 0 0; }
  .lookup-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:5px 20px 14px; }
  .lookup-controls .search { flex:1 1 240px; min-width:0; }
  .lookup-controls .search input { min-width:0; }
  .lookup-options,.filter-fields,.record-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
  .filter-fields { align-items:end; }
  .record-tools { padding:8px 20px; border-top:1px solid var(--line); background:#f6f9f8; }
  .record-tools .button { min-height:34px; }
  .clear-lookup { display:block; margin:4px 20px 8px; }
  .profile-table .profile-actions { text-align:right; }
  .profile-actions .button { white-space:nowrap; }
  .row-menu { display:inline-block; vertical-align:middle; text-align:left; }
  .row-menu summary { display:grid; place-items:center; list-style:none; width:36px; height:36px; border-radius:8px; color:#47625f; cursor:pointer; }
  .row-menu summary::-webkit-details-marker { display:none; }
  .row-menu summary:hover,.row-menu[open] summary { background:#e8f3ef; }
  .row-options .danger { background:#fff; color:#963d32; white-space:nowrap; min-height:44px; }
  .profile-select label,.pick-all label { display:inline-flex; align-items:center; gap:7px; }
  .profile-panel .search:focus-within { border-color:#247966; }
}
@media screen and (max-width:780px) {
  .desktop-only,.workspace>header .breadcrumb,.top-actions .refresh,.top-actions #mode { display:none; }
  .mobile-only { display:inline-flex; }
  .workspace>header { height:56px; min-height:56px; gap:6px; padding:0 10px; }
  .workspace>header :is(.icon,#department-notices) { width:44px; height:44px; padding:10px; border-color:transparent; background:transparent; }
  .workspace>header svg { width:21px; height:21px; }
  .mobile-brand { display:flex; gap:4px; align-items:center; color:var(--dark); font-size:17px; font-weight:700; letter-spacing:-.55px; }
  .mobile-brand b { color:#08715f; }
  .top-actions { gap:0; }
  #department-notices .notice-label { display:none; }
  #department-notices .notice-unread { position:absolute; top:0; right:0; border:1px solid #fff; }
  .navopen aside { inset-block-start:56px; height:calc(100dvh - 56px); width:min(84vw,400px); padding:12px 14px max(10px,env(safe-area-inset-bottom)); overflow:hidden; }
  .navopen .menu-scrim { inset-block-start:56px; }
  .navopen #nav { flex:1 1 0; }
  #nav button,#nav summary,#nav .nav-links button { min-height:44px; }
  .sidefoot { padding-top:9px; }
  .sidefoot .app-version { margin:4px 0; }
  .sidefoot .exit-btn { min-height:38px; }
  .overview-groups { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .overview-groups button { padding:11px; gap:2px 8px; }
  .overview-groups .ico { padding:7px; }
  .overview-groups strong { font-size:22px; }
  .overview-groups button>span:last-child { font-size:12px; }
  .hero { min-height:104px; padding:16px; }
  .hero .hero-date { margin-bottom:5px; }
  .hero-copy { width:72%; }
  .hero-copy>p:last-child { display:none; }
  .hero h1 { font-size:clamp(21px,5.4vw,27px); }
  .quality-metrics { margin:2px 0 8px; }
  .quality-metrics summary { min-height:44px; padding-block:12px; font-size:13px; }
  .profile-panel { background:transparent; border:0; box-shadow:none; overflow:visible; border-radius:0; }
  .profile-panel .panelhead { padding:0 0 12px; align-items:center; gap:6px; }
  .profile-panel .panelhead h2 { font-size:19px; }
  .profile-panel .panelhead .primary { min-height:44px; padding:8px 11px; }
  .lookup-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; padding:0; }
  .lookup-controls .search { width:100%; min-height:46px; border-radius:10px; gap:9px; padding:8px 13px; }
  .lookup-controls .search input,.filter-fields select { font-size:16px; }
  .lookup-options { flex-wrap:nowrap; gap:4px; }
  .lookup-options #sort { margin-left:auto; }
  .lookup-options #sort,.lookup-controls .filter-toggle,.lookup-options .more-tools { border-color:transparent; background:transparent; color:#325d55; min-height:44px; }
  .lookup-controls .filter-toggle { justify-self:start; padding:6px 8px; }
  .lookup-controls [aria-expanded=true],.lookup-controls .filter-toggle:hover { background:#e1f0e9; border-radius:8px; }
  .lookup-options .more-tools { width:44px; }
  .lookup-controls .filter-fields,.profile-panel .record-tools { display:none; }
  .profile-panel:has([aria-controls="record-filters"][aria-expanded="true"]) #record-filters,
  .profile-panel:has([aria-controls="candidate-filters"][aria-expanded="true"]) #candidate-filters,
  .profile-panel:has([aria-controls="record-tools"][aria-expanded="true"]) #record-tools {
    display:flex; flex-wrap:wrap; gap:8px; padding:10px; background:white; border:1px solid var(--line); border-radius:10px; margin:0 0 8px;
  }
  .filter-fields>* { flex:1 1 180px; min-width:0; max-width:100%; }
  .filter-fields select,.record-tools .button { min-height:44px; }
  .filter-fields .field select { width:100%; }
  .clear-lookup { margin:0 0 6px; min-height:40px; }
  .profile-table { overflow:visible; }
  .profile-table table,.profile-table tbody { display:block; }
  .profile-table thead,.profile-row .profile-select,.profile-row .profile-unit { display:none; }
  .profile-table tbody { display:grid; gap:8px; padding:1px; }
  .profile-table .profile-row {
    display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px;
    position:relative; border:1px solid #d5e1dd; border-radius:12px; background:white; padding:12px;
  }
  .profile-table td { padding:0; border:0; min-width:0; }
  .profile-identity { grid-column:1/-1; }
  .profile-row:has(.row-menu) .profile-identity { padding-right:40px; }
  .profile-row .idcell { gap:10px; }
  .profile-row .idcell>div { min-width:0; }
  .profile-row .link { font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
  .profile-row .meta { margin-top:2px; line-height:1.35; overflow-wrap:anywhere; }
  .profile-row .meta.mobile-only { display:block; }
  .profile-row .profile-region { grid-column:1/-1; font-size:12px; color:var(--sub); }
  .profile-row .profile-status { display:flex; align-items:center; flex-wrap:wrap; gap:4px; grid-column:1; }
  .profile-row .pill { white-space:normal; overflow-wrap:anywhere; }
  .profile-row .profile-actions { display:contents; }
  .profile-row .profile-open { grid-column:2; justify-self:end; min-height:44px; padding:8px 12px; border-color:#d5e5df; border-radius:9px; }
  .profile-open::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
  .profile-row [data-act=site-docs] { grid-column:1/-1; justify-self:start; min-height:44px; }
  .profile-row .row-menu { position:absolute; top:4px; right:5px; }
  .row-menu summary { width:44px; height:44px; }
  .row-menu[open] { z-index:2; }
  .row-options { position:absolute; top:100%; right:2px; padding:4px; background:white; border:1px solid var(--line); border-radius:9px; box-shadow:0 4px 14px #133c3224; }
  .row-options .danger { border:0; }
  .profile-panel:has([aria-controls="record-tools"][aria-expanded="true"]) .profile-table thead { display:block; }
  .profile-table thead th { display:none; }
  .profile-table thead .pick-all { display:block; background:transparent; border:0; font-size:12px; text-transform:none; letter-spacing:0; padding:0; }
  .profile-panel:has([aria-controls="record-tools"][aria-expanded="true"]) .profile-select { display:block; grid-column:1/-1; order:1; border-top:1px solid #edf2ef; }
  .profile-select label,.pick-all label { min-height:44px; cursor:pointer; }
  .profile-select input,.pick-all input { width:18px; height:18px; }
  .profile-row:has(.pick:checked) { border-color:#529988; }
  .profile-panel .panelbottom { padding:12px 0; border:0; gap:6px; }
  .profile-panel .panelbottom .actions { gap:5px; }
  .profile-panel .panelbottom .button { min-height:44px; padding:6px 10px; }
  .profile-panel .empty { background:white; border:1px solid var(--line); border-radius:12px; }
}

@media screen {
  .record-tools:empty { display:none; }
  .row-options .button { display:flex; width:100%; justify-content:flex-start; }
}
@media screen and (max-width:780px) {
  .fact-cards .profile-row { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .fact-cards .profile-identity { display:grid; justify-items:start; gap:2px; font-weight:650; overflow-wrap:anywhere; }
  .fact-cards .profile-identity .meta { font-weight:400; }
  .fact-cards [data-caption] { overflow-wrap:anywhere; }
  .fact-cards [data-caption]::before { content:attr(data-caption); display:block; margin-bottom:2px; font-size:11px; font-weight:600; color:var(--sub); }
  .fact-cards .fact-actions { grid-column:1/-1; justify-self:end; }
  .fact-actions .button { min-height:44px; }
  .fact-actions .row-options { min-width:max-content; }
  .profile-panel>.bar { padding:6px 0 14px; }
  .profile-panel>.bar .search { flex-basis:100%; min-height:46px; }
  .profile-panel>.bar input { font-size:16px; }
}

#bio-approval-status { margin-bottom:18px; }
#bio-approval-status p { margin:0 0 8px; }
#bio-approval-status p:last-child { margin:0; }
.bio-notice { margin-bottom:16px; }
.bio-request-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.bio-request-row p { margin:5px 0; color:var(--sub); font-size:13px; }
.bio-review-meta p { margin:6px 0; }
.bio-request-preview { margin:15px 0; padding:12px; overflow:auto; background:#f0f3f2; }
.bio-request-preview .bio-sheet { width:100%; margin:0; background:white; color:#151919; padding:15px; font:14px "Times New Roman",serif; }
.bio-request-preview .bio-sheet p { margin:4px 0; }
.bio-request-preview .bio-sheet table { width:100%; border-collapse:collapse; table-layout:fixed; }
.bio-request-preview .bio-sheet td { font-size:11px; padding:4px; border:1px solid #87938e; overflow-wrap:anywhere; }
.bio-request-preview .bio-cards img { max-width:100%; height:auto; }
.bio-masthead:has(.bio-certified) { grid-template-columns:minmax(0,22mm) minmax(0,1fr) minmax(0,auto); }
.bio-portrait.bio-certified { position:relative; width:var(--frame-width,58mm); aspect-ratio:var(--frame-ratio,58/77.623); max-width:100%; }
.bio-portrait.bio-certified>img { position:absolute; top:0; right:0; width:var(--photo-width,68.966%); height:auto; object-fit:contain; }
.bio-seal { position:absolute; left:0; bottom:0; width:var(--seal-width,62.069%); mix-blend-mode:multiply; }
.bio-portrait .bio-seal img { display:block; width:100%; height:auto; outline:none; }
.bio-sheet footer { width:44%; margin:15px 0 0 auto; text-align:center; break-inside:avoid; }
.bio-signature { min-height:14mm; display:grid; place-items:center; }
.bio-signature img { width:40mm; max-width:100%; height:auto; mix-blend-mode:multiply; }
@media screen and (max-width:550px) {
  .bio-masthead:has(.bio-certified) { grid-template-columns:12% minmax(0,1fr) 28%; gap:2%; }
  .bio-portrait.bio-certified { width:100%; height:auto; aspect-ratio:var(--frame-ratio,58/77.623); }
  .bio-request-preview { padding:4px; }
  .bio-request-preview .bio-sheet { padding:7px; font-size:12px; }
}

.gov-intake{display:grid;gap:16px}.gov-intake fieldset{margin:0;min-width:0;padding:14px;border:1px solid #cedbd8;border-radius:8px}.gov-intake legend{font-weight:700;padding:0 6px}.gov-intake fieldset>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gov-intake label{display:grid;gap:6px;min-width:0}.gov-intake input,.gov-intake select{box-sizing:border-box;width:100%;min-width:0}.gov-intake .wide{grid-column:1/-1}@media(max-width:620px){.gov-intake fieldset>div{grid-template-columns:minmax(0,1fr)}}

.gov-period{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.gov-period label{display:grid;gap:5px}.gov-register{width:100%;border-collapse:collapse}.gov-register td,.gov-register th{text-align:left;padding:10px;border-bottom:1px solid #dce4e2}.gov-register th{background:#edf5f3}.gov-register strong{overflow-wrap:anywhere}.gov-register td:last-child{min-width:110px}@media(max-width:680px){.gov-register,.gov-register tbody,.gov-register tr,.gov-register td{display:block;width:auto}.gov-register thead{display:none}.gov-register tr{padding:10px;border:1px solid #dce4e2;border-radius:8px;margin-bottom:10px}.gov-register td{border:0;padding:4px}.gov-register td[data-label]::before{content:attr(data-label) " Â· ";color:#536862}}

.gov-branches{display:grid;gap:12px}.gov-branches button{text-align:left;white-space:normal;padding:16px;font-weight:650}
#dialog:has(.gov-branches,.gov-period,.gov-intake){box-sizing:border-box;width:min(1320px,calc(100vw - 48px));max-width:none}
#dialog:has(.gov-branches,.gov-period,.gov-intake) .dlgcontent{background:#f3f7f6;padding:clamp(16px,2.2vw,32px)}
#dialog:has(.gov-branches,.gov-period,.gov-intake) .dlghead{padding:20px clamp(16px,2.2vw,32px)}
.gov-branches{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gov-branches button{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:16px;min-height:128px;padding:22px;border:1px solid #bdd0cb;border-radius:14px;background:white;color:#173530;font-size:clamp(18px,1.6vw,23px);line-height:1.4}
.gov-branches button:hover,.gov-branches button:focus-visible{border-color:#147361;background:#f4fcf9}
.gov-branches button::after{content:"›";color:#347466;font-size:26px}
.gov-branch-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#e2f2ec;color:#146952}
.gov-branch-icon svg{width:28px;height:28px}
.gov-period{background:white;border:1px solid #d7e3df;padding:18px;border-radius:12px;margin-bottom:16px}.gov-period span{margin-inline-start:auto;font-weight:650;align-self:center}
.gov-register{background:white;border:1px solid #d7e3df}.gov-register th,.gov-register td{padding:15px}.gov-register td:first-child{color:#48665c}.gov-register td:last-child button,.gov-register td:last-child a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;border:1px solid #cadbd5;border-radius:8px;background:white;text-decoration:none}.gov-register td:last-child{min-width:190px}.gov-register td:last-child button[data-gov-delete]{color:#8e4135}
@media(max-width:760px){#dialog:has(.gov-branches,.gov-period,.gov-intake){width:calc(100vw - 16px)}.gov-branches{grid-template-columns:1fr;gap:12px}.gov-branches button{min-height:94px;padding:15px;gap:12px;grid-template-columns:44px 1fr auto}.gov-branch-icon{width:44px;height:44px}.gov-period{padding:12px;gap:10px}.gov-register td:last-child{min-width:0}}
@media(max-width:680px){.gov-register{border:none;background:transparent}.gov-register tr{background:white}.gov-register td{padding:5px 8px}.gov-period select{max-width:100%}}

.gov-screen{max-width:1200px;margin:auto;color:#153832}.gov-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 24px}.gov-heading h1{font-size:clamp(24px,3vw,32px);line-height:1.2;margin:0}.gov-screen .primary,.gov-screen [data-intake-save]{background:#086955;color:white;border-radius:8px;padding:12px 18px}.gov-screen small{display:block;font-size:15px;font-weight:400;color:#536863;margin-top:5px}.gov-back{color:#156657;padding:8px 0}.gov-screen fieldset{background:white;padding:18px}.gov-screen .gov-intake label{font-size:16px}.gov-screen input,.gov-screen select{min-height:48px}.gov-foot{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;background:#fff;padding:12px;border-top:1px solid #cedbd6;z-index:1}.gov-period label:first-child{flex:1;min-width:min(240px,100%)}.gov-screen details{display:inline-block;vertical-align:middle}.gov-screen summary{cursor:pointer;padding:8px}.gov-screen details[open]{display:block;overflow-wrap:anywhere}.gov-screen h2{font-size:20px}.gov-screen td{overflow-wrap:anywhere}.gov-branches small{font-size:16px}.gov-screen [data-intake-open],.gov-screen [data-gov-extract]{white-space:normal}#sidebar [data-gov-open][aria-current=page]{background:#265c55;color:white}@media(min-width:761px){.gov-intake fieldset:first-child>div{grid-template-columns:1fr 1.25fr 1.7fr}.gov-intake fieldset:nth-child(2)>div{grid-template-columns:2fr 1fr}}@media(max-width:760px){.gov-screen .gov-intake fieldset>div{grid-template-columns:minmax(0,1fr)}.gov-heading{flex-wrap:wrap}.gov-screen .gov-period{display:grid;grid-template-columns:1fr 1fr}.gov-period label:first-child{grid-column:1/-1}.gov-foot{flex-wrap:wrap}}

#legacy-fields[hidden]{display:none}#legacy-result{line-height:1.65}#legacy-result button{margin-top:8px}
.gov-old-address{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gov-old-address>strong{grid-column:1/-1}
.gov-old-address>strong:last-child{border-top:1px solid #d8e4e1;padding-top:14px}
.gov-old-address [role=status] button{margin:4px}
.gov-old-address [data-retry][hidden]{display:none}
@media(max-width:760px){.gov-old-address{grid-template-columns:minmax(0,1fr)}}

.utility-entry{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 18px;border:1px solid #b7d4cb;border-radius:10px;background:#fff;color:#145c4b;font-weight:650}
.utility-entry .ico{color:#18735d}.utility-actions{justify-content:flex-end;flex-wrap:wrap}
.utility-result{margin-top:16px;background:white;border:1px solid #cedbd8;border-radius:10px;padding:18px}
.utility-address{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#ecf8f2;border-radius:8px;overflow-wrap:anywhere}
.utility-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.utility-columns section{padding:14px;border:1px solid #d4dfdb;border-radius:8px}.utility-columns h3{margin:0 0 10px}.utility-columns p{margin:5px 0;overflow-wrap:anywhere}
@media(max-width:700px){.utility-columns{grid-template-columns:1fr}.utility-address{align-items:flex-start;flex-direction:column}}

.gov-screen [data-account-list],.account-form{padding:18px}.account-entry+.account-entry{border-top:1px solid #dae4e1;margin-top:14px;padding-top:10px}.account-note{white-space:pre-wrap;overflow-wrap:anywhere}.account-form,.account-form label{display:grid;gap:8px}.account-form{background:white;margin-top:12px;border:1px solid #d5e1dc;border-radius:10px}.account-entry h2{overflow-wrap:anywhere}

.acc-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin-bottom:18px}
.acc-folders .utility-entry{min-height:76px;margin:0;text-align:left}
.acc-doc-form{margin:12px 0}.acc-fields,.acc-line{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:12px}
.acc-doc-form label{display:grid;gap:5px;min-width:0}.acc-doc-form input,.acc-doc-form select{min-width:0;width:100%}
.acc-line{background:#f5f9f7;border:1px solid #d9e4e0;border-radius:8px;padding:12px;margin-bottom:8px;align-items:end}
.acc-total{color:#155743;font-weight:650;line-height:1.6}.account-related{margin:12px 0}.acc-doc-list{padding:16px}
@media(max-width:680px){.acc-fields,.acc-line{grid-template-columns:minmax(0,1fr)}}

.work-picker {display:grid;gap:12px;max-width:680px}
.work-picker>label {max-width:360px}
.work-week,.work-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.work-week span {text-align:center;color:#47645c;font-size:.86rem;font-weight:650}
.acc-doc-form .work-grid label {display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;cursor:pointer;border:1px solid #cbdcd5;border-radius:7px;color:#25463c}
.acc-doc-form .work-grid label:has(:checked) {background:#e0f3eb;border-color:#3d846e;color:#134d3c;font-weight:bold}
.acc-doc-form .work-grid input {appearance:auto;accent-color:#15694f;width:15px;height:15px;min-height:0;margin:0;padding:0}
.work-detail,.work-more {border-top:1px solid #d4e3dc;padding:10px 0}
.work-detail summary,.work-more summary {cursor:pointer;color:#195e4b;font-weight:650;padding:6px 0}
.work-detail>label,.work-detail .acc-line,.work-more .acc-fields {margin:10px 0}
.work-more {grid-column:1/-1}
@media(max-width:480px){.work-week,.work-grid{gap:3px}.acc-doc-form .work-grid label{flex-direction:column;gap:1px;font-size:.85rem}}

.guard-portrait{width:96px;height:144px;object-fit:cover}
#staff-bio-form img[data-bio-image="portrait"]{width:72px;height:108px;object-fit:cover}
@media print{.guard-portrait,.candidate-photo.large{width:40mm;height:60mm;border-radius:0}}

.interview-family .relative-card {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.relative-card h4 {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #edf6f3;
  color: #135b50;
  font-size: 16px;
}
.relative-card .relative-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 14px 16px 16px;
}
.relative-fields > * { min-width: 0; }
.relative-fields > :nth-child(1) { grid-column: span 5; }
.relative-fields > :nth-child(2) { grid-column: span 3; }
.relative-fields > :nth-child(3), .relative-fields > :nth-child(5) { grid-column: span 4; }
.relative-fields > :nth-child(4) { grid-column: span 8; }
.relative-fields input { width: 100%; min-width: 0; }
@media (max-width: 620px) {
  .relative-card .relative-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .relative-card .relative-fields > * { grid-column: 1; }
}



.review-form {padding:clamp(14px,3vw,30px);max-width:940px;margin-top:12px}
.review-form section+section {border-top:1px solid #dbe3e1;padding-top:18px;margin-top:20px}
.review-form h2 {font-size:1.08rem;margin:0 0 14px}
.review-site h3 {font-size:1rem;margin-bottom:2px}
.review-site p,.review-form [data-review-author] {color:#5a6966;font-size:.88rem}
.review-sum {display:flex;justify-content:space-between;gap:14px;margin:10px 0}
.review-grand {padding:16px;background:#eff6f3;border-radius:10px;font-weight:600}
.review-grand strong {display:block;font-size:1.9rem}
.review-checked {color:#176943;background:#e0f4e9;border-radius:12px;padding:4px 10px}

.confirmation-parties,.work-confirmation-form>.acc-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px 16px;max-width:1040px}
.confirmation-parties [data-position-summary] {grid-column:1/-1;margin:0;color:#456257;font-size:.9rem}
.work-confirmation-form .confirmation-terms {grid-column:1/-1}
.work-confirmation-form .confirmation-terms summary,.work-confirm .confirmation-detail summary {width:fit-content}
.work-confirm {max-width:1040px;display:grid;gap:12px;min-width:0}
.work-confirm [hidden] {display:none!important}
.confirmation-schedule,.confirmation-heading,.confirmation-modes {display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.confirmation-schedule>label {min-width:min(260px,100%);max-width:100%}
.confirmation-info,.confirmation-status,.confirmation-exceptions {font-size:.9rem;color:#456257}
.confirmation-heading {border-top:1px solid #cddbd5;margin-top:6px;padding-top:18px;justify-content:space-between}
.confirmation-heading h2 {margin:0}
.confirmation-modes {gap:5px}
.confirmation-modes .button[aria-pressed=true] {background:#165f51;color:white;border-color:#165f51}
.confirmation-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.confirmation-note {grid-column:1/-1}
.work-confirm [data-work-entry]:not(:empty) {background:#f7faf8;border:1px solid #d5e2da;border-radius:8px;padding:14px;min-width:0}
.work-confirm .confirmation-info {margin:7px 0}
.work-confirm .hours-decreased {color:#87401d}
.work-confirm .confirmation-detail {padding:2px 0}
.confirmation-exceptions {margin-top:10px}
.confirmation-exceptions .actions:not(:empty) {margin-top:7px}
.work-confirm [data-custom-days] {display:grid;gap:7px;max-width:680px}
.work-confirm [data-clear-days] {justify-self:start}
.work-confirm .confirmation-page {display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.confirmation-page select {width:auto}
.confirmation-table {width:100%;table-layout:fixed;border-collapse:collapse;margin-top:8px}
.confirmation-table th,.confirmation-table td {padding:7px 5px;text-align:left;vertical-align:middle;border-bottom:1px solid #d5e2da}
.confirmation-table thead th {font-size:.87rem;color:#405c50}
.confirmation-table th:nth-child(1) {width:16%}
.confirmation-table th:nth-child(2) {width:13%}
.confirmation-table th:nth-child(3) {width:20%}
.confirmation-table th:nth-child(4) {width:16%}
.confirmation-totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0;border-top:1px solid #d5e2da;max-width:1040px}
.confirmation-totals span {display:grid;color:#405c50;font-size:.9rem;font-weight:500}
.confirmation-totals strong {font-size:1.15rem;color:#183f32;font-variant-numeric:tabular-nums}
.confirmation-totals span:last-child strong {color:#116551}
@media(max-width:660px){
  .confirmation-parties,.work-confirmation-form>.acc-fields {grid-template-columns:minmax(0,1fr)}
  .confirmation-fields {grid-template-columns:minmax(0,1fr)}
  .confirmation-table,.confirmation-table tbody {display:block}
  .confirmation-table thead {display:none}
  .confirmation-table tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px;border-top:1px solid #d5e2da;padding:10px 0}
  .confirmation-table td,.confirmation-table th[scope=row] {border:0;display:block;padding:0;width:auto}
  .confirmation-table th[scope=row],.confirmation-table td:last-child {grid-column:1/-1}
  .confirmation-table td[data-label]::before {content:attr(data-label);display:block;font-size:.8rem;color:#405c50}
  .confirmation-schedule>label {width:100%}
  .confirmation-modes .button {min-height:44px}
}

.account-excel-dialog {width:min(1100px,95vw);max-width:95vw;max-height:92vh;padding:0;border:1px solid #b4cac1;border-radius:12px;color:#183e34;background:white}
.account-excel-dialog::backdrop {background:rgb(10 30 24 / 50%)}
.excel-tools {display:flex;align-items:center;gap:.5rem;padding:.75rem;flex-wrap:wrap}
.excel-tools strong {flex:1}
.excel-sheet {overflow:auto;max-height:70vh;padding:.75rem}
.excel-sheet table {border-collapse:collapse;min-width:750px;width:100%}
.excel-sheet td {border:1px solid #cedad5;padding:.4rem;white-space:pre-line}
.excel-sheet td[colspan] {background:#f3f8f5;font-weight:600}
@media (min-width:761px) {
  .confirmation-table th:nth-child(-n+5) {width:14%}
}


.account-paper {background:white;color:#172e28;padding:1rem}
.account-paper h1 {font-size:1.35rem}
.account-paper p {white-space:pre-wrap}
.account-paper table {margin:1rem 0}
.account-paper th,.account-paper td {border:1px solid #c5d3cc;padding:.45rem;text-align:left}
@media print {
  #print .account-print-paper {display:block}
  #print .account-print-paper table {max-width:100%;min-width:0;table-layout:fixed}
  #print .account-print-paper th,#print .account-print-paper td {padding:3pt;white-space:pre-line;overflow-wrap:anywhere}
  #print .account-paper {padding:0}
  #print .account-print-paper thead {display:table-header-group}
}

.site-guard-shift {grid-column:1/-1;min-width:0;border:1px solid #cbdad3;border-radius:8px;padding:10px 14px}
.site-guard-shift legend {font-weight:650}

.service-quote-paper {position:relative;isolation:isolate;box-sizing:border-box;width:100%;max-width:780px;min-width:600px;margin:auto;border:3px solid #274e68;padding:24px 18px;background:#fff;color:#172d3b;font:14px/1.3 "Times New Roman",serif}
.service-quote-paper .quote-watermark {position:absolute;z-index:-1;top:15%;left:3%;width:94%;opacity:.11;pointer-events:none}
.service-quote-paper .quote-letterhead {display:grid;grid-template-columns:15% 1fr 15%;align-items:center;text-align:center;gap:5px}
.service-quote-paper .quote-letterhead img {width:100%;height:auto}
.service-quote-paper .quote-letterhead strong {font-size:1.35em}
.service-quote-paper .quote-letterhead p {font-size:.85em}
.service-quote-paper h1 {color:#a62126;font:700 1.4em "Times New Roman",serif;text-align:center;margin:16px 0 7px}
.service-quote-paper p {margin:3px 0}
.service-quote-paper .quote-date {text-align:right}
.service-quote-paper table,#print .service-quote-paper table {table-layout:fixed;border-collapse:collapse;width:100%;min-width:0;margin:12px 0 0}
.service-quote-paper td,.service-quote-paper th,#print .service-quote-paper td,#print .service-quote-paper th {border:1px solid #273d47;padding:6px;text-align:center;overflow-wrap:anywhere;background:transparent;white-space:normal}
.service-quote-paper th {background:#d5e2f3}


.service-quote-paper .quote-terms {border:1px solid #273d47;border-top:0;padding:6px;font-style:italic}
.service-quote-paper .quote-total {font-weight:bold}
.service-quote-paper .quote-footer {margin:15px 0 0;display:grid;grid-template-columns:52% 48%;break-inside:avoid}
.service-quote-paper .quote-sign,.service-quote-paper .quote-motto {text-align:center}
.service-quote-paper .quote-sign img {width:100px;height:auto}
.service-quote-paper .quote-motto {margin:14px 0;font-style:italic}
@media print {
  #print .service-quote-paper {min-width:0;max-width:none;padding:6mm 4mm;min-height:260mm;font-size:11pt;print-color-adjust:exact}
  #print .service-quote-paper h1 {font-size:14pt}
  #print .service-quote-paper p {white-space:normal}
}

@media print {
  html:has(.service-quote-paper),body:has(.service-quote-paper),#print:has(.service-quote-paper) {background:white}
  #print .service-quote-paper th {background:#d5e2f3}
}

.quote-hour-inputs {display:contents}
.quote-hour-inputs[hidden] {display:none}
@page serviceQuote {size:A4;margin:0}
@media print {
  #print:has(.service-quote-paper),#print .account-print-paper:has(.service-quote-paper) {page:serviceQuote;margin:0}
  #print .account-print-paper:has(.service-quote-paper) {padding:10mm;box-decoration-break:clone;-webkit-box-decoration-break:clone}
  #print .service-quote-paper {min-height:267mm}
  .service-quote-paper .quote-sign img {print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

.account-workbook {container-type:inline-size;position:relative;margin:0 auto;width:min(100%,195mm);min-width:0;background:white;color:#111;overflow:hidden}
.excel-sheet .account-workbook table,#print .account-workbook table {margin:0;width:100%;min-width:0;border:0;table-layout:fixed;border-collapse:collapse}
.excel-sheet .account-workbook td,#print .account-workbook td {border:0;padding:0 .16em;line-height:1.08;background:transparent;white-space:pre-line;overflow-wrap:break-word}
.account-workbook td>img {position:absolute;object-fit:contain;pointer-events:none}
@media print {#print .account-workbook {min-width:0;width:100%;print-color-adjust:exact}}

.acc-fields>.accounting-group {grid-column:1/-1;min-width:0;margin:0;padding:10px 14px 14px;border:1px solid #d9e4e0;border-radius:8px}
.accounting-group legend {padding:0 5px;font-weight:650}
.accounting-group-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}

/* Use the paper dimensions for accounting previews, independently of the dialog width. */
@media screen {
  .account-excel-dialog .excel-sheet {background:#e6e9eb}
  .excel-sheet>.account-print-paper {
    box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:10mm;
    color:#111;background:#fff;box-shadow:0 1px 5px #0003
  }
  .excel-sheet .account-paper {padding:0}
  .excel-sheet .account-print-paper table {min-width:0}
  .excel-sheet .service-quote-paper {min-width:0;min-height:267mm;padding:6mm 4mm;font-size:11pt}
  .excel-sheet .service-quote-paper h1 {font-size:14pt}
  #attachment-viewer.form-pdf-view #attachment-content:has(.form-pdf-page) {
    height:72dvh;display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto minmax(0,1fr) auto;place-items:stretch;overflow:hidden
  }
  .form-pdf-view .pdf-actions {justify-content:center;flex-wrap:wrap}
  .form-pdf-view .pdf-actions[hidden] {display:none}
  .form-pdf-view [role=status] {text-align:center}
  .form-pdf-page {overflow:auto;min-height:0}
  .form-pdf-page canvas {display:block;width:100%;height:100%;object-fit:contain;margin:auto}
  .form-pdf-page.pdf-fit-width canvas {height:auto}
}
.account-print-paper .account-paper {color:#151515;background:white;font:10pt/1.35 Arial,sans-serif}
.account-print-paper .account-paper table {width:100%;table-layout:fixed;border-collapse:collapse}
.account-print-paper .account-paper h1 {font-size:18pt}
.account-print-paper .account-paper .review-result {margin-top:5mm;break-inside:avoid}
.account-print-paper .account-paper .review-sum {margin:2mm 0}
.account-print-paper .account-paper .review-grand {margin-top:3mm;padding:3mm}
.account-print-paper .account-paper .review-grand strong {font-size:16pt}
@page accountingSheet {size:A4 portrait;margin:10mm}
@media print {
  #print .account-print-paper:not(:has(.service-quote-paper)) {page:accountingSheet}
  #print .account-print-paper section {break-before:auto;page-break-before:auto}
  #print .account-workbook {overflow:visible}
  html:has(#print .account-print-paper),body:has(#print .account-print-paper) {margin:0;background:#fff}
}


.account-workbook .account-signature {break-inside:avoid}

.intro-recipient{min-width:0;border:1px solid #d6e1df;border-radius:8px;padding:12px 15px 16px;margin:0}.intro-recipient legend{font-weight:700;padding:0 6px}.intro-recipient [hidden]{display:none}
