@charset "UTF-8";

:root {
  --admin-blue: #c72931;
  --admin-blue-dark: #a31f27;
  --admin-blue-light: #fbeaeb;
  --admin-cyan: #f5cfd1;
  --admin-ink: #202124;
  --admin-subtle: #5f6368;
  --admin-muted: #80868b;
  --admin-border: #dadce0;
  --admin-line: #e8eaed;
  --admin-surface: #fff;
  --admin-bg: #f8fafd;
  --admin-green: #188038;
  --admin-green-bg: #e6f4ea;
  --admin-yellow: #b06000;
  --admin-yellow-bg: #fef7e0;
  --admin-red: #d93025;
  --admin-red-bg: #fce8e6;
  --admin-radius: 8px;
  --admin-shadow: 0 1px 2px rgba(60, 64, 67, .15), 0 1px 3px 1px rgba(60, 64, 67, .08);
  font-family: Roboto, "Arial", sans-serif;
  color: var(--admin-ink);
  background: var(--admin-bg);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--admin-bg); }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  padding: 10px 16px; color: #fff; background: var(--admin-blue); border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.admin-shell { min-height: 100vh; }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center;
  height: 64px; padding: 0 24px 0 16px; background: #fff; border-bottom: 1px solid var(--admin-line);
}
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; color: #5f6368; background: transparent; border: 0;
  border-radius: 50%; font-size: 18px; transition: background .15s, color .15s;
}
.icon-button:hover { color: var(--admin-ink); background: #f1f3f4; }
.topbar__menu { margin-right: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand__mark {
  display: grid; width: 31px; height: 31px; place-items: center; color: #fff;
  background: var(--admin-blue); border-radius: 8px; font-size: 18px;
}
.brand__name { color: #5f6368; font-size: 22px; font-weight: 500; letter-spacing: -.5px; }
.brand__admin { margin: 2px 0 0 -4px; color: #5f6368; font-size: 17px; font-weight: 400; }
.global-search {
  position: relative; display: flex; align-items: center; gap: 12px; width: min(100%, 620px);
  height: 46px; margin: 0 auto; padding: 0 14px; color: var(--admin-subtle);
  background: #f1f3f4; border: 1px solid transparent; border-radius: 8px;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.global-search:focus-within { background: #fff; border-color: var(--admin-border); box-shadow: var(--admin-shadow); }
.global-search > i { font-size: 17px; }
.global-search__mobile-trigger { display: none; }
.global-search input { flex: 1; min-width: 0; padding: 0; color: var(--admin-ink); background: transparent; border: 0; outline: 0; font-size: 16px; }
.global-search input::placeholder { color: #5f6368; opacity: 1; }
.global-search kbd { padding: 2px 5px; color: #5f6368; background: #fff; border: 1px solid #dadce0; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.global-search__results {
  position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 50; padding: 8px;
  background: #fff; border: 1px solid var(--admin-line); border-radius: 8px; box-shadow: var(--admin-shadow);
}
.global-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; text-align: left; background: #fff; border: 0; border-radius: 6px; }
.global-result:hover { background: #f1f3f4; }
.global-result img { width: 42px; height: 30px; object-fit: cover; border-radius: 4px; }
.global-result__copy { display: grid; gap: 3px; }
.global-result__copy strong { font-size: 15px; font-weight: 500; }
.global-result__copy small { color: var(--admin-subtle); font-size: 14px; }
.global-result-empty { padding: 12px; color: var(--admin-subtle); font-size: 15px; }
.topbar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar__help, .topbar__notifications { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: #ea4335; border: 1px solid #fff; border-radius: 50%; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 3px 0 3px 8px; color: #5f6368; background: transparent; border: 0; }
.profile-button > i { font-size: 12px; }
.profile-name { color: #3c4043; font-size: 15px; }
.profile-avatar { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: #8e24aa; border-radius: 50%; font-size: 14px; font-weight: 500; }

.admin-body { display: flex; min-height: 100vh; padding-top: 64px; }
.sidebar {
  position: fixed; inset: 64px auto 0 0; z-index: 20; display: flex; flex-direction: column;
  width: 256px; padding: 16px 12px 12px; overflow-x: hidden; overflow-y: auto;
  background: #fff; border-right: 1px solid var(--admin-line); transition: transform .2s ease, width .2s ease;
}
.sidebar__top { padding: 0 8px 12px; }
.dealer-switcher { display: flex; align-items: center; width: 100%; gap: 10px; padding: 9px 8px; text-align: left; background: #fff; border: 0; border-radius: 8px; }
.dealer-switcher:hover { background: #f8f9fa; }
.dealer-switcher__logo { display: grid; width: 36px; height: 36px; place-items: center; color: #8c1b22; background: #fbeaeb; border: 1px solid #f5cfd1; border-radius: 8px; font-size: 20px; font-weight: 600; }
.dealer-switcher__copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.dealer-switcher__copy strong { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dealer-switcher__copy small { color: var(--admin-subtle); font-size: 13px; }
.dealer-switcher > i { color: var(--admin-subtle); font-size: 13px; }
.create-button {
  display: flex; align-items: center; gap: 12px; height: 40px; margin: 12px 0 7px; padding: 0 15px;
  color: #3c4043; background: #fff; border: 1px solid var(--admin-border); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .18); font-weight: 500; transition: box-shadow .15s, background .15s;
}
.create-button:hover { background: #f8f9fa; box-shadow: 0 2px 4px rgba(60, 64, 67, .2); }
.create-button > i:first-child { color: var(--admin-blue); font-size: 17px; }
.create-button__chevron { margin-left: 3px; color: var(--admin-subtle); font-size: 12px; }
.side-nav { padding: 2px 0 12px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 0 14px; color: #3c4043; border-radius: 0 22px 22px 0; font-size: 15px; transition: color .15s, background .15s; }
.nav-link > i { width: 18px; color: #5f6368; text-align: center; font-size: 16px; }
.nav-link:hover { color: #8c1b22; background: #f1f3f4; }
.nav-link[aria-current="page"] { color: #8c1b22; background: #fbeaeb; font-weight: 500; }
.nav-link[aria-current="page"] > i { color: #c72931; }
.nav-count { margin-left: auto; padding: 2px 7px; color: #5f6368; background: #f1f3f4; border-radius: 10px; font-size: 13px; }
.nav-count--alert { color: #8c1b22; background: #f5cfd1; }
.nav-group { margin-top: 7px; }
.nav-group__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 14px 7px; color: #5f6368; background: transparent; border: 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.nav-group__toggle > i { font-size: 12px; transition: transform .15s; }
.nav-group.is-collapsed .nav-group__toggle > i { transform: rotate(-90deg); }
.nav-group.is-collapsed .nav-link { display: none; }
.sidebar__bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--admin-line); }
.sidebar__bottom .nav-link { border-radius: 22px; }
.sidebar__version { display: flex; justify-content: space-between; margin: 14px 14px 0; color: var(--admin-muted); font-size: 13px; }
.sidebar__version span { color: #c72931; }
.sidebar-scrim { display: none; }

.workspace { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: calc(100vh - 64px); margin-left: 256px; padding: 28px 36px 0; transition: margin .2s ease; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 auto 24px; width: min(100%, 1440px); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--admin-subtle); font-size: 14px; }
.breadcrumbs a:hover { color: var(--admin-blue); text-decoration: underline; }
.breadcrumbs i { color: #bdc1c6; font-size: 12px; }
.page-title { margin: 0; color: #202124; font-size: 30px; font-weight: 400; letter-spacing: -.4px; line-height: 1.25; }
.page-subtitle { margin: 7px 0 0; color: var(--admin-subtle); font-size: 15px; line-height: 1.5; }
.page-header__actions { display: flex; align-items: center; gap: 10px; padding-top: 23px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 11px; color: #c72931; background: transparent; border: 0; border-radius: 4px; font-size: 15px; font-weight: 500; }
.text-button:hover { background: #f1f3f4; }
.primary-button, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px;
  padding: 0 16px; border-radius: 4px; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.primary-button { color: #fff; background: var(--admin-blue); border: 1px solid var(--admin-blue); box-shadow: 0 1px 2px rgba(60, 64, 67, .2); }
.primary-button:hover { background: var(--admin-blue-dark); border-color: var(--admin-blue-dark); box-shadow: 0 2px 4px rgba(60, 64, 67, .2); }
.outline-button { color: #c72931; background: #fff; border: 1px solid var(--admin-border); }
.outline-button:hover { background: #fdf5f5; border-color: #e9a3a7; }
.small-button { min-height: 30px; padding: 0 10px; font-size: 14px; }
.view-content { width: min(100%, 1440px); margin: 0 auto 28px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 18px; width: min(100%, 1440px); margin: auto auto 0; padding: 20px 0 22px; color: #80868b; border-top: 1px solid var(--admin-line); font-size: 13px; }
.workspace-footer > span:last-child { display: flex; gap: 20px; }
.workspace-footer a:hover { color: var(--admin-blue); text-decoration: underline; }

.card { min-width: 0; background: #fff; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); }
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 20px 14px; }
.card__title { margin: 0; color: #202124; font-size: 18px; font-weight: 500; line-height: 1.4; }
.card__subtitle { margin: 4px 0 0; color: var(--admin-subtle); font-size: 14px; line-height: 1.45; }
.card__body { padding: 0 20px 20px; }
.card__link { display: inline-flex; align-items: center; gap: 7px; color: #c72931; font-size: 14px; font-weight: 500; white-space: nowrap; }
.card__link:hover { text-decoration: underline; }
.card__menu { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #5f6368; background: transparent; border: 0; border-radius: 50%; }
.card__menu:hover { background: #f1f3f4; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { min-height: 122px; padding: 17px 19px; }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--admin-subtle); font-size: 14px; }
.stat-card__icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--admin-blue); background: #fbeaeb; border-radius: 50%; font-size: 15px; }
.stat-card__value { margin-top: 10px; color: #202124; font-size: 28px; font-weight: 400; letter-spacing: -.5px; line-height: 1.1; }
.stat-card__meta { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--admin-subtle); font-size: 13px; }
.trend-up { color: var(--admin-green); font-weight: 500; }
.trend-down { color: var(--admin-red); font-weight: 500; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 18px; }
.dashboard-stack { display: grid; align-content: start; gap: 18px; min-width: 0; }
.chart-card { min-height: 300px; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: var(--admin-subtle); font-size: 13px; }
.chart-legend__dot { width: 8px; height: 8px; background: var(--admin-blue); border-radius: 50%; }
.sales-chart { width: 100%; height: 194px; overflow: visible; }
.sales-chart text { fill: #80868b; font: 10px Roboto, Arial, sans-serif; }
.sales-chart__grid { stroke: #e8eaed; stroke-width: 1; }
.sales-chart__area { fill: url(#sales-gradient); }
.sales-chart__line { fill: none; stroke: #c72931; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.sales-chart__point { fill: #fff; stroke: #c72931; stroke-width: 2; }
.metric-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--admin-line); font-size: 14px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row span:first-child { color: var(--admin-subtle); }
.metric-row strong { font-weight: 500; }
.task-list { display: grid; gap: 1px; }
.task-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--admin-line); }
.task-item:last-child { border-bottom: 0; }
.task-item__icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #c72931; background: #fbeaeb; border-radius: 50%; font-size: 14px; }
.task-item__copy { flex: 1; min-width: 0; }
.task-item__copy strong { display: block; margin: 1px 0 4px; font-size: 14px; font-weight: 500; }
.task-item__copy small { display: block; color: var(--admin-subtle); font-size: 13px; line-height: 1.45; }
.task-item__arrow { margin-top: 7px; color: var(--admin-muted); font-size: 13px; }
.activity-card { margin-top: 18px; }
.activity-list { display: grid; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--admin-line); }
.activity-row img { width: 66px; height: 44px; object-fit: cover; background: #f1f3f4; border-radius: 5px; }
.activity-row__copy { display: grid; flex: 1; gap: 4px; min-width: 0; }
.activity-row__copy strong { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.activity-row__copy small { color: var(--admin-subtle); font-size: 13px; }
.activity-row__price { color: #3c4043; font-size: 14px; font-weight: 500; white-space: nowrap; }
.progress-track { height: 7px; overflow: hidden; background: #e8eaed; border-radius: 5px; }
.progress-track span { display: block; height: 100%; background: var(--admin-blue); border-radius: inherit; }
.progress-track--100 span { width: 100%; }
.progress-track--74 span { width: 74%; }
.progress-track--44 span { width: 44%; }
.progress-track--17 span { width: 17%; }
.funnel-item { display: grid; gap: 8px; padding: 10px 0; }
.funnel-item__label { display: flex; justify-content: space-between; color: var(--admin-subtle); font-size: 14px; }
.funnel-item__label strong { color: var(--admin-ink); font-weight: 500; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--admin-line); }
.table-search { position: relative; flex: 1 1 220px; max-width: 340px; }
.table-search > i { position: absolute; top: 50%; left: 12px; color: #80868b; transform: translateY(-50%); font-size: 15px; }
.table-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; color: var(--admin-ink); background: #fff; border: 1px solid var(--admin-border); border-radius: 4px; font-size: 14px; }
.table-search input:focus { border-color: #c72931; outline: 1px solid #c72931; }
.filter-select { height: 36px; padding: 0 29px 0 10px; color: #3c4043; background: #fff; border: 1px solid var(--admin-border); border-radius: 4px; font-size: 14px; }
.toolbar__spacer { flex: 1; }
.table-count { color: var(--admin-subtle); font-size: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; text-align: left; }
.data-table th { height: 42px; padding: 0 13px; color: #5f6368; background: #fff; border-bottom: 1px solid var(--admin-line); font-size: 12px; font-weight: 500; letter-spacing: .35px; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 60px; padding: 8px 13px; border-bottom: 1px solid var(--admin-line); color: #3c4043; font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdf5f5; }
.empty-table-state td { height: 90px; color: var(--admin-subtle); text-align: center; }
.data-table__primary { display: flex; align-items: center; gap: 11px; min-width: 185px; }
.data-table__primary img { width: 57px; height: 39px; flex: 0 0 auto; object-fit: cover; background: #f1f3f4; border-radius: 4px; }
.data-table__copy { display: grid; gap: 4px; min-width: 0; }
.data-table__copy strong { color: #202124; font-size: 14px; font-weight: 500; }
.data-table__copy small { color: var(--admin-subtle); font-size: 13px; }
.person-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.person-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: #8c1b22; background: #fbeaeb; border-radius: 50%; font-size: 12px; font-weight: 500; }
.person-avatar--teal { color: #00796b; background: #e0f2f1; }
.person-avatar--pink { color: #a142f4; background: #f3e8fd; }
.person-avatar--orange { color: #b06000; background: #fef7e0; }
.person-copy { display: grid; gap: 4px; }
.person-copy strong { color: #202124; font-weight: 500; }
.person-copy small { color: var(--admin-subtle); font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-pill::before { width: 6px; height: 6px; background: currentColor; border-radius: 50%; content: ""; }
.status-pill--available, .status-pill--completed, .status-pill--won, .status-pill--active, .status-pill--approved, .status-pill--paid { color: var(--admin-green); background: var(--admin-green-bg); }
.status-pill--new, .status-pill--scheduled, .status-pill--pending, .status-pill--reserved, .status-pill--in-progress { color: var(--admin-yellow); background: var(--admin-yellow-bg); }
.status-pill--sold, .status-pill--lost, .status-pill--cancelled, .status-pill--inactive, .status-pill--declined { color: var(--admin-red); background: var(--admin-red-bg); }
.status-pill--contacted, .status-pill--qualified, .status-pill--on-lot, .status-pill--draft, .status-pill--confirmed, .status-pill--finance { color: #1967d2; background: #fbeaeb; }
.table-action { display: grid; width: 30px; height: 30px; place-items: center; color: #5f6368; background: transparent; border: 0; border-radius: 50%; }
.table-action:hover { color: #202124; background: #f1f3f4; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 51px; padding: 0 16px; color: var(--admin-subtle); border-top: 1px solid var(--admin-line); font-size: 13px; }
.table-footer__controls { display: flex; align-items: center; gap: 6px; }
.table-footer button { display: grid; width: 28px; height: 28px; place-items: center; color: #5f6368; background: #fff; border: 1px solid var(--admin-border); border-radius: 4px; }
.table-footer button:disabled { color: #bdc1c6; cursor: default; }
.empty-state { padding: 45px 20px; text-align: center; }
.empty-state i { color: #9aa0a6; font-size: 30px; }
.empty-state h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--admin-subtle); font-size: 14px; }

.filter-tabs { display: flex; gap: 3px; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--admin-line); }
.filter-tab { position: relative; padding: 13px 12px; color: var(--admin-subtle); background: transparent; border: 0; font-size: 14px; white-space: nowrap; }
.filter-tab:hover { color: var(--admin-blue); }
.filter-tab.is-active { color: #c72931; font-weight: 500; }
.filter-tab.is-active::after { position: absolute; inset: auto 8px -1px; height: 3px; background: var(--admin-blue); border-radius: 3px 3px 0 0; content: ""; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; background: #fff; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); }
.summary-item { padding: 16px 20px; border-right: 1px solid var(--admin-line); }
.summary-item:last-child { border-right: 0; }
.summary-item small { display: block; color: var(--admin-subtle); font-size: 13px; }
.summary-item strong { display: block; margin-top: 7px; color: #202124; font-size: 22px; font-weight: 400; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid--wide { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); }
.content-card { min-height: 150px; padding: 19px; }
.content-card__icon { display: grid; width: 38px; height: 38px; place-items: center; color: #c72931; background: #fbeaeb; border-radius: 50%; font-size: 17px; }
.content-card h3 { margin: 15px 0 5px; font-size: 16px; font-weight: 500; }
.content-card p { margin: 0; color: var(--admin-subtle); font-size: 14px; line-height: 1.5; }
.content-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.content-card__foot strong { font-size: 14px; font-weight: 500; }
.mini-chart { width: 100%; height: 85px; margin-top: 12px; }
.mini-chart polyline { fill: none; stroke: #c72931; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini-chart line { stroke: #e8eaed; stroke-width: 1; }
.location-card { position: relative; min-height: 196px; overflow: hidden; background: #eaf2f8; }
.location-card__map { position: absolute; inset: 0; opacity: .75; background-image: linear-gradient(35deg, transparent 45%, #fff 46%, #fff 48%, transparent 49%), linear-gradient(135deg, transparent 37%, #f5cfd1 38%, #f5cfd1 41%, transparent 42%), repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.9) 31px 34px), repeating-linear-gradient(90deg, transparent 0 44px, rgba(255,255,255,.85) 45px 48px); }
.location-pin { position: absolute; top: 42%; left: 54%; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #c72931; border: 3px solid #fff; border-radius: 50% 50% 50% 5px; box-shadow: var(--admin-shadow); transform: rotate(-45deg); }
.location-pin i { transform: rotate(45deg); font-size: 16px; }
.settings-nav { display: grid; gap: 4px; }
.settings-panel-stack { min-width: 0; }
.settings-link { display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: #3c4043; background: #fff; border: 1px solid var(--admin-line); border-radius: 6px; font-size: 14px; }
.settings-link:hover, .settings-link.is-active { color: #8c1b22; background: #fdf5f5; border-color: #e9a3a7; }
.settings-link i { width: 17px; color: #5f6368; text-align: center; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: #3c4043; font-size: 14px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 38px; padding: 9px 11px; color: #202124; background: #fff; border: 1px solid var(--admin-border); border-radius: 4px; font-size: 14px; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--admin-blue); outline: 1px solid var(--admin-blue); }
.form-hint { color: var(--admin-subtle); font-size: 13px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: #3c4043; font-size: 14px; line-height: 1.5; }
.check-row input { margin-top: 2px; accent-color: var(--admin-blue); }
.report-card { display: flex; flex-direction: column; min-height: 174px; padding: 19px; }
.report-card__top { display: flex; align-items: center; justify-content: space-between; }
.report-card__icon { display: grid; width: 36px; height: 36px; place-items: center; color: #c72931; background: #fbeaeb; border-radius: 50%; }
.report-card h3 { margin: 15px 0 5px; font-size: 16px; font-weight: 500; }
.report-card p { margin: 0; color: var(--admin-subtle); font-size: 14px; line-height: 1.5; }
.report-card__action { margin-top: auto; padding-top: 16px; }
.simple-list { display: grid; }
.simple-list__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--admin-line); font-size: 14px; }
.simple-list__row:first-child { border-top: 0; }
.simple-list__row span { color: var(--admin-subtle); }
.simple-list__row strong { font-weight: 500; text-align: right; }
.approval-rate { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.approval-ring { display: grid; width: 76px; height: 76px; flex: 0 0 auto; place-items: center; background: conic-gradient(#c72931 0 82%, #e8eaed 82% 100%); border-radius: 50%; }
.approval-ring { position: relative; }
.approval-ring::before { width: 58px; height: 58px; background: #fff; border-radius: 50%; content: ""; }
.approval-ring strong { position: absolute; font-size: 18px; font-weight: 500; }
.approval-copy strong { display: block; font-size: 15px; font-weight: 500; }
.approval-copy small { display: block; margin-top: 5px; color: var(--admin-subtle); font-size: 13px; line-height: 1.45; }
.marketing-card-grid { margin-bottom: 16px; }
.report-toolbar { margin-bottom: 16px; }
.location-details { padding-top: 16px; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 16px; color: #fff; background: #323639; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.22); font-size: 15px; animation: toast-in .18s ease-out; }
.toast i { color: #81c995; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-root:empty { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(32, 33, 36, .42); }
.modal { width: min(100%, 620px); max-height: min(90vh, 850px); overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--admin-line); }
.modal__header h2 { margin: 0; font-size: 21px; font-weight: 400; }
.modal__body { padding: 20px 24px; }
.modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--admin-line); }
.modal__close { display: grid; width: 34px; height: 34px; place-items: center; color: #5f6368; background: transparent; border: 0; border-radius: 50%; }
.modal__close:hover { background: #f1f3f4; }
.menu-popover { position: fixed; z-index: 60; display: grid; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--admin-line); border-radius: 7px; box-shadow: var(--admin-shadow); }
.menu-popover { top: 72px; right: 18px; }
.menu-popover button { padding: 10px 12px; text-align: left; color: #3c4043; background: transparent; border: 0; border-radius: 4px; font-size: 14px; }
.menu-popover button:hover { background: #f1f3f4; }

.sidebar-is-collapsed .sidebar { width: 72px; padding-right: 8px; padding-left: 8px; }
.sidebar-is-collapsed .workspace { margin-left: 72px; }
.sidebar-is-collapsed .dealer-switcher__copy,
.sidebar-is-collapsed .dealer-switcher > i,
.sidebar-is-collapsed .create-button span,
.sidebar-is-collapsed .create-button__chevron,
.sidebar-is-collapsed .nav-link span,
.sidebar-is-collapsed .nav-group__toggle,
.sidebar-is-collapsed .sidebar__version { display: none; }
.sidebar-is-collapsed .dealer-switcher { justify-content: center; padding: 8px 0; }
.sidebar-is-collapsed .create-button { justify-content: center; width: 44px; padding: 0; margin-right: auto; margin-left: auto; border-radius: 50%; }
.sidebar-is-collapsed .nav-link { justify-content: center; padding: 0; border-radius: 50%; }
.sidebar-is-collapsed .nav-link > i { width: auto; }
.sidebar-is-collapsed .sidebar__bottom .nav-link { border-radius: 50%; }

@media (max-width: 1120px) {
  .workspace { padding-right: 24px; padding-left: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
  .content-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { z-index: 45; transform: translateX(-100%); box-shadow: 4px 0 18px rgba(60,64,67,.12); }
  .sidebar-is-mobile-open .sidebar { transform: translateX(0); }
  .sidebar-is-mobile-open .sidebar-scrim { position: fixed; inset: 64px 0 0; z-index: 40; display: block; background: rgba(32,33,36,.32); }
  .workspace, .sidebar-is-collapsed .workspace { margin-left: 0; }
  .sidebar-is-collapsed .sidebar { width: 256px; padding: 16px 12px 12px; }
  .sidebar-is-collapsed .dealer-switcher__copy, .sidebar-is-collapsed .dealer-switcher > i,
  .sidebar-is-collapsed .create-button span, .sidebar-is-collapsed .create-button__chevron,
  .sidebar-is-collapsed .nav-link span, .sidebar-is-collapsed .nav-group__toggle,
  .sidebar-is-collapsed .sidebar__version { display: revert; }
  .sidebar-is-collapsed .dealer-switcher { justify-content: flex-start; padding: 9px 8px; }
  .sidebar-is-collapsed .create-button { justify-content: flex-start; width: auto; padding: 0 15px; margin: 12px 0 7px; border-radius: 24px; }
  .sidebar-is-collapsed .nav-link { justify-content: flex-start; padding: 0 14px; border-radius: 0 22px 22px 0; }
  .sidebar-is-collapsed .nav-link > i { width: 18px; }
  .sidebar-is-collapsed .sidebar__bottom .nav-link { border-radius: 22px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid--wide { grid-template-columns: 1fr; }
  .topbar { padding-right: 16px; }
  .global-search { margin: 0 20px; }
}
@media (max-width: 640px) {
  .topbar { height: 58px; padding: 0 10px; }
  .topbar__menu { margin-right: 4px; }
  .brand { gap: 6px; }
  .brand__name { font-size: 20px; }
  .brand__admin { font-size: 15px; }
  .brand__mark { width: 28px; height: 28px; font-size: 16px; }
  .global-search { position: static; width: 40px; height: 40px; justify-content: center; margin: 0 0 0 auto; padding: 0; background: transparent; border: 0; }
  .global-search > i { display: none; }
  .global-search__mobile-trigger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #5f6368; background: transparent; border: 0; border-radius: 50%; }
  .global-search__mobile-trigger:hover { background: #f1f3f4; }
  .global-search.is-open .global-search__mobile-trigger { display: inline-flex; }
  .global-search input, .global-search kbd { display: none; }
  .global-search:focus-within { background: transparent; border: 0; box-shadow: none; }
  .global-search.is-open { position: absolute; inset: 0 0 auto 0; z-index: 35; display: flex; width: 100%; height: 58px; justify-content: flex-start; padding: 0 14px; background: #fff; border: 0; }
  .global-search.is-open input { display: block; }
  .global-search.is-open kbd { display: none; }
  .global-search__results { position: fixed; top: 58px; right: 8px; left: 8px; }
  .topbar__actions { gap: 0; margin-left: 0; }
  .topbar__help { display: none; }
  .profile-button { padding-left: 4px; }
  .profile-name, .profile-button > i { display: none; }
  .profile-avatar { width: 30px; height: 30px; }
  .admin-body { padding-top: 58px; }
  .sidebar { top: 58px; width: min(290px, 84vw); }
  .sidebar-is-mobile-open .sidebar-scrim { top: 58px; }
  .workspace { min-height: calc(100vh - 58px); padding: 22px 14px 0; }
  .page-header { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .page-header__actions { padding-top: 0; }
  .page-title { font-size: 26px; }
  .page-subtitle { font-size: 14px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-card__value { font-size: 25px; }
  .dashboard-stack { grid-template-columns: 1fr; }
  .dashboard-grid, .content-grid, .content-grid--three, .content-grid--wide { grid-template-columns: 1fr; gap: 12px; }
  .card__header { padding: 16px 15px 12px; }
  .card__body { padding: 0 15px 16px; }
  .toolbar { gap: 8px; padding: 11px; }
  .table-search { flex-basis: 100%; max-width: none; }
  .toolbar__spacer { display: none; }
  .table-count { margin-left: auto; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item { padding: 13px 15px; }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(1), .summary-item:nth-child(2) { border-bottom: 1px solid var(--admin-line); }
  .settings-form { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .workspace-footer { flex-direction: column; gap: 10px; padding: 16px 0; }
  .workspace-footer > span:last-child { gap: 16px; }
  .modal-root { padding: 10px; }
  .modal__header, .modal__body { padding-right: 17px; padding-left: 17px; }
  .modal__footer { padding-right: 17px; padding-left: 17px; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }
  .toast { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; animation-duration: .01ms; transition-duration: .01ms; }
}
