:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --line: #d7ded9;
  --ink: #17201b;
  --muted: #65736b;
  --blue: #22577a;
  --teal: #188977;
  --green: #2f7d46;
  --amber: #a96812;
  --red: #b43a31;
  --soft-blue: #e2edf4;
  --soft-green: #e4f1e8;
  --soft-amber: #f7ead7;
  --soft-red: #f7dfdc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #fdfefd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 8px;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.metric span,
.trend-year small,
.field span {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #26312b;
  display: flex;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  text-align: left;
}

.nav-item.active {
  background: var(--soft-blue);
  border-color: #c7d9e6;
  color: #123b5a;
  font-weight: 700;
}

.nav-icon {
  align-items: center;
  background: #eef3f0;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.sidebar-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin-top: auto;
  padding: 0 8px;
}

.status-dot {
  background: var(--teal);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.workspace {
  min-width: 0;
  padding: 22px 28px 36px;
}

.topbar,
.section-head,
.topbar-actions,
.decision-hero,
.panel-title {
  align-items: center;
  display: flex;
}

.topbar {
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 15px;
}

.topbar-actions {
  gap: 10px;
}

.currency-switch {
  align-items: center;
  background: #e8eeea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 3px;
  min-height: 38px;
  padding: 3px;
}

.currency-switch span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  padding: 0 7px;
}

.currency-switch button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  height: 30px;
  padding: 0 9px;
}

.currency-switch button.selected {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 35, 28, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.currency-switch small {
  color: var(--muted);
  font-size: 11px;
  padding: 0 7px 0 3px;
  white-space: nowrap;
}

.segmented {
  background: #e8eeea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  padding: 3px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  height: 32px;
  padding: 0 13px;
}

.segmented .selected {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 35, 28, 0.12);
  color: var(--ink);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.icon-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
}

.primary-button {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  padding: 0 14px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-button,
.icon-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0 12px;
}

.mini-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  height: 30px;
  padding: 0 10px;
}

.mini-button.primary-mini {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.table-actions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.closed-note {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
}

.icon-button {
  width: 38px;
}

.page-grid,
.dashboard-layout,
.region-layout,
.report-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.workflow-guide {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 150px;
  margin-bottom: 16px;
}

.workflow-steps {
  background: #eef3f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px;
}

.workflow-step {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #344039;
  display: grid;
  gap: 2px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 50px;
  padding: 7px 9px;
  text-align: left;
}

.workflow-step span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.workflow-step strong,
.workflow-step small {
  display: block;
  min-width: 0;
}

.workflow-step strong {
  font-size: 13px;
}

.workflow-step small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.workflow-step.active {
  background: var(--surface);
  border-color: #b8d0e0;
  box-shadow: 0 1px 5px rgba(20, 35, 28, 0.08);
}

.workflow-step.active span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.workflow-step.complete:not(.active) span {
  background: var(--soft-green);
  border-color: #b7d7ca;
  color: var(--green);
}

.workflow-validation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.workflow-validation.good {
  background: var(--soft-green);
  border-color: #b7d7ca;
}

.workflow-validation.idle {
  background: var(--surface);
  border-color: var(--line);
}

.workflow-validation.warning {
  background: var(--soft-amber);
  border-color: #ebd1a9;
}

.workflow-validation.danger {
  background: var(--soft-red);
  border-color: #edc3be;
}

.workflow-validation span,
.workflow-validation small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.workflow-validation strong {
  font-size: 22px;
}

.section-head {
  justify-content: space-between;
}

.section-actions,
.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-strip.closed-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.data-panel,
.form-section,
.decision-panel,
.report-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  min-height: 86px;
  min-width: 0;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-top: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.metric small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 8px;
}

.metric.good {
  background: var(--soft-green);
  border-color: #bed9c7;
}

.metric.warning {
  background: var(--soft-amber);
  border-color: #ebd1a9;
}

.metric.danger {
  background: var(--soft-red);
  border-color: #edc3be;
}

body[data-display-currency="VND"] .metric {
  padding: 12px;
}

body[data-display-currency="VND"] .metric strong {
  font-size: 20px;
  line-height: 1.15;
}

body[data-display-currency="VND"] .gop-band-head strong {
  font-size: 18px;
}

body[data-display-currency="VND"] .rent-breakdown {
  gap: 8px;
}

body[data-display-currency="VND"] .rent-breakdown div {
  align-items: flex-start;
  flex-direction: column;
}

body[data-display-currency="VND"] .rent-breakdown strong {
  font-size: 13px;
  text-align: left;
}

body[data-display-currency="VND"] .data-table th,
body[data-display-currency="VND"] .data-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.data-panel,
.form-section,
.decision-panel,
.report-preview {
  padding: 16px;
}

.panel-title {
  gap: 8px;
  margin-bottom: 14px;
}

.panel-icon {
  color: var(--blue);
  font-weight: 900;
}

.panel-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-left: auto;
}

.official-source-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.official-market-table,
.official-hotel-table {
  min-width: 980px;
}

.official-hotel-table td:first-child {
  min-width: 240px;
}

.official-hotel-table td:first-child strong,
.official-hotel-table td:first-child small {
  display: block;
}

.official-hotel-table td:first-child small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.report-official-stats {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

.report-top-hotels {
  min-width: 760px;
}

.two-column {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.two-column > *,
.split-panels > *,
.input-page,
.input-stack,
.category-section,
.form-section,
.wide-scroll,
.outlet-breakdown {
  min-width: 0;
}

.input-stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.compact-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.form-grid.fnb-fields {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.input-basic-tabs {
  background: #e8eeea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  width: fit-content;
}

.input-basic-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  height: 34px;
  padding: 0 14px;
}

.input-basic-tabs button.selected {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 35, 28, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.property-tab-panel {
  display: grid;
  gap: 14px;
}

.property-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.form-grid.required-grid {
  align-items: stretch;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) minmax(250px, 0.9fr);
}

.required-shell {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1.35fr) minmax(260px, 0.85fr) minmax(260px, 0.9fr);
}

.required-card {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.required-card-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.required-card-title span {
  align-items: center;
  background: var(--soft-blue);
  border-radius: 6px;
  color: var(--navy);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 32px;
}

.required-card-title strong {
  font-size: 16px;
}

.required-identity-grid {
  grid-template-columns: 1fr;
}

.amenity-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.required-preview {
  display: grid;
  gap: 8px;
}

.required-preview div,
.computed-field {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.required-preview span,
.computed-field span,
.computed-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.required-preview strong,
.computed-field strong {
  font-size: 18px;
}

.required-preview small {
  color: var(--muted);
  line-height: 1.4;
}

.required-section {
  border-color: #b7d7ca;
  box-shadow: inset 4px 0 0 var(--teal);
}

.optional-section {
  background: #fcfdfb;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form-subhead {
  align-self: end;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: 0;
  padding: 6px 0 2px;
}

.form-spacer {
  min-height: 1px;
}

.formula-note {
  background: var(--soft-blue);
  border: 1px solid #b8d0e0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  grid-column: 1 / -1;
  line-height: 1.55;
  padding: 10px 12px;
}

.field input,
.field select,
.field textarea {
  background: #fbfdfb;
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

.field input,
.field select {
  height: 36px;
}

.field input[data-number] {
  text-align: right;
}

.field textarea {
  line-height: 1.6;
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(24, 137, 119, 0.16);
}

.attachment-grid,
.photo-requirement-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-requirement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-field {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.file-field strong {
  display: block;
}

.file-field small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 4px;
}

.file-picker {
  align-items: center;
  background: var(--soft-green);
  border: 1px solid #b7d7ca;
  border-radius: 6px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  padding: 0 12px;
  width: fit-content;
}

.file-picker input {
  display: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-list span,
.file-list em {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.toggle-field {
  align-items: end;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  min-height: 64px;
  padding: 9px 10px;
}

.toggle-field span {
  grid-column: 1 / -1;
}

.toggle-field input {
  height: 22px;
  margin: 0;
  width: 22px;
}

.toggle-field strong {
  color: var(--teal);
}

.source-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
}

.sync-chip.cloud {
  background: var(--soft-green);
  border-color: #b7d7ca;
  color: var(--green);
  font-weight: 800;
}

.sync-chip.local {
  background: var(--soft-amber);
  border-color: #e6c58f;
  color: var(--amber);
  font-weight: 800;
}

.sync-chip.checking {
  background: var(--soft-blue);
  border-color: #c7d9e6;
  color: var(--blue);
  font-weight: 800;
}

.validation-panel {
  display: grid;
  gap: 12px;
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-status-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.auth-status-row strong,
.auth-status-row span {
  display: block;
}

.auth-status-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.admin-page {
  gap: 16px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-inline-form,
.admin-account-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.transfer-form {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.validation-panel.good {
  border-color: #b7d7ca;
}

.validation-panel.warning {
  border-color: #ebd1a9;
}

.validation-panel.danger {
  border-color: #edc3be;
}

.validation-score {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
}

.validation-score strong {
  font-size: 22px;
}

.validation-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.validation-list {
  display: grid;
  gap: 10px;
}

.validation-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.validation-group {
  display: grid;
  gap: 6px;
}

.validation-group > strong {
  color: var(--blue);
  font-size: 13px;
}

.validation-item {
  align-items: center;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(110px, 0.65fr) minmax(0, 1fr);
  min-height: 38px;
  padding: 7px 9px;
}

.validation-item.pass {
  background: #f5fbf7;
}

.validation-item.warning {
  background: #fffaf0;
  border-color: #ebd1a9;
}

.validation-item.danger {
  background: #fff5f3;
  border-color: #edc3be;
}

.validation-item span {
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.validation-item.pass span {
  color: var(--green);
}

.validation-item.warning span {
  color: var(--amber);
}

.validation-item.danger span {
  color: var(--red);
}

.validation-item b {
  font-size: 13px;
}

.validation-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.validation-empty {
  background: var(--soft-green);
  border: 1px solid #b7d7ca;
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  padding: 12px;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.save-notice {
  background: var(--soft-green);
  border: 1px solid #b7d7ca;
  border-radius: 8px;
  color: #174e42;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.empty-state-panel {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 220px;
  padding: 28px;
}

.empty-state-panel span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.empty-state-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.confirm-card,
.lookup-status {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-card {
  background: var(--surface-2);
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 12px;
}

.confirm-card span,
.lookup-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.confirm-card strong {
  font-size: 18px;
}

.confirm-card small {
  color: var(--muted);
  line-height: 1.45;
}

.confirm-card.good {
  background: var(--soft-green);
  border-color: #b7d7ca;
}

.confirm-card.warning {
  background: var(--soft-amber);
  border-color: #e4c68f;
}

.confirm-card.danger {
  background: var(--soft-red);
  border-color: #edc3be;
}

.lookup-status {
  background: var(--soft-amber);
  color: var(--muted);
  margin-bottom: 12px;
  padding: 10px 12px;
}

.lookup-status.ready {
  background: var(--soft-green);
  border-color: #b7d7ca;
  color: var(--ink);
}

.cost-audit {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.cost-audit-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cost-audit-head strong {
  color: var(--teal);
}

.cost-audit-head span {
  color: var(--muted);
  font-size: 12px;
}

.cost-audit-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cost-audit-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px 12px;
}

.cost-audit-row span {
  font-weight: 800;
}

.cost-audit-row strong,
.cost-audit-row em {
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.cost-audit-row em {
  color: var(--muted);
  min-width: 58px;
}

.cost-audit-row small {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.4;
}

.country-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.overview-subhead {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.overview-subhead strong {
  color: var(--ink);
  font-size: 18px;
}

.overview-subhead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview-subhead.closed {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.country-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  text-align: left;
}

.country-card span,
.country-card small {
  color: var(--muted);
}

.country-card strong {
  font-size: 30px;
  line-height: 1;
}

.country-stage-stats {
  display: grid;
  gap: 3px;
}

.country-stage-stats small {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 63, 55, 0.08);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 6px;
}

.country-card.active {
  background: var(--soft-blue);
  border-color: #b8d0e0;
}

.deal-dashboard {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.deal-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.deal-card strong {
  font-size: 28px;
  line-height: 1;
}

.deal-card small {
  color: var(--muted);
  line-height: 1.55;
}

.stage-select {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 30px;
  min-width: 104px;
  padding: 0 8px;
}

.input-page,
.category-section,
.preliminary-page {
  display: grid;
  gap: 16px;
}

.preliminary-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.textarea-field {
  margin-top: 12px;
}

.button-row {
  margin-top: 12px;
}

.rent-band-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rent-band {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.rent-band span,
.rent-band small {
  color: var(--muted);
  font-size: 12px;
}

.rent-band strong {
  font-size: 24px;
  line-height: 1.15;
}

.rent-band.low {
  border-color: #c7d9e6;
  background: var(--soft-blue);
}

.rent-band.standard {
  border-color: #bed9c7;
  background: var(--soft-green);
}

.rent-band.high {
  border-color: #ebd1a9;
  background: var(--soft-amber);
}

.gop-section {
  display: grid;
  gap: 12px;
}

.calibration-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gop-band-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gop-band {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.gop-band.low {
  border-color: #c7d9e6;
}

.gop-band.standard {
  border-color: #bed9c7;
}

.gop-band.high {
  border-color: #ebd1a9;
}

.gop-band-head {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.gop-band.low .gop-band-head {
  background: var(--soft-blue);
}

.gop-band.standard .gop-band-head {
  background: var(--soft-green);
}

.gop-band.high .gop-band-head {
  background: var(--soft-amber);
}

.gop-band-head span,
.gop-band-head small {
  color: var(--muted);
  font-size: 12px;
}

.gop-band-head strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.rent-breakdown {
  border-top: 1px solid rgba(75, 94, 86, 0.16);
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding-top: 8px;
}

.rent-breakdown div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.rent-breakdown span {
  color: var(--muted);
  font-size: 12px;
}

.rent-breakdown strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}

.gop-table {
  table-layout: fixed;
}

.gop-table td {
  font-size: 12px;
  padding: 7px 10px;
  vertical-align: middle;
  white-space: normal;
}

.gop-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  text-align: left;
  white-space: normal;
}

.gop-table th:nth-child(1),
.gop-table td:nth-child(1) {
  width: 43%;
}

.gop-table th:nth-child(2),
.gop-table td:nth-child(2) {
  width: 35%;
}

.gop-table th:nth-child(3),
.gop-table td:nth-child(3) {
  width: 22%;
}

.gop-table td:first-child {
  color: #47534d;
}

.gop-table th:nth-child(2),
.gop-table th:nth-child(3),
.gop-table td:nth-child(2),
.gop-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.gop-table .gop-section-row td {
  background: #eef4f0;
  color: var(--teal);
  font-weight: 800;
  text-align: left;
}

.gop-table .subtotal td,
.gop-table .gop-total td {
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.gop-table .gop-total td {
  background: #e8f4ed;
  color: #15372d;
  font-size: 14px;
}

.gop-table .rent-reference td {
  color: var(--muted);
}

.gop-table .positive td:nth-child(2),
.gop-table .positive td:nth-child(3) {
  color: var(--teal);
  font-weight: 800;
}

.gop-table .negative td:nth-child(2),
.gop-table .negative td:nth-child(3) {
  color: #b64238;
  font-weight: 800;
}

.review-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 380px minmax(0, 1fr);
}

.hex-layout {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hex-radar {
  height: 280px;
  max-width: 100%;
  width: 280px;
}

.hex-grid {
  fill: none;
  stroke: #d2dcd6;
  stroke-width: 1;
}

.hex-axis {
  stroke: #d2dcd6;
  stroke-width: 1;
}

.hex-value {
  fill: rgba(24, 137, 119, 0.22);
  stroke: var(--teal);
  stroke-width: 2;
}

.hex-dot {
  fill: var(--teal);
}

.hex-radar text {
  fill: #405047;
  font-size: 11px;
}

.metric-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.metric-list div {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.metric-list span {
  color: var(--muted);
  font-size: 12px;
}

.review-table {
  min-width: 760px;
}

.review-table td:last-child {
  text-align: left;
  white-space: normal;
}

.complaint-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.review-source-note {
  background: var(--soft-blue);
  border: 1px solid #b8d0e0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 8px;
  padding: 9px 10px;
}

.complaint-item {
  align-items: start;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 10px;
}

.complaint-item.urgent {
  background: #fff8f1;
  border-color: #ebd1a9;
}

.complaint-rank {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.complaint-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.complaint-head span {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
}

.complaint-item p {
  color: #405047;
  font-size: 13px;
  line-height: 1.55;
  margin: 5px 0;
}

.complaint-item small {
  color: var(--muted);
  font-size: 11px;
}

.category-section {
  border-left: 4px solid #b8d0c1;
  padding-left: 12px;
}

.category-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.category-head span {
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.category-head strong {
  color: var(--muted);
}

.summary-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.summary-row .metric {
  min-height: 74px;
  padding: 12px;
}

.summary-row .metric strong {
  font-size: 20px;
}

.subsection-title {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  margin: 16px 0 8px;
}

.decision-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
}

.input-page .two-column {
  grid-template-columns: minmax(0, 1fr);
}

.input-page .decision-panel {
  align-items: stretch;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  order: -1;
  position: static;
}

.input-page .decision-panel .decision-badge.large {
  align-items: center;
  border-radius: 8px;
  justify-content: center;
  min-height: 74px;
  width: 100%;
}

.decision-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  padding: 6px 10px;
  width: fit-content;
}

.decision-badge.large {
  font-size: 18px;
  padding: 10px 13px;
}

.decision-badge.go {
  background: var(--soft-green);
  color: var(--green);
}

.decision-badge.conditional-go {
  background: var(--soft-amber);
  color: var(--amber);
}

.decision-badge.no-go {
  background: var(--soft-red);
  color: var(--red);
}

.decision-hero {
  background: linear-gradient(90deg, #fefefe, #eef6f2);
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-content: space-between;
  min-height: 118px;
  padding: 20px;
}

.hero-score {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.hero-score span {
  color: var(--muted);
  font-weight: 800;
}

.redesigned-hero {
  align-items: stretch;
  background: #fbfcfb;
  gap: 18px;
}

.hero-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-facts span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #425148;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.board-verdict {
  align-content: center;
  background: #eef5f1;
  border: 1px solid #d4e2da;
  border-radius: 8px;
  min-width: 170px;
  padding: 14px;
}

.board-verdict strong {
  font-size: 30px;
  line-height: 1;
}

.board-verdict small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-priority-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
}

.dashboard-priority-grid > *,
.dashboard-secondary-grid > *,
.pressure-grid > * {
  min-width: 0;
}

.rent-capacity-card,
.board-health-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.board-health-card {
  overflow: hidden;
}

.rent-capacity-card.good {
  border-color: #b7d7ca;
}

.rent-capacity-card.danger {
  background: var(--soft-red);
  border-color: #edc3be;
}

.rent-capacity-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rent-capacity-head .panel-title {
  margin-bottom: 0;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.status-pill.good {
  background: var(--soft-green);
  color: var(--teal);
}

.status-pill.warning {
  background: var(--soft-amber);
  color: var(--amber);
}

.status-pill.danger {
  background: var(--soft-red);
  color: var(--red);
}

.rent-gauge {
  background: #e7ece8;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
  position: relative;
}

.rent-gauge span {
  background: linear-gradient(90deg, #4c8f7c, #c99d3d);
  display: block;
  height: 100%;
  min-width: 2px;
}

.rent-gauge i {
  background: #1f2d26;
  bottom: -3px;
  display: block;
  position: absolute;
  top: -3px;
  width: 2px;
}

.rent-gauge-labels {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.rent-gauge-labels small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.rent-gauge-labels strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.health-track {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  max-width: 100%;
  overflow-x: auto;
}

.health-year {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 10px;
}

.health-year.good {
  background: #f4faf5;
  border-color: #b7d7ca;
}

.health-year.warning {
  background: #fff9ea;
  border-color: #e5c889;
}

.health-year.danger {
  background: #fff4f2;
  border-color: #edc3be;
}

.health-year strong {
  font-size: 16px;
}

.health-year span {
  font-size: 13px;
  font-weight: 900;
}

.health-year small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.health-legend > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pressure-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pressure-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.pressure-card.good {
  background: var(--soft-green);
  border-color: #bed9c7;
}

.pressure-card.warning {
  background: var(--soft-amber);
  border-color: #ebd1a9;
}

.pressure-card.danger {
  background: var(--soft-red);
  border-color: #edc3be;
}

.pressure-card span,
.pressure-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pressure-card strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.board-year-table {
  min-width: 1120px;
}

.board-year-table .good-row td {
  background: #f8fcf8;
}

.board-year-table .warning-row td {
  background: #fffaf0;
}

.board-year-table .danger-row td {
  background: #fff5f3;
}

.dashboard-secondary-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.lease-close-panel {
  display: grid;
  gap: 14px;
}

.lease-close-ready {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.lease-close-ready .metric {
  min-height: 74px;
}

.lease-close-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lease-close-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-panels {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.data-table {
  border-collapse: collapse;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.data-table th {
  background: #eef3f0;
  color: #405047;
  font-size: 12px;
}

.wide-scroll {
  overflow-x: auto;
}

.financial-table,
.sensitivity-table {
  min-width: 920px;
}

.pnl-forecast-table {
  min-width: 1320px;
}

.pnl-forecast-table th small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
  white-space: nowrap;
}

.pnl-forecast-table .pnl-section-row td {
  background: #eef4f0;
  color: var(--teal);
  font-weight: 800;
  text-align: left;
}

.pnl-forecast-table .pnl-subtotal-row td,
.pnl-forecast-table .pnl-total-row td {
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.pnl-forecast-table .pnl-total-row td {
  background: #e8f4ed;
  color: #15372d;
}

.input-table {
  min-width: 980px;
}

.fnb-outlet-table {
  min-width: 1080px;
}

.staffing-table {
  min-width: 860px;
}

.rent-schedule-table {
  min-width: 880px;
}

.rent-schedule-table th:first-child,
.rent-schedule-table td:first-child {
  width: 72px;
}

.rent-schedule-table th:nth-child(2),
.rent-schedule-table td:nth-child(2),
.rent-schedule-table th:nth-child(3),
.rent-schedule-table td:nth-child(3) {
  width: 150px;
}

.rent-schedule-table th:nth-child(4),
.rent-schedule-table td:nth-child(4),
.rent-schedule-table th:nth-child(7),
.rent-schedule-table td:nth-child(7) {
  width: 130px;
}

.cell-input.date {
  min-width: 132px;
}

.cell-input {
  background: #fbfdfb;
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  height: 32px;
  max-width: 152px;
  min-width: 74px;
  padding: 0 8px;
  text-align: right;
  width: 100%;
}

.cell-input:disabled {
  background: #eef3ef;
  border-color: #d7ded9;
  color: #819087;
  cursor: not-allowed;
}

.cell-input.text {
  max-width: 190px;
  min-width: 150px;
  text-align: left;
}

.check-input {
  height: 18px;
  width: 18px;
}

.read-only-cell {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #334139;
  display: inline-flex;
  min-height: 32px;
  min-width: 96px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}

.inactive-row {
  color: #8a978f;
}

.inactive-row .read-only-cell {
  color: #8a978f;
}

.auto-note {
  background: var(--soft-green);
  border: 1px solid #bed9c7;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
  padding: 2px 6px;
}

.outlet-breakdown {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.mini-panel {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.mini-panel h4 {
  font-size: 13px;
  margin: 0 0 8px;
}

.mini-panel-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-panel-head h4 {
  margin: 0;
}

.mini-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.mini-table-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
  position: relative;
}

.fnb-meal-table,
.fnb-share-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.fnb-meal-table {
  min-width: 1080px;
}

.fnb-share-table {
  min-width: 720px;
}

.mini-table-scroll .data-table th {
  border-bottom-color: #c5d0ca;
}

.fnb-meal-table th,
.fnb-meal-table td,
.fnb-share-table th,
.fnb-share-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.fnb-meal-table thead th,
.fnb-share-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.fnb-meal-table th:first-child,
.fnb-meal-table td:first-child,
.fnb-share-table th:first-child,
.fnb-share-table td:first-child {
  background: #fbfdfb;
  left: 0;
  position: sticky;
  z-index: 3;
}

.fnb-meal-table th:first-child,
.fnb-share-table th:first-child {
  background: #eef3f0;
  z-index: 4;
}

.fnb-meal-table th:nth-child(1),
.fnb-meal-table td:nth-child(1) {
  width: 150px;
}

.fnb-meal-table th:nth-child(2),
.fnb-meal-table td:nth-child(2) {
  width: 86px;
}

.fnb-meal-table th:nth-child(3),
.fnb-meal-table td:nth-child(3),
.fnb-meal-table th:nth-child(8),
.fnb-meal-table td:nth-child(8) {
  width: 116px;
}

.fnb-meal-table th:nth-child(4),
.fnb-meal-table td:nth-child(4),
.fnb-meal-table th:nth-child(6),
.fnb-meal-table td:nth-child(6) {
  width: 102px;
}

.fnb-meal-table th:nth-child(5),
.fnb-meal-table td:nth-child(5),
.fnb-meal-table th:nth-child(7),
.fnb-meal-table td:nth-child(7),
.fnb-meal-table th:nth-child(9),
.fnb-meal-table td:nth-child(9) {
  width: 126px;
}

.fnb-meal-table th:nth-child(10),
.fnb-meal-table td:nth-child(10) {
  width: 160px;
}

.fnb-meal-table .cell-input.text {
  max-width: 82px;
  min-width: 72px;
}

.fnb-meal-table .cell-input {
  max-width: 92px;
  min-width: 64px;
}

.fnb-meal-table .read-only-cell {
  min-width: 86px;
}

.fnb-meal-table .logic-cell {
  color: #405047;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.amount-cell {
  font-variant-numeric: tabular-nums;
}

.cell-with-badge {
  align-items: center;
  display: flex;
  gap: 6px;
}

.period-cell {
  box-shadow: 1px 0 0 var(--line);
}

.fnb-share-table th:first-child,
.fnb-share-table td:first-child {
  width: 320px;
}

.fnb-share-table th:nth-child(2),
.fnb-share-table td:nth-child(2) {
  width: 130px;
}

.fnb-share-table th:nth-child(3),
.fnb-share-table td:nth-child(3) {
  width: 160px;
}

.item-name-cell {
  color: #26312b;
  font-weight: 600;
}

.settings-country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-country-tabs button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  height: 34px;
  padding: 0 12px;
}

.settings-country-tabs button.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
}

.sensitivity-table td small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.highlight-row {
  background: #edf7e9;
}

.trend-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(10, 1fr);
  height: 260px;
}

.trend-year {
  align-items: center;
  display: grid;
  gap: 8px;
}

.bar-stack {
  align-items: end;
  display: flex;
  gap: 3px;
  height: 220px;
  justify-content: center;
}

.bar {
  border-radius: 4px 4px 0 0;
  display: block;
  width: 8px;
}

.bar.revenue {
  background: var(--blue);
}

.bar.ebitda {
  background: var(--teal);
}

.bar.fcf {
  background: var(--amber);
}

.risk-list,
.analysis-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.risk-list li {
  align-items: start;
  display: flex;
  gap: 8px;
}

.risk-list b {
  color: var(--amber);
}

.analysis-list p {
  border-left: 3px solid #bfd3c7;
  padding-left: 10px;
}

.compact-table td {
  white-space: normal;
}

.report-preview {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.report-preview p {
  color: #334139;
  line-height: 1.7;
}

.report-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-sections span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.board-hero p {
  color: #344139;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 760px;
}

.criteria-table .pass-row td,
.scenario-table .pass-row td {
  background: #f4faf5;
}

.criteria-table .fail-row td {
  background: #fff4f2;
  color: #7c2923;
}

.board-sensitivity-table th small,
.board-sensitivity-table td small,
.board-sensitivity-table td em {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
}

.board-sensitivity-table .pass-cell {
  background: #f3faf4;
}

.board-sensitivity-table .fail-cell {
  background: #fff4f2;
}

.driver-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.driver-grid span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344139;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.competitor-table {
  min-width: 900px;
}

.competitor-table td:last-child {
  max-width: 420px;
  text-align: left;
  white-space: normal;
}

.board-report {
  gap: 18px;
  max-width: none;
}

.report-cover {
  align-items: start;
  border-bottom: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
}

.report-cover span,
.report-cover small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.report-cover h3 {
  font-size: 26px;
  margin-top: 8px;
}

.report-cover p,
.report-conclusion,
.resolution-text {
  color: #2d3932;
  line-height: 1.75;
}

.report-block {
  display: grid;
  gap: 12px;
}

.board-report-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.board-pnl-table {
  min-width: 980px;
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .section-head button,
  .nav-list {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    padding: 0;
  }

  .report-page {
    gap: 0;
  }

  .report-preview {
    border: 0;
    padding: 0;
  }

  .report-block {
    break-inside: avoid;
    margin-bottom: 18px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .brand span,
  .brand strong,
  .nav-item span,
  .sidebar-footer {
    display: none;
  }

  .nav-item {
    justify-content: center;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-priority-grid,
  .dashboard-secondary-grid,
  .lease-close-ready,
  .pressure-grid {
    grid-template-columns: 1fr;
  }

  .health-track {
    overflow-x: auto;
  }

  .country-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workflow-guide {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    overflow-x: auto;
  }

  .form-grid.compact-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid.fnb-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attachment-grid,
  .photo-requirement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.required-grid {
    grid-template-columns: 1fr;
  }

  .required-shell {
    grid-template-columns: 1fr;
  }

  .required-identity-grid {
    grid-template-columns: 1fr;
  }

  .two-column,
  .split-panels,
  .preliminary-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .cost-audit-grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deal-dashboard {
    grid-template-columns: 1fr;
  }

  .input-page .decision-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lease-close-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outlet-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    max-width: 100vw;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    max-width: 100vw;
    overflow-x: auto;
    width: 100%;
  }

  .nav-list {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .workspace {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 16px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .currency-switch {
    flex-wrap: wrap;
    width: 100%;
  }

  .kpi-grid,
  .kpi-strip,
  .board-metric-grid,
  .rent-gauge-labels,
  .calibration-strip,
  .form-grid,
  .form-grid.compact-fields,
  .form-grid.fnb-fields,
  .form-grid.required-grid,
  .property-summary-grid,
  .attachment-grid,
  .photo-requirement-grid,
  .amenity-grid,
  .summary-row,
  .country-grid,
  .rent-band-grid,
  .metric-list {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    display: flex;
  }

  .workflow-step {
    flex: 0 0 132px;
  }

  .validation-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .validation-item em {
    grid-column: 2;
  }

  .cost-audit-row {
    grid-template-columns: 1fr auto;
  }

  .cost-audit-row em {
    text-align: left;
  }

  .category-section {
    border-left: 0;
    padding-left: 0;
  }

  .country-card {
    min-height: 92px;
  }

  .decision-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .hero-score {
    align-items: start;
    justify-items: start;
  }

  .board-verdict {
    justify-items: start;
  }

  .health-track {
    grid-template-columns: repeat(10, minmax(86px, 1fr));
  }

  .health-year {
    min-height: 78px;
  }

  .data-panel.wide-scroll {
    overflow-x: auto;
  }

  .input-page .decision-panel {
    grid-template-columns: 1fr;
  }

  .lease-close-summary {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-inline-form,
  .admin-account-form {
    grid-template-columns: 1fr;
  }

  .auth-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-spacer {
    display: none;
  }
}
