/* GROWIT base styles. Values come from the approved sketches in docs/sketches. */

/* Fonts are served by the app itself (open font licence, see fonts/OFL-*.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #0A2540;
  --steel: #64748B;
  --white: #FFFFFF;

  /* Agency accent. Default from the sketches; each page sets the agency's own (base.html). */
  --accent: #0E5A66;
  --accent-dark: #0A3F47;
  --accent-light: #E2EBED;
  --accent-chart: #82A9AF;

  /* Surfaces and lines */
  --page-bg: #F8FAFC;
  --card-border: #D9DFE5;
  --rule: #C5CDD5;
  --rule-light: #E6EAEE;

  /* Side menu text */
  --menu-text: #DCE3E9;
  --menu-muted: #B9C4CE;

  --font-text: "Inter", "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--navy);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-heading); }

/* Layout */
.layout {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--navy);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar > * { flex-shrink: 0; }

/* Side by side: the menu stays in view and scrolls on its own when the window is
   short, so the language switch is always reachable. */
@media (min-width: 780px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 12px;
}

.wordmark {
  width: 160px;
  height: auto;
  display: block;
}

.wordmark-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 112px;
  letter-spacing: -2px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--menu-text);
  text-decoration: none;
}

a.menu-item:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.menu-item.is-active {
  color: var(--white);
  background: var(--accent);
  font-weight: 500;
}
a.menu-item.is-active:hover { background: var(--accent); }

/* Screens not built yet: shown so the layout is complete, but not clickable. */
.menu-item.is-pending { cursor: default; }

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-user {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--menu-muted);
}
.sidebar-user-name { color: var(--menu-text); font-weight: 500; text-decoration: none; }
.sidebar-user-name:hover, .sidebar-user-name.is-active { color: var(--white); text-decoration: underline; }
.sidebar-user .link-button { color: var(--menu-muted); }
.sidebar-user .link-button:hover { color: var(--white); }

.language-switch {
  padding: 0 12px;
  display: flex;
  gap: 8px;
}

.language-option {
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--menu-muted);
  border-radius: 6px;
  background: transparent;
  color: var(--menu-muted);
  font: 500 13px/1 var(--font-text);
  cursor: pointer;
}
.language-option:hover { color: var(--white); border-color: var(--white); }
.language-option.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.language-option:focus-visible,
.link-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.content {
  flex: 999 1 560px;
  min-width: 0;
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.page-header-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

/* Cards, tables and forms: values from the sketches. */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
}
.card p { margin: 0; }
.card-table { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 8px;
  font-weight: 500;
  color: var(--steel);
  border-bottom: 1px solid var(--rule);
}
.table td { padding: 12px 8px; border-bottom: 1px solid var(--rule-light); }
.table tr.is-muted td { color: var(--steel); }
.table-actions { text-align: right; }
.table-actions form { margin: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); max-width: 960px; }
.tab {
  padding: 10px 14px;
  color: var(--steel);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: 4px;
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: var(--white);
}
.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field.has-error input { border-color: #B42318; }
.field-error, .form-errors p { margin: 4px 0 0; color: #B42318; font-size: 13px; }
.form-errors p { margin: 0; }
.field-help { margin: 6px 0 0; font-size: 13px; color: var(--steel); }
.field-help ul { margin: 0; padding-left: 18px; }
.form-actions { display: flex; align-items: center; gap: 16px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: var(--white); }
.button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.form .button { align-self: flex-start; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover { color: var(--accent-dark); }

.hint { color: var(--steel); font-size: 14px; }
.notice {
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--page-bg);
  border: 1px solid var(--rule-light);
}

.messages { display: flex; flex-direction: column; gap: 8px; max-width: 960px; }
.message { margin: 0; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--rule-light); background: var(--white); }
.message-error { border-color: #F3C5C0; background: #FEF3F2; color: #912018; }
.message-success { border-color: #B7DFD0; background: #F0FAF6; color: #0B5B43; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.details dt { color: var(--steel); }
.details dd { margin: 0; }

.secret-key {
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
  background: var(--page-bg);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.qr-code svg { display: block; margin: 12px 0 8px; width: 240px; max-width: 100%; height: auto; }

.pagination { display: flex; gap: 16px; align-items: center; font-size: 14px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Login pages: the white wordmark on navy, a white card below it. */
.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px;
}
.auth-brand .wordmark { width: 200px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-card h1 { margin: 0; font-size: 22px; font-weight: 800; }
.auth-card p { margin: 0; }
.auth-card .form { max-width: none; }

/* Agency name and logo under the wordmark (sketch). */
.agency-badge { display: flex; align-items: center; gap: 10px; }
.agency-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--white); }
.agency-initials {
  width: 36px; height: 36px; border-radius: 6px; flex: none;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.agency-name { font-size: 14px; font-weight: 500; color: var(--white); }

.breadcrumb { margin: 0 0 4px; font-size: 13px; color: var(--steel); }
.breadcrumb a { color: var(--steel); }
.muted { color: var(--steel); }
.num { text-align: right; white-space: nowrap; }

.button-secondary { background: var(--white); color: var(--accent); border: 1px solid var(--accent); font-weight: 500; }
.button-secondary:hover { background: var(--accent-light); color: var(--accent-dark); }
.button-danger { background: #B42318; }
.button-danger:hover { background: #912018; }
.button-large { height: 48px; }

/* Two columns: the dossier on the left, the price on the right (sketch). */
.two-columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.column-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.column-main .card { max-width: none; }
.column-side { flex: 1 1 320px; min-width: 0; max-width: 420px; gap: 16px; }
.side-actions { display: flex; flex-direction: column; gap: 8px; }
.side-actions .button { width: 100%; }
.side-actions form { margin: 0; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-buttons .muted { width: 100%; font-size: 13px; }
.status-buttons .button { flex: 1 1 auto; width: auto; height: 40px; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.field-or { margin: 0; align-self: end; padding-bottom: 12px; color: var(--steel); font-size: 14px; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; height: auto; }
.field textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }

.lines-table input, .lines-table select {
  width: 100%; height: 40px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 6px; font: inherit; color: inherit; background: var(--white);
}
.lines-table td { vertical-align: top; }
.lines-table td:nth-child(1) { width: 140px; }
.lines-table td:nth-child(3) { width: 150px; }
.lines-table td:nth-child(3) input { text-align: right; }
.line-remove { width: 110px; font-size: 13px; color: var(--steel); white-space: nowrap; }
.line-remove input { width: auto; height: auto; }

/* Price block (sketch). */
.price-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-total-amount { font-size: 20px; font-weight: 600; }
.rate-rows { display: flex; flex-direction: column; gap: 8px; }
.rate-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 6px;
}
.rate-row-rate { font-weight: 500; }
.rate-row-prices { text-align: right; }
.rate-row-price { display: block; font-weight: 600; }
.rate-row-margin { display: block; font-size: 13px; color: var(--steel); }
.rate-row.is-chosen { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.rate-row.is-chosen .rate-row-margin { color: var(--accent-dark); }
.price-told { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--rule-light); }
.price-told-amount { font-family: var(--font-heading); font-size: 30px; font-weight: 700; line-height: 1.2; }
.director-price { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px dashed var(--rule); border-radius: 6px; }

/* Status badges */
.status {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.status-open { background: var(--accent-light); color: var(--accent-dark); }
.status-accepted { background: #E3F4EA; color: #0B5B43; }
.status-lost { background: #EEF1F4; color: #3D4A5C; }
.status-cancelled { background: #F3F4F6; color: #3D4A5C; text-decoration: line-through; }

.filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; max-width: none; }
.filters .field { flex: 1 1 150px; }
.filters-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 2px; }
.search-row { display: flex; gap: 8px; max-width: 520px; }
.search-row input {
  flex: 1; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; font: inherit;
}
.notice ul { margin: 6px 0; padding-left: 20px; }
.notice .field { margin-top: 8px; }

/* Agency settings */
.settings-form { display: flex; flex-direction: column; gap: 20px; }
.colour-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.colour-choices legend { font-size: 13px; font-weight: 500; color: var(--steel); margin-bottom: 8px; padding: 0; }
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }
.colour-choices .colour-choice {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 14px; font-weight: 400; color: var(--navy); cursor: pointer;
}
.colour-choices .colour-choice input { margin: 0; flex: none; }
.colour-choices .field-help { margin-top: 10px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; display: block; flex: none; }
.logo-preview { max-width: 160px; max-height: 80px; object-fit: contain; border: 1px solid var(--rule-light); border-radius: 6px; padding: 6px; }

.debug-warning { margin: 0; padding: 8px 16px; overflow-wrap: anywhere; background: #B42318; color: var(--white); font-size: 13px; font-weight: 600; text-align: center; }

/* Settings screens: the header lines up with the cards below it. */
.settings-header { max-width: 960px; }

/* Modification record (sketch): date on the left, sentence on the right. */
.record-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.record-entry {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-light); font-size: 14px;
}
.record-entry:last-child { border-bottom: 0; }
.record-time { flex: 0 0 150px; color: var(--steel); }
.record-sentence { flex: 1 1 280px; }
.record-sentence strong { font-weight: 600; }

/* Hotel prices (sketch): the grid follows the contract, room types down, seasons across. */
.hotel-page { display: flex; flex-direction: column; gap: 20px; }
.wide-card { max-width: 1200px; }
.wide-card .card, .wide-card.card { max-width: 1200px; }
.grid-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-grid th, .price-grid td { white-space: nowrap; }
.price-grid thead th a { color: var(--navy); font-weight: 600; }
.grid-dates { display: block; font-size: 12px; font-weight: 400; color: var(--steel); }
.grid-input {
  width: 96px; height: 40px; padding: 0 10px; text-align: right;
  border: 1px solid var(--rule); border-radius: 6px; font: inherit; color: inherit; background: var(--white);
}
.grid-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.archive-box { gap: 10px; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.archive-actions form { margin: 0; }
.table td input[type="date"] { height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }

/* Hotel rooms in a dossier (sketch: hotel block with the cost from the price table). */
#rooms { display: flex; flex-direction: column; gap: 14px; }
.room-row { border: 1px solid var(--card-border); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.room-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.room-fields .field:nth-child(2), .room-fields .field:nth-child(3) { grid-column: span 2; }
.room-remove { font-size: 13px; color: var(--steel); }
.room-remove input { width: auto; height: auto; }
.room-cost { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 14px; background: var(--page-bg); border-radius: 6px; }
.room-explanation p { margin: 0; font-size: 14px; color: var(--steel); }
.room-amount { font-size: 20px; font-weight: 600; white-space: nowrap; }
.room-summary { padding: 10px 0; border-bottom: 1px solid var(--rule-light); display: flex; flex-direction: column; gap: 4px; }
.room-summary-head { display: flex; justify-content: space-between; gap: 12px; }
.room-hotel-info { display: flex; flex-direction: column; gap: 8px; }
.conditions-note { padding: 12px 14px; border-radius: 6px; background: #FFF8E6; border: 1px solid #F2DDA4; color: #4A3200; font-size: 14px; }
.conditions-note p { margin: 4px 0 0; }

/* Type of dossier (sketch: two tabs above the form). */
.kind-tabs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kind-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--white); cursor: pointer; font-weight: 500;
}
.kind-tab input { margin: 0; }
.kind-tab.is-active { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.kind-tabs[disabled] .kind-tab { cursor: default; }
.kind-tabs[disabled] .kind-tab:not(.is-active) { display: none; }
.kind-section { display: flex; flex-direction: column; gap: 20px; }
.kind-section[hidden] { display: none; }
.side-package { gap: 16px; }
.inline-rename { display: flex; gap: 8px; align-items: center; margin: 0; }
.inline-rename input[type="text"] { height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; font: inherit; min-width: 220px; }

/* Dashboard: values from docs/sketches/dashboard-*.html. Bars are HTML; their heights come from the server. */
.dash-title { display: flex; flex-direction: column; gap: 2px; }
.dash-title .muted { margin: 0; font-size: 13px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-card { background: var(--white); border: 1px solid var(--card-border); border-radius: 8px; padding: 16px 20px; }
.dash-card-label { font-size: 13px; color: var(--steel); }
.dash-card-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; line-height: 1.3; }
.dash-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dash-row > .dash-panel { flex: 1 1 360px; min-width: 0; }
.dash-panel {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-panel p { margin: 0; }
.dash-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-panel-head h2.grow { flex: 1 1 160px; }
.dash-spacer { flex: 1 1 20px; }
.director-only {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px;
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 500;
}
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.swatch-created, .bar-created { background: var(--menu-muted); }
.swatch-accent, .bar-accent { background: var(--accent); }
.swatch-light, .bar-light { background: var(--accent-chart); }
.chart {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  height: 190px; border-bottom: 1px solid var(--rule);
}
.chart-col { min-width: 0; }
.chart-pair { display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.chart-bar-wrap { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.chart-value { font-size: 12px; color: var(--navy); white-space: nowrap; }
.chart-bar { width: 22px; border-radius: 3px 3px 0 0; }
.chart-bar-wide { width: 40px; max-width: 100%; }
.chart-stack { display: flex; flex-direction: column; width: 56px; max-width: 100%; }
.chart-bar-stacked { width: 100%; }
.chart-stack > :first-child { border-radius: 3px 3px 0 0; }
.chart-labels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; font-size: 13px; color: var(--steel); text-align: center; }
.dash-income { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .dash-income { grid-template-columns: 1fr; } }
.dash-income > div { padding: 14px 16px; background: var(--page-bg); border-radius: 6px; }
.dash-income-value { font-size: 22px; font-weight: 600; }
.dash-income > .dash-income-total { background: var(--accent-light); }
.dash-income-total .dash-card-label, .dash-income-total .dash-income-value { color: var(--accent-dark); }
.dash-table { min-width: 640px; }
.dash-table td:first-child, .dash-table th:first-child { padding-left: 0; }
.dash-table td:last-child, .dash-table th:last-child { padding-right: 0; }
.late {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px;
  background: #FFF4DB; color: #6B4500; font-size: 13px; font-weight: 500;
}
.dash-list { display: flex; flex-direction: column; font-size: 14px; }
.dash-list-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-light); }
.dash-list-row > :last-child { white-space: nowrap; }
.dash-list-total { border-bottom: none; font-weight: 600; }
.follow-up-form { display: flex; flex-direction: column; gap: 6px; }
.follow-up-form label { font-size: 13px; color: var(--steel); }
.follow-up-row { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-up-row input { flex: 1 1 140px; min-width: 0; }
.follow-up-row .button { flex: 0 0 auto; width: auto; height: 40px; }

/* Excel import preview */
.import-counts { font-size: 13px; color: var(--steel); }
.import-error-count { color: #B42318; font-weight: 600; }
.import-group { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.import-table td { vertical-align: top; }
.import-table td:first-child { width: 56px; color: var(--steel); }
.import-error td:last-child { color: #B42318; }
.import-change { display: block; }
.import-unchanged summary { cursor: pointer; color: var(--steel); font-size: 14px; }
.import-unchanged ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--steel); }

/* Platform administration */
.support-banner {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px;
  padding: 10px 16px; background: #FFF4DB; color: #6B4500; border-bottom: 1px solid #E8C979;
  font-size: 14px; text-align: center;
}
.support-banner form { margin: 0; }
.button-small { height: 34px; padding: 0 14px; font-size: 14px; width: auto; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.platform-actions form { margin: 0; }
.badge-ok { color: #0B5B43; }
.badge-warn { color: #B42318; font-weight: 600; }
.button-danger { background: #B42318; border-color: #B42318; }
.button-danger:hover { background: #8F1C13; border-color: #8F1C13; }
