/* ==========================================================================
   Clear Treasury — Partner Portal design system (applied to the Blazor app)
   Source: "Partner Portal.html" design export.

   Loaded AFTER app.css. Most page/layout components ship their own scoped
   <style> blocks with hard-coded colours, so rules here are prefixed with
   `html body` to win on specificity regardless of load order.

   Fonts: Source Serif 4 (stand-in for Freight Text Pro Light) for display,
   Jost (stand-in for Sofia Pro) for body/UI. Self-hosted in /fonts.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/jost-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/jost-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: 'Source Serif 4'; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("fonts/source-serif-4-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("fonts/source-serif-4-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;
}

/* --- Design tokens -------------------------------------------------------- */
html:root {
  --font-display: "Freight Text Pro", "FreightText Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Sofia Pro", "Sofia Pro Regular", Jost, "Helvetica Neue", Arial, sans-serif;

  /* Gems */
  --ct-saphire: #527FD9;  --ct-saphire-tint: #F1F5FF;
  --ct-jade: #007373;     --ct-jade-tint: #EAF8F3;
  --ct-ruby: #E17171;     --ct-ruby-tint: #FCF0F0;
  /* Stones */
  --ct-sand: #C2AC80;     --ct-sand-tint: #FBF4E6;
  --ct-basalt: #191919;   --ct-basalt-tint: #F3F3F3;
  --ct-granite: #878787;  --ct-granite-tint: #F9F9F9;
  --ct-white: #FFFFFF;

  --ct-jade-70: #4D9D9D;  --ct-jade-30: #B3D5D5;  --ct-jade-10: #E6F1F1;
  --ct-granite-70: #ABABAB; --ct-granite-50: #C3C3C3; --ct-granite-30: #DBDBDB; --ct-granite-10: #F3F3F3;

  /* Type */
  --text-label: 11px;
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --weight-light: 300; --weight-regular: 400; --weight-medium: 500; --weight-bold: 700;
  --tracking-label: 0.18em;
  --tracking-button: 0.14em;

  /* Shape & motion: square-cornered, flat. Pills only for buttons. */
  --radius-none: 0px;
  --radius-pill: 999px;
  --shadow-raised: 0 2px 16px rgba(25,25,25,0.08);
  --shadow-overlay: 0 12px 48px rgba(25,25,25,0.14);
  --border-subtle: var(--ct-granite-30);
  --state-hover-veil: rgba(25,25,25,0.12);
  --state-press-veil: rgba(25,25,25,0.20);
  --focus-ring: 2px solid var(--ct-saphire);
  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --duration-fast: 150ms;

  /* Remap the variables app.css and the layouts already consume */
  --theme-dark: #191919;
  --theme-primary: #007373;
  --theme-light: #4D9D9D;
  --theme-accent: #005B5B;
  --theme-gold: #C2AC80;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elevated: #F9F9F9;
  --text-primary: #191919;
  --text-secondary: #878787;
  --text-light: #ABABAB;
  --border-color: #DBDBDB;
  --shadow-sm: none;
  --shadow-md: var(--shadow-raised);
  --shadow-lg: var(--shadow-overlay);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
}

/* --- Base typography ------------------------------------------------------ */
html body,
html body *,
html body *::before,
html body *::after,
html body input, html body select, html body textarea, html body button {
  font-family: var(--font-body) !important;
}
html body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ct-basalt);
  background: #fff;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
  font-family: var(--font-display) !important;
  font-weight: 300;
  color: var(--ct-basalt);
  line-height: 1.15;
}
html body h1 { font-size: 40px; }
html body h2 { font-size: 28px; }
html body h3 { font-size: 22px; }
html body h4 { font-size: 18px; }
html body p { color: var(--ct-granite); }

html body a { color: var(--ct-jade); }
html body a:hover { color: var(--ct-basalt); }

html body :focus-visible { outline: var(--focus-ring); outline-offset: 0; }

/* Small tracked caps, used for section labels, table heads, badges */
html body .ct-eyebrow,
html body .filter-label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; color: var(--ct-basalt);
}

/* --- Buttons: pill, uppercase, tracked ------------------------------------ */
html body .btn,
html body .btn-primary, html body .btn-secondary, html body .btn-success,
html body .btn-danger, html body .btn-info, html body .btn-warning,
html body .btn-outline-primary, html body .btn-outline-secondary, html body .btn-outline-danger,
html body .btn-outline-light {
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  box-shadow: none;
  transform: none;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
html body .btn-primary, html body .btn-success {
  background: var(--ct-jade); border: 1px solid var(--ct-jade); color: #fff;
}
html body .btn-primary:hover:not(:disabled), html body .btn-success:hover:not(:disabled) {
  background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade);
  border-color: var(--ct-jade); color: #fff; transform: none; box-shadow: none;
}
html body .btn-secondary, html body .btn-info {
  background: #fff; border: 1px solid var(--ct-granite-50); color: var(--ct-basalt);
}
html body .btn-secondary:hover:not(:disabled), html body .btn-info:hover:not(:disabled) {
  background: var(--ct-granite-tint); color: var(--ct-basalt); transform: none; box-shadow: none;
}
html body .btn-danger { background: var(--ct-ruby); border: 1px solid var(--ct-ruby); color: #fff; }
html body .btn-warning { background: var(--ct-sand); border: 1px solid var(--ct-sand); color: var(--ct-basalt); }
html body .btn-outline-primary, html body .btn-outline-secondary {
  background: transparent; color: var(--ct-jade); border: 1px solid var(--ct-jade);
}
html body .btn-outline-primary:hover:not(:disabled), html body .btn-outline-secondary:hover:not(:disabled) {
  background: var(--ct-jade); color: #fff;
}
html body .btn-outline-danger { background: transparent; color: var(--ct-ruby); border: 1px solid var(--ct-ruby); }
html body .btn-outline-danger:hover { background: var(--ct-ruby); color: #fff; }
html body .btn:disabled, html body button:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Cards, forms, tables, alerts, badges --------------------------------- */
html body .card, html body .data-card, html body .table-container {
  background: #fff; border: 1px solid var(--ct-granite-30); border-radius: 0; box-shadow: none;
}
html body .card:hover { box-shadow: none; transform: none; }
html body .card-header, html body .data-card-header {
  background: #fff; border-bottom: 1px solid var(--ct-granite-30); border-radius: 0;
}
html body .card-footer { background: var(--ct-granite-tint); border-top: 1px solid var(--ct-granite-30); border-radius: 0; }

html body .form-control, html body .form-select,
html body .form-group input, html body .form-group select, html body .form-group textarea,
html body .filter-date, html body .bank-input {
  height: 40px; padding: 0 14px;
  border: 1px solid var(--ct-granite-50); border-radius: 0; background: #fff;
  font-size: 14px; color: var(--ct-basalt); box-shadow: none;
}
html body textarea.form-control, html body .form-group textarea { height: auto; padding: 10px 14px; }
html body .form-control:focus, html body .form-select:focus,
html body .form-group input:focus, html body .form-group select:focus, html body .form-group textarea:focus,
html body .filter-date:focus, html body .bank-input:focus {
  outline: var(--focus-ring); outline-offset: 0; border-color: var(--ct-granite-50); box-shadow: none;
}
html body .form-group label, html body .bank-form-group label, html body label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--ct-basalt);
}

html body table th, html body .data-table th {
  background: var(--ct-granite-tint); color: var(--ct-basalt);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--ct-granite-30);
}
html body table td, html body .data-table td {
  border-bottom: 1px solid var(--ct-granite-30); color: var(--ct-basalt); font-size: 14px;
}
html body table tr:hover td, html body .data-table tr:hover td { background: var(--ct-granite-tint); }

html body .alert { border-radius: 0; border-width: 0 0 0 3px; }
html body .alert-info    { background: var(--ct-saphire-tint); border-color: var(--ct-saphire); color: var(--ct-basalt); }
html body .alert-success { background: var(--ct-jade-tint);    border-color: var(--ct-jade);    color: var(--ct-basalt); }
html body .alert-warning { background: var(--ct-sand-tint);    border-color: var(--ct-sand);    color: var(--ct-basalt); }
html body .alert-danger  { background: var(--ct-ruby-tint);    border-color: var(--ct-ruby);    color: var(--ct-basalt); }

html body .badge, html body .ref-badge, html body .trade-count-badge, html body .profit-badge,
html body .type-badge, html body .payout-badge, html body .primary-badge, html body .bank-ccy-badge,
html body .contact-title-badge {
  border-radius: 0; border: 1px solid transparent; box-shadow: none; background-image: none;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body) !important;
}
html body .ref-badge { background: var(--ct-granite-tint); color: var(--ct-granite); border-color: var(--ct-granite-30); }
html body .trade-count-badge { background: var(--ct-jade-tint); color: var(--ct-jade); }
html body .profit-badge { background: var(--ct-sand-tint); color: var(--ct-basalt); border-color: var(--ct-sand); }
html body .badge-primary, html body .badge-success { background: var(--ct-jade-tint); color: var(--ct-jade); }
html body .badge-danger { background: var(--ct-ruby-tint); color: var(--ct-ruby); }
html body .badge-warning { background: var(--ct-sand-tint); color: var(--ct-basalt); }
html body .badge-info { background: var(--ct-saphire-tint); color: var(--ct-saphire); }
html body .badge-secondary { background: var(--ct-granite-10); color: var(--ct-granite); }

html body .spinner, html body .loading-spinner-sm {
  border-color: var(--ct-jade-30); border-top-color: var(--ct-jade);
}

/* --- Shared "light sidebar" shell (Partner, CRM, Main) --------------------- */
html body .partner-sidebar,
html body .crm-sidebar,
html body .sidebar {
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--ct-granite-30);
  box-shadow: none;
  background-image: none;
  color: var(--ct-basalt);
}
html body .partner-sidebar::before { display: none; }

html body .partner-sidebar .sidebar-brand,
html body .crm-sidebar .crm-sidebar-brand,
html body .sidebar .sidebar-brand {
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--ct-granite-30);
  text-align: left;
  margin: 0;
}
html body .partner-sidebar .sidebar-brand h2,
html body .crm-sidebar .crm-sidebar-brand h2,
html body .sidebar .sidebar-brand h2,
html body .portal-logo-text {
  color: var(--ct-basalt) !important;
  font-family: var(--font-display) !important;
  font-weight: 400; font-size: 20px; letter-spacing: 0.02em; text-transform: none; margin: 0;
}
html body .partner-sidebar .sidebar-brand span,
html body .crm-sidebar .crm-sidebar-brand span,
html body .sidebar .sidebar-brand span {
  color: var(--ct-granite); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; margin: 0;
}

html body .partner-sidebar nav, html body .crm-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }

html body .partner-sidebar .nav-link,
html body .crm-nav-link,
html body .sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin: 0;
  color: var(--ct-basalt); font-size: 15px; font-weight: 400;
  border: 0; border-radius: 0; background: transparent;
  transition: background var(--duration-fast) var(--ease-standard);
}
html body .partner-sidebar .nav-link:hover,
html body .crm-nav-link:hover,
html body .sidebar .nav-link:hover {
  background: var(--ct-granite-tint); color: var(--ct-basalt); border: 0;
}
html body .partner-sidebar .nav-link.active,
html body .crm-nav-link.active,
html body .sidebar .nav-link.active {
  background: var(--ct-jade-tint); color: var(--ct-jade); font-weight: 400; border: 0;
}
html body .crm-nav-section {
  margin: 16px 12px 4px; padding: 0;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-granite); font-weight: 400;
}

/* --- Top bar -------------------------------------------------------------- */
html body .top-row,
html body .crm-topbar,
html body .topbar {
  height: 64px; min-height: 64px; padding: 0 40px;
  display: flex; align-items: center;
  background: #fff; border-bottom: 1px solid var(--ct-granite-30);
  box-shadow: none; background-image: none;
  position: sticky; top: 0; z-index: 5;
}
html body .topbar a, html body .topbar-link { color: var(--ct-basalt); }
html body .partner-badge,
html body .crm-mode-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 0; border-radius: 0; padding: 0;
  color: var(--ct-basalt); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
}
/* the sand square before the badge text, instead of the star icon */
html body .partner-badge svg, html body .crm-mode-badge svg { display: none; }
html body .partner-badge::before,
html body .crm-mode-badge::before {
  content: ''; width: 8px; height: 8px; background: var(--ct-sand); display: inline-block;
}
html body .btn-logout,
html body .crm-btn-logout {
  background: transparent; border: 1px solid var(--ct-jade); color: var(--ct-jade);
  border-radius: var(--radius-pill); padding: 8px 18px;
  font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
html body .btn-logout:hover,
html body .crm-btn-logout:hover { background: var(--ct-jade); border-color: var(--ct-jade); color: #fff; }

html body .content, html body .crm-content { padding: 40px 40px 80px; }

/* --- Partner dashboard ---------------------------------------------------- */
html body .partner-dashboard { max-width: 1360px; }
html body .dash-welcome { margin-bottom: 40px; }
html body .dash-welcome h1 {
  font-family: var(--font-display) !important; font-weight: 300; font-size: 48px; line-height: 1.1;
  color: var(--ct-basalt); margin: 0 0 10px;
}
html body .dash-welcome p { color: var(--ct-granite); font-size: 16px; line-height: 1.5; }
html body .dash-welcome p strong { color: var(--ct-basalt); font-weight: 500; }

/* KPI strip: hairline-separated tiles */
html body .stats-grid {
  gap: 1px; background: var(--ct-granite-30); border: 1px solid var(--ct-granite-30); margin-bottom: 40px;
}
html body .stat-card {
  background: #fff; border: 0; border-radius: 0; padding: 24px 24px 22px;
  flex-direction: column; align-items: flex-start; gap: 14px;
}
html body .stat-card::before { display: none; }
html body .stat-icon { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent !important; }
html body .stat-card--clients .stat-icon { color: var(--ct-jade); }
html body .stat-card--trades .stat-icon  { color: var(--ct-saphire); }
html body .stat-card--profit .stat-icon  { color: var(--ct-sand); }
html body .stat-body { flex-direction: column-reverse; gap: 14px; }
html body .stat-value {
  font-family: var(--font-display) !important; font-weight: 300; font-size: 44px; line-height: 1; color: var(--ct-basalt);
}
html body .stat-label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--ct-basalt); margin: 0;
}

/* Tabs */
html body .section-tabs { border-bottom: 1px solid var(--ct-granite-30); gap: 0; margin-bottom: 24px; }
html body .section-tab {
  padding: 12px 20px; border-radius: 0; margin-bottom: -1px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; color: var(--ct-granite);
  border-bottom: 2px solid transparent;
}
html body .section-tab:hover { color: var(--ct-basalt); background: var(--ct-granite-tint); }
html body .section-tab.active { color: var(--ct-basalt); border-bottom-color: var(--ct-jade); font-weight: 500; background: transparent; }

html body .data-card-header { padding: 24px 24px 16px; }
html body .data-card-header h2 {
  font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; color: var(--ct-basalt);
}
html body .data-table th { padding: 12px 20px; }
html body .data-table td { padding: 14px 20px; }
html body .cell-name { font-weight: 400; color: var(--ct-basalt); }
html body .cell-ref, html body .cell-sub, html body .cell-date { color: var(--ct-granite); }
html body .profit-zero { color: var(--ct-granite-50); }

/* Filter chips / buttons */
html body .btn-filter-apply {
  background: var(--ct-jade); color: #fff; border: 1px solid var(--ct-jade); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
}
html body .btn-filter-apply:not(:disabled):hover { opacity: 1; background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade); }
html body .btn-filter-clear {
  background: transparent; color: var(--ct-basalt); border: 1px solid var(--ct-granite-50); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
}
html body .btn-filter-clear:hover { color: var(--ct-ruby); border-color: var(--ct-ruby); background: transparent; }

/* Master/detail client list */
html body .client-list-panel { border-right: 1px solid var(--ct-granite-30); }
html body .client-list-item { border-bottom: 1px solid var(--ct-granite-30); }
html body .client-list-item:hover { background: var(--ct-granite-tint); }
html body .client-list-item.cli-selected { background: var(--ct-jade-tint); border-left: 3px solid var(--ct-jade); }
html body .cli-item-name { font-weight: 400; color: var(--ct-basalt); }
html body .cli-item-ref { color: var(--ct-granite); }
html body .client-detail-header h3 { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; }
html body .client-detail-empty { color: var(--ct-granite-50); }
html body .bank-account-card, html body .contact-detail-card, html body .bank-form {
  border: 1px solid var(--ct-granite-30); border-radius: 0; box-shadow: none; background: #fff;
}
html body .btn-bank-save, html body .btn-add-account {
  background: var(--ct-jade); color: #fff; border: 1px solid var(--ct-jade); border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
}
html body .btn-bank-cancel, html body .btn-bank-edit, html body .btn-bank-delete {
  border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
}

html body .empty-state { color: var(--ct-granite); }
html body .empty-state h3 { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; }

/* --- Page header (generic) ------------------------------------------------ */
html body .page-header h1 { font-size: 48px; line-height: 1.1; }

/* --- Auth screens --------------------------------------------------------- */
html body .auth-page { background: var(--ct-jade); background-image: none; }
html body .auth-card { border-radius: 0; box-shadow: var(--shadow-overlay); max-width: 440px; }
html body .auth-header { background: var(--ct-basalt); background-image: none; padding: 32px 32px 28px; }
html body .auth-header h1 { font-size: 28px; letter-spacing: 0; color: #fff; }
html body .auth-header h2 {
  font-family: var(--font-body) !important; font-size: 11px; letter-spacing: 0.2em; opacity: 1;
  color: var(--ct-granite-50); font-weight: 400;
}
html body .portal-logo-text { color: #fff !important; }
html body .auth-body { padding: 32px; }
html body .auth-body h3 { font-size: 28px; color: var(--ct-basalt); margin-bottom: 24px; }
html body .auth-description { color: var(--ct-granite); font-size: 14px; }
html body .auth-body .form-group label {
  color: var(--ct-basalt); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
html body .auth-body .form-control { height: 40px; padding: 0 14px; border: 1px solid var(--ct-granite-50); border-radius: 0; font-size: 14px; }
html body .auth-body .form-control:focus { border-color: var(--ct-granite-50); box-shadow: none; outline: var(--focus-ring); }
html body .auth-card .btn-block,
html body .auth-card .btn-primary {
  background: var(--ct-jade); background-image: none; color: #fff; border: 1px solid var(--ct-jade);
  border-radius: var(--radius-pill); padding: 13px 24px; font-size: 11px; font-weight: 700;
  letter-spacing: var(--tracking-button); text-transform: uppercase; box-shadow: none; transform: none;
}
html body .auth-card .btn-primary:hover:not(:disabled) {
  background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade); transform: none; box-shadow: none;
}
html body .auth-links { border-top: 1px solid var(--ct-granite-30); }
html body .auth-links a { color: var(--ct-jade); font-weight: 400; }
html body .auth-links a:hover { color: var(--ct-basalt); text-decoration: none; }
html body .auth-links .separator { color: var(--ct-granite-50); }

html body .login-tabs { border-bottom: 1px solid var(--ct-granite-30); }
html body .tab-btn {
  color: var(--ct-granite); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
html body .tab-btn:hover { color: var(--ct-basalt); }
html body .tab-btn.active { color: var(--ct-basalt); border-bottom-color: var(--ct-jade); font-weight: 500; }

html body .tfa-icon, html body .tfa-icon-client, html body .tfa-icon-user {
  background: transparent; border: 1.5px solid var(--ct-jade); color: var(--ct-jade);
}
html body .otp-box {
  border: 1px solid var(--ct-granite-50); border-radius: 0; background: #fff; color: var(--ct-basalt);
  font-family: var(--font-display) !important; font-weight: 300;
}
html body .otp-box:focus, html body .otp-box.otp-filled,
html body .otp-box-partner:focus, html body .otp-box-user:focus, html body .otp-box-user.otp-filled {
  border-color: var(--ct-jade); background: #fff; box-shadow: none;
}
html body .alert-danger { background: var(--ct-ruby-tint); color: var(--ct-basalt); border: 0; border-left: 3px solid var(--ct-ruby); }
html body .alert-success { background: var(--ct-jade-tint); color: var(--ct-basalt); border: 0; border-left: 3px solid var(--ct-jade); }

/* --- Beat the per-tenant ThemeProvider overrides (they use !important) ----- */
html body .btn-primary, html body .btn-partner, html body .btn-user, html body .btn-success {
  background: var(--ct-jade) !important; background-image: none !important;
  border: 1px solid var(--ct-jade) !important; color: #fff !important;
  border-radius: var(--radius-pill) !important; box-shadow: none !important;
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
  padding: 13px 24px;
}
html body .btn-primary:hover:not(:disabled), html body .btn-partner:hover:not(:disabled), html body .btn-user:hover:not(:disabled) {
  background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade) !important;
  filter: none !important; color: #fff !important;
}
html body .btn-primary:disabled, html body .btn-partner:disabled, html body .btn-user:disabled {
  background: var(--ct-jade) !important; border-color: var(--ct-jade) !important; opacity: 0.4;
}
html body .sidebar, html body .topbar, html body .topbar-brand, html body .sidebar-brand {
  background: #fff !important; background-image: none !important;
}
html body .nav-link:hover, html body .nav-link.active { border-left-color: transparent !important; }
html body .nav-link.active { background-color: var(--ct-jade-tint) !important; color: var(--ct-jade) !important; }
html body .form-control:focus, html body .form-select:focus { border-color: var(--ct-granite-50) !important; box-shadow: none !important; }
html body a { color: var(--ct-jade); }
html body a:hover { color: var(--ct-basalt); }
html body .auth-card .btn-block { width: 100%; }

/* --- Partner: My Affiliate Link ------------------------------------------- */
html body .aff-ref-card, html body .aff-card {
  border: 1px solid var(--ct-granite-30); border-radius: 0; box-shadow: none; background: #fff;
}
html body .aff-ref-card::before { display: none; }
html body .aff-ref-label, html body .aff-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-granite);
}
html body .aff-ref-value { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; color: var(--ct-basalt); }
html body .aff-card h3 { font-size: 28px; font-weight: 300; color: var(--ct-basalt); }
html body .aff-input { border: 1px solid var(--ct-granite-50); border-radius: 0; background: var(--ct-granite-tint); box-shadow: none; }
html body .aff-code { font-family: var(--font-body) !important; }
html body .aff-btn {
  background: var(--ct-jade) !important; background-image: none !important; color: #fff !important;
  border: 1px solid var(--ct-jade) !important; border-radius: var(--radius-pill) !important;
  font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase; padding: 8px 18px;
}
html body .aff-btn:hover { opacity: 1; background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade) !important; }
html body .aff-btn--ghost { background: transparent !important; color: var(--ct-jade) !important; }
html body .aff-btn--ghost:hover { background: var(--ct-jade) !important; color: #fff !important; }
html body .aff-btn--done { background: var(--ct-jade-70, #4D9D9D) !important; }
html body .aff-empty { border-radius: 0; }

/* --- Navigation colours: app.css forces white !important on .nav-link ------ */
html body .nav-link, html body .sidebar .nav-link, html body .partner-sidebar .nav-link, html body .crm-nav-link {
  color: var(--ct-basalt) !important;
}
html body .nav-link:hover, html body .sidebar .nav-link:hover, html body .partner-sidebar .nav-link:hover, html body .crm-nav-link:hover {
  color: var(--ct-basalt) !important; background-color: var(--ct-granite-tint) !important; border-left-color: transparent !important;
}
html body .nav-link.active, html body .sidebar .nav-link.active, html body .partner-sidebar .nav-link.active, html body .crm-nav-link.active {
  color: var(--ct-jade) !important; background-color: var(--ct-jade-tint) !important;
}
html body .nav-link svg, html body .crm-nav-link svg { color: inherit; }

/* Horizontal layout + shared top bar text */
html body .topbar-link, html body .hz-mobile-link { color: var(--ct-basalt) !important; border-radius: 0; background: transparent; }
html body .topbar-link:hover, html body .hz-mobile-link:hover { color: var(--ct-basalt) !important; background: var(--ct-granite-tint); }
html body .topbar-link.active, html body .hz-mobile-link.active { color: var(--ct-jade) !important; background: var(--ct-jade-tint); border-bottom-color: var(--ct-jade); }
html body .topbar-right, html body .hz-user, html body .user-name-label, html body .client-ref-label,
html body .topbar-right .client-ref-label { color: var(--ct-granite) !important; }
html body .hz-mobile-dropdown { background: #fff !important; border: 1px solid var(--ct-granite-30); box-shadow: var(--shadow-overlay); }
html body .mobile-menu-btn, html body .hz-mobile-menu-btn { color: var(--ct-basalt); }

/* --- Square corners on client-portal panels/cards (generated from page <style> blocks) --- */
html body .added-payments-list,
html body .ben-country-list,
html body .ben-country-option,
html body .ben-detail-card,
html body .ben-fieldset,
html body .ben-panel,
html body .ben-validation-errors,
html body .benef-modal-close,
html body .benef-modal-panel,
html body .bm-country-list,
html body .bm-country-search,
html body .bm-fieldset,
html body .bm-validation-errors,
html body .callback-card,
html body .callback-success,
html body .ccy-dropdown-item,
html body .ccy-dropdown-list,
html body .ccy-search-input,
html body .ccy-tag-lg,
html body .client-ref-label,
html body .company-suggestions,
html body .confirmation-summary,
html body .confirmed-badge,
html body .contact-card,
html body .country-dropdown-menu,
html body .country-search-input,
html body .dash-card,
html body .dash-summary,
html body .dash-summary-item,
html body .dev-debug-panel,
html body .done-confirm-panel,
html body .edit-panel,
html body .fully-allocated-msg,
html body .fund-modal,
html body .holiday-block,
html body .holiday-date,
html body .holiday-flag,
html body .holiday-item,
html body .info-card,
html body .mo-diff,
html body .mo-preview,
html body .mo-rate-indicator,
html body .mo-rate-warning,
html body .multi-select-list,
html body .pay-count-badge,
html body .payment-error-msg,
html body .payment-form-inline,
html body .payment-popup,
html body .payment-success-msg,
html body .pf-new-benef-card,
html body .quote-card,
html body .quote-overlay,
html body .quote-progress,
html body .quote-progress-bar,
html body .quote-rate-block,
html body .rfq-panel,
html body .role-card,
html body .selected-country-badge,
html body .success-banner,
html body .success-dismiss,
html body .trade-detail-card,
html body .trade-disclaimer
{ border-radius: 0; box-shadow: none; }

/* Icon tiles -> circles with hairline, no pastel gradients */
html body .dash-icon, html body .dash-summary-icon, html body .callback-icon, html body .contact-card-icon, html body .info-card-icon {
  border-radius: 50%; background: transparent !important; background-image: none !important; border: 1.5px solid var(--ct-jade); color: var(--ct-jade) !important;
}

/* Client Home cards: flat, hairline, no coloured accent bar */
html body .dash-card { border: 1px solid var(--ct-granite-30); background: #fff; }
html body .dash-card:hover { transform: none; box-shadow: none; border-color: var(--ct-basalt); }
html body .dash-card-accent { display: none; }
html body .dash-card-text h3, html body .dash-card h3 { font-family: var(--font-display) !important; font-weight: 300; font-size: 22px; }
html body .dash-arrow { color: var(--ct-jade); }
html body .dash-summary { background: var(--ct-granite-tint); border: 1px solid var(--ct-granite-30); }
html body .dash-summary-item { background: #fff; border: 1px solid var(--ct-granite-30); }
html body .dash-summary h2, html body .dash-summary h3 { font-family: var(--font-display) !important; font-weight: 300; }

/* Client portal badge in top bar */
html body .client-ref-label { background: var(--ct-granite-tint); color: var(--ct-basalt) !important; border: 1px solid var(--ct-granite-30); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }

/* --- Spacing: 2rem top/bottom, 4rem left/right on page content; padded nav --- */
html body .content, html body .crm-content, html body main .content { padding: 2rem 4rem 4rem; }
html body .top-row, html body .crm-topbar, html body .topbar { padding-left: 4rem; padding-right: 4rem; }
html body .sidebar nav, html body .partner-sidebar nav, html body .crm-nav { padding: 16px 12px; }
html body .sidebar .nav-item, html body .partner-sidebar .nav-item { padding: 0; }
html body .page-header { padding-bottom: 1.5rem; margin-bottom: 2rem; }

/* Floating UI keeps the single overlay elevation from the design */
html body .fund-modal, html body .benef-modal-panel, html body .payment-popup, html body .quote-overlay,
html body .ccy-dropdown-list, html body .country-dropdown-menu, html body .bm-country-list, html body .ben-country-list,
html body .company-suggestions, html body .hz-mobile-dropdown { box-shadow: var(--shadow-overlay); }

/* Bootstrap's .px-4 is !important; page gutters must beat it (2rem top/bottom, 4rem left/right) */
html body .content.px-4, html body article.content { padding: 2rem 4rem 4rem !important; }
html body .top-row.px-4, html body .crm-topbar.px-4 { padding-left: 4rem !important; padding-right: 4rem !important; }

/* Info page: no coloured accent bars */
html body .info-card-accent { display: none; }

/* Headings are always Freight/Source Serif Light in the design */
html body :is(h1, h2, h3, h4, h5, h6) { font-weight: 300 !important; }

/* --- Partner: menu sub-items, period chips, list search ------------------- */
html body .nav-sub .nav-link { padding-left: 38px; font-size: 14px; color: var(--ct-granite) !important; }
html body .nav-sub .nav-link.active { color: var(--ct-jade) !important; }

html body .period-filter { display: inline-flex; border: 1px solid var(--ct-granite-50); margin-bottom: 24px; flex-wrap: wrap; }
html body .period-chip {
  padding: 9px 14px; background: #fff; color: var(--ct-basalt); border: 0; cursor: pointer;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 0;
}
html body .period-chip + .period-chip { border-left: 1px solid var(--ct-granite-50); }
html body .period-chip:hover { background: var(--ct-granite-tint); }
html body .period-chip.active { background: var(--ct-basalt); color: #fff; }

html body .list-search { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--ct-granite-30); }
html body .list-search-input { flex: 1 1 280px; max-width: 420px; height: 40px; padding: 0 14px; border: 1px solid var(--ct-granite-50); border-radius: 0; font-size: 14px; }
html body .list-search-count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ct-granite); }
html body .filter-client { min-width: 220px; height: 34px; }

/* Bank account cards: flat basalt header instead of the old navy gradient */
html body .bank-account-card__header { background: var(--ct-basalt) !important; background-image: none !important; }
html body .bank-nickname { color: #fff; font-weight: 400; }
html body .bank-ccy-badge { background: var(--ct-sand); color: var(--ct-basalt); border-color: var(--ct-sand); }
html body .bank-detail-label { color: var(--ct-granite); }
html body .bank-detail-value { color: var(--ct-basalt); }

/* --- Loading screen: flat Jade (the design's splash), no tenant gradient --- */
html body .loading-screen { background: var(--ct-jade) !important; background-image: none !important; }
html body .loading-screen h2 {
  font-family: var(--font-display) !important; font-weight: 300 !important; letter-spacing: 0.02em;
  text-transform: none; font-size: 2rem; color: #fff;
}
html body .loading-screen span {
  color: rgba(255,255,255,0.8) !important; font-size: 11px; letter-spacing: 0.2em; font-weight: 400;
}
html body .loading-spinner {
  border: 2px solid rgba(255,255,255,0.25) !important; border-top-color: var(--ct-sand) !important;
}

/* app.css forces Inter with !important on these classes; fonts must stay Jost */
html body .form-control, html body .form-select, html body .btn,
html body .btn-primary, html body .btn-secondary, html body .btn-block {
  font-family: var(--font-body) !important;
}
html body ::placeholder { color: var(--ct-granite); opacity: 1; }

/* ==========================================================================
   Partner pages, laid out as in "Partner Portal.html"
   ========================================================================== */
html body .page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
html body .eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ct-basalt); }
html body .page-head h1 { margin: 0; font-size: 48px; line-height: 1.1; }
html body .page-head p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ct-granite); }

html body .period-filter.chips-inline { margin-bottom: 0; }

/* shared grid "tables" */
html body .g-head, html body .g-row { display: grid; gap: 12px; align-items: center; }
html body .g-head {
  padding: 10px 24px; border-top: 1px solid var(--ct-granite-30); border-bottom: 1px solid var(--ct-granite-30);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ct-basalt);
}
html body .g-row { padding: 14px 24px; border-bottom: 1px solid var(--ct-granite-30); font-size: 14px; }
html body .g-row.clickable { cursor: pointer; }
html body .g-row.clickable:hover { background: var(--ct-granite-tint); }
html body .g-top    { grid-template-columns: minmax(0,1fr) 90px 110px; }
html body .g-recent { grid-template-columns: 76px minmax(0,1fr) 80px 90px; }
html body .g-clients { grid-template-columns: minmax(220px,2.4fr) 120px 110px 80px 120px 120px; gap: 16px; padding-left: 20px; padding-right: 20px; }
html body .g-head.g-clients { background: var(--ct-granite-tint); border-top: 0; padding-top: 12px; padding-bottom: 12px; }
html body .r { text-align: right; }
html body .sortable { cursor: pointer; user-select: none; }
html body .g-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .g-sub { font-size: 12px; color: var(--ct-granite); }
html body .g-muted { color: var(--ct-granite); font-size: 13px; }
html body .g-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .g-empty { padding: 48px 24px; text-align: center; color: var(--ct-granite); font-size: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
html body .g-empty-title { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; color: var(--ct-basalt); }

html body .overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
html body .panel { border: 1px solid var(--ct-granite-30); display: flex; flex-direction: column; }
html body .panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 24px 16px; }
html body .panel-head h2 { margin: 0; font-size: 28px; }

html body .toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-bottom: 20px; border-bottom: 1px solid var(--ct-granite-30); margin-bottom: 28px;
}
html body .table-frame { border: 1px solid var(--ct-granite-30); }
html body .table-scroll { overflow-x: auto; }
html body .table-min { min-width: 880px; }

html body .type-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
html body .type-sq { width: 8px; height: 8px; background: var(--ct-granite-50); display: inline-block; }
html body .type-sq--corporate { background: var(--ct-saphire); }
html body .type-sq--private { background: var(--ct-sand); }

html body .pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; font-size: 14px; }
html body .pager-controls { display: flex; align-items: center; gap: 16px; }
html body .pager-rows { display: flex; align-items: center; gap: 8px; color: var(--ct-granite); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; }
html body .pager-rows select { height: 32px; border: 1px solid var(--ct-granite-50); background: #fff; padding: 0 8px; font-size: 14px; border-radius: 0; }
html body .pager-btn { height: 32px; padding: 0 14px; border: 1px solid var(--ct-granite-50); background: #fff; color: var(--ct-basalt); font-size: 14px; cursor: pointer; border-radius: 0; }
html body .pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }

html body .text-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ct-jade);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 0;
}
html body .text-link:hover { color: var(--ct-basalt); }
html body a.btn-pill, html body .btn-pill {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--ct-jade); color: #fff; border: 1px solid var(--ct-jade); cursor: pointer; text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-button); text-transform: uppercase;
}
html body a.btn-pill:hover, html body .btn-pill:hover { background: linear-gradient(var(--state-hover-veil), var(--state-hover-veil)), var(--ct-jade); color: #fff; }

/* client slide-over */
html body .drawer-overlay { position: fixed; inset: 0; background: rgba(25,25,25,0.2); z-index: 20; }
html body .drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 21;
  display: flex; flex-direction: column; border-left: 1px solid var(--ct-granite-30); overflow-y: auto;
}
html body .drawer-head { padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ct-granite-30); }
html body .drawer-body { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
html body .drawer-title { display: flex; flex-direction: column; gap: 12px; }
html body .drawer-title h2 { margin: 0; font-size: 40px; line-height: 1.2; }
html body .kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ct-granite-30); border: 1px solid var(--ct-granite-30); }
html body .kpi-strip > div { background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
html body .kpi-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
html body .kpi-value { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; line-height: 1; }
html body .kpi-value.kpi-small { font-size: 20px; }
html body .drawer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html body .client-info-section { border: 1px solid var(--ct-granite-30); border-radius: 0; background: #fff; }
html body .client-info-row { border-bottom: 1px solid var(--ct-granite-30); }
html body .client-info-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-basalt); }
html body .contacts-section-header h4 { font-size: 24px; }

/* bank account */
html body .bank-stack { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
html body .bank-card { border: 1px solid var(--ct-granite-30); background: #fff; }
html body .bank-card-head { display: flex; align-items: center; gap: 16px; padding: 24px; border-bottom: 1px solid var(--ct-granite-30); }
html body .bank-card-icon { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ct-jade); color: var(--ct-jade); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html body .bank-card-titles { display: flex; flex-direction: column; gap: 4px; }
html body .bank-card-title { font-family: var(--font-display) !important; font-weight: 300; font-size: 28px; line-height: 1.2; }
html body .bank-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
html body .bank-card-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct-jade); }
html body .kv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--ct-granite-30); font-size: 14px; }
html body .kv-key { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
html body .kv-val { overflow-wrap: anywhere; }
html body .bank-card-foot { padding: 20px 24px; display: flex; gap: 12px; }
@media (max-width: 640px) { html body .kv-row { grid-template-columns: 1fr; gap: 4px; } }

/* Trades / Payouts: the page header already carries the title */
html body .partner-dashboard .data-card-header h2 { display: none; }
html body .partner-dashboard .data-card-header:not(.trades-header) { display: none; }
html body .partner-dashboard .data-card-header.trades-header { padding: 16px 20px; background: var(--ct-granite-tint); }
html body .partner-dashboard .empty-state { border: 0; border-radius: 0; background: #fff; padding: 56px 24px; text-align: center; }

/* Bank accounts: responsive grid (cards sit side by side when there is room) */
html body .bank-stack {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px; max-width: none; align-items: start;
}
html body .bank-card .kv-row { grid-template-columns: 150px minmax(0, 1fr); }
html body .contacts-section-header { background: var(--ct-granite-tint); border-bottom: 1px solid var(--ct-granite-30); }
html body .row-primary td { background: var(--ct-sand-tint); }

/* Statements */
html body .g-statements { grid-template-columns: minmax(140px,1.4fr) 100px 140px 140px 120px 130px; gap: 16px; padding-left: 20px; padding-right: 20px; }
html body .g-head.g-statements { background: var(--ct-granite-tint); border-top: 0; padding-top: 12px; padding-bottom: 12px; }
html body .status-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
html body .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct-granite-50); display: inline-block; }
html body .status-dot.payout-badge--sent { background: var(--ct-jade); }
html body .status-dot.payout-badge--checked { background: var(--ct-saphire); }
html body .status-dot.payout-badge--pending { background: var(--ct-sand); }
html body .stat-sub { font-size: 13px; color: var(--ct-granite); margin-top: 6px; }

/* Menu counters (Clients, Trades) */
html body .nav-count { margin-left: auto; font-size: 12px; color: var(--ct-granite); }
html body .nav-link.active .nav-count { color: var(--ct-jade); }

/* Leads */
html body .g-leads { grid-template-columns: minmax(200px,1.6fr) 110px minmax(220px,1.6fr) 130px; gap: 16px; padding-left: 20px; padding-right: 20px; }
html body .g-head.g-leads { background: var(--ct-granite-tint); border-top: 0; padding-top: 12px; padding-bottom: 12px; }
html body .table-min--narrow { min-width: 640px; }
html body .stat-body--ordered { flex-direction: column; gap: 14px; }
html body .text-link--small { font-size: 12px; letter-spacing: 0.12em; }
html body .text-link:disabled { opacity: 0.5; cursor: wait; }
html body .inline-error { border-left: 3px solid var(--ct-ruby); background: var(--ct-ruby-tint); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }

/* Commission by month (vertical bar chart, as the design's BarChart) */
html body .chart-panel { margin-bottom: 24px; }
html body .bar-chart { display: flex; align-items: flex-end; gap: 24px; height: 260px; padding: 8px 24px 24px; }
html body .bar-col { flex: 1; min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 8px; }
html body .bar-track { display: flex; align-items: flex-end; }
html body .bar { width: 100%; background: var(--ct-jade); min-height: 0; transition: height var(--duration-base) var(--ease-standard); }
html body .bar-col:hover .bar { background: var(--ct-basalt); }
html body .bar-value, html body .bar-label { text-align: center; font-size: 12px; letter-spacing: 0.08em; }
html body .bar-value { color: var(--ct-granite); }
@media (max-width: 720px) { html body .bar-chart { gap: 8px; padding: 8px 12px 16px; } html body .bar-value { font-size: 10px; } }
