:root {
  --bg: #F2F4F6; --card: #FFFFFF; --ink: #191F28; --ink-2: #4E5968; --ink-3: #8B95A1; --line: #E5E8EB; --field: #F2F4F6;
  --brand: #3D5AFE; --brand-soft: #E8ECFF; --brand-mid: #C4CDFF;
  --good: #12A150; --good-soft: #E3F6EB; --warn: #E8890C; --warn-soft: #FFF3E0; --bad: #E5484D; --bad-soft: #FDECEC;
  --tab-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #DCE1E8; }
body { font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; }
main { padding: 12px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }

/* ---------- 머리말 ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 14px; }
.store-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); flex: 0 0 44px; overflow: hidden; font-weight: 800; color: var(--brand); font-size: 18px; }
.store-logo img { width: 34px; height: 34px; object-fit: contain; }
.store { font-size: 20px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }  /* 날짜 + 긴 가게 이름 두 줄까지 */
.store small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--card); display: grid; place-items: center; border: none; cursor: pointer; font-size: 18px; flex: 0 0 38px; }
h2.screen-title { font-size: 24px; font-weight: 800; padding: 10px 2px 14px; display: flex; justify-content: space-between; align-items: center; }
.install-box { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.install-btn { font-weight: 700; }
.install-btn .ico, .play-btn .ico { margin-right: 6px; }
.install-hint { font-size: 12px; color: var(--ink-3); text-align: center; margin: -2px 0 6px; }
.btn.play-btn { color: var(--ink-3); background: #E9ECF1; box-shadow: none; }
.soon-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #E07A1F; background: #FFF1E0; border-radius: 999px; padding: 2px 8px; }
.install-steps .row { border: none; padding: 8px 0; }
.step-no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-right: 10px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FFF4E5; color: #8A4B00; border-radius: 14px; padding: 10px 12px 10px 14px; margin: 4px 0 10px; font-size: 14px; }
.demo-bar .btn { flex: 0 0 auto; }
.subbar { display: flex; align-items: center; gap: 8px; padding: 8px 0 14px; }
.subbar h2 { font-size: 20px; font-weight: 800; }
.back { width: 36px; height: 36px; border-radius: 12px; border: none; background: var(--card); font-size: 18px; cursor: pointer; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.card h3 { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 .more { font-size: 13px; font-weight: 500; color: var(--ink-3); background: none; border: none; cursor: pointer; white-space: nowrap; }
/* 작은 글자 버튼도 손가락으로 누르기 쉽게: 보이는 자리는 그대로, 누르는 영역만 넓게 (44px 가까이) */
.card h3 button.more { padding: 12px 8px; margin: -12px -8px; }
.muted { color: var(--ink-3); font-size: 13px; }
.hero-card { position: relative; overflow: hidden; }
.hero-card > *:not(.hero-mark) { position: relative; }
.hero-mark { position: absolute; top: -14px; right: -22px; width: 150px; opacity: .1; pointer-events: none; }
.hero-label { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.hero { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; margin: 2px 0 6px; }
.hero.empty { font-size: 22px; letter-spacing: 0; color: var(--ink-3); margin: 10px 0; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.delta.up { color: var(--good); background: var(--good-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta span { font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid2 .card { margin: 0; padding: 16px; }
.mini-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mini-val { font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.big-val { font-size: 28px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.5px; }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row.tap { cursor: pointer; }
.grow { flex: 1; min-width: 0; }
.title { font-size: 14px; font-weight: 600; }
.sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.val { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev { color: var(--ink-3); }
.chip-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: 0 0 38px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; white-space: nowrap; flex: 0 0 auto; }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.bad { color: var(--bad); background: var(--bad-soft); }
.tag.good { color: var(--good); background: var(--good-soft); }
.tag.brand { color: var(--brand); background: var(--brand-soft); }
.tag.gray { color: var(--ink-2); background: var(--field); }
.empty-box { text-align: center; padding: 22px 8px; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.note { font-size: 12px; color: var(--ink-3); line-height: 1.55; padding: 0 4px 12px; }

/* ---------- 버튼 ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.gray { background: var(--field); color: var(--ink); }
.btn.white { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.btn.small { height: 38px; font-size: 13px; border-radius: 11px; padding: 0 12px; }
.btn.block { width: 100%; }
.btn:active { transform: scale(.98); }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.actions .import-any { cursor: pointer; }
.actions .btn { flex-direction: column; height: 70px; gap: 4px; font-size: 11.5px; background: var(--card); color: var(--ink-2); padding: 0 4px; line-height: 1.25; text-align: center; }
.actions .btn .ico { font-size: 20px; line-height: 1; }

/* ---------- 차트 ---------- */
.chart { position: relative; margin-top: 16px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s; }
.tooltip span { display: block; font-weight: 400; opacity: .7; font-size: 11px; }

/* ---------- 세그먼트 탭 ---------- */
.seg { display: flex; background: #E9ECEF; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 8px 0; border-radius: 9px; color: var(--ink-3); background: none; border: none; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- 근무표 ---------- */
.role { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 10px 0 2px; }
.role span { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.shift + .role { border-top: 1px solid var(--line); padding-top: 10px; }
.shift { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: var(--ink-2); background: #EEF1F4; flex: 0 0 32px; overflow: hidden; white-space: nowrap; }
.bar-track { flex: 1; height: 24px; background: var(--field); border-radius: 8px; position: relative; }
.bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: var(--brand-soft); display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; min-width: 8px; }
.bar-fill.now { background: var(--brand); color: #fff; }
.hours { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin: 4px 0 0 42px; }
.daynav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.daynav b { font-size: 15px; }
.daynav button { width: 36px; height: 36px; border-radius: 12px; border: none; background: var(--card); font-size: 16px; cursor: pointer; }
.week-day { padding: 10px 0; }
.week-day + .week-day { border-top: 1px solid var(--line); }
.week-day .wd-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.week-day .wd-head.today { color: var(--brand); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { font-size: 11px; font-weight: 600; padding: 4px 7px; border-radius: 8px; background: var(--field); color: var(--ink-2); cursor: pointer; }
.pill b { font-weight: 700; color: var(--ink); }

/* 기본 스케줄과 다른 근무 (대타·시간 변경·추가) / 빠진 사람 */
.mark-tag { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--warn); padding: 2px 6px; border-radius: 6px; vertical-align: 1px; }
.bar-fill.changed { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.bar-fill.changed.now { background: var(--warn); color: #fff; }
.mark-line { font-size: 11px; color: var(--warn); font-weight: 700; margin: 0 0 4px 42px; }
.shift.missing { color: var(--warn); font-size: 13px; background: var(--warn-soft); border-radius: 10px; padding: 4px 6px; margin: 2px 0; box-shadow: inset 0 0 0 1.5px var(--warn); }
.shift.missing .avatar { opacity: .6; }
.shift.missing s { color: var(--warn); }
.pill.missing s { color: var(--ink-3); }
.pill.changed { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.pill.changed b { color: var(--warn); }
.pill.changed i { font-style: normal; font-size: 10px; font-weight: 800; }
.pill.missing { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }

/* ---------- 기본 스케줄 표 ---------- */
/* 폰에서 시간(10:40)이 칸 밖으로 안 나가게: 카드 여백을 조금 쓰고 칸 사이를 좁힘 */
.tgrid-wrap { margin: 10px -10px 0; }
.tgrid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)) 30px; gap: 2px; align-items: center; margin-bottom: 3px; }
/* 요일 줄은 아래로 내려도 화면 위에 붙어 있게 */
.tgrid-head { position: sticky; top: 0; z-index: 3; background: var(--card); margin: 0 -6px 3px; padding: 4px 6px; box-shadow: 0 6px 6px -6px rgba(0,0,0,.12); }
.tgrid-head div { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); padding: 4px 0; }
.tgrid-head .wkend, .wd.wkend span { color: var(--bad); }
.tgrid-role { font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 10px 0 4px; padding-left: 8px; border-left: 3px solid var(--rc); }
/* 이름은 잘리지 않게 두 줄까지 접어서 (긴 영어 이름도 알아보게) */
.tname { font-size: 11px; font-weight: 700; line-height: 1.15; letter-spacing: -.2px; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcell { height: 42px; border-radius: 9px; border: none; background: var(--field); color: var(--ink-3); font-size: 11px; font-weight: 700; line-height: 1.2; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.tcell.on { background: var(--brand-soft); color: var(--brand); }
.tcell:active { transform: scale(.95); }
.thrs { font-size: 11px; font-weight: 700; color: var(--ink-2); text-align: right; }
.thrs.over { color: var(--bad); }
.tgrid-head small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); }
.tgrid-head .today { color: var(--brand); background: var(--brand-soft); border-radius: 8px; }
.tgrid-head .today small { color: var(--brand); }
.tcell { position: relative; }
.tcell.mk { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.tcell i { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: var(--warn); padding: 0 4px; border-radius: 5px; line-height: 13px; white-space: nowrap; }
.tcell sup { font-size: 8px; }
.tcell.miss s { opacity: .75; }
.tgrid-foot div { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); padding-top: 6px; border-top: 1px solid var(--line); }
.tgrid-foot div:first-child { text-align: left; }
.wd-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 6px 0 8px; }
.wd input { display: none; }
.wd span { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--field); font-size: 14px; font-weight: 700; cursor: pointer; }
.wd input:checked + span { background: var(--brand); color: #fff; }
.wd-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-quick .chip, .slot-chip { background: var(--field); height: 32px; }
.slot-chip.on { background: var(--brand); color: #fff; }

/* ---------- 팁 ---------- */
.tip-split { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; margin: 12px 0 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }

/* ---------- 리스 ---------- */
.lease { background: linear-gradient(135deg, #3D5AFE 0%, #6C7FFF 100%); color: #fff; cursor: pointer; }
.lease .muted { color: rgba(255,255,255,.82); }
.lease .tag { background: rgba(255,255,255,.2); color: #fff; }
.dday { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 2px; }
.progress { height: 8px; background: rgba(255,255,255,.3); border-radius: 4px; margin: 14px 0 8px; overflow: hidden; }
.progress > div { height: 100%; background: #fff; border-radius: 4px; }
.alert { display: flex; gap: 10px; align-items: flex-start; }
.alert .t { font-size: 14px; font-weight: 700; }
.alert .s { font-size: 12px; margin-top: 3px; color: #9A5B00; line-height: 1.5; }

/* ---------- 일정 ---------- */
.event { display: flex; gap: 12px; padding: 11px 0; align-items: center; cursor: pointer; }
.event + .event { border-top: 1px solid var(--line); }
.date-box { width: 44px; flex: 0 0 44px; text-align: center; }
.date-box b { display: block; font-size: 18px; font-weight: 800; }
.date-box span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: 0 0 26px; cursor: pointer; display: grid; place-items: center; font-size: 13px; color: transparent; }
.check:hover { border-color: var(--good); color: var(--good); }
.event.done .title { text-decoration: line-through; color: var(--ink-3); }

/* ---------- 장부 ---------- */
.pl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.pl-row span { color: var(--ink-2); }
.pl-row small { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.pl-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-row.minus b { color: var(--ink-2); font-weight: 600; }
.pl-row.total { border-top: 2px solid var(--ink); font-size: 16px; padding-top: 10px; }
.pl-row.total span { color: var(--ink); font-weight: 700; }
.pl-row.total b { font-size: 20px; }
/* GST·PST */
.tax-more { margin: 2px 0 14px; }
.tax-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--brand); padding: 6px 0 10px; }
.tax-period { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tax-period b { flex: 1; text-align: center; font-size: 16px; }
.tax-period button { width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--card); font-size: 18px; cursor: pointer; }
.tax-src { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.filing { margin: 12px 0 4px; }
.filing .pl-row b .btn { margin-left: 6px; height: 28px; padding: 0 10px; font-size: 12px; }
.line-no { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; background: var(--field); font-size: 12px; text-align: center; color: var(--ink); }
.filing-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.date-chips { display: flex; gap: 6px; margin: -6px 0 12px; }
/* 백업 불러오기 비교 */
.restore-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.restore-col { background: var(--field); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.restore-col b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
/* 근무표: 이름 버튼, 날짜별 목록, 요일 고르기 */
button.tname { background: none; border: none; padding: 0; font-family: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.day-list { display: flex; flex-direction: column; gap: 10px; }
.dl-day { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.dl-day.today { border-color: var(--brand); }
.dl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dl-head b { flex: 1; font-size: 15px; }
.dl-head span { font-size: 13px; color: var(--ink-3); }
.dl-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 2px; border: none; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.dl-row.mk { background: var(--warn-soft); border-radius: 8px; }
.dl-row.miss { color: var(--ink-3); }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line); }
.dl-name { flex: 1; font-weight: 600; font-size: 15px; }
.dl-time { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); }
.wd-picks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd-pick { display: block; cursor: pointer; }
.wd-pick input { position: absolute; opacity: 0; pointer-events: none; }
.wd-pick span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: var(--field); font-weight: 700; }
.wd-pick.wkend span { color: var(--brand); }
.wd-pick input:checked + span { background: var(--brand); color: #fff; }
.wd-pick input:focus-visible + span { outline: 2px solid var(--ink); }
/* 급여: 전 직원 한 번에 */
.bulk-row { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bulk-row.off { opacity: .55; }
.bulk-row input { width: 20px; height: 20px; }
.bulk-row .bn, .bulk-row .bv { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; }
.bulk-row .bv { text-align: right; font-variant-numeric: tabular-nums; }
.bulk-row small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
/* 홈: 빈 매출 날, 오늘 마감 */
.miss-line { background: var(--warn-soft); }
.miss-line .title { font-size: 15px; }
.miss-line .btn.small { margin-left: 4px; }
.close-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.close-step { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.close-step b { font-size: 14px; }
.close-step span { font-size: 12px; color: var(--ink-3); }
.close-step.ok { background: var(--good-soft); border-color: transparent; }
.close-step.ok b { color: var(--good); }
.close-card.done h3 .more { color: var(--good); font-weight: 700; }
.tip-badge { display: block; font-size: 11px; color: var(--brand); font-weight: 700; margin-top: 2px; }
/* 채널별 매출 */
.ch-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; background: var(--field); }
.ch-stack i { display: block; height: 100%; }
.ch-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; flex: none; vertical-align: middle; }
.ch-dow { overflow-x: auto; margin-top: 8px; }
.ch-dow table { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.ch-dow th, .ch-dow td { padding: 6px 2px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.ch-dow thead th { border-top: none; color: var(--ink-3); font-weight: 600; text-align: right; }
.ch-dow tbody th { text-align: left; font-weight: 600; color: var(--ink-2); }
.ch-dow .wkend { color: var(--brand); }
.ch-bars .vbar b { display: flex; flex-direction: column; width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; overflow: hidden; }
.ch-bars .vbar b i { display: block; width: 100%; max-width: none; border-radius: 0; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.hbar { display: grid; grid-template-columns: 112px 1fr 56px; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.hbar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 14px; }
.hbar-fill { height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hbar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbar.wide { grid-template-columns: minmax(0, 1.25fr) 1fr 62px; }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 14px; }
.vbar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; cursor: default; }
.vbar i { display: block; width: 100%; max-width: 28px; background: var(--brand-mid); border-radius: 4px 4px 0 0; }
.vbar.peak i { background: var(--brand); }
.vbar span { font-size: 10px; color: var(--ink-3); font-weight: 600; }
.stars { color: #F5B400; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
.list-date { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 12px 0 2px; }
.list-date + .row { border-top: none; }
.clip { font-size: 13px; cursor: zoom-in; }
.receipt-box { display: flex; gap: 12px; align-items: center; }
.receipt-preview { width: 84px; height: 84px; border-radius: 14px; background: var(--field); display: grid; place-items: center; overflow: hidden; flex: 0 0 84px; font-size: 26px; }
.receipt-preview img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--field) center/cover no-repeat; flex: 0 0 46px; }
.receipt-big { max-height: 260px; overflow: hidden; border-radius: 14px; background: var(--field); margin-bottom: 12px; display: flex; justify-content: center; }
.receipt-big img { max-width: 100%; max-height: 260px; object-fit: contain; }
.ocr-status { font-size: 12px; font-weight: 600; margin-top: 8px; line-height: 1.5; }
.ocr-status:empty { display: none; }
.ocr-status.busy { color: var(--brand); }
.ocr-status.ok { color: var(--good); }
.ocr-status.bad { color: var(--bad); }
.field input.autofilled, .field select.autofilled, input.autofilled { background: var(--brand-soft) !important; }
.viewer { position: fixed; inset: 0; background: #0B0D10; z-index: 80; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; }
.viewer img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.viewer-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.viewer-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,22,26,.72); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.viewer-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; pointer-events: none; white-space: nowrap; }
.cropper { position: fixed; inset: 0; background: #0B0D10; z-index: 85; display: flex; flex-direction: column; }
.crop-stage { flex: 1; position: relative; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.crop-stage img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); touch-action: none; }
.crop-box i { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); touch-action: none; cursor: grab; }
.crop-box i[data-h=tl] { left: -14px; top: -14px; } .crop-box i[data-h=tr] { right: -14px; top: -14px; }
.crop-box i[data-h=bl] { left: -14px; bottom: -14px; } .crop-box i[data-h=br] { right: -14px; bottom: -14px; }
.crop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.8); font-size: 13px; }
.shoot-tip { font-size: 12px; color: var(--ink-2); background: var(--warn-soft); border-radius: 10px; padding: 8px 10px; margin-top: 10px; line-height: 1.5; }
.photo-view { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 70; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.photo-view img { max-width: 100%; max-height: 100%; border-radius: 12px; }

.est-tag { font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.cta { display: flex; align-items: center; gap: 12px; cursor: pointer; background: linear-gradient(135deg, #E8ECFF, #F4F6FF); }
.cta .t { font-size: 15px; font-weight: 700; }
.cta .s { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

/* ---------- 재무제표 올리기 ---------- */
.check-note { font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 12px; margin-top: 8px; line-height: 1.5; }
.check-note.ok { color: var(--good); background: var(--good-soft); }
.check-note.bad { color: var(--bad); background: var(--bad-soft); }
.imp-row { padding: 12px 0; }
.imp-row + .imp-row { border-top: 1px solid var(--line); }
.imp-row.off { opacity: .45; }
.imp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.imp-fields { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 6px; }
.imp-fields select, .imp-fields input { height: 40px; border-radius: 10px; border: 1.5px solid transparent; background: var(--field); padding: 0 8px; font-size: 13px; min-width: 0; outline: none; }
.imp-fields input { text-align: right; font-variant-numeric: tabular-nums; }
.imp-fields select:focus, .imp-fields input:focus { border-color: var(--brand); background: #fff; }
.imp-preview { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 6px; text-align: right; }

/* ---------- 커뮤니티 ---------- */
.kakao-card { display: flex; align-items: center; gap: 12px; background: #FEE500; color: #191919; }
.kakao-card .kakao-ico { width: 42px; height: 42px; border-radius: 14px; background: rgba(0,0,0,.08); display: grid; place-items: center; font-size: 22px; flex: 0 0 42px; }
.kakao-card .t { font-size: 15px; font-weight: 800; }
.kakao-card .s { font-size: 12px; color: rgba(25,25,25,.7); margin-top: 2px; }
.search input { width: 100%; height: 46px; border-radius: 14px; border: none; background: var(--card); padding: 0 16px; font-size: 15px; margin-bottom: 10px; outline: none; }
.search input:focus { box-shadow: 0 0 0 2px var(--brand); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 12px; border-radius: 17px; border: none; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }
.post-row { padding: 13px 0; cursor: pointer; }
.post-row + .post-row { border-top: 1px solid var(--line); }
.post-meta { display: flex; gap: 6px; margin-bottom: 6px; }
.post-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.post-body { font-size: 14px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: keep-all; }
.author { font-weight: 600; color: var(--ink-2); }
.badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.badge.maker { background: var(--ink); color: #fff; }
.badge.owner { background: var(--good-soft); color: var(--good); }
.answer { padding: 12px 0; border-top: 1px solid var(--line); }
.answer-box { display: grid; gap: 8px; margin-top: 12px; }
.answer-box textarea, .field textarea { width: 100%; border-radius: 12px; border: 1.5px solid transparent; background: var(--field); padding: 12px 14px; font-size: 15px; line-height: 1.5; outline: none; resize: vertical; font-family: inherit; height: auto; }
.answer-box textarea:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.vendor-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.vendor-row + .vendor-row { border-top: 1px solid var(--line); }
.vendor-row .rank { width: 28px; text-align: center; font-size: 16px; font-weight: 800; color: var(--ink-3); flex: 0 0 28px; }
.like-btn { height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.like-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 더보기 ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; background: none; border: none; cursor: pointer; }
.menu-item .chip-ico { width: 46px; height: 46px; border-radius: 15px; font-size: 21px; }
.menu-item.soon { opacity: .45; }
.store-banner { display: flex; justify-content: center; align-items: center; background: #FAFAFB; border-radius: 16px; padding: 12px; margin: 12px 0 2px; }
.store-banner img { max-height: 56px; max-width: 70%; object-fit: contain; }
.maker-head { display: flex; align-items: center; gap: 14px; }
.maker-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.12); flex: 0 0 56px; }
.maker-name { font-size: 18px; font-weight: 800; }
.maker-role { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.contact-row .btn { flex-direction: column; height: 64px; gap: 4px; font-size: 12px; }
.contact-row .btn .ico { font-size: 20px; line-height: 1; }
.version { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 시작 화면 ---------- */
.welcome { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; gap: 14px; }
.welcome .logo-mark { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 6px 16px rgba(238, 33, 39, .16), 0 1px 3px rgba(0, 0, 0, .06); }
.welcome h1 { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; }
.welcome p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.welcome .btns { display: grid; gap: 10px; margin-top: 16px; }
.google-btn { gap: 10px; border: 1.5px solid var(--line); box-shadow: none; }

/* ---------- 탭바 ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); font-weight: 600; flex: 1; padding: 6px 0; }
.tab.on { color: var(--ink); }
.tab svg { width: 22px; height: 22px; }
.tab { white-space: nowrap; }
.tab.long { flex: 1.6; font-size: 10.5px; letter-spacing: -.3px; }  /* "팁 계산·스케줄"처럼 긴 이름은 칸을 넓게 */
.tab { position: relative; }
.tab-badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }  /* 커뮤니티 새 답변 */
.share-link { background: var(--bg); border-radius: 12px; padding: 12px; font-size: 14px; word-break: break-all; user-select: all; color: var(--ink-2); }  /* 직원용 근무표 링크 */
.made-by { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; color: var(--ink-3); font-size: 12px; letter-spacing: .2px; }
.made-by img { height: 44px; width: auto; opacity: .9; }

/* ---------- 입력 창 (아래에서 올라옴) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%); transition: transform .22s ease; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.field input, .field select, .field textarea { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid transparent; background: var(--field); padding: 0 14px; font-size: 16px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--brand); background: #fff; }
.field textarea { height: auto; padding: 12px 14px; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field input[type=date] { min-width: 0; padding: 0 10px; font-size: 15px; }
.check-field { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin: 4px 0 12px; cursor: pointer; }
.check-field input { width: 20px; height: 20px; accent-color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px); transform: translateX(-50%); background: rgba(25,31,40,.92); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 12px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; z-index: 60; }
.toast.show { opacity: 1; }

@media (min-width: 520px) {
  .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; overflow: clip; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
  .tabbar { bottom: 24px; border-radius: 0 0 28px 28px; }
}

/* ---------- 읽기 쉽게 (50~60대 사장님 기준): 글씨 크기·대비·누르는 영역 44px ---------- */
:root { --ink-3: #6B7684; }  /* 보조 글자색: 흰 바탕 대비 약 4.7:1 (WCAG AA) */
.sub, .note, .field-hint, .store small, .version, .install-hint, .made-by, .list-date { font-size: 13px; }
.tag { font-size: 12px; }
.tgrid-wrap { container-type: inline-size; }
.tcell { font-size: 11.5px; font-size: clamp(9.5px, 3.3cqw, 12px); letter-spacing: -.4px; white-space: nowrap; }  /* 화면이 좁으면 시간 글씨를 살짝 줄여 칸 안에 */
.mark-tag { font-size: 11px; }
.tgrid-head small, .hours, .vbar span, .date-box span, .tgrid-foot div, .pl-row small { font-size: 11px; }
.back, .daynav button { width: 44px; height: 44px; }
.chip, .slot-chip, .wd-quick .chip { height: 38px; }
.like-btn { height: 42px; }
.check { width: 32px; height: 32px; flex-basis: 32px; position: relative; }
.check::after { content: ''; position: absolute; inset: -8px; }  /* 보이는 동그라미는 그대로, 누르는 영역만 크게 */
.toast { white-space: normal; max-width: calc(100% - 40px); width: max-content; text-align: center; font-size: 14px; line-height: 1.45; }

/* 급여 계산: 맨 위 실수령액 한 줄 */
.pay-top { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pay-top span { font-weight: 700; color: var(--brand); }
.pay-top b { font-size: 24px; color: var(--brand); }
.pay-top small { flex-basis: 100%; color: var(--ink-2); font-size: 13px; }
.pay-top a { color: var(--brand); font-weight: 700; }
/* 큰 글씨 모드 (더보기 → 설정). 50~60대 사장님용 */
html.big body { zoom: 1.12; }
/* 새 가게 시작 체크리스트 */
.onboard .step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.onboard .step:first-of-type { border-top: none; }
.onboard .num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.onboard .step.done .num { background: var(--good); }
.onboard .step.done .title { color: var(--ink-3); text-decoration: line-through; }
/* 커뮤니티 관리자(만든이) 도구 */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.is-hidden { opacity: .55; }
.card.is-hidden { opacity: 1; }
/* 언어 바꾸기 버튼 (홈 맨 위 · 첫 화면 오른쪽 위) */
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid #DCE3FF; background: #fff; color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(25,31,40,.06); }
.lang-btn svg { flex: none; }
.lang-btn:active { background: var(--brand-soft); }
.welcome { position: relative; }
.welcome-lang { position: absolute; top: 16px; right: 16px; }.lang-btn.compact { padding: 0 10px; gap: 4px; }

/* 차량 운행일지 */
.mile-soon { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #EEF2FF, #F5F0FF); }
.mile-soon .t { font-weight: 700; font-size: 15px; }
.mile-soon .s { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.mile-quick { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 8px; cursor: pointer; font: inherit; min-height: 44px; }
.mile-quick span { font-weight: 700; font-size: 15px; color: var(--ink); }
.mile-quick small { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.mile-quick:active { background: var(--brand-soft); }
/* 아래 탭 고르기 */
.tab-slot { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tab-slot select { flex: 1; min-width: 0; }
.tab-slot .btn.small { width: 44px; padding: 0; flex: none; }
.tab-no { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
/* 타임라인 가져오기 */
.mi-how { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.mi-how summary { cursor: pointer; color: var(--brand); font-weight: 600; min-height: 32px; }
.mi-how ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.mi-row { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); opacity: .55; }
.mi-row:first-child { border-top: none; }
.mi-row.on { opacity: 1; }
.mi-check input { width: 22px; height: 22px; margin-top: 2px; }
.mi-route { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mi-end { display: flex; align-items: center; gap: 8px; }
.mi-lab { width: 34px; flex: none; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.mi-end .mi-sel { flex: 1; min-width: 0; }
.mi-sel { height: 40px; padding: 0 10px; font-size: 14px; border-radius: 10px; max-width: 100%; }
/* PC 왼쪽 메뉴에만 쓰는 부분 (폰 아래 탭에서는 숨김, desktop.css가 보여 줌) */
.nav-head, .nav-tools, .nav-foot { display: none; }
.tab-label { display: block; }
/* 다른 기기(폰)에서 찍은 영수증: 사진은 그 기기에만 있다 */
.rv-thumb.missing { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink-3); text-align: center; line-height: 1.2; background-image: none; border: 1px dashed var(--line); }
.receipt-big.missing { cursor: default; }
.photo-missing { padding: 26px 16px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.photo-missing small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 4px; }/* 파일 끌어다 놓기 (js/desk.js) */
.drop-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(61,90,254,.12); display: none; place-items: center; pointer-events: none; }
.drop-overlay.on { display: grid; }
.drop-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 48px; border-radius: 24px; border: 2.5px dashed var(--brand); background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.15); color: var(--ink); }
.drop-box .drop-ico { font-size: 40px; }
.drop-box b { font-size: 20px; }
.drop-box span { font-size: 14px; color: var(--ink-2); }/* PC 전용 버튼 (인쇄 등): 폰에서는 숨김, desktop.css가 보여 줌 */
.pc-only { display: none !important; }
/* 인쇄 (js/desk.js U.printCanvas): 화면 대신 그림 한 장만 */
#printArea { display: none; }
@media print {
  html.printing body > *:not(#printArea) { display: none !important; }
  html.printing, html.printing body { background: #fff !important; }
  html.printing #printArea { display: block; }
  html.printing #printArea img { display: block; width: 100%; height: auto; }
}/* 입력 창 ✕ 닫기: PC에서만 (desktop.css). 영수증 보관함 PC 옆 창 자리 안내 */
.sheet-x { display: none; }
.rv-detail-empty { display: none; }/* 장부 지출 표 보기 칸: PC 넓은 화면에서만 (desktop.css) */
.xc, .exp-head { display: none; }/* 그냥 Ctrl+P로 인쇄할 때: 메뉴·알림·입력 창은 빼고 화면 내용만 */
@media print {
  html:not(.printing) .tabbar, html:not(.printing) .toast, html:not(.printing) .sheet-wrap, .drop-overlay { display: none !important; }
  html:not(.printing) .app { padding-left: 0 !important; max-width: none; margin: 0; box-shadow: none; }
}/* 숨김 표시(hidden)가 display 규칙에 지지 않게 (지출 찾기 등) */
[hidden] { display: none !important; }
/* 장부 지출 찾기·종류·정렬 */
.exp-tools { display: flex; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.exp-tools input { flex: 1 1 160px; min-width: 0; height: 40px; border-radius: 10px; border: 1.5px solid transparent; background: var(--field); padding: 0 12px; font-size: 14px; outline: none; }
.exp-tools input:focus { border-color: var(--brand); background: #fff; }
.exp-tools select { height: 40px; border-radius: 10px; border: none; background: var(--field); padding: 0 8px; font-size: 13px; max-width: 46%; }
.exp-bulk { align-items: center; gap: 8px; padding: 10px 12px; margin: 6px 0; border-radius: 12px; background: var(--brand-soft); font-size: 14px; font-weight: 700; color: var(--brand); }
.exp-bulk select { height: 36px; border-radius: 10px; border: none; padding: 0 8px; font-size: 13px; }
.exp-sort { border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.exp-sort.on { color: var(--brand); }
/* 월 마감 체크리스트 */
.chk-dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--good); }
.chk-dot.warn { background: var(--warn); }
.closing-btns { display: flex; gap: 8px; margin-top: 12px; }
.closing-btns .btn { flex: 1; }/* 기본 스케줄 여러 칸 고르기 */
.tsel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 14px; }
.tsel-bar b { color: var(--brand); margin-right: 2px; }
.tsel-bar .btn.small { height: 36px; }
.tcell.sel { box-shadow: inset 0 0 0 2.5px var(--brand); background: #E3E9FF; color: var(--brand); }/* 매출 달력: 날짜 밑에 그날 매출 (진할수록 많이 판 날). 폰은 8.2K처럼 짧게, PC는 $8,213 */
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head div { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.cal-head .wkend { color: var(--bad); }
.cal-cell { min-height: 54px; border: none; border-radius: 10px; background: var(--field); padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px; font: inherit; color: var(--ink); cursor: pointer; }
.cal-cell.blank { background: none; cursor: default; }
.cal-cell.future { background: none; opacity: .35; cursor: default; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-cell.closed .cal-v { color: var(--ink-3); font-weight: 600; }
.cal-d { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-cell.wkend .cal-d { color: var(--bad); }
.cal-v { font-size: 12.5px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-full { display: none; }.cal-cell.hot .cal-v, .cal-cell.hot .cal-d { color: #fff; }
/* 은행 내역: 거래처 세금 방식 (없음 / GST만 / GST+PST) */
.tax-mode .chip { background: var(--field); height: 32px; padding: 0 10px; font-size: 12px; }
.tax-mode .chip.on { background: var(--ink); color: #fff; }

/* 가맹점 사이트 바로가기 */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-btn { height: 48px; font-size: 14px; gap: 6px; text-decoration: none; justify-content: center; }

/* 더보기: 설명서 */
.guide-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.guide-card .title { font-weight: 700; }

/* 팁 계산·스케줄 탭: 6칸 → 폰은 3칸 2줄 */
.seg-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.seg-wrap button { white-space: nowrap; }
@media (min-width: 700px) { .seg-wrap { display: flex; } }
.seg-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; padding: 0 5px; }

/* 근무표 시간 색: 오전 주황 · 오후 남색 (U.timeHtml) */
.t-am { color: #C2610C; font-weight: 800; }
.t-pm { color: #3730A3; font-weight: 800; }
.t-legend { display: flex; gap: 12px; justify-content: flex-end; font-size: 12px; margin: 6px 2px 0; }
.tcell .t-am, .tcell .t-pm { line-height: 1.25; }
.dl-time .t-am, .dl-time .t-pm { font-size: 15px; }

/* 직원 정보: 오버타임 제외 안내 */
.ot-info { margin: -4px 0 12px; font-size: 13px; color: var(--ink-2); }
.ot-info summary { cursor: pointer; color: var(--brand); font-weight: 700; padding: 4px 0; }
.ot-info div { background: var(--field); border-radius: 12px; padding: 10px 12px; line-height: 1.6; margin-top: 6px; }
.ot-info ul { padding-left: 18px; margin: 6px 0; }
.ot-info p { margin: 4px 0; }

/* 급여: T4·ROE 표 */
.tbl-wrap { overflow-x: auto; margin-top: 6px; }
.t4-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.t4-tbl th { text-align: right; font-weight: 700; color: var(--ink-2); padding: 6px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.t4-tbl th:first-child, .t4-tbl td:first-child { text-align: left; }
.t4-tbl td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t4-tbl small { color: var(--ink-3); font-weight: 500; }
