/* 原有功能样式保持不变，布局样式已移到 layout.css */
.filters, .action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.filters{margin-bottom: 0px;}
.filter-group {
  display: flex;
  align-items: center;
}

.filter-group label {
  margin-right: 10px;
  font-weight: bold;
}

.appointments-list, .users-list {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.appointments-list{-webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: bold;white-space: nowrap; 
}

tr:hover {
  background-color: #f1f1f1;
}

.status-pending {
  color: #ff9800;
  font-weight: bold;
}

.status-confirmed {
  color: #4caf50;
  font-weight: bold;
}

.status-tracked {
  color: #2196f3;
  font-weight: bold;
}

.status-cancelled {
  color: #f44336;
  font-weight: bold;
}

.status-select {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ddd;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header .close {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.modal-footer button {
  margin-left: 10px;
}

/* 页面头部 */
.page-header {
  margin-bottom: 30px;
}

.page-header h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
}

.page-header p {
  color: #666;
  font-size: 1rem;
}

/* 按钮样式 */
.btn-primary,.update-btn {
  background-color: #1a8cff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* 响应式表格 */
@media (max-width: 768px) {
  .filters, .action-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    margin-bottom: 10px;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 8px 10px;
  }
}

/* 搜索区域样式 */
.search-group {
  display: flex;
  align-items: center;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
}

.search-field {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

.btn-search {
  background: #1a8cff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-search:hover {
  background: #0056b3;
}

.btn-clear-search {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-clear-search:hover {
  background: #545b62;
}

/* 搜索信息提示 */
.search-info {
  background: #e7f3ff;
  border: 1px solid #b3d7ff;
  border-radius: 4px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-info-content {
  color: #004085;
}

.search-info-close {
  background: none;
  border: none;
  color: #004085;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
}

/* 空状态提示 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-input-group {
    flex-wrap: wrap;
  }
  
  .search-input {
    min-width: 150px;
    flex: 1;
  }
}

/* 预约状态行背景色 */
.row-status-pending {
  background-color: #e3f2fd !important; /* 蓝色背景 */
  border-left: 4px solid #2196f3;
}

.row-status-confirmed {
  background-color: #e8f5e8 !important; /* 绿色背景 */
  border-left: 4px solid #4caf50;
}

.row-status-tracked {
  background-color: #fff3e0 !important; /* 橙色背景 */
  border-left: 4px solid #ff9800;
}

.row-status-cancelled {
  background-color: #ffebee !important; /* 红色背景 */
  border-left: 4px solid #f44336;
}

.row-status-deleted {
  background-color: #f5f5f5 !important; /* 灰色背景 */
  border-left: 4px solid #9e9e9e;
  color: #999;
}

/* 确保行悬停效果仍然可见 */
.row-status-pending:hover,
.row-status-confirmed:hover,
.row-status-tracked:hover,
.row-status-cancelled:hover,
.row-status-deleted:hover {
  filter: brightness(0.95);
}

/* 状态文字颜色（保持原有样式） */
.status-pending {
  color: #2196f3;
  font-weight: bold;
}

.status-confirmed {
  color: #4caf50;
  font-weight: bold;
}

.status-tracked {
  color: #ff9800;
  font-weight: bold;
}

.status-cancelled {
  color: #f44336;
  font-weight: bold;
}

.status-deleted {
  color: #9e9e9e;
  font-weight: bold;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #f5f5f5;
    border-color: #1a8cff;
}

.pagination-current {
    background: #1a8cff;
    color: white;
    border-color: #1a8cff;
}

.pagination-current:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.pagination-prev,
.pagination-next {
    padding: 8px 16px;
    font-weight: bold;
}

.pagination-ellipsis {
    padding: 8px 5px;
    color: #999;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-message {
    font-size: 16px;
    margin-bottom: 16px;
}

/* 搜索高亮 */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* 搜索信息提示 */
.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    margin-bottom: 16px;
    color: #004085;
}

.search-info-content {
    flex: 1;
}

.search-info-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #004085;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-info-close:hover {
    background: #b3d7ff;
    border-radius: 50%;
}

/* 状态行背景色 */
.row-status-pending {
    background: #e7f3ff !important;
}

.row-status-confirmed {
    background: #f0f9f0 !important;
}

.row-status-tracked {
    background: #fff3e0 !important;
}

.row-status-cancelled {
    background: #ffeaea !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}


#appointments-body .action-buttons .update-btn{white-space: nowrap;}
.view{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}
.view>li{display:inline; margin-right:5px; font-size:12px;}
.view li i{ margin-right:5px; width:10px; height:12px;display: inline-block;}
.view li:nth-child(1) i{ background:#6e33b7;}
.view li:nth-child(2) i{ background:#2196f3;}
.view li:nth-child(3) i{ background:#4caf50;}
.view li:nth-child(4) i{ background:#999999;}
.view li:nth-child(5) i{ background:#f44336;}
.view li:nth-child(6) i{ background:#6e33b7;}
.view>li>a,.view>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}