.parking-v2-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 40px;
  background:
    radial-gradient(circle at 8% 0%, rgba(37,99,235,.06), transparent 28rem),
    var(--bg);
}

.pv2-insights-source small { display: block; color: var(--text-muted, #667085); }
.pv2-insights-source { padding: 10px 2px 14px; font-size: 12px; }
.pv2-insights-filters input, .pv2-insights-filters select { min-width: 150px; }
.pv2-work-table progress { width: 100px; accent-color: #2563eb; }
@media (max-width: 720px) { .pv2-insights-filters label { width: 100%; } }

/* The original Appsmith/Superblocks leaderboard: stacked charts, then tables. */
.pv2-leaderboard { --pv2-chart-blue: #25bafa; min-width: 0; }
.pv2-leaderboard .pv2-insights-filters { border: 1px solid var(--border); border-radius: 4px; flex-wrap: wrap; }
.pv2-board-panel { margin-bottom: 16px; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.pv2-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.pv2-board-heading h2 { margin: 0; color: var(--text); font-size: 21px; font-weight: 600; line-height: 1.4; }
.pv2-board-search { width: 205px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; }
.pv2-board-scroll { overflow: auto; max-height: 480px; }
.pv2-board-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.pv2-board-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 600; text-transform: none; letter-spacing: normal; }
.pv2-board-table th, .pv2-board-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: top; }
.pv2-board-table th button { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pv2-board-table th button span { color: var(--text-muted); }
.pv2-board-table td strong { font-weight: 500; }
.pv2-board-table td small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.pv2-board-table tr:hover td { background: #f8fafc; }
.pv2-board-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 13px 20px; color: var(--text-muted); font-size: 12px; }
.pv2-board-window { margin: -5px 2px 16px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.pv2-board-panel > .pv2-board-window { margin: 0; padding: 0 20px 12px; }
.pv2-board-notice { margin: 0; padding: 8px 20px; color: #b42318; font-size: 12px; }
.pv2-board-periods { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 14px; }
.pv2-board-periods button { padding: 12px 10px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: inherit; cursor: pointer; }
.pv2-board-periods button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--pv2-chart-blue); }
.pv2-board-periods button:disabled { cursor: wait; opacity: .65; }
.pv2-chart-message { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; min-height: 150px; padding: 20px; color: var(--text-muted); font-size: 13px; }
.pv2-chart-scroll { overflow-x: auto; padding: 12px 20px 32px; }
.pv2-chart { display: flex; min-width: 640px; height: 136px; padding-top: 12px; }
.pv2-chart-scale { display: flex; flex-direction: column; justify-content: space-between; width: 32px; flex-shrink: 0; margin: -7px 8px -7px 0; color: var(--text-muted); font-size: 11px; text-align: right; }
.pv2-chart-plot { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e5eaf1 calc(25% - 1px), #e5eaf1 25%); }
.pv2-chart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--pv2-days), minmax(0, 1fr)); align-items: end; gap: 2px; }
.pv2-chart-day { position: relative; height: 100%; display: flex; align-items: flex-end; }
.pv2-chart-bar { position: relative; z-index: 1; width: 100%; min-height: 2px; border: 0; border-radius: 4px 4px 0 0; padding: 0; background: var(--pv2-chart-blue); cursor: default; }
.pv2-chart-bar span { display: none; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); background: #172b4d; color: white; padding: 3px 6px; border-radius: 3px; font-size: 11px; }
.pv2-chart-bar:hover span { display: block; }
.pv2-chart-day time { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--text-muted); font-size: 10px; }
.pv2-chart-day time.is-minor { display: none; }
.pv2-chart-goal { position: absolute; inset-inline: 0; z-index: 2; border-top: 1px dashed #64748b; pointer-events: none; }
.pv2-chart-goal span { position: absolute; right: 0; bottom: 1px; padding-left: 4px; background: var(--surface); color: #475569; font-size: 10px; }
.pv2-leaderboard :is(button, input, select, [tabindex="0"]):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (max-width: 720px) {
  .pv2-board-heading { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .pv2-board-heading h2 { font-size: 18px; }
  .pv2-board-search { width: 100%; }
  .pv2-board-table th, .pv2-board-table td { padding: 12px 14px; }
  .pv2-chart-scroll { padding-inline: 10px; }
  .pv2-board-footer { padding-inline: 14px; }
}

.pv2-hero,
.pv2-tabs,
.pv2-pane {
  width: min(1520px, 100%);
  margin-inline: auto;
}

.pv2-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.pv2-eyebrow,
.pv2-kicker {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pv2-hero h1 {
  margin: 4px 0 3px;
  font-size: 28px;
  line-height: 1.1;
}

.pv2-hero p,
.pv2-card-heading p,
.pv2-detail-heading p {
  color: var(--text-muted);
  font-size: 13px;
}

.pv2-hero-actions,
.pv2-heading-actions,
.pv2-listing-actions,
.pv2-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pv2-view-as {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.pv2-view-as select {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.pv2-acting-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.pv2-acting-badge[hidden] { display: none; }

.pv2-staged { margin-top: 16px; }

/* Publishes that never became Skybox listings, shown in Listings to publish. */
.pv2-attention { border-top: 1px solid var(--border); }
.pv2-attention > h3 { margin: 14px 18px 2px; font-size: 14px; }
.pv2-attention > h3 small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--red-bg); color: var(--red-ink); font-size: 11px; }
.pv2-attention > p { margin: 0 18px 8px; color: var(--text-muted); font-size: 12px; }
.pv2-attention-table td:last-child { text-align: right; white-space: nowrap; }
.pv2-attention-loading { margin: 10px 18px; color: var(--text-muted); font-size: 12px; }
.pv2-attention-more { margin: 8px 18px 12px; color: var(--text-muted); font-size: 12px; }

/* Exclusions multiselect: a chip that expands a checklist in place. */
.pv2-multi { min-width: 150px; }
.pv2-multi > summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234b5563' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  white-space: nowrap;
}
.pv2-multi > summary::-webkit-details-marker { display: none; }
.pv2-multi[open] > summary { border-color: var(--accent, #2563eb); }
.pv2-multi-menu {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.pv2-multi .pv2-multi-menu label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 28px; margin: 0; font-size: 13px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--text); white-space: nowrap; }
.pv2-multi .pv2-multi-menu label small { color: var(--text-muted); font-size: 11px; }
.pv2-multi .pv2-multi-menu input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent, #2563eb);
}
.pv2-builder-table td > .pv2-muted + .pv2-valid,
.pv2-builder-table td > small + .pv2-valid { display: block; margin-top: 2px; }
.pv2-multi-presets { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.pv2-multi-unknown { margin: 4px 0 0; color: var(--red-ink, #b91c1c); font-size: 12px; white-space: normal; }
.pv2-template-exclusions > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }

.pv2-builder-table .pv2-row-event {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.pv2-private-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pv2-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  width: max-content;
  max-width: 100%;
  box-shadow: var(--shadow);
}

.pv2-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: 700 13px var(--font);
  cursor: pointer;
}

.pv2-tab:hover { color: var(--text); }
.pv2-tab.active { background: var(--accent); color: white; box-shadow: var(--shadow); }
.pv2-tab span { min-width: 18px; padding: 1px 5px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 10px; text-align: center; }

.pv2-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pv2-card-heading,
.pv2-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--border);
}

.pv2-card-heading h2,
.pv2-detail-heading h2 {
  margin: 3px 0 2px;
  font-size: 20px;
  line-height: 1.2;
}

.pv2-updated {
  max-width: 290px;
  color: var(--text-faint);
  font-size: 11px;
  text-align: right;
}

.pv2-radar-layout {
  display: grid;
  grid-template-columns: minmax(430px, .85fr) minmax(560px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.pv2-radar-card,
.pv2-event-detail {
  min-height: 560px;
}

/* The previous detail stays under this badge while the next event loads, so the page keeps its height. */
.pv2-event-detail { position: relative; }
.pv2-detail-updating {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}
.pv2-detail-updating .spinner { flex: none; width: 14px; height: 14px; }
.pv2-detail-updating span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv2-detail-body.is-updating { opacity: .45; pointer-events: none; }

.pv2-filterbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}

.pv2-filterbar label,
.pv2-form-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pv2-filterbar label:first-child { flex: 1 1 auto; }
.pv2-filterbar label > span,
.pv2-form-grid label > span {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pv2-filterbar input,
.pv2-filterbar select,
.pv2-builder-table input,
.pv2-builder-table select,
.pv2-form-grid input,
.pv2-form-grid select,
.pv2-form-grid textarea,
.pv2-paste-panel textarea,
.pv2-price-input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 6px;
  background: white;
  color: var(--text);
  font: 13px var(--font);
  outline: none;
}

.pv2-filterbar input:focus,
.pv2-filterbar select:focus,
.pv2-builder-table input:focus,
.pv2-builder-table select:focus,
.pv2-form-grid input:focus,
.pv2-form-grid select:focus,
.pv2-form-grid textarea:focus,
.pv2-paste-panel textarea:focus,
.pv2-price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.pv2-event-list { max-height: 470px; overflow: auto; }
.pv2-radar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fbfcfe; color: var(--text-faint); font-size: 10px; }
.pv2-event-row {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: white;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pv2-event-row:hover { background: #f8faff; }
.pv2-event-row.active { background: var(--blue-bg); box-shadow: inset 3px 0 var(--accent); }
.pv2-event-score { display: grid; place-items: center; padding: 6px; border-radius: 7px; background: var(--surface-2); }
.pv2-event-score strong { font-size: 17px; }
.pv2-event-score small,
.pv2-event-main small,
.pv2-event-meta small,
.pv2-builder-table small,
.pv2-listings-table small,
.pv2-form-grid small { color: var(--text-faint); font-size: 10px; }
.pv2-event-main { display: grid; gap: 3px; min-width: 0; }
.pv2-event-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv2-event-meta { display: grid; gap: 5px; justify-items: end; }

.pv2-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.pv2-status.is-success, .is-success .pv2-status { color: var(--green-ink); background: var(--green-bg); border-color: var(--green-border); }
.pv2-status.is-warning, .is-warning .pv2-status { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-border); }
.pv2-status.is-danger, .is-danger .pv2-status { color: var(--red-ink); background: var(--red-bg); border-color: #fecaca; }

.pv2-detail-stats,
.pv2-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  padding: 14px 18px;
}
.pv2-detail-stats > div,
.pv2-review-summary > div {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}
.pv2-detail-stats span,
.pv2-review-summary span { display: block; color: var(--text-faint); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pv2-detail-stats strong,
.pv2-review-summary strong { display: block; margin-top: 3px; font-size: 19px; }
.pv2-detail-section { padding: 5px 18px 17px; }
.pv2-detail-section h3 { margin: 10px 0 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.pv2-table-wrap { width: 100%; overflow: auto; }
.pv2-compact-table,
.pv2-builder-table,
.pv2-listings-table { width: 100%; border-collapse: collapse; }
.pv2-compact-table th,
.pv2-compact-table td,
.pv2-builder-table th,
.pv2-builder-table td,
.pv2-listings-table th,
.pv2-listings-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pv2-compact-table th,
.pv2-builder-table th,
.pv2-listings-table th { position: sticky; top: 0; z-index: 1; background: #f7f8fa; color: var(--text-faint); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.pv2-builder-table { min-width: 1450px; }
.pv2-builder-table tr.has-error { background: rgba(254,242,242,.7); }
.pv2-builder-table tr.has-warning { background: rgba(255,251,235,.6); }
.pv2-builder-table td:first-child { min-width: 210px; }
.pv2-builder-table td:first-child small,
.pv2-listings-table td small { display: block; margin-top: 4px; }
.pv2-builder-table td:nth-child(2) { width: 110px; }
.pv2-builder-table td:nth-child(3) { width: 115px; }
.pv2-builder-table td:nth-child(4) { width: 70px; }
.pv2-builder-table td:nth-child(5),
.pv2-builder-table td:nth-child(6) { width: 115px; }
.pv2-builder-table td:nth-child(7) { width: 130px; }
.pv2-builder-table td:nth-child(8) { width: 160px; }
.pv2-builder-table td:nth-child(9) { min-width: 170px; }
.pv2-listings-table { min-width: 1050px; }
.pv2-listings-table td:first-child { min-width: 240px; }
.pv2-price-input { width: 105px; }

.pv2-observations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
}
.pv2-supply-meta { margin-bottom: 7px; color: var(--text-faint); font-size: 10px; }
.pv2-observation { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fbfcfe; }
.pv2-observation > div { display: grid; gap: 2px; min-width: 0; }
.pv2-observation.is-stale { border-color: var(--amber-border); background: var(--amber-bg); }
.pv2-observations span { font-size: 12px; }
.pv2-lot-link { color: var(--accent); text-decoration: none; }
.pv2-lot-link:hover, .pv2-lot-link:focus-visible { text-decoration: underline; }
.pv2-observations small { color: var(--text-faint); font-size: 10px; }
.pv2-history { margin-top: 3px; }
.pv2-history summary { color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.pv2-history svg { display: block; width: 160px; max-width: 100%; height: 36px; margin: 5px 0; border-radius: 5px; background: white; }
.pv2-history polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pv2-history-points { display: grid; gap: 3px; max-height: 120px; overflow: auto; }
.pv2-history-points span { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.pv2-history-points time { color: var(--text-faint); }

.pv2-empty,
.pv2-loading {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 210px;
  padding: 30px;
  color: var(--text-muted);
  text-align: center;
}
.pv2-empty strong { color: var(--text); font-size: 15px; }
.pv2-empty span { max-width: 440px; font-size: 12px; }
.pv2-empty.is-error strong, .pv2-empty.is-error span { color: var(--red); }
.pv2-detail-empty { min-height: 550px; }
.pv2-inline-empty { padding: 12px; border: 1px dashed var(--border); border-radius: 7px; color: var(--text-muted); font-size: 12px; }
.pv2-inline-empty.is-warning { border-color: var(--amber-border); color: var(--amber-ink); background: var(--amber-bg); }

.pv2-builder-heading { align-items: center; }
.pv2-builder-heading > div:first-child { max-width: 720px; }
.pv2-paste-panel { display: grid; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--blue-bg); }
.pv2-paste-panel label { display: grid; gap: 2px; }
.pv2-paste-panel label span { color: var(--text-muted); font-size: 11px; }
.pv2-paste-panel textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pv2-paste-panel > div { display: flex; gap: 8px; }
.pv2-builder-empty { min-height: 390px; }
.pv2-row-actions { flex-wrap: nowrap; }
.pv2-icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text-muted); font: 700 17px var(--font); cursor: pointer; }
.pv2-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.pv2-icon-btn.is-danger:hover { border-color: var(--red); color: var(--red); }
.pv2-muted { color: var(--text-faint); font-size: 11px; }
.pv2-valid { color: var(--green) !important; }
.pv2-row-messages { display: grid; gap: 3px; margin-top: 5px; }
.pv2-row-messages span { font-size: 10px; line-height: 1.25; }
.pv2-row-messages .is-error { color: var(--red); }
.pv2-row-messages .is-warning, .is-warning { color: var(--amber); }

.pv2-banner,
.pv2-batch {
  margin: 12px 18px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}
.pv2-banner.is-danger { color: var(--red-ink); border-color: #fecaca; background: var(--red-bg); }
.pv2-batch { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.pv2-batch > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pv2-batch > div:first-child small { overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.pv2-batch-results { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 6px; }
.pv2-batch-results span { display: grid; padding: 7px 8px; border: 1px solid var(--border); border-radius: 6px; background: white; }
.pv2-batch-results small { font-size: 10px; }

.pv2-sheet-backdrop { position: fixed; inset: 0; z-index: 139; background: rgba(15,23,42,.28); opacity: 0; pointer-events: none; transition: opacity .15s; }
.pv2-sheet-backdrop.visible { opacity: 1; pointer-events: auto; }
.pv2-sheet { position: fixed; z-index: 140; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(620px, 100vw); border-left: 1px solid rgba(37,99,235,.15); background: white; box-shadow: -12px 0 32px rgba(15,23,42,.12); transform: translateX(102%); transition: transform .15s; }
.pv2-sheet.open { transform: translateX(0); }
.pv2-sheet:not(.open) { visibility: hidden; pointer-events: none; }
.pv2-sheet > header { padding: 21px 22px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#f7faff,white); }
.pv2-sheet > header h2 { margin: 4px 0; font-size: 23px; }
.pv2-sheet > header p { color: var(--text-muted); font-size: 12px; }
.pv2-sheet-body { flex: 1 1 auto; overflow: auto; padding: 17px 22px 24px; }
.pv2-sheet > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: white; }
.pv2-review-summary { padding: 0 0 14px; }
.pv2-review-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 14px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 7px; }
.pv2-review-row.has-error { border-color: #fecaca; background: var(--red-bg); }
.pv2-review-row.has-warning { border-color: var(--amber-border); background: var(--amber-bg); }
.pv2-review-row > div { display: grid; }
.pv2-review-row > div:nth-child(2) { justify-items: end; }
.pv2-review-row span { color: var(--text-muted); font-size: 11px; }
.pv2-review-row .pv2-row-messages { grid-column: 1 / -1; }
.pv2-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pv2-convert-cost { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pv2-form-wide { grid-column: 1 / -1; }
.pv2-form-grid textarea { min-height: 88px; resize: vertical; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) {
  .pv2-radar-layout { grid-template-columns: 1fr; }
  .pv2-radar-card, .pv2-event-detail { min-height: 0; }
  .pv2-event-list { max-height: 430px; }
  .pv2-detail-empty { min-height: 230px; }
}

@media (max-width: 720px) {
  .parking-v2-view { padding: 16px 12px 30px; }
  .pv2-hero, .pv2-card-heading, .pv2-detail-heading { flex-direction: column; align-items: stretch; }
  .pv2-hero-actions, .pv2-heading-actions { justify-content: flex-start; }
  .pv2-tabs { width: 100%; overflow: auto; }
  .pv2-tab { flex: 1 0 auto; justify-content: center; }
  .pv2-filterbar { align-items: stretch; flex-direction: column; }
  .pv2-event-row { grid-template-columns: 48px minmax(0,1fr); }
  .pv2-event-meta { grid-column: 2; justify-items: start; }
  .pv2-detail-stats, .pv2-review-summary { grid-template-columns: 1fr 1fr; }
  .pv2-form-grid { grid-template-columns: 1fr; }
  .pv2-form-wide { grid-column: auto; }
  .pv2-sheet { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .pv2-sheet, .pv2-sheet-backdrop { transition: none; }
}
/* Appsmith parity: scan, select, and reuse listing details. */
.pv2-work-filters { flex-wrap: wrap; align-items: end; }
.pv2-work-filters label:first-child { flex: 2 1 200px; }
.pv2-work-filters label { flex: 1 1 130px; }
.pv2-work-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.pv2-work-table th, .pv2-work-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border, #e5e7eb); vertical-align: top; }
.pv2-work-table th { font-size: 11px; color: var(--text-muted, #667085); }
.pv2-work-table small, .pv2-work-table strong { display: block; }
.pv2-work-table small { margin-top: 3px; color: var(--text-muted, #667085); }
.pv2-work-table input[type="number"] { width: 88px; }
.pv2-work-table input[type="checkbox"] { width: 18px; height: 18px; }
.pv2-work-selection, .pv2-work-footer, .pv2-work-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 0; }
.pv2-work-footer { justify-content: space-between; color: var(--text-muted, #667085); font-size: 12px; }
.pv2-work-template { padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--border, #e5e7eb); }
.pv2-work-template > p, .pv2-work-template > small { display: block; color: var(--text-muted, #667085); margin: 8px 0 12px; }
.pv2-work-template .pv2-form-grid { margin: 12px 0; }
.pv2-venue-summary { padding: 10px; background: var(--bg, #f8f9fb); border-radius: 8px; }
.pv2-venue-summary summary { cursor: pointer; }
.pv2-venue-summary p { margin: 8px 0; }
.pv2-warning { color: #92400e; }
.pv2-tabs { flex-wrap: wrap; }
.pv2-work-table .pv2-row-actions { flex-wrap: wrap; min-width: 200px; }
.pv2-work-links { border-top: 1px solid var(--border, #e5e7eb); margin-top: 12px; }
@media (max-width: 720px) {
  .pv2-work-filters { align-items: stretch; }
  .pv2-work-filters label, .pv2-work-filters label:first-child { flex: 0 0 auto; width: 100%; }
  .pv2-work-template .pv2-form-grid { grid-template-columns: 1fr; }
}

.pv2-purchase-entry { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--border, #e5e7eb); }
.pv2-purchase-entry > p, .pv2-purchase-event > p { color: var(--text-muted, #667085); margin: 8px 0; font-size: 12px; }
.pv2-purchase-event { padding: 16px; margin: 12px 0; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; }
.pv2-purchase-event h4 { margin: 0; }
.pv2-purchase-event h4 small { display: block; margin-top: 4px; color: var(--text-muted, #667085); font-weight: 400; }
.pv2-purchase-summary { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.pv2-purchase-summary summary { cursor: pointer; font-weight: 600; }
.pv2-purchase-summary p { margin: 6px 0; }

/* Walking column (Stage lot fills it from our records; empty means look it up). */
.pv2-walk-fields { display: flex; align-items: center; gap: 4px; }
.pv2-walk-fields input { width: 58px !important; min-width: 0; }
.pv2-walk-fields span { color: var(--text-faint); font-size: 10px; }
.pv2-builder-table input.pv2-walk-auto { background: var(--blue-bg); border-color: var(--blue-border); }
.pv2-builder-table input.pv2-walk-need { background: var(--amber-bg); border-color: var(--amber); border-style: dashed; }
.pv2-walk-note { display: block; margin-top: 3px; color: var(--text-faint); font-size: 10px; }
.pv2-walk-note.is-need { color: var(--amber-ink); font-weight: 600; }
.pv2-walk-note.is-need a { color: var(--accent); font-weight: 600; }
.pv2-walk-tag { display: inline-block; padding: 0 5px; border-radius: 999px; background: var(--blue-bg); border: 1px solid var(--blue-border); color: var(--accent); font-weight: 700; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.pv2-walk-count { color: var(--amber-ink); background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 600; }
.pv2-observations small.pv2-walk-onfile { color: var(--green-ink); font-weight: 600; }
.pv2-observations small.pv2-walk-missing { color: var(--amber-ink); font-weight: 600; }
.pv2-builder-table td:nth-child(8) { min-width: 190px; }

/* Supply observations: straight-line distance sort and cap. */
.pv2-supply-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.pv2-supply-toolbar label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-faint); }
.pv2-supply-toolbar select { font: 12px var(--font); padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.pv2-supply-toolbar small { color: var(--text-faint); font-size: 10px; }

/* Generic passes: a walk time or distance instead of a lot. */
.pv2-generic-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.pv2-generic-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-faint); }
.pv2-generic-form input { width: 90px; }
.pv2-generic-preview { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.pv2-generic-preview small { color: var(--text-faint); font-size: 11px; }
.pv2-generic-preview small.pv2-warning { color: var(--amber-ink); font-weight: 600; }
.pv2-generic-value { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--text-faint); font-size: 10px; }
.pv2-generic-value input { width: 70px !important; min-width: 0; }
