:root{font:15px system-ui,sans-serif;color:#172338;background:#f3f6fa;--accent:#087b68;--line:#e2e8f0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}#shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}aside{background:#101b2d;color:#c1cde0;display:flex;flex-direction:column;min-height:100vh;padding:24px 16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;gap:12px;align-items:center;font-weight:750;color:#fff;padding:0 6px 24px}.brand b{display:grid;place-items:center;background:#0b826f;color:#fff;width:39px;height:39px;border-radius:11px;font-size:23px}.brand small{display:block;font-size:10px;letter-spacing:.11em;color:#8fa4bf;margin-top:4px}nav label{display:block;color:#91a3be;font-size:11px;font-weight:700;letter-spacing:.12em;margin:16px 10px 7px}nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;color:inherit;text-align:left;padding:11px 12px;border-radius:8px;margin:2px 0}nav button span{width:18px;text-align:center}nav button:hover,nav button.active{background:#21364a;color:#fff}nav button.active{box-shadow:inset 3px 0 #48d9b6}footer{margin-top:auto;padding:18px 9px 0;border-top:1px solid #2c3c51}footer small{display:block}footer button{background:none;color:#c1cde0;border:0;padding:8px 0}.workspace{min-width:0}header{height:65px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;gap:12px;color:#526178}#connection{margin-left:auto;font-size:13px}main{max-width:1500px;margin:auto;padding:29px 32px 48px}h1{font-size:32px;letter-spacing:-.035em;margin:0 0 5px}h2{margin:0;font-size:18px}p{line-height:1.5}.muted{color:#526178;margin:4px 0 0}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px;flex-wrap:wrap}.btn{background:#fff;border:1px solid #cdd7e4;color:#172338;border-radius:8px;padding:10px 14px;font-weight:650;min-height:42px}.primary{background:var(--accent);border-color:var(--accent);color:white}.actions,.filters{display:flex;gap:9px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.card,.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 5px #17233808}.card{padding:17px}.card span{display:block;color:#526178}.card b{display:block;font-size:29px;margin:8px 0 2px}.card i{font-style:normal;display:grid;place-items:center;width:32px;height:32px;background:#e5f5f0;color:#08735f;border-radius:8px;margin-bottom:12px}.panel{margin-bottom:16px;overflow:hidden}.panel-head{padding:18px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th,td{text-align:left;padding:13px 17px;border-top:1px solid var(--line)}th{font-size:13px;color:#526178;background:#f8fafc}td{font-size:14px}.pill{display:inline-block;background:#e6f6ef;color:#086450;padding:4px 9px;border-radius:20px;font-size:12px;font-weight:700}.amber{background:#fff1d9;color:#865000}.red{background:#ffe9e9;color:#a32a2a}label.field{display:grid;gap:5px;font-weight:600}input,select{width:100%;min-width:0;border-radius:7px;border:1px solid #cdd7e4;padding:10px;background:#fff;color:#172338;min-height:42px}.filters>*{width:auto;max-width:100%}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0}.wide{grid-column:1/-1}dialog{border:1px solid var(--line);border-radius:15px;padding:22px;width:min(650px,calc(100% - 24px));color:#172338}dialog::backdrop{background:#101b2d8c}form .actions{justify-content:flex-end}.empty{padding:24px;color:#526178}.login{max-width:450px;margin:8vh auto;padding:24px}.login .actions{margin-top:14px}#toast{display:none;position:fixed;right:15px;bottom:15px;background:#15253b;color:#fff;padding:13px 17px;border-radius:9px;max-width:90vw;z-index:10}#menu{display:none}a{color:#08735f}pre{white-space:pre-wrap}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:16px}@media(max-width:1050px){.grid{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:720px){#shell{display:block}aside{display:none;position:fixed;z-index:2;width:236px;top:55px;height:calc(100vh - 55px);min-height:0}#shell.open aside{display:flex}header{height:55px;padding:0 14px}#menu{display:block;background:none;border:0;font-size:21px}main{padding:19px 12px}h1{font-size:26px}.card{padding:12px}.fields{grid-template-columns:1fr}.btn{min-height:46px}}
textarea{width:100%;font:inherit;padding:10px;resize:vertical;border:1px solid #cdd7e4;border-radius:7px}fieldset{border:1px solid var(--line);border-radius:7px;display:flex;flex-wrap:wrap;gap:12px}fieldset legend{font-weight:700}.login .fields{grid-template-columns:1fr}dialog .scroll{margin-bottom:12px}
.scan-field{align-self:end}.printable{display:grid;place-items:center;padding:18px;color:#000}.printable b{font-size:20px}@media print{body{background:white}body #shell,body #toast,dialog h2,dialog .actions,dialog .fields>.wide:not(.printable){display:none!important}dialog[open]{display:block;position:static;width:auto;border:0;margin:0;padding:0}dialog::backdrop{display:none}}

#wms-assistant { position: fixed; z-index: 8; right: 1rem; bottom: 1rem; display: grid; justify-items: end; gap: .65rem; }
#wms-assistant button { cursor: pointer; }
.wms-help-launch, .wms-help-panel form button { border: 0; border-radius: .65rem; background: #0a7569; color: white; font: inherit; font-weight: 700; padding: .65rem .9rem; }
.wms-help-launch { border-radius: 2rem; box-shadow: 0 4px 18px #13223838; }
.wms-help-launch span { margin-right: .2rem; }
.wms-help-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(23rem, calc(100vw - 2rem)); height: min(29rem, calc(100dvh - 6rem)); color: #14263d; background: white; border: 1px solid #c9d8e7; border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 34px #13223838; }
.wms-help-panel[hidden] { display: none; }
.wms-help-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; background: #edf7f5; border-bottom: 1px solid #d7e8e5; padding: .75rem 1rem; }
.wms-help-context { display: block; margin-top: .2rem; color: #416168; }
.wms-help-close { padding: 0 .35rem; border: 0; background: transparent; color: #14263d; font-size: 1.55rem; }
.wms-help-messages { overflow: auto; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: .8rem; }
.wms-help-message { background: #eef3f8; border-radius: .7rem; padding: .65rem .75rem; margin: 0; overflow-wrap: anywhere; line-height: 1.42; font-size: .92rem; }
.wms-help-message.user { align-self: flex-end; background: #dff4ef; }
.wms-help-message strong { display: block; font-size: .8rem; margin-bottom: .2rem; }
.wms-help-suggestion { justify-self: start; margin: .15rem .8rem .5rem; padding: .4rem .65rem; border: 1px solid #9abeb8; border-radius: .6rem; font: inherit; font-size: .88rem; background: white; color: #075c53; text-align: left; }
.wms-help-panel form { display: flex; gap: .4rem; padding: .65rem .8rem; border-top: 1px solid #e2e9ef; }
.wms-help-panel input { flex: 1; min-width: 0; font-size: 1rem; }

.master-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start; margin: 0; }

.master-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(10rem,1fr)); gap: .75rem; margin: 0 0 1rem; }
.master-kpis .panel { padding: .9rem 1rem; margin: 0; }
.master-kpis span { display: block; color: #425675; font-size: .9rem; }
.master-kpis strong { display: block; margin-top: .35rem; font-size: 1.35rem; }
.master-tabs { justify-content: flex-start; margin-bottom: 1rem; }
.company-logo { width: 2.6rem; height: 2.6rem; border-radius: .45rem; object-fit: contain; background: white; padding: .2rem; }
.brand:has(.company-logo:not([hidden])) > b { display: none; }
.logo-preview { display: flex; gap: .8rem; align-items: center; }
.logo-preview input { width: auto; min-height: 0; }
.notice-list { display: grid; gap: .65rem; padding: .75rem; }
.notice-list article { border: 1px solid var(--line); border-radius: .65rem; background: #f7fafc; padding: .7rem .85rem; overflow-wrap: anywhere; }
.notice-list small { display: block; margin-top: .25rem; color: #475b76; }
.notice-list p { white-space: pre-wrap; margin-bottom: 0; }

#masterEntry[hidden], #wms-assistant[hidden], #companyInboxEntry[hidden] { display: none; }
.login-actions { justify-content: flex-start; gap: .6rem; }
.login #loginForm .fields { grid-template-columns: 1fr; }
.login #loginForm .login-actions { margin-top: 1rem; }

.product-thumbnail { width: 3rem; height: 3rem; object-fit: contain; border: 1px solid var(--line); border-radius: .4rem; background: white; }
.sku-code-preview:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit,minmax(10rem,1fr)); gap: .7rem; }
.sku-code-preview > div, .label-preview { display: grid; gap: .4rem; justify-items: center; border: 1px solid var(--line); border-radius: .55rem; padding: .6rem; }
.sku-code-preview svg { max-width: 100%; max-height: 6rem; }
.wms-label { display: grid; align-content: start; justify-items: center; gap: .2rem; padding: .35rem; overflow-wrap: anywhere; text-align: center; color: #000; background: #fff; }
.wms-label svg { max-width: 100%; }
.wms-label svg[aria-label="QR Code"] { width: 5.2rem; height: 5.2rem; }
.label-sheet { display: none; }
#volume-label-sheet { display: none; }
@page volume-label {
  size: 100mm 120mm;
  margin: 4mm;
}
@media print {
  body.printing-volumes > :not(#volume-label-sheet) { display: none !important; }
  body.printing-volumes #volume-label-sheet { display: block; }
  .volume-label {
    page: volume-label;
    break-inside: avoid;
    min-height: 111mm;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5mm 0 3mm;
    border: .4mm solid #000;
    color: #000;
    background: #fff;
    font: 12pt / 1.25 Arial, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .volume-label + .volume-label { break-before: page; }
  .volume-label header, .volume-label-destination {
    display: grid;
    justify-items: center;
    gap: 2mm;
    padding: 0 4mm;
  }
  .volume-label header { height: auto; min-height: 0; border: 0; background: transparent; color: inherit; }
  .volume-label header img { max-width: 52mm; max-height: 19mm; object-fit: contain; }
  .volume-label-count { padding: 4mm; border-block: .35mm solid #000; font-size: 26pt; font-weight: 700; }
  .volume-label footer { margin: 0; padding: 0; border: 0; font-size: 9pt; font-weight: 700; }
}
@media print {
  body.printing-labels #wms-assistant, body.printing-labels dialog .fields > :not(.label-sheet) { display: none !important; }
  body.printing-labels dialog[open] { max-height: none; max-width: none; overflow: visible; }
  body.printing-labels dialog .fields { display: block; padding: 0; }
  body.printing-labels .label-sheet { display: block; padding: 0; }
  body.printing-labels .wms-label { display: inline-grid; width: 58mm; max-width: 100%; min-height: 28mm; margin: 0 2mm 2mm 0; vertical-align: top; border: .2mm solid #aaa; break-inside: avoid; font-size: 9pt; }
  body.printing-labels .wms-label svg[aria-label="Código de barras Code 128"] { width: 100%; height: 13mm; }
  body.printing-labels .wms-label svg[aria-label="QR Code"] { width: 20mm; height: 20mm; }
}

.install-android[hidden] { display: none; }
.install-android { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .55rem clamp(.75rem, 3vw, 2rem); border-bottom: 1px solid #cce1de; background: #edf7f5; }
.install-android img { border-radius: .5rem; }
.install-android > span { flex: 1; font-weight: 700; }
.install-android .btn { min-height: 44px; }
.install-instructions { margin: 0; padding-inline-start: 1.4rem; }
.install-instructions li + li { margin-top: .55rem; }

#wms-assistant .wms-help-launch { display: inline-flex; align-items: center; gap: .55rem; padding: .2rem; background: transparent; box-shadow: none; color: #153944; }
#wms-assistant .wms-help-launch span { margin-right: 0; }
.wms-help-launch:focus-visible { outline: 2px solid #087b68; outline-offset: 3px; }
.wms-help-bubble { position: relative; display: block; padding: .63rem .9rem; border: 1px solid #c6e4dd; border-radius: 1rem; background: #fff; box-shadow: 0 5px 16px #15394421; }
.wms-help-bubble::before { content: ""; position: absolute; width: .55rem; height: .55rem; left: -.33rem; top: 45%; transform: rotate(45deg); border-left: inherit; border-bottom: inherit; background: inherit; }
.wms-help-launch:hover .wms-help-bubble, .wms-help-launch[aria-expanded=true] .wms-help-bubble { background: #edf9f6; }
.wms-robot { position: relative; display: inline-grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #087b68; box-shadow: 0 4px 12px #06493d38; }
.wms-robot::before { content: ""; position: absolute; top: 13%; left: 50%; transform: translateX(-50%); width: .35rem; height: .35rem; border-radius: 50%; background: #a3f0d5; box-shadow: 0 .25rem 0 -.07rem #a3f0d5; }
.wms-robot-face { position: relative; width: 65%; height: 46%; margin-top: 9%; border-radius: .55rem; background: #f5fffb; box-shadow: .28rem 0 0 -.08rem #68d8bc, -.28rem 0 0 -.08rem #68d8bc; }
.wms-robot-face::before { content: ""; position: absolute; top: 32%; left: 23%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #153944; box-shadow: .76rem 0 #153944; }
.wms-robot-face::after { content: ""; position: absolute; top: 49%; left: 39%; width: 22%; height: 22%; border-bottom: 2px solid #087b68; border-radius: 0 0 50% 50%; }
.wms-robot-small { width: 2.5rem; height: 2.5rem; }
.wms-robot-small .wms-robot-face::before { box-shadow: .56rem 0 #153944; }
.wms-help-header > div { flex: 1; }
@media print { #androidInstall, #wms-assistant { display: none !important; } }

@media screen {
  :root {
    --canvas: #f3f6fa;
    --surface: #fff;
    --surface-alt: #f8fafc;
    --sidebar: #101b2d;
    --sidebar-active: #21364a;
    --text: #172338;
    --muted: #526178;
    --control-line: #cdd7e4;
    --tint: #e5f5f0;
    --link: #086450;
    --indicator: #48d9b6;
    --ok-bg: #e6f6ef;
    --ok-text: #086450;
    --amber-bg: #fff1d9;
    --amber-text: #865000;
    --red-bg: #ffe9e9;
    --red-text: #a32a2a;
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #0c111c;
    --surface: #121a2b;
    --surface-alt: #172237;
    --sidebar: #121929;
    --sidebar-active: #192742;
    --text: #e8edf7;
    --muted: #9aa9c1;
    --line: #263550;
    --control-line: #455675;
    --accent: #245bc2;
    --tint: #1a2945;
    --link: #84afff;
    --indicator: #4e91ff;
    --ok-bg: #153332;
    --ok-text: #91efd1;
    --amber-bg: #392b18;
    --amber-text: #ffe28f;
    --red-bg: #401f2a;
    --red-text: #ffc3c8;
  }
  :root[data-theme="dark"] .brand b {
    background: linear-gradient(140deg, #ffb43a, #ff7c19);
    color: #121929;
  }
  :root[data-theme="dark"] main > .grid .card {
    background: linear-gradient(125deg, var(--surface) 60%, #1a2945);
  }
  :root[data-theme="blue"] {
    --canvas: #eaf2ff;
    --surface: #f9fbff;
    --surface-alt: #edf4ff;
    --sidebar: #122653;
    --sidebar-active: #244478;
    --text: #142850;
    --muted: #405779;
    --line: #c7d7ef;
    --control-line: #a9bddb;
    --accent: #245ac1;
    --tint: #dfebff;
    --link: #214e9e;
    --indicator: #8ab6ff;
  }
  :root { background: var(--canvas); color: var(--text); }
  aside { background: var(--sidebar); }
  nav button:hover, nav button.active { background: var(--sidebar-active); }
  nav button.active { box-shadow: inset 3px 0 var(--indicator); }
  .brand b, .wms-robot, .wms-help-panel form button { background: var(--accent); }
  header, .card, .panel, dialog, .wms-help-panel { background: var(--surface); }
  .card, .panel, dialog, .wms-help-panel, .wms-help-close, #menu { color: var(--text); }
  header, .muted, .card span, .empty, th, .master-kpis span, .notice-list small, .wms-help-context { color: var(--muted); }
  th, .notice-list article, .wms-help-message { background: var(--surface-alt); }
  .btn:not(.primary), input, select, textarea { background: var(--surface); color: var(--text); border-color: var(--control-line); }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
  a, .card i { color: var(--link); }
  .card i, .install-android, .wms-help-header, .wms-help-message.user { background: var(--tint); }
  .install-android, .wms-help-panel, .wms-help-header, .wms-help-panel form, .wms-help-bubble { border-color: var(--line); }
  .pill { background: var(--ok-bg); color: var(--ok-text); }
  .pill.amber { background: var(--amber-bg); color: var(--amber-text); }
  .pill.red { background: var(--red-bg); color: var(--red-text); }
  .wms-help-suggestion { background: var(--surface); border-color: var(--control-line); color: var(--link); }
  #wms-assistant .wms-help-launch { color: var(--text); }
  .wms-help-bubble { background: var(--surface); }
  .wms-help-launch:hover .wms-help-bubble, .wms-help-launch[aria-expanded=true] .wms-help-bubble { background: var(--tint); }
  .theme-picker { display: inline-flex; flex: none; align-items: center; gap: .45rem; font-size: .85rem; }
  .theme-picker select { width: auto; min-height: 36px; padding: .38rem .4rem; }
  :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
}
@media screen and (max-width: 720px) {
  .workspace > header { height: auto; min-height: 55px; flex-wrap: wrap; gap: .35rem .6rem; padding-block: .3rem; }
  #breadcrumb { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .theme-picker > span { display: none; }
}

.catalog-product { display: flex; align-items: center; gap: 1rem; min-width: min(25rem, 72vw); white-space: normal; }
.catalog-product > a, .catalog-no-photo { flex: 0 0 4rem; display: grid; place-items: center; width: 4rem; height: 4rem; }
.catalog-product .product-thumbnail { width: 4rem; height: 4rem; }
.catalog-product strong { display: block; margin-bottom: .22rem; font-size: 1rem; overflow-wrap: anywhere; }
.catalog-product div span { display: block; line-height: 1.4; }
.catalog-no-photo { border: 1px dashed var(--line); border-radius: .4rem; }

.rack-icon { width: 1.25rem; height: 1.25rem; flex: none; }
.location-link { display: inline-flex; align-items: center; gap: .55rem; border: 0; background: none; color: var(--link, #086450); font: inherit; font-weight: 700; padding: .35rem 0; }
.location-link:hover { text-decoration: underline; }
.location-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; }
.location-status > span { width: .65rem; height: .65rem; border-radius: 50%; background: #ef5350; box-shadow: 0 0 .42rem #ef53506b; }
.location-status.is-active > span { background: #23bd77; box-shadow: 0 0 .42rem #23bd776b; }
.occupancy-list { padding: 0 1.125rem 1.125rem; display: grid; gap: .85rem; }
.occupancy-item { display: flex; align-items: center; gap: 1rem; }
.occupancy-item b { display: block; font-size: 1.45rem; margin: .2rem 0; }
.occupancy-item span { color: var(--muted, #526178); }

.location-delete { border-top: 1px solid var(--line); padding-top: .85rem; }
.btn.danger { color: var(--red-text, #a32a2a); border-color: currentColor; }

.occupancy-warehouse { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.occupancy-breakdown { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 16rem),1fr)); gap: 1rem; margin-top: .75rem; }
.occupancy-item h3 { font-size: .95rem; margin: 0 0 .35rem; }
.occupancy-donut { width: 5.5rem; flex: none; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) var(--occupied), var(--surface-alt,#e2e8f0) 0); }
.occupancy-donut strong { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--surface,#fff); font-size: .94rem; }
.occupancy-legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .3rem; }
.occupancy-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.occupancy-legend span::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); }
.occupancy-legend .occupancy-empty::before { background: var(--surface-alt,#e2e8f0); border: 1px solid var(--line); }

.export-excel { display: inline-flex; align-items: center; gap: .45rem; }
.excel-icon { display: inline-grid; place-items: center; width: 1.3rem; height: 1.5rem; border-radius: .2rem .4rem .2rem .2rem; background: #137447; color: #fff; font: 800 .82rem system-ui,sans-serif; box-shadow: inset -.25rem 0 #094e32; padding-right: .12rem; }

.location-table .filters { align-items: end; }
.location-table .filters > label { font-size: .85rem; }
.location-table .scroll { max-height: max(14rem, calc(100dvh - 19rem)); }
.location-table thead th { position: sticky; top: 0; z-index: 1; box-shadow: inset 0 -1px var(--line); }

#wms-assistant .wms-help-launch, .wms-help-header { cursor: grab; touch-action: none; user-select: none; }
#wms-assistant.is-dragging .wms-help-launch, #wms-assistant.is-dragging .wms-help-header { cursor: grabbing; }

.product-table .catalog-product {min-width:min(19rem,68vw);max-width:30rem}
.product-table .catalog-no-photo {color:var(--muted,#526178)}
.product-table .catalog-no-photo svg {width:1.7rem;height:1.7rem}
.product-table td:last-child .btn + .btn {margin-left:.35rem}
.product-table .pill::before {content:"";display:inline-block;width:.45rem;height:.45rem;background:currentColor;border-radius:50%;margin-right:.4rem}
.product-table td:nth-child(5),.product-table td:nth-child(6) {font-variant-numeric:tabular-nums}
.trace-options summary {cursor:pointer;font-weight:650}

.picking-panel .panel {display:flex;flex-direction:column;max-height:max(24rem,calc(100dvh - 13rem))}
.picking-panel .panel-head {flex:none}
.picking-panel .filters {align-items:end}
.picking-panel .filters label {font-size:.85rem}
.picking-panel .scroll {min-height:0;overflow:auto}
.picking-panel th {position:sticky;top:0;z-index:1;box-shadow:inset 0 -1px var(--line)}
.picking-row-actions {display:flex;flex-wrap:wrap;gap:.45rem}
.volume-review-item {display:grid;grid-template-columns:minmax(0,1fr) minmax(11rem,40%);gap:1rem;align-items:start;padding:.8rem 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.volume-review-controls {display:grid;gap:.5rem}
.volume-review-controls .btn {justify-self:start}
@media(max-width:540px){.volume-review-item {grid-template-columns:minmax(0,1fr);gap:.55rem}}
@media(max-width:720px){
  .picking-panel .filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .picking-panel .panel-head>.actions {width:100%}
  .picking-panel .panel {max-height:max(33rem,calc(100dvh - 8rem))}
}

.pick-card {padding:1rem;margin:.7rem 0;border:1px solid var(--line);border-radius:.75rem}
.pick-card.has-shortage {border-color:#db5362;background:color-mix(in srgb,var(--red-bg) 48%,var(--surface))}
.pick-card.has-shortage .catalog-product strong,.shortage-item {color:var(--red-text)}
.shortage-item {font-weight:700}
.pick-card .catalog-product {min-width:0}
.pick-card details {margin-top:.8rem}
.pick-card summary {cursor:pointer}

.pick-camera {display:grid;gap:.4rem;align-content:start}
.pick-camera video,.pick-camera img {max-width:100%;max-height:15rem;border-radius:.5rem}
.pick-camera [hidden] {display:none}

.operator-picking {max-width:65rem;margin-inline:auto}
.operator-picking h1 {margin:.65rem 0 .25rem;overflow-wrap:anywhere}
.operator-picking h1:focus {outline:none}
.operator-picking .btn {min-height:46px}
.operator-filters {margin:.75rem 0;border:1px solid var(--line);border-radius:.7rem;background:var(--surface)}
.operator-filters summary {padding:.8rem 1rem;cursor:pointer;font-weight:650}
.operator-filters .filters {padding:0 1rem 1rem;align-items:end}
.operator-filters .filters label {font-size:.9rem}
.operator-orders {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:.75rem}
.operator-card,.operator-focus {min-width:0;padding:1rem;border:1px solid var(--line);border-radius:.8rem;background:var(--surface)}
.operator-card h3 {margin:.55rem 0 .1rem;overflow-wrap:anywhere}
.operator-card .actions {margin-top:.85rem}
.operator-card-label {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .6rem;margin-top:.45rem}
.operator-items,.operator-positions {list-style:none;margin:.65rem 0;padding:0;display:grid;gap:.5rem}
.operator-item {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem .8rem;width:100%;min-height:54px;padding:.8rem .95rem;text-align:left;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:.7rem}
.operator-item > span {display:grid;gap:.25rem;overflow-wrap:anywhere}
.operator-item > span:last-child {justify-items:end;text-align:right;font-weight:650}
.operator-item:hover {border-color:var(--accent)}
.operator-item.has-shortage,.operator-focus.has-shortage {border-color:var(--red-text)}
.operator-progress {display:grid;gap:.35rem;margin:.95rem 0;color:var(--muted)}
.operator-progress progress {width:100%;height:.65rem;accent-color:var(--accent)}
.operator-kicker {margin:.75rem 0 .3rem;font-weight:700;color:var(--muted);overflow-wrap:anywhere}
.operator-product {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem;margin-bottom:1rem}
.operator-product .product-thumbnail,.operator-product .catalog-no-photo {width:clamp(5rem,22vw,9rem);height:clamp(5rem,22vw,9rem)}
.operator-product h1 {font-size:clamp(1.25rem,4vw,2rem);margin:.15rem 0}
.operator-product p {margin:.15rem 0}
.operator-quantity {font-size:clamp(1.2rem,4vw,1.65rem);font-weight:750;color:var(--link)}
.operator-positions li {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem .65rem;padding:.65rem .8rem;border-radius:.55rem;background:var(--surface-alt);overflow-wrap:anywhere}
.operator-positions small {flex-basis:100%;color:var(--muted)}
.operator-filters .operator-positions {margin-inline:.8rem}
.operator-actions {margin-top:.85rem}
.active-picker-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.75rem;padding:0 1rem 1rem}
.active-picker-card {min-width:0;padding:.85rem;border:1px solid var(--line);border-radius:.7rem;background:var(--surface-alt);overflow-wrap:anywhere}
.active-picker-card h3 {font-size:1rem;margin:0}
.active-picker-card ul {display:grid;gap:.5rem;margin:.6rem 0;padding:0;list-style:none}
.active-picker-card li {display:grid;gap:.2rem;padding:.5rem .65rem;border-radius:.4rem;background:var(--surface)}
@media(max-width:720px){
  .operator-card .actions > *,.operator-actions > * {flex:1 1 100%}
  .operator-filters .filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .operator-filters .filters > * {width:100%;min-width:0}
  .operator-item {grid-template-columns:minmax(0,1fr)}
  .operator-item > span:last-child {display:flex;align-items:center;flex-wrap:wrap;text-align:left}
  body:has(.operator-picking) #modal .fields {grid-template-columns:minmax(0,1fr)}
}

.sij-mark {display:block;width:3.8rem;height:2.3rem;object-fit:contain;box-sizing:border-box;padding:.32rem;background:#f4faff;border-radius:.45rem}
.login-mark {width:5.8rem;height:2.7rem;margin-bottom:1rem}
.tenant-brand:not([hidden]) {margin:0 0 .85rem .4rem}

.tenant-brand:not([hidden]) {width:calc(100% - 1rem);height:4.6rem;margin:0 .5rem .6rem;object-fit:contain}
.tenant-brand:not([hidden]) + .brand {font-size:.8rem;gap:.45rem;padding-bottom:.8rem}
.tenant-brand:not([hidden]) + .brand .sij-mark {width:2.2rem;height:1.3rem;padding:.15rem}
.tenant-brand:not([hidden]) + .brand small {display:none}

.signature-pad {min-width:0}
.signature-pad canvas {display:block;width:100%;max-width:45rem;height:auto;border:1px solid var(--line);border-radius:.5rem;background:#fff;touch-action:none;cursor:crosshair;margin-bottom:.6rem}
.signature-pad small {margin-left:.6rem}

nav button > span {display:grid;place-items:center;width:1.3rem;flex:none}
nav button > span svg,.android-link svg {width:1.13rem;height:1.13rem;display:block}
.android-link {display:inline-flex;align-items:center;gap:.5rem;width:fit-content;margin:.8rem 0 .25rem;color:inherit;font-size:.85rem}
#profile .android-link {display:flex}
.android-install-page .btn {display:inline-flex;align-items:center;text-decoration:none}
.android-install-page [hidden] {display:none}
.android-install-qr {display:grid;justify-items:center;gap:.65rem;margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:.7rem;text-align:center}
.android-install-qr svg {display:block;max-width:100%;height:auto;border-radius:.35rem;shape-rendering:crispEdges}
.android-install-qr figcaption {max-width:26ch;font-size:.93rem}

.master-webmail {display:inline-flex;align-items:center;text-decoration:none}
.master-install-link {display:flex;flex-wrap:wrap;gap:.6rem;padding:0 1.1rem 1.1rem}
.master-install-link input {flex:1 1 22rem;min-width:0}

.wms-help-questions {padding:.35rem .7rem;border-top:1px solid var(--line)}
.wms-help-questions summary {cursor:pointer;font-size:.83rem;font-weight:650}
.wms-help-questions > div {display:grid;gap:.2rem;max-height:min(12rem,25vh);overflow:auto;margin-top:.4rem}
.wms-help-questions button {text-align:left;padding:.45rem;color:inherit;background:transparent;border:1px solid var(--line);border-radius:.35rem}
dialog > #wms-assistant {position:fixed}

.stock-table .filters {align-items:end}
.stock-table .filters label {font-size:.85rem}
.stock-table .scroll {max-height:max(14rem,calc(100dvh - 22rem))}
.stock-table thead th {position:sticky;top:0;z-index:1;box-shadow:inset 0 -1px var(--line)}
.stock-totals {display:flex;flex-wrap:wrap;gap:.7rem 2rem;margin:0;padding:.7rem 1.05rem;background:var(--surface-alt);border-top:1px solid var(--line)}
.stock-totals dt {color:var(--muted);font-size:.85rem}
.stock-totals dd {display:flex;flex-wrap:wrap;gap:.25rem .8rem;margin:.12rem 0 0;font-size:1rem;font-weight:750;font-variant-numeric:tabular-nums}
.stock-totals dd span {white-space:nowrap}
.stock-table table {table-layout:fixed;min-width:66rem}
.stock-table :is(th,td) {padding-inline:.55rem;overflow-wrap:anywhere;white-space:normal}
.stock-table :is(th,td):first-child {padding-inline-start:.85rem}
.stock-table th:first-child {width:7rem}
.stock-table th:nth-child(3),.stock-table th:nth-child(4) {width:6rem}
.stock-table th:nth-child(5) {width:7.3rem}
.stock-table th:nth-child(6),.stock-table th:nth-child(7),.stock-table th:nth-child(8),.stock-table th:nth-child(9) {width:5.8rem}
.stock-table th:last-child {width:6.8rem}
.stock-table :is(th,td):nth-child(6) {text-align:right;font-variant-numeric:tabular-nums}
.stock-table .stock-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35}
.stock-table td:last-child .btn {padding-inline:.55rem}
@media(max-width:720px){
  .stock-table .panel-head>.actions {width:100%}
  .stock-table .filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .stock-table .filters > * {width:100%;min-width:0}
}

.user-identity,.user-photo-control {display:flex;align-items:center;gap:.6rem}
.user-photo-control {flex-wrap:wrap}
.user-avatar {width:2.5rem;height:2.5rem;object-fit:cover;border-radius:50%;border:1px solid var(--line)}

.compact-dashboard > .heading {margin-bottom:.85rem}
.dashboard-layout {display:grid;gap:.85rem;align-items:start}
.dashboard-main,.dashboard-side {min-width:0}
.dashboard-tabs {display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.85rem}
.dashboard-tabs .btn[aria-pressed="true"] {background:var(--accent);border-color:var(--accent);color:#fff}
.dashboard-mini-kpis,.dashboard-tiles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.75rem}
.dashboard-kpi {display:grid;gap:.18rem;min-width:0;padding:.85rem;color:var(--text);text-align:left}
.dashboard-kpi:hover {border-color:var(--accent)}
.dashboard-kpi strong {font-size:clamp(1.65rem,2.65vw,2.65rem);line-height:1.08;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-kpi small {color:var(--muted);font-size:.82rem}
.dashboard-kpi-critical {background:var(--red-bg);border-color:#db5362}
.dashboard-kpi-critical strong {color:var(--red-text)}
.dashboard-tiles > .panel {margin:0;min-width:0}
.compact-dashboard .panel-head {padding:.8rem .85rem}
.compact-dashboard .panel-head h2 {font-size:1rem}
.dashboard-detail-link {border:0;background:none;color:var(--link);padding:.35rem .2rem;font-weight:650;text-decoration:underline;text-underline-offset:.2em}
.dashboard-chart-area {cursor:pointer;padding-bottom:.25rem}
.dashboard-chart-area:hover {background:color-mix(in srgb,var(--accent) 5%,transparent)}
.dashboard-chart-area .occupancy-breakdown {padding:0 .85rem .8rem;margin:0;grid-template-columns:1fr;gap:.6rem}
.dashboard-chart-area .occupancy-donut {width:4.4rem}
.dashboard-chart-area .occupancy-donut strong {font-size:1.08rem}
.dashboard-chart-area .occupancy-item {gap:.6rem;font-size:.82rem}
.dashboard-side .panel-head .actions .btn {min-height:32px;padding:.35rem .6rem;font-size:.82rem}
.active-picker-count {display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 .65rem .65rem;padding:.45rem .65rem;border-radius:.55rem;background:var(--tint);color:var(--ok-text)}
.active-picker-count strong {font-size:1.85rem;line-height:1.1;font-variant-numeric:tabular-nums}
.dashboard-side .active-picker-grid {grid-template-columns:1fr;gap:.55rem;padding:0 .65rem .65rem;max-height:min(59vh,31rem);overflow:auto}
.dashboard-side .active-picker-card {padding:.6rem;font-size:.88rem}
.dashboard-side .active-picker-card .btn {width:100%;font-size:.82rem;min-height:38px;padding:.4rem}
.dashboard-side .active-picker-card li {padding:.4rem .5rem}
.dashboard-modal-details > .scroll {max-height:48dvh}
dialog:has(.dashboard-modal-details) {width:min(70rem,calc(100% - 24px))}
.dashboard-bars {margin:0;padding:.15rem 1.05rem .9rem;list-style:none;font-size:.84rem}
.dashboard-bars li {display:grid;grid-template-columns:minmax(6.8rem,1.35fr) minmax(1.5rem,1fr) 2rem;gap:.5rem;align-items:center;padding:.36rem 0}
.dashboard-bars strong {text-align:right}
.dashboard-bar {height:.55rem;border-radius:1rem;background:var(--surface-alt);overflow:hidden}
.dashboard-bar i {display:block;height:100%;border-radius:inherit;background:var(--accent)}
.dashboard-gauges {display:grid;gap:.7rem;padding:.15rem .85rem .9rem;text-align:center}
.dashboard-gauges-today {grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-gauges p {margin:0;font-size:.8rem}
.dashboard-gauges-today p {grid-column:1/-1}
.dashboard-gauge {display:grid;justify-items:center;gap:.25rem;color:var(--muted);font-size:.82rem}
.dashboard-gauge svg {width:min(100%,10rem);display:block}
.dashboard-gauge path {fill:none;stroke-width:11;stroke-linecap:round}
.dashboard-gauge text {fill:var(--text);font-size:23px;font-weight:750;font-variant-numeric:tabular-nums}
.gauge-track {stroke:var(--surface-alt)}
.gauge-value {stroke:var(--accent)}
.gauge-value.warning {stroke:var(--amber-text)}
.gauge-value.danger {stroke:var(--red-text)}
.delivery-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr));gap:.45rem;padding:.15rem .95rem .7rem}
.delivery-stat {display:grid;justify-items:start;align-content:space-between;gap:.18rem;padding:.4rem .55rem;background:var(--surface-alt);color:var(--text);border:1px solid var(--line);border-radius:.65rem;text-align:left;font-size:.85rem}
.delivery-stat strong {font-size:1.35rem;font-variant-numeric:tabular-nums}
.compact-dashboard .delivery-stat strong {font-size:1.9rem}
.compact-dashboard .delivery-stat .dashboard-bar {width:100%;height:.35rem}
.delivery-stat .order-priority {padding:.15rem .35rem;white-space:normal}
.delivery-stat:is(.overdue,.urgent).critical-indicator {background:var(--red-bg);color:var(--red-text);border-color:#db5362}
.delivery-stat.risk {background:var(--amber-bg);color:var(--amber-text)}
.delivery-stat:hover {border-color:currentColor}
.delivery-note {font-size:.84rem;margin:.1rem 1rem .9rem}
.pill.neutral {background:var(--surface-alt);color:var(--muted)}
.pill.order-priority {display:inline-flex;align-items:center;gap:.4rem}
.order-priority::before {content:"";width:.38rem;height:.38rem;border-radius:50%;background:currentColor}
.pill.order-priority.urgent {background:var(--red-bg);color:var(--red-text)}
.pill.order-priority.high {background:var(--amber-bg);color:var(--amber-text)}
.pill.order-priority.normal {background:var(--tint);color:var(--link)}
.pill.order-priority.veryLow {background:var(--surface-alt);color:var(--muted)}
.order-delivery-detail .pill {margin-left:.3rem}
.critical-indicator {animation:critical-highlight 3s ease-in-out infinite}
.critical-gauge {border-radius:.65rem}
@keyframes critical-highlight {
  0%,100% {box-shadow:0 0 0 1px #df4b591a}
  50% {box-shadow:0 0 0 2px #df4b5966,0 0 .6rem #df4b5940}
}
@media(prefers-reduced-motion:reduce){.critical-indicator {animation:none}}
.productivity-chart {padding:.5rem 1rem 1rem}
.productivity-chart p {margin:.25rem 0 .8rem;font-size:.84rem}
.productivity-scroll {display:flex;gap:.45rem;overflow-x:auto;padding-top:1rem}
.productivity-axis {display:flex;flex:none;flex-direction:column;justify-content:space-between;height:7.4rem;margin:-.35rem 0 0;color:var(--muted);font-size:.75rem;text-align:right}
.productivity-bars {display:flex;flex:1;gap:clamp(.45rem,1vw,1rem);margin:0;padding:0 .3rem;list-style:none}
.productivity-bar {flex:1 0 4.4rem;min-width:0;display:grid;grid-template-rows:7rem auto;gap:.35rem;text-align:center}
.productivity-bar > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.8rem}
.productivity-plot {display:flex;align-items:end;justify-content:center;border-block:1px solid var(--line);background:linear-gradient(var(--line),var(--line)) center/100% 1px no-repeat}
.productivity-column {position:relative;width:min(100%,3.2rem);height:var(--bar-height);min-height:2px;border-radius:.35rem .35rem 0 0;background:var(--indicator)}
.productivity-column strong {position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:.82rem;color:var(--text)}
@media(min-width:1050px){
  .dashboard-layout.has-pickers {grid-template-columns:minmax(0,1fr) clamp(14rem,18vw,17rem)}
  .dashboard-side {margin-top:3.65rem}
}
@media(min-width:1280px){
  .dashboard-mini-kpis:has(> :nth-child(4)) {grid-template-columns:repeat(4,minmax(0,1fr))}
  .dashboard-tiles:has(> :nth-child(3)) {grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .dashboard-tiles {grid-template-columns:minmax(0,1fr)}
  .dashboard-gauge text {font-size:20px}
}

.wms-help-panel .wms-help-mic { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.wms-help-mic[aria-pressed="true"] { background: #943b33; color: white; }
.wms-help-voice-status:not(:empty) { padding: 0 .8rem .65rem; }
.wms-help-message button { display: block; margin-top: .45rem; }

label.field[hidden] {display:none}
.order-screenshot, .order-review {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.order-screenshot > *, .order-review > * { min-width: 0; max-width: 100%; }
.order-screenshot p { margin: 0; }
.order-print-progress { display:flex; align-items:center; gap:10px; width:100%; color:var(--muted); font-size:.85rem; font-variant-numeric:tabular-nums; }
.order-print-progress[hidden] { display:none; }
.order-print-progress progress { flex:1; min-width:0; height:14px; accent-color:var(--indicator); }
.order-print-progress span:not(:empty) { min-width:3ch; text-align:right; }
.order-screenshot summary { cursor: pointer; }
.order-screenshot img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; margin-top: 8px; }
.order-screenshot pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.order-review ul { padding-inline-start: 20px; margin: 0; overflow-wrap: anywhere; }
.order-review [data-review-issues] { color:var(--red-text); font-weight:650; }
.order-review [data-open-existing-order][hidden] { display:none; }
.order-review label { display: flex; align-items: center; gap: 8px; }
.order-review input { width: auto; min-height: 0; }
.order-review[hidden] { display: none; }
.order-scan-items { min-width:0; }
.order-scan-heading, .order-scan-line { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.order-scan-heading h3, .order-scan-items > p { margin:.4rem 0; }
.order-scan-heading output { font-size:.9rem; color:var(--muted); }
.order-scan-list { display:grid; gap:8px; margin:10px 0; }
.order-scan-item { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:10px; overflow-wrap:anywhere; }
.order-scan-select { display:flex; align-items:center; gap:8px; font-weight:650; }
.order-scan-select input { width:20px; height:20px; min-height:0; margin:0; }
.order-scan-fields { display:grid; gap:8px; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.7fr); }
.order-scan-fields input { min-width:0; width:100%; }
.order-scan-item.order-scan-missing { border-color:var(--red-text); }
.order-scan-item [data-state="missing"] { color:var(--red-text); font-weight:700; }
.order-scan-item [data-state="check"] { color:var(--amber-text); font-weight:650; }
