/* ============ SPA OPS v2 — trắng + xanh olive, tối giản ============ */
:root {
  --olive: #5F6F3A; --olive-dark: #4A572C; --olive-soft: #EEF1E4; --olive-softer: #F7F8F2;
  --text: #22261C; --muted: #80856F; --line: #E7E9E0; --bg: #FFFFFF; --bg2: #FAFAF7;
  --danger: #B4483B; --danger-soft: #FBEDEA; --amber: #A3731A; --amber-soft: #FBF3E2;
  --blue: #3F6C8F; --blue-soft: #E9F1F7; --purple: #6C5A8E; --purple-soft: #F0ECF6;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--olive); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 21px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { line-height: 1.5; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.sub-h { margin: 20px 0 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }

/* ---------- Khung ---------- */
.layout { display: grid; grid-template-columns: 208px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 18px 10px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; background: var(--olive-softer); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 16px; color: var(--olive-dark); }
.brand-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; flex: none; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav a svg { width: 18px; height: 18px; stroke: var(--muted); flex: none; }
.nav a:hover { background: var(--olive-soft); }
.nav a.active { background: var(--olive); color: #fff; }
.nav a.active svg { stroke: #fff; }
.sidebar .me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.sidebar .me .name { font-weight: 600; }
.sidebar .me .links { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; }
.main { padding: 24px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.with-filters { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 16px; }
.fblock { display: flex; flex-direction: column; gap: 6px; }
.ftitle { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.radio { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 2px 0; }
.radio input { accent-color: var(--olive); width: 15px; height: 15px; }
.range { display: grid; grid-template-columns: 1fr; gap: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 4px; }
.content { min-width: 0; }

/* ---------- Nút, ô nhập ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfd3c3; background: var(--olive-softer); }
.btn.primary { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn.primary:hover { background: var(--olive-dark); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; padding: 0 6px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.ghost.sm { padding: 0 6px; }
.btn.lg { height: 46px; font-size: 16px; padding: 0 26px; }
.btn.block { width: 100%; justify-content: center; height: 44px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
input, select, textarea { font: inherit; color: var(--text); height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; outline: none; }
textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--olive); flex: none; }
input:disabled { background: var(--bg2); color: var(--muted); }
.search { position: relative; }
.search input { padding-left: 34px; width: 280px; }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; stroke: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); white-space: nowrap; }
.chip:hover { border-color: var(--olive); }
.chip.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: none; background: #fff; font: inherit; padding: 0 13px; height: 34px; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--olive-soft); color: var(--olive-dark); font-weight: 600; }
.menu { position: fixed; z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.1); min-width: 220px; padding: 4px; }
.menu div { padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.menu div:hover { background: var(--olive-soft); }

/* ---------- Thẻ, bảng ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-pad { padding: 16px 18px; }
.card-title { font-weight: 600; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .value { font-size: 21px; font-weight: 650; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.stat.accent { background: var(--olive); border-color: var(--olive); color: #fff; }
.stat.accent .label, .stat.accent .sub { color: #DCE2C9; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--olive-softer); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.sum td { background: var(--amber-soft); font-weight: 650; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--olive-softer); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: #fff; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.list-item:last-child { border-bottom: none; }
.remind { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg2); color: var(--text); margin-top: 8px; }
.remind:hover { background: var(--olive-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.amber { background: var(--amber); } .dot.red { background: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar > div { width: 100%; background: var(--olive); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar span { font-size: 11px; color: var(--muted); }
.report-filters { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.report-filters .range { grid-template-columns: 160px 160px; }

/* ---------- Nhãn ---------- */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--olive-soft); color: var(--olive-dark); white-space: nowrap; vertical-align: middle; }
.tag.gray { background: #F1F2EE; color: var(--muted); } .tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.blue { background: var(--blue-soft); color: var(--blue); } .tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.purple { background: var(--purple-soft); color: var(--purple); } .tag.solid { background: var(--olive); color: #fff; }
.debt { color: var(--danger); font-weight: 600; }
.progress { height: 6px; background: var(--olive-soft); border-radius: 99px; overflow: hidden; min-width: 80px; flex: 1; }
.progress > div { height: 100%; background: var(--olive); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: none; font: inherit; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--olive-dark); border-color: var(--olive); }

/* ---------- Hộp thoại ---------- */
.overlay { position: fixed; inset: 0; background: rgba(34, 38, 28, .3); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow: auto; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.16); }
.modal.wide { max-width: 760px; } .modal.xwide { max-width: 1000px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--olive-softer); border-radius: 0 0 14px 14px; }
.x { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 100; font-weight: 500; animation: fade .15s; max-width: 90vw; }
.toast.err { background: var(--danger); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; }
.kv .k, .kv3 .k { color: var(--muted); font-size: 12px; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin-bottom: 16px; }
.kv3 > div > div:last-child { margin-top: 3px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.totals { max-width: 320px; margin: 12px 0 0 auto; }
.cstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.cstats > div { padding: 12px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cstats > div:last-child { border-right: none; }
.cstats span { color: var(--muted); font-size: 12px; } .cstats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pk-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.pk-card:hover { border-color: var(--olive); }
.pk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pk-svc { display: grid; grid-template-columns: 1fr 160px auto; gap: 12px; align-items: center; padding: 5px 0; }
.rate { display: inline-flex; gap: 4px; }
.rate input { width: 90px; height: 30px; text-align: right; } .rate select { width: 56px; height: 30px; padding: 0 6px; }

/* ---------- Ô chọn khách ---------- */
.picker { position: relative; }
.picker svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; stroke: var(--muted); }
.picker input { padding-left: 34px; }
.picker .dd { position: absolute; left: 0; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 20; max-height: 300px; overflow: auto; }
.picker .dd div { padding: 9px 12px; cursor: pointer; }
.picker .dd div:hover { background: var(--olive-soft); }
.dd-new { color: var(--olive); font-weight: 600; border-top: 1px solid var(--line); }
.chosen { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--olive); background: var(--olive-softer); border-radius: 8px; font-weight: 600; }
.aline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.aline select { flex: 1; }
.pkg-hint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Thu ngân ---------- */
.page-pos { padding-top: 14px; }
.pos-top { margin-bottom: 12px; }
.inv-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inv-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; }
.inv-tab.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.inv-tab .cl { opacity: .6; font-size: 16px; padding: 0 2px; } .inv-tab .cl:hover { opacity: 1; }
.badge { background: rgba(0,0,0,.08); border-radius: 99px; padding: 0 7px; font-size: 12px; }
.inv-tab.on .badge { background: rgba(255,255,255,.25); }
.inv-add { width: 34px; height: 34px; border-radius: 50%; border: 1px dashed #c5c9b8; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--olive); }
.inv-add svg { width: 16px; height: 16px; }
.pos { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 14px; height: calc(100vh - 100px); min-height: 520px; }
.pos-left, .pos-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pos-search { padding: 12px 12px 8px; } .pos-search .search input { width: 100%; }
.pos-left .chips { padding: 0 12px 10px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; }
.catalog { overflow-y: auto; padding: 4px 8px 12px; flex: 1; }
.cat-title { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 14px 6px 6px; }
.cat-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cat-item:hover { background: var(--olive-soft); }
.ci-name { font-weight: 550; }
.cat-item b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos-cus { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.brief { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.brief-pk { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 140px; overflow-y: auto; }
.pk-use { display: flex; justify-content: space-between; gap: 10px; border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); text-align: left; }
.pk-use:hover { border-style: solid; }
.pos-lines { flex: 1; overflow-y: auto; padding: 4px 14px; }
.pos-empty { margin-top: 40px; }
.pl { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-row { display: flex; align-items: center; gap: 10px; }
.pl-no { color: var(--muted); width: 18px; }
.pl-name { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 30px; border: none; background: var(--bg2); cursor: pointer; font-size: 16px; }
.qty input { width: 40px; height: 30px; border: none; border-radius: 0; text-align: center; padding: 0; }
.pl-price { width: 110px !important; height: 30px; text-align: right; }
span.pl-price { display: inline-block; text-align: right; line-height: 30px; padding-right: 10px; }
.pl-amt { width: 100px; text-align: right; }
.pl-staff { display: flex; gap: 16px; padding: 6px 0 0 28px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pl-staff select { height: 26px; font-size: 12px; width: auto; min-width: 150px; padding: 0 6px; color: var(--olive-dark); border-color: transparent; background: var(--olive-softer); }
.pos-foot { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--olive-softer); }
.pos-foot #note { flex: 1; }
.pos-total { display: flex; flex-direction: column; align-items: flex-end; }
.pos-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; gap: 10px; }
.sum-row input, .sum-row select { width: 160px; text-align: right; }
.sum-row.total { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.pay-methods { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 6px 0; padding: 4px 0; }
.olddebt { margin-top: 10px; padding: 8px 10px; background: var(--danger-soft); border-radius: 8px; }
.next-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--olive-softer); align-self: start; }

/* ---------- Lịch hẹn ---------- */
.date-label { font-weight: 600; min-width: 170px; text-align: center; }
.chip.st-pending.on { background: #8b8f80; border-color: #8b8f80; } .chip.st-booked.on { background: var(--blue); border-color: var(--blue); }
.chip.st-waiting.on { background: var(--amber); border-color: var(--amber); } .chip.st-cancelled.on { background: var(--danger); border-color: var(--danger); }
.cal { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 170px); background: #fff; }
.cal-head { display: contents; }
.cal-head > div { position: sticky; top: 0; background: var(--olive-softer); border-bottom: 1px solid var(--line); padding: 9px; font-weight: 600; font-size: 13px; z-index: 5; text-align: center; text-transform: capitalize; }
.cal-head > div.today { color: var(--olive); background: var(--olive-soft); }
.cal-times { position: relative; border-right: 1px solid var(--line); }
.cal-times div { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-7px); }
.cal-col { position: relative; border-right: 1px solid var(--line); cursor: copy; }
.cal-col:last-child { border-right: none; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.cal-line.half { border-top: 1px dashed #F0F1EB; }
.appt { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 7px; font-size: 12px; overflow: hidden; cursor: pointer; border-left: 3px solid var(--olive); background: var(--olive-soft); z-index: 2; line-height: 1.35; }
.appt b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.pending { background: #F3F4EF; border-color: #A7AC97; border-left-style: dashed; }
.appt.booked { background: var(--blue-soft); border-color: var(--blue); }
.appt.waiting { background: var(--amber-soft); border-color: var(--amber); }
.appt.serving { background: var(--olive-soft); border-color: var(--olive); }
.appt.done { background: var(--olive); color: #fff; border-color: var(--olive-dark); }
.appt.cancelled { opacity: .45; text-decoration: line-through; background: #F3F4EF; border-color: #ccc; }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 4; pointer-events: none; }

/* ---------- Đăng nhập ---------- */
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--olive-softer), #fff); }
.login-box { width: 360px; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.login-box h1 { margin: 18px 0 4px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.perm td, .perm th { text-align: center; } .perm td:first-child, .perm th:first-child { text-align: left; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1100px) {
  .with-filters { grid-template-columns: 1fr; } .filters { position: static; flex-direction: row; flex-wrap: wrap; }
  .pos { grid-template-columns: 1fr; height: auto; } .pos-left { max-height: 50vh; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 6px; border-right: none; border-bottom: 1px solid var(--line); }
  .brand, .sidebar .me { display: none; } .nav { display: flex; gap: 2px; } .nav a span { white-space: nowrap; }
  .main { padding: 14px 12px 60px; } .stats, .cstats { grid-template-columns: 1fr 1fr; } .cols, .grid2, .kv3 { grid-template-columns: 1fr; }
  .search input { width: 100%; }
}
@media print { .sidebar, .page-head .actions, .report-filters, .btn { display: none !important; } .layout { display: block; } .main { padding: 0; } }

/* ================= v3 ================= */
.stats.three { grid-template-columns: repeat(3, 1fr); }
.dash { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-main .stats { margin-bottom: 0; }
.bars.tall { height: 200px; gap: 4px; }
.bars.tall .bar { position: relative; }
.bars.tall .bar em { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; }
.bars.tall .bar span { font-size: 10px; white-space: nowrap; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.seg-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--olive); }
.seg-box.amber { border-top-color: var(--amber); } .seg-box.red { border-top-color: var(--danger); } .seg-box.blue { border-top-color: var(--blue); }
.sb-title { font-weight: 600; } .sb-n { font-size: 26px; font-weight: 700; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.seg-box .btn { align-self: flex-start; }
.top-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.top-row:last-child { border-bottom: none; }
.top-n { width: 24px; height: 24px; border-radius: 50%; background: var(--olive-soft); color: var(--olive-dark); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.act { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; } .act:last-child { border-bottom: none; }
.dot.blue { background: var(--blue); }
.seg-tools { display: flex; gap: 12px; margin-bottom: 10px; }
.btn.done { border-color: var(--olive); color: var(--olive); }
.page-tabs { margin-bottom: 18px; }
.page-tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.page-tabs a.active { color: var(--olive-dark); border-color: var(--olive); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.grid-t th, .grid-t td { border-right: 1px solid var(--line); vertical-align: top; }
.grid-t th.today { background: var(--olive-soft); color: var(--olive-dark); }
.grid-t td.cell { min-width: 110px; height: 56px; }
.grid-t td.cell.click { cursor: pointer; } .grid-t td.cell.click:hover { background: var(--olive-softer); }
.sh { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; margin: 1px 2px 1px 0; font-weight: 500; white-space: nowrap; }
.sh0 { background: var(--olive-soft); color: var(--olive-dark); } .sh1 { background: var(--blue-soft); color: var(--blue); }
.sh2 { background: var(--purple-soft); color: var(--purple); } .sh3 { background: var(--amber-soft); color: var(--amber); }
.ck { font-size: 11px; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; background: var(--olive-soft); color: var(--olive-dark); display: flex; flex-direction: column; }
.ck.amber { background: var(--amber-soft); color: var(--amber); } .ck.red { background: var(--danger-soft); color: var(--danger); }
.ck.gray { background: #F1F2EE; color: var(--muted); } .ck.blue { background: var(--blue-soft); color: var(--blue); } .ck.purple { background: var(--purple-soft); color: var(--purple); }
.sec-title { font-weight: 600; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
input.num { width: 110px; height: 30px; text-align: right; } input.num.sm { width: 64px; }
.sched { display: flex; flex-direction: column; gap: 6px; }
.sched-d { display: flex; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--bg2); }
.sched-d.today { background: var(--olive-soft); } .sched-d > b { width: 52px; }
.drop { position: relative; border: 2px dashed #cfd3c3; border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); margin: 10px 0; }
.drop.on { border-color: var(--olive); background: var(--olive-softer); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 22px; height: 22px; display: block; margin: 0 auto 6px; stroke: var(--olive); }
.ok-box { background: var(--olive-softer); border: 1px solid var(--olive-soft); border-radius: 8px; padding: 10px 12px; margin: 10px 0; line-height: 1.9; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; border: 1px solid var(--line); }
.thumb.ph { background: var(--bg2); }
.thumb.lg { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; background: var(--bg2); color: var(--muted); }
.thumb.lg img { width: 100%; height: 100%; object-fit: cover; } .thumb.lg svg { width: 22px; height: 22px; }
.img-pick { display: flex; gap: 14px; align-items: center; }
.colmenu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 14px; min-width: 340px; }
.colmenu .check { padding: 4px 0; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.box-t { font-weight: 600; margin-bottom: 10px; }
.pform .field + .field { margin-top: 0; }
.row-gap { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.rule { display: flex; gap: 8px; align-items: center; padding: 10px; background: var(--bg2); border-radius: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rule select { width: auto; }
.promo-box { background: var(--olive-softer); border: 1px solid var(--olive-soft); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.promo-box .radio { align-items: flex-start; padding: 3px 0; }
.ok { color: var(--olive-dark); }
.vch { display: flex; gap: 6px; }
.gift { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.settings code { background: var(--bg2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 1200px) { .dash { grid-template-columns: 1fr; } .segs { grid-template-columns: 1fr 1fr; } }
