@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@700&display=swap");

:root {
  --navy: #071b2d;
  --navy-2: #0c2940;
  --ink: #142c3b;
  --muted: #687b83;
  --line: #d8e1df;
  --soft: #edf2f0;
  --paper: #f6f8f7;
  --white: #fff;
  --teal: #287f79;
  --teal-soft: #e1f0ec;
  --green: #2f8a5e;
  --green-soft: #e5f2ea;
  --gold: #c99135;
  --gold-soft: #fff0d5;
  --red: #b45248;
  --red-soft: #f8e5e2;
  --sidebar: 242px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, select { color: inherit; font: inherit; }
button, select, a { outline-offset: 3px; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.ecc-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.ecc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar); flex-direction: column; color: #fff; background: var(--navy); border-right: 1px solid #ffffff12; }
.ecc-sidebar__brand { padding: 22px 20px 18px; border-bottom: 1px solid #ffffff13; }
.ecc-sidebar__brand a { display: flex; align-items: center; gap: 10px; font: 700 18px "Libre Baskerville", Georgia, serif; }
.ecc-sidebar__brand a span { display: grid; width: 31px; height: 31px; place-items: center; color: var(--navy); background: #e7bc67; font-size: 18px; }
.ecc-sidebar__brand small { display: block; margin: 8px 0 0 42px; color: #9fb1b9; font-size: 9px; text-transform: uppercase; }
.ecc-nav { flex: 1; overflow: auto; padding: 10px 10px 18px; }
.ecc-nav p { margin: 16px 10px 6px; color: #708995; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.ecc-nav button { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; width: 100%; min-height: 43px; padding: 7px 10px; border: 0; border-left: 3px solid transparent; color: #afbec4; background: transparent; text-align: left; }
.ecc-nav button i { width: 19px; text-align: center; }
.ecc-nav button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecc-nav button b { min-width: 19px; padding: 2px 5px; color: #f8d79b; background: #ffffff14; font-size: 9px; text-align: center; }
.ecc-nav button:hover { color: #fff; background: #ffffff08; }
.ecc-nav button.is-active { color: #fff; border-left-color: #e7bc67; background: #ffffff0d; }
.ecc-sidebar__footer { padding: 12px; border-top: 1px solid #ffffff13; }
.ecc-sidebar__footer > div { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 10px; background: #ffffff08; }
.ecc-sidebar__footer > div > i { color: #63b599; }
.ecc-sidebar__footer span { display: grid; gap: 2px; }
.ecc-sidebar__footer strong { font-size: 10px; }
.ecc-sidebar__footer small { color: #8fa5ae; font-size: 8px; }
.ecc-sidebar__footer em { color: #75c5a8; font-size: 8px; font-style: normal; font-weight: 700; }
.ecc-sidebar__footer > a { display: block; margin-top: 10px; padding: 8px 10px; color: #8fa5ae; font-size: 10px; }
.ecc-sidebar__footer > a i { margin-right: 6px; }

.ecc-main { grid-column: 2; min-width: 0; }
.ecc-topbar { display: flex; min-height: 72px; align-items: center; gap: 18px; padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.ecc-heading { min-width: 170px; }
.ecc-heading small { color: var(--gold); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ecc-heading h1 { margin: 3px 0 0; font-size: 18px; }
.ecc-context { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 7px; }
.ecc-context label { position: relative; display: grid; gap: 2px; }
.ecc-context label span { position: absolute; top: 5px; left: 10px; z-index: 1; color: #829197; font-size: 7px; font-weight: 700; text-transform: uppercase; pointer-events: none; }
.ecc-context select { min-width: 106px; height: 47px; padding: 17px 28px 4px 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 10px; font-weight: 600; }
.ecc-context label:first-child select { min-width: 145px; }
.ecc-top-actions { display: flex; align-items: center; gap: 6px; }
.ecc-icon-button, .ecc-avatar { position: relative; display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.ecc-icon-button:hover { background: var(--soft); }
.ecc-icon-button.has-alert b { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 2px; border-radius: 8px; color: #fff; background: var(--red); font-size: 8px; }
.ecc-avatar { color: #fff; border-color: var(--teal); border-radius: 50%; background: var(--teal); font-size: 10px; font-weight: 700; }
.ecc-menu-button { display: none; }
.ecc-statusbar { display: flex; min-height: 32px; align-items: center; gap: 18px; padding: 5px 22px; color: #687b83; background: #edf2f0; border-bottom: 1px solid var(--line); font-size: 9px; }
.ecc-statusbar span:first-child { color: var(--teal); font-weight: 700; }
.ecc-statusbar span:first-child i { margin-right: 5px; font-size: 7px; }
.ecc-statusbar button { margin-left: auto; border: 0; color: var(--teal); background: transparent; font-size: 9px; font-weight: 700; }
.ecc-statusbar button i { margin-right: 5px; }

.ecc-content { width: min(100%, 1600px); margin: 0 auto; padding: 22px; }
.ecc-view { display: none; }
.ecc-view.is-active { display: block; }
.ecc-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 30px 0 12px; }
.ecc-section-heading--first { margin-top: 0; }
.ecc-section-heading p, .ecc-panel header p { margin: 0 0 3px; color: var(--gold); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ecc-section-heading h2 { margin: 0; font-size: 23px; }
.ecc-section-heading > div > span, .ecc-panel header div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ecc-mode { display: flex; min-width: 260px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #cce0da; background: #edf7f4; }
.ecc-mode > i { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--teal); }
.ecc-mode span { display: grid; gap: 2px; }
.ecc-mode strong { font-size: 9px; }
.ecc-mode small { color: var(--muted); font-size: 8px; }
.ecc-chip { padding: 8px 10px; font-size: 9px; font-style: normal; font-weight: 700; }
.ecc-chip i { margin-right: 5px; }
.ecc-chip.is-good { color: var(--green); background: var(--green-soft); }
.ecc-chip.is-watch { color: #8c5d17; background: var(--gold-soft); }

.ecc-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ecc-kpi-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ecc-kpi { display: grid; min-width: 0; min-height: 126px; align-content: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; }
.ecc-kpi:hover { border-color: #9db9b3; box-shadow: 0 4px 14px #173b4d0b; }
.ecc-kpi--primary { color: #fff; border-color: var(--navy-2); background: var(--navy-2); }
.ecc-kpi span { color: var(--muted); font-size: 9px; font-weight: 600; }
.ecc-kpi--primary span { color: #b6c5cb; }
.ecc-kpi strong { margin-top: 3px; font-size: 19px; }
.ecc-kpi small { font-size: 8px; font-weight: 700; }
.ecc-kpi em { margin-top: auto; color: #829197; font-size: 8px; font-style: normal; }
.ecc-kpi--primary em { color: #9fb3bd; }
.is-positive { color: var(--green) !important; }
.is-negative { color: var(--red) !important; }
.is-warning { color: #a16c19 !important; }

.ecc-grid { display: grid; gap: 10px; margin-top: 10px; }
.ecc-grid--wide { grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.8fr); }
.ecc-grid--companies { grid-template-columns: 1fr; }
.ecc-grid--three { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
.ecc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ecc-grid--decisions { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr); }
.ecc-grid--decisions-page { grid-template-columns: minmax(0, 1.5fr) 310px; }
.ecc-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ecc-panel > header { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.ecc-panel header h3 { margin: 0; font-size: 13px; }
.ecc-panel > header > strong { font-size: 16px; }
.ecc-panel > header > span { color: var(--muted); font-size: 9px; }
.ecc-panel > header > button, .ecc-company-performance td button, .ecc-working-capital > button, .ecc-tax-recon > button, .ecc-statement-placeholder button { min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--teal); background: #fff; font-size: 9px; font-weight: 700; }
.ecc-panel--chart canvas, .ecc-compact-chart canvas { display: block; width: 100%; height: 245px; padding: 10px 12px 0; }
.ecc-panel--chart > footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 15px 12px; color: var(--muted); font-size: 8px; }
.ecc-panel--chart > footer button { border: 0; color: var(--teal); background: transparent; font-size: 9px; font-weight: 700; }
.ecc-chart-strip { margin-top: 10px; }
.ecc-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 8px; }
.ecc-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 4px; content: ""; }
.ecc-legend .is-actual::before { background: var(--teal); }
.ecc-legend .is-budget::before { background: var(--gold); }
.ecc-legend .is-forecast::before { background: #8b9aa0; }
.ecc-legend .is-risk::before { background: var(--red); }

.ecc-ai-briefing > header > span { padding: 5px 7px; color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.ecc-ai-briefing > button, .ecc-decision-list > button { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 82px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-ai-briefing > button:hover, .ecc-decision-list > button:hover { background: #f8faf9; }
.ecc-ai-briefing > button > i:first-child, .ecc-decision-list > button > i:first-child { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--teal); }
.ecc-ai-briefing > button span, .ecc-decision-list > button span { display: grid; min-width: 0; gap: 3px; }
.ecc-ai-briefing strong, .ecc-decision-list strong { font-size: 10px; }
.ecc-ai-briefing small, .ecc-decision-list small, .ecc-decision-list em { color: var(--muted); font-size: 8px; font-style: normal; }
.ecc-ai-briefing em { color: var(--teal); font-size: 8px; font-style: normal; font-weight: 700; }
.ecc-ai-briefing > button > i:last-child, .ecc-decision-list > button > i:last-child { color: #9aa9ad; }

.ecc-table-scroll { overflow-x: auto; }
.ecc-company-performance table, .ecc-statements table, .ecc-tax-calendar table { width: 100%; border-collapse: collapse; font-size: 9px; white-space: nowrap; }
th { padding: 9px 12px; color: #7b8d93; background: #f2f5f4; font-size: 8px; text-align: right; text-transform: uppercase; }
th:first-child, td:first-child { text-align: left; }
td { height: 48px; padding: 8px 12px; border-top: 1px solid #e4eae8; text-align: right; }
tbody tr:hover { background: #fafcfc; }
.ecc-company-performance tbody tr:not(.ecc-total) { cursor: pointer; }
.ecc-company-performance td:first-child { display: flex; align-items: center; gap: 8px; }
.ecc-company-code { display: grid; width: 28px; height: 25px; place-items: center; color: #fff; background: var(--navy-2); font-size: 8px; font-weight: 700; }
.ecc-state { display: inline-block; min-width: 48px; padding: 4px 6px; font-size: 7px; font-style: normal; font-weight: 700; text-align: center; }
.ecc-state.is-good { color: var(--green); background: var(--green-soft); }
.ecc-state.is-watch { color: #8c5d17; background: var(--gold-soft); }
.ecc-state.is-risk { color: var(--red); background: var(--red-soft); }
.ecc-total { background: #f3f6f5; }

.ecc-ratio-cockpit { margin-top: 10px; }
.ecc-ratio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ecc-ratio-grid > section { min-width: 0; padding: 0 12px 10px; border-right: 1px solid var(--line); }
.ecc-ratio-grid > section:last-child { border-right: 0; }
.ecc-ratio-grid > section > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; min-height: 56px; }
.ecc-ratio-grid > section > div > i { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--teal); }
.ecc-ratio-grid > section:nth-child(2) > div > i { background: #387f9a; }
.ecc-ratio-grid > section:nth-child(3) > div > i { background: var(--gold); }
.ecc-ratio-grid > section:nth-child(4) > div > i { background: #6c7f8b; }
.ecc-ratio-grid > section > div span { display: grid; gap: 2px; }
.ecc-ratio-grid > section > div strong { font-size: 9px; }
.ecc-ratio-grid > section > div small { color: var(--muted); font-size: 7px; }
.ecc-ratio-grid > section > div .ecc-state { min-width: 42px; font-size: 6px; }
.ecc-ratio-grid section > button { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; min-height: 42px; align-items: center; padding: 6px 0; border: 0; border-top: 1px solid #e8edec; background: #fff; text-align: left; }
.ecc-ratio-grid section > button span { color: var(--muted); font-size: 8px; }
.ecc-ratio-grid section > button strong { font-size: 10px; }
.ecc-ratio-grid section > button small { grid-column: 1 / 3; font-size: 7px; text-align: right; }
.ecc-ratio-grid section > button:hover span { color: var(--teal); }

.ecc-ebitda-hierarchy, .ecc-sbu-performance { margin-top: 10px; }
.ecc-ebitda-hierarchy td:first-child { min-width: 220px; }
.ecc-tree-depth { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 2px solid var(--teal); }
.ecc-tree-depth.is-holding { margin-left: 14px; border-color: var(--gold); }
.ecc-tree-depth.is-company { margin-left: 29px; border-color: #91a2a7; }
.ecc-sbu-performance td:first-child { min-width: 190px; }
.ecc-sbu-code { display: inline-grid; width: 28px; height: 25px; margin-right: 8px; place-items: center; color: #fff; background: var(--teal); font-size: 7px; font-weight: 700; }

.ecc-compact-chart canvas { height: 155px; }
.ecc-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ecc-mini-stats span { display: grid; gap: 3px; padding: 9px 12px; border-right: 1px solid var(--line); }
.ecc-mini-stats small { color: var(--muted); font-size: 7px; }
.ecc-mini-stats strong { font-size: 10px; }
.ecc-cycle { display: flex; min-height: 125px; align-items: center; justify-content: center; gap: 8px; padding: 14px; }
.ecc-cycle div { display: grid; width: 70px; height: 70px; align-content: center; gap: 2px; border: 5px solid var(--teal); border-radius: 50%; text-align: center; }
.ecc-cycle div:nth-of-type(2) { border-color: var(--gold); }
.ecc-cycle div:nth-of-type(3) { border-color: #7e98a4; }
.ecc-cycle span, .ecc-cycle small { color: var(--muted); font-size: 7px; }
.ecc-cycle strong { font-size: 16px; }
.ecc-cycle > i { color: #93a4a9; font-size: 9px; }
.ecc-working-capital > button { display: block; width: calc(100% - 28px); margin: 0 14px 14px; }
.ecc-progress { height: 6px; margin: 16px 14px 8px; overflow: hidden; background: #e3e9e7; }
.ecc-progress i { display: block; height: 100%; background: var(--teal); }
.ecc-progress--warning i { background: var(--gold); }
.ecc-close-health ul, .ecc-working-capital ul { display: grid; gap: 0; margin: 8px 14px 14px; padding: 0; list-style: none; }
.ecc-close-health li, .ecc-working-capital li { display: flex; min-height: 31px; align-items: center; gap: 7px; border-bottom: 1px solid #e7eceb; color: var(--muted); font-size: 8px; }
.ecc-close-health li i { width: 12px; color: var(--teal); }
.ecc-close-health li span, .ecc-working-capital li strong { margin-left: auto; color: var(--ink); }

.ecc-profit-bars { display: grid; gap: 15px; padding: 16px; }
.ecc-profit-bars > div { display: grid; grid-template-columns: minmax(120px, 1.1fr) 1.8fr 56px; gap: 10px; align-items: center; }
.ecc-profit-bars span { display: grid; gap: 2px; font-size: 9px; font-weight: 700; }
.ecc-profit-bars small { color: var(--muted); font-size: 7px; font-weight: 400; }
.ecc-profit-bars i { height: 7px; overflow: hidden; background: #e3e9e7; }
.ecc-profit-bars i b { display: block; height: 100%; background: var(--teal); }
.ecc-profit-bars i b.is-risk { background: var(--red); }
.ecc-profit-bars > div > strong { font-size: 9px; text-align: right; }
.ecc-tax-list { display: grid; }
.ecc-tax-list button { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 58px; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-tax-list button span { display: grid; grid-template-columns: 25px 1fr; gap: 2px 8px; align-items: center; }
.ecc-tax-list button i { grid-row: 1 / 3; display: grid; width: 25px; height: 25px; place-items: center; color: #fff; background: var(--teal); }
.ecc-tax-list button:nth-child(2) i { background: var(--gold); }
.ecc-tax-list b { font-size: 9px; }
.ecc-tax-list small { color: var(--muted); font-size: 7px; }
.ecc-tax-list > button > strong { font-size: 11px; }

.ecc-decision-list > button { grid-template-columns: 34px 1fr auto 8px; min-height: 71px; }
.ecc-decision-list > button:nth-child(2) > i:first-child { background: var(--green); }
.ecc-decision-list--full > button { min-height: 78px; }
.ecc-report-shortcuts > button { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-report-shortcuts > button > i:first-child { color: var(--teal); font-size: 17px; }
.ecc-report-shortcuts span { display: grid; gap: 3px; }
.ecc-report-shortcuts strong { font-size: 9px; }
.ecc-report-shortcuts small { color: var(--muted); font-size: 7px; }
.ecc-report-shortcuts > button > i:last-child { color: #91a2a7; }

.ecc-segmented { display: flex; padding: 2px; background: var(--soft); border: 1px solid var(--line); }
.ecc-segmented button { min-height: 29px; padding: 5px 9px; border: 0; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; }
.ecc-segmented button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px #102f3f12; }
.ecc-driver-list > button { display: grid; grid-template-columns: 70px 1fr; gap: 2px 8px; align-items: center; width: 100%; min-height: 53px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-driver-list > button > span { grid-row: 1 / 3; font-size: 10px; font-weight: 700; }
.ecc-driver-list strong { font-size: 9px; }
.ecc-driver-list small { color: var(--muted); font-size: 7px; }
.ecc-secondary-button, .ecc-primary-button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 9px; font-weight: 700; }
.ecc-primary-button { color: #fff; border-color: var(--teal); background: var(--teal); }

.ecc-close-board > header > span { color: var(--teal); font-weight: 700; }
.ecc-workstreams { display: grid; grid-template-columns: 1fr 1fr; }
.ecc-workstreams button { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-workstreams button:hover { background: #f8faf9; }
.ecc-workstreams span { font-size: 9px; }
.ecc-workstreams span i { display: inline-grid; width: 22px; height: 22px; margin-right: 7px; place-items: center; color: #fff; background: var(--teal); }
.ecc-workstreams button:nth-child(3) span i, .ecc-workstreams button:nth-child(5) span i, .ecc-workstreams button:nth-child(6) span i { background: var(--gold); }
.ecc-workstreams b { font-size: 10px; }

.ecc-statements .ecc-table-scroll[hidden], .ecc-statement-placeholder[hidden] { display: none; }
.ecc-statements td:first-child { min-width: 150px; }
.ecc-statement-placeholder { display: grid; min-height: 310px; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; }
.ecc-statement-placeholder > i { color: var(--teal); font-size: 28px; }
.ecc-statement-placeholder h4 { margin: 4px 0 0; }
.ecc-statement-placeholder p { margin: 0; color: var(--muted); font-size: 9px; }

.ecc-tax-calendar td:first-child strong, .ecc-tax-calendar td:first-child small { display: block; }
.ecc-tax-calendar td:first-child small { color: var(--muted); font-size: 7px; }
.ecc-inline-progress { display: grid; grid-template-columns: 70px 28px; gap: 5px; align-items: center; }
.ecc-inline-progress::before { grid-column: 1; grid-row: 1; height: 5px; background: #e1e8e6; content: ""; }
.ecc-inline-progress i { grid-column: 1; grid-row: 1; z-index: 1; height: 5px; background: var(--teal); }
.ecc-inline-progress.is-watch i { background: var(--gold); }
.ecc-inline-progress span { font-size: 8px; }
.ecc-tax-recon { padding-bottom: 14px; }
.ecc-tax-recon > div { display: flex; min-height: 41px; align-items: center; justify-content: space-between; margin: 0 14px; border-bottom: 1px solid var(--line); font-size: 9px; }
.ecc-tax-recon > div strong { font-size: 10px; }
.ecc-tax-recon > button { margin: 12px 14px 0; }

.ecc-approval-policy > div { display: grid; gap: 0; }
.ecc-approval-policy > div > span { display: grid; grid-template-columns: 28px 1fr; gap: 3px 9px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ecc-approval-policy > div i { grid-row: 1 / 3; display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--teal); }
.ecc-approval-policy strong { font-size: 9px; }
.ecc-approval-policy small { color: var(--muted); font-size: 8px; }
.ecc-report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ecc-report-grid > button { display: grid; grid-template-columns: 36px 1fr; gap: 10px; min-height: 155px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; }
.ecc-report-grid > button:hover { border-color: #94b5ae; box-shadow: 0 5px 15px #173b4d0b; }
.ecc-report-grid > button > i { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--teal); font-size: 16px; }
.ecc-report-grid span { display: grid; align-content: start; gap: 5px; }
.ecc-report-grid small { color: var(--gold); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.ecc-report-grid strong { font-size: 10px; line-height: 1.4; }
.ecc-report-grid em { color: var(--muted); font-size: 8px; font-style: normal; line-height: 1.5; }
.ecc-report-grid > button > b { grid-column: 2; align-self: end; color: var(--teal); font-size: 8px; }

.ecc-scrim { position: fixed; inset: 0; z-index: 49; display: none; background: #061b2d70; }
.ecc-scrim.is-visible { display: block; }
.ecc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: flex; width: min(440px, 100%); flex-direction: column; background: #fff; box-shadow: -18px 0 45px #071b2d24; transform: translateX(102%); transition: transform 180ms ease; }
.ecc-drawer.is-open { transform: translateX(0); }
.ecc-drawer > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ecc-drawer > header small { color: var(--gold); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ecc-drawer > header h2 { margin: 3px 0 0; font-size: 17px; }
.ecc-drawer__content { flex: 1; overflow: auto; padding: 18px; }
.ecc-drawer__hero { padding: 18px; color: #fff; background: var(--navy-2); }
.ecc-drawer__hero span, .ecc-drawer__hero small { display: block; color: #afc1c8; font-size: 8px; }
.ecc-drawer__hero strong { display: block; margin: 7px 0 5px; font-size: 24px; }
.ecc-drawer__content section { margin-top: 22px; }
.ecc-drawer__content section h3 { margin: 0 0 8px; font-size: 12px; }
.ecc-drawer__content section > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.ecc-evidence-list { border-top: 1px solid var(--line); }
.ecc-evidence-list button { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; width: 100%; min-height: 57px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.ecc-evidence-list button > i:first-child { color: var(--teal); font-size: 15px; }
.ecc-evidence-list span { display: grid; gap: 3px; }
.ecc-evidence-list strong { font-size: 9px; }
.ecc-evidence-list small { color: var(--muted); font-size: 8px; }
.ecc-evidence-list button > i:last-child { color: #91a2a7; }
.ecc-recommendation { display: flex; gap: 10px; padding: 12px; border: 1px solid #cde0db; background: #edf7f4; }
.ecc-recommendation > i { color: var(--teal); font-size: 18px; }
.ecc-recommendation span { display: grid; gap: 4px; }
.ecc-recommendation strong { font-size: 9px; }
.ecc-recommendation small { color: var(--muted); font-size: 8px; }
.ecc-drawer > footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ecc-toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; max-width: 330px; padding: 11px 14px; color: #fff; background: var(--navy); opacity: 0; transform: translateY(10px); transition: 160ms ease; pointer-events: none; font-size: 9px; }
.ecc-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  :root { --sidebar: 220px; }
  .ecc-content { padding: 18px; }
  .ecc-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ecc-kpi-grid--four { grid-template-columns: repeat(4, 1fr); }
  .ecc-context label:nth-child(3) { display: none; }
  .ecc-report-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1020px) {
  :root { --sidebar: 0px; }
  .ecc-shell { grid-template-columns: 1fr; }
  .ecc-main { grid-column: 1; }
  .ecc-sidebar { width: 242px; transform: translateX(-102%); transition: transform 180ms ease; }
  .ecc-sidebar.is-open { transform: translateX(0); }
  .ecc-menu-button { display: grid; }
  .ecc-grid--wide, .ecc-grid--three, .ecc-grid--two, .ecc-grid--decisions, .ecc-grid--decisions-page { grid-template-columns: 1fr; }
  .ecc-context label:nth-child(2), .ecc-context label:nth-child(4) { display: none; }
  .ecc-kpi-grid--four { grid-template-columns: repeat(2, 1fr); }
  .ecc-report-grid { grid-template-columns: repeat(2, 1fr); }
  .ecc-ratio-grid { grid-template-columns: repeat(2, 1fr); }
  .ecc-ratio-grid > section:nth-child(2) { border-right: 0; }
  .ecc-ratio-grid > section:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .ecc-topbar { min-height: 62px; gap: 9px; padding: 8px 12px; }
  .ecc-heading { min-width: 0; flex: 1; }
  .ecc-heading small { display: none; }
  .ecc-heading h1 { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .ecc-context { display: none; }
  .ecc-top-actions .ecc-icon-button { display: none; }
  .ecc-statusbar { padding: 6px 12px; }
  .ecc-statusbar span:nth-child(2) { display: none; }
  .ecc-content { padding: 14px 10px 24px; }
  .ecc-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ecc-section-heading h2 { font-size: 19px; }
  .ecc-mode { width: 100%; min-width: 0; }
  .ecc-kpi-grid, .ecc-kpi-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecc-kpi { min-height: 120px; padding: 12px; }
  .ecc-kpi strong { font-size: 16px; }
  .ecc-panel > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ecc-panel--chart canvas { height: 220px; }
  .ecc-mini-stats { grid-template-columns: 1fr; }
  .ecc-profit-bars > div { grid-template-columns: 1fr 55px; }
  .ecc-profit-bars i { grid-column: 1 / 3; grid-row: 2; }
  .ecc-workstreams { grid-template-columns: 1fr; }
  .ecc-report-grid { grid-template-columns: 1fr; }
  .ecc-ratio-grid { grid-template-columns: 1fr; }
  .ecc-ratio-grid > section { border-right: 0; border-bottom: 1px solid var(--line); }
  .ecc-ratio-grid > section:last-child { border-bottom: 0; }
  .ecc-report-grid > button { min-height: 130px; }
  .ecc-drawer > footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .ecc-kpi-grid, .ecc-kpi-grid--four { grid-template-columns: 1fr; }
}
