* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
}

.top-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  border: none;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.container {
  max-width: 1320px;
  margin: 95px auto 30px auto;
}

/* 用户头部信息区域 */
.user-header {
  background-color: #fff;
  padding: 35px 30px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.user-header:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.user-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  border: 3px solid #e8f5e9;
  box-shadow: 0 3px 8px rgba(0, 102, 51, 0.15);
  background-color: #f5f5f5;
}

.user-info-header {
  flex: 1;
}

.user-name-large {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.user-id {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 18px;
}

.user-stats {
  display: flex;
  gap: 35px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child):after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background-color: #e0e0e0;
}

.stat-value {
  font-size: 22px;
  color: #006633;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #7f8c8d;
}

/* 角色切换样式 */
.role-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 35px;
  border-left: 1px solid #eee;
}

.role-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-right: 12px;
}

.role-select {
  position: relative;
  display: inline-block;
}

.role-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f0f7f4;
  border: 1px solid #cce5d9;
  border-radius: 6px;
  padding: 10px 35px 10px 15px;
  font-size: 14px;
  color: #006633;
  cursor: pointer;
  min-width: 130px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.role-select select:hover {
  border-color: #006633;
  background-color: #e8f5e9;
}

.role-select select:focus {
  outline: none;
  border-color: #006633;
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.15);
}

.role-select:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #006633;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.role-select:hover:after {
  transform: translateY(-50%) scale(1.2);
}

/* 内容容器 */
.content-container {
  height: 600px;
  display: flex;
  gap: 25px;
}

/* iframe容器样式 */
.iframe-container {
  width: 100%;
  height: calc(100vh - 310px); /* 减去顶部导航栏和用户头部信息的高度 */
  min-height: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
  width: 200px;
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 20px 0;
  position: fixed;
  height: 600px;
  overflow: hidden;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  border-radius: 0 25px 25px 0;
  margin: 2px 0;
}

.menu-item:hover {
  background: #e9ecef;
  color: #007bff;
}

.menu-item.active {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.sidebar-item {
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  margin: 2px 0;
  border-radius: 0 30px 30px 0;
  margin-right: 10px;
}

.sidebar-item.active {
  background-color: #e8f5e9;
  color: #006633;
  font-weight: 600;
  border-left: 4px solid #006633;
}

.sidebar-item:hover:not(.active) {
  background-color: #f0f7f4;
  color: #006633;
}

.sidebar-icon {
  margin-right: 12px;
  width: 22px;
  height: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 内容区域样式调整 */
.content {
  margin-left: 200px;
  padding: 20px;
  height: inherit; /* 继承父容器高度 */
  min-height: calc(100vh - 40px);
  overflow: visible; /* 移除滚动条 */
}

/* 按钮容器样式 */
.button-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* 按钮样式 */
.action-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
  margin: 1px 2px;
  min-width: 40px;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.delete-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  margin: 1px 2px;
  min-width: 40px;
}

.delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.default-btn {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  margin: 1px 2px;
  min-width: 40px;
}

.default-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.default-tag {
  background: #6c757d;
  color: white;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 5px;
}

/* 数据表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  table-layout: fixed; /* 固定表格布局 */
}

.data-table thead {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th,
.data-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.data-table td {
  font-size: 13px;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.table-body-container {
  max-height: none; /* 移除高度限制 */
  min-height: 260px; /* 设置最小高度 */
  overflow: visible; /* 移除滚动条 */
}

/* 状态样式 */
.status-待接单 {
  background: #ffc107;
  color: #212529;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-运输中 {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-已完成 {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-待发货 {
  background: #fd7e14;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 地址类型样式 */
.address-type-公司地址 {
  background: #6f42c1;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.address-type-取货地址 {
  background: #20c997;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.address-type-送货地址 {
  background: #fd7e14;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
}

.pagination button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.pagination span {
  font-size: 14px;
  color: #6c757d;
}

/* 筛选和搜索区域样式 */
.filter-section {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-section select,
.filter-section input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-section button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-section button:hover {
  background: #0056b3;
}

/* 内容标题样式 */
.content-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.content-title h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

/* 无数据样式 */
.no-data {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main-content {
  margin-left: 220px; /* 与侧边栏宽度匹配 */
  width: calc(100% - 220px); /* 确保与侧边栏总宽度为100% */
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 600px; /* 继承父容器iframe-container的高度 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-sizing: border-box;
}

.section-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.content-scroll-area {
  flex: 1;
  overflow: visible; /* 移除滚动条 */
  padding-right: 8px;
  margin-bottom: 20px;
  min-height: 300px; /* 调整最小高度 */
  max-height: 450px; /* 设置最大高度确保分页显示 */
  height: auto;
  display: flex;
  flex-direction: column;
}

/* 美化滚动条样式 */
.content-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.content-scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content-scroll-area::-webkit-scrollbar-thumb {
  background: #cce5d9;
  border-radius: 3px;
}

.content-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #006633;
}

/* 信息组样式 */
.info-group {
  margin-bottom: 25px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-group:hover {
  background-color: #f0f7f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
}

.info-row {
  display: flex;
  margin-bottom: 20px;
  gap: 20px;
}

.info-col {
  flex: 1;
}

/* 按钮样式 */
.edit-btn {
  background-color: #006633;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0, 102, 51, 0.2);
}

.edit-btn:hover {
  background-color: #005528;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 102, 51, 0.25);
}

.edit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 102, 51, 0.2);
}

.logout-btn {
  background-color: #f8f9fa;
  color: #7f8c8d;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: absolute;
  top: 50px;
  right: 30px;
}

.logout-btn:hover {
  background-color: #f0f0f0;
  color: #e74c3c;
  border-color: #e74c3c;
}

/* 内容区域样式 */
.content-section {
  display: none;
  height: 100%;
}

.section-header-with-action{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-section.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

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

/* 车辆图片预览样式补充 */
#vehiclePhotoPreview, #vehicleImgPreview {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-top: 4px;
  background: #fafafa;
}
/* 车辆信息卡片内容可滚动，最大高度适配主内容区 */
#vehicleInfo {
  max-height: 420px;
  overflow-y: auto;
}
/* 优化车辆信息排版 */
.vehicle-info-flex {
  display: flex;
  gap: 32px;
}
.vehicle-info-left {
  flex: 1 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vehicle-info-right {
  flex: 1 1 40%;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vehicle-img-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  margin-right: 8px;
  margin-bottom: 4px;
  background: #fafafa;
}
.vehicle-img-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.vehicle-img-list::-webkit-scrollbar {
  height: 6px;
}
.vehicle-img-list::-webkit-scrollbar-thumb {
  background: #cce5d9;
  border-radius: 3px;
}
.vehicle-img-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
@media (max-width: 900px) {
  .vehicle-info-flex { flex-direction: column; }
  .vehicle-info-right, .vehicle-info-left { min-width: 0; }
}

/* 企业信息样式 */
.company-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid #fff;
}

/* 弹窗样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.modal {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 420px;
  padding: 35px;
  text-align: center;
  animation: scaleIn 0.3s ease;
  transform: scale(1);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.modal-content {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.modal-btn-confirm {
  background-color: #006633;
  color: #fff;
  border: none;
  box-shadow: 0 3px 6px rgba(0, 102, 51, 0.2);
}

.modal-btn-confirm:hover {
  background-color: #005528;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 102, 51, 0.25);
}

.modal-btn-confirm:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 102, 51, 0.2);
}

.modal-btn-cancel {
  background-color: #f8f9fa;
  color: #7f8c8d;
  border: 1px solid #ddd;
}

.modal-btn-cancel:hover {
  background-color: #f0f0f0;
  color: #e74c3c;
  border-color: #e74c3c;
}

/* 订单筛选样式 */
.order-filters {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-group label {
  margin-right: 10px;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.filter-select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #2c3e50;
  background-color: #fff;
  min-width: 130px;
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: #cce5d9;
}

.filter-select:focus {
  outline: none;
  border-color: #006633;
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

.search-btn {
  background-color: #006633;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0, 102, 51, 0.2);
}

.search-btn:hover {
  background-color: #005528;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 102, 51, 0.25);
}

.search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 102, 51, 0.2);
}

/* 搜索框样式 */
.search-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #2c3e50;
  width: 180px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.search-input:hover {
  border-color: #cce5d9;
}

.search-input:focus {
  outline: none;
  border-color: #006633;
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

.search-input::placeholder {
  color: #bdc3c7;
}

/* 分页样式 */
.pagination-container {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 15px 0;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  min-height: 50px;
  width: 100%;
  flex-shrink: 0; /* 防止分页区域被压缩 */
}

.pagination-info {
  font-size: 14px;
  color: #7f8c8d;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-btn {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  background-color: #e8f5e9;
  border-color: #cce5d9;
  color: #006633;
}

.page-btn:disabled {
  color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.7;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover:not(.active) {
  background-color: #e8f5e9;
  border-color: #cce5d9;
  color: #006633;
}

.page-number.active {
  background-color: #006633;
  color: #fff;
  border-color: #006633;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 102, 51, 0.2);
}

/* 表格样式 */
.table-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

/* 固定表头表格容器 */
.table-container-fixed {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 300px; /* 减少高度为分页模块留出空间 */
  flex-shrink: 0; /* 防止容器被压缩 */
}

/* 固定表头区域 */
.table-header-fixed {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 2px solid #cce5d9;
}

/* 可滚动表体区域 */
.table-body-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 表体滚动条样式 */
.table-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.table-body-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.table-body-scroll::-webkit-scrollbar-thumb {
  background: #cce5d9;
  border-radius: 3px;
}

.table-body-scroll::-webkit-scrollbar-thumb:hover {
  background: #006633;
}

/* 表头表格样式 */
.header-table {
  margin: 0;
  box-shadow: none;
}

/* 表体表格样式 */
.body-table {
  margin: 0;
  box-shadow: none;
}

.body-table th {
  display: none; /* 隐藏表体中的表头 */
}

.table-scroll {
  width: 100%;
  overflow: visible; /* 移除滚动条 */
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.table-scroll.has-scroll {
  scrollbar-color: #cce5d9 transparent;
}

.table-scroll.has-scroll:hover {
  scrollbar-color: #006633 transparent;
}

.table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

.table-scroll.has-scroll::-webkit-scrollbar-thumb {
  background: #cce5d9;
}

.table-scroll.has-scroll:hover::-webkit-scrollbar-thumb {
  background: #006633;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

th {
  position: sticky;
  top: 0;
  background-color: #f0f7f4;
  z-index: 2;
  padding: 15px 10px;
  text-align: left;
  border-bottom: 2px solid #cce5d9;
  color: #006633;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

th:hover {
  background-color: #e8f5e9;
}

td {
  padding: 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #2c3e50;
  transition: background-color 0.3s ease;
}

tr:hover td {
  background-color: #f9f9f9;
}

/* 空数据提示 */
#noOrdersMessage, #noCargoMessage {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  color: #7f8c8d;
  font-size: 15px;
  flex-direction: column;
}

#noOrdersMessage:before, #noCargoMessage:before {
  content: "📭";
  font-size: 40px;
  margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .content-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .sidebar-item {
    border-radius: 8px;
    margin: 5px 10px;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .user-avatar-large {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .role-switcher {
    margin-left: 0;
    margin-top: 20px;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: 100%;
    justify-content: center;
  }
  
  .user-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .info-row {
    flex-direction: column;
  }
  
  .order-filters {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select, .search-input {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    margin-top: 10px;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .pagination-info {
    text-align: center;
    width: 100%;
  }
  
  .pagination-controls {
    width: 100%;
    justify-content: center;
  }
}

.dashboard-scroll-area {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

/* 图片查看模态框样式 */
.modal-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 图片悬停效果 */
.info-value img[onclick] {
  transition: all 0.3s ease;
}

.info-value img[onclick]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}