:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d7deea;
  --brand: #0b2f8a;
  --brand-dark: #071b3a;
  --accent: #1d4ed8;
  --royal-soft: #eaf0ff;
  --royal-line: #b8c7f5;
  --surface: #f8fafc;
  --success: #178455;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc, #eef2f7 58%, #e8eef8);
  font-family: "Segoe UI", Arial, sans-serif;
}

.auth-hidden,
.access-hidden,
.hidden {
  display: none !important;
}

.login-screen {
  align-items: center;
  background: linear-gradient(135deg, #071b3a 0%, #0b2f8a 54%, #eef2f7 54%, #f8fafc 100%);
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 28px 68px rgba(7, 27, 58, 0.26);
  display: grid;
  gap: 16px;
  max-width: 430px;
  padding: 34px;
  width: min(100%, 430px);
}

.login-card img {
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.login-card h1 {
  margin: 0;
}

.user-chip {
  border: 1px solid var(--royal-line);
  border-radius: 999px;
  background: var(--royal-soft);
  color: var(--brand-dark);
  font-weight: 900;
  padding: 10px 14px;
  white-space: nowrap;
}

button,
input,
select {
  font: inherit;
}

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

.app-shell.vendor-shell {
  display: block;
}

.sidebar {
  background: linear-gradient(180deg, #050b18, #071b3a 54%, #0b2f8a);
  color: #fff;
  padding: 28px 22px;
  box-shadow: 14px 0 36px rgba(7, 27, 58, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand span,
.muted {
  color: var(--muted);
}

.brand span {
  display: block;
  margin-top: 3px;
  color: #b8c5d4;
  font-size: 14px;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item[data-view="regions"],
.hero-actions [data-view="regions"] {
  display: none;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf2ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.content {
  padding: 30px;
}

.vendor-shell .content {
  min-height: 100vh;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(7, 27, 58, 0.98), rgba(11, 47, 138, 0.92) 38%, #f3f5f9 38%, #f8fafc);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.topbar-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.topbar-logo {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(11, 47, 138, 0.12);
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.home-return-button {
  min-height: 42px;
  border: 1px solid rgba(9, 95, 115, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.home-return-button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.home-return-button.hidden {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 34px;
}

h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

h3 {
  margin-bottom: 8px;
}

.company-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 560px;
}

.company-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  color: #42526b;
  font-size: 13px;
  font-weight: 700;
}

.view {
  display: none;
}

.view.visible {
  display: block;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 240px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
  padding: 34px;
}

.hero h2 {
  max-width: 650px;
  font-size: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary-action {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
  white-space: nowrap;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.secondary-action {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

.secondary-action:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat-card,
.import-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.home-vendor-pages {
  margin-top: 24px;
}

.home-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.home-vendor-card {
  border: 1px solid rgba(9, 95, 115, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 240, 255, 0.9)),
    #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
}

.home-vendor-card:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 42px rgba(9, 95, 115, 0.16);
  transform: translateY(-1px);
}

.home-vendor-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-vendor-card strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.home-vendor-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.section-header {
  margin-bottom: 18px;
}

.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-company {
  width: min(280px, 100%);
}

.dashboard-filter-stack {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dashboard-chart-menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-chart-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  text-align: left;
}

.dashboard-chart-button span {
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 950;
}

.dashboard-chart-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-chart-button.active,
.dashboard-chart-button:hover {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(9, 95, 115, 0.12), rgba(255, 255, 255, 0.96));
}

.dashboard-chart-panel {
  display: none;
}

.dashboard-chart-panel.visible {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.dashboard-annual-grid {
  display: grid;
  gap: 18px;
}

.dashboard-annual-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 252, 253, 0.88);
  padding: 18px;
}

.dashboard-bars {
  --chart-height: 460px;
  align-items: start;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 20px;
  min-height: calc(var(--chart-height) + 118px);
  overflow-x: auto;
  padding: 10px 0 18px;
}

.dashboard-bar-ruler {
  position: relative;
  height: var(--chart-height);
  border-right: 1px solid #c7d9e3;
  align-self: start;
}

.dashboard-bar-ruler span {
  position: absolute;
  right: 10px;
  bottom: var(--mark);
  transform: translateY(50%);
  color: #50627f;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-bars-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(132px, 1fr));
  gap: 24px;
  min-width: max(100%, calc(var(--bar-count) * 156px));
  height: var(--chart-height);
  align-items: end;
  overflow: visible;
  border-bottom: 1px solid #c7d9e3;
  background-image: linear-gradient(to top, rgba(80, 98, 127, 0.12) 1px, transparent 1px);
  background-size: 100% 40px;
}

.dashboard-bars.monthly {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.dashboard-bars.monthly .dashboard-bars-plot {
  grid-template-columns: repeat(var(--bar-count), minmax(58px, 1fr));
  gap: 8px;
  min-width: 100%;
}

.dashboard-bars.monthly .dashboard-bar-fill {
  width: min(54px, 86%);
}

.dashboard-bars.monthly .dashboard-bar-fill span {
  font-size: 13px;
}

.dashboard-bars.monthly .dashboard-bar-column strong,
.dashboard-bars.monthly .dashboard-bar-column small {
  font-size: 13px;
  max-width: 64px;
}

.dashboard-bars.monthly .dashboard-bar-column strong {
  top: calc(100% + 8px);
}

.dashboard-bars.monthly .dashboard-bar-column small {
  top: calc(100% + 32px);
}

.dashboard-bar-column {
  position: relative;
  display: block;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.dashboard-bar-fill {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(76px, 78%);
  height: var(--bar-height);
  min-height: 2px;
  border-radius: 7px 7px 0 0;
  background: #08758b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.dashboard-bar-fill.color-1 { background: #0f8f4d; }
.dashboard-bar-fill.color-2 { background: #173e8f; }
.dashboard-bar-fill.color-3 { background: #d8872c; }
.dashboard-bar-fill.color-4 { background: #b51d2a; }
.dashboard-bar-fill.color-5 { background: #5a6f82; }
.dashboard-bar-fill.color-6 { background: #5c469c; }

.dashboard-bar-fill span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.dashboard-bar-fill.tiny-bar span,
.bar-shape.tiny-bar .bar-value,
.annual-bar.tiny-bar span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
  color: #21324d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(199, 217, 227, 0.9);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: none;
  white-space: nowrap;
  z-index: 3;
}

.dashboard-bar-column strong,
.dashboard-bar-column small {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #30425f;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
  max-width: 128px;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
}

.dashboard-bar-column strong {
  top: calc(100% + 10px);
}

.dashboard-bar-column small {
  color: #65748c;
  font-size: 14px;
  font-weight: 650;
  top: calc(100% + 50px);
}

.dashboard-bars.family .dashboard-bar-column strong {
  min-height: 38px;
}

.dashboard-monthly-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.chart-panel,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.chart-panel {
  padding: 24px;
}

.active-chart-panel {
  margin-top: 18px;
}

.chart-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.chart-subtitle {
  margin-bottom: 0;
}

.chart-total {
  min-width: 104px;
  border-radius: 8px;
  background: #102434;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  padding: 12px 16px;
  text-align: center;
}

.uf-chart {
  overflow: auto;
}

.uf-row {
  display: grid;
  grid-template-columns: 46px minmax(180px, 1fr) repeat(var(--year-count), minmax(112px, 1fr)) 132px;
  align-items: center;
  min-width: calc(370px + (var(--year-count) * 122px));
  border-bottom: 1px solid #e8eef5;
}

.uf-row.header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom-color: var(--line);
  background: #f7fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.uf-label {
  color: #344054;
  font-weight: 900;
  padding: 11px 10px;
}

.uf-client-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.uf-track {
  height: 20px;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

.uf-fill {
  width: var(--bar-width);
  min-width: var(--bar-min);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1d4ed8 64%, #111827);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.uf-value {
  color: #1f2a3d;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}

.uf-money,
.uf-total {
  color: #1f2a3d;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  padding: 11px 10px;
  text-align: right;
  white-space: nowrap;
}

.uf-total {
  color: var(--brand-dark);
  font-weight: 900;
}

.insight-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.insight-card span,
.insight-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.insight-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 30px;
}

.insight-card.accent {
  border-color: rgba(11, 47, 138, 0.24);
  background: rgba(11, 47, 138, 0.08);
}

.insight-note {
  line-height: 1.45;
  padding: 4px 2px;
}

.activity-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.activity-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.activity-legend i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.legend-active {
  background: #008f39;
}

.legend-inactive {
  background: #ff2800;
}

.activity-chart {
  display: grid;
  gap: 12px;
}

.activity-row {
  display: grid;
  grid-template-columns: 42px 70px repeat(var(--year-count), minmax(156px, 1fr));
  gap: 10px;
  align-items: center;
}

.activity-row.header {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-uf {
  color: #344054;
  font-weight: 900;
}

.activity-total {
  border-radius: 8px;
  background: #f2f6fa;
  color: #1f2a3d;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  padding: 8px 10px;
  text-align: right;
}

.activity-year {
  display: grid;
}

.activity-stack {
  display: flex;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.vendor-region-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.vendor-region-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  padding: 16px;
}

.vendor-region-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.vendor-region-summary strong {
  color: var(--ink);
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.vendor-region-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 850;
  padding: 0 13px;
}

.segmented-control button.active,
.segmented-control button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.vendor-region-sections {
  display: grid;
  gap: 18px;
}

.vendor-region-chart-block {
  display: grid;
  gap: 16px;
}

.vendor-region-chart-block h4 {
  margin: 0;
  color: var(--brand-dark);
}

.vendor-daily-contacts-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  margin: 0 0 16px;
  padding: 18px;
}

.vendor-daily-contact-chart {
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.vendor-daily-month-filter {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
}

.vendor-daily-month-filter input {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  color: #0f172a;
  font: inherit;
  min-height: 34px;
  padding: 6px 9px;
}

.vendor-daily-contact-bars {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-auto-columns: minmax(54px, 1fr);
  grid-auto-flow: column;
  min-height: 240px;
}

.vendor-daily-contact-day {
  align-items: center;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 54px;
}

.vendor-daily-contact-stack {
  align-items: end;
  background: #eef2f7;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  height: 170px;
  overflow: hidden;
  width: 34px;
}

.vendor-daily-contact-stack i {
  align-items: start;
  color: #fff;
  display: flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
  min-height: 4px;
  width: 50%;
}

.vendor-daily-contact-stack i.inactive,
.vendor-daily-contact-legend i.inactive {
  background: #1d4ed8;
}

.vendor-daily-contact-stack i.never,
.vendor-daily-contact-legend i.never {
  background: #059669;
}

.vendor-daily-contact-stack span {
  margin-top: 4px;
}

.vendor-daily-contact-day strong,
.vendor-daily-contact-day span {
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.vendor-daily-contact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.vendor-daily-contact-legend span {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
}

.vendor-daily-contact-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.vendor-portal-hero {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 36, 52, 0.96), rgba(9, 95, 115, 0.88)),
    #102434;
  box-shadow: 0 26px 70px rgba(7, 25, 36, 0.28);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  min-height: 190px;
  padding: 30px;
}

.vendor-portal-hero .eyebrow {
  color: #8ee8df;
}

.vendor-portal-hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.vendor-portal-hero p:last-child {
  color: #c7d7e4;
  margin: 0;
}

.vendor-portal-badge {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  min-width: 190px;
  padding: 18px;
  text-align: right;
}

.vendor-portal-badge img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  object-fit: contain;
}

.vendor-portal-badge strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.vendor-portal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.14);
  padding: 24px;
}

.vendor-workspace-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.vendor-workspace-nav button {
  border: 1px solid rgba(0, 114, 136, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(16, 36, 52, 0.1);
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  min-height: 58px;
  padding: 14px 16px;
  text-align: left;
}

.vendor-workspace-nav button.active,
.vendor-workspace-nav button:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-color: var(--brand);
  color: #fff;
}

.vendor-workspace-panel {
  display: none;
}

.vendor-workspace-panel.active {
  display: block;
}

.daybyday-shell h3 {
  color: var(--brand-dark);
  font-size: 28px;
  margin: 0 0 8px;
}

.daybyday-content {
  margin-top: 14px;
}

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

.daybyday-list-card,
.daybyday-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(16, 36, 52, 0.08);
  padding: 16px;
}

.daybyday-list-head,
.daybyday-detail-head,
.daybyday-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.daybyday-list-head h4,
.daybyday-detail-head h4 {
  color: var(--brand-dark);
  font-size: 20px;
  margin: 0;
}

.daybyday-list-head strong {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 12px;
}

.daybyday-client-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.daybyday-client-card {
  border: 1px solid rgba(0, 114, 136, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.daybyday-client-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 114, 136, 0.15);
  transform: translateY(-1px);
}

.daybyday-client-card.saved {
  border-color: rgba(0, 148, 76, 0.4);
  background: #f3fff8;
}

.daybyday-client-card .client-code,
.daybyday-client-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.daybyday-client-card strong {
  font-size: 15px;
}

.daybyday-client-card span {
  color: #53627a;
  font-size: 12px;
  font-weight: 700;
}

.daybyday-year-counts {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  margin-top: 8px;
}

.daybyday-year-counts button {
  align-items: center;
  background: #f3f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  text-align: left;
}

.daybyday-year-counts button:hover {
  background: #e9f7fb;
  border-color: var(--brand);
}

.daybyday-year-counts small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.daybyday-year-counts strong {
  color: var(--brand);
  font-size: 14px;
}

.daybyday-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.daybyday-purchases-panel {
  border-top: 1px solid var(--line);
  display: none;
  margin-top: 10px;
  overflow-x: auto;
  padding-top: 10px;
}

.daybyday-purchases-panel.active {
  display: block;
}

.daybyday-purchases-panel table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.daybyday-purchases-panel h5 {
  color: var(--brand-dark);
  font-size: 13px;
  margin: 0 0 8px;
}

.daybyday-purchases-panel th,
.daybyday-purchases-panel td {
  border-bottom: 1px solid var(--line);
  padding: 7px 6px;
  text-align: left;
  white-space: nowrap;
}

.daybyday-purchases-panel th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.daybyday-items-row td {
  background: #f8fbfd;
  white-space: normal;
}

.daybyday-items-list {
  display: grid;
  gap: 6px;
}

.daybyday-items-list div {
  border-left: 3px solid var(--brand);
  display: grid;
  gap: 2px;
  padding-left: 8px;
}

.daybyday-items-list strong {
  color: var(--brand-dark);
  font-size: 12px;
}

.daybyday-items-list span {
  color: #53627a;
  font-size: 12px;
}

.daybyday-items-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.daybyday-detail-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.daybyday-detail-head span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

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

.daybyday-form label {
  color: var(--brand-dark);
  display: grid;
  font-weight: 900;
  gap: 7px;
}

.daybyday-form .full,
.daybyday-actions,
.daybyday-closed-fields {
  grid-column: 1 / -1;
}

.daybyday-group-client-field {
  display: none !important;
  position: relative;
}

.daybyday-group-client-field.active {
  display: grid !important;
}

.daybyday-main-fields {
  display: contents;
}

.daybyday-main-fields.hidden,
.daybyday-problem-field,
.daybyday-schedule-field {
  display: none !important;
}

.daybyday-problem-field.active,
.daybyday-schedule-field.active {
  display: grid !important;
}

.daybyday-history-item {
  border-left: 3px solid var(--brand);
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  padding-left: 10px;
}

.daybyday-history-item p {
  margin: 0;
  white-space: normal;
}

.daybyday-closed-fields {
  border: 1px dashed rgba(190, 24, 44, 0.35);
  border-radius: 8px;
  display: none;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.daybyday-closed-fields.active {
  display: grid;
}

.daybyday-form input,
.daybyday-form select,
.daybyday-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  font: inherit;
  padding: 11px 12px;
}

.daybyday-form label.daybyday-field-error {
  color: #d90429;
}

.daybyday-form label.daybyday-field-error input,
.daybyday-form label.daybyday-field-error select,
.daybyday-form label.daybyday-field-error textarea,
.agrp-multi-list.daybyday-field-error {
  border-color: #d90429;
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
}

.agrp-multi-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

.agrp-multi-list label {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  gap: 8px;
}

.agrp-multi-list input {
  width: auto;
}

.vendor-client-region-panel {
  margin-top: 18px;
}

.vendor-region-clients.hidden {
  display: none;
}

.vendor-client-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vendor-client-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.vendor-client-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  padding: 12px;
}

.vendor-client-summary span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vendor-client-summary strong {
  color: var(--brand-dark);
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.vendor-clients-table {
  min-width: 1080px;
}

.vendor-page-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.donut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.donut-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.donut-chart {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(#008f39 0 var(--active-deg), #ff2800 var(--active-deg) var(--inactive-deg), #ffef00 var(--inactive-deg) 360deg);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  padding: 54px;
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: #fff;
}

.donut-chart strong,
.donut-chart span {
  position: relative;
  z-index: 1;
}

.donut-chart strong {
  font-size: 38px;
}

.donut-chart span,
.donut-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.donut-card h5,
.sales-chart-title h5 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.donut-card p {
  margin: 5px 0;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.active {
  background: #008f39;
}

.dot.inactive {
  background: #ff2800;
}

.dot.never {
  background: #ffef00;
}

.dot.average {
  background: #0b2f8a;
}

.quant-donut-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.quant-title.full {
  align-items: flex-start;
  margin-bottom: 18px;
}

.period-donut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.period-donut-item {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.period-donut {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(#008f39 0 var(--active-deg), #ff2800 var(--active-deg) var(--inactive-deg), #ffef00 var(--inactive-deg) var(--never-deg), #e7edf4 var(--never-deg) 360deg);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  max-width: 180px;
  padding: 38px;
  position: relative;
  width: 100%;
}

.period-donut.average {
  box-shadow: 0 0 0 3px rgba(11, 47, 138, 0.14);
}

.period-donut::after {
  content: "";
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: #fff;
}

.period-donut strong,
.period-donut span {
  position: relative;
  z-index: 1;
}

.period-donut strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.period-donut span,
.period-donut-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.period-donut span {
  margin-top: 4px;
}

.period-donut-metrics {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 150px;
}

.period-donut-metrics span {
  color: #344054;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
}

.quant-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 18px;
}

.quant-chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.quant-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quant-title h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.quant-title span,
.quant-legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quant-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 12px;
  align-items: end;
  height: 300px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 10px 0;
}

.quant-column {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  position: relative;
}

.quant-bar {
  align-items: center;
  background: #008f39;
  border-radius: 6px 6px 2px 2px;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 4px;
  width: 52px;
  height: var(--bar-height);
}

.quant-column.average .quant-bar {
  background: #0b2f8a;
}

.quant-bar strong {
  font-size: 12px;
}

.quant-column span {
  position: absolute;
  top: calc(100% + 8px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  min-height: 30px;
  text-align: center;
}

.quant-total-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--line);
  border-top: 2px solid #5b6472;
  z-index: 2;
}

.quant-total-line span {
  background: #fff;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
}

.quant-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

.sales-chart-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 18px;
}

.stacked-sales .sales-chart-list {
  grid-template-columns: 1fr;
}

.annual-sales-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(620px, 1fr));
  gap: 18px;
}

.stacked-sales .annual-sales-list {
  grid-template-columns: 1fr;
}

.sales-chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.annual-sales-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.sales-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sales-chart-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bar-chart-wrap {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.bar-ruler {
  position: relative;
  height: var(--chart-height);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.bar-ruler span {
  position: absolute;
  right: 0;
  bottom: var(--mark);
  transform: translateY(50%);
  white-space: nowrap;
}

.bar-3d-chart {
  position: relative;
  display: block;
  overflow-x: auto;
  min-height: calc(var(--chart-height) + 66px);
  padding: 0 12px;
}

.plot-area {
  position: relative;
  height: var(--chart-height);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: max(760px, calc(var(--bar-count) * 118px));
}

.bars-row {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(86px, 1fr));
  align-items: stretch;
  gap: 14px;
}

.bar-column {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  position: relative;
}

.bar-value {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bar-shape {
  position: relative;
  align-items: center;
  flex: 0 0 var(--bar-height);
  display: flex;
  justify-content: center;
  width: 54px;
  height: var(--bar-height);
  min-height: 0;
  border-radius: 6px 6px 2px 2px;
  background: var(--brand);
}

.bar-column.current .bar-shape {
  background: #1d4ed8;
}

.bar-column.trend .bar-shape {
  background: #102434;
}

.annual-sales-scroll {
  overflow-x: auto;
}

.annual-sales-chart {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  min-width: 1060px;
}

.annual-ruler {
  position: relative;
  height: var(--chart-height);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.annual-ruler span {
  position: absolute;
  right: 0;
  bottom: var(--mark);
  transform: translateY(50%);
  white-space: nowrap;
}

.annual-years {
  display: grid;
  gap: 22px;
}

.annual-year-group {
  display: grid;
  gap: 8px;
  padding-bottom: 34px;
}

.annual-year-group > strong {
  color: var(--brand-dark);
  font-size: 15px;
}

.annual-month-bars {
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, minmax(54px, 1fr));
  gap: 8px;
  height: var(--chart-height);
  padding: 0 8px;
  overflow: visible;
}

.annual-month {
  position: relative;
  display: block;
  min-width: 0;
}

.annual-bar {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  align-items: center;
  background: linear-gradient(180deg, #1d4ed8, var(--brand));
  border-radius: 6px 6px 2px 2px;
  display: flex;
  justify-content: center;
  height: var(--bar-height);
  min-height: 0;
  width: 44px;
}

.annual-bar span {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.annual-month small {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bar-column span {
  position: absolute;
  top: calc(100% + 8px);
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.average-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--avg);
  border-top: 2px dashed #ff2800;
  z-index: 4;
}

.average-line.current {
  border-top-color: #102434;
}

.average-line span {
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
}

.vendor-region-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.vendor-region-table h4 {
  margin: 0;
  background: #102434;
  color: #fff;
  padding: 12px 14px;
}

.vendor-region-table table {
  min-width: 1120px;
}

.vendor-region-table tfoot td {
  background: #eef3ff;
  color: var(--brand-dark);
  font-weight: 950;
}

.vendor-region-table .region-average-row td {
  background: rgba(11, 47, 138, 0.08);
  color: var(--brand-dark);
  font-weight: 900;
}

.vendor-region-table .trend-cell {
  background: #102434;
  color: #fff;
  font-weight: 950;
}

.activity-active,
.activity-inactive {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  transition: width 0.18s ease;
  white-space: nowrap;
}

.activity-active span,
.activity-inactive span {
  overflow: hidden;
  text-overflow: clip;
}

.activity-active {
  width: var(--active-width);
  background: #008f39;
}

.activity-active.has-value {
  min-width: 42px;
}

.activity-inactive {
  width: var(--inactive-width);
  background: #ff2800;
}

.table-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.prospect-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  padding: 20px;
}

.prospect-client-field {
  position: relative;
  grid-column: span 2;
}

.blocked-client-field {
  position: relative;
}

.prospect-actions {
  align-self: end;
}

.prospect-suggestions {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
  max-height: 260px;
  overflow: auto;
}

.prospect-suggestions.visible {
  display: block;
}

.prospect-suggestion {
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.prospect-suggestion:hover {
  background: rgba(9, 95, 115, 0.06);
}

.prospect-suggestion strong {
  font-size: 13px;
}

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

.prospect-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.prospect-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  padding: 16px;
}

.prospect-summary span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.prospect-summary strong {
  color: var(--ink);
  display: block;
  font-size: 26px;
  margin-top: 4px;
}

.prospect-results table {
  min-width: 980px;
}

.vendor-register-shell,
.vendor-list-page,
.vendor-editor-page {
  display: grid;
  gap: 18px;
}

.vendor-editor-page {
  display: none;
}

.vendor-register-shell.editing .vendor-list-page {
  display: none;
}

.vendor-register-shell.editing .vendor-editor-page {
  display: grid;
}

.vendor-list-hero,
.vendor-editor-hero {
  align-items: end;
  border: 1px solid rgba(0, 112, 134, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 240, 255, 0.9));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
}

.vendor-list-hero h2,
.vendor-editor-hero h2 {
  margin-bottom: 4px;
}

.vendor-editor-side {
  align-items: end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.vendor-uf-summary {
  border: 1px solid rgba(0, 112, 134, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px 12px;
  text-align: right;
}

.vendor-uf-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vendor-uf-summary strong {
  color: var(--brand);
  font-size: 16px;
  line-height: 1.35;
}

.vendor-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.vendor-page-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #42526b;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.vendor-page-tab.active,
.vendor-page-tab:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.vendor-status-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  display: inline-flex;
  gap: 6px;
  padding: 5px;
}

.vendor-status-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-width: 110px;
  padding: 10px 16px;
}

.vendor-status-tabs button.active,
.vendor-status-tabs button:hover {
  background: var(--brand);
  color: #fff;
}

.vendor-section-panel {
  display: none;
}

.vendor-section-panel.active {
  display: block;
}

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

.vendor-region-register-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
}

.vendor-region-register-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vendor-region-register-summary strong {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.vendor-regions-client-table {
  min-width: 980px;
}

.vendor-region-manager {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.vendor-region-manager-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.vendor-region-manager-head h3 {
  margin: 4px 0;
}

.vendor-region-manager-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
}

.vendor-region-manager-grid > label {
  display: grid;
  gap: 7px;
  align-self: start;
}

.vendor-region-manager-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.vendor-region-manager .compact-assignment-list {
  max-height: 300px;
}

.block-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
}

.region-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.region-hierarchy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  overflow: hidden;
}

.region-hierarchy-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.region-hierarchy-header h3 {
  margin: 4px 0;
}

.region-hierarchy-table {
  display: grid;
}

.region-tree-head,
.region-tree-row {
  display: grid;
  grid-template-columns: 44px minmax(260px, 1.6fr) minmax(130px, 0.6fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
}

.region-tree-head {
  background: #f4f8fb;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  padding: 12px 18px 12px 74px;
  text-transform: uppercase;
}

.region-tree-head span:first-child {
  grid-column: 1 / span 2;
}

.region-tree-row {
  border-bottom: 1px solid var(--line);
  min-height: 54px;
  padding: 9px 18px;
}

.region-tree-uf-row {
  background: #ffffff;
}

.region-tree-city-row {
  background: rgba(245, 248, 251, 0.78);
  padding-left: 46px;
}

.region-tree-ddd-row {
  background: rgba(255, 255, 255, 0.72);
  padding-left: 82px;
}

.region-tree-client-row {
  background: rgba(248, 250, 252, 0.92);
  padding-left: 118px;
}

.region-tree-client-row strong {
  font-size: 13px;
}

.region-tree-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.region-tree-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.region-expand-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.region-owner-select {
  min-height: 38px;
  width: 100%;
}

.region-tree-children {
  display: grid;
}

.region-builder {
  display: contents;
}

.region-card,
.region-saved-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.region-card {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 18px;
}

.region-step-card label,
.selected-region-panel label {
  display: grid;
  gap: 7px;
}

.region-step-label {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.region-help-text {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  padding-top: 12px;
}

.region-saved-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.region-saved-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
}

.region-saved-header h3 {
  margin: 4px 0;
}

.region-saved-summary {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 24px;
}

.region-split-manager {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 18px 24px;
}

.region-split-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.region-split-header h3 {
  margin: 4px 0;
}

.region-split-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 14px;
}

.region-split-grid > label,
.region-split-grid > div {
  display: grid;
  gap: 8px;
  align-self: start;
  min-width: 0;
}

.region-split-manager .compact-assignment-list {
  max-height: 320px;
}

.region-summary-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 248, 251, 0.9);
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
}

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

.region-summary-group-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.region-summary-group-head span {
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  min-width: 34px;
  padding: 5px 10px;
  text-align: center;
}

.region-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.region-summary-list span,
.region-summary-list em {
  border: 1px solid rgba(12, 111, 128, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  padding: 7px 10px;
}

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

.selected-region-panel {
  min-height: 360px;
}

.selected-region-panel span {
  color: var(--text);
  display: block;
  font-weight: 950;
}

.selected-region-panel small {
  color: var(--muted);
  font-weight: 750;
}

.assignment-pill {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 10px;
}

.assignment-pill strong {
  display: block;
  font-size: 13px;
}

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

.empty-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.block-forms {
  align-self: start;
  display: grid;
  gap: 14px;
}

.vendor-form {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  display: grid;
  gap: 14px;
  padding: 22px;
}

#vendor-main-panel.visible {
  grid-template-columns: 220px repeat(2, minmax(0, 1fr));
}

#vendor-main-panel .vendor-photo-preview,
#vendor-main-panel label:first-child {
  grid-column: 1;
}

#vendor-main-panel .vendor-access {
  grid-column: 1 / -1;
}

#vendor-clients-panel.visible {
  grid-template-columns: 1fr;
  align-items: start;
}

#vendor-clients-panel .vendor-access,
#vendor-clients-panel .blocked-client-field,
#vendor-clients-panel > .secondary-action,
#vendor-clients-panel > .assignment-list,
#vendor-clients-panel > .vendor-actions {
  min-width: 0;
}

#vendor-clients-panel .vendor-client-workbench,
#vendor-clients-panel .vendor-availability-panel,
#vendor-clients-panel .blocked-client-field,
#vendor-clients-panel #vendor-add-specific-client,
#vendor-clients-panel #vendor-specific-client-list {
  grid-column: 1 / -1;
}

.vendor-client-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(340px, 1fr) minmax(340px, 1fr);
  gap: 12px;
  align-items: start;
}

.vendor-panel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.vendor-panel-card > span,
.vendor-panel-card label {
  color: #344054;
  font-weight: 850;
}

.vendor-current-cities-card {
  grid-row: span 2;
}

.vendor-add-cities-card {
  grid-row: span 2;
}

.vendor-excluded-cities-card {
  border-color: rgba(11, 47, 138, 0.22);
  background: rgba(11, 47, 138, 0.06);
}

.vendor-excluded-cities-card small {
  color: var(--muted);
  font-weight: 750;
}

.vendor-panel-card select[multiple] {
  min-height: 180px;
}

.vendor-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vendor-form-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #42526b;
  cursor: pointer;
  font-weight: 850;
  padding: 0 12px;
}

.vendor-form-tab.active,
.vendor-form-tab:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

#vendors-view .vendor-form-tab[data-vendor-tab="vendor-clients"],
#vendors-view .vendor-uf-summary,
#vendor-clients-panel {
  display: none !important;
}

.vendor-tab-panel {
  display: none;
  gap: 14px;
}

.vendor-tab-panel.visible {
  display: grid;
}

.vendor-form.locked {
  opacity: 0.72;
}

.permission-note {
  border: 1px solid rgba(11, 47, 138, 0.24);
  border-radius: 8px;
  background: rgba(11, 47, 138, 0.08);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  padding: 10px 12px;
}

.vendor-access {
  display: grid;
  gap: 10px;
  color: #344054;
  font-weight: 750;
}

.vendor-access > span {
  line-height: 1.35;
}

#vendor-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vendor-uf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.vendor-ddd-box {
  display: none;
  gap: 8px;
}

.vendor-ddd-box.visible {
  display: grid;
}

.compact-table-heading {
  align-items: end;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 180px;
  margin-bottom: 10px;
}

.vendor-availability-panel {
  border-color: rgba(0, 112, 134, 0.22);
}

.vendor-city-manager {
  border: 1px solid rgba(0, 112, 134, 0.18);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.92);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.vendor-city-manager > div:first-child {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.vendor-city-manager span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.vendor-city-manager small {
  color: var(--muted);
  font-weight: 750;
}

.vendor-city-list {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.compact-assignment-list {
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.assignment-list {
  display: grid;
  gap: 8px;
}

.assignment-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
}

.assignment-item.selectable {
  grid-template-columns: auto minmax(0, 1fr);
}

.assignment-item.pending {
  border-color: rgba(255, 40, 0, 0.35);
  background: rgba(255, 40, 0, 0.05);
}

.assignment-item.available {
  border-color: rgba(0, 112, 134, 0.28);
  background: rgba(0, 112, 134, 0.04);
}

.assignment-item strong {
  display: block;
  font-size: 13px;
}

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

.assignment-item button {
  min-height: 30px;
}

.check-option {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.check-option input {
  width: 16px;
  height: 16px;
}

.check-option span {
  font-size: 13px;
}

.check-option.uf-assigned span {
  color: #ff2800;
  font-weight: 950;
}

.check-option.uf-assigned {
  border-color: rgba(255, 40, 0, 0.45);
  background: rgba(255, 40, 0, 0.06);
}

.check-option.uf-selected-current {
  border-color: rgba(23, 132, 85, 0.55);
  background: rgba(23, 132, 85, 0.08);
}

.check-option.uf-selected-current span {
  color: var(--success);
  font-weight: 950;
}

.secondary-action.danger {
  border-color: rgba(255, 40, 0, 0.35);
  color: #b42318;
}

.vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vendor-photo-preview {
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 96px;
  justify-content: center;
  overflow: hidden;
}

.vendor-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendor-photo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.16);
}

.vendor-photo-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vendors-table {
  min-width: 1120px;
}

.vendor-goals-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  padding: 22px;
}

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

.vendor-goals-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.vendor-goals-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vendor-goals-summary strong {
  color: #071b3a;
  font-size: 18px;
}

.vendor-goals-months {
  display: grid;
  gap: 16px;
}

.vendor-goal-month {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.vendor-goal-month header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vendor-goal-month h3 {
  margin: 0;
}

.vendor-goal-month header span {
  color: var(--brand);
  font-weight: 950;
}

.vendor-goal-month-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.vendor-goal-table {
  min-width: 860px;
}

.monthly-items-table {
  min-width: 1080px;
}

.vendor-goal-table input,
.vendor-goal-month-inputs input {
  min-height: 36px;
}

.vendor-goal-suggested {
  border-color: rgba(0, 111, 132, 0.45);
  background: rgba(0, 111, 132, 0.06);
  font-weight: 900;
}

.vendor-page-goals-list {
  display: grid;
  gap: 12px;
}

.vendor-page-goal-context {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef3ff);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
}

.vendor-page-goal-context span {
  color: #42526b;
  font-size: 12px;
  font-weight: 850;
}

#vendor-page-view .vendor-workspace-nav button {
  font-size: 30px;
  min-height: 92px;
  padding: 22px 24px;
}

#vendor-page-view .vendor-page-goal-context {
  gap: 10px;
  padding: 12px 14px;
}

#vendor-page-view .vendor-page-goal-context span {
  font-size: 14px;
  font-weight: 650;
}

.vendor-page-goal-table {
  min-width: 980px;
}

.vendor-page-goal-table th {
  background: #f5f9fc;
  color: #42526b;
  font-size: 12px;
  text-transform: uppercase;
}

#vendor-page-view .vendor-page-goal-table {
  min-width: 1180px;
}

#vendor-page-view .vendor-page-goal-table th {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.vendor-page-goal-table td {
  padding: 11px 12px;
  vertical-align: middle;
}

#vendor-page-view .vendor-page-goal-table td {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 14px;
}

.vendor-page-goal-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.vendor-page-goal-table strong {
  color: #071b3a;
  font-size: 14px;
}

#vendor-page-view .vendor-page-goal-table strong {
  font-size: 15px;
  font-weight: 650;
}

.goal-name-with-help {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.goal-help-icon {
  align-items: center;
  border: 1px solid rgba(0, 112, 134, 0.32);
  border-radius: 999px;
  background: rgba(0, 112, 134, 0.08);
  color: var(--brand);
  cursor: help;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

#vendor-page-view .goal-help-icon {
  font-size: 13px;
  height: 22px;
  width: 22px;
}

.goal-help-icon:hover,
.goal-help-icon:focus {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  outline: none;
}

.vendor-page-goal-table .achieved-value {
  color: var(--brand);
  font-weight: 950;
}

.vendor-goal-table .commission-value,
.vendor-page-goal-table .commission-value {
  color: #071b3a;
  font-weight: 950;
  text-align: right;
}

.vendor-page-goal-table .commission-money {
  color: #b91c1c;
  font-size: 15px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

#vendor-page-view .vendor-page-goal-table .commission-money {
  font-size: 15px;
  font-weight: 800;
}

.goal-progress {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 62px;
  gap: 8px;
}

#vendor-page-view .goal-progress {
  grid-template-columns: minmax(110px, 1fr) 68px;
  gap: 10px;
}

.goal-progress span {
  background: linear-gradient(90deg, var(--success), var(--brand));
  border-radius: 999px;
  display: block;
  height: 9px;
  min-width: 3px;
}

#vendor-page-view .goal-progress span {
  height: 10px;
}

.goal-progress strong {
  color: #071b3a;
  font-size: 13px;
  text-align: right;
}

#vendor-page-view .goal-progress strong {
  font-size: 14px;
  font-weight: 700;
}

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

.client-found {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 46px;
  padding: 12px;
}

.client-found.found {
  border-color: rgba(23, 132, 85, 0.35);
  background: rgba(23, 132, 85, 0.08);
  color: #12633f;
}

.client-found.missing {
  border-color: rgba(255, 40, 0, 0.3);
  background: rgba(255, 40, 0, 0.07);
  color: #ab1e00;
}

.mini-action {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 850;
  padding: 0 12px;
}

.mini-action:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.status-pill {
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.status-pill.active {
  background: #008f39;
}

.status-pill.inactive {
  background: #ff2800;
}

.status-pill.never {
  background: #5b6472;
}

.routine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.routine-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #42526b;
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.routine-tab.active,
.routine-tab:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.costing-internal-tabs {
  margin-top: 6px;
}

.costing-internal-panel.hidden {
  display: none;
}

.compact-heading {
  margin-top: 10px;
}

.compact-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.routine {
  display: none;
}

.routine.visible {
  display: block;
}

.slow-items-toolbar {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) auto auto auto;
  gap: 14px;
  margin-bottom: 18px;
}

.slow-items-panel {
  padding: 18px;
}

.slow-items-table input {
  min-height: 36px;
  text-align: right;
}

.slow-items-percent-cell {
  min-width: 130px;
}

.slow-items-percent-cell input {
  border-color: rgba(29, 78, 216, 0.35);
  color: var(--brand);
  font-weight: 800;
}

.slow-items-missing-price {
  color: #d11a2a !important;
  font-weight: 900;
}

.ml-panel {
  display: none;
}

.ml-panel.active {
  display: grid;
  gap: 18px;
}

.ml-company-tabs,
.ml-file-tabs,
.ml-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ml-company-tabs {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.ml-kind-tabs {
  margin-top: 12px;
}

.ml-file-tabs {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.mercado-livre-table-card {
  margin-top: 6px;
}

.ml-dashboard-filters {
  align-items: end;
  grid-template-columns: repeat(2, minmax(170px, 220px));
}

.ml-dashboard-chart {
  padding: 22px 24px 28px;
}

.ml-chart-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.ml-chart-header h3 {
  margin: 4px 0 6px;
}

.ml-chart-header > strong {
  color: var(--brand);
  font-size: 24px;
  white-space: nowrap;
}

.ml-column-chart {
  display: grid;
  grid-template-columns: 100px minmax(760px, 1fr);
  min-height: 430px;
  overflow-x: auto;
}

.ml-chart-scale,
.ml-chart-plot {
  height: 360px;
  position: relative;
}

.ml-chart-scale {
  border-right: 1px solid #b9c9da;
  color: #465a78;
  font-size: 13px;
  font-weight: 800;
}

.ml-chart-scale span {
  position: absolute;
  right: 12px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.ml-chart-plot {
  min-width: 760px;
}

.ml-chart-plot i {
  border-top: 1px solid #d7e0ea;
  left: 0;
  position: absolute;
  right: 0;
}

.ml-chart-bars {
  align-items: end;
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(72px, 1fr);
  grid-auto-flow: column;
  left: 0;
  min-width: max-content;
  padding: 0 10px;
  position: absolute;
  right: 0;
  top: 0;
}

.ml-chart-bar-item {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-width: 72px;
}

.ml-chart-bar-wrap {
  align-items: end;
  align-self: stretch;
  display: flex;
  width: 100%;
}

.ml-chart-bar {
  align-items: center;
  background: linear-gradient(180deg, #2148c6 0%, #0f2f91 100%);
  border-radius: 7px 7px 0 0;
  display: flex;
  justify-content: center;
  min-height: 2px;
  width: 100%;
}

.ml-chart-bar span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  padding: 6px 2px;
  text-align: center;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.ml-chart-bar-item strong {
  color: #263a5d;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.ml-summary-inactive-row td {
  background: #fff7cc !important;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
}

.import-panel,
.result-panel {
  padding: 24px;
}

.import-panel {
  display: grid;
  gap: 18px;
}

.export-filter-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 750;
}

select,
input[type="file"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

select[multiple] {
  min-height: 220px;
}

select option.city-option-added {
  color: #ff2800;
  font-weight: 900;
}

.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  overflow: hidden;
}

.stock-summary-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
  gap: 14px;
  margin-bottom: 16px;
}

.stock-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  padding: 18px;
}

.stock-summary-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.stock-summary-grid small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.stock-summary-grid strong {
  color: var(--brand-dark);
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

.stock-summary-grid .stock-value-card strong {
  color: #d00000;
  font-size: 38px;
  font-weight: 950;
}

.users-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.25fr);
}

.users-list-panel {
  min-height: 520px;
}

.user-editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
  padding: 22px;
}

.user-permissions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.permission-group {
  border-top: 1px solid #e8eef5;
  display: grid;
  gap: 10px;
  padding: 16px 0;
}

.permission-group:first-child {
  border-top: 0;
}

.permission-group h4 {
  color: var(--brand-dark);
  margin: 0;
}

.permission-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px);
}

.permission-row span {
  color: #24324d;
  font-weight: 800;
}

.vendor-goal-subtotal-row td {
  background: #eaf0ff !important;
  border-top: 2px solid var(--brand);
  color: var(--brand-dark);
  font-weight: 900;
}

.compact-action {
  min-height: 36px;
  padding: 0 12px;
}

.table-status {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
}

.table-scroll {
  max-height: 62vh;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

th,
td {
  border-bottom: 1px solid #e8eef5;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #344054;
  font-size: 13px;
}

.table-sort-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.table-sort-button:hover,
.table-sort-button.active {
  color: var(--brand);
}

.table-sort-button span {
  color: var(--brand);
  font-weight: 900;
}

td {
  color: #344054;
  font-size: 13px;
}

.costing-value-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.costing-index-cell {
  color: #d00000;
  font-size: 15px;
  font-weight: 900;
}

.stock-total-cell {
  color: #d00000;
  font-size: 15px;
  font-weight: 900;
}

tbody tr:hover {
  background: rgba(9, 95, 115, 0.05);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.result-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result-item strong {
  display: block;
  margin-top: 4px;
  color: var(--success);
  font-size: 24px;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .topbar,
  .hero,
  .vendor-list-hero,
  .vendor-editor-hero,
  .workflow,
  .table-heading,
  .dashboard-heading {
    display: grid;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .topbar-actions,
  .company-strip {
    justify-content: flex-start;
  }

  .stats-grid,
  .workflow,
  .table-tools,
  .dashboard-chart-menu,
  .dashboard-grid,
  .vendor-region-summary,
  .vendor-workspace-nav,
  .compact-table-heading,
  .vendor-client-filters,
  .vendor-client-summary,
  .vendor-region-register-summary,
  .vendor-goals-summary,
  .vendor-page-goal-context,
  .prospect-panel,
  .prospect-summary,
  .vendor-layout,
  .region-layout,
  .block-layout {
    grid-template-columns: 1fr;
  }

  .vendor-region-manager-head,
  .vendor-region-manager-grid,
  .region-split-grid,
  .region-tree-head,
  .region-tree-row {
    grid-template-columns: 1fr;
  }

  .region-tree-head {
    padding-left: 18px;
  }

  .region-tree-city-row,
  .region-tree-ddd-row {
    padding-left: 18px;
  }

  .vendor-region-manager-head,
  .region-split-header {
    display: grid;
  }

  .region-saved-summary {
    grid-template-columns: 1fr;
  }

  #vendor-main-panel.visible,
  #vendor-clients-panel.visible {
    grid-template-columns: 1fr;
  }

  .vendor-client-workbench {
    grid-template-columns: 1fr;
  }

  .vendor-editor-side {
    justify-items: stretch;
  }

  .vendor-uf-summary {
    text-align: left;
  }

  #vendor-main-panel .vendor-photo-preview,
  #vendor-main-panel label:first-child,
  #vendor-main-panel .vendor-access,
  #vendor-clients-panel .vendor-availability-panel,
  #vendor-clients-panel .blocked-client-field,
  #vendor-clients-panel #vendor-add-specific-client,
  #vendor-clients-panel #vendor-specific-client-list {
    grid-column: auto;
  }

  .prospect-client-field {
    grid-column: auto;
  }

  .uf-row {
    grid-template-columns: 46px minmax(180px, 1fr) repeat(var(--year-count), minmax(104px, 1fr)) 124px;
  }

  .activity-row {
    grid-template-columns: 42px 70px repeat(var(--year-count), minmax(156px, 1fr));
    min-width: calc(112px + (var(--year-count) * 166px));
  }

  .activity-chart {
    overflow-x: auto;
  }
}

/* Royal blue visual refresh */
.hero,
.stat-card,
.chart-panel,
.insight-panel,
.insight-card,
.vendor-portal-panel,
.daybyday-list-card,
.daybyday-detail,
.vendor-client-summary article,
.dashboard-chart-button,
.table-panel,
.import-card,
.result-card,
.vendor-editor-shell,
.region-hierarchy-panel,
.region-card,
.region-saved-panel,
.prospect-panel,
.vendor-region-chart-block,
.vendor-region-table,
.vendor-goal-month,
.vendor-page-goal-table,
.home-vendor-card,
.vendor-region-manager,
.blocked-panel,
.stock-summary-card,
.vendor-form-panel {
  border-color: rgba(11, 47, 138, 0.16) !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(234, 240, 255, 0.88)),
    linear-gradient(135deg, var(--brand), #1d4ed8) !important;
}

.hero h2,
.section-header h2,
.chart-title-row h3,
.daybyday-shell h3,
.vendor-page-goal-table th,
.vendor-region-table h4,
.vendor-region-chart-block h4,
.table-panel h3,
.vendor-portal-panel h3,
.vendor-portal-panel h4 {
  color: var(--brand-dark) !important;
}

.eyebrow,
.dashboard-chart-button span,
.home-vendor-card span,
.vendor-client-summary span,
.insight-card span,
.stat-card span {
  color: var(--brand) !important;
}

.primary-action,
.primary,
button.primary,
.home-return-button:hover,
.dashboard-chart-button.active,
.dashboard-chart-button:hover,
.segmented-control button.active,
.segmented-control button:hover,
.vendor-workspace-nav button.active,
.vendor-workspace-nav button:hover,
.vendor-page-tab.active,
.mini-action:hover,
.table-action.primary,
.vendor-region-controls button.active,
.vendor-region-controls button:hover {
  background: linear-gradient(135deg, var(--brand), #1d4ed8) !important;
  border-color: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(11, 47, 138, 0.2);
}

.secondary-action,
.secondary,
button.secondary,
.mini-action,
.dashboard-chart-button,
.segmented-control button,
.vendor-workspace-nav button,
.vendor-page-tab,
.home-return-button,
.company-pill,
.region-owner-select {
  border-color: rgba(11, 47, 138, 0.18) !important;
  background: #ffffff !important;
  color: var(--brand-dark) !important;
}

.secondary-action:hover,
.secondary:hover,
button.secondary:hover,
.mini-action:hover,
.home-return-button:hover,
.company-pill:hover {
  border-color: var(--brand) !important;
}

input,
select,
textarea {
  border-color: rgba(11, 47, 138, 0.18) !important;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(11, 47, 138, 0.12);
  outline: none;
}

table th,
.table-scroll thead th,
.regions-table th,
.vendor-page-goal-table th,
.vendor-clients-table th {
  background: #eef3ff !important;
  color: var(--brand-dark) !important;
  font-weight: 900;
}

table td,
.table-scroll td {
  border-color: #e5eaf3 !important;
}

tbody tr:hover,
.table-scroll tbody tr:hover {
  background: #f7f9ff !important;
}

.table-status,
.empty-state,
.client-found {
  border-color: rgba(11, 47, 138, 0.14) !important;
  background: #f8fafc !important;
  color: #475467 !important;
}

.dashboard-bar-fill,
.sales-bar-fill,
.monthly-bar-fill,
.annual-bar-fill {
  background: linear-gradient(180deg, #1d4ed8, var(--brand)) !important;
}

.dashboard-bar-fill.color-1,
.dashboard-bar-fill.color-2,
.dashboard-bar-fill.color-3,
.dashboard-bar-fill.color-4,
.dashboard-bar-fill.color-5,
.dashboard-bar-fill.color-6 {
  background: linear-gradient(180deg, #1d4ed8, var(--brand)) !important;
}

.vendor-page-hero {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.97), rgba(11, 47, 138, 0.94)),
    var(--brand-dark) !important;
}

.vendor-page-hero .eyebrow,
.vendor-page-hero span {
  color: #c7d7ff !important;
}

.vendor-workspace-nav {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 47, 138, 0.12);
  border-radius: 8px;
  padding: 10px;
}

.daybyday-list-head strong,
.region-summary-badge,
.vendor-region-register-summary strong {
  background: var(--brand) !important;
  color: #fff !important;
}

.daybyday-client-card:hover,
.home-vendor-card:hover,
.stat-card:hover,
.dashboard-chart-button:hover {
  border-color: rgba(11, 47, 138, 0.32) !important;
  box-shadow: 0 18px 42px rgba(11, 47, 138, 0.14);
}

.daybyday-year-counts button {
  background: #eef3ff !important;
  border-color: rgba(11, 47, 138, 0.18) !important;
}

.daybyday-year-counts button:hover {
  background: #dfe8ff !important;
  border-color: var(--brand) !important;
}

.daybyday-year-counts strong,
.daybyday-items-list strong,
.commission-money,
.achieved-value {
  color: var(--brand) !important;
}

.goal-progress span,
.stock-value-bar,
.vendor-goal-progress span {
  background: linear-gradient(90deg, var(--brand), #1d4ed8) !important;
}

.prospect-suggestion:hover,
.prospect-suggestion:focus {
  background: #eef3ff !important;
}

.result-card strong,
.table-total,
.chart-total,
.stock-total-value,
.costing-index-value {
  color: var(--brand) !important;
}

/* Vendor panel refinement */
.vendor-shell .content {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  padding: 24px 28px 34px;
}

#vendor-page-view {
  max-width: 1680px;
  margin: 0 auto;
}

.vendor-shell .topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 47, 138, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  margin-bottom: 16px;
  padding: 18px 20px;
}

.vendor-shell .topbar h1 {
  color: var(--brand-dark);
  font-size: 30px;
}

.vendor-portal-hero {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.96), rgba(11, 47, 138, 0.92)),
    var(--brand-dark) !important;
  border: 0;
  box-shadow: 0 18px 44px rgba(11, 47, 138, 0.18);
  margin-bottom: 14px;
  min-height: 136px;
  padding: 24px 28px;
}

.vendor-portal-hero h2 {
  font-size: 32px;
  line-height: 1.1;
}

.vendor-portal-hero .eyebrow,
.vendor-portal-badge span {
  color: #c7d7ff !important;
}

.vendor-portal-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  min-width: 150px;
  padding: 14px 16px;
}

.vendor-workspace-nav {
  background: #ffffff;
  border: 1px solid rgba(11, 47, 138, 0.14);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
}

.quote-hero {
  align-items: stretch;
  background: #0b1220;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 22px 24px;
}

.quote-hero h3 {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
  margin: 2px 0 8px;
}

.quote-hero p:not(.eyebrow) {
  color: #cbd5e1;
  margin: 0;
  max-width: 680px;
}

.quote-number-card {
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 14px 18px;
  text-align: right;
}

.quote-number-card span,
.quote-summary-panel span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-number-card span {
  color: #bfdbfe;
}

.quote-number-card strong {
  color: #ffffff;
  display: block;
  font-size: 26px;
  margin-top: 4px;
}

.quote-workbench {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.15fr) minmax(340px, 0.85fr);
  margin-bottom: 14px;
}

.quote-panel,
.quote-items-panel,
.quote-footer {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.quote-panel {
  padding: 18px;
}

.quote-panel-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.quote-panel-heading div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.quote-panel-heading span {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.quote-panel-heading h4 {
  color: #0f172a;
  font-size: 17px;
  margin: 0;
}

.quote-panel-heading small {
  color: #64748b;
  line-height: 1.35;
  max-width: 260px;
  text-align: right;
}

.quote-panel label,
.quote-add-item-panel label {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.quote-panel input,
.quote-add-item-panel input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  min-height: 40px;
}

.quote-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin-top: 12px;
}

.quote-form-grid label:first-child,
.quote-form-grid label:nth-child(4) {
  grid-column: 1 / -1;
}

.quote-add-item-panel {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  margin-top: 12px;
}

.quote-add-item-panel .primary-action {
  min-height: 40px;
  padding-left: 22px;
  padding-right: 22px;
}

.quote-search-field {
  position: relative;
}

.quote-product-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #be123c;
  display: none;
  font-weight: 800;
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 10px 12px;
}

.quote-product-alert.visible {
  display: block;
}

.quote-missing-price strong,
.quote-missing-price span {
  color: #d60000;
}

.quote-items-table th,
.quote-items-table td {
  font-size: 12px;
  vertical-align: top;
}

.quote-items-panel {
  overflow: hidden;
  padding: 16px;
}

.quote-items-panel .table-scroll {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0;
}

.quote-items-table {
  border-collapse: separate;
  border-spacing: 0;
}

.quote-items-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.quote-items-table tbody td {
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.quote-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.quote-empty-row td {
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  padding: 26px !important;
  text-align: center;
}

.quote-line-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  max-width: 92px;
  padding: 6px 8px;
  text-align: right;
}

.quote-items-table small {
  color: #64748b;
  display: block;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
}

.quote-summary-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin: 0;
}

.quote-summary-panel article {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.quote-summary-panel strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.quote-summary-panel .quote-total-card {
  background: #0f172a;
  border-color: #0f172a;
}

.quote-summary-panel .quote-total-card span,
.quote-summary-panel .quote-total-card strong {
  color: #ffffff;
}

.quote-footer {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(360px, 1fr) auto;
  margin-top: 14px;
  padding: 16px;
}

.quote-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0;
}

#quote-status {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.shortcut-chip {
  background: rgba(11, 47, 138, 0.08);
  border: 1px solid rgba(11, 47, 138, 0.18);
  border-radius: 8px;
  color: #0b2f8a;
  font-weight: 800;
  padding: 8px 12px;
}

.quick-consult-result {
  margin-top: 18px;
}

.quick-consult-card {
  background: #fff;
  border: 1px solid rgba(11, 47, 138, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.quick-consult-card h3 {
  color: #0b2f8a;
  font-size: 26px;
  margin: 0 0 6px;
}

.quick-consult-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.quick-consult-metrics article {
  background: rgba(11, 47, 138, 0.04);
  border: 1px solid rgba(11, 47, 138, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.quick-consult-metrics span {
  color: #52627a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-consult-metrics strong {
  color: #061a44;
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.quick-consult-metrics .quick-consult-highlight {
  background: linear-gradient(135deg, #0b2f8a, #1f5eff);
  border-color: rgba(11, 47, 138, 0.28);
}

.quick-consult-metrics .quick-consult-highlight span,
.quick-consult-metrics .quick-consult-highlight strong {
  color: #fff;
}

.quick-consult-transit {
  border-top: 1px solid rgba(11, 47, 138, 0.12);
  padding-top: 14px;
}

.quick-consult-transit ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.text-danger {
  color: #d60000 !important;
}

@media (max-width: 900px) {
  .quote-form-grid,
  .quote-add-item-panel,
  .quote-summary-panel,
  .quick-consult-metrics {
    grid-template-columns: 1fr;
  }
}

.vendor-workspace-nav button {
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  min-height: 46px;
  padding: 10px 14px;
  text-align: center;
}

#vendor-page-view .vendor-workspace-nav button {
  font-size: 14px;
  min-height: 46px;
}

.vendor-portal-panel {
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  padding: 20px 24px;
}

.daybyday-shell .chart-title-row {
  align-items: center;
  border-bottom: 1px solid rgba(11, 47, 138, 0.1);
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.daybyday-shell h3 {
  font-size: 26px;
}

#vendor-daybyday-refresh {
  min-height: 40px;
  padding: 0 16px;
}

#vendor-daybyday-status {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .vendor-shell .content {
    padding: 16px;
  }

  .vendor-portal-hero,
  .vendor-shell .topbar {
    display: grid;
  }

  .vendor-workspace-nav {
    grid-template-columns: 1fr;
  }
}

/* Day by Day - professional workbench */
#vendor-workspace-day.vendor-portal-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.daybyday-shell {
  display: grid;
  gap: 18px;
}

.daybyday-shell > .eyebrow,
.daybyday-shell h3 {
  margin: 0;
}

.daybyday-shell h3 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
}

.daybyday-shell > .vendor-actions {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 10px;
}

#vendor-daybyday-summary.vendor-goals-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

#vendor-daybyday-summary.vendor-goals-summary article {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
  min-height: 74px;
  padding: 12px 14px;
}

#vendor-daybyday-summary.vendor-goals-summary article span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#vendor-daybyday-summary.vendor-goals-summary article strong {
  color: #0f172a;
  font-size: 19px;
  font-weight: 850;
  margin-top: 6px;
}

#vendor-daybyday-status.table-status {
  background: #eef6ff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  color: #1e3a8a;
  font-weight: 750;
  margin: 0;
  padding: 12px 14px;
}

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

.daybyday-list-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  padding: 16px;
}

.daybyday-list-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin: -2px 0 12px;
  padding-bottom: 12px;
}

.daybyday-list-head h4 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 850;
}

.daybyday-list-head .eyebrow {
  color: #2563eb;
  font-size: 11px;
}

.daybyday-list-head > strong {
  background: #0f172a !important;
  border-radius: 8px;
  box-shadow: none;
  color: #fff !important;
  font-size: 18px;
  height: 44px;
  width: 44px;
}

.daybyday-client-list {
  gap: 10px;
  margin-top: 0;
  max-height: 620px;
  padding-right: 8px;
}

.daybyday-client-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  color: #0f172a;
  gap: 8px;
  padding: 14px;
}

.daybyday-client-card:hover {
  border-color: rgba(37, 99, 235, 0.36) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.11);
  transform: none;
}

.daybyday-client-card.saved {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.26);
}

.daybyday-client-card .client-code {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0;
}

.daybyday-client-card strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
}

.daybyday-client-card span {
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

.daybyday-year-counts {
  gap: 6px;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
}

.daybyday-year-counts button {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
}

.daybyday-year-counts strong {
  color: #1d4ed8 !important;
  font-size: 13px;
}

.daybyday-card-actions {
  margin-top: 10px;
}

.daybyday-card-actions .mini-action {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.22);
  color: #1e3a8a;
  min-height: 34px;
}

.follow-up-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.follow-up-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.follow-up-filters label {
  color: #475569;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.follow-up-filters input,
.follow-up-filters select {
  min-width: 0;
}

.follow-up-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.follow-up-summary article {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.follow-up-summary span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.follow-up-summary strong {
  color: #0f172a;
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.follow-up-table th,
.follow-up-table td {
  vertical-align: top;
}

.follow-up-detail-row {
  display: none;
}

.follow-up-detail-row.active {
  display: table-row;
}

.follow-up-detail {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.follow-up-detail h4,
.follow-up-detail p {
  margin: 0;
}

.follow-up-detail small {
  color: #64748b;
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.follow-up-answers {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.follow-up-answers article {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.follow-up-answers span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.follow-up-answers strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  #vendor-daybyday-summary.vendor-goals-summary,
  .daybyday-lists,
  .follow-up-filters,
  .follow-up-summary,
  .follow-up-answers {
    grid-template-columns: 1fr;
  }
}

/* Day by Day - layout rebuild */
#vendor-workspace-day {
  padding: 0 !important;
}

#vendor-workspace-day .daybyday-shell {
  background: #f3f6fb;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

#vendor-workspace-day .daybyday-shell > .eyebrow {
  color: #1d4ed8;
  font-size: 11px;
  margin: 0;
}

#vendor-workspace-day .daybyday-shell > h3 {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  margin: -8px 0 0;
}

#vendor-workspace-day .daybyday-shell > .vendor-actions {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  gap: 8px;
  padding: 0;
}

#vendor-workspace-day .daybyday-shell > .vendor-actions button {
  background: #fff;
  min-width: 104px;
}

#vendor-workspace-day .daybyday-shell > .vendor-actions button:hover {
  background: #eef4ff;
}

#vendor-daybyday-summary.vendor-goals-summary {
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(150px, 1fr));
}

#vendor-daybyday-summary .daybyday-progress-card {
  background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
  border: 0 !important;
  color: #fff;
  grid-row: span 2;
  min-height: 158px !important;
}

#vendor-daybyday-summary .daybyday-progress-card span,
#vendor-daybyday-summary .daybyday-progress-card strong,
#vendor-daybyday-summary .daybyday-progress-card small {
  color: #fff !important;
}

#vendor-daybyday-summary .daybyday-progress-card strong {
  font-size: 34px !important;
  letter-spacing: 0;
}

.daybyday-progress {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  height: 10px;
  margin: 16px 0 10px;
  overflow: hidden;
}

.daybyday-progress i {
  background: #38bdf8;
  border-radius: inherit;
  display: block;
  height: 100%;
}

#vendor-daybyday-summary.vendor-goals-summary article:not(.daybyday-progress-card) {
  min-height: 72px !important;
}

#vendor-daybyday-status {
  order: 4;
}

#vendor-daybyday-content {
  order: 5;
}

#vendor-daybyday-content .daybyday-lists {
  gap: 18px;
}

#vendor-daybyday-content .daybyday-list-card {
  padding: 0;
}

#vendor-daybyday-content .daybyday-list-head {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px 8px 0 0;
  margin: 0;
  padding: 18px;
}

#vendor-daybyday-content .daybyday-list-head h4 {
  font-size: 21px;
}

#vendor-daybyday-content .daybyday-list-head span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

#vendor-daybyday-content .daybyday-client-list {
  background: #f8fafc;
  max-height: 660px;
  padding: 12px;
}

#vendor-daybyday-content .daybyday-client-card {
  display: grid;
  gap: 10px;
}

.daybyday-client-main {
  display: grid;
  gap: 3px;
}

.daybyday-client-main strong {
  font-size: 15px !important;
}

.daybyday-client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daybyday-client-meta span {
  background: #eef4ff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  color: #1e3a8a !important;
  padding: 5px 9px;
}

#vendor-daybyday-content .daybyday-year-counts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#vendor-daybyday-content .daybyday-year-counts button {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  #vendor-daybyday-summary.vendor-goals-summary {
    grid-template-columns: 1fr 1fr;
  }

  #vendor-daybyday-summary .daybyday-progress-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  #vendor-daybyday-summary.vendor-goals-summary {
    grid-template-columns: 1fr;
  }
}

/* Vendor panel - modern executive layout */
.vendor-shell .content {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  padding: 22px 28px 38px;
}

.vendor-shell .topbar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  margin: 0 auto 18px;
  max-width: 1680px;
  padding: 14px 18px;
}

.vendor-shell .topbar-logo {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  height: 52px;
  width: 52px;
}

.vendor-shell .topbar .eyebrow {
  color: #0b2f8a;
  font-size: 11px;
  margin-bottom: 3px;
}

.vendor-shell .topbar h1 {
  color: #061a44;
  font-size: 28px;
  line-height: 1.05;
  margin: 0;
}

.vendor-shell .user-chip {
  background: #eef4ff;
  border-color: #b8c7f5;
  color: #061a44;
  min-height: 42px;
}

.vendor-shell .topbar-actions .secondary-action,
.vendor-shell .topbar-actions .home-return-button {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: none;
  min-height: 42px;
}

#vendor-page-view.view.visible {
  display: grid;
  gap: 16px;
}

.vendor-portal-hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(6, 26, 68, 0.98), rgba(11, 47, 138, 0.92) 58%, rgba(29, 78, 216, 0.86)),
    #061a44 !important;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(11, 47, 138, 0.2);
  margin: 0;
  min-height: 154px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.vendor-portal-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14));
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: 38%;
}

.vendor-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.vendor-portal-hero h2 {
  color: #fff;
  font-size: 34px;
  letter-spacing: 0;
  margin: 0;
}

.vendor-portal-hero p:last-child,
.vendor-portal-hero #vendor-page-subtitle {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.vendor-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.vendor-hero-tags span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #eff6ff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.vendor-portal-badge {
  align-self: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  min-width: 178px;
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}

.vendor-portal-badge strong {
  color: #fff;
  font-size: 23px;
  letter-spacing: 0;
}

.vendor-workspace-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
  padding: 8px;
}

.vendor-workspace-nav button,
#vendor-page-view .vendor-workspace-nav button {
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  color: #0f172a;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  min-height: 44px;
  min-width: 146px;
  padding: 10px 14px;
}

.vendor-workspace-nav button.active {
  background: linear-gradient(135deg, #0b2f8a, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.24);
  color: #fff;
}

.vendor-workspace-nav button:hover:not(.active) {
  background: #f1f5ff;
  border-color: #b8c7f5;
  box-shadow: none;
  color: #0b2f8a;
}

#vendor-workspace-day.vendor-portal-panel,
.vendor-portal-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

#vendor-workspace-day .daybyday-shell {
  background: transparent;
  border-radius: 8px;
  gap: 16px;
  padding: 22px;
}

.daybyday-header {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.daybyday-header h3,
#vendor-workspace-day .daybyday-shell > h3 {
  color: #061a44;
  font-size: 27px;
  line-height: 1.05;
  margin: 0;
}

.daybyday-header .eyebrow {
  color: #0b2f8a;
  margin-bottom: 6px;
}

#vendor-workspace-day .daybyday-shell > .eyebrow,
#vendor-workspace-day .daybyday-shell > h3,
#vendor-workspace-day .daybyday-shell > .vendor-actions {
  display: none;
}

.daybyday-header .vendor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.daybyday-header .vendor-actions button,
#vendor-workspace-day .daybyday-shell > .vendor-actions button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 850;
  min-height: 40px;
  min-width: 104px;
}

.daybyday-header .vendor-actions button:hover {
  background: #eef4ff;
  border-color: #b8c7f5;
  color: #0b2f8a;
}

#vendor-daybyday-summary.vendor-goals-summary {
  gap: 12px;
  grid-template-columns: minmax(300px, 1.22fr) repeat(3, minmax(150px, 1fr));
}

#vendor-daybyday-summary.vendor-goals-summary article {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

#vendor-daybyday-summary .daybyday-progress-card {
  background: linear-gradient(135deg, #061a44, #0b2f8a 62%, #1d4ed8) !important;
}

#vendor-daybyday-status.table-status,
#vendor-daybyday-status {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  font-weight: 850;
}

#vendor-daybyday-content .daybyday-list-card,
.daybyday-list-card {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

#vendor-daybyday-content .daybyday-list-head {
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 18px 20px;
}

#vendor-daybyday-content .daybyday-client-list {
  background: #f8fafc;
  padding: 14px;
}

#vendor-daybyday-content .daybyday-client-card,
.daybyday-client-card {
  border-color: rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.daybyday-client-card.saved {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.32);
}

.daybyday-card-actions .mini-action {
  border-radius: 8px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .vendor-shell .content {
    padding: 14px;
  }

  .vendor-shell .topbar,
  .vendor-portal-hero,
  .daybyday-header {
    display: grid;
  }

  .vendor-portal-badge {
    justify-self: start;
  }

  .vendor-workspace-nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .vendor-workspace-nav button,
  #vendor-page-view .vendor-workspace-nav button {
    min-width: 0;
  }
}
