:root {
  color-scheme: light;
  --ink: #202a35;
  --muted: #718096;
  --line: #e4eaf1;
  --surface: #ffffff;
  --page: #f4f7fb;
  --blue: #1769aa;
  --blue-dark: #104f82;
  --radius: 14px;
}

@font-face {
  font-family: "WinSymbols3";
  src: url("../fonts/WinSymbols3.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}

.win-symbol {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-family: "WinSymbols3", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.win-symbol.nav-section-icon { font-size: 17px; }
.win-symbol.nav-chevron { font-size: 14px; }
.mega-menu-icon .win-symbol { font-size: 18px; }
.icon-button .win-symbol,
.side-nav-collapse .win-symbol { font-size: 18px; }
.session-logout-button .win-symbol { font-size: 15px; }
.metric-icon .win-symbol { font-size: 16px; }
.document-count-icon .win-symbol,
.row-action .win-symbol,
.delivery-action .win-symbol,
.date-chip .win-symbol,
.caps-lock-warning .win-symbol,
.login-security-note .win-symbol { font-size: 15px; }
.breadcrumb .win-symbol { font-size: 15px; }
.table-search .win-symbol { font-size: 16px; }
.button-primary .win-symbol,
.button-secondary .win-symbol { font-size: 15px; }
.catalog-mobile-cart-bar .win-symbol,
.visual-mobile-cart-toggle .win-symbol { font-size: 18px; }
.order-request-modal-close .win-symbol { font-size: 18px; }
.nav-search .win-symbol,
.nav-search-result-icon .win-symbol { font-size: 16px; }
.nav-utility-action .win-symbol { font-size: 15px; }
.report-card-icon .win-symbol { font-size: 21px; }
.login-slide-arrow .win-symbol { font-size: 21px; }
.login-slide-play .win-symbol { font-size: 15px; }
.login-card-icon .win-symbol { font-size: 22px; }
.product-picker-toggle .win-symbol { font-size: 17px; }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.topbar { min-height: 70px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: white; background: linear-gradient(145deg, #287fc0, #125382); font-weight: 800; letter-spacing: -.08em; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.main-nav { display: flex; flex: 1; justify-content: center; gap: 7px; }
.main-nav a { padding: 10px 12px; border-radius: 9px; color: #455568; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { background: #edf4fa; color: var(--blue-dark); }
.account-menu { display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.account-name { font-size: 13px; font-weight: 650; }
.account-role { color: var(--muted); font-size: 12px; }
.app-container { max-width: 1500px; margin: 0 auto; padding: 34px 4vw 64px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.page-heading h1, .login-card h1 { margin: 0; font-weight: 750; letter-spacing: -.035em; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.muted { margin: 7px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.metric-card, .panel, .form-card, .login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px #233e5808; }
.metric-card { min-height: 102px; padding: 17px 19px; display: flex; flex-direction: column; gap: 8px; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong { font-size: 23px; letter-spacing: -.025em; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-panel { min-width: 0; overflow: hidden; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 215px; padding: 14px 3px 0; border-bottom: 1px solid var(--line); }
.bar-column { display: flex; flex: 1; min-width: 0; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-value, .bar-label { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bar { width: min(34px, 75%); min-height: 3px; border-radius: 6px 6px 0 0; }
.sales-bar { background: linear-gradient(180deg, #55a7dd, #1769aa); }
.orders-bar { background: linear-gradient(180deg, #73c6a0, #248355); }
.panel { min-width: 0; padding: 18px 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: 16px; font-weight: 700; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.panel .table { margin: 0; font-size: 12px; }
.panel .table thead { color: var(--muted); }
.empty-state { padding: 22px 0; color: var(--muted); text-align: center; }
.product-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.product-category-section { margin: 0 0 30px; scroll-margin-top: 20px; }
.product-category-section > h2 { margin: 0 0 14px; font-size: 21px; font-weight: 750; }
.product-catalog-grid, .product-image-management-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-catalog-card, .product-image-management-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px #233e5808; }
.product-catalog-image { display: block; width: 100%; height: 190px; object-fit: cover; background: #eef2f6; }
.product-catalog-image-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.product-catalog-copy { padding: 15px; }
.product-catalog-copy h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.product-catalog-copy p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.product-catalog-copy ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.product-catalog-copy li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.product-catalog-price { color: var(--ink) !important; font-size: 16px !important; font-weight: 750; }
.catalog-cart-panel { margin-bottom: 24px; }
.catalog-cart-lines { display: grid; gap: 9px; }
.catalog-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.catalog-cart-line-copy { display: grid; gap: 3px; }
.catalog-cart-line-copy span { color: var(--muted); font-size: 13px; }
.catalog-cart-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.catalog-product-order { display: grid; gap: 7px; margin-top: 14px; }
.catalog-product-order .field-label { margin: 3px 0 0; }
.product-unit-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #b8d5fa; border-radius: 999px; color: #084b9b; background: #e8f2ff; font-size: 12px; font-weight: 800; line-height: 1.25; letter-spacing: .02em; }
.catalog-product-unit { justify-self: start; margin-top: 2px; }
.catalog-cart-line-copy .product-unit-badge { justify-self: start; color: #084b9b; }
.catalog-cart-panel .card-heading { margin-bottom: 10px; }
a.disabled { pointer-events: none; opacity: .55; }
.product-image-management-card .product-catalog-copy form { margin-top: 12px; }
.product-image-management-card .form-control { font-size: 12px; }
.product-image-editor { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.product-image-preview { display: block; width: min(100%, 260px); height: 150px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: var(--surface); }
.product-image-placeholder { display: grid; width: min(100%, 260px); height: 120px; place-items: center; margin: 0; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.product-catalog-page { max-width: 1440px; }
.public-main > .product-catalog-page { width: min(100%, 1440px); }
.product-catalog-heading { margin-bottom: 20px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 22px; }
.catalog-layout-no-cart { grid-template-columns: minmax(0, 1fr); }
.catalog-main { min-width: 0; }
.catalog-search { margin-bottom: 14px; }
.catalog-search .field-label { display: block; margin-bottom: 6px; }
.catalog-search .form-control { min-height: 42px; }
.product-category-nav { margin-bottom: 18px; }
.product-category-nav .btn { min-height: 36px; }
.catalog-layout .product-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.catalog-layout-no-cart .product-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.catalog-layout .product-catalog-card[hidden] { display: none; }
.catalog-sidebar { position: sticky; top: 20px; min-width: 0; }
.catalog-cart-panel { overflow: hidden; margin: 0; padding: 0; }
.catalog-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; }
.catalog-cart-heading .eyebrow { margin-bottom: 4px; }
.catalog-cart-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; font-weight: 750; }
.catalog-cart-collapse { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 21px; line-height: 1; }
.catalog-cart-body { padding: 0 18px 18px; }
.catalog-cart-clear { display: flex; width: 100%; margin-bottom: 8px; }
.catalog-layout .catalog-cart-lines { max-height: min(52vh, 500px); overflow-y: auto; }
.catalog-layout .catalog-cart-line { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.catalog-layout .catalog-cart-line > strong { grid-column: 1; }
.catalog-layout .catalog-cart-line > button { grid-column: 2; grid-row: 1 / span 2; padding: 0 8px; }
.catalog-layout .catalog-cart-footer { align-items: stretch; flex-direction: column; }
.catalog-layout .catalog-cart-footer > strong { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 575px) {
  .catalog-cart-line { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-cart-line > strong { grid-column: 1; }
  .catalog-cart-line > button { grid-column: 2; grid-row: 1 / span 2; }
  .catalog-cart-footer { align-items: stretch; flex-direction: column; }
}
@media (max-width: 991px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 14px; }
  .catalog-layout .product-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .catalog-layout-no-cart .product-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 767px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-sidebar { position: fixed; z-index: 1020; inset: 0 0 0 auto; width: min(420px, 92vw); height: 100vh; height: 100dvh; grid-row: 1; overflow: hidden; visibility: hidden; pointer-events: none; transform: translateX(102%); transition: transform .22s ease, visibility .22s; }
  .catalog-sidebar.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .catalog-cart-panel { display: flex; width: 100%; height: 100%; max-height: none; flex-direction: column; border-radius: 14px 0 0 14px; box-shadow: -8px 0 30px rgba(20, 28, 40, .2); }
  .catalog-cart-heading { flex: 0 0 auto; padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .catalog-cart-collapse { display: none; }
  .catalog-cart-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 25px; line-height: 1; }
  .catalog-sidebar .collapse.show { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
  .catalog-cart-body { display: flex; min-height: 0; max-height: none; flex: 1 1 auto; flex-direction: column; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .catalog-layout .catalog-cart-lines { min-height: 0; max-height: none; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
  .catalog-layout .catalog-cart-footer { flex: 0 0 auto; padding: 12px 0 0; background: var(--surface); }
  .catalog-layout .catalog-cart-footer .btn { min-height: 46px; }
  .catalog-cart-backdrop { position: fixed; z-index: 1019; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 23, 35, .48); }
  .catalog-cart-backdrop[hidden] { display: none; }
  .catalog-layout .product-catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-layout-no-cart .product-catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .product-category-nav { flex-wrap: nowrap; overflow-x: auto; margin-right: -2px; padding: 0 2px 6px; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .product-category-nav .btn { flex: 0 0 auto; min-height: 40px; }
  .public-main > .privacy-page.product-catalog-page { width: 100%; padding: 20px 14px calc(92px + env(safe-area-inset-bottom)); }
  .product-catalog-heading { align-items: flex-start; }
  .product-catalog-heading > a { flex: 0 0 auto; }
  .catalog-mobile-cart-bar { position: fixed; z-index: 1021; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid #174b84; border-radius: 999px; color: #fff; background: #1d5e9e; box-shadow: 0 4px 12px rgba(20, 50, 80, .24); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
  .catalog-mobile-cart-bar :is(svg, .win-symbol) { width: 18px; height: 18px; }
  .catalog-mobile-cart-count { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border-radius: 999px; color: #174b84; background: #fff; font-size: 11px; font-weight: 750; line-height: 1; }
  .catalog-cart-open { overflow: hidden; }
  .catalog-sidebar .catalog-cart-collapse { display: none; }
  .public-main > .customer-order-page { width: 100%; padding: 20px 14px 32px; }
  .customer-order-page .privacy-heading { align-items: flex-start; }
  .customer-order-page .operation-card { padding: 16px; }
  .customer-order-page .operation-card-heading { align-items: flex-start; gap: 10px; }
  .customer-order-page .operation-card-heading > div { min-width: 0; }
  .customer-order-page .table { min-width: 570px; font-size: 12px; }
  .customer-order-page .legal-acceptance-toggle { padding: 13px 12px; }
  .customer-order-page .legal-acceptance-copy { padding: 0 12px 12px; }
  .customer-order-page #legal-acceptance-modal .modal-dialog { height: auto; max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: calc(12px + env(safe-area-inset-top)) auto calc(12px + env(safe-area-inset-bottom)); }
  .customer-order-page #legal-acceptance-modal .modal-content { display: flex; height: auto; max-height: 100%; flex-direction: column; overflow: hidden; }
  .customer-order-page #legal-acceptance-modal .modal-header,
  .customer-order-page #legal-acceptance-modal .modal-footer { flex: 0 0 auto; }
  .customer-order-page #legal-acceptance-modal .modal-body { display: block; min-height: 0; max-height: 52vh; max-height: 52dvh; flex: 1 1 auto; overflow-x: hidden; overflow-y: scroll; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .customer-order-page #legal-acceptance-modal .legal-acceptance-section { scroll-margin-block: 12px; }
  .customer-order-page .modal-footer { align-items: stretch; flex-direction: column-reverse; }
  .customer-order-page .modal-footer .btn { width: 100%; min-height: 42px; }
}
@media (min-width: 768px) {
  .catalog-mobile-cart-bar, .catalog-cart-close, .catalog-cart-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-sidebar { transition: none; }
}
.order-request-list { padding: 0 20px; }
.order-request-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 12px; }
.order-request-list-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.order-request-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 16px 0; border-top: 1px solid var(--line); }
.order-request-main { min-width: 0; }
.order-request-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.order-request-title h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.order-request-meta, .order-request-contact { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.order-request-meta { overflow-wrap: anywhere; }
.order-request-summary { display: grid; gap: 3px; text-align: right; }
.order-request-summary span { color: var(--muted); font-size: 10px; }
.order-request-summary strong { color: var(--ink); font-size: 14px; }
.order-request-modal .modal-content { border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--page); }
.order-request-modal .modal-header { border-color: var(--line); background: var(--surface); }
.order-request-modal .modal-header .muted { font-size: 11px; }
.order-request-modal-close { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; margin-left: 16px; padding: 6px 10px; border: 1px solid #1b2b4a; border-radius: 8px; color: #fff; background: #1b2b4a; font-size: 12px; font-weight: 700; }
.order-request-modal-close:hover,
.order-request-modal-close:focus-visible { border-color: #31558d; color: #fff; background: #31558d; }
.order-request-modal-close:focus-visible { outline: 3px solid #80b7ff; outline-offset: 2px; }
.order-request-modal-close :is(svg, .win-symbol) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.5; }
.order-request-modal .modal-body { padding: 18px; }
.order-request-modal .form-card { background: var(--surface); }
.order-request-modal .order-request-products { min-width: 620px; margin: 0; }
.order-request-modal .order-request-products th,
.order-request-modal .order-request-products td { padding: 9px 10px; }
@media (max-width: 767px) {
  .order-request-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .order-request-summary { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .order-request-open { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 575px) {
  .order-request-list { padding: 0 14px; }
  .order-request-row { align-items: start; }
  .order-request-open { align-self: center; padding: 0 9px; font-size: 10px; }
  .order-request-modal .modal-body { padding: 12px; }
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(100%, 420px); padding: 34px; }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card h1 { font-size: 28px; }
.login-card label:not(.remember-row) { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 650; }
.remember-row { display: flex; gap: 9px; align-items: center; margin-top: 16px; color: #536276; font-size: 13px; }
.remember-row input { width: 16px; height: 16px; }
.form-card { padding: 22px; margin-bottom: 18px; }
.form-card h2 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.table { --bs-table-bg: transparent; }
.table:not(.print-items):not(.size-list) { border-collapse: collapse; color: #535a64; font-size: 10px; vertical-align: middle; }
.table:not(.print-items):not(.size-list) thead { color: #9298a2; background: #fcfcfd; }
.table:not(.print-items):not(.size-list) th { height: 39px; padding: 0 11px; border-bottom: 1px solid #eef0f2; font-size: 9px; font-weight: 600; white-space: nowrap; }
.table:not(.print-items):not(.size-list) td { height: 54px; padding: 7px 11px; border-top: 1px solid #f0f1f3; color: #535a64; }
.table:not(.print-items):not(.size-list) tbody tr:hover { background: #fafbfc; }
.table-responsive { border-top: 1px solid #eef0f2; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.validation-summary-valid { display: none; }
.admin-grid { display: block; }
.admin-catalog-actions { display: flex; align-items: center; gap: 10px; }
.admin-editor-modal .modal-content { border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
.admin-editor-modal .modal-dialog { height: auto; max-height: calc(100vh - 2rem); margin: 1rem auto; }
.admin-editor-modal .modal-dialog { max-width: 520px; }
.admin-editor-modal[data-section="products"] .modal-dialog { max-width: 720px; }
.admin-editor-modal[data-section="users"] .modal-dialog { max-width: 640px; }
.admin-editor-modal .modal-content { height: auto; max-height: calc(100vh - 2rem); overflow: hidden; }
.admin-editor-modal .modal-header,
.admin-editor-modal .modal-footer { flex: 0 0 auto; }
.admin-editor-modal .modal-body { min-height: 0; max-height: calc(100vh - 11rem); flex: 0 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.admin-editor-modal .modal-header,
.admin-editor-modal .modal-footer { border-color: var(--line); }
.admin-editor-modal .modal-header .btn-close { margin-left: auto; }
.admin-editor-modal .form-stack { gap: 9px; }
.admin-editor-modal .form-stack > label:not(.checkbox-row) { margin-top: 3px; }
.admin-editor-modal .form-stack input:not([type="checkbox"]),
.admin-editor-modal .form-stack select,
.admin-editor-modal .form-stack textarea { border-color: var(--line); color: var(--ink); background: var(--surface); }
.card-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px #233e5808; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
.count-badge { display: grid; min-width: 32px; height: 32px; place-items: center; padding: 0 8px; border-radius: 18px; background: #edf4fa; color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.data-table { margin: 0; font-size: 13px; vertical-align: middle; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table-actions form { display: inline-flex; margin: 0; }
.table-actions .btn { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.status-active { color: #17623c; background: #e3f5eb; }
.status-inactive { color: #7a4c10; background: #fff0d6; }
.form-stack { display: grid; gap: 7px; }
.form-stack > label:not(.checkbox-row) { margin-top: 4px; font-size: 12px; font-weight: 650; }
.form-stack input:not([type="checkbox"]), .form-stack select, .form-stack textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d5dee8; border-radius: 8px; background: white; color: var(--ink); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card { display: flex; min-height: 300px; flex-direction: column; align-items: flex-start; }
.report-card-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 19px; border-radius: 12px; color: #1769aa; background: #eaf4fb; }
.report-card-icon.baking { color: #26734d; background: #eaf6ef; }
.report-card-icon :is(svg, .win-symbol) { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.report-card h2 { margin: 0; font-size: 19px; font-weight: 750; }
.report-card > .muted { max-width: 480px; margin-bottom: 22px; line-height: 1.55; }
.report-form { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: auto; }
.report-form .field-label { margin: 0; }
.report-form .form-control { max-width: 300px; }
.report-form .btn { justify-self: start; margin-top: 4px; }
.report-export-status { margin: 10px 0 0; color: #b42318; font-size: 13px; }
.report-export-status[hidden] { display: none; }
.product-order-report-card { min-height: 0; }
.product-order-report-card .report-form { margin-top: 0; }
.product-order-summary { display: flex; min-height: 170px; align-items: center; justify-content: space-between; gap: 20px; }
.product-order-summary h2 { margin: 0; font-size: 19px; font-weight: 750; }
.product-order-summary .muted { margin: 6px 0 0; }
.product-order-summary > strong { color: var(--blue-dark); font-size: clamp(24px, 3vw, 36px); font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.product-order-summary > strong span { font-size: .55em; font-weight: 650; letter-spacing: 0; }
.product-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.product-order-actions .btn { margin-top: 0; }
.report-note { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.report-note div { display: grid; gap: 4px; }
.report-note strong { font-size: 14px; }
.report-note span { color: var(--muted); font-size: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 13px; font-weight: 600; }
.checkbox-row input { width: 16px; height: 16px; }
code { color: var(--blue-dark); }
.print-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.pdf-download-status { margin: -8px 0 16px; color: #b42318; font-size: 12px; }
.pdf-download-status[hidden] { display: none; }
.print-document { max-width: 900px; margin: 0 auto; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 12px #233e5808; }
.print-title { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--line); }
.print-title h1 { margin: 0; font-size: 24px; }
.print-title > strong { margin-left: auto; font-size: 20px; }
.print-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 24px 0; }
.print-fields div { min-width: 0; }
.print-fields dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.print-fields dd { margin: 3px 0 0; overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  .topbar { flex-wrap: wrap; padding: 13px 4vw; gap: 10px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 760px) {
  .report-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .report-card { min-height: 0; }
  .product-order-summary { min-height: 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .report-note { align-items: flex-start; flex-direction: column; }
  .content-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .admin-editor-modal .modal-dialog { width: auto; max-width: none !important; height: auto; max-height: calc(100vh - 24px); margin: 12px; }
  .admin-editor-modal .modal-content { max-height: calc(100vh - 24px); }
  .admin-editor-modal .modal-body { max-height: calc(100vh - 10rem); }
  .account-role { display: none; }
  .app-container { padding-top: 22px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-document { padding: 20px; }
  .print-fields { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .print-actions { display: none !important; }
  .app-container { max-width: none; padding: 0; }
  .print-document { max-width: none; padding: 0; border: 0; box-shadow: none; }
}

:root {
  color-scheme: light;
  --bg-body: #f7f8fa;
  --text-main: #1b1d21;
  --text-muted: #858b96;
  --border-color: #e7e9ed;
  --primary: #1a1a1a;
  --surface: #fff;
  --success: #16875a;
  --warning: #a76b08;
  --radius: 12px;
  --shadow-card: 0 2px 8px rgba(20, 28, 40, .035);
  font-family: "Plus Jakarta Sans", sans-serif;
}

html, body { min-height: 100%; background: var(--bg-body); color: var(--text-main); }
body { font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; }
:is(svg, .win-symbol) { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
a:hover { color: inherit; }
.app-container { display: flex; max-width: none; min-height: 100vh; margin: 0; padding: 0; }
.sidebar {
  position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 260px; flex-direction: column;
  padding: 25px 16px 15px; border-right: 1px solid var(--border-color); background: var(--surface);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 25px; color: var(--text-main); font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.sidebar-brand:hover { color: var(--text-main); }
.sidebar-logo { display: block; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 9px; object-fit: contain; }
.sidebar-nav { flex: 1; overflow: auto; padding-bottom: 15px; }
.sidebar-section-title { margin: 20px 8px 8px; color: #9a9faa; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-section-title:first-child { margin-top: 0; }
.sidebar-link { display: flex; min-height: 40px; align-items: center; gap: 12px; margin: 3px 0; padding: 0 10px; border-radius: 8px; color: #636a75; font-size: 12px; font-weight: 550; transition: color .16s, background .16s; }
.sidebar-link :is(svg, .win-symbol) { width: 18px; height: 18px; color: #8a909a; }
.sidebar-link:hover { background: #f6f7f8; color: var(--text-main); }
.sidebar-link.active { background: #f0f1f3; color: var(--text-main); font-weight: 650; }
.sidebar-link.active :is(svg, .win-symbol) { color: var(--text-main); }
.sidebar-account { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 12px 2px 0; border-top: 1px solid var(--border-color); }
.user-avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #e0d8ca; border-radius: 50%; color: #685a43; background: #eee7da; font-size: 10px; font-weight: 750; }
.user-avatar-link { color: inherit; text-decoration: none; }
.user-avatar-link:hover { color: inherit; }
.sidebar-user-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.sidebar-user-copy strong { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav > form { margin: 2px 0 0; }
.sidebar-link.sidebar-logout-link { width: 100%; border: 0; text-align: left; background: transparent; cursor: pointer; }
.sidebar-link.sidebar-logout-link:hover { background: #f6f7f8; }
.main-content { display: flex; min-width: 0; min-height: 100vh; width: calc(100% - 260px); flex-direction: column; margin-left: 260px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 36px; border-bottom: 1px solid var(--border-color); background: rgba(255,255,255,.94); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #969ca6; font-size: 12px; white-space: nowrap; }
.breadcrumb :is(svg, .win-symbol) { width: 15px; height: 15px; }
.breadcrumb strong { color: var(--text-main); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.table-search { display: flex; height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; color: #9298a2; }
.table-search :is(svg, .win-symbol) { width: 16px; height: 16px; }
.table-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text-main); background: transparent; font: inherit; font-size: 11px; }
.table-search input::placeholder { color: #a0a5ad; }
.icon-button { display: inline-grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #666d77; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--border-color); color: var(--text-main); background: #f8f9fa; }
.icon-button :is(svg, .win-symbol) { width: 18px; height: 18px; }
.notification-button { position: relative; }
.notification-count { position: absolute; top: -4px; right: -5px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #e5484d; font-size: 9px; font-weight: 750; line-height: 1; }
.top-avatar-container { position: relative; }
.top-avatar { width: 31px; height: 31px; margin-left: 2px; }
.nav-profile-link,
.top-avatar { position: relative; }
.top-avatar-container .session-tooltip {
  position: fixed;
  top: 76px;
  right: 12px;
  bottom: auto;
}
.nav-profile-link .nav-section-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; color: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.session-tooltip { position: absolute; z-index: 110; right: 0; bottom: calc(100% + 9px); display: grid; width: max-content; min-width: 210px; max-width: min(280px, calc(100vw - 24px)); gap: 8px; padding: 11px 13px; border: 1px solid #dfe4eb; border-radius: 10px; color: #273244; background: #fff; box-shadow: 0 10px 28px rgba(20, 28, 40, .18); text-align: left; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.session-tooltip strong { overflow: hidden; max-width: 100%; color: #172033; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.session-tooltip > span { display: grid; gap: 2px; color: #455468; font-size: 11px; line-height: 1.3; }
.session-tooltip small { color: #7a8698; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav-profile-link:hover .session-tooltip,
.nav-profile-link:focus-visible .session-tooltip,
.top-avatar-container:hover .session-tooltip,
.top-avatar-container:focus-within .session-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.session-tooltip form { margin: 2px 0 0; }
.session-logout-button { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 7px; padding: 7px 8px; border: 0; border-radius: 7px; color: #b42318; background: #fff5f4; font: inherit; font-size: 11px; font-weight: 650; text-align: left; cursor: pointer; }
.session-logout-button:hover { color: #991b1b; background: #fee9e7; }
.session-logout-button :is(svg, .win-symbol) { width: 15px; height: 15px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-logout-form { display: flex; flex: 0 0 auto; margin: 0; }
.nav-logout { cursor: pointer; border-radius: 8px; color: #b42318; background: transparent; }
.nav-logout:hover { color: #991b1b; background: transparent; }
.nav-sidebar-brand, .nav-search, .nav-search-results, .nav-utility-actions { display: none; }
.mobile-menu-toggle, .sidebar-backdrop { display: none; }
.page-content { width: 100%; max-width: 1680px; flex: 1; margin: 0 auto; padding: 29px 36px 46px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.dashboard-heading h1 { margin: 0; color: var(--text-main); font-size: clamp(24px, 2.2vw, 30px); font-weight: 650; letter-spacing: -.045em; }
.dashboard-welcome-name { white-space: nowrap; }
.dashboard-heading .eyebrow { margin-bottom: 7px; color: #8a909a; font-size: 9px; letter-spacing: .12em; }
.dashboard-heading .muted { margin-top: 7px; color: #969ba4; font-size: 11px; }
.dashboard-actions { display: flex; align-items: center; gap: 8px; }
.period-select, .date-chip { position: relative; display: inline-flex; height: 36px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border-color); border-radius: 8px; color: #535a64; background: #fff; font-size: 11px; white-space: nowrap; }
.period-select select { appearance: none; padding-right: 19px; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.month-select-form { margin: 0; }
.period-select input[type="month"] { width: 125px; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.date-chip input[type="date"] { width: 116px; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.period-select :is(svg, .win-symbol) { position: absolute; right: 7px; width: 13px; height: 13px; pointer-events: none; }
.date-chip :is(svg, .win-symbol) { width: 15px; height: 15px; color: #7e8490; }
.dashboard-export-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.btn, .button-primary, .button-secondary, button[type="submit"], input[type="submit"] { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: color .15s, background-color .15s, border-color .15s, opacity .15s, box-shadow .15s; }
.button-primary, .button-secondary { border: 1px solid var(--primary); color: #fff; background: var(--primary); }
.button-primary:hover { color: #fff; opacity: .83; }
.btn:disabled, .btn.disabled, .button-primary:disabled, .button-secondary:disabled, button[type="submit"]:disabled, input[type="submit"]:disabled { cursor: wait; opacity: .65; }
.button-primary :is(svg, .win-symbol), .button-secondary :is(svg, .win-symbol) { width: 15px; height: 15px; }
.button-secondary { border-color: var(--border-color); color: #41464f; background: #fff; }
.button-secondary:hover { border-color: #cdd0d5; color: var(--text-main); background: #fafafa; }
.dashboard-alert { margin: 0 0 16px; padding: 11px 14px; border: 1px solid #dbe7fc; border-radius: 9px; color: #28589b; background: #eff5ff; font-size: 12px; }
.dashboard-alert.error { border-color: #f1cdcd; color: #a53d3d; background: #fff2f2; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-metric, .dashboard-panel { min-width: 0; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.dashboard-metric { min-height: 142px; padding: 16px 17px 13px; }
.metric-topline, .metric-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: #7f8590; font-size: 10px; font-weight: 550; }
.metric-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.metric-icon :is(svg, .win-symbol) { width: 16px; height: 16px; }
.metric-icon.blue { color: #346bd8; background: #edf3ff; }
.metric-icon.violet { color: #775bc6; background: #f2effc; }
.metric-icon.amber { color: #ae7718; background: #fff5e1; }
.metric-icon.green { color: #14845a; background: #eaf7f1; }
.metric-value { display: block; overflow: hidden; margin: 11px 0 9px; color: #1b1d21; font-size: clamp(22px, 2vw, 27px); font-weight: 650; letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.metric-bottom { min-height: 27px; }
.metric-trend, .metric-caption { display: block; color: #9399a3; font-size: 9px; white-space: nowrap; }
.metric-trend { font-weight: 600; }
.trend-positive { color: #16875a; }
.trend-negative { color: #c2413b; }
.trend-neutral { color: #8b9099; }
.metric-sparkline { width: 76px; height: 27px; overflow: visible; }
.metric-sparkline polyline { fill: none; stroke: #3472e5; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.metric-sparkline.violet-line polyline { stroke: #8b72d4; }
.metric-sparkline.amber-line polyline { stroke: #d99a2b; }
.metric-sparkline.green-line polyline { stroke: #249a6b; }
.dashboard-month-activity { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: stretch; gap: 16px; margin-top: 17px; }
.document-counts { display: flex; min-width: 0; min-height: 440px; flex-direction: column; margin-top: 0; padding: 17px 19px 19px; border: 1px solid var(--border-color); border-radius: var(--radius); background: rgba(255, 255, 255, .72); }
.document-counts-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.document-counts-heading h2 { margin: 0; color: #25272c; font-size: 13px; font-weight: 650; }
.document-counts-heading > span { color: #9399a3; font-size: 10px; }
.document-count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.document-count-card { display: flex; min-width: 0; min-height: 75px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; }
.document-count-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.document-count-icon :is(svg, .win-symbol) { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.document-count-icon.violet { color: #775bc6; background: #f2effc; }
.document-count-icon.blue { color: #346bd8; background: #edf3ff; }
.document-count-icon.amber { color: #ae7718; background: #fff5e1; }
.document-count-card > div { display: grid; min-width: 0; gap: 4px; }
.document-count-card > div span { overflow: hidden; color: #818894; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-count-card strong { color: #25272c; font-size: 20px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.document-trend-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
.document-trend-heading h3 { margin: 0; color: #25272c; font-size: 12px; font-weight: 650; }
.document-trend-heading > span { color: #9399a3; font-size: 10px; }
.document-trend-chart { min-height: 0; flex: 1; height: auto; margin-top: 10px; }
.order-heatmap-panel { display: flex; width: 100%; min-height: 440px; flex-direction: column; margin: 0; }
.order-heatmap-heading { align-items: flex-start; }
.order-heatmap-heading h2 { text-transform: capitalize; }
.order-heatmap-stat { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; }
.order-heatmap-total { display: flex; align-items: baseline; gap: 4px; color: #25272c; font-size: 18px; font-weight: 700; }
.order-heatmap-total .heatmap-total-label { color: #858c97; font-size: 10px; font-weight: 550; }
.order-heatmap-breakdown { color: #858c97; font-size: 9px; white-space: nowrap; }
.order-heatmap-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #777e88; font-size: 10px; font-weight: 600; }
.order-heatmap-toggle > span.is-active { color: var(--text-main); }
.order-heatmap-switch { position: relative; width: 36px; height: 20px; flex: 0 0 auto; padding: 0; border: 1px solid #c8cdd5; border-radius: 999px; background: #dfe3e9; cursor: pointer; transition: background-color .2s, border-color .2s; }
.order-heatmap-switch > span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .2s; }
.order-heatmap-switch[aria-checked="true"] { border-color: var(--primary); background: var(--primary); }
.order-heatmap-switch[aria-checked="true"] > span { transform: translateX(16px); }
.order-heatmap-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.order-heatmap-scroll { display: flex; width: 100%; max-width: 100%; flex: 0 0 auto; align-items: center; justify-content: center; margin-top: 14px; padding: 2px 0 5px; }
.order-heatmap-grid { display: grid; width: min(100%, 350px); grid-auto-rows: auto; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.order-heatmap-weekday { display: grid; min-height: 18px; place-items: center; color: #858c97; font-size: 9px; font-weight: 650; }
.order-heatmap-empty, .order-heatmap-day { aspect-ratio: 1; }
.order-heatmap-day { display: flex; min-width: 0; min-height: 0; flex-direction: column; justify-content: space-between; padding: 5px 6px; border: 1px solid transparent; border-radius: 6px; color: #4b5563; font-size: 9px; line-height: 1; }
.order-heatmap-day strong { align-self: flex-end; color: #374151; font-size: 12px; font-weight: 750; }
.order-heatmap-day.level-0,
.order-heatmap-swatch.level-0 { border-color: #d7dbe0; border-style: dashed; background: #f0f2f4; }
.order-heatmap-day.level-0 { color: #858c97; }
.order-heatmap-day.level-1,
.order-heatmap-swatch.level-1 { border-color: #e89a9a; background: #f5b7b7; }
.order-heatmap-day.level-2,
.order-heatmap-swatch.level-2 { border-color: #edb27b; background: #f6d0a6; }
.order-heatmap-day.level-3,
.order-heatmap-swatch.level-3 { border-color: #e7d47c; background: #f2e7a5; }
.order-heatmap-day.level-4,
.order-heatmap-swatch.level-4 { border-color: #a4d48a; background: #c4e3a8; }
.order-heatmap-day.level-5,
.order-heatmap-swatch.level-5 { border-color: #4b83d4; color: #fff; background: #2563c7; }
.order-heatmap-day.level-5 strong { color: #fff; }
.order-heatmap-day.level-6,
.order-heatmap-swatch.level-6 { border-color: #9b70d6; color: #fff; background: #7541b8; }
.order-heatmap-day.level-6 strong { color: #fff; }
.order-heatmap-day.is-future { border-color: #e6eaee; border-style: dashed; background: #f3f5f7; color: #a0a7b0; }
.order-heatmap-day.is-future strong { color: #a0a7b0; }
.order-heatmap-legend { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 12px; color: #858c97; font-size: 9px; }
.order-heatmap-swatch { display: inline-block; width: 13px; height: 13px; border: 1px solid transparent; border-radius: 3px; }
.dashboard-charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; margin-top: 17px; }
.dashboard-panel { padding: 19px 20px; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dashboard-panel-heading h2 { margin: 0; color: #25272c; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.panel-kicker { margin: 0 0 5px; color: #959ba5; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.chart-legend { display: flex; align-items: center; gap: 15px; color: #777e88; font-size: 10px; }
.chart-legend > span, .breakdown-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.revenue-dot { background: #2563eb; }
.collected-dot { background: #16a36a; }
.outstanding-dot { background: #f3b642; }
.chart-summary { display: flex; align-items: baseline; gap: 9px; margin: 15px 0 2px; }
.chart-summary strong { color: #25272c; font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.chart-summary span { color: #9a9fa8; font-size: 10px; }
.chart-canvas-wrap { position: relative; width: 100%; }
.large-chart { height: 215px; margin-top: 8px; }
.breakdown-panel { display: flex; flex-direction: column; }
.panel-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #6f7a8a; background: #f2f4f6; }
.panel-icon :is(svg, .win-symbol) { width: 16px; height: 16px; }
.breakdown-total { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.breakdown-total span { color: #8e949e; font-size: 10px; }
.breakdown-total strong { color: #25272c; font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.doughnut-chart { width: 150px; height: 150px; align-self: center; margin: 2px auto 3px; }
.breakdown-legend { display: grid; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid #f0f1f3; }
.breakdown-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #69717c; font-size: 10px; }
.breakdown-legend strong { color: #33373d; font-size: 10px; font-weight: 600; }
.transactions-panel { margin-top: 17px; padding: 18px 0 0; }
.transactions-heading { align-items: flex-end; padding: 0 20px 15px; }
.table-subtitle { display: block; margin-top: 5px; color: #969ba4; font-size: 10px; }
.transaction-controls { display: flex; align-items: center; gap: 8px; }
.table-search { width: 185px; height: 34px; }
.transactions-scroll { overflow-x: auto; border-top: 1px solid #eef0f2; }
.transactions-table { width: 100%; border-collapse: collapse; color: #535a64; font-size: 10px; text-align: left; }
.transactions-table thead { color: #9298a2; background: #fcfcfd; }
.transactions-table th { height: 39px; padding: 0 11px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.transactions-table td { height: 54px; padding: 7px 11px; border-top: 1px solid #f0f1f3; vertical-align: middle; }
.transactions-table tbody tr:hover { background: #fafbfc; }
.transactions-table input[type=checkbox] { width: 14px; height: 14px; accent-color: #26282d; vertical-align: middle; }
.folio-cell { color: #555c66; font-weight: 600; white-space: nowrap; }
.customer-name { display: block; overflow: hidden; max-width: 190px; color: #34383f; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cell-subtitle { display: block; margin-top: 4px; color: #a0a5ad; font-size: 9px; }
.product-cell { overflow: hidden; max-width: 220px; color: #626873; text-overflow: ellipsis; white-space: nowrap; }
.numeric { text-align: right !important; white-space: nowrap; }
.revenue-cell { color: #33373d; font-weight: 600; }
.transaction-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.transaction-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.transaction-status.success { color: #16875a; background: #eaf7f1; }
.transaction-status.pending { color: #a76b08; background: #fff5e1; }
.transaction-status.refunded { color: #747b85; background: #f0f1f3; }
.document-type-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 20px; color: #245d86; background: #edf5fb; font-size: 9px; font-weight: 650; white-space: nowrap; }
.document-type-badge.baking { color: #79551c; background: #fff4df; }
.document-type-badge.sales { color: #16714e; background: #eaf7f1; }
.document-type-badge.products { color: #245d86; background: #edf5fb; }
.row-action { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #747b85; }
.row-action:hover { color: #1f2227; background: #f0f1f3; }
.row-action :is(svg, .win-symbol) { width: 15px; height: 15px; }
.dashboard-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.dashboard-lists .compact-panel { grid-column: 1 / -1; }
.compact-panel { padding: 17px 19px; }
.compact-panel .table-responsive { overflow-x: auto; margin-top: 13px; }
.compact-panel .table { --bs-table-bg: transparent; margin: 0; font-size: 10px; }
.compact-panel .table th { color: #9298a2; font-weight: 600; }
.compact-panel .table td { color: #606671; }
.compact-panel .empty-state { margin: 0; padding: 19px 0; font-size: 11px; }
.upcoming-deliveries-panel { margin-top: 18px; padding: 20px 22px; border-color: #c8dcf2; background: linear-gradient(115deg, #f4f9ff 0%, #fff 62%); box-shadow: 0 5px 18px rgba(23, 105, 170, .08); }
.upcoming-deliveries-heading { align-items: center; margin-bottom: 8px; }
.upcoming-deliveries-heading h2 { margin: 0; color: #174f78; font-size: 19px; font-weight: 700; }
.upcoming-deliveries-heading .table-subtitle { display: block; margin-top: 5px; }
.upcoming-deliveries-actions { display: flex; align-items: center; gap: 10px; }
.upcoming-deliveries-panel .panel-count { min-width: 0; height: 30px; color: #14558a; background: #e2f0fd; font-size: 11px; }
.upcoming-deliveries-panel .table-responsive { overflow-x: auto; margin-top: 12px; border-top: 1px solid #eef0f2; }
.upcoming-deliveries-panel .table { margin: 0; }
.upcoming-deliveries-panel .table td:last-child, .upcoming-deliveries-panel .table th:last-child { text-align: center; }
.upcoming-deliveries-panel .table-search { width: clamp(190px, 24vw, 270px); }
.upcoming-table { min-width: 900px; }
.upcoming-table th { height: 42px; }
.upcoming-table td { height: 58px; }
.upcoming-table tbody tr[hidden] { display: none; }
.upcoming-table tbody tr[data-sort-status="1"] { color: #858b94; background: #fbfbfc; }
.upcoming-table tbody tr[data-sort-status="1"] .customer-name,
.upcoming-table tbody tr[data-sort-status="1"] .revenue-cell { color: #777e88; }
.table-sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.table-sort-button:hover, .table-sort-button:focus-visible { color: #174f78; }
.table-sort-button span { color: #a0a6af; font-size: 11px; }
.upcoming-table th[aria-sort="ascending"] .table-sort-button span::after { content: "↑"; }
.upcoming-table th[aria-sort="descending"] .table-sort-button span::after { content: "↓"; }
.upcoming-table th[aria-sort] .table-sort-button span { font-size: 0; }
.upcoming-table .upcoming-actions-heading { text-align: center; }
.upcoming-row-actions { display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.upcoming-row-actions form { display: inline-flex; margin: 0; }
.delivery-action { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 7px; color: #16875a; background: #eaf7f1; cursor: pointer; }
.delivery-action:hover { color: #fff; background: #16875a; }
.delivery-action :is(svg, .win-symbol) { width: 15px; height: 15px; }
.delivered-action-label { color: #87909b; font-size: 9px; }
.deliveries-page { max-width: 1440px; margin: 0 auto; }
.deliveries-heading { margin-bottom: 21px; }
.deliveries-date-form { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; padding: 17px 19px; border: 1px solid var(--border-color); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.deliveries-date-form > div { width: min(230px, 100%); }
.deliveries-date-form .form-control { min-height: 36px; border-color: var(--border-color); border-radius: 8px; font-size: 11px; }
.deliveries-date-form .button-primary { min-height: 36px; }
.deliveries-table-panel { padding: 19px 0 0; }
.deliveries-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px 15px; }
.deliveries-table-heading h2 { margin: 0; color: #25272c; font-size: 17px; font-weight: 650; }
.deliveries-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.deliveries-summary span { padding: 6px 10px; border: 1px solid #edf0f3; border-radius: 20px; color: #747b85; background: #fafbfc; font-size: 10px; white-space: nowrap; }
.deliveries-summary span:first-child { border-color: #f0dfbd; color: #95610b; background: #fff8e9; }
.deliveries-summary span:nth-child(2) { border-color: #d6ecdf; color: #16875a; background: #f0faf4; }
.deliveries-summary strong { color: #33373d; font-weight: 700; }
.deliveries-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 20px 13px; }
.deliveries-search { width: min(420px, 100%); }
.deliveries-table-scroll { overflow-x: auto; border-top: 1px solid #eef0f2; }
.deliveries-table { min-width: 1050px; }
.deliveries-table tbody tr[data-sort-status="1"] { color: #858b94; background: #fbfbfc; }
.deliveries-table tbody tr[data-sort-status="1"] .customer-name,
.deliveries-table tbody tr[data-sort-status="1"] .revenue-cell { color: #777e88; }
.deliveries-table tbody tr[hidden] { display: none; }
.deliveries-table .table-sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.deliveries-table .table-sort-button:hover,
.deliveries-table .table-sort-button:focus-visible { color: #174f78; }
.deliveries-table .table-sort-button span { color: #a0a6af; font-size: 11px; }
.deliveries-table th[aria-sort="ascending"] .table-sort-button span::after { content: "↑"; }
.deliveries-table th[aria-sort="descending"] .table-sort-button span::after { content: "↓"; }
.deliveries-table th[aria-sort] .table-sort-button span { font-size: 0; }
.deliveries-table .deliveries-actions-heading { text-align: center; }
.deliveries-row-actions { display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.deliveries-row-actions form { display: inline-flex; margin: 0; }
.deliveries-page .empty-state { padding: 22px; color: #858b96; text-align: center; font-size: 11px; }
.panel-count { display: grid; min-width: 26px; height: 26px; place-items: center; padding: 0 7px; border-radius: 20px; color: #58606b; background: #f0f1f3; font-size: 10px; font-weight: 650; }
.public-main { display: flex; min-height: 100vh; flex-direction: column; }
.christmas-snow-layer { position: fixed; z-index: 10; inset: 0; display: none; overflow: hidden; pointer-events: none; }
.public-main-christmas .christmas-snow-layer { display: block; }
.christmas-snow-layer span { position: absolute; top: -8vh; color: #fff; font-size: 15px; line-height: 1; opacity: .48; text-shadow: 0 1px 4px rgba(31, 48, 62, .32); animation: christmas-snowfall 19s linear infinite; }
.christmas-snow-layer span:nth-child(1) { left: 5%; animation-delay: -12s; animation-duration: 21s; }
.christmas-snow-layer span:nth-child(2) { left: 14%; animation-delay: -4s; animation-duration: 16s; font-size: 11px; }
.christmas-snow-layer span:nth-child(3) { left: 25%; animation-delay: -17s; animation-duration: 23s; font-size: 12px; }
.christmas-snow-layer span:nth-child(4) { left: 38%; animation-delay: -8s; animation-duration: 18s; }
.christmas-snow-layer span:nth-child(5) { left: 49%; animation-delay: -14s; animation-duration: 22s; font-size: 11px; }
.christmas-snow-layer span:nth-child(6) { left: 61%; animation-delay: -2s; animation-duration: 17s; }
.christmas-snow-layer span:nth-child(7) { left: 73%; animation-delay: -19s; animation-duration: 24s; font-size: 12px; }
.christmas-snow-layer span:nth-child(8) { left: 82%; animation-delay: -6s; animation-duration: 19s; }
.christmas-snow-layer span:nth-child(9) { left: 91%; animation-delay: -11s; animation-duration: 22s; font-size: 11px; }
.christmas-snow-layer span:nth-child(10) { left: 97%; animation-delay: -15s; animation-duration: 18s; }
@keyframes christmas-snowfall { to { transform: translate3d(35px, 112vh, 0) rotate(360deg); } }
.public-main-christmas .login-showcase-brand::before { position: absolute; top: -9px; left: 15px; width: 20px; height: 17px; transform: rotate(22deg); border-radius: 9px 3px 1px 1px; background: #c82f38; clip-path: polygon(0 100%, 16% 50%, 58% 0, 100% 15%, 82% 100%); content: ""; }
.public-main-christmas .login-showcase-brand::after { position: absolute; top: 5px; left: 14px; width: 18px; height: 4px; transform: rotate(22deg); border-radius: 4px; background: #fff; content: ""; }
@media (prefers-reduced-motion: reduce) {
  .christmas-snow-layer { display: none; }
}
.public-topbar { position: relative; z-index: 5; display: flex; min-height: 82px; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px); padding: 8px clamp(16px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface); }
.public-brand { display: flex; width: clamp(190px, 18vw, 260px); flex: 0 1 auto; align-items: center; color: var(--ink); }
.public-brand img { display: block; width: 100%; max-height: 64px; object-fit: contain; }
.public-navigation-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.8vw, 40px); }
.public-nav-link { display: inline-flex; min-height: 40px; align-items: center; color: var(--ink); font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .16s ease; }
.public-nav-link:hover,
.public-nav-link.active { color: var(--blue); }
.public-nav-link:focus-visible { border-radius: 2px; outline: 2px solid var(--blue); outline-offset: 4px; }
.public-navigation-actions { display: flex; align-items: center; gap: 7px; }
.public-nav-icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); text-decoration: none; cursor: pointer; transition: color .16s ease, background-color .16s ease; }
.public-nav-icon-button:hover,
.public-nav-icon-button:focus-visible { color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); }
.public-nav-icon-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.public-nav-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 650; white-space: nowrap; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.public-nav-icon { width: 16px; height: 16px; flex: 0 0 auto; font-size: 16px; }
.public-nav-button:hover,
.public-nav-button.active { border-color: color-mix(in srgb, var(--blue) 38%, var(--line)); color: var(--blue-dark); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.public-nav-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.public-nav-home { color: var(--muted); }
@media (max-width: 767px) {
  .public-topbar { min-height: 60px; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 16px; }
  .public-navigation-links { justify-content: flex-start; gap: 6px; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: thin; }
  .public-nav-button { min-height: 36px; gap: 6px; padding: 7px 10px; font-size: 11px; }
  .public-nav-icon { width: 15px; height: 15px; }
  .public-main > .privacy-page.product-catalog-page.product-catalog-page-no-cart { width: 100%; padding: 20px 14px calc(92px + env(safe-area-inset-bottom)); }
}
.landing-banner { position: relative; isolation: isolate; display: grid; width: 100%; aspect-ratio: 1640 / 624; align-items: center; overflow: hidden; background: linear-gradient(115deg, #253746, #526879 58%, #8b7058); }
.landing-banner-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.landing-banner-image { object-fit: cover; }
.landing-banner-overlay { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 26, .78), rgba(10, 18, 26, .42) 58%, rgba(10, 18, 26, .12)); }
.landing-banner-content { position: relative; z-index: 2; width: min(100%, 1360px); margin: 0 auto; padding: clamp(10px, 4vw, 60px) clamp(16px, 4vw, 56px); color: #fff; }
.landing-banner-brand { margin: 0 0 9px; color: rgba(255, 255, 255, .86); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.landing-banner-content h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(22px, 4.7vw, 72px); font-weight: 780; letter-spacing: -.06em; line-height: 1.02; }
.landing-banner-content > p:last-child { margin: 12px 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(11px, 1.2vw, 18px); }
.public-landing { width: min(100%, 1360px); margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 56px) 0; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.landing-copy { min-width: 0; }
.landing-copy .eyebrow { margin-bottom: 12px; }
.landing-copy h1 { max-width: 650px; margin: 0; color: var(--ink); font-size: clamp(38px, 5.2vw, 68px); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; }
.landing-description { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.landing-delivery-note { margin: 19px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.landing-gallery-wrap { min-width: 0; }
.landing-gallery { min-height: clamp(340px, 39vw, 520px); border-radius: 22px; box-shadow: 0 18px 55px rgba(20, 35, 47, .12); }
.landing-gallery .login-slide img { transform: scale(1.01); }
.landing-gallery .login-slideshow-controls { right: 7%; bottom: 8%; }
.landing-about { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 4vw, 56px); margin-top: clamp(32px, 5vw, 64px); padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.landing-about-heading .eyebrow { margin: 0 0 7px; color: var(--blue); }
.landing-about-heading :is(h1, h2) { margin: 0; color: var(--ink); font-size: clamp(23px, 3vw, 32px); font-weight: 750; letter-spacing: -.035em; }
.landing-about-copy { margin: 0; color: var(--muted); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.75; white-space: pre-line; }
.landing-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 64px); }
.landing-info-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 26px rgba(27, 40, 56, .04); }
.landing-specialties { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; position: relative; isolation: isolate; }
.landing-specialties-heading { grid-column: 1; grid-row: 1; }
.landing-dishes-christmas-tree { grid-column: 2; grid-row: 1; align-self: center; display: none; width: 100px; height: 100px; margin-right: 12px; object-fit: contain; pointer-events: none; }
.public-main-christmas .landing-dishes-christmas-tree { display: block; }
.landing-specialties > :not(.landing-dishes-christmas-tree) { position: relative; z-index: 1; }
.landing-info-card .eyebrow { margin-bottom: 9px; }
.landing-info-card h2 { margin: 0 0 13px; color: var(--ink); font-size: 19px; font-weight: 720; letter-spacing: -.025em; }
.landing-info-card p,
.landing-info-card li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.landing-info-card p { margin: 0 0 8px; }
.landing-info-card ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; }
.landing-info-card li { padding-left: 3px; }
.landing-info-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.landing-info-card a:hover { color: var(--blue); }
.landing-info-card .landing-card-note { margin-top: 12px; font-size: 12px; }
.landing-map { margin-top: clamp(32px, 5vw, 64px); }
.landing-map-heading { margin-bottom: 16px; }
.landing-map-heading .eyebrow { margin-bottom: 7px; }
.landing-map-heading h2 { margin: 0; color: var(--ink); font-size: clamp(21px, 2.5vw, 30px); font-weight: 720; letter-spacing: -.035em; }
.landing-map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 480px); border: 0; border-radius: 16px; background: var(--surface); }
.branches-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 16px; margin-top: clamp(24px, 4vw, 36px); }
.branches-info-column { display: grid; gap: 16px; }
.branches-contact-methods { display: grid; gap: 12px; margin-top: 14px; }
.landing-info-card .branches-contact-link { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; line-height: 1.4; text-decoration: none; }
.landing-info-card .branches-contact-link:hover { color: var(--blue); }
.branches-contact-link strong { font-weight: 700; }
.branches-contact-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); font-size: 16px; }
.branches-hours-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.branches-hours-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; }
.branches-hours-list li:first-child { border-top: 0; }
.branches-hours-list strong { color: var(--ink); font-weight: 650; text-align: right; }
.branches-layout .landing-map { margin-top: 0; }
.branches-layout .landing-map iframe { height: clamp(320px, 36vw, 440px); }
.landing-footer { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 76px); padding: 34px 0 8px; border-top: 1px solid var(--line); }
.public-main > .public-shared-footer { width: min(100%, 1360px); margin-right: auto; margin-left: auto; padding-right: clamp(16px, 4vw, 56px); padding-bottom: 48px; padding-left: clamp(16px, 4vw, 56px); }
.landing-footer-brand > a { display: inline-block; margin-bottom: 12px; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.landing-footer-brand > a:hover { color: var(--blue); }
.landing-footer-brand p { max-width: 380px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.landing-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.landing-footer-column h2 { margin: 0 0 3px; color: var(--ink); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.landing-footer-column > a { color: var(--muted); font-size: 12px; text-decoration: none; }
.landing-footer-column > a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.landing-socials { flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 10px; }
.landing-socials h2 { flex: 0 0 100%; }
.landing-social-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.landing-socials a.landing-social-icon:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.landing-social-icon.is-unconfigured { color: var(--muted); opacity: .55; }
.landing-social-icon :is(svg, .win-symbol) { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.landing-social-instagram :is(svg, .win-symbol) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.landing-social-instagram :is(svg, .win-symbol) circle:last-child { fill: currentColor; stroke: none; }
.public-site-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.public-site-form-wide { grid-column: 1 / -1; }
.public-seasonal-settings { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 20px; }
.public-seasonal-settings h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; font-weight: 720; }
.public-seasonal-settings .eyebrow { margin-bottom: 7px; }
.public-seasonal-settings .muted { margin: 0; font-size: 12px; }
.public-seasonal-status { display: inline-flex; margin: 12px 0 0; padding: 5px 10px; border-radius: 999px; color: #626b78; background: #eff1f4; font-size: 11px; font-weight: 700; }
.public-seasonal-status.is-active { color: #27623e; background: #e8f4eb; }
.public-seasonal-settings form { flex: 0 0 auto; }
.public-site-live-preview { margin-top: 24px; }
.public-site-live-preview-heading { margin-bottom: 14px; }
.public-site-preview-page { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 26px rgba(27, 40, 56, .06); }
.public-site-about-preview { margin-top: 14px; }
.public-site-about-preview .landing-about { margin-top: 0; }
.public-site-about-preview-heading { margin-top: 24px; }
.public-site-preview-page .landing-banner { border-radius: 13px 13px 0 0; }
.public-site-preview-content { width: min(100%, 1360px); margin: 0 auto; padding: clamp(20px, 4vw, 48px); }
.public-site-preview-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(18px, 4vw, 48px); }
.public-site-preview-description { white-space: pre-line; }
.public-site-preview-gallery { width: 100%; aspect-ratio: 1.45; overflow: hidden; border-radius: 14px; }
.public-site-preview-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.public-site-preview-page .landing-dishes-christmas-tree { display: block; }
.public-site-preview-instagram-placeholder { display: grid; width: min(100%, 540px); aspect-ratio: 540 / 952; place-items: center; padding: 28px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); text-align: center; }
.public-site-preview-page [data-preview-featured-empty][hidden] { display: none; }
.public-site-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-site-preview-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.public-site-preview-socials span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.public-site-preview-socials .is-unconfigured { color: var(--muted); opacity: .55; }
.public-banner-editor { margin-top: 24px; }
.public-banner-editor .page-heading { margin-bottom: 18px; }
.public-banner-preview { display: block; width: min(100%, 820px); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; aspect-ratio: 1640 / 624; }
.public-banner-remove { margin-top: 12px; }
.catalog-order-disabled { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.landing-specialties { margin-top: clamp(32px, 5vw, 64px); }
.landing-specialties-heading { margin-bottom: 16px; }
.landing-specialties-heading h2 { margin: 0; color: var(--ink); font-size: clamp(23px, 3vw, 32px); font-weight: 750; }
.landing-specialties-grid { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.landing-specialties-grid .product-catalog-copy p { margin: 0; }
.landing-instagram-section { display: grid; justify-items: center; gap: 16px; margin: 42px auto 0; padding: 28px 16px; border-top: 1px solid var(--line); }
.landing-instagram-section[hidden] { display: none; }
.landing-instagram-heading { width: min(100%, 540px); text-align: center; }
.landing-instagram-heading .eyebrow { margin-bottom: 7px; }
.landing-instagram-heading h2 { margin: 0; color: var(--ink); font-size: clamp(20px, 3vw, 26px); font-weight: 750; }
.landing-social-embeds { display: grid; width: min(100%, 1100px); grid-template-columns: repeat(2, minmax(0, 540px)); align-items: start; justify-content: center; gap: 20px; }
.landing-social-embeds.is-facebook-only { width: min(100%, 540px); grid-template-columns: minmax(0, 540px); }
.landing-social-embeds.is-instagram-only { width: min(100%, 540px); grid-template-columns: minmax(0, 540px); }
.landing-social-embed-card { display: flex; min-width: 0; justify-content: center; }
.landing-social-embed-card[hidden] { display: none; }
.landing-instagram-embed { width: min(100%, 540px) !important; min-width: 0 !important; max-width: 540px !important; margin: 0 !important; }
.landing-instagram-embed iframe { max-width: 100% !important; }
.landing-instagram-embed > a { display: block; padding: 28px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); text-align: center; text-decoration: none; }
.landing-instagram-embed > a:hover { color: var(--blue); }
.landing-facebook-embed { display: block; width: min(100%, 540px); height: auto; aspect-ratio: 540 / 952; border: 0; border-radius: 12px; background: var(--surface); }
@media (max-width: 900px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); }
  .landing-copy { max-width: 720px; }
  .landing-gallery { min-height: clamp(310px, 58vw, 470px); }
  .landing-about { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 1120px) {
  .landing-social-embeds { grid-template-columns: minmax(0, 540px); }
}
@media (max-width: 700px) {
  .landing-dishes-christmas-tree { width: 72px; height: 72px; margin-right: 0; }
  .landing-details { grid-template-columns: minmax(0, 1fr); }
  .landing-info-card { padding: 20px; }
  .landing-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-footer-brand { grid-column: 1 / -1; }
  .public-site-form-grid { grid-template-columns: minmax(0, 1fr); }
  .public-site-form-wide { grid-column: auto; }
  .public-site-preview-hero { grid-template-columns: minmax(0, 1fr); }
  .public-site-preview-footer { align-items: flex-start; flex-direction: column; }
  .landing-social-embeds { grid-template-columns: minmax(0, 1fr); }
  .public-seasonal-settings { align-items: stretch; flex-direction: column; }
  .public-seasonal-settings form,
  .public-seasonal-settings .btn { width: 100%; }
}
.privacy-page { width: min(100%, 1040px); margin: 0 auto; }
.privacy-heading { margin-bottom: 20px; }
.privacy-card { padding: clamp(22px, 4vw, 36px); }
.privacy-card section + section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.privacy-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.privacy-card p,
.privacy-card li { color: var(--ink); font-size: 13px; line-height: 1.7; }
.privacy-card p { margin: 0; }
.privacy-card ul { display: grid; gap: 8px; margin: 0; padding-left: 21px; }
.privacy-card .privacy-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-about-page .landing-about { margin-top: 0; }
.public-main > .privacy-page { flex: 1; width: min(100%, 1088px); padding: clamp(32px, 7vh, 76px) 24px 48px; }
.public-main > .privacy-page.product-catalog-page.product-catalog-page-no-cart { width: min(100%, 1480px); }
.public-main > .privacy-page .privacy-card { box-shadow: 0 8px 26px rgba(27, 40, 56, .06); }
.login-shell { flex: 1; min-height: 0; }
.login-brand-mark { display: block; object-fit: contain; }
.powered-footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 36px; border-top: 1px solid var(--border-color); color: #969ba4; font-size: 10px; }
.powered-footer > span:last-child { color: #525965; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.powered-footer small { margin-right: 4px; color: #9a9faa; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.legal-acceptance-body { display: grid; gap: 12px; }
.legal-acceptance-section { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.legal-acceptance-section h3 { margin: 0; }
.legal-acceptance-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 16px; color: var(--ink); font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; }
.legal-acceptance-toggle:hover,
.legal-acceptance-toggle:focus { color: var(--primary); text-decoration: none; }
.legal-acceptance-copy { padding: 0 16px 16px; }
.legal-acceptance-copy p { margin: 0 0 12px; color: var(--ink); font-size: 13px; line-height: 1.65; }
.legal-acceptance-copy .btn-success { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.size-editor { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.size-editor-help { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.size-editor-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .6fr); align-items: end; gap: 8px; }
.size-editor-fields > div { min-width: 0; }
.size-editor-fields label { display: block; margin-bottom: 5px; color: #536276; font-size: 11px; font-weight: 700; }
.size-editor-fields input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #d5dee8; border-radius: 7px; background: white; }
.size-editor-fields .btn { grid-column: 1 / -1; min-height: 37px; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.size-editor-message { min-height: 18px; margin: 7px 0 0; color: #17623c; font-size: 11px; }
.size-editor-message.is-error { color: #b42318; }
.size-list-wrap { overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.size-list { width: 100%; border-collapse: collapse; font-size: 12px; }
.size-list th, .size-list td { padding: 8px 10px; border-bottom: 1px solid #edf0f4; text-align: left; }
.size-list th { color: var(--muted); background: #f9fafb; font-size: 10px; text-transform: uppercase; }
.size-list th:nth-child(2), .size-list td:nth-child(2) { text-align: right; white-space: nowrap; }
.size-list th:last-child, .size-list td:last-child { width: 1%; text-align: right; white-space: nowrap; }
.size-list tr:last-child td { border-bottom: 0; }
.size-list-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.size-remove { padding: 4px 7px; border: 0; border-radius: 6px; color: #a33131; background: #fff0f0; font-size: 10px; font-weight: 650; }

.print-document { position: relative; overflow: hidden; padding: 42px 48px; color: #202a35; }
.print-document::before { position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #104f82, #39a0d4); content: ""; }
.print-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 0 24px; border-bottom: 1px solid #dce5ee; }
.print-brand { display: flex; align-items: center; gap: 13px; }
.print-brand .brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 8px; object-fit: contain; }
.print-brand-name { margin: 0; color: #174f78; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.print-brand-caption { margin: 3px 0 0; color: #718096; font-size: 11px; }
.print-document-info { display: flex; align-items: flex-end; gap: 18px; text-align: right; }
.print-document-info h1 { margin: 0; color: #202a35; font-size: 20px; font-weight: 750; }
.print-doc-kicker { margin: 0 0 4px; color: #174f78; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.print-folio { display: grid; gap: 2px; min-width: 105px; padding: 9px 12px; border: 1px solid #dce5ee; border-radius: 9px; background: #f5f8fb; text-align: center; }
.print-folio span { color: #718096; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.print-folio strong { color: #174f78; font-size: 19px; letter-spacing: .04em; }
.print-details, .print-items-section { margin-top: 27px; }
.print-details h2, .print-items-section h2 { margin: 0 0 13px; color: #26394c; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.print-operation { display: flex; justify-content: flex-end; margin-top: 12px; }
.print-operation span { padding: 5px 13px; border: 1px solid #174f78; border-radius: 4px; color: #174f78; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.print-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; border: 1px solid #e1e8ef; border-radius: 10px; background: #fbfcfd; }
.print-fields div { padding: 12px 14px; border-bottom: 1px solid #e8edf2; }
.print-fields div:nth-last-child(-n+3) { border-bottom: 0; }
.print-fields dt { color: #718096; font-size: 9px; letter-spacing: .08em; }
.print-fields dd { margin-top: 5px; color: #26394c; font-size: 12px; font-weight: 600; }
.print-items { width: 100%; border-collapse: collapse; font-size: 11px; }
.print-items th { padding: 10px 9px; color: white; background: #174f78; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.print-items th:first-child { border-radius: 7px 0 0; }
.print-items th:last-child { border-radius: 0 7px 0 0; }
.print-items td { padding: 10px 9px; border-bottom: 1px solid #e8edf2; vertical-align: top; }
.print-items tbody tr:nth-child(even) { background: #f7f9fb; }
.print-number { text-align: right !important; white-space: nowrap; }
.print-unit { color: #174f78; font-weight: 750; text-transform: lowercase; }
.print-observations { margin-top: 23px; padding: 12px 14px; border: 1px solid #e1e8ef; border-radius: 8px; }
.print-observations h2 { margin: 0 0 6px; color: #718096; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.print-observations p { min-height: 17px; margin: 0; color: #26394c; font-size: 11px; white-space: pre-wrap; }
.print-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 570px); margin: 24px 0 0 auto; }
.print-total-single { grid-template-columns: minmax(180px, 1fr); }
.print-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid #e1e8ef; border-radius: 8px; color: #596a7a; font-size: 10px; }
.print-totals strong { color: #26394c; font-size: 12px; white-space: nowrap; }
.print-totals > .print-total-primary { border-color: #174f78; color: white; background: #174f78; }
.print-totals > .print-total-primary strong { color: white; font-size: 14px; }
.print-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; padding-top: 12px; border-top: 1px solid #e1e8ef; color: #718096; font-size: 9px; }
.print-footer > div { display: grid; gap: 5px; }
.print-footer strong { color: #26394c; font-size: 11px; }

@media (max-width: 760px) {
  .size-editor-fields { grid-template-columns: minmax(0, 1fr) minmax(80px, .65fr); }
  .print-document { padding: 24px 18px; }
  .print-title { align-items: flex-start; flex-direction: column; gap: 16px; }
  .print-document-info { width: 100%; align-items: center; justify-content: space-between; text-align: left; }
  .print-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-fields div:nth-last-child(-n+3) { border-bottom: 1px solid #e8edf2; }
  .print-fields div:nth-last-child(-n+2) { border-bottom: 0; }
  .print-totals { grid-template-columns: 1fr; }
}

.delivery-credentials-dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--border-color); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.delivery-credentials-dialog::backdrop { background: rgba(15, 20, 28, .58); backdrop-filter: blur(2px); }
.delivery-credentials-dialog h2 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.delivery-credentials-dialog p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.delivery-credentials-dialog label { display: block; margin: 10px 0 5px; color: var(--ink); font-size: 11px; font-weight: 650; }
.delivery-credentials-dialog input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); }
.delivery-credentials-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.activity-audit-filters { flex-wrap: wrap; }
.activity-audit-filters > div { flex: 1 1 155px; }
.activity-audit-panel { min-width: 0; }
.activity-audit-scroll { max-height: min(68vh, 760px); overflow: auto; }
.activity-audit-table { min-width: 1250px; }
.activity-audit-table td { vertical-align: top; }
.activity-route-cell { min-width: 190px; overflow-wrap: anywhere; }
.activity-user-agent { max-width: 240px; overflow-wrap: anywhere; }
.activity-trace { min-width: 140px; font-family: monospace; font-size: 10px; }
.activity-audit-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media print {
  @page document-reference { size: 5.5in 8.5in; margin: 22.5mm 12.7mm 5mm; }
  html, body { min-height: 0; color: #202a35 !important; background: white !important; }
  .sidebar, .topbar, .sidebar-backdrop, .print-actions, .print-paper-hint, .pdf-download-status, .powered-footer { display: none !important; }
  .app-container { display: block; max-width: none; margin: 0; padding: 0; }
  .main-content { width: 100%; margin: 0 !important; }
  .page-content { padding: 0 !important; }
  .print-document { max-width: none; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .print-document::before { position: fixed; inset: 0 0 auto; height: 4px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-title, .print-fields, .print-items-section, .print-totals, .print-footer { break-inside: avoid; }
  .print-fields { border-color: #d9e1e8; }
  .print-items th, .print-totals > .print-total-primary { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-items thead { display: table-header-group; }
  .print-items tr { break-inside: avoid; }
  .print-footer { margin-top: 24px; }
}

@media (max-width: 1200px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-count-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-month-activity { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .document-counts, .order-heatmap-panel { min-height: 0; }
  .document-trend-chart { min-height: 190px; flex: initial; height: 190px; }
  .order-heatmap-scroll { flex: initial; }
  .order-heatmap-grid { grid-auto-rows: auto; }
  .dashboard-charts { grid-template-columns: minmax(0, 1fr); }
  .breakdown-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .55fr); align-items: center; column-gap: 18px; }
  .breakdown-panel .dashboard-panel-heading, .breakdown-panel .breakdown-total { grid-column: 1; }
  .breakdown-panel .doughnut-chart { grid-area: 1 / 2 / 4 / 3; }
  .breakdown-panel .breakdown-legend { grid-column: 1; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  body.sidebar-open .sidebar { position: fixed; display: flex; box-shadow: 10px 0 30px rgba(20, 25, 33, .14); }
  body.sidebar-open .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(20, 24, 31, .32); }
  .main-content { width: 100%; margin-left: 0; }
  .topbar { min-height: 59px; gap: 9px; padding: 0 15px; }
  .mobile-menu-toggle { display: inline-grid; }
  .topbar-actions { gap: 4px; }
  .breadcrumb { flex: 1; gap: 5px; font-size: 10px; }
  .top-avatar { width: 29px; height: 29px; }
  .page-content { padding: 23px 15px 34px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 17px; }
  .dashboard-actions { width: 100%; flex-wrap: wrap; }
  .dashboard-export-form { flex: 1 1 100%; justify-content: flex-end; }
  .dashboard-export-form .date-chip { flex: 0 1 auto; }
  .dashboard-actions .button-primary { margin-left: auto; }
  .dashboard-metrics { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .document-counts { margin-top: 12px; padding: 14px; }
  .document-counts-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .document-count-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .document-count-card { min-height: 65px; }
  .document-trend-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dashboard-metric { min-height: 126px; }
  .dashboard-charts, .dashboard-lists { grid-template-columns: minmax(0, 1fr); gap: 11px; margin-top: 11px; }
  .order-heatmap-heading { align-items: flex-start; }
  .order-heatmap-total { font-size: 15px; }
  .order-heatmap-panel { width: 100%; }
  .order-heatmap-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .order-heatmap-empty { min-height: 38px; }
  .order-heatmap-day { min-height: 38px; padding: 5px; font-size: 9px; }
  .order-heatmap-day strong { font-size: 11px; }
  .dashboard-panel { padding: 16px; }
  .upcoming-deliveries-panel { padding: 16px; }
  .upcoming-deliveries-heading { align-items: flex-start; flex-direction: column; }
  .upcoming-deliveries-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .upcoming-deliveries-actions .table-search { width: 100%; flex-basis: 100%; }
  .powered-footer { padding: 10px 15px; }
  .transactions-panel { padding: 16px 0 0; }
  .transactions-heading { align-items: flex-start; flex-direction: column; padding: 0 16px 13px; }
  .transaction-controls { width: 100%; }
  .table-search { flex: 1; width: auto; }
  .transactions-table { min-width: 850px; }
  .breakdown-panel { display: flex; }
  .breakdown-panel .doughnut-chart { width: 150px; height: 150px; }
  .date-chip { flex: 1; }
}

.login-page { display: grid; width: min(100%, 1600px); min-height: calc(100vh - 48px); grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: stretch; place-items: stretch; gap: clamp(28px, 5vw, 80px); margin: 0 auto; padding: 28px clamp(22px, 4vw, 64px); }
.login-showcase { position: relative; min-width: 0; min-height: 620px; overflow: hidden; border-radius: 22px; background: #293b43; box-shadow: 0 18px 55px rgba(20, 35, 47, .16); }
.login-slideshow, .login-slide { position: absolute; inset: 0; }
.login-slide { overflow: hidden; margin: 0; opacity: 0; transition: opacity .8s ease; }
.login-slide.is-active { opacity: 1; }
.login-slide::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 16, 22, .08) 22%, rgba(7, 16, 22, .75) 100%); content: ""; }
.login-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform 7s ease; }
.login-slide.is-active img { transform: scale(1); }
.login-slide figcaption { position: absolute; z-index: 1; right: 9%; bottom: 12%; left: 9%; display: grid; gap: 9px; color: #fff; }
.login-slide figcaption span { font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-slide figcaption strong { max-width: 570px; font-size: clamp(27px, 3.4vw, 48px); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.login-slide-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255, 255, 255, .48); border-radius: 50%; color: #fff; background: rgba(15, 23, 35, .48); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); transition: background .16s ease, transform .16s ease; }
.login-slide-arrow:hover { transform: translateY(-50%) scale(1.05); background: rgba(15, 23, 35, .72); }
.login-slide-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.login-slide-arrow :is(svg, .win-symbol) { width: 21px; height: 21px; }
.login-slide-previous { left: 16px; }
.login-slide-next { right: 16px; }
.login-slideshow-controls { position: absolute; z-index: 2; right: 9%; bottom: 6%; display: flex; gap: 8px; }
.login-slide-progress { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(220px, 48vw); height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.login-slide-progress span { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.login-slide-progress span.is-running { animation: login-slide-timer 6s linear both; }
.login-slideshow[data-paused="true"] .login-slide-progress span,
.login-slideshow[data-hidden="true"] .login-slide-progress span { animation-play-state: paused; }
.login-slide-dot { width: 24px; height: 5px; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .48); cursor: pointer; transition: width .2s ease, background .2s ease; }
.login-slide-dot.is-active { width: 42px; background: #fff; }
.login-slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.login-slide-play { display: grid; width: 27px; height: 22px; place-items: center; margin: -8px 0; padding: 0; border: 0; border-radius: 6px; color: #fff; background: transparent; cursor: pointer; }
.login-slide-play:hover { background: rgba(255, 255, 255, .18); }
.login-slide-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.login-slide-play :is(svg, .win-symbol) { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-play-icon { display: none; fill: currentColor !important; }
.login-slideshow[data-paused="true"] .login-pause-icon { display: none; }
.login-slideshow[data-paused="true"] .login-play-icon { display: block; }
.login-form-panel { position: relative; display: grid; min-width: 0; align-items: center; justify-items: center; padding: 34px 0; }
.login-page .login-card { width: min(100%, 440px); max-width: none; padding: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; animation: login-appear .45s ease-out both; }
.login-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: clamp(40px, 8vh, 82px); color: #222a32; font-size: 19px; font-weight: 750; letter-spacing: -.035em; }
.login-brand:hover { color: #222a32; }
.login-brand-mark { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; object-fit: contain; }
.login-page .login-card .eyebrow { margin-bottom: 9px; color: #728091; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.login-page .login-card h1 { margin: 0; color: #202a35; font-size: clamp(30px, 3vw, 38px); font-weight: 700; letter-spacing: -.045em; }
.login-page .login-card > .muted { margin: 10px 0 29px; color: #758194; font-size: 14px; }
.login-page .login-card > .login-instruction { margin-bottom: 14px; }
.license-owner-field { margin-bottom: 16px; }
.login-page .license-owner-field label { display: block; margin: 0 0 7px; color: #394655; font-size: 12px; font-weight: 650; }
.login-page .license-owner-field .form-control { min-height: 43px; padding: 10px 13px; border: 1px solid #dfe5eb; border-radius: 9px; color: #586575; background: #f4f6f8; font-size: 13px; }
.login-page .login-card .alert { padding: 11px 13px; border-radius: 9px; font-size: 12px; }
.login-page .login-form { text-align: left; }
.login-page .login-form .field label { display: block; margin: 15px 0 7px; color: #394655; font-size: 12px; font-weight: 650; }
.login-page .login-form .form-control { min-height: 47px; padding: 11px 13px; border: 1px solid #dfe5eb; border-radius: 9px; color: #25303b; background: #fff; font-size: 13px; transition: border-color .16s, box-shadow .16s; }
.login-page .login-form .form-control:focus { border-color: #477ca6; box-shadow: 0 0 0 3px rgba(71, 124, 166, .12); }
.login-password-control { position: relative; }
.login-page .login-password-control .form-control { padding-right: 76px; }
.login-password-toggle { position: absolute; top: 50%; right: 9px; padding: 5px 7px; transform: translateY(-50%); border: 0; border-radius: 5px; color: #1769aa; background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.login-password-toggle:hover { background: rgba(23, 105, 170, .08); }
.login-password-toggle:focus-visible { outline: 2px solid #477ca6; outline-offset: 2px; }
.login-password-toggle[hidden] { display: none; }
.login-page .login-form .text-danger { display: block; margin-top: 5px; font-size: 11px; }
.login-page .remember-row { gap: 9px; margin: 17px 0 0; color: #667383; font-size: 11px; }
.login-page .remember-row input { width: 15px; height: 15px; accent-color: #1769aa; }
.caps-lock-warning { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #a5610a; font-size: 11px; font-weight: 650; }
.caps-lock-warning[hidden] { display: none; }
.caps-lock-warning :is(svg, .win-symbol) { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page .login-form .btn-primary { min-height: 47px; border: 1px solid #202a35; border-radius: 9px; color: #fff; background: #202a35; font-size: 13px; font-weight: 650; transition: transform .14s, background .14s; }
.login-page .login-form .btn-primary:hover { border-color: #344655; background: #344655; }
.login-page .login-form .btn-primary:active { transform: translateY(1px); }
.login-security-note { display: flex; align-items: center; gap: 7px; margin: 28px 0 0; color: #8993a0; font-size: 10px; }
.login-security-note :is(svg, .win-symbol) { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes login-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-slide-timer { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 26px; padding-right: 24px; padding-left: 24px; }
  .login-showcase { min-height: 560px; }
  .login-brand { margin-bottom: 48px; }
}

@media (max-width: 680px) {
  .login-page { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 15px; }
  .login-showcase { min-height: 260px; border-radius: 16px; }
  .login-slide figcaption { right: 7%; bottom: 18%; left: 7%; gap: 6px; }
  .login-slide figcaption span { font-size: 9px; }
  .login-slide figcaption strong { max-width: 400px; font-size: clamp(22px, 7vw, 31px); }
  .login-slideshow-controls { right: 7%; bottom: 8%; }
  .login-form-panel { padding: 26px 4px 34px; }
  .login-page .login-card { padding: 4px; }
  .login-brand { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .login-page .login-slide-progress span.is-running { animation-duration: 6s !important; }
}

.resend-submit-button { position: relative; isolation: isolate; overflow: hidden; }
.resend-submit-button .resend-progress-fill { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .28); transition: width 28s linear; }
.resend-submit-button.is-processing .resend-progress-fill { width: 92%; }
.resend-submit-button.is-complete .resend-progress-fill { width: 100%; transition-duration: .25s; }
.resend-submit-button .resend-submit-label { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .resend-submit-button .resend-progress-fill { transition-duration: .01ms; }
}

.login-page { position: relative; width: min(100% - 48px, 1320px); min-height: min(780px, calc(100vh - 112px)); grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 0; margin: 20px auto; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card, 0 18px 48px rgba(30, 42, 56, .1)); }
.login-showcase { min-height: 640px; border-radius: 15px; box-shadow: none; }
.login-slide::after { background: linear-gradient(180deg, rgba(12, 21, 31, .04) 20%, rgba(12, 21, 31, .25) 47%, rgba(12, 21, 31, .82) 100%); }
.login-slide figcaption { right: 8%; bottom: 13%; left: 8%; gap: 11px; }
.login-slide figcaption span { color: #c6e2f7; font-size: 10px; letter-spacing: .13em; }
.login-slide figcaption strong { max-width: 580px; font-size: clamp(29px, 3.2vw, 47px); line-height: 1.04; }
.login-slide figcaption small { max-width: 470px; color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.55; }
.login-showcase-brand { position: absolute; z-index: 3; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 9px; color: white; font-size: 16px; font-weight: 750; letter-spacing: -.03em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.login-showcase-brand:hover { color: white; }
.login-showcase-brand img { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; object-fit: contain; }
.login-form-panel { padding: clamp(24px, 5vw, 68px); }
.login-page .login-card { width: min(100%, 420px); padding: 0; animation: login-appear .5s cubic-bezier(.2, .7, .2, 1) both; }
.login-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.login-card-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); border-radius: 13px; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.login-card-icon :is(svg, .win-symbol) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-card-heading-copy { display: grid; gap: 4px; }
.login-card-heading-copy > span { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.login-card-heading-copy small { color: var(--muted); font-size: 11px; }
.login-page .login-card .eyebrow { color: var(--blue); }
.login-page .login-card h1 { color: var(--ink); font-size: clamp(32px, 3.4vw, 42px); letter-spacing: -.05em; }
.login-page .login-card > .muted { color: var(--muted); }
.login-page .license-owner-field label,
.login-page .login-form .field label { color: var(--ink); }
.login-page .license-owner-field .form-control { border-color: var(--line); color: var(--muted); background: color-mix(in srgb, var(--page) 72%, var(--surface)); }
.login-page .login-form .form-control { border-color: var(--line); color: var(--ink); background: var(--surface); }
.login-page .login-form .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.login-page .remember-row { color: var(--muted); }
.login-page .login-form .btn-primary { border-color: var(--blue-dark); background: var(--blue-dark); box-shadow: 0 5px 14px color-mix(in srgb, var(--blue) 20%, transparent); }
.login-page .login-form .btn-primary:hover { border-color: var(--blue); background: var(--blue); }
.login-security-note { color: var(--muted); }
.login-security-note small { color: var(--blue); }

@media (max-width: 900px) {
  .login-page { width: min(100% - 32px, 720px); min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px; }
  .login-showcase { min-height: 340px; }
  .login-form-panel { padding: 38px clamp(20px, 8vw, 64px); }
  .login-card-heading { margin-bottom: 28px; }
  .login-brand { margin-bottom: 32px; }
}



@media (max-width: 600px) {
  .operation-heading-actions { gap: 6px; }
  .operation-heading-actions > .btn { padding-right: 9px; padding-left: 9px; }
  .operation-card { padding: 15px 13px; }
  .operation-card-heading { flex-wrap: wrap; gap: 8px; }
  .operation-card-heading > div { flex: 1 1 calc(100% - 48px); }
  .operation-card-heading > .operation-item-count { margin-left: 42px; }
  .operation-card-heading > .operation-item-count + .btn { margin-left: auto; }
  .operation-submit-row { flex-direction: column-reverse; }
  .operation-submit-row .btn { width: 100%; }
}

@media (max-width: 680px) {
  .login-page { width: min(calc(100% - 24px), 480px); min-height: 0; margin: 12px auto; padding: 8px; border-radius: 17px; }
  .login-page .login-showcase { min-height: 260px; min-height: clamp(250px, 42vh, 390px); min-height: clamp(250px, 42svh, 390px); border-radius: 12px; }
  .login-showcase-brand { top: 10px; left: 10px; font-size: 13px; }
  .login-showcase-brand img { width: 28px; height: 28px; }
  .login-slide figcaption { right: 7%; bottom: 19%; left: 7%; gap: 4px; }
  .login-slide figcaption span { font-size: 8px; }
  .login-slide figcaption strong { max-width: 360px; font-size: clamp(21px, 6.4vw, 28px); }
  .login-slide figcaption small { max-width: 340px; font-size: 9px; line-height: 1.35; }
  .login-slide-arrow { width: 34px; height: 34px; }
  .login-slide-arrow :is(svg, .win-symbol) { width: 18px; height: 18px; }
  .login-slide-previous { left: 8px; }
  .login-slide-next { right: 8px; }
  .login-slideshow-controls { right: 7%; bottom: 7%; gap: 5px; }
  .login-slide-dot { width: 16px; }
  .login-slide-dot.is-active { width: 30px; }
  .login-slide-progress { width: min(180px, 52vw); }
  .login-form-panel { display: block; padding: 12px 4px 4px; }
  .login-page .login-card { width: 100%; padding: 16px 8px 8px; }
  .login-page .login-card .eyebrow { margin-bottom: 6px; }
  .login-page .login-card h1 { font-size: 30px; }
  .login-page .login-card > .muted { margin-top: 7px; }
  .login-page .login-card > .login-instruction { margin-bottom: 10px; }
  .license-owner-field { margin-bottom: 10px; }
  .login-page .login-form .field label { margin: 12px 0 6px; }
  .login-page .login-form .form-control,
  .login-page .license-owner-field .form-control { min-height: 44px; }
  .login-page .remember-row { margin-top: 13px; }
  .login-page .login-form .btn-primary { min-height: 46px; }
  .login-security-note { margin-top: 15px; }
}

@media (max-width: 680px) and (max-height: 720px) {
  .login-page .login-showcase { min-height: clamp(220px, 38vh, 300px); min-height: clamp(220px, 38svh, 300px); }
  .login-form-panel { padding-top: 10px; }
  .login-page .login-card { padding-top: 12px; }
  .login-security-note { margin-top: 10px; }
}

.print-paper-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.print-paper-select select { min-width: 150px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; }
.print-paper-hint { margin: -8px 0 16px; color: var(--muted); font-size: 12px; }
.print-document { page: document-reference; }
.thermal-ticket { page: thermal80; width: 76mm; max-width: 100%; margin: 0 auto; padding: 3mm; border: 0; border-radius: 0; color: #111; background: white; box-shadow: none; font-family: "Arial", sans-serif; }
.thermal-ticket.thermal-58 { page: thermal58; width: 54mm; }
.thermal-ticket .print-title { align-items: flex-start; gap: 5px; padding: 0 0 7px; border-bottom: .1mm solid #777; }
.thermal-ticket .print-brand { gap: 5px; }
.thermal-ticket .print-brand .brand-mark { display: none; }
.thermal-ticket .print-brand-name { color: #111; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
.thermal-ticket .print-brand-caption { margin-top: 2px; color: #333; font-size: 8px; }
.thermal-ticket .print-document-info { align-items: flex-end; gap: 4px; text-align: right; }
.thermal-ticket .print-document-info h1 { max-width: 35mm; color: #111; font-size: 9px; overflow-wrap: anywhere; }
.thermal-ticket .print-doc-kicker { margin-bottom: 2px; color: #111; font-size: 7px; letter-spacing: .04em; }
.thermal-ticket .print-folio { min-width: 0; padding: 3px 4px; border: 1px solid #777; border-radius: 0; color: #111; background: white; }
.thermal-ticket .print-folio span { color: #222; font-size: 7px; }
.thermal-ticket .print-folio strong { color: #111; font-size: 11px; }
.thermal-ticket .print-operation { margin-top: 5px; }
.thermal-ticket .print-operation span { padding: 2px 5px; border: 1px solid #222; border-radius: 0; color: #111; font-size: 8px; letter-spacing: .08em; }
.thermal-ticket .print-details,
.thermal-ticket .print-items-section { margin-top: 9px; }
.thermal-ticket .print-details h2,
.thermal-ticket .print-items-section h2 { margin-bottom: 4px; color: #111; font-size: 8px; letter-spacing: .04em; }
.thermal-ticket .print-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 0; border-radius: 0; background: white; }
.thermal-ticket .print-fields div { padding: 3px 1px; border-bottom: .1mm solid #aaa !important; }
.thermal-ticket .print-fields dt { color: #333; font-size: 8px; }
.thermal-ticket .print-fields dd { margin-top: 1px; color: #111; font-size: 9px; font-weight: 500; }
.thermal-ticket .print-items { display: block; width: 100%; border-collapse: collapse; font-size: 8px; }
.thermal-ticket .print-items thead { display: none; }
.thermal-ticket .print-items tbody { display: block; }
.thermal-ticket .print-items tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px 0; border-bottom: .1mm solid #999; }
.thermal-ticket .print-items td { min-width: 0; padding: 0; border: 0; color: #111; font-size: 9px; overflow-wrap: anywhere; }
.thermal-ticket .print-items td:first-child { grid-column: 1 / -1; font-weight: 700; }
.thermal-ticket .print-items td:nth-child(2)::before { content: "Cant. "; }
.thermal-ticket .print-items td:nth-child(3)::before { content: "P.U. "; }
.thermal-ticket .print-items td:nth-child(4)::before { content: "Imp. "; }
.thermal-ticket .print-baking-items td:nth-child(2)::before { content: "P.U. "; }
.thermal-ticket .print-baking-items td:nth-child(3)::before { content: "Adobo: "; }
.thermal-ticket .print-baking-items td:nth-child(4)::before { content: "Kg "; }
.thermal-ticket .print-number { text-align: left !important; white-space: normal; }
.thermal-ticket .print-unit { color: #111; font-weight: 500; }
.thermal-ticket .print-observations { margin-top: 8px; padding: 5px 0; border: 0; border-top: .1mm solid #999; border-bottom: .1mm solid #999; border-radius: 0; }
.thermal-ticket .print-observations h2 { margin-bottom: 3px; color: #111; font-size: 8px; }
.thermal-ticket .print-observations p { color: #111; font-size: 9px; }
.thermal-ticket .print-totals { grid-template-columns: minmax(0, 1fr); gap: 2px; width: 100%; margin: 8px 0 0; }
.thermal-ticket .print-totals > div { padding: 3px 0; border: 0; border-bottom: .1mm solid #999; border-radius: 0; color: #111; font-size: 9px; }
.thermal-ticket .print-totals strong { color: #111; font-size: 9px; }
.thermal-ticket .print-totals > .print-total-primary { border: 0; color: #111; background: white; font-size: 12px; }
.thermal-ticket .print-totals > .print-total-primary strong { color: #111; font-size: 13px; }
.thermal-ticket .print-footer { grid-template-columns: minmax(0, 1fr); gap: 5px; margin-top: 10px; padding-top: 5px; border-top: .1mm solid #777; color: #333; font-size: 8px; }
.thermal-ticket .print-footer strong { color: #111; font-size: 9px; }
.thermal-ticket.thermal-58 .print-items tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.thermal-ticket.thermal-58 .print-items td:first-child,
.thermal-ticket.thermal-58 .print-items td:nth-child(2) { grid-column: 1 / -1; }
.thermal-ticket.thermal-58 .print-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.thermal-ticket.thermal-58 .print-document-info { width: 100%; align-items: flex-start; justify-content: space-between; text-align: left; }
.thermal-ticket.thermal-58 .print-document-info > div { min-width: 0; }
.thermal-ticket.thermal-58 .print-document-info h1 { max-width: 38mm; }
.thermal-ticket.thermal-58 .print-fields { grid-template-columns: minmax(0, 1fr); }
.order-sale-ticket { --receipt-ink: #26394c; --receipt-accent: #174f78; --receipt-line: #d7e0e8; }
.order-sale-ticket .print-title { align-items: center; }
.order-sale-ticket .print-document-info { align-items: center; }
.order-sale-ticket .print-document-info h1 { font-size: 19px; }
.order-sale-ticket .print-folio { min-width: 118px; border: 2px solid var(--receipt-accent); background: white; }
.order-sale-ticket .print-folio strong { font-size: 16px; }
.order-sale-customer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 16px; margin-top: 20px; border: 1px solid var(--receipt-line); }
.order-sale-customer > div { display: grid; min-width: 0; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--receipt-line); }
.order-sale-customer > div > span,
.order-sale-delivery > div > span,
.order-sale-footer > div > span { color: #647487; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.order-sale-customer > div > strong { color: var(--receipt-ink); font-size: 12px; overflow-wrap: anywhere; }
.order-sale-customer .order-sale-customer-name { grid-row: span 2; align-content: center; border-right: 1px solid var(--receipt-line); border-bottom: 0; }
.order-sale-customer .order-sale-customer-name strong { font-size: 16px; }
.order-sale-customer > div:last-child { border-bottom: 0; }
.order-sale-delivery { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 13px; border: 2px solid var(--receipt-accent); }
.order-sale-delivery > div { display: grid; gap: 4px; }
.order-sale-delivery > div > strong { color: var(--receipt-accent); font-size: 16px; }
.order-sale-delivery .order-sale-delivery-time { min-width: 105px; justify-items: center; padding-left: 12px; border-left: 1px dashed var(--receipt-line); }
.order-sale-delivery .order-sale-delivery-time strong { font-size: 19px; }
.order-sale-ticket .print-items-section { margin-top: 19px; }
.order-sale-ticket .print-items-section h2 { display: flex; justify-content: space-between; gap: 10px; }
.order-sale-ticket .print-items-section h2 span { color: #647487; font-size: 9px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.order-sale-ticket .print-items th { background: var(--receipt-accent); }
.order-sale-ticket .print-unit { color: var(--receipt-accent); }
.order-sale-ticket .item-data-label { display: none; }
.order-sale-ticket .print-observations { margin-top: 15px; border-left: 4px solid var(--receipt-accent); background: #f7f9fb; }
.order-sale-totals { display: grid; gap: 6px; width: min(100%, 370px); margin: 15px 0 0 auto; }
.order-sale-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid var(--receipt-line); color: #47586a; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.order-sale-totals strong { color: var(--receipt-ink); font-size: 13px; }
.order-sale-totals > .is-total { border: 2px solid var(--receipt-accent); color: var(--receipt-accent); font-size: 12px; }
.order-sale-totals > .is-total strong { color: var(--receipt-accent); font-size: 17px; }
.order-sale-totals > .is-balance { border-color: #9aa8b5; border-style: dashed; }
.order-sale-totals.sale-total { width: min(100%, 250px); }
.order-sale-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 17px; padding-top: 10px; border-top: 1px solid var(--receipt-line); }
.order-sale-footer > div { display: grid; gap: 4px; }
.order-sale-footer > div > strong { color: var(--receipt-ink); font-size: 11px; overflow-wrap: anywhere; }
.order-sale-footer > small { grid-column: 1 / -1; padding-top: 7px; color: #647487; font-size: 9px; text-align: center; }
.thermal-ticket.order-sale-ticket .print-title { display: grid; grid-template-columns: 1fr; gap: 5px; }
.thermal-ticket.order-sale-ticket .print-document-info { width: 100%; justify-content: space-between; text-align: left; }
.thermal-ticket.order-sale-ticket .print-document-info h1 { font-size: 12px; }
.thermal-ticket.order-sale-ticket .print-folio { min-width: 0; }
.thermal-ticket.order-sale-ticket .print-brand .brand-mark { display: block; width: 9mm; height: 9mm; border-radius: 0; }
.thermal-ticket.order-sale-ticket .order-sale-customer { grid-template-columns: 1.15fr 1fr; gap: 0 6px; margin-top: 8px; }
.thermal-ticket.order-sale-ticket .order-sale-customer > div { gap: 2px; padding: 5px; }
.thermal-ticket.order-sale-ticket .order-sale-customer > div > span,
.thermal-ticket.order-sale-ticket .order-sale-delivery > div > span,
.thermal-ticket.order-sale-ticket .order-sale-footer > div > span { font-size: 7px; }
.thermal-ticket.order-sale-ticket .order-sale-customer > div > strong { font-size: 8px; }
.thermal-ticket.order-sale-ticket .order-sale-customer .order-sale-customer-name strong { font-size: 10px; }
.thermal-ticket.order-sale-ticket .order-sale-delivery { gap: 4px; margin-top: 7px; padding: 6px; border-width: 1px; }
.thermal-ticket.order-sale-ticket .order-sale-delivery > div > strong { font-size: 12px; }
.thermal-ticket.order-sale-ticket .order-sale-delivery .order-sale-delivery-time { min-width: 62px; padding-left: 5px; }
.thermal-ticket.order-sale-ticket .order-sale-delivery .order-sale-delivery-time strong { font-size: 14px; }
.thermal-ticket.order-sale-ticket .print-items-section { margin-top: 9px; }
.thermal-ticket.order-sale-ticket .print-items-section h2 { margin-bottom: 4px; font-size: 8px; }
.thermal-ticket.order-sale-ticket .print-items-section h2 span { font-size: 7px; }
.thermal-ticket.order-sale-ticket .print-items th { display: none; }
.thermal-ticket.order-sale-ticket .print-items tbody { display: block; }
.thermal-ticket.order-sale-ticket .print-items tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 5px; padding: 0 5px 5px; border: 1px solid #c8cdd2; border-left: 3px solid #555; background: #f7f7f7; }
.thermal-ticket.order-sale-ticket .print-items td { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 3px 0; border: 0; color: #111; font-size: 9px; font-weight: 700; overflow-wrap: anywhere; }
.thermal-ticket.order-sale-ticket .print-items td:first-child { grid-column: 1 / -1; padding: 5px 3px 4px; border-bottom: 1px solid #c8cdd2; font-size: 10px; font-weight: 800; }
.thermal-ticket.order-sale-ticket .print-items td::before { content: none !important; }
.thermal-ticket.order-sale-ticket .print-items .item-data-label { display: block; color: #4b4b4b; font-size: 6.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.thermal-ticket.order-sale-ticket .print-number { text-align: left !important; white-space: normal; }
.thermal-ticket.order-sale-ticket .print-unit { color: #111; font-size: 7px; font-weight: 500; }
.thermal-ticket.order-sale-ticket .print-observations { margin-top: 7px; padding: 5px 6px; border: 1px solid #aaa; border-left: 2px solid #333; background: white; }
.thermal-ticket.order-sale-ticket .print-observations h2 { margin-bottom: 3px; font-size: 7px; }
.thermal-ticket.order-sale-ticket .print-observations p { font-size: 8px; }
.thermal-ticket.order-sale-ticket .order-sale-totals { gap: 3px; width: 100%; margin-top: 7px; }
.thermal-ticket.order-sale-ticket .order-sale-totals > div { padding: 4px 5px; font-size: 8px; }
.thermal-ticket.order-sale-ticket .order-sale-totals strong { font-size: 9px; }
.thermal-ticket.order-sale-ticket .order-sale-totals > .is-total { font-size: 9px; }
.thermal-ticket.order-sale-ticket .order-sale-totals > .is-total strong { font-size: 12px; }
.thermal-ticket.order-sale-ticket .order-sale-footer { gap: 6px; margin-top: 8px; padding-top: 5px; }
.thermal-ticket.order-sale-ticket .order-sale-footer > div > strong { font-size: 8px; }
.thermal-ticket.order-sale-ticket .order-sale-footer > small { padding-top: 3px; font-size: 7px; }
.thermal-ticket.order-sale-ticket.thermal-58 .print-items tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thermal-ticket.order-sale-ticket.thermal-58 .print-items td:nth-child(2) { grid-column: auto; }
.sale-ticket .order-sale-customer { grid-template-columns: 1.4fr 1fr; }
.sale-ticket .order-sale-customer .order-sale-customer-name { grid-row: span 2; }
.sale-ticket .order-sale-customer > div:last-child { border-bottom: 0; }
.sale-ticket .print-observations { margin-top: 15px; }
.sale-ticket .order-sale-footer { margin-top: 17px; }
.thermal-ticket.sale-ticket .order-sale-customer { grid-template-columns: 1.15fr 1fr; }
.baking-ticket { --baking-ink: #26394c; --baking-accent: #174f78; --baking-line: #d7e0e8; }
.baking-ticket .print-title { align-items: center; }
.baking-ticket .print-document-info { align-items: center; }
.baking-ticket .print-document-info h1 { font-size: 19px; }
.baking-ticket .print-folio { min-width: 118px; border: 2px solid var(--baking-accent); background: white; }
.baking-ticket .print-folio strong { font-size: 16px; }
.baking-ticket-customer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 16px; margin-top: 20px; border: 1px solid var(--baking-line); }
.baking-ticket-field { display: grid; min-width: 0; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--baking-line); }
.baking-ticket-field span, .baking-ticket-delivery-heading > span, .baking-ticket-time > span, .baking-ticket-metric > span, .baking-ticket-footer span { color: #647487; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.baking-ticket-field strong { color: var(--baking-ink); font-size: 12px; overflow-wrap: anywhere; }
.baking-ticket-customer-name { grid-row: span 2; align-content: center; border-right: 1px solid var(--baking-line); border-bottom: 0; }
.baking-ticket-customer-name strong { font-size: 16px; }
.baking-ticket-field:last-child { border-bottom: 0; }
.baking-ticket-delivery { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 10px; margin-top: 14px; padding: 12px; border: 2px solid var(--baking-accent); }
.baking-ticket-delivery-heading { display: grid; align-content: center; gap: 4px; }
.baking-ticket-delivery-heading strong { color: var(--baking-accent); font-size: 17px; }
.baking-ticket-time { display: grid; min-width: 92px; align-content: center; justify-items: center; gap: 3px; padding: 5px 12px; border-left: 1px dashed var(--baking-line); }
.baking-ticket-time strong { color: var(--baking-ink); font-size: 20px; }
.baking-ticket-service { margin-top: 16px; }
.baking-ticket-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--baking-ink); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.baking-ticket-section-heading small { color: #647487; font-size: 8px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.baking-ticket-service-choice { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 9px 12px; border: 1px solid var(--baking-accent); background: #f5f8fb; }
.baking-ticket-check { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 2px solid var(--baking-accent); color: var(--baking-accent); font-size: 17px; font-weight: 900; }
.baking-ticket-service-choice div { display: grid; gap: 2px; }
.baking-ticket-service-choice small { color: #647487; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.baking-ticket-service-choice strong { color: var(--baking-ink); font-size: 14px; }
.baking-ticket-measures { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 13px; padding: 10px 0; border-top: 1px dashed #8290a0; border-bottom: 1px dashed #8290a0; }
.baking-ticket-metric { display: grid; gap: 4px; }
.baking-ticket-metric strong { color: var(--baking-ink); font-size: 18px; }
.baking-ticket-metric strong small { font-size: 11px; }
.baking-ticket-multiply { color: var(--baking-accent); font-size: 20px; font-weight: 800; }
.baking-ticket-marination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--baking-line); }
.baking-ticket-marination div { display: grid; gap: 2px; }
.baking-ticket-marination div span { color: var(--baking-ink); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.baking-ticket-marination div small { color: #647487; font-size: 8px; }
.baking-ticket-marination > strong { min-width: 65px; padding: 5px 10px; border: 1px solid #6b7785; color: #343d46; font-size: 13px; text-align: center; }
.baking-ticket-marination > strong.is-selected { border-color: var(--baking-accent); color: white; background: var(--baking-accent); }
.baking-ticket-observations { min-height: 64px; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--baking-line); }
.baking-ticket-observations h2 { margin: 0 0 5px; color: #647487; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.baking-ticket-observations p { margin: 0; color: var(--baking-ink); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.baking-ticket-totals { display: grid; gap: 6px; width: min(100%, 340px); margin: 13px 0 0 auto; }
.baking-ticket-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--baking-line); color: #47586a; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.baking-ticket-totals strong { color: var(--baking-ink); font-size: 13px; }
.baking-ticket-totals > .is-total { border: 2px solid var(--baking-accent); color: var(--baking-accent); font-size: 12px; }
.baking-ticket-totals > .is-total strong { color: var(--baking-accent); font-size: 17px; }
.baking-ticket-totals > .is-balance { border-color: #9aa8b5; border-style: dashed; }
.baking-ticket-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 9px; border-top: 1px solid var(--baking-line); }
.baking-ticket-footer > div { display: grid; gap: 4px; }
.baking-ticket-footer strong { color: var(--baking-ink); font-size: 11px; overflow-wrap: anywhere; }
.thermal-ticket.baking-ticket .print-title { display: grid; grid-template-columns: 1fr; gap: 5px; }
.thermal-ticket.baking-ticket .print-document-info { width: 100%; justify-content: space-between; text-align: left; }
.thermal-ticket.baking-ticket .print-document-info h1 { font-size: 12px; }
.thermal-ticket.baking-ticket .print-folio { min-width: 0; }
.thermal-ticket.baking-ticket .print-brand .brand-mark { display: block; width: 9mm; height: 9mm; border-radius: 0; }
.thermal-ticket.baking-ticket .baking-ticket-customer { grid-template-columns: 1.15fr 1fr; gap: 0 6px; margin-top: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-field { padding: 5px 5px; }
.thermal-ticket.baking-ticket .baking-ticket-field span,
.thermal-ticket.baking-ticket .baking-ticket-delivery-heading > span,
.thermal-ticket.baking-ticket .baking-ticket-time > span,
.thermal-ticket.baking-ticket .baking-ticket-metric > span,
.thermal-ticket.baking-ticket .baking-ticket-footer span { font-size: 7px; }
.thermal-ticket.baking-ticket .baking-ticket-field strong { font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-customer-name strong { font-size: 10px; }
.thermal-ticket.baking-ticket .baking-ticket-delivery { gap: 4px; margin-top: 7px; padding: 6px; border-width: 1px; }
.thermal-ticket.baking-ticket .baking-ticket-delivery-heading strong { font-size: 12px; }
.thermal-ticket.baking-ticket .baking-ticket-time { min-width: 55px; padding: 3px 5px; }
.thermal-ticket.baking-ticket .baking-ticket-time strong { font-size: 14px; }
.thermal-ticket.baking-ticket .baking-ticket-service { margin-top: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-section-heading { margin-bottom: 4px; font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-section-heading small { font-size: 7px; }
.thermal-ticket.baking-ticket .baking-ticket-service-choice { min-height: 38px; gap: 7px; padding: 5px 7px; }
.thermal-ticket.baking-ticket .baking-ticket-check { width: 20px; height: 20px; font-size: 12px; }
.thermal-ticket.baking-ticket .baking-ticket-service-choice small { font-size: 7px; }
.thermal-ticket.baking-ticket .baking-ticket-service-choice strong { font-size: 10px; }
.thermal-ticket.baking-ticket .baking-ticket-measures { gap: 5px; margin-top: 7px; padding: 6px 0; }
.thermal-ticket.baking-ticket .baking-ticket-metric strong { font-size: 11px; }
.thermal-ticket.baking-ticket .baking-ticket-metric strong small { font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-multiply { font-size: 13px; }
.thermal-ticket.baking-ticket .baking-ticket-marination { margin-top: 7px; padding: 5px 6px; }
.thermal-ticket.baking-ticket .baking-ticket-marination div span { font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-marination div small { font-size: 6px; }
.thermal-ticket.baking-ticket .baking-ticket-marination > strong { min-width: 42px; padding: 3px 5px; font-size: 9px; }
.thermal-ticket.baking-ticket .baking-ticket-observations { min-height: 40px; margin-top: 7px; padding: 5px 6px; }
.thermal-ticket.baking-ticket .baking-ticket-observations h2 { font-size: 7px; }
.thermal-ticket.baking-ticket .baking-ticket-observations p { font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-totals { gap: 3px; width: 100%; margin-top: 7px; }
.thermal-ticket.baking-ticket .baking-ticket-totals > div { padding: 4px 5px; font-size: 8px; }
.thermal-ticket.baking-ticket .baking-ticket-totals strong { font-size: 9px; }
.thermal-ticket.baking-ticket .baking-ticket-totals > .is-total { font-size: 9px; }
.thermal-ticket.baking-ticket .baking-ticket-totals > .is-total strong { font-size: 12px; }
.thermal-ticket.baking-ticket .baking-ticket-footer { gap: 6px; margin-top: 7px; padding-top: 5px; }
.thermal-ticket.baking-ticket .baking-ticket-footer strong { font-size: 8px; }
@page thermal58 { margin: 0; }
@page thermal80 { margin: 0; }

.operation-heading-actions { display: flex; align-items: center; gap: 10px; }
.operation-folio { display: grid; min-width: 84px; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: center; }
.operation-folio small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.operation-folio strong { color: #d13b36; font-size: 15px; letter-spacing: .05em; }
.operation-folio-system { border-left: 3px solid #d13b36; }
.operation-folio-system small,
.operation-folio-system strong { color: #c83232; }
.operation-card .manual-folio-input { border-left: 3px solid #2878c7; }
.operation-card label[for="ManualFolio"] { color: #246eb5; }
.operation-card .operation-folio-system {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-left: 3px solid #d13b36;
  border-radius: 8px;
  background: var(--surface);
}
.operation-card .operation-folio-system strong { font-size: 15px; }
.operation-card { margin-bottom: 14px; padding: 19px 20px; }
.operation-card-heading { display: flex; min-width: 0; align-items: center; gap: 11px; margin-bottom: 17px; }
.operation-card-heading > div { min-width: 0; }
.operation-section-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); font-size: 10px; font-weight: 800; }
.operation-card-heading h2 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.operation-card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.operation-card-heading .operation-folio { margin-left: auto; }
.operation-card .field-label { margin-bottom: 6px; color: var(--ink); font-size: 11px; }
.operation-card .form-control,
.operation-card .form-select { min-height: 39px; border-color: var(--line); color: var(--ink); background-color: var(--surface); font-size: 12px; }
.operation-card .form-control:focus,
.operation-card .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 13%, transparent); }
.operation-card .input-group-text { min-width: 34px; justify-content: center; border-color: var(--line); color: var(--muted); background: var(--page); font-size: 12px; }
.operation-card .form-control[readonly] { background-color: color-mix(in srgb, var(--page) 75%, var(--surface)); font-weight: 650; }
.operation-card .balance-input .form-control { color: #ae3939; background: #fff3f2; }
.operation-card .balance-input .form-control.is-settled { color: #16714e; background: #eaf7f1; }
.operation-card .balance-input .form-control.is-invalid { border-color: #d94a4a; color: #b42318; background: #fff0f0; }
.operation-card .form-check { display: flex; min-height: 39px; align-items: center; gap: 7px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.operation-card .form-check-input { margin: 0; }
.operation-card .form-check-label { color: var(--ink); font-size: 12px; }
.operation-card .operation-notes { min-height: 78px; resize: vertical; }
.operation-field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.operation-card .text-danger { display: block; margin-top: 4px; font-size: 10px; }
.operation-card .table-responsive { overflow-x: auto; }
.operation-card #order-lines { min-width: 680px; margin: 0; color: var(--ink); font-size: 11px; vertical-align: middle; }
.operation-card #order-lines thead { color: var(--muted); background: var(--page); }
.operation-card #order-lines th { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; white-space: nowrap; }
.operation-card #order-lines td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.operation-card #order-lines .product-picker { position: relative; min-width: 180px; }
.operation-card #order-lines .product-picker-control { position: relative; display: flex; min-width: 0; align-items: center; }
.operation-card #order-lines .product-search { min-width: 90px; padding-right: 36px; }
.product-picker-toggle { position: absolute; top: 50%; right: 3px; display: grid; width: 31px; height: 31px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.product-picker-toggle:hover { color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.product-picker-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.product-picker-toggle :is(svg, .win-symbol) { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-picker-options { position: fixed; z-index: 1080; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 35, 47, .2); }
.product-picker-options[hidden] { display: none; }
.product-picker-option { padding: 9px 12px; color: var(--ink); font-size: 12px; cursor: pointer; }
.product-picker-option:hover,
.product-picker-option.is-active { color: var(--blue-dark); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.product-picker-option[aria-selected="true"] { color: var(--blue-dark); font-weight: 700; }
.product-picker-empty { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 12px; }
.operation-card #order-lines .form-control,
.operation-card #order-lines .form-select { min-width: 90px; }
.operation-card #order-lines .size-select:disabled { border-color: #d8dce2; color: #777e88; background-color: #eceff3; cursor: not-allowed; opacity: 1; }
.operation-card #empty-lines { margin: 0; padding: 18px 0 3px; font-size: 11px; }
.visual-order-page { width: 100%; margin: 0 auto; }
.visual-order-heading { align-items: center; gap: 20px; }
.visual-order-heading h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -.04em; }
.visual-order-heading-actions { display: flex; margin-top: 12px; }
.visual-order-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, .7fr); align-items: start; gap: 18px; }
.visual-order-catalog,
.visual-order-sidebar { min-width: 0; }
.visual-order-sidebar { position: fixed; z-index: 40; top: 150px; right: max(24px, calc((100vw - 1680px) / 2 + 24px)); display: grid; width: clamp(300px, 24vw, 360px); gap: 14px; max-height: calc(100vh - 166px); max-height: calc(100dvh - 166px); overflow-y: auto; padding: 2px 3px 4px; scrollbar-width: thin; }
@media (min-width: 1001px) {
  html[data-navigation-layout="Fixed"] .visual-order-sidebar {
    right: max(4px, calc((100vw - 1680px) / 2 - 12px));
  }
}
.visual-mobile-cart-toggle,
.visual-cart-close,
.visual-cart-backdrop { display: none; }
.visual-order-catalog { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 12px #233e5808; }
.visual-order-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.visual-cart-card { display: flex; flex-direction: column; overflow: hidden; margin: 0; padding: 0; }
.visual-cart-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 10px; }
.visual-cart-heading .eyebrow { margin-bottom: 4px; }
.visual-cart-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 750; }
.visual-cart-card .count-badge { min-width: 34px; }
.visual-cart-body { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; padding: 0 16px 16px; }
.visual-cart-actions { flex: 0 0 auto; margin-bottom: 8px; }
.visual-cart-actions .btn { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; }
.visual-order-section-heading h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.visual-order-section-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.visual-order-stock-note { color: var(--muted); font-size: 10px; }
.visual-product-search { min-height: 43px; margin-bottom: 12px; }
.visual-category-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.visual-category-filter { min-height: 33px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; cursor: pointer; }
.visual-category-filter:hover,
.visual-category-filter.is-active { border-color: var(--blue); color: #fff; background: var(--blue); }
.visual-category-filter:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visual-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.visual-product-card { min-width: 0; }
.visual-product-controls { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.visual-product-controls .input-group { min-width: 0; }
.visual-product-controls .form-control { min-width: 0; }
.visual-product-controls .btn { white-space: nowrap; }
.visual-product-empty { margin: 0; padding: 20px 0; color: var(--muted); font-size: 12px; text-align: center; }
.visual-customer-card { min-width: 0; padding: 16px; }
.visual-cart-lines { display: grid; min-height: 0; flex: 1 1 auto; gap: 8px; max-height: min(65vh, 640px); max-height: min(65dvh, 640px); overflow-y: auto; overscroll-behavior: contain; }
.visual-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.visual-cart-line-details { display: grid; grid-column: 1; gap: 4px; min-width: 0; }
.visual-cart-line-details strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 700; }
.visual-cart-line-details small { color: var(--muted); font-size: 11px; }
.visual-cart-line-details .product-unit-badge { justify-self: start; }
.visual-cart-line-actions { display: flex; grid-column: 2; grid-row: 1 / span 2; align-items: center; gap: 8px; }
.visual-cart-quantity { min-height: 34px; padding: 5px; font-size: 11px; }
.visual-cart-line-total { grid-column: 1; color: var(--ink); font-size: 12px; white-space: nowrap; }
.visual-cart-remove { min-height: 34px; padding: 4px 9px; font-size: 11px; }
.visual-cart-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 11px; text-align: center; }
.visual-cart-footer { flex: 0 0 auto; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.visual-cart-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 0; padding-top: 0; color: var(--muted); font-size: 11px; }
.visual-cart-total + .visual-cart-total { margin-top: 4px; }
.visual-cart-total strong { color: var(--ink); font-size: 14px; }
.visual-cart-balance strong { color: var(--blue-dark); }
.visual-form-fields { display: grid; gap: 11px; }
.visual-form-fields .field-label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 10px; font-weight: 700; }
.visual-form-fields .form-control,
.visual-form-fields .form-select { min-height: 38px; font-size: 11px; }
.visual-form-fields textarea.form-control { min-height: 58px; resize: vertical; }
.visual-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.visual-customer-card label[for="ManualFolio"] { color: #246eb5; }
.visual-customer-card .manual-folio-input { border-left: 3px solid #2878c7; }
.visual-system-folio { display: flex; min-width: 0; height: 38px; align-items: center; justify-content: center; padding: 0 11px; }
.visual-system-folio strong { font-size: 14px; }
.visual-order-email-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.visual-order-save { width: 100%; min-height: 43px; margin-top: 14px; font-size: 12px; font-weight: 700; }
.visual-order-confirm { width: 100%; min-height: 46px; margin-top: 14px; font-size: 12px; font-weight: 700; }
.visual-order-dialog { width: min(1440px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100vh - 32px)); height: min(860px, calc(100dvh - 32px)); grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 520px); align-items: stretch; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(13, 27, 42, .28); }
.visual-order-dialog[open] { display: grid; }
.visual-order-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.visual-order-dialog .visual-customer-card { max-height: 100%; overflow-y: auto; padding: 24px; }
.visual-dialog-cart { position: sticky; top: 0; min-width: 0; max-height: 100%; overflow-y: auto; padding: 22px 16px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--page) 45%, var(--surface)); }
.visual-dialog-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.visual-dialog-cart-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.visual-dialog-cart-heading h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; }
.visual-dialog-cart-heading .visual-dialog-close { align-self: flex-start; }
.visual-dialog-cart-lines { display: grid; max-height: min(42vh, 360px); max-height: min(42dvh, 360px); gap: 9px; overflow-y: auto; }
.visual-dialog-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.visual-dialog-cart-line-details { display: grid; min-width: 0; gap: 3px; }
.visual-dialog-cart-line-details strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.visual-dialog-cart-line-details small { color: var(--muted); font-size: 9px; }
.visual-dialog-cart-quantity { color: var(--muted); font-size: 10px; white-space: nowrap; }
.visual-dialog-cart-line-total { color: var(--ink); font-size: 10px; text-align: right; white-space: nowrap; }
.visual-dialog-cart-total { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.visual-dialog-cart-total strong { color: var(--ink); font-size: 14px; }
.visual-order-dialog .visual-order-section-heading { align-items: flex-start; }
.visual-dialog-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.visual-dialog-heading-actions .btn { min-height: 34px; }
.visual-client-contact-note { margin: -5px 0 12px; color: var(--muted); font-size: 10px; }
.visual-form-fields .form-control[readonly] { border-color: color-mix(in srgb, var(--blue) 24%, var(--line)); background-color: color-mix(in srgb, var(--blue) 8%, var(--surface)); cursor: not-allowed; }
.visual-dialog-totals { margin: 3px 0 0; padding: 16px; }
.visual-dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 22px; line-height: 1; }
.visual-dialog-close:hover { color: var(--ink); background: color-mix(in srgb, var(--page) 25%, var(--surface)); }
.visual-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.visual-dialog-actions .visual-order-save { width: auto; min-width: 160px; margin: 0; }
.visual-dialog-actions .btn { min-height: 43px; }
.operation-item-count { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.operation-card-heading .operation-item-count + .btn { flex: 0 0 auto; }
.operation-submit-row { display: flex; justify-content: flex-end; gap: 9px; margin: 17px 0 30px; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-folio,
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card .form-check { background: var(--surface); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card.operation-totals #total-preview {
  border-color: #3b526b;
  color: #c5dcf8;
  background: #25303b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card.operation-totals .balance-input .form-control { border-color: #744444; color: #ffaaaa; background: #392828; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card.operation-totals .balance-input .form-control.is-settled { border-color: #3b6a51; color: #9bdfb6; background: #26392d; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card.operation-totals .balance-input .form-control.is-invalid { border-color: #a54b4b; color: #ffaaaa; background: #492b2b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card #order-lines thead { background: #333; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .operation-card #order-lines .size-select:disabled { border-color: #484848; color: #a5a5a5; background-color: #383838; }

@media print {
  .thermal-print-hint { display: none !important; }
  .baking-ticket { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .thermal-ticket { width: 76mm !important; max-width: none !important; margin: 0 !important; padding: 2mm !important; overflow: visible !important; }
  .thermal-ticket.thermal-58 { width: 54mm !important; }
  .thermal-ticket::before { display: none !important; }
  .thermal-ticket .print-items th,
  .thermal-ticket .print-totals > .print-total-primary { color: #111 !important; background: white !important; }
  .thermal-ticket .print-title,
  .thermal-ticket .print-fields,
  .thermal-ticket .print-items-section,
  .thermal-ticket .print-totals,
  .thermal-ticket .print-footer { break-inside: auto; }
}

.app-container { display: block; min-height: 100vh; padding: 0; }
.main-content { width: 100%; margin-left: 0; }
.topbar { position: sticky; z-index: 50; top: 12px; display: flex; width: calc(100% - clamp(24px, 4vw, 64px)); min-height: 72px; justify-content: flex-start; gap: clamp(20px, 3vw, 42px); margin: 12px auto 0; padding: 0 clamp(18px, 3vw, 42px); border: 1px solid rgba(225, 230, 236, .55); border-radius: 15px; background: rgba(255, 255, 255, .62); box-shadow: 0 8px 28px rgba(26, 35, 48, .06); backdrop-filter: blur(12px) saturate(145%); -webkit-backdrop-filter: blur(12px) saturate(145%); }
.sidebar-brand { flex: 0 0 auto; gap: 10px; padding: 0; }
.sidebar-logo { width: 36px; height: 36px; }
.sidebar-brand-copy { display: grid; min-width: 0; gap: 2px; line-height: 1.1; }
.sidebar-brand-copy strong { max-width: 250px; font-size: inherit; font-weight: 750; line-height: 1.15; text-wrap: balance; white-space: normal; }
.sidebar-brand-copy small { color: #77808b; font-size: 9px; font-weight: 550; letter-spacing: 0; }
.primary-nav { display: flex; min-width: 0; flex: 1; align-items: stretch; gap: 4px; }
.nav-direct, .nav-menu-trigger { position: relative; display: inline-flex; min-height: 72px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; color: #606975; background: transparent; font: inherit; font-size: 12px; font-weight: 550; white-space: nowrap; transition: color .16s, background .16s, border-color .16s; }
.nav-direct:hover, .nav-menu-trigger:hover, .nav-menu.is-open .nav-menu-trigger, .nav-menu.has-active .nav-menu-trigger, .nav-direct.active { color: #20242a; }
.nav-direct.active, .nav-menu.has-active .nav-menu-trigger { border-bottom-color: #202a35; }
.nav-menu-trigger { cursor: pointer; }
.nav-menu-trigger :is(svg, .win-symbol) { width: 14px; height: 14px; color: #9299a3; transition: transform .18s; }
.nav-menu.is-open .nav-menu-trigger :is(svg, .win-symbol) { transform: rotate(180deg); }
.nav-menu { position: relative; display: flex; align-items: stretch; }
.mega-menu { position: absolute; top: calc(100% - 2px); left: 50%; display: grid; width: min(720px, calc(100vw - 44px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 25px 28px; border: 1px solid rgba(226, 231, 237, .96); border-radius: 14px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 40px rgba(20, 28, 40, .15); backdrop-filter: blur(8px) saturate(125%); -webkit-backdrop-filter: blur(8px) saturate(125%); transform: translateX(-50%); }
.mega-menu[hidden] { display: none; }
.mega-menu-column { min-width: 0; }
.mega-menu-column > p { margin: 0 0 12px; color: #9299a3; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.mega-menu-link { display: flex; min-width: 0; align-items: center; gap: 12px; margin: 2px 0; padding: 10px 9px; border-radius: 9px; color: #515b67; transition: color .15s, background .15s; }
.mega-menu-link:hover, .mega-menu-link.active { color: #202a35; background: #f4f6f8; }
.mega-menu-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid #e8ebef; border-radius: 9px; color: #697889; background: #fafbfc; }
.mega-menu-icon :is(svg, .win-symbol) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega-menu-link > span:last-child { display: grid; min-width: 0; gap: 4px; }
.mega-menu-link strong { overflow: hidden; color: inherit; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.mega-menu-link small { overflow: hidden; color: #9299a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { flex: 0 0 auto; gap: 7px; }
.topbar-actions form { margin: 0; }
.top-avatar { margin-left: 0; }
.mobile-menu-toggle { display: none; }
.page-content { max-width: 1680px; }

@media (max-width: 1120px) {
  .topbar { gap: 15px; padding: 0 20px; }
  .primary-nav { gap: 0; }
  .nav-direct, .nav-menu-trigger { padding-right: 9px; padding-left: 9px; font-size: 11px; }
  .topbar-actions { gap: 3px; }
}

@media (max-width: 900px) {
  .topbar { width: calc(100% - 16px); min-height: 64px; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 0 16px; }
  .mobile-menu-toggle { display: inline-grid; order: 3; }
  .primary-nav { position: absolute; z-index: 51; top: calc(100% + 1px); right: 12px; left: 12px; display: none; max-height: calc(100vh - 82px); flex: initial; flex-direction: column; align-items: stretch; overflow-y: auto; padding: 9px; border: 1px solid #e8ebef; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(20, 28, 40, .16); }
  body.nav-open .primary-nav { display: flex; }
  .nav-direct, .nav-menu-trigger { width: 100%; min-height: 43px; justify-content: space-between; padding: 0 12px; border: 0; border-radius: 8px; text-align: left; }
  .nav-direct.active, .nav-menu.has-active .nav-menu-trigger { background: #f0f1f3; }
  .nav-menu { display: block; }
  .mega-menu { position: static; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 8px 15px; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .mega-menu-column > p { margin-left: 9px; }
  .topbar-actions { margin-left: auto; }
  .sidebar-brand-copy { max-width: clamp(112px, calc(100vw - 240px), 250px); }
  .main-content { width: 100%; margin: 0; }
}

@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .sidebar-brand { font-size: 15px; }
  .sidebar-logo { width: 32px; height: 32px; }
  .topbar-actions { gap: 1px; }
  .top-avatar { width: 29px; height: 29px; font-size: 9px; }
  .mega-menu { padding-right: 4px; padding-left: 4px; }
}

.theme-toggle-form { display: flex; margin: 0; }
.theme-toggle { color: inherit; }
.theme-alert { margin: 14px auto 0; width: min(100% - 48px, 1608px); }
html:is([data-theme="Dark"], [data-theme="Gray"]) {
  color-scheme: dark;
  --bs-body-color: #f3f3f3;
  --bs-body-color-rgb: 243, 243, 243;
  --bs-body-bg: #202020;
  --bs-body-bg-rgb: 32, 32, 32;
  --bs-emphasis-color: #f3f3f3;
  --bs-emphasis-color-rgb: 243, 243, 243;
  --bs-secondary-color: #b8b8b8;
  --bs-secondary-color-rgb: 184, 184, 184;
  --bs-tertiary-color: #999;
  --bs-tertiary-color-rgb: 153, 153, 153;
  --bs-secondary-bg: #333;
  --bs-secondary-bg-rgb: 51, 51, 51;
  --bs-tertiary-bg: #2b2b2b;
  --bs-tertiary-bg-rgb: 43, 43, 43;
  --bs-border-color: #414141;
  --bs-border-color-translucent: rgba(255, 255, 255, .14);
  --bs-link-color: #8ab4f8;
  --bs-link-hover-color: #a9c7f7;
  --bs-form-control-bg: #242424;
  --bs-form-control-color: #ededed;
  --bs-form-control-border-color: #484848;
  --bs-form-control-disabled-bg: #333;
  --bs-form-select-bg: #242424;
  --bs-form-select-color: #ededed;
  --bs-form-select-border-color: #484848;
  --bs-code-color: #d6b5ff;
  --bs-highlight-bg: #514725;
  --bs-highlight-color: #f5e4ab;
  --bs-table-color: #d0d0d0;
  --bs-table-bg: transparent;
  --bs-table-border-color: #414141;
  --bs-table-striped-color: #dedede;
  --bs-table-striped-bg: rgba(255, 255, 255, .035);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(255, 255, 255, .06);
  --bs-table-active-color: #fff;
  --bs-table-active-bg: rgba(255, 255, 255, .08);
  --bg-body: #202020;
  --text-main: #f3f3f3;
  --text-muted: #b8b8b8;
  --border-color: #414141;
  --primary: #3a78c2;
  --surface: #2b2b2b;
  --success: #b8b8b8;
  --warning: #b8b8b8;
  --shadow-card: 0 3px 14px rgba(0, 0, 0, .2);
  --ink: #f3f3f3;
  --muted: #b8b8b8;
  --line: #414141;
  --page: #202020;
  --blue: #8ab4f8;
  --blue-dark: #a9c7f7;
  background: var(--bg-body);
}
html:is([data-theme="Dark"], [data-theme="Gray"]) body { color: var(--text-main); background: var(--bg-body); }
html:is([data-theme="Dark"], [data-theme="Gray"]) a { color: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .topbar {
  border-color: rgba(74, 74, 74, .85);
  background: rgba(43, 43, 43, .92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .sidebar-brand,
html:is([data-theme="Dark"], [data-theme="Gray"]) .sidebar-brand:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-direct,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu-trigger,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-direct:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu-trigger:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu.is-open .nav-menu-trigger,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu.has-active .nav-menu-trigger,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-direct.active { color: #e3eaf2; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .sidebar-brand-copy small { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-direct.active,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu.has-active .nav-menu-trigger { border-bottom-color: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-direct.active,
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-menu.has-active .nav-menu-trigger { background-color: rgba(255, 255, 255, .06); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-logout { color: #ffaaa4; background: transparent; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .nav-logout:hover { color: #ffd2ce; background: transparent; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-tooltip { border-color: #484848; color: #dedede; background: #292929; box-shadow: 0 10px 28px rgba(0, 0, 0, .42); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-tooltip strong { color: #fff; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-tooltip > span { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-tooltip small { color: #aaa; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-logout-button { color: #ffaaa4; background: #482b2a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .session-logout-button:hover { color: #ffc0bb; background: #5a3331; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu {
  border-color: #484848;
  background: rgba(43, 43, 43, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .36);
}
@media (max-width: 900px) {
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav {
    border-color: #484848;
    background: #2b2b2b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-direct,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu-trigger,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-direct:hover,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu-trigger:hover,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu.is-open .nav-menu-trigger,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu.has-active .nav-menu-trigger { color: #e3e3e3; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu-trigger :is(svg, .win-symbol) { color: #b8b8b8; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-direct.active,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .nav-menu.has-active .nav-menu-trigger {
    color: #a9c7f7;
    background: #383838;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu {
    border: 1px solid #484848;
    border-radius: 10px;
    background: #242424;
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-column > p { color: #a8a8a8; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-link { color: #dedede; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-link:hover,
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-link.active { color: #fff; background: #393939; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-link small { color: #aaa; }
  html:is([data-theme="Dark"], [data-theme="Gray"]) .primary-nav .mega-menu-icon { border-color: #4a4a4a; color: #c8c8c8; background: #363636; }
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-column > p,
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-link small,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-search { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-link { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-link:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-link.active { color: #fff; background: #3b3b3b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .mega-menu-icon,
html:is([data-theme="Dark"], [data-theme="Gray"]) .icon-button:hover { border-color: #4a4a4a; color: #e0e0e0; background: #3a3a3a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-search { border-color: #454545; background: #242424; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-search input { color: #f0f0f0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .icon-button,
html:is([data-theme="Dark"], [data-theme="Gray"]) .icon-button:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .theme-toggle { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .notification-count { border-color: #2b2b2b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .page-heading h1,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-heading h1,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-panel-heading h2,
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-table-heading h2,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-trend-heading h3,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-metric .metric-value,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-card strong,
html:is([data-theme="Dark"], [data-theme="Gray"]) .chart-summary strong,
html:is([data-theme="Dark"], [data-theme="Gray"]) .breakdown-total strong { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .muted,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-subtitle,
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-label,
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-caption,
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-trend.trend-neutral,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-counts-heading > span,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-trend-heading > span,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-card > div span,
html:is([data-theme="Dark"], [data-theme="Gray"]) .breakdown-total span,
html:is([data-theme="Dark"], [data-theme="Gray"]) .chart-summary span,
html:is([data-theme="Dark"], [data-theme="Gray"]) .cell-subtitle { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-metric,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-panel,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-card,
html:is([data-theme="Dark"], [data-theme="Gray"]) .panel,
html:is([data-theme="Dark"], [data-theme="Gray"]) .card-panel,
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-card,
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-date-form,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-counts {
  border-color: #414141;
  background: #2b2b2b;
  box-shadow: var(--shadow-card);
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-counts-heading h2 { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-total { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-total .heatmap-total-label,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-breakdown,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-weekday { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-toggle { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-toggle > span.is-active { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-switch { border-color: #666; background: #4a4a4a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-switch[aria-checked="true"] { border-color: #5c91e0; background: #2458a6; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day strong { color: #f4f4f4; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-0,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-0 { border-color: #454545; border-style: dashed; background: #353535; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-0 { color: #8a8a8a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-1,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-1 { border-color: #853b3b; background: #632d30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-2,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-2 { border-color: #8c5734; background: #684229; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-3,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-3 { border-color: #89773b; background: #65582c; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-4,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-4 { border-color: #5e8747; background: #486637; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-5,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-5 { border-color: #5c91e0; color: #fff; background: #2458a6; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-5 strong { color: #fff; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-6,
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-swatch.level-6 { border-color: #a984df; color: #fff; background: #633d91; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.level-6 strong { color: #fff; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.is-future { border-color: #454545; background: #353535; color: #8a8a8a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-day.is-future strong { color: #8a8a8a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .order-heatmap-legend { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-card { border-color: #414141; background: #333; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-deliveries-panel { border-color: #3b5369; background: linear-gradient(115deg, #303030 0%, #2b2b2b 75%); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-deliveries-heading h2 { color: #a9c7f7; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-deliveries-panel .panel-count { color: #b5d0f7; background: #343c47; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-summary span { border-color: #484848; color: #d0d0d0; background: #353535; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-summary span:first-child { border-color: #5c4b2e; color: #f0c36d; background: #403522; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-summary span:nth-child(2) { border-color: #365643; color: #79d6a5; background: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-summary span:last-child { border-color: #484848; color: #c5c5c5; background: #303030; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-summary strong { color: inherit; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-alert { border-color: #405a74; color: #c0d7f7; background: #303944; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .dashboard-alert.error { border-color: #704246; color: #f1b2b4; background: #342124; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .button-primary { border-color: #3a78c2; color: #fff; background: #3a78c2; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .button-secondary {
  border-color: #484848;
  color: #dedede;
  background: #363636;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .button-secondary:hover { border-color: #666; color: #fff; background: #444; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-control,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-select,
html:is([data-theme="Dark"], [data-theme="Gray"]) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html:is([data-theme="Dark"], [data-theme="Gray"]) select,
html:is([data-theme="Dark"], [data-theme="Gray"]) textarea {
  border-color: #484848;
  color: #ededed;
  background-color: #242424;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) input::placeholder,
html:is([data-theme="Dark"], [data-theme="Gray"]) textarea::placeholder { color: #a5a5a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .field-label,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-label,
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-date-form .field-label { color: #dedede; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .table,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list),
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list) td,
html:is([data-theme="Dark"], [data-theme="Gray"]) .panel .table,
html:is([data-theme="Dark"], [data-theme="Gray"]) .compact-panel .table td { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transactions-table { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transactions-table thead,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list) thead { color: #c0c0c0; background: #333; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .table {
  --bs-table-color: #d0d0d0;
  --bs-table-bg: transparent;
  --bs-table-border-color: #414141;
  --bs-table-striped-color: #dedede;
  --bs-table-striped-bg: rgba(255, 255, 255, .035);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(255, 255, 255, .06);
  --bs-table-active-color: #fff;
  --bs-table-active-bg: rgba(255, 255, 255, .08);
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .table > :not(caption) > * > * {
  color: var(--bs-table-color);
  background-color: transparent;
  border-bottom-color: var(--bs-table-border-color);
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .table > thead > tr > th,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-light,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-light > th,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-light > td,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-light > * > th,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-light > * > td {
  --bs-table-color: #d8d8d8;
  --bs-table-bg: #333;
  --bs-table-border-color: #484848;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .table > :not(caption) > * > .table-light,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table > :not(caption) > .table-light > * {
  color: #d8d8d8;
  background-color: #333;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .transactions-table td,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list) td,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list) th { border-color: #414141; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transactions-table tbody tr:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table:not(.print-items):not(.size-list) tbody tr:hover { background: #393939; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr { color: #d0d0d0; background: #2b2b2b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr > td { border-color: #414141; background-color: transparent; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr:hover { background: #393939; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr[data-sort-status="1"] { color: #b8b8b8; background: #262626; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr[data-sort-status="1"] .customer-name,
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr[data-sort-status="1"] .revenue-cell { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .upcoming-table tbody tr[data-sort-status="1"]:hover { background: #393939; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-table tbody tr[data-sort-status="1"] { color: #b8b8b8; background: #262626; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-table tbody tr[data-sort-status="1"] .customer-name,
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-table tbody tr[data-sort-status="1"] .revenue-cell,
html:is([data-theme="Dark"], [data-theme="Gray"]) .customer-name,
html:is([data-theme="Dark"], [data-theme="Gray"]) .folio-cell,
html:is([data-theme="Dark"], [data-theme="Gray"]) .revenue-cell { color: #e0e0e0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-sort-button:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-sort-button:focus-visible { color: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transactions-table tbody tr[hidden],
html:is([data-theme="Dark"], [data-theme="Gray"]) .deliveries-table tbody tr[hidden] { display: none; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transaction-status.success { color: #79d6a5; background: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transaction-status.pending { color: #f0c36d; background: #403522; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .transaction-status.refunded { color: #c1c1c1; background: #3a3a3a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-type-badge { color: #9fc7ff; background: #303b49; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-type-badge.baking { color: #f0c36d; background: #403522; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-type-badge.sales { color: #79d6a5; background: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-type-badge.products { color: #9fc7ff; background: #303b49; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .delivery-action { color: #79d6a5; background: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .delivery-action:hover { color: #111; background: #79d6a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .delivered-action-label,
html:is([data-theme="Dark"], [data-theme="Gray"]) .empty-state { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .breakdown-legend { border-color: #414141; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .breakdown-legend > div,
html:is([data-theme="Dark"], [data-theme="Gray"]) .breakdown-legend strong { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .panel-icon { color: #c7c7c7; background: #3a3a3a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .user-avatar { border-color: #544a37; color: #f0d6a0; background: #403728; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .powered-footer { border-color: #303a46; color: #9aa6b3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .powered-footer > span:last-child { color: #c6d0da; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .privacy-card section + section,
html:is([data-theme="Dark"], [data-theme="Gray"]) .privacy-card .privacy-note { border-color: #414141; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .privacy-card h2 { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .privacy-card p,
html:is([data-theme="Dark"], [data-theme="Gray"]) .privacy-card li { color: #d0d0d0; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .login-page,
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main { color-scheme: dark; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-topbar { border-color: var(--line); background-color: var(--surface); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-brand,
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-nav-button { color: var(--ink); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-nav-button.active,
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-nav-button:hover {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .login-showcase-brand { color: #fff; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .product-catalog-image-placeholder { background: #2b2b2b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-icon.blue,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-icon.blue {
  border-color: #3b526b;
  color: #9fc7ff;
  background: #303b49;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-icon.violet,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-icon.violet {
  border-color: #54496b;
  color: #c2a7ff;
  background: #3c334b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-icon.amber,
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-icon.amber {
  border-color: #5c4b2e;
  color: #f0c36d;
  background: #403522;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-icon.green {
  border-color: #365643;
  color: #79d6a5;
  background: #263b30;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .document-count-icon {
  border-color: #494949;
  color: #d7d7d7;
  background: #383838;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-sparkline polyline { stroke: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-sparkline.violet-line polyline { stroke: #c2a7ff; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-sparkline.amber-line polyline { stroke: #f0c36d; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .metric-sparkline.green-line polyline { stroke: #79d6a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .revenue-dot { background: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .collected-dot { background: #79d6a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .outstanding-dot { background: #f0c36d; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .trend-positive { color: #79d6a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .trend-negative { color: #f28b82; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-dark,
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-black,
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-body,
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-body-emphasis { color: #ededed !important; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-muted,
html:is([data-theme="Dark"], [data-theme="Gray"]) .text-body-secondary { color: #b8b8b8 !important; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .bg-white,
html:is([data-theme="Dark"], [data-theme="Gray"]) .bg-light,
html:is([data-theme="Dark"], [data-theme="Gray"]) .bg-body,
html:is([data-theme="Dark"], [data-theme="Gray"]) .bg-body-tertiary,
html:is([data-theme="Dark"], [data-theme="Gray"]) .list-group-item,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dropdown-menu,
html:is([data-theme="Dark"], [data-theme="Gray"]) .modal-content,
html:is([data-theme="Dark"], [data-theme="Gray"]) .offcanvas,
html:is([data-theme="Dark"], [data-theme="Gray"]) .accordion-item,
html:is([data-theme="Dark"], [data-theme="Gray"]) .popover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .toast,
html:is([data-theme="Dark"], [data-theme="Gray"]) .page-link {
  border-color: #414141;
  color: #ededed;
  background-color: #2b2b2b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .bg-body-secondary,
html:is([data-theme="Dark"], [data-theme="Gray"]) .list-group-item-action:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .list-group-item-action:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dropdown-item:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .dropdown-item:focus { color: #fff; background-color: #3a3a3a; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .dropdown-divider,
html:is([data-theme="Dark"], [data-theme="Gray"]) hr { border-color: #484848; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .btn-light,
html:is([data-theme="Dark"], [data-theme="Gray"]) .btn-outline-light { border-color: #484848; color: #ededed; background-color: #363636; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .btn-light:hover,
html:is([data-theme="Dark"], [data-theme="Gray"]) .btn-outline-light:hover { border-color: #666; color: #fff; background-color: #444; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .alert-primary,
html:is([data-theme="Dark"], [data-theme="Gray"]) .alert-info { border-color: #3b5369; color: #c7dcf7; background-color: #303944; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .alert-success { border-color: #365643; color: #9cddb7; background-color: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .alert-warning { border-color: #5c4b2e; color: #f0c36d; background-color: #403522; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .alert-danger { border-color: #704246; color: #f1b2b4; background-color: #342124; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-check-input {
  border-color: #686868;
  background-color: #333;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-check-input:checked { border-color: #3a78c2; background-color: #3a78c2; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-check-input:focus { border-color: #8ab4f8; box-shadow: 0 0 0 .25rem rgba(138, 180, 248, .2); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-control:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-select:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) input:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) select:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) textarea:focus { border-color: #8ab4f8; box-shadow: 0 0 0 .2rem rgba(138, 180, 248, .18); }
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select,
html:is([data-theme="Dark"], [data-theme="Gray"]) .date-chip {
  border-color: #484848;
  color: #dedede;
  background: #303030;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select select,
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select select option {
  color: #ededed;
  background-color: #303030;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select input[type="month"] {
  color-scheme: dark;
  color: #ededed;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select select:focus,
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select input[type="month"]:focus { outline-color: #8ab4f8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .period-select :is(svg, .win-symbol),
html:is([data-theme="Dark"], [data-theme="Gray"]) .date-chip :is(svg, .win-symbol) { color: #bdbdbd; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .report-note {
  border-color: #414141;
  color: #ededed;
  background: #2b2b2b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .report-note strong { color: #f3f3f3; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .report-note span { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .count-badge {
  border: 1px solid #3b526b;
  color: #9fc7ff;
  background: #303b49;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack input:not([type="checkbox"]),
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack select,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack textarea {
  border-color: #484848;
  color: #ededed;
  background: #242424;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack input::placeholder,
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack textarea::placeholder { color: #a5a5a5; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .form-stack label { color: #dedede; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-editor {
  border-color: #484848;
  background: #303030;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-editor-help { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-editor-fields label { color: #dedede; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-editor-fields input {
  border-color: #484848;
  color: #ededed;
  background: #242424;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list-wrap {
  border-color: #484848;
  background: #2b2b2b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list { color: #d0d0d0; background: #2b2b2b; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list th,
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list td {
  border-color: #414141;
  color: #d0d0d0;
  background: #2b2b2b;
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list th { color: #c0c0c0; background: #333; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-list-empty { color: #b8b8b8; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .size-remove { border: 1px solid #704246; color: #f1b2b4; background: #342124; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .report-card-icon { border: 1px solid #3b526b; color: #9fc7ff; background: #303b49; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .report-card-icon.baking { border-color: #365643; color: #79d6a5; background: #263b30; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .admin-form-panel .btn-outline-secondary,
html:is([data-theme="Dark"], [data-theme="Gray"]) .table-actions .btn-outline-secondary { border-color: #555; color: #dedede; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .status-inactive { border: 1px solid #5c4b2e; color: #f0c36d; background: #403522; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .status-active { border: 1px solid #365643; color: #79d6a5; background: #263b30; }
@media print {
  html:is([data-theme="Dark"], [data-theme="Gray"]), html:is([data-theme="Dark"], [data-theme="Gray"]) body { color: #202a35 !important; background: white !important; }
}

html[data-theme="Gray"] {
  color-scheme: dark;
  --bs-body-color: #f0f3f5;
  --bs-body-color-rgb: 240, 243, 245;
  --bs-body-bg: #485159;
  --bs-body-bg-rgb: 72, 81, 89;
  --bs-emphasis-color: #f6f7f8;
  --bs-emphasis-color-rgb: 246, 247, 248;
  --bs-secondary-color: #c4cbd0;
  --bs-secondary-color-rgb: 196, 203, 208;
  --bs-tertiary-color: #adb6bd;
  --bs-tertiary-color-rgb: 173, 182, 189;
  --bs-secondary-bg: #56616b;
  --bs-secondary-bg-rgb: 86, 97, 107;
  --bs-tertiary-bg: #4d5861;
  --bs-tertiary-bg-rgb: 77, 88, 97;
  --bs-border-color: #6b7781;
  --bs-border-color-translucent: rgba(235, 240, 244, .16);
  --bs-link-color: #a6c9f1;
  --bs-link-hover-color: #c3ddfa;
  --bs-form-control-bg: #3d474f;
  --bs-form-control-color: #f0f3f5;
  --bs-form-control-border-color: #71808a;
  --bs-form-control-disabled-bg: #515c65;
  --bs-form-select-bg: #3d474f;
  --bs-form-select-color: #f0f3f5;
  --bs-form-select-border-color: #71808a;
  --bs-code-color: #e0c3ff;
  --bs-highlight-bg: #63583b;
  --bs-highlight-color: #f5e4ab;
  --bs-table-color: #edf0f2;
  --bs-table-bg: transparent;
  --bs-table-border-color: #6b7781;
  --bs-table-striped-color: #f0f3f5;
  --bs-table-striped-bg: rgba(255, 255, 255, .035);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(255, 255, 255, .07);
  --bs-table-active-color: #fff;
  --bs-table-active-bg: rgba(255, 255, 255, .09);
  --bg-body: #485159;
  --text-main: #f0f3f5;
  --text-muted: #c4cbd0;
  --border-color: #6b7781;
  --primary: #4d86c6;
  --surface: #56616b;
  --success: #92caa6;
  --warning: #e3c179;
  --shadow-card: 0 3px 14px rgba(0, 0, 0, .22);
  --ink: #f0f3f5;
  --muted: #c4cbd0;
  --line: #6b7781;
  --page: #4d5861;
  --blue: #a6c9f1;
  --blue-dark: #bfd9f6;
  background: var(--bg-body);
}
html[data-theme="Gray"] body { color: var(--text-main); background: var(--bg-body); }
html[data-theme="Gray"] a { color: #a6c9f1; }
html[data-theme="Gray"] .topbar {
  border-color: rgba(107, 119, 129, .9);
  background: rgba(76, 86, 95, .94);
}
html[data-theme="Gray"][data-navigation="Side"] .primary-nav,
html[data-theme="Gray"][data-navigation-layout="Fixed"] .primary-nav {
  border-color: #6b7781;
  background: #535e67;
}
html[data-theme="Gray"] .mega-menu {
  border-color: #6b7781;
  background: rgba(67, 77, 86, .98);
}
html[data-theme="Gray"] .dashboard-metric,
html[data-theme="Gray"] .dashboard-panel,
html[data-theme="Gray"] .form-card,
html[data-theme="Gray"] .panel,
html[data-theme="Gray"] .card-panel,
html[data-theme="Gray"] .metric-card,
html[data-theme="Gray"] .deliveries-date-form,
html[data-theme="Gray"] .document-counts {
  border-color: var(--border-color);
  background: var(--surface);
}
html[data-theme="Gray"] .form-control,
html[data-theme="Gray"] .form-select,
html[data-theme="Gray"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-theme="Gray"] select,
html[data-theme="Gray"] textarea {
  border-color: #71808a;
  color: #f0f3f5;
  background-color: #3d474f;
}
html[data-theme="Gray"] .form-control::placeholder,
html[data-theme="Gray"] input::placeholder,
html[data-theme="Gray"] textarea::placeholder { color: #c4cbd0; }
html[data-theme="Gray"] .table:not(.print-items):not(.size-list) thead {
  color: #f0f3f5;
  background: #59646e;
}
html[data-theme="Gray"] .table-light,
html[data-theme="Gray"] .table-light > th,
html[data-theme="Gray"] .table-light > td,
html[data-theme="Gray"] .table-light > * > th,
html[data-theme="Gray"] .table-light > * > td {
  --bs-table-color: #f0f3f5;
  --bs-table-bg: #59646e;
  --bs-table-border-color: #6b7781;
}
/* ---- Acceso con Google, Mi usuario y proveedores ---- */
.login-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-login-button, .google-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; }
.google-login-button:hover, .google-link-button:hover { border-color: var(--blue); background: var(--surface); color: var(--ink); }
.google-login-button :is(svg, .win-symbol), .google-link-button :is(svg, .win-symbol) { width: 18px; height: 18px; flex: 0 0 auto; }
.profile-page { width: min(100%, 1120px); margin-inline: auto; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.profile-grid > .profile-identity { grid-column: 1 / -1; }
.profile-preferences-card { grid-column: 1 / -1; }
.profile-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-card-heading h2 { margin: 0; color: var(--ink); font-size: 16px; }
.profile-card-heading p { margin: 2px 0 0; font-size: 12px; }
.profile-section-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); background: var(--page); }
.profile-section-icon :is(svg, .win-symbol) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-provider-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.profile-provider-icon :is(svg, .win-symbol) { width: 20px; height: 20px; }
.profile-link-details { display: grid; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.profile-link-details dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.profile-link-details dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; word-break: break-all; }
.profile-link-hint { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.provider-config-form { max-width: 560px; }
.provider-redirect-note { margin: 14px 0; }

/* ── Pantalla Mi usuario ──────────────────────────────────────────── */
.profile-identity { position: relative; display: block; overflow: hidden; padding: 0; }
.identity-cover { height: 112px; background: linear-gradient(112deg, #00c8d7 0%, #1685ee 48%, #3346d3 100%); }
.identity-content { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 0 22px 16px; }
.identity-avatar { display: grid; width: 92px; height: 92px; place-items: center; margin-top: -46px; border: 5px solid var(--surface); border-radius: 50%; background: var(--blue-dark, #202a35); color: #fff; font-size: 25px; font-weight: 750; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(18, 30, 48, .16); }
.identity-main { min-width: 0; padding-top: 14px; }
.identity-main .eyebrow { margin: 0 0 4px; font-size: 9px; }
.identity-main h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.identity-username { margin: 2px 0 9px; color: var(--muted); font-size: 12px; }
.identity-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pill.role-pill { color: #28589b; background: #eff5ff; border: 1px solid #dbe7fc; }
.identity-meta { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 4px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.identity-meta dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.identity-meta dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 650; word-break: break-word; }
.readonly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--page); }
.readonly-grid .field label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.readonly-grid input { color: var(--muted); background: var(--page); border-color: var(--line); cursor: not-allowed; opacity: 1; }
.preference-group + .preference-group { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.preference-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.preference-group-heading h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.preference-group-heading > span { color: var(--muted); font-size: 10px; }
.profile-preference-description { margin: -4px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.preference-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preference-options form { display: flex; min-width: 0; margin: 0; }
.preference-options .preference-option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(40px, 1fr); width: 100%; min-height: 122px; align-items: start; justify-content: stretch; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.preference-option:hover { border-color: var(--blue); transform: translateY(-1px); }
.preference-option.is-selected { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 16%, transparent); }
.preference-option:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.theme-preview { display: flex; width: 100%; min-width: 0; height: 56px; gap: 4px; overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 7px; }
.theme-preview-light { background: #f5f7fa; }
.theme-preview-dark { border-color: #3e424b; background: #20232a; }
.theme-preview-gray { border-color: #73808a; background: #485159; }
.preview-sidebar { width: 22%; border-radius: 3px; background: #dce3ec; }
.theme-preview-dark .preview-sidebar { background: #353a44; }
.theme-preview-gray .preview-sidebar { background: #626e78; }
.preview-content { display: grid; flex: 1; align-content: center; gap: 3px; padding: 3px; }
.preview-content i { display: block; height: 5px; border-radius: 3px; background: #fff; }
.preview-content i:nth-child(2) { width: 78%; }
.preview-content i:nth-child(3) { width: 56%; }
.theme-preview-dark .preview-content i { background: #3d424c; }
.theme-preview-gray .preview-content i { background: #6b7781; }
.preference-option-label { display: grid; gap: 2px; }
.preference-option-label strong { font-size: 11px; font-weight: 750; }
.preference-option-label small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.preference-selected { position: absolute; top: 10px; right: 10px; padding: 3px 6px; border-radius: 5px; color: #155e9b; background: #e7f2ff; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.preference-selected:empty { display: none; }
.navigation-preview { display: flex; width: 100%; min-width: 0; height: 56px; gap: 4px; overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fa; }
.nav-preview-topbar { display: flex; height: 9px; flex: 0 0 100%; gap: 3px; padding: 2px; border-radius: 3px; background: #dce3ec; }
.nav-preview-topbar i { width: 20%; border-radius: 2px; background: #fff; }
.nav-preview-page { display: grid; flex: 1; align-content: center; gap: 3px; padding: 3px; }
.nav-preview-page i { display: block; width: 88%; height: 5px; border-radius: 3px; background: #dce3ec; }
.nav-preview-page i:nth-child(2) { width: 68%; }
.nav-preview-page i:nth-child(3) { width: 48%; }
.entry-mode-preview { display: flex; width: 100%; min-width: 0; height: 56px; align-items: center; gap: 5px; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fa; }
.entry-preview-product { display: grid; height: 42px; flex: 1 1 0; gap: 3px; padding: 3px; border: 1px solid #dce3ec; border-radius: 4px; background: #fff; }
.entry-preview-product::before { content: ""; height: 20px; border-radius: 2px; background: linear-gradient(135deg, #dce8f4, #a9c5e1); }
.entry-preview-product::after { content: ""; width: 70%; height: 4px; border-radius: 2px; background: #dce3ec; }
.entry-preview-cart { width: 24%; height: 42px; border: 1px solid #b8d5fa; border-radius: 4px; background: linear-gradient(to bottom, #e8f2ff 0 8px, #fff 8px); }
.entry-preview-form { width: 25%; height: 29px; border: 1px solid #dce3ec; border-radius: 3px; background: repeating-linear-gradient(to bottom, #fff 0 7px, #dce3ec 7px 8px); }
.entry-preview-table { height: 38px; flex: 1 1 auto; border: 1px solid #dce3ec; border-radius: 3px; background: repeating-linear-gradient(to bottom, #fff 0 8px, #dce3ec 8px 9px); }
.entry-mode-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) {
  .entry-mode-options { grid-template-columns: minmax(0, 1fr); }
}
.navigation-preview-top { flex-wrap: wrap; align-content: flex-start; }
.navigation-preview-side .nav-preview-page { border-radius: 3px; background: #fff; }
.nav-preview-sidebar { display: grid; width: 25%; flex: 0 0 auto; align-content: center; gap: 3px; padding: 4px; border-radius: 3px; background: #dce3ec; }
.nav-preview-sidebar i { height: 4px; border-radius: 2px; background: #fff; }
.nav-preview-sidebar i:nth-child(2) { width: 75%; }
.nav-preview-sidebar i:nth-child(3) { width: 55%; }
.navigation-preview-fixed { gap: 3px; }
.navigation-preview-fixed .nav-preview-sidebar { width: 21%; }
.navigation-preview-fixed .nav-preview-page { border-radius: 3px; background: #fff; }
.theme-preference-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.navigation-preference-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .theme-preference-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navigation-preference-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .theme-preference-options { grid-template-columns: minmax(0, 1fr); }
  .navigation-preference-options { grid-template-columns: minmax(0, 1fr); }
}
.profile-grid form .btn { justify-self: start; }
@media (max-width: 860px) {
  .identity-content { grid-template-columns: 78px minmax(0, 1fr); gap: 10px 12px; }
  .identity-avatar { width: 76px; height: 76px; margin-top: -38px; }
  .identity-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-grid > .profile-identity { grid-column: auto; }
  .identity-cover { height: 82px; }
  .identity-content { grid-template-columns: 62px minmax(0, 1fr); padding: 0 14px 12px; }
  .identity-avatar { width: 60px; height: 60px; margin-top: -30px; border-width: 3px; font-size: 17px; }
  .identity-main h2 { font-size: 18px; }
  .identity-meta { gap: 10px 12px; padding-top: 12px; }
}
@media (max-width: 390px) {
  .preference-options { grid-template-columns: minmax(0, 1fr); }
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .status-pill.role-pill { border: 1px solid #2d4a6b; color: #8fc0f5; background: #1e2c3d; }
html:is([data-theme="Dark"], [data-theme="Gray"]) .preference-selected { color: #a9c7f7; background: #26384e; }

.reference-ticket {
  box-sizing: border-box;
  width: 100%;
  max-width: 114.3mm;
  margin: 0 auto;
  color: #111;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 5pt;
  line-height: 1.2;
}
.reference-ticket * { font-size: inherit; }
.reference-ticket-copy-label {
  margin-bottom: 1.5mm;
  padding: .8mm 1mm;
  border: .1mm solid #777;
  color: #111;
  font-size: 6pt;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.reference-ticket-copies { display: block; }
.reference-ticket-copy { break-after: page; page-break-after: always; }
.reference-ticket-copy:last-child { break-after: auto; page-break-after: auto; }
.reference-ticket-header {
  display: grid;
  grid-template-columns: 15mm 32mm minmax(0, 1fr);
  align-items: center;
  gap: 3mm;
  margin-bottom: 3mm;
  padding-bottom: 2mm;
  border-bottom: .1mm solid #777;
  text-align: center;
}
.reference-ticket-logos { display: flex; align-items: center; gap: 2mm; }
.reference-ticket-logos img:first-child { width: 15mm; height: 15mm; object-fit: contain; }
.reference-ticket-logos img:last-child { width: 32mm; height: 9.5mm; object-fit: cover; object-position: center 48%; }
.reference-ticket-seasonal { display: grid; gap: 1mm; }
.reference-ticket-seasonal strong { color: #111; line-height: 1; }
.reference-ticket-seasonal span { color: #222; }
.reference-ticket-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: #111;
  font-family: Arial, sans-serif;
}
.reference-ticket-table th,
.reference-ticket-table td {
  padding: 1.5mm 2mm;
  border: .1mm solid #777;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.reference-ticket-table th { font-weight: 700; }
.reference-ticket-identification th:first-child { width: 20%; }
.reference-ticket-identification td:nth-child(2) { width: 34%; }
.reference-ticket-identification th:nth-child(3) { width: 14%; }
.reference-ticket-identification td:nth-child(4) { width: 32%; }
.reference-ticket-identification tr:first-child th:nth-child(3),
.reference-ticket-identification tr:first-child td:nth-child(4) {
  color: #b54646;
  text-align: right;
}
.reference-ticket-identification tr th:first-child,
.reference-ticket-delivery th,
.reference-ticket-totals th { text-align: left; }
.reference-ticket-identification tr:first-child td:nth-child(2),
.reference-ticket-identification tr:last-child th,
.reference-ticket-identification tr:last-child td { text-align: left; }
.reference-ticket-identification tr:nth-child(2) td:first-of-type { text-align: left; }
.reference-ticket-identification .reference-ticket-manual-folio td { text-align: left; }
.reference-ticket-identification .reference-ticket-group {
  border-top: .4mm solid #555;
  background: #eee;
  text-align: center;
  letter-spacing: .04em;
}
.reference-ticket-identification .reference-ticket-folios th { width: 30%; text-align: left; }
.reference-ticket-identification .reference-ticket-folios td { width: 20%; }
.reference-ticket-type { text-align: center !important; font-weight: 700; }
.reference-ticket-table small { color: #666; font-weight: 400; }
.reference-ticket-delivery { width: 100%; margin-top: 2.5mm; table-layout: fixed; }
.reference-ticket-delivery th { width: 62%; }
.reference-ticket-delivery td { width: 38%; white-space: nowrap; overflow-wrap: normal; }
.reference-ticket-section-title {
  margin: 4mm 0 1.5mm;
  color: #111;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-align: center;
}
.reference-ticket-items { table-layout: fixed; }
.reference-ticket-items th,
.reference-ticket-items td { padding: .3mm .2mm; line-height: 1; }
.reference-ticket-items th,
.reference-ticket-items td { text-align: center; }
.reference-ticket-items .reference-ticket-unit-hint { color: #777; font-weight: 400; white-space: nowrap; }
.reference-ticket-items th:nth-child(n+2),
.reference-ticket-items td:nth-child(n+2) { white-space: nowrap; }
.reference-ticket-items tbody td:nth-child(2),
.reference-ticket-items.reference-ticket-baking-items tbody td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.reference-ticket-items tbody tr { break-inside: avoid; }
.reference-ticket-items:not(.reference-ticket-baking-items) th:nth-child(1) { width: 19%; }
.reference-ticket-items:not(.reference-ticket-baking-items) th:nth-child(2) { width: 26%; }
.reference-ticket-items:not(.reference-ticket-baking-items) th:nth-child(3) { width: 12%; }
.reference-ticket-items:not(.reference-ticket-baking-items) th:nth-child(4) { width: 21.5%; }
.reference-ticket-items:not(.reference-ticket-baking-items) th:nth-child(5) { width: 21.5%; }
.reference-ticket-baking-items th:nth-child(1) { width: 31%; }
.reference-ticket-baking-items th:nth-child(2) { width: 23%; }
.reference-ticket-baking-items th:nth-child(3) { width: 17%; }
.reference-ticket-baking-items th:nth-child(4) { width: 29%; }
.reference-ticket-totals { width: 58%; margin: 3mm 0 0 auto; }
.reference-ticket-totals th { width: 60%; }
.reference-ticket-totals td { text-align: center; white-space: nowrap; }
.reference-ticket-observations { margin-top: 3mm; }
.reference-ticket-observations th { text-align: center; }
.reference-ticket-observations td { min-height: 10mm; text-align: left; vertical-align: top; }
.reference-ticket-footer { margin-top: 3mm; }
.reference-ticket-footer th,
.reference-ticket-footer td { width: 50%; text-align: center; }
.thermal-ticket.reference-ticket { width: 76mm; max-width: none; padding: 3mm; font-size: 8pt; line-height: 1.3; }
.thermal-ticket.reference-ticket .reference-ticket-header {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2mm;
  margin-bottom: 3mm;
}
.thermal-ticket.reference-ticket .reference-ticket-logos img:first-child { width: 13mm; height: 13mm; }
.thermal-ticket.reference-ticket .reference-ticket-logos img:last-child { width: 29mm; height: 8.5mm; }
.thermal-ticket.reference-ticket .reference-ticket-copy-label { font-size: 8pt; }
.thermal-ticket.reference-ticket .reference-ticket-table th,
.thermal-ticket.reference-ticket .reference-ticket-table td { padding: 1mm; }
.thermal-ticket.reference-ticket .reference-ticket-items { display: block; table-layout: auto; }
.thermal-ticket.reference-ticket .reference-ticket-items thead { display: none; }
.thermal-ticket.reference-ticket .reference-ticket-items tbody { display: block; }
.thermal-ticket.reference-ticket .reference-ticket-items tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1mm 2mm;
  padding: 1.5mm 1mm;
  border-bottom: .1mm solid #777;
  break-inside: avoid;
}
.thermal-ticket.reference-ticket .reference-ticket-items tbody td {
  display: block;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.thermal-ticket.reference-ticket .reference-ticket-items tbody td::before {
  display: block;
  margin-bottom: .5mm;
  color: #555;
  font-size: 6pt;
  font-weight: 700;
  text-transform: uppercase;
}
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(1) {
  grid-area: 2 / 1;
  font-size: 8.5pt;
  font-weight: 700;
}
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(1)::before { content: "Cantidad"; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(2) {
  grid-area: 1 / 1 / 2 / -1;
  font-size: 8.5pt;
  font-weight: 700;
}
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(2)::before { content: "Producto"; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(3) {
  grid-area: 2 / 2;
  font-size: 8.5pt;
  font-weight: 700;
  text-align: right;
}
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(3)::before { content: "Tamaño"; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(4) { grid-area: 3 / 1; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(4)::before { content: "Precio unitario"; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(5) { grid-area: 3 / 2; text-align: right; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(5)::before { content: "Importe"; }
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(4),
.thermal-ticket.reference-ticket .reference-ticket-items:not(.reference-ticket-baking-items) tbody td:nth-child(5) { white-space: nowrap; }
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(1) {
  grid-area: 1 / 1 / 2 / -1;
  font-size: 8.5pt;
  font-weight: 700;
}
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(1)::before { content: "Servicio"; }
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(2) {
  grid-area: 2 / 2;
  font-size: 8.5pt;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(2)::before { content: "Precio unitario"; }
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(3) {
  grid-area: 3 / 1 / 4 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2mm;
  padding-top: 1mm !important;
  border-top: .1mm solid #ccc !important;
  text-align: right;
  font-weight: 700;
}
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(3)::before {
  content: "Adobo";
  display: inline;
  margin: 0;
}
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(4) {
  grid-area: 2 / 1;
  font-size: 8.5pt;
  font-weight: 700;
}
.thermal-ticket.reference-ticket .reference-ticket-items.reference-ticket-baking-items tbody td:nth-child(4)::before { content: "Cantidad (kg)"; }
.thermal-ticket.reference-ticket .reference-ticket-section-title {
  margin: 3mm 0 1.5mm;
  padding: 1mm 0;
  border-top: .1mm solid #777;
  border-bottom: .1mm solid #777;
  background: #eee;
  font-size: 8pt;
  letter-spacing: .06em;
  line-height: 1.2;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.thermal-ticket.reference-ticket .reference-ticket-totals { width: 100%; margin-top: 2mm; }
.thermal-ticket.reference-ticket .reference-ticket-observations,
.thermal-ticket.reference-ticket .reference-ticket-footer { margin-top: 2mm; }
.reference-ticket-identification tr.reference-ticket-folio th,
.reference-ticket-identification tr.reference-ticket-folio td,
.reference-ticket-identification tr.reference-ticket-email td { text-align: center; }
.thermal-ticket.thermal-58.reference-ticket {
  width: 54mm;
  padding: 0;
}
.thermal-ticket.thermal-58.reference-ticket .reference-ticket-scaled-content {
  box-sizing: border-box;
  width: 76mm;
  padding: 3mm;
  transform: scale(.71);
  transform-origin: top left;
}
@media print {
  .thermal-ticket.thermal-58.reference-ticket {
    width: 54mm !important;
    padding: 0 !important;
  }
  .thermal-ticket.thermal-58.reference-ticket .reference-ticket-scaled-content {
    padding: 2mm !important;
  }
  .reference-ticket { max-width: none; margin: 0; }
  .reference-ticket-copy { break-inside: avoid; }
  .reference-ticket-header,
  .reference-ticket-table,
  .reference-ticket-section-title { break-inside: avoid; }
}

html[data-navigation="Side"] .main-content {
  width: calc(100% - 252px);
  margin-left: 252px;
  transition: width .2s ease, margin-left .2s ease;
}
html[data-navigation="Side"] .primary-nav {
  position: fixed;
  z-index: 60;
  top: 16px;
  bottom: 16px;
  left: 14px;
  display: flex;
  width: 240px;
  max-height: none;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(225, 230, 236, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 34px rgba(26, 35, 48, .12);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  transform: none;
}
html[data-navigation="Side"] .nav-direct,
html[data-navigation="Side"] .nav-menu-trigger {
  width: 100%;
  min-height: 34px;
  justify-content: space-between;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  text-align: left;
}
html[data-navigation="Side"] .nav-logout-form { margin-top: auto; }
html[data-navigation="Side"] .nav-section-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #788493;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-navigation="Side"] .nav-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #9299a3;
  transition: transform .18s;
}
html[data-navigation="Side"] .nav-menu.is-open .nav-chevron {
  transform: rotate(180deg);
}
html[data-navigation="Side"] .nav-menu-trigger {
  gap: 9px;
}
html[data-navigation="Side"] .nav-direct,
html[data-navigation="Side"] .nav-menu-trigger {
  justify-content: flex-start;
  gap: 9px;
}
html[data-navigation="Side"] .nav-direct > .nav-section-icon,
html[data-navigation="Side"] .nav-menu-trigger > .nav-section-icon {
  flex: 0 0 16px;
}
html[data-navigation="Side"] .nav-direct > span:not(.nav-section-icon),
html[data-navigation="Side"] .nav-menu-trigger > span:not(.nav-section-icon):not(.nav-chevron) {
  flex: 1 1 auto;
  text-align: left;
}
html[data-navigation="Side"] .nav-menu-trigger > .nav-chevron {
  flex: 0 0 14px;
  margin-left: auto;
}
html[data-navigation="Side"] .side-nav-collapse {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #748092;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.side-nav-collapse,
.nav-section-icon { display: none; }
html[data-navigation="Side"] .side-nav-collapse:hover {
  color: #202a35;
  background: rgba(32, 42, 53, .06);
}
html[data-navigation="Side"] .side-nav-collapse :is(svg, .win-symbol) {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
html[data-navigation="Side"] .nav-menu.is-open .nav-menu-trigger {
  color: #20242a;
}
html[data-navigation="Side"] .nav-direct.active,
html[data-navigation="Side"] .nav-menu.has-active .nav-menu-trigger {
  color: #20242a;
  background: #edf2f7;
}
html[data-navigation="Side"] .nav-menu {
  display: block;
}
html[data-navigation="Side"] .mega-menu {
  position: static;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 6px 3px 7px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
html[data-navigation="Side"] .mega-menu[hidden] { display: none; }
html[data-navigation="Side"] .mega-menu-column > p {
  margin: 2px 0 3px 8px;
  font-size: 8px;
}
html[data-navigation="Side"] .mega-menu-link {
  min-height: 29px;
  gap: 7px;
  margin: 0;
  padding: 2px 6px;
}
html[data-navigation="Side"] .mega-menu-icon {
  width: 24px;
  height: 24px;
}
html[data-navigation="Side"] .mega-menu-icon :is(svg, .win-symbol) { width: 15px; height: 15px; }
html[data-navigation="Side"] .mega-menu-link strong { font-size: 10px; }
html[data-navigation="Side"] .mega-menu-link small { display: none; }
html[data-navigation="Side"] .topbar {
  justify-content: space-between;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .primary-nav {
  border-color: #484848;
  background: rgba(43, 43, 43, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-direct.active,
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-menu.has-active .nav-menu-trigger {
  color: #e3eaf2;
  background: rgba(255, 255, 255, .09);
}
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .mega-menu {
  background: transparent;
}
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-section-icon,
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .side-nav-collapse {
  color: #aeb8c4;
}
html[data-navigation="Side"] .nav-logout { color: #b42318; background: transparent; }
html[data-navigation="Side"] .nav-logout:hover { color: #991b1b; background: transparent; }
html[data-navigation="Side"] .nav-logout .nav-section-icon { color: currentColor; stroke: currentColor; }
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-logout { color: #ffaaa4; background: transparent; }
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-logout:hover { color: #ffd2ce; background: transparent; }
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-logout .nav-section-icon {
  color: currentColor;
  stroke: currentColor;
}
html[data-navigation-layout="Fixed"][data-navigation="Side"] .side-nav-collapse { display: none; }
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .side-nav-collapse:hover {
  color: #f0f3f6;
  background: rgba(255, 255, 255, .08);
}
html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-menu.is-open .nav-menu-trigger {
  color: #e3eaf2;
}

@media (min-width: 901px) {
  html[data-navigation-layout="Fixed"] .topbar {
    display: contents;
  }
  html[data-navigation-layout="Fixed"] .sidebar-brand,
  html[data-navigation-layout="Fixed"] .topbar-actions,
  html[data-navigation-layout="Fixed"] .mobile-menu-toggle {
    display: none;
  }
  html[data-navigation-layout="Fixed"] .primary-nav {
    --fixed-sidebar-width: clamp(180px, 17vw, 250px);
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--fixed-sidebar-width);
    gap: 3px;
    padding: 22px 12px 14px;
    border: 0;
    border-right: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html[data-navigation-layout="Fixed"] .nav-sidebar-brand {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    padding: 0 5px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
  }
  html[data-navigation-layout="Fixed"] .nav-sidebar-brand .sidebar-logo {
    width: 30px;
    height: 30px;
  }
  html[data-navigation-layout="Fixed"] .nav-sidebar-brand .sidebar-brand-copy strong {
    overflow: hidden;
    max-width: 175px;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-navigation-layout="Fixed"] .nav-sidebar-brand .sidebar-brand-copy small {
    overflow: hidden;
    max-width: 175px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-navigation="Side"] .nav-search {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--surface);
  }
  html[data-navigation="Side"] .nav-search > :is(svg, .win-symbol) {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  html[data-navigation="Side"] .nav-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
    font: inherit;
    font-size: 11px;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .primary-nav .nav-search input[type="search"] {
    background-color: transparent;
  }
  html[data-navigation="Side"] .nav-search input::placeholder {
    color: var(--text-muted);
  }
  html[data-navigation="Side"] .nav-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent);
  }
  html[data-navigation="Side"] .nav-search-results:not([hidden]) {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    align-content: start;
    gap: 3px;
    overflow-y: auto;
    padding: 0 0 5px;
  }
  html[data-navigation="Side"] .primary-nav.nav-searching > .nav-direct,
  html[data-navigation="Side"] .primary-nav.nav-searching > .nav-menu,
  html[data-navigation="Side"] .primary-nav.nav-searching > .nav-logout-form,
  html[data-navigation-layout="Fixed"] .primary-nav.nav-searching > .nav-utility-actions {
    display: none;
  }
  html[data-navigation-layout="Fixed"] .nav-utility-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }
  html[data-navigation-layout="Fixed"] .nav-utility-actions form {
    display: flex;
    margin: 0;
  }
  html[data-navigation-layout="Fixed"] .nav-logout-form {
    margin-top: 0;
  }
  html[data-navigation-layout="Fixed"] .nav-utility-action {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: var(--text-main);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 550;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  html[data-navigation-layout="Fixed"] .nav-utility-action:hover {
    background: rgba(32, 42, 53, .06);
  }
  html[data-navigation-layout="Fixed"] .nav-utility-action :is(svg, .win-symbol) {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation-layout="Fixed"] .nav-utility-action:hover {
    background: rgba(255, 255, 255, .08);
  }
  html[data-navigation="Side"] .nav-search-result {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
  }
  html[data-navigation="Side"] .nav-search-result:hover,
  html[data-navigation="Side"] .nav-search-result:focus-visible {
    outline: 0;
    background: rgba(32, 42, 53, .06);
  }
  html[data-navigation="Side"] .nav-search-result-icon,
  html[data-navigation="Side"] .nav-search-result-icon :is(svg, .win-symbol) {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--text-muted);
  }
  html[data-navigation="Side"] .nav-search-result-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }
  html[data-navigation="Side"] .nav-search-result-copy strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html[data-navigation="Side"] .nav-search-result-copy small,
  html[data-navigation="Side"] .nav-search-empty {
    color: var(--text-muted);
    font-size: 9px;
  }
  html[data-navigation="Side"] .nav-search-empty {
    margin: 8px 4px;
  }
  html[data-navigation="Side"].nav-collapsed .nav-search,
  html[data-navigation="Side"].nav-collapsed .nav-search-results {
    display: none;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-search-result:hover,
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .nav-search-result:focus-visible {
    background: rgba(255, 255, 255, .08);
  }
  html[data-navigation-layout="Fixed"] .main-content {
    width: calc(100% - clamp(180px, 17vw, 250px));
    margin-left: clamp(180px, 17vw, 250px);
  }
  html[data-navigation-layout="Fixed"] .page-content {
    padding: 28px 5% 46px;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation-layout="Fixed"] .primary-nav {
    border-color: var(--border-color);
    background: var(--surface);
  }
}

@media (min-width: 901px) {
  html[data-navigation="Side"] .side-nav-collapse { display: flex; }
  html[data-navigation="Side"].nav-collapsed .main-content {
    width: calc(100% - 86px);
    margin-left: 86px;
  }
  html[data-navigation="Side"].nav-collapsed .primary-nav {
    width: 60px;
    align-items: center;
    overflow: visible;
    padding: 10px 7px;
  }
  html[data-navigation="Side"].nav-collapsed .side-nav-collapse {
    width: 42px;
    justify-content: center;
    margin-bottom: 3px;
    padding: 0;
  }
  html[data-navigation="Side"].nav-collapsed .side-nav-collapse :is(svg, .win-symbol) {
    transform: rotate(180deg);
  }
  html[data-navigation="Side"].nav-collapsed .side-nav-collapse-label,
  html[data-navigation="Side"].nav-collapsed .nav-direct > span:not(.win-symbol),
  html[data-navigation="Side"].nav-collapsed .nav-menu-trigger > span:not(.win-symbol),
  html[data-navigation="Side"].nav-collapsed .nav-menu-trigger > .nav-chevron {
    display: none;
  }
  html[data-navigation="Side"].nav-collapsed .nav-direct,
  html[data-navigation="Side"].nav-collapsed .nav-menu-trigger {
    width: 42px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }
  html[data-navigation="Side"].nav-collapsed .nav-logout-form { width: 42px; }
  html[data-navigation="Side"].nav-collapsed .nav-menu-trigger {
    gap: 0;
  }
  html[data-navigation="Side"].nav-collapsed .nav-section-icon {
    width: 18px;
    height: 18px;
  }
  html[data-navigation="Side"].nav-collapsed .mega-menu {
    position: absolute;
    z-index: 62;
    top: -4px;
    left: calc(100% + 12px);
    width: 248px;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(226, 231, 237, .96);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 34px rgba(20, 28, 40, .18);
  }
  html[data-navigation="Side"].nav-collapsed .nav-menu::after {
    position: absolute;
    top: -8px;
    right: -14px;
    bottom: -8px;
    width: 14px;
    content: "";
  }
  html[data-navigation="Side"].nav-collapsed .mega-menu-link {
    min-height: 36px;
    gap: 9px;
    padding: 4px 6px;
  }
  html[data-navigation="Side"].nav-collapsed .mega-menu-icon {
    width: 28px;
    height: 28px;
  }
  html[data-navigation="Side"].nav-collapsed .mega-menu-link small {
    display: block;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"].nav-collapsed .mega-menu {
    border-color: #484848;
    background: rgba(43, 43, 43, .98);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  }
}
@media (max-width: 900px) {
  html[data-navigation="Side"] .side-nav-collapse {
    display: none;
  }
  html[data-navigation="Side"] .main-content {
    width: 100%;
    margin-left: 0;
  }
  html[data-navigation="Side"] .primary-nav {
    position: absolute;
    z-index: 51;
    top: calc(100% + 1px);
    bottom: auto;
    right: 12px;
    left: 12px;
    display: none;
    width: auto;
    max-height: calc(100vh - 82px);
    flex: initial;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 9px;
    border: 1px solid #e8ebef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 28, 40, .16);
    transform: none;
  }
  html[data-navigation="Side"] body.nav-open .primary-nav {
    display: flex;
  }
  html[data-navigation="Side"] .nav-direct,
  html[data-navigation="Side"] .nav-menu-trigger {
    min-height: 43px;
    padding: 0 12px;
  }
  html[data-navigation="Side"] .mega-menu {
    padding: 12px 8px 15px;
  }
  html:is([data-theme="Dark"], [data-theme="Gray"])[data-navigation="Side"] .primary-nav {
    border-color: #484848;
    background: #2b2b2b;
  }
}

@media (max-width: 1000px) {
  .visual-order-layout { grid-template-columns: minmax(0, 1fr); }
  .visual-order-sidebar { position: fixed; top: auto; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); max-height: min(45vh, 360px); max-height: min(45dvh, 360px); overflow-y: auto; padding: 0; }
}

@media (max-width: 991px) {
  .visual-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .visual-product-grid { grid-template-columns: minmax(0, 1fr); }
  .visual-order-page { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .visual-order-sidebar { position: fixed; z-index: 1020; inset: 0 0 0 auto; width: min(420px, 92vw); height: 100vh; height: 100dvh; max-height: none; overflow: hidden; padding: 0; visibility: hidden; pointer-events: none; transform: translateX(102%); transition: transform .22s ease, visibility .22s; }
  .visual-order-sidebar.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .visual-cart-card { width: 100%; height: 100%; max-height: none; border-radius: 14px 0 0 14px; box-shadow: -8px 0 30px rgba(20, 28, 40, .2); }
  .visual-cart-heading { flex: 0 0 auto; padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .visual-cart-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 25px; line-height: 1; }
  .visual-cart-body { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .visual-cart-lines { max-height: none; }
  .visual-cart-footer { padding-top: 12px; background: var(--surface); }
  .visual-cart-backdrop { position: fixed; z-index: 1019; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(15, 23, 35, .48); }
  .visual-cart-backdrop[hidden] { display: none; }
  .visual-mobile-cart-toggle { position: fixed; z-index: 1021; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid #174b84; border-radius: 999px; color: #fff; background: #1d5e9e; box-shadow: 0 4px 12px rgba(20, 50, 80, .24); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
  .visual-mobile-cart-toggle :is(svg, .win-symbol) { width: 18px; height: 18px; }
  .visual-mobile-cart-count { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border-radius: 999px; color: #174b84; background: #fff; font-size: 11px; font-weight: 750; line-height: 1; }
  .visual-cart-open { overflow: hidden; }
  .visual-cart-open .visual-mobile-cart-toggle { visibility: hidden; }
}

@media (max-width: 680px) {
  .visual-order-heading { align-items: flex-start; flex-direction: column; }
  .visual-order-heading-actions .btn { min-height: 40px; }
  .visual-order-catalog { padding: 14px; }
  .visual-order-stock-note { max-width: 120px; text-align: right; }
  .visual-order-sidebar { gap: 10px; }
  .visual-cart-card { max-height: 100%; }
  .visual-cart-heading { padding: 12px 14px 8px; }
  .visual-cart-body { padding: 0 14px calc(12px + env(safe-area-inset-bottom)); }
  .visual-cart-lines { max-height: none; }
  .visual-cart-line { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .visual-cart-line-actions { grid-column: 2; grid-row: 1 / span 2; }
  .visual-form-pair { gap: 7px; }
  .visual-order-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 12px; }
  .visual-order-dialog .visual-customer-card { min-height: 0; max-height: none; padding: 14px; }
  .visual-dialog-cart { position: relative; order: -1; display: grid; max-height: min(25vh, 160px); max-height: min(25dvh, 160px); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); border-left: 0; }
  .visual-dialog-cart-heading { margin-bottom: 5px; }
  .visual-dialog-cart-lines { display: flex; min-height: 0; max-height: none; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .visual-dialog-cart-line { flex: 0 0 min(68vw, 230px); grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 3px 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
  .visual-dialog-cart-line-details strong { overflow: visible; text-overflow: clip; white-space: normal; }
  .visual-dialog-cart-line-total { grid-column: 1; text-align: left; }
  .visual-dialog-cart-total { margin-top: 5px; padding-top: 5px; }
  .visual-dialog-heading-actions { gap: 5px; }
  .visual-dialog-heading-actions .btn { padding-right: 8px; padding-left: 8px; font-size: 10px; }
  .visual-dialog-actions { flex-direction: column-reverse; }
  .visual-dialog-actions .btn,
  .visual-dialog-actions .visual-order-save { width: 100%; }
}

@media (max-width: 520px) {
  .visual-order-page .page-heading { margin-bottom: 16px; }
  .visual-order-heading h1 { font-size: 26px; }
  .sidebar-brand-copy { max-width: clamp(112px, calc(100vw - 240px), 220px); }
  .visual-order-catalog { padding: 12px; }
  .visual-order-section-heading { gap: 8px; }
  .visual-order-section-heading h2 { font-size: 16px; }
  .visual-order-stock-note { max-width: 105px; font-size: 9px; }
  .visual-product-search { min-height: 42px; }
  .visual-category-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding: 0 12px 6px 0; scrollbar-width: thin; }
  .visual-category-filter { min-height: 36px; flex: 0 0 auto; }
  .visual-product-card { padding: 0; }
  .visual-product-controls { gap: 7px; }
  .visual-cart-line { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .visual-cart-line-details strong { font-size: 12px; }
  .visual-cart-line-total { font-size: 11px; }
  .visual-cart-remove { min-height: 36px; font-size: 11px; }
}

html[data-theme="Gray"][data-navigation="Side"] .primary-nav,
html[data-theme="Gray"][data-navigation-layout="Fixed"] .primary-nav {
  border-color: #73808a;
  background: #535e67;
}
html[data-theme="Gray"][data-navigation="Side"] .nav-direct.active,
html[data-theme="Gray"][data-navigation="Side"] .nav-menu.has-active .nav-menu-trigger {
  color: #f1f3f5;
  background: rgba(255, 255, 255, .1);
}
html[data-theme="Gray"][data-navigation="Side"] .mega-menu { background: #56616b; }
html[data-theme="Gray"][data-navigation="Side"] .mega-menu-icon {
  border-color: #7d8a94;
  color: #edf1f3;
  background: #64717a;
}
html[data-theme="Gray"][data-navigation="Side"] .mega-menu-link:hover .mega-menu-icon,
html[data-theme="Gray"][data-navigation="Side"] .mega-menu-link.active .mega-menu-icon {
  border-color: #91a0aa;
  color: #fff;
  background: #71808a;
}
html[data-theme="Gray"] .mega-menu-link.active,
html[data-theme="Gray"] .mega-menu-link:hover {
  color: #f1f3f5;
  background: #64717a;
}
html[data-theme="Gray"] .nav-logout { color: #e0b6ba; }
html[data-theme="Gray"] .nav-logout:hover {
  color: #f5dadd;
  background: rgba(160, 93, 99, .18);
}
html[data-theme="Gray"] .nav-search input[type="search"],
html[data-theme="Gray"] .table-search {
  border-color: #71808a;
  background: #3d474f;
}
html[data-theme="Gray"] .document-count-card {
  border-color: #6b7781;
  background: #56616b;
}
html[data-theme="Gray"] .order-heatmap-day.level-0,
html[data-theme="Gray"] .order-heatmap-swatch.level-0 {
  border-color: #74818a;
  background: #5d6972;
}
html[data-theme="Gray"] .order-heatmap-day.level-0 { color: #e0e5e9; }
html[data-theme="Gray"] .order-heatmap-day.level-0 strong { color: #f0f3f5; }
html[data-theme="Gray"] .order-heatmap-day.level-1,
html[data-theme="Gray"] .order-heatmap-swatch.level-1 { border-color: #9c7d82; background: #81656a; }
html[data-theme="Gray"] .order-heatmap-day.level-2,
html[data-theme="Gray"] .order-heatmap-swatch.level-2 { border-color: #99866b; background: #7e705b; }
html[data-theme="Gray"] .order-heatmap-day.level-3,
html[data-theme="Gray"] .order-heatmap-swatch.level-3 { border-color: #989263; background: #7d7651; }
html[data-theme="Gray"] .order-heatmap-day.level-4,
html[data-theme="Gray"] .order-heatmap-swatch.level-4 { border-color: #7e9880; background: #60765e; }
html[data-theme="Gray"] .order-heatmap-day.level-5,
html[data-theme="Gray"] .order-heatmap-swatch.level-5 { border-color: #829ab5; background: #526f8e; }
html[data-theme="Gray"] .order-heatmap-day.level-6,
html[data-theme="Gray"] .order-heatmap-swatch.level-6 { border-color: #9584a8; background: #716187; }
html[data-theme="Gray"] .order-heatmap-day.is-future {
  border-color: #71808a;
  background: #535f68;
  color: #c4cbd0;
}
html[data-theme="Gray"] .order-heatmap-day.is-future strong { color: #c4cbd0; }
html[data-theme="Gray"] .transactions-scroll { border-color: #71808a; }
html[data-theme="Gray"] .transactions-table thead,
html[data-theme="Gray"] .operation-card #order-lines thead {
  color: #f0f3f5;
  background: #59646e;
}
html[data-theme="Gray"] .transactions-table td { border-color: #6b7781; }
html[data-theme="Gray"] .transactions-table tbody tr:hover { background: #606c75; }
html[data-theme="Gray"] .upcoming-deliveries-panel {
  border-color: #73808a;
  background: linear-gradient(115deg, #5b6872 0%, #515d66 75%);
}
html[data-theme="Gray"] .deliveries-summary span,
html[data-theme="Gray"] .deliveries-summary span:last-child {
  border-color: #77838d;
  color: #e0e5e9;
  background: #5c6871;
}
html[data-theme="Gray"] .alert-danger {
  border-color: #9c777d;
  color: #f0d4d6;
  background-color: #68565b;
}
html[data-theme="Gray"] .dashboard-alert.error {
  border-color: #9c777d;
  color: #f0d4d6;
  background: #68565b;
}
html[data-theme="Gray"] .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #657f97;
  --bs-btn-border-color: #8399ab;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #748ca2;
  --bs-btn-hover-border-color: #9cabb9;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #586f85;
  --bs-btn-active-border-color: #8298aa;
  --bs-btn-focus-shadow-rgb: 130, 152, 170;
  --bs-btn-disabled-color: #d0d5da;
  --bs-btn-disabled-bg: #58636d;
  --bs-btn-disabled-border-color: #75818a;
}
html[data-theme="Gray"] .btn-outline-primary {
  --bs-btn-color: #c5d3df;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #8498aa;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #62788d;
  --bs-btn-hover-border-color: #a1b1bf;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #52687d;
  --bs-btn-active-border-color: #9aabba;
  --bs-btn-focus-shadow-rgb: 130, 152, 170;
  --bs-btn-disabled-color: #b6c0c8;
  --bs-btn-disabled-border-color: #71808a;
}
html[data-theme="Gray"] .btn-secondary {
  --bs-btn-color: #f0f3f5;
  --bs-btn-bg: #606c75;
  --bs-btn-border-color: #7c8992;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6e7a83;
  --bs-btn-hover-border-color: #929da5;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #56616a;
  --bs-btn-active-border-color: #87939b;
  --bs-btn-focus-shadow-rgb: 130, 144, 154;
}
html[data-theme="Gray"] .btn-outline-secondary {
  --bs-btn-color: #d1d8dd;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #7e8a93;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #606c75;
  --bs-btn-hover-border-color: #9ba5ac;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #56616a;
  --bs-btn-active-border-color: #87939b;
  --bs-btn-focus-shadow-rgb: 130, 144, 154;
  --bs-btn-disabled-color: #bac2c8;
  --bs-btn-disabled-border-color: #74818a;
}
html[data-theme="Gray"] .btn-outline-danger {
  --bs-btn-color: #dec8ca;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #987b7f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #715d62;
  --bs-btn-hover-border-color: #b18e93;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #665359;
  --bs-btn-active-border-color: #a6878b;
  --bs-btn-focus-shadow-rgb: 152, 123, 127;
  --bs-btn-disabled-color: #b7a5a7;
  --bs-btn-disabled-border-color: #807276;
}
html[data-theme="Gray"] .btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #765b60;
  --bs-btn-border-color: #987b7f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #85676c;
  --bs-btn-hover-border-color: #b18e93;
  --bs-btn-active-bg: #665359;
  --bs-btn-active-border-color: #a6878b;
  --bs-btn-focus-shadow-rgb: 152, 123, 127;
}
html[data-theme="Gray"] .button-primary {
  border-color: #8399ab;
  color: #fff;
  background: #657f97;
}
html[data-theme="Gray"] .button-primary:hover { border-color: #9cabb9; color: #fff; background: #748ca2; }
html[data-theme="Gray"] .button-secondary {
  border-color: #7c8992;
  color: #f0f3f5;
  background: #606c75;
}
html[data-theme="Gray"] .button-secondary:hover { border-color: #929da5; color: #fff; background: #6e7a83; }
html[data-theme="Gray"] .btn:disabled,
html[data-theme="Gray"] .btn.disabled,
html[data-theme="Gray"] .button-primary:disabled,
html[data-theme="Gray"] .button-secondary:disabled,
html[data-theme="Gray"] button[type="submit"]:disabled,
html[data-theme="Gray"] input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .82;
}
html[data-theme="Gray"] .visual-category-filter:hover,
html[data-theme="Gray"] .visual-category-filter.is-active {
  border-color: #8197a9;
  color: #fff;
  background: #657f97;
}
html[data-theme="Gray"] .metric-icon.blue,
html[data-theme="Gray"] .document-count-icon.blue {
  border-color: #8293a2;
  color: #d3e0eb;
  background: #5a6a79;
}
html[data-theme="Gray"] .metric-icon.violet,
html[data-theme="Gray"] .document-count-icon.violet {
  border-color: #8c8098;
  color: #e0d7e8;
  background: #665e73;
}
html[data-theme="Gray"] .metric-icon.amber,
html[data-theme="Gray"] .document-count-icon.amber {
  border-color: #97876c;
  color: #f0dfbb;
  background: #6c604d;
}
html[data-theme="Gray"] .metric-icon.green,
html[data-theme="Gray"] .document-count-icon.green {
  border-color: #7e9685;
  color: #d2e3d8;
  background: #566c5e;
}
html[data-theme="Gray"] .document-count-icon {
  border-color: #77838d;
  color: #e0e5e9;
  background: #5d6871;
}
html[data-theme="Gray"] .metric-sparkline polyline { stroke: #afc7dc; }
html[data-theme="Gray"] .revenue-dot { background: #afc7dc; }
html[data-theme="Gray"] .metric-sparkline.violet-line polyline { stroke: #c3b4d4; }
html[data-theme="Gray"] .metric-sparkline.amber-line polyline { stroke: #d8c28e; }
html[data-theme="Gray"] .outstanding-dot { background: #d8c28e; }
html[data-theme="Gray"] .metric-sparkline.green-line polyline { stroke: #a7c7b1; }
html[data-theme="Gray"] .collected-dot { background: #a7c7b1; }
html[data-theme="Gray"] a.btn-primary,
html[data-theme="Gray"] a.btn-outline-primary,
html[data-theme="Gray"] a.btn-secondary,
html[data-theme="Gray"] a.btn-outline-secondary,
html[data-theme="Gray"] a.btn-danger,
html[data-theme="Gray"] a.btn-outline-danger {
  color: var(--bs-btn-color);
}
html[data-theme="Gray"] a.btn-primary:hover,
html[data-theme="Gray"] a.btn-outline-primary:hover,
html[data-theme="Gray"] a.btn-secondary:hover,
html[data-theme="Gray"] a.btn-outline-secondary:hover,
html[data-theme="Gray"] a.btn-danger:hover,
html[data-theme="Gray"] a.btn-outline-danger:hover {
  color: var(--bs-btn-hover-color, var(--bs-btn-color));
}
html[data-theme="Gray"] .report-note {
  border-color: var(--border-color);
  color: var(--text-main);
  background: var(--surface);
}
html[data-theme="Gray"] .report-note strong { color: var(--text-main); }
html[data-theme="Gray"] .report-note span { color: var(--text-muted); }
html[data-theme="Gray"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]).manual-folio-input {
  border-left-color: #a7b8c5;
}
html[data-theme="Gray"] .operation-card label[for="ManualFolio"],
html[data-theme="Gray"] .visual-customer-card label[for="ManualFolio"] { color: #c3d0da; }
html[data-theme="Gray"] .operation-card .operation-folio-system,
html[data-theme="Gray"] .operation-folio-system {
  border-color: #75838d;
  border-left-color: #9aabb7;
  background: #56616b;
}
html[data-theme="Gray"] .operation-folio-system small,
html[data-theme="Gray"] .operation-folio-system strong { color: #e0e5e9; }
html[data-theme="Gray"] .period-select,
html[data-theme="Gray"] .date-chip {
  border-color: #71808a;
  color: #e0e5e9;
  background: #4c5861;
}
html[data-theme="Gray"] .period-select select,
html[data-theme="Gray"] .period-select select option { color: #f0f3f5; background-color: #4c5861; }
html[data-theme="Gray"] .period-select input[type="month"],
html[data-theme="Gray"] .date-chip input[type="date"] { color-scheme: dark; color: #f0f3f5; }
html[data-theme="Gray"] .period-select :is(svg, .win-symbol),
html[data-theme="Gray"] .date-chip :is(svg, .win-symbol) { color: #c4cbd0; }
html[data-theme="Gray"] .panel-icon {
  border: 1px solid #6f7c86;
  color: #dce2e7;
  background: #5a6670;
}
html[data-theme="Gray"] .trend-positive { color: #a7c7b1; }
html[data-theme="Gray"] .trend-negative { color: #d7aeb1; }
html[data-theme="Gray"] .trend-neutral { color: #c4cbd0; }

.public-main-christmas {
  --seasonal-button-bg: color-mix(in srgb, var(--surface) 92%, var(--blue));
  --seasonal-button-border: var(--blue);
  --seasonal-button-text: var(--blue-dark);
  --seasonal-button-hover-bg: color-mix(in srgb, var(--surface) 82%, var(--blue));
  --seasonal-button-hover-border: var(--blue-dark);
  --seasonal-button-hover-text: var(--blue-dark);
  --seasonal-button-active-bg: color-mix(in srgb, var(--surface) 72%, var(--blue));
  --seasonal-link: var(--blue);
  --seasonal-link-hover: var(--blue-dark);
}
html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main-christmas {
  --seasonal-button-bg: color-mix(in srgb, var(--surface) 82%, var(--blue));
  --seasonal-button-border: var(--blue);
  --seasonal-button-text: var(--ink);
  --seasonal-button-hover-bg: color-mix(in srgb, var(--surface) 68%, var(--blue));
  --seasonal-button-hover-border: var(--blue-dark);
  --seasonal-button-hover-text: var(--ink);
  --seasonal-button-active-bg: color-mix(in srgb, var(--surface) 58%, var(--blue));
  --seasonal-link: var(--blue);
  --seasonal-link-hover: var(--blue-dark);
}
.public-main-christmas .public-landing a:not(.btn):not(.public-nav-button) { color: var(--seasonal-link); }
.public-main-christmas .public-landing a:not(.btn):not(.public-nav-button):hover { color: var(--seasonal-link-hover); }
.public-main-christmas .landing-socials a.landing-social-icon:hover { border-color: var(--seasonal-link); }
.public-main-christmas .login-page {
  --blue: var(--seasonal-link);
  --blue-dark: var(--seasonal-link-hover);
}
.public-main-christmas .login-slide figcaption span { color: var(--seasonal-link); }
.public-main-christmas .login-slide-progress span { background: var(--seasonal-link); }
.public-main-christmas .login-slide-dot.is-active { background-color: var(--seasonal-link) !important; }
.public-main-christmas .login-password-toggle { color: var(--seasonal-link); }
.public-main-christmas .login-password-toggle:hover { background: color-mix(in srgb, var(--seasonal-link) 12%, transparent); }
.public-main-christmas .login-password-toggle:focus-visible { outline-color: var(--seasonal-link); }
.public-main-christmas .login-page .login-form .remember-row input { accent-color: var(--seasonal-link); }
.public-main-christmas .btn,
.public-main-christmas .public-nav-button,
.public-main-christmas button:not(.catalog-cart-backdrop),
.public-main-christmas input[type="button"],
.public-main-christmas input[type="submit"] {
  border-color: var(--seasonal-button-border) !important;
  color: var(--seasonal-button-text) !important;
  background-color: var(--seasonal-button-bg) !important;
}
.public-main-christmas .btn:hover,
.public-main-christmas .public-nav-button:hover,
.public-main-christmas button:not(.catalog-cart-backdrop):hover,
.public-main-christmas input[type="button"]:hover,
.public-main-christmas input[type="submit"]:hover {
  border-color: var(--seasonal-button-hover-border) !important;
  color: var(--seasonal-button-hover-text) !important;
  background-color: var(--seasonal-button-hover-bg) !important;
}
.public-main-christmas .btn:active,
.public-main-christmas .public-nav-button:active,
.public-main-christmas button:not(.catalog-cart-backdrop):active,
.public-main-christmas input[type="button"]:active,
.public-main-christmas input[type="submit"]:active {
  background-color: var(--seasonal-button-active-bg) !important;
}
.public-main-christmas .btn:focus-visible,
.public-main-christmas .public-nav-button:focus-visible,
.public-main-christmas button:not(.catalog-cart-backdrop):focus-visible,
.public-main-christmas input[type="button"]:focus-visible,
.public-main-christmas input[type="submit"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--seasonal-button-border) 35%, transparent) !important;
  outline-offset: 2px;
}
.public-main .public-topbar .public-nav-icon-button {
  border: 0 !important;
  color: var(--ink) !important;
  background-color: color-mix(in srgb, var(--surface) 55%, transparent) !important;
}
.public-main .public-topbar .public-nav-icon-button:hover,
.public-main .public-topbar .public-nav-icon-button:focus-visible {
  color: var(--blue) !important;
  background-color: color-mix(in srgb, var(--blue) 11%, transparent) !important;
}

@media (max-width: 767px) {
  .public-topbar {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "links links";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .public-brand { grid-area: brand; width: min(220px, calc(100vw - 126px)); }
  .public-brand img { max-height: 54px; }
  .public-navigation-actions { grid-area: actions; justify-self: end; }
  .public-navigation-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px clamp(12px, 4vw, 22px);
    overflow-x: auto;
    margin: 0;
    padding: 0;
  }
  .public-nav-link { min-height: 34px; font-size: 9px; letter-spacing: .1em; }
  .public-nav-icon-button { width: 36px; height: 36px; }
  .branches-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .branches-layout .landing-map iframe { height: clamp(240px, 65vw, 320px); }
  .public-main > .privacy-page.product-catalog-page { padding-right: 16px; padding-left: 16px; }
  .product-catalog-heading { gap: 12px; }
  .product-catalog-heading > div { min-width: 0; }
  .product-catalog-heading h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.1; }
  .catalog-search .form-control,
  .catalog-product-order .form-control,
  .catalog-product-order .form-select { min-height: 44px; font-size: 16px; }
  .catalog-product-order .input-group .btn { min-height: 44px; }
  .customer-order-page .form-control,
  .customer-order-page .form-select { min-height: 44px; font-size: 16px; }
  .customer-order-page .operation-card-heading > .btn { width: 100%; margin-left: 0 !important; }
}

@media (max-width: 700px) {
  .landing-banner { min-height: 220px; aspect-ratio: auto; }
  .landing-banner-content { padding: 26px 18px; }
  .landing-banner-brand { margin-bottom: 7px; font-size: 10px; }
  .landing-banner-content h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }
  .landing-banner-content > p:last-child { margin-top: 8px; font-size: 13px; line-height: 1.4; }
  .public-landing { padding: 24px 16px 0; }
  .landing-hero { gap: 18px; }
  .landing-description { margin-top: 16px; font-size: 16px; line-height: 1.65; }
  .landing-actions { flex-direction: column; gap: 8px; margin-top: 20px; }
  .landing-actions .btn { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; }
  .landing-delivery-note { margin-top: 14px; font-size: 12px; line-height: 1.5; }
  .landing-gallery { min-height: clamp(220px, 70vw, 300px); border-radius: 16px; }
  .landing-details { gap: 12px; margin-top: 30px; }
  .landing-info-card { padding: 18px; }
  .landing-map iframe { height: clamp(240px, 65vw, 320px); }
  .landing-footer { gap: 22px 18px; margin-top: 38px; padding-top: 24px; }
  .public-main > .public-shared-footer { padding: 24px 16px 36px; }
  .landing-footer-brand > a { font-size: 21px; }
  .landing-social-icon { width: 44px; height: 44px; }
}

html:is([data-theme="Dark"], [data-theme="Gray"]) .public-main .public-topbar {
  border-bottom-color: #5a5a5a;
}

html[data-theme="Light"] .public-main {
  --public-accent: #1769aa;
  --public-accent-strong: #104f82;
}
html[data-theme="Light"] .public-main .eyebrow { color: var(--public-accent); }
html[data-theme="Light"] .public-main .public-nav-link.active {
  color: var(--public-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
html[data-theme="Light"] .public-main .public-nav-link:hover,
html[data-theme="Light"] .public-main .landing-info-card .branches-contact-link {
  color: var(--public-accent-strong);
}
html[data-theme="Light"] .public-main .branches-contact-icon {
  border-color: color-mix(in srgb, var(--public-accent) 30%, var(--line));
  color: var(--public-accent-strong);
  background: color-mix(in srgb, var(--public-accent) 10%, var(--surface));
}
html[data-theme="Light"] .public-main .branches-hours-list li > span { color: var(--public-accent-strong); font-weight: 650; }
html[data-theme="Light"] .public-main .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--public-accent) 55%, var(--line));
  color: var(--public-accent-strong);
}
html[data-theme="Light"] .public-main .btn-outline-secondary:hover {
  border-color: var(--public-accent);
  color: var(--public-accent-strong);
  background: color-mix(in srgb, var(--public-accent) 8%, var(--surface));
}

