/* تعديلات الجلسة — يُحمّل بعد admin.css ولا يتأثر بـ merge-admin-css */

/* ── ألوان عامة ── */
html[data-theme="light"] {
  --dash-bg: #E9EEF3;
  --dash-bg-subtle: #E9EEF3;
}

body.dash-shell-yt,
.dash-app.dash-shell-yt {
  --dash-topbar-h: 40px;
  --dash-header-bg: transparent;
  --dash-yt-chrome-bg: #E9EEF3;
  --dash-yt-sidebar-bg: #E9EEF3;
  --dash-yt-header-bg: #E9EEF3;
  --dash-yt-header-line: transparent;
  --dash-yt-canvas-bg: #E9EEF3;
  --dash-yt-surface-bg: #ffffff;
  background: #E9EEF3 !important;
}

/* ── هيدر شفاف ── */
body.dash-shell-yt .dash-top-chrome,
body.dash-shell-yt .dash-topbar-toolbar,
body.dash-shell-yt .dash-topbar-search-row,
body.dash-shell-yt .dash-topbar-leading,
body.dash-shell-yt .dash-topbar-tools .dash-topbar-end,
html[data-theme="light"] body.dash-shell-yt .dash-top-chrome,
html[data-theme="light"] body.dash-shell-yt .dash-topbar-toolbar,
html[data-theme="light"] body.dash-shell-yt .dash-topbar-search-row {
  background: transparent !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.dash-shell-yt .dash-top-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
}

body.dash-shell-yt .dash-topbar-toolbar,
body.dash-shell-yt .dash-topbar-search-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  direction: ltr;
  padding: 4px 8px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
}

body.dash-shell-yt .dash-topbar-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(100%, calc(50% - 4.5rem));
  min-height: 40px;
  height: 40px;
}

body.dash-shell-yt .dash-topbar-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt {
  width: 200px;
  max-width: 200px;
  min-width: 140px;
  height: 26px;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt:focus-within {
  border-color: rgba(15, 23, 42, 0.28) !important;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt .dash-search-submit {
  border-inline-start-color: rgba(15, 23, 42, 0.12) !important;
}

body.dash-shell-yt .dash-topbar-search-row .dash-topbar-end .dash-topbar-btn {
  width: 30px;
  height: 30px;
}

/* ── شعار Nashwan T+ وسط ── */
body.dash-shell-yt .dash-topbar-toolbar .dash-topbar-brand,
body.dash-shell-yt .dash-topbar-brand--center {
  display: flex !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: auto !important;
  z-index: 2;
  background: transparent !important;
}

body.dash-shell-yt .dash-topbar-brand-btn {
  appearance: none;
  border: none;
  margin: 0;
  padding: 4px 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.12s ease;
}

body.dash-shell-yt .dash-topbar-brand-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

body.dash-shell-yt .dash-topbar-brand-btn:active {
  transform: translate(-50%, -50%) scale(0.96) !important;
}

body.dash-shell-yt .dash-topbar-brand-btn:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-lockup--topbar {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38em;
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-nashwan {
  font-size: 15px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-wordmark--chrome {
  filter: none;
  font-size: 22px;
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-wordmark--chrome .brand-plus--chrome {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #ca8a04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
}

[data-theme="dark"] body.dash-shell-yt .dash-topbar-brand-btn .brand-nashwan {
  color: rgba(241, 245, 249, 0.88);
}

[data-theme="dark"] body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt {
  border-color: rgba(148, 163, 184, 0.28) !important;
}

/* ── إحصائيات Uiverse بيضاء صغيرة ── */
body.dash-shell-yt .dash-stat--uiverse {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.45rem 0.5rem !important;
  background: #f1f3f6 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
}

body.dash-shell-yt .dash-stats > .dash-stat--uiverse {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  flex: 0 0 104px !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

body.dash-shell-yt .dash-stat--uiverse .title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

body.dash-shell-yt .dash-stat--uiverse .title > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

body.dash-shell-yt .dash-stat--uiverse .title-text {
  margin: 0;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(15, 23, 42, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dash-shell-yt .dash-stat--uiverse .percent {
  display: none;
}

body.dash-shell-yt .dash-stat--uiverse .data > p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
}

body.dash-shell-yt .dash-stat--uiverse .range {
  margin-top: 0.25rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.dash-shell-yt .dash-stat--uiverse .fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
}

body.dash-shell-yt .dash-stat--uiverse.accent-blue .title > span { background: rgba(14, 116, 144, 0.12); color: #0e7490; }
body.dash-shell-yt .dash-stat--uiverse.accent-amber .title > span { background: rgba(245, 158, 11, 0.14); color: #d97706; }
body.dash-shell-yt .dash-stat--uiverse.accent-green .title > span { background: rgba(16, 185, 129, 0.14); color: #059669; }
body.dash-shell-yt .dash-stat--uiverse.accent-gold .title > span { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
body.dash-shell-yt .dash-stat--uiverse.accent-purple .title > span { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
body.dash-shell-yt .dash-stat--uiverse.accent-cyan .title > span { background: rgba(6, 182, 212, 0.12); color: #0891b2; }

[data-theme="dark"] body.dash-shell-yt .dash-stat--uiverse {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── لوحتا النشاطات والرحلات — بيضاء + كارت داخلي ملون ── */
body.dash-shell-yt .home-strip-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

body.dash-shell-yt .home-page .dash-panel-home-activity,
body.dash-shell-yt .home-page .dash-panel-home-rides {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.dash-shell-yt .home-page .dash-panel-home-activity .dash-panel-head,
body.dash-shell-yt .home-page .dash-panel-home-rides .dash-panel-head,
body.dash-shell-yt .home-page .dash-panel-home-activity .home-panel-live-foot,
body.dash-shell-yt .home-page .dash-panel-home-rides .home-panel-live-foot {
  background: transparent !important;
  border: none !important;
}

body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact {
  background: #10b981 !important;
  color: #ffffff !important;
}

body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact:hover {
  background: #059669 !important;
}

body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact {
  background: #f59e0b !important;
  color: #ffffff !important;
}

body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact:hover {
  background: #d97706 !important;
}

body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact .load-card-nm,
body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact .load-card-price,
body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact .load-card-tm,
body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact .load-card-mi,
body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact .load-card-nm,
body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact .load-card-price,
body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact .load-card-tm,
body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact .load-card-mi,
body.dash-shell-yt .dash-panel-home-activity .home-panel-head-chips--home-card .load-card--home-compact .card-route-compact,
body.dash-shell-yt .dash-panel-home-rides .home-panel-head-chips--home-card .load-card--home-compact .card-route-compact {
  color: #ffffff !important;
}

body.dash-shell-yt .home-summary-live-foot--activity .home-summary-live-caption {
  color: #059669 !important;
  font-size: 10px;
  font-weight: 800;
}

body.dash-shell-yt .home-summary-live-foot--rides .home-summary-live-caption {
  color: #d97706 !important;
  font-size: 10px;
  font-weight: 800;
}

body.dash-shell-yt .home-page .dash-panel-home-activity .home-see-all,
body.dash-shell-yt .home-page .dash-panel-home-rides .home-see-all {
  color: rgba(15, 23, 42, 0.55) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 900px) {
  body.dash-shell-yt .home-strip-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.dash-shell-yt .dash-topbar-leading {
    max-width: min(100%, calc(50% - 2.75rem));
  }

  body.dash-shell-yt .dash-topbar-brand-btn .brand-nashwan {
    display: none;
  }

  body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt {
    width: min(160px, 38vw);
    max-width: 160px;
  }
}

/* Final polish: home recent activity / rides cards */
body.dash-shell-yt .home-page .home-strip-duo {
  align-items: stretch;
}

body.dash-shell-yt .home-page .dash-panel-home-activity,
body.dash-shell-yt .home-page .dash-panel-home-rides {
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035) !important;
}

body.dash-shell-yt .home-page .dash-panel-home-activity .dash-panel-head,
body.dash-shell-yt .home-page .dash-panel-home-rides .dash-panel-head {
  padding: 13px 14px 12px !important;
  background: transparent !important;
  border: 0 !important;
}

body.dash-shell-yt .home-page .home-panel-head-row {
  align-items: stretch;
  gap: 12px;
}

body.dash-shell-yt .home-page .home-panel-head-main {
  display: grid;
  grid-template-columns: minmax(105px, 0.28fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

body.dash-shell-yt .home-page .home-panel-title-btn {
  min-height: 86px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.96));
}

body.dash-shell-yt .home-page .home-panel-title-btn h3 {
  max-width: 82px;
  margin: 0;
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card {
  display: block;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card .load-card--home-compact {
  width: 100%;
  min-height: 86px;
  margin: 0;
  padding: 12px 13px !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card .load-card--home-compact:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.24);
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
}

body.dash-shell-yt .home-page .load-card--home-compact.load-card--active,
body.dash-shell-yt .home-page .load-card--home-compact.load-card--captain,
body.dash-shell-yt .home-page .load-card--home-compact.load-card--searching {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, #ffffff, #f7fefb) !important;
}

body.dash-shell-yt .home-page .load-card--home-compact.load-card--completed {
  border-color: rgba(37, 99, 235, 0.18);
}

body.dash-shell-yt .home-page .load-card--home-compact.load-card--cancelled {
  border-color: rgba(220, 38, 38, 0.16);
}

body.dash-shell-yt .home-page .load-card--home-compact .card-name-price,
body.dash-shell-yt .home-page .load-card--home-compact .card-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-nm,
body.dash-shell-yt .home-page .load-card--home-compact .load-card-price,
body.dash-shell-yt .home-page .load-card--home-compact .load-card-tm,
body.dash-shell-yt .home-page .load-card--home-compact .load-card-mi,
body.dash-shell-yt .home-page .load-card--home-compact .card-route-compact {
  color: inherit !important;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-nm {
  min-width: 0;
  color: #64748b !important;
  font-size: 11px;
  font-weight: 900;
  direction: ltr;
  text-align: left;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-price {
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-tm {
  color: #16a34a !important;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-mi {
  max-width: 58%;
  padding: 4px 8px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 999px;
  color: #15803d !important;
  background: rgba(240, 253, 244, 0.9);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dash-shell-yt .home-page .load-card--home-compact .card-route-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
  color: #334155 !important;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

body.dash-shell-yt .home-page .load-card--home-compact .city-nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dash-shell-yt .home-page .load-card--home-compact .route-arrow {
  flex: 0 0 auto;
  color: #10b981;
  font-size: 13px;
  font-weight: 950;
}

body.dash-shell-yt .home-page .home-panel-all-btn {
  align-self: stretch;
}

body.dash-shell-yt .home-page .home-panel-all-btn .home-see-all {
  height: 100%;
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

body.dash-shell-yt .home-summary-live-foot--activity .home-summary-live-caption,
body.dash-shell-yt .home-summary-live-foot--rides .home-summary-live-caption {
  color: #64748b !important;
}

@media (max-width: 720px) {
  body.dash-shell-yt .home-page .home-panel-head-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.dash-shell-yt .home-page .home-panel-head-main {
    grid-template-columns: 1fr;
  }

  body.dash-shell-yt .home-page .home-panel-title-btn,
  body.dash-shell-yt .home-page .home-panel-all-btn .home-see-all {
    min-height: 48px;
  }

  body.dash-shell-yt .home-page .home-panel-title-btn h3 {
    max-width: none;
  }
}

/* Reference-inspired dashboard cards: keep content, polish structure */
body.dash-shell-yt .home-page .home-strip-duo {
  gap: 14px;
}

body.dash-shell-yt .home-page .dash-panel-home-activity,
body.dash-shell-yt .home-page .dash-panel-home-rides {
  border-radius: 10px !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
}

body.dash-shell-yt .home-page .dash-panel-home-activity .dash-panel-head,
body.dash-shell-yt .home-page .dash-panel-home-rides .dash-panel-head {
  padding: 16px !important;
}

body.dash-shell-yt .home-page .home-panel-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title action"
    "card card";
  gap: 12px;
  align-items: center;
}

body.dash-shell-yt .home-page .home-panel-head-main {
  display: contents;
}

body.dash-shell-yt .home-page .home-panel-title-btn {
  grid-area: title;
  min-height: auto;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.dash-shell-yt .home-page .home-panel-title-btn h3 {
  max-width: none;
  color: #1f2937 !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: start;
}

body.dash-shell-yt .home-page .home-panel-all-btn {
  grid-area: action;
  align-self: center;
}

body.dash-shell-yt .home-page .home-panel-all-btn .home-see-all {
  min-height: 0;
  height: auto;
  padding: 5px 9px;
  color: #10b981 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card {
  grid-area: card;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card .load-card--home-compact {
  min-height: 118px;
  padding: 14px 15px !important;
  gap: 11px;
  border-radius: 10px;
  border-color: rgba(15, 23, 42, 0.07);
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0) 38%),
    #ffffff !important;
  box-shadow: none;
}

body.dash-shell-yt .home-page .home-panel-head-chips--home-card .load-card--home-compact:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-price {
  color: #0f172a !important;
  font-size: 15px;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-tm {
  color: #0f172a !important;
}

body.dash-shell-yt .home-page .load-card--home-compact .load-card-mi {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.14);
}

body.dash-shell-yt .home-page .load-card--home-compact .card-route-compact {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569 !important;
}

body.dash-shell-yt .home-page .home-panel-live-foot {
  padding: 0 16px 14px !important;
}

body.dash-shell-yt .home-page .home-summary-live-foot {
  padding: 0;
}

@media (max-width: 720px) {
  body.dash-shell-yt .home-page .home-panel-head-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title action"
      "card card";
  }

  body.dash-shell-yt .home-page .home-panel-head-chips--home-card .load-card--home-compact {
    min-height: 104px;
  }
}

/* Full dashboard composition inspired by the fleet reference */
body.dash-shell-yt[data-admin-view="home"] .dash-content {
  background: #E9EEF3;
}

body.dash-shell-yt[data-admin-view="home"] .dash-content-inner {
  gap: 14px;
}

body.dash-shell-yt[data-admin-view="home"] .home-stats-bar {
  margin-bottom: 0;
}

body.dash-shell-yt[data-admin-view="home"] .dash-stats--home {
  gap: 12px;
}

body.dash-shell-yt[data-admin-view="home"] .home-page {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(330px, 380px);
  grid-template-rows: minmax(560px, calc(100vh - 250px));
  gap: 14px;
  align-items: stretch;
}

body.dash-shell-yt[data-admin-view="home"] .home-map-row {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
}

body.dash-shell-yt[data-admin-view="home"] .home-strip-duo {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  margin: 0;
}

body.dash-shell-yt[data-admin-view="home"] .home-strip-row,
body.dash-shell-yt[data-admin-view="home"] .home-map-row {
  width: 100%;
  min-height: 0;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  height: 100%;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: none !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map {
  overflow: hidden;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-panel-head {
  min-height: 54px;
  padding: 15px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-panel-head h3 {
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-map {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-map-legend {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  min-height: 0;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  flex: 1 1 auto;
  min-height: 0;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-head-row,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-head-row {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-head-chips--home-card,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-head-chips--home-card {
  min-height: 0;
}

body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  min-height: 0;
  height: 100%;
  align-content: center;
}

body.dash-shell-yt[data-admin-view="home"] .home-panel-live-foot {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  body.dash-shell-yt[data-admin-view="home"] .home-page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(420px, 52vh) auto;
  }

  body.dash-shell-yt[data-admin-view="home"] .home-map-row {
    grid-column: 1;
    grid-row: 1;
  }

  body.dash-shell-yt[data-admin-view="home"] .home-strip-duo {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  body.dash-shell-yt[data-admin-view="home"] .home-page {
    grid-template-rows: minmax(360px, 48vh) auto;
  }

  body.dash-shell-yt[data-admin-view="home"] .home-strip-duo {
    grid-template-columns: 1fr;
  }
}

/* Fleet-reference side menu polish */
body.dash-shell-yt {
  --dash-sidebar-w-mini: 58px;
}

body.dash-shell-yt .dash-sidebar--yt {
  padding: 8px 6px;
  background: #f1f3f6 !important;
  border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035);
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 8px;
  padding: 2px 0;
  justify-content: flex-start;
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover {
  color: #0f172a;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on {
  color: #ffffff !important;
  background: linear-gradient(180deg, #10b981, #059669) !important;
  border-color: rgba(5, 150, 105, 0.24);
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.22);
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon .fi {
  color: currentColor !important;
  font-size: 17px;
}

body.dash-shell-yt .dash-sidebar--yt .dash-nav-text {
  max-width: 48px;
  color: currentColor;
  font-size: 8px;
  font-weight: 850;
}

body.dash-sidebar-expanded.dash-shell-yt .dash-sidebar--yt {
  padding: 12px;
}

body.dash-sidebar-expanded.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 8px;
}

body.dash-sidebar-expanded.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  min-height: 46px;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
}

/* Fleet-reference header polish */
body.dash-shell-yt,
.dash-app.dash-shell-yt {
  --dash-topbar-h: 72px;
  --dash-topbar-total-h: 82px;
}

body.dash-shell-yt .dash-top-chrome {
  padding: 10px 16px 0 16px;
  background: #eceff3 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1200 !important;
}

.dash-app.dash-shell-yt .dash-top-chrome {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 82px !important;
  padding: 10px 16px 10px 16px !important;
  background: #eceff3 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1200 !important;
}

body.dash-shell-yt .dash-topbar-toolbar,
body.dash-shell-yt .dash-topbar-search-row {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  height: 62px;
  min-height: 62px;
  padding: 0 20px;
  gap: 16px;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035) !important;
}

.dash-app.dash-shell-yt .dash-topbar-toolbar,
.dash-app.dash-shell-yt .dash-topbar-search-row {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 20px !important;
  gap: 16px !important;
  background: #f1f3f6 !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

.dash-app.dash-shell-yt .dash-content {
  padding-top: 80px !important;
}

body.dash-shell-yt .dash-topbar-leading {
  height: 60px;
  min-height: 60px;
  max-width: min(100%, calc(50% - 6rem));
}

.dash-app.dash-shell-yt .dash-topbar-leading {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  min-height: 60px !important;
  max-width: min(100%, calc(50% - 6rem)) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dash-shell-yt .dash-topbar-tools {
  gap: 8px;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt {
  width: clamp(300px, 34vw, 520px);
  max-width: 520px;
  min-width: 220px;
  height: 40px;
  border-radius: 11px;
  background: #f8f9fb;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

.dash-app.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt {
  display: flex !important;
  width: clamp(300px, 34vw, 520px) !important;
  max-width: 520px !important;
  min-width: 220px !important;
  height: 40px !important;
  border-radius: 11px !important;
  background: #f8f9fb !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt:focus-within {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

body.dash-shell-yt .dash-topbar-toolbar .dash-search-wrap--yt .dash-search {
  font-size: 13px;
  font-weight: 750;
}

body.dash-shell-yt .dash-topbar-search-row .dash-topbar-end {
  gap: 10px;
}

.dash-app.dash-shell-yt .dash-topbar-search-row .dash-topbar-end {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dash-shell-yt .dash-topbar-search-row .dash-topbar-end .dash-topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #64748b;
  background: #f8f9fb !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

.dash-app.dash-shell-yt .dash-topbar-search-row .dash-topbar-end .dash-topbar-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  color: #64748b !important;
  background: #f8f9fb !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

body.dash-shell-yt .dash-topbar-search-row .dash-topbar-end .dash-topbar-btn:hover {
  color: #0f172a;
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.16) !important;
}

body.dash-shell-yt .dash-topbar-toolbar .dash-topbar-brand,
body.dash-shell-yt .dash-topbar-brand--center {
  background: transparent !important;
}

.dash-app.dash-shell-yt .dash-topbar-toolbar .dash-topbar-brand,
.dash-app.dash-shell-yt .dash-topbar-brand--center {
  display: flex !important;
  position: absolute !important;
  left: auto !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  background: transparent !important;
}

body.dash-shell-yt .dash-topbar-brand-btn {
  min-height: 42px;
  padding: 6px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.dash-shell-yt .dash-topbar-brand-btn:hover {
  background: transparent !important;
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-nashwan {
  color: #334155;
  font-size: 15px;
  font-weight: 800;
}

body.dash-shell-yt .dash-topbar-brand-btn .brand-wordmark--chrome {
  font-size: 24px;
}

body.dash-shell-yt .dash-content {
  padding-top: 80px !important;
}

@media (max-width: 760px) {
  body.dash-shell-yt,
  .dash-app.dash-shell-yt {
    --dash-topbar-h: 54px;
  }

  body.dash-shell-yt .dash-top-chrome {
    padding: 6px 8px 0;
  }

  body.dash-shell-yt .dash-topbar-toolbar,
  body.dash-shell-yt .dash-topbar-search-row {
    height: 46px;
    min-height: 46px;
    padding: 0 10px;
  }

  body.dash-shell-yt .dash-topbar-leading {
    max-width: min(100%, calc(50% - 4.25rem));
  }

  body.dash-shell-yt .dash-topbar-brand-btn .brand-nashwan {
    display: none;
  }
}

/* Header brand position: far right */
.dash-app.dash-shell-yt .dash-topbar-toolbar .dash-topbar-brand,
.dash-app.dash-shell-yt .dash-topbar-brand--center,
body.dash-shell-yt .dash-topbar-toolbar .dash-topbar-brand,
body.dash-shell-yt .dash-topbar-brand--center {
  left: auto !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
}

.dash-app.dash-shell-yt .dash-topbar-brand-btn,
body.dash-shell-yt .dash-topbar-brand-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Reference app background level: soft light gray like the dashboard surface */
html[data-theme="light"] {
  --dash-bg: #f5f7fa;
  --dash-bg-subtle: #f5f7fa;
}

body.dash-shell-yt,
.dash-app.dash-shell-yt {
  --dash-yt-chrome-bg: #f5f7fa;
  --dash-yt-header-bg: #f5f7fa;
  --dash-yt-canvas-bg: #f5f7fa;
  background: #f5f7fa !important;
}

body.dash-shell-yt .dash-top-chrome {
  background: #f5f7fa !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-content {
  background: #f5f7fa !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-content-inner {
  padding: 14px;
}

/* Exact requested background: no gradients, no white/yellow overlay */
html[data-theme="light"],
body.dash-shell-yt,
.dash-app.dash-shell-yt,
body.dash-shell-yt .dash-top-chrome,
body.dash-shell-yt .dash-content,
body.dash-shell-yt[data-admin-view="home"] .dash-content {
  background: #f5f7fa !important;
  background-image: none !important;
}

/* Tighten home content under the restored header */
.dash-app.dash-shell-yt .dash-content,
body.dash-shell-yt .dash-content {
  padding-top: 60px !important;
}

body.dash-shell-yt[data-admin-view="home"] .dash-content-inner,
.dash-app.dash-shell-yt[data-admin-view="home"] .dash-content-inner {
  padding-top: 0 !important;
}

body.dash-shell-yt[data-admin-view="home"] .home-stats-bar,
.dash-app.dash-shell-yt[data-admin-view="home"] .home-stats-bar {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Soften card surfaces to match the gray shell */
body.dash-shell-yt .dash-stat--uiverse,
body.dash-shell-yt .dash-panel,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides,
body.dash-shell-yt .home-panel-head-chips--home-card .load-card--home-compact {
  background: #f9fbfa !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035) !important;
}

body.dash-shell-yt .dash-panel-head,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-panel-head {
  background: #f9fbfa !important;
  border-bottom-color: rgba(15, 23, 42, 0.07) !important;
}

body.dash-shell-yt .dash-panel-home-map .dash-map,
body.dash-shell-yt #liveMap {
  background: #ffffff !important;
}

body.dash-shell-yt .dash-panel-home-map .dash-map-legend,
body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-map-legend {
  background: #f9fbfa !important;
  border-top-color: rgba(15, 23, 42, 0.07) !important;
}

/* Strong final pass: remove yellow/over-white feeling from the shell */
html[data-theme="light"],
body.dash-shell-yt,
.dash-app.dash-shell-yt,
body.dash-shell-yt .dash-top-chrome,
body.dash-shell-yt .dash-content,
body.dash-shell-yt[data-admin-view="home"] .dash-content {
  background: #f5f7fa !important;
  background-color: #f5f7fa !important;
  background-image: none !important;
}

body.dash-shell-yt .dash-sidebar--yt,
body.dash-shell-yt .dash-topbar-toolbar,
body.dash-shell-yt .dash-topbar-search-row,
.dash-app.dash-shell-yt .dash-topbar-toolbar,
.dash-app.dash-shell-yt .dash-topbar-search-row {
  background: #f1f3f6 !important;
  background-color: #f1f3f6 !important;
  background-image: none !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

/* Final single source for page background: neutral, no yellow/green cast */
html[data-theme="light"],
html[data-theme="light"] body,
body.dash-shell-yt,
.dash-app.dash-shell-yt,
body.dash-shell-yt .dash-top-chrome,
body.dash-shell-yt .dash-content,
body.dash-shell-yt[data-admin-view="home"] .dash-content {
  --dash-bg: #e9eef3;
  --dash-bg-subtle: #e9eef3;
  --dash-yt-chrome-bg: #e9eef3;
  --dash-yt-header-bg: #e9eef3;
  --dash-yt-canvas-bg: #e9eef3;
  background: #e9eef3 !important;
  background-color: #e9eef3 !important;
  background-image: none !important;
}

/* Final chrome balance: header/menu white enough, page gray enough */
html[data-theme="light"] body.dash-shell-yt,
html[data-theme="light"] .dash-app.dash-shell-yt {
  --dash-bg: #e9eef3;
  --dash-bg-subtle: #e9eef3;
  --dash-yt-chrome-bg: #e9eef3;
  --dash-yt-sidebar-bg: #f8fafc;
  --dash-yt-header-bg: #f8fafc;
  --dash-yt-canvas-bg: #e9eef3;
  --dash-yt-surface-bg: #ffffff;
}

html[data-theme="light"] body.dash-shell-yt .dash-top-chrome,
html[data-theme="light"] .dash-app.dash-shell-yt .dash-top-chrome {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-topbar-toolbar,
html[data-theme="light"] body.dash-shell-yt .dash-topbar-search-row,
html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-toolbar,
html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-search-row {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 8px 0 22px rgba(15, 23, 42, 0.035) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 7px !important;
  padding: 6px 2px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  min-height: 44px !important;
  border-radius: 12px !important;
  color: #475569 !important;
  background: transparent !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.055) !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on {
  color: #ffffff !important;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  border-color: rgba(5, 150, 105, 0.22) !important;
  box-shadow: 0 10px 18px rgba(5, 150, 105, 0.18) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-content,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-content {
  background: #e9eef3 !important;
  background-color: #e9eef3 !important;
}

/* Keep only the real toolbar header; old slim header is retired. */
body.dash-shell-yt header.dash-topbar,
.dash-app.dash-shell-yt header.dash-topbar,
body.dash-shell-yt .dash-topbar--slim,
.dash-app.dash-shell-yt .dash-topbar--slim {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Final shell geometry: one header, one separate right menu rail. */
html[data-theme="light"] body.dash-shell-yt,
html[data-theme="light"] .dash-app.dash-shell-yt {
  --dash-sidebar-w-mini: 58px;
  --dash-sidebar-w: 58px;
  --dash-topbar-total-h: 68px;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-main {
  padding-top: 62px !important;
  padding-right: 58px !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-top-chrome {
  min-height: 68px !important;
  padding: 8px 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  z-index: 1300 !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar {
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  top: 62px !important;
  right: 0 !important;
  width: 58px !important;
  height: calc(100vh - 62px) !important;
  padding: 8px 6px !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  border: 0 !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
  z-index: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 8px !important;
  padding: 0 !important;
  align-items: stretch !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 auto !important;
  padding: 5px 2px !important;
  border-radius: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-text {
  font-size: 8px !important;
  line-height: 1.1 !important;
}

/* Pull cards closer to the single header. */
html[data-theme="light"] body.dash-shell-yt .dash-content,
html[data-theme="light"] .dash-app.dash-shell-yt .dash-content {
  padding-top: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-content-inner,
html[data-theme="light"] .dash-app.dash-shell-yt .dash-content-inner {
  padding-top: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-stats-bar,
html[data-theme="light"] .dash-app.dash-shell-yt[data-admin-view="home"] .home-stats-bar {
  margin-top: 0 !important;
}

/* Home latest cards: richer visual treatment for activity and rides. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  position: relative;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity {
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.16), transparent 34%),
    linear-gradient(180deg, #f7fefb 0%, #ffffff 54%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 54%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before {
  background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0.18));
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before {
  background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.18));
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  background: transparent !important;
  padding: 16px 16px 12px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3::before {
  background: #10b981;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3::before {
  background: #f59e0b;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  min-height: 112px !important;
  height: auto !important;
  border-radius: 15px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055) !important;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact {
  border-inline-start: 4px solid #10b981 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  border-inline-start: 4px solid #f59e0b !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-nm {
  color: #475569 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm {
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .load-card-mi {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.16) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .load-card-mi {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.18) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-summary-live-caption {
  color: #047857 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-summary-live-caption {
  color: #b45309 !important;
}

/* Modern pass for latest activity/rides: soft dashboard cards, no old framed look. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  isolation: isolate;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.035) 42%, rgba(255, 255, 255, 0.74)),
    #f8fafc !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.035) 42%, rgba(255, 255, 255, 0.76)),
    #f8fafc !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 14px;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  z-index: -1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before {
  background: rgba(16, 185, 129, 0.34);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before {
  background: rgba(245, 158, 11, 0.36);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.035);
  pointer-events: none;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  position: relative;
  padding: 16px !important;
  z-index: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3 {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  font-size: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-all-btn .home-see-all,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-all-btn .home-see-all {
  background: rgba(255, 255, 255, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(10px);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  position: relative;
  min-height: 108px !important;
  padding: 14px 15px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 12px 28px rgba(15, 23, 42, 0.075) !important;
  overflow: hidden;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::before {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  opacity: 0.16;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::before {
  background: #10b981;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::before {
  background: #f59e0b;
}

/* Uiverse message card adaptation — akshat-patel28 */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon main time"
    "icon route route";
  align-items: center;
  gap: 4px 12px !important;
  width: 100% !important;
  min-height: 80px !important;
  height: auto !important;
  box-sizing: border-box;
  padding: 10px 15px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
  transform: none;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::before {
  content: "";
  position: absolute;
  inset: auto auto auto -31px;
  top: 32px;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  transform: rotate(90deg);
  opacity: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::before {
  background: #04e4003a;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::before {
  background: rgba(245, 158, 11, 0.22);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::after {
  content: "";
  grid-area: icon;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-left: 8px;
  justify-self: center;
  align-self: center;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::after {
  background-color: #04e40048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23269b24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 10h8M8 14h5'/%3E%3C/svg%3E");
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::after {
  background-color: rgba(245, 158, 11, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23b45309' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14l-1.4-5.6A3 3 0 0 0 14.7 9H9.3a3 3 0 0 0-2.9 2.4L5 17z'/%3E%3Cpath d='M7 17v2M17 17v2M8 13h8'/%3E%3C/svg%3E");
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-name-price {
  grid-area: main;
  min-width: 0;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-time {
  grid-area: time;
  z-index: 1;
  min-width: max-content;
  align-self: start;
  padding-top: 2px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-route-compact {
  grid-area: route;
  z-index: 1;
  min-width: 0;
  padding-top: 0 !important;
  border-top: 0 !important;
  color: #555 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi {
  margin: 0 !important;
  cursor: default;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .load-card-nm {
  color: #269b24 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .load-card-nm {
  color: #b45309 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .city-nm {
  font-size: 14px !important;
  color: #555 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Exact Uiverse structure: real wave/icon/message/close elements. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  width: 100% !important;
  height: 80px !important;
  min-height: 80px !important;
  border-radius: 8px !important;
  box-sizing: border-box;
  padding: 10px 15px !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  gap: 15px !important;
  direction: rtl;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
  z-index: 0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .wave {
  fill: #04e4003a;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .wave {
  fill: rgba(245, 158, 11, 0.24);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-left: 8px;
  flex: 0 0 35px;
  position: relative;
  z-index: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .icon-container {
  background-color: #04e40048;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .icon-container {
  background-color: rgba(245, 158, 11, 0.24);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .icon {
  width: 17px;
  height: 17px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .icon {
  color: #269b24;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .icon {
  color: #b45309;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .message-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-name-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-time {
  display: contents !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price {
  margin: 0 !important;
  cursor: default;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact .load-card-price {
  color: #269b24 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact .load-card-price {
  color: #b45309 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-route-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .city-nm {
  margin: 0 !important;
  cursor: default;
  font-size: 14px !important;
  color: #555 !important;
  line-height: 1.25 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-route-compact {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap;
  overflow: hidden;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .city-nm {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .cross-icon {
  width: 18px;
  height: 18px;
  color: #555;
  flex: 0 0 18px;
  cursor: pointer;
  pointer-events: none;
  position: relative;
  z-index: 1;
  opacity: 0.75;
}

/* Roll back latest home cards experiments until a better reference is chosen. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  isolation: auto;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  padding: 16px !important;
  background: transparent !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3 {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3::before {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-all-btn .home-see-all,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-all-btn .home-see-all {
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  display: grid !important;
  min-height: 118px !important;
  height: auto !important;
  padding: 14px 15px !important;
  gap: 11px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0) 38%),
    #ffffff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-name-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-time {
  display: flex !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm {
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.14) !important;
  padding: 3px 8px !important;
}

/* Uiverse-inspired hover fill card — jamik-dev */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .load-card--home-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  --home-card-accent: #11be86;
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 116px !important;
  padding: 18px 22px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .load-card--home-compact {
  --home-card-accent: #f59e0b;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
  transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::before {
  width: 6px;
  background: var(--home-card-accent);
  z-index: -1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact::after {
  width: 0;
  opacity: 0.06;
  background:
    radial-gradient(circle at 24% 26%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, #ffffff 0 2px, transparent 3px),
    repeating-linear-gradient(135deg, #ffffff 0 1px, transparent 1px 12px),
    var(--home-card-accent);
  z-index: -1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover {
  border-color: var(--home-card-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover::after {
  width: 100%;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-name-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-time {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  transition: color 0.3s ease !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-price {
  color: #1d2825 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-tm {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .load-card-mi {
  color: #1d2825 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-route-compact {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0 !important;
  border-top: 0 !important;
  color: #1d2825 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  transition: color 0.3s ease !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact .card-route-compact::after {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  border-radius: 999px;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .load-card-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .load-card-price,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .load-card-tm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .load-card-mi,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .card-route-compact,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .city-nm,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .load-card--home-compact:hover .route-arrow {
  color: #ffffff !important;
}

/* Home latest sections as modern tables. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  --latest-accent: #11be86;
  --latest-accent-soft: rgba(17, 190, 134, 0.1);
  --latest-accent-line: rgba(17, 190, 134, 0.34);
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  --latest-accent: #f59e0b;
  --latest-accent-soft: rgba(245, 158, 11, 0.12);
  --latest-accent-line: rgba(245, 158, 11, 0.38);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  padding: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-panel-head-row {
  gap: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-panel-head-chips--home-card {
  width: 100%;
  min-height: 0 !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background:
    linear-gradient(180deg, var(--latest-accent-soft), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table th {
  padding: 10px 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  background: rgba(248, 250, 252, 0.74);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table td {
  padding: 11px 12px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.055);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table tbody tr:last-child td {
  border-bottom: 0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row {
  cursor: pointer;
  outline: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:focus-visible td {
  background: var(--latest-accent-soft);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table td:first-child {
  border-inline-start: 4px solid var(--latest-accent-line);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table strong,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table b {
  display: block;
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table small,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table time {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-kind,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-kind--ride,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--active,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--accepted,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--arrived,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--in_ride {
  color: #047857;
  background: rgba(17, 190, 134, 0.13);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-kind--captain,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--captain {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--searching {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--completed {
  color: #166534;
  background: rgba(34, 197, 94, 0.13);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--cancelled {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-route {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-route b {
  min-width: 0;
  max-width: 42%;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-route i {
  color: var(--latest-accent);
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 900px) {
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table th:nth-child(4),
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table td:nth-child(4) {
    display: none;
  }
}

/* Final latest tables layout: clear title row above the table. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  padding: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-head-row,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-head-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "title action"
    "table table" !important;
  grid-template-rows: auto auto !important;
  gap: 12px !important;
  align-items: center !important;
  height: auto !important;
  min-height: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-head-main,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-head-main {
  display: contents !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn {
  grid-area: title !important;
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  background: transparent !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-title-btn h3::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-title-btn h3::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: var(--latest-accent) !important;
  box-shadow: 0 0 0 5px var(--latest-accent-soft) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-all-btn,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-all-btn {
  grid-area: action !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-self: end !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-all-btn .home-see-all,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-all-btn .home-see-all {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: var(--latest-accent) !important;
  background: var(--latest-accent-soft) !important;
  border: 1px solid var(--latest-accent-line) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-head-chips--home-card,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-head-chips--home-card {
  grid-area: table !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table-wrap {
  margin-top: 0 !important;
}

/* Clear rectangular status badges with icons. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill {
  min-width: 86px;
  min-height: 28px;
  gap: 7px;
  padding: 6px 11px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill::before {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--completed {
  color: #ffffff !important;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  border-color: rgba(22, 163, 74, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--completed::before {
  content: "✓";
  color: #15803d;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--active {
  color: #ffffff !important;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%) !important;
  border-color: rgba(2, 132, 199, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--active::before {
  content: "●";
  color: #0369a1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--searching {
  color: #ffffff !important;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: rgba(217, 119, 6, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--searching::before {
  content: "⌕";
  color: #92400e;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--matched,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--arriving {
  color: #ffffff !important;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
  border-color: rgba(124, 58, 237, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--matched::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--arriving::before {
  content: "→";
  color: #6d28d9;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--cancelled,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--expired,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--rejected,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--suspended {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: rgba(220, 38, 38, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--cancelled::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--expired::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--rejected::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--suspended::before {
  content: "×";
  color: #991b1b;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--captain,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--pending {
  color: #ffffff !important;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%) !important;
  border-color: rgba(13, 148, 136, 0.42) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--captain::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-pill--pending::before {
  content: "!";
  color: #0f766e;
}

/* Status color applies to the whole latest trip row. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table tbody td {
  border-bottom: 0 !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child {
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
  border-inline-start: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:last-child {
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child::before {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  vertical-align: middle;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td:first-child::before {
  content: "✓";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td:first-child::before {
  content: "●";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td:first-child::before {
  content: "⌕";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td:first-child::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td:first-child::before {
  content: "→";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td:first-child::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td:first-child::before {
  content: "×";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td:first-child::before {
  content: "!";
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:focus-visible td {
  filter: brightness(0.97);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row strong,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row b,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row small,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row time,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row .home-latest-route i {
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row small,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row time {
  color: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row .home-latest-pill,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row .home-latest-kind {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

/* Compact transparent status rectangles: phrase + time only. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  table-layout: fixed !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table th:first-child {
  width: auto;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table th:last-child {
  width: 96px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td {
  padding: 11px 14px !important;
  border-bottom: 0 !important;
  background: rgba(15, 23, 42, 0.045) !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child {
  border-start-start-radius: 14px !important;
  border-end-start-radius: 14px !important;
  border-inline-start: 4px solid rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:last-child {
  border-start-end-radius: 14px !important;
  border-end-end-radius: 14px !important;
  text-align: left;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td {
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td:first-child {
  border-inline-start-color: #10b981 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td:first-child {
  border-inline-start-color: #3b82f6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td {
  background: #fffbeb !important;
  color: #92400e !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td:first-child {
  border-inline-start-color: #f59e0b !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td:first-child,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td:first-child {
  border-inline-start-color: #8b5cf6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td:first-child,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td:first-child {
  border-inline-start-color: #ef4444 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td {
  background: #f0fdfa !important;
  color: #0f766e !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td:first-child {
  border-inline-start-color: #14b8a6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child::before {
  margin-inline-end: 8px;
  color: currentColor !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row strong,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row time {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:focus-visible td {
  filter: saturate(1.1) brightness(0.98);
}

/* Uiverse alert style — Cybercom682, adapted for latest activity/rides rows. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row {
  transition: transform 0.3s ease-in-out !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row:focus-visible {
  transform: scale(1.015);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td {
  padding: 9px 12px !important;
  border-bottom: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child {
  border-inline-start-width: 4px !important;
  border-inline-start-style: solid !important;
  border-start-start-radius: 10px !important;
  border-end-start-radius: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:last-child {
  border-start-end-radius: 10px !important;
  border-end-end-radius: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child::before {
  content: "i" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-inline-end: 8px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 2px solid currentColor !important;
  color: currentColor !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  font-family: ui-sans-serif, system-ui, sans-serif !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td {
  background: #dcfce7 !important;
  color: #14532d !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed:hover td {
  background: #bbf7d0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td:first-child {
  border-inline-start-color: #22c55e !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving:hover td {
  background: #bfdbfe !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td:first-child,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td:first-child,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td:first-child {
  border-inline-start-color: #3b82f6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td {
  background: #fef3c7 !important;
  color: #78350f !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching:hover td {
  background: #fde68a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td:first-child {
  border-inline-start-color: #f59e0b !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled:hover td,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired:hover td {
  background: #fecaca !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td:first-child,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td:first-child {
  border-inline-start-color: #ef4444 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td {
  background: #ccfbf1 !important;
  color: #134e4a !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain:hover td {
  background: #99f6e4 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td:first-child {
  border-inline-start-color: #14b8a6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row strong,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row time {
  color: currentColor !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Status-specific icons and visible time inside the alert row. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-completed td:first-child::before {
  content: "✓" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-active td:first-child::before {
  content: "↑" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-searching td:first-child::before {
  content: "↕" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-matched td:first-child::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-arriving td:first-child::before {
  content: "↓" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-cancelled td:first-child::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row.is-expired td:first-child::before {
  content: "×" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row--captain td:first-child::before {
  content: "!" !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row time {
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

/* Real inline status icon; avoids stale pseudo-content. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-row td:first-child::before {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-row-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: currentColor;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

/* Refined section card behind the compact rows. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  position: relative;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(15, 23, 42, 0.055) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity {
  background:
    radial-gradient(circle at 0% 0%, rgba(17, 190, 134, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.15), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: auto 14px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  opacity: 0.34;
  pointer-events: none;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after {
  background: rgba(17, 190, 134, 0.18);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  background: rgba(245, 158, 11, 0.18);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .home-panel-live-foot,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .home-panel-live-foot {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table-wrap {
  border-color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035) !important;
  backdrop-filter: blur(10px);
}

/* Flatten latest sections: remove stacked decorative layers. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides {
  isolation: auto !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity::after,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-activity .dash-panel-head,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-rides .dash-panel-head {
  background: transparent !important;
  border: 0 !important;
  padding: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table-wrap {
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table th {
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 4px 12px 6px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-table td {
  box-shadow: none !important;
}

/* Fresh latest sections rebuilt from scratch — Uiverse alert style. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head h3 .fi {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 15px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-head h3 .fi {
  color: #92400e;
  background: #fef3c7;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-more {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-more {
  color: #92400e;
  background: #fef3c7;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-live {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #047857;
  background: #dcfce7;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.14);
  animation: homeLivePulse 1.4s ease-in-out infinite;
}

@keyframes homeLivePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.72);
    opacity: 0.62;
  }
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row {
  width: 100%;
  appearance: none;
  border: 0;
  border-left: 4px solid currentColor;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: start;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:focus-visible {
  transform: scale(1.025);
  outline: none;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--success {
  color: #14532d;
  background: #dcfce7;
  border-left-color: #22c55e;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--success:hover {
  background: #bbf7d0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--info {
  color: #1e3a8a;
  background: #dbeafe;
  border-left-color: #3b82f6;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--info:hover {
  background: #bfdbfe;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--warning {
  color: #78350f;
  background: #fef3c7;
  border-left-color: #f59e0b;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--warning:hover {
  background: #fde68a;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--error {
  color: #7f1d1d;
  background: #fee2e2;
  border-left-color: #ef4444;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--error:hover {
  background: #fecaca;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--captain {
  color: #134e4a;
  background: #ccfbf1;
  border-left-color: #14b8a6;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--captain:hover {
  background: #99f6e4;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-text {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-time {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 900;
  color: currentColor;
}

@media (max-width: 900px) {
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
    grid-template-columns: 1fr;
  }
}

/* Header like the dark Flaticon reference. */
html[data-theme="light"] body.dash-shell-yt,
html[data-theme="light"] .dash-app.dash-shell-yt {
  --dash-topbar-total-h: 46px;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-main {
  padding-top: 46px !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-top-chrome {
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  background: #071329 !important;
  background-color: #071329 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  z-index: 1300 !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar {
  height: 46px !important;
  min-height: 46px !important;
  width: 100% !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #071329 !important;
  background-color: #071329 !important;
  box-shadow: none !important;
  direction: ltr !important;
  gap: 16px !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #topbarBrand {
  position: static !important;
  order: -2;
  transform: none !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  margin: 0 18px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #topbarBrand .brand-lockup--topbar {
  align-items: center !important;
  gap: 7px !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #topbarBrand .brand-nashwan {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

html[data-theme="light"] .dash-app.dash-shell-yt #topbarBrand .brand-wordmark--chrome {
  color: #ffffff !important;
  font-size: 18px !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #topbarBrand .brand-plus--chrome {
  -webkit-text-fill-color: initial !important;
  color: #21d29b !important;
  background: none !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-leading {
  order: 1;
  height: 46px !important;
  min-height: 46px !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-tools {
  width: 100%;
  height: 46px;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-search-wrap--desktop {
  width: clamp(220px, 28vw, 360px) !important;
  max-width: 360px !important;
  min-width: 180px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-search-wrap--desktop .dash-search {
  height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  color: #e5edf8 !important;
  background: transparent !important;
  border: 0 !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-search-wrap--desktop .dash-search::placeholder {
  color: rgba(229, 237, 248, 0.72) !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-search-submit {
  color: #9fb0c7 !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-end {
  margin-inline-start: auto !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-btn {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #b8c4d6 !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt .dash-topbar-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Dark header icons should sit directly on the bar, no white cards. */
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-topbar-btn,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-topbar-btn--desktop-only,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-theme-btn,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #topbarNotifyBtn,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #refreshBtn,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #logoutBtn,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #openAppLink {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #b8c4d6 !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-topbar-btn svg,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-topbar-btn .fi {
  color: currentColor !important;
  stroke: currentColor !important;
}

html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar .dash-topbar-btn:hover,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #topbarNotifyBtn:hover,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #refreshBtn:hover,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #logoutBtn:hover,
html[data-theme="light"] .dash-app.dash-shell-yt #dashTopbarToolbar #openAppLink:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  top: 46px !important;
  height: calc(100vh - 46px) !important;
}

/* Trial: modern sidebar icon pills. Easy to remove if needed. */
html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  background: #ffffff !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 9px !important;
  padding: 8px 4px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  height: 48px !important;
  min-height: 48px !important;
  padding: 4px 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #64748b !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon .fi {
  font-size: 16px !important;
  color: currentColor !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-text {
  margin-top: 3px !important;
  color: #64748b !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover .dash-nav-icon {
  transform: translateY(-1px);
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.22) !important;
  color: #047857 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-icon {
  background: #10b981 !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-text {
  color: #047857 !important;
}

/* Revert sidebar icon-pills trial and apply dark sidebar to match the header. */
html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  background: #071329 !important;
  background-color: #071329 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 8px !important;
  padding: 8px 4px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  height: 46px !important;
  min-height: 46px !important;
  padding: 5px 2px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #9fb0c7 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon .fi {
  color: currentColor !important;
  font-size: 17px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-text {
  margin-top: 2px !important;
  color: currentColor !important;
  font-size: 8px !important;
  font-weight: 900 !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover .dash-nav-icon {
  background: transparent !important;
  color: currentColor !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on {
  background: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.34) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-icon,
html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-text {
  background: transparent !important;
  color: #ffffff !important;
}

/* Final home layout: action buttons are outside latest cards and below them. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout {
  grid-template-rows: auto auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content !important;
  row-gap: 10px !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-actions {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: 214px !important;
  max-width: 214px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  align-self: start !important;
  justify-self: start !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-actions .home-latest-more--bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-map-row {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}

/* Move the first-page latest rides card lower. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-grid > .home-latest-section--rides {
  margin-top: 24px !important;
}

/* Final override: home latest buttons must sit below latest rides. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content max-content !important;
  align-content: start !important;
  row-gap: 10px !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity {
  grid-row: 1 !important;
  max-height: 150px !important;
  margin: 0 !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides {
  grid-row: 2 !important;
  max-height: 150px !important;
  margin: 0 !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions {
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 4 !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions .home-latest-more--bottom {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  min-height: 28px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Home page: keep latest action buttons below the latest rides card. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content max-content !important;
  align-content: start !important;
  row-gap: 14px !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity {
  grid-row: 1 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides {
  grid-row: 2 !important;
  margin-bottom: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions {
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions .home-latest-more--bottom {
  position: static !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Last word: latest action buttons get their own grid row, never behind cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content max-content !important;
  row-gap: 14px !important;
  overflow: visible !important;
  align-content: start !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity {
  grid-row: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  transform: none !important;
  margin: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides {
  grid-row: 2 !important;
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions {
  grid-row: 3 !important;
  position: relative !important;
  z-index: 30 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions .home-latest-more--bottom {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Last word: separate latest activity action from latest rides cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  row-gap: 18px !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity {
  transform: none !important;
  margin-bottom: 10px !important;
  z-index: 2 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity::after {
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides {
  margin-top: 8px !important;
  z-index: 1 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more--bottom {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  transform: none !important;
}

/* Final action row: buttons live outside the latest cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions .home-latest-more--bottom {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 7px 8px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.14) !important;
  position: static !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-actions .home-latest-more--rides {
  color: #2563eb !important;
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.14) !important;
}

/* Last word: only bottom "view all" buttons are visible in latest cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-head .home-latest-more,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more:not(.home-latest-more--bottom) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more--bottom {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  width: 100% !important;
  min-height: 28px !important;
  margin-top: 8px !important;
}

/* Smaller completed check mark in latest cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-alert-row--success .home-alert-icon {
  width: 11px !important;
  height: 11px !important;
  flex-basis: 11px !important;
  stroke-width: 1.8 !important;
}

/* Final fix: bottom action buttons live below latest lists, not behind them. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-alerts {
  display: block !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-list {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  gap: 5px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more--bottom {
  position: relative !important;
  z-index: 5 !important;
  flex: 0 0 auto !important;
  margin-top: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more:not(.home-latest-more--bottom) {
  display: none !important;
}

/* Final compact latest cards: prevent activity/rides overlap in the narrow column. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content !important;
  row-gap: 28px !important;
  align-content: start !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section {
  min-height: 0 !important;
  max-height: 168px !important;
  height: auto !important;
  padding: 8px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head {
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 0 6px !important;
  padding: 7px 10px !important;
  border-radius: 5px !important;
  top: 0 !important;
  gap: 5px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head h3 {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more {
  min-height: 24px !important;
  padding: 4px 6px !important;
  font-size: 9px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more--bottom {
  width: 100% !important;
  min-height: 28px !important;
  margin-top: 6px !important;
  padding: 6px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.14) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides .home-latest-more--bottom {
  color: #2563eb !important;
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.14) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-more--bottom:hover {
  filter: saturate(1.12) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-live {
  flex: 0 0 auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head h3 {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-alerts,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-list {
  min-height: 0 !important;
  gap: 5px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-row {
  min-height: 36px !important;
  height: 36px !important;
  padding: 6px 8px !important;
  gap: 5px !important;
  border-radius: 8px !important;
  border-left-width: 3px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-icon {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-alert-time {
  flex: 0 0 auto !important;
  padding: 2px 5px !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}

/* Keep the latest rides header visible but compact. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides .home-latest-head {
  display: flex !important;
}

/* Nudge latest activity up one small step only. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity {
  transform: translateY(-6px) !important;
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 4px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--activity::after {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: -18px !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0), rgba(16, 185, 129, 0.38), rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0)) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section--rides {
  position: relative !important;
  margin-top: 8px !important;
}

/* Final visible latest headers: same map-header tone, no overflow or clipping. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section {
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head {
  flex: 0 0 auto !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 0 8px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  background: #f9fbfa !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  top: -4px !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head h3 {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head h3::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-section .home-latest-head h3::after {
  display: none !important;
}

/* Home activity news ticker linked to latest activity data. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker {
  width: calc(100vw - var(--dash-sidebar-w, 58px) - 70px) !important;
  max-width: none !important;
  margin: 8px 0 12px auto !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(59, 130, 246, 0.06)),
    #f9fbfa !important;
  box-shadow: none !important;
  direction: rtl !important;
  position: relative !important;
  isolation: isolate !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 46px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker::before {
  right: 0 !important;
  background: linear-gradient(90deg, rgba(249, 251, 250, 0), #f9fbfa) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker::after {
  left: 0 !important;
  background: linear-gradient(90deg, #f9fbfa, rgba(249, 251, 250, 0)) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-label {
  flex: 0 0 auto !important;
  height: 42px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #047857 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  border-left: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: rgba(16, 185, 129, 0.06) !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 3 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-label::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.42) !important;
  animation: homeTickerLivePulse 1.6s ease-out infinite !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-label .fi {
  font-size: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-track {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 100% !important;
  padding-inline: 18px !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  animation: homeActivityTickerScroll 32s linear infinite !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker:hover .home-news-ticker-content {
  animation-play-state: paused !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-item::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker-item:nth-child(2n)::before {
  background: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

/* Home breathing room: separate the stats row from the main header. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-stats-bar {
  margin-top: 12px !important;
}

@keyframes homeTickerLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.42);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes homeActivityTickerScroll {
  0% {
    transform: translateX(-8%);
  }
  100% {
    transform: translateX(55%);
  }
}

@media (max-width: 1180px) {
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-news-ticker {
    width: 100% !important;
    margin-inline: 0 !important;
  }
}

/* Final admin home alignment: nudge latest activity slightly left only. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  transform: translate(-8px, 8px) !important;
}

/* Final admin home headers: match latest cards with the map header. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  overflow: hidden !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head {
  min-height: 42px !important;
  margin: -14px -14px 10px !important;
  padding: 10px 14px !important;
  background: #f9fbfa !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 {
  width: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3::after {
  display: none !important;
}

/* Home layout tweak: widen map toward sidebar and slightly shrink latest activity column. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page {
  grid-template-columns: minmax(720px, 930px) minmax(210px, 235px) !important;
  max-width: 1188px !important;
  gap: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-map-row,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map {
  width: 100% !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  width: 235px !important;
  max-width: 235px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  padding: 11px 12px !important;
}

/* Strong layout correction: map wider, latest column smaller. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-content-inner {
  max-width: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page {
  width: calc(100vw - var(--dash-sidebar-w, 58px) - 12px) !important;
  max-width: none !important;
  direction: rtl !important;
  grid-template-columns: 205px minmax(0, 1fr) !important;
  justify-content: stretch !important;
  margin-right: -8px !important;
  margin-left: auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  grid-column: 2 !important;
  direction: rtl !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-map-row {
  grid-column: 1 !important;
  direction: rtl !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-map-row {
  min-width: 0 !important;
  width: 100% !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  width: 205px !important;
  max-width: 205px !important;
  min-width: 205px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  width: 100% !important;
  max-width: 205px !important;
}

/* Final isolated home layout. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout {
  display: grid !important;
  direction: ltr !important;
  grid-template-columns: 214px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  column-gap: 12px !important;
  width: calc(100vw - var(--dash-sidebar-w, 58px) - 70px) !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  align-items: start !important;
  justify-content: stretch !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-latest-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  direction: rtl !important;
  width: 214px !important;
  min-width: 214px !important;
  max-width: 214px !important;
  justify-self: start !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .home-map-row {
  grid-column: 2 !important;
  grid-row: 1 !important;
  direction: rtl !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout .dash-panel-home-map {
  width: 100% !important;
}

/* Softer unified look for latest activity cards. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fffb 100%) !important;
  border-color: rgba(13, 148, 136, 0.12) !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.045) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3 .fi,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-live {
  color: #0f766e !important;
  background: #e6fffa !important;
  border-color: rgba(20, 184, 166, 0.18) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-live::before {
  background: #14b8a6 !important;
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row {
  color: #115e59 !important;
  background: #f0fdfa !important;
  border-left-color: #14b8a6 !important;
  border: 1px solid rgba(20, 184, 166, 0.14) !important;
  border-left-width: 4px !important;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.055) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row:focus-visible {
  background: #ccfbf1 !important;
  transform: translateY(-1px) scale(1.01) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-icon {
  color: #0d9488 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-time {
  background: rgba(255, 255, 255, 0.62) !important;
  color: #0f766e !important;
}

/* Uiverse cards — kamehame-ha, adapted for latest activity/rides. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head {
  margin-bottom: 12px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-align: center !important;
  min-height: 100px !important;
  width: 100% !important;
  border-radius: 10px !important;
  border: 0 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: 400ms !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--success,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--captain {
  background-color: #22c55e !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--info {
  background-color: #3b82f6 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--warning {
  background-color: #f59e0b !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--error {
  background-color: #f43f5e !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-icon {
  width: 22px !important;
  height: 22px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-text {
  font-size: 1em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  max-width: 100%;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-time {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.7em !important;
  font-weight: 800 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:focus-visible {
  transform: scale(1.06, 1.06) !important;
  outline: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list:hover > .home-alert-row:not(:hover) {
  filter: blur(6px) !important;
  transform: scale(0.94, 0.94) !important;
}

/* Final Uiverse palette only: green, blue, red. Remove old experimental colors. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section::after {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head h3 .fi,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-head h3 .fi {
  color: #ffffff !important;
  background: #071329 !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-more {
  color: #071329 !important;
  background: rgba(7, 19, 41, 0.08) !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-live {
  color: #ffffff !important;
  background: #22c55e !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-live::before {
  background: #ffffff !important;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--success,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--captain {
  color: #ffffff !important;
  background: #22c55e !important;
  background-color: #22c55e !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--info,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--warning {
  color: #ffffff !important;
  background: #3b82f6 !important;
  background-color: #3b82f6 !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row--error {
  color: #ffffff !important;
  background: #f43f5e !important;
  background-color: #f43f5e !important;
  border: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:hover {
  filter: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-icon,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-text,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-time {
  color: #ffffff !important;
}

/* Force Uiverse exact color on the activity side; remove old mint layer. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row--success,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row--captain,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row--info,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row--warning,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row--error {
  color: #ffffff !important;
  background: #22c55e !important;
  background-color: #22c55e !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-alert-row:focus-visible {
  background: #22c55e !important;
  background-color: #22c55e !important;
}

/* Final polish for Uiverse latest cards: cleaner spacing, less noisy effects. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  align-items: start;
  gap: 16px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  padding: 0 !important;
  background: transparent !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head {
  min-height: 34px;
  margin-bottom: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head h3 {
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row {
  min-height: 88px !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:focus-visible {
  transform: translateY(-2px) scale(1.02) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list:hover > .home-alert-row:not(:hover) {
  filter: blur(2px) opacity(0.72) !important;
  transform: scale(0.98) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-icon {
  width: 20px !important;
  height: 20px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-text {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-time {
  margin-top: 2px;
  font-size: 12px !important;
  opacity: 0.86;
}

/* Compact rectangular latest cards + modern interactive title. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head {
  min-height: 32px;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3 {
  position: relative;
  padding: 4px 8px 4px 0;
  color: #071329 !important;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, color 0.2s ease;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3:hover {
  color: #10b981 !important;
  transform: translateX(-2px);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3::after {
  content: "";
  position: absolute;
  right: 42px;
  left: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, transparent);
  transform: scaleX(0.42);
  transform-origin: right;
  transition: transform 0.22s ease;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3:hover::after {
  transform: scaleX(1);
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  gap: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row {
  min-height: 54px !important;
  height: 54px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: start !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:hover,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-row:focus-visible {
  transform: translateY(-1px) scale(1.01) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list:hover > .home-alert-row:not(:hover) {
  filter: blur(1px) opacity(0.84) !important;
  transform: scale(0.99) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-time {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  font-size: 11px !important;
}

/* Equalize latest sections dimensions. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  align-items: stretch !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  display: flex !important;
  flex-direction: column !important;
  min-height: 236px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-head {
  flex: 0 0 34px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-alerts,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  flex: 1 1 auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-alert-list {
  justify-content: flex-start !important;
}

/* Narrow the two latest sections and keep a visible gap between them. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  grid-template-columns: minmax(260px, 0.42fr) minmax(260px, 0.42fr) !important;
  justify-content: center !important;
  column-gap: 34px !important;
}

/* Keep latest cards beside the map without overlap. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page {
  display: grid !important;
  grid-template-columns: minmax(660px, 840px) minmax(230px, 270px) !important;
  grid-template-rows: auto !important;
  gap: 8px !important;
  align-items: start !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: 1118px !important;
  margin: 0 auto !important;
  margin-inline: auto !important;
  position: relative !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page::before {
  content: none !important;
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
  grid-row: 1 !important;
  grid-column: 2 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content !important;
  align-content: start !important;
  row-gap: 26px !important;
  column-gap: 0 !important;
  position: relative !important;
  padding-top: 0 !important;
  transform: none !important;
  z-index: 3 !important;
  min-height: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-map-row {
  grid-row: 1 !important;
  grid-column: 1 !important;
  width: min(100%, 840px) !important;
  min-width: 660px !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  justify-self: end !important;
  position: relative !important;
  z-index: 3 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 5px !important;
  border-width: 1px !important;
  overflow: hidden !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-map {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-panel-head {
  min-height: 42px !important;
  padding: 10px 14px !important;
  position: relative !important;
  z-index: 4 !important;
  border-bottom-color: rgba(15, 23, 42, 0.07) !important;
  background: #f9fbfa !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .dash-panel-home-map .dash-map-legend {
  padding: 8px 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section {
  min-height: 0 !important;
  height: auto !important;
  max-height: 205px !important;
  overflow: auto !important;
  scrollbar-width: thin;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head {
  position: static !important;
  inset-inline: auto !important;
  top: auto !important;
  min-height: 28px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: auto !important;
  pointer-events: auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-live {
  display: inline-grid !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head {
  min-height: 28px !important;
  margin-bottom: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 {
  font-size: 14px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 .fi {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-live {
  width: 25px !important;
  height: 25px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-list {
  gap: 8px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-row {
  min-height: 52px !important;
  height: 52px !important;
  padding: 8px 10px !important;
  border-radius: 11px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-icon {
  width: 16px !important;
  height: 16px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-text {
  font-size: 12px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-time {
  padding: 3px 6px !important;
  font-size: 10px !important;
}

/* Distinct interactive latest titles, text-only. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 .fi {
  display: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  padding: 5px 9px 6px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    filter 0.22s ease !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-more {
  min-height: 25px !important;
  padding: 5px 8px !important;
  font-size: 10px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-alert-row {
  gap: 6px !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3 span {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  opacity: 0.12 !important;
  z-index: 0 !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3::after {
  content: "" !important;
  position: absolute !important;
  right: 12px !important;
  left: 12px !important;
  bottom: 2px !important;
  height: 2px !important;
  border-radius: 999px !important;
  transform: scaleX(0.35) !important;
  transform-origin: right !important;
  transition: transform 0.22s ease !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3:hover {
  transform: translateX(-3px) translateY(-1px) !important;
  filter: saturate(1.12) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3:hover::before {
  opacity: 0.2 !important;
  transform: scale(1.04) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section .home-latest-head h3:hover::after {
  transform: scaleX(1) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3 {
  color: #047857 !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3::before {
  background: linear-gradient(90deg, #10b981, #22c55e) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--activity .home-latest-head h3::after {
  background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0)) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-head h3 {
  color: #2563eb !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-head h3::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4) !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section--rides .home-latest-head h3::after {
  background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0)) !important;
}

/* Flat latest cards and titles: no shadows. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section *,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section *::before,
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-section *::after {
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(400px, 52vh) auto !important;
  }

  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    grid-template-rows: auto !important;
  }

  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-map-row {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(100%, 560px) !important;
    min-width: 0 !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-latest-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Restore original light sidebar after dark/icon trials. */
html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav {
  gap: 8px !important;
  padding: 0 !important;
  align-items: stretch !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 auto !important;
  padding: 5px 2px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-icon .fi {
  color: currentColor !important;
  font-size: 17px !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-text {
  max-width: 48px !important;
  margin-top: 0 !important;
  color: currentColor !important;
  font-size: 8px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item:hover {
  color: #0f172a !important;
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.12) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on {
  color: #ffffff !important;
  background: linear-gradient(180deg, #10b981, #059669) !important;
  border-color: rgba(5, 150, 105, 0.24) !important;
  box-shadow: 0 10px 18px rgba(16, 185, 129, 0.22) !important;
}

html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-icon,
html[data-theme="light"] body.dash-shell-yt .dash-sidebar--yt .dash-nav-item.on .dash-nav-text {
  background: transparent !important;
  color: #ffffff !important;
}

/* Final home layout: action buttons are outside latest cards and below them. */
html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout {
  grid-template-rows: auto auto !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: max-content max-content !important;
  row-gap: 10px !important;
  overflow: visible !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-actions {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: 214px !important;
  max-width: 214px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  align-self: start !important;
  justify-self: start !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-latest-actions .home-latest-more--bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}

html[data-theme="light"] body.dash-shell-yt[data-admin-view="home"] .home-page.home-page--final-layout > .home-map-row {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}
.settings-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.settings-legal-links .dash-btn {
  text-decoration: none;
}
