.unit-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:22px 0}.unit-entry{display:block;position:relative;overflow:hidden;border-radius:18px;text-decoration:none;color:white;min-height:300px;background:#0b2c50}.unit-entry img{width:100%;height:310px;object-fit:cover;display:block}.unit-entry>div{padding:20px;background:#102e50}.unit-entry.safety>div{background:#17684f}.unit-entry h2{color:white;font-size:30px;margin:0}.unit-entry p{color:#e8f5f6;margin:6px 0 0}.unit-shared-links{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.unit-surface{direction:rtl;background:white;border:1px solid #d6e5e8;border-radius:14px;padding:24px;color:#153e53;font-size:18px;line-height:1.8;min-width:0}.unit-surface h1{font-size:30px;color:#0b3157}.unit-surface h2{font-size:23px;color:var(--brand,#165b78)}.unit-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.unit-section-grid article,.unit-surface fieldset,.unit-surface>article{padding:18px;border:1px solid #c9dde4;border-radius:10px;background:#f7fbfc}.unit-surface label{display:block;margin:12px 0;font-weight:bold}.unit-surface label.inline{display:inline-flex;gap:10px;align-items:center;margin-inline-end:20px;font-weight:normal}.unit-surface input[type=checkbox]{width:21px;height:21px;accent-color:var(--brand,#165b78);flex-shrink:0}.unit-surface button,.unit-surface .primary{background:var(--brand,#165b78);color:white;border-radius:8px;padding:10px 18px;text-decoration:none}.unit-surface button.secondary{background:#eaf3f5;color:var(--brand,#165b78)}.unit-surface input,.unit-surface select,.unit-surface textarea{font:inherit;max-width:100%;min-height:46px}.unit-surface table{font:inherit}.unit-surface td,.unit-surface th{white-space:normal;overflow-wrap:anywhere}.unit-surface dl{display:grid;grid-template-columns:minmax(110px,1fr) 3fr;gap:10px}.unit-surface dt{font-weight:bold}.unit-surface dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.unit-location-chain{display:flex;flex-wrap:wrap;gap:12px}.unit-location-chain select{flex:1;min-width:170px}.unit-map{display:block;background:#e8f2f3;border:1px solid #9ab9c4;width:100%;max-height:400px;touch-action:none}.unit-map circle{cursor:grab}.unit-surface details{border:1px solid #d5e4e8;padding:12px;margin:10px 0;border-radius:8px}.unit-surface summary{font-weight:bold;cursor:pointer}#unit-policy-summary{background:#eaf4f7;padding:14px;border-radius:8px}#unit-indicators-header{color:var(--brand,#165b78);padding:8px 14px;background:#eaf3f5;border-radius:8px;font-weight:bold}@media(max-width:700px){.unit-home-grid,.unit-section-grid{grid-template-columns:minmax(0,1fr)}.unit-entry img{height:240px}.unit-surface{padding:14px}.unit-surface h1{font-size:27px}.unit-surface dl{grid-template-columns:1fr}.unit-location-chain{display:block}.unit-location-chain select{margin:10px 0}.unit-surface .form-grid{grid-template-columns:1fr}}

#unit-facility-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #c9dde4;background:white;border-radius:9px;margin-bottom:15px;font-weight:bold}#unit-facility-picker select{width:auto;max-width:100%;min-width:200px}
.quick-work{max-width:760px;margin:auto}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.quick-actions a{display:flex;min-height:125px;align-items:center;justify-content:center;flex-direction:column;background:#0e3859;color:white;border-radius:16px;text-decoration:none;font-size:25px;padding:14px}.quick-actions a:nth-child(2){background:#176b62}.quick-actions [aria-disabled=true]{opacity:.55;cursor:default}.quick-actions small{font-size:16px}.quick-work form>label,.quick-work form>div{display:block;margin:18px 0}.quick-work input,.quick-work select,.quick-work textarea{width:100%;font-size:18px;min-height:48px}.quick-work textarea{min-height:100px}.quick-work button[type=submit]{width:100%;min-height:52px;background:#0e3859;color:white;font-size:21px}.quick-work .actions{display:flex;gap:12px}.quick-photo{border:1px solid #a8c8ca;border-radius:9px;padding:10px;cursor:pointer}.quick-photo input{font-size:14px;max-width:220px}.quick-work #quick-preview{max-width:100%;max-height:200px;object-fit:contain}.quick-work article{padding:14px;border-bottom:1px solid #d3e2e5}.quick-work #quick-draft{color:#52676c}.quick-work [hidden]{display:none!important}@media(max-width:440px){.quick-actions a{font-size:21px;min-height:110px}.quick-work .actions{flex-wrap:wrap}.quick-photo input{max-width:100%}}

.unit-location-chain>label{flex:1;min-width:180px;max-width:100%;margin:0}.unit-location-chain select{display:block;width:100%;background:#fff;color:#202528;white-space:normal}.unit-location-chain option{background:#fff;color:#202528}.unit-location-summary{background:#edf5f5;padding:10px;border-radius:7px;overflow-wrap:anywhere}@media(max-width:700px){.unit-location-chain>label{margin-block:12px;min-width:0}}

.geo-summary [data-coverage-state="covered"]{border:2px solid #168b45;background:#effaf3}.geo-summary [data-coverage-state="uncertain"]{border:2px solid #d42f36;background:#fff4f4}.geo-summary [data-coverage-state="off"]{border:1px solid #777;background:#fff}

.unit-section-grid>.security-section-card{display:block;padding:1.2rem;border:1px solid #cddcdd;border-radius:12px;background:white;color:var(--brand,#165b78);text-decoration:none}.security-section-card:hover,.security-section-card:focus-visible{outline:3px solid #168d91}

#reg-camera-input,#reg-pdf-input{display:none!important}

#register-camera-input,#register-pdf-input{display:none!important}.register-preview{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px;border:1px solid #cddcdd;margin-block:8px}.register-preview img{width:160px;max-width:100%;height:120px;object-fit:contain}.register-preview span{overflow-wrap:anywhere}

.security-evidence input[type=file]{display:none!important}.security-evidence-actions{display:flex;gap:8px;flex-wrap:wrap}.security-evidence-actions button{flex:1;min-width:135px}.quick-work .quick-photo{display:none!important}

.security-evidence{width:100%;flex-basis:100%}.security-evidence-actions{flex-wrap:nowrap}.security-evidence-actions button,#register-attachments>.actions button{min-width:0;flex:1 1 0;white-space:normal;min-height:52px}#register-attachments>.actions{display:flex;flex-wrap:nowrap;gap:8px}

.presence-totals,.presence-legend{display:flex;flex-wrap:wrap;gap:12px;margin-block:12px}.presence-totals>span{flex:1;min-width:130px;padding:12px;background:#edf5f8;border-radius:9px}.presence-totals strong{display:block;font-size:26px}.presence-legend span{display:inline-flex;align-items:center;gap:7px}.presence-legend span:before{content:'';display:inline-block;width:17px;height:17px;border-radius:50%;background:#777}.presence-legend [data-color=complete]:before{background:#168b45}.presence-legend [data-color=incomplete]:before{background:#d42f36}.presence-legend [data-color=unknown]:before{background:#c18b00}.presence-table{overflow-x:auto;width:100%}.presence-table table{min-width:850px;width:100%}.presence-table tr[data-coverage-state=unknown]{background:#fff8df}.presence-table tr[data-coverage-state=incomplete]{background:#fff0f0}.presence-table tr[data-coverage-state=complete]{background:#edf9f0}.presence-table tr[data-coverage-state=off]{background:#f0f0f0}#geo-point-detail:not(:empty){padding:16px;border:1px solid #b8d1dc;border-radius:10px;margin-block:12px}.security-presence .leaflet-popup-content{max-width:290px;max-height:370px;overflow:auto;direction:rtl}.security-presence .leaflet-popup-content dl{display:grid;grid-template-columns:1fr 1fr;font-size:14px;gap:6px}.security-presence .leaflet-popup-content h2{font-size:19px}@media(max-width:700px){.unit-home-grid>.unit-entry.safety,.presence-totals>span{min-width:110px}.security-presence .actions{flex-wrap:wrap}.security-presence .actions>*{max-width:100%}}

@media(max-width:700px){.presence-table table,.presence-table tbody,.presence-table tr,.presence-table td{min-width:0;max-width:100%;box-sizing:border-box}.presence-table table{width:100%}.presence-table td button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}}
