/* A20 5판의 카드와 그래프를 공용 스타일과 분리해 그립니다. */
.a20-v5 {
  --bg: #f3f3f5; --card-line: #ececef; --soft: #f6f6f8; --soft-2: #f1f1f4;
  --back: #e2e2e8; --hair: #efeff1; --late: #b9251c; --late-soft: #fdf0ef;
  --rf-ink: #242428; --rf-ink-2: #52525b; --rf-ink-3: #777780; --rf-gray: #dedee4;
  --or: var(--admin-accent); --or-ink: var(--admin-accent-ink); --or-soft: var(--admin-accent-soft);
  --or-2: var(--admin-accent-2); --or-3: var(--admin-accent-3); --or-4: var(--admin-accent-4); --or-5: var(--admin-accent-5);
  --kb-red: #b9251c; --kb-green: #187b53; --kb-green-soft: #eff8f1; --kb-info: #2869ad; --kb-info-soft: #edf4fc;
  min-width: 0; line-height: 1.55; color: var(--rf-ink);
}
.admin-workspace:has(.a20-v5) { background: #f3f3f5; }
.a20-v5 :is(h1,h2,h3,p,ol,ul) { margin-top: 0; }
.a20-v5 :is(ol,ul) { padding: 0; list-style: none; }
.a20-v5 a { color: inherit; text-decoration: none; }
.a20-v5 :is(button,a,summary,[tabindex]):focus-visible { outline: 2px solid var(--or-ink); outline-offset: 3px; }
.a20-v5 small { font-size: 12px; color: var(--rf-ink-3); font-weight: 400; }
.a20-v5 .ic { width: 19px; height: 19px; flex: none; }
.a20-v5 [hidden] { display: none !important; }
.a20-v5 .num { text-align: right; font-variant-numeric: tabular-nums; }
.a20-v5 .masthead { position: sticky; top: 64px; z-index: 15; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 14px; padding: 12px 0; background: var(--bg); }
.a20-v5 .dashboard-title { display: flex; align-items: center; gap: 2px; }
.a20-v5 .masthead h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.a20-v5 .dashboard-info { justify-self: end; text-align: right; white-space: nowrap; }
.a20-v5 .dashboard-info p { margin: 0 0 3px; font-size: 12px; color: var(--rf-ink-3); font-variant-numeric: tabular-nums; }
.a20-v5 .dashboard-info .fx { margin: 0; font-size: 12px; color: var(--rf-ink-2); font-variant-numeric: tabular-nums; }
.a20-v5 .views { display: flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; padding: 5px; border-radius: 999px; background: #e9e9ec; }
.a20-v5 .views a { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; color: var(--rf-ink-2); white-space: nowrap; }
.a20-v5 .views a:hover { background: #e0e0e4; color: var(--rf-ink); }
.a20-v5 .views a[aria-current=page] { background: var(--or); color: #fff; font-weight: 600; }
.a20-v5 .badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--or-soft); color: var(--or-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a20-v5 [aria-current=page] .badge { background: rgba(255, 255, 255, .24); color: #fff; }
.a20-v5 .decision-hint { position: relative; isolation: isolate; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin: -11px -4px; padding: 0; border: 0; background: none; vertical-align: middle; font-size: 11.5px; font-weight: 600; color: var(--or-ink); }
.a20-v5 .decision-hint::before { content: ''; position: absolute; inset: 11px 8px; z-index: -1; border: 1px dashed var(--or-3); border-radius: 6px; background: var(--or-soft); }
.a20-v5 .prototype-note { margin-top: 28px; text-align: center; font-size: 12px; color: var(--rf-ink-3); }
/* 판 짜임 — 한 줄 요약 · KPI 줄 · 카드 줄 */
.a20-v5 .intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.a20-v5 .lede { flex: 1 1 420px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--rf-ink-2); }
.a20-v5 .lede b { font-weight: 650; color: var(--rf-ink); }
.a20-v5 .kpis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.a20-v5 .kpi { min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--card-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .03); }
.a20-v5 .kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--rf-ink-2); }
.a20-v5 .kpi-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--soft-2); color: var(--rf-ink-2); }
.a20-v5 .kpi-ic .ic { width: 18px; height: 18px; }
.a20-v5 .kpi-num { margin: 4px 0 2px; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a20-v5 .kpi-num small { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.a20-v5 .kpi-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 12.5px; color: var(--rf-ink-3); }
.a20-v5 .delta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a20-v5 .delta.is-good { color: var(--kb-green); }
.a20-v5 .delta.is-bad { color: var(--late); }
.a20-v5 .delta.is-warn { color: var(--or-ink); }
.a20-v5 .delta.is-flat { color: var(--rf-ink-3); }
.a20-v5 .row-2, .a20-v5 .row-even, .a20-v5 .row-3 { display: grid; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.a20-v5 .row-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.a20-v5 .row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a20-v5 .row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a20-v5 .stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.a20-v5 .stack > .card:last-child { flex: 1; }
.a20-v5 .card { min-width: 0; padding: 18px 22px 22px; border: 1px solid var(--card-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .03); }
.a20-v5 .card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-height: 44px; }
.a20-v5 .card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.a20-v5 .card-head h2 b { margin-left: 4px; font-weight: 600; color: var(--rf-ink-3); }
.a20-v5 .card-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--rf-ink-3); }
.a20-v5 .card-sub b { color: var(--rf-ink-2); font-weight: 600; }
.a20-v5 h3.mini { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--rf-ink-2); }
.a20-v5 .nothing { margin: 0; padding: 16px 0; font-size: 13.5px; color: var(--rf-ink-3); }
.a20-v5 .ava { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft-2); color: var(--rf-ink-2); font-size: 13px; font-weight: 600; }
.a20-v5 .ava .ic { width: 16px; height: 16px; }
.a20-v5 .status { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.a20-v5 .status.is-red { background: var(--late-soft); color: var(--late); }
.a20-v5 .status.is-orange { background: var(--or-soft); color: var(--or-ink); }
.a20-v5 .status.is-blue { background: var(--kb-info-soft); color: var(--kb-info); }
.a20-v5 .status.is-green { background: var(--kb-green-soft); color: var(--kb-green); }
.a20-v5 .status.is-gray { background: var(--soft-2); color: var(--rf-ink-2); }
.a20-v5 .status.is-line { background: #fff; color: var(--rf-ink-2); box-shadow: inset 0 0 0 1px var(--rf-gray); }
.a20-v5 .seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; padding: 3px; border: 0; overflow-x: auto; border-radius: 999px; background: var(--soft-2); scrollbar-width: none; }
.a20-v5 .seg::-webkit-scrollbar { display: none; }
.a20-v5 .seg :is(button, a), .a20-v5 .range :is(button, a) { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: var(--rf-ink-2); white-space: nowrap; }
.a20-v5 .seg :is(button[aria-pressed=true], a[aria-current=true]), .a20-v5 .range :is(button[aria-pressed=true], a[aria-current=true]) { background: #fff; color: var(--rf-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(17, 17, 17, .12); }
.a20-v5 .seg :is(button, a).is-reset { color: var(--or-ink); }
.a20-v5 .seg.is-small { margin-bottom: 10px; }
.a20-v5 .seg.is-small button { font-size: 12.5px; }
.a20-v5 .range { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #e9e9ec; }
.a20-v5 .range :is(button, a) { min-width: 52px; justify-content: center; }
.a20-v5 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--back); }
.a20-v5 .dot.is-late { background: var(--late); }
.a20-v5 .dot.is-soon { background: var(--or); }
.a20-v5 .dot.is-blocked { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rf-ink-3); }
.a20-v5 .jump { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--or-ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.a20-v5 .jump .ic { width: 15px; height: 15px; }
.a20-v5 .detail-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin: 14px 0 0; padding: 6px 16px; border-radius: 14px; background: var(--soft); }
.a20-v5 .detail-line b { font-size: 14.5px; }
.a20-v5 .detail-line span { font-size: 13px; color: var(--rf-ink-2); }
.a20-v5 .detail-line .jump { margin-left: auto; }
/* 알림 줄 · 시간 줄 · 순위 목록 */
.a20-v5 .alerts { display: grid; gap: 8px; }
.a20-v5 .alert { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; background: var(--soft); }
.a20-v5 .alert.is-red { background: var(--late-soft); }
.a20-v5 .alert.is-orange { background: #fff5ee; }
.a20-v5 .alert.is-blue { background: #eff4fa; }
.a20-v5 .alert.is-green { background: #f0f7f2; }
.a20-v5 .alert-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--rf-ink-2); }
.a20-v5 .alert-ic .ic { width: 18px; height: 18px; }
.a20-v5 .alert.is-red .alert-ic { color: var(--late); }
.a20-v5 .alert.is-orange .alert-ic { color: var(--or-ink); }
.a20-v5 .alert.is-blue .alert-ic { color: var(--kb-info); }
.a20-v5 .alert.is-green .alert-ic { color: var(--kb-green); }
.a20-v5 .alert-text { min-width: 0; }
.a20-v5 .alert-text b { display: block; font-size: 14px; font-weight: 600; }
.a20-v5 .alert-text small { display: block; font-size: 12.5px; line-height: 1.4; }
.a20-v5 .alert > .ic, .a20-v5 .job-row > .ic, .a20-v5 .waits .ic:last-child, .a20-v5 .lane-open > .ic:last-child { width: 16px; height: 16px; color: var(--rf-ink-3); }
.a20-v5 .alert:hover { filter: brightness(.985); }
.a20-v5 .times li + li { border-top: 1px solid var(--hair); }
.a20-v5 .time-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px; }
.a20-v5 .time-text { min-width: 0; }
.a20-v5 .time-text b { display: block; font-size: 14px; font-weight: 500; }
.a20-v5 .time-text small { display: block; }
.a20-v5 .time-pill { padding: 6px 12px; border-radius: 999px; background: var(--soft-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a20-v5 .time-row.is-next .time-pill { background: var(--or); color: #fff; }
.a20-v5 .time-row:hover .time-text b { text-decoration: underline; text-underline-offset: 3px; }
.a20-v5 .first li + li a { border-top: 1px solid var(--hair); }
.a20-v5 .first a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; min-height: 58px; }
.a20-v5 .rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft-2); font-size: 12px; font-weight: 600; color: var(--rf-ink-2); }
.a20-v5 .what { min-width: 0; font-size: 14px; font-weight: 500; }
.a20-v5 .what small { display: block; }
.a20-v5 .first b { font-size: 17px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.a20-v5 .waits li + li a { border-top: 1px solid var(--hair); }
.a20-v5 .waits a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 54px; font-size: 14px; }
.a20-v5 .wait-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft-2); color: var(--rf-ink-2); }
.a20-v5 .wait-ic .ic { width: 17px; height: 17px; }
.a20-v5 .waits b { font-size: 17px; font-weight: 600; }
.a20-v5 .facts-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13.5px; }
.a20-v5 .facts-list li + li { border-top: 1px solid var(--hair); }
.a20-v5 .facts-list span { color: var(--rf-ink-2); }
.a20-v5 .facts-list b { font-weight: 600; white-space: nowrap; }
.a20-v5 .hbar { display: block; min-width: 0; height: 8px; border-radius: 4px; background: var(--soft-2); }
.a20-v5 .hbar i { display: block; height: 100%; min-width: 3px; border-radius: 4px; background: var(--or-3); }
.a20-v5 .ranked li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; align-items: center; gap: 10px; min-height: 36px; font-size: 13.5px; }
.a20-v5 .ranked b { font-weight: 600; text-align: right; }
.a20-v5 .ranked.is-words li { grid-template-columns: 132px minmax(0, 1fr) 32px; min-height: 44px; }
.a20-v5 .ranked.is-words small { display: block; }
/* 오늘 — 업무 줄마다 네모 한 칸이 일 한 건 */
.a20-v5 .spread { display: flex; gap: 3px; height: 8px; margin: 0 0 8px; }
.a20-v5 .spread i { min-width: 6px; border-radius: 4px; background: var(--back); }
.a20-v5 .spread .is-late { background: var(--late); }
.a20-v5 .spread .is-soon { background: var(--or); }
.a20-v5 .lane { padding-top: 6px; }
.a20-v5 .lane + .lane { margin-top: 6px; border-top: 1px solid var(--hair); }
.a20-v5 .lane-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 600; }
.a20-v5 .lane-open b { font-weight: 600; color: var(--rf-ink-3); }
.a20-v5 button.lane-open:hover span { text-decoration: underline; text-underline-offset: 3px; }
.a20-v5 .job-row { display: grid; grid-template-columns: minmax(0, 1fr) 156px 32px 124px 16px; align-items: center; gap: 14px; min-height: 46px; padding: 3px 10px; border-radius: 12px; transition: opacity .15s; }
.a20-v5 .job-row:hover { background: var(--soft); }
.a20-v5 .job-name { min-width: 0; font-size: 14px; color: var(--rf-ink-2); }
.a20-v5 .job-name small { margin-left: 6px; }
.a20-v5 .cells { display: flex; flex-wrap: wrap; gap: 3px; }
.a20-v5 .cells i { width: 10px; height: 10px; border-radius: 3px; background: var(--back); transition: opacity .15s; }
.a20-v5 .cells .is-late { background: var(--late); }
.a20-v5 .cells .is-soon { background: var(--or); }
.a20-v5 .job-count { font-size: 16px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.a20-v5 .job-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.a20-v5 .board[data-f=late] .job-row:not([data-flags~=late]), .a20-v5 .board[data-f=soon] .job-row:not([data-flags~=soon]), .a20-v5 .board[data-f=calm] .job-row:not([data-flags~=calm]), .a20-v5 .board[data-f=blocked] .job-row:not([data-flags~=blocked]) { opacity: .28; }
.a20-v5 .board[data-f=late] .cells i:not(.is-late), .a20-v5 .board[data-f=soon] .cells i:not(.is-soon), .a20-v5 .board[data-f=calm] .cells i:not(.is-calm) { opacity: .25; }
/* 주문 · 견적 — 단계 막대 · 반원 · 표 */
.a20-v5 .stages-wrap { display: flex; align-items: stretch; gap: 14px; }
.a20-v5 .stages { flex: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; min-width: 0; }
.a20-v5 .stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; min-height: 210px; padding: 8px 2px 10px; border: 0; border-radius: 14px; background: none; text-align: center; }
.a20-v5 .stage:hover { background: var(--soft); }
.a20-v5 .stage > b { font-size: 18px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.a20-v5 .stage-bar { display: block; width: min(34px, 70%); height: calc(var(--h) * 1.3px + 6px); border-radius: 9px 9px 4px 4px; background: #ececf0; box-shadow: inset 0 3px 0 var(--or-3); }
.a20-v5 .stage[aria-current=true] { background: var(--or-soft); }
.a20-v5 .stage[aria-current=true] .stage-bar { background: var(--or); box-shadow: none; }
.a20-v5 .stage-name { display: flex; align-items: flex-start; justify-content: center; min-height: 2.6em; font-size: 12.5px; line-height: 1.3; color: var(--rf-ink-2); }
.a20-v5 .stage-flag { display: block; min-height: 22px; }
.a20-v5 .stage[aria-current=true] .stage-name { color: var(--rf-ink); font-weight: 600; }
.a20-v5 .done { display: flex; flex-direction: column; justify-content: flex-end; flex: none; width: 122px; padding: 0 0 10px 16px; border-left: 1px dashed var(--rf-gray); }
.a20-v5 .done b { font-size: 22px; font-weight: 600; color: var(--rf-ink-3); }
.a20-v5 .done span { font-size: 13px; color: var(--rf-ink-2); }
.a20-v5 .done small { font-size: 12px; line-height: 1.5; }
.a20-v5 .stage-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 122px; gap: 14px; margin-top: 6px; }
.a20-v5 .stage-groups span { padding-top: 6px; border-top: 2px solid #ececf0; font-size: 12.5px; color: var(--rf-ink-3); }
.a20-v5 .stage-groups b { color: var(--rf-ink-2); }
.a20-v5 .stage-groups .is-done { border-top: 0; }
.a20-v5 .gauge { position: relative; max-width: 300px; margin: 6px auto 0; }
.a20-v5 .gauge svg { display: block; width: 100%; height: auto; }
.a20-v5 .gauge line { stroke: #e7e7eb; stroke-width: 2.4; stroke-linecap: round; }
.a20-v5 .gauge line.is-on { stroke: var(--or); }
.a20-v5 .gauge p { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; text-align: center; }
.a20-v5 .gauge p b { display: block; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.a20-v5 .gauge-foot { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.a20-v5 .gauge-foot span { display: grid; }
.a20-v5 .gauge-foot span:last-child { text-align: right; }
.a20-v5 .gauge-foot b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a20-v5 .table-wrap { margin: 0 -8px; overflow-x: auto; }
.a20-v5 table.orders { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a20-v5 .orders th { padding: 8px 12px; border-bottom: 1px solid var(--hair); font-size: 12.5px; font-weight: 500; text-align: left; color: var(--rf-ink-3); white-space: nowrap; }
.a20-v5 .orders td { padding: 2px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.a20-v5 .orders tbody tr { cursor: pointer; }
.a20-v5 .orders tbody tr:hover td { background: #fafafb; }
.a20-v5 .orders tbody tr.is-on td { background: var(--or-soft); }
.a20-v5 .orders tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--or); }
.a20-v5 .row-pick { min-height: 48px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; text-align: left; font-variant-numeric: tabular-nums; }
.a20-v5 .orders .who .ava { width: 28px; height: 28px; margin-right: 8px; font-size: 12px; vertical-align: middle; }
.a20-v5 .orders .when { color: var(--rf-ink-3); }
.a20-v5 .orders .amount { font-weight: 500; }
.a20-v5 .person { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.a20-v5 .person b { display: block; font-size: 14.5px; }
.a20-v5 .person small { display: block; }
.a20-v5 .facts { margin: 8px 0 0; }
.a20-v5 .facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.a20-v5 .facts dt { color: var(--rf-ink-3); }
.a20-v5 .facts dd { margin: 0; font-weight: 600; }
.a20-v5 .steps li, .a20-v5 .timeline li { position: relative; padding-left: 26px; }
.a20-v5 .steps li { min-height: 28px; font-size: 13.5px; color: var(--rf-ink-3); }
.a20-v5 .steps li::before, .a20-v5 .timeline li::before { content: ''; position: absolute; top: 7px; left: 3px; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--back); }
.a20-v5 .steps li::after, .a20-v5 .timeline li::after { content: ''; position: absolute; top: 17px; bottom: -7px; left: 7.25px; width: 1.5px; background: var(--hair); }
.a20-v5 .steps li:last-child::after, .a20-v5 .timeline li:last-child::after { display: none; }
.a20-v5 .steps li.is-done { color: var(--rf-ink-2); }
.a20-v5 .steps li.is-done::before { background: var(--or-3); }
.a20-v5 .steps li.is-done::after { background: var(--or-4); }
.a20-v5 .steps li.is-now { color: var(--rf-ink); font-weight: 600; }
.a20-v5 .steps li.is-now::before { background: var(--or); box-shadow: 0 0 0 4px var(--or-soft); }
.a20-v5 .steps small { margin-left: 8px; }
.a20-v5 .readout i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.a20-v5 .is-back { background: var(--back); }
.a20-v5 .is-front { background: var(--or); }
.a20-v5 .chart { min-height: 210px; }
.a20-v5 .pair-sum { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 12px; }
.a20-v5 .pair-sum div { display: grid; gap: 0; }
.a20-v5 .pair-sum dt { font-size: 12.5px; color: var(--rf-ink-3); }
.a20-v5 .pair-sum dt i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.a20-v5 .pair-sum dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a20-v5 .pair-sum dd small { margin-left: 3px; font-size: 12.5px; font-weight: 500; }
.a20-v5 .readout { display: flex; flex-wrap: wrap; gap: 2px 14px; min-height: 22px; font-size: 12.5px; color: var(--rf-ink-2); }
.a20-v5 .readout span { white-space: nowrap; }
.a20-v5 .readout b, .a20-v5 .readout-day { color: var(--rf-ink); font-weight: 600; }
.a20-v5 .readout .ratio { color: var(--or-ink); font-weight: 600; }
.a20-v5 .plot { display: block; max-width: 100%; touch-action: pan-y; }
.a20-v5 .plot .grid { stroke: var(--hair); stroke-width: 1; }
.a20-v5 .plot .axis { fill: var(--rf-ink-3); font-size: 11.5px; }
.a20-v5 .plot .column { fill: var(--soft); }
.a20-v5 .plot .bar-back { fill: var(--back); }
.a20-v5 .plot .bar-front { fill: var(--or); }
.a20-v5 .plot .is-partial { opacity: .5; }
.a20-v5 .plot .line { fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a20-v5 .plot .area { fill: var(--or); opacity: .08; }
.a20-v5 .plot .end { fill: var(--or); stroke: #fff; stroke-width: 2; }
.a20-v5 .plot .cursor { stroke: var(--rf-gray); stroke-width: 1; }
.a20-v5 .as-table { margin-top: 8px; border-top: 1px solid var(--hair); }
.a20-v5 .as-table summary { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--rf-ink-2); cursor: pointer; }
.a20-v5 .table-scroll { max-height: 264px; overflow: auto; }
.a20-v5 .as-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a20-v5 .as-table :is(th, td) { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.a20-v5 .as-table th { font-weight: 500; color: var(--rf-ink-3); }
.a20-v5 .as-table .num { text-align: right; }
.a20-v5 .ruler { display: flex; gap: 3px; margin: 6px 0 10px; }
.a20-v5 .ruler span { flex-basis: 0; min-width: 0; }
.a20-v5 .ruler b { display: block; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.a20-v5 .ruler .r0 b { background: var(--or-5); }
.a20-v5 .ruler .r1 b { background: var(--or-4); }
.a20-v5 .ruler .r2 b { background: var(--or-3); }
.a20-v5 .ruler small { display: block; margin-top: 4px; padding-left: 2px; font-size: 11.5px; line-height: 1.35; }
.a20-v5 .year { position: relative; height: 10px; margin: 10px 0 30px; border-radius: 5px; background: var(--soft-2); }
.a20-v5 .year span { display: block; height: 100%; border-radius: 5px; background: var(--or); }
.a20-v5 .year i { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--rf-ink-3); font-style: normal; }
.a20-v5 .year i small { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11.5px; }
/* 돈 — 오가는 길 */
.a20-v5 .roads { display: grid; gap: 4px; }
.a20-v5 .road { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 10px; min-height: 44px; padding: 8px 12px 9px; border: 0; border-radius: 14px; background: none; text-align: left; }
.a20-v5 button.road:hover { background: var(--soft); }
.a20-v5 .road[aria-current=true] { background: var(--or-soft); }
.a20-v5 .road-name { min-width: 0; font-size: 13.5px; color: var(--rf-ink); }
.a20-v5 .road-name small { display: block; font-size: 11.5px; }
.a20-v5 .road > b { font-size: 15.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a20-v5 .road > b small { margin-left: 2px; }
.a20-v5 .road-bar { grid-column: 1 / -1; display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--soft-2); }
.a20-v5 .road-bar i { display: block; height: 100%; border-radius: 3px; background: var(--or-3); }
.a20-v5 .road[aria-current=true] .road-bar i { background: var(--or); }
.a20-v5 .road.is-profit { margin: 6px 0 0; padding-top: 12px; border-top: 1px dashed var(--rf-gray); border-radius: 0; }
.a20-v5 .road.is-profit small { grid-column: 1 / -1; margin-top: 2px; line-height: 1.45; }
/* 물류 — 카고 묶음 카드 · 단계 목록 */
.a20-v5 .cargos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a20-v5 .cargo { display: grid; gap: 8px; min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--card-line); border-radius: 16px; background: #fff; text-align: left; }
.a20-v5 .cargo:hover { border-color: #dcdce2; }
.a20-v5 .cargo[aria-pressed=true] { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-soft); }
.a20-v5 .cargo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a20-v5 .cargo-code { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a20-v5 .cargo-code .ic { width: 17px; height: 17px; color: var(--or); }
.a20-v5 .path { --c: var(--or); position: relative; display: block; height: 30px; margin: 2px 12px 0; }
.a20-v5 .path.is-late { --c: var(--late); }
.a20-v5 .path::before, .a20-v5 .path-done { content: ''; position: absolute; top: 50%; left: 0; height: 0; border-top: 2px dashed #d6d6dc; }
.a20-v5 .path::before { right: 0; }
.a20-v5 .path-done { width: var(--p); border-top-color: var(--c); }
.a20-v5 .path .node { position: absolute; top: 50%; width: 10px; height: 10px; border: 2px solid #cfcfd6; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.a20-v5 .path .node.is-on { border-color: var(--c); background: var(--c); }
.a20-v5 .vehicle { position: absolute; top: 50%; left: var(--p); z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--c); border-radius: 50%; background: #fff; font-size: 14px; line-height: 1; font-family: 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; transform: translate(-50%, -50%); }
.a20-v5 .path-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--rf-ink-3); }
.a20-v5 .cargo-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; padding-top: 8px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--rf-ink-2); }
.a20-v5 .cargo-sub { margin: 0; font-size: 13px; color: var(--rf-ink-2); }
.a20-v5 .route-line { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.a20-v5 .route-line span { display: grid; }
.a20-v5 .route-line span:last-child { text-align: right; }
.a20-v5 .route-line b { font-size: 14.5px; }
.a20-v5 .route-line i { flex: 1; border-top: 2px dashed var(--or-3); }
.a20-v5 .timeline { margin-top: 14px; }
.a20-v5 .timeline li { min-height: 50px; }
.a20-v5 .timeline b { display: block; font-size: 13.5px; font-weight: 600; }
.a20-v5 .timeline small { display: block; }
.a20-v5 .timeline li.is-done::before { background: var(--or); }
.a20-v5 .timeline li.is-done::after { background: var(--or-4); }
.a20-v5 .timeline li.is-next::before { background: #fff; box-shadow: inset 0 0 0 2px var(--or); }
.a20-v5 .timeline li.is-late::before { background: var(--late); box-shadow: 0 0 0 4px var(--late-soft); }
.a20-v5 .timeline li.is-late b { color: var(--late); }
.a20-v5 .timeline li.is-later b { color: var(--rf-ink-3); font-weight: 500; }
.a20-v5 .box-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.a20-v5 .box-codes li { padding: 4px 10px; border-radius: 8px; background: var(--soft-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.a20-v5 .cargo-detail .card-sub { margin: 12px 0 0; }
.a20-v5 .stops { display: grid; gap: 2px; }
.a20-v5 .stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 34%) 36px 132px; align-items: center; gap: 14px; min-height: 48px; margin: 0; padding: 3px 10px; border: 0; border-radius: 12px; background: none; text-align: left; }
.a20-v5 button.stop:hover { background: var(--soft); }
.a20-v5 .stop[aria-pressed=true] { background: var(--or-soft); }
.a20-v5 .stop-name { font-size: 14px; font-weight: 500; }
.a20-v5 .stop-name small { margin-left: 6px; }
.a20-v5 .stop-bar { display: block; height: 8px; border-radius: 4px; background: var(--soft-2); }
.a20-v5 .stop-bar i { display: block; height: 100%; border-radius: 4px; background: var(--or-3); }
.a20-v5 .stop[aria-pressed=true] .stop-bar i { background: var(--or); }
.a20-v5 .stop > b { font-size: 16px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a20-v5 .stop.is-end { color: var(--rf-ink-3); }
.a20-v5 .stop.is-end .stop-bar { background: none; }
.a20-v5 .stop.is-end .stop-name { font-weight: 400; }
.a20-v5 .boxes { margin-top: 6px; }
.a20-v5 .boxes li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); font-size: 13.5px; color: var(--rf-ink-2); }
.a20-v5 .boxes .kcode { font-weight: 600; color: var(--rf-ink); font-variant-numeric: tabular-nums; }
.a20-v5 .where { display: grid; grid-template-columns: 70px repeat(var(--cols), minmax(0, 1fr)); gap: 12px 14px; align-items: center; font-size: 13.5px; }
.a20-v5 .where-head { font-size: 12px; color: var(--rf-ink-3); }
.a20-v5 .where-name { font-weight: 500; white-space: nowrap; }
.a20-v5 .where-cell { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 8px; }
.a20-v5 .where-cell i { display: block; height: 10px; min-width: 3px; border-radius: 3px 5px 5px 3px; background: var(--or-3); }
.a20-v5 .where-cell b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
/* 시스템 — 손님이 들어오는 길 (날짜 칸) */
.a20-v5 .heat { display: grid; gap: 2px; }
.a20-v5 .heat-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 96px; align-items: center; gap: 14px; min-height: 52px; padding: 4px 10px; border: 0; border-radius: 12px; background: none; text-align: left; }
.a20-v5 .heat-row:hover { background: var(--soft); }
.a20-v5 .heat-row[aria-current=true] { background: var(--or-soft); }
.a20-v5 .heat-name { font-size: 13.5px; font-weight: 500; }
.a20-v5 .heat-name small { display: block; }
.a20-v5 .heat-row > b { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.a20-v5 .heat-row > b small { margin-left: 2px; }
.a20-v5 .heat-cells { display: flex; gap: 2px; height: 24px; }
.a20-v5 .heat-cells i { flex: 1 1 0; min-width: 0; border-radius: 4px; background: var(--soft-2); }
.a20-v5 .heat-cells .h1 { background: var(--or-5); }
.a20-v5 .heat-cells .h2 { background: var(--or-4); }
.a20-v5 .heat-cells .h3 { background: var(--or-3); }
.a20-v5 .heat-cells .h4 { background: var(--or-2); }
.a20-v5 .heat-cells .h5 { background: var(--or); }
.a20-v5 .heat-cells.is-dense { gap: 1px; }
.a20-v5 .heat-cells.is-dense i { border-radius: 1px; }
.a20-v5 .heat-cells.is-today i:not(:last-child) { opacity: .3; }
.a20-v5 .heat-axis { display: flex; justify-content: space-between; margin: 4px 120px 12px 184px; font-size: 11.5px; color: var(--rf-ink-3); }

.a20-v5 .dashboard-info p { margin: 0; font-size: 12px; color: var(--rf-ink-3); }
.a20-v5 .masthead { top: var(--admin-header-height, 64px); }
.a20-v5 .views { overflow-x: auto; }
.a20-v5 .views a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 6px; }
.a20-v5 .seg a, .a20-v5 .range a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; }
.a20-v5 .seg a[aria-current=true], .a20-v5 .range a[aria-current=true] { background: #fff; box-shadow: 0 1px 3px #1112; font-weight: 600; }
.a20-v5 .kpi-num { font-size: clamp(18px, 2.2vw, 30px); white-space: normal; overflow-wrap: anywhere; }
.a20-v5 .chart svg, .a20-v5 .flow-line { display: block; width: 100%; height: auto; }
.a20-v5 .chart .gridline { stroke: var(--hair); }
.a20-v5 .chart .axis { fill: var(--rf-ink-3); font-size: 11px; }
.a20-v5 .chart .bar-back { fill: var(--back); }
.a20-v5 .chart .bar-front { fill: var(--or); }
.a20-v5 output { display: block; padding: 10px; font-size: 12px; background: var(--soft); border-radius: 8px; }
.a20-v5 .definitions { margin-top: 16px; }
.a20-v5 summary { min-height: 44px; cursor: pointer; padding-block: 10px; }
.a20-v5 .definitions p { margin-block: 10px; font-size: 13px; color: var(--rf-ink-2); }
.a20-v5 .dash-card { padding: 18px 22px; border: 1px solid var(--card-line); border-radius: 20px; box-shadow: none; background: #fff; }
.a20-v5 .dash-heading { border: 0; padding: 0 0 12px; }
.a20-v5 .dash-body { padding: 0; }
.a20-v5 .mode-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.a20-v5 .mode-table :is(th,td) { padding: 12px 8px; border-bottom: 1px solid var(--hair); text-align: right; }
.a20-v5 .mode-table th:first-child { text-align: left; }
.a20-v5 .facts-line { display: flex; justify-content: space-between; padding-block: 10px; }
.a20-v5 .cargo { min-height: 190px; }
.a20-v5 .cargo header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.a20-v5 .cargo p { font-size: 13px; color: var(--rf-ink-3); }
.a20-v5 .cargo.is-on { border-color: var(--or); background: var(--or-soft); }
.a20-v5 .ranked li { grid-template-columns: 70px minmax(0,1fr) auto; }
.a20-v5 .heat-row[aria-current=true] { background: var(--or-soft); }
@media (max-width: 1220px) { .a20-v5 .masthead { grid-template-columns: 1fr auto; gap: 12px; } .a20-v5 .views { grid-row: 2; grid-column: 1 / -1; justify-self: center; } }
@media (max-width: 1100px) { .a20-v5 .row-2, .a20-v5 .row-even, .a20-v5 .row-3 { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 960px) { .a20-v5 .masthead { position: static; } .a20-v5 .views { width: 100%; justify-self: stretch; } .a20-v5 .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
 .a20-v5 .masthead { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .a20-v5 .dashboard-info { display: flex; gap: 10px; justify-self: start; grid-row: 2; flex-wrap: wrap; }
 .a20-v5 .views { grid-row: 3; grid-column: 1; }
 .a20-v5 .kpis, .a20-v5 .row-2, .a20-v5 .row-even, .a20-v5 .row-3 { gap: 10px; margin-bottom: 10px; }
 .a20-v5 .card { padding: 14px 16px 18px; border-radius: 18px; }
 .a20-v5 .kpi { padding: 14px; border-radius: 18px; }
 .a20-v5 .kpi-head { font-size: 12px; }
 .a20-v5 .kpi-num { font-size: 23px; }
 .a20-v5 .kpi-foot { font-size: 11px; }
 .a20-v5 .kpi-ic { width: 30px; height: 30px; }
 .a20-v5 .job-row { grid-template-columns: minmax(0,1fr) auto 12px; grid-template-areas: 'name count chev' 'cells tags chev'; gap: 4px 8px; padding: 8px 0; }
 .a20-v5 .job-name { grid-area: name; }
 .a20-v5 .job-count { grid-area: count; }
 .a20-v5 .cells { grid-area: cells; }
 .a20-v5 .job-tags { grid-area: tags; }
 .a20-v5 .job-row > span:last-child { grid-area: chev; }
 .a20-v5 .job-name { font-size: 13px; }
 .a20-v5 .stages-wrap { flex-direction: column; }
 .a20-v5 .stages { grid-template-columns: minmax(0,1fr); }
 .a20-v5 .stage { display: grid; grid-template-columns: 94px minmax(0,1fr) 30px; gap: 10px; min-height: 46px; padding: 6px; }
 .a20-v5 .stage-name { grid-column: 1; grid-row: 1; min-height: 0; justify-content: start; }
 .a20-v5 .stage-bar { grid-column: 2; grid-row: 1; width: calc(var(--h) * 1%); height: 10px; }
 .a20-v5 .stage > b { grid-column: 3; grid-row: 1; font-size: 15px; }
 .a20-v5 .done { flex-direction: row; flex-wrap: wrap; gap: 8px; width: auto; padding: 10px 0; border-left: 0; }
 .a20-v5 .orders thead { display: none; }
 .a20-v5 .orders tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 8px; border-bottom: 1px solid var(--hair); gap: 4px; }
 .a20-v5 .orders td { padding: 0; border: 0; white-space: normal; font-size: 12px; }
 .a20-v5 .orders td:first-child { grid-column: 1 / -1; }
 .a20-v5 .row-pick { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
 .a20-v5 .cargo-grid { grid-template-columns: minmax(0,1fr); }
 .a20-v5 .heat-row { grid-template-columns: 100px minmax(0,1fr) auto; gap: 8px; }
 .a20-v5 .heat-name { font-size: 12px; }
 .a20-v5 .heat-row > b { font-size: 12px; }
 .a20-v5 .stop { grid-template-columns: 90px minmax(0,1fr) auto 45px; gap: 6px; padding-inline: 0; font-size: 12px; }
 .a20-v5 .stop-name { font-size: 12px; }
}

.a20-v5 [data-leg-detail] .facts-list li { gap: 12px; overflow-wrap: anywhere; }
.a20-v5 .stop[aria-current=true] { background: var(--or-soft); }
