/* ═══════════════════════════════════════════════════════════════════════════
   G2 LOGISTICS - COMMAND CENTER DASHBOARD
   Premium Industrial Editorial Design
   ═══════════════════════════════════════════════════════════════════════════ */

/* Shared brand variables */
@import url('g2-variables.css');

/* ═══════════════════════════════════════════════════════════════════════════
   BASE LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
html, body {
  min-height: 100vh;
  background: var(--g2-light);
  font-family: var(--font-body);
}

.app-layout {
  min-height: 100vh;
  background: var(--g2-light);
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F0F0EE;
  border: 2px solid #E5E5E3;
  padding: 10px 18px;
  width: 340px;
  transition: all 0.2s;
  border-radius: var(--radius-md);
}

.search-box:focus-within {
  border-color: var(--g2-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(10, 132, 221, 0.1);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Search Results Dropdown ── */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 999;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.open { display: block; }

.search-result-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
  cursor: pointer;
}
.search-result-item:hover,
.search-result-item:focus {
  background: #f8f7f6;
  outline: none;
}
.search-result-item:last-of-type { border-bottom: none; }

.search-result-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.search-result-ref {
  font-family: 'Inter', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #1c1917;
}
.search-result-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}
.status-active   { background: #dcfce7; color: #166534; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-completed { background: #e0f2fe; color: #0c4a6e; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-default  { background: #f5f5f4; color: #57534e; }

.search-result-detail {
  font-size: 12px;
  color: #78716c;
  margin-bottom: 2px;
}
.search-result-route {
  font-size: 11px;
  color: #a8a29e;
}

.search-no-results {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #a8a29e;
}

.search-view-all {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0A84DD;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.search-view-all:hover {
  background: #EFF6FF;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.notifications-wrapper {
  position: relative;
}

.notification-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-radius: 12px;
}

.notification-btn:hover {
  background: #F0F0EE;
}

.notification-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

/* Dark Mode - Dashboard Content */
[data-theme="dark"] .dashboard-content {
  background: #2D2D2B;
}

/* Dark Mode - Command Bar / Hero Section */
[data-theme="dark"] .command-bar {
  background: #2D2D2B;
}

[data-theme="dark"] .command-welcome {
  background: transparent;
}

[data-theme="dark"] .command-welcome h1 {
  color: #FFFFFF;
}

[data-theme="dark"] .command-welcome .welcome-tagline {
  color: #FFFFFF;
  opacity: 0.9;
}

[data-theme="dark"] .command-welcome .welcome-tagline .tagline-action {
  color: #0A84DD;
}

[data-theme="dark"] .command-info-row .greeting-text {
  color: var(--g2-orange);
}

[data-theme="dark"] .command-info-row .greeting-name {
  color: var(--g2-orange);
  font-weight: 800;
}

[data-theme="dark"] .command-info-row .greeting-divider {
  color: var(--g2-orange);
  opacity: 0.5;
}

[data-theme="dark"] .command-info-row .greeting-message {
  color: var(--g2-orange);
  opacity: 0.8;
}

[data-theme="dark"] .command-info-row .stat-item .stat-number {
  color: var(--g2-orange);
}

[data-theme="dark"] .command-info-row .stat-item .stat-label {
  color: var(--g2-orange);
  opacity: 0.7;
}

[data-theme="dark"] .search-box {
  background: #3D3D3B;
  border-color: #454543;
}

[data-theme="dark"] .search-box:focus-within {
  border-color: var(--g2-orange);
  background: #454543;
  box-shadow: 0 0 0 3px rgba(10, 132, 221, 0.15);
}

[data-theme="dark"] .search-box input {
  color: #FFFFFF;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #666666;
}

[data-theme="dark"] .search-box svg {
  color: #666666;
}

[data-theme="dark"] .notification-btn:hover {
  background: #454543;
}

[data-theme="dark"] .notification-btn svg {
  color: #B0B0B0;
}

[data-theme="dark"] .search-results-dropdown {
  background: #2a2a28;
  border-color: #454543;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .search-result-item {
  border-bottom-color: #353533;
}
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item:focus {
  background: #353533;
}
[data-theme="dark"] .search-result-ref { color: #ffffff; }
[data-theme="dark"] .search-result-detail { color: #999; }
[data-theme="dark"] .search-result-route { color: #666; }
[data-theme="dark"] .search-no-results { color: #666; }
[data-theme="dark"] .search-view-all {
  color: #0A84DD;
  border-top-color: #353533;
}
[data-theme="dark"] .search-view-all:hover { background: #353533; }
[data-theme="dark"] .status-active   { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .status-pending  { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .status-completed { background: #0c4a6e; color: #7dd3fc; }
[data-theme="dark"] .status-cancelled { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .status-default  { background: #353533; color: #a8a29e; }

[data-theme="dark"] .pending-jobs-section {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .live-now-panel {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .live-now-value {
  color: #FFFFFF;
}

[data-theme="dark"] .live-job-card {
  background: #3D3D3B;
  border-color: #454543;
}

[data-theme="dark"] .live-job-card:hover {
  border-color: #10B981;
}

[data-theme="dark"] .live-job-ref {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .live-job-vehicle {
  color: #FFFFFF;
}

[data-theme="dark"] .live-job-detail {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .live-job-detail .date-value {
  color: #FFFFFF;
}

[data-theme="dark"] .pending-jobs-header h2 {
  color: #FFFFFF;
}

[data-theme="dark"] .pending-jobs-header p {
  color: #808080;
}

[data-theme="dark"] .pending-job-card {
  background: #3D3D3B;
  border-color: #454543;
}

[data-theme="dark"] .pending-job-card:hover {
  border-color: #0A84DD;
}

[data-theme="dark"] .pending-job-vehicle {
  color: #FFFFFF;
}

[data-theme="dark"] .pending-job-reg {
  color: #0A84DD;
}

[data-theme="dark"] .pending-job-route {
  color: #B0B0B0;
}

[data-theme="dark"] .pending-job-date {
  color: #808080;
}

/* Dark mode - Quick Actions */
[data-theme="dark"] .quick-action-item {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .quick-action-item:hover {
  background: #3D3D3B;
  border-color: #0A84DD;
}

[data-theme="dark"] .quick-action-label {
  color: #FFFFFF;
}

[data-theme="dark"] .quick-action-desc {
  color: #A0A0A0;
}

[data-theme="dark"] .notifications-dropdown {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .notifications-header {
  border-bottom-color: #454543;
}

[data-theme="dark"] .notifications-header h3 {
  color: #FFFFFF;
}

[data-theme="dark"] .notifications-list {
  background: #353533;
}

[data-theme="dark"] .notification-item {
  border-bottom-color: #454543;
}

[data-theme="dark"] .notification-item:hover {
  background: #3D3D3B;
}

[data-theme="dark"] .notification-text {
  color: #FFFFFF;
}

[data-theme="dark"] .notification-time {
  color: #666666;
}

[data-theme="dark"] .notifications-footer {
  border-top-color: #454543;
  background: #2D2D2B;
}

[data-theme="dark"] .dashboard-modal {
  background: #353533;
}

[data-theme="dark"] .modal-body {
  background: #353533;
  color: #FFFFFF;
}

[data-theme="dark"] .schedule-job-item {
  background: #3D3D3B;
  border-color: #454543;
}

[data-theme="dark"] .schedule-job-vehicle {
  color: #FFFFFF;
}

[data-theme="dark"] .schedule-job-details {
  color: #B0B0B0;
}

[data-theme="dark"] .activity-item {
  border-bottom-color: #454543;
}

[data-theme="dark"] .activity-text {
  color: #FFFFFF;
}

[data-theme="dark"] .activity-time {
  color: #666666;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--g2-dark);
  color: var(--g2-white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 400px;
  max-height: 520px;
  background: var(--g2-white);
  border: 2px solid var(--g2-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
}

.notifications-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notifications-header {
  padding: 18px 24px;
  background: var(--g2-orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--g2-text-on-orange);
  margin: 0;
}

.mark-all-read {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--g2-text-on-orange);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: var(--radius-sm);
}

.mark-all-read:hover {
  background: rgba(255, 255, 255, 0.3);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
}

.notification-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--g2-border);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notification-item:hover {
  background: var(--g2-orange-glow);
}

.notification-item.unread {
  background: var(--g2-orange-glow);
  border-left: 4px solid var(--g2-orange);
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--g2-orange-glow);
  border: 2px solid var(--g2-orange);
  border-radius: var(--radius-md);
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  color: var(--g2-orange);
}

.notification-icon.job-accepted,
.notification-icon.job-completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--g2-success);
}
.notification-icon.job-accepted svg,
.notification-icon.job-completed svg {
  color: var(--g2-success);
}

.notification-icon.approval-needed {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--g2-warning);
}
.notification-icon.approval-needed svg {
  color: var(--g2-warning);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 3px;
}

.notification-message {
  font-size: 13px;
  color: var(--g2-gray);
  line-height: 1.4;
  margin-bottom: 6px;
}

.notification-time {
  font-size: 11px;
  color: var(--g2-muted);
  font-weight: 500;
}

.notification-unread-dot {
  width: 10px;
  height: 10px;
  background: var(--g2-orange);
  flex-shrink: 0;
  margin-top: 5px;
  border-radius: 50%;
}

.notifications-empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--g2-muted);
}

.notifications-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--g2-border);
}

.notifications-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--g2-border);
  text-align: center;
}

.notifications-footer a {
  font-size: 14px;
  color: var(--g2-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.notifications-footer a:hover {
  color: var(--g2-orange-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD CONTENT AREA
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-content {
  flex: 1;
  padding: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO COMMAND BAR
   Solid orange banner
   ═══════════════════════════════════════════════════════════════════════════ */
.command-bar {
  background: var(--g2-orange);
  padding: 60px 48px 20px;
  position: relative;
  overflow: hidden;
}

.command-bar::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.command-bar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* Center: Welcome heading */
.command-welcome {
  text-align: center;
}

.command-welcome h1 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--g2-text-on-orange);
  margin: 0 0 8px 0;
  padding: 60px 0 0;
  line-height: 1.1;
  text-align: center;
}

.command-welcome .welcome-tagline {
  font-size: 29px;
  color: var(--g2-text-on-orange);
  margin: 0 0 4px 0;
  font-weight: 400;
  line-height: 1.6;
}

.command-welcome .tagline-action {
  color: #0B0B0B;
  font-weight: 700;
}

[data-theme="dark"] .command-welcome .tagline-action {
  color: #0A84DD;
  text-align: center;
}

/* Greeting + Stats inline row */
.command-info-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.command-info-row .greeting-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.command-info-row .greeting-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--g2-text-on-orange);
}

.command-info-row .greeting-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--g2-white);
}

.command-info-row .greeting-divider {
  color: var(--g2-text-on-orange);
  opacity: 0.5;
}

.command-info-row .greeting-message {
  font-size: 14px;
  font-weight: 400;
  color: var(--g2-text-on-orange);
  font-style: italic;
  opacity: 0.8;
}

.command-info-row .stats-inline {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.command-info-row .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.command-info-row .stat-item .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--g2-text-on-orange);
  line-height: 1;
}

.command-info-row .stat-item .stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--g2-text-on-orange);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.command-info-row .stat-item.pending .stat-number {
  color: #FFE066;
}

.command-info-row .stat-item.today .stat-number {
  color: var(--g2-text-on-orange);
}

.command-info-row .stat-item.completed .stat-number {
  color: #90EE90;
}


/* ═══════════════════════════════════════════════════════════════════════════
   LIVE NOW BANNER - Above everything, only shows when there are live jobs
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD BODY GRID - Confirmed Bookings + Live Now
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 48px 24px;
}

.dashboard-body-grid.has-live-jobs {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE NOW PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.live-now-panel {
  background: var(--g2-white);
  border: 1px solid var(--g2-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.live-now-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.live-now-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-now-indicator .pulse-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  display: block;
  animation: pulse-live 2s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.live-now-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #0B0B0B;
  line-height: 1;
}

.live-now-label {
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Live Jobs List */
.live-jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Live Job Card - matches pending-job-card structure */
.live-job-card {
  background: var(--g2-light);
  border: 1px solid var(--g2-border);
  border-left: 4px solid #10B981;
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.live-job-card:hover {
  border-color: #10B981;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.live-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.live-job-ref {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.live-job-vehicle {
  font-size: 13px;
  font-weight: 600;
  color: var(--g2-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-job-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.live-job-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--g2-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--g2-border);
}

.live-job-detail.collection {
  border-left: 3px solid #10B981;
}

.live-job-detail.delivery {
  border-left: 3px solid var(--g2-info);
}

.live-job-detail .date-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g2-muted);
}

.live-job-detail .date-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--g2-dark);
}

.live-job-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.live-job-status-bar .status-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  animation: pulse-live 2s ease-in-out infinite;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PENDING JOBS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.pending-jobs-section {
  padding: 24px;
  background: var(--g2-white);
  border: 1px solid var(--g2-border);
  border-radius: var(--radius-lg);
  align-self: start;
}

.pending-jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pending-jobs-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pending-jobs-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--g2-dark);
  margin: 0;
}

.pending-jobs-subtitle {
  font-size: 12px;
  color: var(--g2-muted);
  margin: 0;
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--g2-orange);
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--g2-orange-hover);
}

.pending-jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pending-job-card {
  background: var(--g2-light);
  border: 1px solid var(--g2-border);
  border-left: 4px solid var(--g2-orange);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pending-job-card:hover {
  border-color: var(--g2-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pending-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.pending-job-ref {
  font-size: 11px;
  font-weight: 700;
  color: var(--g2-orange);
  background: rgba(10, 132, 221, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pending-job-vehicle {
  font-size: 13px;
  font-weight: 600;
  color: var(--g2-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-job-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pending-job-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--g2-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--g2-border);
}

.pending-job-date.collection {
  border-left: 3px solid var(--g2-orange);
}

.pending-job-date.delivery {
  border-left: 3px solid var(--g2-info);
}

.pending-job-date .date-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g2-muted);
}

.pending-job-date .date-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--g2-dark);
}

.pending-job-date .date-window {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.pending-job-date .date-window.am {
  background: #FEF3C7;
  color: #D97706;
}

.pending-job-date .date-window.pm {
  background: #DBEAFE;
  color: #2563EB;
}

.pending-job-date .date-window.anytime {
  background: #E5E7EB;
  color: #6B7280;
}

.pending-jobs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--g2-muted);
  text-align: center;
  background: var(--g2-light);
  border: 2px dashed var(--g2-border);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.pending-jobs-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--g2-border);
}

.pending-jobs-empty span {
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD GRID - TWO EQUAL COLUMNS
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  order: 1;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD CARDS - COLLAPSIBLE
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-card {
  background: var(--g2-white);
  border: 2px solid var(--g2-border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
}

.dashboard-card:hover {
  border-color: var(--g2-orange);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--g2-white);
  border-bottom: 2px solid var(--g2-border);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  position: relative;
}

.dashboard-card-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--g2-orange);
}

.dashboard-card-header:hover {
  background: var(--g2-light);
}

.dashboard-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--g2-orange);
}

.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--g2-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-card-title .badge {
  background: var(--g2-orange);
  color: var(--g2-text-on-orange);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  min-width: 24px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.dashboard-card-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g2-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
}

.dashboard-card-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--g2-gray);
  transition: transform 0.3s;
}

.dashboard-card-toggle:hover {
  background: var(--g2-orange-glow);
}

.dashboard-card-toggle:hover svg {
  color: var(--g2-orange);
}

.dashboard-card.collapsed .dashboard-card-toggle svg {
  transform: rotate(-180deg);
}

.dashboard-card-body {
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease-out, opacity 0.3s;
}

.dashboard-card.collapsed .dashboard-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.dashboard-card-link {
  font-size: 13px;
  color: var(--g2-orange);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--g2-orange);
  transition: all 0.2s;
  border-radius: 12px;
}

.dashboard-card-link:hover {
  background: var(--g2-orange);
  color: var(--g2-text-on-orange);
}

.dashboard-card-link svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCHEDULE SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.schedule-group {
  border-bottom: 1px solid var(--g2-border);
}

.schedule-group:last-child {
  border-bottom: none;
}

.schedule-group-header {
  padding: 12px 24px;
  background: var(--g2-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g2-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--g2-border);
}

.schedule-group-header .dot {
  width: 8px;
  height: 8px;
  background: var(--g2-orange);
  border-radius: 50%;
}

/* Schedule Items */
.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid var(--g2-light);
  border-left: 4px solid transparent;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item:hover {
  background: var(--g2-orange-glow);
  border-left-color: var(--g2-orange);
}

.schedule-item-status {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
}

.schedule-item-status.pending { background: var(--g2-warning); }
.schedule-item-status.accepted { background: var(--g2-info); }
.schedule-item-status.active {
  background: var(--g2-orange);
  animation: pulse-live 2s ease-in-out infinite;
}
.schedule-item-status.completed { background: var(--g2-success); }

.schedule-item-content {
  flex: 1;
  min-width: 0;
}

.schedule-item-vehicle {
  font-size: 15px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-item-vehicle .ref {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--g2-orange);
  background: var(--g2-orange-glow);
  padding: 3px 8px;
  border: 1px solid var(--g2-orange);
  border-radius: var(--radius-sm);
}

.schedule-item-route {
  font-size: 13px;
  color: var(--g2-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-item-route svg {
  width: 14px;
  height: 14px;
  color: var(--g2-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */
.empty-state {
  padding: 64px 32px;
  text-align: center;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  background: var(--g2-orange-glow);
  border: 3px solid var(--g2-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.empty-state-icon svg {
  width: 32px;
  height: 32px;
  color: var(--g2-orange);
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g2-dark);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--g2-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTIVITY FEED - REDESIGNED
   ═══════════════════════════════════════════════════════════════════════════ */
.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--g2-border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
}

.activity-item:hover {
  background: var(--g2-light);
}

.activity-item:hover::before {
  background: var(--g2-orange);
}

.activity-status {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--g2-light);
  border-radius: var(--radius-md);
}

.activity-status svg {
  width: 18px;
  height: 18px;
}

.activity-status.pickup {
  background: var(--g2-orange-glow);
  color: var(--g2-orange);
}

.activity-status.transit {
  background: rgba(59, 130, 246, 0.1);
  color: var(--g2-info);
}

.activity-status.delivered {
  background: rgba(16, 185, 129, 0.1);
  color: var(--g2-success);
}

.activity-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--g2-warning);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 2px;
}

.activity-title .ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--g2-orange);
  background: var(--g2-orange-glow);
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: var(--radius-sm);
}

.activity-meta {
  font-size: 12px;
  color: var(--g2-gray);
}

.activity-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--g2-muted);
  white-space: nowrap;
  background: var(--g2-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUICK ACTIONS PANEL - HORIZONTAL TOP
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   QUICK ACTIONS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.quick-actions-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 48px;
}

/* Make buttons look like links */
button.quick-action-item {
  border: none;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD MAIN AREA
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-main-area {
  display: flex;
  gap: 24px;
  padding: 0 48px 48px;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Quick Action Card - Simple Box with Icon */
.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-height: 120px;
}

.quick-action-item:hover {
  border-color: #0A84DD;
  background: #EFF6FF;
}

/* Icon in the middle - plain, no background */
.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.quick-action-icon svg {
  width: 28px;
  height: 28px;
  color: #0A84DD;
}

/* Label below icon */
.quick-action-content {
  text-align: center;
}

.quick-action-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2D2D2B;
  margin-bottom: 4px;
}

.quick-action-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #6B6B6B;
}

/* Hide arrow */
.quick-action-arrow {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.quick-action-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  background: var(--g2-orange);
  border: none;
  color: var(--g2-text-on-orange);
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border-radius: 16px;
}

.quick-action-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--g2-orange);
  opacity: 0;
  transition: all 0.3s;
  border-radius: 18px;
}

.quick-action-fab:hover {
  background: var(--g2-orange-hover);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(10, 132, 221, 0.4);
}

.quick-action-fab:hover::before {
  opacity: 1;
  inset: -8px;
}

.quick-action-fab svg {
  width: 28px;
  height: 28px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD MODALS
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.dashboard-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.dashboard-modal {
  background: var(--g2-white);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.dashboard-modal-overlay.open .dashboard-modal {
  transform: translateY(0);
}

.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--g2-orange);
}

.dashboard-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--g2-text-on-orange);
  margin: 0;
}

.dashboard-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--g2-text-on-orange);
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-modal-close svg {
  width: 18px;
  height: 18px;
}

.dashboard-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Modal Schedule Item */
.modal-schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--g2-border);
  cursor: pointer;
  transition: background 0.15s;
}

.modal-schedule-item:hover {
  background: var(--g2-light);
}

.modal-schedule-item:last-child {
  border-bottom: none;
}

.modal-schedule-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--g2-orange);
}

.modal-schedule-status.am { background: #F59E0B; }
.modal-schedule-status.pm { background: #3B82F6; }

.modal-schedule-content {
  flex: 1;
  min-width: 0;
}

.modal-schedule-vehicle {
  font-size: 14px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 2px;
}

.modal-schedule-route {
  font-size: 12px;
  color: var(--g2-gray);
}

.modal-schedule-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--g2-muted);
  background: var(--g2-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* Modal Activity Item */
.modal-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--g2-border);
  cursor: pointer;
  transition: background 0.15s;
}

.modal-activity-item:hover {
  background: var(--g2-light);
}

.modal-activity-item:last-child {
  border-bottom: none;
}

.modal-activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g2-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.modal-activity-icon svg {
  width: 16px;
  height: 16px;
  color: var(--g2-gray);
}

.modal-activity-icon.created { background: rgba(10, 132, 221, 0.1); }
.modal-activity-icon.created svg { color: var(--g2-orange); }
.modal-activity-icon.completed { background: rgba(16, 185, 129, 0.1); }
.modal-activity-icon.completed svg { color: var(--g2-success); }
.modal-activity-icon.updated { background: rgba(59, 130, 246, 0.1); }
.modal-activity-icon.updated svg { color: var(--g2-info); }

.modal-activity-content {
  flex: 1;
  min-width: 0;
}

.modal-activity-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 2px;
}

.modal-activity-desc {
  font-size: 12px;
  color: var(--g2-gray);
}

.modal-activity-time {
  font-size: 11px;
  color: var(--g2-muted);
  white-space: nowrap;
}

/* Modal Empty State */
.modal-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--g2-muted);
}

.modal-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--g2-border);
}

.modal-empty-state p {
  font-size: 14px;
  margin: 0;
}

.modal-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--g2-orange);
  color: var(--g2-text-on-orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.modal-empty-cta:hover {
  background: var(--g2-orange-hover);
}

/* Modal Activity List */
.activity-list-modal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list-modal .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--g2-border);
  cursor: pointer;
  transition: background 0.15s;
}

.activity-list-modal .activity-item:hover {
  background: var(--g2-light);
}

.activity-list-modal .activity-item:last-child {
  border-bottom: none;
}

/* Modal Schedule Groups */
.dashboard-modal-body .schedule-group {
  border-bottom: 1px solid var(--g2-border);
}

.dashboard-modal-body .schedule-group:last-child {
  border-bottom: none;
}

.dashboard-modal-body .schedule-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--g2-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--g2-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-modal-body .schedule-group-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g2-orange);
}

.dashboard-modal-body .schedule-group-header .dot.am { background: #F59E0B; }
.dashboard-modal-body .schedule-group-header .dot.pm { background: #3B82F6; }
.dashboard-modal-body .schedule-group-header .dot.anytime { background: var(--g2-success); }

.dashboard-modal-body .schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--g2-border);
}

.dashboard-modal-body .schedule-item:hover {
  background: var(--g2-light);
}

.dashboard-modal-body .schedule-group .schedule-item:last-child {
  border-bottom: none;
}

.dashboard-modal-body .schedule-item-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--g2-muted);
}

.dashboard-modal-body .schedule-item-status.active { background: var(--g2-success); }
.dashboard-modal-body .schedule-item-status.accepted { background: var(--g2-info); }
.dashboard-modal-body .schedule-item-status.pending { background: var(--g2-warning); }
.dashboard-modal-body .schedule-item-status.completed { background: var(--g2-success); }

.dashboard-modal-body .schedule-item-content {
  flex: 1;
  min-width: 0;
}

.dashboard-modal-body .schedule-item-vehicle {
  font-size: 14px;
  font-weight: 600;
  color: var(--g2-dark);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-modal-body .schedule-item-vehicle .ref {
  font-size: 11px;
  font-weight: 500;
  color: var(--g2-muted);
  background: var(--g2-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.dashboard-modal-body .schedule-item-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--g2-gray);
}

.dashboard-modal-body .schedule-item-route svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Modal Group Header */
.modal-group-header {
  padding: 10px 20px;
  background: var(--g2-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--g2-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--g2-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-body-grid {
    padding: 0 24px 24px;
  }

  .pending-jobs-section {
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .search-box {
    display: none;
  }

  .command-bar {
    padding: 24px;
  }

  .command-bar-content {
    flex-direction: column;
    gap: 20px;
  }

  .command-welcome h1 {
    font-size: 26px;
    padding-top: 40px;
  }

  .command-welcome .welcome-tagline {
    font-size: 13px;
  }

  .command-info-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .command-info-row .stats-inline {
    gap: 16px;
  }

  .command-info-row .stat-item .stat-number {
    font-size: 22px;
  }

  .quick-actions-panel {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 24px;
    gap: 12px;
  }

  .quick-action-item {
    min-height: 110px;
    padding: 20px 12px;
  }

  .quick-action-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
  }

  .quick-action-icon svg {
    width: 20px;
    height: 20px;
  }

  .quick-action-label {
    font-size: 12px;
  }

  .quick-action-desc {
    font-size: 10px;
  }

  .dashboard-main-area {
    flex-direction: column;
    padding: 0 24px 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-body-grid {
    padding: 0 24px 24px;
  }

  .dashboard-body-grid.has-live-jobs {
    grid-template-columns: 1fr;
  }

  .pending-jobs-section {
    padding: 16px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .command-bar {
    padding: 20px 16px;
  }

  .command-welcome h1 {
    font-size: 22px;
    padding-top: 24px;
  }

  .command-welcome .welcome-tagline {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .command-info-row .greeting-inline {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }

  .command-info-row .stats-inline {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .command-info-row .stat-item .stat-number {
    font-size: 20px;
  }

  .command-info-row .stat-item .stat-label {
    font-size: 9px;
  }

  .live-now-value {
    font-size: 22px;
  }

  .dashboard-body-grid {
    padding: 0 16px 16px;
  }

  .pending-jobs-section {
    padding: 16px;
  }

  .live-now-panel {
    padding: 16px;
  }

  .pending-jobs-list {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    gap: 16px;
  }

  .dashboard-card-header {
    padding: 14px 18px;
  }

  .dashboard-card-icon {
    width: 32px;
    height: 32px;
  }

  .dashboard-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .dashboard-card-title {
    font-size: 14px;
  }

  .schedule-item,
  .activity-item {
    padding: 12px 16px;
  }

  .quick-action-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .notifications-dropdown {
    position: fixed;
    top: auto;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .quick-actions-panel {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    gap: 10px;
  }

  .dashboard-main-area {
    padding: 0 16px 16px;
    gap: 16px;
  }

  .quick-action-item {
    min-height: 100px;
    padding: 14px 10px;
  }

  .quick-action-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  .quick-action-icon svg {
    width: 18px;
    height: 18px;
  }

  .quick-action-label {
    font-size: 11px;
  }

  .quick-action-desc {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .live-now-value {
    font-size: 32px;
  }

  .live-job-card {
    min-width: 220px;
  }

  .attention-count {
    font-size: 20px;
    padding: 6px 12px;
    min-width: 48px;
  }

  .quick-actions-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .quick-action-item {
    min-height: 85px;
    padding: 12px 6px;
  }

  .quick-action-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .quick-action-icon svg {
    width: 16px;
    height: 16px;
  }

  .quick-action-label {
    font-size: 10px;
  }

  .quick-action-desc {
    font-size: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESSIVE PRICING WIDGET
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing-widget {
  background: var(--g2-white, #FFFFFF);
  border-top: 1px solid var(--g2-border, #E8E8E8);
  border-bottom: 1px solid var(--g2-border, #E8E8E8);
  padding: 20px 48px;
  position: relative;
  overflow: hidden;
}

.pricing-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--g2-dark, #0B0B0B);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-widget-title svg {
  color: var(--g2-orange, #0A84DD);
}

.pricing-widget-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-widget-month {
  font-size: 12px;
  color: var(--g2-muted, #9CA3AF);
  font-weight: 500;
}

.pricing-widget-savings {
  font-size: 12px;
  font-weight: 700;
  color: var(--g2-success, #10B981);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm, 4px);
}

.pricing-widget-tier {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--g2-dark, #0B0B0B);
  margin-bottom: 14px;
}

.pricing-widget-bar-container {
  margin-bottom: 14px;
}

.pricing-widget-bar {
  position: relative;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--g2-light, #F7F7F7);
}

.pricing-widget-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 5px;
  background: var(--g2-orange, #0A84DD);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.pricing-widget-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--g2-muted, #9CA3AF);
}

.pricing-widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-widget-nudge {
  font-size: 13px;
  color: var(--g2-gray, #6B7280);
  font-weight: 500;
}

.pricing-widget-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--g2-orange, #0A84DD);
  text-decoration: none;
  transition: opacity 0.2s;
}

.pricing-widget-link:hover {
  opacity: 0.8;
}

/* Dark mode */
[data-theme="dark"] .pricing-widget {
  background: #353533;
  border-color: #454543;
}

[data-theme="dark"] .pricing-widget-title,
[data-theme="dark"] .pricing-widget-tier {
  color: #FFFFFF;
}

[data-theme="dark"] .pricing-widget-bar {
  background: #3D3D3B;
}

[data-theme="dark"] .pricing-widget-nudge {
  color: #B0B0B0;
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-widget {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .pricing-widget {
    padding: 16px;
  }

  .pricing-widget-tier {
    font-size: 17px;
  }

  .pricing-widget-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-widget-bar {
    height: 8px;
    border-radius: 4px;
  }

  .pricing-widget-bar-fill {
    border-radius: 4px;
  }
}

/* ==========================================================================
   ACCOUNT-TYPE ANTI-FLASH - Dashboard quick actions
   ========================================================================== */
[data-account="recovery"] .quick-action-item[href="bookings.html"] .quick-action-label {
  font-size: 0;
}
[data-account="recovery"] .quick-action-item[href="bookings.html"] .quick-action-label::after {
  content: 'Book Recovery';
  font-size: 14px;
}
[data-account="recovery"] .quick-action-item[href="bookings.html"] .quick-action-desc {
  font-size: 0;
}
[data-account="recovery"] .quick-action-item[href="bookings.html"] .quick-action-desc::after {
  content: 'Create new recovery';
  font-size: 12px;
}

/* ============================================================================
   QUICK ACTIONS - compact single row, scales down with the screen
   (appended last so it wins over the earlier per-breakpoint rules)
   ============================================================================ */
.quick-actions-panel {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 16px 48px;
}
.quick-action-item {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 12px; min-height: 0;
}
.quick-action-icon { margin-bottom: 0; }
.quick-action-icon svg { width: 18px; height: 18px; }
.quick-action-content { text-align: left; }
.quick-action-label { font-size: 12.5px; }
.quick-action-desc { display: none; }
.quick-action-arrow { display: none; }

@media (max-width: 900px) {
  .quick-actions-panel { grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 24px; }
  .quick-action-item { padding: 9px 8px; gap: 6px; }
  .quick-action-label { font-size: 11px; }
  .quick-action-icon svg { width: 16px; height: 16px; }
}
@media (max-width: 560px) {
  .quick-actions-panel { grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 10px 14px; }
  .quick-action-item { padding: 8px 5px; gap: 0; flex-direction: column; }
  .quick-action-label { font-size: 9.5px; }
  .quick-action-icon svg { width: 16px; height: 16px; }
  .quick-action-icon { margin-bottom: 3px; }
}

/* ============================================================================
   OPS HEADER - replaces the blue hero. Light, calm, operational.
   Greeting + today line on the left, the live dispatch-line card on the
   right, then three glanceable stat tiles. NC blue is the only accent.
   ============================================================================ */
.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 34px 48px 4px;
}
.ops-head__greet {
  font-family: var(--font-display, inherit);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}
.ops-head__name { color: #0A84DD; }
.ops-head__sub {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.ops-head__sep { margin: 0 8px; color: var(--text-muted); }

.ops-head__line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid #E3EAF2;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,34,56,.05), 0 10px 30px -18px rgba(15,34,56,.18);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.ops-head__line:hover { border-color: #0A84DD; transform: translateY(-1px); }
.ops-head__dot {
  width: 10px; height: 10px; border-radius: 999px; background: #10B981; flex-shrink: 0;
  animation: ops-line-pulse 2.2s ease-out infinite;
}
@keyframes ops-line-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.35); }
  50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}
@media (prefers-reduced-motion: reduce) { .ops-head__dot { animation: none; } }
.ops-head__line-text { display: flex; flex-direction: column; gap: 1px; }
.ops-head__line-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.ops-head__line-num {
  font-size: 18px; font-weight: 800; letter-spacing: .01em; color: var(--text-primary);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ops-head__line:hover .ops-head__line-num { color: #0A84DD; }

.ops-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 20px 48px 0;
}
.ops-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #E3EAF2;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,34,56,.04);
}
.ops-stat__num {
  font-family: var(--font-display, inherit);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0A84DD;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ops-stat__lbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .ops-head { padding: 24px 24px 0; }
  .ops-head__greet { font-size: 24px; }
  .ops-head__line { width: 100%; justify-content: center; }
  .ops-stats { padding: 16px 24px 0; }
}
