/* Case brief */
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.brief-copy { display: grid; gap: 10px; padding: 0 20px 18px; font-size: 14px; line-height: 1.55; }
.brief-copy strong { color: var(--navy); }
.brief-steps { display: grid; gap: 9px; margin: 0; padding: 0 20px 18px 40px; font-size: 14px; line-height: 1.55; }
.brief-steps a, .panel-header .subtitle a { color: var(--blue); font-weight: 650; }
.brief-table { font-size: 13px; }
.brief-table th, .brief-table td { text-align: left; white-space: normal; vertical-align: top; line-height: 1.5; }
.brief-table tbody th { min-width: 150px; background: var(--surface); }
.brief-table td:nth-child(2) { min-width: 170px; color: var(--secondary); }
/* On a narrow screen the table scrolls sideways so the last column stays readable. */
.brief-table td:nth-child(3) { min-width: 300px; }
.brief-table tbody tr:last-child th { border-bottom: 0; }
/* Each company in the group table: its legal name, and its country under it. */
.brief-entity { display: block; }
.brief-entity + .brief-entity { margin-top: 6px; }
.brief-entity small { display: block; color: var(--secondary); font-size: 12px; font-weight: 500; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; margin: 0; padding: 0 20px 20px; }
.glossary dt { color: var(--navy); font-size: 13px; font-weight: 700; }
.glossary dd { margin: 3px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.5; }
.brief-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; background: #f3f8ff; }
.brief-start p { color: var(--secondary); font-size: 13px; }

/* Ranges and status */
.pricing-policy-ok { display: block; margin-top: 2px; color: var(--positive); font-size: 10px; font-weight: 690; }
.status-chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 690; }
.status-chip.ok { background: #e6f3ed; color: var(--positive); }
.status-chip.miss { background: #fbecec; color: var(--negative); }

/* Year-end review */
.year-end-review { display: grid; gap: 12px; }
.year-end-stats .kpi-number { font-size: clamp(19px, 2vw, 26px); }
.year-end-table { min-width: 1020px; }
.year-end-table .status-chip { display: block; width: fit-content; margin: 4px 0 0 auto; }
.year-end-table tbody th { background: var(--surface); }
.year-end-table tbody tr:last-child th { border-bottom: 0; }
.year-end-table select { width: 196px; min-width: 0; font-size: 12px; }
/* Long names wrap, so that the whole table fits a wide window without scrolling sideways. */
.year-end-table tbody th { width: 160px; white-space: normal; }
.year-end-table .year-end-counterparty { width: 136px; white-space: normal; }
/* The floor's note wraps under the select, so that it does not widen the column. */
.year-end-table .year-end-floor { display: block; width: 196px; margin-left: auto; white-space: normal; }
#year-end-message:not(:empty) { flex: 1 1 260px; }
#year-end-message p { margin: 0; }

/* A value the learner may set but should question. Color is backed by a message. */
label.field.field-flag, .field-flag input { color: var(--negative); }
.field-flag input { border-color: #d99aa0; font-weight: 650; }
.field-warning { color: var(--negative); font-size: 12px; font-weight: 600; line-height: 1.5; }
.detail-list li.flagged span, .detail-list li.flagged strong { color: var(--negative); }

/* Price floor */
.check-field { display: flex; align-items: flex-start; gap: 9px; color: var(--navy); font-size: 13px; font-weight: 650; line-height: 1.4; }
.check-field input { flex: 0 0 auto; width: 17px; min-height: 0; height: 17px; margin: 1px 0 0; padding: 0; accent-color: var(--navy); }
.pricing-table { min-width: 880px; }

/* Profit allocation, tax and customs */
.allocation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.detail-list li span small { display: block; margin-top: 2px; font-size: 11px; }
.total-row td { background: #f3f8ff; font-weight: 680; }
.panel-note { padding: 0 20px 12px; }
.rate-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 11px; }

/* Dashboard flag for goods prices below cost or held at the floor */
.alert-banner { margin: 0; padding: 11px 15px; border: 1px solid #ecc9cc; border-left: 4px solid var(--negative); border-radius: 10px; background: #fffafa; color: var(--text); font-size: 13px; line-height: 1.5; }
.alert-banner strong { color: var(--negative); }
.alert-banner-floor { border-color: #ead9b5; border-left-color: #c58a1c; background: #fffcf5; }
.alert-banner-floor strong { color: #8a5a00; }
.alert-banner-info { border-color: #b9cfe6; border-left-color: var(--blue); background: #f3f8fd; color: var(--navy); }

/* Customs duty by importing block, origin and product line */
.customs-table { min-width: 860px; }
.duty-table { min-width: 720px; }
.customs-table tbody tr:not(.total-row) th, .duty-table tbody th { background: var(--surface); }
.customs-table .table-text, .duty-table .table-text { text-align: left; color: var(--secondary); }
.duty-table td input { width: 100%; min-width: 84px; max-width: 150px; }
.duty-table tbody td, .duty-table tbody th { vertical-align: middle; }

/* Service fees and local statutory results */
.service-table { min-width: 760px; }
.stat-table { min-width: 940px; }
.service-table tbody th, .stat-table tbody th { background: var(--surface); }
.service-table tbody tr:last-child th, .stat-table tbody tr:last-child th { border-bottom: 0; }
.stat-table .pricing-out-of-policy > th { color: var(--negative); }
.service-fee-table { min-width: 880px; }
.service-fee-table .pricing-channel { width: 24%; }
small.positive { color: var(--positive); }
small.negative { color: var(--negative); }

/* Year summary pop-up */
.summary-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(39, 52, 88, .28);
  overflow: hidden;
}
.summary-dialog[open] { display: flex; flex-direction: column; }
.summary-dialog::backdrop { background: rgba(39, 52, 88, .46); }
.summary-head, .summary-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.summary-head { border-bottom: 1px solid var(--line); }
.summary-head h2 { font-size: 22px; letter-spacing: -.035em; }
.summary-head h2:focus { outline: 0; }
.summary-foot { border-top: 1px solid var(--line); background: #f3f8ff; }
.summary-foot p { flex: 1 1 220px; color: var(--secondary); font-size: 13px; line-height: 1.45; }
.summary-foot .view-controls { align-items: center; }
.summary-body { display: grid; gap: 12px; padding: 18px 22px 22px; overflow-y: auto; font-size: 14px; line-height: 1.55; }
.summary-lead { color: var(--navy); font-size: 17px; font-weight: 720; letter-spacing: -.02em; line-height: 1.35; }
.summary-section { margin-top: 6px; color: var(--secondary); font-size: 11px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.summary-card { display: grid; gap: 8px; padding: 13px 15px; border: 1px solid var(--border); border-left: 4px solid #9cc5b2; border-radius: 10px; }
.summary-card.outside { border-color: #ecc9cc; border-left-color: var(--negative); background: #fffafa; }
.summary-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.summary-card h3 { font-size: 15px; }
/* The tested entity's country, under its legal name. */
.summary-card h3 .summary-country { display: block; color: var(--secondary); font-size: 12px; font-weight: 500; }
.summary-result { color: var(--secondary); font-size: 13px; }
.summary-result strong { color: var(--navy); }
.summary-card.outside .summary-result strong { color: var(--negative); }
.summary-flag { color: var(--negative); font-size: 13px; font-weight: 650; }
.summary-why { font-size: 13.5px; }
.summary-bridge { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.summary-bridge li { display: grid; gap: 1px; padding: 6px 9px; border-radius: 7px; background: var(--page); font-size: 11px; }
.summary-card.outside .summary-bridge li { background: #f8f1f1; }
.summary-bridge span { color: var(--secondary); }
.summary-bridge strong { color: var(--navy); font-size: 13px; }
.summary-bridge strong.positive { color: var(--positive); }
.summary-bridge strong.negative { color: var(--negative); }
.summary-bridge .summary-bridge-result { background: var(--navy); }
.summary-card.outside .summary-bridge .summary-bridge-result { background: var(--navy); }
.summary-bridge .summary-bridge-result span { color: #cfdcf0; }
.summary-bridge .summary-bridge-result strong { color: #fff; }

@media (max-width: 1090px) {
  .brief-grid, .allocation-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 755px) {
  .glossary { grid-template-columns: minmax(0, 1fr); padding: 0 13px 16px; }
  .brief-copy { padding: 0 13px 14px; }
  .brief-steps { padding: 0 13px 14px 32px; }
  .summary-head, .summary-foot { padding: 13px 15px; }
  .summary-body { padding: 14px 15px 18px; }
  .summary-foot p { display: none; }
  .summary-foot .view-controls, .summary-foot .button { width: 100%; }
}

/* Major shocks: the switch on Scenario settings, the notes on the pages and the pop-up */
.switch-field { position: relative; display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--navy); font-size: 14px; font-weight: 650; cursor: pointer; }
.switch-field input { position: absolute; left: 0; top: 0; width: 38px; height: 22px; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.switch-track { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #c3cedc; transition: background .15s ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 60, .3); transition: transform .15s ease; }
.switch-field input:checked + .switch-track { background: var(--navy); }
.switch-field input:checked + .switch-track::after { transform: translateX(16px); }
.switch-field input:focus-visible + .switch-track { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch-state::after { content: 'off'; }
.switch-field input:checked ~ span .switch-state::after { content: 'on'; }
.alert-banner-shock { display: grid; gap: 4px; border-color: #d9cdea; border-left-color: #6b4fa3; background: #faf7fe; }
.alert-banner-shock strong { color: #553d87; }
.shock-line { display: block; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.text-button:hover { color: var(--navy); }
.shock-card { border-left-color: #6b4fa3; }
.shock-card.shock-down { border-left-color: var(--negative); }
.shock-card.shock-up { border-left-color: var(--positive); }
.shock-card > p { font-size: 14px; }
.shock-note { color: var(--text); font-size: 13.5px; }
.shock-note strong { color: var(--navy); }
.shock-note strong.negative, .shock-effect td.negative { color: var(--negative); }
.shock-note strong.positive, .shock-effect td.positive { color: var(--positive); }
.shock-steps, .shock-ranges { display: grid; gap: 5px; margin: 5px 0 0; padding-left: 18px; font-size: 13.5px; }
.shock-ranges { padding-left: 0; list-style: none; }
.shock-ranges li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 9px; border-radius: 7px; background: var(--page); }
.shock-effect { width: 100%; border-collapse: collapse; font-size: 13px; }
.shock-effect th, .shock-effect td { padding: 6px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.shock-effect th:first-child { text-align: left; }
.shock-effect thead th { color: var(--secondary); font-size: 11px; font-weight: 690; }
.shock-effect tbody th { color: var(--text); font-weight: 600; }
.shock-effect td { font-weight: 700; font-variant-numeric: tabular-nums; }
.shock-small { color: var(--secondary); font-size: 12px; }
.shock-chip { background: #efe9f8; color: #553d87; }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
.shock-note strong.negative, .shock-note strong.positive { white-space: nowrap; }
@media (max-width: 755px) {
  .shock-effect th, .shock-effect td { padding: 6px 6px; }
  .shock-effect thead th { white-space: normal; }
  .shock-effect { font-size: 12px; }
}

/* The question before a reset */
.confirm-dialog { width: min(500px, calc(100vw - 28px)); }
.confirm-dialog .summary-foot { justify-content: flex-end; }

/* A choice between a few options, shown like a segmented switch */
.choice-field { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend { margin-bottom: 5px; padding: 0; color: var(--secondary); font-size: 12px; font-weight: 650; }
.choice-field .segmented { width: fit-content; }
.segmented-radio label { position: relative; cursor: pointer; }
.segmented-radio input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.segmented-radio span { display: block; padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; color: var(--secondary); font-size: 12px; font-weight: 650; }
.segmented-radio input:checked + span { border-color: #dce6f3; background: white; color: var(--navy); box-shadow: 0 1px 2px #27345810; }
.segmented-radio label:hover span { color: var(--navy); }
.segmented-radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.key-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.key-table th, .key-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.key-table th:first-child { text-align: left; }
.key-table thead th { color: var(--secondary); font-weight: 650; white-space: normal; vertical-align: bottom; }
.key-table tbody th { color: var(--text); font-weight: 600; }

/* The Pillar Two check on the Transfer prices page: one row a country. */
.pillar-two-table { min-width: 860px; font-variant-numeric: tabular-nums; }
.pillar-two-table th, .pillar-two-table td { padding-left: 10px; padding-right: 10px; }
.pillar-two-table tbody th { background: var(--surface); }
.pillar-two-table tbody tr:last-child th { border-bottom: 0; }
.pillar-two-table tbody .pricing-total > * { background: #f3f8ff; font-weight: 680; }
.pillar-two-table td:nth-child(2), .pillar-two-table th:nth-child(2) { text-align: left; }
.pillar-two-table .pillar-two-parent { color: var(--secondary); text-align: left; white-space: normal; }
.pillar-two-table .pillar-two-result { display: table-cell; margin: 0; font-size: 12px; font-weight: 600; text-align: left; white-space: normal; min-width: 130px; }
.pillar-two-table .pricing-out-of-policy > th { color: var(--negative); }

/* The year-end quiz: one question at a time, then the score with every answer reviewed.
   It is a panel, not a pop-up, so the page stays in use while a question is open. On a wide
   window it is a column beside the page. On a narrower one it is a sheet along the bottom.
   Minimised, it is a button in the corner. */
.quiz-panel { position: fixed; z-index: 40; right: 0; bottom: 0; left: 222px; display: flex; flex-direction: column; max-height: 56dvh; border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -16px 40px rgba(39, 52, 88, .18); color: var(--text); }
.quiz-panel[hidden] { display: none; }
.app-shell.quiz-docked .workspace { padding-bottom: 56dvh; }
.quiz-panel .summary-body { flex: 1 1 auto; min-height: 0; align-content: start; }
.quiz-panel .summary-head { flex-wrap: nowrap; align-items: flex-start; padding: 14px 18px; }
.quiz-panel .summary-head h2 { font-size: 19px; }
.quiz-panel .summary-foot { padding: 12px 18px; }
.quiz-head-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.quiz-head-button { min-height: 0; padding: 6px 10px; font-size: 12px; }
.quiz-notice { padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: #f3f8ff; color: var(--navy); }
@media (max-width: 1090px) { .quiz-panel { left: 185px; } }
@media (max-width: 755px) {
  .quiz-panel { left: 0; max-height: 62dvh; }
  .app-shell.quiz-docked .workspace { padding-bottom: 62dvh; }
}
@media (min-width: 1240px) {
  .app-shell.quiz-docked { grid-template-columns: 222px minmax(0, 1fr) clamp(350px, 28vw, 440px); }
  .quiz-panel { position: sticky; top: 0; right: auto; bottom: auto; left: auto; align-self: start; height: 100dvh; max-height: none; border-top: 0; border-left: 1px solid var(--border); box-shadow: none; }
  .app-shell.quiz-docked .workspace { padding-bottom: 0; }
  /* Beside the quiz the page has less room, so it takes the layout of a narrower window. */
  .app-shell.quiz-docked .page-header { flex-wrap: wrap; padding-right: 23px; padding-left: 23px; }
  .app-shell.quiz-docked .page-body { padding-right: 23px; padding-left: 23px; }
  .app-shell.quiz-docked .dashboard-detail, .app-shell.quiz-docked .form-grid,
  .app-shell.quiz-docked .brief-grid, .app-shell.quiz-docked .allocation-grid { grid-template-columns: minmax(0, 1fr); }
}
.quiz-panel.is-min { position: fixed; top: auto; right: 18px; bottom: 18px; left: auto; height: auto; max-height: none; border: 0; background: none; box-shadow: none; }
.quiz-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border: 0; border-radius: 999px; background: var(--navy); color: white; font-size: 13px; font-weight: 650; box-shadow: 0 10px 30px rgba(39, 52, 88, .35); cursor: pointer; }
.quiz-pill:hover { background: #3c5078; }
.quiz-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.quiz-pill-where { color: #c0d1e6; font-weight: 600; }
.quiz-pill-open { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; }
.quiz-body { gap: 14px; }
.quiz-progress { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--line); accent-color: var(--blue); }
.quiz-progress::-webkit-progress-bar { background: var(--line); }
.quiz-progress::-webkit-progress-value { background: var(--blue); }
.quiz-progress::-moz-progress-bar { background: var(--blue); }
.quiz-options { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-prompt { margin-bottom: 10px; padding: 0; color: var(--navy); font-size: 16px; font-weight: 680; letter-spacing: -.015em; line-height: 1.4; }
.quiz-option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.quiz-option:hover { background: #f3f8ff; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-letter { flex: 0 0 24px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 999px; color: var(--secondary); font-size: 12px; font-weight: 700; }
.quiz-text { min-width: 0; }
.quiz-option:has(input:checked) { border-color: var(--blue); background: #f3f8ff; }
.quiz-option:has(input:checked) .quiz-letter { border-color: var(--navy); background: var(--navy); color: white; }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.quiz-options:disabled .quiz-option { cursor: default; }
.quiz-options:disabled .quiz-option:hover { background: var(--surface); }
/* Once an answer is checked, right and wrong take over from the colours of the answer picked. */
.quiz-options:disabled .quiz-option.is-right, .quiz-options:disabled .quiz-option.is-right:hover { border-color: var(--positive); background: #eef7f2; }
.quiz-options:disabled .quiz-option.is-right .quiz-letter { border-color: var(--positive); background: var(--positive); color: white; }
.quiz-options:disabled .quiz-option.is-wrong, .quiz-options:disabled .quiz-option.is-wrong:hover { border-color: var(--negative); background: #fbf0f1; }
.quiz-options:disabled .quiz-option.is-wrong .quiz-letter { border-color: var(--negative); background: var(--negative); color: white; }
.quiz-mark { display: block; margin-top: 3px; font-size: 11px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.quiz-option.is-right .quiz-mark { color: var(--positive); }
.quiz-option.is-wrong .quiz-mark { color: var(--negative); }
.quiz-feedback { display: grid; gap: 6px; padding: 12px 14px; border-left: 3px solid var(--positive); border-radius: 0 10px 10px 0; background: #eef7f2; }
.quiz-feedback.is-wrong { border-left-color: var(--negative); background: #fbf0f1; }
.quiz-feedback:focus { outline: 0; }
.quiz-feedback strong { color: var(--navy); }
.quiz-score { display: flex; align-items: baseline; gap: 10px; color: var(--secondary); font-size: 17px; }
.quiz-score strong { color: var(--navy); font-size: 56px; font-weight: 760; letter-spacing: -.04em; line-height: 1; }
.quiz-review { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: quiz; }
.quiz-review-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--positive); border-radius: 0 10px 10px 0; counter-increment: quiz; }
.quiz-review-item.is-wrong { border-left-color: var(--negative); }
.quiz-review-topic { color: var(--secondary); font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.quiz-review-topic::before { content: counter(quiz) ". "; }
.quiz-review-item.is-wrong .quiz-review-topic { color: var(--negative); }
.quiz-review-prompt { color: var(--navy); font-weight: 650; }
.quiz-review-why { color: var(--secondary); }
.quiz-review strong { color: var(--navy); font-weight: 650; }

/* Exchange rates: the Dashboard's table of rates, and the invoice currency on Transfer prices. */
.rates-table { min-width: 640px; }
.rates-table tbody th { background: var(--surface); }
.rates-table .table-text { text-align: left; color: var(--secondary); white-space: normal; min-width: 150px; }
.pricing-currency { font-weight: 600; }
.rates-subheading { margin: 18px 20px 6px; font-size: 15px; }
.exchange-table { min-width: 360px; }
.invoice-fields { display: grid; gap: 10px; }
.invoice-fields select { width: 100%; max-width: 100%; }

/* The Dashboard's treasury: the US parent's cash, its buffer, its credit line and its dividends. */
.treasury-table { min-width: 560px; }
.treasury-table tbody th { white-space: normal; min-width: 200px; }
.treasury-table .treasury-indent { padding-left: 38px; font-weight: 550; }
.treasury-table .negative { color: var(--negative); }
.settings-subheading { margin: 8px 0 0; font-size: 15px; }
/* Bringing cash home: what each subsidiary could send now, and the warning where the credit line takes the strain. */
.cash-home-heading { margin: 18px 20px 4px; }
.cash-home-note { margin: 0 20px 10px; }
.cash-home-table { min-width: 760px; }
.cash-home-table .table-text { white-space: normal; min-width: 150px; text-align: left; }
.pricing-form .cash-home-warning { margin: 0 20px 14px; }
@media (max-width: 520px) {
  .cash-home-heading { margin-inline: 13px; }
  .cash-home-note { margin-inline: 13px; }
  .pricing-form .cash-home-warning { margin-inline: 13px; }
  .treasury-table { min-width: 0; }
  .cash-home-table { min-width: 640px; }
  .treasury-table tbody th { min-width: 140px; position: sticky; left: 0; z-index: 1; }
  .treasury-table .treasury-indent { padding-left: 28px; }
}

/* The Dashboard's market view: guidance against actuals, the share price index, the quarter's move and the scorecard. */
.market-layout { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr); gap: 4px 18px; align-items: start; padding: 0 20px 4px; }
.market-layout .table-scroll { margin: 0; }
.market-chart-wrap { min-width: 0; }
.market-chart { display: block; width: 100%; height: auto; max-height: 260px; }
.market-grid line { stroke: var(--line); stroke-width: 1; }
.market-grid text, .market-axis { fill: var(--secondary); font-size: 12px; }
.market-guidance { stroke: var(--secondary); stroke-width: 1.5; stroke-dasharray: 5 4; }
.market-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.market-point { fill: var(--blue); stroke: var(--surface); stroke-width: 2; }
.market-point.start { fill: var(--secondary); }
.market-value { fill: var(--text); font-size: 12px; font-weight: 650; }
.swatch.market-swatch-guidance { background: transparent; border-top: 2px dashed var(--secondary); border-radius: 0; height: 0; width: 14px; }
.market-table { min-width: 620px; }
.market-table tbody th { white-space: normal; min-width: 170px; }
.market-table .market-selected { background: #f3f8ff; }
.market-table .negative, .market-parts .negative, .market-tests .negative, .summary-body .negative { color: var(--negative); }
.market-table .positive, .market-parts .positive, .summary-body .positive { color: var(--positive); }
.market-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
.market-detail .rates-subheading { margin-top: 14px; }
.market-detail > .table-scroll, .market-move .table-scroll { margin: 0 20px; }
.market-parts { min-width: 0; width: 100%; }
.market-parts tbody th { white-space: normal; font-weight: 550; }
.market-pending { grid-column: 1 / -1; padding-top: 12px; }
.market-tests { display: grid; gap: 8px; margin: 0; padding: 0 20px 6px; list-style: none; }
.market-tests li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; }
.market-tests li > span:last-child { display: grid; gap: 2px; }
.market-tests small { color: var(--secondary); font-size: 12px; }
.market-tests .status-chip { text-align: center; }
.status-chip.info { background: var(--line); color: var(--secondary); }
.market-verdict { padding: 6px 20px 14px; font-size: 13px; }
.summary-tests { padding: 0; }
.shareholder-dividend { padding: 4px 0 8px; }
.shareholder-dividend .field-note { padding: 0 20px 8px; }
.shareholder-field { margin: 0 20px 8px; max-width: 320px; }
.shareholder-table { min-width: 380px; }
.shareholder-table thead th:not(:first-child) { text-align: right; }
.shareholder-table tbody th { white-space: normal; }
@media (max-width: 900px) {
  .market-layout, .market-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .market-layout { padding: 0 12px 4px; }
  .market-table { min-width: 560px; }
  .market-table tbody th { min-width: 130px; position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .market-tests, .market-verdict { padding-left: 14px; padding-right: 14px; }
  .market-detail > .table-scroll, .market-move .table-scroll { margin: 0 14px; }
  .shareholder-table { min-width: 0; }
  .shareholder-table th, .shareholder-table td { padding-left: 8px; padding-right: 8px; }
}

/* The step from 2027 to 2028 and the three-year summary: tables at their full height, the body scrolling. */
.years-body { align-content: start; grid-auto-rows: max-content; }
.years-body .table-scroll { overflow-x: auto; }
