/* Vendor Management — third-party vendor accessibility compliance. Shared suite
   shell from app-chrome.css + menu.js + assistant.js; this styles the hero, tabs,
   dashboard, registry, audits, contracts, reports, the vendor detail slide-over
   and the two wizards. Fonts: Poppins (headings) + Mulish (body). Status is always
   text + dot/shape, never colour alone. */

:root {
  --vm-navy: #16273F; --vm-ink: #33404F; --vm-muted: #5B6675; --vm-faint: #8791A0;
  --vm-line: #EAEDF3; --vm-line-soft: #F1F4F8; --vm-red: #E8402A; --vm-blue: #2F6FE0;
  --vm-green: #1FA97A; --vm-amber: #B5762F; --vm-purple: #7A5AF0;
  --vm-shadow: 0 4px 16px rgba(18,38,63,0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Mulish', system-ui, sans-serif; color: var(--vm-ink); background: linear-gradient(180deg, #F6F4FB 0%, #F1F6F6 100%); }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell .rm-header-inner, .app-shell .rm-footer-inner { max-width: 90%; }
@keyframes vmFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vmShimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }

/* ---- Hero ---- */
.vm-hero { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)); border-bottom: 1px solid var(--vm-line); }
.vm-hero-inner { max-width: 90%; margin: 0 auto; padding: 28px 32px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.vm-title { font-family: 'Poppins'; font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0; letter-spacing: -0.5px; color: var(--vm-navy); }
.vm-subtitle { font-family: 'Mulish'; font-weight: 500; font-size: 14.5px; color: var(--vm-muted); line-height: 1.55; margin: 8px 0 0; max-width: 760px; }
.vm-add { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; appearance: none; cursor: pointer; font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: #fff; background: var(--vm-red); border: none; border-radius: 12px; padding: 12px 18px; box-shadow: 0 6px 16px rgba(232,64,42,0.28); }
.vm-add:hover { background: #d3381f; }
.vm-add-sm { padding: 9px 14px; font-size: 13px; box-shadow: none; }

/* ---- Tabs ---- */
.vm-tabbar { background: #fff; border-bottom: 1px solid var(--vm-line); position: sticky; top: 0; z-index: 20; }
.vm-tabbar-inner { max-width: 90%; margin: 0 auto; padding: 0 32px; display: flex; gap: 26px; }
.vm-tab { appearance: none; background: none; border: none; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 16px; color: var(--vm-faint); padding: 18px 2px; border-bottom: 3px solid transparent; }
.vm-tab:hover { color: var(--vm-navy); }
.vm-tab.active { font-weight: 700; color: var(--vm-navy); border-bottom-color: var(--vm-red); }

/* ---- Main ---- */
.vm-main { flex: 1; max-width: 90%; width: 100%; margin: 0 auto; padding: 30px 32px 56px; }
#vmContent > * { animation: vmFadeUp 0.4s ease both; }
.vm-prompt { text-align: center; color: var(--vm-faint); font-size: 15px; padding: 60px 20px; }
.vm-card { background: #fff; border: 1px solid var(--vm-line); border-radius: 18px; box-shadow: var(--vm-shadow); }
.vm-error { padding: 34px 24px; text-align: center; color: #C0392B; font-size: 14px; }
.vm-empty-soft { padding: 30px 22px; text-align: center; color: var(--vm-faint); font-size: 14px; }

/* ---- Head (per-tab title + tools) ---- */
.vm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.vm-head h2 { font-family: 'Poppins'; font-weight: 700; font-size: 22px; color: var(--vm-navy); margin: 0 0 4px; }
.vm-head-sub { font-size: 13.5px; color: var(--vm-faint); max-width: 620px; }
.vm-search { position: relative; display: inline-flex; align-items: center; }
.vm-search svg { position: absolute; left: 13px; pointer-events: none; }
.vm-search input { padding: 10px 14px 10px 38px; border: 1px solid #DCE1E9; border-radius: 12px; font-family: 'Mulish'; font-size: 14px; color: var(--vm-navy); min-width: 260px; outline: none; background: #fff; }
.vm-search input:focus-visible { border-color: var(--vm-blue); box-shadow: 0 0 0 3px rgba(47,111,224,0.15); }

/* ---- Filters + chips + segmented ---- */
.vm-filters { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 18px; }
.vm-filter-label { font-family: 'Poppins'; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--vm-faint); margin-bottom: 8px; }
.vm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-chip { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--vm-muted); background: #fff; border: 1.5px solid #E4E9F1; border-radius: 999px; padding: 7px 14px; }
.vm-chip:hover { border-color: #CBD6E4; }
.vm-chip.active { font-weight: 700; }
.vm-seg-group { display: inline-flex; gap: 4px; background: #F1F4F9; border-radius: 10px; padding: 4px; }
.vm-seg { appearance: none; border: none; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 8px; background: transparent; color: var(--vm-muted); }
.vm-seg.active { background: var(--vm-blue); color: #fff; box-shadow: 0 2px 6px rgba(60,124,224,0.35); }

/* ---- Pills ---- */
.vm-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; border: 1px solid; border-radius: 999px; padding: 4px 11px; justify-self: start; white-space: nowrap; }
.vm-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }

/* ---- Stat cards ---- */
.vm-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.vm-stat { background: #fff; border: 1px solid var(--vm-line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--vm-shadow); }
.vm-stat-label { font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: var(--vm-faint); margin-bottom: 10px; }
.vm-stat-value { font-family: 'Poppins'; font-weight: 800; font-size: 32px; line-height: 1; display: flex; align-items: center; gap: 10px; }
.vm-stat-dot { width: 11px; height: 11px; border-radius: 50%; }
.vm-stat-sub { font-size: 12.5px; color: var(--vm-faint); margin-top: 8px; }

/* ---- Dashboard grid ---- */
.vm-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
.vm-panel { padding: 20px 22px; }
.vm-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vm-panel-head h2 { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--vm-navy); margin: 0; }
.vm-panel-head-mt { margin-top: 22px; }
.vm-count { font-family: 'Poppins'; font-weight: 700; font-size: 12px; color: var(--vm-muted); background: #F1F4F9; border-radius: 999px; padding: 2px 9px; }

/* ---- Alerts ---- */
.vm-alerts { display: flex; flex-direction: column; gap: 10px; }
.vm-alert { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--vm-line); border-radius: 13px; background: #FCFDFE; }
.vm-alert-body { flex: 1; min-width: 0; }
.vm-alert-vendor { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--vm-navy); }
.vm-alert-msg { font-size: 13px; color: var(--vm-muted); margin-top: 2px; line-height: 1.4; }
.vm-alert-btn { flex: 0 0 auto; appearance: none; cursor: pointer; font-family: 'Poppins'; font-weight: 700; font-size: 13px; border: 1px solid; border-radius: 10px; padding: 8px 14px; }

/* ---- Registry ---- */
.vm-reg { overflow: hidden; }
.vm-reg.vm-card { border-radius: 18px; }
.vm-reg-head, .vm-row { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1.2fr) 130px 140px 150px 28px; gap: 16px; align-items: center; }
.vm-reg-head { padding: 13px 22px; background: #FAFBFD; border-bottom: 1px solid var(--vm-line); }
.vm-th { font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--vm-faint); }
.vm-row { padding: 13px 22px; border: none; border-bottom: 1px solid var(--vm-line-soft); background: none; width: 100%; cursor: pointer; text-align: left; transition: background .12s ease; }
.vm-panel .vm-row:last-child, .vm-reg > div > .vm-row:last-child { border-bottom: none; }
.vm-row:hover { background: #FBFCFE; }
.vm-row:focus-visible { outline: 2px solid var(--vm-blue); outline-offset: -2px; }
.vm-vend { display: flex; align-items: center; gap: 11px; min-width: 0; }
.vm-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; font-weight: 800; font-size: 12px; color: #fff; }
.vm-avatar-lg { width: 46px; height: 46px; border-radius: 12px; font-size: 15px; }
.vm-vend-text { display: flex; flex-direction: column; min-width: 0; }
.vm-vend-name { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--vm-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-vend-cat { font-size: 12px; color: var(--vm-faint); }
.vm-cell { font-size: 13.5px; color: var(--vm-navy); }
.vm-cell-muted { font-size: 13.5px; color: var(--vm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-risk-pill { display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; border: 1px solid; border-radius: 999px; padding: 4px 11px; justify-self: start; white-space: nowrap; }
.vm-chev { color: #C3CBD8; font-size: 22px; text-align: right; }
/* Dashboard preview panel is narrow — drop System + Compliance columns there. */
.vm-panel .vm-reg-head, .vm-panel .vm-row { grid-template-columns: minmax(0,1.5fr) 120px 130px 20px; }
.vm-panel .vm-reg-head .vm-th:nth-child(2), .vm-panel .vm-reg-head .vm-th:nth-child(3) { display: none; }
.vm-panel .vm-row .vm-cell, .vm-panel .vm-row .vm-cell-muted { display: none; }
.vm-panel .vm-reg { border: 1px solid var(--vm-line); border-radius: 14px; }
.vm-panel .vm-reg-head { border-radius: 14px 14px 0 0; }

/* ---- Audits ---- */
.vm-audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vm-audit { padding: 20px 22px; }
.vm-audit-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.vm-audit-title { flex: 1; min-width: 0; }
.vm-audit-name { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--vm-navy); }
.vm-audit-sys { font-size: 12.5px; color: var(--vm-faint); }
.vm-audit-tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.vm-audit-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--vm-muted); margin-bottom: 14px; }
.vm-audit-meta b { font-family: 'Poppins'; font-weight: 700; color: var(--vm-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 5px; }
.vm-issues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.vm-issue { border-radius: 11px; padding: 11px 12px; }
.vm-issue-label { font-family: 'Poppins'; font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.vm-issue-count { font-family: 'Poppins'; font-weight: 800; font-size: 20px; color: var(--vm-navy); }
.vm-issue-count span { font-weight: 600; font-size: 13px; color: var(--vm-faint); }
.vm-rem { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vm-rem-label { font-family: 'Poppins'; font-weight: 700; font-size: 12px; color: var(--vm-faint); }

/* ---- Contracts ---- */
.vm-clause-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vm-clause { padding: 20px 22px; display: flex; flex-direction: column; }
.vm-clause-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.vm-clause-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.vm-clause-name { font-family: 'Poppins'; font-weight: 700; font-size: 15.5px; color: var(--vm-navy); }
.vm-clause-meta { font-size: 12.5px; color: var(--vm-faint); }
.vm-clause-text { font-family: 'Mulish'; font-size: 13.5px; line-height: 1.55; color: var(--vm-ink); margin: 0 0 16px; padding: 12px 16px; background: #FAFBFD; border-left: 3px solid; border-radius: 0 10px 10px 0; }
.vm-clause-actions { display: flex; gap: 9px; margin-top: auto; }

/* ---- Buttons ---- */
.vm-btn { appearance: none; cursor: pointer; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; border-radius: 11px; padding: 10px 16px; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.vm-btn-primary { background: var(--vm-red); color: #fff; }
.vm-btn-primary:hover { background: #d3381f; }
.vm-btn-primary:disabled { opacity: .5; cursor: default; }
.vm-btn-ghost { background: #fff; color: var(--vm-muted); border-color: #E4E9F1; }
.vm-btn-ghost:hover { background: #F7F9FC; }

/* ---- Reports ---- */
.vm-reports-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.vm-donut-card { padding: 26px 22px; display: flex; flex-direction: column; align-items: center; position: relative; }
.vm-donut { display: block; }
.vm-donut-center { position: absolute; top: 78px; left: 0; right: 0; text-align: center; }
.vm-donut-score { font-family: 'Poppins'; font-weight: 800; font-size: 40px; color: var(--vm-navy); line-height: 1; }
.vm-donut-score span { font-size: 20px; color: var(--vm-faint); }
.vm-donut-label { font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--vm-faint); margin-top: 2px; }
.vm-donut-delta { margin-top: 16px; font-family: 'Poppins'; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 6px 14px; }
.vm-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vm-metric { background: #FAFBFD; border: 1px solid var(--vm-line); border-radius: 13px; padding: 14px 16px; }
.vm-metric-label { font-size: 12.5px; color: var(--vm-faint); margin-bottom: 6px; }
.vm-metric-value { font-family: 'Poppins'; font-weight: 800; font-size: 22px; }
.vm-recs { display: flex; flex-direction: column; gap: 9px; }
.vm-rec { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #FAFBFD; border: 1px solid var(--vm-line); border-radius: 12px; }
.vm-rec-count { flex: 0 0 auto; font-family: 'Poppins'; font-weight: 800; font-size: 15px; min-width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.vm-rec-text { font-size: 13.5px; color: var(--vm-ink); }
.vm-exports { padding: 20px 22px; }
.vm-export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vm-export { display: flex; align-items: center; gap: 14px; appearance: none; cursor: pointer; text-align: left; background: #FAFBFD; border: 1px solid var(--vm-line); border-radius: 13px; padding: 15px 16px; }
.vm-export:hover { background: #F4F6FA; }
.vm-export-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-left: 4px; }
.vm-export-name { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--vm-navy); }
.vm-export-desc { display: block; font-size: 12px; color: var(--vm-faint); margin-top: 2px; }

/* ---- Skeleton ---- */
.vm-skel { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 900px 100%; animation: vmShimmer 1.4s infinite; border: none; }
.vm-stat.vm-skel { height: 108px; }
.vm-skel-lg { height: 320px; border-radius: 18px; margin-top: 22px; }

/* ---- Slide-over ---- */
.vm-detail-overlay { position: fixed; inset: 0; background: rgba(18,38,63,0.42); z-index: 90; animation: vmFadeUp .2s ease; }
.vm-detail { position: fixed; top: 0; right: 0; height: 100vh; width: 500px; max-width: 94vw; background: #fff; z-index: 91; box-shadow: -16px 0 46px rgba(18,38,63,0.22); transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.vm-detail.open { transform: translateX(0); }
.vm-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--vm-line); }
.vm-detail-id { display: flex; align-items: center; gap: 13px; }
.vm-detail-name { font-family: 'Poppins'; font-weight: 700; font-size: 19px; color: var(--vm-navy); }
.vm-detail-sub { font-size: 13px; color: var(--vm-faint); margin-top: 2px; }
.vm-detail-close { appearance: none; background: #F1F4F9; border: none; cursor: pointer; width: 34px; height: 34px; border-radius: 9px; font-size: 15px; color: var(--vm-muted); flex: 0 0 auto; }
.vm-detail-close:hover { background: #E6EBF2; }
.vm-detail-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.vm-detail-section { margin-top: 22px; }
.vm-detail-section h3 { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--vm-navy); margin: 0 0 12px; }
.vm-risk-card { border: 1.5px solid; border-radius: 15px; padding: 18px 20px; }
.vm-risk-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.vm-risk-score { font-family: 'Poppins'; font-weight: 800; font-size: 40px; line-height: 1; }
.vm-risk-score span { font-size: 18px; color: var(--vm-faint); }
.vm-risk-cap { font-family: 'Poppins'; font-weight: 600; font-size: 12px; color: var(--vm-muted); margin-top: 4px; }
.vm-risk-band { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; background: #fff; border: 1px solid; border-radius: 999px; padding: 5px 12px; }
.vm-factors { display: flex; flex-direction: column; gap: 8px; }
.vm-factor { display: flex; align-items: baseline; gap: 12px; background: rgba(255,255,255,0.65); border-radius: 9px; padding: 8px 12px; }
.vm-factor-delta { font-family: 'Poppins'; font-weight: 800; font-size: 14px; min-width: 42px; }
.vm-factor-reason { font-size: 13px; color: var(--vm-ink); }
.vm-kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0; }
.vm-kv { margin: 0; }
.vm-kv dt { font-family: 'Poppins'; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--vm-faint); margin-bottom: 3px; }
.vm-kv dd { margin: 0; font-size: 13.5px; color: var(--vm-navy); }
.vm-req-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vm-req-label { font-size: 13px; color: var(--vm-muted); }
.vm-req-val { font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; color: var(--vm-navy); }
.vm-stds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.vm-std { font-family: 'Poppins'; font-weight: 600; font-size: 12px; color: var(--vm-blue); background: #EAF1FC; border: 1px solid #D3E2FA; border-radius: 999px; padding: 4px 11px; }
.vm-vpat-file { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.vm-vpat-file span { font-size: 13.5px; color: var(--vm-navy); font-weight: 600; }
.vm-vpat-ver { font-size: 12.5px; color: var(--vm-faint); margin-bottom: 12px; }
.vm-audit-hist { border: 1px solid var(--vm-line); border-radius: 13px; padding: 14px 16px; }
.vm-audit-hist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; color: var(--vm-navy); }
.vm-audit-hist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vm-audit-chip { font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; border-radius: 999px; padding: 4px 10px; }
.vm-audit-hist-follow { font-size: 12.5px; color: var(--vm-faint); }
.vm-detail-foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--vm-line); }
.vm-detail-foot .vm-btn { flex: 1; }

/* ---- Wizard ---- */
.vm-wizard-overlay { position: fixed; inset: 0; background: rgba(18,38,63,0.46); z-index: 95; animation: vmFadeUp .2s ease; }
.vm-wizard { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: 560px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); background: #fff; border-radius: 20px; z-index: 96; box-shadow: 0 30px 80px rgba(18,38,63,0.34); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.vm-wizard.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.vm-wz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.vm-wz-kicker { font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--vm-red); }
.vm-wz-title { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--vm-navy); margin-top: 3px; }
.vm-wz-bars { display: flex; gap: 6px; padding: 0 24px 4px; }
.vm-wz-bar { flex: 1; height: 5px; border-radius: 999px; background: #EAEDF3; }
.vm-wz-bar.on { background: var(--vm-red); }
.vm-wz-body { flex: 1; overflow-y: auto; padding: 18px 24px 8px; }
.vm-wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--vm-line); }
.vm-wz-step { font-size: 12.5px; color: var(--vm-faint); font-family: 'Poppins'; font-weight: 600; }
.vm-wz-foot-btns { display: flex; gap: 9px; }
.vm-wz-note { font-size: 12.5px; color: var(--vm-muted); background: #F5F7FB; border-radius: 10px; padding: 10px 13px; line-height: 1.5; margin: 12px 0 0; }

/* ---- Form controls ---- */
.vm-field { margin-bottom: 16px; }
.vm-label { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: #3B4757; margin-bottom: 7px; }
.vm-input { width: 100%; padding: 11px 14px; font-family: 'Mulish'; font-size: 14.5px; color: var(--vm-navy); background: #F6F8FC; border: 1.6px solid #E4E9F1; border-radius: 11px; outline: none; }
.vm-input:focus { border-color: var(--vm-blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,111,224,0.12); }
.vm-textarea { min-height: 90px; resize: vertical; font-family: 'Mulish'; }
.vm-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vm-form-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vm-check-inline { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--vm-ink); cursor: pointer; }
.vm-radio-list { display: flex; flex-direction: column; gap: 10px; }
.vm-radio-card { display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left; appearance: none; cursor: pointer; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 13px; padding: 15px 17px; }
.vm-radio-card.sel { background: #FEF4F2; border-color: #F3B9AE; }
.vm-radio-vendor { align-items: center; }
.vm-radio { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #CBD4E0; }
.vm-radio-vendor .vm-radio { margin-top: 0; }
.vm-radio.on { background: var(--vm-red); border: none; box-shadow: inset 0 0 0 3px #fff; }
.vm-radio-vend { flex: 1; min-width: 0; }
.vm-radio-name { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--vm-navy); }
.vm-radio-desc { display: block; font-size: 12.5px; color: var(--vm-muted); margin-top: 2px; }
.vm-hint { flex: 0 0 auto; font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; border: 1px solid; border-radius: 999px; padding: 4px 10px; }
.vm-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vm-check-card { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; appearance: none; cursor: pointer; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 12px; padding: 13px 15px; font-family: 'Mulish'; font-size: 14px; color: var(--vm-navy); }
.vm-check-card.sel { background: #FEF4F2; border-color: #F3B9AE; }
.vm-checkbox { flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px; border: 2px solid #CBD4E0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; }
.vm-checkbox.on { background: var(--vm-red); border: none; }
.vm-findings { display: flex; flex-direction: column; gap: 10px; }
.vm-finding { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--vm-line); border-radius: 13px; padding: 12px 16px; }
.vm-finding-pill { flex: 0 0 auto; min-width: 84px; text-align: center; font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 5px 12px; }
.vm-finding-hint { flex: 1; font-size: 12.5px; color: var(--vm-muted); }
.vm-stepper { display: flex; align-items: center; gap: 10px; }
.vm-step-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #E4E8EF; background: #fff; cursor: pointer; font-family: 'Poppins'; font-weight: 700; font-size: 17px; color: var(--vm-muted); line-height: 1; }
.vm-step-btn:hover { background: #F4F6FA; }
.vm-step-count { min-width: 20px; text-align: center; font-family: 'Poppins'; font-weight: 800; font-size: 16px; color: var(--vm-navy); }
.vm-import { width: 100%; margin-top: 12px; }
.vm-verdict { margin-top: 14px; padding: 12px 16px; border: 1px solid; border-radius: 12px; font-size: 13.5px; color: var(--vm-ink); }
.vm-reminder { border: 1px solid var(--vm-line); border-radius: 13px; padding: 14px 16px; margin-bottom: 14px; }
.vm-reminder-title { font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: var(--vm-navy); margin-bottom: 8px; }
.vm-reminder-row { font-size: 13px; color: var(--vm-muted); padding: 4px 0; }
.vm-reminder-day { font-family: 'Poppins'; font-weight: 700; color: var(--vm-amber); margin-right: 4px; }
.vm-summary { background: #F5F7FB; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--vm-ink); line-height: 1.7; }
.vm-result { display: flex; align-items: center; gap: 16px; border: 1px solid; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.vm-result-glyph { font-size: 30px; font-weight: 800; }
.vm-result-verdict { font-family: 'Poppins'; font-weight: 800; font-size: 22px; }
.vm-result-reason { font-size: 13px; color: var(--vm-muted); margin-top: 2px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .vm-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-dash-grid, .vm-audit-grid, .vm-clause-grid, .vm-reports-grid { grid-template-columns: 1fr; }
  .vm-export-grid { grid-template-columns: 1fr; }
  .vm-reg-head { display: none; }
  .vm-row { grid-template-columns: 1fr auto; grid-auto-rows: auto; row-gap: 8px; }
  .vm-row .vm-cell, .vm-row .vm-cell-muted { display: none; }
}
