:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66736d;
  --line: #dfe6e1;
  --paper: #f5f6f2;
  --surface: #ffffff;
  --coal: #121a1f;
  --coal-2: #1f2b30;
  --brand-red: #df2118;
  --brand-red-dark: #b81712;
  --brand-cream: #fcf4e1;
  --accent: #0f7468;
  --yellow: var(--brand-red);
  --yellow-dark: var(--brand-red-dark);
  --warm: #f4b046;
  --danger: #b84b32;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.compact-site-header { position: static; }
.utility-strip { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 0 24px; background: #f1f3f0; color: var(--muted); font-size: 12px; }
.shop-nav, .topbar { min-height: 88px; display: flex; align-items: center; gap: 18px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); background: var(--surface); }
.topbar { justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 820; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 74px; height: 86px; flex: 0 0 74px; border-radius: 0; color: transparent; background: url("/static/core/gvm-logo-mark.abd4dcd4b9fb.png?v=20260702-logo-2") center / contain no-repeat; font-size: 0; font-weight: 860; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.catalog-button { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 8px; background: var(--brand-red); color: #fff; font-weight: 780; white-space: nowrap; }
.menu-lines, .search-icon { position: relative; display: inline-block; flex: 0 0 auto; }
.menu-lines { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.nav-search { flex: 1; display: grid; grid-template-columns: 1fr 48px; max-width: 480px; min-width: 260px; }
.nav-search input, .hero-search input, input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; }
.nav-search input { border-radius: 8px 0 0 8px; }
.nav-search button { border-radius: 0 8px 8px 0; }
.search-icon { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; border-top: 2px solid currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.topnav a:hover, .text-link:hover { color: var(--accent); }
.topnav .cart-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 780; white-space: nowrap; }
.cart-count { min-width: 23px; height: 23px; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 6px; background: var(--brand-red); color: #fff; font-size: 12px; font-weight: 860; }
.logout-form { margin: 0; }
.logout-form button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; }
.logout-form button:hover { color: var(--accent); }
.topnav .workspace-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; background: var(--brand-red); color: #fff; font-weight: 800; white-space: nowrap; }
.topnav .workspace-link:hover { background: var(--brand-red-dark); color: #fff; }
.shop-shell, .work-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }
.hero-section { min-height: 430px; display: grid; align-items: center; background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 41%, rgba(255,255,255,.38) 70%, rgba(255,255,255,.06) 100%), url("/static/core/gvm-hero-construction.9f44c70c7aa2.jpg"); background-size: cover; background-position: center right; border-bottom: 1px solid var(--line); }
.hero-content { padding: 52px 0; }
.eyebrow { margin: 0 0 10px; color: var(--yellow-dark); font-weight: 860; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { max-width: 650px; font-size: 56px; line-height: 1.04; font-weight: 880; }
h2 { font-size: 26px; line-height: 1.15; font-weight: 820; }
.hero-copy { max-width: 520px; margin: 18px 0 22px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero-search { display: grid; grid-template-columns: minmax(260px, 460px) auto; gap: 10px; max-width: 660px; margin-bottom: 18px; }
button, .button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand-red); border-radius: 8px; padding: 0 18px; background: var(--brand-red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.hero-actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; color: var(--ink); font-size: 13px; font-weight: 760; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 31, .2); }
.store-layout { padding: 34px 0; scroll-margin-top: 136px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head.compact { align-items: center; }
.text-link { color: var(--muted); font-size: 14px; font-weight: 740; }
.category-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.category-tile { min-height: 132px; display: grid; align-content: start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.category-tile:hover, .category-tile.active { border-color: rgba(15, 116, 104, .45); box-shadow: 0 12px 28px rgba(18, 26, 31, .08); }
.category-thumb { width: 68px; height: 58px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-cream); color: var(--coal); font-size: 18px; font-weight: 880; }
.category-tile strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; line-height: 1.25; }
.store-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.mobile-catalog-menu { display: none; }
.filter-panel, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.filter-panel { position: sticky; top: 100px; }
.filter-panel h2 { margin-bottom: 14px; font-size: 18px; }
.category-tree { display: grid; gap: 8px; color: var(--muted); }
.category-group { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.category-group:last-child { border-bottom: 0; }
.category-all, .category-parent, .category-child { display: block; border-radius: 6px; line-height: 1.25; }
.category-all, .category-parent { padding: 8px 9px; color: var(--ink); font-weight: 760; }
.category-child { padding: 6px 9px 6px 18px; font-size: 14px; }
.category-all.active, .category-parent.active, .category-child.active { background: #e6f4ef; color: var(--accent); }
.catalog-results { min-width: 0; }
.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.product-card { min-width: 0; min-height: 480px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.product-card:hover, .product-card:focus-visible { border-color: rgba(15, 116, 104, .45); box-shadow: 0 14px 30px rgba(18, 26, 31, .10); transform: translateY(-1px); outline: 0; }
.product-card-link { display: block; flex: 0 0 auto; }
.product-visual { position: relative; height: 268px; display: grid; place-items: center; overflow: hidden; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; font-weight: 780; line-height: 1.2; }
.product-visual img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; max-height: none; object-fit: contain; display: block; }
.product-visual span { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card-main { min-width: 0; min-height: 216px; display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.product-card-copy { min-width: 0; display: grid; gap: 5px; }
.product-name { min-height: 80px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow-wrap: anywhere; font-weight: 780; line-height: 1.25; }
.product-meta { overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.muted, .empty-state { color: var(--muted); }
.stock-summary { min-height: 54px; display: grid; align-content: start; gap: 6px; }
.stock-line { min-width: 0; min-height: 22px; display: grid; grid-template-columns: 9px auto max-content; align-items: center; justify-content: start; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.2; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-label { min-width: 0; overflow: hidden; color: var(--ink); font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.stock-line strong { font-weight: 840; white-space: nowrap; }
.stock-store { color: #12805c; }
.stock-supplier { color: #d09000; }
.stock-empty { color: #c8372d; }
.detail-stock-summary { min-height: auto; justify-items: start; }
.product-card-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { color: var(--accent); font-size: 20px; font-weight: 860; }
.detail-link { color: var(--coal); font-size: 13px; font-weight: 780; white-space: nowrap; }
.card-cart-form { margin-top: 2px; }
.card-cart-form button { width: 100%; min-height: 42px; }
.storefront-messages { display: grid; gap: 8px; padding-top: 14px; }
.storefront-message { padding: 12px 14px; border: 1px solid #b7ddd1; border-radius: 8px; background: #e6f4ef; color: #0f6f63; font-weight: 720; }
.storefront-message p { margin: 0; }
.storefront-message.error { border-color: #e5aaa5; background: #fdebea; color: #8c211b; }
.storefront-message.warning { border-color: #ead08f; background: #fff7df; color: #886313; }
.empty-state { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
.workspace-form-panel { max-width: 940px; }
.workspace-model-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-model-form label { display: grid; align-content: start; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 760; }
.workspace-model-form .field-wide { grid-column: 1 / -1; }
.workspace-model-form select, .workspace-model-form textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; font: inherit; }
.workspace-model-form textarea { resize: vertical; }
.field-error { color: var(--danger); font-weight: 700; }
.demand-analysis { margin-bottom: 18px; }
.expense-filters { grid-template-columns: repeat(3, minmax(150px, .7fr)) minmax(240px, 1.2fr) auto; }
.product-page { padding: 24px 0 54px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #aab4af; }
.product-detail { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 22px; align-items: stretch; margin-bottom: 18px; }
.product-detail-media { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); text-align: center; font-size: 20px; font-weight: 820; padding: 24px; }
.product-detail-media img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); max-width: none; max-height: none; object-fit: contain; display: block; }
.product-detail-main { display: grid; align-content: start; gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 26px; }
.product-detail-main h1 { max-width: none; font-size: 42px; line-height: 1.08; }
.category-pill { width: fit-content; padding: 6px 10px; border-radius: 6px; background: #e6f4ef; color: var(--accent); font-size: 13px; font-weight: 780; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.product-meta-row span { padding-right: 8px; border-right: 1px solid var(--line); }
.product-meta-row span:last-child { border-right: 0; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.product-detail-price { color: var(--accent); font-size: 34px; font-weight: 880; }
.product-buy-form { display: grid; grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr); gap: 10px; align-items: end; padding-top: 4px; }
.product-buy-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 760; }
.product-buy-form input { min-height: 46px; }
.purchase-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.detail-stock-list, .supplier-list { display: grid; gap: 8px; }
.detail-stock-line, .supplier-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.detail-stock-line:last-child, .supplier-line:last-child { border-bottom: 0; }
.detail-stock-line strong, .supplier-line strong { color: var(--ink); white-space: nowrap; }
.product-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.product-info-panel h2, .product-description h2, .related-products h2 { margin-bottom: 12px; }
.spec-list { display: grid; gap: 10px; margin: 0; }
.spec-list div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 720; }
.product-description { margin-bottom: 22px; }
.product-description p { margin: 0; color: var(--muted); line-height: 1.5; }
.related-products { display: grid; gap: 12px; }
.related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workbar { background: var(--coal); color: #fff; border-bottom: 0; }
.workbar .brand-mark { width: 70px; height: 78px; flex-basis: 70px; border-radius: 8px; background-color: var(--brand-cream); background-size: 88%; }
.workbar .topnav { flex-wrap: wrap; color: rgba(255,255,255,.78); }
.work-shell { padding: 28px 0 52px; }
.workspace-attendance-notice { margin-bottom: 14px; }
.workspace-attendance-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 14px; padding: 22px; border: 2px solid #f4b046; border-radius: 10px; background: #fff7df; box-shadow: 0 10px 28px rgba(112, 77, 12, .08); }
.workspace-attendance-prompt h1 { max-width: 760px; font-size: 27px; line-height: 1.14; }
.workspace-attendance-prompt p:last-child { margin: 9px 0 0; color: var(--muted); line-height: 1.45; }
.workspace-attendance-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.workspace-attendance-actions form { display: grid; gap: 5px; }
.workspace-attendance-actions small { max-width: 220px; color: var(--muted); font-size: 11px; text-align: center; }
.workspace-attendance-status { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.workspace-attendance-status.has-active-employee { border-color: #9fd3b2; background: #e9f7ed; color: #166534; }
.workspace-attendance-status > div { display: flex; align-items: baseline; gap: 7px 14px; flex-wrap: wrap; }
.workspace-attendance-status strong { color: var(--ink); }
.workspace-attendance-status span { font-size: 14px; }
.workspace-attendance-status small { color: var(--muted); }
.workspace-attendance-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #94a3b8; }
.has-active-employee .workspace-attendance-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.workspace-breadcrumbs { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.workspace-breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.workspace-breadcrumbs li { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.workspace-breadcrumbs li + li::before { content: "›"; color: #9aa6a0; font-size: 17px; line-height: 1; }
.workspace-breadcrumbs a { color: var(--accent); font-weight: 740; }
.workspace-breadcrumbs a:hover { text-decoration: underline; }
.workspace-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 780; overflow-wrap: anywhere; }
.work-hero, .work-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; padding: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--coal), var(--coal-2)); color: #fff; }
.work-hero h1, .work-header h1 { max-width: 650px; font-size: 38px; line-height: 1.08; }
.order-create-header { min-height: 88px; align-items: center; padding: 18px 24px; }
.order-create-header h1 { font-size: 30px; }
.work-copy { max-width: 620px; margin: 10px 0 0; color: rgba(255,255,255,.72); line-height: 1.45; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; align-content: space-between; }
.metric span { font-size: 34px; font-weight: 880; color: var(--coal); }
.metric small { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.ops-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.status-lines { display: grid; gap: 8px; }
.status-lines a { min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--paper); }
.status-lines strong { color: var(--accent); }
.table-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-x: auto; }
.orders-panel { display: grid; gap: 16px; overflow-x: visible; }
.orders-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.orders-panel-head h1 { max-width: none; font-size: 32px; line-height: 1.08; }
.status-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.status-filter { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 760; }
.status-filter strong { color: var(--ink); font-weight: 840; }
.status-filter.active { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.status-filter.active strong { color: #fff; }
.orders-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.orders-table td { white-space: nowrap; }
.orders-table td:nth-child(2), .orders-table td:nth-child(3) { min-width: 160px; white-space: normal; }
.order-number-link { color: var(--accent); font-weight: 820; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-section { display: grid; align-content: start; gap: 12px; }
.form-section label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form-section input, .form-section textarea, .form-section select, .line-row input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: inherit; }
.form-section .checkbox-line { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 820; }
.form-section .checkbox-line input[type="checkbox"] { all: revert; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form-section .checkbox-line:has(input:disabled) { opacity: .55; }
.sale-flow-section { gap: 12px; }
.sale-flow-options { display: flex; flex-wrap: wrap; gap: 10px; }
.form-section .sale-flow-option { width: fit-content; min-width: 150px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.form-section .sale-flow-option:has(input:checked) { border-color: var(--accent); background: #e6f4ef; box-shadow: 0 0 0 1px rgba(15, 116, 104, .18); }
.form-section .sale-flow-option input[type="radio"] { all: revert; width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.sale-flow-option span { display: block; min-width: 0; }
.sale-flow-option strong { color: var(--ink); font-size: 14px; font-weight: 880; letter-spacing: 0; white-space: nowrap; }
.form-section textarea { resize: vertical; }
.form-notice { padding: 12px 14px; border: 1px solid #b7ddd1; border-radius: 8px; background: #e6f4ef; color: #0f6f63; font-weight: 760; }
.form-notice-link { display: inline-flex; margin-left: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-errors { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #f0b9b5; border-radius: 8px; background: #fdebea; color: #9d1f16; font-weight: 760; }
.form-errors p { margin: 0; }
.flash-messages { display: grid; gap: 8px; }
.flash-messages .form-notice p { margin: 0; }
.aqsi-panel { display: grid; gap: 14px; }
.aqsi-panel .section-head { margin-bottom: 0; }
.aqsi-statuses { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.aqsi-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.aqsi-details div { display: grid; gap: 4px; padding: 11px 12px; border-radius: 8px; background: var(--paper); }
.aqsi-details dt { color: var(--muted); font-size: 12px; }
.aqsi-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 780; }
.aqsi-help { margin: 0; line-height: 1.5; }
.aqsi-ready, .aqsi-checklist, .aqsi-warning { padding: 12px 14px; border-radius: 8px; line-height: 1.45; }
.aqsi-ready { display: grid; gap: 3px; border: 1px solid #b7ddd1; background: #e6f4ef; color: #0f6f63; }
.aqsi-ready span { color: #416e66; font-size: 13px; }
.aqsi-checklist { border: 1px solid #ead59a; background: #fff7dd; color: #765715; }
.aqsi-checklist ul { margin: 7px 0 0; padding-left: 20px; }
.aqsi-warning { border: 1px solid #efc47b; background: #fff0d7; color: #875116; font-weight: 760; }
.aqsi-pilot-note { padding: 10px 12px; border: 1px dashed #9aa8a2; border-radius: 8px; background: #f6f7f5; color: var(--muted); font-size: 13px; line-height: 1.4; }
.status-pill.status-aqsi-paid, .status-pill.status-fiscal-fiscalized { background: #e9f7ed; color: #16733a; }
.status-pill.status-aqsi-deferred, .status-pill.status-aqsi-submitting, .status-pill.status-fiscal-pending { background: #edf0ff; color: #4058a8; }
.status-pill.status-aqsi-partially_paid, .status-pill.status-aqsi-unknown, .status-pill.status-fiscal-unknown { background: #fff0d7; color: #875116; }
.status-pill.status-aqsi-failed, .status-pill.status-fiscal-error { background: #fdebea; color: #b42318; }
.status-pill.status-aqsi-cancelled, .status-pill.status-aqsi-returned, .status-pill.status-aqsi-partially_returned { background: #f1f3f0; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.order-form { display: grid; gap: 16px; }
.barcode-scan-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 680; }
.barcode-scan-status[data-state="loading"] { color: #4058a8; }
.barcode-scan-status[data-state="success"] { color: #0f6f63; }
.barcode-scan-status[data-state="error"] { color: #a92e26; }
.barcode-scan-highlight { animation: barcode-scan-highlight 1.15s ease-out; }
@keyframes barcode-scan-highlight {
  0%, 38% { background: #d8f4e9; box-shadow: 0 0 0 3px rgba(15, 116, 104, .18); }
  100% { background: transparent; box-shadow: none; }
}
.price-policy-note { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #b7ddd1; border-radius: 8px; background: #e6f4ef; color: #0f6f63; font-size: 13px; line-height: 1.4; }
.price-policy-note strong { font-weight: 820; }
.price-policy-note span { color: #416e66; }
.order-edit-panel .price-policy-note { margin-bottom: 14px; }
.procurement-panel { display: grid; gap: 16px; overflow-x: visible; }
.procurement-help { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #b7ddd1; border-radius: 8px; background: #e6f4ef; color: #0f6f63; line-height: 1.4; }
.procurement-help span { color: #416e66; font-size: 13px; }
.procurement-filters { display: grid; grid-template-columns: minmax(170px, .65fr) minmax(190px, .75fr) minmax(280px, 1.4fr) auto; gap: 10px; align-items: end; }
.procurement-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.procurement-filters input, .procurement-filters select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 9px 11px; font: inherit; }
.procurement-table td:first-child { min-width: 160px; }
.procurement-table td:nth-child(3) { min-width: 280px; }
.status-pill.status-procurement-new { background: #f1f3f0; color: var(--muted); }
.status-pill.status-procurement-sent { background: #fff0e8; color: #b84b32; }
.status-pill.status-procurement-confirmed { background: #edf0ff; color: #4058a8; }
.status-pill.status-procurement-picked_up { background: #e9f7ed; color: #16733a; }
.status-pill.status-procurement-cancelled { background: #fdebea; color: #b42318; }
.line-table { display: grid; gap: 8px; }
.line-row { display: grid; grid-template-columns: minmax(240px, 1fr) 110px 120px 44px; gap: 8px; align-items: start; }
.line-head { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.order-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 13px 16px; border: 1px solid #b7ddd1; border-radius: 8px; background: #e6f4ef; color: #416e66; font-size: 14px; font-weight: 760; }
.order-total-value { color: var(--accent); font-size: 25px; font-weight: 880; line-height: 1; white-space: nowrap; }
.line-validation-error { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: 12px; font-weight: 760; }
.line-form-error { margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 760; }
.order-line.has-validation-error input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(184, 75, 50, .14); }
.product-cell, .lookup-field { position: relative; }
.product-cell.has-product-thumbnail { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: start; }
.product-cell.has-product-thumbnail > .order-product-thumbnail { grid-column: 1; grid-row: 1; }
.product-cell.has-product-thumbnail > .product-search { grid-column: 2; grid-row: 1; }
.product-thumbnail { position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 9px; font-weight: 720; line-height: 1.05; text-align: center; }
.product-thumbnail[hidden], .product-thumbnail img[hidden], .product-thumbnail-placeholder[hidden] { display: none; }
.product-thumbnail img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.product-thumbnail-placeholder { max-width: 42px; padding: 3px; overflow-wrap: anywhere; }
.product-thumbnail.is-empty { background: var(--paper); }
[data-product-image-preview] { cursor: zoom-in; }
[data-product-image-preview]:focus-visible { outline: 2px solid rgba(15, 116, 104, .5); outline-offset: 2px; }
.customer-picker { display: grid; gap: 8px; }
.customer-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.open-customer-browser { white-space: nowrap; }
.customer-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 13px; line-height: 1.25; }
.customer-selected { color: var(--accent); font-weight: 760; }
.customer-create-offer { align-items: center; }
.customer-create-offer .button { min-height: 34px; padding: 0 12px; font-size: 13px; }
.customer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-list-panel, .customer-section, .customer-info-card { display: grid; gap: 14px; }
.customer-details { display: grid; gap: 10px; margin: 0; }
.customer-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.customer-details div:last-child { padding-bottom: 0; border-bottom: 0; }
.customer-details dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.customer-details dd { margin: 0; font-weight: 720; overflow-wrap: anywhere; }
.customer-notes { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.customer-object-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-object-card { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.customer-object-card span, .customer-object-card small { color: var(--muted); line-height: 1.4; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 4px; max-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 40px rgba(34, 48, 43, .14); }
.suggestions:empty { display: none; }
.suggestions button { display: grid; gap: 4px; min-height: auto; padding: 10px 12px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); text-align: left; justify-content: stretch; }
.suggestions button:hover { background: var(--paper); }
.suggestions small { color: var(--muted); }
.product-suggestions .product-suggestion-choice { grid-template-columns: 48px minmax(0, 1fr) max-content; align-items: center; gap: 12px; }
.product-suggestion-main { min-width: 0; display: grid; gap: 4px; }
.product-suggestion-main strong { overflow-wrap: anywhere; }
.product-suggestion-stock { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.stock-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 820; line-height: 1; }
.stock-badge-store.has-stock { border-color: #9fd9b2; background: #e8f7ed; color: #16733a; }
.stock-badge-supplier.has-stock { border-color: #bfd0f8; background: #edf3ff; color: #315aa6; }
.product-suggestion-price { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.product-suggestion-price strong { color: var(--accent); font-size: 16px; font-weight: 860; }
.product-suggestion-price small { font-size: 11px; font-weight: 650; }
.product-image-hover-preview { position: fixed; z-index: 1000; width: min(416px, calc(100vw - 24px), calc(100vh - 96px)); padding: 10px; border: 1px solid rgba(18, 26, 31, .2); border-radius: 10px; background: #fff; box-shadow: 0 20px 55px rgba(18, 26, 31, .28); }
.product-image-hover-preview[hidden] { display: none; }
.product-image-hover-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; border-radius: 7px; background: #fff; }
.product-image-hover-caption { display: block; padding: 9px 4px 1px; color: var(--ink); font-size: 13px; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
.customer-browser-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); box-shadow: 0 24px 80px rgba(18, 26, 31, .28); }
.customer-browser-dialog::backdrop { background: rgba(18, 26, 31, .58); backdrop-filter: blur(2px); }
.customer-browser-card { display: grid; gap: 16px; padding: 22px; background: var(--surface); }
.customer-browser-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.customer-browser-head h2 { font-size: 24px; }
.customer-browser-head .eyebrow { margin-bottom: 5px; }
.customer-browser-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.customer-browser-status { min-height: 20px; margin: 0; font-size: 13px; }
.customer-browser-results { display: grid; gap: 6px; max-height: min(480px, calc(100vh - 260px)); overflow-y: auto; }
.customer-browser-item { width: 100%; min-height: 58px; display: grid; justify-content: stretch; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; }
.customer-browser-item:hover, .customer-browser-item:focus-visible { border-color: rgba(15, 116, 104, .55); background: #f4fbf8; outline: 0; }
.customer-browser-item small { color: var(--muted); font-weight: 500; }
.icon-button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 8px; background: var(--surface); color: var(--muted); border-color: var(--line); font-size: 22px; }
.line-actions { display: flex; justify-content: flex-start; padding-top: 4px; }
.add-line { gap: 8px; }
.add-line::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 17px; font-weight: 880; line-height: 1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 14px 4px; color: var(--muted); }
.pagination a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 760; }
.inventory-header { align-items: center; }
.inventory-metrics .metric span { font-size: 30px; }
.inventory-panel { display: grid; gap: 14px; }
.inventory-filters { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr) auto; gap: 10px; align-items: end; }
.inventory-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.inventory-filters input, .inventory-filters select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 9px 11px; font: inherit; }
.label-print-form { display: grid; gap: 12px; }
.label-print-toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(220px, auto) auto; gap: 12px; align-items: end; padding: 14px; border: 1px solid #b7ddd1; border-radius: 8px; background: #f4fbf8; }
.label-print-toolbar > div { display: grid; gap: 3px; }
.label-print-toolbar > div span { color: var(--muted); font-size: 13px; }
.label-print-format { align-content: end; }
.label-print-format small { color: var(--muted); font-size: 12px; }
.label-print-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.label-print-toolbar select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 8px 10px; font: inherit; }
.label-print-toolbar button:disabled { opacity: .5; cursor: not-allowed; }
.label-select-cell { width: 38px; text-align: center !important; vertical-align: middle !important; }
.label-select-cell input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.inventory-table td small { display: block; margin-top: 4px; color: var(--muted); white-space: nowrap; }
.inventory-product-cell { min-width: 280px; display: flex; align-items: center; gap: 11px; }
.inventory-product-cell > strong { min-width: 0; overflow-wrap: anywhere; }
.inventory-product-thumbnail { width: 52px; height: 52px; flex-basis: 52px; }
.product-code { font-weight: 740; }
.label-copies { width: 72px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.label-copies:disabled { opacity: .45; background: var(--paper); }
.receipt-form { display: grid; gap: 16px; }
.receipt-lines-panel { display: grid; gap: 14px; overflow: visible; }
.receipt-line-table { display: grid; gap: 8px; }
.receipt-line-row { display: grid; grid-template-columns: minmax(300px, 1.4fr) 130px 150px minmax(180px, .7fr) 44px; gap: 8px; align-items: start; }
.receipt-line-head { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.receipt-line-row > input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 9px 11px; font: inherit; }
.receipt-line-row > span { min-height: 44px; padding: 10px 0; }
.receipt-label-panel { display: grid; gap: 14px; margin-top: 18px; overflow-x: visible; }
.receipt-label-panel .section-head { margin-bottom: 0; }
.receipt-label-panel .section-head p { margin: 5px 0 0; }
.receipt-label-form { display: grid; gap: 14px; }
.receipt-label-table td small { display: block; margin-top: 4px; color: var(--muted); }
.receipt-label-table td:nth-child(3) { white-space: nowrap; }
.danger-button { background: #a92e26; border-color: #a92e26; color: #fff; }
.danger-button:hover { background: #8c211b; border-color: #8c211b; }
.deletion-notice { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #e5aaa5; border-radius: 8px; background: #fdebea; color: #8c211b; }
.marked-for-deletion-row { opacity: .72; background: #fff8f7; }
.status-deletion-marked { background: #fdebea; color: #9d1f16; }
.status-receipt-draft { background: #fff4d8; color: #8c6514; }
.status-receipt-posted { background: #e6f4ef; color: #0f6f63; }
.status-receipt-cancelled { background: #fdebea; color: #9d1f16; }
.single-info-grid { grid-template-columns: minmax(0, 1fr); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--page); }
.manager-login-card { width: min(440px, 100%); display: grid; gap: 24px; padding: 30px; box-shadow: 0 20px 60px rgba(18, 26, 31, .10); }
.manager-login-card h1 { max-width: none; font-size: 32px; }
.login-brand { justify-self: start; }
.manager-login-form { display: grid; gap: 14px; }
.manager-login-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.manager-login-form button { width: 100%; }
.manager-login-form button:disabled { opacity: .55; cursor: not-allowed; }
.readonly-fieldset { min-width: 0; display: contents; margin: 0; padding: 0; border: 0; }
.readonly-fieldset:disabled input, .readonly-fieldset:disabled select, .readonly-fieldset:disabled textarea { color: var(--ink); opacity: 1; background: #f6f7f5; }
.order-detail-form { display: grid; gap: 16px; }
.order-detail-header { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(420px, 1.18fr); align-items: stretch; gap: 18px; margin-bottom: 10px; padding: 20px; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfcfb); box-shadow: 0 16px 45px rgba(18, 26, 31, .06); }
.order-detail-title { display: grid; align-content: start; gap: 10px; min-width: 0; }
.order-detail-title .eyebrow { margin: 0; color: var(--muted); font-size: 12px; }
.order-detail-title h1 { max-width: none; overflow-wrap: anywhere; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.02; }
.order-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 760; }
.order-detail-meta > span:not(.status-pill) { min-height: 30px; display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: #f7f8f6; }
.order-detail-actions { display: grid; align-content: start; justify-items: end; gap: 10px; }
.order-action-group { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.order-action-group .button, .order-action-group button { min-height: 42px; padding-inline: 14px; border-radius: 9px; font-size: 14px; }
.order-action-group-main { width: 100%; padding: 12px; border: 1px solid #d7eee4; border-radius: 10px; background: #f2fbf6; }
.order-action-group-main .button { min-height: 46px; }
.order-action-group-secondary .button, .order-action-group-secondary button { background: #fff; }
.primary-action { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.primary-action:hover { border-color: var(--brand-red-dark); background: var(--brand-red-dark); }
.success-action { border-color: #15803d; background: #15803d; color: #fff; }
.success-action:hover { border-color: #166534; background: #166534; }
.wide-action { padding-inline: 20px; }
.order-action-group-danger { width: 100%; padding-top: 2px; }
.subtle-danger { border-color: #e5aaa5; background: #fff8f7; color: #9d1f16; }
.subtle-danger:hover { border-color: #d48a83; background: #fdebea; color: #8c211b; }
.order-edit-panel { overflow-x: visible; }
.editable-lines-table th, .editable-lines-table td { vertical-align: middle; }
.editable-lines-table td:first-child { min-width: 280px; }
.editable-lines-table input, .editable-lines-table select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 8px 10px; font: inherit; }
.editable-lines-table td:nth-child(2) { width: 110px; }
.editable-lines-table td:nth-child(3) { width: 130px; }
.editable-lines-table td:nth-child(4) { width: 190px; }
.editable-lines-table td:nth-child(5) { width: 230px; }
.editable-lines-table .delete-line-cell { width: 104px; min-width: 104px; text-align: center; }
.delete-line { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.editable-lines-table .delete-line .delete-line-checkbox { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; accent-color: var(--danger); cursor: pointer; }
.editable-lines-table .delete-line .delete-line-checkbox:focus-visible { outline: 2px solid rgba(184, 75, 50, .35); outline-offset: 2px; }
.delete-line:has(.delete-line-checkbox:checked) { color: var(--danger); font-weight: 780; }
.supplier-workflow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; align-items: start; }
.supplier-panel { display: grid; gap: 14px; overflow-x: visible; }
.supplier-card, .route-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.supplier-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.supplier-card h3, .route-card h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.print-route-head { display: grid; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.print-route-head h1 { max-width: none; font-size: 28px; line-height: 1.1; }
.print-route-head p { margin: 0; color: var(--muted); }
.print-route-head dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.print-route-head div { display: grid; gap: 3px; }
.print-route-head dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.print-route-head dd { margin: 0; font-weight: 760; }
.compact-table th, .compact-table td { padding: 9px 8px; }
.route-stop { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.route-stop:first-of-type { border-top: 0; padding-top: 0; }
.route-stop p { margin: 0; }
.route-stop ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--ink); }
.cart-page, .checkout-page { padding: 28px 0 56px; }
.cart-title h1, .checkout-title h1 { max-width: none; font-size: 42px; }
.inline-messages { width: 100%; padding: 0 0 16px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cart-items-panel { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 104px minmax(190px, 1fr) 120px 150px; gap: 14px; align-items: center; position: relative; padding: 14px 46px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cart-item.unavailable { border-color: #e5aaa5; background: #fffafa; }
.cart-item-image { width: 104px; height: 104px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 840; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-main { min-width: 0; display: grid; gap: 6px; }
.cart-item-name { font-weight: 800; line-height: 1.3; }
.cart-item-main .muted { font-size: 13px; }
.cart-item-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.cart-quantity { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 720; }
.cart-quantity input { min-height: 42px; padding: 0 10px; }
.cart-item-price { display: grid; justify-items: end; gap: 4px; text-align: right; }
.cart-item-price strong { color: var(--accent); font-size: 18px; }
.cart-item-price span { color: var(--muted); font-size: 11px; }
.remove-cart-item { position: absolute; top: 9px; right: 9px; min-height: auto; padding: 4px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.remove-cart-item:hover { color: var(--danger); }
.cart-update-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-summary, .checkout-summary { position: sticky; top: 18px; display: grid; gap: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-summary-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-summary-total span { color: var(--muted); font-size: 13px; }
.cart-summary-total strong { color: var(--accent); font-size: 24px; white-space: nowrap; }
.summary-note, .cart-blocked-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cart-blocked-note { padding: 10px; border-radius: 8px; background: #fff7df; color: #886313; font-weight: 700; }
.checkout-button, .place-order-button { width: 100%; }
.empty-cart { max-width: 720px; display: grid; justify-items: start; gap: 14px; padding: 32px; }
.empty-cart p { margin: 0; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.checkout-form-column { display: grid; gap: 14px; }
.checkout-section { display: grid; gap: 18px; padding: 22px; }
.checkout-step { display: flex; align-items: flex-start; gap: 12px; }
.checkout-step > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #e6f4ef; color: var(--accent); font-weight: 860; }
.checkout-step h2 { font-size: 21px; }
.checkout-step p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.checkout-fields { display: grid; gap: 14px; }
.checkout-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-fields .field-wide { grid-column: 1 / -1; }
.checkout-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 740; }
.checkout-fields input, .checkout-fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: inherit; }
.checkout-fields textarea { resize: vertical; }
.required-mark { margin-left: 3px; color: var(--brand-red); }
.optional-mark { color: #98a29d; font-size: 11px; font-weight: 600; }
.errorlist { margin: 0; padding: 0; color: var(--danger); font-size: 12px; font-weight: 700; list-style: none; }
.fulfillment-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fulfillment-options > div > div label { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 760; }
.fulfillment-options input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--brand-red); }
.privacy-consent { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.4; cursor: pointer; }
.privacy-consent input { width: 19px; height: 19px; min-height: 19px; margin: 1px 0 0; accent-color: var(--brand-red); }
.privacy-consent .errorlist { grid-column: 2; }
.place-order-button { min-height: 54px; font-size: 16px; }
.checkout-disclaimer { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.checkout-summary .panel-head { margin: 0; }
.checkout-summary .panel-head a { color: var(--accent); font-size: 13px; font-weight: 760; }
.checkout-summary-items { display: grid; gap: 12px; }
.checkout-summary-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-summary-item > span { min-width: 0; font-size: 13px; font-weight: 740; line-height: 1.3; }
.checkout-summary-item small { grid-column: 1; color: var(--muted); }
.checkout-summary-item strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: 13px; white-space: nowrap; }
.success-page { display: grid; place-items: center; padding: 54px 0 70px; }
.order-success-card { width: min(760px, 100%); display: grid; justify-items: center; gap: 18px; padding: 42px; text-align: center; }
.success-mark { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #e6f4ef; color: var(--accent); font-size: 36px; font-weight: 900; }
.order-success-card .eyebrow { margin: 0; }
.order-success-card h1 { max-width: 650px; font-size: 38px; }
.success-order-number { margin: 0; font-size: 18px; }
.success-order-number strong { color: var(--accent); }
.success-copy { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.55; }
.success-steps { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.success-steps > div { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 8px; background: var(--paper); }
.success-steps > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 840; }
.success-steps p { display: grid; gap: 4px; margin: 0; }
.success-steps small { color: var(--muted); line-height: 1.35; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.status-storefront { background: #e6f4ef; color: #0f6f63; }
.status-store { background: #e6f4ef; color: #0f6f63; }
.status-supplier { background: #fff0e8; color: #b84b32; }
.status-split { background: #edf0ff; color: #4058a8; }
.status-order-draft { background: #f1f3f0; color: var(--muted); }
.status-order-in_work { background: #e6f4ef; color: #0f6f63; }
.status-order-waiting_suppliers { background: #fff0e8; color: #b84b32; }
.status-order-ready_to_deliver { background: #edf0ff; color: #4058a8; }
.status-order-delivered { background: #e9f7ed; color: #16733a; }
.status-order-cancelled { background: #fdebea; color: #b42318; }
@media (max-width: 1080px) {
  .category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-search { max-width: none; }
}
@media (max-width: 860px) {
  .utility-strip { display: none; }
  .topbar { align-items: stretch; flex-direction: column; padding: 14px 16px; }
  .storefront .site-header { position: static; }
  .storefront .shop-nav { min-height: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 8px 16px 12px; }
  .storefront .brand { grid-column: 1; grid-row: 1; }
  .storefront .brand-mark { width: 56px; height: 64px; flex-basis: 56px; }
  .storefront .catalog-button { grid-column: 2; grid-row: 1; justify-content: center; }
  .storefront .nav-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 46px; min-width: 0; width: 100%; max-width: none; }
  .storefront .nav-search input { border-radius: 8px 0 0 8px; }
  .storefront .nav-search button { min-width: 46px; padding: 0; border-radius: 0 8px 8px 0; }
  .storefront .topnav { grid-column: 3; grid-row: 1; justify-content: flex-end; margin-left: 0; }
  .storefront .topnav > a:first-child { display: none; }
  .storefront .topnav .workspace-link { min-height: 36px; padding: 0 12px; }
  .hero-section { min-height: auto; background-image: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.72)), url("/static/core/gvm-hero-construction.9f44c70c7aa2.jpg"); }
  .hero-content { padding: 28px 0; }
  .storefront .hero-search, .storefront .hero-actions { display: none; }
  .storefront .hero-copy { margin: 12px 0 0; }
  h1 { font-size: 34px; }
  .store-layout, .ops-layout, .product-detail, .product-info-grid, .form-grid, .supplier-workflow, .customer-object-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .cart-item { grid-template-columns: 90px minmax(0, 1fr) 110px; }
  .cart-item-image { width: 90px; height: 90px; }
  .cart-item-price { grid-column: 2; justify-items: start; text-align: left; }
  .cart-quantity { grid-column: 3; grid-row: 1 / span 2; }
  .storefront .filter-panel { display: none; }
  .mobile-catalog-menu { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .mobile-catalog-menu summary { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; }
  .mobile-catalog-menu summary::-webkit-details-marker { display: none; }
  .mobile-catalog-menu summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
  .mobile-catalog-menu[open] summary::after { transform: rotate(225deg); }
  .mobile-catalog-menu summary:focus-visible { outline: 2px solid rgba(15, 116, 104, .55); outline-offset: -3px; }
  .mobile-catalog-title { color: var(--ink); font-weight: 820; }
  .mobile-catalog-current { min-width: 0; max-width: min(42vw, 240px); overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-category-tree { max-height: 440px; max-height: min(60dvh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
  .mobile-category-tree .category-all, .mobile-category-tree .category-parent, .mobile-category-tree .category-child { min-height: 44px; display: flex; align-items: center; padding-top: 10px; padding-bottom: 10px; }
  .store-layout { scroll-margin-top: 0; }
  .work-hero, .work-header { align-items: flex-start; flex-direction: column; }
  .workspace-attendance-prompt { grid-template-columns: 1fr; }
  .workspace-attendance-actions { width: 100%; }
  .order-detail-header { grid-template-columns: 1fr; }
  .order-detail-actions { justify-items: stretch; }
  .order-action-group { justify-content: stretch; }
  .order-action-group .button, .order-action-group button { flex: 1 1 180px; }
  .aqsi-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-panel-head { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-filters { grid-template-columns: 1fr; }
  .label-print-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .workspace-model-form { grid-template-columns: 1fr; }
  .workspace-model-form .field-wide { grid-column: auto; }
  .procurement-filters { grid-template-columns: 1fr 1fr; }
  .receipt-line-row { grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .receipt-line-head { display: none; }
  .receipt-line-row .product-cell { grid-column: 1 / -1; }
  .product-detail-media { min-height: 260px; }
}
@media (max-width: 560px) {
  .workspace-attendance-actions { display: grid; }
  .workspace-attendance-actions form, .workspace-attendance-actions button { width: 100%; }
  .shop-shell, .work-shell { width: min(100vw - 20px, 1180px); }
  .storefront .shop-nav { grid-template-columns: 50px minmax(0, 1fr); gap: 8px 10px; padding: 6px 10px 10px; }
  .storefront .brand-mark { width: 50px; height: 54px; flex-basis: 50px; }
  .storefront .catalog-button { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .storefront .topnav { grid-column: 1 / -1; grid-row: 2; min-height: 30px; font-size: 12px; }
  .storefront .topnav .workspace-link { min-height: 30px; padding: 0 10px; }
  .storefront .nav-search { grid-column: 1 / -1; grid-row: 3; }
  .category-tiles, .product-list, .metric-grid, .mini-grid { grid-template-columns: 1fr; }
  .catalog-results, .product-list, .product-card { width: 100%; max-width: 100%; }
  .section-head, .section-head.compact { align-items: flex-start; flex-direction: column; }
  .storefront .product-card { min-height: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .storefront .product-visual { height: auto; min-height: 176px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 0; }
  .storefront .product-visual img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .storefront .product-card-main { width: auto; max-width: none; min-height: 176px; gap: 8px; padding: 12px; }
  .storefront .product-name { min-height: 3.75em; max-width: none; overflow-wrap: anywhere; word-break: normal; -webkit-line-clamp: 3; font-size: 14px; }
  .storefront .product-meta, .storefront .stock-summary { max-width: none; }
  .storefront .stock-summary { min-height: 0; }
  .storefront .stock-line { font-size: 12px; }
  .storefront .product-card-bottom { align-items: flex-end; flex-direction: row; gap: 8px; }
  .storefront .detail-link { display: none; }
  .storefront .price { font-size: 18px; }
  .storefront .card-cart-form button { min-height: 38px; padding: 0 10px; font-size: 13px; }
  .hero-content { width: 100%; max-width: 100%; }
  .storefront .hero-content { padding: 18px 0; }
  h1, .work-hero h1, .work-header h1 { max-width: 340px; overflow-wrap: anywhere; font-size: 24px; line-height: 1.12; }
  .storefront .hero-copy { width: 100%; max-width: 340px; margin-top: 8px; overflow-wrap: break-word; font-size: 14px; line-height: 1.4; }
  .storefront .hero-points { display: none; }
  .product-detail-main h1 { font-size: 30px; }
  .product-buy-form { grid-template-columns: 1fr; }
  .cart-title h1, .checkout-title h1, .order-success-card h1 { font-size: 28px; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .cart-item-image { width: 76px; height: 76px; }
  .cart-quantity { grid-column: 1; grid-row: auto; }
  .cart-item-price { grid-column: 2; grid-row: auto; align-self: end; }
  .remove-cart-item { position: static; grid-column: 1 / -1; justify-self: start; }
  .cart-update-actions { align-items: stretch; flex-direction: column; }
  .cart-update-actions .button { width: 100%; }
  .checkout-fields.two-columns, .fulfillment-options > div, .success-steps { grid-template-columns: 1fr; }
  .checkout-fields .field-wide { grid-column: auto; }
  .checkout-section, .order-success-card { padding: 18px; }
  .success-page { padding: 28px 0 44px; }
  .detail-stock-line, .supplier-line, .form-actions { align-items: flex-start; flex-direction: column; }
  .aqsi-details { grid-template-columns: 1fr; }
  .aqsi-statuses { justify-content: flex-start; }
  .line-row { grid-template-columns: 1fr; }
  .procurement-filters { grid-template-columns: 1fr; }
  .product-suggestions .product-suggestion-choice { grid-template-columns: 48px minmax(0, 1fr); gap: 7px 10px; }
  .product-suggestion-price { grid-column: 2; justify-items: start; }
  .customer-lookup-row, .customer-browser-search { grid-template-columns: 1fr; }
  .open-customer-browser { width: 100%; }
  .customer-browser-card { padding: 16px; }
  .receipt-line-row { grid-template-columns: 1fr; }
  .receipt-line-row .product-cell { grid-column: auto; }
  .pagination { justify-content: space-between; gap: 8px; font-size: 13px; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .barcode-scan-highlight { animation: none; background: #d8f4e9; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  * { box-shadow: none !important; text-shadow: none !important; }
  body { background: #fff !important; color: #111 !important; font-size: 12px; }
  body * { visibility: hidden; }
  .print-route-sheet, .print-route-sheet * { visibility: visible; }
  .print-route-sheet { position: absolute; inset: 0 auto auto 0; width: 100%; padding: 0; border: 0; background: #fff; }
  .no-print, .no-print * { display: none !important; visibility: hidden !important; }
  .print-route-head { gap: 7px; padding-bottom: 9px; border-bottom: 2px solid #111; }
  .print-route-head h1 { font-size: 22px; color: #111; }
  .print-route-head p, .print-route-head dt { color: #333; }
  .print-route-head dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .route-card { page-break-inside: avoid; break-inside: avoid; margin-top: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; }
  .route-card h3 { font-size: 16px; color: #111; }
  .route-stop { gap: 4px; padding-top: 8px; border-top: 1px solid #ddd; }
  .route-stop strong { color: #111; }
  .route-stop .muted, .route-stop p { color: #333 !important; }
  .route-stop ul { gap: 3px; padding-left: 16px; color: #111; }
}
