/* =====================================================================
   BiteBook UI  -  touch friendly, warm, readable
   ===================================================================== */
:root {
  --primary: #e8590c; --primary-d: #c2410c; --primary-l: #fff1e8; --primary-t: #ffffff;
  --bg: #f4f5f7; --card: #ffffff; --line: #e5e7eb; --line-2: #f0f1f4;
  --text: #1f2937; --muted: #6b7280; --faint: #9ca3af;
  --side: #1d2230; --side-2: #2a3042; --side-text: #cbd2e1;
  --green: #16a34a; --green-l: #e7f7ec; --amber: #d97706; --amber-l: #fef3c7; --red: #dc2626; --red-l: #fde8e8; --blue: #2563eb; --blue-l: #e6efff; --gray-l: #eef0f3;
  --radius: 14px; --radius-s: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.05);
  --tap: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
[data-theme="dark"] {
  --bg: #12151c; --card: #1b2029; --line: #2c3342; --line-2: #232a37; --text: #e8ebf2; --muted: #9aa4b8; --faint: #6b7589;
  --primary-l: #3a2316; --green-l: #12301d; --amber-l: #3a2d0c; --red-l: #3b1717; --blue-l: #15264a; --gray-l: #262d3b;
  --side: #0e1118; --side-2: #1a202c; --shadow: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary-d); text-decoration: none; }
[data-theme="dark"] a { color: #fb923c; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.25; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; } .xs { font-size: .75rem; }
.bold { font-weight: 700; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.green { color: var(--green); } .red { color: var(--red); } .amber { color: var(--amber); } .blue { color: var(--blue); }
.mt0{margin-top:0}.mt1{margin-top:8px}.mt2{margin-top:16px}.mt3{margin-top:24px}.mb0{margin-bottom:0}.mb1{margin-bottom:8px}.mb2{margin-bottom:16px}
.hide { display: none !important; } .flex { display: flex; } .between { justify-content: space-between; } .aic { align-items: center; } .wrap { flex-wrap: wrap; } .gap1{gap:8px}.gap2{gap:16px} .grow{flex:1}
.mono { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- app shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: var(--side); color: var(--side-text); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 50; transition: transform .2s ease; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .2px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #f97316, #dc2626); display: grid; place-items: center; font-size: 1.2rem; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: #8f9ab3; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav-group { margin-top: 14px; }
.nav-group > .gt { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #77839f; padding: 0 10px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--side-text); font-size: .95rem; min-height: 44px; }
.nav a .ic { width: 22px; text-align: center; font-size: 1.1rem; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar .userbox { padding: 12px 14px; border-top: 1px solid #2c3347; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.userbox .nm { color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.15; } .userbox .rl { font-size: .75rem; color: #8f9ab3; }
.main { margin-left: 252px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 22px; min-height: 62px; }
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-l); border-radius: 999px; padding: 6px 12px; font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.iconbtn { width: var(--tap); height: var(--tap); border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { background: var(--gray-l); }
#menuBtn { display: none; }
.content { padding: 22px; max-width: 1500px; width: 100%; margin: 0 auto; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .sidebar.open ~ .scrim, body.nav-open .scrim { display: block; }
  .main { margin-left: 0; } #menuBtn { display: grid; } .content { padding: 14px; } .topbar { padding: 8px 14px; }
}
@media (max-width: 640px) { .hide-sm { display: none !important; } .topbar h1 { font-size: 1.05rem; } }

/* ---------------------------------------------------- cards / layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2); padding: 18px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.card.flush .card-h { padding: 16px 18px 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; } .page-head p { margin: 2px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); } .grid > * { min-width: 0; }
.g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; } .g-3-2 { grid-template-columns: 3fr 2fr; }
@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } .g-sm2 { grid-template-columns: repeat(2, 1fr) !important; } }

.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow); display: block; color: inherit; }
.stat .lb { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stat .vl { font-size: 1.65rem; font-weight: 800; margin-top: 4px; line-height: 1.15; }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat.accent { background: linear-gradient(135deg, #f97316, #dc2626); color: #fff; border: 0; } .stat.accent .lb, .stat.accent .sub { color: rgba(255,255,255,.85); }
a.stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.alert { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--green-l); color: #166534; border-color: #bbf7d0; } .alert-error, .alert-danger { background: var(--red-l); color: #991b1b; border-color: #fecaca; }
.alert-warn { background: var(--amber-l); color: #92400e; border-color: #fde68a; } .alert-info { background: var(--blue-l); color: #1e40af; border-color: #bfdbfe; }
[data-theme="dark"] .alert-success{color:#86efac}[data-theme="dark"] .alert-error{color:#fca5a5}[data-theme="dark"] .alert-warn{color:#fcd34d}[data-theme="dark"] .alert-info{color:#93c5fd}
.empty { text-align: center; padding: 38px 16px; color: var(--muted); } .empty .big { font-size: 2.6rem; margin-bottom: 8px; }

/* ---------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1.1; transition: transform .05s, background .15s, box-shadow .15s; user-select: none; white-space: nowrap; }
.btn:hover { background: var(--gray-l); } .btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-d); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; } .btn-success:hover { background: #15803d; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover { background: #b91c1c; }
.btn-soft { background: var(--primary-l); border-color: transparent; color: var(--primary-d); } .btn-soft:hover { background: #ffe0cc; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn-ghost:hover { background: var(--gray-l); color: var(--text); }
.btn-outline-danger { color: var(--red); border-color: #f5b5b5; background: transparent; } .btn-outline-danger:hover { background: var(--red-l); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; } .btn-xs { min-height: 32px; padding: 0 10px; font-size: .82rem; border-radius: 8px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.1rem; border-radius: 14px; } .btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------- forms */
.field { margin-bottom: 14px; } .field > label, .lbl { display: block; font-size: .83rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--faint); margin-top: 4px; }
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 16px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(232,89,12,.14); }
.input[readonly] { background: var(--gray-l); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input-sm { min-height: 40px; padding: 6px 10px; font-size: 15px; border-radius: 10px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: 1 / -1; } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } .form-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .form-grid, .form-grid.c3, .form-grid.c4 { grid-template-columns: 1fr; } }
.input-group { display: flex; } .input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group .addon { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--gray-l); color: var(--muted); font-weight: 700; }
.input-group .addon.pre { border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; } .input-group .addon.pre + .input { border-radius: 0 12px 12px 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: var(--tap); }
.switch input { position: absolute; opacity: 0; } .switch .tr { width: 52px; height: 30px; border-radius: 99px; background: #cfd4dc; position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .tr { background: var(--green); } .switch input:checked + .tr::after { transform: translateX(22px); }
.switch .tx { font-weight: 600; font-size: .95rem; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; } .check input { width: 22px; height: 22px; accent-color: var(--primary); }
.field > label.switch, .field > label.check { display: inline-flex; font-size: .95rem; color: var(--text, inherit); margin-bottom: 0; }
.switch .tr { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips label { cursor: pointer; } .chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--card); user-select: none; }
.chips input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--gray-l); font-size: 1.4rem; font-weight: 700; cursor: pointer; color: var(--text); } .stepper button:active { background: var(--line); }
.stepper input { width: 84px; text-align: center; border: 0; height: 46px; font-size: 16px; font-weight: 700; background: transparent; color: var(--text); -moz-appearance: textfield; } .stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.search { position: relative; } .search .input { padding-left: 42px; } .search::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .6; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; } .filters .field { margin: 0; } .filters .input, .filters .select { min-height: 44px; }

/* ---------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: rgba(232,89,12,.035); } .table tr.row-link { cursor: pointer; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 800; border-top: 2px solid var(--line); background: var(--gray-l); }
.table .actions { text-align: right; white-space: nowrap; } .table .actions .btn { margin-left: 4px; }
.table.compact td, .table.compact th { padding: 8px 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.b-green { background: var(--green-l); color: #166534; } .b-red { background: var(--red-l); color: #991b1b; } .b-amber { background: var(--amber-l); color: #92400e; } .b-blue { background: var(--blue-l); color: #1e40af; } .b-gray { background: var(--gray-l); color: var(--muted); }
[data-theme="dark"] .b-green{color:#86efac}[data-theme="dark"] .b-red{color:#fca5a5}[data-theme="dark"] .b-amber{color:#fcd34d}[data-theme="dark"] .b-blue{color:#93c5fd}
.food-dot { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--c); border-radius: 3px; position: relative; vertical-align: -2px; margin-right: 6px; flex: none; }
.food-dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--c); }
.progress { height: 10px; background: var(--gray-l); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }
.progress.amber > i { background: var(--amber); } .progress.red > i { background: var(--red); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 12px 18px; font-weight: 700; color: var(--muted); border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; cursor: pointer; font-size: .95rem; font-family: inherit; }
.tabs a.active, .tabs button.active { color: var(--primary-d); border-bottom-color: var(--primary); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; } .pager a, .pager strong { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; } .pager strong { background: var(--primary); color: #fff; border-color: var(--primary); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .93rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .list-row:last-child { border: 0; }

/* ---------------------------------------------------- modal / toast */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15,18,28,.55); backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-box { background: var(--card); border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.35); animation: pop .16s ease-out; }
.modal-box.lg { max-width: 860px; } .modal-box.sm { max-width: 400px; } .modal-box.xl { max-width: 1100px; }
.modal-h { padding: 18px 22px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; } .modal-h h3 { margin: 0; font-size: 1.15rem; }
.modal-b { padding: 6px 22px 18px; overflow-y: auto; flex: 1; } .modal-f { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .modal { align-items: flex-end; padding: 0; } .modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; max-width: 100%; } }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast { background: #1f2937; color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.3); font-weight: 600; animation: pop .18s ease-out; min-width: 220px; border-left: 5px solid #9ca3af; }
.toast.ok { border-color: #22c55e; } .toast.err { border-color: #ef4444; } .toast.warn { border-color: #f59e0b; }

/* ---------------------------------------------------- typeahead picker */
.picker { position: relative; } .picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); max-height: 300px; overflow-y: auto; z-index: 60; display: none; }
.picker-list.open { display: block; } .picker-list div { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 10px; } .picker-list div:hover, .picker-list div.hl { background: var(--primary-l); } .picker-list small { color: var(--muted); }
.lines td { vertical-align: top; } .lines .input, .lines .select { min-height: 42px; padding: 6px 10px; font-size: 15px; }

/* ---------------------------------------------------- misc blocks */
.tile-link { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: inherit; min-height: 110px; } .tile-link:hover { border-color: var(--primary); } .tile-link .em { font-size: 1.8rem; } .tile-link b { font-size: 1.02rem; } .tile-link span { color: var(--muted); font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; } .bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; } .bars .b i { width: 100%; max-width: 54px; background: linear-gradient(180deg, #fb923c, #e8590c); border-radius: 8px 8px 3px 3px; min-height: 3px; } .bars .b span { font-size: .72rem; color: var(--muted); } .bars .b em { font-size: .72rem; font-style: normal; font-weight: 700; }
.step-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; } .step-bar a { flex: 1; min-width: 110px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); } .step-bar a.done { border-color: var(--green); color: var(--green); } .step-bar a.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.hint-box { background: var(--primary-l); border-radius: var(--radius-s); padding: 12px 16px; color: var(--primary-d); font-size: .9rem; margin-bottom: 14px; }
[data-theme="dark"] .hint-box { color: #fdba74; }
.kbd { background: var(--gray-l); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 700; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #ffedd5 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fee2e2 0, transparent 55%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(16,24,40,.15); border: 1px solid var(--line-2); }
.auth-card .brand { color: var(--text); padding: 0 0 18px; justify-content: center; flex-direction: column; text-align: center; }
.auth-card .brand .logo { width: 62px; height: 62px; font-size: 1.9rem; border-radius: 18px; }

/* ---------------------------------------------------- printing */
.receipt { width: 80mm; max-width: 100%; margin: 0 auto; background: #fff; color: #000; font-family: "Courier New", monospace; font-size: 12px; padding: 8px; line-height: 1.35; }
.receipt h2 { text-align: center; font-size: 15px; margin: 0; } .receipt .c { text-align: center; } .receipt hr { border-top: 1px dashed #000; margin: 6px 0; } .receipt table { width: 100%; border-collapse: collapse; } .receipt td, .receipt th { padding: 1px 0; vertical-align: top; } .receipt .r { text-align: right; } .receipt .tot td { font-weight: 700; font-size: 13px; }
@media print { body { background: #fff; } .sidebar, .topbar, .no-print, #toasts, .scrim { display: none !important; } .main { margin: 0 !important; } .content { padding: 0 !important; max-width: none; } .card { box-shadow: none; border: 0; padding: 0; } }
