/* Mavuko — independent interface system. No external fonts or stylesheets. */
:root {
  --ink: #17213d;
  --muted: #67718a;
  --line: #e3e7ef;
  --paper: #f5f7fb;
  --card: #fff;
  --accent: #3d58dd;
  --accent-soft: #eef1ff;
  --green: #146653;
  --red: #a53549;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; font-weight: 650; }
h1 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 17px; }
p { line-height: 1.6; }
button:focus-visible, a:focus-visible { outline: 3px solid #7d94ff; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #7d94ff; outline-offset: 1px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: white; padding: 15px; z-index: 100; }
.skip-link:focus { top: 10px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* Application frame */
.shell { min-height: 100vh; padding-top: 72px; }
.app-header { position: fixed; inset: 0 0 auto; height: 72px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; padding: 0 28px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: white; width: 36px; height: 36px; border-radius: 10px; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-size: 28px; letter-spacing: -1.8px; font-weight: 750; }
.brand-dot { color: var(--accent); }
.brand-caption { width: 95px; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); font-size: 8px; font-weight: 700; letter-spacing: 1px; line-height: 1.7; color: var(--muted); }
.header-business { display: flex; align-items: center; gap: 10px; color: #47516b; font-size: 12px; margin-left: auto; }
.header-business .icon { width: 17px; height: 17px; color: #8390ab; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.workspace-avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #eaeef8; color: #41517c; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: #eaf7f0; color: #21624b; border-radius: 6px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.dot { display: inline-block; width: 6px; height: 6px; background: #248260; border-radius: 50%; }
.pill.closed { background: #fff3df; color: #936219; }
.pill.closed .dot { background: #ad761f; }
.sidebar { position: fixed; inset: 72px auto 0 0; width: 232px; padding: 20px 14px; border-right: 1px solid var(--line); background: #fff; overflow-y: auto; display: flex; flex-direction: column; z-index: 25; }
.nav-section { margin-bottom: 18px; }
.nav-label { display: flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; color: #65718c; font-weight: 650; }
.nav-label > span { font-size: 8px; color: #8c96ab; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; border-radius: 6px; padding: 10px 12px; font-size: 12px; color: #5c6781; transition: background .15s; }
.nav a .icon { width: 17px; height: 17px; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: #304dc6; font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
.nav .count { margin-left: auto; font-size: 9px; font-weight: 650; background: #edf0f6; color: #596581; border-radius: 4px; padding: 2px 6px; }
.nav a.active .count { background: #dce3ff; color: #304dc6; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 2px; border-top: 1px solid var(--line); }
.environment-label { font-size: 8px; font-weight: 700; letter-spacing: .8px; display: flex; align-items: center; gap: 6px; }
.environment-label i { width: 5px; height: 5px; background: #6e82ba; border-radius: 50%; }
.sidebar-bottom p { font-size: 10px; color: var(--muted); margin: 8px 0 14px; }
.sidebar-bottom .text-link { font-size: 10px; }
.workspace { margin-left: 232px; min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 15px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #78829a; font-size: 11px; }
.breadcrumb > .icon { width: 11px; height: 11px; color: #abb3c4; }
.breadcrumb strong { color: #49546f; font-weight: 500; }
.demo-tag { font-size: 10px; color: #707d98; white-space: nowrap; }
.demo-tag span { color: #8a94aa; }
.mobile-menu, .mobile-scrim { display: none; }
.main { max-width: 1600px; margin: 0 auto; padding: 10px 32px 25px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.5; text-transform: uppercase; color: #68748f; margin-bottom: 8px; display: block; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 9px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 9px; color: #78829a; }
.footer span:first-child { letter-spacing: 1.2px; font-weight: 650; }
/* Controls and surfaces */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 15px; border-radius: 7px; border: 1px solid #d9dfeb; background: white; font-size: 12px; font-weight: 550; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button:hover { background: #f3f5fb; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 5px #3d58dd18; }
.button.primary:hover { background: #3049c7; }
.button.green { background: #176854; border-color: #176854; color: white; }
.button.ghost { border-color: transparent; background: transparent; padding: 8px; color: #5f6e90; }
.button.danger { background: #fff0f2; border-color: #f2cdd5; color: var(--red); }
.button.full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 34px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 6px; color: #5e6c8c; }
.icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.icon-button .icon { width: 15px; height: 15px; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.panel-head p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.panel-head .eyebrow { font-size: 8px; margin-bottom: 6px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 550; color: var(--accent); }
.text-link .icon, .panel-bottom-link .icon { width: 15px; height: 15px; }
.panel-bottom-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; font-size: 11px; color: #4c61b8; }
.badge { display: inline-flex; align-items: center; border-radius: 4px; padding: 5px 8px; background: #fff3df; color: #8a5a14; font-size: 10px; font-weight: 550; white-space: nowrap; }
.badge.ready, .badge.delivered, .badge.cash { background: #e9f6ef; color: #24694e; }
.badge.cancelled { background: #fff0f2; color: #a53549; }
.badge.transfer, .badge.card { background: #edf0ff; color: #5263a9; }
/* Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 19px; }
.stat-featured { background: #eef1ff; border-color: #d7defd; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; color: #66718c; }
.stat-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #7763aa; background: #f3f0fb; border-radius: 7px; }
.stat-icon .icon { width: 15px; height: 15px; }
.stat-icon.blue { background: #dfe5ff; color: #425cce; }
.stat-icon.green { background: #e8f6f0; color: #24745e; }
.stat-icon.rose { background: #fff1e9; color: #b1663b; }
.stat-value { font-size: clamp(23px, 2.3vw, 33px); font-weight: 650; letter-spacing: -1.3px; line-height: 1.2; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 10px; color: #74809a; }
.workboard { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); background: #17213d; color: #fff; border-radius: 12px; padding: 24px 26px; margin-bottom: 24px; }
.workboard-intro { padding-right: 24px; }
.workboard-intro .eyebrow { color: #b1bdf1; font-size: 8px; letter-spacing: 1.6px; }
.workboard h2 { font-size: 19px; font-weight: 550; letter-spacing: -.4px; }
.workboard-intro p { color: #a2adc8; font-size: 10px; margin-top: 9px; }
.workboard-link { display: flex; flex-direction: column; padding: 5px 19px; border-left: 1px solid #35405c; position: relative; }
.step-no { color: #99f2d0; font-size: 10px; font-weight: 650; margin-bottom: 18px; }
.workboard-link strong { font-size: 12px; font-weight: 550; line-height: 1.5; }
.workboard-link > span:not(.step-no) { color: #a2adc8; font-size: 10px; line-height: 1.5; margin-top: 5px; padding-right: 8px; }
.workboard-link > .icon { width: 16px; height: 16px; color: #99f2d0; position: absolute; top: 4px; right: 18px; }
.workboard-link:hover { background: #202d4c; border-radius: 5px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(255px, 1fr); gap: 22px; }
.period-label { color: #7c87a0; font-size: 9px; }
.chart-summary { display: flex; flex-direction: column; gap: 5px; }
.chart-summary strong { font-size: 28px; letter-spacing: -1px; font-weight: 600; }
.chart-summary span { font-size: 9px; color: var(--muted); }
.line-chart { margin-top: 12px; }
.line-chart svg { width: 100%; height: 160px; overflow: visible; }
.chart-grid { stroke: #edf0f7; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-baseline { stroke: #d9dfef; stroke-width: 1; }
.chart-labels { display: grid; grid-template-columns: repeat(7, 1fr); margin: -8px 0 0; }
.chart-labels span { text-align: center; font-size: 9px; color: #7a869f; text-transform: capitalize; }
.chart-labels b { margin-left: 4px; font-weight: 400; color: #9da6b8; }
.alert-count { display: grid; place-items: center; width: 27px; height: 27px; background: #fff0e4; color: #a45e2d; border-radius: 7px; font-size: 12px; }
.stock-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eef0f6; }
.stock-row:last-of-type { border-bottom: 0; }
.stock-symbol { width: 32px; height: 36px; display: grid; place-items: center; color: #949fba; background: #f5f7fb; border-radius: 6px; }
.stock-symbol .icon { width: 16px; height: 16px; }
.stock-row > div { min-width: 0; }
.stock-row strong { font-size: 11px; font-weight: 550; }
.stock-row > div small { display: block; color: #8a94a9; font-size: 9px; margin-top: 4px; }
.stock-value { margin-left: auto; font-size: 13px; font-weight: 600; color: #a66537; white-space: nowrap; }
.stock-value small { font-size: 9px; font-weight: 400; }
.inventory-panel { display: flex; flex-direction: column; }
.inventory-panel .panel-bottom-link { margin-top: auto; }
.orders-panel { margin-top: 24px; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.delivery-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.delivery-card:hover { border-color: #abb9ef; background: #fafbff; }
.delivery-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 20px; }
.delivery-top > span:last-child { font-size: 9px; color: #7d87a0; }
.delivery-card .customer-cell { font-size: 11px; }
.delivery-card p { font-size: 10px; color: var(--muted); margin: 12px 0 18px; }
.delivery-bottom { display: flex; align-items: center; justify-content: space-between; color: #43598f; font-size: 12px; }
.delivery-bottom .icon { width: 14px; height: 14px; }
/* Tables, search and filters */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 420px; min-width: 210px; }
.search input { width: 100%; padding-left: 39px; }
.search .icon { position: absolute; top: 13px; left: 13px; width: 16px; height: 16px; color: #8e99b3; }
input, select, textarea { border: 1px solid #d7deeb; border-radius: 7px; background: white; padding: 11px 12px; font-size: 12px; color: var(--ink); min-width: 0; }
input::placeholder, textarea::placeholder { color: #8d98ae; }
input:disabled, select:disabled { background: #f3f5f9; color: #7c879e; }
textarea { resize: vertical; min-height: 90px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.filter { background: transparent; border: 1px solid #dce1ec; color: #677492; padding: 9px 14px; border-radius: 6px; font-size: 11px; }
.filter.active { background: #e7ecff; border-color: #b9c6ff; color: #354fc3; font-weight: 650; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
th { text-transform: uppercase; letter-spacing: .7px; font-size: 9px; font-weight: 650; color: #7c88a2; padding: 12px 13px; background: #f6f8fc; border-bottom: 1px solid var(--line); }
td { padding: 17px 13px; border-bottom: 1px solid #edf0f5; color: #616d88; }
tr:last-child td { border-bottom: 0; }
td strong { color: #34415f; font-weight: 550; }
td .sub { display: block; font-size: 10px; color: #8892a8; margin-top: 5px; }
.customer-cell { display: flex; align-items: center; gap: 9px; }
.customer-cell strong { font-weight: 550; }
.customer-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ecf0f9; color: #687ca8; font-size: 9px; font-weight: 650; flex-shrink: 0; }
.metric-summary { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.toolbar .metric-summary { margin-bottom: 0; }
.sales-date { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.sales-date input { padding: 9px; font-size: 11px; }
/* Point of sale */
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 0; text-align: left; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #8ba0f0; box-shadow: 0 4px 15px #344c8e0c; }
.product-art { height: 120px; position: relative; display: grid; place-items: center; background: #f0f3fa; border-bottom: 1px solid #edf0f7; }
.product-card:nth-child(3n+2) .product-art { background: #eff6f4; }
.product-card:nth-child(3n) .product-art { background: #f4f1f8; }
.product-art svg { width: 104px; height: 87px; }
.stock-chip { position: absolute; right: 8px; top: 8px; padding: 3px 6px; border-radius: 4px; background: #ffffffdf; color: #64708b; font-size: 8px; }
.product-details { padding: 14px; }
.product-category { font-size: 8px; font-weight: 650; letter-spacing: .7px; color: #7e8dac; text-transform: uppercase; }
.product-name { font-size: 12px; line-height: 1.5; font-weight: 550; margin-top: 7px; min-height: 36px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 12px; font-size: 15px; font-weight: 650; }
.add-circle { display: grid; place-items: center; width: 25px; height: 25px; background: #eef1ff; color: #4b62c8; border-radius: 6px; }
.add-circle .icon { width: 14px; height: 14px; }
.cart { position: sticky; top: 92px; padding: 21px; box-shadow: 0 4px 25px #1e305b05; }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.cart-head h2 { font-size: 18px; }
.cart-lines { max-height: 350px; overflow: auto; margin-bottom: 18px; }
.cart-line { display: flex; align-items: center; gap: 9px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-mini-art { width: 38px; height: 40px; border-radius: 6px; background: #f1f4fa; display: grid; place-items: center; flex-shrink: 0; }
.cart-mini-art svg { width: 35px; height: 34px; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong { display: block; font-size: 11px; line-height: 1.5; font-weight: 550; }
.cart-line-info small { font-size: 10px; color: #8894ad; }
.cart-price { font-size: 12px; font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; }
.qty-control button { width: 26px; height: 26px; border: 1px solid #dfe4ef; border-radius: 5px; background: white; padding: 0; }
.cart-field { margin: 15px 0; }
.cart-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.cart-field input, .cart-field select { width: 100%; }
.cart-summary { border-top: 1px solid var(--line); padding: 14px 0 20px; }
.cart-summary .row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #7c88a0; margin: 8px 0; }
.cart-summary .total { font-size: 20px; color: var(--ink); font-weight: 650; margin-top: 17px; letter-spacing: -.5px; }
.cart-footnote { font-size: 9px; color: #8490a9; text-align: center; margin-top: 14px; }
.mobile-cart-jump { display: none; }
.empty { text-align: center; padding: 35px 15px; font-size: 11px; line-height: 1.8; color: #8590a8; }
.empty > .icon { width: 30px; height: 30px; color: #b7c2d9; margin-bottom: 12px; }
.empty strong { display: block; font-weight: 550; color: #657391; font-size: 12px; margin-bottom: 4px; }
/* Forms, recipes, cash and settings */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.recipe-art { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.recipe-art > svg { width: 52px; height: 52px; border-radius: 9px; background: #f0f3fa; flex-shrink: 0; }
.recipe-art h3 { font-size: 15px; }
.recipe-art p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.recipe-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.recipe-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f6; font-size: 11px; color: #78849d; }
.recipe-lines strong { font-weight: 500; white-space: nowrap; }
.recipe-cost { font-size: 10px; color: #8490a8; margin-bottom: 20px; }
.two-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; font-weight: 550; color: #4d5d7e; }
.field small { font-size: 10px; color: #8290ab; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-hint { font-size: 11px; color: #6e7c99; line-height: 1.7; border-left: 3px solid #c6d2f5; background: #f3f6fc; padding: 12px 14px; border-radius: 0 5px 5px 0; }
.form-error { background: #fff0f2; color: var(--red); font-size: 11px; padding: 11px 14px; border-radius: 6px; line-height: 1.6; }
.form-error:empty { display: none; }
.form-section-title { font-size: 11px; color: #4d5d7e; font-weight: 550; margin: 5px 0 12px; }
.recipe-row, .order-row { display: grid; grid-template-columns: minmax(0, 1fr) 85px 32px; gap: 8px; margin-bottom: 10px; }
.row-delete { border: 0; background: #fff0f2; border-radius: 6px; color: #b06575; padding: 0; }
.row-delete .icon { width: 15px; height: 15px; }
.recipe-preview { font-size: 11px; color: #7c89a1; line-height: 1.8; }
.recipe-preview .need { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.recipe-preview .insufficient { color: var(--red); }
.cash-total { font-size: 43px; letter-spacing: -1.8px; font-weight: 600; padding: 10px 0 25px; }
.cash-summary { margin-bottom: 24px; }
.cash-summary .row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.cash-summary .row strong { font-weight: 600; }
.settings-card { max-width: 730px; }
.settings-card h2 { margin-bottom: 22px; }
.actions { display: flex; align-items: center; gap: 7px; }
.spaced { margin-top: 24px; }
.small { font-size: 11px; }
.muted, .inline-note { color: #7b88a2; }
.inline-note { font-size: 10px; line-height: 1.7; }
.wrap { white-space: normal; min-width: 180px; }
.nowrap { white-space: nowrap; }
.warning-block { background: #fff4e5; color: #8e672d; padding: 16px; border-radius: 8px; font-size: 12px; margin-bottom: 20px; }
.error-screen { background: white; border-radius: 12px; padding: 50px; max-width: 700px; margin: 60px auto; line-height: 1.8; }
/* Dialogs and receipts */
dialog { width: min(570px, calc(100% - 32px)); max-height: 90dvh; padding: 0; border: 1px solid #d9dfeb; border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 30px 100px #17213d40; }
dialog::backdrop { background: #14203f66; backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 22px; }
.modal-body { padding: 24px 25px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.payment-total { text-align: center; font-size: 42px; font-weight: 650; letter-spacing: -1.5px; margin: 10px 0 26px; }
.payment-label { text-align: center; font-size: 10px; letter-spacing: 1.5px; color: #8290ad; text-transform: uppercase; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 22px; }
.payment-option { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 15px 8px; font-size: 11px; color: #7784a0; background: white; }
.payment-option.selected { color: #3d58c2; background: #f0f3ff; border-color: #aabaf3; }
.change-row { display: flex; justify-content: space-between; background: #edf8f2; color: #36745a; padding: 14px; border-radius: 7px; font-size: 12px; margin-top: 14px; }
.receipt { text-align: center; }
.receipt .success-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #e5f7ee; color: #277c5b; border-radius: 14px; margin: 0 auto 18px; }
.receipt h3 { font-size: 23px; font-weight: 600; }
.receipt .ticket { text-align: left; border-top: 1px dashed #cad2e3; border-bottom: 1px dashed #cad2e3; padding: 18px 0; margin: 22px 0; font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.8; }
.ticket .row { display: flex; justify-content: space-between; gap: 10px; }
.ticket .strong { font-weight: bold; margin-top: 10px; }
.ticket small { display: block; font-size: 10px; color: #8793ac; margin-bottom: 10px; }
.details-list { font-size: 12px; line-height: 1.8; }
.details-list p { margin-bottom: 10px; }
.details-list ul { padding-left: 18px; }
#toast { position: fixed; right: 25px; bottom: 25px; padding: 15px 20px; max-width: calc(100% - 32px); background: #1e624e; color: white; box-shadow: 0 8px 25px #17213d20; border-radius: 9px; font-size: 12px; z-index: 100; opacity: 0; transform: translateY(120px); transition: .2s; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast.error { background: #9b364b; }
/* Responsive layouts */
@media (min-width: 1600px) {
  .main { padding: 20px 45px 30px; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .delivery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .sidebar { width: 210px; padding-left: 10px; padding-right: 10px; }
  .workspace { margin-left: 210px; }
  .main { padding-left: 24px; padding-right: 24px; }
  .topbar { padding: 0 24px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 16px; }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workboard { padding: 24px 20px; }
  .workboard-link { padding-left: 15px; padding-right: 10px; }
  .workboard-intro h2 { font-size: 17px; }
  .workboard-link strong { font-size: 11px; }
  .two-cols { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid { gap: 18px; }
  .panel { padding: 20px; }
}
@media (max-width: 980px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .2s; width: 240px; }
  .workspace { margin-left: 0; }
  .shell.menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .shell.menu-open .mobile-scrim { display: block; position: fixed; inset: 72px 0 0; background: #14203f66; z-index: 20; border: 0; }
  .mobile-menu { display: inline-flex; background: transparent; border: 0; padding: 5px; color: #5e6e91; margin-right: 4px; }
  .main { max-width: 960px; }
  .stat-value { font-size: 29px; }
}
@media (max-width: 650px) {
  .shell { padding-top: 64px; }
  .app-header { height: 64px; padding: 0 17px; gap: 15px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-name { font-size: 25px; }
  .brand-caption, .header-business { display: none; }
  .top-actions { margin-left: auto; gap: 12px; }
  .workspace-avatar { width: 29px; height: 29px; font-size: 9px; }
  .pill { font-size: 9px; }
  .sidebar { top: 64px; }
  .shell.menu-open .mobile-scrim { top: 64px; }
  .topbar { height: 57px; padding: 0 15px; }
  .breadcrumb { gap: 6px; font-size: 10px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > .icon { display: none; }
  .main { padding: 8px 16px 20px; }
  .page-heading { align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 11px; }
  .page-heading > .button { min-height: 38px; padding: 9px 13px; font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .stat { padding: 14px; }
  .stat-top { font-size: 9px; align-items: flex-start; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-icon .icon { width: 13px; height: 13px; }
  .stat-value { font-size: 26px; margin-top: 10px; }
  .stat-foot { font-size: 9px; line-height: 1.5; }
  .workboard { grid-template-columns: 1fr; padding: 22px; margin-bottom: 18px; }
  .workboard-intro { padding: 0 0 20px; }
  .workboard-intro h2 { font-size: 21px; }
  .workboard-intro h2 br { display: none; }
  .workboard-link { border-left: 0; border-top: 1px solid #35405c; padding: 15px 27px 15px 30px; }
  .step-no { position: absolute; top: 18px; left: 0; font-size: 9px; }
  .workboard-link strong { font-size: 12px; }
  .workboard-link > span:not(.step-no) { font-size: 10px; margin-top: 3px; }
  .workboard-link > .icon { top: 22px; right: 0; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 18px; }
  .panel { padding: 19px; }
  .panel-head { margin-bottom: 20px; }
  .panel-head h2 { font-size: 18px; }
  .period-label { max-width: 90px; line-height: 1.5; text-align: right; }
  .inventory-panel .panel-bottom-link { margin-top: 16px; }
  .orders-panel { margin-top: 18px; }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-top { margin-bottom: 15px; }
  .delivery-card p { margin: 10px 0 13px; }
  .delivery-top > span:last-child { font-size: 10px; }
  .chart-labels b { display: block; margin: 4px 0 0; }
  .footer { flex-direction: column; gap: 8px; line-height: 1.5; }
  .pos-grid { grid-template-columns: 1fr; }
  .cart { position: static; }
  .catalog-grid { gap: 11px; }
  .product-art { height: 115px; }
  .product-details { padding: 13px; }
  .product-name { font-size: 12px; }
  .search { min-width: 0; max-width: none; width: 100%; }
  .toolbar { gap: 13px; }
  .filter { padding: 9px 12px; font-size: 10px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 12px; }
  .recipe-row, .order-row { grid-template-columns: minmax(0, 1fr) 65px 28px; gap: 6px; }
  .recipe-row select, .order-row select { padding: 10px 6px; font-size: 11px; }
  .sales-date { flex-wrap: wrap; gap: 6px; }
  .sales-date input { max-width: 129px; }
  .modal-head { padding: 20px; }
  .modal-head h2 { font-size: 21px; }
  .modal-body { padding: 20px; }
  .payment-total { font-size: 37px; }
  .cash-total { font-size: 38px; }
  .mobile-cart-jump { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 9px; background: var(--accent); color: white; border: 0; padding: 17px; border-radius: 9px; font-size: 11px; box-shadow: 0 6px 25px #3449a340; }
  .mobile-cart-jump strong { margin-left: auto; font-size: 14px; }
  .mobile-cart-jump > .icon:last-child { width: 16px; height: 16px; }
  .main:has(.pos-grid) .footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .app-header, .sidebar, .topbar, .main, .mobile-scrim, .modal-head, .modal-footer, #toast, .mobile-cart-jump { display: none !important; }
  body { background: white; }
  .shell { padding: 0; }
  dialog[open] { display: block !important; position: static; border: 0; box-shadow: none; width: 80mm; max-height: none; margin: 0 auto; padding: 0; }
  dialog::backdrop { background: none; }
  .modal-body { padding: 5mm; }
  .receipt .success-icon, .receipt > h3, .receipt > p, .receipt > .button { display: none; }
  .receipt .ticket { border: 0; }
  .receipt { font-size: 10pt; }
  .ticket::before { content: 'MAVUKO · COMPROBANTE INTERNO'; display: block; text-align: center; margin-bottom: 6mm; }
}
