/* Warehouse page. Scoped under .wh so the kiosk's big touch-sized inputs do not leak in. */
.wh input, .wh select, .wh button, .wh textarea { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.wh button { width: auto; }
.wh textarea { width: 100%; border: 1px solid #cbd5e1; font-family: Arial, Helvetica, sans-serif; resize: vertical; }
.wh label { font-size: 12px; margin: 8px 0 3px; }
.wh h2 { margin: 0; } .wh h3 { margin: 0 0 4px; font-size: 16px; } .wh h4 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wh .wh-title, .wh .wh-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wh .wh-bar { margin-top: 10px; }
.wh .wh-bar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.wh .wh-bar input[type="search"] { width: 200px; }
.wh #whUnit { width: auto; min-width: 160px; font-weight: 700; }
.wh button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wh button:disabled { opacity: .45; cursor: default; }
.wh .wh-check { display: inline-flex; align-items: center; margin: 0; font-weight: 600; }
.wh .wh-check input { margin-right: 6px; }
.wh .wh-help { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.wh .wh-status { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #e2e8f0; }
.wh .wh-status.ok { background: #dcfce7; color: #166534; } .wh .wh-status.warn { background: #fef3c7; color: #92400e; } .wh .wh-status.bad { background: #fee2e2; color: #991b1b; }
.wh .wh-banner { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-weight: 700; font-size: 13px; }
.wh .wh-banner button { margin-left: 6px; }
.wh .wh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wh .wh-stage { position: relative; padding: 0; overflow: hidden; margin-bottom: 18px; }
.wh #whCanvas { height: 72vh; height: 72dvh; max-height: 820px; min-height: 420px; width: 100%; background: #f1f5f9; position: relative; -webkit-user-select: none; user-select: none; }
.wh #whCanvas canvas { display: block; touch-action: none; }
.wh .wh-err { padding: 30px; font-weight: 700; color: #b91c1c; }
.wh .wh-tip { display: none; position: absolute; z-index: 5; pointer-events: none; background: rgba(15, 23, 42, .92); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; max-width: 240px; }
.wh .wh-tip.drag.ok { background: #15803d; font-weight: 800; } .wh .wh-tip.drag.bad { background: #b91c1c; font-weight: 800; }
.wh .wh-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 6; max-width: 90%; text-align: center; }
.wh .wh-toast.show { opacity: 1; } .wh .wh-toast.bad { background: #b91c1c; }
.wh .wh-side .card { margin-bottom: 14px; }
.wh .wh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wh .wh-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.wh .wh-swatches button { width: 28px; height: 28px; padding: 0; border-radius: 8px; border: 2px solid #cbd5e1; font-size: 10px; }
.wh .wh-swatches button[data-color=""] { width: auto; padding: 0 8px; background: #fff; }
.wh .wh-swatches button.sel { border-color: #0f172a; box-shadow: 0 0 0 2px #facc15; }
.wh .wh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wh .wh-stack { display: grid; gap: 4px; }
.wh .wh-stack button, .wh .wh-results button { text-align: left; font-weight: 600; width: 100%; }
.wh .wh-stack button.sel { border-color: #0f172a; background: #fefce8; }
.wh .wh-results { max-height: 220px; overflow: auto; display: grid; gap: 4px; }
.wh .wh-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; font-size: 13px; }
.wh .wh-summary i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.wh table tr.sel td { background: #fefce8; } .wh table tbody tr { cursor: pointer; }
.wh-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 23, 42, .55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; }
.wh-modal .wh-modal-body { background: #fff; border-radius: 18px; width: min(620px, 100%); max-height: 85vh; overflow: auto; padding: 18px; box-shadow: var(--shadow); }
.wh-modal button { width: auto; padding: 7px 12px; font-size: 13px; }
.wh-hist > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
@media (max-width: 1000px) { .wh .wh-grid { grid-template-columns: 1fr; } .wh .wh-bar input[type="search"] { width: 100%; } }

/* view switch, More menu, help, notes, diagnostics */
.wh .wh-seg { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.wh .wh-seg button { border: 0; border-radius: 0; border-right: 1px solid #cbd5e1; }
.wh .wh-seg button:last-child { border-right: 0; }
.wh details.wh-more { position: relative; }
.wh details.wh-more > summary { list-style: none; cursor: pointer; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-weight: 700; font-size: 13px; background: #fff; }
.wh details.wh-more > summary::-webkit-details-marker { display: none; }
.wh .wh-more-menu { position: absolute; right: 0; top: 40px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; display: grid; gap: 6px; min-width: 210px; }
.wh .wh-more-menu button { text-align: left; width: 100%; }
.wh details.wh-helpbox { margin-top: 8px; } .wh details.wh-helpbox > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wh .wh-banner.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.wh pre.wh-diag { background: #f1f5f9; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }

/* phones and small tablets */
@media (max-width: 700px) {
  main { padding: 10px; }
  .wh .card { padding: 12px; border-radius: 14px; }
  .wh input, .wh select, .wh button, .wh textarea { font-size: 16px; padding: 9px 12px; min-height: 40px; }   /* 16px stops iOS zooming into fields */
  .wh .wh-title { gap: 6px; } .wh #whUnit { flex: 1; min-width: 0; }
  .wh .wh-status { margin-left: 0; }
  .wh .wh-bar { gap: 6px; }
  .wh .wh-bar input[type="search"] { width: 100%; order: 9; }
  .wh .wh-seg { order: 5; }
  .wh #whCanvas { height: 58vh; height: 58dvh; min-height: 320px; }
  .wh .wh-more-menu { position: static; box-shadow: none; margin-top: 6px; }
  .wh details.wh-more { flex: 1 1 100%; order: 10; }
  .wh .wh-swatches button { width: 40px; height: 40px; }
  .wh .wh-two { grid-template-columns: 1fr; }
  .wh .wh-stage { margin-bottom: 12px; }
}

/* tabs, cage entry, items, dispatched */
.wh [hidden] { display: none !important; }
.wh .wh-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; border-bottom: 2px solid var(--line); padding-bottom: 0; }
.wh .wh-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; background: transparent; font-weight: 700; padding: 9px 16px; margin-bottom: -2px; }
.wh .wh-tabs button.active { border-bottom-color: var(--primary); color: var(--primary2); background: #f0fdfa; }
.wh .wh-pane > .card { margin-bottom: 16px; }
.wh .wh-layoutbar { margin-bottom: 14px; }
.wh .wh-entry { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr .6fr 1fr; gap: 10px; align-items: end; }
.wh .wh-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.wh .wh-filters input[type="search"] { min-width: 220px; flex: 1; }
.wh .wh-inl { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.wh .wh-entrytable td, .wh .wh-itemtable td { vertical-align: middle; }
.wh .wh-entrytable select, .wh .wh-entrytable input[type="text"], .wh .wh-entrytable input[type="number"], .wh .wh-itemtable select, .wh .wh-itemtable input[type="text"] { width: 100%; min-width: 120px; padding: 6px 8px; }
.wh .wh-entrytable input[type="number"] { min-width: 70px; max-width: 90px; }
.wh .wh-entrytable td.we-code { white-space: nowrap; } .wh .we-code small { display: block; color: var(--muted); font-size: 11px; }
.wh .we-actions { white-space: nowrap; } .wh .we-actions button { padding: 5px 9px; margin-right: 4px; font-size: 12px; }
.wh button.linklike { border: 0; background: transparent; padding: 0; color: var(--primary2); font-weight: 800; text-decoration: underline; cursor: pointer; font-size: 13px; }
.wh .wh-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 12px; margin-bottom: 10px; border-radius: 12px; background: #fefce8; border: 1px solid #fde68a; }
.wh .wh-additem { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.wh .wh-additem input[type="text"] { flex: 1; min-width: 200px; } .wh .wh-additem select { min-width: 160px; width: auto; }
.wh details.wh-bulkadd { flex: 1 1 100%; } .wh details.wh-bulkadd summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wh details.wh-bulkadd textarea { margin: 6px 0; }
.wh .wh-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wh .wh-listrow { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .wh .wh-listrow input { flex: 1; } .wh .wh-listrow i { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 14px; }
.wh .wh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; } .wh .wh-chips span { background: #f1f5f9; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; }
.wh .wh-dlist { max-height: 160px; overflow: auto; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 13px; }
.wh .wh-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 700; font-size: 13px; }
.wh input.bad { border-color: #dc2626; background: #fef2f2; }
.wh-modal .wh-modal-body select, .wh-modal .wh-modal-body input { padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.wh-modal .wh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .wh-modal label { font-size: 12px; margin: 8px 0 3px; }
.wh-modal .wh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wh-modal .wh-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 700; font-size: 13px; }
.wh-modal .wh-dlist { max-height: 160px; overflow: auto; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 13px; }
@media (max-width: 1000px) { .wh .wh-entry { grid-template-columns: 1fr 1fr; } .wh .wh-two2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .wh .wh-tabs button { padding: 9px 10px; font-size: 14px; }
  .wh .wh-entry { grid-template-columns: 1fr; }
  .wh .wh-entrytable select, .wh .wh-entrytable input[type="text"], .wh .wh-itemtable select, .wh .wh-itemtable input[type="text"] { font-size: 16px; min-height: 40px; }
  .wh .we-actions button { min-height: 36px; }
  .wh-modal .wh-two { grid-template-columns: 1fr; } .wh-modal input, .wh-modal select { font-size: 16px; min-height: 40px; }
}
.wh .wh-filters select { width: auto; min-width: 150px; }
.wh .wh-itemtable, .wh .wh-entrytable { width: 100%; }
.wh .wh-itemtable input[data-f="name"] { min-width: 260px; }
.wh .wh-entrytable select[data-f="item"] { min-width: 200px; }
.wh .wh-bar select { width: auto; min-width: 150px; }
.wh .wh-bar input[type="search"] { flex: 1; min-width: 180px; max-width: 320px; }

/* phones: each cage / item becomes a card instead of a wide table */
@media (max-width: 700px) {
  .wh .wh-entrytable, .wh .wh-itemtable { width: 100%; min-width: 0; display: block; }
  .wh .wh-entrytable thead, .wh .wh-itemtable thead { display: none; }
  .wh .wh-entrytable tbody, .wh .wh-itemtable tbody { display: block; }
  .wh .wh-entrytable tr, .wh .wh-itemtable tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 8px 10px; background: #fff; }
  .wh .wh-entrytable td, .wh .wh-itemtable td { display: block; border: 0; padding: 4px 0; background: transparent !important; width: 100%; }
  .wh .wh-entrytable td:nth-child(1) { display: inline-block; width: auto; margin-right: 8px; vertical-align: middle; }
  .wh .wh-entrytable td:nth-child(2) { display: inline-block; width: auto; vertical-align: middle; }
  .wh .wh-entrytable select, .wh .wh-entrytable input[type="text"], .wh .wh-entrytable input[type="number"], .wh .wh-itemtable select, .wh .wh-itemtable input[type="text"] { max-width: none; width: 100%; min-width: 0; }
  .wh .we-actions { display: flex; flex-wrap: wrap; gap: 6px; } .wh .we-actions button { flex: 1 1 auto; margin: 0; }
  .wh .wh-itemtable td:nth-child(3) { color: var(--muted); font-size: 12px; }
  .wh .table-wrap { border: 0; background: transparent; }
}

/* the All cages list is editable in place */
.wh #whTableBody select, .wh #whTableBody input { width: 100%; min-width: 90px; margin: 0; padding: 5px 6px; font-size: 13px; box-sizing: border-box; }
.wh #whTableBody td:nth-child(2) select { min-width: 190px; }
.wh #whTableBody td:nth-child(3) select { min-width: 100px; }
.wh #whTableBody td:nth-child(4) input { min-width: 78px; max-width: 110px; }
.wh #whTableBody td:nth-child(5) input { min-width: 150px; }
.wh #whTableBody tr.sel td { background: #fffbe0; }

/* Goods in / Sorting / Empty IBCs / Live inventory */
.wh .wh-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.wh .wh-form .wh-wide { grid-column: 1 / -1; }
.wh .wh-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.wh .wh-form input, .wh .wh-form select { width: 100%; box-sizing: border-box; margin: 0; }
.wh .wh-chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #334155; white-space: normal; line-height: 1.35; }
.wh .wh-chip.ok { background: #dcfce7; color: #166534; } .wh .wh-chip.warn { background: #fef3c7; color: #92400e; }
.wh .wh-chip.bad { background: #fee2e2; color: #991b1b; } .wh .wh-chip.info { background: #dbeafe; color: #1e40af; }
.wh .wh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.wh .wh-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.wh .wh-kpi b { display: block; font-size: 26px; line-height: 1.1; } .wh .wh-kpi span { font-size: 12px; color: #475569; }
.wh .wh-kpi.ok b { color: #15803d; } .wh .wh-kpi.warn b { color: #b45309; } .wh .wh-kpi.bad { background: #fef2f2; border-color: #fecaca; } .wh .wh-kpi.bad b { color: #b91c1c; }
.wh .wh-kpi.big { grid-column: span 2; }
.wh .wh-rowbtns { white-space: nowrap; } .wh .wh-rowbtns button { margin-right: 4px; padding: 4px 10px; font-size: 12.5px; }
.wh .wh-waiting { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.wh .wh-waiting button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.wh .wh-waiting button.sel { border-color: var(--primary); background: #f0fdfa; }
.wh .wh-invtable tfoot th { background: #f1f5f9; position: sticky; bottom: 0; }
.wh .wh-rowbad td { background: #fff7f7; }
.wh .wo-loadin { width: 110px; margin: 0; }
@media (max-width: 760px) {
  .wh .wh-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh .wh-kpi.big { grid-column: span 2; }
  .wh .wh-kpi b { font-size: 22px; }
}
@media (max-width: 420px) { .wh .wh-form { grid-template-columns: minmax(0, 1fr); } }

/* Fullscreen map, including the kiosk iframe fallback. */
.wh .wh-map-controls { display: none; }
.wh .wh-stage.wh-map-fullscreen { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0; border: 0; border-radius: 0; z-index: 10000; padding: 0; background: #f1f5f9; }
.wh .wh-stage.wh-map-fullscreen #whCanvas { height: 100%; width: 100%; max-height: none; min-height: 0; }
.wh .wh-map-fullscreen .wh-map-controls { display: flex; position: absolute; top: 12px; right: 12px; gap: 8px; z-index: 8; padding: 6px; background: #ffffffed; border-radius: 12px; box-shadow: 0 2px 12px #0f172a33; }
.wh .wh-map-controls button { background: #fff; color: #0f172a; border: 1px solid #94a3b8; min-height: 40px; font-weight: 700; }
.wh button[aria-pressed="true"] { background: #0f172a; color: #fff; }

.wh #whBayNotice { display: none !important; }

/* Bay names are edited as one validated set, with a floor-position preview. */
.wh-modal .wh-bay-editor { width: min(1050px, 96vw); }
.wh-bay-editor h3 { margin-top: 0; }
.wh-bay-editor p { font-size: 13px; line-height: 1.45; }
.wh-bay-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; }
.wh-bay-table-wrap { max-height: 53vh; overflow: auto; }
.wh-bay-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.wh-bay-table th { position: sticky; top: 0; background: #f1f5f9; text-align: left; padding: 8px; }
.wh-bay-table td { padding: 5px 8px; border-bottom: 1px solid #e2e8f0; }
.wh-bay-table tr.selected td { background: #fefce8; }
.wh-bay-table input { width: 82px; padding: 7px; font-size: 14px; border: 1px solid #94a3b8; border-radius: 6px; text-transform: uppercase; }
.wh-bay-table input[aria-invalid="true"] { border: 2px solid #b91c1c; }
.wh-bay-editor svg { display: block; width: 100%; max-height: 48vh; }
.wh-bay-editor [data-bay-locate] { cursor: pointer; }
.wh-bay-editor .wh-bay-error { color: #b91c1c; font-weight: 700; }
.wh-bay-editor .wh-bay-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.wh-bay-buttons span { flex: 1; }
.wh-bay-buttons button { min-height: 38px; }
@media (max-width: 650px) { .wh-bay-editor-grid { grid-template-columns: minmax(0, 1fr) 110px; gap: 6px; } .wh-bay-table td, .wh-bay-table th { padding: 5px 3px; } .wh-bay-table td:nth-child(2), .wh-bay-table th:nth-child(2), .wh-bay-table td:nth-child(3), .wh-bay-table th:nth-child(3) { display: none; } .wh-bay-table input { width: 66px; } }

.wh-modal .wh-middle-print { width: min(650px, 94vw); }
.wh-middle-print h3 { margin-top: 0; }
.wh-middle-print p { font-size: 13px; line-height: 1.45; }
.wh-middle-print-table { max-height: 48vh; overflow: auto; margin: 12px 0; }
.wh-middle-print table { border-collapse: collapse; width: 100%; }
.wh-middle-print th, .wh-middle-print td { padding: 8px 16px; border-bottom: 1px solid #e2e8f0; text-align: center; }
.wh-middle-print thead th { position: sticky; top: 0; background: #f1f5f9; }
.wh-middle-print input[type="checkbox"] { width: 22px; height: 22px; accent-color: #0f766e; }
.wh-middle-print-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-middle-print-actions.end { justify-content: flex-end; }
#whMiddlePrintError { color: #b91c1c; font-weight: 700; }

.wh-bay-cage-contents { display: grid; grid-template-columns: 24px minmax(150px, 1fr); gap: 6px; align-items: start; padding: 5px 0; }
.wh-bay-cage-contents + .wh-bay-cage-contents { border-top: 1px dashed #cbd5e1; }
.wh-bay-cage-contents > b { padding-top: 8px; }
.wh-bay-cage-contents select, .wh-bay-cage-contents input { width: 100%; max-width: 290px; padding: 6px; font-size: 12px; border: 1px solid #94a3b8; border-radius: 6px; text-transform: none; }
.wh-bay-cage-contents input { display: block; margin-top: 4px; }
@media (max-width: 650px) { .wh-bay-editor-grid { grid-template-columns: minmax(0, 1fr); } .wh-bay-editor-grid > aside { grid-row: 1; display: flex; align-items: center; gap: 10px; } .wh-bay-editor #whBayMap { width: 100px; flex-shrink: 0; } .wh-bay-editor svg { height: 110px; } .wh-bay-table-wrap { max-height: 40vh; } }

.wh .wh-plan-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.wh .wh-plan-toolbar h3{margin:0}.wh .wh-plan-toolbar span{color:#64748b}.wh .wh-plan-scroll{overflow-x:auto;padding-bottom:8px}.wh .wh-plan-elevation{display:grid;gap:8px}.wh .wh-plan-bay{min-width:0;display:grid;grid-template-rows:32px;grid-auto-rows: minmax(290px,auto);gap:8px}.wh .wh-plan-bay h4{font-size:18px;text-align:center;margin:0}.wh .wh-plan-cage{padding:10px;border:1px solid #475569;border-left:7px solid var(--plan-color);border-radius:5px;min-width:0;display:flex;flex-direction:column;gap:8px}.wh .wh-plan-cage>b{font-size:16px}.wh .wh-plan-cage label{display:flex;flex-direction:column;gap:3px;font-size:13px;font-weight:600;min-width:0}.wh .wh-plan-cage input,.wh .wh-plan-cage select,.wh .wh-plan-cage textarea{width:100%;min-width:0;background:#fff;color:#0f172a;font-size:15px;min-height:38px}.wh .wh-plan-cage details{margin-top:auto}.wh .wh-plan-cage summary{cursor:pointer;font-size:13px}.wh .wh-plan-vacant{border:1px solid #cbd5e1;border-radius:5px;background:#f1f5f9;color:#64748b;padding:12px;display:flex;flex-direction:column;gap:16px}.wh .wh-plan-gap{writing-mode:vertical-rl;text-align:center;align-content:center;background:#e2e8f0;border:1px dashed #94a3b8;color:#475569;padding:8px;margin-top:40px}
.wh-bay-table td label{display:flex;flex-direction:column;gap:3px;margin-bottom:6px;font-size:12px}.wh-bay-table [data-position]{width:80px}.wh-bay-table [data-count]{min-width:65px}.wh-bay-cage-contents textarea{width:100%;min-height:55px}.wh-bay-table td:last-child{min-width:240px}.wh-bay-editor{max-width:1250px!important}@media(max-width:700px){.wh-bay-table th:nth-child(2),.wh-bay-table td:nth-child(2),.wh-bay-table th:nth-child(3),.wh-bay-table td:nth-child(3){display:table-cell!important}.wh-bay-table-wrap{overflow-x:auto}.wh-bay-table{min-width:650px}}
.wh #whTab-planentry,.wh .wh-plan-section,.wh .wh-plan-toolbar,.wh .wh-plan-scroll{min-width:0;max-width:100%;box-sizing:border-box}.wh .wh-plan-toolbar select{max-width:100%}.wh .wh-plan-cage label{margin:0}.wh .wh-plan-scroll{scrollbar-width:auto;scrollbar-color:#64748b #e2e8f0}.wh .wh-plan-scroll::-webkit-scrollbar{height:12px}.wh .wh-plan-scroll::-webkit-scrollbar-thumb{background:#64748b;border-radius:8px}.wh .wh-plan-scroll::-webkit-scrollbar-track{background:#e2e8f0}

/* Dispatched tab: loads you can print a dispatch note for */
.wh details.wh-loads { margin: 6px 0 12px; } .wh details.wh-loads > summary { cursor: pointer; padding: 4px 0; }

/* ruled tables: every table on the Warehouse page has lines round every cell */
.wh table { border-collapse: collapse; }
.wh table th, .wh table td { border: 1px solid #94a3b8; }
.wh table thead th { background: #e2e8f0; }
.wh .wh-export { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.wh .wh-export button { padding: 4px 10px; font-size: 12.5px; }
.wh .wh-tablebar { margin: 4px 0 8px; text-align: right; }
