/* =====================================================
   DASHBOARD MOCKUP
   ===================================================== */
.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.04),
              0 24px 64px -28px rgba(13, 27, 42, 0.18);
}

/* Top bar */
.dash-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  background: var(--blue-wash);
  border-bottom: 1px solid var(--line);
}
.dash-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.dash-brand-sub {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  color: var(--blue-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 4px;
}
.dash-logo { display: grid; place-items: center; }
.dash-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.dash-tab {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink-3);
  cursor: default;
}
.dash-tab.active {
  background: var(--surface);
  color: var(--navy);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.06);
}
.dash-controls { display: flex; align-items: center; gap: 12px; }
.dash-pill {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
}
.dash-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Body */
.dash-body {
  padding: 24px 24px 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
}

.dash-page-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  gap: 32px;
}
.dash-page-head h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 4px;
}
.dash-page-head p {
  font-size: 13px;
  color: var(--ink-3);
}
.dash-score {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dash-score-meta { line-height: 1.1; }
.dash-score-num {
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.dash-score-num span {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 400;
}
.dash-score-label {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.dash-score-delta {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
  font-family: "Inter", sans-serif;
}

/* KPI Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 6px;
  display: flex; flex-direction: column;
}
.kpi-label {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.kpi-row-2 {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.kpi-delta {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  padding: 2px 6px;
  border-radius: 4px;
}
.kpi-delta.up { color: var(--green); background: var(--green-bg); }
.kpi-delta.down { color: var(--green); background: var(--green-bg); }
.kpi.tone-amber .kpi-delta.up { color: var(--amber); background: var(--amber-bg); }
.kpi-spark { margin: 0 -4px; }

/* Charts grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-grid.second {
  grid-template-columns: 1fr 1fr;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.card-sub {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legend { display: flex; gap: 12px; }
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.legend-item i {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.trend-chart {
  width: 100%;
  height: auto;
  max-height: 220px;
}

/* Donut */
.donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.donut-legend {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.donut-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
}
.donut-legend i {
  width: 8px; height: 8px; border-radius: 2px;
}
.donut-legend .val {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--navy);
  font-weight: 500;
}

/* Branch list */
.branch-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.branch-list li {
  display: grid;
  grid-template-columns: 80px 1fr 32px 80px;
  align-items: center;
  gap: 12px;
}
.branch-name { font-size: 13px; color: var(--ink); font-weight: 500; }
.branch-bar {
  height: 8px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.branch-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 999px;
}
.branch-score {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  text-align: right;
  color: var(--navy);
  font-weight: 500;
}
.branch-flagged {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--mist-2);
  color: var(--ink-3);
}
.branch-flagged.med { background: var(--amber-bg); color: var(--amber); }
.branch-flagged.high { background: var(--red-bg); color: var(--red); }

/* Flagged emails list */
.flag-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.flag-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.flag-list li:last-child { border-bottom: none; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 10px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.avatar.a-0 { background: #2563EB; }
.avatar.a-1 { background: #0D1B2A; }
.avatar.a-2 { background: #7BA9FF; }
.avatar.a-3 { background: #1D4FD4; }
.avatar.a-4 { background: #16263A; }
.flag-mid { min-width: 0; }
.flag-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.flag-branch {
  color: var(--ink-3);
  font-weight: 400;
}
.flag-issue {
  font-size: 12px;
  color: var(--ink-3);
}
.sev {
  font-size: 10px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}
.sev-high     { background: var(--amber-bg); color: var(--amber); }
.sev-critical { background: var(--red-bg); color: var(--red); }
.sev-medium   { background: var(--blue-tint); color: var(--navy); }
.flag-time {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  color: var(--ink-4);
}

/* ----- Risk distribution mini chart ----- */
.risk-dist { margin-top: 18px; }
.risk-dist-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line-2);
}
.risk-dist-bar span { display: block; height: 100%; }
.risk-dist-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 12px;
  color: var(--ink-2);
}
.risk-dist-legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.risk-dist-legend i {
  width: 9px; height: 9px;
  border-radius: 2px;
}

/* ----- Step visuals ----- */
.step-vis {
  height: 100px;
  border-radius: 8px;
  background: var(--blue-wash);
  border: 1px solid var(--line-2);
  padding: 18px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}
.sv-line {
  height: 8px;
  background: rgba(13, 27, 42, 0.10);
  border-radius: 4px;
  margin-bottom: 8px;
}
.sv-line.w-90 { width: 90%; }
.sv-line.w-70 { width: 70%; }
.sv-line.w-60 { width: 60%; }
.sv-line.w-40 { width: 40%; }
.sv-caret {
  position: absolute;
  bottom: 20px; right: 22px;
  width: 1.5px; height: 14px;
  background: var(--navy);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.step-scan { display: flex; align-items: center; }
.step-scan svg { width: 100%; height: auto; }

.step-resolve { display: flex; align-items: center; justify-content: center; padding: 12px; }
.sv-pop {
  background: var(--surface);
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  max-width: 240px;
  box-shadow: 0 6px 14px -4px rgba(13, 27, 42, 0.15);
}
.sv-pop-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 8px;
}
.sv-pop-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.sv-pop-line {
  height: 5px; border-radius: 2px;
  background: rgba(13, 27, 42, 0.10);
  margin-bottom: 4px;
}
.sv-pop-line.w-90 { width: 95%; }
.sv-pop-line.w-70 { width: 70%; }
.sv-pop-actions {
  display: flex; gap: 4px;
  margin-top: 8px;
}
.sv-pop-btn {
  flex: 1;
  height: 16px;
  border-radius: 3px;
  background: var(--line-2);
}
.sv-pop-btn.primary { background: var(--navy); }

/* Responsive dash */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid.second { grid-template-columns: 1fr; }
  .dash-tabs { display: none; }
}
@media (max-width: 700px) {
  .dash-page-head { flex-direction: column; align-items: flex-start; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .branch-list li { grid-template-columns: 64px 1fr auto; }
  .branch-list li .branch-flagged { grid-column: 2 / -1; text-align: left; margin-top: 4px; }
}

/* Section padding shrink for dashboard hero */
.dashboard-section {
  background: var(--blue-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   ROLE SWITCHER + ROLE-SPECIFIC DASHBOARD BLOCKS
   ============================================================ */
.dash-rolewrap { width: 100%; }

.dash-rolebar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-rolebar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.dash-roleseg {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.04);
}
.dash-roleseg button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.dash-roleseg button:hover { color: var(--navy); }
.dash-roleseg button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(13, 27, 42, 0.18);
}
.dash-rolebar-note {
  flex: 1 1 280px;
  min-width: 240px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* Employee shoutout strip */
.dash-shoutout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-tint);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.dash-shoutout-ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash-shoutout b { color: var(--navy); }
.dash-shoutout-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue-tint);
  padding: 4px 11px;
  border-radius: 999px;
}

/* You vs team bars */
.vt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.vt-row-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.vt-name { font-weight: 500; color: var(--ink); }
.vt-val { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); }
.vt-team { color: var(--ink-3); font-weight: 500; }
.vt-track { display: block; height: 8px; background: var(--mist-2); border-radius: 999px; overflow: visible; position: relative; }
.vt-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--navy)); border-radius: 999px; }
.vt-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-3); border-radius: 1px; }
.vt-note { font-size: 11.5px; color: var(--green); margin-top: 6px; font-weight: 500; }
.vt-foot {
  margin-top: 4px;
  padding: 11px 13px;
  background: var(--blue-wash);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Manager approve button */
.dash-approve-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-wash);
  border: 1px solid var(--blue-tint);
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
}

/* Employee recent sends list */
.sends-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sends-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-2);
}
.sends-list li:last-child { border-bottom: none; }
.sends-subj { font-size: 13px; font-weight: 500; color: var(--ink); }
.sends-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sends-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sends-status.clean { background: var(--green-bg); color: var(--green); }
.sends-status.fixed { background: var(--blue-wash); color: var(--blue); }

@media (max-width: 1100px) {
  .dash-rolebar-note { flex-basis: 100%; }
}

/* ============================================================
   DASH2 — full app-style dashboard (sidebar + topbar + body)
   ============================================================ */
.dash2 {
  display: grid;
  grid-template-columns: 230px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(13, 27, 42, 0.28);
  font-size: 14px;
}

/* Sidebar */
.dash2-side {
  background: #0D1B2A;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash2-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.dash2-brandtext { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; flex-direction: column; line-height: 1; }
.dash2-brandtext span { font-family: "Inter", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; color: #6b87a8; margin-top: 3px; }
.dash2-navsection { font-family: "Inter", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #586b85; padding: 14px 10px 6px; }
.dash2-navlink {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px;
  color: #aab8c9; font-size: 13.5px; font-weight: 500;
  cursor: default;
}
.dash2-navlink:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dash2-navlink.active { background: rgba(37,99,235,0.20); color: #fff; }
.dash2-navico { width: 17px; height: 17px; display: grid; place-items: center; opacity: 0.85; }
.dash2-navico svg { width: 17px; height: 17px; }
.dash2-navlink.active .dash2-navico { color: #7BA9FF; opacity: 1; }
.dash2-navbadge { margin-left: auto; background: var(--blue); color: #fff; font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; }

/* Main column */
.dash2-main { display: flex; flex-direction: column; background: #F7F9FC; min-width: 0; }
.dash2-top {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 22px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.dash2-top-title { font-weight: 600; color: var(--navy); font-size: 15px; }
.dash2-search {
  margin-left: 14px; flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 9px;
  background: #F1F4F8; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 12px;
  color: var(--ink-3); font-size: 13px;
}
.dash2-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.dash2-top-icons { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dash2-iconbtn { position: relative; width: 18px; height: 18px; color: var(--ink-2); }
.dash2-iconbtn svg { width: 18px; height: 18px; }
.dash2-dot { position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); border: 1.5px solid #fff; }
.dash2-viewas {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 14px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.dash2-viewas b { font-family: "Inter", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); }
.dash2-viewas svg { width: 13px; height: 13px; color: var(--ink-3); }

/* Body */
.dash2-body { padding: 20px 22px 26px; overflow: hidden; }

.dash2-setup {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--blue-wash), #fff);
  border: 1px solid var(--blue-tint); border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
}
.dash2-setup-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.dash2-setup-ico svg { width: 18px; height: 18px; }
.dash2-setup-tx { display: flex; flex-direction: column; gap: 2px; }
.dash2-setup-tx b { color: var(--navy); font-size: 14px; }
.dash2-setup-tx span { font-size: 12.5px; color: var(--ink-2); }
.dash2-setup-bar { margin-left: auto; width: 120px; height: 6px; background: #fff; border: 1px solid var(--blue-tint); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.dash2-setup-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.dash2-setup-btn { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }

.dash2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.dash2-head h3 { font-size: 26px; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 4px; font-weight: 700; }
.dash2-head p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.dash2-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dash2-range { font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.dash2-export { font-size: 13px; font-weight: 600; color: #fff; background: var(--navy); border-radius: 8px; padding: 9px 14px; }

/* KPIs */
.dash2-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.dash2-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.dash2-kpi-label { font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.dash2-kpi-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; }
.dash2-kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.dash2-kpi-delta { font-family: "Inter", sans-serif; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.dash2-kpi-delta.up { color: #0E7C53; background: #E3F4EC; }
.dash2-kpi-delta.good { color: #0E7C53; background: #E3F4EC; }
.dash2-kpi-delta.warn { color: #9A6206; background: #FBF0DC; }
.dash2-kpi-foot { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* Cards grid */
.dash2-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 14px; }
.dash2-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.dash2-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash2-card-title { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.dash2-card-sub { font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.dash2-flagcount { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.dash2-link { font-size: 12px; color: var(--blue); font-weight: 600; }
.dash2-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.dash2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash2-legend i { width: 9px; height: 9px; border-radius: 2px; }

/* Trend chart */
.dash2-chart { width: 100%; }
.dash2-xaxis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--ink-3); font-family: "Inter", sans-serif; }

/* Risk mix */
.dash2-mix { display: flex; flex-direction: column; gap: 14px; }
.dash2-mixbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--mist-2); }
.dash2-mixlegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.dash2-mixlegend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.dash2-mixlegend i { width: 10px; height: 10px; border-radius: 2px; }
.dash2-mixlegend .val { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; color: var(--navy); }

/* Consistency bars */
.dash2-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dash2-bars li { display: grid; grid-template-columns: 92px 1fr 32px 56px; align-items: center; gap: 12px; }
.dash2-bars-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.dash2-bars-track { height: 8px; background: var(--mist-2); border-radius: 999px; overflow: hidden; }
.dash2-bars-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--navy)); border-radius: 999px; }
.dash2-bars-score { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); text-align: right; }

/* Severity pills */
.dash2-sev { font-family: "Inter", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.dash2-sev.low { color: #0E7C53; background: #E3F4EC; }
.dash2-sev.med { color: #9A6206; background: #FBF0DC; }
.dash2-sev.high { color: #B42318; background: #FBE7E5; }

/* Pending approvals */
.dash2-appr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash2-appr li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.dash2-appr li:last-child { border-bottom: none; }
.dash2-appr-av { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dash2-appr-name { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.dash2-appr-issue { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }

@media (max-width: 1100px) {
  .dash2 { grid-template-columns: 1fr; }
  .dash2-side { display: none; }
  .dash2-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash2-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash2-top { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .dash2-search { display: none; }
  .dash2-viewas b { display: none; }
  .dash2-body { padding: 16px 12px 20px; }
  .dash2-setup { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .dash2-setup-bar { display: none; }
  .dash2-setup-btn { margin-left: 0; }
  .dash2-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash2-head-actions { width: 100%; }
  .dash2-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
}
