:root {
  --navy: #1E3A8A;
  --navy-light: #2563EB;
  --navy-dark: #1E2A5E;
  --green: #059669;
  --green-light: #10B981;
  --orange: #F97316;
  --orange-light: #FB923C;
  --red: #DC2626;
  --yellow: #EAB308;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--gray-50); color: var(--gray-800); min-height: 100vh; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%); color: white; position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; transition: transform 0.3s ease; overflow-y: auto; }
.sidebar-hidden { transform: translateX(-100%); }
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left 0.3s ease; }
.main-content.full-width { margin-left: 0; }

/* Sidebar */
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sidebar-logo i { font-size: 28px; color: var(--orange); }
.sidebar-logo h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.sidebar-subtitle { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 40px; }
.sidebar-nav { padding: 12px 0; }
.nav-section { padding: 8px 20px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.15s; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: rgba(255,255,255,0.12); color: white; border-left-color: var(--orange); }
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-badge { margin-left: auto; background: var(--orange); color: white; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.sidebar-user { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }
.sidebar-user-info { display: flex; align-items: center; gap: 10px; }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sidebar-user-name { font-size: 13px; font-weight: 600; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: capitalize; }

/* Top Bar */
.topbar { background: white; border-bottom: 1px solid var(--gray-200); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.topbar-breadcrumb { font-size: 13px; color: var(--gray-400); }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--gray-600); cursor: pointer; }

/* Cards & Containers */
.page-content { padding: 24px; max-width: 1400px; }
.card { background: white; border-radius: 12px; border: 1px solid var(--gray-200); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 20px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 12px; border: 1px solid var(--gray-200); padding: 20px; display: flex; align-items: flex-start; gap: 16px; transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.blue { background: #EFF6FF; color: var(--navy-light); }
.stat-icon.green { background: #ECFDF5; color: var(--green); }
.stat-icon.orange { background: #FFF7ED; color: var(--orange); }
.stat-icon.red { background: #FEF2F2; color: var(--red); }
.stat-icon.purple { background: #F5F3FF; color: #7C3AED; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
tbody td { padding: 12px 16px; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:hover { background: var(--gray-50); }
tbody tr { cursor: pointer; transition: background 0.1s; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-new { background: #EFF6FF; color: #2563EB; }
.badge-confirmed { background: #F0FDF4; color: #16A34A; }
.badge-scheduled { background: #FFFBEB; color: #CA8A04; }
.badge-loaded { background: #FDF4FF; color: #A855F7; }
.badge-in_transit, .badge-in-transit { background: #FFF7ED; color: #EA580C; }
.badge-delivered { background: #ECFDF5; color: #059669; }
.badge-completed { background: #F0FDF4; color: #16A34A; }
.badge-cancelled { background: #FEF2F2; color: #DC2626; }
.badge-urgent { background: #FEF2F2; color: #DC2626; }
.badge-high { background: #FFF7ED; color: #EA580C; }
.badge-normal { background: #EFF6FF; color: #2563EB; }
.badge-low { background: #F0FDF4; color: #16A34A; }
.badge-available { background: #ECFDF5; color: #059669; }
.badge-in_use, .badge-in-use { background: #FFF7ED; color: #EA580C; }
.badge-maintenance { background: #FEF2F2; color: #DC2626; }
.badge-planned { background: #EFF6FF; color: #2563EB; }
.badge-optimized { background: #F0FDF4; color: #16A34A; }
.badge-dispatched { background: #FFFBEB; color: #CA8A04; }
.badge-in_progress, .badge-in-progress { background: #FFF7ED; color: #EA580C; }

/* Priority dots */
.priority-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.priority-dot.urgent { background: var(--red); }
.priority-dot.high { background: var(--orange); }
.priority-dot.normal { background: var(--navy-light); }
.priority-dot.low { background: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: var(--green-light); }
.btn-warning { background: var(--orange); color: white; }
.btn-warning:hover { background: var(--orange-light); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-outline { background: white; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; color: var(--gray-800); background: white; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Search */
.search-bar { position: relative; }
.search-bar input { padding-left: 40px; }
.search-bar i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.filters-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s; }
.modal { background: white; border-radius: 16px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; animation: slideUp 0.25s; }
.modal-lg { max-width: 800px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: white; z-index: 1; border-radius: 16px 16px 0 0; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--gray-400); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--gray-100); color: var(--gray-600); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.tab:hover { color: var(--gray-700); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }

/* Schedule Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.calendar-day { background: white; border: 1px solid var(--gray-200); border-radius: 10px; min-height: 120px; padding: 12px; }
.calendar-day.today { border-color: var(--navy-light); border-width: 2px; }
.calendar-date { font-size: 13px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
.calendar-date.today { color: var(--navy); }
.calendar-order { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; font-size: 12px; cursor: pointer; transition: transform 0.1s; }
.calendar-order:hover { transform: scale(1.02); }
.calendar-order.urgent { background: #FEE2E2; border-left: 3px solid var(--red); }
.calendar-order.high { background: #FED7AA; border-left: 3px solid var(--orange); }
.calendar-order.normal { background: #DBEAFE; border-left: 3px solid var(--navy-light); }
.calendar-order.low { background: #D1FAE5; border-left: 3px solid var(--green); }

/* Packing List Print */
.packing-list { font-family: 'Courier New', monospace; }
.packing-stop { border: 2px solid var(--gray-300); border-radius: 8px; padding: 16px; margin-bottom: 16px; page-break-inside: avoid; }
.packing-stop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px dashed var(--gray-300); }
.loading-order { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; }

/* Driver View */
.driver-stop { background: white; border-radius: 12px; border: 1px solid var(--gray-200); margin-bottom: 12px; overflow: hidden; }
.driver-stop-header { padding: 16px; display: flex; align-items: center; gap: 12px; }
.stop-number { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.stop-number.completed { background: var(--green); }
.stop-number.active { background: var(--orange); animation: pulse 2s infinite; }
.driver-stop-body { padding: 0 16px 16px; }
.driver-stop-actions { display: flex; gap: 8px; padding: 12px 16px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.driver-stop-actions .btn { flex: 1; justify-content: center; }

/* Status timeline */
.status-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 12px 0; }
.status-step { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--gray-100); color: var(--gray-400); }
.status-step.active { background: var(--navy); color: white; }
.status-step.done { background: var(--green); color: white; }
.status-arrow { color: var(--gray-300); font-size: 10px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); } 70% { box-shadow: 0 0 0 10px rgba(249,115,22,0); } }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 10px; color: white; font-size: 14px; font-weight: 500; animation: slideUp 0.3s; display: flex; align-items: center; gap: 10px; min-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-warning { background: var(--orange); }
.toast-info { background: var(--navy-light); }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%); padding: 20px; }
.login-card { background: white; border-radius: 20px; padding: 48px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo i { font-size: 48px; color: var(--orange); }
.login-logo h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 12px; }
.login-logo p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }

/* Empty states */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state i { font-size: 48px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--gray-400); }

/* Weight bar */
.weight-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.weight-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.weight-bar-fill.safe { background: var(--green); }
.weight-bar-fill.warning { background: var(--yellow); }
.weight-bar-fill.danger { background: var(--red); }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .calendar-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .modal { border-radius: 12px; }
  .modal-body { padding: 16px; }
}

/* Ticket Upload / OCR */
.ticket-scan-card {
  border: 2px solid var(--navy-light);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.ticket-scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-bottom: 1px solid #DBEAFE;
}
.ticket-scan-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ticket-scan-body {
  padding: 16px;
}
.ticket-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.ticket-upload-area:hover {
  border-color: var(--navy-light);
  background: #EFF6FF;
}
.ticket-upload-area.has-image {
  border-color: var(--green);
  background: white;
  padding: 12px;
}
.ticket-upload-area.scanning {
  border-color: var(--orange);
  background: #FFF7ED;
}
.ticket-preview {
  max-height: 200px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.ticket-upload-icon {
  font-size: 40px;
  color: var(--gray-300);
  margin-bottom: 12px;
}
.ticket-upload-text {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}
.ticket-upload-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}
.scan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.scan-progress {
  width: 200px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.scan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-light), var(--orange));
  border-radius: 4px;
  animation: scanPulse 1.5s ease-in-out infinite;
}
@keyframes scanPulse {
  0% { width: 10%; }
  50% { width: 80%; }
  100% { width: 10%; }
}
.scan-result-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scan-result-banner.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.scan-result-banner.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.scan-result-banner.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.confidence-high { background: #D1FAE5; color: #065F46; }
.confidence-medium { background: #FEF3C7; color: #92400E; }
.confidence-low { background: #FEE2E2; color: #991B1B; }
.ocr-field-highlight {
  animation: ocrHighlight 1.5s ease;
}
@keyframes ocrHighlight {
  0% { box-shadow: 0 0 0 3px rgba(249,115,22,0.5); }
  100% { box-shadow: 0 0 0 0px rgba(249,115,22,0); }
}
.ticket-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

/* Day color dot for calendar */
.day-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Schedule Map */
#scheduleMap {
  z-index: 1;
}
.leaflet-popup-content {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.leaflet-popup-content strong {
  color: var(--navy);
}

/* Recommendation Cards */
.recommend-card {
  border-color: var(--navy-light);
  border-width: 2px;
}
.recommend-day-card {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}
.recommend-day-card:hover {
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.recommend-day-card.best {
  border-color: var(--green);
  background: #F0FDF4;
  box-shadow: 0 4px 12px rgba(5,150,105,0.15);
}
.recommend-day-card.best:hover {
  border-color: var(--green-light);
}
.recommend-best-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.recommend-day-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.recommend-score-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.recommend-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.recommend-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 8px;
}
.recommend-nearest {
  font-size: 11px;
  color: var(--green);
  margin-top: 6px;
  padding: 4px 6px;
  background: #ECFDF5;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-reasons {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.recommend-reason {
  font-size: 10px;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Route Map on Route Detail */
.route-map-container {
  height: 350px;
  border-radius: 0 0 12px 12px;
  z-index: 1;
}

/* Delivery Proof Upload */
.proof-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
}
.proof-upload-area:hover {
  border-color: var(--green);
  background: #F0FDF4;
}
.proof-upload-area.has-photo {
  border-color: var(--green);
  border-style: solid;
  background: white;
  padding: 12px;
}

/* Print */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 0; }
  body { background: white; }
}
