@font-face {
  font-family: "Dashboard Symbols";
  src: url("/static/fonts/dashboard-symbols.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.partner-dashboard {
  --dashboard-ink: #172e46;
  --dashboard-muted: #576b80;
  --dashboard-line: #d8e1ea;
  background: #f2f5f8;
  color: var(--dashboard-ink);
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 44px;
}

.dashboard-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  gap: 24px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(35%, 340px));
  grid-template-areas: "copy art";
  align-content: center;
  align-items: center;
  gap: 12px 24px;
  padding: 20px 32px;
  border-radius: 16px;
  background:
    linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(105deg, #142f48, #21475c);
  color: #fff;
}

.dashboard-hero-copy { grid-area: copy; }
.dashboard-hero-art {
  grid-area: art;
  display: block;
  width: 100%;
  height: clamp(128px, 15vw, 184px);
  object-fit: contain;
  object-position: right center;
}

.dashboard-eyebrow {
  margin-bottom: 4px;
  color: #c5d7e7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-hero h1 { font-weight: 720; }
.dashboard-hero p { margin-top: 6px; color: #dce8f4; }

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

.partner-dashboard .tone-blue { --tone-bg: #e6eff8; --tone-ink: #2d6397; --tone-meter: #698eaf; }
.partner-dashboard .tone-amber { --tone-bg: #fff0d5; --tone-ink: #8e5309; --tone-meter: #c88b35; }
.partner-dashboard .tone-purple { --tone-bg: #eee9f9; --tone-ink: #635398; --tone-meter: #947dbc; }
.partner-dashboard .tone-green { --tone-bg: #def1e9; --tone-ink: #176c57; --tone-meter: #52a287; }

.dashboard-card,
.rollout-metric {
  min-width: 0;
  border: 1px solid var(--dashboard-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 5px #17314907;
}

.rollout-metric { padding: 16px 20px 17px; }
.rollout-metric-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rollout-metric-head strong { font-size: 38px; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }
.rollout-metric-label { display: block; margin-top: 8px; font-size: 16px; font-weight: 650; }
.rollout-meter { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; margin-top: 16px; }
.rollout-meter span { height: 4px; border-radius: 3px; background: #e8edf1; }
.rollout-meter .is-filled { background: var(--tone-meter); }

.dashboard-icon,
.portal-icon {
  display: inline-block;
  font: 400 22px/1 "Dashboard Symbols";
  font-feature-settings: "liga";
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.portal-icon {
  flex: none;
  inline-size: 1em;
  font-size: 18px;
  overflow: hidden;
  direction: ltr;
}

.table-wrap .portal-icon { font-size: 16px; }

.dashboard-icon-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--tone-ink);
  background: var(--tone-bg);
}

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

.dashboard-card { overflow: hidden; }
.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 19px 22px;
}

.dashboard-card-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.45px;
}

.partner-directory .dashboard-card-head .btn {
  border-color: #b8cbdc;
  background: #fff;
  color: var(--dashboard-ink);
  font-weight: 650;
}
.partner-directory .dashboard-card-head .btn:hover:not(:disabled) { background: #eff5fb; }

.directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 22px 16px;
}

.directory-search {
  position: relative;
  min-width: 0;
}
.directory-search > .dashboard-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--dashboard-muted);
}

.directory-filters input,
.directory-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #7a8796;
  border-radius: 8px;
  background: #fff;
  color: var(--dashboard-ink);
  font: inherit;
  font-size: 14px;
}
.directory-filters input { padding: 8px 12px 8px 40px; }
.directory-filters select { padding: 8px 10px; }
.directory-filters input::placeholder { color: var(--dashboard-muted); opacity: 1; }

.partner-directory-table th,
.partner-directory-table td {
  padding: 8px 12px;
  vertical-align: middle;
  border-color: #e4ebf1;
}
.partner-directory-table tr > :first-child { padding-left: 16px; }
.partner-directory-table tr > :last-child { padding-right: 16px; }
.partner-directory-table thead th {
  background: #f3f6f9;
  color: var(--dashboard-muted);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.partner-directory-table tbody th { background: transparent; font-weight: 400; color: var(--dashboard-ink); }
.partner-directory-table tbody tr:hover { background: #fafcff; }
.partner-directory-table tbody td small,
.directory-dealer small { display: block; margin-top: 3px; color: var(--dashboard-muted); font-size: 12px; }
.directory-dealer .directory-mobile-status { display: none; }
.directory-dealer { display: flex; gap: 8px; align-items: center; }
.directory-dealer .dashboard-icon-tile,
.directory-dealer .dealer-logo { width: 32px; height: 32px; border-radius: 8px; }
.directory-dealer .dashboard-icon { font-size: 19px; }
.directory-dealer small,
.directory-contact { overflow-wrap: anywhere; }

.directory-name {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dashboard-ink);
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.4;
  min-height: 34px;
}
.directory-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.directory-contact { color: #425970; }
.directory-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.directory-actions .btn { font-size: 12px; }

@media(max-width:760px),(pointer:coarse){
  .directory-name{min-height:44px}
}

.rollout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 4px 8px;
  background: var(--tone-bg);
  color: var(--tone-ink);
  font-size: 12px;
  font-weight: 700;
}
.rollout-pill::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 9px 18px 9px 22px;
  border-top: 1px solid #e4ebf1;
  color: var(--dashboard-muted);
  font-size: 13px;
}
.dashboard-card-foot .row { gap: 4px; }
.dashboard-card-foot .btn { border-color: transparent; padding: 6px 9px; min-height: 36px; font-size: 13px; }
.directory-empty { min-height: 132px; padding: 30px 18px; }
.directory-empty h3 { margin-bottom: 4px; color: var(--dashboard-ink); }

.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li { border-top: 1px solid #e4ebf1; }
.attention-list button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #fff;
  padding: 14px 18px 14px 22px;
  color: var(--dashboard-ink);
  text-align: left;
}
.attention-list button:hover { background: #f5f9fd; }
.attention-list button:focus-visible { outline-offset: -3px; }
.attention-list strong { font-size: 15px; }
.attention-list small { display: block; margin-top: 3px; color: var(--dashboard-muted); font-size: 13px; }
.attention-list button > .dashboard-icon { color: var(--dashboard-muted); }
.attention-list .dashboard-icon-tile { width: 36px; height: 36px; }
.dashboard-empty-attention { border-top: 1px solid #e4ebf1; padding: 16px 22px; color: var(--dashboard-muted); }

@media (max-width: 680px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(60px, 30%);
    grid-template-areas: "copy art";
    padding: 16px;
    gap: 12px 8px;
  }
  .dashboard-hero-art { height: 96px; }
  .dashboard-inner { gap: 16px; }
  .rollout-metrics { gap: 8px; }
  .rollout-metric { padding: 10px; }
  .rollout-metric-head { flex-wrap: wrap; }
  .rollout-metric-head strong { font-size: 28px; }
  .rollout-metric-label { font-size: 13px; }
  .rollout-metric .dashboard-icon-tile { width: 28px; height: 28px; }
  .rollout-metric .dashboard-icon { font-size: 18px; }
  .dashboard-card-head { padding-inline: 14px; flex-wrap: wrap; }
  .dashboard-card-head h2 { font-size: 20px; }
  .directory-filters { padding-inline: 14px; }
  .partner-directory-table tr > :first-child { padding-left: 14px; }
  .partner-directory-table tr > :last-child { padding-right: 8px; }
  .partner-directory-table th, .partner-directory-table td { padding-inline: 6px; }
  .directory-contact { display: none; }
  .directory-dealer .directory-mobile-status { display: block; }
  .directory-actions .btn { min-width: 0; }
  .dashboard-card-foot { padding-inline: 14px; }
}

@media (max-width: 440px) {
  .directory-dealer .dashboard-icon-tile { display: none; }
  .directory-name { font-size: 14px; }
  .directory-filters select { max-width: 132px; }
}

.partner-dashboard .page-head { margin: 0; }
