:root {
  --navy: #071f3d;
  --ink: #10233e;
  --muted: #6b7a90;
  --line: #dfe5ec;
  --surface: #ffffff;
  --background: #f4f7fb;
  --accent: #1268b3;
  --red: #c90012;
  --red-light: #e45a63;
  --green: #07884c;
  --product-name-size: 18px;
  --product-ean-size: 12px;
  --product-vat-size: 12px;
  --product-price-size: 22px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); min-width: 960px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar {
  height: 76px; padding: 0 24px; display: flex; align-items: center; gap: 22px;
  background: var(--navy); color: white; box-shadow: 0 3px 16px rgba(6,25,49,.18);
}
.brand { font-size: 28px; letter-spacing: -1.1px; white-space: nowrap; }
.brand strong { color: var(--red); font-weight: 950; }
.brand span { color: var(--red-light); font-weight: 500; }
.brand.large { font-size: 38px; text-align: center; }
.topbar-brand { display: flex; align-items: center; gap: 11px; }
.deployment-badge:empty { display:none; }
.deployment-badge:not(:empty) { align-self:flex-start; margin:2px 0 0 -6px; padding:2px 6px; border:1px solid rgba(255,255,255,.72); border-radius:5px; color:white; font-size:9px; font-weight:900; letter-spacing:.8px; line-height:1.2; }
.header-search { display:flex; flex:1 1 300px; max-width:350px; min-width:180px; height:38px; overflow:hidden; border:1px solid #d2d8df; border-radius:8px; background:white; color:var(--ink); }
.header-search input { width:100%; min-width:0; padding:8px 10px; border:0; background:transparent; color:var(--ink); font-size:14px; outline:none; }
.header-search:focus-within { border-color:#aab4c0; box-shadow:none; }
.header-search button { flex:0 0 38px; border:0; background:transparent; color:#52677f; font-size:25px; }
@media (max-width:1300px) { .topbar { gap:10px; padding:0 14px; }.topbar .status { padding:8px; font-size:12px; }.topbar .brand { font-size:23px; }.topbar .employee-button { padding:8px; font-size:13px; }.header-search input { font-size:13px; } }
.topbar-brand .brand-name { color: inherit; }
.brand-logo { width: 58px; height: 46px; display: grid; place-items: center; flex: 0 0 58px; background: transparent; }
.brand-logo img { width: 54px; height: 41px; display: block; object-fit: contain; }
.loading-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7,31,61,.48); backdrop-filter: blur(2px); }
.loading-overlay[open] { display: grid; place-items: center; }
.loading-overlay::backdrop { background: rgba(7,31,61,.16); }
.loading-card { min-width: 210px; display: grid; justify-items: center; gap: 8px; padding: 25px 30px 21px; border: 1px solid #ffffff80; border-radius: 17px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 18px 50px #06172d55; }
.loading-card img { width: 88px; height: 66px; object-fit: contain; margin-bottom: 5px; animation: comface-loader-spin .85s linear infinite; transform-origin: 50% 50%; }
.loading-card strong { font-size: 16px; }
.loading-card span { color: var(--red); font-size: 13px; font-weight: 850; }
.loading-overlay[data-state="done"] .loading-card img,.loading-overlay[data-state="error"] .loading-card img { animation:none; }
.loading-overlay[data-state="done"] .loading-card { border-color:#9cd8bc; background:#f5fff9; }
.loading-overlay[data-state="done"] .loading-card strong { color:#087747; }
.loading-overlay[data-state="error"] .loading-card { border-color:#efb1b8; background:#fff7f8; }
.loading-overlay[data-state="error"] .loading-card strong { color:#b51e2e; }
@keyframes comface-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-card img { animation-duration: 1.8s; } }
.system-status { display: flex; gap: 10px; margin-left: auto; }
.status { padding: 10px 14px; border-radius: 9px; font-weight: 800; background: rgba(255,255,255,.12); }
.status.ok { background: #087e4d; }
.status.sync { background: #1268b3; }
.status.demo { background: #f39c12; color: #172238; }
.status.tse-indicator { display:inline-flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.22); background:#0b2948; color:#fff; }
.status.tse-indicator::before { content:""; width:11px; height:11px; flex:0 0 11px; border-radius:50%; background:#f0b429; box-shadow:0 0 0 3px rgba(240,180,41,.18),0 0 10px rgba(240,180,41,.7); }
.status.tse-indicator.tse-green::before { background:#20cf79; box-shadow:0 0 0 3px rgba(32,207,121,.18),0 0 10px rgba(32,207,121,.75); }
.status.tse-indicator.tse-red::before { background:#ff4558; box-shadow:0 0 0 3px rgba(255,69,88,.18),0 0 10px rgba(255,69,88,.75); }
.status.tse-indicator.tse-yellow::before { background:#f0b429; }
.employee-button, .icon-button { border: 0; background: transparent; color: inherit; font-weight: 800; padding: 12px; }
.top-action { border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.08); color: white; padding: 10px 13px; font-weight: 800; }
.employee-button { border-left: 1px solid rgba(255,255,255,.25); padding-left: 20px; }
.icon-button { font-size: 24px; }

.pos-shell { display:grid; grid-template-columns:53% 47%; grid-template-rows:minmax(0,1fr); height:calc(100vh - 76px); padding:14px; gap:14px; }
.surcharge-banner { grid-column:1 / -1; padding:11px 16px; border:1px solid #e6a117; border-left:7px solid #d17b00; border-radius:10px; background:#fff2cd; color:#684000; font-size:16px; font-weight:900; }
.pos-shell:not(:has(.surcharge-banner:not(.hidden))) .catalog-panel,.pos-shell:not(:has(.surcharge-banner:not(.hidden))) .cart-panel { grid-row:1; }
.pos-shell:has(.surcharge-banner:not(.hidden)) { grid-template-rows:auto minmax(0,1fr); }
.pos-shell:has(.surcharge-banner:not(.hidden)) .catalog-panel,.pos-shell:has(.surcharge-banner:not(.hidden)) .cart-panel { grid-row:2; }
.pos-shell.cart-left { grid-template-columns: 47% 53%; }
.pos-shell.cart-left .catalog-panel { order: 2; }
.pos-shell.cart-left .cart-panel { order: 1; }
.pos-notice { position:fixed; z-index:9000; top:88px; left:50%; max-width:min(680px,90vw); transform:translateX(-50%); padding:15px 20px; border:0; border-left:6px solid #2474b8; border-radius:11px; background:#092746; color:#fff; box-shadow:0 14px 36px #06172d73; font-size:16px; font-weight:850; text-align:left; }
.pos-notice.error { border-left-color:#dc3446; background:#092746; color:#fff; }
.pos-notice.stock { border-left-color:#d4930b; background:#092746; color:#fff; }
.stock-warning { padding: 11px 13px; border-radius: 9px; background: #fff4d6; color: #624600; border-left: 5px solid #edae22; line-height: 1.45; }
.catalog-panel, .cart-panel { min-width: 0; min-height: 0; }
.catalog-panel { display:grid; grid-template-areas:"categories" "products"; grid-template-rows:auto minmax(0,1fr); background:white; border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.category-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); border-bottom: 1px solid var(--line); overflow-x: auto; }
.category-tab { position:relative; min-height:var(--category-button-height,58px); display:flex; align-items:center; justify-content:center; overflow:hidden; border:0; border-radius:var(--category-button-radius,12px); background:white; padding:12px; font-weight:850; color:var(--ink); border-bottom:4px solid transparent; }
.category-tab > span { position:relative; z-index:1; }
.category-tab > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.24; }
.catalog-panel.category-buttons .category-tab > img { opacity:.34; }
.category-tab.active { color: var(--accent); border-color: var(--accent); background: #f8fbff; }
.category-tabs { grid-area:categories; }
.product-grid { grid-area:products; display:grid; grid-template-columns:repeat(var(--product-columns,4),minmax(0,1fr)); gap:2px; padding:14px; align-content:start; overflow-y:auto; }
.product-grid.sparse-products .product-tile,.product-grid.sparse-products .product-tile-content { min-height:max(var(--product-button-height,132px),140px); }
.product-tile { position:relative; min-height:var(--product-button-height,132px); overflow:hidden; border:0; border-radius:var(--product-button-radius,12px); color:white; padding:0; text-align:left; box-shadow:0 6px 14px rgba(15,35,62,.14); }
.product-tile-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.product-tile-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.68)); }
.product-tile:not(:has(.product-tile-image)) .product-tile-shade { background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.18)); }
.product-tile-content { position:relative; z-index:1; height:100%; min-height:var(--product-button-height,132px); padding:10px 14px 4px; display:flex; flex-direction:column; }
.product-tile-content > span:last-child { display:block; flex:0 0 auto; margin-top:auto; padding-top:2px; }
.product-tile .name { font-size: var(--product-name-size); line-height: 1.18; font-weight: 850; }
.product-tile .ean { display:block; margin-top:4px; font-size:var(--product-ean-size); opacity:.85; }
.product-tile .price { display:block; font-size: var(--product-price-size); line-height:1.12; font-weight: 900; }
.product-tile .vat { font-size: var(--product-vat-size); opacity: .8; }
.product-tile .deposit { font-size:12px; opacity:.86; }
.hide-product-tile-name .product-tile .name, .hide-product-tile-ean .product-tile .ean, .hide-product-tile-vat .product-tile .vat, .hide-product-tile-price .product-tile .price { display:none; }
.catalog-tools { grid-area:tools; display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.catalog-tools input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 14px; font-size: 18px; }
.catalog-tools button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 0 18px; }
.catalog-panel.category-bottom { grid-template-areas:"products" "categories"; grid-template-rows:minmax(0,1fr) auto; }
.catalog-panel.category-bottom .category-tabs { border-top:1px solid var(--line); border-bottom:0; }
.catalog-panel.category-left,.catalog-panel.category-right { grid-template-rows:minmax(0,1fr); grid-template-columns:190px minmax(0,1fr); }
.catalog-panel.category-left { grid-template-areas:"categories products"; }
.catalog-panel.category-right { grid-template-columns:minmax(0,1fr) 190px; grid-template-areas:"products categories"; }
.catalog-panel.category-left .category-tabs,.catalog-panel.category-right .category-tabs { grid-auto-flow:row; grid-auto-columns:1fr; grid-auto-rows:minmax(54px,auto); align-content:start; overflow-x:hidden; overflow-y:auto; border-bottom:0; }
.catalog-panel.category-left .category-tabs { border-right:1px solid var(--line); }
.catalog-panel.category-right .category-tabs { border-left:1px solid var(--line); }
.catalog-panel.category-left .category-tab,.catalog-panel.category-right .category-tab { border-bottom:1px solid var(--line); }
.catalog-panel.category-buttons .category-tabs { gap:2px; padding:9px; background:#f2f5f9; }
.catalog-panel.category-buttons .category-tab { min-height:var(--category-button-height,58px); padding:10px 12px; border:0; border-radius:var(--category-button-radius,12px); background:var(--category-color,#1268b3); color:var(--category-text,#fff); box-shadow:0 4px 10px #10233e1f; }
.catalog-panel.category-buttons .category-tab.active { outline:0; box-shadow:inset 0 0 0 3px rgba(255,255,255,.95),0 0 0 2px rgba(7,31,61,.42),0 5px 12px #10233e29; filter:brightness(1.05); }

.cart-panel { display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.cart-card { background:white; border:1px solid var(--line); border-radius:var(--cart-button-radius,12px); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.cart-heading small { color: var(--muted); font-weight: 800; }
.cart-heading h1 { margin: 3px 0 0; font-size: 24px; }
.cart-title-line { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
#cartCountSummary { display:inline-flex; align-items:center; min-height:28px; margin-top:3px; padding:5px 10px; border-radius:999px; background:#eaf3fc; color:#1268b3; font-size:13px; font-weight:900; }
.plain-button { border:1px solid var(--line); background:white; padding:9px 12px; border-radius:var(--cart-button-radius,12px); }
.cart-columns, .cart-row { display: grid; grid-template-columns: 1fr 150px 90px; align-items: center; gap: 10px; }
.cart-columns { padding: 11px 22px; background: #f7f9fc; color: var(--muted); font-size: 13px; font-weight: 800; }
.cart-items { overflow-y: auto; }
.cart-row { padding: 13px 22px; border-bottom: 1px solid var(--line); }
.cart-row .item-name strong { display: block; }
.cart-row .item-name small { color: var(--muted); }
.cart-row.scan-confirmed { position:relative; background-image:linear-gradient(100deg,transparent 0,rgba(7,136,76,.12) 12%,rgba(47,218,133,.42) 32%,rgba(43,222,132,.75) 50%,rgba(47,218,133,.42) 68%,rgba(7,136,76,.12) 88%,transparent 100%); background-repeat:no-repeat; background-size:160px 100%; animation:scan-light-sweep .82s ease-in-out both; }
.cart-row.scan-confirmed .quantity input { animation:scan-quantity-pulse .8s ease-out both; }
.row-total { position:relative; }
.scan-check { position:absolute; right:-14px; top:-21px; width:25px; height:25px; display:grid; place-items:center; border:2px solid white; border-radius:50%; background:#07884c; color:white; box-shadow:0 3px 9px #075c3544; font-size:15px; font-weight:950; animation:scan-check-show 1s ease-out both; }
@keyframes scan-light-sweep { 0% { background-position:-180px 0; } 100% { background-position:calc(100% + 180px) 0; } }
@keyframes scan-quantity-pulse { 0%,100% { transform:scale(1); color:var(--ink); } 28% { transform:scale(1.28); color:#07884c; background:#e3f8ed; } 58% { transform:scale(1.08); color:#07884c; } }
@keyframes scan-check-show { 0% { transform:scale(.55); opacity:0; } 16%,72% { transform:scale(1); opacity:1; } 100% { transform:scale(.86); opacity:0; } }
@media (prefers-reduced-motion: reduce) { .cart-row.scan-confirmed,.cart-row.scan-confirmed .quantity input,.scan-check { animation:none; }.cart-row.scan-confirmed { box-shadow:inset 4px 0 #07884c; }.scan-check { opacity:1; } }
.quantity { display:grid; grid-template-columns:42px 1fr 42px; align-items:center; border:1px solid var(--line); border-radius:var(--cart-button-radius,12px); overflow:hidden; text-align:center; }
.quantity button { border:0; background:#f6f8fb; height:var(--cart-control-height,38px); font-size:20px; }
.quantity input { width:100%; min-width:0; height:var(--cart-control-height,38px); padding:0 3px; border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); border-radius:0; background:white; color:var(--ink); text-align:center; font-size:18px; font-weight:900; appearance:textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity input:focus { outline: 3px solid #64a6e5; outline-offset: -3px; background: #eef7ff; }
.weight-quantity { grid-template-columns: 42px 1fr 34px; }
.weight-quantity span { font-size: 14px; font-weight: 900; color: var(--muted); }
.row-total { text-align: right; font-weight: 850; }
.empty-cart { margin:auto; padding:15px 24px; border:1px dashed #cbd5e0; border-radius:10px; background:#fafbfd; color:#75869a; font-size:15px; text-align:center; }
.totals { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 22px 18px; }
.totals > div { display: flex; justify-content: space-between; padding: 5px 0; }
.grand-total { align-items: baseline; font-size: 20px; }
.grand-total strong { font-size: 34px; color: var(--accent); }
.quick-actions { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; }
.action-button { min-height:var(--cart-button-height,82px); border:0; border-radius:var(--cart-button-radius,12px); padding:12px; color:white; font-weight:900; font-size:16px; box-shadow:0 5px 12px rgba(15,35,62,.12); }
.action-button.cash { grid-column: span 2; background: #07884c; font-size: 20px; }
.action-button.card { grid-column: span 2; background: #1268b3; font-size: 20px; }
.action-button.payment { grid-column: span 2; background: #7048a8; font-size: 20px; }
.action-button.deposit-return { background: #23756a; }
.action-button.park { background: #ee7c0a; }
.action-button.void { background: #d93644; }
.action-button.last { background: #6d7d90; }
.action-button.report { background: var(--navy); }

/* Optional raised POS keys. The setting is off by default. */
.buttons-3d .product-tile,
.buttons-3d .category-tab,
.buttons-3d .action-button,
.buttons-3d .plain-button {
  transform:translateY(-2px);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.34),inset 0 -5px 0 rgba(4,20,38,.24),0 6px 8px rgba(7,31,61,.25);
  transition:transform .08s ease,box-shadow .08s ease,filter .08s ease;
}
.buttons-3d .product-tile:hover,
.buttons-3d .category-tab:hover,
.buttons-3d .action-button:hover,
.buttons-3d .plain-button:hover { filter:brightness(1.05); }
.buttons-3d .product-tile:active,
.buttons-3d .category-tab:active,
.buttons-3d .action-button:active,
.buttons-3d .plain-button:active {
  transform:translateY(2px);
  box-shadow:inset 0 3px 7px rgba(4,20,38,.3),inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(7,31,61,.2);
  filter:brightness(.97);
}
.buttons-3d .category-tab.active {
  box-shadow:inset 0 2px 0 rgba(255,255,255,.5),inset 0 -5px 0 rgba(4,20,38,.28),0 0 0 2px rgba(7,31,61,.42),0 7px 9px rgba(7,31,61,.28);
}

dialog { border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(7,31,61,.3); color: var(--ink); }
dialog::backdrop { background: rgba(7,31,61,.72); backdrop-filter: blur(3px); }
.login-dialog { width: 390px; padding: 28px; }
.login-dialog h2 { text-align: center; margin: 22px 0 6px; }
.login-dialog p { text-align: center; color: var(--muted); }
#pinInput { width: 100%; font-size: 28px; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; letter-spacing: 8px; }
.pin-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.pin-pad button { border: 0; border-radius: 10px; background: #edf2f8; min-height: 58px; font-size: 22px; font-weight: 800; }
.pin-pad .login-submit, .primary { background: var(--accent); color: white; border: 0; }
.error { color: #bd1525 !important; min-height: 20px; }
.settings-dialog { width: 620px; max-height: 92vh; padding: 24px; overflow-y: auto; }
.dialog-title { display: flex; justify-content: space-between; align-items: center; }
.dialog-title-with-back { display: grid; grid-template-columns: 112px 1fr 42px; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e1e7ee; }
.dialog-title-with-back > div { min-width: 0; }
.dialog-title-with-back small { color: var(--muted); font-size: 12px; font-weight: 800; }
.dialog-title-with-back h2 { margin: 3px 0 0 !important; }
.dialog-back { width: 108px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; justify-self: start; padding: 0 12px; border: 1px solid #b9c9da; border-radius: 10px; background: #f5f8fb; color: #294661; font-size: 13px; font-weight: 850; box-shadow: 0 1px 2px #10233e0d; transition: background .15s ease,color .15s ease,border-color .15s ease; }
.dialog-back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog-back:hover { border-color: #83add6; background: #e6f1fc; color: #0b61aa; }
.dialog-back:focus-visible { outline: 3px solid #91bee8; outline-offset: 2px; }
.settings-dialog label { display: grid; grid-template-columns: 1fr 180px; align-items: center; margin: 14px 0; font-weight: 700; }
.settings-dialog input, .settings-dialog select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.settings-dialog fieldset { border: 1px solid var(--line); border-radius: 10px; }
.action-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.action-checks label { display: flex; gap: 8px; margin: 4px; }
.feature-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 8px; }
.feature-checks label { display: flex; justify-content: flex-start; gap: 8px; margin: 3px 0; font-weight: 650; }
.configuration-fields { margin-top: 14px; }
.configuration-fields > label { grid-template-columns: 1fr 220px; }
.danger-zone { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; margin-top: 14px; padding: 13px; border: 1px solid #efb1b8; background: #fff7f8; border-radius: 10px; }
.danger-zone span { color: var(--muted); font-size: 13px; }
.danger-zone .danger-outline { grid-row: 1 / 3; grid-column: 2; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dialog-actions button, .message-dialog button { border-radius: 9px; padding: 12px 18px; border: 1px solid var(--line); }
.message-dialog { width:min(680px,92vw); padding:0; overflow:hidden; border:0; border-radius:17px; background:#fff; box-shadow:0 28px 80px #06172d73; }
.message-dialog-layout { display:block; padding:0; }
.message-dialog-head,.confirm-dialog-head { display:grid; grid-template-columns:58px minmax(0,1fr); gap:16px; align-items:center; padding:22px 26px; background:#092746; color:#fff; }
.message-dialog-icon,.confirm-dialog-icon { width:52px; height:52px; display:grid; place-items:center; border:2px solid #8bb8df; border-radius:50%; background:#123b61; color:#fff; font-size:26px; font-weight:950; }
.message-dialog-icon svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.message-dialog-head h2,.confirm-dialog-head h2 { margin:0 0 7px; color:#fff; font-size:24px; line-height:1.15; }
.message-dialog-head small,.confirm-dialog-head small { display:inline-flex; width:max-content; padding:4px 9px; border-radius:6px; background:#2474b8; color:#fff; font-size:11px; font-weight:950; letter-spacing:.055em; text-transform:uppercase; }
.message-dialog-body { padding:22px 26px 8px; background:#fff; }
.message-dialog-layout .message-body { padding:15px 17px; border:1px solid #cbd8e5; border-radius:10px; background:#f5f8fb; color:#344a63; font-size:16px; line-height:1.55; }
.message-dialog-layout.error .message-body { border-color:#efb1b8; background:#fff7f8; color:#671923; }.message-dialog-layout.warning .message-body { border-color:#ead9a6; background:#fffaf0; color:#493a19; }.message-dialog-layout.success .message-body { border-color:#a9ddc4; background:#f3fcf7; color:#18583a; }
.message-dialog[data-variant="stock-block"] { width:min(700px,92vw); }.message-dialog[data-variant="stock-block"] .message-body { display:grid; gap:10px; padding:0; border:0; background:transparent; color:var(--ink); }.stock-block-product { display:grid; grid-template-columns:minmax(170px,1fr) minmax(300px,auto); gap:18px; align-items:center; padding:15px 17px; border:1px solid #cfdae6; border-radius:11px; background:#f5f8fb; }.stock-block-product > strong { font-size:19px; }.stock-block-values { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.stock-block-values span { display:flex; justify-content:space-between; gap:16px; align-items:baseline; padding:11px 13px; border-radius:9px; background:#e9eff6; color:#29435e; white-space:nowrap; }.stock-block-values span:first-child { background:#ffe8eb; color:#9e1e2d; }.stock-block-values b { font-size:20px; }.message-dialog[data-variant="stock-block"] .message-dialog-actions button { width:100%; background:#1768c1; }
.message-dialog-actions { display:flex; justify-content:flex-end; padding:16px 26px 22px; background:#fff; }
.message-dialog-actions button { min-width:180px; min-height:48px; border:0 !important; background:var(--accent); color:#fff; font-weight:900; }
.message-dialog-layout.warning .message-dialog-head small { background:#d4930b; }.message-dialog-layout.warning .message-dialog-icon { border-color:#f0c45e; background:#76520c; }
.message-dialog-layout.error .message-dialog-head small { background:#dc3446; }.message-dialog-layout.error .message-dialog-icon { border-color:#ef7d88; background:#7a1c28; }
.message-dialog-layout.success .message-dialog-head small { background:#07884c; }.message-dialog-layout.success .message-dialog-icon { border-color:#68c79c; background:#075b38; }
.confirm-dialog { width:min(620px,92vw); padding:0; overflow:hidden; border:0; border-radius:17px; background:#fff; color:var(--ink); box-shadow:0 28px 80px #06172d73; }
.confirm-dialog-head small { background:#d4930b; }
.confirm-dialog-message { margin:20px 26px 0; padding:15px 17px; border:1px solid #cbd8e5; border-radius:10px; background:#f5f8fb; color:#29435e; font-size:15px; line-height:1.55; }
.confirm-dialog-input { display:grid; gap:7px; margin:15px 26px 0; color:#344a63; font-size:13px; font-weight:800; }.confirm-dialog-input input { width:100%; padding:13px; border:1px solid #aebdcd; border-radius:9px; color:var(--ink); font-weight:850; }.confirm-dialog-input input:focus { outline:3px solid #91bee8; border-color:#1268b3; }
.confirm-dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; padding:16px 26px 22px; border-top:1px solid var(--line); background:#f7f9fc; }.confirm-dialog-actions button { min-width:145px; min-height:48px; padding:10px 18px; border:1px solid #bdc9d6; border-radius:9px; background:white; color:var(--ink); font-weight:850; }.confirm-dialog-actions .danger { border-color:#bd2031; background:#bd2031; color:white; }.confirm-dialog-actions .primary { border-color:var(--accent); background:var(--accent); color:white; }
.confirm-dialog[data-tone="danger"] .confirm-dialog-head small { background:#dc3446; }.confirm-dialog[data-tone="danger"] .confirm-dialog-icon { border-color:#ef7d88; background:#7a1c28; }.confirm-dialog[data-tone="danger"] .confirm-dialog-message { border-color:#efb1b8; background:#fff7f8; color:#671923; }.confirm-dialog[data-tone="success"] .confirm-dialog-head small { background:#07884c; }.confirm-dialog[data-tone="success"] .confirm-dialog-icon { border-color:#68c79c; background:#075b38; }.confirm-dialog[data-tone="success"] .confirm-dialog-message { border-color:#a9ddc4; background:#f3fcf7; color:#18583a; }
.storno-last-receipt { display:grid; grid-template-columns:1fr auto; gap:5px 18px; align-items:center; margin:12px 0; padding:14px 16px; border:1px solid var(--line); border-radius:11px; background:#f5f8fb; }
.storno-last-receipt span { display:grid; gap:3px; }.storno-last-receipt small,.storno-last-receipt em { color:var(--muted); font-size:12px; font-style:normal; }.storno-last-receipt strong { font-size:18px; }.storno-last-receipt b { color:var(--accent); font-size:22px; }.storno-last-receipt i { grid-column:1 / -1; color:#bd1525; font-size:12px; font-weight:850; }
.storno-cart-notice { padding:10px 12px; border-radius:8px; background:#fff4d6; color:#624600; font-weight:750; }
.storno-choice-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }.message-dialog .storno-choice-actions button { float:none; min-height:48px; border-radius:9px; font-weight:850; }.storno-choice-actions button:disabled { opacity:.45; cursor:not-allowed; }
.payment-dialog { width: min(620px, 94vw); padding: 26px; }
.deposit-return-dialog { width: min(720px,94vw); padding: 26px; }.deposit-return-dialog .dialog-title .icon-button { color: var(--ink); }.deposit-return-dialog select { width:100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }.deposit-return-entry { display:grid; grid-template-columns:minmax(190px,1.2fr) minmax(190px,.8fr) auto; gap:10px; align-items:end; margin:15px 0; padding:14px; border:1px solid var(--line); border-radius:11px; background:#f7f9fc; }.deposit-return-entry label { display:grid; gap:7px; font-weight:850; }.deposit-return-quantity { display: grid; grid-template-columns: 48px 1fr 48px; gap: 7px; }.deposit-return-quantity button, .deposit-return-quantity input { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 20px; font-weight: 900; }.deposit-return-entry-total { grid-column:1 / 3; display:flex; justify-content:space-between; align-items:baseline; padding:8px 4px 0; color:var(--muted); }.deposit-return-entry-total strong { color:var(--ink); font-size:19px; }.deposit-return-add { grid-column:3; grid-row:1 / 3; min-height:46px; padding:10px 15px; border:0; border-radius:9px; background:#23756a; color:white; font-weight:900; }.deposit-return-draft-list { display:grid; gap:7px; min-height:58px; max-height:240px; overflow:auto; }.deposit-return-empty { display:grid; place-items:center; min-height:58px; border:1px dashed #becbd8; border-radius:9px; color:var(--muted); }.deposit-return-draft-row { display:grid; grid-template-columns:minmax(0,1fr) auto 100px 34px; gap:12px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:white; }.deposit-return-draft-row > span { display:grid; gap:3px; }.deposit-return-draft-row small { color:var(--muted); }.deposit-return-draft-row > div { display:grid; grid-template-columns:32px 34px 32px; align-items:center; text-align:center; }.deposit-return-draft-row > div button,.deposit-return-remove { width:32px; height:32px; border:1px solid var(--line); border-radius:7px; background:#f5f7fa; font-weight:900; }.deposit-return-draft-row > strong { text-align:right; color:#176d62; }.deposit-return-remove { color:#b61d2d; }.deposit-return-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding: 15px; border-radius: 10px; background: #e7f5f1; }.deposit-return-total strong { color: #176d62; font-size: 28px; }
.open-receipt-customer-dialog { width:min(560px,94vw); padding:26px; }.open-receipt-customer-dialog .dialog-title .icon-button { color:var(--ink); }.open-receipt-customer-dialog > label { display:grid; gap:7px; margin:18px 0; font-weight:850; }.open-receipt-customer-dialog > label input { padding:13px; border:1px solid var(--line); border-radius:9px; font-size:18px; }.open-receipts-dialog { width:min(900px,95vw); max-height:86vh; padding:24px; }
.payment-dialog .dialog-title .icon-button { color: var(--ink); }
.payment-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; padding: 18px; border-radius: 12px; background: #eaf3fc; }.payment-total span { color: #55718d; font-weight: 800; }.payment-total strong { color: #1268b3; font-size: 36px; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }.payment-methods button { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7fa; color: #294661; font-weight: 850; }.payment-methods button.active { border-color: var(--accent); background: var(--accent); color: white; }
.payment-panel { min-height: 190px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }.payment-panel > label { display: grid; grid-template-columns: 1fr 230px; gap: 15px; align-items: center; font-weight: 850; }.payment-panel input { width: 100%; padding: 13px; border: 1px solid #aebdcd; border-radius: 9px; font-size: 24px; text-align: right; }
.payment-presets { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 14px 0; }.payment-presets button { padding: 11px 8px; border: 1px solid #bdc9d6; border-radius: 8px; background: white; color: #294661; font-weight: 850; }
.payment-change, .payment-result { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; align-items: baseline; padding: 12px 14px; border-radius: 9px; background: #e9f8f0; }.payment-change span, .payment-result span { color: #4d6b5c; font-weight: 750; }.payment-change strong { color: #07884c; font-size: 28px; }.payment-change strong.payment-short { color: #c52232; }
.payment-result { margin: 14px 0 4px; background: #f3f6fa; }.payment-card-note { display: grid; gap: 8px; padding: 20px; border-radius: 10px; background: #eef4fb; color: #153d68; }.payment-card-note span { color: #55718d; line-height: 1.45; }
.keep-change-button { width: 100%; margin-top: 9px; padding: 11px; border: 1px solid #e0b458; border-radius: 8px; background: #fff7df; color: #74520b; font-weight: 900; }.payment-tip-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; margin-top: 14px; padding: 14px; border: 1px solid #e2c77e; border-radius: 10px; background: #fffaf0; }.payment-tip-box label { display: grid; gap: 6px; font-size: 13px; }.payment-tip-box input { padding: 11px; border: 1px solid #c9b16d; border-radius: 8px; }.payment-tip-box > div { display: grid; gap: 5px; text-align: right; }.payment-tip-box > div span { color: var(--muted); font-size: 12px; }.payment-tip-box > div strong { font-size: 22px; color: #8a6108; }
.report-settings-tools { margin-top: 14px; }
.report-archive-dialog { width: min(1020px, 95vw); height: min(790px, 92vh); padding: 24px; overflow-y: auto; }.report-archive-dialog .dialog-title .icon-button { color: var(--ink); }.report-archive-toolbar { display: flex; justify-content: flex-end; align-items: end; gap: 10px; margin: 13px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fb; }.report-archive-toolbar label { display: grid; gap: 5px; margin-right: auto; font-size: 13px; font-weight: 800; }.report-archive-toolbar input, .report-archive-toolbar button, .report-detail-toolbar button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; }.report-archive-summary { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }.report-archive-list { display: grid; gap: 8px; }.report-archive-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; gap: 15px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; }.report-archive-row:hover { border-color: #9fc0e3; background: #fafdff; }.report-archive-row span { display: grid; gap: 4px; }.report-archive-row span:nth-child(2) { text-align: right; }.report-archive-row small { color: var(--muted); }.report-archive-row b { color: var(--accent); }.empty-report-archive { display: grid; gap: 7px; place-items: center; padding: 70px 20px; border: 1px dashed #b9c6d4; border-radius: 12px; color: var(--muted); }.report-detail-toolbar { display: flex; justify-content: space-between; margin: 14px 0 20px; }.report-detail-toolbar > span { display: flex; gap: 8px; }.report-detail-toolbar button:first-child { background: white; color: #294661; }.monthly-report-heading { display: flex; align-items: baseline; gap: 15px; margin: 8px 0 18px; padding: 15px; border-radius: 10px; background: #eaf3fc; }.monthly-report-heading small { color: #55718d; font-weight: 800; }.monthly-report-heading h3 { margin: 0; text-transform: capitalize; }.monthly-report-heading strong { margin-left: auto; color: #1268b3; }
.report-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; margin: 16px 0; }
.report-meta { color: var(--muted); font-size: 13px; }
.report-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
.report-table th { background: #f4f7fb; color: var(--muted); font-size: 13px; }
.report-output-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 9px; margin-top: 14px; }.report-print-choice { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 850; }.report-print-choice select { min-height: 42px; padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-weight: 750; }.report-detail-toolbar .report-print-choice { min-width: 170px; }
.report-print, .report-receipt-print, .report-csv-export { padding: 11px 15px; border: 0; border-radius: 8px; color: white; font-weight: 850; }
.report-print { background: var(--navy); }
.report-receipt-print, .receipt-print-button { background: #07884c !important; color: white !important; border-color: #07884c !important; }
.report-csv-export, .csv-export-button { background: #7048a8 !important; color: white !important; border-color: #7048a8 !important; }
.receipt-archive-dialog { width: min(1180px, 97vw); height: min(880px, 95vh); padding: 22px; }.receipt-archive-dialog .dialog-title .icon-button { color: var(--ink); }.receipt-archive-filters { display: grid; grid-template-columns: minmax(220px,1.8fr) repeat(5,minmax(120px,1fr)); gap: 9px; align-items: end; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f6f8fb; }.receipt-archive-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 850; }.receipt-archive-filters input, .receipt-archive-filters select, .receipt-filter-actions button { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }.receipt-filter-actions { display: flex; gap: 7px; grid-column: 1 / -1; justify-content: flex-end; }.receipt-filter-actions button { width: auto; min-width: 120px; }.receipt-archive-summarybar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 9px 0; color: var(--muted); }.archive-pagination { display: flex; align-items: center; gap: 8px; }.archive-pagination button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #294661; }.archive-pagination button:disabled { opacity: .45; }.receipt-archive-head, .receipt-archive-row { display: grid; grid-template-columns: 1.1fr 1fr .55fr 1.65fr; gap: 12px; align-items: center; }.receipt-archive-head { padding: 9px 13px; background: #f3f6fa; color: var(--muted); font-size: 12px; font-weight: 850; }.receipt-archive-list { max-height: calc(100% - 285px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }.receipt-archive-row { padding: 11px 13px; border-bottom: 1px solid var(--line); }.receipt-archive-row > span { display: grid; gap: 3px; }.receipt-archive-row small { color: var(--muted); }.receipt-archive-amount { font-size: 18px; font-weight: 900; text-align: right; }.receipt-archive-actions { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.receipt-archive-actions a, .receipt-archive-actions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #294661; font-size: 12px; font-weight: 800; text-decoration: none; }.receipt-archive-actions .void-receipt { border-color: #e8a2aa; color: #b61d2d; }.receipt-archive-actions button:disabled { opacity: .55; cursor: not-allowed; }.receipt-status-open { color: #07884c; font-weight: 850; }.receipt-status-void { color: #b61d2d; font-weight: 850; }.receipt-status-closed { color: #7048a8; font-weight: 850; }
.difference-ok { color: #07884c; }.difference-warning { color: #c52232; }
.void-notice { padding: 9px; border-radius: 7px; background: #ffe8eb; color: #b61d2d; font-weight: 900; }
.receipt-qr { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; margin-top: 16px; padding: 12px; background: #f4f7fb; border-radius: 12px; }
.receipt-qr img { width: 150px; height: 150px; background: white; }
.receipt-qr p { text-align: left; margin: 5px 0 12px; }
.receipt-qr a { color: var(--accent); font-weight: 750; }
.catalog-dialog { width: min(1120px, 95vw); height: min(820px, 92vh); padding: 22px; }
.catalog-dialog .dialog-title h2 { margin: 2px 0 12px; }
.catalog-dialog .dialog-title .icon-button { color: var(--ink); }
.catalog-dialog .dialog-title-with-back { grid-template-columns:112px minmax(0,1fr) auto 42px; }
.catalog-admin { display: grid; grid-template-columns: 44% 56%; height: calc(100% - 76px); min-height: 430px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.catalog-admin.list-expanded { grid-template-columns:1fr; height:calc(100% - 76px); min-height:0; }
.catalog-admin.list-expanded aside { border-right:0; }
.catalog-admin.list-expanded .product-form { display:none; }
.catalog-admin.list-expanded .admin-toolbar { grid-template-columns:minmax(220px,1.5fr) auto minmax(150px,1fr) minmax(150px,1fr); align-items:center; }
.catalog-admin.list-expanded .admin-toolbar select { grid-column:auto; width:auto; }
.catalog-admin aside { display: grid; grid-template-rows: auto auto 1fr; border-right: 1px solid var(--line); min-height: 0; }
.admin-toolbar { display: grid; grid-template-columns:minmax(80px,1.25fr) auto minmax(82px,.9fr) minmax(78px,.9fr); gap:5px; align-items:center; padding:8px; border-bottom: 1px solid var(--line); }
.admin-toolbar input { flex: 1; }
.admin-toolbar select { grid-column:auto; width:100%; min-width:0; background:#fff; }
.catalog-dialog > .dialog-title .catalog-list-toggle { margin-left:auto; padding:8px 12px; border:1px solid #b9cce0; border-radius:8px; background:#eef6ff; color:#0b61aa; font-size:12px; font-weight:850; }
.admin-toolbar input, .admin-toolbar select, .admin-toolbar button, .product-form input, .product-form select, .product-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.admin-toolbar input,.admin-toolbar select,.admin-toolbar button { min-width:0; padding:8px 6px; font-size:12px; }
.admin-bulk-toolbar { display:grid; grid-template-columns:auto 1fr auto auto auto; gap:6px; align-items:center; padding:7px 10px; border-bottom:1px solid var(--line); background:#f5f8fb; }
.admin-bulk-toolbar label { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:800; }
.admin-bulk-toolbar strong { grid-column:auto; color:var(--muted); font-size:11px; }
.admin-bulk-toolbar button { min-height:31px; padding:5px 8px; border:1px solid #cbd6e2; border-radius:7px; background:white; color:var(--ink); font-size:11px; font-weight:800; }
.admin-bulk-toolbar button:disabled { opacity:.45; cursor:not-allowed; }
.admin-product-list { overflow-y: auto; }
.admin-product-row { display:grid; grid-template-columns:32px 1fr; align-items:center; border-bottom:1px solid var(--line); background:white; }
.admin-product-row > input { width:18px; height:18px; margin:auto; }
.admin-product-row.inactive { background:#f2f4f7; opacity:.72; }
.admin-product { width:100%; min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:9px; border:0; background:transparent; padding:9px 10px 9px 2px; text-align:left; }
.admin-product > span:nth-child(2) { min-width:0; }
.admin-product > span:nth-child(2) > strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.admin-product:hover, .admin-product.active { background: #eef6ff; }
.admin-product small { display:block; color: var(--muted); margin-top:3px; }
.admin-product > strong:last-child { grid-column: 3; align-self: center; }
.admin-product-visual { width:36px; height:36px; overflow:hidden; border:2px solid white; border-radius:8px; box-shadow:0 0 0 1px var(--line); }.admin-product-visual img { width:100%; height:100%; object-fit:cover; }
.product-form { padding: 18px; overflow-y: auto; }
.product-form > *,.product-image-editor > div { min-width:0; }
.product-form input,.product-form select,.product-form textarea { max-width:100%; min-width:0; }
.product-form > label { display: grid; gap: 6px; margin-bottom: 13px; font-weight: 750; }
.product-form .manual-price-option { grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; border: 1px solid #b9cce0; border-radius: 10px; background: #f4f8fc; }
.manual-price-option span { display: grid; gap: 4px; }
.manual-price-option small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.manual-price-option input { width: 22px; height: 22px; }
.product-form textarea { resize: vertical; }
.product-color-control { display:flex; align-items:center; gap:8px; min-height:42px; padding:4px 7px; border:1px solid var(--line); border-radius:8px; background:white; }.product-color-control input { width:48px; height:32px; padding:0; border:0; background:transparent; cursor:pointer; }.product-color-control strong { font-size:12px; color:var(--muted); }
.product-image-editor { display:grid; grid-template-columns:112px 1fr; gap:14px; align-items:center; margin:2px 0 14px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; }.product-image-editor > div:last-child { display:grid; gap:7px; }.product-image-editor label { display:grid; gap:5px; font-weight:750; }.product-image-editor small { color:var(--muted); line-height:1.35; }.product-image-editor .danger-outline { justify-self:start; margin:2px 0 0; padding:7px 10px; }.product-image-preview { width:112px; height:88px; overflow:hidden; display:grid; place-items:center; border:1px solid #b9c7d7; border-radius:9px; background:white; }.product-image-preview img { width:100%; height:100%; object-fit:cover; }.product-image-preview span { padding:8px; color:var(--muted); font-size:12px; text-align:center; }.product-image-preview.empty { background:repeating-linear-gradient(135deg,#f7f9fc,#f7f9fc 8px,#edf1f6 8px,#edf1f6 16px); }
.manual-price-dialog { width: min(430px,94vw); padding: 26px; }
.manual-price-dialog .dialog-title h2 { margin: 3px 0 14px; }
.manual-price-dialog .dialog-title .icon-button { color: var(--ink); }
.barcode-choice-dialog { width:min(600px,94vw); padding:24px; }.barcode-choice-dialog .dialog-title .icon-button { color:var(--ink); }.barcode-choice-code { display:flex; justify-content:space-between; gap:18px; margin:8px 0 12px; padding:11px 14px; border-radius:9px; background:#eef4fb; color:var(--muted); font-weight:750; }.barcode-choice-code strong { color:var(--ink); }.barcode-choice-list { display:grid; gap:9px; max-height:430px; margin:14px 0; overflow:auto; }.barcode-choice-item { width:100%; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); text-align:left; }.barcode-choice-item:hover,.barcode-choice-item:focus-visible { border-color:#7fb3e2; background:#f1f8ff; }.barcode-choice-item span { display:grid; gap:4px; }.barcode-choice-item small { color:var(--muted); }.barcode-choice-item > strong { font-size:20px; color:var(--accent); }
.unknown-article-dialog { width: min(650px,94vw); padding: 26px; }
.unknown-article-dialog .dialog-title .icon-button { color: var(--ink); }
.unknown-barcode { display: flex; justify-content: space-between; gap: 20px; margin: 10px 0 16px; padding: 14px 16px; border-radius: 10px; background: #eef4fb; color: #55718d; font-weight: 750; }
.unknown-barcode strong { color: var(--ink); font-size: 18px; overflow-wrap: anywhere; }
.unknown-article-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.unknown-article-fields .wide { grid-column: 1 / -1; }
.unknown-article-fields label { display: grid; gap: 6px; font-weight: 800; }
.unknown-article-fields input, .unknown-article-fields select { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.permission-note { padding: 12px 14px; border: 1px solid #e2c77e; border-radius: 9px; background: #fff8e5; color: #74520b; font-weight: 800; }
.manual-price-display { display: grid; gap: 7px; color: var(--muted); font-weight: 850; }
.manual-price-display input { width: 100%; padding: 14px; border: 2px solid #9eb8d2; border-radius: 11px; color: var(--ink); font-size: 34px; font-weight: 900; text-align: right; }
.manual-price-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 15px; }
.manual-price-pad button { min-height: 58px; border: 0; border-radius: 10px; background: #edf2f8; color: var(--ink); font-size: 23px; font-weight: 900; }
.manual-price-pad button:active { background: #d8e6f4; transform: translateY(1px); }
.weigh-item-option { background: #eef8f3 !important; border-color: #9ccdb5 !important; }
.weigh-unit-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 15px; }
.weigh-unit-switch button { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7fa; color: var(--ink); font-weight: 850; }
.weigh-unit-switch button.active { border-color: #07884c; background: #07884c; color: white; }
.weigh-calculation { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: #e9f8f0; }
.weigh-calculation span { color: #4d6b5c; font-weight: 750; }
.weigh-calculation strong { color: #07884c; font-size: 28px; }
.inventory-product-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; }.inventory-product-fields label { display: grid; gap: 6px; font-weight: 750; }.inventory-product-fields label:first-of-type { display: flex; align-items: center; gap: 8px; }.inventory-product-fields input { min-width: 0; }
.inline-fields { display: grid; grid-template-columns: 1.2fr 1.2fr .65fr; gap: 12px; }
.inline-fields label { display: grid; gap: 6px; font-weight: 750; }
.hint { color: var(--muted); font-size: 13px; }
.receipt-archive-row.is-correction { background: #fff8f9; }
.receipt-status-correction,.receipt-status-corrected { display: inline-block; width: max-content; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.receipt-status-correction { color: #b61d2d; background: #ffe5e8; }
.receipt-status-corrected { color: #7048a8; background: #eee6fa; }
.receipt-archive-actions .counter-receipt-button { border-color: #c90012; background: #c90012; color: white; }
.counter-receipt-dialog { width: min(540px,94vw); }
.counter-receipt-dialog form { display:grid; gap:14px; }
.counter-receipt-dialog label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:800; }
.counter-receipt-dialog input,.counter-receipt-dialog select { min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }
.counter-receipt-reference { display:grid; grid-template-columns:1fr auto; gap:8px 18px; padding:14px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; }
.counter-receipt-reference strong { text-align:right; }
.counter-receipt-reference strong:last-child { color:#b61d2d; font-size:20px; }
.danger-action { border:1px solid #b61d2d; border-radius:8px; padding:11px 15px; background:#c90012; color:white; font-weight:850; }
.danger-outline { margin: 12px; border: 1px solid #cf2636; color: #b61d2d; background: white; border-radius: 8px; padding: 10px; font-weight: 800; }
.category-color-field { display:grid; gap:4px; min-width:0; color:var(--ink); font-size:12px; font-weight:800; }
.category-color-control { display:flex; align-items:center; gap:7px; min-height:39px; padding:3px 7px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:white; }
.category-color-control input { flex:0 0 46px; width:46px; height:30px; padding:0; border:0; border-radius:5px; background:transparent; cursor:pointer; }
.categories-dialog { width:min(1080px,95vw); height:min(760px,92vh); padding:22px; overflow:hidden; border-radius:17px; background:#f4f7fa; }
.categories-dialog .dialog-title { height:58px; }
.categories-dialog .dialog-title .icon-button { color:var(--ink); }
.categories-admin { height:calc(100% - 70px); min-height:0; display:grid; grid-template-columns:38% 62%; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.categories-admin > aside { min-height:0; display:grid; grid-template-rows:auto 1fr; border-right:1px solid var(--line); background:#f8fafc; }
.categories-list-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px 16px; border-bottom:1px solid var(--line); background:#fff; }
.categories-list-heading > div { display:grid; gap:3px; }.categories-list-heading small,.category-form-heading small { color:var(--muted); font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.categories-list-heading strong { font-size:17px; }.categories-list-heading button { padding:9px 13px; border:0; border-radius:8px; background:#1268b3; color:#fff; font-weight:850; }
.category-admin-list { min-height:0; overflow:auto; padding:8px; }
.category-admin-list > button { width:100%; display:grid; grid-template-columns:54px minmax(0,1fr) 20px; gap:11px; align-items:center; padding:9px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--ink); text-align:left; }
.category-admin-list > button:hover { background:#edf5fd; }.category-admin-list > button.active { border-color:#8ebce6; background:#e4f1fd; }
.category-admin-list i { width:54px; height:46px; display:block; overflow:hidden; border:1px solid #cbd6e1; border-radius:8px; background:#fff; }
.category-admin-list i img,.category-admin-list i > span { width:100%; height:100%; display:block; object-fit:cover; }
.category-admin-list button > span { min-width:0; display:grid; gap:4px; }.category-admin-list button > span strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.category-admin-list button small { color:var(--muted); }.category-admin-list button b { color:#1976c6; font-size:22px; }
.category-form { min-width:0; overflow:auto; padding:22px 24px; background:#fff; }
.category-form-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:18px; }.category-form-heading h3 { margin:3px 0 0; font-size:22px; }.category-form-heading > span { padding:6px 10px; border-radius:999px; background:#eaf3fc; color:#1268b3; font-size:12px; font-weight:850; }
.category-form > label,.category-image-editor label { display:grid; gap:6px; margin-bottom:15px; font-size:13px; font-weight:800; }
.category-form input,.category-form select,.category-form button { border:1px solid var(--line); border-radius:8px; padding:10px; }
.category-form .inline-fields { grid-template-columns:1fr 1fr; margin-bottom:16px; }
.category-form .category-color-field { display:grid; grid-template-columns:1fr; gap:6px; margin:0; }
.category-image-editor { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; }
.category-image-editor > div:last-child { display:grid; gap:7px; }.category-image-editor label { margin:0; }.category-image-editor small { color:var(--muted); line-height:1.4; }.category-image-editor .danger-outline { justify-self:start; }
.category-image-preview { width:150px; height:112px; display:grid; place-items:center; overflow:hidden; border:1px solid #bcc9d7; border-radius:9px; background:#fff; }.category-image-preview img { width:100%; height:100%; object-fit:cover; }.category-image-preview span { color:var(--muted); font-size:12px; }.category-image-preview.empty { background:repeating-linear-gradient(135deg,#fff,#fff 8px,#edf1f6 8px,#edf1f6 16px); }
.category-form-note { margin:14px 0 0; padding:11px 12px; border-left:4px solid #1268b3; border-radius:7px; background:#eef6ff; color:#4d6580; font-size:12px; line-height:1.45; }
.category-color-control strong { min-width:0; color:var(--muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.order-dialog { width: min(1050px, 94vw); height: min(780px, 92vh); padding: 22px; }
.order-dialog .dialog-title .icon-button { color: var(--ink); }
.order-filter { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 14px; align-items: end; }
.order-filter fieldset { border: 1px solid var(--line); border-radius: 9px; }
.order-filter > label { display: grid; gap: 6px; font-weight: 750; }
.order-filter select, .order-filter button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.order-category-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.order-category-checks label { display: flex; align-items: center; gap: 6px; }
.order-result { height: calc(100% - 165px); display: grid; grid-template-rows: auto 1fr auto; }
.order-summary { display: flex; justify-content: space-between; padding: 12px 2px; }
.order-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th { position: sticky; top: 0; background: #f4f7fb; color: var(--muted); font-size: 13px; }
.order-table .order-category-heading { background: #e8f1fb; color: #10233e; font-size: 17px; font-weight: 900; border-top: 2px solid #c4d5e8; }
.order-table .qty { text-align: right; }
.order-table .sold-quantity { color: #16823b; font-size: 19px; font-weight: 900; }
.order-table .order-quantity { color: #d0182b; font-size: 19px; font-weight: 900; }
.order-table input { width: 90px; padding: 8px; border: 1px solid #efb8bf; border-radius: 7px; text-align: right; color: #d0182b; font-size: 19px; font-weight: 900; }
.parked-dialog { width: min(720px, 92vw); padding: 22px; }
.parked-dialog .dialog-title .icon-button { color: var(--ink); }
.parked-list { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.parked-entry { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 18px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 14px; text-align: left; }
.parked-entry small { color: var(--muted); }
.parked-entry .parked-total { font-size: 20px; font-weight: 850; }
.parked-entry button { border: 0; border-radius: 8px; padding: 11px 14px; background: var(--accent); color: white; font-weight: 800; }
.labels-dialog { width: min(1080px, 95vw); height: min(780px, 92vh); padding: 22px; }
.deposits-dialog { width: min(920px, 95vw); max-height: 88vh; padding: 22px; }
.deposits-layout { display: grid; grid-template-columns: 46% 54%; min-height: 430px; margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.deposits-layout > aside { border-right: 1px solid var(--line); background: #f7f9fc; }
.deposit-list-head { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }
.deposit-list-head button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: white; font-weight: 850; }
.deposit-list { display: grid; max-height: 480px; overflow-y: auto; }
.deposit-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.deposit-row:hover { background: white; }
.deposit-row span { display: grid; gap: 3px; }.deposit-row small { color: var(--muted); }.deposit-row b { font-size: 17px; }
.deposit-row i { min-width: 50px; padding: 5px 7px; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 900; text-align: center; }.deposit-row i.active { background: #daf5e8; color: #087a46; }.deposit-row i.inactive { background: #e8edf3; color: #647487; }
.deposit-form { padding: 20px; }.deposit-form > label:not(.manual-price-option) { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 800; }.deposit-form input:not([type=checkbox]), .deposit-form select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.deposit-tax-notice { margin: -5px 0 16px; padding: 10px 12px; border-left: 4px solid #e3a20b; background: #fff8e5; color: #6f5310; font-weight: 750; }
.labels-dialog .dialog-title .icon-button { color: var(--ink); }
.labels-layout { display: grid; grid-template-columns: 43% 57%; height: calc(100% - 65px); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.labels-layout > section { min-height: 0; }
.labels-layout > section:first-child { display: grid; grid-template-rows: auto 1fr; border-right: 1px solid var(--line); }
.label-product-tools { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.label-product-tools input { flex: 1; }
.label-product-tools input, .label-product-tools button, .label-settings input { border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.label-product-list { overflow-y: auto; }
.label-product-row { display: grid; grid-template-columns: auto 1fr 74px; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.label-product-row small { display: block; color: var(--muted); }
.label-product-row input[type="number"] { width: 70px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.label-designer { padding: 18px; overflow-y: auto; }
.label-settings { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px 14px; margin-bottom: 18px; }
.label-settings label { display: grid; gap: 5px; font-size: 13px; font-weight: 750; }
.label-settings input[type="color"] { width: 100%; height: 42px; }
.label-preview-stage { min-height: 260px; margin-top: 8px; padding: 18px; display: grid; place-items: center; border-radius: 10px; background: #eef2f7; overflow: auto; }
.price-label { width: 58mm; height: 40mm; padding: 3mm; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid #aeb9c6; box-shadow: 0 8px 22px #10233e20; overflow: hidden; }
.price-label .label-name { font-weight: 850; line-height: 1.15; }
.price-label .label-price { align-self: center; text-align: right; font-size: 1.8em; font-weight: 950; }
.price-label img { width: 100%; height: 13mm; object-fit: fill; }
.inventory-dialog { width: min(1050px, 95vw); height: min(760px, 92vh); padding: 22px; }.inventory-dialog .dialog-title .icon-button { color: var(--ink); }.inventory-toolbar { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }.inventory-toolbar select { width: 210px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; }.inventory-toolbar input { flex: 1; min-width: 180px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }.inventory-toolbar span { color: var(--muted); font-weight: 750; white-space: nowrap; }.inventory-table-wrap { height: calc(100% - 130px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }.inventory-table { width: 100%; border-collapse: collapse; }.inventory-table th, .inventory-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }.inventory-table th { position: sticky; top: 0; background: #f3f6fa; color: var(--muted); font-size: 12px; }.inventory-table input { width: 100px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }.inventory-table button { padding: 8px 11px; border: 0; border-radius: 7px; background: var(--accent); color: white; font-weight: 800; }.stock-low { color: #c52232; font-weight: 900; }.stock-ok { color: #07884c; font-weight: 850; }.stock-off { color: var(--muted); }
.goods-receipt-dialog { width:min(1120px,96vw); height:min(820px,94vh); padding:22px; }
.goods-receipt-dialog .dialog-title .icon-button { color:var(--ink); }
.goods-receipt-layout { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(480px,1.4fr); gap:18px; height:calc(100% - 150px); min-height:430px; }
.goods-receipt-entry,.goods-receipt-basket { min-height:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.goods-receipt-entry label { display:grid; gap:6px; margin-bottom:13px; font-weight:800; }
.goods-receipt-entry input { width:100%; padding:13px; border:1px solid var(--line); border-radius:9px; font-size:16px; }
.goods-receipt-search-label input { border:2px solid #79addf; font-size:18px; }
.goods-receipt-search-label input:focus { outline:3px solid #cfe7ff; border-color:var(--accent); }
.goods-receipt-search-results { max-height:270px; overflow:auto; display:grid; gap:7px; }
.goods-receipt-search-results button { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:9px; background:#f8fbff; color:var(--ink); text-align:left; }
.goods-receipt-search-results button:hover:not(:disabled) { border-color:#6ba8df; background:#edf6ff; }
.goods-receipt-search-results button:disabled { opacity:.55; cursor:not-allowed; }
.goods-receipt-search-results small { display:block; margin-top:3px; color:var(--muted); }
.goods-receipt-search-results .barcode-conflict { padding:10px; border-radius:8px; background:#fff3cf; color:#7a4c00; font-weight:800; }
.goods-receipt-basket { display:grid; grid-template-rows:auto 1fr auto auto; }
.goods-receipt-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.goods-receipt-summary div { display:grid; gap:3px; }.goods-receipt-summary small { color:var(--muted); }.goods-receipt-summary strong { font-size:19px; }
.goods-receipt-items { min-height:0; overflow:auto; }
.goods-receipt-row { display:grid; grid-template-columns:minmax(170px,1fr) auto auto auto; gap:12px; align-items:center; padding:11px 4px; border-bottom:1px solid var(--line); }
.goods-receipt-row small { display:block; margin-top:3px; color:var(--muted); }
.goods-receipt-row .stock-change { color:#087a48; font-weight:850; white-space:nowrap; }
.goods-receipt-quantity { display:grid; grid-template-columns:38px 72px 38px; align-items:center; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.goods-receipt-quantity button { height:38px; padding:0; border:0; background:#eef5fb; color:var(--ink); font-size:20px; }
.goods-receipt-quantity input { width:72px; height:38px; padding:0 5px; border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); text-align:center; font-size:17px; font-weight:900; }
.goods-receipt-remove { border:0; background:transparent; color:#bd1f2d; font-size:20px; }
.goods-receipt-actions { margin-top:0; }.goods-receipt-actions .primary { min-width:260px; }
.goods-receipt-history { margin-top:13px; padding:10px 13px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.goods-receipt-history summary { cursor:pointer; font-weight:850; }.goods-receipt-history-list { display:grid; gap:7px; margin-top:10px; max-height:130px; overflow:auto; }
.goods-receipt-history-row { display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; padding:8px 10px; border-radius:8px; background:white; }
.goods-receipt-history-row small { color:var(--muted); }.goods-receipt-history-row button { padding:7px 10px; }
@media (max-width:800px) { .goods-receipt-layout { grid-template-columns:1fr; height:auto; }.goods-receipt-dialog { overflow:auto; }.goods-receipt-basket { min-height:420px; }.goods-receipt-row { grid-template-columns:1fr auto; }.goods-receipt-row .stock-change { grid-column:1; }.goods-receipt-remove { grid-column:2; grid-row:1; } }
.cash-count-dialog { width: min(520px, 92vw); padding: 24px; }.cash-count-dialog .dialog-title .icon-button { color: var(--ink); }.blind-count-notice { display: grid; gap: 4px; margin: 16px 0; padding: 14px; border-radius: 9px; background: #fff1cf; color: #6b4700; }.blind-count-notice span { font-size: 13px; }.cash-expected { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding: 14px; border-radius: 9px; background: #eaf3fc; }.cash-expected strong { font-size: 24px; color: #1268b3; }.counted-cash-field { display: grid; gap: 7px; font-weight: 850; }.counted-cash-field input { padding: 14px; border: 1px solid #aebdcd; border-radius: 9px; font-size: 25px; text-align: right; }
.cash-drawer-dialog { width: min(820px, 94vw); max-height: 92vh; padding: 24px; overflow-y: auto; }.cash-drawer-dialog .dialog-title .icon-button { color: var(--ink); }.cash-drawer-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 15px 0; }.cash-drawer-summary > div { display: grid; gap: 5px; padding: 12px; border-radius: 9px; background: #f3f6fa; }.cash-drawer-summary span { color: var(--muted); font-size: 12px; }.cash-drawer-summary strong { font-size: 18px; }.cash-drawer-summary .drawer-expected { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; background: #eaf3fc; }.drawer-expected strong { color: #1268b3; font-size: 27px; }.cash-movement-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }.cash-movement-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }.cash-movement-form .wide { grid-column: 1 / -1; }.cash-movement-form input, .cash-movement-form select { padding: 10px; border: 1px solid #bdc9d6; border-radius: 8px; }.cash-movement-form button { justify-self: end; padding: 10px 22px; border-radius: 8px; }.cash-movement-list { display: grid; gap: 7px; max-height: 190px; overflow-y: auto; }.cash-movement-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; padding: 10px 12px; border-bottom: 1px solid var(--line); }.cash-movement-row small { color: var(--muted); }.cash-movement-row strong.deposit { color: #07884c; }.cash-movement-row strong.withdrawal { color: #c52232; }.drawer-hardware-note { display: grid; gap: 4px; margin-top: 16px; padding: 12px; border-radius: 9px; background: #fff8e8; color: #6b5315; }.drawer-hardware-note span { font-size: 13px; }

/* Zentrales Verwaltungs- und Einstellungszentrum */
.settings-dialog { width: min(1180px, 96vw); height: min(820px, 94vh); max-height: none; padding: 0; overflow: hidden; border-radius: 16px; }
.settings-dialog.catalog-wide { width:min(1600px,96vw); }
.settings-shell { height: 100%; display: grid; grid-template-columns: 270px 1fr; }
.settings-sidebar { display: grid; grid-template-rows: auto 1fr auto; padding: 24px 16px 18px; background: #071f3d; color: white; }
.settings-brand { padding: 0 10px 25px; border-bottom: 1px solid #ffffff20; }.settings-brand .brand { font-size: 25px; }.settings-brand small { display: block; margin-top: 4px; color: #aebed1; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; }
.settings-sidebar nav { display: grid; align-content: start; gap: 5px; padding-top: 18px; }
.settings-sidebar nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 0; border-radius: 8px; background: transparent; color: #c9d4e1; text-align: left; font-weight: 750; }
.settings-sidebar nav button svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-sidebar nav button span { min-width: 0; }
.settings-sidebar nav button[hidden] { display: none; }
.settings-sidebar nav button:hover { background: #ffffff0d; color: white; }.settings-sidebar nav button.active { background: var(--accent); color: white; box-shadow: inset 3px 0 color-mix(in srgb,var(--accent) 42%,white); }
.settings-version { padding: 14px 10px 0; border-top: 1px solid #ffffff20; color: #9fb0c4; font-size: 12px; line-height: 1.6; }.settings-version span { color: #f6bd52; font-weight: 850; }
.settings-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: 78px 1fr 72px; background: #f5f7fa; }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px; border-bottom: 1px solid var(--line); background: white; }.settings-header-start { display: flex; align-items: center; gap: 16px; }.settings-header small { color: var(--muted); font-weight: 800; }.settings-header h2 { margin: 2px 0 0; font-size: 24px; }.settings-header .icon-button { color: var(--ink); }
.settings-header-actions { display: flex; align-items: center; gap: 10px; }.settings-search { display: flex !important; grid-template-columns: none !important; align-items: center !important; gap: 7px; width: 245px; margin: 0 !important; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }.settings-search span { color: var(--muted); font-size: 21px; }.settings-search input { width: 100%; padding: 9px 2px !important; border: 0 !important; outline: 0; background: transparent; font-weight: 650; }
.settings-history { display: inline-flex; overflow: hidden; border: 1px solid #cbd6e2; border-radius: 10px; background: #f5f7fa; box-shadow: 0 1px 2px #10233e0d; }.settings-history button { min-width: 88px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 0; background: transparent; color: #294661; font-size: 13px; font-weight: 850; transition: background .15s ease,color .15s ease,box-shadow .15s ease; }.settings-history button + button { border-left: 1px solid #cbd6e2; }.settings-history button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.settings-history button:hover:not(:disabled) { background: #e6f1fc; color: #0b61aa; box-shadow: inset 0 -2px #1268b3; }.settings-history button:focus-visible { position: relative; z-index: 1; outline: 3px solid #91bee8; outline-offset: -3px; }.settings-history button:disabled { background: #f7f8fa; color: #a9b4c0; cursor: not-allowed; }.settings-history button:disabled svg { opacity: .65; }
.settings-content { min-height: 0; overflow-y: auto; padding: 24px 28px 35px; }.settings-pane { display: none; }.settings-pane.active { display: block; }
.pane-intro { margin-bottom: 18px; }.pane-intro h3 { margin: 0 0 5px; font-size: 22px; }.pane-intro p { margin: 0; color: var(--muted); line-height: 1.45; }
.settings-pane > .pane-intro > h3,
.settings-pane > .pane-intro-action > div > h3 { display: none; }
.company-logo-editor { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; }
.company-logo-editor > div:last-child { display:grid; gap:8px; }.company-logo-editor label { display:grid; grid-template-columns:1fr; gap:6px; margin:0; }.company-logo-editor small { color:var(--muted); line-height:1.4; }.company-logo-editor .danger-outline { justify-self:start; }
.company-logo-preview { width:150px; height:100px; display:grid; place-items:center; overflow:hidden; border:1px solid #bcc9d7; border-radius:9px; background:white; }.company-logo-preview img { width:100%; height:100%; object-fit:contain; }.company-logo-preview span { color:var(--muted); font-size:12px; }.company-logo-preview.empty { background:repeating-linear-gradient(135deg,#fff,#fff 8px,#edf1f6 8px,#edf1f6 16px); }
.settings-card { margin-bottom: 16px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 12px #10233e08; }.settings-card h4 { margin: 0 0 13px; font-size: 16px; }
.form-grid { display: grid; gap: 14px 18px; }.two-columns { grid-template-columns: 1fr 1fr; }.form-grid label { display: grid; grid-template-columns: none; gap: 6px; margin: 0; font-size: 13px; font-weight: 800; }.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .setting-row input, .setting-row select { width: 100%; padding: 11px; border: 1px solid #ccd5df; border-radius: 8px; background: white; color: var(--ink); resize: vertical; }
.form-grid .toggle-setting { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }.form-grid .toggle-setting input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); }
.setting-row { display: grid !important; grid-template-columns: 1fr 260px !important; gap: 16px; align-items: center; margin: 0 !important; }.setting-row + .setting-row { margin-top: 13px !important; padding-top: 13px; border-top: 1px solid var(--line); }
.setting-row > span small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:600; }
.setting-row input[type="checkbox"] { justify-self:end; width:20px; height:20px; padding:0; accent-color:var(--accent); }
.accent-color-control { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:5px 9px; border:1px solid #ccd5df; border-radius:8px; background:white; }.settings-dialog .accent-color-control input { flex:0 0 74px; width:74px; height:34px; padding:0; border:0; border-radius:6px; background:transparent; cursor:pointer; }.accent-color-control strong { color:var(--muted); font-size:13px; letter-spacing:.04em; }
.settings-dialog .action-checks, .settings-dialog .feature-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px 14px; }.settings-dialog .action-checks label, .settings-dialog .feature-checks label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; font-weight: 700; }.settings-dialog input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.function-key-settings { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; margin-top:12px; }.function-key-row { display:grid; grid-template-columns:42px 82px minmax(0,1fr); gap:9px; align-items:center; padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:#fafbfd; }.function-key-row > strong { display:grid; place-items:center; min-height:38px; border-radius:7px; background:#092746; color:#fff; }.settings-dialog .function-key-row label { display:flex; grid-template-columns:none; gap:7px; align-items:center; margin:0; font-size:13px; }.function-key-row select { width:100%; min-width:0; padding:9px !important; }.function-key-row select:disabled { opacity:.5; background:#eef1f5; }
.settings-dialog .quick-action-setting { display:grid; grid-template-columns:minmax(0,1fr) 116px; align-items:center; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fafbfd; }
.catalog-order-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.catalog-order-columns > section { min-width:0; display:grid; gap:8px; align-content:start; }
.catalog-order-columns label { display:grid; gap:5px; font-weight:800; }
.catalog-order-columns select { border:1px solid var(--line); border-radius:8px; padding:8px; background:white; }
.catalog-order-list { max-height:260px; overflow:auto; border:1px solid var(--line); border-radius:9px; background:white; }
.catalog-order-row { display:grid; grid-template-columns:minmax(0,1fr) 34px 34px; gap:4px; align-items:center; padding:6px 7px 6px 10px; border-bottom:1px solid var(--line); }
.catalog-order-row:last-child { border-bottom:0; }
.catalog-order-row span { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; font-weight:750; }
.catalog-order-row button { height:30px; padding:0; border:1px solid #c7d3df; border-radius:7px; background:#f6f9fc; color:#294661; font-weight:900; }
.catalog-order-row button:disabled { opacity:.35; cursor:not-allowed; }
.settings-dialog .quick-action-setting > label { min-width:0; padding:9px 11px; border:0; border-radius:0; background:transparent; }
.quick-action-color { display:flex; align-items:center; gap:6px; padding:5px 7px; border-left:1px solid var(--line); background:white; }
.settings-dialog .quick-action-color input { flex:0 0 38px; width:38px; height:28px; padding:0; border:0; border-radius:5px; background:transparent; cursor:pointer; }
.quick-action-color strong { min-width:0; overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; }
.product-tile-settings { display:grid; grid-template-columns:1fr 1fr; gap:9px 14px; }
.button-appearance-settings { margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.field-title { display:block; margin:14px 0 8px; }.surcharge-category-checks { margin-top:8px; }
.product-tile-settings > label { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:#fafbfd; font-weight:750; }
.product-tile-settings > label > span { display:flex; align-items:center; gap:8px; }
.product-tile-settings input[type="number"] { width:70px; padding:8px; border:1px solid #ccd5df; border-radius:7px; background:white; }
.settings-tools { display: grid; gap: 11px; }.settings-tool { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; box-shadow: 0 3px 12px #10233e08; }.settings-tool:hover { border-color: #9fc0e3; background: #fafdff; transform: translateY(-1px); }.settings-tool > span:nth-child(2) { display: grid; gap: 4px; }.settings-tool small { color: var(--muted); }.settings-tool b { color: var(--accent); }.tool-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #eaf3fc; color: #1268b3; font-size: 20px; font-weight: 950; }
.catalog-hub-intro { margin-bottom:20px; }
.catalog-hub-intro p { font-size:15px; }
.catalog-hub-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; align-items:stretch; }
.catalog-hub-card { min-width:0; min-height:520px; display:grid; grid-template-rows:220px minmax(0,1fr) 86px; overflow:hidden; border:1px solid #d7e0e9; border-radius:8px; background:#fff; box-shadow:0 6px 18px #10233e12; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.catalog-hub-card:hover { transform:translateY(-2px); border-color:#b8cadb; box-shadow:0 10px 24px #10233e1c; }
.catalog-hub-visual { width:100%; height:100%; background-image:url('/article-goods-tiles-reference.png'); background-repeat:no-repeat; background-size:534.19% 385.66%; background-position-y:37.16%; }
.catalog-hub-card-articles .catalog-hub-visual { background-position-x:22.81%; }
.catalog-hub-card-categories .catalog-hub-visual { background-position-x:47.24%; }
.catalog-hub-card-csv .catalog-hub-visual { background-position-x:71.82%; }
.catalog-hub-card-stock .catalog-hub-visual { background-position-x:96.62%; }
.catalog-hub-primary,.catalog-hub-heading { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 38px; gap:8px; align-items:start; padding:18px 15px 13px; border:0; background:#fff; color:var(--ink); text-align:left; }
.catalog-hub-heading { grid-template-columns:1fr; }
.catalog-hub-primary > span,.catalog-hub-heading { align-content:start; }
.catalog-hub-primary > span,.catalog-hub-heading { display:grid; gap:8px; }
.catalog-hub-primary strong,.catalog-hub-heading > strong { font-size:17px; line-height:1.18; font-weight:900; }
.catalog-hub-primary small,.catalog-hub-heading > small { color:#62758a; font-size:12px; line-height:1.45; font-weight:600; }
.catalog-hub-primary > b { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#e9f4ff; color:#087ae0; font-size:24px; line-height:1; transition:transform .16s ease,background .16s ease; }
.catalog-hub-primary:hover > b { transform:translateX(3px); background:#d9edff; }
.catalog-hub-footer { min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; border-top:1px solid #dfe6ed; background:#fff; }
.catalog-hub-footer > span,.catalog-hub-footer > button { min-width:0; display:grid; align-content:center; justify-items:center; gap:4px; padding:10px 5px; border:0; border-right:1px solid #e1e7ed; background:#fff; color:#18314e; text-align:center; }
.catalog-hub-footer > :last-child { border-right:0; }
.catalog-hub-footer strong { max-width:100%; overflow:hidden; color:#18314e; font-size:13px; line-height:1.1; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
.catalog-hub-footer small { max-width:100%; overflow:hidden; color:#718198; font-size:9px; line-height:1.2; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.catalog-hub-footer > button:hover { background:#eef6ff; }
.catalog-hub-actions > button strong { color:#086fc7; }
.register-hub-card { grid-template-rows:220px minmax(0,1fr) 86px; }
.register-hub-visual { width:100%; height:100%; background-image:url('/register-operation-tiles-reference.png'); background-repeat:no-repeat; background-size:534.19% 385.66%; background-position-y:37.16%; }
.register-hub-station .register-hub-visual { background-position-x:22.81%; }
.register-hub-sales .register-hub-visual { background-position-x:47.24%; }
.register-hub-scanner .register-hub-visual { background-position-x:71.82%; }
.register-hub-interface .register-hub-visual { background-position-x:96.62%; }
.register-hub-card .catalog-hub-primary > b { color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,white); }
.register-hub-card .catalog-hub-primary:hover > b { background:color-mix(in srgb,var(--accent) 20%,white); }
.register-hub-card .catalog-hub-footer strong { color:var(--accent); }
.register-hub-card:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent),0 10px 24px #10233e1c; }
.settings-pane .pane-intro h3 { display:none; }
.settings-pane .pane-intro p { margin-top:0; }
.settings-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; align-items:stretch; }
.settings-overview-grid.single { max-width:none; }
.settings-overview-card { --tile-tone:var(--accent); min-width:0; min-height:520px; display:grid; grid-template-rows:220px minmax(0,1fr) 86px; overflow:hidden; border:1px solid #d7e0e9; border-radius:8px; background:#fff; box-shadow:0 6px 18px #10233e12; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.settings-overview-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--accent) 40%,#b8cadb); box-shadow:0 10px 24px #10233e1c; }
.settings-overview-visual { width:100%; height:100%; background-repeat:no-repeat; }
.settings-overview-visual.image-reports { background-image:url('/reports-tiles-reference.png'); background-size:400% auto; background-position-y:center; }
.settings-overview-visual.image-register { background-image:url('/register-operation-tiles-reference.png'); background-size:534.19% 385.66%; background-position-y:37.16%; }
.settings-overview-visual.image-article { background-image:url('/article-goods-tiles-reference.png'); background-size:534.19% 385.66%; background-position-y:37.16%; }
.settings-overview-visual.image-settings-a,.settings-overview-visual.image-settings-b,.settings-overview-visual.image-settings-c { background-size:cover; background-position:center; }
.settings-overview-visual.image-reports.image-position-1 { background-position-x:0; }.settings-overview-visual.image-reports.image-position-2 { background-position-x:33.333%; }.settings-overview-visual.image-reports.image-position-3 { background-position-x:66.666%; }.settings-overview-visual.image-reports.image-position-4 { background-position-x:100%; }
.settings-overview-visual.image-register.image-position-1,.settings-overview-visual.image-article.image-position-1 { background-position-x:22.81%; }.settings-overview-visual.image-register.image-position-2,.settings-overview-visual.image-article.image-position-2 { background-position-x:47.24%; }.settings-overview-visual.image-register.image-position-3,.settings-overview-visual.image-article.image-position-3 { background-position-x:71.82%; }.settings-overview-visual.image-register.image-position-4,.settings-overview-visual.image-article.image-position-4 { background-position-x:96.62%; }
.settings-overview-visual.image-settings-a.image-position-1 { background-image:url('/settings-tiles/a-1.png?v=4'); }.settings-overview-visual.image-settings-a.image-position-2 { background-image:url('/settings-tiles/a-2.png?v=4'); }.settings-overview-visual.image-settings-a.image-position-3 { background-image:url('/settings-tiles/a-3.png?v=4'); }.settings-overview-visual.image-settings-a.image-position-4 { background-image:url('/settings-tiles/a-4.png?v=4'); }.settings-overview-visual.image-settings-a.image-position-5 { background-image:url('/settings-tiles/a-5.png?v=4'); }.settings-overview-visual.image-settings-a.image-position-6 { background-image:url('/settings-tiles/a-6.png?v=4'); }
.settings-overview-visual.image-settings-b.image-position-1 { background-image:url('/settings-tiles/b-1.png?v=4'); }.settings-overview-visual.image-settings-b.image-position-2 { background-image:url('/settings-tiles/b-2.png?v=4'); }.settings-overview-visual.image-settings-b.image-position-3 { background-image:url('/settings-tiles/b-3.png?v=4'); }.settings-overview-visual.image-settings-b.image-position-4 { background-image:url('/settings-tiles/b-4.png?v=4'); }.settings-overview-visual.image-settings-b.image-position-5 { background-image:url('/settings-tiles/b-5.png?v=4'); }.settings-overview-visual.image-settings-b.image-position-6 { background-image:url('/settings-tiles/b-6.png?v=4'); }
.settings-overview-visual.image-settings-c.image-position-1 { background-image:url('/settings-tiles/c-1.png?v=4'); }.settings-overview-visual.image-settings-c.image-position-2 { background-image:url('/settings-tiles/c-2.png?v=4'); }.settings-overview-visual.image-settings-c.image-position-3 { background-image:url('/settings-tiles/c-3.png?v=4'); }.settings-overview-visual.image-settings-c.image-position-4 { background-image:url('/settings-tiles/c-4.png?v=4'); }.settings-overview-visual.image-settings-c.image-position-5 { background-image:url('/settings-tiles/c-5.png?v=4'); }.settings-overview-visual.image-settings-c.image-position-6 { background-image:url('/settings-tiles/c-6.png?v=4'); }
.settings-overview-symbol { position:relative; z-index:1; min-width:92px; height:92px; display:grid; place-items:center; padding:0 16px; border:1px solid rgba(255,255,255,.58); border-radius:26px; background:linear-gradient(145deg,rgba(255,255,255,.3),rgba(255,255,255,.1)); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 16px 30px rgba(3,20,39,.25); font-size:37px; font-weight:950; letter-spacing:-.04em; text-shadow:0 2px 5px rgba(3,20,39,.22); }
.settings-overview-primary { width:100%; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 38px; gap:8px; align-items:start; padding:18px 15px 13px; border:0; background:#fff; color:var(--ink); text-align:left; }
.settings-overview-primary > span { display:grid; gap:8px; }.settings-overview-primary strong { font-size:17px; line-height:1.18; font-weight:900; }.settings-overview-primary small { color:#62758a; font-size:12px; line-height:1.45; font-weight:600; }
.settings-overview-primary > b { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--accent) 12%,white); color:var(--accent); font-size:24px; transition:transform .16s ease,background .16s ease; }.settings-overview-primary:hover > b { transform:translateX(3px); background:color-mix(in srgb,var(--accent) 20%,white); }
.settings-overview-footer { display:grid; grid-template-columns:repeat(var(--footer-count),minmax(0,1fr)); align-items:stretch; border-top:1px solid #dfe6ed; background:#fff; }
.settings-overview-footer > span { min-width:0; display:grid; align-content:center; justify-items:center; padding:10px 5px; border-right:1px solid #e1e7ed; color:var(--accent); text-align:center; }.settings-overview-footer > span:last-child { border-right:0; }.settings-overview-footer strong { max-width:100%; overflow:hidden; font-size:13px; line-height:1.15; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
.settings-overview-detail > #newEmployee,.settings-overview-detail > #refreshDevices { margin:0 0 14px auto; display:block; }
.settings-overview-detail > .settings-tools { margin-bottom:0; }
.register-subpage-head { display:flex; align-items:center; gap:16px; margin-bottom:18px; padding-bottom:15px; border-bottom:1px solid var(--line); }
.register-subpage-head button { flex:0 0 auto; min-height:42px; padding:0 15px; border:1px solid color-mix(in srgb,var(--accent) 38%,#c7d3df); border-radius:9px; background:color-mix(in srgb,var(--accent) 8%,white); color:var(--accent); font-weight:850; }
.register-subpage-head button:hover { background:color-mix(in srgb,var(--accent) 15%,white); }
.register-subpage-head > div { display:grid; gap:2px; }
.register-subpage-head small { color:var(--muted); font-size:11px; font-weight:850; letter-spacing:.8px; text-transform:uppercase; }
.register-subpage-head h3 { margin:0; font-size:22px; }
.reports-hub-visual { width:100%; height:100%; background-repeat:no-repeat; background-size:cover; background-position:center; }
.reports-hub-closing .reports-hub-visual { background-image:url('/reports-tiles/1.png?v=2'); }
.reports-hub-statistics .reports-hub-visual { background-image:url('/reports-tiles/2.png?v=2'); }
.reports-hub-receipts .reports-hub-visual { background-image:url('/reports-tiles/3.png?v=2'); }
.reports-hub-archive .reports-hub-visual { background-image:url('/reports-tiles/4.png?v=2'); }
.reports-hub-card .catalog-hub-primary > b { color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,white); }
.reports-hub-card .catalog-hub-primary:hover > b { background:color-mix(in srgb,var(--accent) 20%,white); }
.reports-hub-actions > button strong,.reports-hub-actions > span strong { color:var(--accent); }
.reports-hub-card:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent),0 10px 24px #10233e1c; }
@media (max-width:1050px) {
  .catalog-hub-grid,.settings-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.customer-ad-settings { display:grid; gap:14px; }.settings-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }.settings-card-heading h4 { margin:0 0 5px; }.settings-card-heading .hint { margin:0; }.settings-card-heading .toggle-setting { flex:0 0 auto; }.customer-ad-upload { display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:8px 12px; align-items:end; padding-top:12px; border-top:1px solid var(--line); }.customer-ad-upload label { display:grid; gap:6px; font-size:12px; font-weight:800; }.customer-ad-upload input { padding:8px; border:1px solid var(--line); border-radius:8px; background:white; }.customer-ad-upload > span { grid-column:1/-1; color:var(--muted); font-size:12px; }.customer-ad-media-list { display:grid; gap:7px; }.customer-ad-empty { padding:18px; border:1px dashed #b9c7d6; border-radius:9px; color:var(--muted); text-align:center; }.customer-ad-media-row { display:grid; grid-template-columns:54px minmax(0,1fr) auto; gap:11px; align-items:center; padding:8px; border:1px solid var(--line); border-radius:9px; background:#fafbfd; }.customer-ad-media-row img,.customer-ad-video-icon { width:54px; height:40px; border-radius:6px; object-fit:cover; background:#09284c; }.customer-ad-video-icon { display:grid; place-items:center; color:white; font-size:11px; font-weight:900; }.customer-ad-media-row span { min-width:0; display:grid; gap:3px; }.customer-ad-media-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.customer-ad-media-row small { color:var(--muted); }.customer-ad-media-actions { display:flex; gap:5px; }.customer-ad-media-actions button { min-width:34px; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:white; font-weight:900; }.customer-ad-media-actions .delete-ad-media { color:#ba1e2e; }
.csv-import-dialog { width:min(1240px,96vw); height:min(840px,94vh); padding:0; overflow:hidden; border:0; border-radius:17px; background:#f4f7fa; }
.csv-import-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.csv-import-content { min-height:0; overflow:auto; padding:18px 22px 26px; }
.csv-import-card { margin-bottom:14px; padding:16px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 3px 12px #10233e08; }
.csv-import-card > div:first-child { display:grid; gap:4px; margin-bottom:13px; }.csv-import-card > div:first-child small { color:var(--muted); }
.csv-file-card { display:grid; grid-template-columns:minmax(260px,1fr) minmax(260px,1fr) 220px; gap:12px; align-items:end; }
.csv-file-card > div { align-self:center; margin:0 !important; }.csv-file-card label,.csv-mapping-grid label { display:grid; gap:5px; color:#52677d; font-size:12px; font-weight:850; }
.csv-file-card input,.csv-file-card select,.csv-mapping-grid input,.csv-mapping-grid select { min-width:0; height:42px; padding:8px 10px; border:1px solid #cbd6e1; border-radius:8px; background:white; color:var(--ink); }
.csv-mapping-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px 13px; }.csv-mapping-grid .wide { grid-column:span 2; }
.csv-preview-heading { display:flex !important; flex-direction:row !important; align-items:center; justify-content:space-between; gap:14px; }.csv-preview-heading span { display:grid; gap:4px; }.csv-preview-heading button { padding:9px 13px; border:1px solid #b9c7d5; border-radius:8px; background:#f7f9fb; font-weight:800; }
.csv-preview-table-wrap { max-height:320px; overflow:auto; border:1px solid var(--line); border-radius:9px; }.csv-preview-table { width:100%; border-collapse:collapse; background:white; font-size:12px; }.csv-preview-table th { position:sticky; top:0; z-index:1; padding:9px 10px; background:#edf2f7; color:#52677d; text-align:left; white-space:nowrap; }.csv-preview-table td { max-width:230px; padding:9px 10px; border-top:1px solid var(--line); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.csv-row-ok { color:#07884c; font-weight:850; }.csv-row-error { color:#c62235; font-weight:850; }
.csv-import-actions { margin:0; padding:13px 22px; border-top:1px solid var(--line); background:white; }.csv-import-actions button { min-width:260px; }
.csv-export-dialog { width:min(780px,94vw); padding:0; overflow:hidden; border:0; border-radius:17px; background:#f4f7fa; }
.csv-export-dialog[open] { display:grid; grid-template-rows:auto auto auto; }.csv-export-content { display:grid; gap:15px; padding:20px 23px 25px; }
.csv-export-notice { display:grid; gap:6px; padding:16px; border:1px solid #bfd4e8; border-left:5px solid #1268b3; border-radius:10px; background:#edf6ff; }.csv-export-notice span,.csv-export-summary span { color:#587089; line-height:1.4; }
.csv-export-options { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:17px; border:1px solid var(--line); border-radius:11px; background:white; }.csv-export-options label { display:grid; gap:6px; color:#52677d; font-size:12px; font-weight:850; }.csv-export-options select { height:43px; padding:8px 10px; border:1px solid #cbd6e1; border-radius:8px; background:white; color:var(--ink); }
.csv-export-summary { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 16px; border-radius:9px; background:#fff; box-shadow:0 3px 12px #10233e08; }.csv-export-summary strong { color:#087747; font-size:18px; }
.csv-export-actions { margin:0; padding:13px 22px; border-top:1px solid var(--line); background:white; }.csv-export-actions button { min-width:245px; }
.employee-settings-list { display: grid; gap: 9px; }.employee-setting-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }.employee-setting-row small { display: block; margin-top: 3px; color: var(--muted); }.role-badge { padding: 6px 10px; border-radius: 99px; background: #eaf3fc; color: #1268b3; font-size: 12px; font-weight: 850; }.employee-active { color: #07884c; font-size: 13px; font-weight: 850; }
.pane-intro-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.pane-intro-action .primary { padding: 11px 15px; border-radius: 8px; white-space: nowrap; }
.employee-setting-row .edit-employee { border: 0; border-radius: 7px; padding: 8px 11px; background: #eef3f8; color: #294661; font-weight: 800; }.employee-setting-row.inactive { opacity: .62; }.employee-setting-row.inactive .employee-active { color: #9a5c00; }
.employee-editor { margin-top: 14px; border-color: #a9c8e8; }.editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }.editor-heading h4 { margin: 2px 0 0; }.editor-heading small { color: var(--muted); }.editor-heading .icon-button { color: var(--ink); }.employee-editor select { width: 100%; padding: 11px; border: 1px solid #ccd5df; border-radius: 8px; background: white; }.employee-active-check { display: flex !important; align-items: center; justify-content: flex-start; gap: 9px !important; padding-top: 22px; }.employee-active-check input { width: 18px; height: 18px; }
.info-card, .system-status-card { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 17px; border-radius: 11px; background: #eaf3fc; color: #153d68; }.info-card { display: grid; }.info-card span, .system-status-card small { color: #55718d; }.system-status-card span { display: grid; gap: 4px; }.system-status-card > strong { color: #07884c; }
.receipt-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.receipt-overview div { display: grid; gap: 5px; padding: 13px; border-radius: 9px; background: #f6f8fb; }.receipt-overview span { color: var(--muted); font-size: 13px; }
.settings-dialog .danger-zone { margin: 16px 0 0; }.settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 26px; border-top: 1px solid var(--line); background: white; }.settings-footer .error { margin-right: auto; }.settings-footer button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 8px; }.settings-footer .primary { border-color: var(--accent); }
.report-launch-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.report-launch-card > div { display: grid; gap: 5px; }.report-launch-card > div span { color: var(--muted); }.report-launch-card > span { display: flex; gap: 8px; }.report-launch-card button { padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 850; }
.archive-pagination { display: flex; align-items: center; gap: 8px; margin-left: auto; }.archive-pagination button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; font-weight: 750; }.archive-pagination button:disabled { opacity: .4; }.archive-pagination b { color: var(--muted); font-size: 12px; }
.fiscal-export-card { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; margin-top: 18px; }.fiscal-export-card h4 { margin: 3px 0 6px; font-size: 19px; }.fiscal-export-card p { margin: 0; color: var(--muted); }.fiscal-status { align-self: start; padding: 7px 10px; border-radius: 99px; background: #fff1cf; color: #795200; font-size: 12px; font-weight: 850; }.fiscal-period { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }.fiscal-period label { display: grid; gap: 5px; font-size: 13px; font-weight: 800; }.fiscal-period input, .fiscal-period button { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }.fiscal-period button { background: var(--navy); color: white; font-weight: 850; }.fiscal-export-card > .hint { grid-column: 1 / -1; }
.registration-card { display: grid; gap: 16px; }
.registration-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.registration-card-heading h4 { margin: 3px 0 5px; font-size: 20px; }
.registration-card-heading p { margin: 0; color: var(--muted); }
.registration-source-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.registration-source-summary > div { display: grid; gap: 4px; min-height: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7faff; }
.registration-source-summary small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.registration-source-summary strong { overflow-wrap: anywhere; }
.registration-source-summary span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.registration-details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.registration-details summary { cursor: pointer; padding: 13px 15px; color: var(--navy); font-weight: 850; }
.registration-details[open] summary { border-bottom: 1px solid var(--line); }
.registration-details .form-grid { padding: 15px; }
.registration-missing { padding: 11px 13px; border-radius: 9px; background: #fff1cf; color: #795200; font-size: 13px; font-weight: 750; }
.registration-missing.complete { background: #e7f7ef; color: #087443; }
.registration-card .fiscal-status.ok { background: #e7f7ef; color: #087443; }
.device-status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 16px; }.device-status-grid > div { display: grid; gap: 6px; min-height: 86px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }.device-status-grid small { color: var(--muted); font-weight: 800; }.device-status-grid strong { line-height: 1.3; }.device-status-ready, .device-status-configured { border-left: 5px solid #07884c !important; }.device-status-demo, .device-status-detected-demo { border-left: 5px solid #e5a20b !important; }.device-status-disabled, .device-status-unconfigured { border-left: 5px solid #95a3b3 !important; }.hardware-interface-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.hardware-interface-grid > section { min-width: 0; padding: 3px; }.hardware-interface-grid > section + section { border-left: 1px solid var(--line); padding-left: 20px; }.hardware-interface-grid small { color: var(--muted); font-weight: 800; }.hardware-interface-grid h4 { margin: 4px 0 12px; }.hardware-interface-grid .toggle-setting { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; font-size: 13px; font-weight: 800; }.hardware-interface-grid .toggle-setting input { width: 18px; height: 18px; }.zvt-fields { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 8px; margin-top: 10px; }.zvt-fields label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; }.zvt-fields input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }.device-discovery-details { display: flex; flex-wrap: wrap; gap: 8px; }.device-discovery-details span { padding: 7px 10px; border-radius: 99px; background: #eef3f8; color: #50667d; font-size: 12px; font-weight: 750; }
.device-test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }.device-test-actions button { padding: 9px 13px; border: 1px solid #aebccb; border-radius: 8px; background: #f7f9fb; color: var(--ink); font-weight: 800; }.device-test-actions span { color: #50667d; font-size: 13px; font-weight: 750; }
.system-switch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.system-switch-grid .toggle-setting { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }.system-switch-grid input { width: 20px; height: 20px; }.system-switch-grid span { display: grid; gap: 4px; }.system-switch-grid small { color: var(--muted); line-height: 1.35; }.backup-actions { display: flex; align-items: center; gap: 9px; margin: 15px 0 10px; }.backup-actions button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }.backup-actions span { color: var(--muted); font-size: 13px; }.backup-list { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }.backup-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }.backup-row small { color: var(--muted); }.backup-row a { padding: 7px 10px; border-radius: 7px; background: #1268b3; color: white; text-decoration: none; font-weight: 800; }.backup-import { display: grid; grid-template-columns: 1.4fr .7fr auto; gap: 9px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }.backup-import label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; }.backup-import input { min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.backup-storage-row { display:grid; grid-template-columns:minmax(240px,1fr) auto auto auto; gap:8px; align-items:end; padding:10px; border:1px solid var(--line); border-radius:9px; background:#f8fafc; }.backup-storage-row label { display:grid; gap:5px; min-width:0; font-size:12px; font-weight:800; }.backup-storage-row input { width:100%; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #cbd5df; border-radius:7px; background:white; color:#425a73; }.backup-storage-row button { min-height:40px; padding:8px 12px; border:1px solid #cbd5df; border-radius:7px; background:white; color:var(--ink); font-weight:800; }
.system-switch-grid.one-column { grid-template-columns: 1fr; }.device-toggle { display: flex !important; grid-template-columns: none !important; align-items: center !important; gap: 9px; margin: 0 0 10px !important; }
.tse-commissioning { min-width: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }.tse-commissioning .system-status-card { min-width: 0; margin: 0 0 14px; overflow: hidden; }.tse-commissioning .system-status-card span { min-width: 0; }.tse-commissioning .system-status-card small { overflow-wrap: anywhere; }.tse-commissioning .system-status-card > strong { flex: 0 0 auto; }.tse-commissioning .system-status-card strong { color: #8a5a00; }.tse-commissioning .system-status-card strong.ok { color: #07884c; }.tse-commissioning input[type="password"] { letter-spacing: .18em; }
.demo-warning { display:grid; gap:5px; margin-top:14px; padding:13px 15px; border:1px solid #e9b341; border-left:5px solid #d98a00; border-radius:9px; background:#fff7dc; color:#664500; }.demo-warning span { font-size:13px; line-height:1.45; }

.statistics-launch { overflow:hidden; position:relative; border-color:#b5d0eb; background:linear-gradient(115deg,#f8fbff,#edf6ff); }
.statistics-launch::after { content:""; position:absolute; right:-34px; bottom:-55px; width:145px; height:145px; border-radius:50%; background:#1268b310; }
.statistics-launch .tool-icon { background:linear-gradient(135deg,#1268b3,#25a6a0); color:white; box-shadow:0 8px 20px #1268b333; }
.statistics-dialog { width:min(1380px,96vw); height:min(900px,95vh); padding:0; overflow:hidden; border:0; border-radius:18px; background:#f3f6fa; color:var(--ink); box-shadow:0 26px 80px #061a3555; }
.statistics-dialog[open] { display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; }
.statistics-dialog > .dialog-title { padding:16px 22px; background:white; border-bottom:1px solid var(--line); }
.statistics-toolbar { display:grid; grid-template-columns:1.1fr .85fr .85fr 1.25fr auto auto; gap:10px; align-items:end; padding:15px 22px; border-bottom:1px solid var(--line); background:white; }
.statistics-toolbar label { display:grid; gap:5px; color:#5b7087; font-size:12px; font-weight:850; }
.statistics-toolbar select,.statistics-toolbar input,.statistics-toolbar button { height:42px; padding:8px 11px; border:1px solid #cbd7e3; border-radius:9px; background:white; color:var(--ink); font-weight:750; }
.statistics-toolbar button { align-self:end; white-space:nowrap; }.statistics-toolbar button.primary { border-color:#1268b3; background:#1268b3; color:white; }
.statistics-custom-date { display:none !important; }.statistics-custom-date.active { display:grid !important; }
.statistics-mode-notice { display:flex; justify-content:space-between; gap:15px; margin:14px 22px 0; padding:11px 14px; border:1px solid #c8d9ea; border-radius:10px; background:#eaf3fc; color:#355d83; font-size:13px; }.statistics-mode-notice strong { color:#123d67; }
.statistics-content { min-height:0; height:auto; padding:15px 22px 30px; overflow:auto; overscroll-behavior:contain; }
.statistics-dialog > .error { min-height:0; margin:0; padding:0 22px; background:#f3f6fa; }
.statistics-dialog > .error:not(:empty) { padding-top:9px; padding-bottom:9px; border-top:1px solid var(--line); }
.statistics-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:13px; }
.stat-kpi { min-width:0; display:grid; gap:6px; padding:17px 18px; border:1px solid #d8e1eb; border-radius:14px; background:white; box-shadow:0 7px 22px #10233e0b; }
.stat-kpi small { color:#687d93; font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.55px; }.stat-kpi > strong { overflow:hidden; font-size:clamp(23px,2.2vw,34px); text-overflow:ellipsis; }.stat-kpi span { color:#718399; font-size:12px; font-weight:750; }.stat-kpi span.positive { color:#07884c; }.stat-kpi span.negative { color:#c62235; }.stat-kpi.stat-revenue { color:white; border:0; background:linear-gradient(135deg,#09284c,#1268b3 68%,#26a7a0); box-shadow:0 12px 28px #1268b330; }.stat-kpi.stat-revenue small,.stat-kpi.stat-revenue span { color:#dcecff; }.stat-kpi.stat-revenue span.positive { color:#a7f3cf; }.stat-kpi.stat-revenue span.negative { color:#ffd0d5; }
.statistics-dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.statistics-panel { min-width:0; padding:18px; border:1px solid #d8e1eb; border-radius:14px; background:white; box-shadow:0 7px 22px #10233e0a; }.statistics-panel.statistics-wide { grid-column:1/-1; }
.statistics-panel > header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:15px; }.statistics-panel header small { color:#73869a; font-size:11px; font-weight:850; letter-spacing:.7px; text-transform:uppercase; }.statistics-panel h3 { margin:3px 0 0; font-size:18px; }.statistics-panel header > strong { color:#667b91; font-size:12px; }
.statistics-line-chart { display:block; width:100%; height:245px; overflow:visible; }.statistics-line-chart line { stroke:#d7e0e9; stroke-width:1; }.statistics-line-chart polyline { fill:none; stroke:#1268b3; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }.statistics-line-chart circle { fill:white; stroke:#1268b3; stroke-width:3; }.statistics-line-chart text { fill:#76899c; font:11px Arial,sans-serif; }
.statistics-bars { display:grid; gap:12px; }.statistics-bars > div { display:grid; grid-template-columns:minmax(150px,1.15fr) minmax(100px,1fr) auto; gap:12px; align-items:center; }.statistics-bars span { min-width:0; }.statistics-bars b { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; }.statistics-bars small { display:block; margin-top:2px; color:#8292a3; font-size:11px; }.statistics-bars i { height:8px; overflow:hidden; border-radius:99px; background:#ecf1f6; }.statistics-bars em { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#1268b3,#26a7a0); }.statistics-bars > div > strong { font-size:13px; }
.statistics-payment { display:grid; grid-template-columns:165px 1fr; gap:24px; align-items:center; min-height:190px; }.statistics-donut { width:155px; height:155px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#1268b3 0 var(--cash-share),#24a49d var(--cash-share) 100%); box-shadow:inset 0 0 0 1px #ffffff; }.statistics-donut::before { content:""; grid-area:1/1; width:104px; height:104px; border-radius:50%; background:white; box-shadow:0 3px 15px #10233e15; }.statistics-donut span { z-index:1; grid-area:1/1; display:grid; text-align:center; }.statistics-donut strong { font-size:24px; }.statistics-donut small { color:#718399; }.statistics-payment > div:last-child { display:grid; gap:13px; }.statistics-payment p { display:grid; grid-template-columns:12px 1fr auto; gap:8px; align-items:center; margin:0; }.statistics-payment p i { width:10px; height:10px; border-radius:50%; background:#1268b3; }.statistics-payment p i.card { background:#24a49d; }.statistics-payment p span { color:#657a90; }
.statistics-table { display:grid; }.statistics-table > div { display:grid; grid-template-columns:.7fr 1fr 1fr 1fr; gap:10px; padding:10px 7px; border-bottom:1px solid #e3e9ef; text-align:right; }.statistics-table > div > :first-child { text-align:left; }.statistics-table .head { color:#73869a; background:#f5f8fb; font-size:11px; font-weight:850; text-transform:uppercase; }
.statistics-operations { display:grid; gap:4px; }.statistics-operations p { display:flex; justify-content:space-between; gap:15px; margin:0; padding:12px 4px; border-bottom:1px solid #e4eaf0; }.statistics-operations span { color:#667b91; }
.statistics-inventory { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.statistics-inventory p { display:grid; gap:4px; margin:0; padding:14px; border-radius:10px; background:#f3f7fb; }.statistics-inventory strong { font-size:20px; }.statistics-inventory span { color:#6b7f93; font-size:11px; }.statistics-inventory p.warning { background:#fff1e4; color:#bd4d00; }
.statistics-empty { display:grid; min-height:120px; place-items:center; color:#7d8fa1; text-align:center; }

.inventory-switch { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.inventory-switch input { width: 18px; height: 18px; accent-color: #07884c; }
.inventory-table button:disabled, .inventory-table input:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 1200px) {
  .pos-shell { grid-template-columns: 55% 45%; }
  .product-tile { min-height:var(--product-button-height,110px); }
  .quick-actions { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 760px) {
  body { min-width:0; overflow-x:hidden; }
  .topbar {
    width:100%; height:auto; min-height:100px; padding:8px 10px;
    display:grid; grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"brand employee menu" "search search status";
    gap:8px 9px;
  }
  .topbar-brand { grid-area:brand; min-width:0; gap:6px; }
  .topbar .brand { min-width:0; font-size:19px; letter-spacing:-.6px; }
  .brand-logo { width:39px; height:33px; flex-basis:39px; }
  .brand-logo img { width:38px; height:30px; }
  .deployment-badge:not(:empty) { margin:0 0 0 -2px; padding:2px 4px; font-size:7px; }
  .header-search { grid-area:search; width:100%; max-width:none; min-width:0; height:36px; }
  .header-search input { padding:7px 9px; font-size:12px; }
  .header-search button { flex-basis:34px; font-size:21px; }
  .system-status { grid-area:status; margin:0; min-width:0; }
  .topbar .status { max-width:145px; padding:7px 8px; gap:6px; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
  .status.tse-indicator::before { width:9px; height:9px; flex-basis:9px; }
  .employee-button { grid-area:employee; align-self:center; padding:8px 7px; border-left:0; font-size:12px; }
  #settingsButton { grid-area:menu; align-self:center; padding:7px; font-size:22px; }

  .pos-shell,.pos-shell.cart-left {
    width:100%; height:auto; min-height:calc(100dvh - 100px); padding:8px;
    grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; gap:10px;
  }
  .pos-shell:not(:has(.surcharge-banner:not(.hidden))) .cart-panel,
  .pos-shell:not(:has(.surcharge-banner:not(.hidden))) .catalog-panel,
  .pos-shell:has(.surcharge-banner:not(.hidden)) .cart-panel,
  .pos-shell:has(.surcharge-banner:not(.hidden)) .catalog-panel { grid-column:1; grid-row:auto; }
  .pos-shell .cart-panel,.pos-shell.cart-left .cart-panel { order:1; }
  .pos-shell .catalog-panel,.pos-shell.cart-left .catalog-panel { order:2; }
  .surcharge-banner { grid-column:1; order:0; padding:9px 11px; font-size:13px; }

  .cart-panel { display:grid; grid-template-rows:auto auto; gap:8px; }
  .cart-card { height:min(430px,52dvh); min-height:325px; border-radius:10px; }
  .cart-heading { padding:12px 12px 9px; gap:8px; }
  .cart-heading h1 { font-size:20px; }
  #cartCountSummary { min-height:24px; margin-top:0; padding:4px 8px; font-size:11px; }
  .plain-button { padding:8px 9px; border-radius:8px; font-size:12px; white-space:nowrap; }
  .cart-columns,.cart-row { grid-template-columns:minmax(0,1fr) 116px 70px; gap:6px; }
  .cart-columns { padding:8px 12px; font-size:11px; }
  .cart-row { padding:9px 12px; font-size:12px; }
  .cart-row .item-name small { font-size:10px; }
  .quantity { grid-template-columns:34px minmax(0,1fr) 34px; border-radius:8px; }
  .quantity button { font-size:17px; }
  .quantity input { font-size:15px; }
  .row-total { font-size:12px; }
  .empty-cart { padding:12px 15px; font-size:13px; }
  .totals { padding:8px 12px 11px; font-size:13px; }
  .grand-total { font-size:17px; }
  .grand-total strong { font-size:27px; }

  .quick-actions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
  .action-button { min-height:58px; padding:8px 5px; border-radius:8px; font-size:12px; overflow-wrap:anywhere; }
  .action-button.cash,.action-button.card { grid-column:span 1; font-size:16px; }
  .action-button.payment { grid-column:1 / -1; font-size:16px; }

  .catalog-panel,
  .catalog-panel.category-left,
  .catalog-panel.category-right,
  .catalog-panel.category-bottom {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto;
    grid-template-areas:"categories" "products"; overflow:visible; border-radius:10px;
  }
  .catalog-panel.category-left .category-tabs,
  .catalog-panel.category-right .category-tabs,
  .catalog-panel.category-bottom .category-tabs,
  .category-tabs {
    display:grid; grid-auto-flow:column; grid-auto-columns:minmax(112px,36vw); grid-auto-rows:1fr;
    gap:2px; padding:4px; align-content:stretch; overflow-x:auto; overflow-y:hidden;
    border:0; border-bottom:1px solid var(--line); background:#f2f5f9;
    overscroll-behavior-inline:contain; scroll-snap-type:x proximity;
  }
  .catalog-panel.category-left .category-tabs,.catalog-panel.category-right .category-tabs { border-left:0; border-right:0; }
  .catalog-panel.category-left .category-tab,.catalog-panel.category-right .category-tab,.category-tab {
    min-height:52px; padding:8px; border:0; border-radius:8px; scroll-snap-align:start; font-size:12px;
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:2px; padding:4px;
    align-content:start; overflow:visible;
  }
  .product-tile,.product-grid.sparse-products .product-tile { min-height:112px !important; border-radius:8px; }
  .product-tile-content,.product-grid.sparse-products .product-tile-content { min-height:112px !important; padding:8px 9px 4px; }
  .product-tile .name { font-size:clamp(13px,3.8vw,16px); }
  .product-tile .ean,.product-tile .vat,.product-tile .deposit { font-size:9px; }
  .product-tile .price { font-size:18px; }

  .settings-overview-grid { grid-template-columns:1fr; }
  .settings-overview-card { min-height:470px; grid-template-rows:195px minmax(0,1fr) 74px; }
  .categories-dialog { width:100vw; height:100vh; max-width:none; max-height:none; padding:12px; border-radius:0; }
  .categories-admin { grid-template-columns:1fr; grid-template-rows:220px minmax(0,1fr); }.categories-admin > aside { border-right:0; border-bottom:1px solid var(--line); }.category-form { padding:16px; }.category-image-editor { grid-template-columns:100px 1fr; }.category-image-preview { width:100px; height:82px; }
  .deposit-return-entry { grid-template-columns:1fr; }.deposit-return-entry-total,.deposit-return-add { grid-column:1; grid-row:auto; }.deposit-return-draft-row { grid-template-columns:minmax(0,1fr) auto 80px 34px; gap:7px; }
  .dialog-title-with-back { grid-template-columns: 42px minmax(0,1fr) 38px; gap: 10px; }
  .dialog-back { width: 42px; padding: 0; }
  .dialog-back span { display: none; }
  .settings-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; }
  .settings-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .settings-sidebar { grid-template-rows: auto auto; padding: 11px 14px; }
  .settings-brand { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 9px; }
  .settings-brand .brand { font-size: 20px; }.settings-brand small { margin: 0; }
  .settings-sidebar nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 5px; padding-top: 9px; padding-bottom: 3px; }
  .settings-sidebar nav button { padding: 9px 11px; white-space: nowrap; }
  .settings-sidebar nav button svg { width: 19px; height: 19px; flex-basis: 19px; }
  .settings-version { display: none; }
  .settings-main { grid-template-rows: auto minmax(0,1fr) auto; }
  .settings-header { gap: 10px; padding: 10px 14px; }.settings-header h2 { font-size: 20px; }
  .settings-history button { min-width: 42px; width: 42px; padding: 0; }
  .settings-history button span { display: none; }
  .settings-header-actions { flex: 1; justify-content: flex-end; }.settings-search { width: min(220px, 100%); }
  .settings-content { padding: 17px 15px 25px; }
  .two-columns, .three-columns, .receipt-overview, .device-status-grid, .system-switch-grid, .hardware-interface-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }.setting-row { grid-template-columns: 1fr !important; }
  .settings-dialog .action-checks, .settings-dialog .feature-checks { grid-template-columns: 1fr; }
  .fiscal-export-card, .fiscal-period, .registration-source-summary { grid-template-columns: 1fr; }.fiscal-period { grid-column: auto; }
  .report-launch-card { align-items: flex-start; flex-direction: column; }
  .zvt-fields, .backup-import, .backup-storage-row { grid-template-columns: 1fr; }
  .receipt-archive-filters { grid-template-columns: 1fr 1fr; }
  .receipt-archive-filters .wide, .receipt-filter-actions { grid-column: 1 / -1; }
  .receipt-archive-summarybar { align-items: flex-start; flex-direction: column; }
  .receipt-archive-summarybar .archive-pagination { margin-left: 0; }
  .receipt-archive-head { display: none; }
  .receipt-archive-row { grid-template-columns: 1fr auto; }
  .receipt-archive-row > span:nth-child(2), .receipt-archive-actions { grid-column: 1 / -1; }
  .receipt-archive-list { max-height: calc(100% - 350px); }
  .settings-footer { padding: 9px 14px; }
  .statistics-dialog { width:100vw; height:100vh; max-width:none; max-height:none; border-radius:0; }
  .statistics-toolbar { grid-template-columns:1fr 1fr; padding:12px 14px; }.statistics-toolbar label:first-child,.statistics-toolbar label:nth-child(4) { grid-column:1/-1; }
  .statistics-mode-notice { align-items:flex-start; flex-direction:column; margin:10px 14px 0; }.statistics-content { height:auto; padding:12px 14px 25px; }
  .statistics-kpis,.statistics-dashboard-grid { grid-template-columns:1fr; }.statistics-panel.statistics-wide { grid-column:auto; }.statistics-payment { grid-template-columns:130px 1fr; gap:12px; }.statistics-donut { width:120px; height:120px; }.statistics-donut::before { width:80px; height:80px; }.statistics-donut strong { font-size:19px; }.statistics-bars > div { grid-template-columns:minmax(120px,1fr) 70px auto; }.statistics-inventory { grid-template-columns:1fr; }
}

@media (max-width: 460px) {
  .topbar { grid-template-columns:minmax(0,1fr) auto auto; }
  .topbar .brand-name { display:none; }
  .topbar .status { max-width:138px; }
  .cart-columns { grid-template-columns:1fr 72px; }
  .cart-columns span:nth-child(2) { display:none; }
  .cart-row { grid-template-columns:minmax(0,1fr) 112px; gap:6px 10px; }
  .cart-row .item-name { grid-column:1 / -1; }
  .cart-row .quantity { grid-column:1; }
  .cart-row .row-total { grid-column:2; align-self:center; }
}

@media print {
  body > *:not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; width: 100%; max-width: none; box-shadow: none; }
  dialog[open]::backdrop, #closeMessage, .report-print, .report-receipt-print, .report-csv-export, .report-detail-toolbar, .report-archive-dialog > .dialog-title, .report-archive-dialog > .error { display: none; }
}
.success-text {
  color: #087d4d !important;
  font-weight: 800;
}
