:root{
  --bg:#ECEEE9; --surface:#FFFFFF; --ink:#1F2D2B; --ink-soft:#5B6A63;
  --line:#C7CFC5; --teal:#1F6F5C; --red:#B5442E;
  --shadow: 0 1px 0 rgba(31,45,43,0.04), 0 8px 24px rgba(31,45,43,0.06);
}
*{box-sizing:border-box;}
body{margin:0; background:var(--bg); color:var(--ink); font-family:'Noto Sans KR',sans-serif; -webkit-font-smoothing:antialiased;}
.app{max-width:900px; margin:0 auto; padding:28px 20px 80px;}
.wordmark{display:flex; align-items:center; justify-content:space-between; border-bottom:3px solid var(--ink); padding-bottom:14px; margin-bottom:26px; flex-wrap:wrap; gap:8px;}
.wordmark h1{font-weight:900; font-size:22px; margin:0;}
.wordmark h1 span.dot{color:var(--teal);}
.wordmark h1 .sub{font-weight:400; font-size:13px; margin-left:8px; color:var(--ink-soft);}
.meta{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink-soft);}
.card{background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:26px; box-shadow:var(--shadow); margin-bottom:18px;}
.back-link{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-soft); cursor:pointer; display:inline-block; margin-bottom:16px; text-decoration:none;}
.back-link:hover{color:var(--ink);}
label{display:block; font-size:13px; font-weight:500; margin-bottom:6px;}
input[type=text],input[type=date],input[type=password],input[type=file],select,textarea{
  width:100%; padding:10px 11px; border:1px solid var(--line); border-radius:4px;
  font-family:'Noto Sans KR',sans-serif; font-size:14px; background:#FAFAF7; color:var(--ink); margin-bottom:16px;}
textarea{resize:vertical; min-height:70px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:600px){.field-row{grid-template-columns:1fr;}}
.section-num{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--teal); font-weight:600; margin-bottom:2px;}
.section-title{font-size:16px; font-weight:700; margin:0 0 14px;}
button.primary{background:var(--ink); color:#fff; border:none; padding:12px 20px; border-radius:4px; font-weight:700; font-size:14px; cursor:pointer; font-family:'Noto Sans KR',sans-serif;}
button.primary:hover{background:#111;}
button.ghost{background:transparent; color:var(--ink); border:1px solid var(--line); padding:11px 18px; border-radius:4px; font-weight:500; font-size:13.5px; cursor:pointer; font-family:'Noto Sans KR',sans-serif;}
button.ghost:hover{border-color:var(--ink);}
.check-item{display:grid; grid-template-columns:1fr 160px; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line);}
.check-item:last-child{border-bottom:none;}
@media(max-width:560px){.check-item{grid-template-columns:1fr;}}
.status-select{display:flex; gap:6px;}
.status-btn{flex:1; text-align:center; padding:7px 4px; font-size:12px; border:1px solid var(--line); border-radius:4px; cursor:pointer; background:#FAFAF7; color:var(--ink-soft);}
.status-btn.active-good{background:var(--teal); border-color:var(--teal); color:#fff;}
.status-btn.active-bad{background:var(--red); border-color:var(--red); color:#fff;}
.status-btn.active-na{background:var(--ink-soft); border-color:var(--ink-soft); color:#fff;}
.toolbar{display:flex; gap:10px; margin-bottom:18px; flex-wrap:wrap; align-items:center;}
.toolbar .count{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-soft); margin-left:auto;}
.report-row{display:grid; grid-template-columns:56px 1fr 110px 90px 90px; gap:12px; align-items:center; padding:14px 8px; border-bottom:1px solid var(--line);}
.report-row:last-child{border-bottom:none;}
@media(max-width:700px){.report-row{grid-template-columns:48px 1fr 90px;}
  .report-row .row-date,.report-row .row-status{display:none;}}
.stamp{width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:10px; border:2px solid; transform:rotate(-8deg); text-align:center; line-height:1.1;}
.stamp.pass{border-color:var(--teal); color:var(--teal);}
.stamp.fail{border-color:var(--red); color:var(--red);}
.row-title{font-size:14px; font-weight:600;}
.row-sub{font-size:11.5px; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace; margin-top:2px;}
.row-date{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-soft);}
.row-status{font-size:12px; font-weight:600;}
.row-status.pass{color:var(--teal);}
.row-status.fail{color:var(--red);}
.row-dl{font-size:12px; color:var(--teal); text-decoration:underline; text-align:right; cursor:pointer; font-weight:600;}
.empty{padding:40px 10px; text-align:center; color:var(--ink-soft); font-size:13.5px;}
.error-msg{color:var(--red); font-size:13px; margin:-8px 0 14px; min-height:16px;}
.note-banner{font-size:11.5px; color:var(--ink-soft); background:#F7F8F4; border:1px dashed var(--line); border-radius:4px; padding:10px 12px; margin-bottom:18px; line-height:1.6;}

/* (B-40-R28) 날짜 칸 최소 폭 — 한국어 표시(2026. 10. 20.)와 달력 아이콘이 좁은 칸에서 겹치거나 잘리지 않게(예방). 사업장 등록의 달력 아이콘 칸(.date-pick)은 제외 */
input[type=date]:not(.date-pick){min-width:150px;}
