﻿:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee7;
  --surface: #ffffff;
  --nav: #24324a;
  --accent: #256f78;
  --accent-2: #b45309;
  --bg: #f5f7fa;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side-nav { position: sticky; top: 0; min-height: 100vh; max-height: 100vh; overflow: hidden; background: linear-gradient(180deg, #24324a 0%, #2f4262 52%, #1f4b89 100%); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a { color: rgba(255,255,255,.9); text-decoration: none; padding: 9px 11px; border-radius: 6px; font-size: 13px; line-height: 1.25; }
.side-nav a:hover, .side-nav a:focus { background: rgba(255, 255, 255, .13); outline: none; }
.side-nav a.is-active { position: relative; background: #f4fbfa; color: #123942; font-weight: 800; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.side-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 999px; background: #d1a13a; }
.side-nav a.is-active:hover, .side-nav a.is-active:focus { background: #f4fbfa; color: #123942; }
.side-nav .brand { font-weight: 700; margin-bottom: 14px; font-size: 17px; display: grid; gap: 10px; padding: 10px 8px 14px; }
.side-nav .brand img { width: 172px; max-width: 100%; height: auto; background: #fff; border-radius: 6px; padding: 6px; }
.side-nav .brand span { display: block; width: 172px; max-width: 100%; padding: 0; text-align: center; }
.side-nav-menu { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 3px 10px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.34) transparent; }
.side-nav-footer { flex: 0 0 auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.13); }
.nav-home-link, .nav-flat-link { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 36px; margin: 0 0 5px; font-weight: 850; text-transform: uppercase; }
.nav-flat-link { color: rgba(255,255,255,.86); font-size: 12px; }
.nav-flat-link span, .nav-home-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logout-form { margin: 0; }
.logout-form button { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; background: rgba(255,255,255,.09); border-color: rgba(225,244,243,.28); text-align: left; }
.logout-form button:hover, .logout-form button:focus { background: rgba(255,255,255,.14); }
.nav-user { flex: 0 0 auto; padding: 14px 10px 0; color: rgba(255, 255, 255, .86); line-height: 1.25; text-align: left; }
.nav-user span { display: block; color: rgba(255, 255, 255, .58); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nav-user strong { display: block; max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.release-version { flex: 0 0 auto; padding: 6px 10px 2px; color: rgba(255, 255, 255, .68); font-size: 11px; font-weight: 700; line-height: 1; text-align: left; }
.content { padding: 20px 22px; min-width: 0; }
.view-as-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f4c152; border-radius: 8px; background: #fff8e1; color: #65410d; }
.view-as-banner form { margin: 0; }
.view-as-banner button { background: #65410d; border-color: #65410d; padding: 8px 10px; }
.page-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.page-header h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: 0; }
.data-page-header { align-items: start; }
.data-page-title { display: flex; align-items: center; gap: 18px; min-width: 0; }
.data-page-title h1 { margin-bottom: 0; }
.data-page-brand-logo { display: grid; place-items: center; width: clamp(150px, 16vw, 260px); height: 72px; padding: 8px 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.data-page-brand-logo img { display: block; max-width: 100%; max-height: 54px; object-fit: contain; }
.data-page-brand-logo.is-empty { display: none; }
.page-header p { margin: 0; color: var(--muted); }
.page-header.has-table-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.page-header.has-table-meta h1 { grid-column: 1; }
.page-header.has-table-meta .table-meta-banner { grid-column: 2; justify-self: center; }
.page-header.has-table-meta .toolbar { grid-column: 3; justify-self: end; }
.page-header.has-table-meta h1, .page-header.has-table-meta .toolbar { margin-top: 0; margin-bottom: 0; }
.sales-page-header.has-table-meta { grid-template-columns: auto minmax(360px, 1fr) auto; }
.sales-page-header.has-table-meta .toolbar { flex-wrap: nowrap; }
.sales-page-header.has-table-meta .toolbar > #tableSearch { width: 170px; }
.sales-date-filter { display: inline-flex; align-items: end; gap: 8px; padding: 7px; border: 1px solid #d3e1e3; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.sales-date-filter label { display: grid; gap: 3px; min-width: 132px; color: #475467; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.sales-date-filter input { min-height: 34px; padding: 6px 8px; border: 1px solid #cbd8e3; border-radius: 6px; color: #07132b; font-size: 12px; font-weight: 800; }
.sales-date-filter button { min-height: 34px; padding: 7px 13px; }
.record-counter { display: inline-flex; align-items: center; margin-left: 10px; padding: 4px 8px; border: 1px solid #b9d8d6; border-radius: 999px; background: #e9f5f4; color: #245f63; font-size: 12px; font-weight: 700; vertical-align: middle; }
.table-meta-banner { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #d3e1e3; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); color: var(--muted); font-size: 12px; white-space: nowrap; }
.table-meta-banner strong { color: var(--accent); font-size: 15px; }
.sales-total-banner { flex-wrap: wrap; justify-content: center; row-gap: 4px; max-width: min(760px, 100%); white-space: normal; }
.sales-total-banner strong:not(:last-child) { margin-right: 8px; }
.sales-dashboard { display: grid; gap: 14px; margin-bottom: 16px; color: #07132b; }
.sales-dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.sales-dashboard-header h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.1; }
.sales-dashboard-header span { color: #475467; font-size: 13px; font-weight: 800; }
.sales-dashboard-header strong { color: #008b87; font-size: 24px; white-space: nowrap; }
.sales-subgroup-card { padding: 14px 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.sales-subgroup-card h3 { margin: 0 0 12px; color: #07132b; font-size: 15px; text-transform: uppercase; }
.sales-subgroup-list { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.sales-subgroup-row { display: grid; gap: 7px; min-width: 0; }
.sales-subgroup-row div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #07132b; font-weight: 900; }
.sales-subgroup-row div:first-child span { color: #008b87; font-size: 12px; }
.sales-subgroup-track { height: 12px; overflow: hidden; border: 1px solid #dbe4ee; border-radius: 999px; background: #eef3f8; }
.sales-subgroup-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #008b87, #1d4ed8); }
.sales-subgroup-row em { color: #07132b; font-size: 13px; font-style: normal; font-weight: 900; white-space: nowrap; }
.sales-dashboard-grid { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr); gap: 14px; align-items: start; }
.sales-product-split-stack { display: grid; gap: 14px; align-content: start; }
.sales-product-split-stack .sales-chart-card { min-height: 0; }
.sales-chart-card { padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.sales-chart-card h3 { margin: 0 0 14px; color: #07132b; font-size: 16px; text-transform: uppercase; }
.sales-bar-list { display: grid; gap: 10px; }
.sales-bar-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(120px, auto); gap: 10px; align-items: center; }
.sales-bar-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sales-bar-label strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, #008b87, #006d70); color: #fff; font-size: 12px; flex: 0 0 26px; }
.sales-chart-brand .sales-bar-label strong { background: linear-gradient(135deg, #f97316, #c2410c); }
.sales-bar-label span { min-width: 0; overflow: hidden; color: #07132b; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sales-bar-label .sales-bar-text { display: grid; gap: 2px; min-width: 0; }
.sales-bar-label .sales-bar-text b { min-width: 0; overflow: hidden; color: #07132b; font-size: 13px; font-weight: 900; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.sales-bar-label .sales-bar-text small { min-width: 0; overflow: hidden; color: #475467; font-size: 11px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sales-bar-track { height: 18px; overflow: hidden; border: 1px solid #dbe4ee; border-radius: 999px; background: #eef3f8; }
.sales-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #008b87, #006d70); }
.sales-chart-brand .sales-bar-fill { background: linear-gradient(90deg, #f97316, #ea580c); }
.sales-bar-row em { justify-self: end; color: #07132b; font-size: 13px; font-style: normal; font-weight: 900; white-space: nowrap; }
.quote-dashboard { display: grid; gap: 16px; margin-bottom: 16px; color: #07132b; }
.quote-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 14px; }
.quote-kpi { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; min-height: 112px; padding: 15px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.quote-kpi i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #dbeafe; color: #1261ff; font-style: normal; font-size: 21px; font-weight: 900; }
.quote-kpi:nth-child(2) i { background: #dcfce7; color: #059669; }
.quote-kpi:nth-child(3) i { background: #ffedd5; color: #ea580c; }
.quote-kpi:nth-child(4) i, .quote-kpi-warning i { background: #fef3c7; color: #d97706; }
.quote-kpi:nth-child(5) i { background: #ede9fe; color: #7c3aed; }
.quote-kpi:nth-child(6) i { background: #e0f7fa; color: #008b87; }
.quote-kpi span { display: block; margin-bottom: 8px; color: #07132b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.quote-kpi strong { display: block; color: #07132b; font-size: 21px; line-height: 1.1; font-weight: 900; overflow-wrap: anywhere; }
.quote-kpi small { display: block; margin-top: 8px; color: #475467; font-size: 12px; font-weight: 700; }
.quote-visual-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(230px, .75fr) minmax(320px, 1.05fr) minmax(240px, .75fr); gap: 12px; align-items: stretch; }
.quote-card { min-height: 0; padding: 13px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.quote-card h2, .quote-followup h2 { margin: 0 0 12px; color: #07132b; font-size: 14px; font-weight: 900; }
.quote-age-body { display: grid; grid-template-columns: minmax(120px, 150px) minmax(130px, 1fr); align-items: center; gap: 14px; min-height: 220px; }
.quote-donut { position: relative; display: grid; place-items: center; min-height: 150px; }
.quote-donut svg { width: min(150px, 100%); transform: rotate(-90deg); }
.quote-donut div { position: absolute; display: grid; justify-items: center; gap: 2px; }
.quote-donut strong { color: #07132b; font-size: 23px; line-height: 1; }
.quote-donut span { color: #475467; font-size: 12px; font-weight: 800; }
.quote-age-legend { display: grid; gap: 7px; }
.quote-age-legend button { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: #07132b; text-align: left; cursor: pointer; }
.quote-age-legend button:hover, .quote-age-legend button:focus-visible, .quote-age-legend button.is-active { background: color-mix(in srgb, var(--bucket-color) 9%, #ffffff); outline: none; }
.quote-age-legend button.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bucket-color) 35%, #ffffff); }
.quote-age-legend i { width: 10px; height: 10px; border-radius: 50%; }
.quote-age-legend strong { font-size: 12px; font-weight: 900; }
.quote-age-legend em { grid-column: 2; color: #475467; font-size: 11px; font-style: normal; font-weight: 800; }
.quote-bdm-list { display: grid; gap: 9px; max-height: 218px; overflow: auto; padding: 2px 2px 4px; }
.quote-bdm-row { display: grid; grid-template-columns: minmax(92px, 1fr) minmax(86px, 1.2fr) auto; align-items: center; gap: 10px; color: #07132b; }
.quote-bdm-row div { height: 10px; overflow: hidden; border-radius: 999px; background: #eef3f8; }
.quote-bdm-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4a9af4, #1261ff); }
.quote-bdm-row span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.quote-bdm-row strong { justify-self: end; color: #07132b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.quote-trend-svg { display: block; width: 100%; height: 235px; min-height: 0; }
.quote-grid { stroke: #e5eaf2; stroke-width: 1; }
.quote-axis { fill: #344054; font-size: 12px; }
.quote-line { fill: none; stroke: #1261ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.quote-point { fill: #1261ff; stroke: #fff; stroke-width: 2; }
.quote-bar { fill: #1261ff; }
.quote-trend-point { cursor: pointer; }
.quote-trend-point:hover .quote-bar, .quote-trend-point.is-active .quote-bar { fill: #0f4fbd; }
.quote-trend-point.is-active .quote-bar { stroke: #07132b; stroke-width: 2; }
.quote-value-label { fill: #07132b; font-size: 12px; font-weight: 900; }
.quote-account-list { display: grid; gap: 15px; padding-top: 4px; }
.quote-account-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(130px, 1.2fr) minmax(105px, auto); align-items: center; gap: 11px; }
.quote-account-row span { overflow: hidden; color: #07132b; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.quote-account-row div { height: 9px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.quote-account-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1261ff, #1d4ed8); }
.quote-account-row strong { justify-self: end; color: #07132b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.quote-aging-table { min-width: 0; width: 100%; font-size: 12px; }
.quote-aging-table th, .quote-aging-table td { padding: 9px 7px; white-space: nowrap; }
.quote-aging-table th { cursor: default; }
.quote-aging-table td { font-weight: 800; }
.quote-aging-table td:first-child, .quote-aging-table td:last-child { color: var(--bucket-color); }
.quote-aging-table tr { cursor: pointer; }
.quote-aging-table tr:hover td, .quote-aging-table tr.is-active td { background: color-mix(in srgb, var(--bucket-color) 9%, #ffffff); }
.quote-followup { padding: 15px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.quote-followup div { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.quote-followup button { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; min-height: 72px; padding: 13px; border: 1px solid #e5edf5; border-radius: 8px; background: #fbfdff; color: inherit; text-align: left; cursor: pointer; }
.quote-followup button::before { content: ""; grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--priority-color); }
.quote-followup button:hover, .quote-followup button:focus-visible, .quote-followup button.is-active { border-color: #91b8c0; background: #f8fbff; outline: none; }
.quote-followup span { color: #07132b; font-size: 13px; font-weight: 900; }
.quote-followup strong { color: #07132b; font-size: 16px; font-weight: 900; }
.quote-followup em { color: var(--priority-color); font-size: 13px; font-style: normal; font-weight: 900; white-space: nowrap; }
.order-dashboard { display: grid; gap: 16px; margin-bottom: 16px; color: #07132b; }
.order-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; }
.order-kpi { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 116px; padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.order-kpi i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #dbeafe; color: #1261ff; font-style: normal; font-size: 22px; font-weight: 900; }
.order-kpi:nth-child(2) i { background: #dcfce7; color: #059669; }
.order-kpi:nth-child(3) i { background: #ffedd5; color: #ea580c; }
.order-kpi:nth-child(4) i { background: #ede9fe; color: #7c3aed; }
.order-kpi:nth-child(5) i { background: #fee2e2; color: #ef4444; }
.order-kpi span { display: block; margin-bottom: 8px; color: #07132b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.order-kpi strong { display: block; color: #07132b; font-size: 22px; line-height: 1.1; font-weight: 900; overflow-wrap: anywhere; }
.order-kpi small { display: block; margin-top: 9px; color: #475467; font-size: 12px; font-weight: 700; }
.order-visual-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(360px, 1.22fr); gap: 14px; align-items: stretch; }
.order-card { min-height: 0; padding: 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.order-card h2, .order-aging-summary h2 { margin: 0 0 12px; color: #07132b; font-size: 14px; font-weight: 900; }
.order-age-body { display: grid; grid-template-columns: minmax(130px, 170px) minmax(130px, 1fr); align-items: center; gap: 16px; min-height: 230px; }
.order-donut { position: relative; display: grid; place-items: center; min-height: 170px; }
.order-donut svg { width: min(170px, 100%); transform: rotate(-90deg); }
.order-donut div { position: absolute; display: grid; justify-items: center; gap: 2px; }
.order-donut strong { color: #07132b; font-size: 24px; line-height: 1; }
.order-donut span { color: #475467; font-size: 13px; font-weight: 800; }
.order-age-legend { display: grid; gap: 9px; }
.order-age-legend span { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 9px; align-items: center; color: #07132b; }
.order-age-legend i { width: 10px; height: 10px; border-radius: 50%; }
.order-age-legend strong { font-size: 13px; font-weight: 900; }
.order-age-legend em { grid-column: 2; color: #475467; font-size: 12px; font-style: normal; font-weight: 800; }
.order-customer-list { display: grid; gap: 16px; padding-top: 4px; }
.order-customer-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 1.3fr) minmax(110px, auto); align-items: center; gap: 12px; }
.order-customer-row span { overflow: hidden; color: #07132b; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.order-customer-row div { height: 9px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.order-customer-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1261ff, #1d4ed8); }
.order-customer-row strong { justify-self: end; color: #07132b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.order-trend-svg { display: block; width: 100%; height: 250px; min-height: 0; }
.order-grid { stroke: #e5eaf2; stroke-width: 1; }
.order-axis { fill: #344054; font-size: 12px; }
.order-line { fill: none; stroke: #1261ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.order-point { fill: #1261ff; stroke: #fff; stroke-width: 2; }
.order-bar { fill: #1261ff; }
.order-trend-point { cursor: pointer; }
.order-trend-point:hover .order-bar, .order-trend-point.is-active .order-bar { fill: #0f4fbd; }
.order-trend-point.is-active .order-bar { stroke: #07132b; stroke-width: 2; }
.order-value-label { fill: #07132b; font-size: 12px; font-weight: 900; }
.order-summary-grid { display: grid; grid-template-columns: minmax(420px, 1.5fr) repeat(3, minmax(170px, .7fr)); gap: 16px; }
.order-aging-summary, .order-alert-card { min-height: 104px; padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.order-aging-summary div { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 12px; }
.order-aging-summary button { display: grid; gap: 6px; padding: 0 14px; border: 0; border-left: 2px solid var(--bucket-color); border-radius: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.order-aging-summary button:hover, .order-aging-summary button:focus-visible, .order-aging-summary button.is-active { background: color-mix(in srgb, var(--bucket-color) 9%, #ffffff); outline: none; }
.order-aging-summary button.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bucket-color) 35%, #ffffff); }
.order-aging-summary strong { color: var(--bucket-color); font-size: 13px; font-weight: 900; }
.order-aging-summary em { color: #475467; font-size: 12px; font-style: normal; font-weight: 800; }
.order-alert-card { display: grid; align-content: center; gap: 6px; color: inherit; text-align: left; cursor: pointer; }
.order-alert-card:hover, .order-alert-card:focus-visible, .order-alert-card.is-active { border-color: #91b8c0; background: #f8fbff; outline: none; }
.order-alert-card.is-active { box-shadow: inset 0 0 0 1px #91b8c0, 0 10px 28px rgba(15, 23, 42, .04); }
.order-alert-card span { color: #07132b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.order-alert-card strong { color: #07132b; font-size: 21px; line-height: 1.1; font-weight: 900; }
.order-alert-card small { color: #475467; font-size: 12px; font-weight: 700; }
.order-alert-danger strong { color: #dc2626; }
.order-alert-warning strong { color: #f59e0b; }
.job-dashboard { display: grid; gap: 16px; margin-bottom: 16px; color: #07132b; }
.job-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; }
.job-kpi { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 96px; padding: 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.job-kpi i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #dff3f1; color: #008b87; font-style: normal; font-size: 21px; font-weight: 900; }
.job-kpi:nth-child(2) i { background: #fff7ed; color: #ea580c; }
.job-kpi:nth-child(3) i { background: #e0f2fe; color: #1261af; }
.job-kpi:nth-child(4) i { background: #ede9fe; color: #7c3aed; }
.job-kpi:nth-child(5) i { background: #fee2e2; color: #dc2626; }
.job-kpi span { display: block; margin-bottom: 8px; color: #07132b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.job-kpi strong { display: block; color: #07132b; font-size: 20px; line-height: 1.1; font-weight: 900; overflow-wrap: anywhere; }
.job-kpi small { display: block; margin-top: 9px; color: #475467; font-size: 12px; font-weight: 700; }
.job-kpi-warning strong { color: #dc2626; }
.job-visual-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr); gap: 14px; align-items: stretch; }
.job-card, .job-list-card { padding: 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.job-card { min-height: 0; height: 280px; }
.job-card h2, .job-list-card h2 { margin: 0 0 12px; color: #07132b; font-size: 14px; font-weight: 900; }
.job-age-body { display: grid; grid-template-columns: minmax(130px, 180px) minmax(140px, 1fr); align-items: center; gap: 16px; height: calc(100% - 32px); }
.job-donut { position: relative; display: grid; place-items: center; min-height: 0; height: 190px; }
.job-donut svg { width: min(170px, 100%); transform: rotate(-90deg); }
.job-donut div { position: absolute; display: grid; justify-items: center; gap: 2px; }
.job-donut strong { color: #07132b; font-size: 25px; line-height: 1; }
.job-donut span { color: #475467; font-size: 13px; font-weight: 800; }
.job-age-legend { display: grid; gap: 8px; align-content: center; }
.job-age-legend button { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 1px 8px; align-items: center; width: 100%; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #07132b; text-align: left; cursor: pointer; }
.job-age-legend i { width: 10px; height: 10px; border-radius: 50%; }
.job-age-legend strong { font-size: 12px; font-weight: 900; }
.job-age-legend em { grid-column: 2; color: #475467; font-size: 11px; font-style: normal; font-weight: 800; }
.job-bar-list { display: grid; gap: 16px; padding-top: 4px; }
.job-bar-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 1.3fr) minmax(64px, auto); align-items: center; gap: 12px; }
.job-bar-row span { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; color: #07132b; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.job-bar-row span strong { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 4px; background: linear-gradient(135deg, #008b87, #006d70); color: #fff; font-size: 11px; }
.job-bar-row div { height: 9px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.job-bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #008b87, #006d70); }
.job-bar-row em { justify-self: end; color: #07132b; font-size: 12px; font-style: normal; font-weight: 900; white-space: nowrap; }
.job-trend-svg { display: block; width: 100%; height: 220px; min-height: 0; }
.job-grid { stroke: #e5eaf2; stroke-width: 1; }
.job-axis { fill: #344054; font-size: 11px; }
.job-line { fill: none; stroke: #008b87; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.job-point { fill: #fff; stroke: #008b87; stroke-width: 3; }
.job-bar { fill: #008b87; }
.job-value-label { fill: #07132b; font-size: 11px; font-weight: 900; }
.job-kpi[type="button"] { color: inherit; text-align: left; cursor: pointer; }
.job-kpi[type="button"]:hover, .job-kpi[type="button"]:focus-visible, .job-kpi.is-active { border-color: #91b8c0; background: #f8fbff; outline: none; }
.job-age-legend button:hover, .job-age-legend button:focus-visible, .job-age-legend button.is-active { border-color: var(--bucket-color); background: #f8fbff; outline: none; }
.job-trend-point { cursor: pointer; }
.job-trend-point:hover .job-bar, .job-trend-point.is-active .job-bar { fill: #006d70; }
.job-trend-point.is-active .job-bar { stroke: #07132b; stroke-width: 2; }
.job-list-card button:hover, .job-list-card button:focus-visible, .job-list-card button.is-active { border-color: #91b8c0; background: #f8fbff; outline: none; }
.job-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; }
.job-list-card { min-height: 0; }
.job-list-card div { display: grid; gap: 10px; }
.job-list-card button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #e5edf5; border-radius: 8px; background: #fbfdff; text-align: left; cursor: pointer; }
.job-list-card strong { min-width: 0; overflow: hidden; color: #07132b; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.job-list-card em { display: grid; place-items: center; min-width: 34px; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #e9f5f4; color: #006d70; font-size: 12px; font-style: normal; font-weight: 900; }
.invoice-dashboard { display: grid; gap: 16px; margin-bottom: 16px; color: #07132b; }
.invoice-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; }
.invoice-kpi { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 14px; min-height: 116px; padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.invoice-kpi span { display: block; margin-bottom: 10px; color: #07132b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.invoice-kpi strong { display: block; color: #07132b; font-size: 22px; line-height: 1.1; font-weight: 900; overflow-wrap: anywhere; }
.invoice-kpi small { display: block; margin-top: 9px; color: #475467; font-size: 12px; font-weight: 700; }
.invoice-kpi i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e0f2fe; color: #1261af; font-style: normal; font-size: 20px; font-weight: 900; }
.invoice-kpi:nth-child(2) i { background: #dff3f1; color: #008b87; }
.invoice-kpi-danger strong { color: #dc2626; }
.invoice-kpi-danger i { background: #fee2e2; color: #dc2626; }
.invoice-visual-grid { display: grid; grid-template-columns: minmax(310px, .9fr) minmax(360px, 1.1fr); gap: 16px; }
.invoice-card { min-height: 280px; padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.invoice-card h2 { margin: 0 0 16px; color: #07132b; font-size: 15px; font-weight: 900; }
.invoice-age-body { display: grid; grid-template-columns: minmax(150px, 220px) minmax(140px, 1fr); align-items: center; gap: 22px; }
.invoice-donut { position: relative; display: grid; place-items: center; min-height: 210px; }
.invoice-donut svg { width: min(210px, 100%); transform: rotate(-90deg); }
.invoice-donut circle { transition: stroke-dasharray .2s ease; }
.invoice-donut div { position: absolute; display: grid; justify-items: center; gap: 2px; }
.invoice-donut strong { color: #07132b; font-size: 28px; line-height: 1; }
.invoice-donut span { color: #475467; font-size: 13px; font-weight: 800; }
.invoice-age-legend { display: grid; gap: 13px; }
.invoice-age-legend span { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 9px; align-items: center; color: #07132b; }
.invoice-age-legend i { width: 10px; height: 10px; border-radius: 50%; }
.invoice-age-legend strong { font-size: 13px; font-weight: 900; }
.invoice-age-legend em { grid-column: 2; color: #475467; font-size: 12px; font-style: normal; font-weight: 800; }
.invoice-customer-list { display: grid; gap: 16px; padding-top: 4px; }
.invoice-customer-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 1.3fr) minmax(110px, auto); align-items: center; gap: 12px; }
.invoice-customer-row span { overflow: hidden; color: #07132b; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.invoice-customer-row div { height: 9px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.invoice-customer-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #008b87, #006d70); }
.invoice-customer-row strong { justify-self: end; color: #07132b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.invoice-trend-svg { display: block; width: 100%; min-height: 220px; }
.invoice-grid { stroke: #e5eaf2; stroke-width: 1; }
.invoice-axis { fill: #344054; font-size: 12px; }
.invoice-line { fill: none; stroke: #008b87; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.invoice-point { fill: #fff; stroke: #008b87; stroke-width: 3; }
.invoice-bar { fill: #008b87; }
.invoice-value-label { fill: #07132b; font-size: 12px; font-weight: 900; }
.invoice-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; width: fit-content; max-width: 100%; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.invoice-tabs button { min-height: 38px; padding: 9px 17px; border: 0; border-right: 1px solid #e5edf5; border-radius: 0; background: #fff; color: #07132b; font-size: 12px; font-weight: 800; }
.invoice-tabs button.is-active { background: #e9f5f4; color: #006d70; box-shadow: inset 0 -2px 0 #008b87; }
.invoice-tabs span { padding: 0 14px; color: #475467; font-size: 12px; font-weight: 800; white-space: nowrap; }
.price-currency-toggle { color: var(--ink); font-weight: 800; }
.currency-switch { position: relative; display: inline-flex; align-items: center; width: 46px; height: 24px; margin: 0; padding: 0; cursor: pointer; }
.currency-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.currency-switch i { position: relative; display: block; width: 46px; height: 24px; border-radius: 999px; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: background .18s ease; }
.currency-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .24); transition: transform .18s ease; }
.currency-switch input:checked + i { background: #245f9f; }
.currency-switch input:checked + i::after { transform: translateX(22px); }
.currency-switch input:focus + i { outline: 3px solid rgba(47, 111, 115, .22); outline-offset: 2px; }
.home-dashboard { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dashboard-card { min-height: 120px; padding: 16px; border-left: 4px solid var(--accent); display: flex; flex-direction: column; justify-content: space-between; }
.dashboard-card span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dashboard-card strong { color: var(--ink); font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.dashboard-card small { color: var(--muted); font-size: 12px; }
.dashboard-card em { color: var(--accent); font-size: 13px; font-style: normal; font-weight: 800; }
.dashboard-card:nth-child(2) { border-left-color: #245f9f; }
.dashboard-card:nth-child(3) { border-left-color: var(--accent-2); }
.dashboard-card:nth-child(4) { border-left-color: #7a3e7d; }
.home-performance { margin: 0 0 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.home-performance-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-performance-header h2 { margin: 0; font-size: 19px; }
.home-performance-header span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.home-performance-summary { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.home-performance-summary span { display: grid; gap: 5px; min-height: 92px; padding: 13px 14px; border: 1px solid #d3e1e3; border-left: 4px solid var(--accent); border-radius: 8px; background: #f8fafc; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.home-performance-summary span:nth-child(2) { border-left-color: var(--accent-2); }
.home-performance-summary span:nth-child(3) { border-left-color: #7a3e7d; }
.home-performance-summary strong { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.home-performance-summary em { color: var(--ink); font-size: 28px; line-height: 1; font-style: normal; font-weight: 900; }
.home-performance-summary small { color: var(--muted); font-size: 12px; font-weight: 700; }
.home-month-chart { margin-bottom: 18px; padding: 14px; border: 1px solid #cbdce0; border-radius: 8px; background: #f8fbfb; }
.home-chart-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.home-chart-title strong { color: var(--ink); font-size: 15px; text-transform: uppercase; }
.home-chart-title span { color: var(--muted); font-size: 12px; font-weight: 800; }
.home-chart-title-weekly { margin: 2px 0 10px; }
.home-month-bars { display: grid; gap: 10px; }
.home-month-bars .home-week-row { grid-template-columns: 86px minmax(160px, 1fr) minmax(150px, auto); font-size: 13px; }
.home-month-bars .home-week-track { height: 20px; }
.home-month-bars .home-week-row strong { font-size: 13px; }
.home-weekly-chart { display: grid; gap: 12px; }
.home-week { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 8px 12px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.home-week-label { grid-row: span 3; display: grid; align-content: center; gap: 4px; }
.home-week-label strong { font-size: 13px; }
.home-week-label span { color: var(--muted); font-size: 11px; font-weight: 700; }
.home-week-row { display: grid; grid-template-columns: 72px minmax(120px, 1fr) minmax(130px, auto); align-items: center; gap: 10px; font-size: 12px; }
.home-week-metric { color: var(--ink); font-weight: 800; }
.home-week-track { height: 17px; overflow: hidden; border-radius: 999px; background: #eef3f4; border: 1px solid #d8e1e4; }
.home-week-bar { height: 100%; border-radius: inherit; min-width: 0; transition: width .2s ease; }
.home-week-row strong { justify-self: end; color: var(--ink); font-size: 12px; }
.home-bar-sales { background: var(--accent); }
.home-bar-target { background: #7a3e7d; }
.home-bar-pipeline { background: var(--accent-2); }
.home-bp-panel, .home-finance-card { border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.home-bp-panel { display: grid; gap: 16px; padding: 16px; }
.home-bp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.home-bp-head strong { display: block; color: #07132b; font-size: 22px; line-height: 1.15; }
.home-bp-head span { display: block; margin-top: 5px; color: #475467; font-size: 14px; font-weight: 800; }
.home-credit-request-button { align-self: center; min-width: 220px; }
.home-credit-request-button:disabled { cursor: not-allowed; opacity: .45; }
.home-bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.home-bp-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-bp-field { min-width: 0; padding: 12px; border: 1px solid #e3ebf4; border-radius: 8px; background: #f8fbfe; }
.home-bp-field span, .home-finance-card span, .home-credit-context span { display: block; margin-bottom: 6px; color: #475467; font-size: 10px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.home-bp-field strong { display: block; color: #07132b; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.home-finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.home-finance-card { min-width: 0; padding: 15px; border-top: 4px solid #245f9f; }
.home-finance-card strong { display: block; color: #07132b; font-size: 21px; line-height: 1.1; overflow-wrap: anywhere; }
.home-finance-card small { display: block; margin-top: 8px; color: #475467; font-size: 12px; font-weight: 800; }
.home-finance-credit { border-top-color: #7a3e7d; }
.home-finance-invoice { border-top-color: #b45309; }
.home-finance-orders { border-top-color: #2f7778; }
.home-credit-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-credit-context div { padding: 12px; border: 1px solid #e3ebf4; border-radius: 8px; background: #f8fbfe; }
.home-credit-context strong { display: block; color: #07132b; overflow-wrap: anywhere; }
.email-template-layout { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.email-template-layout textarea { font-family: Consolas, 'Courier New', monospace; min-height: 280px; }
.home-dashboard-shell { display: grid; gap: 14px; color: #07132b; }
.home-dashboard-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 340px) auto; align-items: start; gap: 18px; }
.home-dashboard-title h1 { margin: 0 0 4px; font-size: 25px; line-height: 1.12; color: #07132b; }
.home-dashboard-title span { display: block; color: #07132b; font-size: 16px; }
.home-month-select { display: inline-flex; align-items: center; gap: 8px; min-width: 180px; padding: 8px 10px; border: 1px solid #d5dee9; border-radius: 8px; background: #fff; color: #07132b; font-weight: 700; }
.home-brand-logo-slot { display: grid; place-items: center; min-height: 84px; padding: 10px 18px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.home-brand-logo-slot img { display: block; max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
.home-brand-logo-slot.is-empty { background: #f8fbfe; }
.home-brand-logo-slot.is-empty span { display: block; width: 100%; max-width: 190px; height: 44px; border: 1px dashed #c7d7e8; border-radius: 6px; background: linear-gradient(135deg, #ffffff, #f2f7fb); }
.home-month-select span { font-size: 12px; color: #475467; }
.home-month-select select { flex: 1; border: 0; background: transparent; color: #07132b; font: inherit; opacity: 1; }
.home-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.home-kpi-grid-single { grid-template-columns: minmax(300px, 1fr); }
.home-kpi-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 13px; min-height: 104px; min-width: 0; padding: 15px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.home-kpi-card > div { min-width: 0; }
.home-kpi-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 23px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.home-kpi-card span { display: block; margin-bottom: 7px; color: #07132b; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.home-kpi-card strong { display: block; color: #07132b; font-size: 20px; line-height: 1.08; font-weight: 900; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.home-kpi-card small { display: block; margin-top: 8px; color: #475467; font-size: 14px; font-weight: 800; }
.home-kpi-sales .home-kpi-icon { background: linear-gradient(135deg, #008b87, #006d70); }
.home-kpi-target .home-kpi-icon { background: linear-gradient(135deg, #8a22b0, #5b1680); }
.home-kpi-pipeline .home-kpi-icon { background: linear-gradient(135deg, #f97316, #c2410c); }
.home-kpi-forecast .home-kpi-icon { background: linear-gradient(135deg, #2884dc, #1261af); }
.home-kpi-gap .home-kpi-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.home-kpi-sales small { color: #008b87; }
.home-kpi-pipeline small { color: #ea580c; }
.home-kpi-forecast small { color: #1261af; }
.home-kpi-gap small { color: #dc2626; }
.home-target-panel, .home-week-table-panel, .home-line-panel, .home-forecast-callout { border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.home-target-panel { padding: 16px; }
.home-panel-title { margin-bottom: 14px; color: #07132b; font-size: 16px; font-weight: 900; text-transform: uppercase; }
.home-progress-legend { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.home-legend-item { display: grid; gap: 6px; color: #07132b; }
.home-legend-item span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.home-legend-item i { width: 12px; height: 12px; border-radius: 50%; background: #98a2b3; }
.home-legend-item strong { font-size: 15px; font-weight: 900; }
.home-legend-sales i { background: #008b87; }
.home-legend-pipeline i { background: #ea580c; }
.home-legend-target i { background: #6b21a8; }
.home-progress-wrap { display: grid; gap: 12px; }
.home-progress-bar { position: relative; display: flex; height: 42px; overflow: visible; border-radius: 4px; background: #eef3f8; box-shadow: inset 0 0 0 1px #dbe4ee; }
.home-progress-bar > div:not(.home-target-marker) { display: flex; align-items: center; justify-content: center; min-width: 0; color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; }
.home-progress-sales { background: linear-gradient(90deg, #008b87, #00726f); border-radius: 4px 0 0 4px; }
.home-progress-pipeline { background: linear-gradient(90deg, #f97316, #ea580c); }
.home-progress-gap { color: #07132b !important; background: #eef3f8; }
.home-target-marker { position: absolute; top: -17px; right: 0; bottom: -7px; width: 4px; border-radius: 999px; background: #6b21a8; }
.home-progress-axis { display: flex; justify-content: space-between; color: #07132b; font-size: 14px; }
.home-detail-grid { display: grid; grid-template-columns: minmax(520px, 1.05fr) minmax(420px, .95fr); gap: 14px; align-items: stretch; }
.home-week-table-panel, .home-line-panel { padding: 16px; overflow: hidden; }
.home-week-table-scroll { overflow-x: auto; }
.home-week-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.home-week-table th, .home-week-table td { padding: 11px 10px; border-bottom: 1px solid #e5edf5; text-align: right; white-space: nowrap; }
.home-week-table th:first-child, .home-week-table td:first-child, .home-week-table th:nth-child(2), .home-week-table td:nth-child(2) { text-align: left; }
.home-week-table thead th { color: #07132b; font-size: 12px; font-weight: 900; }
.home-week-table tfoot th, .home-week-table tfoot td { background: #eef6f8; font-weight: 900; }
.home-week-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: linear-gradient(135deg, #008b87, #006d70); color: #fff; font-weight: 900; }
.home-gap-positive { color: #047857; font-weight: 900; }
.home-gap-negative { color: #dc2626; font-weight: 900; }
.home-table-note { margin-top: 10px; color: #475467; font-size: 12px; font-weight: 700; }
.home-line-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; color: #344054; font-size: 12px; }
.home-line-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 7px; vertical-align: middle; border-radius: 999px; background: currentColor; }
.home-line-legend .target { color: #7e22ce; }
.home-line-legend .sales { color: #008b87; }
.home-line-legend .forecast { color: #ea580c; }
.home-cumulative-svg { display: block; width: 100%; min-height: 310px; }
.home-chart-grid { stroke: #e5eaf2; stroke-width: 1; stroke-dasharray: 5 4; }
.home-chart-axis-label, .home-chart-week, .home-chart-range { fill: #344054; font-size: 12px; }
.home-chart-week { font-weight: 900; }
.home-chart-range { fill: #667085; }
.home-chart-area { fill: rgba(249, 115, 22, .12); }
.home-line-target, .home-line-forecast, .home-line-sales { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.home-line-target { stroke: #7e22ce; stroke-dasharray: 12 10; }
.home-line-forecast { stroke: #ea580c; stroke-dasharray: 9 8; }
.home-line-sales { stroke: #008b87; }
.home-point-sales { fill: #008b87; }
.home-point-forecast { fill: #ea580c; }
.home-chart-pill rect { stroke: rgba(255,255,255,.45); stroke-width: 1; }
.home-chart-pill text { fill: #fff; font-size: 12px; font-weight: 900; }
.home-chart-pill-target rect { fill: #7e22ce; }
.home-chart-pill-forecast rect { fill: #ea580c; }
.home-chart-pill-sales rect { fill: #008b87; }
.home-forecast-callout { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 28px; background: #f5fbff; }
.home-callout-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #2884dc, #1261af); color: #fff; font-size: 24px; font-weight: 900; }
.home-forecast-callout strong { display: block; margin-bottom: 8px; color: #07132b; font-size: 18px; }
.home-forecast-callout span { color: #344054; font-size: 15px; }
.home-forecast-callout a { justify-self: end; padding: 12px 28px; border: 1px solid #bfdbfe; border-radius: 8px; color: #075aca; background: #fff; font-weight: 800; text-decoration: none; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dashboard-card, .profile-grid div, .table-surface, .editor-panel, .admin-list, .form-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.dashboard-card { border-left-width: 4px; border-left-color: var(--accent); }
.dashboard-card:nth-child(2) { border-left-color: #245f9f; }
.dashboard-card:nth-child(3) { border-left-color: var(--accent-2); }
.dashboard-card:nth-child(4) { border-left-color: #7a3e7d; }
.item-360-panel { margin-bottom: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.item-360-form { display: grid; grid-template-columns: auto minmax(220px, 360px) auto; align-items: end; gap: 10px; }
.item-360-form label { align-self: center; color: var(--muted); font-size: 12px; font-weight: 800; }
.item-360-form input { min-height: 38px; font-size: 14px; }
.item-360-form button { min-height: 38px; padding-inline: 18px; }
.item-360-summary { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.item-360-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.item-360-section { --section-accent: var(--accent); min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid #ccd6e2; border-radius: 8px; box-shadow: 0 12px 28px rgba(16, 24, 40, .12), 0 2px 4px rgba(16, 24, 40, .06); }
.item-360-section header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--section-accent) 22%, #dce4ec); background: linear-gradient(90deg, color-mix(in srgb, var(--section-accent) 14%, #ffffff), #ffffff); }
.item-360-section h2 { margin: 0; font-size: 15px; }
.item-360-section header span { padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--section-accent) 40%, #ffffff); border-radius: 999px; background: color-mix(in srgb, var(--section-accent) 12%, #ffffff); color: var(--section-accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.item-360-window-body { padding: 10px; background: #fff; }
.item-360-stockonhand { --section-accent: #2f6f73; }
.item-360-sales { --section-accent: #245f9f; }
.item-360-tmolist { --section-accent: #b01742; grid-column: 1 / -1; }
.item-360-pricelist { --section-accent: #7a3e7d; }
.item-360-openquotes { --section-accent: #b45309; }
.item-360-opensalesorders { --section-accent: #185b60; }
.item-360-openinvoices { --section-accent: #4f46e5; }
.item-360-pipeline { --section-accent: #8a5a12; }
.item-360-jobcards { --section-accent: #475467; }
.item-360-fit-wrap { width: 100%; max-height: 360px; overflow-y: auto; overflow-x: hidden; border: 1px solid #e2e8f0; border-radius: 8px; scrollbar-width: thin; }
.item-360-fit-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.item-360-fit-table th { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--section-accent) 12%, #eef3f4); color: var(--ink); white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.item-360-fit-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.item-360-fit-table th, .item-360-fit-table td { padding: 6px 7px; }
.item-360-scroll { max-height: 420px; overflow: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--section-accent) #edf2f7; }
.item-360-scroll::-webkit-scrollbar { display: initial; width: 11px; height: 14px; }
.item-360-scroll::-webkit-scrollbar-track { background: #edf2f7; border-radius: 999px; }
.item-360-scroll::-webkit-scrollbar-thumb { background: var(--section-accent); border: 3px solid #edf2f7; border-radius: 999px; }
.item-360-table th { position: sticky; top: 0; z-index: 2; }
.item-360-tmolist .item-360-scroll { max-height: 520px; overflow: auto; }
.item-360-tmolist .item-360-table { width: max-content; min-width: 100%; }
.item-360-tmolist td { white-space: nowrap; }
.bp-view-results { grid-template-columns: minmax(0, 1fr); }
.bp-view-section { grid-column: 1 / -1; }
.bp-view-section .item-360-scroll { max-height: 520px; overflow: auto; }
.bp-view-section .item-360-table { width: max-content; min-width: 100%; }
.bp-view-section .item-360-table td { white-space: nowrap; }
.bp-view-section .item-360-fit-wrap { max-height: 260px; overflow-x: hidden; }
.bp-view-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid #d6e5e5; border-radius: 8px; background: #f2fbfa; color: var(--ink); }
.bp-view-identity span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.bp-view-identity strong { font-size: 14px; font-weight: 900; }
.bp-sales-dashboard { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.bp-sales-card { min-width: 0; padding: 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.bp-sales-card.is-total { border-color: color-mix(in srgb, var(--section-accent) 28%, #dbe4ee); background: linear-gradient(135deg, color-mix(in srgb, var(--section-accent) 12%, #fff), #fff); }
.bp-sales-card span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.bp-sales-card strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(18px, 1.5vw, 26px); line-height: 1.08; }
.bp-sales-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.bp-view-trend { --section-accent: #2f7778; }
.bp-trend-bars { display: flex; align-items: end; gap: 12px; min-height: 260px; overflow-x: auto; padding: 8px 6px 2px; }
.bp-trend-bar-column { display: grid; grid-template-rows: auto 180px auto; gap: 8px; align-items: end; flex: 1 0 82px; min-width: 82px; text-align: center; }
.bp-trend-bar-column strong { color: var(--ink); font-size: 11px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.bp-trend-bar-column span { color: var(--muted); font-size: 11px; font-weight: 900; }
.bp-trend-bar-track { display: flex; align-items: end; justify-content: center; height: 180px; border-bottom: 1px solid #b8c4d0; background: linear-gradient(180deg, #f8fbfd, #fff); }
.bp-trend-bar-fill { width: 58%; min-height: 6px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #1f5f9f, #2f7778); box-shadow: 0 8px 18px rgba(31, 95, 159, .18); }
.bp-view-brand-sales { --section-accent: #1f5f9f; }
.bp-view-category-sales { --section-accent: #2f7778; }
.bp-brand-sales-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.bp-brand-sales-head strong { display: block; color: var(--ink); font-size: clamp(18px, 1.4vw, 25px); line-height: 1.1; }
.bp-brand-sales-head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.bp-brand-sales-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; max-width: 60%; color: var(--muted); font-size: 11px; font-weight: 800; }
.bp-brand-sales-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bp-brand-sales-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 999px; }
.bp-brand-month-bars { display: flex; align-items: end; gap: 12px; min-height: 250px; overflow-x: auto; padding: 8px 6px 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: linear-gradient(180deg, #fbfdff, #fff); scrollbar-width: thin; }
.bp-brand-month-column { display: grid; grid-template-rows: auto 170px auto; gap: 8px; align-items: end; flex: 1 0 88px; min-width: 88px; text-align: center; }
.bp-brand-month-column strong { color: var(--ink); font-size: 10px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.bp-brand-month-column > span { color: var(--muted); font-size: 11px; font-weight: 900; }
.bp-brand-month-track { display: flex; align-items: end; justify-content: center; height: 170px; border-bottom: 1px solid #b8c4d0; }
.bp-brand-month-stack { display: flex; flex-direction: column-reverse; width: 58%; min-height: 6px; overflow: hidden; border-radius: 6px 6px 0 0; box-shadow: 0 8px 18px rgba(31, 95, 159, .14); }
.bp-brand-month-stack span { display: block; min-height: 3px; }
.bp-brand-sales-table th:first-child, .bp-brand-sales-table td:first-child { min-width: 160px; }
.bp-tmo-detail-link { display: inline; max-width: 100%; padding: 0; border: 0; background: transparent; color: #1f5f9f; font: inherit; font-weight: 400; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bp-tmo-detail-link:hover, .bp-tmo-detail-link:focus-visible { color: #a9133f; outline: none; }
.modal-panel.bp-tmo-detail-panel { width: calc(100vw - 120px); max-width: 1900px; height: calc(100vh - 120px); max-height: calc(100vh - 80px); }
.bp-tmo-detail-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.bp-tmo-detail-surface { padding: 14px; }
.bp-tmo-detail-scroll { max-height: calc(100vh - 235px); overflow: auto; }
.bp-tmo-detail-table { min-width: 1800px; font-size: 12px; }
.profile-grid div { padding: 16px; }
.profile-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.profile-grid strong { overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.date-range-filter { display: flex; align-items: end; gap: 8px; padding: 6px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.date-range-filter label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.date-range-filter input { min-width: 132px; padding: 6px 8px; font-size: 12px; }
.date-range-filter button { padding: 6px 11px; }
input, select, textarea, button, .button-link { border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; font: inherit; font-size: 13px; }
textarea { resize: vertical; }
button, .button-link { background: var(--accent); border-color: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .6; cursor: not-allowed; }
.table-surface { padding: 10px; overflow: visible; }
.status { padding: 22px; color: var(--muted); }
.data-table-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
.data-table-scroll::-webkit-scrollbar { display: none; }
.table-scrollbar { position: sticky; bottom: 0; z-index: 6; width: 100%; height: 18px; overflow-x: auto; overflow-y: hidden; margin-top: 2px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.table-scrollbar-spacer { height: 1px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 12px; }
.data-table { width: max-content; min-width: 100%; table-layout: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; line-height: 1.25; }
th { background: #eef3f4; cursor: pointer; white-space: nowrap; }
td { white-space: nowrap; overflow-wrap: normal; }
.column-filter-row th { background: #f8fafc; padding: 4px 6px; cursor: default; }
.column-filter-row input { width: 100%; min-width: 64px; padding: 5px 6px; border-radius: 5px; font-size: 11px; background: #fff; }
.data-table .col-salesordernumber, .data-table .col-quotenumber, .data-table .col-invoicenumber { min-width: 78px; white-space: normal; }
.data-table th.col-salesordernumber, .data-table th.col-quotenumber, .data-table th.col-invoicenumber { line-height: 1.1; }
.data-table td.col-salesordernumber, .data-table td.col-quotenumber, .data-table td.col-invoicenumber { font-weight: 700; }
.data-table .col-salesordernumber,
.data-table .col-docdate,
.data-table .col-accountcode,
.data-table .col-itemcode,
.data-table .col-orderqty,
.data-table .col-openqty,
.data-table .col-roe,
.data-table .col-displaycurrency,
.data-table .col-onhand { width: 70px; min-width: 70px; max-width: 70px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-orderqty,
.data-table .col-openqty,
.data-table .col-roe,
.data-table .col-onhand { text-align: right; }
.tmo-list-data-table,
.bp-tmo-detail-table { table-layout: fixed; }
.tmo-list-data-table th,
.tmo-list-data-table td,
.bp-tmo-detail-table th,
.bp-tmo-detail-table td { overflow: hidden; text-overflow: ellipsis; }
.tmo-list-data-table .col-endcustomer,
.bp-tmo-detail-table .col-endcustomer { width: 170px; min-width: 170px; max-width: 170px; }
.tmo-list-data-table .col-endcustomercode,
.bp-tmo-detail-table .col-endcustomercode { width: 120px; min-width: 120px; max-width: 120px; }
.tmo-list-data-table .col-vendortmo,
.bp-tmo-detail-table .col-vendortmo { width: 118px; min-width: 118px; max-width: 118px; }
.tmo-list-data-table .col-brand,
.bp-tmo-detail-table .col-brand { width: 88px; min-width: 88px; max-width: 88px; }
.tmo-list-data-table .col-tmoexpirarydate,
.bp-tmo-detail-table .col-tmoexpirarydate { width: 120px; min-width: 120px; max-width: 120px; }
.tmo-list-data-table .col-daysbeforeexipry,
.bp-tmo-detail-table .col-daysbeforeexipry { width: 92px; min-width: 92px; max-width: 92px; text-align: right; }
.tmo-list-data-table .col-bdm,
.bp-tmo-detail-table .col-bdm { width: 96px; min-width: 96px; max-width: 96px; }
.tmo-list-data-table .col-itemcode,
.bp-tmo-detail-table .col-itemcode { width: 78px; min-width: 78px; max-width: 78px; white-space: normal; overflow-wrap: anywhere; }
.tmo-list-data-table .col-itemname,
.bp-tmo-detail-table .col-itemname { width: 440px; min-width: 360px; max-width: 520px; }
.tmo-list-data-table .col-roe,
.bp-tmo-detail-table .col-roe { width: 78px; min-width: 78px; max-width: 78px; white-space: nowrap; overflow-wrap: normal; text-align: right; }
.tmo-list-data-table .col-tmostatus,
.bp-tmo-detail-table .col-tmostatus { width: 92px; min-width: 92px; max-width: 92px; }
.tmo-list-data-table .col-stddealerpriceusd,
.tmo-list-data-table .col-tmopriceusd,
.tmo-list-data-table .col-promopriceusd,
.tmo-list-data-table .col-stddealerpricezar,
.tmo-list-data-table .col-tmopricezar,
.tmo-list-data-table .col-promopricezar,
.bp-tmo-detail-table .col-stddealerpriceusd,
.bp-tmo-detail-table .col-tmopriceusd,
.bp-tmo-detail-table .col-promopriceusd,
.bp-tmo-detail-table .col-stddealerpricezar,
.bp-tmo-detail-table .col-tmopricezar,
.bp-tmo-detail-table .col-promopricezar { width: 126px; min-width: 126px; max-width: 126px; text-align: right; }
.data-table .col-docdate { width: 90px; min-width: 90px; max-width: 90px; white-space: nowrap; overflow-wrap: normal; }
.data-table .col-accountcode { width: 84px; min-width: 84px; max-width: 84px; white-space: nowrap; overflow-wrap: normal; }
.data-table .col-displaycurrency { width: 82px; min-width: 82px; max-width: 82px; }
.stock-on-hand-data-table .col-itemcode { width: 118px; min-width: 118px; max-width: 118px; white-space: nowrap; overflow-wrap: normal; }
.data-table .col-salesordernumber { width: 86px; min-width: 86px; max-width: 86px; }
.data-table .col-quotenumber { width: 86px; min-width: 86px; max-width: 86px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-sapjobcardid,
.data-table .col-callid,
.data-table .col-freshdeskticketnumber { width: 90px; min-width: 90px; max-width: 90px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-bpcode { width: 84px; min-width: 84px; max-width: 84px; white-space: nowrap; overflow-wrap: normal; }
.data-table .col-jobcardstockreceivedate,
.data-table .col-jobcardstockreturndate { width: 104px; min-width: 104px; max-width: 104px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-qty,
.data-table .col-quantity { width: 70px; min-width: 70px; max-width: 70px; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-itemdescription { min-width: 220px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-accountname { min-width: 150px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-customerponumber { min-width: 110px; max-width: 180px; white-space: normal; overflow-wrap: anywhere; }
.data-table .col-unitpriceexvat, .data-table .col-totalopenvalue, .data-table .col-linetotal, .data-table .col-invoicetotal, .data-table .col-paidtodate, .data-table .col-balancedue { min-width: 96px; text-align: right; }
.pipeline-data-table .col-probability,
.pipeline-data-table .col-probability input { text-align: center; }
.document-detail-panel { display: grid; gap: 10px; margin-top: 4px; }
.document-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .04); }
.document-detail-header div { display: grid; gap: 2px; }
.document-detail-header strong { color: var(--ink); font-size: 15px; font-weight: 900; }
.document-detail-header span { color: var(--muted); font-size: 12px; font-weight: 800; }
.document-table-toggle { min-width: 132px; background: #fff; border-color: #b7d1d4; color: var(--accent); font-weight: 800; }
.document-group-table .document-expander-col { width: 116px; min-width: 116px; text-align: center; }
.document-summary-row td { background: #f8fbff; font-weight: 800; }
.document-summary-row.is-expanded td { background: #eef8f7; border-bottom-color: #d5e7e8; }
.document-expander-cell { text-align: center; }
.document-row-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 94px; padding: 5px 8px; background: #fff; border-color: #b7d1d4; color: var(--accent); font-size: 11px; font-weight: 900; }
.document-row-toggle small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e6f3f4; color: var(--accent); font-size: 10px; }
.document-line-row td { background: #fff; color: #334155; }
.document-line-row:hover td { background: #fbfdff; }
.document-line-index { color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.order-group-a td { background: #fff7e6; }
.order-group-b td { background: #edf7ff; }
.order-group-a:hover td, .order-group-b:hover td { filter: brightness(.985); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; font-size: 12px; }
.pipeline-chart { margin-top: 16px; }
.pipeline-overview { display: grid; gap: 14px; color: #07132b; }
.pipeline-overview-head { display: flex; justify-content: space-between; gap: 18px; align-items: stretch; }
.pipeline-overview-title h2 { margin: 0 0 6px; color: #07132b; font-size: 25px; line-height: 1.1; }
.pipeline-overview-title span { display: block; color: #344054; font-size: 15px; font-weight: 700; }
.pipeline-kpi-strip { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow: hidden; }
.pipeline-kpi { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 5px 13px; align-items: center; min-height: 86px; padding: 14px 18px; border-left: 1px solid #dbe4ee; }
.pipeline-kpi:first-child { border-left: 0; }
.pipeline-kpi-icon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: #fff; font-size: 19px; font-style: normal; font-weight: 900; }
.pipeline-kpi-total { background: linear-gradient(135deg, #2884dc, #1261af); }
.pipeline-kpi-weighted { background: linear-gradient(135deg, #f97316, #c2410c); }
.pipeline-kpi-average { background: linear-gradient(135deg, #16a34a, #047857); }
.pipeline-kpi span { color: #344054; font-size: 13px; font-weight: 800; }
.pipeline-kpi strong { color: #07132b; font-size: 20px; line-height: 1.1; white-space: nowrap; }
.pipeline-chart-card { padding: 12px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow-x: auto; overflow-y: hidden; }
.pipeline-chart-legend { display: flex; justify-content: center; gap: 32px; margin: 2px 0 2px; color: #07132b; font-size: 14px; font-weight: 800; }
.pipeline-chart-legend span { display: inline-flex; align-items: center; gap: 9px; }
.pipeline-chart-legend i { display: inline-block; width: 28px; height: 11px; border-radius: 4px; }
.pipeline-legend-total i { background: linear-gradient(180deg, #4a9af4, #1261af); }
.pipeline-legend-average i { height: 4px; background: #ea580c; }
.pipeline-chart-svg { display: block; width: 100%; min-width: 1120px; min-height: 285px; }
.pipeline-grid { stroke: #e5eaf2; stroke-width: 1; stroke-dasharray: 5 4; }
.pipeline-axis { stroke: #a8b3c2; stroke-width: 1.2; }
.pipeline-axis-label { fill: #344054; font-size: 12px; }
.pipeline-percent-axis, .pipeline-axis-title-right { fill: #ea580c; }
.pipeline-axis-title { fill: #1261af; font-size: 13px; font-weight: 900; }
.pipeline-bar-total { fill: url(#pipelineBlueGradient); }
.pipeline-bar-label { fill: #07132b; font-size: 12px; font-weight: 900; }
.pipeline-average-line { fill: none; stroke: #ea580c; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pipeline-line-point { fill: #fff; stroke: #ea580c; stroke-width: 4; }
.pipeline-percent-label { fill: #ea580c; paint-order: stroke; stroke: #fff; stroke-width: 4px; font-size: 12px; font-weight: 900; }
.pipeline-month-label { font-size: 13px; font-weight: 800; }
.pipeline-summary-scroll { overflow-x: auto; margin-top: 8px; border: 1px solid #dbe4ee; border-radius: 8px; }
.pipeline-summary-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.pipeline-summary-table th, .pipeline-summary-table td { padding: 12px 14px; border-left: 1px solid #e5edf5; border-bottom: 1px solid #e5edf5; text-align: right; white-space: nowrap; }
.pipeline-summary-table th:first-child, .pipeline-summary-table td:first-child { border-left: 0; text-align: left; }
.pipeline-summary-table thead th { color: #07132b; font-size: 13px; font-weight: 900; background: #fbfdff; }
.pipeline-summary-table tbody th { color: #344054; font-weight: 800; }
.pipeline-summary-table tr:last-child th, .pipeline-summary-table tr:last-child td { border-bottom: 0; }
.pipeline-summary-total { color: #1261af; background: #eff6ff; font-weight: 900; }
.pipeline-summary-weighted-total { color: #ea580c; }
.pipeline-summary-percent { color: #047857; font-weight: 900; }
.summary-dot { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 3px; vertical-align: middle; }
.summary-total { background: #1261af; }
.summary-weighted { background: #ea580c; }
.summary-average { background: #047857; }
.pipeline-brand-card { padding: 16px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); overflow-x: auto; overflow-y: hidden; }
.pipeline-brand-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.pipeline-brand-head h3 { margin: 0 0 5px; color: #07132b; font-size: 18px; line-height: 1.15; }
.pipeline-brand-head span { color: #344054; font-size: 13px; font-weight: 700; }
.pipeline-brand-totals { display: grid; gap: 2px; min-width: 190px; text-align: right; }
.pipeline-brand-totals strong { color: #07132b; font-size: 18px; line-height: 1.1; }
.pipeline-brand-totals span { color: #344054; font-size: 12px; font-weight: 800; }
.pipeline-brand-totals em { color: #ea580c; font-size: 12px; font-style: normal; font-weight: 900; }
.pipeline-brand-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 8px; color: #07132b; font-size: 12px; font-weight: 800; }
.pipeline-brand-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pipeline-brand-legend i { display: inline-block; width: 18px; height: 9px; border-radius: 3px; }
.pipeline-brand-svg { display: block; width: 100%; min-width: 900px; min-height: 320px; }
.pipeline-brand-segment { shape-rendering: crispEdges; }
.pipeline-brand-table { min-width: 980px; }
.pipeline-insight { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid #dbe4ee; border-radius: 8px; background: #f5fbff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.pipeline-insight i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2884dc, #1261af); color: #fff; font-style: normal; font-weight: 900; }
.pipeline-insight strong { display: block; margin-bottom: 4px; color: #1261af; font-size: 15px; }
.pipeline-insight span { color: #344054; font-size: 14px; font-weight: 700; }
.committed-deals { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.committed-deals-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 10px; }
.committed-deals h2 { margin: 0; font-size: 15px; }
.committed-deals-header span { color: var(--muted); font-size: 12px; font-weight: 700; }
.committed-table-scroll { overflow-x: auto; padding-bottom: 4px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tab { background: #fff; color: var(--ink); border-color: var(--line); }
.admin-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.reports-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.reports-tab { background: #fff; color: var(--ink); border-color: var(--line); }
.reports-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.report-panel { display: grid; gap: 14px; }
.report-toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.report-toolbar label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.report-toolbar input, .report-toolbar select { min-height: 38px; border: 1px solid #cbd6e2; border-radius: 6px; padding: 8px 10px; font: inherit; }
.report-last-updated { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.report-surface { min-height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.report-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-bottom: 12px; }
.report-summary-grid article { padding: 12px; border: 1px solid #dbe4ee; border-radius: 8px; background: linear-gradient(180deg, #fff, #f6fbfd); }
.report-summary-grid span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.report-summary-grid strong { display: block; margin-top: 6px; color: var(--ink); font-size: clamp(18px, 2vw, 26px); line-height: 1; }
.report-table { font-size: 12px; }
.report-table td, .report-table th { vertical-align: top; }
.report-table td:last-child { max-width: 380px; white-space: normal; word-break: break-word; }
.report-detail-link { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 800; text-align: left; text-decoration: underline; cursor: pointer; }
.report-detail-link:hover { color: #1c5d5e; }
.sf-activity-dashboard { display: grid; gap: 16px; margin-bottom: 18px; }
.sf-activity-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.sf-activity-title-row h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.sf-activity-title-row p { margin: 8px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.sf-activity-title-row > span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.sf-activity-filter-chips { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px; border: 1px solid #d4dde8; border-radius: 8px; background: #fbfdff; }
.sf-activity-filter-chips span { min-height: 30px; display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid #cbd6e2; border-radius: 6px; background: #f8fafc; color: var(--ink); font-size: 13px; font-weight: 700; }
.sf-activity-kpis { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.sf-activity-kpis article { min-width: 0; padding: 16px; border: 1px solid #d8e2ee; border-radius: 8px; background: linear-gradient(180deg, #fff, #f8fbfd); box-shadow: 0 10px 24px rgba(15, 23, 42, .04); }
.sf-activity-kpis span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.sf-activity-kpis strong { display: block; margin: 8px 0; color: var(--ink); font-size: clamp(24px, 2.7vw, 36px); line-height: .95; overflow-wrap: anywhere; }
.sf-activity-kpis small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.sf-activity-dashboard-grid { display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.sf-activity-side-card, .sf-activity-timeline-card { min-width: 0; padding: 18px; border: 1px solid #d8e2ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .04); }
.sf-activity-side-card { display: grid; align-content: start; gap: 16px; }
.sf-activity-side-card h3, .sf-activity-timeline-card h3 { margin: 0; color: var(--ink); font-size: 20px; }
.sf-activity-card-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.sf-activity-card-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.sf-daily-summary-scroll { overflow-x: auto; }
.sf-daily-summary-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sf-daily-summary-table th, .sf-daily-summary-table td { padding: 10px 8px; border-bottom: 1px solid #dbe4ee; text-align: left; white-space: nowrap; }
.sf-daily-summary-table th { color: var(--muted); font-weight: 900; }
.sf-activity-mix { display: grid; gap: 14px; }
.sf-activity-mix-row { display: grid; gap: 7px; }
.sf-activity-mix-row div { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 800; }
.sf-activity-mix-row strong { color: var(--muted); }
.sf-activity-mix-row::after { content: ""; display: block; grid-row: 2; height: 17px; border-radius: 999px; background: #e7ecf2; }
.sf-activity-mix-row i { grid-row: 2; display: block; height: 17px; border-radius: 999px; z-index: 1; }
.sf-activity-flags { max-width: 390px; padding: 12px 14px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #7c2d12; }
.sf-activity-flags strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.sf-activity-flags span { font-size: 12px; font-weight: 700; }
.sf-timeline { overflow-x: auto; padding-bottom: 8px; }
.sf-timeline-hours, .sf-timeline-day { display: grid; grid-template-columns: 120px minmax(760px, 1fr); gap: 10px; }
.sf-timeline-hours { color: var(--muted); font-size: 12px; font-weight: 800; }
.sf-timeline-hours div { display: grid; grid-template-columns: repeat(14, minmax(52px, 1fr)); }
.sf-timeline-day { min-height: 100px; border-bottom: 1px solid #dbe4ee; }
.sf-timeline-day > strong { align-self: center; color: var(--ink); font-size: 16px; }
.sf-timeline-track { position: relative; min-height: 92px; display: grid; grid-template-columns: repeat(14, minmax(52px, 1fr)); overflow: hidden; }
.sf-timeline-track > i { border-left: 1px solid #e1e8f0; }
.sf-timeline-track > i:last-of-type { border-right: 1px solid #e1e8f0; }
.sf-timeline-item { position: absolute; min-width: 42px; height: 22px; padding: 3px 8px; border: 0; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 800; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; box-shadow: 0 4px 10px rgba(15, 23, 42, .1); }
.is-meeting { background: #2563eb; }
.is-driving { background: #ea580c; }
.is-admin { background: #94a3b8; }
.is-call { background: #059669; }
.is-unknown { background: #7c3aed; }
.salesforce-activity-detail-panel { width: min(980px, calc(100vw - 80px)); max-height: calc(100vh - 80px); }
.salesforce-activity-detail-panel .modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.salesforce-activity-detail-body { padding: 18px 20px 22px; }
.salesforce-activity-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.salesforce-activity-detail-grid article { min-width: 0; padding: 12px; border: 1px solid #dbe4ee; border-radius: 8px; background: #f8fbfd; }
.salesforce-activity-detail-grid article.is-wide { grid-column: 1 / -1; }
.salesforce-activity-detail-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.salesforce-activity-detail-grid strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.bdm-overview-page { display: grid; gap: 16px; }
.bdm-overview-header { align-items: flex-start; margin-bottom: 0; }
.bdm-overview-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: end; }
.bdm-overview-controls label { display: grid; gap: 5px; min-width: 230px; font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; }
.bdm-overview-controls select { height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: #fff; font: inherit; font-weight: 800; color: var(--ink); }
.bdm-overview-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.bdm-overview-section > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 16px; background: #eef5f6; border-bottom: 1px solid var(--line); }
.bdm-overview-section > header h2 { margin: 0 0 3px; font-size: 17px; color: var(--ink); }
.bdm-overview-section > header span { color: var(--muted); font-weight: 800; }
.bdm-overview-section-body { padding: 14px; }
.bdm-overview-table-note { margin: 12px 0 8px; color: var(--muted); font-weight: 900; font-size: 12px; }
.bdm-overview-table-scroll { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.bdm-overview-warning { margin-top: 6px; color: #b45309; font-weight: 800; }
.is-hidden { display: none !important; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 18px; margin-bottom: 22px; }
.admin-layout-wide { display: block; }
.admin-list, .editor-panel, .form-shell { padding: 14px; }
.admin-list { display: grid; gap: 10px; }
.table-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.admin-row { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fbfcfd; text-align: left; color: var(--ink); }
.admin-row strong { display: block; }
.admin-row small, .quiet { color: var(--muted); }
.admin-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 10px; }
.admin-section-head h2 { margin-bottom: 4px; }
.admin-section-head p { margin: 0; }
.admin-pipeline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.admin-pipeline-actions input { min-width: 250px; }
.admin-pipeline-surface { margin-top: 10px; }
.admin-raw-table-scroll { overflow: auto; max-height: calc(100vh - 330px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-raw-table { font-size: 11px; }
.admin-raw-table th { position: sticky; top: 0; z-index: 2; cursor: default; }
.admin-raw-table td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.user-table { min-width: 1560px; }
.user-table th { cursor: default; }
.user-table input, .user-table select { width: 100%; min-width: 130px; }
.user-table tr.is-disabled-user { background: #fff7ed; }
.user-table tr.is-disabled-user input, .user-table tr.is-disabled-user select { color: #7c2d12; }
.user-status { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.user-status.is-active { background: #e9f5f4; color: #245f63; }
.user-status.is-disabled { background: #fee2e2; color: #991b1b; }
.password-tools { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 8px; align-items: center; }
.password-tools input { min-width: 150px; }
.password-tools button { white-space: nowrap; padding: 7px 9px; }
.user-actions { display: grid; gap: 8px; min-width: 120px; }
.user-actions button { white-space: nowrap; padding: 7px 9px; }
.danger-button { background: #b42318; border-color: #b42318; }
.warning-button { background: #b45309; border-color: #b45309; }
.success-button { background: #047857; border-color: #047857; }
.users-admin-shell { display: grid; gap: 18px; }
.users-admin-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.users-admin-head h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.users-admin-head p { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 17px; font-weight: 700; line-height: 1.35; }
.users-add-button { min-width: 150px; padding: 13px 18px; font-size: 15px; }
.users-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.users-kpi-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.users-kpi-card span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 15px; font-weight: 700; }
.users-kpi-card strong { display: block; color: var(--ink); font-size: clamp(28px, 3vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.users-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.users-filter-bar input, .users-filter-bar select { min-height: 42px; }
.users-filter-bar input { flex: 1 1 320px; min-width: min(340px, 100%); }
.users-filter-bar select { flex: 0 1 190px; }
.users-filter-bar button { min-height: 42px; min-width: 125px; }
.users-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 18px; align-items: start; }
.users-list-card, .user-edit-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.users-list-card { min-width: 0; overflow: hidden; }
.users-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 800; }
.users-list-meta strong { color: var(--ink); font-size: 13px; }
.users-table-scroll { display: block; width: 100%; max-width: 100%; max-height: min(58vh, 620px); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; scrollbar-width: auto; scrollbar-color: #7f9db4 #edf2f7; padding-bottom: 10px; }
.users-table-scroll::-webkit-scrollbar { height: 14px; }
.users-table-scroll::-webkit-scrollbar-track { background: #edf2f7; border-radius: 999px; }
.users-table-scroll::-webkit-scrollbar-thumb { background: #7f9db4; border-radius: 999px; border: 3px solid #edf2f7; }
.users-compact-table { width: 100%; min-width: 1240px; border-collapse: collapse; font-size: 14px; }
.users-compact-table th, .users-compact-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.users-compact-table thead th { background: #eef5f6; color: #334155; font-size: 13px; font-weight: 900; cursor: default; }
.users-compact-table tbody tr { cursor: pointer; }
.users-compact-table tbody tr:hover td, .users-compact-table tbody tr.is-selected td { background: #f0fbfa; }
.users-compact-table tr.is-disabled-user td { background: #fff7ed; }
.users-compact-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.users-compact-table td strong { display: block; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.users-person-cell { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 220px; }
.users-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: #1e40af; font-size: 12px; font-weight: 900; }
.users-role-pill, .users-currency-pill, .users-sap-pill { display: inline-flex; min-width: 70px; justify-content: center; padding: 5px 9px; border-radius: 999px; background: #eef5ff; color: #1d4ed8; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.users-currency-pill { min-width: 58px; background: #eef8f8; color: #245f63; }
.users-sap-pill { min-width: 84px; background: #f1f5f9; color: #334155; }
.users-row-actions { display: flex; gap: 8px; align-items: center; }
.users-row-actions button { padding: 6px 10px; white-space: nowrap; }
.users-row-actions button[data-view-user] { background: #fff; color: var(--ink); border-color: var(--line); }
.users-empty { padding: 28px !important; color: var(--muted); text-align: center !important; font-weight: 800; }
.user-edit-panel { position: sticky; top: 18px; display: grid; gap: 14px; padding: 22px 26px; }
.user-edit-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.user-edit-head h2 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.15; }
.user-edit-head p { margin: 6px 0 0; color: var(--muted); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.user-edit-fields { display: grid; gap: 10px; }
.user-edit-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.user-edit-fields input, .user-edit-fields select { width: 100%; min-height: 38px; min-width: 0; font-size: 14px; }
.lookup-field, .user-edit-fields input.lookup-field, .user-edit-fields select.lookup-field, .modal-form input.lookup-field { background: #eef2f6; color: #475569; border-color: #cbd5e1; cursor: not-allowed; }
.lookup-field:disabled { opacity: 1; }
.user-editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.user-editor-actions button { min-height: 42px; padding: 10px; }
.user-editor-actions button[data-reset-password] { background: #2f777b; border-color: #2f777b; }
.user-editor-actions .warning-button, .user-editor-actions .danger-button { grid-column: span 1; }
.user-detail-stack { display: grid; gap: 10px; }
.user-detail-stack span { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #dbe4ee; border-radius: 8px; background: #f8fbfd; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.user-detail-stack strong { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
@media (max-width: 2100px) {
  .users-workspace { grid-template-columns: 1fr; }
  .user-edit-panel { position: static; }
}

.role-permission-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.role-permission-tools strong { color: var(--accent); }
.role-permission-scroll { overflow-x: auto; }
.role-permission-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.role-permission-table th, .role-permission-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: center; }
.role-permission-table th:first-child { text-align: left; }
.role-permission-table thead th { background: #eef5f6; color: var(--ink); font-weight: 900; }
.role-check { display: inline-grid; justify-items: center; gap: 5px; min-width: 72px; color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.role-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.role-check.is-locked { color: var(--muted); }
.editor-panel, .form-shell { display: grid; gap: 12px; }
.editor-panel label, .form-shell label { display: grid; gap: 6px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(23, 32, 42, .48); }
.modal-panel { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 46px rgba(23, 32, 42, .22); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 22px; }
.modal-form { display: grid; gap: 12px; padding: 20px; }
.modal-form label { display: grid; gap: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.icon-button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: #fff; color: var(--ink); border-color: var(--line); }
.secondary-button { background: #fff; color: var(--ink); border-color: var(--line); }
.check-row { display: flex !important; align-items: center; gap: 8px; }
.message { min-height: 20px; color: var(--accent-2); }
.targets-table { min-width: 1120px; }
.targets-table th { cursor: default; }
.target-user-row th { background: #213547; color: #fff; padding: 10px 12px; }
.target-user-row span { display: block; font-size: 13px; font-weight: 700; }
.target-user-row small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .74); font-size: 11px; font-weight: 500; }
.target-type { min-width: 130px; background: #f8fafc; color: var(--ink); }
.target-input { width: 116px; text-align: right; font-variant-numeric: tabular-nums; }
.target-total-row th, .target-total-row td { background: #e9f5f4; font-weight: 700; }
.annual { font-weight: 700; background: #fff8e7; }
.calculated-target-cell { background: #dff3f1 !important; color: #185b60; font-weight: 800; }
.login-landing { position: relative; min-height: 100vh; color: var(--ink); background: linear-gradient(135deg, #a81743 0%, #a81743 50%, #1f4b89 50.15%, #1f4b89 100%); overflow: hidden; }
.login-landing::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 38px); pointer-events: none; }
.login-landing::after { content: ''; position: absolute; right: 0; top: 0; width: 44vw; height: 36vh; background: rgba(23, 60, 114, .72); clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none; }
.login-shell, .login-center { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; gap: 24px; padding: 44px 24px; }
.login-center { position: absolute; inset: 0; width: auto; transform: none; }
.login-topbar { display: none; }
.login-copy { display: none; }
.login-landing-crm { display: grid; grid-template-columns: minmax(430px, 54vw) minmax(420px, 1fr); background: #062957; color: #fff; isolation: isolate; }
.login-landing-crm::before { z-index: 0; background: linear-gradient(120deg, rgba(4, 26, 56, .96) 0%, rgba(7, 45, 93, .94) 45%, rgba(8, 49, 102, .85) 69%, rgba(6, 34, 77, .82) 100%), url(../images/login-data-background.png) left bottom / min(760px, 60vw) auto no-repeat; }
.login-landing-crm::after { z-index: 0; inset: 0; width: auto; height: auto; background: linear-gradient(135deg, transparent 0 60%, rgba(171, 18, 65, .98) 60.2% 100%); clip-path: none; }
.login-brand-panel, .login-access-panel { position: relative; z-index: 1; min-height: 100vh; }
.login-brand-panel { display: grid; grid-template-rows: auto 1fr auto auto; gap: clamp(22px, 3vw, 38px); padding: clamp(30px, 4vw, 56px) clamp(34px, 5vw, 78px); overflow: hidden; }
.login-brand-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(255, 255, 255, .03), transparent 34%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 30px); }
.login-brand-panel::after { content: ''; position: absolute; right: -16%; bottom: -10%; z-index: -1; width: 72%; height: 54%; background: linear-gradient(137deg, transparent 0 33%, rgba(0, 86, 172, .42) 33.3% 100%); }
.login-brand-logo-wrap { width: min(285px, 48vw); padding: 10px 14px; border-radius: 7px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 44px rgba(0, 0, 0, .18); }
.login-brand-logo-wrap img { display: block; width: 100%; height: auto; }
.login-brand-copy-block { align-self: center; max-width: 620px; }
.login-kicker { margin: 0 0 22px; color: #ff315d !important; font-size: 13px !important; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.login-brand-copy-block h1 { margin: 0; color: #fff; font-size: clamp(38px, 4.6vw, 70px); line-height: 1.12; font-weight: 900; letter-spacing: 0; }
.login-brand-copy-block h1::after { content: ''; display: inline-block; width: .15em; height: .15em; margin-left: .06em; border-radius: 50%; background: #ef174e; vertical-align: baseline; }
.login-accent-line { display: block; width: 92px; height: 3px; margin: 26px 0 22px; background: linear-gradient(90deg, #ef174e 0 58%, #1d74c7 58% 100%); }
.login-brand-copy-block p { max-width: 530px; margin: 0; color: rgba(255, 255, 255, .92); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.48; }
.login-anniversary-row { display: grid; grid-template-columns: minmax(152px, 210px) minmax(250px, 1fr); align-items: center; gap: 0; max-width: 660px; }
.login-anniversary { position: relative; z-index: 2; top: auto; left: auto; width: auto; max-width: none; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 46px rgba(0, 0, 0, .24); }
.login-anniversary img { display: block; width: 100%; height: auto; }
.login-proof-ribbon { position: relative; min-height: 90px; display: grid; align-content: center; gap: 5px; margin-left: -6px; padding: 20px 54px 20px 38px; background: linear-gradient(90deg, #a61643, #c30e47); color: #fff; font-size: 18px; box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }
.login-proof-ribbon::after { content: ''; position: absolute; top: 0; right: -34px; width: 35px; height: 100%; background: #062957; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.login-proof-ribbon strong, .login-proof-ribbon span { display: block; }
.login-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; border-top: 1px solid rgba(255, 255, 255, .18); }
.login-service-grid div { display: grid; justify-items: center; gap: 5px; padding: 18px 18px 0; text-align: center; border-left: 1px solid rgba(255, 255, 255, .2); }
.login-service-grid div:first-child { border-left: 0; }
.login-service-grid svg { width: 42px; height: 42px; fill: none; stroke: #58a8f1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-service-grid strong { color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.login-service-grid span { color: rgba(255, 255, 255, .86); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.login-access-panel { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: clamp(30px, 4vw, 58px) clamp(26px, 5vw, 86px); background: linear-gradient(150deg, rgba(255, 255, 255, .98) 0 49%, rgba(8, 55, 114, .98) 49.2% 100%); }
.login-access-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(132deg, transparent 0 18%, rgba(186, 13, 64, .95) 18.2% 43%, transparent 43.2% 100%); }
.login-secure-badge { justify-self: end; display: inline-grid; grid-template-columns: 38px auto; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .74); border-radius: 8px; color: #fff; background: rgba(153, 16, 57, .74); box-shadow: 0 14px 34px rgba(0, 0, 0, .16); }
.login-secure-badge svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.login-secure-badge span { display: grid; gap: 2px; font-size: 13px; line-height: 1.2; }
.login-secure-badge strong { font-size: 13px; font-weight: 900; text-transform: uppercase; }
.login-card { width: min(548px, calc(100vw - 40px)); padding: 48px 58px 34px; border: 1px solid rgba(211, 219, 229, .94); border-radius: 10px; background: rgba(255, 255, 255, .98); box-shadow: 0 24px 66px rgba(13, 35, 65, .22); color: #14263d; }
.login-logo-wrap { display: grid; place-items: center; width: min(270px, 100%); margin: 0 auto 28px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.login-logo-wrap img { display: block; max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.login-panel { padding: 0; }
.login-heading { margin-bottom: 30px; text-align: center; }
.login-heading span { display: block; margin-bottom: 12px; color: #687888; font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.login-heading h1, .login-heading h2 { margin: 0 0 12px; color: #10253d; font-size: clamp(29px, 3vw, 38px); line-height: 1.08; font-weight: 900; overflow-wrap: anywhere; }
.login-heading p { max-width: 370px; margin: 0 auto; color: #65758c; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.login-form, .login-panel form { display: grid; gap: 18px; }
.login-form label, .login-panel label { display: grid; gap: 8px; color: #10253d; font-size: 15px; font-weight: 900; }
.login-field-wrap { position: relative; display: block; min-width: 0; }
.login-field-wrap svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: #496484; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-form input, .login-panel input { width: 100%; min-width: 0; min-height: 54px; padding: 14px 16px; border: 1px solid #c9d5e5; border-radius: 6px; background: #f7fbff; color: var(--ink); font-size: 15px; box-shadow: inset 0 1px 2px rgba(16, 36, 58, .04); }
.login-field-wrap input { padding-left: 52px; }
.login-form input:focus, .login-panel input:focus { outline: 4px solid rgba(31, 75, 137, .18); border-color: #1f4b89; background: #fff; }
.login-form button, .login-panel button { width: 100%; min-height: 58px; padding: 15px 16px; border-radius: 6px; background: linear-gradient(180deg, #0c55b2, #053d91); border-color: #053d91; color: #fff; font-size: 18px; font-weight: 900; box-shadow: 0 12px 24px rgba(9, 65, 148, .22); }
.login-form button:hover, .login-form button:focus, .login-panel button:hover, .login-panel button:focus { background: linear-gradient(180deg, #0e62c9, #04419b); border-color: #04419b; }
.login-password-field { position: relative; display: block; min-width: 0; }
.login-password-field input { padding-right: 84px; }
.login-form .login-password-toggle, .login-panel .login-password-toggle { position: absolute; top: 8px; right: 8px; width: auto; min-width: 58px; min-height: 36px; padding: 7px 11px; border: 0; border-radius: 6px; background: #eef3f7; color: #173c72; font-size: 13px; font-weight: 900; box-shadow: none; }
.login-form .login-password-toggle:hover, .login-form .login-password-toggle:focus, .login-panel .login-password-toggle:hover, .login-panel .login-password-toggle:focus { background: #dbe7f3; color: #0f2d55; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }
.login-options a, .login-footer a { color: #0756ad; text-decoration: underline; text-underline-offset: 2px; }
.login-options a:hover, .login-options a:focus, .login-footer a:hover, .login-footer a:focus { color: #a61643; }
.remember-row { display: flex !important; align-items: center; gap: 8px !important; font-weight: 600 !important; color: #64738a !important; }
.remember-row input { width: 20px; min-height: 20px; height: 20px; border-radius: 4px; }
.login-remember-row { margin-top: 1px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; color: #6b7b8c; font-size: 13px; }
.login-footer span { white-space: nowrap; }
.login-error { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 10px 12px; color: #9a3412; }
.login-success { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 6px; padding: 10px 12px; color: #047857; }
.auth-back-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; color: #687888; font-size: 14px; font-weight: 800; text-decoration: none; }
.login-services { justify-self: center; max-width: calc(100vw - 40px); padding: 10px 18px; border-radius: 0; background: transparent; color: rgba(255, 255, 255, .94); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-align: center; overflow-wrap: anywhere; box-shadow: none; }
.login-services span { color: #ef174e; padding: 0 12px; }
@media (max-width: 1100px) {
  .sales-subgroup-list { grid-template-columns: 1fr; }
  .login-landing-crm { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; gap: 24px; }
  .login-access-panel { min-height: auto; }
  .login-brand-copy-block { max-width: none; }
  .login-anniversary-row, .login-service-grid { max-width: none; }
}
@media (max-width: 860px) {
  .login-landing:not(.login-landing-crm) { display: block; }
  .login-landing:not(.login-landing-crm) .login-center { position: relative; inset: auto; min-height: 100vh; width: 100%; max-height: none; overflow: visible; padding: 22px 20px 26px; }
  .login-brand-panel { padding: 28px 22px; }
  .login-brand-logo-wrap { width: min(235px, 72vw); }
  .login-brand-copy-block h1 { font-size: 36px; }
  .login-anniversary-row { grid-template-columns: 140px minmax(0, 1fr); }
  .login-proof-ribbon { min-height: 74px; padding: 14px 28px 14px 24px; font-size: 14px; }
  .login-service-grid { grid-template-columns: 1fr; border-top: 0; }
  .login-service-grid div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .login-access-panel { padding: 24px 18px 28px; }
  .login-secure-badge { justify-self: center; margin-bottom: 18px; }
  .login-card { width: min(540px, 100%); padding: 36px 30px 24px; }
  .login-logo-wrap { width: min(240px, 100%); margin-bottom: 22px; }
  .login-heading h1, .login-heading h2 { font-size: 28px; }
  .login-heading p { font-size: 14px; }
  .login-panel { padding: 0; }
  .login-services { font-size: 11px; line-height: 1.5; }
}
@media (max-width: 560px) {
  .login-anniversary-row { grid-template-columns: 1fr; gap: 12px; }
  .login-anniversary { width: 160px; justify-self: start; }
  .login-proof-ribbon { margin-left: 0; }
  .login-proof-ribbon::after { display: none; }
  .login-card { padding: 30px 22px 20px; }
  .login-logo-wrap img { max-height: 58px; }
  .login-heading { margin-bottom: 24px; }
  .login-heading h1, .login-heading h2 { font-size: 24px; }
  .login-form input, .login-panel input, .login-form button, .login-panel button { min-height: 50px; font-size: 15px; }
  .login-footer { align-items: flex-start; flex-direction: column; }
  .login-footer span { white-space: normal; }
}
@media (max-height: 760px) and (min-width: 1101px) {
  .login-brand-panel, .login-access-panel { padding-top: 26px; padding-bottom: 24px; }
  .login-card { padding-top: 30px; padding-bottom: 24px; }
  .login-brand-copy-block h1 { font-size: 44px; }
  .login-brand-copy-block p { font-size: 16px; }
  .login-anniversary-row { grid-template-columns: 150px minmax(240px, 1fr); }
  .login-proof-ribbon { min-height: 76px; font-size: 15px; }
  .login-service-grid div { padding-top: 12px; }
  .login-heading { margin-bottom: 20px; }
  .login-form, .login-panel form { gap: 13px; }
}
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-card, .profile-panel { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.profile-card { display: grid; gap: 8px; justify-items: center; text-align: center; }
.profile-picture-wrap { display: grid; place-items: center; width: 132px; height: 132px; overflow: hidden; border: 1px solid #dbe4ee; border-radius: 50%; background: #eef3f8; }
.profile-picture-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2, .profile-panel h2 { margin: 0; color: var(--ink); font-size: 20px; }
.profile-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.profile-card span { padding: 5px 9px; border-radius: 999px; background: #e9f5f4; color: #245f63; font-size: 12px; font-weight: 900; }
.profile-panels { display: grid; gap: 14px; }
.profile-panel form { display: grid; gap: 12px; max-width: 520px; }
.profile-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.profile-success { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; padding: 11px 13px; color: #047857; }
.profile-error { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 11px 13px; color: #9a3412; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .side-nav { position: static; min-height: 0; max-height: none; overflow: visible; }
  .side-nav-menu { max-height: none; overflow: visible; }
  .side-nav a { white-space: nowrap; }
  .nav-user, .release-version { display: none; }
  .content { padding: 18px; }
  .page-header, .admin-layout { display: block; }
  .page-header.has-table-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }
  .sales-page-header.has-table-meta { grid-template-columns: 1fr; align-items: stretch; }
  .sales-page-header.has-table-meta h1, .sales-page-header.has-table-meta .table-meta-banner, .sales-page-header.has-table-meta .toolbar { grid-column: 1; justify-self: stretch; }
  .sales-page-header.has-table-meta .toolbar { flex-wrap: wrap; }
  .sales-page-header.has-table-meta .toolbar > #tableSearch { width: auto; flex: 1 1 180px; }
  .date-range-filter, .sales-date-filter { flex: 1 1 100%; }
  .sales-date-filter { display: flex; flex-wrap: wrap; }
  .sales-date-filter label { flex: 1 1 135px; }
  .home-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-performance-summary { grid-template-columns: 1fr; }
  .home-week { grid-template-columns: 1fr; }
  .home-week-label { grid-row: auto; }
  .home-week-row { grid-template-columns: 1fr; gap: 6px; }
  .home-week-row strong { justify-self: start; }
  .home-dashboard-title, .home-bp-head { display: grid; grid-template-columns: 1fr; }
  .home-month-select { width: 100%; }
  .home-kpi-grid, .home-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-progress-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-detail-grid { grid-template-columns: 1fr; }
  .home-forecast-callout { grid-template-columns: 52px minmax(0, 1fr); padding: 16px; }
  .home-forecast-callout a { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .quote-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-visual-grid { grid-template-columns: 1fr; }
  .quote-age-body { grid-template-columns: 1fr; }
  .quote-account-row { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); }
  .quote-account-row strong { grid-column: 2; justify-self: start; }
  .quote-followup div { grid-template-columns: 1fr; }
  .order-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-visual-grid { grid-template-columns: 1fr; }
  .order-age-body { grid-template-columns: 1fr; }
  .order-summary-grid { grid-template-columns: 1fr; }
  .order-aging-summary div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-customer-row { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); }
  .order-customer-row strong { grid-column: 2; justify-self: start; }
  .job-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-visual-grid, .job-detail-grid { grid-template-columns: 1fr; }
  .job-age-body { grid-template-columns: 1fr; }
  .job-bar-row { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); }
  .job-bar-row em { grid-column: 2; justify-self: start; }
  .invoice-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-visual-grid { grid-template-columns: 1fr; }
  .invoice-age-body { grid-template-columns: 1fr; }
  .invoice-customer-row { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); }
  .invoice-customer-row strong { grid-column: 2; justify-self: start; }
  .invoice-tabs { width: 100%; }
  .invoice-tabs button { flex: 1 1 150px; }
  .invoice-tabs span { width: 100%; padding: 10px 14px; background: #fbfdff; }
  .pipeline-overview-head { display: grid; }
  .pipeline-kpi-strip { grid-template-columns: 1fr; }
  .pipeline-kpi { border-left: 0; border-top: 1px solid #dbe4ee; }
  .pipeline-kpi:first-child { border-top: 0; }
  .sf-activity-title-row, .sf-activity-card-header { display: grid; }
  .sf-activity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-activity-dashboard-grid { grid-template-columns: 1fr; }
  .sf-activity-flags { max-width: none; }
  .item-360-form { grid-template-columns: 1fr; }
  .item-360-results { grid-template-columns: 1fr; }
  .item-360-section header { align-items: flex-start; flex-direction: column; }
  .bp-sales-dashboard { grid-template-columns: 1fr; }
  .bp-trend-bar-column { flex-basis: 76px; min-width: 76px; }
  .profile-layout { grid-template-columns: 1fr; }
  .toolbar { margin-top: 12px; }
  .page-header.has-table-meta .toolbar { margin-top: 0; justify-self: end; }
  .editor-panel { margin-top: 16px; }
  .email-template-layout, .home-credit-context { grid-template-columns: 1fr; }
  .users-admin-head { display: grid; }
  .users-add-button { justify-self: start; }
  .users-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-workspace { grid-template-columns: 1fr; }
  .user-edit-panel { position: static; }
  .login-landing { grid-template-rows: 66px 1fr; background-position: center; }
  .login-topbar { padding: 0 16px; }
  .login-topbar img { width: 150px; }
  .login-center { width: min(480px, calc(100vw - 28px)); max-height: calc(100vh - 128px); overflow: auto; gap: 18px; }
  .login-copy span { font-size: 15px; }
  .login-copy h1 { font-size: 34px; }
.login-panel { padding: 26px; }
  .login-heading h2 { font-size: 28px; }
  .login-heading p { font-size: 14px; }
  .login-panel label { font-size: 15px; }
  .login-panel input, .login-panel button { min-height: 50px; font-size: 16px; }
  .login-options { display: grid; justify-content: stretch; }
  .login-services { font-size: 11px; border-radius: 6px; }
}
@media (max-width: 560px) {
  .home-dashboard { grid-template-columns: 1fr; }
  .home-kpi-grid, .home-progress-legend, .home-finance-grid, .home-bp-grid { grid-template-columns: 1fr; }
  .home-kpi-card { grid-template-columns: 50px minmax(0, 1fr); }
  .home-kpi-icon { width: 50px; height: 50px; font-size: 21px; }
  .home-kpi-card strong { font-size: 19px; white-space: normal; }
  .job-kpi-grid { grid-template-columns: 1fr; }
  .job-kpi { grid-template-columns: 50px minmax(0, 1fr); }
  .job-kpi i { width: 50px; height: 50px; font-size: 21px; }
  .job-kpi strong { font-size: 19px; }
  .home-progress-bar { height: auto; min-height: 42px; }
  .home-progress-bar > div:not(.home-target-marker) { font-size: 12px; }
  .home-cumulative-svg { min-width: 660px; }
  .home-line-panel { overflow-x: auto; }
  .sf-activity-kpis { grid-template-columns: 1fr; }
  .sf-activity-filter-chips span { width: 100%; }
  .sf-timeline-hours, .sf-timeline-day { grid-template-columns: 94px minmax(680px, 1fr); }
  .sf-timeline-day > strong { font-size: 13px; }
  .users-kpi-grid { grid-template-columns: 1fr; }
  .users-filter-bar input, .users-filter-bar select, .users-filter-bar button { flex: 1 1 100%; }
  .user-editor-actions { grid-template-columns: 1fr; }
}
@media (max-height: 700px) {
  .login-landing { grid-template-rows: 60px 1fr; }
  .login-topbar img { width: 150px; }
  .login-center { max-height: calc(100vh - 106px); overflow: auto; gap: 14px; }
  .login-copy h1 { font-size: 34px; }
  .login-copy span { font-size: 15px; margin-bottom: 6px; }
  .login-panel { padding: 24px; }
  .login-heading { margin-bottom: 16px; }
  .login-heading h2 { font-size: 28px; margin: 6px 0; }
  .login-panel form { gap: 14px; }
}

@media (max-width: 900px) {
  .login-landing { min-height: 100vh; display: block; }
  .login-anniversary { position: relative; top: auto; left: auto; width: min(170px, calc(100vw - 40px)); margin: 18px auto 0; padding: 12px; }
  .login-shell, .login-center { position: relative; inset: auto; min-height: calc(100vh - 188px); width: 100%; max-height: none; transform: none; overflow: visible; padding: 22px 20px 26px; }
  .login-card { width: min(500px, 100%); padding: 34px 32px 18px; }
  .login-logo-wrap { width: min(260px, 100%); margin-bottom: 24px; }
  .login-heading h1, .login-heading h2 { font-size: 26px; }
  .login-heading p { font-size: 15px; }
  .login-services { border-radius: 8px; font-size: 11px; line-height: 1.35; }
}

@media (max-width: 560px) {
  .login-card { padding: 28px 22px 16px; }
  .login-logo-wrap { padding: 10px 12px; }
  .login-logo-wrap img { max-height: 52px; }
  .login-heading { margin-bottom: 24px; }
  .login-heading h1, .login-heading h2 { font-size: 23px; }
  .login-form input, .login-panel input, .login-form button, .login-panel button { min-height: 50px; font-size: 15px; }
  .login-footer { align-items: flex-start; flex-direction: column; }
  .login-footer span { white-space: normal; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-anniversary { top: 28px; left: 34px; width: 168px; padding: 12px; }
  .login-shell, .login-center { padding-top: 24px; padding-bottom: 24px; }
  .login-card { padding-top: 30px; }
  .login-logo-wrap { margin-bottom: 20px; }
  .login-heading { margin-bottom: 22px; }
  .login-heading p { font-size: 14px; }
  .login-form, .login-panel form { gap: 14px; }
}
/* Vendor Central login landing overrides. Keep after legacy auth responsive rules. */
.login-landing.login-landing-crm { display: grid; }
@media (max-width: 1100px) {
  .sales-subgroup-list { grid-template-columns: 1fr; }
  .login-landing.login-landing-crm { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .login-landing.login-landing-crm { display: grid; min-height: 100vh; }
  .login-landing-crm .login-anniversary { position: relative; top: auto; left: auto; width: 160px; max-width: 100%; margin: 0; padding: 12px; }
  .login-landing-crm .login-card { width: min(540px, 100%); padding: 36px 30px 24px; }
  .login-landing-crm .login-logo-wrap { width: min(240px, 100%); padding: 0; margin-bottom: 22px; }
  .login-landing-crm .login-logo-wrap img { max-height: 58px; }
  .login-landing-crm .login-services { border-radius: 0; }
}
@media (max-width: 560px) {
  .login-landing-crm .login-card { padding: 30px 22px 20px; }
  .login-landing-crm .login-heading h1 { font-size: 24px; }
}


.birthday-popup-backdrop { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 22px; background: rgba(15, 23, 42, .46); backdrop-filter: blur(4px); }
.birthday-popup { position: relative; width: min(760px, 100%); min-height: 560px; overflow: hidden; padding: 54px 54px 44px; border: 1px solid rgba(37, 111, 120, .22); border-radius: 24px; background: radial-gradient(circle at 18% 18%, rgba(37, 111, 120, .12), transparent 22%), radial-gradient(circle at 88% 78%, rgba(31, 75, 137, .16), transparent 25%), linear-gradient(135deg, #ffffff 0%, #f8fbff 56%, #edf6f8 100%); box-shadow: 0 24px 70px rgba(15, 23, 42, .34); text-align: center; color: #10233f; }
.birthday-close { position: absolute; top: 18px; right: 18px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #d7e2ef; background: #fff; color: #10233f; font-size: 24px; font-weight: 900; box-shadow: 0 6px 16px rgba(15, 23, 42, .15); }
.birthday-kicker { margin: 42px 0 14px; color: #256f78; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.birthday-popup h2 { position: relative; z-index: 2; margin: 0; color: #1f4b89; font-size: clamp(44px, 6vw, 70px); line-height: .98; font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.birthday-popup h2 strong { display: inline-block; margin-top: 8px; color: #256f78; font-weight: 800; }
.birthday-date { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; margin: 24px 0 18px; padding: 8px 18px; border-top: 2px solid #d1a13a; border-bottom: 2px solid #d1a13a; color: #334155; font-size: 15px; font-weight: 900; text-transform: uppercase; }
.birthday-copy { position: relative; z-index: 2; max-width: 500px; margin: 0 auto 24px; color: #334155; font-size: 21px; line-height: 1.45; }
.birthday-from { margin: 0 auto 28px; color: #667085; font-size: 17px; line-height: 1.35; }
.birthday-from strong { color: #1f4b89; font-size: 20px; }
.birthday-thanks { min-width: 210px; min-height: 56px; border-radius: 10px; background: linear-gradient(135deg, #1f4b89, #143a75); border-color: #143a75; font-size: 22px; font-weight: 900; }
.birthday-confetti { position: absolute; inset: 0; pointer-events: none; }
.birthday-confetti span { position: absolute; left: calc(4% + (var(--i) * 4%)); top: calc(5% + (var(--i) * 3.6%)); width: 9px; height: 14px; border-radius: 2px; background: hsl(calc(var(--i) * 31), 58%, 48%); opacity: .72; transform: rotate(calc(var(--i) * 23deg)); }
.birthday-balloons { position: absolute; left: -18px; top: 46px; width: 170px; height: 270px; pointer-events: none; }
.birthday-balloons span { position: absolute; display: block; width: 86px; height: 112px; border-radius: 50% 50% 46% 46%; background: linear-gradient(135deg, #1f4b89, #6ea8e7); box-shadow: inset 10px 8px 18px rgba(255,255,255,.34); }
.birthday-balloons span::after { content: ''; position: absolute; left: 50%; top: 108px; width: 2px; height: 130px; background: rgba(31, 75, 137, .36); transform: translateX(-50%); }
.birthday-balloons span:nth-child(2) { left: 72px; top: 28px; background: linear-gradient(135deg, #55c4c5, #256f78); }
.birthday-balloons span:nth-child(3) { left: 18px; top: 112px; width: 78px; height: 102px; background: radial-gradient(circle at 28% 28%, #fff 0 8%, transparent 9%), linear-gradient(135deg, #f8fbff, #dbeafe); }
.birthday-card-art { position: absolute; right: 34px; bottom: 34px; width: 190px; height: 178px; pointer-events: none; }
.birthday-cake { position: absolute; right: 36px; bottom: 0; width: 126px; height: 82px; border-radius: 18px 18px 12px 12px; background: linear-gradient(180deg, #fff 0 56%, #dbeafe 57% 78%, #1f4b89 79%); border: 1px solid #dbe4ee; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.birthday-cake::before { content: ''; position: absolute; left: 52px; top: -52px; width: 16px; height: 50px; border-radius: 8px; background: repeating-linear-gradient(135deg, #fff 0 6px, #1f4b89 7px 12px); box-shadow: 0 0 0 1px #dbe4ee; }
.birthday-cake::after { content: ''; position: absolute; left: 55px; top: -70px; width: 10px; height: 20px; border-radius: 50% 50% 40% 40%; background: #d1a13a; box-shadow: 0 0 18px rgba(209, 161, 58, .75); }
.birthday-gift { position: absolute; right: 0; bottom: 4px; width: 62px; height: 70px; border-radius: 8px; background: linear-gradient(90deg, transparent 43%, #55c4c5 44% 56%, transparent 57%), linear-gradient(180deg, #1f4b89 0 28%, #143a75 29%); box-shadow: -12px 12px 22px rgba(15, 23, 42, .11); }
.birthday-gift::before { content: ''; position: absolute; left: -4px; top: -20px; width: 70px; height: 28px; border-radius: 999px 999px 8px 8px; background: radial-gradient(circle at 32% 54%, transparent 0 12px, #55c4c5 13px 18px, transparent 19px), radial-gradient(circle at 68% 54%, transparent 0 12px, #55c4c5 13px 18px, transparent 19px); }
@media (max-width: 720px) { .birthday-popup { min-height: auto; padding: 48px 24px 34px; } .birthday-balloons { transform: scale(.72); transform-origin: top left; } .birthday-card-art { position: relative; right: auto; bottom: auto; width: 160px; height: 130px; margin: 10px auto 0; } .birthday-popup h2 { font-size: clamp(38px, 12vw, 54px); } .birthday-copy { font-size: 18px; } }


/* Vendor Central premium landing page refresh. */
.login-landing-vendor { position: relative; display: grid; grid-template-columns: minmax(520px, 58vw) minmax(420px, 1fr); min-height: 100vh; overflow: hidden; isolation: isolate; background: #071f3e; color: #fff; }
.login-landing-vendor::before { content: ''; position: absolute; inset: 0; z-index: -4; background: linear-gradient(116deg, rgba(19, 5, 30, .92) 0 12%, rgba(4, 30, 61, .98) 42%, rgba(6, 34, 72, .96) 100%), repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 1px, transparent 1px 30px); }
.login-landing-vendor::after { content: ''; position: absolute; left: -6vw; top: -10vh; z-index: -3; width: 78vw; height: 124vh; background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 1px, transparent 1px 30px); opacity: .55; pointer-events: none; }
.login-landing-vendor .login-diagonal-band { position: absolute; z-index: -2; left: 42vw; top: -18vh; width: 12vw; min-width: 150px; height: 140vh; background: linear-gradient(180deg, #d0124f, #bd0f46); transform: rotate(29deg); transform-origin: center; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.login-landing-vendor .login-blue-plane { position: absolute; right: -6vw; bottom: -20vh; z-index: -3; width: 48vw; height: 86vh; background: linear-gradient(145deg, #145fa7, #0d4f91); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); box-shadow: -30px -10px 70px rgba(0,0,0,.28); }
.login-landing-vendor .login-brand-panel { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(24px, 4vw, 50px); padding: clamp(34px, 5vw, 72px) clamp(42px, 5vw, 88px); overflow: visible; }
.login-landing-vendor .login-brand-panel::before, .login-landing-vendor .login-brand-panel::after, .login-landing-vendor .login-access-panel::before { display: none; }
.login-landing-vendor .login-brand-logo-wrap { width: min(248px, 46vw); padding: 9px 13px; border: 1px solid #d7e2ef; border-radius: 6px; background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.login-landing-vendor .login-brand-copy-block { align-self: center; max-width: 800px; }
.login-landing-vendor .login-kicker { margin: 0 0 32px; color: #ff2d68 !important; font-size: 18px !important; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.login-landing-vendor .login-brand-copy-block h1 { max-width: 820px; margin: 0; color: #fff; font-size: clamp(52px, 5.3vw, 86px); line-height: .98; font-weight: 900; letter-spacing: 0; text-transform: none; }
.login-landing-vendor .login-brand-copy-block h1::after { display: none; }
.login-landing-vendor .login-accent-line { width: 102px; height: 5px; margin: 32px 0 28px; background: linear-gradient(90deg, #d0124f 0 54%, #4aa3e9 54% 100%); }
.login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { max-width: 650px; color: rgba(255,255,255,.92); font-size: clamp(22px, 2vw, 30px); line-height: 1.28; font-weight: 400; }
.login-landing-vendor .login-anniversary-row { grid-template-columns: 156px minmax(260px, 410px); align-items: center; max-width: 590px; }
.login-landing-vendor .login-anniversary { width: 156px; padding: 11px; border-radius: 7px; background: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.login-landing-vendor .login-proof-ribbon { min-height: 80px; margin-left: -8px; padding: 17px 30px 17px 32px; border-radius: 0; background: #d0124f; box-shadow: 0 14px 28px rgba(0,0,0,.24); font-size: 19px; }
.login-landing-vendor .login-proof-ribbon::after { display: none; }
.login-landing-vendor .login-proof-ribbon span { font-weight: 500; }
.login-landing-vendor .login-access-panel { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; align-items: center; justify-items: center; padding: clamp(40px, 6vw, 76px) clamp(34px, 5vw, 78px); background: transparent; }
.login-landing-vendor .login-secure-badge { justify-self: end; align-self: start; display: inline-grid; grid-template-columns: 38px auto; gap: 10px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: #b9144b; color: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.login-landing-vendor .login-secure-badge svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-landing-vendor .login-secure-badge span { display: grid; gap: 2px; font-size: 13px; line-height: 1.15; }
.login-landing-vendor .login-secure-badge strong { font-size: 15px; font-weight: 900; text-transform: uppercase; }
.login-landing-vendor .login-card { position: relative; width: min(438px, 100%); margin-top: 22px; padding: 44px 56px 22px; border: 1px solid #cad7e8; border-radius: 18px; background: rgba(255,255,255,.985); color: #0b2340; box-shadow: 0 28px 78px rgba(0,0,0,.34); }
.login-landing-vendor .login-card::before { content: ''; position: absolute; left: 50%; top: 0; width: min(230px, 62%); height: 74px; border-radius: 0 0 8px 8px; background: #fff; transform: translate(-50%, -1px); box-shadow: 0 16px 32px rgba(10,35,70,.06); }
.login-landing-vendor .login-logo-wrap { position: relative; z-index: 1; width: min(190px, 78%); margin: -8px auto 46px; padding: 0; background: transparent; }
.login-landing-vendor .login-logo-wrap img { max-height: 48px; }
.login-landing-vendor .login-heading { margin: 0 0 18px; text-align: center; }
.login-landing-vendor .login-heading h1 { margin-bottom: 8px; color: #0b2340; font-size: 36px; line-height: 1.04; font-weight: 900; letter-spacing: 0; }
.login-landing-vendor .login-heading p { max-width: 340px; color: #5d6f88; font-size: 16px; line-height: 1.35; }
.login-landing-vendor .login-form { gap: 14px; }
.login-landing-vendor .login-form label { gap: 7px; color: #0b2340; font-size: 22px; font-weight: 900; }
.login-landing-vendor .login-field-wrap svg { left: 16px; width: 23px; height: 23px; stroke: #667f9c; }
.login-landing-vendor .login-form input { min-height: 61px; padding: 14px 16px; border: 1px solid #b4cae5; border-radius: 8px; background: #eef5fc; color: #0b2340; font-size: 20px; font-weight: 800; }
.login-landing-vendor .login-field-wrap input { padding-left: 56px; }
.login-landing-vendor .login-form input::placeholder { color: #6f8196; opacity: 1; }
.login-landing-vendor .login-form input:focus { outline: 4px solid rgba(21,95,167,.18); border-color: #155fa7; background: #fff; }
.login-landing-vendor .login-form-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-top: 4px; }
.login-landing-vendor .remember-row { display: flex !important; gap: 9px !important; color: #3d4d63 !important; font-size: 17px !important; font-weight: 600 !important; }
.login-landing-vendor .remember-row input { width: 20px; height: 20px; min-height: 20px; padding: 0; background: #fff; }
.login-landing-vendor .login-form-row a, .login-landing-vendor .login-footer a { color: #005bbb; font-size: 16px; font-weight: 800; text-decoration: none; }
.login-landing-vendor .login-form-row a:hover, .login-landing-vendor .login-form-row a:focus, .login-landing-vendor .login-footer a:hover, .login-landing-vendor .login-footer a:focus { color: #b9144b; text-decoration: underline; text-underline-offset: 3px; }
.login-landing-vendor .login-form button { min-height: 66px; margin-top: 18px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #1668bf, #075baa); color: #fff; font-size: 23px; font-weight: 900; box-shadow: none; }
.login-landing-vendor .login-form button:hover, .login-landing-vendor .login-form button:focus { background: linear-gradient(180deg, #1d73ce, #0962b8); }
.login-landing-vendor .login-footer { margin-top: -34px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px; color: #6c7d91; font-size: 14px; pointer-events: none; }
.login-landing-vendor .login-footer a, .login-landing-vendor .login-footer span { pointer-events: auto; }
.login-landing-vendor .login-footer span { white-space: nowrap; }
.login-landing-vendor .login-error { margin-top: 2px; border-radius: 8px; }
.login-landing-vendor .login-service-grid, .login-landing-vendor .login-services { display: none; }
@media (max-width: 1220px) {
  .login-landing-vendor { grid-template-columns: minmax(430px, 54vw) minmax(390px, 1fr); }
  .login-landing-vendor .login-brand-copy-block h1 { font-size: clamp(46px, 5vw, 70px); }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 22px; }
  .login-landing-vendor .login-card { padding-inline: 42px; }
}
@media (max-width: 980px) {
  .login-landing-vendor { grid-template-columns: 1fr; }
  .login-landing-vendor .login-diagonal-band { left: auto; right: 10vw; opacity: .72; }
  .login-landing-vendor .login-blue-plane { width: 70vw; height: 42vh; }
  .login-landing-vendor .login-brand-panel { min-height: auto; padding: 28px 28px 18px; gap: 24px; }
  .login-landing-vendor .login-brand-copy-block h1 { font-size: clamp(40px, 8vw, 62px); }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 20px; }
  .login-landing-vendor .login-anniversary-row { grid-template-columns: 132px minmax(0, 1fr); }
  .login-landing-vendor .login-anniversary { width: 132px; }
  .login-landing-vendor .login-proof-ribbon { min-height: 68px; font-size: 16px; }
  .login-landing-vendor .login-access-panel { min-height: auto; padding: 20px 24px 34px; }
  .login-landing-vendor .login-secure-badge { justify-self: center; }
  .login-landing-vendor .login-card { width: min(520px, 100%); margin-top: 24px; }
}
@media (max-width: 560px) {
  .login-landing-vendor::after { opacity: .38; }
  .login-landing-vendor .login-diagonal-band { right: -18vw; min-width: 120px; }
  .login-landing-vendor .login-brand-panel { padding: 22px 20px 12px; }
  .login-landing-vendor .login-brand-logo-wrap { width: min(230px, 72vw); }
  .login-landing-vendor .login-kicker { margin-bottom: 18px; font-size: 14px !important; }
  .login-landing-vendor .login-brand-copy-block h1 { font-size: clamp(34px, 12vw, 48px); }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 17px; }
  .login-landing-vendor .login-anniversary-row { grid-template-columns: 1fr; gap: 12px; }
  .login-landing-vendor .login-anniversary { width: 126px; }
  .login-landing-vendor .login-proof-ribbon { margin-left: 0; padding: 14px 18px; }
  .login-landing-vendor .login-access-panel { padding: 16px 16px 26px; }
  .login-landing-vendor .login-secure-badge { width: 100%; grid-template-columns: 34px minmax(0, 1fr); }
  .login-landing-vendor .login-card { padding: 34px 22px 20px; border-radius: 14px; }
  .login-landing-vendor .login-logo-wrap { margin-bottom: 34px; }
  .login-landing-vendor .login-heading h1 { font-size: 28px; }
  .login-landing-vendor .login-heading p { font-size: 14px; }
  .login-landing-vendor .login-form label { font-size: 17px; }
  .login-landing-vendor .login-form input { min-height: 54px; font-size: 16px; }
  .login-landing-vendor .login-form-row { grid-template-columns: 1fr; gap: 10px; }
  .login-landing-vendor .login-form button { min-height: 58px; font-size: 20px; }
  .login-landing-vendor .login-footer { margin-top: 12px; }
}
@media (max-height: 760px) and (min-width: 981px) {
  .login-landing-vendor .login-brand-panel, .login-landing-vendor .login-access-panel { padding-top: 28px; padding-bottom: 24px; }
  .login-landing-vendor .login-brand-copy-block h1 { font-size: 52px; }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 19px; }
  .login-landing-vendor .login-anniversary { width: 126px; }
  .login-landing-vendor .login-anniversary-row { grid-template-columns: 126px minmax(240px, 360px); }
  .login-landing-vendor .login-proof-ribbon { min-height: 64px; font-size: 15px; }
  .login-landing-vendor .login-card { padding-top: 34px; padding-bottom: 18px; }
  .login-landing-vendor .login-logo-wrap { margin-bottom: 30px; }
  .login-landing-vendor .login-heading h1 { font-size: 30px; }
  .login-landing-vendor .login-form input { min-height: 52px; font-size: 17px; }
  .login-landing-vendor .login-form button { min-height: 56px; margin-top: 10px; }
}

/* Vendor Central login footer alignment and viewport fit refinement. */
.login-landing-vendor .login-card { box-sizing: border-box; }
.login-landing-vendor .login-footer {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  color: #6c7d91;
  font-size: 14px;
  line-height: 1.25;
  pointer-events: auto;
}
.login-landing-vendor .login-footer a,
.login-landing-vendor .login-footer span { min-width: 0; pointer-events: auto; }
.login-landing-vendor .login-footer span { justify-self: end; white-space: nowrap; text-align: right; }
.login-landing-vendor .login-form button { margin-top: 12px; }
@media (min-width: 981px) {
  .login-landing-vendor .login-access-panel { align-content: stretch; }
  .login-landing-vendor .login-card { align-self: center; }
}
@media (max-width: 560px) {
  .login-landing-vendor .login-footer { grid-template-columns: 1fr; justify-items: start; margin-top: 14px; }
  .login-landing-vendor .login-footer span { justify-self: start; text-align: left; white-space: normal; }
}
@media (max-height: 820px) and (min-width: 981px) {
  .login-landing-vendor .login-brand-panel,
  .login-landing-vendor .login-access-panel { padding-top: 24px; padding-bottom: 20px; }
  .login-landing-vendor .login-secure-badge { padding: 9px 14px; }
  .login-landing-vendor .login-card { margin-top: 10px; padding: 30px 42px 20px; }
  .login-landing-vendor .login-logo-wrap { margin-bottom: 24px; }
  .login-landing-vendor .login-heading { margin-bottom: 14px; }
  .login-landing-vendor .login-heading h1 { font-size: 30px; }
  .login-landing-vendor .login-heading p { font-size: 14px; line-height: 1.3; }
  .login-landing-vendor .login-form { gap: 11px; }
  .login-landing-vendor .login-form label { font-size: 18px; }
  .login-landing-vendor .login-form input { min-height: 50px; font-size: 16px; }
  .login-landing-vendor .login-form button { min-height: 54px; margin-top: 8px; font-size: 20px; }
  .login-landing-vendor .login-footer { margin-top: 10px; }
}
@media (max-height: 680px) and (min-width: 981px) {
  .login-landing-vendor .login-brand-copy-block h1 { font-size: 44px; }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 17px; }
  .login-landing-vendor .login-kicker { margin-bottom: 18px; font-size: 15px !important; }
  .login-landing-vendor .login-accent-line { margin: 18px 0 16px; }
  .login-landing-vendor .login-anniversary { width: 110px; }
  .login-landing-vendor .login-anniversary-row { grid-template-columns: 110px minmax(220px, 330px); }
  .login-landing-vendor .login-proof-ribbon { min-height: 56px; padding: 12px 18px; font-size: 14px; }
  .login-landing-vendor .login-card { padding-top: 24px; padding-bottom: 16px; }
  .login-landing-vendor .login-logo-wrap { margin-bottom: 18px; }
}

/* Vendor Central Option 2: Light Vendor Central portal. Keeps the 36-year icon visible. */
.login-landing-vendor {
  grid-template-columns: minmax(520px, 56vw) minmax(430px, 1fr);
  background: linear-gradient(118deg, #ffffff 0 47%, #eef6ff 47.2% 100%);
  color: #0b2340;
}
.login-landing-vendor::before {
  background:
    linear-gradient(118deg, rgba(255,255,255,.98) 0 42%, rgba(245,249,254,.96) 42.2% 100%),
    repeating-linear-gradient(45deg, rgba(15,48,91,.08) 0 1px, transparent 1px 30px);
}
.login-landing-vendor::after {
  left: -10vw;
  top: -8vh;
  width: 70vw;
  height: 118vh;
  background: repeating-linear-gradient(45deg, rgba(12,61,112,.11) 0 1px, transparent 1px 28px);
  opacity: .55;
}
.login-landing-vendor .login-diagonal-band {
  left: 48vw;
  top: -22vh;
  width: 8vw;
  min-width: 105px;
  height: 142vh;
  background: linear-gradient(180deg, rgba(208,18,79,.98), rgba(185,20,75,.95));
  opacity: .96;
  transform: rotate(28deg);
  box-shadow: 0 16px 44px rgba(185,20,75,.16);
}
.login-landing-vendor .login-blue-plane {
  right: -4vw;
  bottom: -16vh;
  width: 47vw;
  height: 92vh;
  background: linear-gradient(145deg, #e7f2ff, #cfe4fb);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: -18px 0 48px rgba(12,61,112,.12);
}
.login-landing-vendor .login-brand-panel { color: #0b2340; }
.login-landing-vendor .login-brand-logo-wrap,
.login-landing-vendor .login-anniversary,
.login-landing-vendor .login-proof-ribbon,
.login-landing-vendor .login-secure-badge,
.login-landing-vendor .login-card { background: rgba(255,255,255,.98); border-color: #d9e5f2; box-shadow: 0 16px 38px rgba(15,48,91,.13); }
.login-landing-vendor .login-anniversary-row { display: grid; visibility: visible; opacity: 1; }
.login-landing-vendor .login-anniversary { display: block; }
.login-landing-vendor .login-anniversary img { display: block; width: 100%; height: auto; }
.login-landing-vendor .login-kicker,
.login-landing-vendor .login-proof-ribbon strong,
.login-landing-vendor .login-secure-badge strong { color: #d0124f !important; }
.login-landing-vendor .login-brand-copy-block h1,
.login-landing-vendor .login-heading h1,
.login-landing-vendor .login-form label { color: #0b2340; text-shadow: none; }
.login-landing-vendor .login-brand-copy-block p:not(.login-kicker),
.login-landing-vendor .login-proof-ribbon span,
.login-landing-vendor .login-heading p { color: #435873; }
.login-landing-vendor .login-accent-line { background: linear-gradient(90deg, #d0124f 0 54%, #1668bf 54% 100%); }
.login-landing-vendor .login-secure-badge { color: #0b2340; }
.login-landing-vendor .login-secure-badge svg { color: #d0124f; }
.login-landing-vendor .login-card { width: min(456px, 100%); border-radius: 16px; }
.login-landing-vendor .login-form input { border-color: #b8cde5; background: #f4f8fd; color: #0b2340; }
.login-landing-vendor .login-form input:focus { border-color: #1668bf; background: #fff; }
.login-landing-vendor .login-form button { background: linear-gradient(180deg, #176dc8, #075baa); box-shadow: 0 14px 30px rgba(7,91,170,.18); }
.login-landing-vendor .login-footer { color: #62758d; }
@media (max-width: 1220px) {
  .login-landing-vendor { grid-template-columns: minmax(430px, 53vw) minmax(390px, 1fr); }
  .login-landing-vendor .login-diagonal-band { left: 47vw; }
}
@media (max-width: 980px) {
  .login-landing-vendor { grid-template-columns: 1fr; background: #fff; }
  .login-landing-vendor::before { background: linear-gradient(180deg, #fff 0 58%, #eef6ff 58.2% 100%); }
  .login-landing-vendor::after { width: 110vw; opacity: .35; }
  .login-landing-vendor .login-diagonal-band { right: -10vw; left: auto; opacity: .32; }
  .login-landing-vendor .login-blue-plane { width: 88vw; height: 48vh; opacity: .82; }
  .login-landing-vendor .login-brand-panel { padding-bottom: 12px; }
  .login-landing-vendor .login-access-panel { padding-top: 16px; }
}
@media (max-width: 560px) {
  .login-landing-vendor .login-brand-panel { padding: 22px 18px 10px; }
  .login-landing-vendor .login-brand-copy-block h1 { font-size: clamp(32px, 11vw, 46px); }
  .login-landing-vendor .login-brand-copy-block p:not(.login-kicker) { font-size: 16px; }
  .login-landing-vendor .login-card { padding: 34px 20px 20px; }
}

.brand-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.brand-logo-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.brand-logo-preview { display: grid; place-items: center; min-height: 118px; padding: 12px; border: 1px solid #e3ebf4; border-radius: 8px; background: #f8fbfe; overflow: hidden; }
.brand-logo-preview img { display: block; max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.brand-logo-preview.is-empty span { display: block; width: min(170px, 100%); height: 54px; border: 1px dashed #c7d7e8; border-radius: 6px; background: #fff; }
.brand-logo-card form { display: grid; gap: 10px; }
.brand-logo-card label { display: grid; gap: 7px; color: #07132b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.brand-logo-card input[type="file"] { padding: 9px; border: 1px solid #d5dee9; border-radius: 8px; background: #fff; color: #07132b; font-weight: 700; text-transform: none; }
.brand-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Forecast dashboard */
.forecast-page { display: grid; gap: 18px; color: #06152b; }
.forecast-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: stretch; border: 1px solid #cbd7e5; background: #fff; box-shadow: 0 14px 32px rgba(15, 23, 42, .06); }
.forecast-hero h1 { margin: 0; padding: 16px 20px 12px; background: #101a2d; color: #fff; font-size: clamp(28px, 3.1vw, 52px); line-height: 1; letter-spacing: 0; text-transform: uppercase; text-align: center; }
.forecast-hero img { align-self: center; justify-self: center; max-width: 220px; width: 82%; height: auto; object-fit: contain; }
.forecast-meta-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 0; border-top: 1px solid #d5dfeb; background: #f8fafc; }
.forecast-meta-grid span { display: flex; justify-content: center; gap: 14px; padding: 9px 12px; font-size: 16px; color: #243a57; }
.forecast-meta-grid strong { color: #4a5d75; }
.forecast-kpi-grid { display: grid; gap: 14px; }
.forecast-kpi-grid-top { grid-template-columns: 1.35fr .58fr .58fr .74fr .74fr; }
.forecast-kpi-grid-secondary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.forecast-kpi { min-width: 0; border: 1px solid #cbd7e5; background: #fff; text-align: center; }
.forecast-kpi h2 { margin: 0; padding: 5px 8px; background: #e8edf3; color: #06152b; font-size: clamp(12px, .95vw, 16px); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.forecast-kpi strong { display: block; max-width: 100%; padding: 16px 8px 11px; font-size: clamp(20px, 1.55vw, 29px); line-height: 1.05; overflow-wrap: anywhere; word-break: normal; }
.forecast-kpi span { display: block; min-height: 24px; padding: 5px 8px; border-top: 1px solid #d7e0eb; background: #f8fafc; color: #243a57; font-size: clamp(11px, .82vw, 13px); overflow-wrap: anywhere; }
.forecast-kpi-large { background: #fff6c9; }
.forecast-kpi-large h2 { background: #101a2d; color: #fff; }
.forecast-kpi-large strong { color: #df2029; font-size: clamp(34px, 2.65vw, 50px); }
.forecast-kpi-blue h2, .forecast-panel h2 { background: #0d78ad; color: #fff; }
.forecast-kpi-cyan h2 { background: #18a7dc; }
.forecast-kpi-orange h2 { background: #f4a20b; }
.forecast-kpi-green h2 { background: #23c963; }
.forecast-kpi-slate h2 { background: #46566a; color: #fff; }
.forecast-kpi-soft h2 { background: #dbe2ec; }
.forecast-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.forecast-panel { position: relative; min-width: 0; border: 1px solid #cbd7e5; background: #fff; overflow: hidden; }
.forecast-panel h2 { margin: 0; padding: 6px 12px; background: #101a2d; color: #fff; font-size: 20px; line-height: 1.1; text-transform: uppercase; text-align: center; }
.forecast-panel-wide { grid-column: 1; }
.forecast-panel-full { grid-column: 1 / -1; }
.forecast-side-stack { display: grid; gap: 18px; }
.forecast-table { display: grid; font-size: clamp(14px, .98vw, 17px); }
.forecast-table-head, .forecast-table-row, .forecast-snapshot > div, .forecast-compact-table > div { display: grid; align-items: center; border-bottom: 1px solid #d7e0eb; }
.forecast-table-head { background: #4a5a70; color: #fff; font-weight: 900; text-align: center; }
.forecast-table-head span, .forecast-table-row > *, .forecast-snapshot > div > *, .forecast-compact-table > div > * { padding: 3px 7px; min-width: 0; overflow-wrap: anywhere; }
.forecast-bars .forecast-table-head, .forecast-bars .forecast-table-row { grid-template-columns: 260px 140px 160px minmax(220px, 1fr); }
.forecast-table-row strong { font-weight: 900; }
.forecast-table-row span:nth-child(2), .forecast-table-row span:nth-child(3) { text-align: right; }
.forecast-bar-track { height: 22px; padding: 0 !important; background: #fff; }
.forecast-bar-track i { display: block; height: 100%; background: #0d78ad; }
.forecast-formula { margin: 12px 0 0; padding: 8px 14px; background: #fff6c9; border-top: 1px solid #d7e0eb; font-size: 18px; font-weight: 900; text-align: center; }
.forecast-snapshot > div { grid-template-columns: 1fr 160px 1.05fr; }
.forecast-snapshot > div:not(.forecast-table-head) span:nth-child(2), .forecast-compact-table > div span:nth-child(2) { text-align: right; }
.forecast-watermark-logo { display: block; width: min(270px, 58%); margin: 18px auto 22px; opacity: .95; }
.forecast-compact-table > div { grid-template-columns: 1fr 160px 1.15fr; }
.forecast-assumptions h2, .forecast-promo h2 { background: #f4a20b; color: #06152b; }
.forecast-promo h2 { background: #23c963; }
.forecast-promo .forecast-bar-track i { background: #23c963; }
@media (max-width: 1380px) { .forecast-kpi-grid-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .forecast-kpi-large { grid-column: 1 / -1; } .forecast-kpi-grid-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1040px) { .forecast-hero { grid-template-columns: 1fr; } .forecast-hero img { padding: 14px 0; } .forecast-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .forecast-grid { grid-template-columns: 1fr; } .forecast-panel-wide, .forecast-panel-full { grid-column: auto; } }
@media (max-width: 760px) { .forecast-kpi-grid-top, .forecast-kpi-grid-secondary { grid-template-columns: 1fr; } .forecast-meta-grid { grid-template-columns: 1fr; } .forecast-meta-grid span { justify-content: space-between; } .forecast-bars .forecast-table-head, .forecast-bars .forecast-table-row { grid-template-columns: minmax(150px, 1fr) 120px 88px minmax(130px, .8fr); } .forecast-table { overflow-x: auto; } }




.forecast-settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.forecast-settings-form { margin-top: 0; }
.forecast-settings-grid, .forecast-notes-grid { display: grid; gap: 12px; }
.forecast-settings-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.forecast-notes-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.forecast-settings-form h3 { margin: 6px 0 0; font-size: 16px; color: var(--ink); }













