/* Smena: calm surfaces, legible content, consistent controls. */
:root {
  --bg:var(--smena-bg); --panel:var(--smena-panel); --panel-2:var(--smena-soft);
  --ink:var(--smena-ink); --muted:var(--smena-muted); --line:var(--smena-line); --line-strong:var(--smena-line-strong);
  --sidebar:var(--smena-ink); --accent:var(--smena-accent); --accent-strong:var(--smena-accent-strong);
  --accent-soft:var(--smena-accent-soft); --green:var(--smena-green); --green-soft:#edf6f0;
  --red:var(--smena-red); --red-soft:#fcf0f2; --yellow:#8b6500; --yellow-soft:#fff8e6;
  --radius:var(--smena-panel-radius); --sidebar-width:204px;
  --shadow-sm:var(--smena-shadow);
  --shadow-md:var(--smena-dialog-shadow);
  font-family:var(--smena-font);
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }
button:focus-visible,[role="button"]:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent); outline-offset:3px;
}
input:focus,select:focus,textarea:focus {
  border-color:var(--accent); box-shadow:0 0 0 3px #5951c81f;
}
input,select,textarea { min-height:44px; }
input[type="checkbox"],input[type="radio"] { min-height:initial; }
h1,h2 { font-weight:650; letter-spacing:-.035em; }
.sidebar {
  background:#eeeeF2; color:var(--ink); border-right:1px solid #e0e0e6;
  padding:26px 14px 16px;
}
.brand { gap:10px; padding:0 7px 30px; align-items:center; }
.brand-mark,.boot-logo {
  background:var(--ink); box-shadow:none; color:#fff; font-weight:600;
}
.brand-mark { width:40px; height:40px; border-radius:12px; font-size:22px; flex-shrink:0; }
.brand-copy { min-width:0; }
.brand strong { font-size:16px; font-weight:650; line-height:1.25; }
.brand span { font-size:12px; color:var(--muted); letter-spacing:.05em; }
.sidebar-nav { gap:6px; overflow-y:auto; }
.nav-button { min-height:46px; color:#53545c; font-size:14px; font-weight:500; border-radius:12px; gap:11px; }
.nav-button svg { stroke-width:1.6; }
.nav-button:hover { color:var(--ink); background:#e3e3e9; }
.nav-button.active { color:var(--accent-strong); background:#fff; box-shadow:0 2px 6px #20212408; font-weight:650; }
.sidebar-footer { padding-top:20px; }
.outlet-mini { background:transparent; border:0; padding:10px 7px; }
.outlet-mini strong { font-weight:600; font-size:12px; }
.outlet-mini span,.user-mini span { color:var(--muted); line-height:1.45; }
.user-mini { background:#ffffffb3; border:1px solid #fff; color:var(--ink); padding:10px; min-height:58px; }
.user-mini .avatar { background:var(--accent-soft); color:var(--accent-strong); }
.user-mini strong { font-size:13px; font-weight:600; }
.topbar { background:#f5f5f7eF; border-color:var(--line); padding:10px 24px; min-height:68px; }
.topbar-title { display:grid; grid-template-columns:auto auto; align-items:center; gap:2px 10px; }
.topbar-title strong { font-size:16px; font-weight:600; }
.topbar-title>span:not(.runtime-mode-label) { grid-column:1/-1; font-size:12px; }
.main-shell:has(.pos-page) .topbar-title>span:not(.runtime-mode-label) { display:none; }
.topbar-title .runtime-mode-label { display:inline-flex; align-items:center; min-height:23px; margin:0; padding:0 6px; border-radius:6px; font-size:11px; font-weight:600; letter-spacing:.035em; background:#ececf0; color:#65666d; }
.status-pill { background:transparent; border-color:transparent; min-height:44px; font-weight:500; }
.status-pill.good { background:transparent; border-color:transparent; color:#466552; }
.status-pill.good .dot { box-shadow:none; width:6px; height:6px; }
.status-pill.warn,.status-pill.bad { border-color:transparent; }
.shift-label-compact { display:none; }
.topbar-right>.btn { min-height:44px; background:#fff; border-color:var(--line); padding:0 12px; font-weight:600; }
.btn { min-height:44px; border-radius:var(--smena-control-radius); font-size:14px; font-weight:600; }
.btn-primary { background:var(--accent); box-shadow:none; }
.btn-primary:hover { background:var(--accent-strong); }
.btn-secondary { border-color:var(--line); }
.btn-large { min-height:56px; font-size:15px; border-radius:14px; }
.btn-icon { width:44px; }
.panel { box-shadow:var(--shadow-sm); }
.pos-page { padding:20px 24px 24px; height:calc(100dvh - 68px); min-height:580px; }
.pos-grid { grid-template-columns:minmax(0,1fr) minmax(320px,350px); gap:20px; }
.catalog-panel { border:0; border-radius:0; background:transparent; box-shadow:none; }
.pos-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; padding:2px 0 20px; min-height:initial; align-items:center; }
.pos-head h1 { font-size:30px; font-weight:650; letter-spacing:-.035em; margin-bottom:4px; }
.pos-head p { font-size:13px; color:var(--muted); line-height:1.4; }
.pos-head .search-box { grid-column:1/-1; grid-row:2; width:100%; }
.search-box input { min-height:48px; border:1px solid var(--line); background:#fff; border-radius:13px; padding-left:42px; font-size:14px; }
.search-box input::placeholder { color:#72737a; }
.scanner-hint { border:0; background:transparent; font-size:12px; font-weight:500; color:#466552; padding:0; }
.scanner-hint>span { width:5px; height:5px; box-shadow:none; }
.category-tabs { padding:0 0 20px; gap:6px; }
.category-button { background:transparent; color:var(--muted); border:1px solid transparent; border-radius:var(--smena-control-radius); padding:0 13px; min-height:44px; font-size:14px; font-weight:500; gap:8px; }
.category-button svg { width:18px; height:18px; flex-shrink:0; }
.category-button:hover { background:#eaeaf0; }
.category-button.active { background:#fff; border-color:#e5e4ed; box-shadow:0 1px 4px #20212406; color:var(--ink); font-weight:650; }
.products-scroll { padding:0 2px 20px; scrollbar-width:thin; }
.product-grid { grid-template-columns:repeat(auto-fill,minmax(162px,1fr)); gap:14px; align-items:start; }
.favorite-product>.product-card { padding:10px 10px 14px; }
.product-card { min-height:222px; border-color:#e5e5eb; border-radius:18px; box-shadow:none; padding:10px 10px 14px; gap:12px; }
.product-card:hover { transform:translateY(-1px); box-shadow:0 5px 15px #20212408; border-color:#c8c6dc; }
.product-card.is-in-cart { border-color:#aca8de; box-shadow:0 0 0 1px #aca8de; }
.product-card-content { width:100%; }
.product-artwork { width:100%; height:116px; display:flex; align-items:center; justify-content:center; border-radius:11px; background:#f4f2ee; }
.product-artwork>svg { width:102px; height:104px; }
.artwork-bakery { background:#f6f1e8; }
.artwork-food { background:#f0f2eb; }
.artwork-drinks { background:#eef3f5; }
.artwork-other { background:#f0f0f3; }
.artwork-photo { overflow:hidden; background:#f4f4f6; }
.artwork-photo .product-photo { width:100%; height:100%; object-fit:cover; border-radius:0; }
.product-name { margin:13px 4px 0; font-size:16px; font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.product-kind { margin:7px 4px 0; font-size:12px; font-weight:500; }
.product-kind.good { display:none; }
.product-bottom { margin:0 4px; flex-wrap:wrap; gap:5px; align-items:baseline; }
.product-price { font-size:17px; font-weight:650; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.stock-mini { font-size:12px; color:var(--muted); white-space:nowrap; }
.stock-mini.low { color:var(--red); }
.favorite-toggle { top:14px; right:14px; width:44px; height:44px; min-width:44px; min-height:44px; display:grid; place-items:center; border:0; border-radius:50%; background:#ffffffbd; color:#62616a; font-size:initial; }
.favorite-toggle svg { width:18px; height:18px; stroke-width:1.6; }
.favorite-toggle[aria-pressed="true"] { color:var(--accent); background:#fff; }
.favorite-toggle[aria-pressed="true"] svg { fill:var(--accent); }
.product-selection { position:absolute; top:23px; left:17px; max-width:calc(100% - 70px); background:#fff; color:var(--accent-strong); border-radius:7px; padding:4px 6px; font-size:12px; font-weight:600; box-shadow:0 1px 4px #20212406; }
.cart-panel { background:#fff; border-radius:20px; border-color:var(--line); }
/* A seated/linked bill adds a banner before the three normal cart sections. */
.cart-panel:has(>.restaurant-order-banner) {
  grid-template-rows:max-content max-content minmax(0,1fr) max-content;
}
.cart-panel:has(>.restaurant-order-banner)>.restaurant-order-banner { grid-row:1; min-width:0; }
.cart-panel:has(>.restaurant-order-banner)>.cart-header { grid-row:2; }
.cart-panel:has(>.restaurant-order-banner)>.cart-scroll { grid-row:3; min-height:0; overflow-y:auto; }
.cart-panel:has(>.restaurant-order-banner)>.cart-footer { grid-row:4; min-width:0; }
.cart-header { padding:20px 18px 16px; min-height:82px; }
.cart-header h2 { font-size:22px; font-weight:650; }
.cart-header p { font-size:13px; margin-top:4px; }
.cart-header .btn-ghost { color:var(--muted); font-size:13px; padding:0 6px; }
.cart-scroll { padding:4px 16px 16px; }
.cart-line { padding:16px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; background:transparent; gap:12px; }
.cart-line-name { font-size:16px; font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.cart-modifiers { font-size:13px; line-height:1.4; }
.cart-line-side>strong { font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.cart-line-edit { min-height:44px; font-size:13px; background:transparent; color:var(--accent-strong); padding:0 6px 0 0; }
.qty-control { min-height:44px; padding:0; gap:4px; margin-top:8px; background:#f5f5f7; border-radius:12px; }
.qty-control button { width:44px; height:44px; border:0; background:transparent; border-radius:11px; font-size:20px; font-weight:400; }
.qty-control button:hover { background:#eaeaf0; }
.qty-control span { min-width:26px; font-size:13px; font-variant-numeric:tabular-nums; font-weight:600; }
.line-remove { width:44px; height:44px; min-width:44px; min-height:44px; background:transparent; color:#8b7076; border-radius:11px; }
.line-remove:hover { color:var(--red); background:var(--red-soft); }
.cart-empty { min-height:0; padding:16px; display:flex; flex-direction:column; justify-content:center; gap:8px; color:var(--muted); }
.cart-empty strong { font-size:16px; font-weight:600; color:var(--ink); }
.cart-empty p { font-size:13px; line-height:1.5; margin-top:8px; }
.empty-icon { border-radius:18px; color:#8a8b97; background:#f2f2f6; box-shadow:none; }
.cart-footer { background:#fff; padding:16px 18px 18px; }
.cart-tools { gap:8px; margin-bottom:18px; }
.cart-tools .btn { font-size:13px; font-weight:500; background:#f7f7f9; border-color:transparent; padding:0 7px; }
.cart-tools .btn:hover { background:#ededf3; }
.cart-tools .keyboard-help-button { grid-column:1/-1; background:transparent; min-height:44px; font-size:12px; }
.cart-total-row { align-items:center; margin:0 0 16px; padding-top:2px; }
.cart-total-row span { font-size:14px; }
.cart-total-row strong { font-size:30px; font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.checkout-button { box-shadow:none; }
.app-dialog { border:1px solid #e6e6ec; border-radius:24px; box-shadow:0 24px 90px #18182426; }
.app-dialog::backdrop { background:#22222b3d; backdrop-filter:blur(8px); }
.dialog-header { padding:24px 24px 20px; }
.dialog-header h2 { font-size:24px; font-weight:650; }
.dialog-header p { font-size:14px; line-height:1.45; }
.dialog-close { width:44px; height:44px; min-width:44px; color:var(--muted); border-radius:50%; background:#f3f3f6; font-weight:400; }
.dialog-body { padding:22px 24px; }
.dialog-footer { padding:16px 24px 20px; background:#fafafa; }
.dialog-footer .btn { min-height:48px; }
.dialog-footer .btn-danger[data-action="cancel-order"] { background:transparent; color:var(--red); border:1px solid #edcfd4; box-shadow:none; }
.dialog-footer .btn-danger[data-action="cancel-order"]:hover { background:var(--red-soft); }
.modifier-group { border:0; background:transparent; padding:0; }
.sale-modifier-head h3 { font-size:15px; font-weight:600; }
.modifier-options { gap:6px; }
.modifier-option { border:1px solid var(--line); background:#fff; border-radius:12px; padding:0 14px; min-height:52px; }
.modifier-option label { min-height:52px; font-size:14px; font-weight:500; flex:1; }
.modifier-option:has(input:checked) { background:var(--accent-soft); border-color:#c8c5e8; }
.modifier-option:has(input:focus-visible) { outline:3px solid var(--accent); outline-offset:2px; }
.modifier-option strong { font-size:13px; font-weight:600; }
.modifier-option input { accent-color:var(--accent); }
.checkout-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.checkout-step { display:flex; align-items:flex-start; flex-direction:column; gap:9px; padding:0 0 12px; border-radius:0; background:transparent; border-bottom:2px solid var(--line); }
.checkout-step strong { font-size:12px; line-height:1.35; font-weight:600; }
.checkout-step>div>span { display:none; }
.checkout-step>.badge { font-size:11px; min-height:20px; padding:0 5px; margin:0; font-weight:500; }
.checkout-step.active { border-color:var(--accent); }
.checkout-step.done { border-color:#b5d5c1; }
.checkout-step.error { border-color:var(--red); }
.checkout-step .step-icon { width:28px; height:28px; font-size:12px; border-radius:50%; background:#eeeef2; }
.checkout-step.active .step-icon { animation:none; }
.payment-methods { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.payment-method { min-height:98px; border-radius:15px; gap:12px; font-size:14px; font-weight:600; }
.payment-method>span:first-child { font-size:initial; color:var(--accent-strong); }
.payment-method:hover { background:var(--accent-soft); border-color:#bbb7e1; }
.warning-box,.danger-box,.info-box { font-size:13px; line-height:1.5; border-radius:12px; }
.receipt { font-size:13px; line-height:1.6; }
.badge { font-weight:600; }
.data-table th { text-transform:none; letter-spacing:0; font-size:13px; font-weight:500; }
.data-table td { font-size:14px; padding-top:16px; padding-bottom:16px; }
.filter-chip { min-height:44px; font-size:14px; font-weight:500; }
.page-header p { font-size:14px; line-height:1.5; }
.toast { border-radius:16px; border-color:var(--line); box-shadow:var(--shadow-md); }
.shift-closed-overlay { height:100%; min-height:0; padding:0; }
.shift-card { padding:24px; border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.shift-card .big-icon { width:56px; height:56px; margin-bottom:16px; border-radius:16px; font-size:28px; }
@media(min-width:601px) and (max-height:760px) {
  .shift-card .big-icon,.cart-empty .empty-icon { display:none; }
}

/* Let the register fill the space left by every visible header/notice.
   DEMO and read-only banners may wrap; no assumed banner height is needed. */
@media(min-width:601px) {
  .main-shell:has(>.pos-page) {
    display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden;
  }
  .main-shell:has(>.pos-page)>:not(.pos-page) { flex:0 0 auto; }
  .main-shell:has(>.pos-page)>.pos-page { display:flex; flex-direction:column; flex:1 1 0; height:auto; min-height:0; }
  .main-shell:has(>.pos-page)>.pos-page>:not(.pos-grid) { flex:0 0 auto; }
  .main-shell:has(>.pos-page) .pos-grid { flex:1 1 0; height:auto; min-height:0; grid-template-rows:minmax(0,1fr); }
  .main-shell:has(>.pos-page) .catalog-panel { min-height:0; overflow:hidden; }
  /* Keep space for the scrollable bill on a landscape tablet with onboarding. */
  .cart-panel:has(>.restaurant-order-banner)>.restaurant-order-banner { padding:8px 12px; }
  .cart-panel:has(>.restaurant-order-banner)>.cart-header { min-height:74px; padding:12px 14px; }
  .cart-panel:has(>.restaurant-order-banner)>.cart-footer {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; padding:12px;
  }
  .cart-panel:has(>.restaurant-order-banner)>.cart-footer>:not(.restaurant-send-button):not(.checkout-button) { grid-column:1/-1; }
  .cart-panel:has(>.restaurant-order-banner) .cart-tools { gap:6px; margin-bottom:10px; }
  .cart-panel:has(>.restaurant-order-banner) .cart-total-row { margin-bottom:8px; }
  .cart-panel:has(>.restaurant-order-banner) .restaurant-send-button,
  .cart-panel:has(>.restaurant-order-banner) .checkout-button {
    min-height:54px; margin:0; padding:10px 8px; font-size:13px; white-space:normal;
  }
}
@media(min-width:601px) and (max-width:820px) {
  body:has(.pos-page) { padding-bottom:0; }
  .main-shell:has(>.pos-page) { height:calc(100dvh - var(--smena-nav-height)); }
}
.public-demo-banner { background:var(--accent-soft); border-color:var(--line); }
.public-demo-banner small { font-size:12px; }
.public-demo-badge { font-size:11px; font-weight:600; letter-spacing:.06em; }
.public-demo-profile { font-size:12px; font-weight:500; }
.public-demo-profile select { font-size:13px; font-weight:600; }
.metric-label { font-size:13px; line-height:1.4; }
.metric-value { font-weight:650; font-variant-numeric:tabular-nums; }
.alert-item strong { font-size:14px; font-weight:600; }
.alert-item span { font-size:13px; line-height:1.45; }
.panel-header p { font-size:13px; line-height:1.45; }
.integration-card p,.integration-log-details { font-size:13px; line-height:1.5; }
.badge { font-size:12px; }

@media (max-width:1120px) and (min-width:821px) {
  :root { --sidebar-width:76px; }
  .sidebar { padding:22px 10px 14px; }
  .brand { padding:0 0 28px; }
  .pos-page { padding:18px; }
  .pos-grid { grid-template-columns:minmax(0,1fr) 320px; gap:16px; }
}
/* Tablets keep both work areas visible: no extra trip into a cart overlay. */
@media (min-width:601px) and (max-width:820px) {
  .topbar { padding:8px 18px; min-height:60px; }
  .pos-page { padding:16px; height:calc(100dvh - 128px); min-height:560px; overflow:hidden; }
  .pos-grid { display:grid; grid-template-columns:minmax(0,1fr) 294px; gap:14px; }
  .catalog-panel { min-height:0; }
  .cart-panel,.cart-panel.mobile-open { display:grid; position:static; border-radius:18px; z-index:auto; }
  .cart-header [data-action="toggle-mobile-cart"],.mobile-cart-button { display:none; }
  .pos-head { gap:14px; padding-bottom:16px; }
  .pos-head h1 { font-size:27px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .cart-header { padding:18px 14px 14px; }
  .cart-scroll { padding-inline:12px; }
  .cart-footer { padding:14px; }
  .cart-line-name { font-size:15px; }
  .product-artwork { height:104px; }
  .product-card { min-height:212px; }
  .product-price { font-size:16px; }
}
@media (max-width:820px) {
  .mobile-nav { height:var(--smena-nav-height); border:0; border-top:1px solid var(--line); background:#fffffff2; padding-top:5px; }
  .mobile-nav-button { font-size:12px; font-weight:500; border-radius:12px; gap:4px; min-height:44px; }
  .mobile-nav-button svg { width:21px; height:21px; stroke-width:1.7; }
  .mobile-nav-button.active { background:#f2f1fa; color:var(--accent-strong); }
  .status-cluster .status-pill:nth-child(2) { min-width:44px; }
  .app-dialog { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:22px; }
  .dialog-shell { max-height:calc(100dvh - 24px); }
  .dialog-footer { flex-wrap:wrap; }
  .modifier-group .sale-modifier-head { flex-direction:row; align-items:center; }
}
@media (max-width:600px) {
  input:not([type="checkbox"]):not([type="radio"]):not(.pin-code-digit),select,textarea { font-size:16px; }
  .page:has(.order-search-controls) .page-header { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; }
  .page:has(.order-search-controls) .page-header>div:first-child { grid-column:1/-1; }
  .page:has(.order-search-controls) .page-header>.btn-primary { justify-self:end; }
  .order-search-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .order-search-controls>label { font-size:12px; font-weight:500; min-width:0; }
  .order-search-controls>label:first-child { grid-column:1/-1; }
  .page:has(.order-search-controls) .panel-header { flex-wrap:wrap; padding:14px; gap:10px; }
  .page:has(.order-search-controls) .filters { flex-wrap:nowrap; overflow-x:auto; width:100%; padding:2px; gap:6px; scrollbar-width:none; }
  .page:has(.order-search-controls) .filter-chip { flex-shrink:0; }
  .page:has(.order-search-controls) .panel-header>.badge { margin-left:auto; }
  .page:has(.order-search-controls) .table-wrap { overflow:visible; }
  .page:has(.order-search-controls) .data-table { display:block; }
  .page:has(.order-search-controls) .data-table thead { display:none; }
  .page:has(.order-search-controls) .data-table tbody { display:block; }
  .page:has(.order-search-controls) tr[data-action="open-order"] { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:16px; border-top:1px solid var(--line); }
  .page:has(.order-search-controls) tr[data-action="open-order"] td { padding:0; border:0; font-size:12px; color:var(--muted); white-space:normal; overflow-wrap:anywhere; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(1) { grid-column:1; grid-row:1; font-size:16px; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(5) { grid-column:2; grid-row:1; color:var(--ink); font-size:16px; white-space:nowrap; text-align:right; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(2) { grid-column:1; grid-row:2; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(6) { grid-column:2; grid-row:2; text-align:right; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(3) { grid-column:1; grid-row:3; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(4) { grid-column:2; grid-row:3; text-align:right; }
  .page:has(.order-search-controls) tr[data-action="open-order"] td:nth-child(7) { display:none; }
  .topbar { padding:8px 12px; min-height:60px; gap:6px; }
  .topbar-left,.topbar-right,.status-cluster { gap:6px; }
  .topbar-title strong { font-size:15px; }
  .topbar-title { gap:2px 6px; }
  .topbar-title .runtime-mode-label { font-size:10px; padding:0 5px; }
  .shift-label-full { display:none; }
  .shift-label-compact { display:inline; }
  .pos-page { padding:18px 14px 82px; height:auto; min-height:calc(100dvh - 128px); }
  .catalog-panel { min-height:0; }
  .pos-head { gap:14px; padding:0 0 14px; }
  .pos-head h1 { font-size:28px; }
  .pos-head p { font-size:12px; }
  .category-tabs { margin-inline:-14px; padding:0 14px 16px; gap:3px; }
  .category-button { padding:0 11px; gap:6px; }
  .products-scroll { overflow:visible; padding-inline:1px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-card { min-height:220px; }
  .product-name { font-size:16px; }
  .product-price { font-size:17px; }
  .stock-mini { font-size:12px; }
  .mobile-cart-button { left:14px; right:14px; bottom:calc(var(--smena-nav-height) + 14px); min-height:56px; width:calc(100% - 28px); background:var(--ink); border-radius:16px; padding:0 20px; box-shadow:0 6px 22px #20212426; font-size:14px; font-weight:500; }
  .mobile-cart-button strong { font-size:19px; font-weight:600; letter-spacing:-.02em; }
  .cart-panel.mobile-open { inset:60px 0 var(--smena-nav-height); border:0; border-radius:0; box-shadow:none; }
  .public-demo .cart-panel.mobile-open { inset:60px 0 var(--smena-nav-height); }
  .cart-header { min-height:74px; padding:16px 18px; }
  .cart-header h2 { font-size:23px; }
  .cart-scroll { padding-inline:18px; }
  .cart-footer { padding:14px 18px 16px; }
  .cart-tools { margin-bottom:10px; }
  .dialog-header { padding:20px 18px 16px; }
  .dialog-header h2 { font-size:22px; }
  .dialog-body { padding:18px; }
  .dialog-footer { padding:14px 18px 16px; gap:8px; }
  .dialog-footer .btn { font-size:13px; padding:0 10px; }
  .checkout-progress { gap:6px; }
  .checkout-step strong { font-size:12px; }
  .checkout-step { gap:7px; }
  .payment-methods { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sale-modifier-head .badge { font-size:10px; padding-inline:6px; }
  .pos-connection-notice { margin-bottom:16px; }
  .public-demo .pos-page { padding-bottom:82px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Closed shift: one action and a clear preparation sequence, scoped to this page. */
.orders-page { max-width:1280px; margin-inline:auto; padding:32px; }
.orders-page .page-header { display:flex; flex-direction:row; align-items:center; text-align:left; margin-bottom:24px; }
.orders-page .page-header h1 { font-size:28px; letter-spacing:-.8px; margin-bottom:6px; }
.orders-page .page-header>.btn { min-height:48px; flex-shrink:0; }
.orders-search-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.8fr); gap:18px; align-items:start; margin-bottom:22px; }
.orders-search-panel .form-field { min-width:0; }
.orders-search-panel .form-field>span { font-size:13px; color:var(--muted); font-weight:500; }
.orders-search-panel input { min-width:0; min-height:48px; font-size:16px; background:var(--panel); }
.orders-advanced { border:1px solid var(--line); border-radius:14px; background:var(--panel); margin-top:23px; }
.orders-advanced summary { min-height:48px; padding:15px 16px; cursor:pointer; font-size:13px; font-weight:500; color:var(--muted); }
.orders-advanced>div { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 16px 16px; }
.orders-advanced summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; border-radius:12px; }
.orders-list-panel { overflow:hidden; }
.orders-toolbar { padding:18px 20px; border-bottom:1px solid var(--line); }
.orders-toolbar .filters { display:flex; gap:6px; flex-wrap:wrap; overflow:visible; }
.orders-toolbar .filter-chip { min-height:44px; padding-inline:12px; font-size:13px; }
.orders-results { display:flex; justify-content:space-between; align-items:center; min-height:32px; margin-top:12px; }
.orders-results>.badge { padding:0; background:transparent; color:var(--muted); font-size:12px; font-weight:400; }
.orders-results .btn { min-height:44px; padding-inline:8px; color:var(--accent-strong); font-size:12px; }
.order-list-row { display:grid; width:100%; grid-template-columns:minmax(130px,1fr) minmax(130px,1.2fr) minmax(100px,.8fr) minmax(110px,auto) 14px; align-items:center; gap:20px; padding:20px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--panel); text-align:left; color:var(--ink); }
.order-list-row:last-child { border-bottom:0; }
.order-list-row:hover { background:var(--panel-2); }
.order-list-row:focus-visible { outline:3px solid var(--accent); outline-offset:-3px; background:var(--accent-soft); }
.order-list-row>span { min-width:0; }
.order-list-main>strong { font-size:16px; font-weight:600; }
.order-list-row small { display:block; margin-top:6px; font-size:12px; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; font-weight:400; }
.order-list-payment { font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.order-list-total { text-align:right; }
.order-list-total>strong { font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-list-row>.badge { justify-self:end; max-width:100%; white-space:normal; line-height:1.4; text-align:center; font-size:12px; padding:5px 9px; }
.order-list-arrow { color:var(--muted); font-size:24px; font-weight:400; }
.orders-empty { padding:44px 24px; text-align:center; }
.orders-empty>strong { display:block; font-size:18px; }
.orders-empty p { color:var(--muted); font-size:14px; line-height:1.55; margin:12px auto 22px; max-width:360px; }
.orders-empty .btn { min-height:48px; }
.orders-page .list-pagination { padding:16px 20px; border-top:1px solid var(--line); gap:12px; flex-wrap:wrap; }
.orders-page .list-pagination button { min-height:44px; }
.order-card-total { display:grid; justify-items:start; gap:8px; margin-bottom:12px; }
.order-card-total>.badge { margin-bottom:10px; }
.order-card-total>span:not(.badge) { font-size:13px; color:var(--muted); }
.order-card-total>strong { font-size:38px; font-weight:650; letter-spacing:-1px; line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-card-demo { margin:0 0 22px; font-size:12px; color:var(--muted); }
.order-card-error-detail { font-size:12px; line-height:1.5; margin:12px 0 0; }
.order-card-section { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.order-card-section h3 { margin:0 0 16px; font-size:15px; font-weight:600; }
.order-card-payment-state { margin:0 0 16px; font-size:13px; color:var(--muted); line-height:1.5; }
.order-card-section .detail-row { gap:16px; padding-block:10px; font-size:14px; }
.order-card-section .detail-row>span { min-width:0; }
.order-card-section .detail-row>strong { overflow-wrap:anywhere; text-align:right; }
.order-card-line { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:14px 0; border-bottom:1px solid var(--line); }
.order-card-line:first-of-type { padding-top:0; }
.order-card-line>div { min-width:0; }
.order-card-line strong { font-size:14px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.order-card-line>strong { text-align:right; max-width:35%; flex-shrink:0; font-variant-numeric:tabular-nums; }
.order-card-line small,.order-card-refund small { display:block; margin-top:6px; font-size:12px; color:var(--muted); line-height:1.55; overflow-wrap:anywhere; }
.order-card-discount { color:var(--muted); }
.order-card-comment,.order-card-note { font-size:13px; color:var(--muted); line-height:1.6; overflow-wrap:anywhere; }
.order-card-refund { display:flex; justify-content:space-between; gap:18px; padding:12px 0; font-size:13px; border-bottom:1px solid var(--line); }
.order-card-refund>div { min-width:0; }
.order-card-refund>strong { white-space:nowrap; font-weight:600; }
.order-card-available { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; margin-top:16px; border-radius:12px; background:var(--accent-soft); }
.order-card-available>span { font-size:13px; color:var(--muted); }
.order-card-available>strong { font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-card-details { margin-top:24px; border-block:1px solid var(--line); padding-block:4px; }
.order-card-details summary { min-height:48px; padding-block:15px; cursor:pointer; font-size:13px; color:var(--muted); }
.order-card-details summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.order-card-details .detail-row { font-size:13px; gap:16px; padding-block:12px; }
.order-card-details .detail-row strong { text-align:right; overflow-wrap:anywhere; max-width:60%; }
.order-card-reference { display:grid; gap:8px; padding:14px 0; border-bottom:1px solid var(--line); }
.order-card-reference>span { color:var(--muted); font-size:12px; }
.order-card-reference>code { font-size:12px; line-height:1.5; overflow-wrap:anywhere; user-select:text; }
.order-card-tools { display:flex; flex-wrap:wrap; gap:8px; padding-top:20px; }
.order-card-tools .btn { min-height:44px; font-size:12px; font-weight:500; }
.order-card-tools [data-action="cancel-order"] { color:var(--red); }
.order-card-shell .receipt { max-width:100%; }
@media(max-width:1050px) {
  .orders-page { padding:24px; }
  .order-list-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 18px; }
  .order-list-main { grid-column:1; grid-row:1; }
  .order-list-total { grid-column:2; grid-row:1; }
  .order-list-payment { grid-column:1; grid-row:2; }
  .order-list-row>.badge { grid-column:2; grid-row:2; }
  .order-list-arrow { display:none; }
}
@media(max-width:650px) {
  .orders-page { padding:24px 16px; }
  .orders-page .page-header { gap:12px; }
  .orders-page .page-header h1 { font-size:26px; margin:0; }
  .orders-page .page-header p { display:none; }
  .orders-page .page-header>.btn { font-size:13px; }
  .orders-search-panel { grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:16px; }
  .orders-advanced { margin-top:0; }
  .orders-advanced>div { grid-template-columns:minmax(0,1fr); }
  .orders-toolbar { padding:14px 16px 10px; }
  .orders-toolbar .filter-chip { padding-inline:10px; font-size:12px; }
  .order-list-row { padding:18px 16px; }
  .order-list-row>.badge { font-size:11px; padding:5px 8px; }
  .order-card-total>strong { font-size:34px; }
  .order-card-tools .btn { flex:1 1 auto; }
}
.app-dialog:has(.money-dialog-shell) { width:min(620px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:min(920px,calc(100dvh - 24px)); }
.money-dialog-shell { display:flex; flex-direction:column; max-height:min(920px,calc(100dvh - 24px)); min-height:0; }
.money-dialog-shell .dialog-header { flex:0 0 auto; padding:24px 28px 20px; }
.money-dialog-shell .dialog-header h2 { font-size:24px; line-height:1.25; letter-spacing:-.6px; overflow-wrap:anywhere; }
.money-dialog-shell .dialog-header p { font-size:13px; overflow-wrap:anywhere; }
.money-dialog-shell .dialog-body { flex:1 1 auto; padding:24px 28px; overscroll-behavior:contain; }
.money-dialog-shell .dialog-feedback { flex:0 0 auto; max-height:24dvh; overflow:auto; margin:16px 28px 0; }
.money-dialog-shell .dialog-footer { flex:0 0 auto; padding:16px 28px 20px; background:var(--panel); }
.money-dialog-shell .dialog-footer .btn { min-height:50px; min-width:0; font-size:14px; line-height:1.3; }
.money-dialog-shell .dialog-footer .btn:last-child { flex:1; }
.money-dialog-shell .dialog-footer [data-action="cancel-order"] { flex:0 0 auto; min-height:44px; }
.money-dialog-amount { display:grid; gap:8px; margin-bottom:24px; }
.money-dialog-amount>span { color:var(--muted); font-size:13px; }
.money-dialog-amount>strong { font-size:38px; line-height:1.15; font-weight:650; letter-spacing:-1.2px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.money-dialog-progress { margin:0 0 22px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.money-dialog-progress summary { cursor:pointer; min-height:44px; display:list-item; font-size:13px; font-weight:500; color:var(--muted); }
.money-dialog-progress .checkout-progress { padding-top:12px; gap:8px; }
.money-dialog-progress .checkout-step strong { font-size:11px; }
.money-dialog-progress summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; border-radius:4px; }
.money-dialog-shell .payment-methods { gap:10px; margin-top:16px; }
.money-dialog-shell .payment-method { min-height:112px; align-items:flex-start; text-align:left; padding:18px; gap:12px; background:var(--panel); }
.money-dialog-shell .payment-method:hover { background:var(--accent-soft); }
.money-dialog-shell .payment-method small { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.4; font-weight:400; }
.money-dialog-shell .dialog-body>h3 { font-size:15px; font-weight:600; }
.app-dialog .money-dialog-shell .money-dialog-cash input { min-height:64px; font-size:30px; font-weight:600; letter-spacing:-.7px; font-variant-numeric:tabular-nums; }
.money-dialog-shell .cash-quick-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.money-dialog-shell .cash-quick-tag { min-height:44px; font-size:13px; }
.money-dialog-shell .cash-change-card { display:block; margin-top:20px; padding:18px; border-radius:16px; }
.money-dialog-shell .cash-change-item:not(.cash-change-result) { display:none; }
.money-dialog-shell .cash-change-result { padding:0; border:0; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.money-dialog-shell .cash-change-result strong { font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; }
.money-dialog-shell .cash-change-result span { font-size:14px; }
.money-dialog-shell .numeric-keypad-control { justify-items:start; }
.money-dialog-shell .numeric-keypad-toggle { min-height:44px; font-size:12px; font-weight:500; background:transparent; color:var(--accent-strong); padding-inline:0; }
.money-dialog-shell .split-payment-grid { display:grid; grid-template-columns:1fr; gap:12px; margin-top:20px; }
.money-dialog-shell .split-payment-grid>label { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,45%); align-items:center; gap:16px; font-size:14px; }
.money-dialog-shell .split-payment-grid input { width:100%; min-width:0; min-height:50px; font-size:18px; text-align:right; font-variant-numeric:tabular-nums; }
.money-dialog-split-preview,.money-dialog-note,.money-dialog-instruction { font-size:13px; line-height:1.55; color:var(--muted); }
.money-dialog-split-preview { margin:18px 0 0; padding:14px 16px; border-radius:12px; background:var(--accent-soft); color:var(--ink); }
.money-dialog-waiting { padding:18px; border-radius:14px; background:var(--accent-soft); font-size:15px; line-height:1.6; margin:0 0 20px; }
.money-dialog-shell .refund-item-list { display:grid; gap:0; margin-bottom:24px; }
.money-refund-line { display:grid; grid-template-columns:minmax(0,1fr) 110px; gap:18px; padding:18px 0; border-bottom:1px solid var(--line); align-items:center; }
.money-refund-line>div { min-width:0; }
.money-refund-line strong { display:block; overflow-wrap:anywhere; font-size:14px; line-height:1.5; font-weight:600; }
.money-refund-line small { display:block; color:var(--muted); font-size:12px; margin-top:6px; line-height:1.5; }
.money-refund-line>label { display:grid; gap:7px; font-size:12px; color:var(--muted); }
.money-refund-line input { width:100%; min-width:0; min-height:50px; font-size:18px; text-align:center; }
.money-refund-line.unavailable { opacity:.6; }
.money-dialog-shell .form-grid { grid-template-columns:minmax(0,1fr); gap:22px; }
.money-dialog-shell .form-field select { min-height:48px; font-size:16px; }
.money-dialog-shell [data-pin-for] { justify-content:flex-start; }
.money-dialog-shell .pin-code-cell { width:48px; min-width:0; flex:0 1 48px; height:52px; }
.money-dialog-note { margin:22px 0 0; }
.money-dialog-shell :is(.warning-box,.danger-box,.info-box) { margin-bottom:18px; }
@media(max-width:600px) {
  .money-dialog-shell .dialog-header { padding:20px 20px 16px; }
  .money-dialog-shell .dialog-header h2 { font-size:22px; }
  .money-dialog-shell .dialog-body { padding:20px; }
  .money-dialog-shell .dialog-feedback { margin:12px 20px 0; }
  .money-dialog-shell .dialog-footer { flex-wrap:nowrap; padding:14px 20px 18px; gap:10px; }
  .money-dialog-shell .dialog-footer .btn { padding-inline:14px; }
  .money-dialog-shell .dialog-footer .btn-secondary { flex:0 0 auto; }
  .money-dialog-shell .payment-method { padding:16px 14px; }
  .money-dialog-amount>strong { font-size:34px; }
  .money-refund-line { grid-template-columns:minmax(0,1fr) 96px; gap:12px; }
}
.app-dialog:has(.shift-dialog-shell) { width:min(620px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:min(920px,calc(100dvh - 24px)); }
.shift-dialog-shell { display:flex; flex-direction:column; max-height:min(920px,calc(100dvh - 24px)); min-height:0; }
.shift-dialog-shell .dialog-header { flex:0 0 auto; padding:24px 28px 20px; }
.shift-dialog-shell .dialog-header h2 { font-size:24px; line-height:1.25; letter-spacing:-.6px; }
.shift-dialog-shell .dialog-header p { max-width:440px; overflow-wrap:anywhere; font-size:13px; }
.shift-dialog-shell .dialog-body { flex:1 1 auto; padding:24px 28px; overscroll-behavior:contain; }
.shift-dialog-shell .dialog-feedback { flex:0 0 auto; max-height:24dvh; overflow:auto; margin:16px 28px 0; }
.shift-dialog-shell .dialog-footer { flex:0 0 auto; padding:16px 28px 20px; background:var(--panel); }
.shift-dialog-shell .dialog-footer .btn { min-height:50px; min-width:100px; font-size:14px; }
.shift-dialog-shell .dialog-footer .btn:last-child { padding-inline:22px; gap:18px; }
.shift-dialog-step { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.shift-dialog-step>span { width:26px; height:26px; display:grid; place-items:center; flex:0 0 26px; border:1px solid var(--line-strong); border-radius:50%; color:var(--muted); font-size:12px; }
.shift-dialog-step h3 { margin:0; font-size:15px; font-weight:600; }
.shift-dialog-content .form-field { min-width:0; }
.shift-dialog-content label { font-size:13px; font-weight:500; }
.shift-dialog-content .help-text { font-size:12px; line-height:1.55; color:var(--muted); }
.app-dialog .shift-dialog-shell .shift-dialog-amount input { min-height:64px; font-size:30px; font-weight:600; letter-spacing:-.7px; font-variant-numeric:tabular-nums; padding:10px 16px; background:var(--panel); }
.shift-dialog-amount input:focus { outline:2px solid var(--accent); outline-offset:2px; }
.shift-dialog-confirm { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.shift-dialog-pin .pin-code-cells { justify-content:flex-start; padding:2px 0; margin-top:4px; gap:8px; }
.shift-dialog-pin .pin-code-cell { width:48px; min-width:0; flex:0 1 48px; height:52px; }
.shift-dialog-pin .numeric-keypad-control { justify-items:start; }
.shift-dialog-pin .numeric-keypad-toggle { min-height:44px; font-size:12px; font-weight:500; background:transparent; color:var(--accent-strong); padding-inline:0; }
.shift-dialog-notice { margin:22px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.shift-dialog-report { border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:24px; }
.shift-dialog-report summary { min-height:44px; cursor:pointer; font-size:14px; font-weight:600; }
.shift-dialog-report summary>span { display:block; padding-top:7px; font-size:13px; color:var(--muted); font-weight:400; }
.shift-dialog-report summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; border-radius:4px; }
.shift-dialog-report .report-grid { margin-top:20px; font-size:13px; gap:12px; }
.shift-dialog-report .detail-row { align-items:flex-start; gap:20px; }
.shift-dialog-report .detail-row>span { flex:1; }
.shift-dialog-report .detail-row strong { max-width:65%; text-align:right; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.shift-dialog-expected { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 16px; border-radius:12px; background:var(--accent-soft); margin-bottom:18px; }
.shift-dialog-expected>span { font-size:13px; color:var(--muted); }
.shift-dialog-expected>strong { font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.shift-dialog-comparison { margin:12px 0 0; color:var(--green); font-size:13px; line-height:1.5; }
.shift-dialog-comparison.has-difference { color:var(--red); font-weight:600; }
.shift-dialog-difference { padding:18px; margin-top:18px; border:1px solid var(--line); border-radius:14px; background:var(--panel-2); }
.shift-dialog-difference[hidden] { display:none; }
.shift-dialog-difference h3 { margin:0 0 16px; font-size:14px; font-weight:600; }
.shift-dialog-difference .form-field+.form-field { margin-top:20px; }
.shift-dialog-difference input:not(.pin-code-source):not(.pin-code-cell) { min-height:48px; font-size:16px; }
.shift-dialog-blocked { padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--panel-2); }
.shift-dialog-blocked h3 { margin:0 0 12px; font-size:16px; }
.shift-dialog-blocked ul { padding-left:20px; margin:0; display:grid; gap:10px; font-size:14px; line-height:1.55; }
.shift-dialog-blocked p { color:var(--muted); font-size:13px; margin:16px 0 0; }
@media(max-width:600px) {
  .shift-dialog-shell .dialog-header { padding:20px 20px 16px; }
  .shift-dialog-shell .dialog-header h2 { font-size:22px; }
  .shift-dialog-shell .dialog-body { padding:20px; }
  .shift-dialog-shell .dialog-feedback { margin:12px 20px 0; }
  .shift-dialog-shell .dialog-footer { flex-wrap:nowrap; padding:14px 20px 18px; gap:10px; }
  .shift-dialog-shell .dialog-footer .btn { min-width:0; padding-inline:14px; }
  .shift-dialog-shell .dialog-footer .btn-secondary { flex:0 0 auto; }
  .shift-dialog-shell .dialog-footer .btn:last-child { flex:1; padding-inline:14px; }
  .shift-dialog-difference { padding:16px; }
  .shift-dialog-report .detail-row { gap:12px; }
}
.shift-start-page { max-width:1200px; margin-inline:auto; padding:32px; }
.shift-start-page .page-header { align-items:center; margin-bottom:28px; }
.shift-start-page .page-header h1 { font-size:28px; letter-spacing:-.8px; margin-bottom:6px; }
.shift-start-status { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; white-space:nowrap; }
.shift-start-status>span { width:7px; height:7px; border-radius:50%; background:#898a94; }
.shift-start { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); border:1px solid var(--line); border-radius:24px; background:var(--panel); box-shadow:0 4px 20px rgba(25,25,40,.025); overflow:hidden; }
.shift-start-intro { padding:40px; }
.shift-start-symbol { display:grid; place-items:center; width:56px; height:56px; margin-bottom:26px; border-radius:18px; background:var(--accent-soft); color:var(--accent-strong); }
.shift-start-intro h2 { font-size:30px; line-height:1.15; font-weight:650; letter-spacing:-1px; margin:0 0 14px; }
.shift-start-intro>p { margin:0 0 28px; color:var(--muted); font-size:16px; line-height:1.6; }
.shift-start-button { min-height:50px; padding:0 20px; gap:20px; font-size:15px; }
.shift-start-button:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.shift-start-note { display:block; margin-top:14px; color:var(--muted); font-size:12px; line-height:1.5; }
.shift-start-preparation { margin:24px 0; padding:32px 36px; border-left:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; }
.shift-start-preparation h3 { margin:0 0 26px; font-size:13px; font-weight:600; color:var(--muted); }
.shift-start-preparation ol { list-style:none; margin:0; padding:0; display:grid; gap:26px; }
.shift-start-preparation li { display:flex; align-items:flex-start; gap:14px; }
.shift-start-step { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border:1px solid var(--line-strong); border-radius:50%; color:var(--muted); font-size:12px; font-weight:600; }
.shift-start-preparation strong { display:block; padding-top:3px; font-size:14px; font-weight:600; line-height:1.4; }
.shift-start-preparation li p { margin:5px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.shift-start-mode { display:flex; align-items:flex-start; gap:9px; margin:30px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.shift-start-mode svg { flex-shrink:0; margin-top:1px; }
.shift-start-page .shift-history { margin-top:24px; }
@media(max-width:1000px) {
  .shift-start-page { padding:24px; }
  .shift-start-intro { padding:32px; }
  .shift-start-intro h2 { font-size:26px; }
  .shift-start-preparation { padding:24px; }
}
@media(max-width:650px) {
  .shift-start-page { padding:24px 16px; }
  .shift-start-page .page-header { align-items:flex-start; gap:12px; flex-direction:column; margin-bottom:20px; }
  .shift-start-page .page-header h1 { font-size:26px; }
  .shift-start { grid-template-columns:minmax(0,1fr); border-radius:20px; }
  .shift-start-intro { padding:28px 24px 24px; }
  .shift-start-symbol { width:48px; height:48px; border-radius:15px; margin-bottom:22px; }
  .shift-start-intro h2 { font-size:26px; }
  .shift-start-intro>p { font-size:15px; margin-bottom:24px; }
  .shift-start-break { display:none; }
  .shift-start-button { width:100%; justify-content:space-between; }
  .shift-start-note { text-align:center; }
  .shift-start-preparation { margin:0 24px; padding:24px 0; border-left:0; border-top:1px solid var(--line); }
  .shift-start-preparation h3 { margin-bottom:18px; }
  .shift-start-preparation ol { gap:20px; }
  .shift-start-mode { margin-top:24px; }
}

/* Saved financial operations remain actionable after reload. */
.operation-recovery{margin:20px 24px 0;padding:20px 22px;border:1px solid #e6cf95;border-radius:20px;background:#fffaf0;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#342a19}
.operation-recovery-eyebrow{margin:0 0 7px;font-size:11px;font-weight:750;letter-spacing:.08em;color:#765b20}
.operation-recovery h2{font-size:18px;line-height:1.3;margin:0 0 6px}
.operation-recovery p:not(.operation-recovery-eyebrow){font-size:14px;line-height:1.5;margin:0;max-width:680px}
.operation-recovery-actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}
.operation-recovery-actions .btn{min-height:48px;white-space:normal}
@media(max-width:900px){.operation-recovery{align-items:stretch;flex-direction:column;gap:14px}.operation-recovery-actions .btn{flex:1}}
@media(max-width:600px){.operation-recovery{margin:12px 12px 0;padding:18px;border-radius:18px}.operation-recovery-actions{flex-direction:column}.operation-recovery h2{font-size:18px}}

/* Kitchen setup uses names and explicit routing, including disabled stations. */
.kitchen-setup-dialog{width:min(860px,calc(100% - 28px));max-height:92dvh;overscroll-behavior:contain}.kitchen-setup-dialog .dialog-card{gap:20px}.kitchen-setup-dialog .dialog-card>h2{font-size:27px;line-height:1.2}.kitchen-setup-dialog .dialog-actions{position:sticky;bottom:-29px;z-index:2;margin:0 -29px -29px;padding:16px 29px max(20px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.kitchen-setup{display:grid;gap:26px;min-width:0}.kitchen-setup-intro{margin:0;color:var(--muted);font-size:15px;line-height:1.55}.kitchen-setup-section{display:grid;gap:14px;min-width:0}.kitchen-section-head{display:flex;align-items:start;justify-content:space-between;gap:14px}.kitchen-section-head h3{margin:0;font-size:18px;line-height:1.35}.kitchen-section-head p{margin:5px 0 0;font-size:14px;color:var(--muted);line-height:1.5}.kitchen-section-head>.button{flex-shrink:0}.kitchen-stations{display:grid;gap:16px;min-width:0}.kitchen-setup-dialog .kitchen-station-card{margin:0;padding:14px 16px 16px;border:1px solid var(--line);border-radius:18px;min-width:0;background:var(--soft)}.kitchen-station-card legend{padding:0 5px;font-weight:800;overflow-wrap:anywhere;max-width:100%}.kitchen-station-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(110px,.7fr);gap:12px;align-items:end}.kitchen-setup label{min-width:0}.kitchen-setup input,.kitchen-setup select{min-width:0;min-height:46px;font-size:16px}.kitchen-station-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.kitchen-setup .kitchen-switch{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px}.kitchen-setup .kitchen-switch input{width:21px;height:21px;min-height:21px;accent-color:var(--purple)}.kitchen-station-note,.kitchen-printer-note{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}.kitchen-printer-note{padding:10px 12px;border:1px solid #eadbb8;border-radius:11px;background:#fff8e8;color:#775219}.kitchen-product-search{max-width:420px}.kitchen-route-summary{margin:0;font-size:13px;color:var(--muted)}.kitchen-routes{display:grid;gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden}.kitchen-setup .kitchen-route-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.8fr);gap:16px;align-items:center;padding:14px 16px;background:#fff;border-bottom:1px solid var(--line)}.kitchen-route-row:last-child{border-bottom:0}.kitchen-route-row strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.kitchen-route-row small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}.kitchen-route-row .kitchen-route-warning{color:var(--red)}.kitchen-no-results,.kitchen-empty{margin:0;padding:16px;border:1px dashed var(--line);border-radius:13px;font-size:14px;line-height:1.5;color:var(--muted)}.kitchen-setup [hidden]{display:none!important}.kitchen-setup :focus-visible{outline:3px solid var(--purple);outline-offset:3px}.kitchen-setup select[aria-invalid=true]{border-color:var(--red)}
@media(max-width:700px){.kitchen-station-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.kitchen-station-fields>label:first-child{grid-column:1/-1}.kitchen-section-head{flex-wrap:wrap}}
@media(max-width:560px){.kitchen-setup-dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:20px}.kitchen-setup-dialog .dialog-card{padding:22px 16px;gap:18px}.kitchen-setup-dialog .dialog-card>h2{font-size:24px}.kitchen-setup-dialog .dialog-actions{bottom:-22px;margin:0 -16px -22px;padding:12px 16px max(16px,env(safe-area-inset-bottom));flex-direction:row}.kitchen-setup-dialog .dialog-actions>*{width:auto;min-height:48px}.kitchen-setup-dialog .kitchen-station-card{padding:12px}.kitchen-station-fields{grid-template-columns:minmax(0,1fr)}.kitchen-station-fields>label:first-child{grid-column:auto}.kitchen-setup .kitchen-route-row{grid-template-columns:minmax(0,1fr);gap:9px;padding:13px}.kitchen-section-head>.button{width:100%}.kitchen-product-search{max-width:none}.kitchen-station-bottom>.button{width:100%}.kitchen-station-bottom{gap:4px}}

.kitchen-setup-dialog .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--border,#e5e5eb);border-radius:12px;background:#fff;color:#25252a;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.kitchen-setup-dialog .button:disabled{opacity:.45;cursor:not-allowed}
.kitchen-setup-dialog .kitchen-setup input:not([type=checkbox]),.kitchen-setup-dialog .kitchen-setup select{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--border,#e5e5eb);border-radius:10px;background:#fff;color:#25252a}
.kitchen-setup-dialog .kitchen-setup label{display:grid;gap:7px;font-size:14px;font-weight:600}
.kitchen-setup-dialog .kitchen-station-card{margin:0;padding:14px 16px 16px;border:1px solid #e5e5eb;border-radius:18px;min-width:0;background:#f7f7fa}
.kitchen-setup-dialog .kitchen-switch{display:flex!important}
.kitchen-setup-dialog .kitchen-setup form{margin:0}

.app-dialog.kitchen-setup-dialog{width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.app-dialog.kitchen-setup-dialog .dialog-shell{max-height:calc(100dvh - 26px)}

.kitchen-setup-dialog .kitchen-station-card{display:grid;gap:14px}

/* Shared hall/kitchen status stays separate from a local saved draft. */
.restaurant-connection{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 28px 0;padding:14px 18px;border:1px solid #dedce9;border-radius:16px;background:#fff;line-height:1.5}
.restaurant-connection strong{display:block;font-size:15px}.restaurant-connection p{margin:3px 0 0;font-size:14px;color:#595963}.restaurant-connection.is-ready{border-color:#d4e7db;background:#f5faf7}.restaurant-connection.needs-attention{border-color:#e7d8b7;background:#fffaf0}.restaurant-connection .btn{min-height:44px;flex-shrink:0}
.restaurant-pending-payment{padding:16px;margin:16px 0;border:1px solid #e7d8b7;background:#fffaf0;border-radius:14px;line-height:1.5}.restaurant-pending-payment p{font-size:15px;margin:8px 0 14px;color:#56515f}.restaurant-pending-payment .btn{min-height:48px;white-space:normal}
@media(max-width:700px){.restaurant-connection{margin:12px 16px 0;align-items:stretch;flex-direction:column;gap:10px}.restaurant-connection .btn,.restaurant-pending-payment .btn{width:100%}.restaurant-pending-payment{padding:14px}}
.restaurant-card-tools{margin-top:16px;border-top:1px solid var(--border,#e5e5eb);padding-top:8px}.restaurant-card-tools summary{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;cursor:pointer}.restaurant-card-tools summary::after{content:'+';margin-left:auto;font-size:22px}.restaurant-card-tools[open] summary::after{content:'−'}.restaurant-card-tools>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}.restaurant-card-tools .btn{min-height:48px;white-space:normal;font-size:14px;line-height:1.4}
@media(max-width:560px){.restaurant-card-tools>div{grid-template-columns:1fr}.app-dialog:has([data-restaurant-bill]) .dialog-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.app-dialog:has([data-restaurant-bill]) .dialog-footer .btn{width:100%;font-size:14px;min-height:48px;white-space:normal}.app-dialog:has([data-restaurant-bill]) .dialog-footer .btn-primary{grid-column:1/-1}}
.kitchen-item-cancelled>strong{text-decoration:line-through;color:#76717a}.kitchen-cancelled-reason{display:block;font-size:14px;color:#a13d39;font-weight:600;line-height:1.5}

/* The cashier chooses the navigation width; the profile stays inside either rail. */
.sidebar-toggle { min-width:44px; min-height:44px; flex:0 0 44px; }
.app-shell .sidebar .sidebar-nav { flex:1 1 auto; min-height:0; align-content:start; }
.app-shell .sidebar .sidebar-footer { flex:0 0 auto; min-width:0; padding-top:10px; }
.app-shell .sidebar .user-mini { width:100%; min-width:0; min-height:48px; overflow:hidden; }
.app-shell .sidebar .user-mini>.avatar { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; margin:0; overflow:visible; }
.app-shell .sidebar .user-copy { min-width:0; flex:1 1 auto; margin:0; }
.app-shell .sidebar .user-copy>strong,.app-shell .sidebar .user-copy>span { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
@media(min-width:821px) {
  .app-shell:not(.pos-nav-compact) { --sidebar-width:204px; }
  .app-shell:not(.pos-nav-compact) .sidebar { padding:22px 14px 14px; align-items:stretch; }
  .app-shell:not(.pos-nav-compact) .smena-pos-brand { align-items:flex-start; padding:0 7px 22px; }
  .app-shell:not(.pos-nav-compact) .smena-pos-logo img { width:157px; height:auto; }
  .app-shell:not(.pos-nav-compact) .brand-copy,.app-shell:not(.pos-nav-compact) .outlet-mini,.app-shell:not(.pos-nav-compact) .user-copy { display:block; }
  .app-shell:not(.pos-nav-compact) .nav-button { justify-content:flex-start; padding:0 12px; }
  .app-shell:not(.pos-nav-compact) .nav-button span { display:inline; }
  .app-shell.pos-nav-compact { --sidebar-width:76px; }
  .app-shell.pos-nav-compact .sidebar { padding:22px 10px 14px; align-items:stretch; }
  .app-shell.pos-nav-compact .smena-pos-brand { align-items:center; padding:0 0 22px; }
  .app-shell.pos-nav-compact .smena-pos-logo img { width:44px; height:44px; }
  .app-shell.pos-nav-compact .brand-copy,.app-shell.pos-nav-compact .outlet-mini,.app-shell.pos-nav-compact .user-copy,.app-shell.pos-nav-compact .nav-button span { display:none; }
  .app-shell.pos-nav-compact .nav-button { justify-content:center; padding:0; min-height:44px; }
  .app-shell.pos-nav-compact .user-mini { justify-content:center; gap:0; padding:8px; }
}
@media(max-width:820px) { .sidebar-toggle { display:none; } }

/* Shift close and saved summaries share the receipt accounting vocabulary. */
.shift-reconciliation { margin-top:14px; }
.shift-accounting-note { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.report-section-body>.shift-accounting-note { grid-column:1/-1; }
.report-discount-detail { display:block; margin-top:10px; color:var(--muted); font-size:12px; line-height:1.6; }
.shift-report-page .detail-row { align-items:flex-start; font-size:14px; line-height:1.5; }
.shift-report-page .detail-row>span { min-width:0; flex:1; }
.shift-report-page .detail-row>strong { max-width:48%; text-align:right; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.shift-history-list { display:grid; }
.shift-history-entry { min-width:0; padding:0 20px; border-top:1px solid var(--line); }
.shift-history-entry:first-child { border-top:0; }
.shift-history-entry>summary { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:86px; padding:16px 0; cursor:pointer; list-style:none; }
.shift-history-entry>summary::-webkit-details-marker { display:none; }
.shift-history-entry>summary>span { min-width:0; }
.shift-history-entry>summary>span:last-child { text-align:right; }
.shift-history-entry strong { font-size:15px; font-variant-numeric:tabular-nums; }
.shift-history-entry small { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.shift-history-entry>summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
.shift-history-entry[open]>.report-grid { padding-bottom:20px; }
@media(max-width:680px) {
  .shift-history-entry { padding-inline:16px; }
  .shift-history-entry>summary { align-items:flex-start; flex-direction:column; gap:10px; }
  .shift-history-entry>summary>span:last-child { width:100%; display:flex; align-items:baseline; justify-content:space-between; gap:12px; text-align:left; }
  .shift-history-entry .detail-row { align-items:flex-start; font-size:13px; }
  .shift-history-entry .detail-row>strong { max-width:50%; text-align:right; overflow-wrap:anywhere; }
  .shift-report-page>.split-grid { grid-template-columns:minmax(0,1fr); }
  .shift-report-page .panel-header { flex-wrap:wrap; gap:14px; }
}
@media(min-width:601px) and (max-width:1000px) {
  .reports-page .table-wrap { overflow:visible; }
  .reports-page .data-table,.reports-page .data-table tbody { display:block; width:100%; }
  .reports-page .data-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .reports-page .data-table tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
  .reports-page .data-table td { display:block; min-width:0; padding:0; border:0; white-space:normal; overflow-wrap:anywhere; font-size:14px; }
  .reports-page .data-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:var(--muted); font-size:12px; line-height:1.5; }
  .reports-page .data-table td:first-child,.reports-page .data-table td[colspan] { grid-column:1/-1; font-size:16px; }
  .reports-page .data-table td:first-child::before,.reports-page .data-table td[colspan]::before { display:none; }
}

/* Cashier notices and audit provenance keep their controls usable on touch. */
.promo-cart-notice{margin:0 16px 12px;padding:12px;border:1px solid var(--border,#dedce8);border-radius:14px;background:var(--accent-soft,#efedfb);font-size:14px;line-height:1.45}.promo-cart-notice p{margin:6px 0 10px}.promo-cart-verification{margin:8px 16px;font-size:13px;color:var(--text-muted,#66636f)}
.audit-business-detail{margin:0 0 8px;max-width:48rem;white-space:normal;overflow-wrap:anywhere}.audit-references{display:flex;flex-wrap:wrap;gap:6px}.audit-reference{min-height:44px;max-width:100%;white-space:normal;text-align:left}.audit-technical{margin-top:8px;font-size:13px}.audit-technical summary{padding:8px 0;cursor:pointer}.audit-technical code{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}.refund-quantity-policy{display:block;grid-column:1/-1;margin-top:6px;color:var(--text-muted,#66636f);font-size:13px;line-height:1.4}.kitchen-refund-note{color:var(--text-muted,#66636f);font-size:13px;line-height:1.4}
@media(max-width:600px){.audit-references{display:grid}.audit-reference{width:100%}.promo-cart-notice{margin-left:12px;margin-right:12px}}

/* Keep business amounts and document actions visible without sideways scrolling. */
@media(max-width:900px){
 .audit-page .table-wrap{overflow:visible}
 .audit-page .data-table{display:block;min-width:0;width:100%;table-layout:fixed}
 .audit-page .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .audit-page .data-table tbody{display:grid;gap:12px;padding:12px}
 .audit-page .data-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;border:1px solid var(--border,#e5e5ed);border-radius:18px;padding:16px;min-width:0}
 .audit-page .data-table td{display:block;border:0;padding:0;white-space:normal;min-width:0;overflow-wrap:anywhere}
 .audit-page .data-table td:nth-child(1),.audit-page .data-table td:nth-child(2),.audit-page .data-table td:nth-child(5){grid-column:1/-1}
 .audit-page .data-table td:nth-child(3)::before,.audit-page .data-table td:nth-child(4)::before{content:attr(data-label);display:block;color:var(--muted,#696973);font-size:13px;line-height:1.4;margin-bottom:4px}
 .audit-page .data-table td:first-child{font-size:13px;color:var(--muted,#696973)}
 .audit-page .audit-references{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 .audit-page .audit-reference{max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
 .audit-page .audit-technical code{display:block;white-space:normal;overflow-wrap:anywhere}
}

.restaurant-addon-action{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:16px;margin:14px 0;border:1px solid var(--border,#e5e5ed);border-radius:18px;background:var(--accent-soft,#f0eefb)}
.restaurant-addon-action p,.inventory-expiry-notice p{margin:6px 0 0;line-height:1.5;font-size:14px;color:var(--muted,#696973)}
.restaurant-addon-action .btn{min-height:44px;flex-shrink:0}
.restaurant-order-banner span{white-space:normal;line-height:1.5}
.pos-addon-summary{display:none}
.inventory-expiry-notice{margin-bottom:16px}
.inventory-expiry-detail{white-space:normal;line-height:1.5}
@media(max-width:640px){.restaurant-addon-action{align-items:stretch;flex-direction:column}.restaurant-addon-action .btn{width:100%}.pos-addon-summary{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px;margin:0 12px 12px;border-radius:14px;background:var(--accent-soft,#f0eefb)}.pos-addon-summary div{min-width:0}.pos-addon-summary strong,.pos-addon-summary span{display:block;white-space:normal;font-size:14px;line-height:1.5}.pos-addon-summary .btn{flex-shrink:0;min-height:44px}}

.register-shift-context{display:grid;gap:6px;line-height:1.5;margin-bottom:20px;overflow-wrap:anywhere}.register-shift-context span{font-size:14px}

/* Sidebar motion: explicit interaction only; the cashier controls the pace. */
.smena-pos-logo{position:relative;width:157px;height:71px;max-width:100%;color:var(--smena-brand)}
.smena-pos-logo .sidebar-wordmark,.smena-pos-logo .sidebar-symbol{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.smena-pos-logo .sidebar-symbol{opacity:0;visibility:hidden}
.sidebar-outline,.sidebar-word-outline{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:0;opacity:0}
.sidebar-outline{stroke-width:1.5}.sidebar-word-outline{stroke-width:4.5}
.sidebar-turn{transform-box:fill-box;transform-origin:50% 50%}
.sidebar-solid,.sidebar-word-solid{fill:currentColor;opacity:1}
.sidebar-nav{position:relative;isolation:isolate}
.sidebar-nav .nav-button{position:relative;z-index:1;transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease}
.sidebar-nav.sidebar-motion-ready .nav-button.active{background:transparent;box-shadow:none}
.sidebar-active-indicator{position:absolute;z-index:0;pointer-events:none;border-radius:12px;background:#fff;box-shadow:0 2px 6px #20212408;transform-origin:top left}
@media(min-width:821px){
  .app-shell{transition:grid-template-columns 240ms cubic-bezier(.2,.75,.25,1)}
  .app-shell .sidebar{transition:width 240ms cubic-bezier(.2,.75,.25,1),padding 240ms cubic-bezier(.2,.75,.25,1)}
  .app-shell .smena-pos-logo{transition:width 240ms cubic-bezier(.2,.75,.25,1),height 240ms cubic-bezier(.2,.75,.25,1)}
  .app-shell .sidebar-wordmark,.app-shell .sidebar-symbol{transition:opacity 150ms ease,visibility 150ms}
  .app-shell .sidebar .brand-copy,.app-shell .sidebar .user-copy,.app-shell .sidebar .outlet-mini,.app-shell .sidebar .nav-button span{display:block;overflow:hidden;transition:opacity 120ms ease,max-width 240ms cubic-bezier(.2,.75,.25,1),max-height 240ms cubic-bezier(.2,.75,.25,1),padding 240ms ease}
  .app-shell .sidebar .brand-copy{max-height:60px;opacity:1}
  .app-shell .sidebar .outlet-mini{max-height:80px;opacity:1}
  .app-shell .sidebar .user-copy{max-width:140px;opacity:1}
  .app-shell .sidebar .nav-button span{max-width:144px;max-height:40px;opacity:1}
  .app-shell .sidebar .nav-button{transition:padding 240ms cubic-bezier(.2,.75,.25,1),gap 240ms ease,color 150ms ease,background-color 150ms ease;}
  .app-shell.pos-nav-compact .smena-pos-logo{width:44px;height:44px}
  .app-shell.pos-nav-compact .sidebar-wordmark{opacity:0;visibility:hidden}
  .app-shell.pos-nav-compact .sidebar-symbol{opacity:1;visibility:visible}
  .app-shell.pos-nav-compact .sidebar .brand-copy,.app-shell.pos-nav-compact .sidebar .outlet-mini{max-height:0;padding-block:0;opacity:0}
  .app-shell.pos-nav-compact .sidebar .user-copy,.app-shell.pos-nav-compact .sidebar .nav-button span{max-width:0;max-height:0;opacity:0}
  .app-shell.pos-nav-compact .sidebar .nav-button{justify-content:flex-start;padding-inline:18px;gap:0}
  .app-shell.pos-nav-compact .sidebar .user-mini{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){
  .app-shell,.app-shell .sidebar,.app-shell .smena-pos-logo,.app-shell .sidebar-wordmark,.app-shell .sidebar-symbol,.app-shell .sidebar .brand-copy,.app-shell .sidebar .user-copy,.app-shell .sidebar .outlet-mini,.app-shell .sidebar .nav-button,.app-shell .sidebar .nav-button span{transition:none}
}

/* Keep the hourly chart scroll inside its card on tablet widths. */
.dashboard-grid > .panel { min-width:0; }

.pos-help-trigger {
  flex:none;
  width:44px;
  min-height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
}
.pos-help-topics { display:grid; gap:8px; }
.pos-help-topics details { border:1px solid var(--line); border-radius:12px; }
.pos-help-topics summary { min-height:44px; padding:12px; font-weight:650; cursor:pointer; }
.pos-help-topics p { margin:0; padding:0 12px 12px; line-height:1.5; color:var(--muted); }

/* Keep intrinsic navigation row heights in Safari's constrained sidebar. */
.app-shell .sidebar .brand{flex:0 0 auto}
.app-shell .sidebar .sidebar-nav{grid-auto-rows:max-content}
.app-shell .sidebar .nav-button{min-width:0;min-height:46px;line-height:1.35;padding-block:10px;overflow-wrap:anywhere}
/* Feedback participates in the dialog flow instead of displacing its body. */
.dialog-shell>.dialog-header,.dialog-shell>.dialog-footer{flex:0 0 auto;min-width:0}
.dialog-shell>.dialog-body{flex:1 1 auto;min-height:0;min-width:0;overscroll-behavior:contain}
.dialog-shell>.dialog-feedback{flex:0 0 auto;min-width:0;max-height:22dvh;overflow:auto;overflow-wrap:anywhere}
.dialog-feedback strong{font-size:14px;line-height:1.45}
.dialog-feedback span{font-size:13px}
.dialog-header>div{min-width:0;overflow-wrap:anywhere}
.promotion-dialog-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);align-items:start;gap:24px}
.promotion-dialog-layout>*{min-width:0}
.promotion-order-summary{position:sticky;top:0;padding:16px;background:var(--panel-2);border:1px solid var(--line);border-radius:16px}
.promotion-order-summary h3{margin:0 0 12px;font-size:16px}
.promotion-order-summary ul{list-style:none;padding:0;margin:0;max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.promotion-order-summary li{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.promotion-order-summary li>div{min-width:0;overflow-wrap:anywhere}
.promotion-order-summary li>span{flex:0 0 auto;font-size:13px;font-weight:650}
.promotion-order-summary li strong{display:block;font-size:14px;line-height:1.4}
.promotion-order-summary li small{display:block;margin-top:4px;font-size:12px;color:var(--muted);line-height:1.4}
.promotion-order-summary dl{margin:14px 0 0}
.promotion-order-summary dl>div{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px}
.promotion-order-summary dd{margin:0;white-space:nowrap}
.promotion-order-total{padding-top:12px;border-top:1px solid var(--line);font-weight:700}
.promotion-order-summary .promo-hint{line-height:1.45}
.topbar-title .pos-workplace-context{font-size:11px;line-height:1.4;color:var(--muted)}
@media(max-width:680px){.promotion-dialog-layout{grid-template-columns:minmax(0,1fr);gap:18px}.promotion-order-summary{position:static}.promotion-order-summary ul{max-height:180px}}
