/* ══════════════════════════════════════════════════════════════════
   NP3-LADU — visuaali 3. etapp, rühm 2 (Ladu), 14.11.2026.
   Alus: scratchpad hinnang_3_ladu.md (A, B, D, L4, L6, L7, L9 …).
   Kõik selektorid skoobitud #warehouse alla. Värvid: --np-* (niidupaber.css)
   ja --s-* (.lv-v2, style.css). Tume teema: värvilised pinnad ainult
   html:not([data-theme="dark"]) all.
   Tagasipööramine: eemalda <link> index.html-ist.
   ══════════════════════════════════════════════════════════════════ */

/* ── Ühised väikesed tükid ─────────────────────────────────────── */
#warehouse .wh-alampealkiri { margin: 0 0 0.7rem; font-family: var(--font-display, Georgia, serif); font-weight: 600; font-size: 1.2rem; color: var(--s-pruun2, #765620); }
#warehouse .wh-vahepealkiri { margin: 0.9rem 0 0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--np-ink-2, #5e534a); display: flex; gap: 0.6rem; align-items: baseline; }
#warehouse .wh-vahepealkiri .so-hall { text-transform: none; letter-spacing: 0; font-weight: 400; }
#warehouse .wh-null .so-kpi-arv,
#warehouse .wh-null .wh-inv-arv { color: var(--np-ink-3, #746759) !important; opacity: 0.7; }
#warehouse td.num, #warehouse th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#warehouse .wh-kiire { color: var(--np-danger, #a33025); font-weight: 600; }
#warehouse .wh-nr { white-space: nowrap; }
#warehouse .wh-kood { font-weight: 600; color: var(--s-pruun2, #765620); font-variant-numeric: tabular-nums; white-space: nowrap; }
#warehouse .wh-link { background: none; border: 0; padding: 0.25rem 0; font: inherit; font-size: 0.88rem; color: var(--np-info-ink, #2a5f8a); cursor: pointer; text-align: left; }
#warehouse .wh-link:hover { text-decoration: underline; }
#warehouse .wh-kiip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--np-line, #e6dccf); background: var(--np-surface-2, #faf6ef); color: var(--np-ink-2, #5e534a); }
html:not([data-theme="dark"]) #warehouse .wh-kiip.hoiatus { background: var(--np-warn-soft); border-color: #efd9b5; color: var(--np-warn-ink); }
html:not([data-theme="dark"]) #warehouse .wh-kiip.ok { background: var(--np-moss-soft); border-color: #d3e0c5; color: var(--np-moss-ink); }
html:not([data-theme="dark"]) #warehouse .wh-kiip.oht { background: var(--np-danger-soft); border-color: #ebc9c4; color: var(--np-danger-ink); }

/* ── A. Ülevaade → „Täna laos" ─────────────────────────────────── */
#warehouse #whDash .wh-tana-kaardid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
#warehouse #whDash .wh-tana-kaart { padding: 1rem 1.15rem; min-height: 112px; justify-content: space-between; }
#warehouse #whDash .wh-tana-kaart .so-kpi-arv { font-size: 2.1rem; line-height: 1.1; }
#warehouse #whDash .wh-tana-kaart .so-kpi-alam { font-size: 0.82rem; }
#warehouse #whDash .wh-tana-veerud { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 0.9rem; align-items: start; }
#warehouse #whDash .wh-tana-plokk { margin: 0; border: 1px solid var(--s-joon, #e8ddd3); border-radius: 14px; box-shadow: none; }
#warehouse #whDash .wh-korras { margin: 0; color: var(--np-moss-ink, #3a5230); font-size: 0.9rem; }
#warehouse #whDash .wh-tana-tabel td { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#warehouse #whDash .wh-veel { margin: 0.4rem 0 0; }
#warehouse #whDash .wh-lisalingid { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--s-joon, #e8ddd3); }
#warehouse #whDash .wh-inv-rida { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0; border-bottom: 1px solid var(--s-joon, #e8ddd3); font-size: 0.88rem; color: var(--np-ink-2, #5e534a); }
#warehouse #whDash .wh-inv-rida:last-child { border-bottom: 0; }
#warehouse #whDash .wh-inv-rida[role="button"] { cursor: pointer; }
#warehouse #whDash .wh-inv-rida[role="button"]:hover span:first-child { text-decoration: underline; }
#warehouse #whDash .wh-inv-arv { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--np-ink, #2a2420); }

@media (max-width: 900px) {
    #warehouse #whDash .wh-tana-veerud { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    /* telefonil kolm kaarti üksteise all, arv paremal (hinnang A) */
    #warehouse #whDash .wh-tana-kaardid { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    #warehouse #whDash .wh-tana-kaart { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "silt arv" "alam arv";
        align-items: center; min-height: 64px; padding: 0.65rem 0.9rem; width: 100%; }
    #warehouse #whDash .wh-tana-kaart .so-kpi-silt { grid-area: silt; }
    #warehouse #whDash .wh-tana-kaart .so-kpi-alam { grid-area: alam; }
    #warehouse #whDash .wh-tana-kaart .so-kpi-arv { grid-area: arv; font-size: 1.7rem; }
    #warehouse #whDash .wh-tana-tabel thead { display: none; }
    #warehouse #whDash .wh-tana-tabel, #warehouse #whDash .wh-tana-tabel tbody { display: block; }
    #warehouse #whDash .wh-tana-tabel tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.1rem 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--s-joon, #e8ddd3); }
    #warehouse #whDash .wh-tana-tabel td { display: block; border: 0; padding: 0 !important; }
    #warehouse #whDash .wh-tana-tabel td:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    #warehouse #whDash .wh-tana-tabel td[data-s]::before { content: attr(data-s) " "; font-size: 0.72rem; color: var(--np-ink-3, #746759); font-weight: 400; }
}

/* ── B. Vastuvõtt + L4 ─────────────────────────────────────────── */
#warehouse #whReceiving .wh-ootab { border: 1px solid var(--s-joon, #e8ddd3); border-radius: 14px; box-shadow: none; margin-bottom: 1rem; }
html:not([data-theme="dark"]) #warehouse #whReceiving .wh-ootab { background: #fffaf0; border-color: #efd9b5; }
#warehouse .wh-selgitus { margin: 0 0 0.7rem; font-size: 0.86rem; color: var(--np-ink-2, #5e534a); }
#warehouse .wh-teade { margin: 0 0 0.7rem; padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.85rem; border: 1px solid var(--np-line, #e6dccf); }
html:not([data-theme="dark"]) #warehouse .wh-teade.oht { background: var(--np-danger-soft); border-color: #ebc9c4; color: var(--np-danger-ink); }
html:not([data-theme="dark"]) #warehouse .wh-teade.hoiatus { background: var(--np-warn-soft); border-color: #efd9b5; color: var(--np-warn-ink); }
html:not([data-theme="dark"]) #warehouse .wh-ootab-tabel tr.wh-erand td { background: #fdf3e6; }
#warehouse .wh-ootab-tabel td { vertical-align: middle; }
/* aktide tabel: kompaktsed read, „Read" = kokkuvõte */
#warehouse .gr-aktid-tabel td { vertical-align: top; }
#warehouse .gr-aktid-tabel .wh-gr-tarnija { max-width: 22ch; }
#warehouse .gr-aktid-tabel { table-layout: auto; }
#warehouse .gr-aktid-tabel .wh-gr-read-lahter { width: 32%; max-width: 0; font-size: 0.84rem; }
#warehouse .wh-gr-kokku { display: block; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--np-ink, #2a2420); white-space: nowrap; }
#warehouse .wh-gr-esimene { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#warehouse details.wh-gr-read { margin-top: 0.1rem; }
#warehouse details.wh-gr-read > summary { cursor: pointer; color: var(--np-ink-3, #746759); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; list-style-position: inside; }
#warehouse details.wh-gr-read > summary:hover { color: var(--np-ink, #2a2420); }
#warehouse details.wh-gr-read[open] > summary { color: var(--np-ink-2, #5e534a); }
#warehouse details.wh-gr-read[open] > summary { white-space: normal; }
#warehouse details.wh-gr-read ul { margin: 0.35rem 0 0; padding: 0 0 0 1rem; font-size: 0.78rem; line-height: 1.45; color: var(--np-ink-2, #5e534a); }
#warehouse details.wh-gr-read li { margin-bottom: 0.2rem; }
#warehouse .wh-gr-kustuta { color: var(--np-danger, #a33025) !important; text-decoration: none !important; font-weight: 700; padding: 0 0.25rem; }
#warehouse .wh-gr-transport { margin-top: 0.25rem; }
#warehouse .gr-aktid-tabel .wh-gr-nupud { white-space: nowrap; text-align: right; vertical-align: top; }
@media (max-width: 760px) {
    #warehouse .gr-aktid-tabel tr.wh-gr-rida td.wh-gr-read-lahter { flex: 1 1 100%; max-width: none; min-width: 0; }
    #warehouse .gr-aktid-tabel tr.wh-gr-rida td.wh-gr-nupud { flex: 1 1 100%; text-align: left; }
    #warehouse .wh-gr-esimene, #warehouse details.wh-gr-read > summary { max-width: calc(100vw - 80px); }
}

/* ── D. Tooraine + Pakendid → lv-v2 / so-* muster (L11, L12, L6, L7) ── */
#warehouse .wh-filtrid { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.8rem; }
#warehouse .wh-filtrid .wh-otsing { flex: 1 1 320px; max-width: 560px; }
#warehouse .wh-otsing input { flex: 1; min-width: 0; border: none !important; box-shadow: none !important; outline: none !important; background: transparent !important; font-size: 0.95rem; padding: 0.5rem 0.1rem !important; margin: 0; }
#warehouse .wh-filtrid .so-valik { max-width: 220px; }
#warehouse .wh-tabel-ymbris { overflow-x: auto; }
#warehouse .wh-rm-tabel th.wh-sort, #warehouse .wh-pkg-tabel th.wh-sort { cursor: pointer; user-select: none; white-space: nowrap; }
#warehouse .wh-rida td { vertical-align: middle; }
#warehouse .wh-rida .wh-tarnija { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--np-ink-2, #5e534a); font-size: 0.84rem; }
#warehouse .wh-rida .wh-kogus { font-weight: 600; color: var(--np-ink, #2a2420); }
#warehouse .wh-rida.wh-madal .wh-kogus { color: var(--np-danger, #a33025); }
#warehouse .wh-rida .wh-nupud { white-space: nowrap; text-align: right; width: 1%; }
#warehouse .wh-rida .so-hall.wh-ainult-laud { margin-top: 0.1rem; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#warehouse #pkgStockBody > tr.wh-rida, #warehouse #rmBody > tr.wh-rida { cursor: default; }
#warehouse #pkgStockBody > tr.wh-rida { cursor: pointer; }
@media (min-width: 769px) {
    #warehouse .wh-mob { display: none; }
}
@media (max-width: 768px) {
    #warehouse .wh-ainult-laud { display: none !important; }
    #warehouse #whPackaging .wh-filtrid .wh-otsing { grid-column: 1 / -1; max-width: none; }
    #warehouse .wh-filtrid .so-valik { max-width: none; }
    #warehouse .wh-rida .wh-tarnija { max-width: none; white-space: normal; }
}

/* ── C. Komplekteerimine (L9) ──────────────────────────────────── */
#warehouse #whKitting .wh-skanner-link { display: inline-flex; align-items: center; text-decoration: none !important; color: var(--s-tint, #2c2520) !important; }
@media (max-width: 768px) {
    #warehouse #whKitting .kt-skann > div:first-child { flex-direction: column; align-items: stretch !important; gap: 0.6rem !important; }
    #warehouse #whKitting .kt-skann > div:first-child > div { min-width: 0 !important; width: 100%; }
    #warehouse #whKitting .kt-skann .kt-valik, #warehouse #whKitting .kt-skann .kt-ean { width: 100%; min-width: 0; }
    /* skänniväli enne tellimuse valikut (kangelane), valik selle all */
    #warehouse #whKitting .kt-skann > div:first-child > div:nth-child(2) { order: -1; }
}

/* ── E. Inventuur (L10) ────────────────────────────────────────── */
#warehouse #whInventory > .card.wh-pais-kaart { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 0.9rem; }
#warehouse #whInventory .wh-kleepuv { position: sticky; top: 0; z-index: 3; margin: -0.4rem -0.4rem 0.8rem; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--s-joon, #e8ddd3); }
html:not([data-theme="dark"]) #warehouse #whInventory .wh-kleepuv { background: var(--np-surface, #fffdf9); }
#warehouse #whInventory .wh-inv-sis { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#warehouse #whInventory td.wh-loetud, #warehouse #whInventory th.wh-loetud { white-space: nowrap; }
html:not([data-theme="dark"]) #warehouse #whInventory td.wh-loetud { background: var(--np-surface-2, #faf6ef); }
#warehouse #whInventory #invBody td { padding-top: 0.4rem; padding-bottom: 0.4rem; vertical-align: middle; }
#warehouse #whInventory details.wh-logi > summary { cursor: pointer; margin: 0; }
#warehouse #whInventory details.wh-logi:not([open]) { padding-top: 0.8rem; padding-bottom: 0.8rem; }
#warehouse #whWriteoffs #woLogBody .btn, #warehouse #whInventory #invBody .btn { white-space: nowrap; }
@media (max-width: 768px) {
    #warehouse #whInventory .wh-kleepuv { position: static; margin: 0 0 0.8rem; }
}

/* ── Säilitusproovid (L16), logid (L18), üldine ────────────────── */
#warehouse .wh-kpi-kitsas { grid-template-columns: repeat(auto-fit, minmax(170px, 240px)); }
html:not([data-theme="dark"]) #warehouse tr.wh-aegunud td { background: #fdf3ef; }
#warehouse .wh-logifiltrid input[type="search"] { min-width: 0 !important; }
/* puuteekraanil ei ole hõljumist — hävitav reanupp peab olema nähtav */
@media (hover: none) { #warehouse tr .row-danger-action { opacity: 1; } }

/* Tooraine: INCI + Ühik veerud on lauaarvutis nähtavad (sortimisnupud, FB Merle #423) → tabel peab kaardi sisse mahtuma */
@media (min-width: 769px) {
    #warehouse .wh-rm-tabel td:nth-child(3) { max-width: 22ch; }
    #warehouse .wh-rm-tabel .wh-rida .wh-tarnija { max-width: 14ch; }
    #warehouse .wh-rm-tabel td:last-child { width: 1%; white-space: nowrap; }
    #warehouse .wh-rm-tabel .wh-yhik-mob { display: none; }  /* telefonis (mobile-ladu.css peidab Ühik-veeru) jääb ühik koguse juurde */
    #warehouse .wh-rm-tabel th, #warehouse .wh-rm-tabel td { padding-left: .5rem; padding-right: .5rem; }
}

/* ══ 3. etapp 2. voor (rühm E, jääk): Etiketid, Labor, Teenustöö, Lot-inventuur, Aegunud laos,
      Vabastamise seaded (L17), logid (L5/L18), tühjad olekud (L19) ══════════════════════════ */

/* Etiketid: grupirida + avatavad versioonid */
#warehouse .wh-lbl-tabel tr.lbl-group-summary { cursor: pointer; }
#warehouse .wh-lbl-tabel tr.lbl-group-summary td:first-child { width: 1.5rem; text-align: center; }
#warehouse .wh-lbl-tabel tr.wh-lbl-versioon td { font-size: 0.82rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
html:not([data-theme="dark"]) #warehouse .wh-lbl-tabel tr.wh-lbl-versioon:not(.wh-aegunud) td { background: var(--np-surface-2, #faf6ef); }
#warehouse .wh-lbl-tabel tr.wh-lbl-versioon td.wh-lbl-v { padding-left: 1.6rem; }
#warehouse .wh-lbl-tabel tr.wh-madal.lbl-group-summary .wh-kogus,
#warehouse .wh-lbl-tabel tr.wh-madal.wh-lbl-versioon .wh-kogus { color: var(--np-danger, #a33025); }

/* Labor (lao vaade): lab.js-i tabel ilma klassita → so-tabel kuju ainult #whLab sees (Tootearendust ei puuduta) */
#warehouse #whLab .wh-lab-loend table { width: 100%; border-collapse: collapse; font-size: 0.88rem !important; }
#warehouse #whLab .wh-lab-loend thead th { text-align: left; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--s-hall); font-weight: 600;
    padding: 0.7rem 0.6rem 0.5rem; border-bottom: 1px solid var(--s-joon2); background: transparent; }
#warehouse #whLab .wh-lab-loend thead th:nth-child(4) { text-align: right; }
#warehouse #whLab .wh-lab-loend tbody td { padding: 0.6rem; border-bottom: 1px solid var(--s-joon); vertical-align: middle; }
#warehouse #whLab .wh-lab-loend tbody td:first-child { font-family: inherit !important; font-weight: 600; color: var(--s-pruun2); white-space: nowrap; font-variant-numeric: tabular-nums; }
#warehouse #whLab .wh-lab-loend tbody td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
#warehouse #whLab .wh-lab-loend tbody td:last-child { white-space: nowrap; width: 1%; }
#warehouse #whLab .wh-lab-loend > div:first-child { border-radius: 10px !important; }

/* Teenustöö: subcontract.js-i tabel (.data-table) → so-tabel kuju ainult #whSubcontract sees */
#warehouse #whSubcontract .lv-tegevused .so-uus { min-height: 40px; }
#warehouse #whSubcontract .wh-tt-loend table { width: 100%; border-collapse: collapse; font-size: 0.86rem !important; }
#warehouse #whSubcontract .wh-tt-loend thead th { text-align: left; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--s-hall); font-weight: 600;
    padding: 0.7rem 0.5rem 0.5rem; border-bottom: 1px solid var(--s-joon2); background: transparent; }
#warehouse #whSubcontract .wh-tt-loend thead th:nth-child(4),
#warehouse #whSubcontract .wh-tt-loend thead th:nth-child(7),
#warehouse #whSubcontract .wh-tt-loend thead th:nth-child(8) { text-align: right; }
#warehouse #whSubcontract .wh-tt-loend tbody td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--s-joon); vertical-align: middle; }
#warehouse #whSubcontract .wh-tt-loend tbody td:first-child { font-weight: 600; color: var(--s-pruun2); white-space: nowrap; font-variant-numeric: tabular-nums; }
#warehouse #whSubcontract .wh-tt-loend tbody td:nth-child(4),
#warehouse #whSubcontract .wh-tt-loend tbody td:nth-child(7),
#warehouse #whSubcontract .wh-tt-loend tbody td:nth-child(8) { font-variant-numeric: tabular-nums; white-space: nowrap; }
#warehouse #whSubcontract .wh-tt-loend tbody td:last-child { white-space: nowrap; text-align: right; }

/* Lot-inventuur: tooraine valik (so-otsing) + rippmenüü; loendusväli kitsas, ühik samal real */
#warehouse #whLotInventory .wh-lot-valik { position: relative; max-width: 560px; margin-bottom: 1rem; }
#warehouse #whLotInventory .wh-lot-soovitused { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; z-index: 100;
    background: var(--s-kaart, #fff); border: 1px solid var(--s-joon2); border-radius: 10px; box-shadow: 0 6px 18px rgba(44, 37, 32, 0.12); font-size: 0.88rem; }
#warehouse #whLotInventory .wh-lot-soovitus { padding: 0.5rem 0.8rem; cursor: pointer; border-bottom: 1px solid var(--s-joon); }
#warehouse #whLotInventory .wh-lot-soovitus:last-child { border-bottom: 0; }
#warehouse #whLotInventory .wh-lot-soovitus:hover { background: var(--s-valik); }
#warehouse #whLotInventory .wh-lot-sisend { width: 7.5rem; text-align: right; padding: 0.3rem 0.5rem; font-variant-numeric: tabular-nums; }
#warehouse .wh-lot-tabel td, #warehouse .wh-aeg-tabel td { vertical-align: middle; }

/* Aegunud laos: KPI ja tabel */
#warehouse #whExpired #whExpiredSummary:empty { display: none; }

/* L17 Vabastamine: GMP-kontrollide lülitid <details> taga */
#warehouse details.wh-seaded { margin: 0 0 0.9rem; padding: 0.5rem 0.9rem; border: 1px solid var(--s-joon, #e8ddd3); border-radius: 12px; background: var(--s-kaart, #fff); }
#warehouse details.wh-seaded > summary { cursor: pointer; font-size: 0.86rem; color: var(--np-ink-2, #5e534a); display: flex; gap: 0.6rem; align-items: center; list-style-position: inside; }
#warehouse details.wh-seaded > summary::-webkit-details-marker { margin-right: 0.2rem; }
#warehouse details.wh-seaded[open] > summary { margin-bottom: 0.5rem; }
#warehouse details.wh-seaded #gmpLulitid label { font-size: 0.86rem; }

/* L5/L18 logid lauaarvutis: so-tabel kuju, kood hallilt */
#warehouse .wh-logi-tabel td { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#warehouse .wh-logi-tabel .wh-l-kogus { font-weight: 600; }

/* L19 tühjad olekud: kaardi sees ilma lisapolsterduseta */
#warehouse #kitSalesOrders .empty-state, #warehouse #pickingListContent .empty-state { padding-top: 1.6rem; padding-bottom: 1.6rem; }
#warehouse #whPickingList .wh-vajab-tellimusi:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 768px) {
    #warehouse #whLotInventory .wh-lot-valik { max-width: none; }
    #warehouse #whLotInventory .wh-lot-sisend { width: 100%; }
    #warehouse #whSubcontract .lv-tegevused .so-uus { width: 100%; }
}
@media (min-width: 769px) {
    #warehouse .wh-lbl-tabel th, #warehouse .wh-lbl-tabel td { padding-left: 0.5rem; padding-right: 0.5rem; }
    #warehouse .wh-lbl-tabel td:nth-child(3) { max-width: 40ch; }
}
@media (min-width: 769px) {
    #warehouse #whSubcontract .wh-tt-loend tbody td:nth-child(2) { min-width: 26ch; }
    #warehouse #whSubcontract .wh-tt-loend tbody td:nth-child(3) { min-width: 14ch; }
}
/* L13 Vabastamine: dokumendi- ja artiklinumbrid ei murdu (VV-2026-\n107) */
#warehouse #whVabastamine #gmpKarantiin td:nth-child(1), #warehouse #whVabastamine #gmpKarantiin td:nth-child(2),
#warehouse #whVabastamine #gmpKarantiin td:nth-child(4), #warehouse #whVabastamine #gmpPartiid td:nth-child(1) { white-space: nowrap; }
/* Etiketid telefonil: kompaktne kaart (lahtrid: ▸ | Kood | Etikett | Keel | Versioone | Staatus | Saadaval | Blokeeritud | nupp) */
@media (max-width: 768px) {
    #warehouse .wh-lbl-tabel tr.lbl-group-summary { grid-template-columns: minmax(0, 1fr) auto !important; gap: 4px 12px !important;
        grid-template-areas: "kood saad" "nimi nimi" "keel blok" "olek olek" "teg teg"; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(1),
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(5) { display: none !important; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(2) { grid-area: kood; order: 0; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(3) { grid-area: nimi; font-size: 1rem; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(4) { grid-area: keel; font-size: 0.85rem; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(6) { grid-area: olek; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(7) { grid-area: saad; text-align: right !important; font-size: 1.1rem; white-space: nowrap !important; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(8) { grid-area: blok; text-align: right !important; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(9) { grid-area: teg; }
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(2)::before,
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(3)::before,
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(6)::before,
    #warehouse .wh-lbl-tabel tr.lbl-group-summary > td:nth-child(7)::before { display: none !important; }
}
