/* activity.css — 활동 기록 화면 (activity.js, 2026-10-26). 대시보드(index.php)와 핸드폰 팀 사무실(office.php)이 같이 쓴다.
   대시보드 색 토큰(--bg-surface 등)을 쓴다. office.php 는 office/office-web.css 에 같은 이름의 토큰을 둔다 */
/* =====================================================
   활동 기록 (activity.js, 2026-10-26). 상태 색은 데스크톱 앱(app.css --st-*)과 같다
   ===================================================== */
.act-page { --act-work: #2fbf71; --act-idle: #8b7cf6; --act-meeting: #ffb020; --act-away: #9aa2ad; --act-none: var(--border-hairline);
    background: var(--bg-surface); border-radius: var(--radius-l); padding: 20px 20px 24px; margin-bottom: 32px; }
.act-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.act-ctl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--border-hairline); border-radius: var(--radius-s);
    background: var(--bg-surface); color: var(--text-normal); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.act-ctl input, .act-ctl select { border: 0; background: transparent; font: inherit; color: inherit; min-height: 36px; }
.act-ctl svg.lucide { width: 16px; height: 16px; }
.act-ctl:focus-within, .act-csv:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.act-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-m); background: var(--warn-bg); color: var(--warn-text); font-size: 14px; line-height: 1.6; margin-bottom: 16px; word-break: keep-all; }
.act-notice svg.lucide { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.act-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-weak); margin-bottom: 8px; }
.act-legend span { display: inline-flex; align-items: center; gap: 6px; }
.act-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.act-legend i.act-tri { width: 0; height: 0; border-radius: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--text-strong); }
.act-c-work { background: var(--act-work); } .act-c-idle { background: var(--act-idle); } .act-c-meeting { background: var(--act-meeting); }
.act-c-away { background: var(--act-away); } .act-c-off { background: var(--act-none); } .act-c-none { background: var(--act-none); }
.act-status { margin: 0; font-size: 14px; color: var(--text-weak); }
.act-status:empty { display: none; }
.act-scroll { overflow-x: auto; }
.act-tbl { width: 100%; min-width: 760px; border-collapse: collapse; }
.act-tbl th { text-align: left; font-size: 13px; color: var(--text-disable); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--border-hairline); white-space: nowrap; }
.act-tbl td { padding: 14px 8px 12px; border-bottom: 1px solid var(--border-hairline); vertical-align: middle; font-size: 14px; }
.act-row.is-open td { background: var(--bg-sunken); }
.act-name { border: 0; background: transparent; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 800; color: var(--text-strong); cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hairline); }
.act-name:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.act-bar-cell { min-width: 300px; width: 46%; }
.act-bar { position: relative; height: 22px; border-radius: 6px; background: var(--act-none); }
.act-bar > i { position: absolute; top: 0; bottom: 0; display: block; }
.act-bar-empty { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--text-weak);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-bar > i[data-tip], .act-mk { cursor: help; }
.act-bar > i[data-tip]:hover { filter: brightness(0.9); }
.act-tip { position: fixed; z-index: 50; max-width: 260px; padding: 8px 12px; border-radius: var(--radius-s); background: #191f28; color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1.5; white-space: pre-line; word-break: keep-all; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.act-mk { position: absolute; top: -9px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--text-strong); transform: translateX(-6px); }
.act-mk.is-late { border-top-color: var(--danger-text); }
.act-axis { position: relative; height: 16px; margin-top: 3px; font-size: 11px; color: var(--text-disable); font-variant-numeric: tabular-nums; }
.act-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.act-axis span:first-child { transform: none; }
.act-axis span:last-child { transform: translateX(-100%); }
.act-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.act-num b { color: var(--text-strong); font-size: 15px; }
.act-num small { color: var(--text-disable); }
.act-flag { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.act-flag.is-chk { color: var(--danger-text); background: var(--danger-bg); }
.act-flag.is-ok { color: var(--success-text); background: var(--success-bg); }
.act-flag.is-leave { color: var(--warn-text); background: var(--warn-bg); }
.act-detail td { padding-top: 4px; }
.act-detail h4 { margin: 4px 0 8px; font-size: 15px; color: var(--text-strong); }
.act-ev { list-style: none; margin: 0; padding: 0; }
.act-ev li { display: grid; grid-template-columns: 52px 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-hairline); font-size: 14px; align-items: baseline; }
.act-ev li:last-child { border-bottom: 0; }
.act-t { color: var(--text-disable); font-variant-numeric: tabular-nums; }
.act-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--text-strong); white-space: nowrap; }
.act-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.act-d { min-width: 0; color: var(--text-normal); overflow-wrap: anywhere; }
.act-d small { color: var(--text-disable); }
.act-empty, .act-ev li.act-empty { display: block; color: var(--text-disable); padding: 12px 0; }
/* 좁은 화면(핸드폰): 표 대신 사람마다 한 덩어리 (이름·확인 → 막대 → 숫자) */
@media (max-width: 768px) {
    .act-page { padding: 16px 12px 20px; }
    .act-tbl { min-width: 0; }
    .act-tbl thead { display: none; }
    .act-tbl, .act-tbl tbody, .act-tbl tr, .act-tbl td { display: block; width: auto; }
    .act-row { position: relative; padding: 12px 0 14px; border-bottom: 1px solid var(--border-hairline); }
    .act-row td { border: 0; padding: 2px 0; }
    .act-row .act-flag-cell { position: absolute; top: 16px; right: 0; padding: 0; }
    .act-bar-cell { min-width: 0; width: auto; padding-top: 14px !important; }
    .act-row td.act-num { display: inline-block; margin-right: 14px; }
    .act-row td.act-num::before { content: attr(data-label) ' '; font-size: 12px; color: var(--text-disable); }
    .act-detail td { padding: 0 0 12px; border-bottom: 1px solid var(--border-hairline); }
    .act-ev li { grid-template-columns: 44px 84px minmax(0, 1fr); gap: 8px; }
}
/* 화면 읽기 프로그램에만 읽히는 이름표 (대시보드의 .ar-sr 과 같음. office.php 에는 dashboard.css 가 없다) */
.act-page .ar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
