/* shell.css — structural styles for the app shell, KPI tiles, cards and
   dashboard widgets. Colors resolve from the active theme scope (tokens/colors.css).
   This is the structural layer the original `cockpit.css` carried, minus the
   theme blocks (which now live as tokens). */

.vo-app{
  font-family: var(--vo-font);
  display:flex; width:100%; height:100%;
  background: var(--vo-app-bg); color: var(--vo-text);
  -webkit-font-smoothing: antialiased; letter-spacing:0; position:relative;
}
.vo-app *{ box-sizing:border-box; }

/* ---------- Sidebar ---------- */
.vo-side{
  width:var(--vo-w-sidebar); flex:0 0 var(--vo-w-sidebar);
  background: var(--vo-sidebar-bg); border-right:1px solid var(--vo-sidebar-border);
  display:flex; flex-direction:column; padding:18px 14px 14px;
}
.vo-brand{ display:flex; align-items:center; gap:11px; padding:6px 8px 18px; }
.vo-brand-mark{
  width:34px; height:34px; border-radius:9px;
  background: var(--vo-accent); color: var(--vo-accent-fg);
  display:flex; align-items:center; justify-content:center; box-shadow: var(--vo-mark-glow);
}
.vo-brand-name{ font-size:16px; font-weight:700; color:var(--vo-sidebar-fg); }
.vo-brand-sub{ font-size:11px; color:var(--vo-sidebar-fg-muted); margin-top:1px; }
.vo-nav{ display:flex; flex-direction:column; gap:18px; flex:1; }
.vo-nav-grp{ display:flex; flex-direction:column; gap:2px; }
.vo-nav-glabel{ font-size:10.5px; font-weight:600; letter-spacing:0.08em; color:var(--vo-sidebar-fg-faint); padding:0 10px 6px; text-transform:uppercase; }
.vo-nav-item{
  display:flex; align-items:center; gap:11px; padding:8px 10px; border-radius:9px; cursor:pointer;
  color:var(--vo-sidebar-fg-muted); font-size:13.5px; font-weight:500; transition: background .14s, color .14s;
}
.vo-nav-item:hover{ background:var(--vo-sidebar-hover); color:var(--vo-sidebar-fg); }
.vo-nav-item.is-active{ background:var(--vo-sidebar-active-bg); color:var(--vo-sidebar-active-fg); font-weight:600; }
.vo-nav-item.is-active .vo-nav-ic{ color:var(--vo-accent); }
.vo-nav-ic{ display:flex; color:var(--vo-sidebar-fg-faint); }
.vo-nav-t{ flex:1; }
.vo-nav-badge{
  min-width:19px; height:19px; padding:0 5px; border-radius:7px;
  background:var(--vo-badge-bg); color:var(--vo-badge-fg); font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center; font-family:var(--vo-mono);
}
.vo-side-foot{ margin-top:14px; }
.vo-orgchip{ display:flex; align-items:center; gap:10px; padding:9px; border-radius:10px; background:var(--vo-sidebar-hover); }
.vo-org-avatar{ width:30px; height:30px; border-radius:8px; background:var(--vo-org-bg); color:var(--vo-org-fg); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; }
.vo-org-name{ font-size:12.5px; font-weight:600; color:var(--vo-sidebar-fg); }
.vo-org-sub{ font-size:11px; color:var(--vo-sidebar-fg-muted); margin-top:1px; }

/* ---------- Main + topbar ---------- */
.vo-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.vo-top{
  height:var(--vo-h-topbar); flex:0 0 var(--vo-h-topbar); display:flex; align-items:center; justify-content:space-between;
  padding:0 26px; border-bottom:1px solid var(--vo-divider); background:var(--vo-topbar-bg,var(--vo-card-bg));
}
.vo-top-left{ display:flex; align-items:center; gap:16px; }
.vo-pagetitle{ font-size:18px; font-weight:700; margin:0; white-space:nowrap; }
.vo-market{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--vo-text-2); padding:5px 11px; border-radius:20px; background:var(--vo-pos-soft); border:1px solid var(--vo-pos-border); }
.vo-dot{ width:7px; height:7px; border-radius:50%; background:var(--vo-pos); box-shadow:0 0 0 3px var(--vo-pos-soft); }
.vo-top-right{ display:flex; align-items:center; gap:12px; }
.vo-search{ display:flex; align-items:center; gap:9px; width:280px; height:38px; padding:0 12px; border-radius:10px; background:var(--vo-input-bg); border:1px solid var(--vo-input-border); color:var(--vo-text-3); font-size:13px; }
.vo-search kbd{ margin-left:auto; font-family:var(--vo-mono); font-size:11px; padding:2px 6px; border-radius:5px; background:var(--vo-kbd-bg); color:var(--vo-text-3); border:1px solid var(--vo-input-border); }
.vo-iconbtn{ width:38px; height:38px; border-radius:10px; border:1px solid var(--vo-input-border); background:var(--vo-input-bg); color:var(--vo-text-2); display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; }
.vo-bell-dot{ position:absolute; top:9px; right:10px; width:7px; height:7px; border-radius:50%; background:var(--vo-neg); border:2px solid var(--vo-input-bg); }
.vo-user-avatar{ width:38px; height:38px; border-radius:10px; background:var(--vo-accent); color:var(--vo-accent-fg); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }

.vo-content{ flex:1; padding:22px 26px 26px; overflow:hidden; }

/* ---------- Buttons ---------- */
.vo-btn{ height:38px; padding:0 16px; border-radius:10px; font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:7px; border:1px solid transparent; font-family:inherit; }
.vo-btn-ghost{ background:var(--vo-input-bg); border-color:var(--vo-input-border); color:var(--vo-text-2); }
.vo-btn-primary{ background:var(--vo-accent); color:var(--vo-accent-fg); box-shadow:var(--vo-btn-glow); }
.vo-btn:disabled{ opacity:.5; cursor:not-allowed; background:var(--vo-track-bg); color:var(--vo-text-3); box-shadow:none; }

/* ---------- KPI strip ---------- */
.vo-kpis{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:16px; }
.vo-kpis--4{ grid-template-columns:repeat(4,1fr); }
.vo-kpis--3{ grid-template-columns:repeat(3,1fr); }
.vo-kpi{
  background:var(--vo-card-bg); border:1px solid var(--vo-card-border); border-radius:var(--vo-radius);
  padding:15px 16px 14px; box-shadow:var(--vo-card-shadow); display:flex; flex-direction:column; gap:8px; position:relative; overflow:hidden;
}
.vo-kpi-label{ font-size:12.5px; color:var(--vo-text-2); font-weight:500; }
.vo-kpi-figure{ display:flex; align-items:baseline; gap:5px; white-space:nowrap; }
.vo-kpi-value{ font-family:var(--vo-mono); font-size:27px; font-weight:600; line-height:1; }
.vo-kpi-unit{ font-size:12px; color:var(--vo-text-3); font-weight:500; white-space:nowrap; }
.vo-kpi-sub{ font-size:11.5px; color:var(--vo-text-3); display:flex; align-items:center; gap:4px; }
.vo-tri{ font-size:8px; } .vo-tri-up{ color:var(--vo-pos); } .vo-tri-down{ color:var(--vo-neg); }
.vo-kpi-track{ height:4px; border-radius:3px; background:var(--vo-track-bg); overflow:hidden; margin-top:2px; }
.vo-kpi-fill{ height:100%; border-radius:3px; background:var(--vo-accent); }
.vo-kpi--pos .vo-kpi-value{ color:var(--vo-pos); }
.vo-kpi--neg .vo-kpi-value{ color:var(--vo-neg); }
.vo-kpi--accent .vo-kpi-value{ color:var(--vo-accent-strong); }

/* mixed-theme dark feature KPI cards */
.vo-theme-mixed .vo-kpi{ background:#11161f; border-color:#11161f; color:#f1f3f6; box-shadow:0 6px 22px rgba(17,22,31,.18); }
.vo-theme-mixed .vo-kpi-label{ color:#9aa3b2; }
.vo-theme-mixed .vo-kpi-value{ color:#fff; }
.vo-theme-mixed .vo-kpi-unit{ color:#7e8799; }
.vo-theme-mixed .vo-kpi-sub{ color:#8a93a3; }
.vo-theme-mixed .vo-kpi-track{ background:#23293544; }
.vo-theme-mixed .vo-kpi--accent .vo-kpi-value{ color:#6ea8ff; }
.vo-theme-mixed .vo-kpi--pos .vo-kpi-value{ color:#34d98a; }
.vo-theme-mixed .vo-kpi--neg .vo-kpi-value{ color:#ff7088; }
.vo-theme-mixed .vo-kpi--pos .vo-kpi-fill,.vo-theme-mixed .vo-kpi-fill{ background:#6ea8ff; }
.vo-theme-dark .vo-card{ backdrop-filter:blur(8px); }
.vo-theme-dark .vo-kpi--accent .vo-kpi-value{ text-shadow:0 0 18px rgba(90,162,255,.35); }
.vo-theme-dark .vo-brand-mark{ background:linear-gradient(135deg,#22d3ee,#3b82f6); }

/* ---------- Grid + cards ---------- */
.vo-grid2{ display:grid; grid-template-columns: 1fr 400px; gap:16px; }
.vo-col-main, .vo-col-side{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.vo-card{ background:var(--vo-card-bg); border:1px solid var(--vo-card-border); border-radius:var(--vo-radius); box-shadow:var(--vo-card-shadow); padding:18px 18px 16px; }
.vo-card-head{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:14px; }
.vo-card-title{ font-size:14.5px; font-weight:700; margin:0; }
.vo-card-desc{ font-size:11.5px; color:var(--vo-text-3); margin:4px 0 0; }
.vo-legend{ display:flex; gap:14px; }
.vo-leg{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--vo-text-2); }
.vo-leg-line{ width:16px; height:2.6px; border-radius:2px; background:var(--vo-curve-1); }
.vo-leg-line.dash{ background:var(--vo-curve-2); height:0; border-top:2.4px dashed var(--vo-curve-2); border-radius:0; }

/* attribution bars */
.vo-attrib{ display:flex; flex-direction:column; gap:11px; padding-top:2px; }
.vo-attrib-row{ display:grid; grid-template-columns:120px 1fr 64px; align-items:center; gap:12px; }
.vo-attrib-name{ font-size:12.5px; color:var(--vo-text-2); }
.vo-attrib-track{ height:10px; border-radius:5px; background:var(--vo-track-bg); overflow:hidden; }
.vo-attrib-bar{ height:100%; border-radius:5px; }
.vo-attrib-val{ font-family:var(--vo-mono); font-size:13px; font-weight:600; text-align:right; }
.vo-attrib-val span{ font-size:10px; color:var(--vo-text-3); margin-left:1px; }

/* closing-soon list */
.vo-pill{ font-size:11px; font-weight:600; padding:3px 9px; border-radius:7px; }
.vo-pill-warn{ background:var(--vo-warn-soft); color:var(--vo-warn); }
.vo-pill-soft{ background:var(--vo-track-bg); color:var(--vo-text-2); }
.vo-closelist{ display:flex; flex-direction:column; gap:11px; }
.vo-close{ padding:12px 13px; border-radius:var(--vo-radius-sm); border:1px solid var(--vo-card-border); background:var(--vo-inner-bg); }
.vo-close.is-urgent{ border-color:var(--vo-warn-border); background:var(--vo-warn-soft); }
.vo-close-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.vo-close-name{ font-size:13px; font-weight:600; min-width:0; }
.vo-close-remain{ font-family:var(--vo-mono); font-size:13px; font-weight:600; color:var(--vo-text-2); white-space:nowrap; flex:0 0 auto; }
.vo-close.is-urgent .vo-close-remain{ color:var(--vo-warn); }
.vo-close-meta{ font-size:11.5px; color:var(--vo-text-3); margin:5px 0 9px; }
.vo-close-track{ height:4px; border-radius:3px; background:var(--vo-track-bg); overflow:hidden; }
.vo-close-fill{ height:100%; border-radius:3px; background:var(--vo-accent); }
.vo-close.is-urgent .vo-close-fill{ background:var(--vo-warn); }

/* dashboard to-do card */
.vo-todocard{ padding-top:14px; }
.vo-tabs{ display:flex; gap:4px; padding:3px; background:var(--vo-track-bg); border-radius:10px; margin-bottom:14px; }
.vo-tab{ flex:1; height:32px; border:none; background:transparent; border-radius:8px; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--vo-text-2); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; transition:background .14s,color .14s; }
.vo-tab.is-active{ background:var(--vo-card-bg); color:var(--vo-text); box-shadow:var(--vo-tab-shadow); }
.vo-tab-n{ font-family:var(--vo-mono); font-size:11px; min-width:18px; height:18px; padding:0 4px; border-radius:6px; background:var(--vo-badge-bg); color:var(--vo-badge-fg); display:flex; align-items:center; justify-content:center; }
.vo-todolist{ display:flex; flex-direction:column; }
.vo-todo{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 4px; border-bottom:1px solid var(--vo-divider); }
.vo-todo:last-child{ border-bottom:none; }
.vo-todo-line1{ display:flex; align-items:center; gap:9px; }
.vo-todo-plant{ font-size:13px; font-weight:600; }
.vo-todo-code{ font-family:var(--vo-mono); font-size:11px; color:var(--vo-text-3); }
.vo-todo-line2{ font-size:11.5px; color:var(--vo-text-2); margin-top:4px; display:flex; align-items:center; gap:8px; }
.vo-flag{ font-size:10.5px; font-weight:600; color:var(--vo-warn); background:var(--vo-warn-soft); padding:1px 7px; border-radius:6px; }
.vo-todo-right{ text-align:right; flex:0 0 auto; }
.vo-todo-who{ font-size:12px; font-weight:600; color:var(--vo-text-2); }
.vo-todo-ago{ font-size:10.5px; color:var(--vo-text-3); margin-top:3px; }
.vo-diff{ font-family:var(--vo-mono); font-size:14px; font-weight:600; }
.vo-diff--neg{ color:var(--vo-neg); } .vo-diff--pos{ color:var(--vo-pos); }
