/* =====================================================================
   Savor Point - stylesheet
   Palette: pine (sidebar/ticket), leaf (actions), turmeric (live order id),
            chili (cancel/alerts). Fonts are system fonts, so it works offline.
   ===================================================================== */
:root {
  --pine: #0f3b32;
  --pine-2: #17493f;
  --leaf: #1b7a5c;
  --leaf-dark: #145f47;
  --leaf-tint: #e6f3ed;
  --turmeric: #f2b134;
  --turmeric-dark: #b57a05;
  --chili: #c23b2a;
  --bg: #eef2ef;
  --card: #ffffff;
  --ink: #17211d;
  --muted: #65746d;
  --line: #d9e2dd;
  --radius: 10px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; }
a { color: var(--leaf-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turmeric-dark); outline-offset: 2px; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.num { text-align: right; }
.grow { flex: 1; }
.inline { display: inline; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; background: #fff; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--leaf-dark); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover:not(:disabled) { border-color: var(--leaf); color: var(--leaf-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: rgba(0, 0, 0, .06); color: var(--ink); }
.btn-ok { background: var(--leaf-tint); color: var(--leaf-dark); border-color: #bfe0d1; }
.btn-ok:hover:not(:disabled) { background: #d3ebdf; }
.btn-danger-o { background: #fff; color: var(--chili); border-color: #efc7c1; }
.btn-danger-o:hover:not(:disabled) { background: #fbeceb; }
.btn-dark { background: var(--pine); color: #fff; }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .inline-filter input, .inline-filter select, .input-group input, .input-group select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .inline-filter input:focus, .inline-filter select:focus, .input-group input:focus { border-color: var(--leaf); outline: 2px solid rgba(27, 122, 92, .18); outline-offset: 0; }
.input-group { display: flex; }
.input-group select { width: 84px; border-radius: 8px 0 0 8px; border-right: 0; background: #f6f9f7; }
.input-group input { border-radius: 0 8px 8px 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--leaf); }
.grid { display: grid; gap: 0 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.btn-row { display: flex; gap: 10px; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- cards, alerts, pills ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.card-title { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head .card-title { margin: 0; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert-ok { background: var(--leaf-tint); color: var(--leaf-dark); border: 1px solid #bfe0d1; }
.alert-bad { background: #fbeceb; color: #8f281b; border: 1px solid #efc7c1; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-pending { background: #fdf0cf; color: #83540a; }
.pill-completed { background: #dcf1e6; color: #14603f; }
.pill-cancelled { background: #f8dedb; color: #992b1e; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #9fd3bf; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: pulse 1.8s infinite; }
.live.off { color: #f0a49b; }
.live.off i { background: var(--chili); animation: none; }
.card .live, .content > p .live { color: var(--leaf); }
.card .live.off, .content > p .live.off { color: var(--chili); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 10px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fbf9; }
.tbl .empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions > * { margin-left: 4px; }
.tbl.gap-top { margin-top: 18px; }
.row-off td { opacity: .55; }

/* ---------- app shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: var(--pine); color: #cfe5dc; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; text-decoration: none; color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--turmeric); color: var(--pine); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 17px; }
.brand-text small { color: #8fb8aa; font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #cfe5dc; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--pine-2); color: #fff; }
.nav a.active { background: #fff; color: var(--pine); font-weight: 700; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { font-size: 12px; color: #8fb8aa; }
.sidebar-foot .btn-ghost { color: #cfe5dc; }
.sidebar-foot .btn-ghost:hover { background: var(--pine-2); color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.page-title { font-family: var(--serif); font-size: 22px; }
.topbar-right { margin-left: auto; }
.date-chip { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; border: 0; background: none; padding: 4px; cursor: pointer; }
.content { padding: 20px 24px 48px; }

/* ---------- login ---------- */
.login-body { background: var(--pine); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { display: flex; align-items: center; justify-content: center; padding: 40px; color: #fff; }
.login-brand-inner { max-width: 380px; }
.login-mark { width: 72px; height: 72px; border-radius: 18px; background: var(--turmeric); color: var(--pine); display: grid; place-items: center; font-family: var(--serif); font-size: 40px; font-weight: 700; margin-bottom: 22px; }
.login-brand h1 { font-family: var(--serif); font-size: 44px; line-height: 1.1; }
.login-brand p { margin: 8px 0 0; color: #a9cfc1; font-size: 17px; }
.login-brand .login-note { margin-top: 28px; font-size: 15px; color: #8fb8aa; }
.login-form-side { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.login-card h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; }

/* ---------- POS / order entry ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.pos-right { position: sticky; top: 16px; }

.ticket-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--pine); color: #fff; border-radius: var(--radius); padding: 14px 26px; margin-bottom: 18px; }
.ticket-head::before, .ticket-head::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--bg); border-radius: 50%; }
.ticket-head::before { left: -10px; }
.ticket-head::after { right: -10px; }
.ticket-id { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ticket-label { font-size: 13px; color: #9fc7ba; }
.ticket-no { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: 1px; color: var(--turmeric); line-height: 1; display: inline-block; }
.ticket-no.bump { animation: bump .4s ease-out; }
@keyframes bump { from { transform: scale(1.14); } to { transform: scale(1); } }
.ticket-side { text-align: right; line-height: 1.5; }
.ticket-side b { font-size: 22px; color: #fff; margin-left: 4px; }
.ticket-side .muted { color: #9fc7ba; }

.seg { display: inline-flex; background: #eef2ef; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--pine); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--turmeric-dark); }

.items-card { padding: 8px 14px 14px; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.lines th.num { text-align: right; }
.lines td { padding: 6px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.lines .c-no { width: 32px; color: var(--muted); text-align: center; }
.lines .c-qty { width: 132px; }
.lines .c-price { width: 92px; color: var(--muted); }
.lines .c-amt { width: 104px; font-weight: 700; }
.lines .c-del { width: 36px; }
.item-search { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 15.5px; }
.item-search:focus { border-color: var(--leaf); outline: 3px solid rgba(27, 122, 92, .18); }
.line.filled .item-search { font-weight: 600; background: #f3faf6; border-color: #cfe6dc; }
.line.flash td { animation: flash 1s ease-out; }
@keyframes flash { from { background: #fbe6b3; } to { background: transparent; } }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 42px; border: 0; background: #f4f7f5; font-size: 18px; cursor: pointer; }
.qty button:hover { background: #e4ece8; }
.q-input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.q-input::-webkit-outer-spin-button, .q-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.x-btn:hover { background: #fbeceb; color: var(--chili); }
.hint { margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 12px; background: #eef2ef; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink); }

.suggest { position: fixed; z-index: 200; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #b9d0c6; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 59, 50, .22); }
.sg { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f4f2; }
.sg:last-child { border-bottom: 0; }
.sg.on { background: var(--leaf-tint); box-shadow: inset 4px 0 0 var(--leaf); }
.sg-name { font-weight: 600; }
.sg-cat { font-size: 12px; color: var(--muted); }
.sg-price { font-weight: 700; color: var(--leaf-dark); min-width: 52px; text-align: right; }
.sg-empty { padding: 14px; color: var(--muted); }

/* live receipt preview + printed slip share the same look */
.receipt { background: #fff; border: 1px solid var(--line); padding: 18px 16px 30px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: #111;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.r-head { text-align: center; }
.r-name { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; }
.r-small { font-size: 12px; color: #444; }
.r-rule { border-top: 1px dashed #777; margin: 9px 0; }
.r-row { display: flex; justify-content: space-between; gap: 10px; }
.r-row > span:last-child, .r-row > b:last-child { text-align: right; }
.r-items { width: 100%; border-collapse: collapse; }
.r-items th { text-align: left; font-weight: 700; padding: 0 0 3px; font-size: 12px; }
.r-items td { padding: 2px 0; vertical-align: top; }
.r-items .n { text-align: right; padding-left: 8px; white-space: nowrap; }
.r-items .nm { word-break: break-word; }
.r-empty td { text-align: center; color: #999; padding: 12px 0; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; padding: 7px 0; border-top: 2px solid #111; border-bottom: 2px solid #111; font-size: 20px; font-weight: 700; }
.r-foot { text-align: center; font-size: 12px; margin-top: 10px; }

.pos-actions { margin-top: 16px; display: grid; gap: 10px; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--pine); color: #fff; padding: 12px 16px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 360px; transition: opacity .4s, transform .4s; }
.toast a { color: var(--turmeric); }
.toast-bad { background: #8f281b; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 26px; line-height: 1.25; overflow-wrap: anywhere; }
.kpi small { color: var(--muted); }
.kpi-main { background: var(--pine); border-color: var(--pine); color: #fff; }
.kpi-main .kpi-label, .kpi-main small { color: #9fc7ba; }
.kpi-main b { font-size: 32px; color: var(--turmeric); }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.bars { display: flex; gap: 10px; height: 230px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar-val { font-size: 11px; color: var(--muted); height: 16px; white-space: nowrap; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.bar { width: 64%; background: #b8d9cb; border-radius: 6px 6px 0 0; transition: height .5s; }
.is-today .bar { background: var(--leaf); }
.is-today .bar-lbl { font-weight: 700; color: var(--ink); }
.bar-lbl { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.top { list-style: none; margin: 0; padding: 0; }
.top li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid #edf1ee; }
.top li:last-child { border-bottom: 0; }
.t-name { font-weight: 600; grid-column: 1; }
.t-qty { grid-column: 2; font-weight: 700; color: var(--leaf-dark); text-align: right; }
.t-amt { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* ---------- split (form + list) / filters ---------- */
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.split.single { grid-template-columns: minmax(0, 760px); }
.split-form { position: sticky; top: 16px; }
.inline-filter { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.inline-filter input { flex: 1; min-width: 160px; }
.inline-filter select { width: auto; min-width: 160px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 14px; padding-bottom: 6px; }
.filters .field { margin-bottom: 12px; }
.filters .btn { margin-bottom: 12px; }
.filters .field.grow { min-width: 200px; }
.filters .quick { display: flex; gap: 12px; margin-bottom: 18px; }
.filters .quick a { font-size: 13px; }

/* ---------- printed slip page ---------- */
.slip-body { background: #d9e0dc; padding: 18px 10px 40px; font-family: var(--mono); }
.slip-tools { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; margin: 0 auto 16px; font-family: var(--sans); }
.slip-tools .tools-gap { flex: 1; }
.slip { position: relative; margin: 0 auto; background: #fff; color: #000; padding: 5mm 4mm 8mm; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.s-head { text-align: center; }
.s-name { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; }
.s-rule { border-top: 1px dashed #000; margin: 7px 0; }
.s-token { display: flex; align-items: center; justify-content: space-between; border: 2px solid #000; padding: 3px 10px; margin: 2px 0 7px; }
.s-token span { font-weight: 700; font-size: 14px; }
.s-token b { font-size: 32px; line-height: 1.1; }
.s-row { display: flex; justify-content: space-between; gap: 8px; }
.s-row > span:last-child, .s-row > b:last-child { text-align: right; }
.s-items { width: 100%; border-collapse: collapse; }
.s-items th { text-align: left; font-size: 12px; padding-bottom: 3px; border-bottom: 1px solid #000; }
.s-items td { padding: 3px 0; vertical-align: top; }
.s-items .n { text-align: right; padding-left: 6px; white-space: nowrap; }
.s-items .nm { word-break: break-word; }
.s-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; padding: 5px 0; border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 19px; font-weight: 700; }
.s-pay { margin-top: 2px; }
.s-note { margin-top: 5px; font-style: italic; }
.s-foot { text-align: center; font-size: 12px; }
.s-void { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); border: 4px solid #c23b2a; color: #c23b2a; font-weight: 700; font-size: 26px; padding: 2px 12px; opacity: .55; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pos { grid-template-columns: 1fr; }
  .pos-right { position: static; max-width: 460px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 250; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .menu-btn { display: block; }
  .topbar { padding: 12px 14px; }
  .content { padding: 14px 12px 40px; }
  .split, .split.single { grid-template-columns: 1fr; }
  .split-form { position: static; }
  .g3, .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 24px 8px; }
  .login-brand h1 { font-size: 32px; }
  .login-mark { width: 52px; height: 52px; font-size: 28px; margin-bottom: 12px; }
  .login-brand .login-note { display: none; }
  .ticket-no { font-size: 30px; }
}
@media (max-width: 640px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  /* order lines become small cards on phones */
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr.line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "item del" "qty amt"; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #edf1ee; }
  .lines td { display: block; padding: 0; border: 0; }
  .lines .c-no, .lines .c-price { display: none; }
  .lines .c-item { grid-area: item; }
  .lines .c-del { grid-area: del; }
  .lines .c-qty { grid-area: qty; width: auto; }
  .lines .c-amt { grid-area: amt; width: auto; align-self: center; font-size: 16px; }
  .ticket-head { padding: 12px 20px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
  .date-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print ---------- */
@media print {
  body, .slip-body { background: #fff !important; padding: 0 !important; }
  .no-print, .sidebar, .topbar, .toasts { display: none !important; }
  .content { padding: 0; }
  .slip { margin: 0; box-shadow: none; }
  .card { break-inside: avoid; }
}
