﻿/* Kasir Ramah — warm neutrals, clear hierarchy, one green accent. */
:root {
  font-family: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #243b32;
  background: #f7f8f4;
  font-synthesis: none;
  --green: #13664d;
  --green-dark: #104c3a;
  --border: #e2e7df;
  --muted: #65736b;
  --surface: #fff;
  --radius: 18px;
  --shadow: 0 8px 32px #243b3206;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select, textarea { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b87c24; outline-offset: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); font-weight: 650; letter-spacing: -1.1px; line-height: 1.2; margin: 10px 0; }
h2 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.4px; }
p { line-height: 1.7; }
small, .muted { color: var(--muted); font-size: .8125rem; }
.ui-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: .625rem; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; background: var(--surface); border-right: 1px solid var(--border); padding: 32px 18px 24px; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-dark); text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: -.4px; padding: 0 6px; }
.brand small { display: block; font-size: .525rem; font-weight: 600; letter-spacing: 1.3px; margin-top: 5px; }
.brand-icon { display: inline-grid; place-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px 14px 14px 5px; background: var(--green); color: white; font-size: 1.5rem; letter-spacing: -2px; line-height: 1; position: relative; }
.brand-icon span { position: absolute; bottom: 7px; right: 6px; font-size: 1rem; color: #dce9a8; }
.nav-caption { font-size: .625rem; letter-spacing: 1.7px; color: var(--muted); margin: 48px 14px 16px; font-weight: 600; }
.nav { width: 100%; text-align: left; display: flex; align-items: center; gap: 13px; border: 1px solid transparent; background: transparent; border-radius: 11px; padding: 13px 14px; color: #65756a; margin-bottom: 6px; font-size: .85rem; min-height: 48px; }
.nav.active { color: white; background: var(--green); font-weight: 600; box-shadow: 0 4px 10px #13664d12; }
.nav:not(.active):hover { color: var(--green); background: #f1f5ed; }
.sidebar-bottom { margin-top: auto; padding: 44px 12px 0; }
.local-label { display: flex; align-items: center; gap: 8px; font-size: .6875rem; color: #4e6558; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--green); border-radius: 50%; }
.sidebar-bottom p { color: #556b5d; font-size: .8125rem; margin: 20px 0; }
.version { color: var(--muted); font-size: .625rem; }

/* Workspace */
main { margin-left: 224px; padding: 36px 36px 48px; max-width: 1900px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
header > div:first-child { min-width: 0; }
header p { color: var(--muted); font-size: .875rem; margin-bottom: 0; }
#storeLabel { display: flex; align-items: center; gap: 8px; color: var(--green); overflow-wrap: anywhere; }
#storeLabel::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.date { color: var(--muted); font-size: .75rem; padding: 10px 0; }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; align-items: start; gap: 28px; }
.catalog { min-width: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.catalog-heading h2 { margin: 3px 0 0; font-size: 1.25rem; }
.catalog-count { font-size: .6875rem; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 6px 11px; }
.catalog-toolbar { display: flex; }
.search { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; flex: 1; min-width: 0; margin: 0; box-shadow: var(--shadow); color: var(--muted); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #13664d0d; }
.search input { margin: 0; border: 0; padding: 15px 0; background: transparent; font-size: .875rem; min-width: 0; }
.search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chips button { border: 1px solid var(--border); background: transparent; border-radius: 24px; min-height: 44px; padding: 9px 17px; color: #52665a; font-size: .75rem; white-space: nowrap; }
.chips button:hover { background: #eaf0e5; }
.chips button.selected { color: var(--green-dark); background: #e3eddd; border-color: #cddcc5; font-weight: 650; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 8px; min-width: 0; box-shadow: 0 2px 4px #243b3202; display: flex; flex-direction: column; }
.product-card:not(:disabled):hover { border-color: #97b5a0; box-shadow: 0 8px 24px #243b320c; }
.product-card:not(:disabled):active { background: #f1f6ee; }
.product-card:disabled { opacity: .65; }
.product-art { height: 132px; width: 100%; display: grid; place-items: center; border-radius: 12px; position: relative; overflow: hidden; }
.product-art::before { content: ''; width: 84px; height: 84px; border: 1px solid #ffffffa6; background: #ffffff4d; position: absolute; border-radius: 50%; }
.product-art span { position: relative; font-size: 3.4rem; line-height: 1.3; filter: drop-shadow(0 7px 6px #3e412413); }
.tone-0 { background: #edf0e5; }
.tone-1 { background: #f4ece0; }
.tone-2 { background: #e7eeeb; }
.tone-3 { background: #f2e8e3; }
.product-info { padding: 14px 8px 6px; flex: 1; display: flex; flex-direction: column; width: 100%; }
.product-category { font-size: .625rem; color: var(--muted); letter-spacing: .3px; margin-bottom: 6px; }
.product-name { font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; line-height: 1.45; }
.stock-label { font-size: .625rem; color: var(--muted); margin: 6px 0 0; }
.low-stock { color: #98601c; font-weight: 600; }
.product-price { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 14px; color: var(--green-dark); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.add-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dfe7d9; border-radius: 50%; background: #f4f7ef; color: var(--green); font-size: 1.2rem; font-weight: 400; flex-shrink: 0; }
.product-card:not(:disabled):hover .add-mark { background: var(--green); color: #fff; border-color: var(--green); }
.catalog-note { margin-top: 24px; text-align: center; color: var(--muted); font-size: .6875rem; }

/* Order panel */
.cart { background: #fff; border: 1px solid var(--border); border-radius: 20px; position: sticky; top: 24px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px; gap: 8px; border-bottom: 1px solid var(--border); }
.cart-heading h2 { margin: 4px 0 0; font-size: 1rem; }
.badge { display: inline-block; font-size: .6875rem; font-weight: 600; color: var(--green); background: #edf3e8; border-radius: 20px; padding: 6px 10px; white-space: nowrap; }
.cart-lines { min-height: 280px; max-height: 43vh; overflow: auto; padding: 4px 22px; scrollbar-width: thin; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 44px 10px; font-size: .75rem; line-height: 1.8; }
.empty strong { display: block; color: #405849; font-size: .875rem; font-weight: 600; margin: 18px 0 7px; }
.empty-icon { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto; display: grid; place-items: center; background: #f1f5eb; color: #73886c; transform: rotate(-6deg); }
.empty-icon .ui-icon { width: 29px; height: 29px; transform: rotate(6deg); stroke-width: 1.3; }
.cart-line { padding: 18px 0; border-bottom: 1px solid #edf0e9; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cart-line:last-child { border-bottom: 0; }
.cart-line strong { font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.cart-line small { display: block; margin-top: 4px; font-size: .6875rem; }
.line-total { font-size: .8125rem; align-self: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.quantity { display: flex; align-items: center; gap: 10px; font-size: .8125rem; }
.quantity button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #f8faf5; color: var(--green); font-size: 1.1rem; }
.quantity button:hover { background: #e9f1e2; }
.cart-bottom { padding: 22px 22px 12px; border-top: 1px dashed #d9e1d2; background: #fafcf7; }
.total-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .75rem; }
.total-row strong { font-size: 1.65rem; color: var(--green-dark); letter-spacing: -.8px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cart-bottom p { margin: 6px 0 22px; font-size: .6875rem; }
#checkout { display: flex; justify-content: space-between; align-items: center; }
#checkout > span { font-size: 1.2rem; }
#clearCart { margin-top: 4px; }
.mobile-cart { display: none; }

/* Shared controls and data views */
.primary, .secondary { border: 1px solid transparent; border-radius: 11px; padding: 12px 17px; font-weight: 600; font-size: .8125rem; min-height: 46px; }
.primary { color: #fff; background: var(--green); }
.primary:not(:disabled):hover { background: var(--green-dark); box-shadow: 0 4px 14px #13664d15; }
.secondary { color: #395843; background: #fff; border-color: #d7e1d1; }
.secondary:not(:disabled):hover { background: #f0f5eb; border-color: #a7bba0; }
.wide { width: 100%; }
.text-button { background: transparent; border: 0; color: var(--muted); padding: 12px 6px; font-size: .75rem; min-height: 44px; }
.text-button:not(:disabled):hover { color: var(--green); text-decoration: underline; }
.danger { color: #ad4436; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 4px 0 22px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading p { margin-bottom: 0; }
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: .625rem; letter-spacing: .6px; font-weight: 650; color: #5b705f; background: #f0f4eb; }
th, td { padding: 16px 22px; border-bottom: 1px solid var(--border); }
td { font-size: .8125rem; font-variant-numeric: tabular-nums; }
td small { display: block; margin-top: 4px; font-size: .6875rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf8; }
.table-icon { font-size: 1.3rem; margin-right: 12px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions button { padding: 8px 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 24px; min-width: 0; }
.stat:first-child { background: #eaf1e3; border-color: #d8e3ce; }
.stat strong { display: block; margin-top: 14px; color: var(--green-dark); font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: -.6px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.device-settings { margin-top: 24px; }
.form-panel { padding: 28px; }
.form-panel h2 { margin: 10px 0 12px; font-size: 1.2rem; }
.form-panel p { color: var(--muted); font-size: .8125rem; }
#page-laporan > .panel { max-width: 840px; }
.report-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: .8125rem; font-weight: 500; margin: 18px 0; }
input, textarea, select { display: block; width: 100%; min-width: 0; margin-top: 8px; border: 1px solid #d9e1d4; border-radius: 10px; padding: 12px; background: #fff; color: #243b32; min-height: 46px; }
input::placeholder, textarea::placeholder { color: #7a837c; }
textarea { resize: vertical; }
select { padding-right: 38px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23345d46' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.upload { border: 1px dashed #abbf9d; background: #f5f8f0; border-radius: 12px; padding: 18px; }
.upload input { border: 0; padding: 8px 0 0; background: transparent; font-size: .75rem; }
input[type='file'] { font-size: .75rem; overflow: hidden; }
input::file-selector-button { background: #edf2e7; border: 1px solid #d6e0ce; border-radius: 7px; padding: 8px 10px; color: #345d46; cursor: pointer; margin-right: 10px; }
.notice { padding: 16px 18px; border: 1px solid #eadfbb; border-radius: 12px; background: #fffcf2; color: #786032; font-size: .8125rem; line-height: 1.7; }
.data-note { margin-top: 24px; }
.qris-preview { display: block; width: min(240px, 100%); max-height: 290px; object-fit: contain; margin: 22px auto; background: #fff; border-radius: 8px; }
.error { color: #ac3b30; font-size: .8125rem; line-height: 1.65; margin: 16px 0; }
.error:empty { display: none; }
#storageWarning { margin-bottom: 24px; }

/* Payment, receipts and privacy */
dialog { border: 1px solid var(--border); border-radius: 22px; padding: 28px; width: 480px; max-width: calc(100vw - 24px); max-height: 90dvh; overflow-y: auto; box-shadow: 0 28px 100px #16372530; color: #243b32; }
dialog::backdrop { background: #1a30275c; backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dialog-header h2 { font-size: 1.4rem; margin: 6px 0; }
.close { border: 1px solid var(--border); background: #f7f9f3; border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; color: #60705e; font-size: 1.5rem; }
.payment-total { background: #edf3e6; border-radius: 16px; padding: 24px; margin: 24px 0; text-align: center; color: #526b50; font-size: .75rem; }
.payment-total strong { display: block; margin-top: 8px; font-size: 2.1rem; color: var(--green-dark); letter-spacing: -1px; font-weight: 650; }
.method-switch { display: flex; gap: 4px; background: #f0f3eb; border-radius: 12px; padding: 5px; }
.method-switch button { flex: 1; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #60735d; min-height: 44px; font-size: .8125rem; }
.method-switch button.selected { color: var(--green); background: #fff; border-color: #e0e7d8; box-shadow: 0 2px 4px #193b2406; font-weight: 650; }
.change-row { display: flex; justify-content: space-between; background: #f5f8f0; border-radius: 10px; padding: 14px; font-size: .8125rem; }
.customer-fields { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 2px; }
.check { display: flex; gap: 12px; line-height: 1.7; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 22px; flex-shrink: 0; margin: 2px 0; accent-color: var(--green); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .8125rem/1.8 Consolas, monospace; background: #fafbf7; padding: 24px; border: 1px dashed #d5dfcb; border-radius: 12px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--green-dark); color: #fff; border-radius: 12px; padding: 14px 22px; box-shadow: 0 8px 32px #243b3226; z-index: 40; width: max-content; max-width: min(90vw, 520px); font-size: .8125rem; }
.lock-screen { position: fixed; inset: 0; z-index: 100; background: #f3f6ed; display: grid; place-items: center; padding: 24px; overflow: auto; }
.lock-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 36px; text-align: center; box-shadow: var(--shadow); }
.lock-card .brand-icon { margin: 0 auto; }
.lock-card h1 { font-size: 1.5rem; margin-top: 24px; }
.lock-card p { font-size: .8125rem; color: var(--muted); }
.lock-card label { text-align: left; }
.lock-card input { text-align: center; letter-spacing: .4em; font-size: 1.5rem; }
.booting main, .booting .sidebar, .locked main, .locked .sidebar { visibility: hidden; }
#bootNotice { position: fixed; inset: 0; display: grid; place-items: center; background: #f7f8f4; z-index: 101; color: var(--green); }
.locked #toast, .locked dialog { display: none !important; }

/* Tablet and phone layouts */
@media (min-width: 1600px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 36px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 198px; padding: 28px 12px; }
  .brand { font-size: .875rem; gap: 10px; }
  main { margin-left: 198px; padding: 28px 24px; }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .date { display: none; }
  .cart-heading, .cart-bottom { padding-left: 18px; padding-right: 18px; }
  .cart-lines { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 950px) {
  .sidebar { position: static; width: 100%; padding: 16px 24px; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; border: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; }
  .nav { width: auto; flex-direction: column; gap: 5px; padding: 8px 10px; margin: 0; min-width: 58px; font-size: .625rem; }
  .nav .ui-icon { width: 20px; height: 20px; }
  main { margin: 0; padding: 28px 24px; }
  header { margin-bottom: 24px; padding-bottom: 24px; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .stat { padding: 20px; }
}
@media (max-width: 700px) {
  .sidebar { padding: 20px; background: #f7f8f4; border-bottom: 0; }
  .brand { padding: 0; font-size: .95rem; }
  .brand small { font-size: .5rem; }
  .brand-icon { width: 38px; height: 38px; font-size: 1.3rem; border-radius: 12px 12px 12px 4px; }
  .sidebar nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; box-shadow: 0 -4px 20px #243b3204; }
  .nav { min-width: 0; width: 100%; min-height: 56px; padding: 6px 2px; font-size: .6rem; border-radius: 10px; gap: 4px; align-items: center; text-align: center; }
  .nav.active { color: var(--green); background: #eaf1e3; box-shadow: none; }
  main { padding: 4px 20px calc(180px + env(safe-area-inset-bottom, 0px)); }
  header { gap: 12px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 24px; }
  h1 { font-size: 1.7rem; letter-spacing: -.8px; }
  header p { font-size: .8125rem; }
  .header-actions .secondary { padding: 8px 10px; font-size: .6875rem; }
  .pos-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-heading { margin-bottom: 16px; }
  .catalog-heading h2 { font-size: 1.125rem; }
  #categories { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 7px; margin: 13px -3px 13px; scrollbar-width: thin; }
  .chips button { flex-shrink: 0; font-size: .6875rem; padding: 9px 14px; }
  .product-grid { gap: 12px; }
  .product-card { border-radius: 16px; padding: 7px; }
  .product-art { height: 112px; border-radius: 10px; }
  .product-art span { font-size: 3rem; }
  .product-info { padding: 12px 5px 5px; }
  .product-name { font-size: .8125rem; }
  .product-price { font-size: .8125rem; padding-top: 12px; }
  .add-mark { width: 28px; height: 28px; }
  .catalog-note { display: none; }
  .cart { position: static; scroll-margin-top: 16px; }
  .cart-lines { min-height: 200px; max-height: 360px; }
  .mobile-cart { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: fixed; left: 20px; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 25; border: 1px solid #1b5e44; border-radius: 14px; padding: 12px 16px; background: var(--green); color: #fff; box-shadow: 0 6px 24px #123e3326; text-align: left; }
  .mobile-cart > span:first-child { display: flex; flex-direction: column; gap: 2px; }
  .mobile-cart strong { font-size: .8125rem; font-weight: 600; }
  #mobileCartCount { font-size: .625rem; color: #deeddf; }
  #mobileCartTotal { font-variant-numeric: tabular-nums; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; margin-bottom: 28px; }
  .stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; }
  .stat strong { margin: 0; font-size: 1.25rem; }
  .form-panel { padding: 22px; }
  .report-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  input, select, textarea, .search input { font-size: 16px; }
  input[type='file'] { font-size: .75rem; }
  dialog { padding: 22px; border-radius: 20px; }
  .receipt-actions button { flex: 1 1 auto; }
  #toast { bottom: calc(164px + env(safe-area-inset-bottom, 0px)); }
  .lock-card { padding: 28px; }
}
@media (max-width: 360px) {
  main { padding-left: 14px; padding-right: 14px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 1.5rem; }
  .product-grid { gap: 8px; }
  .mobile-cart { left: 14px; right: 14px; }
  .header-actions .secondary { max-width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body > * { display: none !important; }
  body > dialog#receiptDialog[open] { display: block !important; position: static; width: 80mm; max-width: none; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
  #receiptDialog > * { display: none !important; }
  #receiptDialog #receiptContent { display: block !important; border: 0; background: white; font-size: 11px; padding: 0; margin: 0; }
  body.locked > dialog#receiptDialog[open] { display: none !important; }
}
