/* Road Apulia — dashboard autista + layer Tweakcn (Claude +) */

html:not([data-theme="light"]) {
  --text-muted: var(--muted-foreground);
}

.dash-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dash-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dash-search-wrap {
  flex: 1;
  min-width: min(100%, 260px);
  position: relative;
}

.dash-search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 11px 44px 11px 14px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
}

.dash-search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
}

.dash-search-wrap input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dash-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

.dash-select {
  padding: 10px 14px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  cursor: pointer;
  min-width: 160px;
}

.dash-select:focus {
  outline: none;
  border-color: var(--gold);
}

.dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: .82rem;
  cursor: pointer;
  transition: all .25s;
}

.dash-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dash-icon-btn.spinning svg {
  animation: dashSpin .8s linear infinite;
}

@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

.dash-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .78rem;
  color: var(--text-muted);
}

.dash-toolbar-meta strong {
  color: var(--gold);
  font-weight: 600;
}

.stats-row-secondary {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.dash-stats-operative {
  margin-bottom: 24px;
}

.dash-stats-operative summary {
  cursor: pointer;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  list-style: none;
  user-select: none;
}

.dash-stats-operative summary::-webkit-details-marker {
  display: none;
}

.dash-stats-operative summary::before {
  content: '▸ ';
  color: var(--gold);
}

.dash-stats-operative[open] summary::before {
  content: '▾ ';
}

@media (min-width: 769px) {
  .dash-stats-operative summary {
    display: none;
  }
  .dash-stats-operative .stats-row-primary {
    display: grid;
  }
}

.dash-stats-report {
  margin-bottom: 24px;
}

.dash-stats-report summary {
  cursor: pointer;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  list-style: none;
  user-select: none;
}

.dash-stats-report summary::-webkit-details-marker {
  display: none;
}

.dash-stats-report summary::before {
  content: '▸ ';
  color: var(--gold);
}

.dash-stats-report[open] summary::before {
  content: '▾ ';
}

@media (min-width: 901px) {
  .dash-stats-report summary {
    display: none;
  }
  .dash-stats-report .stats-row-secondary {
    display: grid;
  }
}

.stats-row-secondary .stat-card {
  padding: 14px 16px;
}

.stats-row-secondary .stat-card .value {
  font-size: 1.25rem;
}

.dash-next-trip {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--ra-primary-12), var(--ra-primary-04));
  border: 1px solid var(--ra-primary-35);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-next-trip-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}

.dash-next-trip > div:first-child {
  flex: 1 1 180px;
  min-width: 0;
}

.dash-next-trip-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dash-next-trip-meta {
  font-size: .85rem;
  color: var(--text-muted);
}

.dash-next-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-filters-panel {
  margin-bottom: 16px;
}

.dash-filters-panel summary {
  list-style: none;
  cursor: pointer;
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: none;
}

.dash-filters-panel summary::-webkit-details-marker {
  display: none;
}

.filter-count {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: .7rem;
  background: var(--ra-primary-15);
  color: var(--primary);
}

.date-filter-btn.active .filter-count {
  background: var(--ra-primary-25);
}

.dash-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.dash-toolbar-actions .export-btn {
  margin-bottom: 0;
}

.export-meta {
  font-size: .78rem;
  color: var(--text-muted);
}

.bookings-table-wrap {
  max-height: min(70vh, 720px);
  overflow: auto;
}

.bookings-table thead th {
  position: sticky;
  top: 0;
  background: var(--black-2);
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}

.bookings-table tbody tr {
  cursor: pointer;
}

.bookings-table .notes-preview {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .75rem;
  color: var(--text-muted);
}

/* Drawer dettaglio */
.booking-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.booking-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.booking-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  transition: opacity .25s;
}

.booking-drawer.open .booking-drawer-backdrop {
  opacity: 1;
}

.booking-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  background: var(--black-2);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-drawer.open .booking-drawer-panel {
  transform: translateX(0);
}

.booking-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.booking-drawer-ref {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: 1px;
}

.booking-drawer-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booking-drawer-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  flex-shrink: 0;
  background: var(--black-2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.booking-drawer-tab {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.booking-drawer-tab:hover {
  color: var(--gold-light);
}

.booking-drawer-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.booking-drawer-tab-panel {
  display: none;
  padding: 20px 22px;
  flex: 1;
}

.booking-drawer-tab-panel.active {
  display: block;
}

.booking-drawer-empty {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

.booking-drawer-admin-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.booking-drawer-section {
  margin-bottom: 20px;
}

.booking-drawer-section h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}

.booking-detail-grid {
  display: grid;
  gap: 10px;
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.booking-detail-row span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.booking-detail-row span:last-child {
  color: var(--white);
  text-align: right;
  word-break: break-word;
}

.booking-drawer-notes {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
  padding: 12px;
  background: var(--black-3);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.booking-drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  vertical-align: middle;
}

.sync-dot.stale {
  background: var(--warning);
}

.sync-dot.error {
  background: var(--danger);
}

#syncStatusText {
  font-size: .75rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .stats-row-secondary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-row-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-filters-panel summary {
    display: block;
  }
  .dash-filters-panel .date-filters,
  .dash-filters-panel .status-filters {
    margin-top: 8px;
  }
}

/* Tema chiaro — token Tweakcn in dashboard-tweakcn-tokens.css; solo ritocchi locali */
html[data-theme="light"] {
  --text-muted: var(--muted-foreground);
}

html[data-theme="light"] body {
  background: var(--black);
  color: var(--text);
}

html[data-theme="light"] .login-form input,
html[data-theme="light"] .dash-search-wrap input,
html[data-theme="light"] .dash-select {
  color: var(--white);
}

html[data-theme="light"] .dash-header-menu {
  box-shadow: 0 12px 32px rgba(60, 45, 20, .14);
}

.dash-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
  justify-content: space-around;
  gap: 4px;
}

.dash-bottom-nav button {
  flex: 1;
  min-height: 48px;
  border: 1px solid transparent;
  background: var(--ra-primary-04);
  color: var(--text-muted);
  font-size: .72rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 2px;
}

.dash-bottom-nav button .ico {
  font-size: 1.15rem;
  line-height: 1;
}

.dash-bottom-nav button .dash-ico,
.dash-header-menu .dash-ico,
svg.dash-ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.dash-header-menu .dash-ico {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.dash-header-menu button:hover .dash-ico,
.dash-header-menu a:hover .dash-ico {
  color: var(--gold);
}

svg.dash-ico circle[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.dash-bottom-nav-primary {
  flex: 1.35;
  max-width: 104px;
  min-height: 54px;
  margin-top: -8px;
  border: 1px solid var(--ra-primary-45);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--gold-dark));
  color: var(--black);
  font-weight: 600;
  font-size: .68rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  box-shadow: 0 6px 20px var(--ra-primary-28);
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}

.dash-bottom-primary-kicker {
  display: block;
  font-size: .58rem;
  font-weight: 500;
  opacity: .85;
  letter-spacing: .2px;
}

.dash-bottom-nav-hint {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(76px + env(safe-area-inset-bottom, 0));
  z-index: 899;
  margin: 0;
  text-align: center;
  font-size: .68rem;
  color: var(--text-muted);
  padding: 4px 14px;
  pointer-events: auto;
  cursor: pointer;
  background: linear-gradient(to top, var(--black-2) 60%, transparent);
}

.dash-bottom-nav-hint.dismissed {
  display: none !important;
}

.dash-bottom-nav-primary.is-empty {
  opacity: .35;
  box-shadow: none;
  pointer-events: none;
}

.dash-bottom-primary-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-bottom-nav button.active,
.dash-bottom-nav button:hover {
  color: var(--primary);
  background: var(--ra-primary-08);
}

@media (max-width: 768px) {
  .dash-bottom-nav { display: flex; align-items: flex-end; }
  .dash-bottom-nav-hint:not(.dismissed) { display: block; }
  .dashboard-body {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
  }
  .dash-mobile-heavy { display: none !important; }
  .dash-toolbar.dash-mobile-toolbar-show {
    display: flex !important;
    flex-direction: column;
    order: 2;
    margin-bottom: 12px;
  }
  .dash-toolbar.dash-mobile-toolbar-show .dash-toolbar-meta,
  .dash-toolbar.dash-mobile-toolbar-show #dashSort,
  .dash-toolbar.dash-mobile-toolbar-show #dashRefreshBtn {
    display: none !important;
  }
  .dash-toolbar.dash-mobile-toolbar-show .dash-toolbar-main {
    width: 100%;
  }
  .dash-offline-banner { order: 0; }
  .dash-hero-slot { order: 1; }
  .view-toggle { order: 4; margin-bottom: 12px; }
  .dash-filters-panel { order: 5; }
  .trips-grid,
  .list-view,
  .calendar-view,
  .empty-state { order: 6; }
  .bookings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bookings-table {
    min-width: 520px;
  }
  .dash-filters-panel:not([open]) .date-filters,
  .dash-filters-panel:not([open]) .status-filters {
    display: none;
  }
}

@media (min-width: 769px) {
  .dash-bottom-nav { display: none !important; }
  .dash-mobile-primary { display: none !important; }
}

.dash-form-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .dash-form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-form-field label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash-form-field input,
.dash-form-field select,
.dash-form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
}

.dash-form-field input:focus-visible,
.dash-form-field select:focus-visible,
.dash-form-field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dash-form-field textarea {
  min-height: 72px;
  resize: vertical;
}

.dash-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dash-form-actions .trip-card-btn {
  min-height: 48px;
  padding: 12px 18px;
}

.pricing-vehicle-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--black-3);
}

.pricing-vehicle-block h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 10px;
}

.empty-state h3,
.empty-state p {
  overflow-wrap: anywhere;
  padding: 0 12px;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* === Tweakcn high-density dark UI === */

.trip-card-btn-complete {
  background: var(--ra-primary-12);
  color: var(--primary);
  border-color: var(--ra-primary-30);
}

.trip-card-btn-complete:hover {
  background: var(--ra-primary-20);
}

.login-form button {
  background: var(--primary);
  color: var(--primary-foreground);
}

.login-form button:hover {
  filter: brightness(1.06);
  background: var(--primary);
}

.stat-card::before {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

body.dash-tweakcn-loaded,
html.dash-tweakcn body {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}

.dash-next-trip-hero {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 22px 20px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--foreground) 6%, transparent),
    0 12px 40px color-mix(in srgb, var(--background) 40%, transparent);
}

.dash-next-trip-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--ring)));
}

.dash-next-trip-hero.is-empty {
  opacity: 0.92;
}

.dash-next-trip-main {
  min-width: 0;
}

.dash-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.dash-hero-actions-primary,
.dash-hero-actions-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-hero-actions-primary .trip-card-btn-primary {
  flex: 1 1 100%;
}

.dash-hero-actions-tools .tweakcn-btn-xl {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
}

.tweakcn-btn-xl {
  min-height: 48px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: calc(var(--radius) - 2px);
  border-width: 1px;
  border-style: solid;
}

.tweakcn-btn-xl:active {
  transform: scale(0.98);
}

.trip-card-btn-primary.tweakcn-btn-xl {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: color-mix(in srgb, var(--primary) 70%, var(--foreground));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ring) 35%, transparent);
}

.trip-card-btn-primary.tweakcn-btn-xl:hover {
  filter: brightness(1.06);
  background: var(--primary);
}

.trip-card-btn-call.tweakcn-btn-xl,
.trip-card-btn-nav.tweakcn-btn-xl {
  background: var(--muted);
  color: var(--foreground);
  border-color: var(--border);
}

.trip-card-btn-call.tweakcn-btn-xl:hover,
.trip-card-btn-nav.tweakcn-btn-xl:hover {
  border-color: var(--ring);
  color: var(--foreground);
  background: color-mix(in srgb, var(--accent) 65%, var(--muted));
}

.stat-card,
.trip-card,
.dash-toolbar,
.view-btn,
.date-filter-btn,
.login-card {
  border-radius: var(--radius);
}

.stat-card,
.trip-card,
.dash-toolbar {
  background: var(--card);
  border-color: var(--border);
}

.view-btn.active,
.date-filter-btn.active {
  border-color: var(--ring);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ring) 25%, transparent);
}

#syncStatusLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 80%, var(--card));
}

.sync-dot {
  width: 8px;
  height: 8px;
  margin-right: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 35%, transparent);
  animation: tweakcnSyncPulse 2.2s ease-in-out infinite;
}

.sync-dot.stale {
  background: var(--warning);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 35%, transparent);
  animation: tweakcnSyncPulseWarn 1.6s ease-in-out infinite;
}

.sync-dot.error {
  background: var(--destructive);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--destructive) 35%, transparent);
  animation: none;
}

@keyframes tweakcnSyncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

@keyframes tweakcnSyncPulseWarn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.dashboard-header--tweakcn {
  background: color-mix(in srgb, var(--card) 94%, var(--background));
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
}

.dash-bottom-nav {
  background: color-mix(in srgb, var(--card) 96%, var(--background));
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px color-mix(in srgb, var(--background) 55%, transparent);
}

.dash-bottom-nav button {
  border-color: transparent;
  background: transparent;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) - 4px);
  font-weight: 600;
}

.dash-bottom-nav button.active,
.dash-bottom-nav button:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--border) 80%, var(--ring));
}

.dash-bottom-nav-primary {
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

.dash-bottom-nav-primary.is-empty {
  background: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--border);
}

.booking-drawer-panel {
  background: var(--card);
  border-left-color: var(--border);
}

.bookings-table thead th {
  background: var(--card);
}

@media (max-width: 768px) {
  .dashboard-header--tweakcn {
    padding: 8px 12px;
    min-height: 52px;
  }

  .dashboard-header--tweakcn .dashboard-header-brand h1 {
    display: none;
  }

  .dashboard-header--tweakcn .dashboard-header-brand span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted-foreground);
  }

  .dashboard-header--tweakcn .dashboard-header-actions {
    gap: 6px;
  }

  .dash-hero-slot {
    order: 1;
  }

  .dash-toolbar.dash-mobile-toolbar-show {
    order: 2;
  }

  .dash-stats-operative {
    order: 3;
  }

  #dashNextTripWrap .dash-next-trip-hero {
    padding: 24px 18px;
    margin-bottom: 14px;
  }

  .dash-bottom-nav button {
    min-height: 52px;
    font-size: 0.68rem;
  }

  .dash-bottom-nav-primary {
    min-height: 58px;
    font-size: 0.72rem;
  }
}

@media (min-width: 769px) {
  .dash-hero-slot {
    margin-top: 4px;
  }

  .dash-next-trip-hero {
    padding: 26px 28px;
  }

  .dash-hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dash-hero-actions-primary {
    flex: 1 1 auto;
  }

  .dash-hero-actions-primary .trip-card-btn-primary {
    flex: 0 1 auto;
    min-width: 220px;
  }

  .dash-hero-actions-tools {
    flex: 0 1 auto;
    justify-content: flex-end;
  }
}
