/* 동양네트웍스 통합관리시스템 — 화면 디자인 */
:root {
  /* 디자인 정리 (2026-11-23): 회사 로고의 남색 + 안전 표지의 노랑을 한 군데(선택 표시·처리할 일)에만 */
  --side: #1D3461;
  --side-2: #25407A;
  --side-line: #2C4A86;
  --side-text: #D9E1F0;
  --side-dim: #8FA3C8;
  --navy: #1D3461;
  --navy-2: #16294D;
  --blue: #23509E;
  --blue-soft: #EAF0FA;
  --signal: #F2B705;
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --text: #1A2230;
  --muted: #687385;
  --border: #E0E4EA;
  --line-soft: #EDF0F4;
  --red: #C23B22;
  --red-soft: #FCEDEA;
  --amber: #9A6500;
  --amber-soft: #FFF5DA;
  --green: #2D7A4E;
  --green-soft: #E7F4EC;
  --radius: 10px;
  --shadow: none;
  --font: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.boot { padding: 40px; color: var(--muted); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-folder { fill: #F5B638; stroke: #D99A1E; stroke-width: 1.2; }
.ic-star { stroke-width: 1.6; }

/* ---------- 틀 ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; }
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-text b { display: block; color: #fff; font-size: 15.5px; letter-spacing: -.01em; }
.brand-text small { color: var(--side-dim); font-size: 10.5px; letter-spacing: .08em; font-weight: 600; }
.side-search-row { display: flex; margin: 2px 14px 10px; }
.side-search { flex: 1; min-width: 0; border: 1px solid var(--side-line); background: #fff; color: #1E2430; border-radius: 8px 0 0 8px; padding: 7px 10px; font-size: 13.5px; }
.side-search-btn { display: flex; align-items: center; justify-content: center; width: 38px; background: var(--blue); color: #fff; border-radius: 0 8px 8px 0; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 14px; border-bottom: 1px solid var(--side-line); }
.side-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--side-dim); padding: 8px 0; cursor: pointer; display: flex; justify-content: center; }
.side-tabs button.on { color: #fff; border-bottom-color: var(--blue); }
.side-body { flex: 1; overflow-y: auto; padding: 10px 8px; }
.side-empty { color: var(--side-dim); font-size: 13px; padding: 14px 12px; }
.tree .branch { width: 100%; display: flex; align-items: center; gap: 7px; background: none; border: 0; color: #E6ECF7; font-weight: 600; font-size: 14px; padding: 7px 8px; border-radius: 7px; cursor: pointer; text-align: left; }
.tree .branch:hover { background: var(--side-2); }
.tree .caret { width: 10px; color: var(--side-dim); font-size: 11px; }
.soon-tag { margin-left: auto; font-size: 10.5px; font-weight: 500; border: 1px solid #5872A8; border-radius: 5px; padding: 0 5px; color: #B5C4E0; }
.leaves { margin: 2px 0 6px 18px; border-left: 1px dashed #5872A8; padding-left: 6px; }
.leaf { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; color: var(--side-text); font-size: 13.5px; }
.leaf:hover { background: var(--side-2); color: #fff; }
.leaf.on { background: var(--blue); color: #fff; font-weight: 600; }
.leaf.soon { color: var(--side-dim); }
.leaf .ic-page { opacity: .8; }
.artifacts { border-top: 1px solid var(--side-line); padding: 10px 12px 14px; }
.art-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--side-text); margin-bottom: 6px; }
.art { display: flex; align-items: center; gap: 7px; background: var(--side-2); border: 1px solid var(--side-line); border-radius: 8px; padding: 6px 9px; margin-top: 6px; color: #DDE5F3; font-size: 12.5px; }
.art span { flex: 1; }
.art b { font-size: 10.5px; color: #C2D0EC; border: 1px solid #5872A8; border-radius: 4px; padding: 0 4px; }
.art:hover { border-color: var(--blue); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid var(--border); padding: 10px 20px; position: sticky; top: 0; z-index: 20; }
.burger { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }
.top-mobile-brand { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.timer { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; color: #374151; }
.timer.warn { border-color: #FCA5A5; color: var(--red); background: var(--red-soft); }
.me { display: flex; align-items: center; gap: 7px; color: var(--text); padding: 5px 10px; border-radius: 8px; }
.me:hover { background: #F3F5F9; }
.me-name { font-weight: 700; }
.me-role { font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.logout { border: 1px solid #F3B4B4; background: #fff; color: var(--red); border-radius: 8px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.logout:hover { background: var(--red-soft); }

.tabstrip { display: flex; align-items: flex-end; gap: 4px; background: #E9EDF4; padding: 8px 20px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { display: flex; align-items: center; gap: 8px; background: #DDE3EE; color: #4B5563; border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.tab.on { background: var(--bg); color: var(--text); font-weight: 700; }
.tab.home { padding: 7px 10px; }
.tab-x { background: none; border: 0; padding: 0; display: flex; cursor: pointer; color: #9CA3AF; }
.tab-x:hover { color: var(--red); }

.page { padding: 20px 24px 40px; max-width: 1360px; width: 100%; }
.phead { margin-bottom: 16px; }
.phead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ptitle { display: flex; align-items: center; gap: 10px; }
.ptitle-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--side); color: #fff; display: flex; align-items: center; justify-content: center; }
.ptitle h1 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.fav { background: none; border: 0; cursor: pointer; color: #C2C9D6; display: flex; padding: 2px; }
.fav.on { color: #F5B638; }
.fav.on .ic { fill: #F5B638; }
.pactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.updated { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-right: 4px; }
.crumb { margin-top: 6px; font-size: 12.5px; color: #6B7280; font-weight: 600; }
.crumb-desc { font-weight: 400; color: #8A93A3; }
.bottom-nav, .scrim { display: none; }

@media (max-width: 899px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.show { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 25; }
  .burger { display: flex; }
  .top { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .top-mobile-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
  .top-mobile-brand img { height: 22px; }
  .me-name, .me-role, .logout, .updated { display: none; }
  .timer { padding: 5px 8px; font-size: 13px; }
  .tabstrip { display: none; }
  .page { padding: 14px 12px 96px; }
  .ptitle h1 { font-size: 18px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; color: var(--muted); font-size: 11.5px; }
  .bottom-nav a.on { color: var(--blue); font-weight: 700; }
}

/* ---------- 카드 · 지표 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.narrow { max-width: 560px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpi-row, .kpi-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpi-row.three { grid-template-columns: 1fr; } .kpi-main { font-size: 21px; } }
.kpi-card { border-radius: 12px; padding: 14px 16px; border: 1px solid; }
.kpi-card.blue { background: #EEF4FF; border-color: #C7D8FE; }
.kpi-card.green { background: #ECFBF3; border-color: #B9EBCF; }
.kpi-card.yellow { background: #FFF8E7; border-color: #F6DE9C; }
.kpi-card.purple { background: #F5F1FF; border-color: #DCCFFD; }
.kpi-card.gray { background: #F7F8FA; border-color: var(--border); }
.kpi-label { font-size: 13px; font-weight: 700; color: #3B4556; }
.kpi-card.blue .kpi-label { color: #1D4ED8; }
.kpi-card.green .kpi-label { color: #047857; }
.kpi-card.yellow .kpi-label { color: #A16207; }
.kpi-card.purple .kpi-label { color: #6D28D9; }
.kpi-main { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.kpi-sub { font-size: 13px; font-weight: 600; color: #6B7280; letter-spacing: 0; }
.kpi-pending { color: #9AA3B2; font-size: 14px; margin-top: 8px; }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1000px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { padding: 14px 16px 12px; }
.chart-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .axis { font-size: 11px; fill: #6B7280; }
svg.chart .lg { font-size: 12.5px; fill: #374151; }
svg.chart .lg-num { font-size: 12.5px; fill: #111827; font-weight: 700; }
svg.chart .donut-num { font-size: 24px; font-weight: 800; fill: #111827; }
.legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #374151; margin-top: 2px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.next-box { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.next-box .btn { margin-left: auto; }
.soon-box { text-align: center; padding: 48px 20px; }
.soon-box h3 { margin: 10px 0 6px; }
.soon-badge { display: inline-block; background: var(--blue-soft); color: var(--blue); font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: 13px; }

.section-title { font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.toolbar { margin-bottom: 14px; }

/* ---------- 버튼 · 입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 36px; color: #1F2937; }
.btn:hover { border-color: #BFC8D6; background: #FAFBFC; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1D4FD7; }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #374151; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #CBD2DD; border-radius: 8px; padding: 9px 11px; background: #fff; min-height: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.error { color: var(--red); font-size: 13.5px; min-height: 20px; }
.search { border: 1px solid #CBD2DD; border-radius: 8px; padding: 7px 12px; min-width: 200px; background: #fff; min-height: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--side); color: #fff; border-color: var(--side); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 8px; background: #EEF1F6; color: #4B5563; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }

/* 표 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12.5px; color: #4B5563; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #F6F8FB; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.tbl tr:hover td { background: #FAFBFD; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off td { color: #9AA3B2; }
.tbl .actions { text-align: right; white-space: nowrap; }

/* 팀 카드 */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.team-card { padding: 15px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 10px; }
.team-card:hover { border-color: #9DB7F5; box-shadow: 0 4px 14px rgba(37, 99, 235, .08); }
.team-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.team-card .name { font-size: 16px; font-weight: 800; }
.team-card .region { font-size: 12.5px; color: var(--muted); }
.team-card .people { font-size: 13px; color: #374151; }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.status div { background: #F6F7FA; border-radius: 8px; padding: 6px 9px; font-size: 12px; }
.status b { display: block; font-size: 13px; }
.status .wait b { color: #9AA3B2; font-weight: 500; }

/* 모달 */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal h2 { margin: 0; font-size: 17px; padding: 18px 20px 0; }
.modal .body { padding: 14px 20px 4px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.secret { font-family: Consolas, monospace; font-size: 20px; background: var(--amber-soft); border-radius: 8px; padding: 10px 14px; letter-spacing: .05em; text-align: center; margin: 10px 0; }

/* 로그인 */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at top, #23365F 0%, #14213D 60%); }
.login { width: 100%; max-width: 380px; background: #1A2A4C; border: 1px solid #2E4270; border-radius: 16px; padding: 28px 26px 22px; color: #E6ECF7; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-logo { width: 170px; margin: 4px auto 8px; }
.login-logo img { width: 100%; display: block; }
.login h2 { text-align: center; font-size: 18px; margin: 10px 0 16px; color: #fff; }
.login .field label { color: #C7D2E6; }
.login .field input { background: #fff; color: #1E2430; border-color: #2A3D66; }
.login .error { color: #FCA5A5; }
.login-help { color: #8FA0C2; font-size: 12.5px; text-align: center; margin: 12px 0 0; }
.login-foot { color: #6F82A8; font-size: 12px; margin-top: 18px; }

.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.notice { background: var(--blue-soft); color: #1E4FB5; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; }

/* ---------- 공통 보강 (2026-11) ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .kpi-row { margin-bottom: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1000px) { .grid.two { grid-template-columns: 1fr; } }
.card-title { margin: 0; font-size: 15px; font-weight: 700; }
.grow { flex: 1; }
.row.tight { gap: 6px; flex-wrap: nowrap; }
.toolbar.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.filters input, .filters select, .card-pad select, .pactions select { border: 1px solid #CBD2DD; border-radius: 8px; padding: 6px 10px; background: #fff; min-height: 36px; }
.subtabs { display: flex; gap: 4px; background: #E9EDF4; padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.subtab { border: 0; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: #4B5563; }
.subtab.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .wrap, .wrap { white-space: normal; word-break: keep-all; }
.strong { font-weight: 700; }
.warn-text { color: var(--amber); }
.error-box { border-color: #F3B4B4; background: #FFF7F7; }
.error-box p { margin: 6px 0 0; color: var(--red); }
.field.full { grid-column: 1 / -1; }
.meter { position: relative; min-width: 110px; height: 20px; background: #EEF1F6; border-radius: 6px; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: #9BD3B8; }
.meter.over i { background: #F7A8A8; }
.meter span { position: relative; font-size: 12px; font-weight: 700; padding-left: 8px; line-height: 20px; }

/* 개인 정보 */
.person-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--side); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex: none; }
.person-name { font-size: 19px; font-weight: 800; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info { background: #F6F8FB; border-radius: 9px; padding: 8px 12px; min-width: 0; }
.info span { display: block; font-size: 12px; color: var(--muted); }
.info b { font-size: 14px; word-break: break-all; }
.info.wide { grid-column: span 2; }

/* 안전서류 달력 */
.cal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav select { border: 1px solid #CBD2DD; border-radius: 8px; padding: 6px 8px; min-height: 36px; background: #fff; }
.cal-title { font-size: 18px; min-width: 120px; text-align: center; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
@media (max-width: 1200px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-aside { display: flex; flex-direction: column; gap: 12px; }
.cal-side .card-title { margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { text-align: center; font-size: 12.5px; font-weight: 700; padding: 8px 0; background: #F6F8FB; border-bottom: 1px solid var(--border); }
.cal-dow.sun, .cal-cell.sun .cal-day b, .agenda-date.sun { color: #DC2626; }
.cal-dow.sat, .cal-cell.sat .cal-day b, .agenda-date.sat { color: #2563EB; }
.cal-cell { min-height: 108px; border-right: 1px solid #EEF1F5; border-bottom: 1px solid #EEF1F5; padding: 5px 5px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.empty { background: #FAFBFC; }
.cal-cell.today { background: #FFFBEA; box-shadow: inset 0 0 0 2px #F5C842; }
.cal-day { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.hol { font-size: 10.5px; color: #DC2626; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-task { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px; font-size: 11.5px; line-height: 1.3; border-radius: 5px; padding: 2px 4px; border-left: 3px solid; background: #F3F6FB; }
.chip-task span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chip-task small { flex-basis: 100%; font-size: 10px; color: #92400E; font-weight: 700; padding-left: 15px; }
.chip-task .done-box { margin: 1px 0 0; width: 12px; height: 12px; flex: none; }
.chip-task.done, .task.done .task-text { text-decoration: line-through; opacity: .55; }
.c-safe { border-color: #2563EB; }
.c-env { border-color: #10B981; }
.c-eth { border-color: #8B5CF6; }
.c-sk { border-color: #F97316; }
.chip-task.c-safe { background: #EEF4FF; } .chip-task.c-env { background: #ECFBF3; } .chip-task.c-eth { background: #F5F1FF; } .chip-task.c-sk { background: #FFF3E8; }
.chip.c-safe.on { background: #2563EB; border-color: #2563EB; } .chip.c-env.on { background: #10B981; border-color: #10B981; }
.chip.c-eth.on { background: #8B5CF6; border-color: #8B5CF6; } .chip.c-sk.on { background: #F97316; border-color: #F97316; }
.cat { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 0 6px; color: #fff; flex: none; }
.cat.c-safe { background: #2563EB; } .cat.c-env { background: #10B981; } .cat.c-eth { background: #8B5CF6; } .cat.c-sk { background: #F97316; }
.qtag { display: inline-block; font-size: 11px; font-weight: 700; color: #92400E; background: #FEF3C7; border-radius: 5px; padding: 0 6px; white-space: nowrap; }
.task { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; border-bottom: 1px dashed #EEF1F5; font-size: 13.5px; flex-wrap: wrap; }
.task:last-child { border-bottom: 0; }
.task-text { flex: 1; min-width: 140px; word-break: keep-all; }
.task .when { font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.task .done-box { margin-top: 3px; }
.done-mark { color: var(--green); font-weight: 800; }
.annual { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 5px 0; }
.cal-agenda { display: none; }
@media (max-width: 899px) {
  .cal-grid { display: none; }
  .cal-agenda { display: block; padding: 4px 12px; }
  .agenda-day { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF1F5; }
  .agenda-day:last-child { border-bottom: 0; }
  .agenda-day.today { background: #FFFBEA; margin: 0 -12px; padding: 10px 12px; }
  .agenda-date { width: 44px; flex: none; text-align: center; display: flex; flex-direction: column; }
  .agenda-date b { font-size: 20px; line-height: 1.1; }
  .agenda-date span { font-size: 12px; }
  .agenda-date small { font-size: 10px; color: #DC2626; }
  .agenda-tasks { flex: 1; min-width: 0; }
  .cal-title { min-width: 0; }
  .search { min-width: 0; width: 100%; }
}

/* 하자 회신 */
.dropzone { border: 2px dashed #9DB7F5; background: #F5F8FF; border-radius: 14px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; }
.dropzone.over { background: #E3ECFF; border-color: var(--blue); }
.drop-ic { font-size: 30px; color: var(--blue); }
.hidden-file { display: none; }
.steps ol { margin: 8px 0; padding-left: 20px; }
.steps li { margin: 3px 0; }

/* ---------- 인쇄 (재직증명서 · 지급대장 · 사용내역서) ---------- */
.print-root { position: fixed; inset: 0; z-index: 70; background: #525A66; overflow: auto; padding: 0 0 40px; }
.print-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.a4 { width: 210mm; min-height: 297mm; margin: 20px auto 0; background: #fff; padding: 22mm 20mm; box-shadow: 0 6px 24px rgba(0,0,0,.3); color: #111; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
@media (max-width: 899px) { .a4 { width: auto; min-height: 0; margin: 12px; padding: 18px 14px; } }
.cert-no { font-size: 11pt; }
.cert-title { text-align: center; font-size: 26pt; letter-spacing: .3em; margin: 18mm 0 14mm; font-weight: 800; }
.cert-sec { font-size: 12pt; font-weight: 700; margin: 8mm 0 3mm; }
.cert-tbl { width: 100%; border-collapse: collapse; font-size: 12pt; }
.cert-tbl th, .cert-tbl td { border: 1px solid #333; padding: 3.5mm 3mm; text-align: left; }
.cert-tbl th { width: 26mm; background: #F2F2F2; font-weight: 700; white-space: pre; text-align: center; }
.cert-body { text-align: center; font-size: 14pt; margin: 22mm 0 10mm; }
.cert-date { text-align: center; font-size: 13pt; margin-bottom: 16mm; }
.cert-company { display: flex; justify-content: center; }
.cert-company table { font-size: 12.5pt; }
.cert-company th { text-align: left; padding: 1.5mm 6mm 1.5mm 0; white-space: pre; font-weight: 700; }
.cert-company td { padding: 1.5mm 0; }
.seal { margin-left: 10mm; color: #777; }
.ledger-title { text-align: center; font-size: 20pt; margin: 0 0 8mm; letter-spacing: .1em; }
.ledger-sub { font-size: 13pt; margin: 8mm 0 3mm; }
.ledger-meta { display: flex; gap: 10mm; justify-content: space-between; font-size: 10.5pt; margin-bottom: 3mm; }
.ledger-tbl { width: 100%; border-collapse: collapse; font-size: 10pt; }
.ledger-tbl th, .ledger-tbl td { border: 1px solid #444; padding: 2mm 2mm; text-align: center; }
.ledger-tbl th { background: #EEE; }
.ledger-tbl td.left { text-align: left; }
.ledger-tbl td.num { text-align: right; }
.ledger-tbl tr.total td { font-weight: 700; background: #F6F6F6; }
.ledger-tbl td:last-child:empty { min-width: 28mm; height: 8mm; }
.ledger-sign { display: flex; justify-content: flex-end; gap: 6mm; margin-top: 8mm; font-size: 11pt; }
@media print {
  @page { size: A4; margin: 0; }
  body.printing { background: #fff; }
  body.printing > *:not(.print-root) { display: none !important; }
  .print-root { position: static; background: none; padding: 0; overflow: visible; }
  .no-print { display: none !important; }
  .a4 { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  .a4:last-child { page-break-after: auto; break-after: auto; }
}

/* 휴대폰: 표는 글자를 세로로 쪼개지 않고 옆으로 밀어서 보기 */
@media (max-width: 899px) {
  .tbl td { white-space: nowrap; }
  .tbl td .wrap, .tbl td.wrap { white-space: normal; min-width: 180px; }
  .tbl th, .tbl td { padding: 9px 10px; }
}

/* ---------- 2026-11-23 보강 ---------- */
.modal.wide { max-width: 760px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.item-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #D5DCE6; background: #fff; border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 13px; cursor: pointer; }
.item-chip b { background: #EEF2F8; border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.item-chip.on { border-color: var(--blue); background: #EEF4FF; }
.item-chip.on b { background: var(--blue); color: #fff; }
.badge.kind-summer { background: #FFF1E6; color: #C2410C; }
.badge.kind-winter { background: #E8F1FF; color: #1D4ED8; }
.badge.kind-special { background: #F3E8FF; color: #7E22CE; }
.badge.kind-req { background: #F1F5F9; color: #334155; }
.file-btn { padding: 3px 8px; min-height: 28px; font-size: 12.5px; }
.clip { border: 0; background: #EEF2F8; border-radius: 5px; font-size: 11px; padding: 0 5px; cursor: pointer; flex: none; }
.doc-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.file-list .file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid #EEF1F5; align-items: center; }
.file-list .file-row .muted { grid-column: 1; }
.file-list .file-row .row { grid-column: 2; grid-row: 1 / span 2; }
.file-row.latest .file-name a { font-weight: 700; }
.file-name { display: flex; gap: 6px; align-items: center; word-break: break-all; }
.small-drop { padding: 18px 12px; margin-top: 12px; }
.task.editable, .chip-task.editable { cursor: pointer; }
.task.editable:hover { background: #F6F8FB; }
.chip-task.editable:hover { filter: brightness(.97); }
.cal-day { position: relative; }
.cal-add { margin-left: auto; border: 0; background: none; color: #9AA3B2; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: 0; }
.cal-cell:hover .cal-add, .cal-add:focus { opacity: 1; }
@media (hover: none) { .cal-add { opacity: .6; } }
.chip-n { font-size: 11.5px; opacity: .75; }
.help-box { background: #F7FAFF; border-color: #D6E4FF; }
.help-toggle { border: 0; background: none; padding: 0; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); }
.help-box.closed .help-body { display: none; }
.help-body p { margin: 8px 0; font-size: 13.5px; }
.help-body ul { margin: 6px 0; padding-left: 20px; font-size: 13.5px; }
.help-body li { margin: 3px 0; }
.ppe-line { font-size: 12.5px; margin: 6px 0 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tbl.matrix td, .tbl.matrix th { padding: 7px 8px; font-size: 12.5px; white-space: nowrap; }
.tbl.matrix tr.total td { font-weight: 700; background: #F6F8FB; }
.ledger-tbl.small-print { font-size: 7.5pt; }
.ledger-tbl.small-print th, .ledger-tbl.small-print td { padding: 1mm 1mm; }
.print-btn { white-space: nowrap; }
@media (max-width: 899px) { .print-btn { display: none; } .updated { display: none; } }

/* 화면 그대로 인쇄·PDF (메뉴·버튼은 빼고 내용만) */
@media print {
  body:not(.printing) .side, body:not(.printing) .scrim, body:not(.printing) header, body:not(.printing) .topbar,
  body:not(.printing) .tabstrip, body:not(.printing) .tab-strip, body:not(.printing) .bottom-nav,
  body:not(.printing) .pactions, body:not(.printing) .no-print, body:not(.printing) .fav, body:not(.printing) .modal-back,
  body:not(.printing) .toast, body:not(.printing) .cal-add, body:not(.printing) .file-btn, body:not(.printing) .help-toggle { display: none !important; }
  body:not(.printing) .shell { display: block !important; }
  body:not(.printing) .main, body:not(.printing) main { margin: 0 !important; padding: 0 !important; width: auto !important; }
  body:not(.printing) .card { box-shadow: none !important; break-inside: avoid; }
  body:not(.printing) .table-wrap { overflow: visible !important; }
  body:not(.printing) .tbl td { white-space: normal !important; }
  body:not(.printing) { background: #fff !important; }
  body:not(.printing) .page { padding: 10mm 10mm !important; }
}
.no-file { color: var(--text); text-decoration: none; }

/* ---------- 메시지 · 공지 · 시스템관리 (2026-11-23) ---------- */
.mail-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); border: 1px solid var(--border); background: #fff; }
.mail-btn:hover { background: #F6F8FB; }
.mail-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mail-badge.nav { top: 2px; right: calc(50% - 22px); }
.mail-badge.hide { display: none; }
.bottom-nav a { position: relative; }
.notice-bar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid #C9DAFF; background: #EEF4FF; font-size: 13.5px; }
.notice.warn { background: #FFF8E6; border-color: #F5D98A; }
.notice.urgent { background: #FFF0F0; border-color: #F3B4B4; }
.notice > b { flex: none; font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--blue); color: #fff; }
.notice.warn > b { background: #D97706; } .notice.urgent > b { background: #DC2626; }
.notice-title { font-weight: 700; }
.notice-body { color: #4B5563; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-x { margin-left: auto; border: 0; background: none; cursor: pointer; color: #6B7280; font-size: 14px; }
.notice-pop.urgent h2 { color: #DC2626; }
.pre { white-space: pre-wrap; word-break: break-word; }
.msg-body { background: #F8FAFC; border: 1px solid #EEF1F5; border-radius: 10px; padding: 14px; margin: 10px 0 14px; font-size: 14.5px; line-height: 1.6; min-height: 80px; }
.read-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.read-list .chip small { opacity: .8; }
.tbl tr.unread td { background: #F7FAFF; }
.dot-new { color: var(--blue); font-size: 11px; }
.pick-chosen { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 6px; border: 1px solid #CBD2DD; border-radius: 8px; }
.chip-x { border: 0; background: none; color: inherit; cursor: pointer; margin-left: 4px; font-size: 11px; }
.pick-groups { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.pick-groups select { border: 1px solid #CBD2DD; border-radius: 8px; padding: 5px 8px; }
.search.full { width: 100%; margin: 4px 0; }
.pick-list { max-height: 200px; overflow-y: auto; border: 1px solid #EEF1F5; border-radius: 8px; margin-bottom: 10px; }
.pick-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #F1F4F8; cursor: pointer; font-size: 13.5px; }
.pick-row:hover { background: #F7FAFF; }
.item-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-pick select { min-width: 280px; max-width: 100%; border: 1px solid #CBD2DD; border-radius: 8px; padding: 7px 10px; min-height: 38px; background: #fff; font-size: 14px; }
.perm-tbl td, .perm-tbl th { vertical-align: middle; }
.perm-tbl .center, .menu-tbl .center, th.center { text-align: center; }
.perm-tbl td.changed { background: #FFF8E1; }
.perm-tbl input[type=checkbox], .menu-tbl input[type=checkbox] { width: 17px; height: 17px; }
.menu-tbl input:not([type=checkbox]) { border: 1px solid #CBD2DD; border-radius: 7px; padding: 5px 8px; width: 100%; min-width: 120px; }
.menu-tbl input.narrow { width: 70px; min-width: 70px; }
.menu-tbl tr.group-row td { background: #F1F4F9; font-weight: 800; }
.role-cb { margin-right: 8px; white-space: nowrap; }
.codes-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .codes-grid { grid-template-columns: 1fr; } }
.code-groups { display: flex; flex-direction: column; }
.code-group { text-align: left; border: 0; border-top: 1px solid #EEF1F5; background: none; padding: 10px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.code-group.on { background: #EEF4FF; box-shadow: inset 3px 0 0 var(--blue); }
@media (max-width: 899px) { .top-right { gap: 6px; } .mail-btn { width: 36px; height: 36px; } }

/* ---------- 2단계 인증 · 장비 · 자격 · 게시판 · 결재 (2026-11-23) ---------- */
.hidden { display: none !important; }
.wide-login { max-width: 520px; }
.twofa { display: flex; flex-direction: column; gap: 10px; }
.qr { display: flex; justify-content: center; padding: 8px; }
.qr svg { width: 220px; height: 220px; }
.otp { font-size: 22px; letter-spacing: .3em; width: 180px; text-align: center; border: 1px solid #CBD2DD; border-radius: 8px; padding: 8px; }
.secret-inline { font-size: 13px; word-break: break-all; background: #F1F4F9; padding: 2px 6px; border-radius: 5px; }
.steps-list { margin: 0; padding-left: 20px; font-size: 13.5px; }
.steps-list li { margin: 4px 0; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #F8FAFC; border: 1px dashed #CBD2DD; border-radius: 10px; padding: 12px; }
.recovery code { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.ok-box { background: #ECFBF3; border: 1px solid #A7E3C3; border-radius: 10px; padding: 10px 14px; color: #047857; }
.login .otp, .login input[name=otp] { letter-spacing: .2em; }
.check-list { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid #EEF1F5; border-radius: 8px; }
.check-item { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check-item input { width: 18px; height: 18px; }
.tbl tr.warn-row td { background: #FFF6F6; }
.pick-row.indent { padding-left: 28px; font-weight: 400; }
.tbl tr.pinned td { background: #F7FAFF; }
.post-body { font-size: 15px; line-height: 1.7; min-height: 120px; margin: 8px 0 16px; }
.comment { border-top: 1px solid #EEF1F5; padding: 8px 0; font-size: 14px; }
.link-btn { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; margin-left: 6px; }
.answer { background: #F4FBF7; border-color: #BDE5CF; }
.line-rows { display: flex; flex-direction: column; gap: 6px; }
.line-row select { border: 1px solid #CBD2DD; border-radius: 8px; padding: 6px 8px; min-height: 36px; }
.line-no { width: 22px; height: 22px; border-radius: 50%; background: var(--side); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.appr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.appr-top .ledger-title { margin: 8px 0; text-align: left; }
.sign-tbl { border-collapse: collapse; }
.sign-tbl td.sign { border: 1px solid #444; width: 78px; text-align: center; padding: 0; vertical-align: top; }
.sign-head { background: #F2F2F2; border-bottom: 1px solid #444; font-size: 12px; padding: 3px 0; font-weight: 700; }
.sign-mid { height: 52px; display: flex; align-items: center; justify-content: center; }
.sign-foot { border-top: 1px solid #444; font-size: 11px; padding: 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border: 2px solid #D32F2F; color: #D32F2F; border-radius: 50%; font-weight: 800; font-size: 12px; padding: 0 4px; transform: rotate(-8deg); }
.stamp.rej { border-color: #555; color: #555; }
.appr-info { margin-bottom: 10px; }
.appr-info th { width: 90px; }
.appr-body { border: 1px solid #DDD; border-radius: 6px; padding: 14px; min-height: 160px; font-size: 14px; line-height: 1.7; }
.appr-comments { margin-top: 10px; font-size: 13px; }
.print-body { font-size: 11pt; line-height: 1.7; }
.recovery code { color: #111; } .login .steps-list, .login .twofa p { color: inherit; }

/* 7단계: 계정 안내문 · 가져오기 미리보기 */
.pick-list.tall { max-height: 52vh; }
.mono { font-family: Consolas, "D2Coding", monospace; letter-spacing: .04em; }
.acct-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.acct-card { border: 1px dashed #888; border-radius: 6px; padding: 5mm; font-size: 10.5pt; break-inside: avoid; }
.acct-head { margin-bottom: 3mm; font-size: 12pt; }
.acct-card table { width: 100%; border-collapse: collapse; margin-bottom: 2mm; }
.acct-card th { text-align: left; width: 28mm; font-weight: 600; padding: 1.5mm 0; color: #444; }
.acct-card td { padding: 1.5mm 0; font-size: 12pt; word-break: break-all; }
.imp-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.imp-opts label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list span { background: #EEF3FB; border-radius: 12px; padding: 3px 10px; font-size: 12.5px; }
.warn-list { margin: 0; padding-left: 18px; font-size: 13px; color: #9A5B00; }
.tbl td.click { cursor: pointer; }
.tbl td.click:hover { background: #EEF4FF; }
.tbl td.neg, .neg { color: #C2410C; }
.bulk-grid { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.bulk-row { display: grid; grid-template-columns: 1fr 110px 80px 120px 36px; gap: 6px; align-items: center; }
.bulk-row.head span { font-size: 12.5px; color: var(--muted, #64748B); font-weight: 600; }
.bulk-row input { width: 100%; min-width: 0; }
@media (max-width: 640px) { .bulk-row { grid-template-columns: 1fr 70px 50px 80px 32px; } }
.ledger-note { margin: 8mm 0 2mm; font-size: 10.5pt; text-align: center; }
.ledger-date { text-align: center; font-size: 11pt; margin: 4mm 0; }
.tbl td .btn { white-space: nowrap; }
/* 엑셀형 입력 */
.sheet-wrap { overflow: auto; max-height: 68vh; border-top: 1px solid var(--border); }
table.sheet { border-collapse: collapse; table-layout: fixed; font-size: 13px; min-width: 100%; }
table.sheet th { position: sticky; top: 0; z-index: 2; background: #DCE6F2; border: 1px solid #B7C3D3; padding: 6px 4px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.sheet th.ro { background: #EEF1F5; color: #555; }
table.sheet td { border: 1px solid #D9DEE6; padding: 0; height: 30px; background: #fff; }
table.sheet td.ro { background: #F6F7F9; color: #444; padding: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
table.sheet td input, table.sheet td select { width: 100%; height: 30px; border: 0; border-radius: 0; padding: 0 6px; font-size: 13px; background: transparent; box-shadow: none; }
table.sheet td input.num { text-align: right; font-variant-numeric: tabular-nums; }
table.sheet td input:focus, table.sheet td select:focus { outline: 2px solid #2563EB; outline-offset: -2px; background: #F3F7FF; }
table.sheet td.rownum, table.sheet th.rownum { width: 34px; text-align: center; background: #F3F4F6; position: sticky; left: 0; z-index: 1; }
table.sheet th.rownum { z-index: 3; }
table.sheet tr.dirty td:not(.ro) { background: #FFFBEA; }
table.sheet tr.err td { background: #FEE2E2 !important; }
table.sheet tr:hover td.rownum { background: #E5E7EB; }
table.sheet td input[type=checkbox] { width: 16px; height: 16px; padding: 0; margin: 0; }
table.rc-sheet { table-layout: auto; min-width: 0; }
table.rc-sheet td { min-width: 104px; }
table.rc-sheet td:first-child { min-width: 150px; }
.modal.sheet-modal { padding: 18px 22px 14px; width: min(1500px, 96vw); max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; }
.modal.sheet-modal .sheet-card { display: flex; flex-direction: column; min-height: 0; }
.modal.sheet-modal .sheet-wrap { max-height: 62vh; }
.sheet-bar { padding: 4px 0 8px; gap: 8px; }
.sheet-help { padding: 0 0 8px; }
/* 운영 대시보드 (그래프 없이) */
.ov-card { padding: 16px 18px; }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ov-head .card-title { margin: 0; }
.ov-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ov-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; background: #FAFBFC; }
.ov-task:hover { border-color: #93B4F5; background: #F5F8FF; }
.ov-task-n { min-width: 44px; text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.ov-task.on { background: #FFF8EB; border-color: #F6D28B; }
.ov-task.on .ov-task-n { font-size: 24px; color: #B45309; }
.ov-task-label { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ov-stat { padding: 10px 12px; border-radius: 10px; background: #F6F8FB; }
.ov-stat.click { cursor: pointer; }
.ov-stat.click:hover { background: #EEF4FF; }
.ov-stat-label { font-size: 12.5px; color: var(--muted); }
.ov-stat-value { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ov-stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ov-recent { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0F2F5; font-size: 13.5px; }
.ov-list li:last-child { border-bottom: 0; }
.ov-list li > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-empty { padding: 8px 0; }
.ov-list li > :last-child { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .ov-todo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ov-task { padding: 10px; gap: 8px; }
  .ov-task-n { min-width: 30px; font-size: 13px; }
  .ov-task.on .ov-task-n { font-size: 20px; }
  .ov-task-label { font-size: 12.5px; }
}
/* 인증번호 칸: 어두운 로그인 카드 안에서도 글자가 보이게 */
.otp, .login .otp { color: #111827; background: #fff; caret-color: #2563EB; }
.otp::placeholder { color: #9CA3AF; letter-spacing: normal; font-size: 15px; }
/* 재직증명서: A4 한 장에 맞추기 */
.cert-title { margin: 12mm 0 10mm; }
.cert-sec { margin: 6mm 0 2.5mm; }
.cert-tbl th, .cert-tbl td { padding: 3mm 3mm; }
.cert-body { margin: 16mm 0 8mm; }
.cert-date { margin-bottom: 12mm; }
@media print {
  .a4 { min-height: 0; }
  .a4:has(> .cert) { height: 296mm; overflow: hidden; break-inside: avoid; }
}

/* ================= 디자인 정리 (2026-11-23) — 위의 규칙을 덮어씀 ================= */
body { font-size: 14px; letter-spacing: -.003em; }
a { color: var(--blue); }

/* 왼쪽 메뉴: 아이콘·점선 없이 글자만, 선택한 메뉴는 노란 막대 */
.shell { grid-template-columns: 236px 1fr; }
.brand { padding: 18px 18px 14px; }
.brand-mark { width: 38px; }
.brand-text b { font-size: 15px; font-weight: 700; }
.brand-text small { font-size: 10px; letter-spacing: .06em; font-weight: 500; }
.side-search-row { margin: 2px 14px 8px; position: relative; }
.side-search { border: 1px solid transparent; background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; padding: 8px 10px 8px 32px; font-size: 13px; }
.side-search::placeholder { color: var(--side-dim); }
.side-search:focus { outline: none; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }
.side-search-btn { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: auto; background: none; color: var(--side-dim); border-radius: 0; pointer-events: none; }
.side-tabs { margin: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-tabs button { padding: 6px 0; }
.side-tabs button.on { border-bottom-color: var(--signal); }
.side-body { padding: 8px 10px 16px; }
.tree .node { margin-bottom: 4px; }
.tree .branch { justify-content: space-between; color: var(--side-dim); font-size: 12.5px; font-weight: 600; padding: 10px 10px 6px; border-radius: 6px; }
.tree .branch:hover { background: none; color: #fff; }
.tree .caret { width: auto; font-size: 14px; color: var(--side-dim); }
.leaves { margin: 0; border-left: 0; padding-left: 0; }
.leaf { padding: 8px 12px; border-radius: 7px; font-size: 14px; color: var(--side-text); }
.leaf:hover { background: rgba(255,255,255,.06); color: #fff; }
.leaf.on { background: rgba(255,255,255,.11); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--signal); }

/* 위쪽 줄 */
.top { padding: 0 24px; height: 56px; }
.me-role { background: #F1F3F6; color: #4A5568; font-weight: 500; }
.logout { border: 1px solid var(--border); color: #4A5568; font-weight: 600; }
.logout:hover { background: #F6F7F9; color: var(--red); border-color: #E7C3BC; }
.timer { border-color: var(--border); font-weight: 600; color: #4A5568; }
.mail-btn { border-radius: 8px; }

/* 열어 둔 화면 탭 */
.tabstrip { background: #fff; padding: 0 20px; gap: 2px; border-bottom: 1px solid var(--border); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px 9px; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.on { background: none; color: var(--text); border-bottom-color: var(--navy); font-weight: 600; }

/* 화면 제목 */
.page { padding: 22px 28px 48px; max-width: 1400px; }
.phead { margin-bottom: 18px; }
.crumb { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.crumb span { color: #3F4A5C; }
.ptitle h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pdesc { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 900px; }
.pactions { gap: 6px; }
.icon-btn { width: 36px; padding: 0; color: #4A5568; }
.fav { color: #CBD1DB; }

/* 카드 · 지표: 무지개색 칸 대신 흰 칸, 주의할 것만 노랑 */
.card { border-radius: var(--radius); box-shadow: none; }
.card-pad { padding: 18px 20px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; }
.kpi-card, .kpi-card.blue, .kpi-card.green, .kpi-card.purple, .kpi-card.gray { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi-card.yellow { background: #fff; border: 1px solid #F0D98A; box-shadow: inset 0 3px 0 var(--signal); }
.kpi-label, .kpi-card.blue .kpi-label, .kpi-card.green .kpi-label, .kpi-card.purple .kpi-label, .kpi-card.yellow .kpi-label { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi-main { font-size: 23px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-sub { font-weight: 500; font-size: 12.5px; }

/* 버튼 · 입력 */
.btn { border-radius: 8px; font-weight: 600; color: #2D3748; border-color: #D9DEE6; }
.btn:hover { background: #F6F7F9; border-color: #C5CCD7; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.field input, .field select, .field textarea, .search { border-color: #D3D9E2; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 화면 안의 탭: 밑줄형 */
.subtabs { background: none; padding: 0; border-radius: 0; gap: 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.subtab { border-radius: 0; padding: 9px 14px 8px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; margin-bottom: -1px; }
.subtab:hover { color: var(--text); }
.subtab.on { background: none; box-shadow: none; color: var(--text); border-bottom-color: var(--navy); }
.toolbar.between { align-items: flex-end; }

/* 표 */
.tbl th { background: #F7F8FA; color: #5A6577; font-weight: 600; font-size: 12.5px; padding: 10px 12px; }
.tbl td { padding: 10px 12px; border-bottom-color: var(--line-soft); }
.tbl tr:hover td { background: #FAFBFC; }
.tbl tr.total td { background: #F7F8FA; font-weight: 700; }
.chip { border-color: #D9DEE6; color: #3F4A5C; }
.chip.on { background: var(--navy); border-color: var(--navy); }
.chip-n { color: inherit; opacity: .65; }

/* 팀 카드 */
.team-card { padding: 16px 18px; gap: 12px; }
.team-card:hover { border-color: #AFC0DD; box-shadow: 0 2px 8px rgba(29, 52, 97, .06); }
.team-card .name { font-size: 15.5px; font-weight: 700; }
.team-n { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.team-facts { display: grid; grid-template-columns: 44px 1fr; gap: 5px 10px; margin: 0; font-size: 13px; }
.team-facts dt { color: var(--muted); }
.team-facts dd { margin: 0; color: #2D3748; }
.team-facts .badge { margin-left: 6px; }

/* 공지 띠: 얇게 */
.notice-bar { gap: 6px; margin-bottom: 14px; }

/* 대시보드 처리할 일: 노랑은 여기만 */
.ov-task { background: #fff; border-color: var(--border); border-radius: 10px; }
.ov-task:hover { border-color: #AFC0DD; background: #FAFBFD; }
.ov-task.on { background: #FFFBEB; border-color: #F0D98A; box-shadow: inset 3px 0 0 var(--signal); }
.ov-task.on .ov-task-n { color: #7A5200; }
.ov-stat { background: #F7F8FA; border-radius: 8px; }
.ov-stat-value { font-weight: 700; }

.doc-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

@media (max-width: 899px) {
  .top { height: auto; padding: 8px 12px; }
  .page { padding: 14px 12px 96px; }
  .ptitle h1 { font-size: 19px; }
  .pdesc { font-size: 13px; }
  .bottom-nav a.on { color: var(--navy); }
}
.notice-bar .notice { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 8px; padding: 8px 12px; color: var(--text); margin-bottom: 0; }
.notice-bar .notice.warn { border-left-color: var(--signal); }
.notice-bar .notice.urgent { border-left-color: var(--red); }
.notice-bar .notice > b { background: none; color: var(--blue); padding: 0; font-size: 12.5px; }
.notice-bar .notice.warn > b { background: none; color: #8A5A00; }
.notice-bar .notice.urgent > b { background: none; color: var(--red); }
.action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }
.btn { white-space: nowrap; }
@media (max-width: 560px) { .kpi-main { font-size: 18px; } .kpi-card { padding: 12px; } .pactions .search { min-width: 0; flex: 1; } }
/* 운영 대시보드: 왼쪽 목록 · 오른쪽 상세 (메뉴 관리 화면처럼) */
.ov-md { display: grid; grid-template-columns: minmax(360px, 430px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ov-md { grid-template-columns: 1fr; } }
.ov-list-card { overflow: hidden; position: sticky; top: 72px; }
@media (max-width: 1000px) { .ov-list-card { position: static; } }
.ov-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ov-pending { font-size: 12.5px; font-weight: 700; color: #7A5200; background: #FFF5DA; border-radius: 999px; padding: 2px 10px; }
.ov-master { table-layout: fixed; }
.ov-master th.num, .ov-master td.num { width: 96px; text-align: right; }
.ov-master th.state, .ov-master td.state { width: 84px; text-align: center; }
.ov-master tr.grp td { background: #F7F8FA; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 14px; border-bottom: 1px solid var(--line-soft); }
.ov-master tr.pick { cursor: pointer; }
.ov-master tr.pick td { padding: 10px 12px 10px 14px; }
.ov-master tr.pick:hover td { background: #F7F9FC; }
.ov-master tr.pick.on td { background: #EEF3FB; }
.ov-master tr.pick.on td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.ov-master tr.pick:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ov-item { font-weight: 600; color: var(--text); }
.ov-item-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-master tr.alert .ov-val { color: #7A5200; }
.ov-master tr:not(.alert) .badge { background: none; color: #A0A8B5; }
.ov-detail { min-height: 420px; overflow: hidden; }
.ov-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: #F7F8FA; border-bottom: 1px solid var(--border); }
.ov-detail-head b { font-size: 15.5px; }
.ov-detail-tag { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 1px 8px; }
.ov-detail-val { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.ov-detail-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.ov-sec h4 { margin: 0 0 8px; font-size: 13.5px; color: #3F4A5C; }
.ov-sec .table-wrap { border: 1px solid var(--border); border-radius: 8px; }
.ov-sec .tbl th.num, .ov-sec .tbl td.num { text-align: right; }
.tbl tr.link-row { cursor: pointer; }
.tbl tr.link-row:hover td { background: #EEF3FB; }
.ov-detail .ov-empty { padding: 22px 12px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px; font-size: 13.5px; }
.ov-master th.state, .ov-master td.state { width: 92px; }
.ov-master .badge { white-space: nowrap; }
.cert-history { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.cert-pick { flex: 1; min-width: 220px; max-width: 520px; border: 1px solid #D3D9E2; border-radius: 8px; padding: 7px 10px; background: #fff; min-height: 36px; }
/* 내 메모·일정 */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-cal { padding: 14px 14px 16px; }
.notes-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.notes-cal-head b { font-size: 16px; min-width: 96px; text-align: center; }
.nc-week { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 6px; }
.nc-week .sun, .nc.sun .nc-d { color: #C23B22; }
.nc-week .sat, .nc.sat .nc-d { color: #23509E; }
.nc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.nc { min-height: 84px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.nc.empty { border: 0; background: none; cursor: default; }
.nc:hover { border-color: #AFC0DD; }
.nc.today .nc-d { background: var(--navy); color: #fff; border-radius: 999px; padding: 0 7px; }
.nc.sel { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #F5F8FD; }
.nc-d { font-size: 13px; font-weight: 600; align-self: flex-start; }
.nc-dots { display: flex; gap: 3px; align-items: center; }
.nc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.nc-dots i.bell { background: var(--signal); }
.nc-dots i.done { background: #B8C0CC; }
.nc-dots b { font-size: 10px; color: var(--muted); }
.nc-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nc-titles span { font-size: 11.5px; color: #3F4A5C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-titles span.done { text-decoration: line-through; color: #A0A8B5; }
@media (max-width: 640px) { .nc { min-height: 52px; padding: 4px; } .nc-titles { display: none; } }
.note-list { border-top: 1px solid var(--line-soft); }
.note-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.note-item:last-child { border-bottom: 0; }
.note-item input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.note-main { flex: 1; min-width: 0; cursor: pointer; }
.note-title { font-weight: 600; }
.note-body { font-size: 13px; color: #4A5568; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.note-remind { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #7A5200; background: #FFF5DA; border-radius: 6px; padding: 1px 8px; }
.note-remind.sent { color: var(--muted); background: #F1F3F6; }
.note-item.done .note-title, .note-item.done .note-body { text-decoration: line-through; color: #A0A8B5; }
.notes-privacy { margin: 0; padding: 0 4px; }
.modal .body p { white-space: pre-line; }
/* 목록 버튼 3개(직원 정보·수정·삭제)일 때 이름·상태가 세로로 깨지지 않게 */
a.nowrap, td .nowrap { white-space: nowrap; }
td .badge { white-space: nowrap; }
td.actions .row.tight .btn { padding-left: 10px; padding-right: 10px; }

/* ---------- 회사 규정·매뉴얼 ---------- */
.pol-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pol-head p { margin: 0; max-width: 70ch; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pol-card { background: #fff; border: 1px solid var(--line, #E3E7EE); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pol-card.unread { border-left: 4px solid var(--signal, #F2B705); }
.pol-kind { font-size: 12px; font-weight: 600; color: #6B7280; }
.pol-title { font-size: 17px; font-weight: 700; color: #1D3461; text-decoration: none; }
.pol-title:hover { text-decoration: underline; }
.pol-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #4B5563; }
.pol-note { font-size: 13px; color: #374151; background: #F6F8FB; border-radius: 6px; padding: 6px 10px; }
.scroll-y { max-height: 60vh; overflow-y: auto; }

/* 보기 전용 PDF 뷰어 */
.pdfv { position: relative; background: #E9EDF3; border-radius: 10px; outline: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pdfv-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #E3E7EE; border-radius: 10px 10px 0 0; }
.pdfv-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 8px 24px; overflow-x: auto; }
.pdfv-slot { min-height: 300px; width: 100%; display: flex; justify-content: center; }
.pdfv-page { display: block; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .15); pointer-events: none; }
.pdfv-wait { align-self: center; color: #6B7280; font-size: 13px; }
.pdfv-veil, .pdfv-noprint { display: none; }
.pdfv.veiled .pdfv-pages { filter: blur(22px); opacity: .35; }
.pdfv.veiled .pdfv-veil { display: flex; position: absolute; inset: 56px 0 0; align-items: flex-start; justify-content: center; padding-top: 120px;
  font-weight: 700; color: #1D3461; z-index: 3; }
@media print {
  .pdfv-pages, .pdfv-bar, .pdfv-veil { display: none !important; }
  .pdfv-noprint { display: block !important; padding: 40px; font-size: 16px; }
}
.pol-card .row.tight { flex-wrap: wrap; }

/* ---------- TBM ---------- */
.tbm-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn.big { height: 48px; font-size: 16px; padding: 0 22px; }
.btn.block { width: 100%; }
.tbm-confirm { border-left: 4px solid var(--signal, #F2B705); margin-bottom: 14px; }
.tbm-crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF1F6; }
.tbm-miss { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-static { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #FDF3D0; color: #7A5A00; }
.tbm-ym { min-width: 90px; text-align: center; }
.tbm-form { max-width: 640px; }
.tbm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid #E3E7EE; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.tbm-head b { font-size: 17px; color: #1D3461; }
.tbm-head input { width: auto; }
.tbm-sec { background: #fff; border: 1px solid #E3E7EE; border-radius: 10px; padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.tbm-sec > h3 { margin: 0; font-size: 14px; color: #4B5563; font-weight: 600; }
.tbm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tbm-chip { font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid #CBD3DF; background: #fff; color: #1F2937; cursor: pointer; min-height: 40px; }
.tbm-chip.on { background: #E8EEF9; border-color: #23509E; color: #1D3461; font-weight: 600; }
.tbm-chip.warn.on { background: #FDECEC; border-color: #C0392B; color: #8E1F14; }
.tbm-etc, .tbm-note { width: 100%; }
.tbm-okbad { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-top: 1px solid #F0F2F6; }
.tbm-okrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tbm-name { font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.tbm-name input[type=checkbox] { width: 20px; height: 20px; }
.tbm-segs { display: inline-flex; gap: 6px; flex-shrink: 0; }
.tbm-seg { font-size: 14px; padding: 7px 14px; border-radius: 8px; border: 1px solid #CBD3DF; background: #fff; cursor: pointer; min-height: 38px; }
.tbm-seg.on { background: #E7F6EC; border-color: #1E8449; color: #145A32; font-weight: 600; }
.tbm-seg.bad.on { background: #FDECEC; border-color: #C0392B; color: #8E1F14; }
.tbm-erow { display: flex; align-items: flex-start; gap: 6px; }
.tbm-erow .tbm-okbad { flex: 1; }
.btn.icon-x { padding: 0 10px; margin-top: 8px; }
.tbm-add { display: flex; gap: 8px; }
.tbm-add input { flex: 1; min-width: 0; }
.tbm-share { background: #FFF7DB; border: 1px solid #F2D27A; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #5C4300; }
.tbm-share-t { font-weight: 700; margin-bottom: 4px; }
.tbm-share ul, .tbm-sharelist { margin: 0; padding-left: 18px; }
.tbm-photo { font-size: 14px; }
.tbm-detail .tbm-dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid #F0F2F6; }
.tbm-detail .tbm-dl:first-child { border-top: 0; }
.tbm-dl dt { color: #6B7280; font-size: 13px; }
.tbm-dl dd { margin: 0; }
.tbm-line { padding: 2px 0; }
.tbm-bad { color: #8E1F14; }
.tbm-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid #E3E7EE; }
@media (max-width: 599px) { .tbm-detail .tbm-dl { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 위험성평가 ---------- */
.ra-head { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; }
.ra-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ra-item { background: #fff; border: 1px solid #E3E7EE; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ra-top { display: flex; gap: 12px; align-items: flex-start; }
.ra-no { width: 30px; height: 30px; border-radius: 50%; background: #1D3461; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ra-title { font-weight: 700; color: #1D3461; }
.ra-sit { color: #374151; font-size: 14px; }
.ra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.ra-grid .wide { grid-column: 1 / -1; }
.ra-grid dt { font-size: 12px; color: #6B7280; }
.ra-grid dd { margin: 2px 0 0; }
.pre { white-space: pre-line; }
.ra-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ra-ph { display: flex; flex-direction: column; gap: 6px; }
.ra-ph img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid #E3E7EE; }
.ra-noph { height: 120px; border: 1px dashed #CBD3DF; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9CA3AF; font-size: 13px; }
.ra-miss { font-size: 13px; color: #8E1F14; background: #FDF1F0; border-radius: 6px; padding: 6px 10px; }
.ra-score { font-size: 14px; padding: 8px 10px; border-radius: 6px; background: #F3F5F9; margin-bottom: 10px; }
.ra-score.hi { background: #FDECEC; color: #8E1F14; font-weight: 600; }
.ra-score.mid { background: #FFF5D6; color: #6B4E00; font-weight: 600; }
.ra-score.lo { background: #E7F6EC; color: #145A32; }

/* 인쇄 서식 (TBM 일지 · 위험성평가 서식 4·5) */
.a4.land { width: 297mm; min-height: 210mm; padding: 12mm 12mm; }
.tbm-print h1, .ra-print h1 { font-size: 17px; margin: 0 0 10px; }
.tbm-print h2 { font-size: 14px; margin: 16px 0 6px; }
table.pf { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
table.pf th, table.pf td { border: 1px solid #555; padding: 5px 6px; vertical-align: top; }
table.pf th { background: #EEF1F6; font-weight: 600; text-align: center; white-space: nowrap; }
.tbm-print table.pf th { width: 120px; text-align: left; }
.tbm-print table.pf.ruled th { width: auto; text-align: center; }
table.pf td.c { text-align: center; }
table.pf.f4 { font-size: 10.5px; }
table.pf.f4 th { white-space: normal; }
table.pf.f5 td.ph { width: 22%; height: 130px; text-align: center; vertical-align: middle; }
table.pf.f5 td.ph img { max-width: 100%; max-height: 125px; object-fit: contain; }
.pf-note, .pf-foot { font-size: 10.5px; color: #333; margin: 4px 0 0; }
@media print {
  @page land { size: A4 landscape; margin: 0; }
  .a4.land { page: land; width: 297mm; min-height: 0; }
  table.pf tr { break-inside: avoid; }
}
@media (max-width: 899px) { .a4.land { width: auto; } }
table.pf.f4 td.c, table.pf.f5 td.c { white-space: nowrap; }
/* 폰에서 화면 위 버튼이 많으면 줄바꿈 (가로로 넘치지 않게) */
.pactions { flex-wrap: wrap; min-width: 0; }
.pactions > .row.tight { flex-wrap: wrap; }
@media (max-width: 599px) { .phead-row { flex-wrap: wrap; } .ra-photos { grid-template-columns: 1fr 1fr; } .ra-ph img { height: 130px; } }
/* 입력칸 너비 100% 규칙이 체크박스까지 늘리지 않게 (설정 > 2단계 인증 필수 역할 등) */
.field input[type=checkbox], .field input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.role-cb { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; font-weight: 500; }
.tbm-missbox { margin-bottom: 14px; }
.tbm-missbox summary { cursor: pointer; }
.tbm-missbox[open] summary { margin-bottom: 10px; }
.tbm-hits { display: flex; flex-direction: column; gap: 4px; }
.tbm-hit { text-align: left; padding: 9px 12px; border: 1px solid #E3E7EE; border-radius: 8px; background: #F8FAFD; cursor: pointer; font-size: 14px; }
.tbm-hit.ext { background: #fff; border-style: dashed; color: #4B5563; }

/* ---------- 위험성평가 (등록부 기반 한 장 평가) ---------- */
.badge.orange { background: #FDEBD8; color: #9A4A00; }
.ra .subtabs, .ra-filter { margin: 4px 0 10px; }
.ra-help { margin: 0 0 8px; }
.ra-head .wide { flex-basis: 100%; }
.ra-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.ra-prog { display: flex; align-items: center; gap: 8px; min-width: 200px; flex: 1; }
.ra-bar { flex: 1; height: 8px; background: #E5E9F0; border-radius: 99px; overflow: hidden; }
.ra-bar-in { display: block; height: 100%; background: #23509E; width: 0; }
.ra-item.todo { border-left: 4px solid #23509E; }
.ra-item.target { border-left: 4px solid #E67E22; }
.ra-acc { color: #6B7280; font-weight: 500; }
.ra-cur { margin-top: 2px; }
.ra-raterow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ra-rate { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ra-rrow { display: inline-flex; align-items: center; gap: 4px; }
.ra-rl { font-size: 13px; color: #4B5563; width: 30px; }
.ra-rb { min-width: 44px; min-height: 38px; padding: 0 8px; border: 1px solid #CBD3DF; background: #fff; border-radius: 8px; font-size: 14px; cursor: pointer; }
.ra-rb.on { background: #1D3461; border-color: #1D3461; color: #fff; font-weight: 700; }
.ra-rsum { display: inline-flex; align-items: center; gap: 6px; }
.ra-rate-out { min-width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; background: #EEF1F6; color: #6B7280; }
.ra-rate-out.green { background: var(--green-soft); color: var(--green); }
.ra-rate-out.amber { background: var(--amber-soft); color: var(--amber); }
.ra-rate-out.orange { background: #FDEBD8; color: #9A4A00; }
.ra-rate-out.red { background: var(--red-soft); color: var(--red); }
.ra-ref { margin-left: auto; }
.ra-more summary { cursor: pointer; font-size: 13px; color: #23509E; font-weight: 600; margin-bottom: 6px; }
.row.wrap { flex-wrap: wrap; }
.small { font-size: 12.5px; }
.ra-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ra-kpi { background: #F6F8FB; border-radius: 8px; padding: 10px 12px; }
.ra-kpi b { font-size: 20px; color: #1D3461; display: block; margin: 2px 0; }
.ra-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
table.pf.susi th { width: 150px; text-align: left; }
table.pf .sign { margin-top: 10px; color: #333; }
.pf-h2 { font-size: 13px; margin: 10px 0 4px; }

/* ---------- PC 관리 화면 공통 (검색 → 목록 → 상세) ---------- */
.gs { display: flex; flex-direction: column; gap: 10px; }
/* ===== 관리 화면 (BNSP 방식) ===== */
.page:has(.gs) { max-width: none; }
.gs { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.gs-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; background: #F6F7F9; border: 1px solid #D5DAE2; border-radius: 3px; padding: 12px 16px; margin-bottom: 18px; }
.gs-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #2B3445; }
.gs-item input[type=search], .gs-item select { min-width: 150px; height: 28px; border: 1px solid #C3CAD5; border-radius: 2px; padding: 0 8px; background: #fff; font-weight: 400; font-size: 13px; }
.gs-item input[type=search] { min-width: 210px; }
.gs-item select { max-width: 240px; }
.gs-item.check { font-weight: 600; }
.gs-sec { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 34px; margin-bottom: 6px; }
.gs-sec > b { font-size: 14px; color: #1B2438; font-weight: 700; }
.gs-count { font-size: 12.5px; color: #2563EB; margin-left: 10px; }
.gs-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border: 1px solid #C9CFD9; border-radius: 3px; background: #fff; color: #2B3445; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gs-btn:hover { background: #F3F5F8; }
.gs-btn.add { background: #EFF8F1; border-color: #A8D4B3; color: #1D6B36; }
.gs-btn.add:hover { background: #E2F2E6; }
.gs-btn.del { background: #FDF1F0; border-color: #EDB3AC; color: #B42318; }
.gs-btn.del:hover { background: #FBE4E1; }
.gs-btn.dark { background: #1F2D4B; border-color: #1F2D4B; color: #fff; }
.gs-btn.dark:hover { background: #2A3B60; }
.gs-btn.xls { background: #F1F8F3; border-color: #B9D9C2; color: #1D5E33; }
.gs-btn:disabled { opacity: .55; cursor: default; }
.gs-sec .btn { min-height: 28px; height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 3px; }
.gs-list { margin-bottom: 18px; }
.gs-scroll { overflow: auto; border: 1px solid #C9CFD9; border-top: 2px solid #3B4A66; background: #fff; }
.gs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.gs-table thead th { position: sticky; top: 0; z-index: 1; background: #F1F3F6; color: #2B3445; font-weight: 700; text-align: center; height: 30px; padding: 0 8px; border-right: 1px solid #DDE1E8; border-bottom: 1px solid #C9CFD9; white-space: nowrap; }
.gs-table td { height: 28px; padding: 0 8px; border-right: 1px solid #E6E9EE; border-bottom: 1px solid #E6E9EE; text-align: center; white-space: nowrap; color: #1F2937; vertical-align: middle; }
.gs-table th:last-child, .gs-table td:last-child { border-right: 0; }
.gs-table th.l, .gs-table td.l { text-align: left; }
.gs-table td.num { text-align: right; }
.gs-table td .badge, .gs-table td .pill { font-size: 11.5px; padding: 1px 7px; }
.gs-table td .btn { min-height: 24px; height: 24px; padding: 0 8px; font-size: 12px; }
.gs-table tr.pick { cursor: pointer; }
.gs-table tr.pick:hover td { background: #F5F7FA; }
.gs-table tr.sel td, .gs-table tr.sel:hover td { background: #FFF7DC; }
.gs-table tr.st-edit td { color: #12409A; }
.gs-table tr.st-new td { background: #F0F8F2; }
.gs-table tr.st-new.sel td { background: #FFF7DC; }
.gs-table tr.st-del td { text-decoration: line-through; color: #9CA3AF; }
.gs-table td.empty { height: 80px; color: #6B7280; }
.gs-no { width: 52px; color: #4B5563; }
.gs-st { width: 56px; font-weight: 400; color: #4B5563; }
.gs-table td.gs-st.edit { color: #1D4ED8; } .gs-table td.gs-st.new { color: #1D6B36; } .gs-table td.gs-st.del { color: #B42318; text-decoration: none; }
.gs-badge { font-size: 11.5px; font-weight: 700; border-radius: 3px; padding: 1px 6px; }
.gs-badge.del { background: #FDE4E2; color: #A1261A; }
.gs-formbox { border: 1px solid #C9CFD9; border-radius: 3px; background: #fff; padding: 16px 18px; }
.gs-empty { padding: 10px 0; }
.gs-note { margin: 12px 0 0; font-size: 12px; color: #C2410C; }
.gs-grid { display: grid; grid-template-columns: repeat(4, 116px minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.gs-l { font-size: 13px; font-weight: 700; color: #2B3445; padding-top: 6px; }
.gs-l.full { grid-column: 1; }
.gs-v.full { grid-column: 2 / -1; }
.gs-v input, .gs-v select, .gs-v textarea { width: 100%; height: 30px; border: 1px solid #C3CAD5; border-radius: 2px; padding: 0 8px; background: #fff; font-size: 13px; }
.gs-v textarea { height: auto; min-height: 64px; padding: 6px 8px; resize: vertical; }
.gs-v input[type=checkbox] { width: auto; height: auto; }
.gs-v input:focus, .gs-v select:focus, .gs-v textarea:focus, .gs-item input:focus, .gs-item select:focus { outline: 2px solid #93B4F5; outline-offset: -1px; border-color: #5B85E0; }
.gs-v .hint { font-size: 11.5px; color: #6B7280; margin-top: 3px; }
.gs-ro { min-height: 30px; padding: 6px 8px; background: #EEF0F3; border: 1px solid #D5DAE2; border-radius: 2px; color: #374151; }
.gs-errs { margin: 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 1500px) { .gs-grid { grid-template-columns: repeat(3, 112px minmax(0, 1fr)); } }
@media (max-width: 1150px) { .gs-grid { grid-template-columns: repeat(2, 112px minmax(0, 1fr)); } }
@media (max-width: 700px) { .gs-grid { grid-template-columns: 1fr; } .gs-l { padding-top: 4px; } .gs-l.full, .gs-v.full { grid-column: auto; } }
.gs-clip { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.gs-block { margin-bottom: 18px; }
.gs-formbox { overflow: auto; }
.gs-scroll { overscroll-behavior: contain; }

/* ===== 검색해서 고르는 칸 (pick.js) ===== */
.ss { position: relative; min-width: 0; }
.ss-input { position: relative; display: flex; gap: 6px; align-items: center; }
.ss-input input { flex: 1; min-width: 0; padding-right: 28px !important; }
.ss-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9CA3AF; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.ss.multi .ss-input .ss-clear { display: none; }
.ss-group { width: auto !important; flex: none; max-width: 210px; }
.ss-list { display: none; background: #fff; border: 1px solid #C9CFD9; border-radius: 4px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.ss.open .ss-list { display: block; }
.ss:not(.multi) .ss-list { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.ss.multi .ss-list { margin-top: 6px; max-height: 210px; }
.ss-opt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #F2F4F7; }
.ss-opt b { font-weight: 600; color: #1F2937; }
.ss-opt.hi { background: #EEF3FB; }
.ss-opt.on b { color: #1D4ED8; }
.ss-sub { color: #6B7280; font-size: 12px; }
.ss-box { width: 16px; height: 16px; border: 1px solid #B8C0CC; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; flex: none; }
.ss-opt.on .ss-box { background: #1F2D4B; border-color: #1F2D4B; }
.ss-empty { padding: 10px; color: #6B7280; font-size: 12.5px; }
.ss-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-height: 26px; align-items: center; max-height: 92px; overflow-y: auto; }
.ss-chips .chip { padding: 2px 6px 2px 10px; font-size: 12.5px; cursor: default; }
.ss-chip-sub { opacity: .7; font-size: 11.5px; }
.ss-count { font-size: 12.5px; color: #2563EB; white-space: nowrap; padding-top: 3px; }
.linkish { border: 0; background: none; color: #2563EB; cursor: pointer; padding: 2px 4px; text-decoration: underline; }
.field .ss input { min-height: 38px; }
.gs-v .ss input { height: 30px; min-height: 30px; }
.gs-v .ss-list { font-size: 13px; }

/* 지급 품목 줄 */
.il-quick { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 6px; }
.il-quick .chip { padding: 3px 10px; font-size: 12.5px; }
.il-rows { display: flex; flex-direction: column; gap: 6px; }
.il-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 104px 38px; gap: 6px; align-items: start; }
.il-qty { display: flex; align-items: center; gap: 4px; }
.il-qty input { width: 64px !important; }
.il-add { align-self: flex-start; margin-top: 6px; }
.btn.icon { min-width: 38px; padding: 0; }
.team-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 170px; }
.team-pick .pick-row { padding: 5px 8px; font-size: 13px; }
.modal.wide { max-width: 820px; }
@media (max-width: 640px) { .il-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; } .il-row > .ss { grid-column: 1 / -1; } .team-pick { grid-template-columns: 1fr 1fr; } }

/* PC: 조회 조건 줄도 BNSP 검색 패널 모양으로 */
@media (min-width: 900px) {
  .filters { background: #F6F7F9; border: 1px solid #D5DAE2; border-radius: 3px; padding: 10px 14px; gap: 8px 10px; }
  .filters input, .filters select { min-height: 30px; height: 30px; border-radius: 2px; border-color: #C3CAD5; padding: 0 8px; font-size: 13px; }
  .filters .btn { min-height: 30px; height: 30px; border-radius: 3px; font-size: 12.5px; padding: 0 12px; }
  .filters label { font-weight: 700; color: #2B3445; }
  .tbm-nav { gap: 8px; }
  .tbm-nav .btn { min-height: 30px; height: 30px; border-radius: 3px; }
  .tbm-nav select { height: 30px; border: 1px solid #C3CAD5; border-radius: 2px; padding: 0 8px; }
}
@media (min-width: 900px) {
  /* 목록 화면에서는 위쪽 요약을 낮게: 목록이 더 넓게 보이도록 */
  .page:has(.gs) { padding-bottom: 12px; }
  .page:has(.gs) .kpi-row { margin-bottom: 10px; gap: 10px; }
  .page:has(.gs) .kpi-card { padding: 8px 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .page:has(.gs) .kpi-main { font-size: 19px; margin-top: 0; }
  .page:has(.gs) .kpi-sub { flex-basis: 100%; margin-top: -2px; }
  .page:has(.gs) .stack { gap: 10px; }
  .page:has(.gs) .ra-kpi { padding: 6px 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .page:has(.gs) .ra-kpi b { font-size: 17px; margin: 0; }
  .page:has(.gs) .ra-kpis { margin-bottom: 4px; }
  .page:has(.gs) .item-pick { padding: 8px 14px; }
  /* 공통코드: 왼쪽 묶음 목록은 따로 스크롤 */
  .codes-grid > :first-child { position: sticky; top: 8px; max-height: calc(100vh - 250px); overflow-y: auto; }
}
@media (max-width: 640px) { .ss-group { max-width: 42%; } .ss-input input { min-width: 0; } }
.gs-fix { border: 1px solid #D5DAE2; border-radius: 4px; padding: 12px 14px; margin-top: 10px; background: #FAFBFC; }
.gs-fix-title { display: block; font-size: 14px; color: #1B2438; }
.gs-fix p { margin: 4px 0 8px; }
.gs-fix-act { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.gs-fix-pick { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.gs-fix-pick input { height: 32px; border: 1px solid #C3CAD5; border-radius: 3px; padding: 0 8px; width: 100%; }
.gs-fix-act .gs-btn { height: 32px; }
.gs-fix-q { margin: 12px 0 0; }
.ss:not(.multi) input[type=search]::-webkit-search-cancel-button { display: none; }
/* 목록 표 안에서는 줄바꿈 없이 한 줄로 (긴 글은 … 처리) — 줄 간격을 직원 목록처럼 좁게 */
.gs-table td .wrap { white-space: nowrap; display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.gs-table td .wrap > div { display: inline; }
.gs-table td .wrap > div::before { content: ' · '; }
.gs-table td .row.tight { flex-wrap: nowrap; gap: 4px; }
.gs-table td .file-btn, .gs-table td .btn.file-btn { min-height: 24px; height: 24px; padding: 0 8px; font-size: 12px; }
.gs-table td .qtag, .gs-table td .cat { font-size: 11px; }

/* ===== 운영 대시보드 (PC): BNSP 목록처럼 촘촘하게, 화면 높이에 맞추고 안쪽만 스크롤 ===== */
@media (min-width: 1000px) {
  .page:has(.ov-md) { padding-bottom: 12px; }
  .ov-md { gap: 14px; align-items: stretch; grid-template-columns: minmax(380px, 440px) 1fr; }
  .ov-list-card, .ov-detail { position: static; display: flex; flex-direction: column; min-height: 0; border-radius: 3px; border-color: #C9CFD9; }
  .ov-detail-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .ov-list-card { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .ov-list-card .ov-list-head { position: sticky; top: 0; z-index: 3; }
  .ov-list-card .ov-master th { position: sticky; top: 42px; z-index: 2; }
  .ov-list-head, .ov-detail-head { padding: 8px 14px; min-height: 42px; background: #F6F7F9; border-bottom: 2px solid #3B4A66; }
  .ov-list-head .card-title, .ov-detail-head b { font-size: 14px; }
  .ov-master { font-size: 13px; }
  .ov-master th { height: 30px; padding: 0 10px; text-align: center; background: #F1F3F6; color: #2B3445; font-weight: 700; border-bottom: 1px solid #C9CFD9; border-right: 1px solid #DDE1E8; }
  .ov-master th:first-child { text-align: left; }
  .ov-master th:last-child, .ov-master td:last-child { border-right: 0; }
  .ov-master tr.pick td { padding: 0 10px; height: 30px; border-bottom: 1px solid #E6E9EE; border-right: 1px solid #E6E9EE; }
  .ov-master tr.grp td { padding: 3px 10px; font-size: 11.5px; background: #EEF0F4; border-bottom: 1px solid #DDE1E8; }
  .ov-master td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-master .ov-item, .ov-master .ov-item-sub { display: inline; }
  .ov-master .ov-item-sub { margin-left: 6px; font-size: 11.5px; }
  .ov-master tr.pick.on td { background: #FFF7DC; }
  .ov-master tr.pick.on td:first-child { box-shadow: inset 3px 0 0 #1F2D4B; }
  .ov-master th.num, .ov-master td.num { width: 84px; }
  .ov-master th.state, .ov-master td.state { width: 84px; }
  .ov-master .badge { font-size: 11px; padding: 1px 7px; }
  .ov-detail-body { padding: 12px 14px 14px; gap: 12px; }
  .ov-sec h4 { margin: 0 0 6px; font-size: 13.5px; color: #1B2438; }
  .ov-sec .table-wrap { border: 1px solid #C9CFD9; border-top: 2px solid #3B4A66; border-radius: 0; }
  .ov-sec .tbl { font-size: 13px; border-collapse: separate; border-spacing: 0; }
  .ov-sec .tbl th { height: 30px; padding: 0 8px; text-align: center; background: #F1F3F6; color: #2B3445; font-weight: 700; border-bottom: 1px solid #C9CFD9; border-right: 1px solid #DDE1E8; position: sticky; top: 0; z-index: 1; }
  .ov-sec .tbl td { height: 28px; padding: 0 8px; text-align: center; border-bottom: 1px solid #E6E9EE; border-right: 1px solid #E6E9EE; white-space: nowrap; }
  .ov-sec .tbl th:last-child, .ov-sec .tbl td:last-child { border-right: 0; }
  .ov-sec .tbl td .wrap { white-space: nowrap; display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .ov-sec .tbl tr:last-child td { border-bottom: 0; }
  .ov-stats { gap: 8px; }
  .ov-stat { padding: 6px 12px; border-radius: 3px; border: 1px solid #DDE1E8; }
  .ov-stat-value { font-size: 17px; }
  .ov-detail .ov-empty { padding: 14px 12px; border-radius: 3px; }
}

/* ===== 화면 잠금 ===== */
body.locked { overflow: hidden; }
.lock-screen { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(1200px 700px at 50% 30%, #24365F 0%, #16233F 60%, #111B31 100%); color: #E6ECF7; }
.lock-box { width: min(340px, 88vw); display: flex; flex-direction: column; align-items: center; text-align: center; }
.lock-time { font-size: 68px; font-weight: 300; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.lock-date { margin-top: 8px; font-size: 15px; color: #A9B7D3; }
.lock-user { margin: 44px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lock-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.lock-name { font-size: 17px; font-weight: 700; color: #fff; }
.lock-role { font-size: 12.5px; color: #A9B7D3; }
.lock-form { display: flex; width: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.08); }
.lock-form:focus-within { border-color: #8FB0F0; box-shadow: 0 0 0 3px rgba(143,176,240,.25); }
.lock-pw { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: #fff; padding: 0 14px; font-size: 15px; outline: none; }
.lock-pw::placeholder { color: #8E9CB8; }
.lock-go { width: 48px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.lock-go:hover { background: rgba(255,255,255,.24); }
.lock-go:disabled { opacity: .5; }
.lock-err { min-height: 20px; margin-top: 10px; font-size: 13px; color: #FFB4A9; }
.lock-other { margin-top: 18px; border: 0; background: none; color: #A9B7D3; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lock-other:hover { color: #fff; }
.lock-foot { position: absolute; bottom: 22px; font-size: 12px; color: #6F7E9C; }
.lock-box.shake { animation: lock-shake .35s; }
@keyframes lock-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-width: 560px) { .lock-time { font-size: 56px; } .lock-user { margin-top: 34px; } }
.lock-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #3B4556; cursor: pointer; }
.lock-btn:hover { background: #F3F5F8; color: #1F2D4B; }

/* ===== 밀린 일 알림등 (LED) ===== */
.led-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border: 1px solid #F1C7C2; border-radius: 8px; background: #FFF6F5; color: #8A1C12; cursor: pointer; font-size: 13px; }
.led-btn:hover { background: #FDECEA; }
.led-btn.hide { display: none; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #E5372B; box-shadow: 0 0 0 0 rgba(229,55,43,.6), 0 0 6px 1px rgba(229,55,43,.8); animation: led-blink 1.1s ease-in-out infinite; }
.led-n { font-variant-numeric: tabular-nums; }
@keyframes led-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,55,43,.55), 0 0 7px 2px rgba(229,55,43,.85); } 50% { opacity: .25; box-shadow: 0 0 0 0 rgba(229,55,43,0), 0 0 0 0 rgba(229,55,43,0); } }
@media (prefers-reduced-motion: reduce) { .led { animation: none; } }
@media (max-width: 899px) { .led-label { display: none; } .led-btn { padding: 0 9px; gap: 5px; } .lock-btn { display: none; } }
.led-pop { position: fixed; z-index: 70; width: min(420px, 92vw); background: #fff; border: 1px solid #C9CFD9; border-radius: 6px; box-shadow: 0 12px 28px rgba(15,23,42,.18); overflow: hidden; }
.led-pop-head { padding: 10px 14px; border-bottom: 2px solid #3B4A66; background: #F6F7F9; font-size: 14px; }
.led-row { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #EEF0F3; color: inherit; text-decoration: none; font-size: 13px; }
.led-row:last-child { border-bottom: 0; }
.led-row:hover { background: #F7F9FC; }
.led-dot { width: 7px; height: 7px; border-radius: 50%; background: #E5372B; flex: none; }
.led-row-label { flex: 1; min-width: 0; }
.led-row-old { color: #6B7280; font-size: 12px; white-space: nowrap; }
.led-row-n { color: #B42318; white-space: nowrap; min-width: 44px; text-align: right; }
/* 모든 화면 폭을 같게: 목록 화면만 넓고 나머지는 좁아 보이던 것 통일 (PC에서 화면 끝까지) */
.page { max-width: none; }

/* ===== 폰 홈 (간단) ===== */
.mh { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.mh-hello { display: flex; flex-direction: column; gap: 2px; padding: 2px 2px 0; }
.mh-hello b { font-size: 19px; color: #1B2438; }
.mh-hello span { font-size: 13.5px; color: #6B7280; }
.mh-tbm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px; border-radius: 12px; text-decoration: none; }
.mh-tbm.todo { background: #1F2D4B; color: #fff; }
.mh-tbm.done { background: #ECFBF3; color: #14532D; border: 1px solid #B9EBCF; }
.mh-tbm-k { font-size: 12.5px; opacity: .8; }
.mh-tbm-v { font-size: 19px; font-weight: 700; margin-top: 2px; }
.mh-tbm-s { font-size: 12.5px; opacity: .8; margin-top: 2px; }
.mh-tbm-go { flex: none; background: #fff; color: #1F2D4B; font-weight: 700; font-size: 14.5px; border-radius: 999px; padding: 10px 16px; }
.mh-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mh-title { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.mh-title b { font-size: 15px; color: #1B2438; }
.mh-count { background: #E5372B; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 19px; }
.mh-more { margin-left: auto; font-size: 13px; color: #2563EB; text-decoration: none; }
.mh-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #F0F2F5; color: inherit; text-decoration: none; min-height: 48px; }
.mh-row:active { background: #F5F7FA; }
.mh-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5372B; flex: none; }
.mh-row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14.5px; }
.mh-row-l > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-row-l small { font-size: 12px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-row-n { color: #B42318; font-size: 15px; white-space: nowrap; }
.mh-arrow { color: #A0A8B5; font-size: 20px; line-height: 1; }
.mh-date { color: #9CA3AF; font-size: 12px; white-space: nowrap; }
.mh-empty { padding: 4px 14px 16px; color: #15803D; font-size: 14px; }
.mh-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 14px 14px; }
.mh-quick a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px; border-radius: 10px; background: #F4F6FA; color: #1F2D4B; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.mh-quick a:active { background: #E8EDF6; }
.mh-full { align-self: center; border: 0; background: none; color: #6B7280; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; cursor: pointer; }

/* ===== 공지 띠 (옆으로 흐르는 글) ===== */
.notice-bar.ticker { flex-direction: row; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 0; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 8px; overflow: hidden; }
.notice-bar.ticker.lv-warn { border-left-color: var(--signal); }
.notice-bar.ticker.lv-urgent { border-left-color: var(--red); background: #FFF7F7; }
.tk-label { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 12px; background: #1F2D4B; color: #fff; font-size: 12.5px; font-weight: 700; }
.notice-bar.ticker.lv-urgent .tk-label { background: #B42318; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.tk-track { display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; padding-left: 8px; }
.tk-track.run { animation: tk-flow linear infinite; }
.tk-view:hover .tk-track.run, .tk-view:focus-within .tk-track.run { animation-play-state: paused; }
@keyframes tk-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track.run { animation: none; } }
.tk-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); text-decoration: none; }
a.tk-item:hover .tk-title { text-decoration: underline; }
.tk-tag { font-size: 12px; color: var(--blue); }
.tk-item.lv-warn .tk-tag { color: #8A5A00; } .tk-item.lv-urgent .tk-tag { color: var(--red); } .tk-item.lv-post .tk-tag { color: #1F2D4B; }
.tk-title { font-weight: 700; }
.tk-body { color: #4B5563; }
.notice-bar.ticker .notice-x { flex: none; padding: 4px 8px; }
@media (max-width: 899px) { .notice-bar.ticker { height: 36px; margin-bottom: 10px; } .tk-label { padding: 0 10px; font-size: 12px; } }

/* ===== 새 메시지 알림 카드 ===== */
.msg-pops { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: min(340px, calc(100vw - 24px)); }
.msg-pop { background: #fff; border: 1px solid #C9CFD9; border-left: 4px solid #2563EB; border-radius: 8px; box-shadow: 0 12px 28px rgba(15,23,42,.2); padding: 10px 12px 12px; animation: msg-in .25s ease-out; }
.msg-pop.imp { border-left-color: #E5372B; }
.msg-pop.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.msg-pop-head { display: flex; align-items: center; gap: 6px; color: #2563EB; font-size: 13px; }
.msg-pop.imp .msg-pop-head { color: #B42318; }
.msg-pop-x { border: 0; background: none; color: #9CA3AF; cursor: pointer; font-size: 13px; }
.msg-pop-from { margin-top: 6px; font-size: 13px; color: #6B7280; }
.msg-pop-subj { margin-top: 2px; font-size: 14.5px; font-weight: 700; color: #1B2438; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-pop-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.msg-pop-foot .btn { min-height: 30px; padding: 0 14px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg-pop { animation: none; } }
@media (max-width: 899px) { .msg-pops { right: 12px; left: 12px; width: auto; bottom: auto; top: 62px; } }
/* 공지 띠 항목 종류는 lv-* (예전 .info 상자 스타일과 겹치지 않게) */

/* ===== 설치품질 하자 ===== */
.mh-quick a { position: relative; }
.mh-badge { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E5372B; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.df-late { color: #B42318; font-weight: 700; }
.df-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.df-card.late { border-left: 4px solid #E5372B; }
.df-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.df-due { font-size: 12.5px; color: #6B7280; }
.df-due.late { color: #B42318; font-weight: 700; }
.df-card-title { margin-top: 6px; font-size: 15.5px; font-weight: 700; color: #1B2438; }
.df-card-sub { margin-top: 3px; font-size: 12.5px; color: #6B7280; }
.df-reject { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #FDF1F0; color: #8A1C12; font-size: 13px; }
.df-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .df-wrap { grid-template-columns: 1fr; } }
.df-head { display: flex; align-items: center; gap: 8px; }
.df-title { margin: 8px 0 10px; font-size: 18px; }
.df-line { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid #F0F2F5; font-size: 13.5px; }
.df-line span { width: 82px; flex: none; color: #6B7280; }
.df-detail { margin: 10px 0; padding: 10px 12px; background: #F7F8FA; border-radius: 8px; font-size: 13.5px; }
.df-sec-t { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.df-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.df-photos a, .df-new { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #EEF0F3; }
.df-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.df-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.df-cam { width: 100%; min-height: 48px; font-size: 15px; }
.df-send { width: 100%; margin-top: 8px; }
.df-ok { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #ECFBF3; color: #14532D; font-size: 13px; }
.df-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.df-slot { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 2px dashed #B8C3D6; border-radius: 12px; background: #F6F8FB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; padding: 0; color: #1F2D4B; }
.df-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.df-slot-ic { font-size: 28px; }
.df-slot-l { position: relative; z-index: 1; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.9); border-radius: 999px; padding: 3px 10px; }
.df-imp { max-height: 52vh; overflow: auto; border: 1px solid #C9CFD9; border-top: 2px solid #3B4A66; }
.df-imp .gs-table td { height: 34px; }
.df-imp-team { min-width: 200px; }
.df-imp-team .ss input { height: 28px; min-height: 28px; border: 1px solid #C3CAD5; border-radius: 3px; padding: 0 26px 0 8px; width: 100%; }
.df-imp tr.warn-row td { background: #FFF8E6; } .df-imp tr.off td { color: #9CA3AF; }

/* ===== 안전관리 점수(KPI) ===== */
.kpi-nav { gap: 10px; }
.kpi-nav .btn { min-height: 30px; height: 30px; border-radius: 3px; padding: 0 12px; }
.kpi-ym { font-size: 15px; }
.kpi-tot { font-size: 14px; }
.kpi-tot.good, .mh-kpi b.good, .kpi-me-total.good { color: #15803D; }
.kpi-tot.mid, .mh-kpi b.mid, .kpi-me-total.mid { color: #B45309; }
.kpi-tot.low, .mh-kpi b.low, .kpi-me-total.low { color: #B42318; }
.gs-table tr.mine td { background: #EEF4FF; }
.kpi-me { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; max-width: 560px; }
.modal .kpi-me { border: 0; padding: 0; }
.kpi-me-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #EEF0F3; }
.kpi-me-total { font-size: 40px; font-weight: 800; line-height: 1.1; }
.kpi-me-total small { font-size: 15px; color: #9CA3AF; font-weight: 600; }
.kpi-me-rank { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.kpi-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.kpi-bar-top { display: flex; justify-content: space-between; font-size: 14px; }
.kpi-track { height: 8px; border-radius: 99px; background: #EEF0F3; margin-top: 5px; overflow: hidden; }
.kpi-track i { display: block; height: 100%; background: #2F7D4F; border-radius: 99px; }
.kpi-bar.short .kpi-track i { background: #D97706; }
.kpi-note { font-size: 12px; color: #6B7280; margin-top: 3px; }
.mh-kpi { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; }
.mh-kpi > span:first-child { display: flex; align-items: baseline; gap: 10px; }
.mh-kpi small { font-size: 13.5px; color: #4B5563; }
.mh-kpi b { font-size: 22px; }
.tr-more { margin: -4px 0 10px; }
.tr-more summary { cursor: pointer; font-size: 13px; color: #2563EB; margin-bottom: 8px; }
.kpi-ppe { border-top: 1px solid #EEF0F3; }
.kpi-chks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 12px; }
.kpi-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; cursor: pointer; }

/* ===== 현장 점검 ===== */
.ins-form { margin-top: 6px; }
.ins-sec { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: #3B4A66; border-bottom: 1px solid #E5E8EE; padding-bottom: 5px; }
.ins-cl-row { border: 1px solid #E5E8EE; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.ins-cl-row.bad { border-color: #F3B3AC; background: #FFF8F7; }
.ins-cl-row input[type=text] { margin-top: 8px; width: 100%; }
.ins-cl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ins-opts { display: flex; gap: 6px; }
.ins-opt { position: relative; cursor: pointer; }
.ins-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ins-opt span { display: inline-block; min-width: 58px; text-align: center; padding: 7px 10px; border: 1px solid #CDD3DD; border-radius: 8px; font-size: 13.5px; background: #fff; }
.ins-opt input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 1px; }
.ins-opt.ok input:checked + span { background: #E7F6EC; border-color: #2F7D4F; color: #14532D; font-weight: 700; }
.ins-opt.bad input:checked + span { background: #FDECEA; border-color: #D93025; color: #8A1C12; font-weight: 700; }
.ins-opt.na input:checked + span { background: #F1F3F6; border-color: #8A94A6; color: #374151; font-weight: 700; }
.ins-result { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ins-result label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4B5563; }
.ins-score { width: 100px; font-size: 18px; font-weight: 700; text-align: right; }
.ins-marks { display: inline-flex; gap: 3px; }
.ins-marks i { font-style: normal; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 700; }
.ins-marks i.ok { background: #E7F6EC; color: #2F7D4F; }
.ins-marks i.bad { background: #FDECEA; color: #B42318; }
.ins-marks i.na { background: #F1F3F6; color: #8A94A6; }
.ins-big { font-size: 18px; }
.ins-year { height: 32px; }
.ins-cl-view { display: flex; flex-direction: column; gap: 6px; }
.ins-cl-v { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border-radius: 8px; background: #F7F8FA; font-size: 13.5px; }
.ins-cl-v.ok b { color: #2F7D4F; }
.ins-cl-v.bad { background: #FDECEA; }
.ins-cl-v.bad b { color: #B42318; }
.ins-cl-v.na b { color: #8A94A6; }
.ins-cl-d { flex-basis: 100%; color: #8A1C12; }
.df-detail.bad { background: #FDF1F0; color: #8A1C12; }
.kpi-bar.minus .kpi-bar-top b, .kpi-minus { color: #B42318; font-weight: 700; }
.ol-path { font-family: Consolas, monospace; background: #F7F8FA; padding: 8px 10px; border-radius: 6px; }
.ol-warn { color: #B45309; font-weight: 700; }
.ol-part { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ins-result select { height: 40px; min-width: 96px; font-size: 15px; font-weight: 700; }
.ins-cl-row input[type=text] { height: 40px; font-size: 14px; padding: 0 10px; }
.login-keep { color: #C7D2E6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0 12px; font-size: 14px; cursor: pointer; }
.login-keep input { width: 18px; height: 18px; }
.login-keep small { flex-basis: 100%; font-size: 12px; color: #8FA0C2; padding-left: 24px; }

/* 위험요인 등록부 → 공정별 위험성평가표 화면 보기 */
.ra-sheet-card .row { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ra-sheet-view { overflow-x: auto; background: #fff; color: #111; border: 1px solid var(--line, #dde1e8); border-radius: 8px; padding: 16px; }
.ra-sheet-view .ra-print { min-width: 1040px; }
.ra-sheet-view .ra-print + .ra-print { margin-top: 24px; padding-top: 16px; border-top: 2px dashed #ccd; }
.ra-hint { margin: 4px 2px 8px; }

/* 안전관리 점수 상세(근거) — 화면·인쇄 같은 양식 */
.modal.kpi-detail { max-width: 980px; }
.kpi-paper { background: #fff; color: #111; overflow-x: auto; }
.kpi-print { min-width: 640px; }
.kpi-print h1 { font-size: 17px; margin: 0 0 10px; }
.kpi-sec { margin-top: 12px; break-inside: avoid-page; }
.kpi-sec h3 { font-size: 13px; margin: 0 0 4px; }
.kpi-sec table.pf td.muted { color: #666; }
.kpi-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.kpi-day { border: 1px solid #bbb; border-radius: 4px; padding: 3px 5px; font-size: 11px; display: flex; flex-direction: column; }
.kpi-day b { font-weight: 600; }
.kpi-day i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-day.ok { background: #E7F6EC; border-color: #9fd3b0; }
.kpi-day.off { background: #F1F2F5; color: #555; }
.kpi-day.miss { background: #FDECEC; border-color: #f0a8a8; color: #8a1c1c; }
@media print { .kpi-day { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .kpi-print { min-width: 0; } }

/* 위험성평가 근로자 확인 서명 · 결재 문서에 붙는 평가표 */
.ra-signs .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.ra-sign-ask { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #FFF7E0; border: 1px solid #F0D58A; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ra-sign-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ra-sign { border: 1px solid var(--line, #dde1e8); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: #666; }
.ra-sign.ok { background: #E7F6EC; border-color: #9fd3b0; color: #145A32; }
.appr-ra { margin-top: 16px; overflow-x: auto; }
.appr-ra .ra-print { min-width: 1000px; margin-bottom: 18px; }
@media print { .appr-ra .ra-print { min-width: 0; } }

/* 현장 점검 배점표 */
.ins-score-tbl { width: 100%; max-width: 520px; border-collapse: collapse; margin: 6px 0; font-size: 14px; }
.ins-score-tbl th, .ins-score-tbl td { border: 1px solid var(--line, #dde1e8); padding: 6px 8px; }
.ins-score-tbl th { background: #F3F5F9; font-weight: 600; }
.ins-score-tbl td.c { text-align: center; }
.ins-score-tbl tr.bad td { background: #FDECEC; color: #8a1c1c; }
.ins-score-tbl tr.na td { color: #999; }
.ins-score-tbl tr.sum td { font-weight: 600; background: #F8F9FB; }

/* 실시간 대화방 */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 12px; height: calc(100vh - 230px); min-height: 460px; }
.chat-wrap.list-only { grid-template-columns: 1fr; height: auto; min-height: 0; }
.chat-side { background: #fff; border: 1px solid var(--line, #dde1e8); border-radius: 12px; overflow-y: auto; }
.chat-rooms { display: flex; flex-direction: column; }
.chat-room { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-bottom: 1px solid #f0f1f4; color: inherit; text-decoration: none; }
.chat-room:hover { background: #F6F8FB; }
.chat-room.on { background: #EEF3FB; }
.chat-room-main { flex: 1; min-width: 0; }
.chat-room-top { display: flex; gap: 6px; align-items: baseline; }
.chat-room-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-last { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.chat-room-last span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-kind { flex: none; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; background: #EEF1F6; color: #445; margin-top: 2px; }
.chat-kind.k-all { background: #FDECEC; color: #8a1c1c; }
.chat-kind.k-team { background: #E7F0FD; color: #1d4f91; }
.chat-unread { flex: none; background: #E0393E; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.chat-main { display: flex; flex-direction: column; background: #EEF2F7; border: 1px solid var(--line, #dde1e8); border-radius: 12px; overflow: hidden; min-height: 0; }
.chat-mobile-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.chat-more { align-self: center; margin-bottom: 6px; }
.chat-day { align-self: center; font-size: 12px; color: #667; background: rgba(255,255,255,.7); border-radius: 999px; padding: 3px 12px; margin: 8px 0 4px; }
.chat-sys { align-self: center; font-size: 12px; color: #667; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-who { font-size: 12px; color: #556; margin: 0 0 2px 4px; }
.chat-line { display: flex; align-items: flex-end; gap: 5px; }
.chat-msg.mine .chat-line { flex-direction: row-reverse; }
.chat-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 8px 11px; box-shadow: 0 1px 1px rgba(0,0,0,.04); word-break: break-word; }
.chat-msg.mine .chat-bubble { background: #FEE88A; border-radius: 14px 4px 14px 14px; }
.chat-text { white-space: pre-wrap; line-height: 1.45; }
.chat-img { display: block; max-width: 240px; max-height: 260px; border-radius: 8px; object-fit: cover; }
.chat-img + .chat-text { margin-top: 6px; }
.chat-file { display: inline-block; color: #1d4f91; font-weight: 600; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 10.5px; color: #778; white-space: nowrap; }
.chat-msg:not(.mine) .chat-meta { align-items: flex-start; }
.chat-n { color: #D99500; font-weight: 700; min-height: 12px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px; background: #fff; border-top: 1px solid var(--line, #dde1e8); }
.chat-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; padding: 9px 10px; border: 1px solid var(--line, #dde1e8); border-radius: 10px; font: inherit; }
.chat-people { list-style: none; padding: 0; margin: 0; columns: 2; }
.chat-people li { padding: 4px 0; }
.chat-pop .msg-pop-body { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 999px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .chat-wrap:not(.list-only) .chat-side { display: none; }
  .chat-mobile-back { display: block; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line, #dde1e8); }
  .chat-msg { max-width: 88%; }
  .chat-img { max-width: 200px; }
}
