/* PA i PUNT · panell de l'obrador */
body { background: #efebe2; font-size: 15px; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--mint); padding: 20px; }
.login-card { background: var(--paper); border-radius: 22px; padding: 40px 32px; width: min(380px, 100%); text-align: center; display: grid; gap: 12px; box-shadow: var(--shadow); }
.login-card img { height: 70px; width: auto; margin: 0 auto 6px; }
.login-card h1 { font-size: 46px; margin: 0; line-height: 1; }
.login-card p { margin: 0; color: var(--ink-3); }
.login-card input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; font-size: 16px; }
.err { color: #b3261e; font-size: 14px; margin: 0; min-height: 1em; }

.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 18px; padding: 10px 20px; flex-wrap: wrap; }
.top-l { display: flex; align-items: center; gap: 12px; }
.top-logo { height: 36px; width: auto; filter: invert(1) sepia(.2); }
.top-t { font-family: var(--serif); font-size: 26px; color: var(--mint-2); }
.week { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.week > div { text-align: center; min-width: 230px; }
.week b { display: block; font-size: 15px; }
.week small { font-size: 12px; color: var(--mint-2); }
.week button { border: 1px solid rgba(255, 255, 255, .25); background: none; color: var(--paper); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.week .today { width: auto; border-radius: 999px; padding: 0 14px; font-size: 13px; }
.top-r { display: flex; gap: 8px; }
.tb { border: 0; background: var(--mint-2); color: var(--ink); border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.tb:hover { background: #fff; }
.tb.ghost { background: none; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.tabs { display: flex; gap: 4px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 56px; z-index: 19; }
.tabs button { border: 0; background: none; padding: 14px 14px 12px; font-weight: 600; color: var(--ink-3); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--orange); }
@media (max-width: 900px) { .tabs { top: 0; position: static; } .top { position: static; } }

.kpis { display: flex; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.kpi { background: var(--paper); border-radius: 14px; padding: 12px 16px; min-width: 120px; flex: 1; }
.kpi span { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kpi b { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.kpi.demo { flex: 0 1 auto; background: #fff1c9; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kpi.demo button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; }
main { padding: 16px 20px 60px; }
.panel { background: var(--paper); border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.panel-h { margin-bottom: 14px; }
.panel-h.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-h h2 { font-size: 30px; margin: 0; line-height: 1.1; }
.panel-h p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.split { display: grid; gap: 16px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.empty { color: var(--ink-3); text-align: center; padding: 30px 10px; }
.empty.sm { padding: 10px; text-align: left; }
.small { font-size: 13px; } .muted { color: var(--ink-3); }

.tbl-wrap { overflow-x: auto; }
.mx { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; }
.mx th { position: sticky; top: 0; background: var(--paper); text-align: center; font-size: 12px; letter-spacing: .06em; padding: 8px 6px; border-bottom: 2px solid var(--ink); }
.mx th:first-child { text-align: left; }
.mx th small { display: block; font-weight: 600; color: var(--orange-d); letter-spacing: 0; }
.mx td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.mx .cat td { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-d); padding-top: 16px; border-bottom: 0; }
.mx .pn { font-weight: 600; }
.mx .n { text-align: center; font-weight: 700; font-size: 17px; background: rgba(115, 163, 143, calc(var(--a, 0) * .55)); }
.mx .n i { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.mx .n i.v { color: var(--orange-d); }
.mx .na { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(20, 20, 19, .04) 6px 7px); color: transparent; }
.mx .tr { box-shadow: inset 2px 0 0 rgba(198, 110, 48, .35); }
.mx .t { background: var(--ink) !important; color: var(--paper); }
.mx tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; background: var(--paper-2); }
.days4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dcard { border: 0; background: var(--paper); border-radius: 18px; padding: 18px; text-align: left; display: grid; gap: 2px; transition: transform .15s, box-shadow .15s; }
.dcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dcard b { font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1; }
.dcard small { color: var(--ink-3); margin-top: 6px; }

.dsel { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: stretch; }
.dsel > button:not(.tb) { border: 1.5px solid var(--ink); background: var(--paper); border-radius: 14px; padding: 8px 16px; text-align: left; }
.dsel > button b { display: block; font-size: 14px; letter-spacing: .04em; }
.dsel > button span { font-size: 12px; color: var(--ink-3); }
.dsel > button.on { background: var(--ink); color: var(--paper); }
.dsel > button.on span { color: var(--mint-2); }
.dsel .tb { margin-left: auto; background: var(--orange); color: #fff; padding: 12px 18px; }
.prod { list-style: none; padding: 0; margin: 0; }
.prod li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prod .big { font-family: var(--serif); font-size: 40px; font-weight: 400; min-width: 56px; text-align: right; line-height: 1; }
.prod span { font-weight: 700; font-size: 16px; }
.prod small { display: block; color: var(--ink-3); font-size: 12.5px; }
.prod small.v { color: var(--orange-d); font-weight: 600; }
.tot { text-align: right; margin: 12px 0 0; }
.search { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; min-width: 240px; }
.loc-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; display: flex; justify-content: space-between; }
.loc-h span { color: var(--ink-3); font-weight: 500; }
.pk { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; border-left: 4px solid var(--sage); }
.pk.st-preparat { border-color: #e2b23c; }
.pk.st-recollit { border-color: var(--crust); opacity: .65; }
.pk.st-cancelat { border-color: var(--orange); opacity: .5; }
.pk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pk-h b { font-size: 16px; margin-right: 8px; }
.pk-h a { font-size: 13px; color: var(--ink-3); margin-right: 8px; }
.code { font-family: ui-monospace, monospace; font-size: 12px; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.pk ul { margin: 6px 0; padding-left: 0; list-style: none; }
.pk li { padding: 2px 0; }
.pk li.x { text-decoration: line-through; opacity: .5; }
.pk li em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--mint); color: var(--sage-d); padding: 1px 6px; border-radius: 6px; }
.pk li small { color: var(--orange-d); }
.nt { margin: 4px 0; font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.pk-a { display: flex; gap: 6px; }
.pk-a button { border: 1.5px solid var(--ink); background: none; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.pk-a button.on { background: var(--ink); color: var(--paper); }
.pk-a button.ghost { border-color: transparent; color: var(--ink-3); }
.st { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--mint); color: var(--sage-d); white-space: nowrap; }
.st-preparat .st, .st.st-preparat { background: #fff1c9; color: #8a6400; }
.st-recollit .st, .st.st-recollit { background: var(--paper-2); color: var(--ink-3); }
.st-cancelat .st, .st.st-cancelat { background: #f6e3d4; color: var(--orange-d); }
.st-mixt .st { background: #e8e1f3; color: #5a4a7a; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters label { display: grid; gap: 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.filters .grow { flex: 1; min-width: 180px; }
.filters select, .filters input { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.bulk { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bulk button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--mint-2); font-weight: 700; font-size: 13px; }
.bulk button.warn { background: var(--orange); color: #fff; }
.lt { width: 100%; border-collapse: collapse; min-width: 860px; }
.lt th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px; border-bottom: 2px solid var(--ink); }
.lt td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lt td small { display: block; color: var(--ink-3); font-size: 12px; }
.lt .n { text-align: right; }
.lt .mono { font-family: ui-monospace, monospace; font-size: 12.5px; }
.lt tr.x td { opacity: .45; text-decoration: line-through; }
.lt .gh td { background: var(--mint); border-bottom: 0; padding: 10px; }
.lt .gh b { font-size: 15px; margin-right: 10px; }
.lt .gh span { color: var(--ink-2); font-size: 13px; }
.lt tbody + tbody .gh td { border-top: 10px solid var(--paper); }
.lt input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }

.spec { display: grid; gap: 8px; }
.spec label { display: grid; grid-template-columns: 210px 1fr; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.spec label.past { opacity: .5; }
.spec input, .cd-f input { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; }
@media (max-width: 600px) { .spec label { grid-template-columns: 1fr; gap: 4px; } }
.cd-f { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-f input[name=note] { flex: 1; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.cd { list-style: none; padding: 0; margin: 12px 0 0; }
.cd li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cd li span { color: var(--ink-3); flex: 1; }
.cd li button { border: 0; background: none; text-decoration: underline; color: var(--orange-d); }
.rules { padding-left: 18px; margin: 0 0 8px; } .rules li { margin: 4px 0; }

.pt { width: 100%; border-collapse: collapse; min-width: 900px; }
.pt th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px; border-bottom: 2px solid var(--ink); }
.pt td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt input:not([type=checkbox]) { border: 1.5px solid transparent; background: transparent; border-radius: 8px; padding: 7px 8px; width: 100%; }
.pt input:not([type=checkbox]):hover, .pt input:not([type=checkbox]):focus { border-color: var(--line); background: #fff; outline: none; }
.pt td small { display: block; color: var(--ink-3); font-size: 12px; padding-left: 9px; }
.pt input[name=name] { font-weight: 700; }
.pt .price { width: 90px !important; text-align: right; }
.pt .days { white-space: nowrap; }
.pt .days label { display: inline-block; margin-right: 4px; }
.pt .days input { position: absolute; opacity: 0; }
.pt .days span { display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.pt .days input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sw input { position: absolute; opacity: 0; }
.sw span { display: inline-block; width: 40px; height: 24px; border-radius: 12px; background: var(--crust); position: relative; cursor: pointer; transition: background .2s; }
.sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + span { background: var(--sage); }
.sw input:checked + span::after { transform: translateX(16px); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================== v3: modes, mostrador, canal */
body[data-mode=mostrador] .g-only, body[data-mode=mostrador] #weekNav { display: none !important; }
body[data-mode=mostrador] { background: #ece7dc; }
.mode { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px; margin-left: 6px; }
.mode button { border: 0; background: none; color: rgba(244, 240, 232, .75); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; min-height: 38px; transition: background .2s, color .2s; }
.mode button.on { background: var(--paper); color: var(--ink); }
.top { min-height: 60px; }
.top-r { align-items: center; margin-left: auto; }
.tb.new { background: var(--orange); color: #fff; padding: 10px 18px; font-size: 14.5px; min-height: 42px; }
.tb.new:hover { background: var(--orange-d); }
.tb.new span { font-size: 17px; line-height: 1; }
@media (max-width: 700px) { .top { gap: 10px; padding: 10px 12px; } .top-logo { height: 30px; } .tb.new, .tb.ghost { display: none; } .mode button { padding: 7px 12px; font-size: 13.5px; } }

.fab-new { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; border: 0; border-radius: 999px; background: var(--orange); color: #fff; display: none; align-items: center; gap: 10px; padding: 0 24px 0 18px; height: 60px; font-size: 16px; box-shadow: 0 14px 30px -10px rgba(169, 86, 29, .6); transition: transform .2s; }
.fab-new span { font-size: 26px; line-height: 1; }
.fab-new:active { transform: scale(.96); }
body[data-mode=mostrador] .fab-new { display: inline-flex; }
@media (max-width: 700px) { .fab-new { display: inline-flex; } }

/* badges de canal */
.chb { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.ch-web { background: var(--mint); color: var(--sage-d); }
.ch-telefon { background: #e7e4f6; color: #4c3f8f; }
.ch-presencial { background: #f6e3d4; color: var(--orange-d); }
.ch-manual { background: var(--paper-2); color: var(--ink-3); }
.pk-h .chb { margin-left: 6px; }
.ch-card .ch-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.ch-bar span { display: block; min-width: 6px; }
.ch-bar .ch-web { background: var(--sage); } .ch-bar .ch-telefon { background: #7c6fc4; } .ch-bar .ch-presencial { background: var(--orange); } .ch-bar .ch-manual { background: var(--crust); }
.ch-leg { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.ch-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.ch-leg i.ch-web { background: var(--sage); } .ch-leg i.ch-telefon { background: #7c6fc4; } .ch-leg i.ch-presencial { background: var(--orange); } .ch-leg i.ch-manual { background: var(--crust); }
.ch-leg span { color: var(--ink-3); margin-left: 4px; }
.ch-card { margin-top: 16px; }

/* mostrador */
.mo { max-width: 1400px; margin: 0 auto; padding-bottom: 90px; }
.mo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 6px 0 18px; }
.mo-day { display: flex; align-items: center; gap: 12px; }
.mo-day h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1; margin: 2px 0 0; }
.mo-day .eyebrow { color: var(--orange-d); }
.mo-arr { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: 24px; line-height: 1; flex: none; }
.mo-today { border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 16px; font-weight: 700; min-height: 44px; }
.mo-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.mo-stats div { background: var(--paper); border-radius: 16px; padding: 10px 16px; min-width: 104px; }
.mo-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mo-stats span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.mo-stats .money { background: var(--ink); color: var(--paper); }
.mo-stats .money span { color: var(--mint-2); }
.mo-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mo-search { flex: 1; min-width: 240px; }
.mo-search input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 17px; background: #fff; }
.mo-search input:focus { outline: none; border-color: var(--ink); }
.seg { display: inline-flex; background: var(--paper); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); min-height: 44px; }
.seg button.on { background: var(--ink); color: var(--paper); }
.seg button[disabled] { opacity: .35; }
.mo-prod { background: var(--paper); border-radius: 16px; padding: 0 16px; margin-bottom: 14px; }
.mo-prod summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; font-size: 15px; }
.mo-prod summary::after { content: '+'; font-size: 20px; line-height: 1; }
.mo-prod[open] summary::after { content: '−'; }
.mo-prod summary span { margin-left: auto; color: var(--ink-3); }
.mo-prod-l { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.mo-prod-l span { background: #fff; border-radius: 10px; padding: 7px 11px; font-size: 14px; }
.mo-prod-l b { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-right: 3px; }
.mo-prod-l small { color: var(--orange-d); font-weight: 600; }
.mo-prod-l em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--mint); color: var(--sage-d); padding: 1px 6px; border-radius: 6px; margin-left: 3px; }
.mo-closed { background: #f6e3d4; border-radius: 12px; padding: 12px 14px; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.mo-empty { grid-column: 1 / -1; background: var(--paper); border-radius: 20px; padding: 46px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.mo-empty b { font-size: 34px; font-weight: 400; }
.mo-empty span { color: var(--ink-3); max-width: 420px; }
.mo-empty .btn { margin-top: 10px; }
.mo-done { margin-top: 22px; }
.mo-done summary { cursor: pointer; font-weight: 700; padding: 10px 2px; color: var(--ink-2); }
.mo-done .tk { opacity: .7; }

.tk { background: #fff; border-radius: 18px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--sage); box-shadow: 0 1px 0 rgba(20, 20, 19, .06); transition: transform .25s, opacity .25s; }
.tk.st-preparat { border-top-color: #e2b23c; }
.tk.st-recollit { border-top-color: var(--crust); }
.tk.st-cancelat { border-top-color: var(--orange); }
.tk.leaving { transform: scale(.96); opacity: 0; }
.tk.fresh { box-shadow: 0 0 0 2px var(--orange), 0 10px 26px -14px rgba(198, 110, 48, .6); }
.tk header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tk-n { font-size: 19px; line-height: 1.15; }
.nou { margin-left: 8px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; vertical-align: 2px; }
.tk-m { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.tk-m a { color: var(--ink-2); }
.tk ul { list-style: none; padding: 8px 0; margin: 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.tk li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: 15.5px; }
.tk li b { font-family: var(--serif); font-weight: 400; font-size: 22px; min-width: 24px; text-align: right; line-height: 1; font-variant-numeric: tabular-nums; }
.tk li small { color: var(--orange-d); font-weight: 600; }
.tk li em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--mint); color: var(--sage-d); padding: 2px 7px; border-radius: 6px; }
.tk li.x { opacity: .4; text-decoration: line-through; }
.tk .nt { margin: 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.tk footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 4px; }
.pay span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pay b { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acts { display: flex; gap: 6px; }
.acts button { border: 0; border-radius: 12px; min-height: 48px; padding: 0 16px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.acts .pri { background: #1f7a4d; color: #fff; padding: 0 20px; }
.acts .pri:active { background: #17633d; }
.acts .sec { background: var(--paper); color: var(--ink); }
.acts .sec.on { background: #fff1c9; color: #8a6400; }
.acts .more { background: none; color: var(--ink-3); padding: 0 10px; letter-spacing: 1px; }

.pop { position: fixed; z-index: 60; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 6px; min-width: 240px; box-shadow: var(--shadow); display: grid; }
.pop[hidden] { display: none; }
.pop button, .pop a { border: 0; background: none; color: inherit; text-align: left; padding: 13px 14px; border-radius: 10px; font-size: 15px; text-decoration: none; }
.pop button:hover, .pop a:hover { background: rgba(255, 255, 255, .08); }
.pop .warn { color: #ffb38a; }
.pk-a button[data-edit] { margin-left: auto; }

.bk-st { display: flex; align-items: center; gap: 10px; background: var(--mint); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.bk-a { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

@media (max-width: 700px) {
  main { padding: 12px 12px 90px; }
  .mo-day h1 { font-size: 30px; }
  .mo-arr { width: 42px; height: 42px; }
  .mo-stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .mo-stats div { min-width: 0; padding: 8px 10px; }
  .mo-stats b { font-size: 24px; }
  .mo-stats .money b { font-size: 17px; line-height: 1.4; }
  .mo-grid { grid-template-columns: 1fr; }
  .acts button { padding: 0 12px; } .acts .pri { padding: 0 16px; } .acts .more { padding: 0 6px; }
  .pay b { font-size: 19px; }
}

.kpi b { white-space: nowrap; font-size: clamp(26px, 2.6vw, 34px); }
