/* Owner, 02.11.2026: phone layout (mobile.js). Up to 700px: a bottom bar instead of the side menu, the menu as a
   sheet behind „Още“, tables as cards, dialogs as full-width sheets with large buttons. Wider screens: unchanged. */
.mobile-tabbar,.mobile-sheet-backdrop{display:none}
@media (max-width:700px){
  /* Bottom bar (owner's choice, 02.11.2026): a floating white pill with labels; the open section rises above it
     in an orange circle cut out of the page background. */
  .mobile-tabbar{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:40;display:grid;grid-template-columns:repeat(var(--mobile-tabs,5),minmax(0,1fr));gap:2px;padding:6px 6px;background:var(--surface);border:1px solid var(--border-soft);border-radius:var(--radius-pill);box-shadow:0 10px 30px rgba(24,26,36,.16),0 2px 6px rgba(24,26,36,.06)}
  .mobile-tabbar [data-mobile-off],.mobile-tabbar [hidden]{display:none!important}
  .mobile-tabbar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-height:56px;padding:4px 2px 2px;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--text-muted);font:inherit;font-size:var(--fs-label);font-weight:600;line-height:1.1;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .mobile-tabbar button.active{color:var(--accent-text)}
  .mobile-tabbar button:focus-visible{outline:2px solid var(--focus-color);outline-offset:-2px}
  .mobile-tabbar .menu-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;transition:transform .22s var(--ease,ease),box-shadow .22s var(--ease,ease),background-color .22s}
  .mobile-tabbar .menu-icon svg{display:block;width:24px;height:24px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-tabbar .menu-icon .icon-fill{fill:currentColor;fill-opacity:.17}
  /* The open section: a 50px orange circle (the 26px icon plus a 12px ring of the same colour) inside a ring of the
     page background, lifted above the bar. Its layout box stays 26px, so the label does not move. */
  .mobile-tabbar button.active .menu-icon{color:var(--text-on-accent);background:var(--accent);transform:translateY(-22px);box-shadow:0 0 0 12px var(--accent),0 0 0 17px var(--paper),0 12px 22px 12px rgb(var(--accent-rgb) / .28)}
  .mobile-tabbar button.active .icon-fill{fill-opacity:.35}
  /* „Още“ or „Смени“ open: the page tab underneath stays flat. */
  .mobile-tabbar[data-open] button[data-page].active{color:var(--text-muted)}
  .mobile-tabbar[data-open] button[data-page].active .menu-icon{color:inherit;background:transparent;transform:none;box-shadow:none}
  .mobile-tabbar[data-open] button[data-page].active .icon-fill{fill-opacity:.17}
  /* „Смени“ reads as a page like the other sections: full screen, no dimming, the bottom bar on top of it. */
  body.mobile-shifts-page .mobile-tabbar{z-index:101}
  body.mobile-shifts-page .manager-dialog.avkasa-modal-overlay:has(.cash-ui){bottom:calc(76px + env(safe-area-inset-bottom));align-items:stretch;padding:0;background:var(--paper);backdrop-filter:none}
  body.mobile-shifts-page .manager-dialog:has(.cash-ui)>.modal{height:100%;max-height:none;border-radius:0;box-shadow:none;animation:none}
  body.mobile-shifts-page .manager-dialog:has(.cash-ui) .modal-footer{padding-bottom:18px}
  .mobile-tab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.warehouse-login-active .mobile-tabbar,body.warehouse-login-active .warehouse-app .topbar,body.warehouse-login-active .warehouse-app .sidebar{display:none}
  @media (prefers-reduced-motion:reduce){.mobile-tabbar .menu-icon{transition:none}}

  /* Room for the bar under every page; messages stay above it. */
  body .warehouse-app .workspace{padding:14px 12px calc(112px + env(safe-area-inset-bottom))}
  .toast{left:12px;right:12px;bottom:calc(92px + env(safe-area-inset-bottom));max-width:none}
  /* The version line is for the Windows window; a phone browser always loads the current files. */
  .app-release-bar{display:none}

  /* The menu sheet behind „Още“ */
  #mobile-nav-toggle{display:none!important}
  body .warehouse-app .sidebar{position:fixed;left:0;right:0;top:auto;bottom:0;padding-bottom:calc(88px + env(safe-area-inset-bottom));width:auto!important;max-width:none;height:auto;max-height:80vh;overflow-y:auto;z-index:38;border-radius:var(--radius-xl) var(--radius-xl) 0 0;transform:translateY(calc(100% + 80px));transition:transform .22s var(--ease,ease);box-shadow:0 -12px 32px rgba(24,26,36,.18)}
  body .warehouse-app .sidebar.open{transform:translateY(0)}
  body .warehouse-app .sidebar .menu-toggle,body .warehouse-app .sidebar .display-settings-entry{display:none}
  body .warehouse-app .sidebar.open .nav button{min-height:48px;font-size:var(--fs-body)}
  /* The signed-in profile with „Моят ПИН“ and „Изход“ at the bottom of the sheet */
  body .warehouse-app .sidebar.open .signed-user{display:flex;align-items:center;gap:10px}
  body .warehouse-app .sidebar.open .signed-user div{display:block;flex:1 1 auto;min-width:0}
  body .warehouse-app .sidebar.open .signed-user button:not([hidden]){display:grid;place-items:center;min-width:44px;min-height:44px}
  .mobile-sheet-backdrop{position:fixed;inset:0;z-index:37;background:var(--overlay);opacity:0;pointer-events:none;transition:opacity .2s}
  .mobile-sheet-backdrop.open{display:block;opacity:1;pointer-events:auto}
  .mobile-sheet-backdrop:not(.open){display:block}

  /* Top bar: the page name and the connection only; „Работни смени“ / „Моята смяна“ live in the bottom bar. */
  /* Row 1: page name and connection; row 2 (when a page has them): its actions, full width. */
  body .warehouse-app .topbar{display:flex;flex-wrap:wrap;align-items:center;min-height:0;padding:10px 14px;gap:8px;background:var(--paper);border-bottom:1px solid var(--paper-line)}
  /* Owner 09.11.2026 (phone screenshots: „Чакащи“ over the title): the title owns row 1, every status and button goes to row 2. */
  body .warehouse-app .topbar>div:first-of-type{flex:1 1 calc(100% - 52px);min-width:0}
  body .warehouse-app .top-status>*:not(#manager-actions):not(.licence){order:2}
  body .warehouse-app .topbar>:not(div:first-of-type):not(#mobile-nav-toggle):not(.top-status){order:2}
  body .warehouse-app .topbar h1{font-size:var(--fs-section);line-height:1.2}
  body .warehouse-app .topbar p{font-size:var(--fs-secondary);white-space:normal;overflow-wrap:break-word}
  body .warehouse-app .top-status{display:contents}
  body .warehouse-app .top-status .online{flex:0 0 auto;padding:5px 9px;font-size:var(--fs-label)}
  body .warehouse-app .top-status .licence:not([hidden]){order:3;flex:1 1 100%}
  body .warehouse-app #manager-actions{order:4;flex:1 1 100%;display:flex;flex-wrap:wrap;justify-content:stretch;gap:8px}
  body .warehouse-app #manager-actions:empty{display:none}
  body .warehouse-app #manager-actions>*{flex:1 1 auto;min-height:44px}
  body .warehouse-app #cash-shift-button{display:none}

  /* „Наблюдение от разстояние“ and the shift reminder: one compact strip each */
  body .windows-remote-status{margin:8px 12px 0;padding:8px 10px;gap:6px;font-size:var(--fs-secondary)}
  body .windows-remote-status [data-remote-text]{flex:1 1 100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body .windows-remote-status button{width:auto!important;min-height:34px;padding:4px 12px}
  body .cash-start-reminder{margin:8px 12px 0;padding:12px 14px;border-radius:var(--radius-lg)}
  body .cash-start-reminder p{display:none}
  body .cash-start-reminder .cash-start-actions{display:flex;gap:8px}
  body .cash-start-reminder .cash-start-actions button{flex:1 1 0;min-height:44px}

  /* Tables as cards: the first cell is the title, the others „column · value“, actions full width. */
  html body table.m-cards,html body table.m-cards>tbody{display:block;width:100%;min-width:0!important;border:0;background:transparent}
  html body table.m-cards>thead{display:none}
  html body table.m-cards>tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px;height:auto!important;margin:0 0 10px!important;padding:12px 14px!important;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)}
  html body table.m-cards>tbody>tr>td{display:flex!important;align-items:baseline;justify-content:space-between;gap:12px;width:auto!important;min-width:0;height:auto!important;padding:0!important;border:0!important;background:transparent!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35}
  html body table.m-cards>tbody>tr>td:first-child{display:block!important;text-align:left!important}
  html body table.m-cards>tbody>tr>td::before{content:attr(data-m-label);flex:0 1 auto;max-width:48%;color:var(--text-muted);font-size:var(--fs-secondary);font-weight:500;text-align:left}
  html body table.m-cards>tbody>tr>td:first-child{justify-content:flex-start;font-weight:650;text-align:left}
  html body table.m-cards>tbody>tr>td:first-child::before,html body table.m-cards>tbody>tr>td[data-m-label=""]::before{display:none}
  html body table.m-cards>tbody>tr>td[data-m-label=""]:not(:first-child){justify-content:flex-start;flex-wrap:wrap}
  html body table.m-cards>tbody>tr>td:empty{display:none}
  html body table.m-cards>tbody>tr>td[colspan]{justify-content:center;text-align:center}
  html body table.m-cards>tbody>tr>td[colspan]::before{display:none}
  html body table.m-cards>tbody>tr>td .btn,html body table.m-cards>tbody>tr>td>button:not(.remote-badge){min-height:44px}
  html body table.m-cards>tfoot{display:block}
  html body table.m-cards>tfoot>tr{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:10px 14px}
  html body :is([class*="wrap"],[class*="scroll"]):has(>table.m-cards){overflow:visible!important;max-height:none!important;border:0!important;background:transparent!important;box-shadow:none!important}

  /* Отчети: the filters two by two instead of four full rows */
  body .reports-toolbar .card.report-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body .reports-toolbar .card.report-filters>*{min-width:0}
  body .reports-toolbar .report-extra-filters label{min-width:0}
  body .reports-toolbar .reports-range{grid-column:1/-1}

  /* Dialogs as sheets from the bottom, with large buttons that stay in reach */
  body .manager-dialog.avkasa-modal-overlay{align-items:flex-end;padding:0}
  body .manager-dialog>.modal{width:100%;max-width:none!important;max-height:94vh;border-radius:var(--radius-xl) var(--radius-xl) 0 0}
  body .manager-dialog .modal-footer{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)}
  body .manager-dialog .modal-footer>.btn,body .manager-dialog .modal-footer>button{flex:1 1 140px;min-height:48px}
  body .manager-dialog input,body .manager-dialog select,body .manager-dialog textarea{min-height:44px;font-size:max(16px,var(--fs-body))}

  /* Everyday controls: thumb-sized */
  body .warehouse-app .workspace .btn{min-height:44px}
  body .warehouse-app .workspace input:not([type=checkbox]):not([type=radio]),body .warehouse-app .workspace select{min-height:44px;font-size:max(16px,var(--fs-body))}

  /* Owner, 03.11.2026: „бутоните да са истински премиум, никакво разминаване“. One button family on the phone:
     the same height, radius, type and press feel everywhere; the main action carries depth, the others a quiet edge. */
  html body .btn.btn{min-height:48px;padding:11px 18px;border-radius:14px;font-size:var(--fs-body);font-weight:650;letter-spacing:-.005em;line-height:1.15;-webkit-tap-highlight-color:transparent;transition:transform .12s var(--ease,ease),box-shadow .16s var(--ease,ease),background-color .16s,border-color .16s}
  html body .btn.btn:active:not(:disabled){transform:scale(.975)}
  html body .btn.btn:focus-visible{outline:3px solid var(--focus-color);outline-offset:2px}
  html body .btn.btn-primary{border:0;background:linear-gradient(180deg,color-mix(in srgb,var(--btn-primary) 86%,#fff) 0%,var(--btn-primary) 58%);color:var(--btn-primary-text);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 1px 2px rgba(24,26,36,.14),0 8px 18px -8px rgb(var(--accent-rgb) / .7)}
  html body .btn.btn-primary:active:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(24,26,36,.14),0 4px 10px -6px rgb(var(--accent-rgb) / .6)}
  html body .btn.btn-secondary,html body .btn.btn-ghost{border:1px solid var(--border);background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(24,26,36,.06),inset 0 -1px 0 rgba(24,26,36,.04)}
  html body .btn.btn-secondary:active:not(:disabled),html body .btn.btn-ghost:active:not(:disabled){background:var(--surface-3)}
  html body .btn.btn-sm{min-height:44px;padding:9px 16px;border-radius:12px;font-size:var(--fs-secondary)}
  html body .btn.btn:disabled{opacity:.5;box-shadow:none}
  /* Tabs inside a page stay tabs (segmented), not buttons. */
  html body .section-tabs .btn.btn,html body .manager-page .invoice-tabs .btn.btn{min-height:40px;border:0;background:transparent;box-shadow:none;font-weight:600}
  html body .section-tabs .btn.btn:is(.active,[aria-selected="true"],[aria-pressed="true"]),html body .manager-page .invoice-tabs .btn.btn:is(.active,[aria-selected="true"],[aria-pressed="true"]){background:var(--surface);box-shadow:0 1px 3px rgba(24,26,36,.12)}
  html body .section-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body .section-tabs::-webkit-scrollbar{display:none}
  html body .section-tabs>*{flex:0 0 auto;white-space:nowrap}
  /* „Още действия“ on a card or a page: the same edge and height as its neighbour button. */
  html body .row-menu>summary,html body .cash-more>summary{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-weight:650;box-shadow:0 1px 2px rgba(24,26,36,.06);list-style:none;cursor:pointer}
  html body .row-menu>summary::-webkit-details-marker,html body .cash-more>summary::-webkit-details-marker{display:none}
  html body .cash-overview-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  /* The „⌄“ glyph sits under the line; a drawn chevron sits on it. */
  html body .cash-more>summary>span[aria-hidden]{width:8px;height:8px;margin:-4px 2px 0 10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;font-size:0;transform:rotate(45deg)}
  html body .cash-more[open]>summary>span[aria-hidden]{margin-top:4px;transform:rotate(225deg)}
  html body .document-reviews .btn.btn{min-height:44px!important;padding:9px 16px!important;font-size:var(--fs-secondary)!important}
  /* Card actions: one full row at the bottom of every card, the main one wide, „···“ square beside it. */
  html body table.m-cards>tbody>tr>td:has(>.row-actions){display:block!important}
  html body table.m-cards>tbody>tr>td:has(>.row-actions)::before{display:none}
  html body table.m-cards>tbody>tr>td .row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:stretch;gap:8px;width:100%;margin-top:4px}
  html body table.m-cards>tbody>tr>td .row-actions>.btn{flex:1 1 auto}
  html body table.m-cards>tbody>tr>td .row-actions>.row-menu{flex:0 0 auto}
  html body table.m-cards>tbody>tr>td[data-m-label=""]>.btn:only-child{flex:1 1 100%;margin-top:4px}
  /* A page's own actions (top bar): side by side in equal halves. */
  html body .warehouse-app #manager-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
  html body .warehouse-app #manager-actions .btn.btn{padding-inline:12px;white-space:nowrap}
  /* Архив: the document actions as the same full row as on the cards. */
  html body .warehouse-document .archive-row-actions{flex:1 1 100%!important;display:flex;flex-wrap:nowrap;gap:8px;margin-left:0!important}
  html body .warehouse-document .archive-row-actions>.btn{flex:1 1 auto}
  html body .warehouse-document .archive-row-actions>:is(details,.row-menu){flex:0 0 auto}
  /* Работници: the desktop cards indent two cells under the avatar; on the phone every row starts at the card edge. */
  html body .team-table.m-cards>tbody>tr>td{padding:0!important}

  /* Search fields take the whole row; the line under them reads from the left. */
  html body .warehouse-app .workspace :is(.product-controls,.flex-between):has(>.search-bar){flex-wrap:wrap;gap:10px}
  html body .warehouse-app .workspace .search-bar{flex:1 1 100%;width:100%;max-width:none}
  html body .warehouse-app .workspace .product-settings-entry{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}

  /* Доставки: the periods as one row of equal pills that scrolls sideways; the chosen one in the accent. */
  html body .delivery-periods{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none}
  html body .delivery-periods::-webkit-scrollbar{display:none}
  html body .delivery-periods>button:not(.delivery-clear){flex:0 0 auto;min-height:40px;padding:8px 16px!important;border:1px solid var(--border)!important;border-radius:var(--radius-pill)!important;background:var(--surface)!important;color:var(--text-2)!important;font-size:var(--fs-secondary);font-weight:600;white-space:nowrap;box-shadow:0 1px 2px rgba(24,26,36,.05)}
  html body .delivery-periods>button[aria-pressed="true"]:not(.delivery-clear){border-color:var(--accent)!important;background:rgb(var(--accent-rgb) / .1)!important;color:var(--accent-text)!important}
  html body .delivery-periods>.delivery-clear{flex:0 0 auto;align-self:center;white-space:nowrap}

  /* Табло: the date on its own line, the facts as two quiet links, „Обновено … · Обнови“ as one row. */
  html body .dash-facts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
  html body .dash-facts .dash-date{flex:1 1 100%;font-weight:650;color:var(--text)}
  html body .dash-facts .dash-fact::before{content:none!important;display:none!important}
  html body .dash-intro-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}

  /* Заявки: the urgent dot sits on the first line of its label. */
  html body .po-kpi.is-urgent .po-kpi-label{display:flex;align-items:baseline;gap:6px}

  /* Owner, 03.11.2026: „тия карти не са много премиум“ (Табло „За зареждане“, Заявки, Смени). One card language for
     all three: a floating card, the name with its state in one header line, the numbers as quiet tiles, the action
     as a full row. */
  html body{--m-card-shadow:0 1px 2px rgba(24,26,36,.05),0 12px 28px -20px rgba(24,26,36,.45);--m-tile:color-mix(in srgb,var(--surface-3) 55%,var(--surface))}
  /* Every other card (Артикули, Фактури, Доставчици …): the same edge, radius, depth and title. */
  html body table.m-cards>tbody>tr{padding:14px 16px!important;border-color:var(--border-soft)!important;border-radius:18px!important;box-shadow:var(--m-card-shadow)!important}
  html body table.m-cards>tbody>tr>td:first-child{font-size:var(--fs-body);font-weight:700;letter-spacing:-.01em;margin-bottom:2px}
  html body table.m-cards>tbody>tr>td:not(:first-child){font-variant-numeric:tabular-nums}

  /* Табло „За зареждане“: name + state / Налично · Минимум · history */
  html body .dash-stock-table table.m-cards>tbody>tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px!important;grid-template-areas:"name name name" "badge badge badge" "qty min hist";gap:10px 8px!important;padding:14px!important;border-color:var(--border-soft)!important;border-radius:18px!important;box-shadow:var(--m-card-shadow)!important}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(1){grid-area:name;align-self:center}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(1) strong{display:block;font-size:var(--fs-body);font-weight:700;line-height:1.25;letter-spacing:-.01em}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(1) small{display:block;margin-top:3px;color:var(--text-muted);font-size:var(--fs-secondary);font-weight:500}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(4){grid-area:badge;justify-content:flex-start!important;margin-top:-4px}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(4)::before,html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(5)::before{display:none}
  html body .dash-stock-table table.m-cards>tbody>tr>td:is(:nth-child(2),:nth-child(3)){flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;padding:10px 12px!important;border-radius:12px;background:var(--m-tile)!important;font-size:var(--fs-section);font-weight:700;font-variant-numeric:tabular-nums;text-align:left!important}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(2){grid-area:qty}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(3){grid-area:min;color:var(--text-2)}
  html body .dash-stock-table table.m-cards>tbody>tr>td:is(:nth-child(2),:nth-child(3))::before{max-width:none;font-size:var(--fs-label);font-weight:600;letter-spacing:.02em}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(5){grid-area:hist;display:flex!important;justify-content:flex-end!important;align-items:stretch!important}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(5) .dash-history{display:grid;place-items:center;width:48px;height:100%;min-height:48px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text-2);box-shadow:0 1px 2px rgba(24,26,36,.06)}
  html body .dash-stock-table table.m-cards>tbody>tr>td:nth-child(5) .dash-history svg{width:20px;height:20px}
  html body .dash-stock-table .dash-badge{padding:5px 10px;border-radius:var(--radius-pill);font-size:var(--fs-secondary);font-weight:650}

  /* Заявки (план по доставчик): each article its own card; the urgent one marked on its left edge. */
  html body .po-supplier-card .po-plan-table tbody{display:flex!important;flex-direction:column;gap:10px;padding:10px 0}
  html body .po-supplier-card .po-plan-table tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;padding:14px!important;border:1px solid var(--border-soft)!important;border-radius:18px;background:var(--surface);box-shadow:var(--m-card-shadow)}
  html body .po-supplier-card .po-plan-table tbody>tr.po-row-urgent{box-shadow:inset 4px 0 var(--danger-solid),var(--m-card-shadow)}
  html body .po-supplier-card .po-plan-table tbody>tr>td{box-shadow:none!important;background:transparent!important}
  html body .po-supplier-card .po-plan-table td.po-col-check{top:14px!important;right:14px!important}
  html body .po-supplier-card .po-plan-table td.po-col-check input{width:24px;height:24px;accent-color:var(--accent)}
  html body .po-supplier-card .po-plan-table td.po-col-item{padding-right:36px!important}
  html body .po-supplier-card .po-plan-table td.po-col-item strong{display:block;font-size:var(--fs-body);font-weight:700;line-height:1.25;letter-spacing:-.01em}
  html body .po-supplier-card .po-plan-table td.po-col-item small{display:block;margin-top:4px;color:var(--text-muted);font-size:var(--fs-secondary)}
  html body .po-supplier-card .po-plan-table td.po-col-item .po-badges{margin-top:6px}
  html body .po-supplier-card .po-plan-table td.po-num{padding:10px 12px!important;border-radius:12px;background:var(--m-tile)!important;font-variant-numeric:tabular-nums}
  html body .po-supplier-card .po-plan-table td.po-num::before{margin-bottom:2px!important;font-size:var(--fs-label)!important;font-weight:600;letter-spacing:.02em}
  html body .po-supplier-card .po-plan-table td.po-num>span:first-of-type{font-size:var(--fs-section);font-weight:700}
  html body .po-supplier-card .po-plan-table td.po-num small{font-size:var(--fs-label);color:var(--text-muted)}
  html body .po-supplier-card .po-plan-table td.po-col-order{background:rgb(var(--accent-rgb) / .08)!important;box-shadow:inset 0 0 0 1px rgb(var(--accent-rgb) / .25)!important}
  html body .po-supplier-card .po-plan-table td.po-col-order .po-qty{display:flex;align-items:center;gap:6px;width:100%}
  html body .po-supplier-card .po-plan-table td.po-col-order .po-qty input{flex:1 1 auto;min-width:0;min-height:44px;border-radius:10px;font-weight:700;text-align:right}
  html body .po-supplier-card .po-plan-table td.po-col-action{grid-column:1/-1}
  html body .po-supplier-card .po-plan-table .po-row-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:var(--fs-secondary);font-weight:650;box-shadow:0 1px 2px rgba(24,26,36,.06)}

  /* Работни смени: the person and the state in the header, four amounts as tiles, the action as a full row. */
  html body .cash-management-table tbody{display:flex!important;flex-direction:column;gap:10px;padding:4px 0 10px}
  html body .cash-management-table tbody>tr{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:14px!important;border:1px solid var(--border-soft)!important;border-radius:18px;background:var(--surface);box-shadow:var(--m-card-shadow)}
  html body .cash-management-table tbody>tr.cash-row-pending{box-shadow:inset 4px 0 var(--accent),var(--m-card-shadow)}
  html body .cash-management-table tbody>tr>td:first-child{grid-column:1!important;align-self:center}
  html body .cash-management-table tbody>tr>td:nth-child(2){grid-column:2!important;justify-self:end;align-self:center}
  html body .cash-management-table tbody>tr>td:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6)){padding:10px 12px!important;border-radius:12px;background:var(--m-tile)!important;font-size:var(--fs-body);font-weight:650;font-variant-numeric:tabular-nums}
  html body .cash-management-table tbody>tr>td:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6))::before{margin-bottom:2px;font-size:var(--fs-label);font-weight:600;letter-spacing:.02em;line-height:1.25}
  html body .cash-management-table tbody>tr>td small{display:block;margin-top:2px;font-size:var(--fs-label);font-weight:500;color:var(--text-muted)}
  html body .cash-management-table tbody>tr>td.cash-shift-sum{grid-column:1/-1!important;padding:10px 12px!important;border:1px dashed var(--border)!important;border-radius:12px;font-size:var(--fs-label)}
  html body .cash-management-table tbody>tr>td.cash-shift-sum::before{margin-bottom:4px;font-size:var(--fs-label);font-weight:600;letter-spacing:.02em}
  html body .cash-management-table tbody>tr>td.cash-row-action{grid-column:1/-1!important;text-align:left}
  html body .cash-management-table tbody>tr>td.cash-row-action>.btn{width:100%;font-size:var(--fs-body)!important;padding:11px 18px!important}
  html body .cash-management-table .cash-state{padding:5px 10px;border-radius:var(--radius-pill);font-size:var(--fs-secondary);font-weight:650}

  /* Owner, 03.11.2026: „пин входа не е премиум“. The PIN screen as one calm sheet: the people as large tiles with
     a clear choice, a big PIN field and a deep main button. */
  html body .warehouse-login-screen{padding:20px 14px calc(20px + env(safe-area-inset-bottom));isolation:isolate}
  /* The same living background as the ABCA login page: a slow warm aurora and a light under the finger
     (mobile.js sets --gx/--gy while this screen is open). */
  html body .warehouse-login-screen::before{inset:-25%;z-index:-2;background:radial-gradient(32% 28% at 22% 24%,rgb(var(--accent-rgb) / .62),transparent 70%),radial-gradient(28% 26% at 80% 30%,rgb(var(--accent-rgb) / .5),transparent 70%),radial-gradient(38% 32% at 55% 86%,rgba(120,80,175,.42),transparent 70%),radial-gradient(26% 22% at 12% 82%,rgba(63,140,100,.34),transparent 70%);background-size:auto;-webkit-mask-image:none;mask-image:none;filter:blur(34px);animation:login-aurora 22s ease-in-out infinite alternate}
  html body .warehouse-login-screen::after{inset:0;left:0;bottom:0;width:auto;height:auto;z-index:-1;opacity:1;background:radial-gradient(260px 260px at var(--gx,50%) var(--gy,22%),rgb(var(--accent-rgb) / .32),transparent 70%),radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.4px) 0 0/22px 22px;-webkit-mask-image:none;mask-image:none}
  @keyframes login-aurora{0%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}50%{transform:translate3d(5%,-4%,0) rotate(9deg) scale(1.1)}100%{transform:translate3d(-5%,4%,0) rotate(-7deg) scale(1.04)}}
  @media (prefers-reduced-motion:reduce){html body .warehouse-login-screen::before{animation:none}}
  html body .warehouse-login-box{background:color-mix(in srgb,var(--paper) 94%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);border:1px solid rgba(255,255,255,.5)}
  html body .warehouse-login-box{width:100%;max-width:440px;padding:28px 20px 22px;border-radius:28px;box-shadow:0 30px 60px -24px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.12)}
  html body .warehouse-login-brand h1{margin-top:14px;font-size:var(--fs-page);font-weight:750;letter-spacing:-.02em}
  html body .warehouse-login-brand p{margin-top:6px;font-size:var(--fs-secondary);color:var(--text-muted)}
  html body .warehouse-user-pick{display:flex;flex-direction:column;gap:10px;margin-top:22px}
  html body .warehouse-user-pick-btn{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:68px;padding:12px 44px 12px 14px;border:1px solid var(--border-soft);border-radius:18px;background:var(--surface);text-align:left;box-shadow:0 1px 2px rgba(24,26,36,.05),0 10px 24px -18px rgba(24,26,36,.4);transition:transform .12s var(--ease,ease),border-color .16s,box-shadow .16s,background-color .16s;-webkit-tap-highlight-color:transparent}
  html body .warehouse-user-pick-btn:active{transform:scale(.985)}
  html body .warehouse-user-pick-btn::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted);transform:translateY(-50%) rotate(-45deg)}
  html body .warehouse-user-pick-btn.selected{border-color:var(--accent);background:rgb(var(--accent-rgb) / .07);box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .18),0 10px 24px -18px rgb(var(--accent-rgb) / .6)}
  html body .warehouse-user-pick-btn.selected::after{right:16px;width:12px;height:7px;border:0;border-left:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);transform:translateY(-70%) rotate(-45deg)}
  html body .warehouse-user-avatar{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 80%,#fff),var(--accent));color:var(--text-on-accent);font-weight:750;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 10px -4px rgb(var(--accent-rgb) / .6)}
  html body .warehouse-user-pick-btn strong{display:block;font-size:var(--fs-body);font-weight:700;line-height:1.25;letter-spacing:-.01em}
  html body .warehouse-user-pick-btn small{display:block;margin-top:2px;font-size:var(--fs-secondary);color:var(--text-muted)}
  html body .warehouse-login-pin-area{margin-top:20px}
  html body .warehouse-login-pin-area label{display:block;margin-bottom:8px;font-size:var(--fs-secondary);font-weight:650;color:var(--text-2)}
  html body #worker-pin-input{width:100%;height:60px;padding:0 16px;border:1.5px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);font-size:var(--fs-figure);font-weight:700;letter-spacing:.5em;text-align:center;text-indent:.5em;box-shadow:inset 0 1px 2px rgba(24,26,36,.06);transition:border-color .16s,box-shadow .16s}
  html body #worker-pin-input::placeholder{color:var(--text-muted);opacity:.55}
  html body #worker-pin-input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 4px rgb(var(--accent-rgb) / .18)}
  html body .warehouse-login-pin-area .warehouse-primary{width:100%;min-height:56px;margin-top:14px;border:0;border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--btn-primary) 86%,#fff) 0%,var(--btn-primary) 58%);color:var(--btn-primary-text);font-size:var(--fs-body);font-weight:700;letter-spacing:.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 1px 2px rgba(24,26,36,.14),0 12px 24px -10px rgb(var(--accent-rgb) / .75);transition:transform .12s var(--ease,ease)}
  html body .warehouse-login-pin-area .warehouse-primary:active{transform:scale(.98)}
  html body .warehouse-login-abca{display:flex;width:fit-content;align-items:center;justify-content:center;min-height:40px;margin:16px auto 0;padding:0 16px;border:1px solid var(--border-soft);border-radius:var(--radius-pill);color:var(--text-2);font-size:var(--fs-secondary);font-weight:600;text-decoration:none}
}
