/*
 * 근태관리 본문 «A 현황판» (.atb-*, 2026-09-30 · 샘플 sample/attendance/a-board.html 사용자 확정)
 * 오늘 현황(KPI + 상태별 사람 칸) · 직원 × 날짜 한 달 표. 칸 상태 = Attendance::Board::STATES 와 같은 이름(.atb-dc.is-*).
 */
.atb { --atb-ch: var(--ord-accent); --atb-band: var(--ord-band); --atb-line: var(--ord-line); --atb-line2: var(--ord-line-soft); --atb-mu: var(--ord-text-3); --atb-mu2: var(--ord-text-4); --atb-bg: var(--ord-surface-2);
       --atb-stuck: var(--ord-tint-amber-fg); color: var(--ord-text); }
.atb-card { background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 12px; margin-bottom: 14px; }
.atb-card-h { padding: 10px 14px; background: linear-gradient(180deg, var(--ord-band), var(--ord-panel)); border-bottom: 1px solid var(--atb-line); display: flex; align-items: center;
              gap: 8px; flex-wrap: wrap; border-radius: 12px 12px 0 0; }
.atb-t { font-size: 13px; font-weight: 700; color: var(--ord-text); padding-left: 9px; border-left: 4px solid var(--atb-ch); line-height: 15px; }
.atb-card-b { padding: 12px 14px; }
.atb-hint { font-size: 11.5px; color: var(--atb-mu2); }
.atb-sp { flex: 1; }
.atb-issue { color: var(--atb-stuck); }
.atb-empty { padding: 26px; text-align: center; color: var(--atb-mu); border: 1px dashed var(--atb-line); border-radius: 10px; }
.atb-link { font-size: 12px; color: var(--atb-ch); text-decoration: none; }
.atb-mnav { display: inline-flex; align-items: center; gap: 4px; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 999px; height: 30px; padding: 0 4px; }
.atb-mnav a { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--atb-ch); text-decoration: none; font-size: 15px; }
.atb-mnav a:hover { background: var(--atb-band); }
.atb-mnav b { font-size: 13px; padding: 0 4px; }

/* 오늘 */
.atb-kpi { display: flex; gap: 8px; flex-wrap: wrap; }
.atb-kpi > div { flex: 1; min-width: 110px; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; }
.atb-kpi span { font-size: 11.5px; color: var(--atb-mu); font-weight: 600; }
.atb-kpi b { font-size: 20px; font-weight: 800; color: var(--ord-text); }
.atb-kpi small { font-size: 12px; color: var(--atb-mu); font-weight: 600; margin-left: 2px; }
.atb-kpi .is-work b { color: var(--ord-tint-blue-fg); } .atb-kpi .is-out b { color: var(--ord-tint-amber-fg); } .atb-kpi .is-late b { color: var(--ord-tint-red-fg); }
.atb-lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.atb-lane { background: var(--atb-bg); border: 1px solid var(--atb-line2); border-radius: 10px; padding: 8px; min-height: 92px; }
.atb-lane-h { font-size: 11.5px; font-weight: 700; color: var(--atb-mu); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.atb-lane-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--ord-line); }
.atb-lane.is-work .atb-lane-h i { background: var(--ord-solid-blue); } .atb-lane.is-out .atb-lane-h i { background: var(--ord-solid-amber); }
.atb-lane.is-done .atb-lane-h i { background: var(--ord-text-4); } .atb-lane.is-away .atb-lane-h i { background: var(--ord-solid-cyan); }
.atb-none { padding: 6px; }
.atb-chip { display: flex; align-items: center; gap: 7px; width: 100%; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 9px; padding: 5px 8px;
            margin-bottom: 5px; cursor: pointer; font: inherit; color: var(--ord-text); text-align: left; }
.atb-chip:hover { border-color: var(--ord-line-2); }
.atb-chip b { font-size: 12.5px; }
.atb-chip-s { font-size: 11px; color: var(--atb-mu); margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atb-chip-s em { font-style: normal; } .atb-chip-s em.is-late { color: var(--ord-tint-red-fg); font-weight: 700; }
.atb-av { width: 24px; height: 24px; border-radius: 50%; background: var(--ord-band); color: var(--atb-ch); font-weight: 800; font-size: 10px; display: inline-flex;
          align-items: center; justify-content: center; flex: none; }

/* 칸 */
.atb-dc { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; position: relative;
          border: 0; padding: 0; vertical-align: middle; background: transparent; }
button.atb-dc { cursor: pointer; }
button.atb-dc:focus-visible { outline: 2px solid var(--atb-ch); outline-offset: 1px; }
.atb-dc.is-ok { background: var(--ord-solid-green); } .atb-dc.is-late { background: var(--ord-tint-red-line); } .atb-dc.is-early { background: var(--ord-solid-amber); } .atb-dc.is-eco { background: var(--ord-tint-indigo-line); }
.atb-dc.is-stuck { background: var(--ord-panel); box-shadow: inset 0 0 0 2px var(--atb-stuck); } .atb-dc.is-abs { background: var(--ord-solid-red); } .atb-dc.is-rec { background: var(--ord-solid-cyan); }
.atb-dc.is-work { background: var(--ord-tint-blue-line); } .atb-dc.is-miss { background: var(--ord-panel); box-shadow: inset 0 0 0 1.5px var(--ord-tint-red-line); }
.atb-dc.is-hol { background: var(--ord-band); } .atb-dc.is-off { background: var(--ord-band); } .atb-dc.is-fut { background: var(--ord-panel); box-shadow: inset 0 0 0 1px var(--ord-line); }
.atb-dc.is-none { background: transparent; }
.atb-dc.is-out { background: var(--ord-tint-violet-line); } /* 외출(2026-10-02) */
.atb-dc.is-leave { background: var(--ord-solid-cyan); } .atb-dc.is-half { background: linear-gradient(135deg, var(--ord-solid-cyan) 50%, var(--ord-tint-cyan-line) 50%); }
.atb-dc.has-ot::after { content: ""; position: absolute; top: 1px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--ord-solid-violet); box-shadow: 0 0 0 1px var(--ord-panel); }
.atb-dc.is-pend::after { background: var(--ord-solid-amber); }
.atb-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--atb-mu); margin-bottom: 10px; }
.atb-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.atb-legend .atb-dc { width: 14px; height: 14px; }

/* 한 달 표 */
.atb-mxwrap { overflow: auto; border: 1px solid var(--atb-line); border-radius: 12px; background: var(--ord-panel); }
.atb-mx { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.atb-mx th, .atb-mx td { padding: 4px 2px; border-bottom: 1px solid var(--atb-line2); text-align: center; font-size: 11px; white-space: nowrap; }
.atb-mx thead th { position: sticky; top: 0; background: var(--atb-band); color: var(--atb-mu); font-weight: 600; z-index: 1; }
.atb-mx thead th span { font-weight: 500; }
.atb-mx thead th.is-sun { color: var(--ord-tint-red-fg); } .atb-mx thead th.is-sat { color: var(--ord-tint-blue-fg); } .atb-mx thead th.is-hol { color: var(--ord-tint-red-fg); }
.atb-mx thead th.is-today { background: var(--ord-head-bg); color: var(--ord-on-solid); border-radius: 6px 6px 0 0; }
.atb-mx td.is-today { background: var(--ord-band); }
.atb-mx .atb-nmh, .atb-mx .atb-nm { position: sticky; left: 0; background: var(--ord-panel); z-index: 2; text-align: left; padding: 6px 10px; border-right: 1px solid var(--atb-line2); min-width: 176px; }
.atb-mx thead .atb-nmh { background: var(--atb-band); z-index: 3; }
.atb-mx .atb-sumh { padding: 6px 8px; background: var(--ord-band); }
.atb-mx .atb-sum { padding: 4px 8px; font-variant-numeric: tabular-nums; color: var(--ord-text-2); font-weight: 600; }
.atb-mx .atb-sum.is-red { color: var(--ord-tint-red-fg); } .atb-mx .atb-sum.is-org { color: var(--atb-stuck); } .atb-mx .atb-sum.is-leave { color: var(--ord-tint-cyan-fg); }
.atb-mx tfoot td { background: var(--ord-surface); font-weight: 700; color: var(--atb-mu); border-bottom: 0; }
.atb-who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.atb-who b { display: block; font-size: 12.5px; color: var(--ord-text); }
.atb-who small { display: block; font-size: 10.5px; color: var(--atb-mu2); }
.atb-who:hover b { color: var(--atb-ch); text-decoration: underline; }

@media (max-width: 1000px) { .atb-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .atb-lanes { grid-template-columns: 1fr; }
  .atb-kpi b { font-size: 17px; }
  .atb-mx .atb-nmh, .atb-mx .atb-nm { min-width: 120px; }
}

/* 주휴 칸 (2026-10-01) — 주=유급 · X=미발생 · 예=예정 · 적/제=관리자 처리 */
.atb-dc.is-wh_earned, .atb-dc.is-wh_apply, .atb-dc.is-wh_forfeited, .atb-dc.is-wh_exclude, .atb-dc.is-wh_pending {
  font-size: 10px; font-weight: 800; font-family: inherit; line-height: 1; }
.atb-dc.is-wh_earned { background: var(--ord-tint-blue-bg); color: var(--ord-tint-blue-fg); box-shadow: inset 0 0 0 1.5px var(--ord-tint-blue-fg); }
.atb-dc.is-wh_apply { background: var(--ord-tint-blue-bg); color: var(--ord-tint-blue-fg); box-shadow: inset 0 0 0 1.5px var(--ord-tint-blue-fg); }
.atb-dc.is-wh_forfeited { background: var(--ord-panel); color: var(--ord-tint-red-fg); box-shadow: inset 0 0 0 1.5px var(--ord-tint-red-line); }
.atb-dc.is-wh_exclude { background: var(--ord-band); color: var(--ord-text-3); box-shadow: inset 0 0 0 1.5px var(--ord-tint-blue-fg); text-decoration: line-through; }
.atb-dc.is-wh_pending { background: var(--ord-panel); color: var(--ord-text-4); box-shadow: inset 0 0 0 1px var(--ord-line-2); }
.atb-legend .atb-dc[class*="is-wh_"] { font-size: 8px; }
.atb-mx td.is-whol { background: var(--ord-surface-2); }
.atb-mx .atb-sum.is-whol { color: var(--ord-tint-blue-fg); line-height: 1.3; }
.atb-mx .atb-sum.is-whol small { display: block; font-size: 10px; font-weight: 500; color: var(--atb-mu); }
.atb-mx .atb-sum .is-red { color: var(--ord-tint-red-fg); }

/* ── 직원 한 명 화면 M1 (.atm-*, 2026-10-01 · 샘플 sample/attendance2/m-member.html M1 확정) ── */
.atm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.atm-av { width: 38px; height: 38px; font-size: 13px; }
.atm-who b { font-size: 15px; } .atm-who small { font-size: 12px; color: var(--atb-mu2); }
.atm-sub { font-size: 12px; color: var(--atb-mu); margin-top: 2px; }
.atm-head .awt { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.atm-lock { background: var(--ord-tint-green-bg); border: 1px solid var(--ord-tint-green-line); color: var(--ord-tint-cyan-fg); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px; }
.atm-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; align-items: start; }
.atm-side { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; }
.atm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.atm-w { font-size: 11px; font-weight: 700; color: var(--atb-mu); text-align: center; padding: 4px 0; }
.atm-w.is-sun { color: var(--ord-tint-red-fg); } .atm-w.is-sat { color: var(--ord-tint-blue-fg); }
.atm-c { min-height: 86px; background: var(--ord-panel); border: 1px solid var(--atb-line2); border-radius: 9px; padding: 5px 7px; display: flex; flex-direction: column; gap: 2px;
         font: inherit; font-size: 11px; color: var(--ord-text); text-align: left; align-items: stretch; }
button.atm-c { cursor: pointer; } button.atm-c:hover { border-color: var(--ord-line-2); }
.atm-c.is-blank { background: transparent; border: 0; }
.atm-c.is-today { box-shadow: 0 0 0 2px var(--atb-ch) inset; }
.atm-n { font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.atm-ot { width: 6px; height: 6px; border-radius: 50%; background: var(--ord-solid-violet); display: inline-block; } .atm-ot.is-pend { background: var(--ord-solid-amber); }
.atm-t { color: var(--ord-text-2); font-variant-numeric: tabular-nums; } .atm-h { color: var(--ord-tint-violet-fg); font-size: 10.5px; }
.atm-pill { align-self: flex-start; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 16px; background: var(--ord-band); color: var(--ord-text-2); }
.atm-pill.is-late, .atm-pill.is-abs { background: var(--ord-tint-red-bg); color: var(--ord-tint-red-fg); } .atm-pill.is-early, .atm-pill.is-eco { background: var(--ord-tint-amber-bg); color: var(--ord-tint-amber-fg); }
.atm-pill.is-stuck { background: var(--ord-tint-amber-bg); color: var(--ord-tint-amber-fg); } .atm-pill.is-miss { background: var(--ord-panel); color: var(--ord-tint-red-fg); border: 1px dashed var(--ord-tint-red-line); }
.atm-pill.is-rec, .atm-pill.is-leave, .atm-pill.is-half { background: var(--ord-tint-cyan-line); color: var(--ord-tint-cyan-fg); } .atm-pill.is-work { background: var(--ord-tint-blue-bg); color: var(--ord-tint-blue-fg); }
.atm-c.is-late { border-color: var(--ord-tint-red-line); } .atm-c.is-early, .atm-c.is-eco { border-color: var(--ord-tint-amber-fg); } .atm-c.is-stuck { border-color: var(--ord-tint-amber-fg); background: var(--ord-surface-2); }
.atm-pill.is-out { background: var(--ord-tint-violet-bg); color: var(--ord-tint-violet-fg); } .atm-c.is-out { border-color: var(--ord-tint-violet-line); }
.atm-c.is-abs { background: var(--ord-tint-red-bg); border-color: var(--ord-tint-red-line); } .atm-c.is-miss { border-style: dashed; border-color: var(--ord-tint-red-line); }
.atm-c.is-leave, .atm-c.is-half, .atm-c.is-rec { background: var(--ord-surface-2); border-color: var(--ord-tint-cyan-line); } .atm-c.is-hol { background: var(--ord-surface-2); border-color: var(--ord-tint-red-line); }
.atm-c.is-off, .atm-c.is-none { background: var(--ord-surface-2); } .atm-c.is-whol { background: var(--ord-surface-2); }
.atm-hol { color: var(--ord-tint-red-fg); font-weight: 600; }
.atm-wk { align-self: flex-start; font: inherit; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 9px; border: 1px solid; background: var(--ord-panel); cursor: pointer; }
span.atm-wk { cursor: default; }
.atm-wk.is-wh_earned, .atm-wk.is-wh_apply { color: var(--ord-tint-blue-fg); border-color: var(--ord-tint-blue-line); background: var(--ord-tint-blue-bg); }
.atm-wk.is-wh_forfeited { color: var(--ord-tint-red-fg); border-color: var(--ord-tint-red-line); background: var(--ord-tint-red-bg); }
.atm-wk.is-wh_exclude { color: var(--ord-text-3); border-color: var(--ord-line-2); text-decoration: line-through; } .atm-wk.is-wh_pending { color: var(--ord-text-4); border-color: var(--ord-line); }
.atm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.atm-kpis > div { background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 10px; padding: 8px 10px; }
.atm-kpis span { display: block; font-size: 11px; color: var(--atb-mu); } .atm-kpis b { font-size: 15px; }
.atm-kpis .is-blue { color: var(--ord-tint-blue-fg); } .atm-kpis .is-teal { color: var(--ord-tint-cyan-fg); } .atm-kpis .is-ch { color: var(--atb-ch); }
.atm-band { background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 10px; overflow: hidden; }
.atm-band-h { padding: 8px 12px; background: var(--atb-band); border-bottom: 1px solid var(--atb-line); font-size: 12px; font-weight: 700; color: var(--atb-ch); }
.atm-band-b { padding: 10px 12px; }
.atm-r { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; border-bottom: 1px dashed var(--atb-line2); }
.atm-r b { font-variant-numeric: tabular-nums; white-space: nowrap; } .atm-r .is-red { color: var(--ord-tint-red-fg); }
.atm-net { display: flex; justify-content: space-between; align-items: center; background: var(--atb-band); border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-weight: 700; color: var(--atb-ch); }
.atm-todo { display: flex; flex-direction: column; gap: 5px; }
.atm-todo button { display: flex; gap: 8px; align-items: center; text-align: left; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 8px; padding: 6px 9px; cursor: pointer; font: inherit; font-size: 12px; color: var(--ord-text); }
.atm-todo .atb-dc { width: 14px; height: 14px; flex: none; }
@media (max-width: 1100px) { .atm-split { grid-template-columns: 1fr; } .atm-side { position: static; } }
@media (max-width: 768px) {
  .atm-c { min-height: 52px; padding: 3px 4px; }
  .atm-t, .atm-h, .atm-c small { display: none; }
  .atm-pill { font-size: 9px; padding: 0 4px; }
}
.atb-dh { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0 2px; line-height: 1.25; border-radius: 5px; }
.atb-dh:hover { background: var(--ord-panel); }
.atb-mx thead th.is-today .atb-dh:hover { background: rgba(255, 255, 255, .15); }
.atb-setline { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; background: var(--ord-panel); border: 1px solid var(--atb-line); border-radius: 12px;
               padding: 10px 14px; font-size: 12.5px; color: var(--ord-text-2); margin-top: 2px; }
.atb-setline b { color: var(--ord-text); }
/* 설정 줄 인원수 hover → 한 달 표 이름칸 강조(2026-10-01, attendance-page#highlight) */
.atb-setline .atb-hl-n { cursor: default; padding: 1px 6px; border-radius: 6px; }
.atb-setline .atb-hl-n:hover { background: var(--ord-tint-amber-line); }
.atb-mx td.atb-nm.is-hl { background: var(--ord-tint-amber-line); }
