/* views-os1 — VENDRA OS: pool pipeline, create pool, demand intelligence, benchmarks, catalogue, settings, compliance.
   Every class is prefixed .o1- */

/* ---------- shared ---------- */
.o1-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.o1-search { position: relative; display: inline-flex; align-items: center; }
.o1-search > .ic { position: absolute; left: 9px; color: var(--faint); pointer-events: none; }
.o1-search .input { padding-left: 30px; width: 280px; max-width: 100%; }
select.input.o1-fam { width: auto; min-width: 160px; }
.o1-linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.o1-linkbtn:hover { text-decoration: underline; }
.o1-pad { padding: 4px 18px 16px; }
.o1-mt { margin-top: 12px; }
.o1-under { margin-top: 8px; }
.o1-sec-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.o1-sec-title h2 { flex: none; }
.o1-hash { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); background: var(--surface-3); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.o1-note { font-size: 12.5px; color: var(--muted); }
.o1-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.o1-tags .tag { font-weight: 500; }
.o1-num-in { width: 110px; }

/* ---------- pool pipeline: board ---------- */
.o1-board { display: grid; gap: 8px; overflow-x: auto; padding-bottom: 6px; align-items: start; -webkit-overflow-scrolling: touch; }
.o1-board.o1-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.o1-col { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; }
.o1-col-head { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px 7px; min-width: 0; }
.o1-col-title { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o1-count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.o1-col-body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.o1-col-empty { align-items: center; padding: 10px 0; gap: 8px; min-height: 180px; background: transparent; border-style: dashed; }
.o1-vert { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.o1-pcard { display: flex; flex-direction: column; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; color: inherit; text-decoration: none !important; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.o1-pcard:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.o1-code { font-size: 11.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.o1-pname { font-weight: 650; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o1-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.o1-facts span { display: inline-flex; align-items: center; gap: 4px; }
.o1-facts .ic { color: var(--faint); }
.o1-via { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.o1-via .progress { height: 6px; }
.o1-award { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; background: var(--surface-2); border-radius: 6px; padding: 5px 8px; font-variant-numeric: tabular-nums; }
.o1-award div { display: flex; justify-content: space-between; gap: 8px; }
.o1-award span { color: var(--muted); }
.o1-award span, .o1-award b { white-space: nowrap; }
.o1-when { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--text-2); line-height: 1.35; border-top: 1px dashed var(--border); padding-top: 6px; margin-top: 2px; }
.o1-when > .ic { margin-top: 1px; color: var(--faint); }
.o1-when b { font-weight: 650; }
.o1-rel { color: var(--muted); white-space: nowrap; }
.o1-when.warn, .o1-when.warn > .ic { color: var(--warn); }
.o1-when.bad, .o1-when.bad > .ic { color: var(--bad); }
.o1-when.action { color: var(--action); font-weight: 600; } .o1-when.action > .ic { color: var(--action); }
.o1-when.muted { color: var(--muted); }
.o1-ptable .o1-when { border-top: 0; padding-top: 0; margin-top: 0; }
.o1-vcell { min-width: 110px; }
.o1-ptable td:first-child { min-width: 280px; }
.o1-vcell .progress { height: 6px; }
.o1-reason { color: var(--bad) !important; display: flex; gap: 4px; align-items: flex-start; }
.o1-reason .ic { margin-top: 2px; }

/* ---------- create pool ---------- */
.o1-create { align-items: start; }
.o1-side { min-width: 0; }
.o1-sticky { position: sticky; top: 72px; }
.o1-sumdl { grid-template-columns: minmax(100px, auto) 1fr; font-size: 13px; }
.o1-items td { vertical-align: top; }
.o1-items td:first-child { padding-top: 9px; }
.o1-items input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.o1-skulabel { cursor: pointer; display: block; }
.o1-weights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.o1-wrow { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.o1-wrow input[type=range] { width: 100%; accent-color: var(--brand); }
@media (max-width: 1100px) { .o1-sticky { position: static; } .o1-weights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .o1-weights { grid-template-columns: 1fr; } }

/* ---------- demand intelligence ---------- */
.o1-cands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.o1-cand { border: 1px solid var(--brand-line); background: linear-gradient(180deg, #f6fbf8, #fff 70%); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 26px; }
.o1-cand-a { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.o1-cand-b { container-type: inline-size; min-width: 0; border-left: 1px solid var(--border); padding-left: 22px; }
.o1-cand-b h4 { margin-bottom: 6px; }
@media (max-width: 980px) { .o1-cand { grid-template-columns: 1fr; } .o1-cand-b { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 10px; } }
.o1-cand h3 { font-size: 15px; }
.o1-cand-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.o1-cand-nums div { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; min-width: 0; }
.o1-cand-nums small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.o1-cand-nums b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.o1-cand ul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.o1-cand li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.o1-cand li:last-child { border-bottom: 0; }
.o1-cand-item { min-width: 0; }
.o1-cand-qty { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@container (max-width: 420px) { .o1-cand-b li { grid-template-columns: 1fr; } .o1-cand-qty { text-align: left; white-space: normal; } }
.o1-map { height: 420px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-3); z-index: 0; }
.o1-mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
@media (max-width: 1100px) { .o1-mapgrid { grid-template-columns: 1fr; } }
@container page (max-width: 1000px) { .o1-mapgrid { grid-template-columns: minmax(0, 1fr); } }
.o1-zones { font-size: 12.5px; }
.o1-zones li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.o1-zones li:first-child { border-top: 0; }
.o1-zones ol { list-style: none; padding: 0; margin: 0; }
.o1-srcnotes { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.o1-srcnotes b { color: var(--text-2); font-weight: 600; }
.o1-season { font-size: 11.5px; padding: 0 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.o1-season.up { background: var(--info-bg); color: var(--info); }
.o1-season.down { background: var(--warn-bg); color: var(--warn); }
.leaflet-popup-content .o1-pop b { display: block; font-size: 13px; }
.leaflet-popup-content .o1-pop { font: 12.5px/1.45 var(--sans); }

/* ---------- benchmarks ---------- */
.o1-strip { display: block; }
.o1-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); align-items: center; }
.o1-legend span { display: inline-flex; align-items: center; gap: 6px; }
.o1-legend svg { display: block; }
.o1-btable td { vertical-align: middle; }
.o1-btable td:first-child { min-width: 190px; }
.o1-btable tr.o1-group td { background: var(--surface-2); font-weight: 650; font-size: 12.5px; color: var(--text-2); padding-top: 7px; padding-bottom: 7px; }
.o1-awards { display: flex; flex-wrap: wrap; gap: 4px; }
.o1-awards .tag { font-variant-numeric: tabular-nums; }

/* ---------- catalogue ---------- */
.o1-catgrid td { vertical-align: top; }

/* ---------- settings ---------- */
.o1-clock { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.o1-clock .big { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.o1-about .dl { grid-template-columns: 1fr; gap: 2px; }
.o1-about dt { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
.o1-about dt:first-child { margin-top: 0; }
.o1-about dd { font-size: 13px; }
.o1-about ul { padding-left: 18px; }
.o1-about li { margin-bottom: 2px; }

/* ---------- compliance ---------- */
.o1-chain { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.o1-chain .ico-box { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 760px) { .o1-chain { grid-template-columns: auto 1fr; } .o1-chain > :last-child { grid-column: 1 / -1; } }
.o1-guard td { vertical-align: top; }
.o1-guard td:first-child { white-space: nowrap; }
.o1-detail { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 12px; color: var(--text-2); }
.o1-detail span { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.o1-detail i { font-style: normal; color: var(--muted); }
.o1-audit td { vertical-align: top; }
.o1-audit .o1-hash { white-space: nowrap; }
.o1-audit-scroll { max-height: 640px; overflow: auto; }
.o1-be { padding: 4px 0; }
.o1-be .row { padding: 2px 0; }
