.hz-board {padding:0;background:#fff;}
#submodule-detail:has(>.hz-board) {padding:0;border:0;border-radius:0;box-shadow:none;}
#submodule-detail .hz-board>header {padding:14px 16px;border-bottom:1px solid #dce3e8;background:#f8fafb;}
#submodule-detail .hz-board>header h3 {font-size:16px;line-height:24px;}
#submodule-detail .hz-board button {min-height:34px;padding:6px 12px;border-radius:5px;font-size:13px;line-height:20px;white-space:nowrap;}
#submodule-detail .hz-board .hz-filters {margin:0;padding:12px 16px;gap:16px;align-items:center;border-bottom:1px solid #e2e7eb;}
#submodule-detail .hz-filters label {display:flex;align-items:center;gap:10px;margin:0;font-size:13px;}
#submodule-detail .hz-filters select {width:180px;min-width:0;height:34px;min-height:34px;margin:0;padding:5px 10px;font:inherit;border:1px solid #bdccd5;border-radius:4px;background:#fff;color:#25343e;}
#submodule-detail .hz-filters>span {margin-left:auto;font-size:13px;color:#687784;}
#submodule-detail .hz-board table.detail-table {border-collapse:collapse;border-spacing:0;border:0;border-radius:0;margin:0;min-width:920px;}
#submodule-detail .hz-board table.detail-table th,#submodule-detail .hz-board table.detail-table td {padding:11px 14px;border:0;border-bottom:1px solid #e2e7eb;text-align:left;font-size:13px;line-height:1.6;white-space:normal;vertical-align:middle;}
#submodule-detail .hz-board table.detail-table th {background:#f3f6f8;color:#52616f;font-weight:600;}
#submodule-detail .hz-board table.detail-table th:nth-child(1) {width:17%;}
#submodule-detail .hz-board table.detail-table th:nth-child(2) {width:14%;}
#submodule-detail .hz-board table.detail-table th:nth-child(3) {width:24%;}
#submodule-detail .hz-board table.detail-table th:nth-child(4) {width:9%;}
#submodule-detail .hz-board table.detail-table th:nth-child(5) {width:12%;}
#submodule-detail .hz-board table.detail-table th:nth-child(6) {width:15%;}
#submodule-detail .hz-board table.detail-table th:nth-child(7) {width:9%;}
#submodule-detail .hz-board table.detail-table td[colspan="7"] {height:140px;text-align:center;color:#73818d;background:#fff;}
@media(max-width:600px){#submodule-detail .hz-board>header{gap:10px;padding:12px;}#submodule-detail .hz-board .hz-filters{padding:12px;flex-wrap:wrap;}#submodule-detail .hz-filters select{width:150px;}}
.hz-board header,.hz-archive-band {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.hz-board header h3 {margin:0;font-size:20px;}
.hz-board header>div {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.hz-board header button {margin:0;}
.hz-board [data-hz-create] {background:#315f78;color:#fff;border-color:#315f78;}
.hz-board [data-hz-create]:hover {background:#274e64;}
.hz-filters {display:flex;align-items:center;gap:24px;margin:18px 0;}
.hz-filters select {margin-left:8px;min-width:140px;}
.hz-table-scroll {overflow:auto;}
.hz-board table {min-width:850px;table-layout:fixed;width:100%;}
.hz-board td {overflow-wrap:anywhere;}
.hz-stop {color:#ab343c;}
.hz-modal {width:min(1160px,96vw)!important;max-height:94vh;}
.hz-modal .upload-modal-body {overflow:auto;min-height:0;padding:20px;}
.hz-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:12px 0 20px;}
.hz-fields label {display:flex;flex-direction:column;gap:6px;min-width:0;}
.hz-modal input:not([type=file]),.hz-modal select,.hz-modal textarea,.hz-filters select {box-sizing:border-box;width:100%;min-height:38px;border:1px solid #bdccd5;border-radius:4px;padding:8px;background:#fff;color:#25343e;font:inherit;}
.hz-modal textarea {min-height:78px;resize:vertical;}
.hz-modal [readonly] {background:#f3f6f8!important;}
.hz-checks {border-collapse:collapse;width:100%;font-size:14px;}
.hz-checks th,.hz-checks td {border:1px solid #d4dee5;padding:8px;vertical-align:middle;}
.hz-checks th {background:#f3f6f8;text-align:left;}
.hz-checks select {min-width:100px;}
.hz-checks input {min-width:140px;}
.hz-modal details {margin-top:20px;}
.hz-modal summary {cursor:pointer;font-weight:600;margin-bottom:12px;}
.hz-photo-group {margin:18px 0;}
.hz-photo-group strong {display:block;margin-bottom:10px;}
.hz-photo-group small {color:#637583;margin-left:12px;}
.hz-photo-grid,.hz-read-photos {display:flex;gap:12px;flex-wrap:wrap;margin:10px 0;}
.hz-photo-grid>div {position:relative;width:140px;}
.hz-photo-grid img,.hz-read-photos img {width:140px;height:110px;object-fit:contain;background:#f4f7f9;}
.hz-photo-grid button[data-replace] {padding:0;border:1px solid #b8cbd5;background:white;}
.hz-photo-grid button[data-remove] {position:absolute;right:0;top:0;width:26px;height:26px;padding:0;color:#a52e37;background:white;}
.hz-photo-add {display:inline-flex;position:relative;padding:9px 15px;border:1px dashed #83a5b8;border-radius:4px;color:#2f6078;cursor:pointer;}
.hz-photo-add input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;}
.hz-notice {border:0;border-top:1px solid #d4dee5;margin-top:20px;padding:16px 0 0;}
.hz-notice[hidden] {display:none;}
.hz-modal [role=alert] {color:#a52e37;}
.hz-modal .upload-modal-actions button {background:#fff;color:#2f6078;border:1px solid #b5ccd9;}
.hz-modal .upload-modal-actions button[type=submit] {background:#2f6078;color:#fff;}
.hz-print-frame {width:100%;height:68vh;border:1px solid #d4dee5;background:white;}
.hz-archive-band {padding:18px 0;border-top:1px solid #d4dee5;}
@media(max-width:700px){.hz-fields{grid-template-columns:1fr}.hz-modal .upload-modal-body{padding:12px}.hz-checks{min-width:750px}.hz-modal .upload-modal-actions{flex-wrap:wrap}}

#hazard-modal .hz-inspection-modal {display:flex;flex-direction:column;box-sizing:border-box;width:min(1160px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);overflow:hidden;font-size:14px;line-height:1.4;}
#hazard-modal .hz-inspection-modal .upload-modal-head {flex:0 0 auto;padding:14px 18px;}
#hazard-modal .hz-inspection-modal .upload-modal-head h3 {margin:0;font-size:18px;}
#hazard-modal .hz-inspection-modal .upload-modal-body {flex:1 1 auto;min-height:0;max-height:none;padding:14px 18px;overflow:auto;scrollbar-gutter:stable;}
#hazard-modal .hz-inspection-modal .upload-modal-actions {position:static;flex:0 0 auto;margin:0;padding:10px 18px;gap:8px;}
#hz-create-form {margin:0;min-width:0;}
#hz-create-form .hz-fields {gap:10px 14px;margin:0 0 14px;}
#hz-create-form .hz-inspection-meta {grid-template-columns:repeat(3,minmax(0,1fr));}
#hz-create-form .hz-inspection-meta label:nth-child(4) {grid-column:span 2;}
#hz-create-form label {font-size:14px;line-height:1.4;gap:4px;}
#hz-create-form input:not([type=file]),#hz-create-form select {height:34px;min-height:34px;max-height:34px;min-width:0;margin:0;padding:5px 8px;font-size:14px;line-height:22px;}
#hz-create-form select {appearance:none;-webkit-appearance:none;padding-right:28px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%235d7381' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;}
#hz-create-form .hz-checks {table-layout:fixed;min-width:780px;}
#hz-create-form .hz-checks th,#hz-create-form .hz-checks td {padding:5px 8px;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.4;}
#hz-create-form .hz-checks th:nth-child(1) {width:90px;}
#hz-create-form .hz-checks th:nth-child(2) {width:23%;}
#hz-create-form .hz-checks th:nth-child(4) {width:108px;}
#hz-create-form .hz-checks th:nth-child(5) {width:19%;}
#hz-create-form .hz-check-group {background:#f8fafb;font-weight:500;}
#hz-create-form .hz-photo-group {margin:14px 0;}
#hz-create-form .hz-photo-grid:empty {margin:0;}
#hz-create-form .hz-notice {margin-top:14px;padding-top:12px;}
#hz-create-form .hz-notice .hz-fields label:last-child {grid-column:1/-1;}
@media(max-width:700px){
  #hazard-modal .hz-inspection-modal {max-height:calc(100dvh - 16px);}
  #hazard-modal .hz-inspection-modal .upload-modal-body {padding:12px;}
  #hz-create-form .hz-inspection-meta {grid-template-columns:repeat(2,minmax(0,1fr));}
  #hz-create-form .hz-inspection-meta label:nth-child(4) {grid-column:auto;}
}
@media(max-width:420px){#hz-create-form .hz-inspection-meta {grid-template-columns:1fr;}}
