﻿:root { color-scheme: light; font-family: system-ui, sans-serif; color: #0f172a; background: #f1f5f9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--aireva-blue); }
.wh-wrap { width: min(100%, 80rem); margin: auto; padding-inline: clamp(1rem, 3vw, 1.5rem); }
.wh-top { position: sticky; top: 0; z-index: 2; background: var(--aireva-header); color: #fff; border-bottom: 1px solid var(--aireva-border); box-shadow: 0 4px 8px #0f172a24; }
.wh-top-inner, .wh-heading, .wh-account, .wh-actions, .wh-brand, .wh-selectors, .wh-overview-side, .wh-toolbar, .wh-dialog-head { display: flex; align-items: center; gap: .65rem; }
.wh-top-inner, .wh-heading, .wh-account, .wh-actions, .wh-toolbar, .wh-selectors { flex-wrap: wrap; }
.wh-top-inner, .wh-heading, .wh-dialog-head, .wh-toolbar { justify-content: space-between; }
.wh-top-inner { padding-block: .75rem; }
.wh-brand { flex: 0 0 auto; }
.wh-brand strong { font-size: 1.125rem; letter-spacing: -.02em; }
.wh-brand p { color: #94a3b8; font-size: .75rem; }
.wh-top a { color: #e2e8f0; font-weight: 650; }
.wh-account { min-width: 0; padding: .25rem .45rem; background: var(--aireva-surface); border: 1px solid var(--aireva-border); border-radius: .75rem; color: #cbd5e1; font-size: .75rem; }
.wh-role { padding: .35rem .6rem; border-radius: .5rem; font-weight: 700; background: var(--aireva-blue); color: white; }
.wh-role[data-role=storekeeper] { background: #047857; }
.wh-role[data-role=subcontractor] { background: var(--aireva-tint-border); color: var(--aireva-ink); }
.wh-subcontractor { border-top: 1px solid var(--aireva-border); padding-block: .6rem; color: #e2e8f0; font-size: .8rem; }
.wh-subcontractor strong { color: var(--aireva-tint-border); margin-right: .4rem; }
.wh-main { padding-block: 1.5rem 3rem; }
h1, h2, h3, p { margin-block: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
.wh-eyebrow, .wh-muted, #status { color: #475569; }
.wh-eyebrow { margin-bottom: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#status:not(:empty) { margin-block: .85rem; }
#status[data-error] { color: #9f1239; font-weight: 600; }
.wh-fields, .wh-filters, .wh-metrics { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.wh-selectors label { flex: 1 1 8rem; max-width: 15rem; }
.wh-selectors { flex: 1 1 18rem; }
.wh-overview { margin-bottom: 1.25rem; }
.wh-overview-side { flex-wrap: wrap; }
.wh-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-metric { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .55rem .85rem; }
.wh-metric span { display: block; color: #475569; font-size: .75rem; }
.wh-metric strong { display: block; font-size: 1.125rem; }
.wh-metric[data-tone=amber] { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.wh-metric[data-tone=indigo] { background: var(--aireva-tint); border-color: var(--aireva-tint-border); color: var(--aireva-ink); }
.wh-metric[data-tone=green] { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
.wh-metric { font-variant-numeric: tabular-nums; }
button.wh-metric { display: block; text-align: left; }
button.wh-metric:hover { border-color: #a16207; }
button.wh-metric:hover strong { text-decoration: underline; }
label { display: grid; gap: .25rem; min-width: 0; font-weight: 600; font-size: .875rem; }
input, select, button { font: inherit; min-height: 44px; }
input:not([type=checkbox]), select { width: 100%; border-radius: .65rem; border: 1px solid #cbd5e1; background: white; padding: .45rem .65rem; color: #0f172a; font-size: max(1rem, 16px); }
.wh-top select, .wh-top button:not(.wh-accent) { background: var(--aireva-surface); border-color: var(--aireva-border); color: white; }
.wh-top button { padding-inline: .55rem; }
button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; border: 1px solid #cbd5e1; border-radius: .65rem; padding: .45rem .85rem; background: #fff; color: #0f172a; font-size: .875rem; font-weight: 650; }
button:hover { background: #f1f5f9; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--aireva-focus); outline-offset: 2px; }
.wh-primary, .wh-accent { background: var(--aireva-blue); border-color: var(--aireva-blue); color: white; }
.wh-primary:hover, .wh-accent:hover { background: var(--aireva-blue-hover); }
.wh-top .wh-accent { background: var(--aireva-tint-border); border-color: var(--aireva-tint-border); color: var(--aireva-ink); }
.wh-top .wh-accent:hover { background: var(--aireva-tint); }
.wh-green { background: #047857; border-color: #047857; color: #fff; }
.wh-green:hover { background: #065f46; }
.wh-tabs { display: flex; gap: .35rem; overflow-x: auto; margin-top: 1rem; padding: .85rem .15rem .25rem; border-top: 1px solid #f1f5f9; }
.wh-tabs button { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: .75rem; color: #475569; }
.wh-tabs button[aria-pressed=true] { background: var(--aireva-graphite); color: white; }
.wh-card, .wh-dialog { border: 1px solid #e2e8f0; background: white; border-radius: 1rem; padding: 1rem; min-width: 0; box-shadow: 0 1px 2px #02061710; }
.wh-dialog { width: min(31rem, calc(100% - 2rem)); padding: 1.25rem; max-height: calc(100dvh - 2rem); }
.wh-dialog::backdrop { background: #02061799; backdrop-filter: blur(2px); }
.wh-dialog h2 { font-size: 1.125rem; }
.wh-dialog-feedback:not(:empty) { margin-top: .65rem; color: #9f1239; font-size: .875rem; }
.wh-stack, .wh-card form, .wh-dialog form { display: grid; gap: .75rem; min-width: 0; }
.wh-card form, .wh-dialog form { margin-top: .75rem; }
.wh-card form > button, .wh-dialog form > button { justify-self: start; }
.wh-categories-dialog { width: min(36rem, calc(100% - 2rem)); }
.wh-category-list { margin: .6rem 0; padding: 0; list-style: none; }
.wh-category-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem .8rem; padding: .65rem 0; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.wh-category-list li > :is(form, .wh-stack) { width: 100%; margin: 0; }
.wh-category-list p, .wh-categories-dialog > .wh-muted { font-size: .85rem; }
.wh-category-message:not(:empty) { margin-top: .65rem; color: #065f46; font-size: .875rem; }
.wh-toolbar .wh-filters { flex: 1 1 19rem; max-width: 34rem; }
.wh-stock-quick { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .65rem; border-top: 1px solid #e2e8f0; }
.wh-stock-choices { display: flex; flex-wrap: wrap; gap: .35rem; }
.wh-stock-choices button { padding-inline: .55rem; font-size: .8rem; }
.wh-stock-choices button[aria-pressed=true] { background: var(--aireva-tint); border-color: var(--aireva-focus); color: var(--aireva-ink); }
.wh-stock-filter-count { padding: .05rem .35rem; border-radius: 1rem; background: #eef2f6; color: #334155; font-variant-numeric: tabular-nums; }
[aria-pressed=true] > .wh-stock-filter-count { background: #fff; }
.wh-stock-count { font-size: .8rem; font-variant-numeric: tabular-nums; }
.wh-stock-table .wh-number { font-variant-numeric: tabular-nums; }
.wh-stock-table .wh-card-edit .wh-actions { gap: .35rem; }
.wh-stock-table .wh-card-edit button { padding-inline: .6rem; }
@media (min-width: 39.001rem) {
  .wh-stock-table :is(th, td) { padding: .52rem .6rem; }
  .wh-stock-table .wh-card-edit .wh-actions { justify-content: flex-end; flex-wrap: nowrap; }
  .wh-stock-table .wh-card-edit button { min-width: 44px; }
  .wh-row-action-label { display: none; }
}
@media (pointer: fine) and (min-width: 48rem) {
  .wh-stock-table .wh-card-edit button, .wh-stock-choices button { min-height: 36px; }
}
summary { cursor: pointer; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.wh-scroll { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
th, td { border-bottom: 1px solid #f1f5f9; vertical-align: middle; padding: .8rem .9rem; }
th { color: #475569; background: #f8fafc; border-bottom-color: #e2e8f0; font-size: .72rem; text-transform: uppercase; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-order=selected] { background: var(--aireva-tint); }
tbody tr[data-order=exceeds] { background: #fef2f2; }
.wh-number { text-align: right; white-space: nowrap; }
.wh-name { overflow-wrap: anywhere; min-width: 8rem; }
.wh-qty { min-width: 5.5rem; max-width: 9rem; }
.wh-qty input { text-align: right; }
.wh-entries { margin: .6rem 0; padding-inline-start: 1.2rem; }
.wh-history-list .wh-entries { margin: 0; padding-inline-start: 1rem; min-width: 9rem; }
.wh-history-list td { vertical-align: top; }
.wh-history-details > summary { width: fit-content; color: #214e65; font-weight: 650; cursor: pointer; }
.wh-history-details[open] > summary { margin-bottom: .35rem; }
.wh-receipt-history a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.wh-order-reference { white-space: nowrap; }
.wh-order-actor { margin-top: .2rem; font-size: .75rem; }
.wh-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.wh-pager > span { font-size: .8125rem; }
.wh-tag { display: inline-block; padding: .16rem .5rem; border-radius: 1rem; color: var(--aireva-ink); background: var(--aireva-tint); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.wh-muted .wh-tag { margin-left: .4rem; }
.wh-tag[data-state=issued], .wh-tag[data-state=green] { color: #14532d; background: #dcfce7; }
.wh-tag[data-state=cancelled], .wh-tag[data-state=category] { color: #475569; background: #f1f5f9; }
.wh-tag[data-state=category] { border-radius: .35rem; border: 1px solid #e2e8f0; }
.wh-tag[data-state=pending], .wh-tag[data-state=amber] { color: #92400e; background: #fef3c7; }
.wh-tag[data-state=red] { color: #991b1b; background: #fee2e2; }
.wh-tab-count { padding: .15rem .5rem; border-radius: 1rem; background: #f59e0b; color: #020617; font-size: .75rem; }
.wh-check { display: flex; align-items: center; gap: .35rem; }
.wh-check input { min-height: auto; }
.wh-icon { display: block; width: 1rem; height: 1rem; flex: none; }
.wh-primary.wh-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.wh-primary.wh-danger:hover { background: #991b1b; border-color: #991b1b; }
[data-icon] { display: inline-grid; place-items: center; }
.wh-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wh-mobile-menu, .wh-mobile-nav, .wh-mobile-action, .wh-mobile-step, .wh-card-label, .wh-metrics-toggle { display: none; }
@media (max-width: 48rem) {
  .wh-top { position: static; }
  .wh-wrap { padding-inline: .8rem; }
  .wh-card { padding: .75rem; }
  .wh-top-inner { align-items: flex-start; }
  .wh-selectors, .wh-overview-side, .wh-metrics { width: 100%; }
  .wh-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .wh-overview-side { display: contents; }
  .wh-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-metrics { grid-column: 1 / -1; grid-row: 2; }
  #refresh { grid-column: 2; grid-row: 1; }
  .wh-selectors label { max-width: none; }
  .wh-selectors label:first-child { flex-grow: 1.8; }
  th, td { padding-inline: .6rem; }
}

@media (max-width: 39rem) {
  :root { --wh-bottom-inset: env(safe-area-inset-bottom, 0px); --wh-nav-space: calc(4.5rem + var(--wh-bottom-inset)); }
  html { scroll-padding-top: 8rem; scroll-padding-bottom: calc(var(--wh-nav-space) + 4.75rem); }
  .wh-wrap { padding-inline: max(.8rem, env(safe-area-inset-left)); }
  .wh-top { position: sticky; padding-top: env(safe-area-inset-top); }
  .wh-top-inner { row-gap: .5rem; align-items: center; padding-block: .45rem .55rem; }
  .wh-brand p, .wh-account, .wh-new-label, #tabs { display: none; }
  .wh-brand strong { font-size: 1rem; }
  .wh-brand .aireva-logo { width: 2.75rem; height: 2.5rem; border-radius: .5rem; }
  .wh-mobile-menu { display: inline-flex; width: 44px; padding: 0; }
  .wh-mobile-menu svg { width: 1.3rem; height: 1.3rem; }
  .wh-selectors { flex: 1 0 100%; gap: .4rem; flex-wrap: nowrap; }
  .wh-selectors label { flex: 1 1 0; }
  .wh-selectors label:first-child { flex-grow: 1.35; }
  .wh-selectors select { padding-inline: .45rem; }
  #newWarehouse { flex: 0 0 44px; padding: 0; }
  .wh-subcontractor { padding-block: .4rem; }
  .wh-main { padding-block: .8rem calc(var(--wh-nav-space) + 1rem); }
  .wh-overview { margin-bottom: .75rem; }
  .wh-heading { grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; }
  .wh-eyebrow { font-size: .68rem; }
  .wh-metrics { gap: .35rem; }
  .wh-overview:not([data-show-metrics]) .wh-metrics { display: none; }
  .wh-metrics-toggle { display: inline-flex; grid-column: 2; grid-row: 1; width: 44px; padding: 0; }
  .wh-metrics-toggle[aria-expanded=true] { background: var(--aireva-tint); border-color: var(--aireva-tint-border); color: var(--aireva-ink); }
  #refresh { grid-column: 3; width: 44px; padding: 0; }
  .wh-metric { padding: .35rem .5rem; border-radius: .55rem; }
  .wh-metric span { font-size: .7rem; }
  .wh-metric strong { font-size: .95rem; }
  #panel { scroll-margin-top: .75rem; }
  .wh-mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    align-items: stretch;
    padding: .35rem max(.45rem, env(safe-area-inset-right)) calc(.35rem + var(--wh-bottom-inset)) max(.45rem, env(safe-area-inset-left));
    min-height: var(--wh-nav-space);
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -7px 22px #0f172a12;
  }
  .wh-mobile-nav button {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    flex-direction: column;
    gap: .25rem;
    border: 0;
    padding: .3rem .1rem;
    font-size: .69rem;
    color: #475569;
  }
  .wh-mobile-nav .wh-icon { width: 1.25rem; height: 1.25rem; }
  .wh-mobile-nav button[aria-pressed=true] { color: var(--aireva-ink); background: var(--aireva-tint); }
  .wh-mobile-nav .wh-tab-count { position: absolute; top: .15rem; left: calc(50% + .45rem); padding: .05rem .25rem; font-size: .625rem; }
  .wh-menu-sheet { margin: auto 0 0; inset: auto 0 0; width: 100%; max-width: none; max-height: 85dvh; border-radius: 1rem 1rem 0 0; padding-bottom: calc(1rem + var(--wh-bottom-inset)); }
  .wh-sheet-identity { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-block: .65rem; overflow-wrap: anywhere; }
  .wh-sheet-links { display: grid; gap: .35rem; margin-top: .45rem; }
  .wh-sheet-links button, .wh-sheet-links a { justify-content: flex-start; text-align: left; width: 100%; }
  .wh-sheet-links button[aria-pressed=true] { background: var(--aireva-tint); border-color: var(--aireva-tint-border); color: var(--aireva-ink); }
  .wh-sheet-links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: .45rem .85rem; border: 1px solid #cbd5e1; border-radius: .65rem; font-size: .875rem; font-weight: 650; }
  .wh-toolbar, .wh-filters, .wh-fields { gap: .55rem; }
  .wh-scroll { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .wh-scroll table, .wh-scroll tbody { display: block; }
  .wh-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wh-scroll tbody { display: grid; gap: .6rem; }
  .wh-scroll tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .7rem; padding: .7rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: white; }
  .wh-scroll tbody tr[data-order=selected] { background: var(--aireva-tint); border-color: var(--aireva-tint-border); }
  .wh-scroll tbody tr[data-order=exceeds] { background: #fef2f2; border-color: #fecaca; }
  .wh-scroll td { min-width: 0; padding: 0; border: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .wh-card-label { display: block; font-size: .7rem; color: #475569; margin-bottom: .1rem; }
  .wh-card-title { grid-column: 1 / -1; grid-row: 1; font-size: 1rem; font-weight: 700; }
  .wh-card-title .wh-card-label { display: none; }
  .wh-card-quantity { grid-column: 1 / -1; }
  .wh-history-list td:nth-last-child(-n+2) { grid-column: 1 / -1; }
  .wh-card-edit { grid-column: 1 / -1; }
  .wh-card-edit .wh-card-label { display: none; }
  .wh-qty { display: flex; align-items: center; gap: .4rem; max-width: none; }
  .wh-qty input { width: min(100%, 7rem); }
  .wh-mobile-step { display: inline-flex; width: 44px; min-width: 44px; padding: .3rem; }
  .wh-desktop-submit { display: none; }
  .wh-mobile-action {
    position: sticky;
    z-index: 3;
    bottom: var(--wh-nav-space);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    box-shadow: 0 -3px 12px #0f172a15;
  }
  .wh-mobile-action:not([data-has-positions]) { display: none; }
  .wh-action-count { color: #475569; font-size: .75rem; }
}

@media (max-width: 39rem) and (max-height: 30rem) {
  body:has(.wh-qty input:focus) .wh-top,
  body:has(.wh-qty input:focus) .wh-mobile-action { position: static; }
  body:has(.wh-qty input:focus) .wh-mobile-nav { display: none; }
}

.dashboard-embedded { --wh-nav-space: 0px; }
.dashboard-embedded :is(.wh-account, #selectors, #mobileMenuButton, #tabs, #mobileTabs) { display: none; }
.dashboard-embedded .wh-top-inner { min-height: 3.5rem; }
.dashboard-embedded .wh-top-inner { display: none; }
.dashboard-embedded .wh-top:not(:has(#subcontractorBar:not([hidden]))) { display: none; }
.wh-history-dialog {
  box-sizing: border-box;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 27rem);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-radius: .85rem 0 0 .85rem;
  overflow: hidden;
}
.wh-history-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; }
.wh-history-dialog .wh-dialog-head { padding-bottom: .55rem; border-bottom: 1px solid #e2e8f0; }
.wh-history-dialog .wh-dialog-head button { flex: 0 0 44px; padding: 0; }
.wh-history-content { overflow: auto; overscroll-behavior: contain; }
.wh-history-content > p { font-size: .85rem; }
.wh-movement-list { display: grid; gap: .8rem; margin: .75rem 0; padding: 0 0 0 .6rem; list-style: none; }
.wh-movement { position: relative; padding-left: .9rem; border-left: 2px solid #d9e6ee; }
.wh-movement::before { content: ''; position: absolute; top: .38rem; left: -.36rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--aireva-blue); }
.wh-movement[data-kind=issue]::before { background: #a16207; }
.wh-movement[data-kind=receipt]::before, .wh-movement[data-kind=return]::before { background: #047857; }
.wh-movement-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem .6rem; }
.wh-movement-quantity { font-weight: 650; font-variant-numeric: tabular-nums; }
.wh-movement > p { margin-top: .2rem; font-size: .8rem; }
html:has(.wh-history-dialog[open]) { overflow: hidden; }
@media (max-width: 27rem) {
  .wh-history-dialog { border-radius: 0; }
}
.wh-filter-disclosure summary { min-height: 44px; padding: .55rem .75rem; border: 1px solid #d6e1e8; border-radius: .55rem; color: var(--aireva-ink); cursor: pointer; }
.dashboard-phone .wh-top-inner { display: none; }
.dashboard-phone .wh-top:not(:has(#subcontractorBar:not([hidden]))) { display: none; }
.dashboard-phone .wh-main { padding-block-start: .55rem; }
.dashboard-phone .wh-history-details > summary { display: list-item; min-height: 44px; align-content: center; }

/* ---- Patogumo pakeitimai (2026-11) ---- */
.wh-metric[data-tone=red] { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
@media (min-width: 48.01rem) { .wh-metrics { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(8.5rem, 11rem); } }
.wh-dialog textarea, dialog textarea { font: inherit; }
.wh-tag[data-state=category] { text-transform: none; letter-spacing: 0; }
.wh-material-title { display: grid; gap: .1rem; }
.wh-category { display: block; color: #64748b; font-size: .78rem; font-weight: 500; }
.wh-free { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.wh-link { min-height: auto; padding: 0; border: 0; background: none; color: var(--aireva-blue); font-weight: 600; text-decoration: underline; text-align: left; }
.wh-order-note { margin: .3rem 0 0; color: #334155; font-style: italic; }

/* Užsakymas su krepšeliu */
.wh-order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.wh-order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .3rem 1rem; padding: .6rem .8rem;
  border: 1px solid #e2e8f0; border-radius: .7rem; background: #fff; }
.wh-order-item[data-selected] { background: var(--aireva-tint); border-color: var(--aireva-tint-border); }
.wh-order-info { min-width: 0; }
.wh-order-item .wh-qty { display: flex; align-items: center; gap: .3rem; max-width: none; }
.wh-order-item .wh-qty input { width: 5.5rem; }
.wh-order-item .wh-mobile-step { display: inline-flex; width: 38px; min-width: 38px; min-height: 38px; padding: .25rem; }
.wh-unit { color: #64748b; font-size: .82rem; min-width: 2.5rem; }
.wh-order-hint { grid-column: 1 / -1; margin: 0; color: var(--aireva-ink); font-size: .82rem; font-weight: 600; }
.wh-order-hint:empty { display: none; }
.wh-cart-bar { position: sticky; bottom: .5rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; box-shadow: 0 -3px 14px #0f172a14; }
.wh-cart-bar[data-active] { border-color: var(--aireva-tint-border); }
.wh-cart-summary { color: #334155; font-size: .9rem; font-weight: 600; }

/* Priėmimas pagal važtaraštį */
.wh-document-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.wh-document-pick input[type=file] { max-width: 100%; }
.wh-camera { display: none; }
.wh-receipt-adder { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.wh-receipt-adder > label { flex: 1 1 18rem; }
.wh-suggestions { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: grid; gap: .25rem; }
.wh-suggestions button { width: 100%; justify-content: space-between; text-align: left; font-weight: 600; }
.wh-receipt-lines { display: grid; gap: .4rem; }
.wh-receipt-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; padding: .55rem .75rem;
  border: 1px solid var(--aireva-tint-border); border-radius: .7rem; background: var(--aireva-tint); }
.wh-receipt-line .wh-qty { display: flex; align-items: center; gap: .35rem; max-width: none; }
.wh-receipt-line .wh-qty input { width: 6rem; }

/* Veiksmų žurnalas */
.wh-events { display: grid; gap: .35rem; }
.wh-events-day { margin: .6rem 0 .1rem; color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.wh-event { padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: .65rem; background: #fff; }
.wh-event-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.wh-event-time { color: #64748b; font-variant-numeric: tabular-nums; font-size: .82rem; }
.wh-event-kind { color: var(--aireva-ink); font-weight: 650; font-size: .88rem; }
.wh-event-details { margin: .2rem 0 0; color: #334155; font-size: .88rem; overflow-wrap: anywhere; }
.wh-event-more summary { cursor: pointer; color: var(--aireva-blue); font-size: .85rem; font-weight: 600; }

@media (max-width: 39rem) {
  /* Telefone medžiagos kortelė: pavadinimas, laisvas likutis ir veiksmai; kiti duomenys smulkiu šriftu */
  .wh-stock-table .wh-card-free { grid-column: 1 / -1; }
  .wh-stock-table .wh-card-free .wh-card-label { display: none; }
  .wh-stock-table .wh-card-free .wh-free { justify-content: flex-start; }
  .wh-stock-table .wh-card-free .wh-tag { font-size: .9rem; padding: .25rem .65rem; }
  .wh-stock-table .wh-card-secondary { font-size: .82rem; color: #475569; }
  .wh-order-item { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-order-item .wh-qty { grid-column: 1 / -1; }
  .wh-cart-bar { bottom: calc(var(--wh-nav-space, 4.5rem) + .4rem); }
  .wh-camera { display: inline-flex; }
  .wh-receipt-line { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-receipt-line .wh-qty { grid-column: 1 / 2; }
}

/* Įrankiai */
.wh-tool-bulk { position: sticky; top: .5rem; z-index: 1; background: var(--aireva-tint); border-color: var(--aireva-tint-border); }
.wh-tool-table td:first-child input[type=checkbox] { width: 1.25rem; height: 1.25rem; }
.wh-tool-table .wh-link.wh-name { padding: 0; min-height: 0; border: 0; background: none; text-align: left; justify-content: flex-start; }
.wh-tool-summary { margin: 0 0 .75rem; }
.wh-tool-actions { flex: 1 1 18rem; justify-content: flex-end; }
.wh-tool-filters { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 43rem) {
  .wh-tool-actions { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .wh-tool-actions .wh-primary { grid-column: 1 / -1; }
  .wh-tool-filters { grid-template-columns: 1fr 1fr; }
  .wh-tool-filters > :first-child { grid-column: 1 / -1; }
}
.wh-choice { display: grid; gap: .35rem; border: 1px solid #e2e8f0; border-radius: .65rem; padding: .5rem .75rem; margin: 0 0 .75rem; }
.wh-choice legend { font-weight: 650; font-size: .875rem; padding-inline: .25rem; }
.wh-choice .wh-check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.wh-tool-details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem .9rem; margin: 0 0 1rem; }
.wh-tool-details dt { color: #475569; font-size: .8rem; }
.wh-tool-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wh-tool-card-actions button { flex: 1 1 9rem; }
.wh-tool-card-actions .wh-primary { flex-basis: 100%; min-height: 3rem; font-size: 1rem; }

/* QR lipdukai: ekrane nematomi, spausdinant rodomi tik jie */
.wh-print-sheet { display: none; }
@media print {
  html.wh-printing body > :not(.wh-print-sheet) { display: none !important; }
  html.wh-printing .wh-print-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .wh-print-label { display: flex; align-items: center; gap: 3mm; padding: 3mm; border: .2mm dashed #94a3b8; break-inside: avoid; font-family: system-ui, sans-serif; }
  .wh-print-label svg { width: 24mm; height: 24mm; flex: none; }
  .wh-print-label div { display: grid; gap: 1mm; min-width: 0; }
  .wh-print-label strong { font-size: 12pt; }
  .wh-print-label span { font-size: 9pt; overflow-wrap: anywhere; }
  .wh-print-label small { font-size: 7pt; color: #475569; }
}

/* Sandėlis: tamsus apžvalgos skydelis (kaip kituose puslapiuose), rodikliai su būsenos tašku ir rodykle */
[data-theme] .wh-main .wh-overview.wh-card { position: relative; overflow: hidden; padding: 1.25rem 1.35rem; border: 0; border-radius: 1.25rem; color: #e6f2f5;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 90% -10%, rgba(23, 123, 136, .65), transparent 55%),
    linear-gradient(135deg, #12212b, #182b38 60%, #12303b);
  box-shadow: 0 18px 40px rgba(18, 33, 43, .22); }
.wh-overview .wh-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: .75rem; }
.wh-overview .wh-overview-side { display: contents; }
.wh-overview .wh-metrics { grid-column: 1 / -1; grid-row: 2; }
.wh-overview #refresh { grid-column: 3; grid-row: 1; }
.wh-overview .wh-metrics-toggle { grid-column: 2; grid-row: 1; }
.wh-overview .wh-eyebrow { color: #5fd4df; letter-spacing: .14em; }
.wh-overview h1 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.wh-overview #refresh, .wh-overview .wh-metrics-toggle { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; }
.wh-overview #refresh:hover, .wh-overview .wh-metrics-toggle:hover { background: rgba(255, 255, 255, .16); }
[data-theme] .wh-overview .wh-metric, [data-theme] .wh-overview .wh-metric[data-tone] { position: relative; border: 1px solid rgba(255, 255, 255, .12); border-radius: 1rem;
  background: rgba(255, 255, 255, .06); color: #e6f2f5; box-shadow: none; backdrop-filter: blur(6px); padding: .7rem .9rem; }
.wh-overview .wh-metric span { color: rgba(230, 242, 245, .75); }
.wh-overview .wh-metric strong { color: #fff; font-size: 1.3rem; }
.wh-overview .wh-metric[data-tone]:not([data-tone=""])::before { content: ''; position: absolute; top: .8rem; right: .8rem; width: .5rem; height: .5rem; border-radius: 50%; }
.wh-overview .wh-metric[data-tone=amber]::before { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.wh-overview .wh-metric[data-tone=red]::before { background: #fb7185; box-shadow: 0 0 10px #fb7185; }
.wh-overview .wh-metric[data-tone=indigo]::before { background: #5fd4df; box-shadow: 0 0 10px #5fd4df; }
.wh-overview .wh-metric[data-tone=green]::before { background: #34d399; box-shadow: 0 0 10px #34d399; }
.wh-overview .wh-metric[data-tone=amber] strong { color: #fcd34d; }
.wh-overview .wh-metric[data-tone=red] strong { color: #fda4af; }
.wh-overview button.wh-metric { cursor: pointer; padding-right: 1.8rem; transition: border-color .15s ease, background .15s ease; }
.wh-overview button.wh-metric::after { content: "›" / ""; position: absolute; right: .7rem; bottom: .55rem; font-size: 1.2rem; line-height: 1; color: rgba(230, 242, 245, .55); }
.wh-overview button.wh-metric:hover { background: rgba(255, 255, 255, .12); border-color: rgba(95, 212, 223, .6); }
.wh-overview button.wh-metric:hover strong { text-decoration: none; }
@media (min-width: 48.01rem) { .wh-overview .wh-metrics { grid-auto-columns: minmax(9rem, 1fr); } }

/* Priėmimas: failo zona su nutempimu */
.wh-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem; padding: .85rem 1rem; border: 2px dashed #cbd5e1; border-radius: 1rem;
  background: #f8fafc; transition: border-color .15s ease, background .15s ease; }
.wh-drop[data-over=true] { border-color: #177b88; background: var(--aireva-tint); }
.wh-drop[data-filled=true] { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.wh-drop-prompt { font-weight: 600; color: #334155; }
.wh-drop-name { flex-basis: 100%; font-weight: 600; }
.wh-drop[data-filled=true] .wh-drop-name { color: #15803d; }
.wh-drop-types { flex-basis: 100%; font-size: .78rem; color: #64748b; }
.wh-drop .wh-camera { display: inline-flex; }
@media (pointer: fine) and (min-width: 48.01rem) { .wh-drop .wh-camera { display: none; } }
@media (pointer: coarse), (max-width: 48rem) { .wh-drop-prompt { display: none; } }

/* Greiti būsenos filtrai (užsakymai, ataskaitos laikotarpis) */
.wh-quick-status { display: flex; flex-wrap: wrap; gap: .4rem; }
.wh-quick-status button { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.4rem; padding: .3rem .85rem; border-radius: 999px; font-size: .88rem; }
.wh-quick-status button[aria-pressed=true] { background: var(--aireva-blue); border-color: var(--aireva-blue); color: #fff; }
.wh-quick-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #fef3c7; color: #92400e;
  font-size: .75rem; font-weight: 750; }
.wh-quick-status button[aria-pressed=true] .wh-quick-count { background: rgba(255, 255, 255, .25); color: #fff; }
.wh-report-presets { margin-bottom: .75rem; }
.wh-history-list tr[data-status=cancelled] { opacity: .55; }
.wh-history-list tr[data-status=pending] > td:first-child { box-shadow: inset 4px 0 #f59e0b; }

/* Įrankiai: filtrai be nukirpimo, aiški pavadinimo nuoroda, vėluojantys grąžinti – raudonai */
.wh-card.wh-toolbar > .wh-tool-filters { flex: 1 1 100%; width: 100%; max-width: 58rem; }
.wh-tool-filters select { text-overflow: ellipsis; }
.wh-tool-table .wh-link.wh-name { padding: 0; border: 0; background: none; color: var(--aireva-ink); font-weight: 700; text-decoration: none; text-align: left; min-height: 0; }
.wh-tool-table .wh-link.wh-name:hover { color: #177b88; text-decoration: underline; }
.wh-tool-table tr[data-overdue=true] > td { background: #fff1f2; }
.wh-tool-table tr[data-overdue=true] > td:first-child { box-shadow: inset 4px 0 #f43f5e; }

/* Likučiai: baigiasi – paryškinta eilutė; rezervuota dalis – juostelė po laisvu likučiu */
.wh-stock-table tr[data-low=true] > td { background: #fff7ed; }
.wh-stock-table tr[data-low=true] > td:first-child { box-shadow: inset 4px 0 #f97316; }
.wh-reserve-meter { position: relative; display: block; width: 100%; max-width: 6rem; height: .3rem; margin: .3rem 0 0 auto; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.wh-reserve-meter::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: #f59e0b; }
@media (max-width: 39rem) { .wh-reserve-meter { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .wh-drop, .wh-overview button.wh-metric { transition: none; } }
.wh-card.wh-toolbar:has(> .wh-tool-filters) { justify-content: normal; }
.wh-receipt-form .wh-fields { align-items: start; }

/* Įrankio trynimas: raudonas kontūras, atskirtas nuo kitų veiksmų */
.wh-danger-outline { border-color: #fca5a5; background: #fff; color: #b91c1c; font-weight: 700; }
.wh-danger-outline:hover { background: #fef2f2; border-color: #f87171; }
.wh-tool-card-actions .wh-danger-outline { margin-left: auto; }
@media (max-width: 39rem) {
  .wh-tool-card-actions .wh-danger-outline { flex-basis: 100%; margin: .6rem 0 0; }
  /* Telefone sandėlio antraštė plona: pavadinimas jau matomas viršutinėje juostoje */
  [data-theme] .wh-main .wh-overview.wh-card { padding: .55rem .8rem; border-radius: .9rem; }
  .wh-overview .wh-heading { align-items: center; gap: .5rem; }
  .wh-overview .wh-eyebrow { margin-bottom: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wh-overview h1 { font-size: 1.15rem; }
}
