/* ==========================================================================
   ACRB ADMIN DASHBOARD TELEMETRY (SCOPED - NO :ROOT, NO GRADIENTS)
   ========================================================================== */

.acrb-dash-shell,
.acrb-dash-shell *,
.acrb-dash-shell *::before,
.acrb-dash-shell *::after {
  box-sizing: border-box;
}

.acrb-dash-shell {
  max-width: 1300px;
  margin: 20px 20px 40px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   Telemetry Header Banner
   -------------------------------------------------------------------------- */
.acrb-telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-telemetry-title h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.acrb-telemetry-title p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-telemetry-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acrb-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.acrb-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.acrb-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.acrb-icon-middle {
  vertical-align: middle;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.acrb-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acrb-refresh-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Quick Action Shortcuts Strip
   -------------------------------------------------------------------------- */
.acrb-shortcuts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.acrb-shortcut-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}

.acrb-shortcut-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.acrb-shortcut-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrb-shortcut-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.acrb-shortcut-icon.acrb-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.acrb-shortcut-icon.acrb-icon-pink {
  background: #fdf2f8;
  color: #db2777;
}

.acrb-shortcut-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.acrb-shortcut-text strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.acrb-shortcut-text span {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   KPI Metric Cards
   -------------------------------------------------------------------------- */
.acrb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.acrb-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.acrb-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.acrb-kpi-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.acrb-kpi-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.acrb-kpi-mini-icon {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.badge-primary {
  background: #eef2ff;
  color: #4f46e5;
}

.badge-success {
  background: #ecfdf5;
  color: #047857;
}

.badge-warning {
  background: #fffbeb;
  color: #b45309;
}

.acrb-kpi-val {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 14px 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.acrb-kpi-val.acrb-revenue-val {
  color: #047857;
}

.acrb-kpi-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.acrb-text-emerald {
  color: #059669;
  font-weight: 800;
}

.acrb-text-amber {
  color: #d97706;
  font-weight: 800;
}

.acrb-kpi-subtext {
  color: #0f172a;
  font-weight: 700;
}

.acrb-kpi-subtext-dark {
  color: #0f172a;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Split Layout (Panels)
   -------------------------------------------------------------------------- */
.acrb-grid-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.acrb-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.acrb-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acrb-panel-header h3 .dashicons {
  color: #4f46e5;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.acrb-view-all:hover {
  text-decoration: underline;
}

.acrb-total-counter {
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   Recent Bookings Table
   -------------------------------------------------------------------------- */
.acrb-table-responsive {
  overflow-x: auto;
}

.acrb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.acrb-table th {
  padding: 10px 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}

.acrb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.acrb-table tbody tr:last-child td {
  border-bottom: none;
}

.acrb-table tbody tr:hover td {
  background: #f8fafc;
}

.acrb-code-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #334155;
  font-weight: 700;
}

.acrb-table-car-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #64748b;
  vertical-align: -3px;
}

.acrb-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-confirmed,
.status-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   Fleet Utilization Gauge & Statistics
   -------------------------------------------------------------------------- */
.acrb-gauge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 24px;
}

.acrb-gauge-outer {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #eef2ff;
  border: 8px solid #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrb-gauge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.acrb-gauge-percent {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.acrb-gauge-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.acrb-fleet-stats-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.acrb-fleet-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.acrb-fleet-stat-row strong {
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
}

.acrb-stat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-emerald {
  background: #10b981;
}

.dot-indigo {
  background: #4f46e5;
}

.dot-amber {
  background: #f59e0b;
}

.acrb-calendar-link-wrap {
  margin-top: 12px;
}

.acrb-calendar-full-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.acrb-calendar-full-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Empty Fallback State
   -------------------------------------------------------------------------- */
.acrb-empty-box {
  text-align: center;
  padding: 36px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
}

.acrb-empty-box p {
  margin: 0 0 14px 0;
  font-size: 13.5px;
}

.acrb-btn-primary-inline {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

.acrb-btn-primary-inline:hover {
  background: #4338ca !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .acrb-shortcuts-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .acrb-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .acrb-grid-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .acrb-shortcuts-strip {
    grid-template-columns: 1fr;
  }
  .acrb-kpi-grid {
    grid-template-columns: 1fr;
  }
  .acrb-telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}