/* OCEMS app layer on top of the SYZE design system (tokens.css + syze.css).
   The design system previews are fixed 1440 x 900 pictures; the real app
   fills the window, scrolls its content and folds down to a phone. */
html, body { margin: 0; background: var(--surface); }
body.sz { min-height: 100vh; }
a { color: inherit; }
.sw-app { width: 100%; height: 100vh; position: relative; }
.sw-main { overflow-y: auto; overflow-x: hidden; }
.sw-nav { overflow-y: auto; }
.sw-nav a { text-decoration: none; height: 32px; }
.sw-nav a:hover { background: var(--chrome-raised); color: var(--chrome-ink); }
.sw-nav a.is-active:hover { background: var(--brand-steel); color: var(--on-action); }
.sw-nav-sec { padding-top: 10px; }
.sw-top .sw-picker { position: relative; }
.sw-picker select { appearance: none; background: transparent; border: 0; color: inherit; font: inherit; width: 100%;
  padding-right: 22px; cursor: pointer; outline: none; }
.sw-picker select option { color: #0e2235; }
.sw-iconbtn { cursor: pointer; background: transparent; border: 0; }
.sw-iconbtn:hover { color: var(--chrome-ink); }
.sw-menu-btn { display: none; }
form.inline { display: inline; margin: 0; }
.sw-input input, .sw-input select, .sw-input textarea { border: 0; background: transparent; color: inherit; font: inherit; width: 100%;
  outline: none; min-width: 0; }
.sw-input:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.sw-input select option { color: #0e2235; }
textarea.sw-textarea { width: 100%; box-sizing: border-box; min-height: 120px; border-radius: var(--radius-md); background: var(--surface-raised);
  color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); border: 0; padding: 10px 12px; font: 13px/19px var(--font-mono); }
textarea.sw-textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.sw-card { overflow: hidden; }
.sw-card .sw-table-wrap { overflow-x: auto; margin: 0 -4px; }
.sw-flash { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--ok); font-size: 14px; }
.sw-flash.is-alarm { box-shadow: inset 0 0 0 1.5px var(--alarm); }
.sw-flash.is-warn { box-shadow: inset 0 0 0 1.5px var(--warn); }
.sw-flash .sz-icon { width: 20px; height: 20px; }
.sw-empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--ink-muted); }
.sw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.sw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.sw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.sw-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3) var(--space-4); }
.sw-actions-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-top: var(--space-4); }
.sw-tile-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sz-tile.is-web { min-height: 168px; }
.sw-tabs a { padding: 10px 2px; font-size: 15px; font-weight: 600; color: var(--ink-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; text-decoration: none; }
.sw-tabs a.is-active { color: var(--ink); border-bottom-color: var(--brand-steel); }
.sw-seg a, .sw-seg button { border:0; background:transparent; color:var(--ink-muted); cursor:pointer; font:inherit; height: 34px; padding: 0 var(--space-3); border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.sw-seg a.is-active, .sw-seg button.is-active { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sw-table a { text-decoration: none; }
.sw-table a:hover { text-decoration: underline; }
.sw-table tr.is-click { cursor: pointer; }
.sw-table tr.is-click:hover td { background: var(--surface-sunken); }
.sw-table td.wrap { white-space: normal; }
.sw-chart-box { height: 420px; }
.sw-chart-box .u-legend { color: var(--ink); font-size: 13px; }
.u-axis { color: var(--ink-muted); }
.sw-pager { display: flex; gap: var(--space-2); justify-content: flex-end; align-items: center; color: var(--ink-muted); font-size: 13px; margin-top: var(--space-3); }
.sw-badge-test { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--service); color: var(--on-action); font-size: 12px; font-weight: 700; }
.sw-kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px var(--space-4); font-size: 14px; margin: 0; }
.sw-kv dt { color: var(--ink-muted); } .sw-kv dd { margin: 0; overflow-wrap: anywhere; }
.sw-modal { position: fixed; inset: 0; background: rgba(6, 10, 20, 0.6); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.sw-modal.is-open { display: flex; }
.sw-modal > .sw-card { max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; }
.sw-map-real { height: calc(100vh - 220px); min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-raised); color: var(--ink); }
.sz-pill { white-space: nowrap; }
.sw-login { width: 100%; height: 100vh; }
.sw-login-form input { border: 0; background: transparent; color: inherit; font: inherit; width: 100%; outline: none; }
.sw-help.is-alarm { color: var(--alarm-ink); }
[data-theme="dark"] .sw-help.is-alarm { color: var(--alarm-bright); }
.sw-mono { font-family: var(--font-mono); font-size: 13px; }
.sw-right { text-align: right; }
.sw-scroll-x { overflow-x: auto; }
.htmx-indicator { opacity: 0; transition: opacity .2s; } .htmx-request .htmx-indicator { opacity: 1; }
@media (prefers-color-scheme: light) { :root[data-theme="device"] { color-scheme: light; } }

/* phones and small tablets */
@media (max-width: 900px) {
  .sw-app { grid-template-columns: 1fr; }
  .sw-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sw-app.is-menu .sw-side { transform: none; box-shadow: var(--shadow-dialog); }
  .sw-top, .sw-main { grid-column: 1; }
  .sw-menu-btn { display: grid; }
  .sw-top { padding: 0 var(--space-3); gap: var(--space-2); }
  .sw-top h1 { font-size: 20px; }
  .sw-crumb { display: none; }
  .sw-picker { min-width: 0; max-width: 150px; }
  .sw-live { display: none; }
  .sw-main { padding: var(--space-3); }
  .sw-grid-2, .sw-grid-3 { grid-template-columns: 1fr; }
  .sw-grid-4 { grid-template-columns: 1fr 1fr; }
  .sw-tile-grid { grid-template-columns: 1fr 1fr; }
  .sw-kv { grid-template-columns: 1fr; }
  .sw-login { grid-template-columns: 1fr; }
  .sw-login-art { display: none; }
  .sw-login-form { padding: 32px 20px; }
}

/* lists, side layouts, sub-headings */
.sw-grid-side { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-4); align-items: start; }
.sw-grid-side > div { display: grid; gap: var(--space-4); min-width: 0; }
.sw-list { display: grid; gap: 2px; }
.sw-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm, 6px); color: var(--ink); text-decoration: none; }
.sw-list a span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-list a:hover { background: var(--surface-2, rgba(127,127,127,.08)); }
.sw-list a.is-active { background: var(--action-tint, rgba(30,120,255,.14)); font-weight: 600; }
.sw-list .sz-icon { width: 18px; height: 18px; flex: none; }
.sw-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
h3.sw-sub { font: 600 14px var(--font-sans); margin: 14px 0 8px; color: var(--ink-muted); }
.sw-help.is-alarm { color: var(--alarm); } .sw-help.is-warn { color: var(--warn); } .sw-help.is-ok { color: var(--ok); }
.sw-stat-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.sw-stat-row .sw-card { flex: 1 1 180px; margin: 0; }
.sw-chart { width: 100%; min-height: 320px; }
.sw-map { width: 100%; height: calc(100vh - 220px); min-height: 420px; border-radius: var(--radius-md, 10px); }
@media (max-width: 900px) { .sw-grid-side { grid-template-columns: 1fr; } }
.sw-input select { -webkit-appearance: none; appearance: none; background: transparent; }
a.sz-btn, a.sz-btn:hover { text-decoration: none; }
.sw-main > * { flex-shrink: 0; }
.sw-help .sz-icon, p .sz-icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

/* ---------------------------------------------------------------- 1.0.7 */
[hidden] { display: none !important; }
/* finder (top bar and form fields) */
.sw-ta { position: relative; }
.sw-ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 380px; overflow-y: auto;
  background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-dialog), inset 0 0 0 1px var(--line);
  padding: 4px; min-width: 300px; }
.sw-ta-head { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 10px 4px; }
.sw-ta-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.sw-ta-item span { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-ta-item small { font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sw-ta-item.is-active, .sw-ta-item:hover { background: var(--surface-sunken); }
.sw-ta-item.is-active { box-shadow: inset 3px 0 0 var(--brand-steel); }
.sw-picker.sw-ta { min-width: 320px; cursor: text; }
.sw-picker .sw-ta-q { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: inherit; font: inherit; font-weight: 600; }
.sw-picker .sw-ta-q::placeholder { color: var(--chrome-ink-muted); font-weight: 500; }
.sw-picker.is-open, .sw-picker:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.sw-picker .sw-ta-list { min-width: 460px; left: auto; right: 0; max-height: min(70vh, 520px); }
.sw-ta-item mark { background: rgba(58, 125, 174, .35); background: color-mix(in srgb, var(--brand-steel) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sw-ta-item span em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-left: 8px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px; border: 1px solid currentColor; }
.sw-ta-item span em.is-test { color: var(--warn); }
.sw-ta-item span em.is-off { color: var(--ink-muted); }
.sw-ta-more { display: block; padding: 9px 10px 7px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600;
  color: var(--brand-steel); text-decoration: none; }
.sw-ta-more:hover { text-decoration: underline; }
.sw-ta .sw-input .sw-ta-q { font: inherit; }

/* one industry: name, state and its tabs */
.sw-indbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: -4px; }
.sw-indbar-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sw-indbar-head a { text-decoration: none; font-size: 17px; }
.sw-indbar .sw-tabs { overflow-x: auto; scrollbar-width: thin; gap: var(--space-5); }
.sw-indbar .sw-tabs a { white-space: nowrap; }

/* editable tables (What to send) */
.sw-grid-edit td { padding: 5px 6px; vertical-align: middle; }
.sw-grid-edit th { padding: 8px 6px; }
.sw-grid-edit .c, .sw-table .c { text-align: center; }
.sw-cell { height: 32px; padding: 0 8px; }
.sw-cell select { padding-right: 4px; }
.sw-cell.is-need { box-shadow: inset 0 0 0 2px var(--warn); }
.sw-check { width: 18px; height: 18px; accent-color: var(--action); }
.sw-mini { width: 26px; height: 26px; border: 0; background: transparent; color: var(--ink-muted); border-radius: 6px; display: inline-grid;
  place-items: center; cursor: pointer; padding: 0; }
.sw-mini:hover { background: var(--surface-sunken); color: var(--ink); }
.sw-mini .sz-icon { width: 16px; height: 16px; }
.sw-ord { white-space: nowrap; width: 58px; }
.sw-del { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; color: var(--ink-muted); position: relative; }
.sw-del input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.sw-del .sz-icon { width: 18px; height: 18px; }
.sw-del:hover { background: var(--surface-sunken); color: var(--alarm); }
.sw-del:has(input:checked) { background: var(--alarm); color: var(--on-action); }
.sw-grid-row.is-off td:not(:last-child):not(:first-child) { opacity: .55; }
.sw-grid-row.is-del td:not(:last-child) { opacity: .4; text-decoration: line-through; }
.sw-now { min-width: 190px; white-space: normal !important; }
.sw-now .sz-pill { margin-right: 4px; }
.sw-fillbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 10px; border-radius: var(--radius-md);
  background: var(--surface-sunken); }
.sw-rowcounts { display: flex; gap: 6px; flex-wrap: wrap; align-self: center; }

/* overview tiles and lists */
.sw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); }
a.sw-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; border-left: 4px solid var(--line-strong); }
a.sw-tile:hover { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--focus); }
a.sw-tile b { font: 700 30px/34px var(--font-display); font-variant-numeric: tabular-nums; }
a.sw-tile span { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
a.sw-tile.is-alarm { border-left-color: var(--alarm); } a.sw-tile.is-warn { border-left-color: var(--warn); }
a.sw-tile.is-ok { border-left-color: var(--ok); } a.sw-tile.is-zero { opacity: .55; }
a.sw-tile.is-zero b { color: var(--ink-muted); }
.sw-sev { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.sw-sev.is-alarm { background: var(--alarm); } .sw-sev.is-warning { background: var(--warn); } .sw-sev.is-info { background: var(--line-strong); }
.sw-select-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--surface-sunken); font-size: 14px; margin-bottom: 10px; }
.sw-select-banner .when-all { display: none; } .sw-select-banner.is-all .when-all { display: inline; }
.sw-select-banner.is-all .when-page { display: none; }
.sw-linkbtn { background: none; border: 0; padding: 0; color: var(--action); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
[data-theme="dark"] .sw-linkbtn { color: var(--focus); }
.sw-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.sw-filters .sw-filter-q { flex: 1 1 220px; max-width: 420px; }
.sw-filters .sw-filter-go { padding-left: 12px; padding-right: 12px; }
.sw-morefilters { position: relative; }
.sw-morefilters > summary { list-style: none; cursor: pointer; }
.sw-morefilters > summary::-webkit-details-marker { display: none; }
.sw-morefilters[open] > summary { box-shadow: inset 0 0 0 2px var(--focus); }
.sw-morefilters-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; gap: var(--space-3);
  padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
form.htmx-request #ind-results, #ind-results.htmx-request { opacity: .6; transition: opacity .15s; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chip.is-removable button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 0 0 4px; font-size: 15px; line-height: 1; }
.sw-bulkbar { position: sticky; bottom: 0; background: var(--surface-raised); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); z-index: 5; }
th a.sw-sort { color: inherit; text-decoration: none; } th a.sw-sort:hover { color: var(--ink); }
th a.sw-sort.is-on { color: var(--ink); }
.sw-diff td.old { color: var(--ink-muted); text-decoration: line-through; } .sw-diff td.new { font-weight: 600; }
@media (max-width: 900px) {
  .sw-app { grid-template-columns: minmax(0, 1fr); }
  .sw-main > * { max-width: 100%; }
  .sw-picker.sw-ta { min-width: 0; flex: 1 1 120px; max-width: none; }
  .sw-filters .sw-field { width: calc(50% - 8px) !important; }
  .sw-fillbar .sw-input { width: calc(50% - 8px) !important; }
  .sw-picker .sw-ta-list { position: fixed; left: 8px; right: 8px; top: 64px; min-width: 0; }
  .sw-top > div:nth-child(2) { min-width: 0; flex: 0 1 auto; }
  .sw-top h1 { overflow: hidden; text-overflow: ellipsis; }
  .sw-tiles { grid-template-columns: 1fr 1fr; }
}
.sw-postpills { display: flex; flex-wrap: wrap; gap: 4px; min-width: 170px; }
.sw-reason { margin-top: 4px; }
.sw-grid-edit td.f { white-space: normal; }

/* ---------------------------------------------------------------- 1.0.8 */
/* a board page's status strip */
.sw-boardbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: 12px 18px; }
.sw-boardbar .sw-kpi { gap: 4px; }
.sw-boardbar-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.sw-boardbar-v b { font-weight: 700; }
.sw-empty-card .sw-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-5) var(--space-4); }
.sw-empty-card h2 { margin: 4px 0 0; font-size: 18px; color: var(--ink); }
.sw-empty-card p { margin: 0; max-width: 680px; }
.sw-empty-icon { width: 36px !important; height: 36px !important; color: var(--brand-steel); }
/* HSPCB / PPCB: stations grouped by vendor */
.sw-vgroup { display: flex; flex-direction: column; gap: var(--space-3); }
.sw-vgroup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 2px 0; }
.sw-vgroup-head > .sz-icon { width: 22px; height: 22px; color: var(--brand-steel); }
.sw-vgroup-head h2 { margin: 0; font: 700 20px/26px var(--font-display); letter-spacing: .01em; }
.sw-vgroup.is-off .sw-station { opacity: .6; }
.sw-vgroup.is-off .sw-station:focus-within { opacity: 1; }
.sw-station { border-left: 4px solid var(--brand-steel); scroll-margin-top: 16px; }
.sw-station.is-need { border-left-color: var(--warn); }
.sw-station:target { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--focus); }
.sw-station-head { display: flex; gap: var(--space-3) var(--space-5); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.sw-station-ids { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.sw-station-ids .sw-field { width: 190px; }
.sw-station-ids .sw-field-vendor { width: 230px; }
.sw-station-ids .sw-input input { font-weight: 600; }
.sw-input.is-need { box-shadow: inset 0 0 0 2px var(--warn); }
.sw-station-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: 1 1 320px; min-width: 0; }
.sw-station-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.sw-mini.is-danger:hover { background: var(--alarm); color: var(--on-action); }
.sw-checkstate { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; max-width: 560px; }
.sw-checkstate-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.sw-checkstate-note { white-space: normal; }
.sw-station-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.sw-fill { display: inline-flex; gap: 6px; align-items: center; }
.sw-reqs { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.sw-norows { margin: 10px 2px 0; }
.sw-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--warn);
  display: inline-block; animation: sw-spin .8s linear infinite; }
@keyframes sw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sw-spin { animation: none; } }
/* CPCB: one block per box */
.sw-boxblock summary { list-style: none; cursor: pointer; }
.sw-boxblock summary::-webkit-details-marker { display: none; }
.sw-boxhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw-boxhead h2 { margin: 0; font-size: 17px; }
.sw-boxhead .sw-caret-r { width: 18px; height: 18px; transition: transform .15s; color: var(--ink-muted); }
.sw-boxblock[open] .sw-caret-r { transform: rotate(90deg); }
.sw-boxbody { margin-top: 14px; display: grid; gap: 14px; }
.sw-idrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sw-idrow .sw-field { width: 200px; }
.sw-sect { font: 700 12px var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); margin: 4px 0 -4px; }
.sw-more { border-radius: var(--radius-md); background: var(--surface-sunken); padding: 8px 12px; }
.sw-more > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.sw-more[open] > summary { margin-bottom: 10px; }
/* custom destinations */
.sw-destgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
a.sw-dest { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border-left: 4px solid var(--line-strong); }
a.sw-dest:hover { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--focus); }
a.sw-dest.is-ok { border-left-color: var(--ok); } a.sw-dest.is-alarm { border-left-color: var(--alarm); }
a.sw-dest.is-warn { border-left-color: var(--warn); }
.sw-dest-top { display: flex; align-items: center; gap: 8px; }
.sw-dest-top b { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-dest .sw-help { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-boxname { font-weight: 700; font-size: 13px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 10px 4px !important; }
/* box page */
.sw-boxlist td .sw-mono { color: var(--ink); }
@media (max-width: 900px) {
  .sw-station-side { align-items: flex-start; }
  .sw-checkstate, .sw-checkstate-line { align-items: flex-start; justify-content: flex-start; text-align: left; }
  .sw-checkstate { max-width: 100%; }
  .sw-checkstate .sz-pill { white-space: normal; height: auto; min-height: 28px; padding-top: 4px; padding-bottom: 4px; }
  .sw-station-tools { justify-content: flex-start; }
  .sw-station-ids .sw-field, .sw-station-ids .sw-field-vendor, .sw-idrow .sw-field { width: calc(50% - 6px); }
  .sw-boardbar { padding: 12px; }
}

/* HSPCB vendors: the vendors with a token, each opens to paste a new one */
.sw-vrow { border-top: 1px solid var(--line); }
.sw-vrow > summary { list-style: none; display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1.4fr) minmax(90px, .6fr) 24px;
  gap: var(--space-3); align-items: center; padding: 12px 6px; cursor: pointer; border-radius: 8px; }
.sw-vrow > summary::-webkit-details-marker { display: none; }
.sw-vrow > summary:hover { background: var(--surface-sunken); }
.sw-vrow-name { display: flex; flex-direction: column; min-width: 0; }
.sw-vrow-name small { color: var(--ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-vrow-meta, .sw-vrow-used { font-size: 13px; color: var(--ink-muted); }
.sw-vrow-caret { width: 18px; height: 18px; color: var(--ink-muted); transition: transform .15s; }
.sw-vrow[open] .sw-vrow-caret { transform: rotate(180deg); }
.sw-vrow-body { padding: 4px 6px 16px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) {
  .sw-vrow > summary { grid-template-columns: 1fr 24px; }
  .sw-vrow-meta, .sw-vrow-used { grid-column: 1; }
}

.sw-vjump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw-vjump a { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface-raised); }
.sw-vjump a:hover { border-color: var(--brand-steel); }
.sw-vjump a span { color: var(--ink-muted); font-weight: 500; }
.sw-vjump a.is-off { opacity: .6; text-decoration: line-through; }
.sw-vgroup { scroll-margin-top: 12px; }

/* date fields: typed as dd-mm-yyyy, or picked on the calendar */
.sw-input.has-date { position: relative; }
.sw-datebtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: -6px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.sw-datebtn:hover { background: var(--surface-sunken); color: var(--ink); }
.sw-datebtn .sz-icon { width: 18px; height: 18px; }
.sw-input input.sw-datepick { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0;
  pointer-events: none; }

/* the page dims behind the open industry finder, so the choices stand out */
.sw-main { transition: filter .12s; }
.sw-app.is-finding .sw-main { filter: brightness(.55); pointer-events: none; }
