:root {
  color: #14213d;
  background: #eef6ff;
  --green: #1f7a8c;
  --line: #dbe8f6;
  --muted: #52616b;
}
body {
  min-height: 100vh;
}
header {
  background: linear-gradient(90deg, #fff, #f5f9ff);
  border-color: #d8e6f4;
}
.topbar {
  padding: 12px 26px;
}
.brand {
  color: #0b1f53;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-drop {
  width: 28px;
  height: 34px;
  display: inline-block;
}
.login-eyebrow {
  color: #bae6fd;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}
.edition {
  color: #0d5db8;
  font-size: 10px;
}
nav button[aria-current="page"] {
  background: linear-gradient(180deg, #0d63c7, #0750a5);
  color: white;
}
.page-heading h1 {
  font-size: 22px;
}
.login.welcome-offshore {
  max-width: 1024px;
  width: 100%;
  margin: 24px auto;
  padding: 32px;
}
.login-content {
  position: relative;
  z-index: 1;
  max-width: 512px;
}
.login .page-heading h1 {
  font-size: 36px;
  color: white;
}
.login .page-heading p {
  color: #f0f9ff;
}
.login form {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  color: #14213d;
}
.classic-content {
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}
.classic-content *,
.classic-content ::before,
.classic-content ::after {
  letter-spacing: 0;
}
.classic-content h1,
.classic-content h2,
.classic-content h3,
.classic-content p {
  margin: 0;
}
.classic-content button {
  display: inline-block;
  min-height: 0;
  gap: 0;
}
.classic-content button.flex {
  display: flex;
}
.classic-content thead {
  background: transparent;
}
.classic-content input,
.classic-content select {
  min-width: 0;
}
.classic-content .grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.classic-content svg {
  max-width: 100%;
}
.classic-content .recharts-wrapper svg {
  width: auto;
  height: auto;
}
.classic-content .text-lg {
  overflow-wrap: anywhere;
}
.classic-content .data-table {
  border-collapse: collapse;
}
.classic-content .executive-panel {
  margin-bottom: 0;
}
.classic-content .hero-panel p {
  margin-top: 4px;
}
.classic-content .recharts-tooltip-wrapper {
  z-index: 30;
}
.classic-content .recharts-wrapper { overflow:clip; }
.classic-content .recharts-tooltip-wrapper[style*="visibility: hidden"] { display:none; }
.formula-detail {
  margin-top: 24px;
}
.cash-waterfall { height:460px;width:100%; }
.demand-history-chart { height: 320px; width: 100%; min-width: 0; }
.financial-outlook { border-top: 1px solid #dbe8f6; padding-top: 24px; margin-top: 24px; }
.classic-content .financial-outlook p { margin: 12px 0; }
.outlook-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.outlook-metric { border: 1px solid #dbe8f6; border-radius: 6px; background: white; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.outlook-metric span,.outlook-metric strong,.outlook-metric small { display: block; }
.outlook-metric span { font-size: 12px; color: #52616b; }
.outlook-metric strong { font-size: 18px; margin: 6px 0; }
.outlook-metric small { font-size: 11px; color: #52616b; }
.financial-outlook summary { cursor: pointer; color: #1f7a8c; font-weight: 600; padding: 10px 0; }
.financial-outlook details { border-top: 1px solid #dbe8f6; margin-top: 12px; }
.classic-content .financial-outlook h3 { margin: 20px 0 8px; font-size: 15px; }
.outlook-table-wrap { width: 100%; overflow-x: auto; }
.classic-content .financial-outlook .outlook-table { width:100%; min-width:0; table-layout:fixed; }
.outlook-table th:first-child { width:60%; overflow-wrap: anywhere; }
.outlook-table th,.outlook-table td { padding: 10px; }
.outlook-table tbody th { text-align:left; text-transform:none; font-weight:500; }
.outlook-table td { text-align:right; white-space:nowrap; }
@media(max-width:640px) { .outlook-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.market-demand-history { padding-top: 20px; border-top: 1px solid #dbe8f6; }
.market-demand-history .portfolio-label { text-transform: none; }
.market-demand-history .text-2xl { font-size: 18px; }
.classic-content .portfolio-label {
  padding: 2px 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.portfolio-mobile-label { display: none; }
.portfolio-tooltip {
  position: fixed; inset: auto; margin: 0; width: min(300px, calc(100vw - 24px));
  padding: 14px; border: 1px solid #9bbbdc; border-radius: 6px;
  background: #f5faff; color: #14213d; font-size: 14px; line-height: 1.5;
  box-shadow: 0 6px 22px #14213d26; text-transform: none; font-weight: 400;
}
.classic-content .portfolio-tooltip p { margin-top: 6px; }
.portfolio-tooltip { overflow-y: auto; }
.portfolio-tooltip.detailed-tooltip {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
#decision-presentation .border { border-style: solid; }
#decision-presentation .border-t { border-top-style: solid; }
#decision-presentation .strategy-choice {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 12px;
  justify-content: flex-start;
  font-weight: inherit;
}
#decision-presentation .strategy-choice > span:first-child { flex-shrink: 0; }
#decision-presentation .data-table { min-width: 980px; }
#decision-presentation .sustaining-comparison .data-table { min-width: 720px; }
.sustaining-comparison summary { cursor: pointer; color: #1f7a8c; font-weight: 600; }
.sustaining-comparison tbody th { text-align: left; font-weight: 600; text-transform: none; }
@media(max-width:640px) {
  .classic-content .company-portfolio { min-width:0;width:100%; }
  .classic-content .company-portfolio thead { display:none; }
  .classic-content .company-portfolio tbody,.classic-content .company-portfolio tr { display:block; }
  .classic-content .company-portfolio tr { padding:10px 0;border-bottom:1px solid #dbe8f6; }
  .classic-content .company-portfolio td { display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;font-size:12px;padding:5px 0; }
  .portfolio-mobile-label { display: block; color:#52616b; }
}
.formula-detail > .classic-content {
  margin-top: 16px;
}
.band {
  background: rgba(255, 255, 255, 0.75);
  border-color: #dbe8f6;
  padding: 20px 0;
}
progress {
  width: 100%;
  accent-color: #1f7a8c;
}
@media (max-width: 640px) {
  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .login.welcome-offshore {
    padding: 18px;
    background-position: 62% center;
  }
  .login .page-heading h1 {
    font-size: 30px;
  }
  .login form {
    padding: 14px;
  }
  .classic-content .p-5 {
    padding: 14px;
  }
  .classic-content .text-lg {
    font-size: 15px;
  }
  .classic-content .text-xl {
    font-size: 20px;
  }
  .classic-content .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .classic-content .data-table {
    min-width: 0;
  }
  .classic-content .data-table th,
  .classic-content .data-table td {
    padding: 8px 5px;
    font-size: 11px;
  }
  .classic-content .mb-3.flex {
    flex-wrap: wrap;
  }
}
dialog.reset-confirmation {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #c7def3;
  border-radius: 8px;
  background: #f4f9ff;
  color: #102b4e;
}
dialog.reset-confirmation::backdrop { background: rgb(0 0 0 / 40%); }
