/* Store workspaces: tokens, components, then responsive layouts. */
:root {
  --page: #f5f7f8;
  --paper: #ffffff;
  --ink: #21323d;
  --muted: #657580;
  --line: #dfe6ea;
  --line-soft: #edf1f3;
  --accent: #245e4b;
  --accent-hover: #194936;
  --accent-soft: #eaf3ee;
  --accent-border: #c9dfd2;
  --accent-muted: #547966;
  --accent-focus: #245e4b2b;
  --red: #a43e55;
  --red-soft: #fff1f3;
  --amber: #946319;
  --amber-soft: #fff5dc;
  --blue: #315f88;
  --green: var(--accent);
  --green2: var(--accent-soft);
  --sand: var(--amber-soft);
  --radius: 16px;
  --shadow: 0 3px 15px #24374706;
  --side: 252px;
  --modal-pad: 26px;
  --button-height: 44px;
  --button-radius: 12px;
  --button-font: 13px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body[data-cabinet="manager"], body[data-cabinet="owner"] {
  --accent: #285f88;
  --accent-hover: #1d496a;
  --accent-soft: #ebf2f8;
  --accent-border: #cbddea;
  --accent-muted: #597990;
  --accent-focus: #285f882b;
}

/* Base and interaction. */
* { box-sizing: border-box; }
html { min-width: 280px; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { min-width: 0; max-width: 100%; border: 0; background: none; color: inherit; overflow-wrap: anywhere; cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-focus); outline-offset: 3px;
}
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mt15 { margin-top: 15px; }
.mobile-only { display: none; }
.negative { color: var(--red) !important; }
.positive { color: #27734f; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* Buttons and fields. */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: var(--button-height); max-width: 100%; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--button-radius); font-size: var(--button-font); font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 17px; height: 17px; }
.logout-short { display: none; }
.btn-label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { border-color: var(--line); background: #fff; color: #415663; }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.btn-ghost { border-color: var(--line); background: #fff; color: #415663; }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.btn-danger, .btn-exit { border-color: #ecd6dd; background: #fff8f9; color: var(--red); }
.btn-danger:hover:not(:disabled), .btn-exit:hover:not(:disabled) { border-color: #dbaab8; background: var(--red-soft); }
.btn-small { min-height: var(--button-height); padding: 10px 12px; font-size: var(--button-font); }
.icon-btn { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--button-radius); background: #fff; color: var(--muted); }
.icon-btn:hover:not(:disabled) { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 750; }
button.avatar { border: 1px solid var(--accent-border); border-radius: var(--button-radius); }
button.avatar:hover:not(:disabled) { background: var(--accent-border); }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #d6e0e6; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #87949d; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #b5c5cf; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-focus); }
input:disabled, select:disabled, textarea:disabled, input[readonly], textarea[readonly] { opacity: 1; border-color: #dce3e7; background: #eff3f5; color: #667782; cursor: default; }
textarea { resize: vertical; min-height: 84px; }
select { padding-right: 28px; text-overflow: ellipsis; }
/* Bound WebKit's native temporal control and its intrinsic value inside the field. */
input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]) { display: block; min-inline-size: 0; max-inline-size: 100%; }
input::-webkit-date-and-time-value { min-width: 0; max-width: 100%; min-height: 1.4em; text-align: left; }
/* iOS WebKit 301648 adds temporal input padding outside width: indent the value instead. */
@supports (-webkit-touch-callout: none) {
  :root input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]) { padding-inline: 0; -webkit-appearance: none; appearance: none; }
  input::-webkit-date-and-time-value { text-indent: var(--temporal-inset,13px); }
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field-label { color: #455b68; font-size: 13px; font-weight: 650; line-height: 1.45; }
.optional { color: var(--muted); font-weight: 400; }
.hint, .field .hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-error { color: var(--red); font-size: 12px; line-height: 1.5; }
.field-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 20px; min-width: 0; }
.form-section { min-width: 0; }
.form-section + .form-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 16px; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.15px; }
.form-section > .form-grid + .field, .form-section > .field + .form-grid, .form-section > .field + .field { margin-top: 18px; }
.form-section-head { margin-bottom: 18px; }
.form-section-head h3 { margin-bottom: 0; }
.form-section-head p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-section > p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.form-note { padding: 14px 16px; border: 1px solid var(--accent-border); border-radius: 12px; background: var(--accent-soft); color: var(--accent-muted); font-size: 13px; line-height: 1.65; }
.form-note.warning { border-color: #ead9ac; background: #fff8e8; color: #80632d; }
.form-note strong { font-weight: 700; }
.checkbox-label { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #526773; font-size: 13px; cursor: pointer; }
.checkbox-label input { flex: 0 0 auto; width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; border-radius: 4px; accent-color: var(--accent); }
details { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
summary { color: #526773; font-size: 13px; font-weight: 650; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
details[open] > summary { margin-bottom: 17px; }

/* Application shell and navigation. */
.layout { min-height: 100svh; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.35; letter-spacing: -.2px; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 2px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { min-width: 0; overflow-wrap: anywhere; }
.brand-name strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; line-height: 1.05; letter-spacing: -.8px; }
.brand-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 550; line-height: 1.4; letter-spacing: .3px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--side); height: 100dvh; padding: 27px 18px 18px; border-right: 1px solid var(--line); background: #fff; overflow: hidden; }
.sidebar > .brand { flex-shrink: 0; padding: 0 7px; margin-bottom: 30px; font-size: 15px; }
.sidebar .brand-name { max-width: 150px; }
.nav-caption { flex-shrink: 0; margin-bottom: 11px; padding: 0 13px; color: #81909b; font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .6px; }
.nav { display: flex; flex: 1; flex-direction: column; gap: 5px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nav-link { display: flex; align-items: center; flex-shrink: 0; gap: 12px; min-height: 47px; padding: 12px 13px; border-radius: 11px; color: #647580; font-size: 14px; font-weight: 550; line-height: 1.4; text-decoration: none; }
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover { background: #f3f6f8; color: var(--accent); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.nav-separator { height: 1px; flex-shrink: 0; margin: 15px 10px; background: var(--line); }
.sidebar-bottom { flex-shrink: 0; margin-top: auto; padding-top: 17px; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 16px 5px 0; border-top: 1px solid var(--line); }
.user-info { flex: 1; min-width: 0; }
.user-info strong { display: block; overflow: hidden; color: #425764; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-info small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.user-card .icon-btn { width: 44px; min-width: 44px; }
.sidebar-bottom > .btn-exit { width: 100%; margin-top: 16px; }
.main { width: calc(100% - var(--side)); max-width: 1770px; min-width: 0; margin-left: var(--side); padding: 30px clamp(24px,3vw,48px) 40px; }
.mobile-top, .mobile-nav { display: none; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; color: #81909a; font-size: 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-head > div:first-child { min-width: 0; }
.page-head h1 { color: #21333f; font-size: clamp(26px,2.5vw,32px); font-weight: 720; line-height: 1.25; letter-spacing: -.8px; overflow-wrap: anywhere; }
.page-head p { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.page-head > .actions { flex-shrink: 0; align-items: stretch; padding-top: 2px; }
.footer-help { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; color: #87949d; font-size: 12px; }
.footer-help a { color: var(--muted); text-decoration: none; }
.footer-help a:hover { color: var(--accent); text-decoration: underline; }

/* Sign-in. */
.login-screen { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--page); }
.login-story { display: flex; flex-direction: column; justify-content: space-between; padding: 8vh clamp(36px,7vw,110px); background: var(--accent); color: #fff; }
.login-brand { flex-shrink: 0; }
.login-logo-card { display: grid; place-items: center; width: 152px; height: 152px; padding: 4px; border: 1px solid #ffffffdb; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #102b2526; }
.login-logo-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-message { max-width: 445px; margin: 70px 0; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 1.2px; }
.login-message .eyebrow { color: #ffffffb8; }
.login-message h1 { margin: 20px 0 25px; font-size: clamp(34px,4vw,52px); font-weight: 600; line-height: 1.16; letter-spacing: -1.8px; }
.login-message p { max-width: 390px; color: #ffffffe0; font-size: 16px; line-height: 1.8; }
.login-feature { display: flex; align-items: center; gap: 11px; color: #ffffffc7; font-size: 13px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 42px; }
.login-card { width: min(100%,400px); }
.login-card h2 { margin: 10px 0 8px; font-size: 29px; font-weight: 700; line-height: 1.25; letter-spacing: -.7px; }
.login-card > .muted { margin-bottom: 27px; font-size: 14px; }
.login-form { display: grid; gap: 20px; }
.login-form > .btn { width: 100%; min-height: 48px; margin-top: 4px; }
.login-foot { margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.entry-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 28px; }
.entry-choice { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 72px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); text-align: left; }
.entry-choice svg { width: 20px; height: 20px; }
.entry-choice span { min-width: 0; }
.entry-choice strong { display: block; font-size: 13px; font-weight: 700; }
.entry-choice small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; }
.entry-choice.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.entry-choice:hover { border-color: var(--accent); }
.owner-entry { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 11px; padding: 0; color: var(--muted); font-size: 12px; }
.owner-entry svg { width: 14px; height: 14px; }
.owner-entry.selected { color: var(--accent); font-weight: 650; }
.owner-entry:hover { text-decoration: underline; }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 52px; }
.password-toggle { position: absolute; top: 1px; right: 3px; border-color: transparent; background: transparent; }
.password-toggle svg { width: 18px; height: 18px; }

/* Panels, dashboards and summaries. */
.grid { display: grid; gap: 18px; }
.metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 22px; }
.metric { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.metric-label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.metric-label svg { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-muted); }
.metric-value { margin: 17px 0 8px; font-size: clamp(25px,2.1vw,33px); font-weight: 700; line-height: 1.2; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value.compact { font-size: 26px; }
.metric small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.metric.featured { border-color: var(--accent); background: var(--accent); color: #fff; }
.metric.featured .metric-label, .metric.featured small, .metric.featured svg { color: #ffffffd9; }
.metric.featured .negative { color: #ffd1da !important; }
.split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 23px; border-bottom: 1px solid var(--line-soft); }
.panel-header > div { min-width: 0; }
.panel-header h2 { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.25px; }
.panel-header p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-header > svg { color: var(--accent-muted); }
.panel-body { min-width: 0; padding: 19px 23px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.key-row:last-child { border-bottom: 0; }
.key-row .label { color: var(--muted); }
.key-row strong { min-width: 0; font-size: 14px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.key-row.total { padding-top: 18px; }
.key-row.total strong { font-size: 20px; }
.summary-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.summary-kpis.purchase-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mini-metric { min-width: 0; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.mini-metric small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mini-metric strong { display: block; margin-top: 7px; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.today-caption { margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.today-kpis { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.8fr); gap: 13px; margin-bottom: 23px; }
.today-kpis .mini-metric { padding: 15px 18px; }
.today-money strong { text-align: right; }
.stock-overview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; margin-bottom: 17px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.stock-overview strong { font-size: 14px; font-weight: 700; }
.stock-overview span { color: var(--muted); font-size: 12px; }
.summary-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 19px; padding: 16px 18px; border: 1px solid var(--accent-border); border-radius: 12px; background: var(--accent-soft); }
.summary-box > div { min-width: 0; }
.summary-box small { display: block; color: var(--accent-muted); font-size: 12px; }
.summary-box strong { min-width: 0; color: var(--accent); font-size: 26px; font-weight: 750; line-height: 1.25; text-align: right; letter-spacing: -.6px; overflow-wrap: anywhere; }
.summary-box .right { text-align: right; }
.summary-detail { margin-top: 3px; color: var(--accent-muted); font-size: 12px; line-height: 1.5; }
.section-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-note svg { width: 17px; height: 17px; margin-top: 2px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 15px 18px; border: 1px solid var(--accent-border); border-radius: 12px; background: var(--accent-soft); color: var(--accent-muted); font-size: 13px; line-height: 1.65; }
.notice svg { width: 19px; height: 19px; margin-top: 2px; }
.notice strong { color: var(--accent); }

/* Search, filters and dates. */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 210px; max-width: 420px; }
.search svg { position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; color: #82929c; pointer-events: none; }
.search input { min-height: 46px; padding-left: 42px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.toolbar select { width: auto; min-width: 170px; max-width: 300px; min-height: 46px; }
.count-note { margin-left: auto; color: var(--muted); font-size: 12px; }
.stock-count { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.stock-filters, .sales-filters, .activity-filters { margin-bottom: 14px; background: #fff; }
.stock-filter-fields { display: grid; gap: 13px; }
.stock-filter-fields .form-grid { max-width: 560px; }
.sales-filter-fields, .activity-filter-fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 15px 20px; }
.sales-filter-fields .field, .activity-filter-fields .field { min-width: 180px; max-width: 270px; flex: 1; }
.activity-filter-fields .date-pair { flex: 1 1 300px; }
.activity-date-range { display: flex; align-items: center; flex-wrap: wrap; flex-basis: 100%; gap: 10px; min-width: 0; }
.periodbar, .sales-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.segmented { display: inline-flex; align-items: stretch; gap: 3px; min-width: 0; max-width: 100%; padding: 4px; border-radius: var(--button-radius); background: #eaf0f3; }
.segmented button { min-width: 0; min-height: var(--button-height); padding: 8px 12px; border: 1px solid transparent; border-radius: calc(var(--button-radius) - 4px); color: #657783; font-size: var(--button-font); font-weight: 650; line-height: 1.4; white-space: normal; }
.segmented button.active { background: #fff; color: var(--accent); font-weight: 750; box-shadow: 0 1px 5px #263d4d0d; }
.date-pair { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.date-pair input { --temporal-inset: 10px; width: 150px; min-height: 43px; font-size: 13px; padding: 9px 10px; }
.sales-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tabs { display: flex; gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { min-height: 46px; flex-shrink: 0; padding: 5px 1px 13px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.tabs button.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.picker-search { display: grid; gap: 7px; min-width: 0; }
.picker-search input { min-height: 44px; background: #f8fafb; font-size: 14px; }
.picker-count { min-width: 0; line-height: 1.6; }
.picker-count:empty { display: none; }
.picker-results { min-width: 0; max-height: 340px; border: 1px solid var(--line); border-radius: var(--button-radius); background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.picker-result { display: flex; align-items: center; justify-content: space-between; gap: 13px; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: #fff; color: var(--ink); font-size: 13px; line-height: 1.6; text-align: left; }
.picker-result:last-child { border-bottom: 0; }
.picker-result span { min-width: 0; overflow-wrap: anywhere; }
.picker-result svg { width: 17px; height: 17px; color: var(--accent-muted); }
.picker-result:hover, .picker-result:focus-visible { background: var(--accent-soft); color: var(--accent); }
.picker-result:focus-visible { outline-offset: -3px; }
.picker-more { justify-self: start; }
.stock-hint { margin-bottom: 2px; padding: 11px 13px; border-radius: 10px; background: #f3f6f8; color: #647a88; font-size: 12px; line-height: 1.6; }
.stock-hint:empty { display: none; }

/* Records and mobile cards. */
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; color: #425663; text-align: left; white-space: nowrap; }
.data-table th { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f8fafb; color: #71818d; font-size: 12px; font-weight: 650; line-height: 1.4; letter-spacing: .1px; }
.data-table td { padding: 17px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; line-height: 1.55; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.purchase-table .data-table { border-collapse: separate; border-spacing: 0; }
.purchase-table .data-table th:last-child, .purchase-table .data-table td:last-child { position: sticky; right: 0; z-index: 1; padding-left: 12px; padding-right: 12px; border-left: 1px solid var(--line-soft); background: #fff; box-shadow: -8px 0 14px -13px #344956; }
.purchase-table .data-table th:last-child { z-index: 2; background: #f8fafb; }
.purchase-table .data-table tbody tr:hover td:last-child { background: #fbfcfd; }
.purchase-table .table-actions { min-width: 104px; flex-direction: column; align-items: stretch; }
.product-name { min-width: 140px; max-width: 270px; color: #2f4755; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.subline { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.code-meta, .party-meta { color: #86939c; font-size: 11px; font-weight: 400; }
.record-reason { max-width: 285px; overflow-wrap: anywhere; }
.table-actions { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.table-actions .btn { min-height: var(--button-height); padding: 10px 12px; font-size: var(--button-font); }
.table-actions .icon-btn { width: 44px; min-width: 44px; height: 44px; }
.sales-actions { justify-content: flex-start; max-width: none; }
.sale-action-buttons { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 6px; min-width: 0; max-width: 100%; }
.sale-action-buttons > .btn { flex: 0 0 auto; white-space: nowrap; }
.sale-action-short { display: none; }
.btn[data-action="cancel-record"], .btn[data-action="cancel-record"]:hover:not(:disabled) { color: var(--red); }
.action-hint { flex-basis: 100%; max-width: 265px; color: var(--muted); font-size: 11px; line-height: 1.55; white-space: normal; }
.table-footer { padding: 13px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.cancelled-row { opacity: .68; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 4px 8px; border-radius: 6px; background: #f0f3f5; color: #657783; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: normal; }
.badge.sale, .badge.return, .badge.cash, .badge.transfer { padding: 2px 0; background: transparent; font-weight: 750; }
.badge.sale { color: #24704e; }
.badge.return { color: #a13f58; }
.badge.cash { color: #896227; }
.badge.transfer { color: #2d6596; }
.badge.low { background: var(--amber-soft); color: var(--amber); }
.badge.cancelled { background: #f0f2f4; color: #78868f; }
.badge.owner { background: #f1edf7; color: #795a8d; }
.badge.manager { background: #eaf2f9; color: #356488; }
.overdue-text { color: var(--red); font-size: 13px; }
.card-caption { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.mobile-card-list { display: none; }
.stock-card-details { margin-top: 15px; background: #f8fafb; }
.stock-card-details dl { display: grid; gap: 10px; margin: 0; }
.stock-card-details dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; min-width: 0; }
.stock-card-details dt { min-width: 0; color: var(--muted); font-size: 12px; }
.stock-card-details dd { min-width: 0; max-width: 62%; margin: 0; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.mobile-more-menu { display: grid; gap: 9px; }
.mobile-more-link { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 56px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.mobile-more-link > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mobile-more-link > svg:last-child { width: 17px; height: 17px; color: var(--muted); }
.mobile-more-link.active { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.mobile-more-link:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.pagination-note { padding: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.pagination-note .btn { margin: 3px 0; }

/* Dialogs share a bounded scrollport and a pinned action area. */
dialog { width: 610px; max-width: calc(100% - 32px); max-height: calc(100svh - 40px); margin: auto; padding: 0; border: 1px solid #d7e1e7; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 20px 90px #1c34463b; overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #20334375; backdrop-filter: blur(3px); }
.modal-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; gap: 15px; padding: 23px var(--modal-pad) 20px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-head > div { min-width: 0; }
.modal-head h2 { font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; overflow-wrap: anywhere; }
.modal-head p { max-width: 470px; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.modal-head .icon-btn { flex-shrink: 0; margin: -7px -10px 0 0; }
.modal-body { min-width: 0; min-height: 0; padding: 23px var(--modal-pad) var(--modal-pad); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 18px; scroll-padding-bottom: 155px; }
.modal-body > form, .operation-form { min-width: 0; margin: 0; }
.dialog-actions { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; margin-top: 24px; }
.dialog-actions .btn { min-width: 112px; }
.form-footer, .sale-checkout { position: sticky; bottom: 0; z-index: 4; margin-top: 24px; padding: 16px 0 max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -9px 14px #ffffffed; }
.form-footer .summary-box, .sale-checkout .summary-box { margin-top: 0; }
.form-footer .dialog-actions, .sale-checkout .dialog-actions { margin-top: 13px; }
.form-footer > .dialog-actions:first-child { margin-top: 0; }
.modal-body > form > .dialog-actions { position: sticky; bottom: 0; z-index: 4; padding: 15px 0 max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.operation-form[data-submitting="true"] button[type="submit"] { cursor: progress; }
.discard-dialog { width: 480px; }
.discard-dialog .dialog-actions { margin-top: 0; }
.discard-dialog .dialog-actions .btn { flex: 1 1 175px; }
.account-identity { min-width: 0; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-identity strong { display: block; min-width: 0; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.account-identity p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.user-mobile-menu { display: grid; gap: 10px; }
.user-mobile-menu .btn { justify-content: flex-start; min-height: var(--button-height); }

/* Sale and return details. */
.sale-selected { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--accent-border); border-radius: 12px; background: var(--accent-soft); }
.sale-selected > div:first-child { display: grid; gap: 4px; min-width: 0; }
.sale-selected strong { color: var(--accent); font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.sale-selected span:not(.card-caption) { color: var(--accent-muted); font-size: 13px; overflow-wrap: anywhere; }
.selected-availability { flex-shrink: 0; color: var(--accent); font-size: 21px; font-weight: 750; line-height: 1.2; text-align: right; }
.selected-availability small { display: block; max-width: 100px; margin-top: 5px; color: var(--accent-muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.quantity-stepper { display: flex; align-items: stretch; min-width: 0; min-height: 47px; border: 1px solid #d6e0e6; border-radius: 10px; background: #fff; overflow: hidden; }
.quantity-stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-focus); }
.quantity-stepper > button { flex: 0 0 44px; width: 44px; min-height: 45px; padding: 0; background: var(--accent-soft); color: var(--accent); font-size: 23px; font-weight: 500; }
.quantity-stepper > button:hover:not(:disabled) { background: var(--accent-border); }
.quantity-stepper > input { flex: 1; width: 1px; min-width: 0; min-height: 45px; padding: 10px 4px; border: 0; border-radius: 0; box-shadow: none; font-size: 16px; font-weight: 700; text-align: center; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.cash-calculator { background: #f8fafb; }
.cash-calculator .field { margin-top: 16px; }
.cash-change { margin-top: 13px; color: var(--accent); font-size: 16px; font-weight: 700; line-height: 1.6; }
.cash-change:empty { display: none; }
.receipt-body { padding-top: 25px; text-align: center; }
.receipt-check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.receipt-check svg { width: 29px; height: 29px; stroke-width: 2; }
.receipt-product { display: grid; gap: 7px; }
.receipt-product strong { font-size: 20px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.receipt-product > span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.receipt-total { display: grid; justify-items: center; gap: 7px; margin: 25px 0 20px; }
.receipt-total > small { color: var(--muted); font-size: 13px; }
.receipt-total > strong { max-width: 100%; font-size: 38px; font-weight: 750; line-height: 1.2; letter-spacing: -1px; overflow-wrap: anywhere; }
.receipt-total .subline { margin-top: 0; }
.receipt-change { margin-bottom: 21px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.receipt-change strong { color: var(--accent); }
.receipt-refresh { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.receipt-refresh .loader { width: 18px; height: 18px; }
.receipt-note { margin-bottom: 23px; color: var(--muted); font-size: 13px; }
.receipt-body .error-box { margin-top: 22px; text-align: left; }
.receipt-body .error-box p { margin-top: 8px; }
.receipt-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 23px; }
.receipt-actions .btn { min-width: 0; }

/* Instructions, settings, staff and audit. */
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.help-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 19px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 750; }
.help-card h2 { margin-bottom: 14px; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.2px; }
.help-card ol, .help-card ul { margin: 0 0 20px; padding-left: 21px; color: #5e737f; font-size: 14px; line-height: 1.8; }
.help-card li { margin-bottom: 8px; padding-left: 2px; }
.help-card p { margin-bottom: 18px; color: #5e737f; font-size: 14px; line-height: 1.8; }
.help-card .btn { margin-top: 3px; }
.help-wide { grid-column: 1 / -1; }
.shortcut-row { display: flex; flex-wrap: wrap; gap: 9px; }
.settings-wrap { max-width: 760px; }
.settings-wrap .panel-body { padding: 26px; }
.audit-event { display: flex; align-items: flex-start; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.audit-event:last-child { border-bottom: 0; }
.audit-mark { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.audit-mark svg { width: 17px; height: 17px; }
.audit-event > div:not(.audit-mark) { min-width: 0; }
.audit-event h3 { font-size: 14px; font-weight: 700; line-height: 1.5; }
.audit-event p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.audit-event small { margin-left: auto; color: #81909a; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.audit-details pre, .audit-details code { max-width: 100%; margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.audit-details { max-width: 100%; font-family: var(--sans); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }

/* Loading, errors and notifications. */
.boot { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 100svh; padding: 25px; color: var(--muted); font-size: 15px; }
.loader { display: inline-block; width: 23px; height: 23px; flex-shrink: 0; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-progress { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 45px 20px; color: var(--muted); font-size: 14px; }
.empty { padding: 52px 25px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 17px; border-radius: 17px; background: var(--accent-soft); color: var(--accent-muted); }
.empty-icon svg { width: 27px; height: 27px; }
.empty h3 { margin-bottom: 8px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.empty p { max-width: 430px; margin: 0 auto 21px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty-actions { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.empty.compact { padding: 30px 20px; }
.error-box { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #edcdd7; border-radius: 11px; background: #fff2f5; color: #963c53; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.error-page { max-width: 580px; margin: 35px auto; }
.toast { position: fixed; bottom: 26px; left: calc(var(--side) + (100% - var(--side))/2); z-index: 200; max-width: min(580px,calc(100vw - 30px)); width: max-content; padding: 14px 19px; border-radius: 12px; background: #233b48; color: #fff; box-shadow: 0 8px 30px #18313e2b; font-size: 13px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; opacity: 0; pointer-events: none; transform: translate(-50%,14px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.noscript { padding: 30px; text-align: center; }
.tag-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--accent); }

/* Dashboard charts. Height classes avoid inline styles under the CSP. */
.chart { display: flex; align-items: flex-end; gap: 14px; min-height: 165px; padding-top: 10px; }
.chart-group { flex: 1; min-width: 0; text-align: center; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 120px; }
.chart-bar { width: min(23px,35%); min-height: 2px; border-radius: 5px 5px 0 0; background: var(--accent); }
.chart-bar.profit { background: var(--accent-border); }
.chart-bar.loss { background: #d6a0ae; }
.chart-label { margin-top: 11px; color: var(--muted); font-size: 11px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 17px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.legend i.light { background: var(--accent-border); }
.legend i.loss { background: #d6a0ae; }

/* Compact desktops and tablets retain full-size reading text. */
@media (max-width: 1200px) {
  :root { --side: 224px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .sidebar > .brand { font-size: 14px; }
  .sidebar .brand-name { max-width: 133px; }
  .nav-link { font-size: 13px; }
  .main { padding: 28px 25px 35px; }
  .page-head { flex-direction: column; gap: 17px; }
  .page-head > .actions { width: 100%; }
  .metric { padding: 20px; }
  .metric-value { font-size: 27px; }
  .data-table th, .data-table td { padding-left: 15px; padding-right: 15px; }
  .summary-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  :root { --side: 205px; }
  .sidebar > .brand { gap: 9px; padding: 0 4px; }
  .sidebar .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .sidebar .brand-name { max-width: 128px; font-size: 13px; }
  .nav-link { gap: 10px; padding-left: 10px; }
  .main { padding: 26px 21px 35px; }
  .metrics { grid-template-columns: 1fr; gap: 12px; }
  .metric { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 16px; padding: 19px 21px; }
  .metric-label { align-self: center; grid-column: 1; }
  .metric-value { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 28px; text-align: right; }
  .metric small { grid-column: 1 / -1; }
  .split, .help-grid { grid-template-columns: 1fr; }
  .help-wide { grid-column: auto; }
  .today-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .today-kpis .today-money { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 16px; }
  .today-money strong { margin-top: 0; }
  .login-story { padding-left: 42px; padding-right: 42px; }
  .login-message h1 { font-size: 38px; }
}

/* Touch layouts: one page scroll, readable cards, and reachable navigation. */
@media (max-width: 1024px) {
  .summary-kpis.purchase-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .purchase-kpis .mini-metric:last-child { grid-column: 1 / -1; }
  :root { --side: 0px; --modal-pad: 20px; --mobile-header: 68px; --mobile-nav: 72px; --button-height: 48px; }
  body { font-size: 14px; }
  input, select, textarea, .search input, .toolbar select, .picker-search input, .date-pair input { font-size: 16px; }
  .main { width: 100%; max-width: none; margin-left: 0; padding: calc(var(--mobile-header) + env(safe-area-inset-top) + 20px) max(16px,env(safe-area-inset-right)) calc(var(--mobile-nav) + env(safe-area-inset-bottom) + 28px) max(16px,env(safe-area-inset-left)); }
  .mobile-top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: calc(var(--mobile-header) + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) 8px max(13px,env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: #fff; }
  .mobile-top .brand { flex: 1; gap: 9px; min-width: 0; overflow: hidden; font-size: 13px; }
  .mobile-top .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .mobile-top .brand-name strong { font-size: 20px; }
  .mobile-top .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-top .brand-name small { overflow: hidden; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; }
  .mobile-top > .actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .mobile-top .avatar { width: 44px; height: 44px; font-size: 12px; }
  .mobile-top .btn-exit { width: 76px; min-height: 44px; padding: 9px 10px; gap: 6px; font-size: 13px; line-height: 1.25; white-space: nowrap; }
  .mobile-top .logout-long { display: none; }
  .mobile-top .logout-short { display: inline; }
  .mobile-top .btn-exit .btn-label { text-align: left; }
  .mobile-top .btn-exit svg { width: 16px; height: 16px; }
  .sidebar { inset: auto 0 0; z-index: 45; display: block; width: 100%; height: calc(var(--mobile-nav) + env(safe-area-inset-bottom)); padding: 5px max(7px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); border-top: 1px solid var(--line); border-right: 0; background: #fff; overflow: hidden; }
  .sidebar > .brand, .sidebar > .nav-caption, .sidebar-bottom, .nav-separator { display: none; }
  .nav.desktop-nav { display: none; }
  .nav.mobile-nav { display: flex; flex-direction: row; align-items: stretch; justify-content: space-around; gap: 2px; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: visible; }
  .nav-link { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 53px; padding: 6px 4px; border-radius: var(--button-radius); font-size: 11px; font-weight: 550; line-height: 1.2; white-space: nowrap; }
  .nav-link svg { width: 21px; height: 21px; }
  .nav-link.active { background: var(--accent-soft); }
  .mobile-nav .nav-link.mobile-hide { display: flex; }
  .topline { display: none; }
  .page-head { gap: 17px; margin-bottom: 20px; }
  .page-head h1 { font-size: 27px; letter-spacing: -.7px; }
  .page-head p { margin-top: 8px; font-size: 13px; line-height: 1.65; }
  .page-head > .actions { display: flex; gap: 8px; width: 100%; }
  .page-head > .actions .btn { flex: 1 1 0; padding: 10px 12px; font-size: var(--button-font); }
  .page-head > .actions .btn-ghost { flex: 0 0 44px; width: 44px; padding: 10px; }
  .page-head > .actions .btn-ghost .btn-label { display: none; }
  .btn { min-height: var(--button-height); padding: 11px 13px; font-size: var(--button-font); }
  .btn-small { min-height: var(--button-height); font-size: var(--button-font); }
  .metrics { grid-template-columns: 1fr; margin-bottom: 17px; }
  .metric { display: block; padding: 18px; }
  .metric-label { font-size: 13px; }
  .metric-value { margin: 12px 0 7px; font-size: 30px; text-align: left; }
  .metric small { font-size: 12px; }
  .split { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .panel-header { padding: 18px; }
  .panel-header h2 { font-size: 16px; }
  .panel-header p { font-size: 12px; }
  .panel-body { padding: 15px 18px; }
  .key-row { align-items: flex-start; gap: 15px; font-size: 13px; }
  .key-row > span, .key-row > dt { min-width: 0; overflow-wrap: anywhere; }
  .key-row strong, .key-row dd { max-width: 57%; min-width: 0; font-size: 13px; }
  .key-row.total strong { font-size: 18px; }
  .summary-kpis { gap: 10px; margin-bottom: 18px; }
  .mini-metric { padding: 14px; }
  .mini-metric small { font-size: 11px; }
  .mini-metric strong { font-size: 23px; }
  .today-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
  .today-kpis .mini-metric { padding: 13px 15px; }
  .today-kpis .today-money { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; grid-column: 1 / -1; gap: 16px; }
  .today-kpis .today-money > * { min-width: 0; }
  .today-money small { max-width: 52%; }
  .today-money strong { flex: 1; overflow-wrap: anywhere; font-size: 24px; }
  .stock-overview { align-items: flex-start; margin-bottom: 14px; padding: 10px 13px; gap: 3px 10px; }
  .stock-overview strong { font-size: 14px; }
  .stock-overview span { font-size: 11px; }
  .stock-count { margin-bottom: 11px; font-size: 12px; }
  .toolbar { align-items: stretch; gap: 10px; margin-bottom: 13px; }
  .toolbar .search { flex-basis: 100%; min-width: 0; max-width: none; }
  .toolbar .filters { flex: 1; }
  .toolbar select { flex: 1; width: 100%; min-width: 0; max-width: none; }
  .toolbar .count-note { align-self: center; margin-left: 0; }
  .stock-filters, .sales-filters, .activity-filters { padding: 13px 14px; }
  summary { min-height: 44px; padding: 11px 0; margin: -10px 0; font-size: 13px; }
  details[open] > summary { margin-bottom: 7px; }
  .stock-filters summary, .sales-filters summary, .activity-filters summary { font-size: 13px; }
  .stock-filter-fields .form-grid { gap: 14px; }
  .sales-filter-fields, .activity-filter-fields { align-items: stretch; flex-direction: column; gap: 14px; }
  .sales-filter-fields > .btn, .activity-filter-fields > .btn { width: 100%; }
  .sales-filter-fields .field, .activity-filter-fields .field { flex: auto; width: 100%; min-width: 0; max-width: none; }
  .activity-filter-fields .date-pair { flex: auto; width: 100%; }
  .activity-date-range { width: 100%; }
  .activity-date-range > .btn { margin-left: auto; }
  .periodbar { gap: 10px; }
  .segmented { flex: 1 1 100%; justify-content: center; }
  .segmented button { flex: 1 1 0; min-height: var(--button-height); padding: 8px 6px; font-size: var(--button-font); }
  .date-pair { width: 100%; }
  .periodbar > .btn, .sales-dates > .btn { flex: 1 1 100%; width: 100%; }
  .date-pair input { --temporal-inset: 8px; flex: 1; width: 1px; min-width: 0; min-height: 44px; padding: 10px 8px; }
  .sales-controls, .sales-period, .sales-dates { width: 100%; }
  .sales-dates > .btn { margin-left: auto; }
  .tabs { gap: 22px; margin-bottom: 18px; }
  .tabs button { font-size: 14px; }
  .table-wrap.desktop-table { display: none; }
  .mobile-card-list { display: block; }
  .mobile-card { min-width: 0; padding: 19px 18px; border-bottom: 1px solid var(--line-soft); }
  .mobile-card:last-child { border-bottom: 0; }
  .mobile-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
  .mobile-card-head > div { min-width: 0; }
  .mobile-card-head > strong { flex: 0 1 45%; min-width: 0; max-width: 45%; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .mobile-card .product-name { min-width: 0; max-width: none; font-size: 15px; }
  .mobile-card .subline { margin-top: 5px; font-size: 12px; }
  .mobile-card .stock-card-details { padding: 12px 14px; }
  .mobile-card-head > .badge { flex-shrink: 0; }
  .mobile-card-head > .mobile-card-payment { display: flex; flex: 0 1 43%; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; max-width: 43%; text-align: right; }
  .mobile-card-payment .subline { margin-top: 0; }
  .mobile-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
  .mobile-card-foot > div { flex: 1 1 auto; min-width: 0; }
  .mobile-card-foot > strong { flex: 1 1 110px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .mobile-card-foot > .btn { flex: 0 0 auto; }
  .mobile-card-foot strong { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
  .mobile-card .details-row { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
  .mobile-card .details-row strong { color: #405b6a; font-size: 13px; font-weight: 650; }
  .mobile-card-foot .table-actions { margin-left: auto; }
  .table-actions { justify-content: flex-start; }
  .table-actions .btn { min-height: var(--button-height); }
  .table-actions .icon-btn { min-height: 44px; }
  .table-actions .icon-btn { width: 44px; min-width: 44px; height: 44px; }
  .mobile-card-foot .table-actions { flex: 1 1 100%; margin-left: 0; }
  .mobile-card-foot .table-actions > .btn { flex: 1 1 0; }
  .sales-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .sales-card-actions .btn { flex: 1; min-height: var(--button-height); font-size: var(--button-font); }
  .sales-card-actions > .sale-action-buttons { flex: 1 1 100%; width: 100%; }
  .sales-card-actions .sale-action-buttons > .btn { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 12px; }
  .sales-card-actions .sale-action-full { display: none; }
  .sales-card-actions .sale-action-short { display: inline; }
  .sales-card-actions .action-hint { max-width: none; font-size: 12px; }
  .badge { font-size: 12px; }
  .table-footer { padding: 13px 18px; font-size: 12px; }
  .record-reason { max-width: none; }
  .field label, .field-label { font-size: 13px; }
  .hint, .field .hint { font-size: 12px; }
  .field-error { font-size: 12px; }
  .form-grid { gap: 18px 14px; }
  .form-stack { gap: 19px; }
  .form-section h3 { font-size: 15px; }
  .form-note { padding: 13px 14px; font-size: 13px; }
  .form-section + .form-section { margin-top: 22px; padding-top: 22px; }
  .summary-box { flex-wrap: wrap; padding: 14px 15px; }
  .summary-box strong { flex: 1 1 auto; max-width: 100%; font-size: clamp(22px,5.7vw,28px); }
  .summary-box small, .summary-detail { font-size: 12px; }
  dialog { position: fixed; top: calc(var(--visual-top,0px) + max(10px,env(safe-area-inset-top))); bottom: auto; max-width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); max-height: calc(var(--visual-height,100dvh) - max(20px,env(safe-area-inset-top)) - env(safe-area-inset-bottom)); margin: 0 auto; border-radius: 16px; }
  .modal-head { padding: 21px var(--modal-pad) 18px; gap: 13px; }
  .modal-head h2 { font-size: 22px; }
  .modal-head p { font-size: 13px; }
  .modal-body { flex: 1 1 auto; padding: 20px var(--modal-pad) var(--modal-pad); scroll-padding-top: 15px; scroll-padding-bottom: 170px; }
  .dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
  .dialog-actions .btn { min-width: 0; font-size: var(--button-font); }
  .dialog-actions > .btn:only-child { grid-column: 1 / -1; }
  .form-footer, .sale-checkout { bottom: 0; margin-top: 22px; padding: 14px 0 max(12px,env(safe-area-inset-bottom)); }
  .form-footer .dialog-actions, .sale-checkout .dialog-actions { margin-top: 11px; }
  .discard-dialog .dialog-actions { grid-template-columns: minmax(0,1fr); }
  .discard-dialog .dialog-actions .btn { flex: auto; }
  .sale-selected { gap: 13px; padding: 14px; }
  .sale-selected strong { font-size: 15px; }
  .sale-selected span:not(.card-caption) { font-size: 13px; }
  .selected-availability { font-size: 20px; }
  .selected-availability small { max-width: 82px; font-size: 11px; }
  .quantity-stepper > input { font-size: 17px; }
  .picker-search input { font-size: 16px; }
  .picker-results { max-height: 310px; }
  .picker-result { min-height: 54px; padding: 12px 13px; font-size: 14px; }
  .stock-hint { font-size: 12px; }
  .receipt-product strong { font-size: 19px; }
  .receipt-total > strong { font-size: clamp(26px,7.5vw,35px); }
  .receipt-actions .btn { padding: 11px 12px; font-size: 13px; }
  .receipt-body .error-box .btn { width: 100%; }
  .help-grid { gap: 15px; }
  .help-card { padding: 23px 21px; }
  .help-card h2 { font-size: 18px; }
  .help-card p, .help-card ol, .help-card ul { font-size: 14px; }
  .notice { padding: 14px 15px; font-size: 13px; }
  .settings-wrap .panel-body { padding: 23px 20px; }
  .audit-event { flex-wrap: wrap; gap: 12px; }
  .audit-event > div:not(.audit-mark) { flex: 1; min-width: 0; }
  .audit-details .key-row { align-items: flex-start; flex-wrap: wrap; gap: 5px; }
  .audit-details .key-row > * { flex: 1 1 100%; max-width: 100%; text-align: left; }
  .audit-event small { flex-basis: calc(100% - 47px); margin-left: 47px; font-size: 12px; white-space: normal; }
  .audit-event h3 { font-size: 14px; }
  .audit-event p { font-size: 13px; }
  .shortcut-row .btn { flex: 1 1 140px; min-width: 0; }
  .settings-wrap .dialog-actions .btn, .settings-wrap [data-action="export"] { width: 100%; }
  .settings-wrap .dialog-actions { grid-template-columns: minmax(0,1fr); margin-top: 20px; }
  .mobile-sections-dialog { width: 520px; height: auto; }
  .mobile-sections-dialog .modal-body { padding: 15px var(--modal-pad) var(--modal-pad); scroll-padding-bottom: 20px; }
  .mobile-sections-dialog .modal-head p { display: none; }
  .help-card .btn { width: 100%; }
  .empty { padding: 38px 22px; }
  .empty h3 { font-size: 18px; }
  .empty p { font-size: 14px; }
  .empty-actions { flex-direction: column; align-items: stretch; }
  .empty-actions .btn { width: 100%; }
  .section-note { font-size: 12px; }
  .footer-help { align-items: flex-start; margin-top: 22px; font-size: 11px; gap: 15px; }
  .footer-help > span { max-width: 45%; }
  .footer-help a { max-width: 55%; text-align: right; }
  .chart { gap: 9px; min-height: 160px; }
  .chart-label { font-size: 10px; }
  .legend { gap: 9px 13px; font-size: 11px; }
  .toast { bottom: calc(var(--mobile-nav) + 14px + env(safe-area-inset-bottom)); left: 50%; max-width: calc(100vw - 26px); font-size: 13px; }
  body[data-keyboard-open="true"] .sidebar { visibility: hidden; }
  body[data-keyboard-open="true"] .form-footer, body[data-keyboard-open="true"] .sale-checkout, body[data-keyboard-open="true"] .modal-body > form > .dialog-actions { position: static; box-shadow: none; }
  body[data-keyboard-open="true"] .modal-head { align-items: center; padding: 8px var(--modal-pad); }
  body[data-keyboard-open="true"] .modal-head h2 { font-size: 20px; }
  body[data-keyboard-open="true"] .modal-head p { display: none; }
  body[data-keyboard-open="true"] .modal-head .icon-btn { margin: 0; }
  body[data-keyboard-open="true"] .modal-body { padding-top: 12px; padding-bottom: 12px; scroll-padding-bottom: 24px; }
  body[data-keyboard-footer="sticky"] .form-footer, body[data-keyboard-footer="sticky"] .sale-checkout, body[data-keyboard-footer="sticky"] .modal-body > form > .dialog-actions { position: sticky; bottom: 0; margin-top: 12px; padding: 6px 0; box-shadow: 0 -6px 12px #ffffffed; }
  body[data-keyboard-footer="sticky"] .summary-box { align-items: center; flex-wrap: nowrap; gap: 8px; min-height: 40px; margin-top: 0; padding: 6px 10px; }
  body[data-keyboard-footer="sticky"] .summary-box > :first-child { flex: 1; min-width: 0; }
  body[data-keyboard-footer="sticky"] .summary-box small { font-size: 11px; line-height: 1.3; }
  body[data-keyboard-footer="sticky"] .summary-detail { display: none; }
  body[data-keyboard-footer="sticky"] .summary-box strong { flex: 0 1 auto; max-width: 72%; font-size: clamp(17px,5vw,20px); line-height: 1.2; }
  body[data-keyboard-footer="sticky"] .dialog-actions { gap: 8px; margin-top: 8px; }
  body[data-keyboard-footer="sticky"] .dialog-actions .btn { min-height: 48px; padding: 5px 10px; }
  body[data-keyboard-footer="sticky"] .form-footer > .dialog-actions:first-child { margin-top: 0; }
  body[data-keyboard-footer="sticky"] .modal-body { scroll-padding-bottom: 128px; }
  body[data-keyboard-open="true"] .toast { bottom: 14px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-story { padding: 29px 25px 27px; }
  .login-logo-card { width: 104px; height: 104px; margin: 0 auto; padding: 3px; border-radius: 12px; }
  .login-message { max-width: none; margin: 18px 0 0; text-align: center; }
  .login-message .eyebrow, .login-feature { display: none; }
  .login-message h1 { display: none; }
  .login-message p { max-width: 430px; margin: 0 auto; font-size: 14px; line-height: 1.7; }
  .login-panel { padding: 29px 25px 40px; }
  .login-card { max-width: 430px; }
  .login-card h2 { margin-top: 0; font-size: 27px; }
  .entry-choices { gap: 10px; margin-bottom: 25px; }
  .entry-choice { gap: 9px; min-height: 73px; padding: 12px 10px; }
  .entry-choice strong { font-size: 13px; }
  .entry-choice small { font-size: 11px; }
  .login-foot { font-size: 13px; }
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .mobile-card-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-card { border-right: 1px solid var(--line-soft); }
  .mobile-card:nth-child(even) { border-right: 0; }
  .help-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .help-wide { grid-column: 1 / -1; }
  .mobile-more-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-sections-dialog { width: 650px; }
}
@media (max-width: 540px) {
  .payment-grid, .variant-grid, .stock-filter-fields .form-grid { grid-template-columns: minmax(0,1fr); }
  .toolbar #category-filter, .toolbar #stock-reset { flex: 1 1 100%; width: 100%; }
  .dialog-actions > button[type="submit"] > svg { display: none; }
  .mobile-card-head { gap: 10px; }
  .today-money small { max-width: none; flex: 1 1 100%; }
  .today-money strong { flex: 1 1 100%; text-align: left; }
  dialog:has(.operation-form) { width: 100%; max-width: 100%; height: calc(var(--visual-height,100dvh) - env(safe-area-inset-top)); max-height: calc(var(--visual-height,100dvh) - env(safe-area-inset-top)); top: calc(var(--visual-top,0px) + env(safe-area-inset-top)); border-radius: 16px 16px 0 0; border-bottom: 0; }
}
@media (max-width: 1024px) and (max-height: 500px) {
  :root { --mobile-header: 56px; --mobile-nav: 60px; --modal-pad: 18px; }
  .main { padding-top: calc(var(--mobile-header) + env(safe-area-inset-top) + 14px); }
  .mobile-top { padding-top: calc(5px + env(safe-area-inset-top)); padding-bottom: 5px; }
  .sidebar { padding-top: 2px; padding-bottom: calc(3px + env(safe-area-inset-bottom)); }
  .mobile-nav .nav-link { min-height: 50px; gap: 2px; padding-top: 3px; padding-bottom: 3px; }
  .mobile-nav .nav-link svg { width: 18px; height: 18px; }
  .modal-head { padding: 10px var(--modal-pad); align-items: center; }
  .modal-head h2 { font-size: 20px; }
  .modal-head p { display: none; }
  .modal-head .icon-btn { margin-top: 0; }
  .modal-body { padding-top: 12px; scroll-padding-bottom: 24px; }
  .form-stack { gap: 15px; }
  .form-footer, .sale-checkout { position: static; margin-top: 15px; padding: 9px 0 max(7px,env(safe-area-inset-bottom)); box-shadow: none; }
  .modal-body > form > .dialog-actions { position: static; }
  .form-footer .summary-box, .sale-checkout .summary-box { align-items: center; padding: 9px 12px; }
  .form-footer .summary-detail, .sale-checkout .summary-detail { display: none; }
  .form-footer .summary-box strong, .sale-checkout .summary-box strong { font-size: 23px; }
  .form-footer .dialog-actions, .sale-checkout .dialog-actions { margin-top: 8px; }
  .dialog-actions .btn { min-height: var(--button-height); padding-top: 8px; padding-bottom: 8px; }
  .receipt-body { padding-top: 15px; }
  .receipt-check { width: 42px; height: 42px; margin-bottom: 12px; }
}
/* The keyboard already excludes the bottom safe area in a short landscape viewport. */
@media (max-width: 1024px) and (orientation: landscape) {
  body[data-keyboard-open="true"][data-keyboard-footer="static"] dialog { top: calc(var(--visual-top,0px) + 4px); max-height: calc(var(--visual-height,100dvh) - 8px); }
  body[data-keyboard-open="true"][data-keyboard-footer="static"] .modal-head { min-height: 44px; padding: 0 var(--modal-pad); }
  body[data-keyboard-open="true"][data-keyboard-footer="static"] .modal-head h2 { font-size: 18px; }
  body[data-keyboard-open="true"][data-keyboard-footer="static"] .modal-body { padding-top: 8px; padding-bottom: 8px; scroll-padding-top: 6px; scroll-padding-bottom: 8px; }
}
@media (max-width: 380px) {
  .mobile-card-head:has(> .mobile-card-payment) { flex-wrap: wrap; }
  .mobile-card-head > .mobile-card-payment { flex: 1 1 100%; flex-direction: row; align-items: center; flex-wrap: wrap; max-width: 100%; gap: 4px 10px; text-align: left; }
  .mobile-card-payment .subline { margin-top: 0; }
  .main { padding-left: 13px; padding-right: 13px; }
  .mobile-top .brand-name { display: block; }
  .mobile-top .brand-name strong { font-size: 19px; }
  .mobile-top .brand-name small { display: none; }
  .mobile-top .brand { flex: 1 1 auto; gap: 7px; }
  .mobile-top > .actions { margin-left: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .page-head h1 { font-size: 25px; }
  .today-money strong { font-size: 22px; }
  .receipt-actions { grid-template-columns: 1fr; }
  .login-story { padding-left: 21px; padding-right: 21px; }
  .login-message h1 { font-size: 29px; }
  .login-panel { padding-left: 21px; padding-right: 21px; }
  .login-card h2 { font-size: 25px; }
  .entry-choice svg { display: none; }
  .entry-choice { padding: 12px; }
}
@media (max-width: 300px) {
  .mobile-top .brand-name { display: none; }
  .mobile-top .brand { flex: 0 0 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Chart scale: integer percentages, generated once. */
.bar-h-2 { height: 2%; }
.bar-h-3 { height: 3%; }
.bar-h-4 { height: 4%; }
.bar-h-5 { height: 5%; }
.bar-h-6 { height: 6%; }
.bar-h-7 { height: 7%; }
.bar-h-8 { height: 8%; }
.bar-h-9 { height: 9%; }
.bar-h-10 { height: 10%; }
.bar-h-11 { height: 11%; }
.bar-h-12 { height: 12%; }
.bar-h-13 { height: 13%; }
.bar-h-14 { height: 14%; }
.bar-h-15 { height: 15%; }
.bar-h-16 { height: 16%; }
.bar-h-17 { height: 17%; }
.bar-h-18 { height: 18%; }
.bar-h-19 { height: 19%; }
.bar-h-20 { height: 20%; }
.bar-h-21 { height: 21%; }
.bar-h-22 { height: 22%; }
.bar-h-23 { height: 23%; }
.bar-h-24 { height: 24%; }
.bar-h-25 { height: 25%; }
.bar-h-26 { height: 26%; }
.bar-h-27 { height: 27%; }
.bar-h-28 { height: 28%; }
.bar-h-29 { height: 29%; }
.bar-h-30 { height: 30%; }
.bar-h-31 { height: 31%; }
.bar-h-32 { height: 32%; }
.bar-h-33 { height: 33%; }
.bar-h-34 { height: 34%; }
.bar-h-35 { height: 35%; }
.bar-h-36 { height: 36%; }
.bar-h-37 { height: 37%; }
.bar-h-38 { height: 38%; }
.bar-h-39 { height: 39%; }
.bar-h-40 { height: 40%; }
.bar-h-41 { height: 41%; }
.bar-h-42 { height: 42%; }
.bar-h-43 { height: 43%; }
.bar-h-44 { height: 44%; }
.bar-h-45 { height: 45%; }
.bar-h-46 { height: 46%; }
.bar-h-47 { height: 47%; }
.bar-h-48 { height: 48%; }
.bar-h-49 { height: 49%; }
.bar-h-50 { height: 50%; }
.bar-h-51 { height: 51%; }
.bar-h-52 { height: 52%; }
.bar-h-53 { height: 53%; }
.bar-h-54 { height: 54%; }
.bar-h-55 { height: 55%; }
.bar-h-56 { height: 56%; }
.bar-h-57 { height: 57%; }
.bar-h-58 { height: 58%; }
.bar-h-59 { height: 59%; }
.bar-h-60 { height: 60%; }
.bar-h-61 { height: 61%; }
.bar-h-62 { height: 62%; }
.bar-h-63 { height: 63%; }
.bar-h-64 { height: 64%; }
.bar-h-65 { height: 65%; }
.bar-h-66 { height: 66%; }
.bar-h-67 { height: 67%; }
.bar-h-68 { height: 68%; }
.bar-h-69 { height: 69%; }
.bar-h-70 { height: 70%; }
.bar-h-71 { height: 71%; }
.bar-h-72 { height: 72%; }
.bar-h-73 { height: 73%; }
.bar-h-74 { height: 74%; }
.bar-h-75 { height: 75%; }
.bar-h-76 { height: 76%; }
.bar-h-77 { height: 77%; }
.bar-h-78 { height: 78%; }
.bar-h-79 { height: 79%; }
.bar-h-80 { height: 80%; }
.bar-h-81 { height: 81%; }
.bar-h-82 { height: 82%; }
.bar-h-83 { height: 83%; }
.bar-h-84 { height: 84%; }
.bar-h-85 { height: 85%; }
.bar-h-86 { height: 86%; }
.bar-h-87 { height: 87%; }
.bar-h-88 { height: 88%; }
.bar-h-89 { height: 89%; }
.bar-h-90 { height: 90%; }
.bar-h-91 { height: 91%; }
.bar-h-92 { height: 92%; }
.bar-h-93 { height: 93%; }
.bar-h-94 { height: 94%; }
.bar-h-95 { height: 95%; }
.bar-h-96 { height: 96%; }
.bar-h-97 { height: 97%; }
.bar-h-98 { height: 98%; }
.bar-h-99 { height: 99%; }
.bar-h-100 { height: 100%; }
