/* 瑞邦农业司机考勤与工资调度管理系统 - 现代商务高定样式表 */

:root {
  --primary: #1b4d3e;
  --primary-light: #2d6a4f;
  --primary-hover: #143d31;
  --primary-subtle: #e8f5e9;
  --accent: #2e7d32;
  --accent-gold: #d97706;
  --accent-gold-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --success: #10b981;
  --success-bg: #d1fae5;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f291e;
  --bg-sidebar-hover: #1b4332;
  --bg-sidebar-active: #2d6a4f;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --bg-main: #0b1510;
  --bg-card: #13241b;
  --bg-sidebar: #08110c;
  --bg-sidebar-hover: #11261b;
  --bg-sidebar-active: #1d402f;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: #1e3a2b;
  --primary-subtle: #193828;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 布局网格 */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边导航栏 */
.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 50;
  flex-shrink: 0;
}

.brand-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 12px 4px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-item.active {
  background-color: var(--bg-sidebar-active);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background-color: var(--danger);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: bold;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* 主内容区域 */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* 顶部导航头 */
.top-navbar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-left-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background-color: var(--bg-main);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.role-admin { background-color: #fee2e2; color: #b91c1c; }
.role-dispatcher { background-color: #dbeafe; color: #1d4ed8; }
.role-finance { background-color: #fef3c7; color: #b45309; }
.role-driver { background-color: #d1fae5; color: #047857; }

/* 页面主体内容容器 */
.content-body {
  padding: 24px;
  flex: 1;
}

/* 常用卡片布局 */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.stat-card.accent-emerald::after { background-color: #10b981; }
.stat-card.accent-amber::after { background-color: #f59e0b; }
.stat-card.accent-blue::after { background-color: #3b82f6; }
.stat-card.accent-purple::after { background-color: #8b5cf6; }
.stat-card.accent-rose::after { background-color: #f43f5e; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon.bg-emerald { background-color: #ecfdf5; color: #059669; }
.stat-icon.bg-amber { background-color: #fffbeb; color: #d97706; }
.stat-icon.bg-blue { background-color: #eff6ff; color: #2563eb; }
.stat-icon.bg-purple { background-color: #f5f3ff; color: #7c3aed; }
.stat-icon.bg-rose { background-color: #fff1f2; color: #e11d48; }

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* 按钮样式系统 - 现代高端企业级 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.5;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-lg {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #1b4d3e 0%, #11382c 100%);
  color: #ffffff;
  border: 1px solid #143d31;
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #246350 0%, #1b4d3e 100%);
  box-shadow: 0 6px 16px rgba(27, 77, 62, 0.35);
  transform: translateY(-1px);
}

.btn-save-next {
  background-color: #ecfdf5;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  font-weight: 700;
}

.btn-save-next:hover {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.btn-cancel, .btn-ghost {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.btn-cancel:hover, .btn-ghost:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-danger:hover {
  background-color: #ffe4e6;
  color: #be123c;
  border-color: #fda4af;
}

.btn-outline {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 11px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* 隐藏浏览器原生 number input 上下箭头 */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/* 货币金额输入框组合 */
.input-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-money-symbol {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.input-money-control {
  width: 100% !important;
  padding-left: 24px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-weight: 700;
  color: #0f766e;
}

/* 绑定网点可交互药丸按钮 */
.bound-stops-wrapper {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.bound-stop-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bound-stop-chip:hover {
  background: #d1fae5;
  border-color: #34d399;
  transform: translateY(-1px);
}

.bound-stop-chip.active {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

/* 高定版实时核算小计丝带 */
.calc-summary-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  margin-top: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.calc-formula-text {
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.35;
}

.calc-total-badge {
  font-size: 22px;
  font-weight: 900;
  color: #1b4d3e;
  letter-spacing: -0.5px;
}

/* 表单与筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 140px;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* 现代化数据表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: var(--bg-main);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: rgba(16, 185, 129, 0.04);
}

.data-table tr.total-row td {
  font-weight: 700;
  background-color: #fefce8;
  border-top: 2px solid #facc15;
}

[data-theme="dark"] .data-table tr.total-row td {
  background-color: #2a2510;
  border-top: 2px solid #854d0e;
}

/* 金额高亮单元格 */
.cell-money {
  font-family: "Courier New", Courier, monospace, var(--font-sans);
  font-weight: 600;
  color: #0f766e;
}

.cell-highlight-unloading {
  background-color: #ecfdf5;
  color: #047857;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* 状态标签 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.status-badge.confirmed { background-color: var(--success-bg); color: var(--success); }
.status-badge.pending { background-color: var(--warning-bg); color: var(--warning); }
.status-badge.disputed { background-color: var(--danger-bg); color: var(--danger); }

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
  width: 92%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s ease;
  overflow: hidden;
}

.modal-container.modal-lg {
  max-width: 920px;
}

.modal-container > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-card);
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: var(--danger);
  background-color: var(--danger-bg);
}

.modal-body {
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.modal-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: #f8fafc;
  flex-shrink: 0;
}

/* 变更差异对比高亮 (Diff Viewer) */
.diff-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.diff-table th {
  background-color: var(--bg-main);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.diff-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.diff-old {
  background-color: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.diff-new {
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* 消息通知 Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #1e293b;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 260px;
  max-width: 420px;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 司机端移动端适配专属卡片 */
.driver-wage-card {
  background: linear-gradient(135deg, #1b4d3e, #0f291e);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(27, 77, 62, 0.2);
}

.driver-wage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.driver-big-money {
  font-size: 36px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.5px;
}

.driver-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: var(--radius-md);
}

.driver-fee-item {
  text-align: center;
}

.driver-fee-title {
  font-size: 11px;
  color: #a7f3d0;
  margin-bottom: 2px;
}

.driver-fee-val {
  font-size: 16px;
  font-weight: 700;
}

/* 司机端明日出车线路安排专区 */
.tomorrow-schedule-card {
  background: linear-gradient(135deg, #065f46, #022c22);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(6, 95, 70, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.tomorrow-schedule-card::after {
  content: "🌅";
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 72px;
  opacity: 0.12;
  pointer-events: none;
}

.tomorrow-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-bottom: 12px;
}

.tomorrow-route-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.timeline-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border-left: 4px solid #34d399;
  transition: all 0.2s ease;
}

.timeline-step-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.step-seq-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.step-main-info {
  flex: 1;
}

.step-dest-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-sub-meta {
  font-size: 12px;
  color: #a7f3d0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 响应式调整 */
/* 汉堡按钮：仅移动端显示（PC 隐藏规则必须写在媒体查询之前，避免同优先级覆盖） */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px 7px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-btn:active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn:active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 901px) {
  .sidebar-backdrop { display: none !important; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 260px;
    box-shadow: none;
  }
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }
  .app-container {
    display: block;
  }
  .top-navbar {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }
  .page-title {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 34vw;
  }
  .content-body {
    padding: 12px;
  }

  /* 汉堡菜单按钮：仅移动端可见 */
  .mobile-menu-btn {
    display: inline-flex;
  }

  /* 顶栏右侧操作区：压缩间距、隐藏次要文字，防止变形 */
  .top-right-actions {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .top-left-info {
    min-width: 0;
    gap: 8px;
  }
  .user-profile-menu {
    padding: 4px 8px;
    font-size: 12px;
    gap: 6px;
    max-width: 44vw;
    flex-shrink: 1;
    min-width: 0;
  }
  .user-profile-menu .user-avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .user-profile-menu #headerUserName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
  }
  .user-profile-menu .role-badge {
    display: none;
  }
  .top-right-actions .btn-outline.btn-sm {
    padding: 6px 8px;
    font-size: 12px;
    flex-shrink: 0;
  }
  /* 小屏下「修改密码 / 退出系统」只保留图标，防止换行挤压 */
  .top-right-actions .btn-outline.btn-sm span:not(:first-child) {
    display: none;
  }
  .top-right-actions .btn-outline.btn-sm[onclick*="logout"] {
    font-size: 0;
    padding: 6px 10px;
  }
  .top-right-actions .btn-outline.btn-sm[onclick*="logout"]::before {
    content: "🚪";
    font-size: 14px;
  }

  /* 侧边抽屉遮罩 */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ========================================================================= */
/* 📱 管理端移动端全面自适应 (司机端 is-driver-app 已是移动优先，不在此范围)   */
/* ========================================================================= */
@media (max-width: 768px) {
  /* 统计卡片：小屏单列化，图标缩小 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
    gap: 10px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .stat-value {
    font-size: 17px;
  }

  /* 筛选栏：纵向堆叠，控件占满整行 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .filter-bar .form-group,
  .filter-bar .form-control {
    min-width: 0;
    width: 100%;
  }
  .filter-bar .form-group > div[style*="display: flex"] {
    flex-wrap: wrap;
  }
  .filter-bar > div[style*="display: flex"] {
    flex-wrap: wrap;
  }
  .filter-bar .btn {
    flex: 1 1 46%;
    min-width: 130px;
  }

  /* 卡片内边距收缩 */
  .card {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
  }
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  /* 数据表格：字号缩小、横向滚动保持 */
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  /* 弹窗：全宽贴底面板化，操作按钮加大触控面积 */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-container,
  .modal-container.modal-lg {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-overlay.active .modal-container {
    transform: translateY(0);
  }
  .modal-header {
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .modal-body {
    padding: 14px;
  }
  .modal-footer {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    flex: 1 1 40%;
    min-width: 120px;
    padding: 11px 14px;
    font-size: 14px;
  }

  /* 弹窗内联多列网格统一降级为 2 列/1 列 */
  .modal-body div[style*="grid-template-columns: repeat(4"],
  .modal-body div[style*="grid-template-columns:repeat(4"],
  .modal-body div[style*="grid-template-columns: repeat(3"],
  .modal-body div[style*="grid-template-columns:repeat(3"],
  .modal-body div[style*="grid-template-columns: 1.2fr"],
  .modal-body div[style*="grid-template-columns: 2fr"],
  .modal-body div[style*="grid-template-columns: 3fr"],
  .modal-body div[style*="grid-template-columns: 1fr 1fr"],
  .modal-body div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .modal-body div[style*="display: flex"][style*="gap: 12px"],
  .modal-body div[style*="display:flex"][style*="gap:12px"],
  .modal-body div[style*="display: flex"][style*="gap: 14px"] {
    flex-wrap: wrap;
  }
  .modal-body div[style*="display: flex"][style*="gap: 12px"] > .form-group,
  .modal-body div[style*="display: flex"][style*="gap: 14px"] > .form-group {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* 表单控件：触控友好的最小高度 */
  .form-control {
    min-width: 0;
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }
  .form-group textarea.form-control {
    height: 90px;
  }

  /* 费用精算区实时合计丝带换行 */
  .calc-summary-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .calc-total-badge {
    font-size: 20px;
  }

  /* Toast：居中悬浮避免遮挡 */
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
  }

  /* 按钮基础触控优化 */
  .btn {
    padding: 10px 14px;
  }
  .btn-sm {
    padding: 8px 12px;
  }
}

/* 超小屏：统计卡片与弹窗网格进一步单列化 */
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .modal-body div[style*="grid-template-columns: repeat(2"],
  .modal-body div[style*="grid-template-columns:repeat(2"],
  .modal-body div[style*="grid-template-columns: repeat(4"],
  .modal-body div[style*="grid-template-columns: 1.2fr"],
  .modal-body div[style*="grid-template-columns: 2fr"] {
    grid-template-columns: 1fr !important;
  }
  .modal-footer .btn {
    flex: 1 1 100%;
  }
}

/* ========================================================================= */
/* 📱 司机端移动端原生体验样式 (Mobile-First Logistics App)                  */
/* ========================================================================= */
body.is-driver-app .sidebar,
body.is-driver-app .top-navbar {
  display: none !important;
}

body.is-driver-app .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

body.is-driver-app .content-body {
  padding: 0 !important;
}

.mobile-driver-app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-driver-app {
    max-width: 100%;
    box-shadow: none;
  }
}

/* 顶部移动导航栏 */
.mobile-top-bar {
  background: linear-gradient(135deg, #1b4d3e 0%, #11382c 100%);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-circle {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-app-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.mobile-driver-name {
  font-size: 12px;
  color: #a7f3d0;
  margin-top: 1px;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.mobile-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 🛰️ GPS 自动定位状态指示条 */
.mobile-gps-bar {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-gps-bar:hover {
  background: #dcfce7;
}

.gps-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

.gps-status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: gpsPulse 2s infinite;
}

.gps-status-dot.warning {
  background-color: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

@keyframes gpsPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gps-status-info {
  flex: 1;
  overflow: hidden;
}

.gps-status-title {
  font-weight: 700;
  color: #065f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gps-status-coords {
  font-size: 11px;
  color: #047857;
  opacity: 0.85;
}

.gps-refresh-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
}

/* 📱 移动底栏导航 */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    max-width: 100%;
  }
}

.bottom-nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: all 0.2s;
  flex: 1;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item .nav-icon {
  font-size: 20px;
  transition: transform 0.2s;
}

.bottom-nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 18px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.2;
}

/* 移动内容滚动容器 */
.mobile-body-scroll {
  flex: 1;
  padding: 14px 14px calc(75px + env(safe-area-inset-bottom, 0px));
}

.mobile-tab-view {
  display: none;
}

.mobile-tab-view.active {
  display: block;
}

/* 今日进度 KPI 概览卡片 */
.mobile-kpi-card {
  background: linear-gradient(135deg, #1b4d3e 0%, #246350 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(27, 77, 62, 0.25);
}

.mobile-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mobile-date-badge {
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
}

.mobile-progress-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-kpi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.kpi-label {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 3px;
}

.kpi-val {
  font-size: 16px;
  font-weight: 800;
}

/* 今日配送任务卡片 */
.mobile-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.mobile-task-card.is-signed {
  border-left: 5px solid #10b981;
  background: #fbfdfc;
}

.mobile-task-card.is-pending {
  border-left: 5px solid #f59e0b;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.task-seq-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.task-dest-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.task-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.task-action-box {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.btn-mobile-signin {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-mobile-signin:active {
  transform: scale(0.98);
}

.signed-badge-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 10px 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 12px;
}

/* 📸 卸货拍照取证区域 */
.photo-upload-zone {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

.photo-upload-zone:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.gps-card-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
}

/* 🚗 司机移动端「按趟次聚合」工资对账卡片 (一趟车多单位共计一份配送费) */
.mobile-trip-wage-card, .mobile-wage-item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.trip-wage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.trip-tag {
  background: #f0fdf4;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.trip-wage-fee-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .trip-wage-fee-summary {
  background: #1e293b;
  border-color: #334155;
}

.fee-badge-box {
  text-align: center;
}

.fee-badge-box .fee-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.fee-badge-box .fee-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.fee-badge-box.delivery .fee-val {
  color: #047857;
}

.fee-badge-box.unloading .fee-val {
  color: #059669;
}

.trip-stops-list {
  background: #fafafa;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px dashed var(--border-color);
}

[data-theme="dark"] .trip-stops-list {
  background: #0f172a;
}

.trip-stop-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-color);
}

.trip-stop-row:last-child {
  border-bottom: none;
}

.stop-idx {
  width: 18px;
  height: 18px;
  background: #1b4d3e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.stop-info {
  flex: 1;
}

.stop-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.stop-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.proof-link {
  color: #0284c7;
  cursor: pointer;
  font-weight: bold;
}

.trip-wage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* =========================================================================
   次日快速定人工作台样式 (Quick Schedule Board)
   ========================================================================= */
.qs-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  font-size: 11px;
}

.qs-badge-chip:hover {
  border-color: #10b981;
  color: #047857;
  transform: translateY(-1px);
}

.qs-badge-chip.active {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  font-weight: 700;
}

.qs-badge-chip.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.qs-badge-chip.warning.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.qs-table th {
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.qs-table td {
  padding: 8px 12px;
  vertical-align: middle;
}

.qs-row-unassigned {
  background-color: #fffdf5;
}

.qs-row-driver-select {
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  width: 100%;
}

.qs-row-driver-select:focus {
  border-color: #047857;
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.15);
}

.qs-fee-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.qs-fee-badge.primary {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.qs-fee-badge.zero {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.qs-row-skipped {
  opacity: 0.5;
  background-color: #f8fafc !important;
  filter: grayscale(35%);
  transition: all 0.15s ease;
}

.qs-row-skipped:hover {
  opacity: 0.85;
  filter: none;
}

.qs-row-delivering {
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.qs-row-delivering.qs-row-unassigned {
  background-color: #fffdf5 !important;
}

.qs-deliver-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.qs-deliver-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #059669;
}

.qs-status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.qs-status-badge.delivering {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.qs-status-badge.skipped {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.badge.active-status {
  box-shadow: 0 0 0 2px #059669;
  font-weight: 800;
}
