:root {
  --night: #07090d;
  --graphite: #111722;
  --navy: #14365f;
  --navy-deep: #0a203d;
  --sky: #91bce1;
  --blue: #2478bd;
  --blue-soft: #eaf3fb;
  --ice: #f4f8fc;
  --card: #ffffff;
  --ink: #142235;
  --muted: #66758b;
  --line: #d7e1ed;
  --danger: #e25454;
  --danger-bg: #fff0f0;
  --good: #2ca76e;
  --good-bg: #e9f8ef;
  --shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 78% 0%, #122840 0, var(--night) 34rem), var(--night); color: #eef5fc; font-family: Aptos, "Segoe UI", Arial, sans-serif; }
.topbar { border-bottom: 1px solid rgba(145, 188, 225, .24); background: rgba(0, 0, 0, .38); }
.topbar-inner { width: min(1420px, calc(100% - 48px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand-lockup { display: grid; width: 100%; gap: 2px; text-transform: uppercase; }
.brand-logo { display: block; width: 100%; max-height: 190px; object-fit: contain; border-radius: 8px; }
.brand-name { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .22em; line-height: 1; }
.brand-subtitle { color: #a8bfda; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.status { color: #a8bfda; font-size: 13px; font-weight: 700; }.status-working { color: #ffd378; }.status-ready { color: #8de2b5; }.status-error { color: #ff9a91; }

main { width: min(1420px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 68px; }
.control-shell { display: grid; grid-template-columns: 1fr minmax(350px, 435px); gap: 44px; align-items: center; margin-bottom: 28px; padding: 34px 36px; border: 1px solid rgba(145, 188, 225, .26); background: linear-gradient(115deg, rgba(16, 28, 45, .96), rgba(7, 11, 17, .82)); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 7px; color: #92bae0; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 12px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -.055em; line-height: .9; } h2 { margin-bottom: 0; color: var(--ink); font-size: 29px; letter-spacing: -.035em; } h3 { margin-bottom: 0; color: var(--ink); font-size: 17px; }
.lead { max-width: 690px; margin-bottom: 28px; color: #c4d4e6; font-size: 17px; line-height: 1.55; }
.metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); max-width: 680px; margin: 0; border-top: 1px solid rgba(145, 188, 225, .26); border-bottom: 1px solid rgba(145, 188, 225, .26); }
.metadata-grid div { padding: 12px 18px 12px 0; }.metadata-grid div + div { padding-left: 18px; border-left: 1px solid rgba(145, 188, 225, .2); }.metadata-grid dt { margin-bottom: 4px; color: #8ea8c3; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.metadata-grid dd { margin: 0; color: #fff; font-size: 14px; font-weight: 700; }

.metadata-history { grid-column: 2; grid-row: 2; display: grid; gap: 7px; padding-top: 0 !important; }.history-picker { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; align-items: center; color: #8ea8c3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.history-picker select { min-width: 0; padding: 5px 7px; border-color: rgba(145, 188, 225, .42); border-radius: 0; background: rgba(7, 13, 22, .74); color: #fff; font-size: 11px; font-weight: 700; text-transform: none; }.saved-report-field { display: none; }

.upload-card { display: grid; gap: 13px; padding: 22px; color: var(--ink); border: 1px solid #b9d0e5; background: #f7fbff; box-shadow: 0 16px 35px rgba(0, 0, 0, .23); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--sky); color: var(--navy); font-size: 15px; font-weight: 800; }.form-heading small { color: var(--muted); font-size: 11px; font-weight: 600; }
.date-field, .file-field { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 800; }.upload-card .saved-report-field { display: none; }
input, select { width: 100%; border: 1px solid #c5d5e4; border-radius: 2px; background: white; padding: 10px; color: var(--ink); font: inherit; } input[type="file"] { padding: 8px; font-weight: 500; } small { color: var(--muted); font-size: 11px; font-weight: 500; }
button { border: 1px solid transparent; border-radius: 2px; padding: 12px 16px; background: var(--blue); color: white; font: 800 13px Aptos, "Segoe UI", sans-serif; letter-spacing: .03em; cursor: pointer; transition: background .15s ease, transform .15s ease; } button:hover { background: #146aa9; transform: translateY(-1px); } button:disabled { opacity: .62; cursor: wait; transform: none; }.secondary { background: var(--navy); }.secondary:hover { background: var(--navy-deep); }.image-button { background: #2f955f; }.image-button:hover { background: #227849; }

.empty-state { display: grid; gap: 6px; padding: 27px 30px; border-left: 4px solid var(--sky); background: rgba(18, 32, 50, .85); color: #b7c9dc; }.empty-state strong { color: #fff; }.hidden { display: none; }
.dashboard { display: grid; gap: 18px; }.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 24px 28px; background: var(--card); }.dashboard-head .eyebrow { margin-bottom: 5px; color: var(--blue); }.dashboard-actions { display: flex; align-items: center; gap: 12px; }.exchange-pill { padding: 8px 10px; border: 1px solid #b6d2eb; color: var(--navy); background: #edf6ff; font-size: 11px; font-weight: 800; }

.summary-card, .budget-card, .table-card, .segment-card, .annual-card, .otb-card { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }.summary-card { padding: 22px 26px; }.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.section-heading .eyebrow, .summary-card .eyebrow, .budget-card .eyebrow, .segment-card .eyebrow, .annual-card .eyebrow, .otb-card .eyebrow { color: var(--blue); }.table-caption, .legend { color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }
.table-wrap { overflow-x: auto; margin-top: 18px; } table { width: 100%; border-collapse: collapse; min-width: 690px; font-size: 13px; } th { background: var(--sky); color: #0d2744; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; } th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; } th:first-child, td:first-child { text-align: left; }.summary-table { min-width: 1020px; }.summary-table .metric-name { color: var(--navy); font-weight: 800; }.summary-table .budget-cell { background: #eef6fd; color: var(--navy); font-weight: 800; }.variance-positive { color: #197047; font-weight: 850; }.variance-negative { color: #be3f3f; font-weight: 850; }.variance-empty { color: var(--muted); }.summary-table tr:last-child td, table tr:last-child td { border-bottom: 0; }
.revenue-breakdown { margin-top: 22px; padding: 18px 20px; background: var(--ice); border-top: 3px solid var(--sky); }.breakdown-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }.breakdown-heading .eyebrow { margin-bottom: 4px; }.breakdown-heading h3 { font-size: 15px; }.breakdown-heading > span { color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; }.breakdown-table { min-width: 1020px; }.breakdown-table th { background: #dcecf9; }.breakdown-table td:first-child { color: var(--navy); font-weight: 700; }.breakdown-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }.breakdown-table .total-row td { color: var(--navy); background: #e9f3fc; font-weight: 900; }

.insight-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; }
.otb-card { padding: 22px 26px; }.otb-table-wrap { margin-top: 14px; }.otb-table { min-width: 560px; font-size: 12px; }.otb-table th { background: var(--navy); color: #fff; }.otb-table td:first-child { color: var(--navy); font-weight: 800; }.otb-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }.otb-table .total-row td { color: var(--navy); background: #e9f3fc; font-weight: 900; }.otb-budget-ratio { color: var(--navy); font-weight: 900; }
.budget-card { padding: 22px 26px; }.budget-value { display: grid; gap: 4px; margin: 12px 0 18px; }.budget-value strong { color: var(--navy); font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -.04em; }.budget-value span { color: var(--muted); font-size: 12px; font-weight: 600; }.budget-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }.budget-stats div { display: grid; gap: 4px; padding-top: 12px; }.budget-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }.budget-stats span, .budget-outlets > span, .budget-outlet-list span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.budget-stats strong { color: var(--ink); font-size: 16px; }.budget-outlets { display: grid; gap: 8px; margin-top: 17px; padding: 12px 14px; background: var(--ice); border-top: 1px solid var(--line); }.budget-outlet-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.budget-outlet-list div { display: grid; gap: 3px; }.budget-outlet-list span { font-size: 8px; letter-spacing: .03em; }.budget-outlet-list strong { color: var(--navy); font-size: 12px; white-space: nowrap; }

.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr); gap: 18px; }.table-card, .segment-card { padding: 22px 26px; }.table-card .eyebrow { color: var(--blue); }.legend { max-width: 190px; line-height: 1.4; }.pill { display: inline-block; padding: 4px 8px; font-size: 11px; font-weight: 800; }.pill-good { color: #167246; background: var(--good-bg); }.pill-alert { color: #bd3737; background: var(--danger-bg); }
.annual-card { padding: 22px 26px 26px; }.annual-heading { margin-bottom: 18px; }.annual-grid { display: grid; gap: 20px; }.annual-block { border: 1px solid var(--line); background: #fbfdff; }.annual-block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--ice); color: var(--navy); }.annual-block-heading strong { font-size: 14px; }.annual-block-heading span { color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; }.annual-table-wrap { margin-top: 0; overflow-x: hidden; }.annual-table { min-width: 0; table-layout: fixed; font-size: 10px; }.annual-table th, .annual-table td { min-width: 0; padding: 7px 3px; white-space: nowrap; }.annual-table th { font-size: 9px; letter-spacing: 0; }.annual-table th:first-child, .annual-table td:first-child { width: 115px; min-width: 115px; padding-left: 7px; }.annual-table th:nth-last-child(2), .annual-table td:nth-last-child(2) { width: 86px; }.annual-table th:last-child, .annual-table td:last-child { width: 76px; }.annual-table thead th { background: var(--navy); color: #fff; }.budget-annual-table thead th { background: #3f7fab; }.annual-table .annual-metric-name { color: var(--navy); font-weight: 750; }.annual-table .annual-total-row td { background: #e8f2fb; color: var(--navy); font-weight: 900; }.annual-table .annual-section-row td { border-top: 3px solid #bed5e8; }.annual-table .annual-total-cell { background: #f0f6fc; color: var(--navy); font-weight: 900; }.annual-table .annual-current-cell { color: #0c5e93; background: #e0f1fc; font-weight: 900; }
.segments { display: grid; gap: 14px; margin-top: 22px; }.segment-line { display: grid; grid-template-columns: minmax(105px, 1fr) 46px; gap: 10px; align-items: center; font-size: 12px; }.segment-line strong { color: var(--navy); font-size: 12px; text-align: right; }.segment-name { display: block; margin-bottom: 5px; color: var(--muted); }.bar-track { height: 7px; overflow: hidden; background: #deebf5; }.bar { height: 100%; background: linear-gradient(90deg, var(--blue), #58a2db); }

.next7-summary { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 2.25fr); gap: 18px; align-items: center; margin-top: 18px; padding: 14px 18px; border-top: 2px solid #b8d8ee; background: #f5faff; }.next7-heading .eyebrow { margin-bottom: 3px; }.next7-heading h3 { color: var(--navy); font-size: 15px; }.next7-heading > span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }.next7-stat-list { display: grid; grid-template-columns: repeat(5, 1fr); }.next7-stat-list div { display: grid; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line); }.next7-stat-list span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.next7-stat-list strong { color: var(--navy); font-size: 14px; white-space: nowrap; }.compact-content-grid { grid-template-columns: minmax(0, 1fr); }
.pickup-card { margin-top: 18px; padding: 18px; border-top: 2px solid #b8d8ee; background: #fff; }.pickup-heading { margin-bottom: 10px; }.pickup-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }.pickup-kpis div { padding: 10px 12px; border: 1px solid var(--line); background: #f8fbfe; }.pickup-kpis span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.pickup-kpis strong { display: block; margin-top: 3px; color: var(--navy); font-size: 16px; }.pickup-chart-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: #fff; }.pickup-chart-wrap svg { display: block; width: 100%; min-width: 720px; height: auto; }.pickup-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }.pickup-legend span::before { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; content: ""; }.pickup-legend .baseline::before { background: #a9a6a4; }.pickup-legend .current::before { background: #f26b21; }.pickup-legend .pickup::before { background: #08a7df; }.pickup-note { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.4; }
@media (max-width: 980px) { .control-shell, .content-grid, .insight-grid { grid-template-columns: 1fr; }.control-shell { gap: 28px; }.dashboard-head { align-items: flex-start; flex-direction: column; }.metadata-grid { max-width: none; }.table-card, .segment-card { min-height: auto; } }
@media (max-width: 620px) { .next7-summary, .next7-stat-list, .pickup-kpis { grid-template-columns: 1fr; gap: 12px; }.next7-stat-list div { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .topbar-inner, main { width: min(100% - 32px, 1420px); }.topbar-inner { height: 64px; }.brand-subtitle, .status { display: none; } main { padding: 28px 0 44px; }.control-shell { padding: 24px 20px; }.metadata-grid { grid-template-columns: 1fr; }.metadata-grid div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(145, 188, 225, .2); }.metadata-history { grid-column: auto; grid-row: auto; padding-top: 12px !important; }.dashboard-head, .summary-card, .table-card, .segment-card, .budget-card, .annual-card, .otb-card { padding-left: 18px; padding-right: 18px; }.dashboard-actions { align-items: stretch; flex-direction: column; width: 100%; }.dashboard-actions button { width: 100%; }.section-heading { flex-direction: column; }.legend { text-align: left; }.budget-stats, .budget-outlet-list { grid-template-columns: 1fr; gap: 12px; }.budget-stats div + div { padding-left: 0; border-left: 0; }.annual-block-heading { align-items: flex-start; flex-direction: column; }.annual-block-heading span { text-align: left; } }

@media (max-width: 620px) { .brand-lockup { width: 82px; }.brand-logo { max-height: 54px; border-radius: 5px; } }

@media (max-width: 620px) {
  .topbar-inner, main { width: min(100% - 24px, 1420px); }
  .control-shell { padding: 22px 16px; }
  .dashboard-head, .summary-card, .table-card, .segment-card, .budget-card, .annual-card, .otb-card { padding-left: 14px; padding-right: 14px; }
  .dashboard-actions button { min-height: 44px; }
  .breakdown-heading { align-items: flex-start; flex-direction: column; }
  .table-caption, .breakdown-heading > span { text-align: left; }
  .annual-table-wrap { overflow-x: auto; }
  .annual-table { min-width: 980px; }
  .summary-table, .breakdown-table, .otb-table { display: block; min-width: 0; }
  .summary-table thead, .breakdown-table thead, .otb-table thead { display: none; }
  .summary-table tbody, .breakdown-table tbody, .otb-table tbody { display: grid; gap: 12px; }
  .summary-table tr, .breakdown-table tr, .otb-table tr { display: grid; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
  .summary-table td, .breakdown-table td, .otb-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; white-space: normal; }
  .summary-table td:last-child, .breakdown-table td:last-child, .otb-table td:last-child { border-bottom: 0; }
  .summary-table td::before, .breakdown-table td::before, .otb-table td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
  .summary-table td:first-child, .breakdown-table td:first-child, .otb-table td:first-child { padding-bottom: 10px; color: var(--navy); font-size: 14px; font-weight: 900; }
  .summary-table td:first-child::before, .breakdown-table td:first-child::before, .otb-table td:first-child::before { display: none; }
}

/* Identidad visual compartida con ERES Dazzler */
@media (min-width: 981px) {
  body {
    padding-left: 236px;
  }

  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 236px;
    border: 0;
    background: #0d2d46;
    box-shadow: 8px 0 28px rgba(13, 45, 70, .08);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 34px 28px;
  }

  .topbar-inner::after {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #aebdca;
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-line;
    content: "INTEGRACIÓN DÄZZLER\A Dazzler Investor";
  }

  .status {
    width: 100%;
    margin-top: 34px;
    padding: 14px 16px;
    border-left: 3px solid #d3aa52;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, .07);
    font-size: 11px;
  }

  main {
    width: calc(100vw - 300px);
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
  }
}

body {
  background: #f3f6f5;
  color: #172f43;
  font-family: "Segoe UI", Aptos, Arial, sans-serif;
  overflow-x: hidden;
}

.brand-name { font-size: 20px; letter-spacing: .16em; }
.brand-subtitle { color: #b9c7d2; }
.session-tools { display: grid; width: 100%; gap: 8px; color: #b9c7d2; font-size: 11px; }
.session-tools button { width: 100%; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; }
.session-tools button:hover { background: rgba(255,255,255,.08); }
main { width: min(1280px, calc(100% - 64px)); padding: 42px 0 68px; }

/* El logo permanece dentro del sidebar en todos los anchos de escritorio. */
@media (min-width: 981px) {
  .topbar {
    background: #e8edef;
    box-shadow: 8px 0 28px rgba(13, 45, 70, .08);
  }

  .topbar-inner {
    align-items: center;
    padding: 24px 22px;
  }

  .brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .brand-logo {
    width: 152px;
    height: 152px;
    max-height: 152px;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(13, 45, 70, .10);
  }

  .status {
    margin-top: 24px;
    color: #31566c;
    background: #f7f9fa;
    border-left-color: #d3aa52;
  }

  .status-ready { color: #18734d; }
  .status-error { color: #a84640; }
  .status-working { color: #9a6b12; }

  .session-tools { color: #536a78; }
  .session-tools button {
    color: #17364e;
    border-color: #b8c5cc;
    background: rgba(255, 255, 255, .42);
  }
  .session-tools button:hover { background: #fff; }

  .topbar-inner::after {
    color: #647985;
    border-top-color: #cbd5da;
  }
}

.control-shell {
  align-items: stretch;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.identity-copy {
  padding: 30px 34px;
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(20, 49, 69, .04);
}

.eyebrow,
.dashboard-head .eyebrow,
.section-heading .eyebrow,
.summary-card .eyebrow,
.budget-card .eyebrow,
.segment-card .eyebrow,
.annual-card .eyebrow,
.otb-card .eyebrow {
  color: #72818a;
  font-size: 9px;
  letter-spacing: .2em;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin-bottom: 12px; color: #143149; font-size: clamp(40px, 5vw, 58px); line-height: 1; }
h2 { color: #143149; font-size: 30px; }
h3 { color: #143149; }
.lead { color: #667680; font-size: 15px; }

.metadata-grid {
  border-color: #dfe6e8;
}
.metadata-grid div + div { border-color: #dfe6e8; }
.metadata-grid dt { color: #839098; }
.metadata-grid dd { color: #17364e; }
.history-picker { color: #839098; }
.history-picker select {
  border-color: #d5dee1;
  border-radius: 5px;
  background: #fff;
  color: #17364e;
}

.upload-card {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(20, 49, 69, .04);
}
.form-heading { border-bottom: 1px solid #dfe5e7; color: #143149; }
input, select { border-color: #d5dee1; border-radius: 5px; }
button { border-radius: 5px; background: #143b59; }
button:hover { background: #0d2d46; }
.secondary { background: #143b59; }
.image-button { background: #c59b43; }
.image-button:hover { background: #a97f2d; }

.empty-state {
  border-left-color: #d3aa52;
  border-radius: 8px;
  background: #fff;
  color: #667680;
  box-shadow: 0 4px 15px rgba(20, 49, 69, .04);
}
.empty-state strong { color: #143149; }
.dashboard { gap: 16px; }
.dashboard-actions { flex-wrap: wrap; justify-content: flex-end; }
.dashboard-head,
.summary-card, .budget-card, .table-card, .segment-card, .annual-card, .otb-card {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(20, 49, 69, .04);
}
.exchange-pill { border-color: #ead9ae; border-radius: 5px; background: #fbf5e5; color: #7b5d20; }

th { background: #edf1f2; color: #3f5260; }
.summary-table .budget-cell { background: #f5f7f7; }
.revenue-breakdown, .next7-summary { border-top-color: #d7b35f; background: #f7f9f8; }
.breakdown-table th { background: #edf1f2; }
.otb-table th, .annual-table thead th { background: #143b59; }
.budget-annual-table thead th { background: #47677d; }
.annual-block { border-color: #dbe3e6; border-radius: 6px; background: #fff; }
.annual-block-heading { background: #f3f6f5; }
.bar { background: linear-gradient(90deg, #143b59, #d3aa52); }
.pill-good { color: #216c50; background: #e9f4ef; }
.pill-alert { color: #a54a45; background: #faefed; }
.pickup-card, .pickup-kpis div { background: #f7f9f8; }

@media (max-width: 980px) {
  body { padding-left: 0; }
  .topbar { background: #0d2d46; }
  main { width: min(100% - 32px, 1280px); }
}

.login-page { padding: 0; background: #f3f6f5; }
.login-shell { display: grid; grid-template-columns: 1.1fr minmax(340px, 460px); align-items: center; gap: 70px; min-height: 100vh; width: min(1050px, calc(100% - 48px)); padding: 48px 0; }
.login-brand h1 { margin-top: 12px; }
.login-brand > p:last-child { max-width: 520px; color: #687982; font-size: 17px; line-height: 1.6; }
.login-card, .users-form { display: grid; gap: 18px; padding: 34px; border: 1px solid #dbe3e6; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(20,49,69,.1); color: #172f43; }
.login-card h2, .users-form h2 { margin: 0; }
.login-card label, .users-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.login-help, .users-form > p { margin: 0; color: #687982; font-size: 13px; line-height: 1.55; }
.login-error { min-height: 18px; margin: 0; color: #a54a45; font-size: 12px; font-weight: 700; }
.users-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; background: transparent; }
.users-dialog::backdrop { background: rgba(8,31,48,.62); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-close { padding: 4px 10px; background: transparent; color: #17364e; font-size: 24px; }
.form-message { min-height: 18px; margin: 0; color: #216c50; font-size: 12px; font-weight: 700; }
.form-message.form-message-error { color: #a54a45; }
@media (max-width: 760px) { .login-shell { grid-template-columns: 1fr; gap: 28px; } .login-brand { padding-top: 20px; } }
.manager-auto-alert {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: 12px;
}

.manager-auto-alert > span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manager-auto-alert > strong { font-size: 0.92rem; }
.manager-auto-alert > small { line-height: 1.35; }
.manager-auto-ready { color: #08734f; background: #ecfdf5; border-color: #86efac; }
.manager-auto-pending { color: #8a5a00; background: #fffbeb; border-color: #fcd34d; }
.manager-auto-error { color: #a51d2d; background: #fff1f2; border-color: #fda4af; }
.manual-manager-button { border: 1px solid #6aa7d8; background: #dff2ff; color: #0f4f7a; box-shadow: none; }
.manual-manager-button:hover { background: #c9e9ff; }
.manager-dialog { width: min(620px, calc(100% - 32px)); }
.dialog-copy { margin: 4px 0 16px; color: #5d6f7f; line-height: 1.5; }
.manager-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid #a8c9e4; border-radius: 9px; background: #f4faff; }
.manager-preview div { display: grid; gap: 3px; padding: 8px; border-radius: 7px; background: #fff; }
.manager-preview span { color: #607486; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.manager-preview strong { color: #153f60; font-size: 15px; }
.manager-preview .manager-preview-title { grid-column: 1 / -1; background: transparent; padding: 0 0 4px; }
@media (max-width: 560px) { .manager-preview { grid-template-columns: 1fr; } .manager-preview .manager-preview-title { grid-column: auto; } }
