:root {
  color-scheme: light;
  font: 16px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
  --navy: #15243d;
  --navy2: #243652;
  --ink: #15243b;
  --muted: #58687d;
  --line: #e2e8f0;
  --canvas: #f4f6fa;
  --paper: #fff;
  --accent: #ed5638;
  --accent-dark: #c64027;
  --blue: #265bca;
  --blue-wash: #edf3ff;
  --green: #14694e;
  --radius: 13px;
  --shadow: 0 2px 4px #1a315909, 0 1px 1px #1a315905;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { line-height: 1.35; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .53; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5485e8; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 2.6vw, 2.3rem); letter-spacing: -.052em; line-height: 1.13; font-weight: 760; }
h2 { font-size: 1.12rem; letter-spacing: -.025em; }
small { font-size: .78rem; }
svg.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; vertical-align: -.19em; }
[data-icon] { display: inline-flex; align-items: center; }
.app { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; color: #eef3fc; background: var(--navy); display: flex; flex-direction: column; padding: 27px 14px 17px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 4px; font-size: 1.16rem; font-weight: 780; letter-spacing: -.035em; line-height: 1.15; }
.brand-icon { width: 40px; height: 40px; background: #f76a4e; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; box-shadow: inset 0 0 0 1px #ffffff38; color: #14213b; }
.brand-caption { display: block; font-size: .63rem; letter-spacing: .13em; margin-top: 5px; color: #b5c5e1; font-weight: 650; }
.sidebar nav { margin-top: 37px; display: grid; gap: 4px; }
.nav-label { color: #afbed7; font-weight: 700; font-size: .68rem; letter-spacing: .12em; padding: 0 12px; margin-bottom: 4px; }
.records-label { margin-top: 22px; }
.sidebar nav a, .sidebar-help { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 9px; font-size: .91rem; font-weight: 580; color: #cbd6eb; }
.sidebar nav a:hover, .sidebar-help:hover { background: #263650; color: #fff; }
.sidebar nav a[aria-current=page] { background: #2b4269; color: #fff; box-shadow: inset 3px 0 #759ef7, inset 0 1px #ffffff13; font-weight: 720; }
.sidebar nav .icon { font-size: 1.02rem; }
.nav-count { margin-left: auto; border-radius: 6px; padding: 1px 6px; color: #ffceb6; font-size: .75rem; background: #ffffff12; }
.sidebar-footer { margin-top: auto; }
.sidebar-help { border: 0; background: transparent; width: 100%; text-align: left; }
.store-profile { border-top: 1px solid #ffffff24; display: flex; gap: 9px; align-items: center; margin-top: 12px; padding: 15px 2px 1px; }
.store-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; background: #344764; border-radius: 9px; }
.store-profile strong { display: block; font-size: .76rem; font-weight: 700; }
.store-profile div span { display: block; font-size: .72rem; color: #b5c5e1; }
.topbar { min-height: 66px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.breadcrumb, .topbar-meta, .date-label, .demo-badge { display: flex; align-items: center; gap: 9px; font-size: .85rem; }
.breadcrumb, .date-label { color: var(--muted); }
.breadcrumb strong { color: var(--ink); }
.breadcrumb .icon { width: .85em; }
.topbar-meta { gap: 18px; }
.date-label::first-letter { text-transform: uppercase; }
.demo-badge { color: #87431d; background: #fff2e8; border: 1px solid #fee4d3; border-radius: 30px; padding: 5px 10px; white-space: nowrap; font-weight: 680; }
.demo-badge i { width: 7px; height: 7px; border-radius: 50%; background: #df6d38; }
main { padding: 26px 28px 32px; max-width: 1700px; margin: 0 auto; }
.loading { padding: 30px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.page-head p { margin-top: 6px; color: var(--muted); font-size: .94rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn, .icon-btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; padding: 8px 13px; font-weight: 670; font-size: .875rem; }
.btn:hover:not(:disabled), .icon-btn:hover:not(:disabled) { background: #f3f6fa; border-color: #cbd5e3; }
.btn.primary { background: var(--navy); color: white; border-color: var(--navy); }
.btn.primary:hover:not(:disabled) { background: var(--navy2); }
.btn.accent { background: var(--accent-dark); color: white; border-color: transparent; }
.btn.accent:hover:not(:disabled) { background: #a63320; border-color: transparent; }
.btn.danger { color: #b42324; border-color: #f2c5c2; }
.btn.text { background: transparent; padding-inline: 5px; border-color: transparent; color: var(--blue); }
.icon-btn { min-height: 34px; padding: 6px; width: 34px; flex: 0 0 auto; }
.icon-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.pos { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px, 347px); gap: 20px; align-items: start; }
.catalog { min-width: 0; }
.search { display: flex; align-items: center; background: white; border: 1px solid #dbe3ee; border-radius: 10px; min-height: 48px; padding: 0 11px 0 14px; gap: 10px; color: #6b7b92; box-shadow: var(--shadow); }
.search:focus-within { outline: 2px solid #5684e566; border-color: #5684e5; }
.search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); min-width: 0; font-size: .94rem; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: #627289; }
kbd { flex: 0 0 auto; font: 660 .72rem/1.2 "Segoe UI", system-ui, sans-serif; border-radius: 5px; color: #5c6c83; border: 1px solid #e0e5ef; background: #f7f9fc; padding: 4px 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 1px; }
.chip { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: white; color: #435470; padding: 7px 12px; border-radius: 8px; font-size: .83rem; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.chip:hover { background: #edf3fc; }
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: white; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 11px; }
.catalog-head h2 { display: flex; align-items: center; gap: 8px; }
.count-tag { font-size: .75rem; padding: 1px 7px; color: #4b5f7c; background: #e7edf7; border-radius: 10px; letter-spacing: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; width: 100%; min-width: 0; text-align: left; padding: 0; border: 1px solid #e0e6ee; border-radius: 12px; background: white; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .12s, border-color .12s, box-shadow .12s; }
.product:hover:not(:disabled) { transform: translateY(-2px); border-color: #a2b9e1; box-shadow: 0 5px 14px #2a4f8618; }
.product:disabled { opacity: .73; }
.product-art { height: 113px; width: 100%; background: #f7f9fa; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-art img { width: 100%; height: 100%; object-fit: contain; position: absolute; mix-blend-mode: multiply; }
.product-art .art-fallback { font-size: 2.75rem; display: grid; place-items: center; }
.blue { background: #eef5ff; } .sand { background: #fcf4e5; } .cyan { background: #eaf6fa; } .lilac { background: #f2edfd; } .mint { background: #eaf7f1; } .pink { background: #fcf0f3; }
.product-art:has(img) { background: #f5f7fa; }
.stock-tag { position: absolute; top: 8px; left: 8px; font-size: .67rem; line-height: 1.4; padding: 3px 6px; border-radius: 5px; background: #ffffffed; color: #4d5d73; font-weight: 750; }
.stock-tag.low { background: #fff0d6; color: #854309; }
.stock-tag.out { background: #fae2e2; color: #9d2525; }
.product-info { width: 100%; display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 10px 10px 9px; }
.product-name { font-weight: 690; font-size: .85rem; line-height: 1.27; min-height: 2.54em; overflow-wrap: anywhere; }
.product-price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 5px; font-weight: 790; font-size: 1.05rem; letter-spacing: -.04em; }
.add-mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #deebff; background: #f1f6ff; color: var(--blue); border-radius: 7px; font-size: .90rem; }
.checkout { display: flex; flex-direction: column; position: sticky; top: 12px; min-height: 445px; overflow: hidden; }
.checkout-head { padding: 15px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.checkout-icon { width: 37px; height: 37px; border-radius: 9px; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; font-size: 1.05rem; }
.checkout-title { flex: 1; }
.checkout-title span { display: block; color: var(--muted); font-size: .76rem; }
.cart-lines { padding: 0 15px; min-height: 189px; max-height: min(43vh, 385px); overflow: auto; }
.cart-line { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.cart-line:last-child { border-bottom: none; }
.mini-art { display: grid; place-items: center; border-radius: 8px; width: 35px; height: 35px; overflow: hidden; }
.mini-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-product { font-size: .83rem; line-height: 1.2; font-weight: 720; overflow-wrap: anywhere; }
.cart-price { font-size: .84rem; font-weight: 770; white-space: nowrap; }
.cart-unit { margin-right: 5px; color: var(--muted); font-size: .73rem; }
.stepper { display: inline-flex; margin-top: 6px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; align-items: center; }
.stepper button { display: grid; place-items: center; border: 0; background: #f8fafd; color: #38547c; padding: 3px 5px; width: 24px; height: 24px; font-size: .72rem; }
.stepper button:hover:not(:disabled) { background: var(--blue-wash); }
.stepper span { min-width: 24px; text-align: center; font-size: .76rem; font-weight: 700; }
.cart-empty, .empty { color: var(--muted); text-align: center; padding: 29px 18px; }
.cart-empty .icon, .empty .icon { font-size: 1.6rem; color: #6f89af; }
.cart-empty strong, .empty strong { display: block; color: var(--ink); margin: 5px auto; }
.cart-empty p, .empty p { font-size: .85rem; }
.checkout-foot { padding: 13px 16px 15px; background: #fbfcfe; border-top: 1px solid var(--line); margin-top: auto; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: var(--muted); font-size: .83rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 12px; font-size: 1.03rem; font-weight: 740; }
.total strong { font-size: 1.95rem; line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.pay-btn { width: 100%; min-height: 48px; font-size: .99rem; justify-content: space-between; }
.pay-btn span { display: flex; gap: 7px; align-items: center; }
.pay-btn kbd { color: white; background: #ffffff20; border-color: #ffffff45; }
.checkout-note { margin-top: 9px; text-align: center; font-size: .75rem; color: #657489; }
.more { text-align: center; margin-top: 16px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.metric { padding: 14px 15px; min-width: 0; }
.metric-header { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.metric-header span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-wash); color: var(--blue); }
.metric strong { display: block; font-size: clamp(1.25rem, 2.2vw, 1.8rem); letter-spacing: -.05em; line-height: 1.1; margin-top: 9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { display: block; color: var(--muted); margin-top: 4px; }
.table-panel { overflow: hidden; }
.table-tools { padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.table-tools .search { flex: 1 1 210px; min-height: 40px; }
.table-tools label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; }
.field, select { width: 100%; border: 1px solid #cfd9e7; background-color: white; border-radius: 8px; min-height: 40px; padding: 9px 11px; color: var(--ink); font-size: .91rem; }
select { width: auto; appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358687d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th { background: #f7f9fc; color: #52627a; font-size: .77rem; white-space: nowrap; }
td, th { border-top: 1px solid #e8edf3; padding: 10px 13px; }
tbody tr:hover { background: #fafcfe; }
td strong { font-weight: 700; }
.item-cell { display: flex; align-items: center; gap: 8px; min-width: 165px; }
.item-cell small { display: block; color: var(--muted); }
.money { font-weight: 730; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .81rem; }
.table-footer div { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; border-radius: 6px; padding: 3px 7px; font-size: .75rem; font-weight: 690; white-space: nowrap; background: #edf2fa; color: #435b80; }
.tag.ok { background: #e9f6ef; color: #14674c; }
.tag.low { background: #fff1d9; color: #86470d; }
.tag.out { background: #fcebec; color: #a52d30; }
.positive { color: #187254; } .negative { color: #a43136; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.68fr) minmax(245px,1fr); gap: 15px; margin-bottom: 15px; }
.report-panel { padding: 16px 17px; min-width: 0; }
.report-panel p { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.pay-report { display: grid; gap: 13px; margin-top: 19px; }
.pay-report-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; font-size: .85rem; }
.pay-report-row strong { font-variant-numeric: tabular-nums; }

.stock-list { list-style: none; margin: 10px 0 0; padding: 0; }
.stock-list li { padding: 9px 0; border-bottom: 1px solid #edf1f6; display: flex; align-items: center; gap: 8px; font-size: .85rem; justify-content: space-between; }
.stock-list li:last-child { border: 0; }
dialog { padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid #dce4ef; border-radius: 16px; color: var(--ink); box-shadow: 0 14px 65px #13243f3d; }
dialog::backdrop { background: #10244277; }
.dialog-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 17px 19px 12px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.3rem; margin-top: 2px; }
.dialog-head p { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.dialog-content { padding: 16px 19px; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 13px 19px; background: #f8fafd; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-grid label, .field-label { display: grid; align-content: start; gap: 4px; color: #405370; font-size: .85rem; font-weight: 650; min-width: 0; }
.form-grid select { width: 100%; }
.wide { grid-column: 1 / -1; }
.error { color: #ac242c; background: #fff0f0; display: block; border-radius: 8px; font-size: .85rem; padding: 8px 10px; margin-top: 10px; overflow-wrap: anywhere; }
.pay-amount { text-align: center; border-radius: 11px; background: #f1f5fc; padding: 11px; margin-bottom: 13px; color: var(--muted); font-size: .82rem; }
.pay-amount strong { display: block; color: var(--ink); font-size: 2.1rem; line-height: 1.2; letter-spacing: -.055em; }
.payment-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 13px; }
.payment-choices label { position: relative; display: grid; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; font-size: .80rem; color: var(--muted); cursor: pointer; font-weight: 650; }
.payment-choices label:has(input:checked) { border-color: #7fa3e7; background: var(--blue-wash); color: #244eaa; }
.payment-choices label:focus-within { outline: 2px solid #5485e8; }
.payment-choices input { position: absolute; opacity: 0; }
.quick-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.change { padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.muted { color: var(--muted); }
.dialog-content p + p { margin-top: 9px; }
.help-list { margin: 0; padding-left: 21px; font-size: .91rem; }
.help-list li + li { margin-top: 8px; }
.receipt-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.receipt-total { margin-top: 10px; }
#toast { position: fixed; z-index: 10; bottom: 16px; left: 50%; transform: translate(-50%, 15px); opacity: 0; padding: 10px 15px; max-width: calc(100vw - 20px); width: max-content; pointer-events: none; color: white; background: #193151; border-radius: 10px; transition: .18s; font-size: .88rem; box-shadow: 0 6px 20px #12233a40; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#print { display: none; }
@media (max-width: 1260px) {
  .app { grid-template-columns: 193px minmax(0,1fr); }
  .pos { grid-template-columns: minmax(0,1fr) 305px; gap: 14px; }
  main, .topbar { padding-inline: 20px; }
  .catalog-grid { gap: 9px; }
  .store-profile strong { font-size: .72rem; }
}
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 64px minmax(0,1fr); }
  .sidebar { padding: 14px 8px; }
  .brand { padding: 0; justify-content: center; }
  .brand > span:last-child, .nav-label, .store-profile div, .nav-count { display: none; }
  .sidebar nav { margin-top: 23px; }
  .sidebar nav a, .sidebar-help { font-size: 0; justify-content: center; gap: 0; min-height: 42px; }
  .sidebar-help .icon { font-size: 1rem; }
  .store-profile { justify-content: center; }
  .pos { grid-template-columns: minmax(0,1fr) minmax(265px, 290px); }
}
@media (max-width: 720px) {
  main, .topbar { padding-inline: 12px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .report-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .product-art { height: 88px; }
}
@media (max-width: 580px) {
  .app { display: block; }
  .sidebar { z-index: 2; top: auto; bottom: 0; position: fixed; width: 100%; height: 57px; flex-direction: row; align-items: center; padding: 3px 6px; }
  .brand, .sidebar-footer { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; width: 100%; margin: 0; }
  .sidebar nav a { display: grid; justify-items: center; padding: 4px 1px; font-size: .67rem; gap: 2px; text-align: center; }
  .sidebar nav a .icon { font-size: .92rem; }
  .topbar { min-height: 49px; }
  .tabs { flex-wrap: nowrap; overflow: auto; scrollbar-width: thin; }
  .date-label { display: none; }
  main { padding-top: 15px; padding-bottom: 70px; }
  .pos { display: flex; flex-direction: column; }
  .catalog, .checkout { width: 100%; }
  .checkout { position: static; order: -1; min-height: 0; }
  .cart-lines { min-height: 0; max-height: 185px; }
  .cart-empty { padding: 13px 8px; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-info { padding: 7px; }
  .product-name { font-size: .78rem; }
  .product-price { font-size: .9rem; }
  .head-actions { width: 100%; }
  .page-head { margin-bottom: 13px; }
  .total strong { font-size: 1.55rem; }
  #toast { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  body { background: white; color: black; }
  body > :not(#print), dialog::backdrop { display: none !important; }
  #print { display: block; width: min(100%, 72mm); font: 12px/1.5 ui-monospace, monospace; color: black; }
  #print h1 { font: bold 16px/1.3 ui-monospace, monospace; }
  #print header { text-align: center; padding-bottom: 8px; border-bottom: 1px dashed black; }
  #print table { font-size: 11px; }
  #print td, #print th { padding: 4px 2px; color: black; background: white; }
  #print .total { border-top: 1px dashed black; margin: 6px 0; padding-top: 6px; font-size: 13px; }
  #print strong { font-size: inherit; }
}
.profile-entry { width: min(850px, 100%); min-height: 100dvh; padding: clamp(28px,7vh,77px) 20px 32px; }
.profile-hero { color: white; overflow: hidden; border-radius: 20px; padding: clamp(25px,5vw,51px); background: radial-gradient(ellipse at 100% 10%, #335798, transparent 60%), linear-gradient(135deg,#14233c,#1e3761); }
.profile-brand { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; font-weight: 760; }
.profile-brand .brand-icon { flex: 0 0 auto; }
.profile-heading { margin-top: 33px; }
.profile-heading .demo-badge { width: max-content; margin-bottom: 8px; }
.profile-heading h1 { font-size: clamp(2rem,5vw,3rem); }
.profile-heading p { margin-top: 5px; color: #d1def5; font-size: .95rem; }
.profile-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.profile-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; padding: 20px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.profile-card:hover { border-color: #8ea9e4; box-shadow: 0 5px 18px #1a315916; }
.role-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; color: #2357bd; background: #edf3ff; font-size: 1.23rem; }
.role-icon.administrador { color: #8c351f; background: #fff0e8; }
.profile-card strong { font-size: 1.22rem; letter-spacing: -.03em; }
.profile-description { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.profile-access { color: var(--blue); font-weight: 720; font-size: .88rem; margin-top: auto; padding-top: 10px; }
.profile-note { color: var(--muted); font-size: .85rem; margin: 14px 3px 0; }
.profile-label { display: inline-flex; align-items: center; gap: 5px; color: #315488; font-size: .82rem; font-weight: 720; white-space: nowrap; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.settings-tabs [aria-current=page] { color: white; background: var(--navy); border-color: var(--navy); }
.settings-content .page-head { margin-bottom: 15px; }
.settings-content .page-head h2 { font-size: 1.35rem; }
.current-profile { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 17px; }
.current-profile > div { flex: 1 0 180px; }
.current-profile p { color: var(--muted); font-size: .86rem; }
@media (max-width: 580px) {
  .sidebar nav { display: flex; }
  .sidebar nav a { flex: 1; }
  .breadcrumb > span:first-child, .breadcrumb > span[data-icon] { display: none; }
  .profile-label .icon { display: none; }
  .topbar-meta { gap: 7px; }
  .profile-entry { padding: 16px 12px; }
  .profile-options { grid-template-columns: 1fr; gap: 9px; }
  .profile-card { padding: 13px; }
  .profile-heading { margin-top: 21px; }
}
.report-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.range-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #eef2fa; padding: 3px; border-radius: 9px; }
.range-switch button { padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: #425675; font-size: .79rem; font-weight: 700; }
.range-switch button:hover { background: #e2eaff; }
.range-switch button[aria-pressed=true] { background: white; color: #234eb8; box-shadow: 0 1px 3px #294b7c22; }
.report-volume { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin: 12px 0 18px; }
.report-volume strong { font-size: 1.95rem; letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1; }
.report-volume span { color: var(--muted); font-size: .8rem; }
.sales-plot { display: grid; grid-template-columns: minmax(36px,auto) minmax(0,1fr); grid-template-rows: 158px auto; gap: 0 8px; margin: 0 0 12px; }
.plot-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: #536783; font-size: .71rem; font-variant-numeric: tabular-nums; margin: -.55em 0; }
.plot-area { position: relative; isolation: isolate; }
.plot-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.plot-grid i { width: 100%; border-top: 1px dashed #d8e3f3; }
.plot-area canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.plot-point { position: absolute; width: 26px; height: 26px; background: transparent; border: 0; padding: 0; top: var(--y); left: var(--x); transform: translate(-50%,-50%); display: grid; place-items: center; border-radius: 100%; }
.plot-point::before { content: ''; display: block; width: 11px; height: 11px; box-sizing: border-box; border: 2px solid #3f63df; border-radius: 100%; background: #fff; box-shadow: 0 0 0 2px #f2f5ff; }
.plot-point:hover::before, .plot-point[aria-pressed=true]::before { width: 13px; height: 13px; background: #3158d1; border-color: #fff; box-shadow: 0 0 0 4px #6b8bf448; }
.plot-x { display: grid; grid-column: 2; grid-template-columns: repeat(var(--columns),minmax(0,1fr)); color: #536783; font-size: .7rem; line-height: 1.12; text-align: center; margin-top: 9px; }
.plot-selection { background: #eef3ff; border-radius: 8px; color: #344e7e; display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; padding: 8px 10px; font-size: .81rem; }
.plot-selection #plot-date { margin-right: auto; }
.plot-selection strong { color: #244cb7; }
.pay-track { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 6px; background: #edf1f9; margin: 5px 4px 2px; }
.pay-track span { display: block; background: #9cb8f3; height: 100%; width: var(--share); border-radius: inherit; }
.pay-track i { position: absolute; left: var(--share); top: 50%; width: 10px; height: 10px; border-radius: 100%; background: #426ad6; border: 1px solid white; transform: translate(-50%,-50%); }
@media (max-width: 580px) {
  .plot-x { font-size: .63rem; }
  .plot-point { width: 19px; height: 22px; }
}
.weight-controls { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.weight-controls .btn { min-height: 29px; font-size: .76rem; padding: 4px 7px; }
.weigh-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.weigh-meta p { color: var(--muted); font-size: .83rem; }
#weight-input { font-size: 1.23rem; font-weight: 680; }
.weight-total { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; margin-top: 13px; padding: 8px 12px; border-radius: 9px; background: var(--blue-wash); }
.weight-total strong { font-size: 1.5rem; letter-spacing: -.035em; }

.cart-line-end { display: grid; justify-items: end; gap: 4px; }
.remove-line { display: inline-flex; align-items: center; gap: 3px; border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; background: transparent; color: #8c3b42; font-size: .73rem; font-weight: 660; }
.remove-line:hover { border-color: #f5d6d7; background: #fff1f2; color: #a02834; }
