.field.full{grid-column:1/-1}.photo-picker{display:flex;align-items:center;gap:13px;border:1px dashed #cfd6e3;padding:12px;border-radius:9px;background:#fbfcfe}.photo-preview{width:58px;height:58px;border-radius:10px;object-fit:cover;background:#edf0f7;display:none}.photo-preview.visible{display:block}.photo-tools{display:flex;align-items:center;gap:9px}.photo-help{font-size:10px;color:#7a8599;margin-top:3px}.person-photo{width:34px;height:34px;border-radius:9px;object-fit:cover}.detail-photo{width:84px;height:84px;object-fit:cover;border-radius:13px;margin-bottom:17px;display:none}.detail-photo.visible{display:block}
@media(max-width:420px){.field.full{grid-column:auto}.photo-picker{align-items:flex-start;flex-direction:column}.photo-tools{width:100%}}
@media print{body{background:#fff;color:#111}.topbar,.offline,.actions,.demo-note,.stats,.panel-head,.table-footer,.toast,dialog{display:none!important}.layout{max-width:none;padding:0;margin:0}.page-head{margin:0 0 18px}.page-head h1{font-size:22px;color:#172956}.page-head p{display:none}.eyebrow{color:#555}.panel{border:0;box-shadow:none}.table-wrap{overflow:visible}table{min-width:0;width:100%}th{background:#f0f2f6!important;color:#222;font-size:9px;padding:8px 7px}td{font-size:10px;padding:8px 7px;border-bottom:1px solid #ddd}.person-avatar{display:none}.person-meta{color:#555}.unit-pill,.status-pill{background:transparent!important;color:#222;padding:0}.row-action{display:none}}

.site-footer{border-top:1px solid #e4e8ef;margin:0 auto;max-width:1390px;padding:15px clamp(18px,4vw,58px) 22px;color:#7b8597}.site-footer-inner{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px}.site-footer .footer-link{color:#263a79;text-decoration:none;font-size:10px}.site-footer .footer-name{font-size:10px;color:#7b8597}@media print{.site-footer{display:none!important}}

/* Authenticated employee portal */
body.auth-gated> :not(#offline):not(#authOverlay){visibility:hidden}
.auth-overlay{display:none;position:fixed;inset:0;z-index:1000;background:linear-gradient(145deg,#101c3d,#192b59 55%,#263a79);align-items:center;justify-content:center;padding:20px}
.auth-overlay.active{display:flex}
.auth-card{width:min(440px,100%);background:#fff;border-radius:18px;padding:clamp(24px,5vw,40px);box-shadow:0 24px 80px #08142c70}
.auth-logo{display:block;width:175px;height:auto;max-height:58px;object-fit:contain;margin:0 auto 28px}
.auth-kicker{font-size:11px;letter-spacing:.13em;color:#d52938;font-weight:800}
.auth-card h1{margin:7px 0;color:#192b59;font-size:27px;letter-spacing:-.03em}
.auth-card p{color:#68738a;font-size:14px;line-height:1.5}
.auth-form{display:grid;gap:14px;margin-top:18px}
.auth-form label,.user-create-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#34415b}
.auth-form input,.user-create-form input,.user-create-form select{width:100%;border:1px solid #dfe4ec;border-radius:8px;padding:12px;font-size:15px;color:#17213a;background:#fff}
.auth-form button{justify-content:center;width:100%;margin-top:4px}
.auth-form button+button{margin-top:0}
.auth-error{min-height:1em;color:#a3343e!important;margin:0!important}
.auth-help{font-size:12px!important;margin:0!important}
.users-modal{width:min(1050px,calc(100vw - 24px));max-height:92vh;overflow:auto}
.users-content{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(350px,1.2fr);gap:16px;padding:18px}
.user-create-card,.user-list-card{border:1px solid #e4e8ef;border-radius:12px;padding:18px;min-width:0}
.user-create-card h3,.user-list-card h3{margin:0 0 14px;color:#192b59}
.user-create-form{display:grid;gap:13px}
.users-note{font-size:12px!important;margin:0}
.users-table-wrap{overflow:auto}
.users-table{min-width:520px}
.users-table td{vertical-align:middle}
.users-table td small{display:block;color:#68738a;margin-top:3px}
.users-table select{max-width:180px;padding:7px;border:1px solid #dfe4ec;border-radius:7px;background:#fff}
.user-active{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
.users-empty{color:#68738a;padding:15px}
.temp-password-panel{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 18px 18px;padding:16px;border:1px solid #e5c879;border-radius:10px;background:#fff9e9}
.temp-password-panel p{margin:4px 0 8px;color:#765313;font-size:12px}
.temp-password-panel code{display:inline-block;overflow-wrap:anywhere;padding:8px 10px;background:#fff;border:1px solid #eadba8;border-radius:6px;font-size:15px;font-weight:700}
.temp-actions{display:flex;gap:8px;flex-wrap:wrap}
.person-photo{width:34px;height:34px;object-fit:cover;border-radius:9px}
.detail-photo{display:block;width:110px;height:110px;object-fit:cover;border-radius:12px;margin:0 auto 20px}
.photo-picker{border:1px solid #dfe4ec;border-radius:9px;padding:12px;display:flex;gap:14px;align-items:center}
.photo-preview{display:none;width:84px;height:84px;object-fit:cover;border-radius:10px;background:#f0f2f7}
.photo-preview.visible{display:block}
.photo-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:1;min-width:0}
.photo-help{font-size:11px;color:#68738a;margin-top:5px}
@media(max-width:760px){.user-copy{display:none}.user-area{gap:7px}.user-area .btn{padding:8px 10px}.users-content{grid-template-columns:1fr}.temp-password-panel{align-items:flex-start;flex-direction:column}.photo-picker{align-items:flex-start;flex-direction:column}.photo-tools{width:100%;align-items:flex-start;flex-direction:column}}

.signed-out .layout,.signed-out .site-footer{visibility:hidden}.signed-out .topbar .user-area{visibility:hidden}.form-error{color:#a3343e;font-size:12px;min-height:1em}.temp-password{padding:12px;background:#fff8df;border:1px solid #eadba8;border-radius:8px;overflow-wrap:anywhere;margin-bottom:12px}.temp-password code{display:block;font-weight:700;margin-top:6px}
