/* 操作員頁面特定樣式 */

/* S10：頁面載入錯誤提示 */
.page-load-error {
  padding: 20px;
  margin: 20px;
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 8px;
  color: #c62828;
}
.page-load-error p { margin: 0 0 8px; }
.page-load-error p:last-child { margin-bottom: 0; font-size: 0.95em; opacity: 0.9; }

/* ========== 基礎重置樣式 ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Microsoft JhengHei', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--gray-light);
  color: var(--text-color);
  line-height: 1.6;
}

/* ========== 操作員頁面主題變數 ========== */
:root {
    /* 操作員頁面主題色 - 石板藍色 */
    --primary-color: #4A6482;
    --primary-dark: #3A5268;
    --primary-light: #8FA3B8;
    
    --operator-primary: #4A6482;
    --operator-primary-dark: #3A5268;
    --operator-primary-light: #8FA3B8;
    
    /* 基礎色彩系統 */
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #FF9800;
    
    /* 灰色系統 */
    --gray-light: #f9f9f9;
    --gray-medium: #ddd;
    --gray-dark: #666;
    --gray-icon: #888;
    --gray-border: #bbb;
    --gray-text: #666;
    
    /* 文字色彩 */
    --text-color: #333;
    --text-muted: #666;
    
    /* 陰影和圓角 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    
    /* 高度和間距 */
    --input-height: 32px;
    --gap-sm: 6px;
    --gap-md: 8px;
    --gap-lg: 12px;
    
    /* 字體大小 */
    --font-size-filter: 13px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
}

/* 操作員頁面主題 */
.operator-page {
    --primary-color: #4A6482;
    --primary-dark: #3A5268;
    --primary-light: #8FA3B8;
}

/* 操作員頁面：固定視窗高度佈局，讓表格橫向捲軸始終在畫面底部可見 */
body.operator-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body.operator-page .top-nav {
  flex-shrink: 0;
}
body.operator-page .container {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}
body.operator-page #grid-container {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: auto;
  box-shadow: var(--shadow);
  margin: 0;
}

/* 重新設計的操作員工具列樣式 - 單行佈局 */
.operator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 4px 0;
  height: 40px; /* 精簡高度 */
}

/* 左上角：頁面標題和連結功能 */
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.page-title i {
  font-size: 18px;
  color: #D2B48C; /* 淺金色 */
}

.link-functions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 寬按鈕樣式 - 用於連結功能 */
.wide-btn {
  min-width: 90px !important;
  height: 32px !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.15s ease !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;
}

.wide-btn:hover:enabled {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  background-color: var(--primary-dark) !important;
}

.wide-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.wide-btn i {
  font-size: 14px !important;
}

/* 中間：篩選功能 */
.toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 400px;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

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

.filter-group .form-control {
  height: 32px;
  min-width: 110px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 5px;
  padding: 6px 10px;
}

.filter-group .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  outline: none;
}

.filter-group .form-control option {
  background: #6A93A7;
  color: white;
}

/* 右側：表格操作按鈕 */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.action-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 響應式設計 - 保持單行佈局 */
@media (max-width: 1200px) {
  .operator-toolbar {
    gap: 12px;
    padding: 6px 0;
  }
  
  .toolbar-center {
    max-width: 300px;
  }
  
  .filter-section {
    gap: 8px;
  }
  
  .filter-group .form-control {
    min-width: 100px;
  }
  
  .wide-btn {
    min-width: 80px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 768px) {
  .operator-toolbar {
    gap: 8px;
    padding: 4px 0;
    height: auto; /* 改為 auto，允許展開 */
    flex-wrap: wrap; /* 允許換行 */
  }
  
  .page-title {
    font-size: 16px;
  }
  
  .page-title i {
    font-size: 18px;
  }
  
  .link-functions {
    gap: 8px;
  }
  
  .wide-btn {
    min-width: 70px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  
  .wide-btn span {
    display: none; /* 小螢幕只顯示圖示 */
  }

  /* 工具列中間區域：允許換行 */
  .toolbar-center {
    max-width: none;
    flex: 1 1 100%; /* 手機版時佔滿整行 */
    order: 999; /* 確保在最後，往下推 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  
  /* 篩選器區域：手機版樣式由 mobile-filter-toggle.css 處理 */
  /* 這裡只保留桌面版的樣式覆蓋 */
  .filter-section {
    gap: 6px;
  }
  
  .filter-group .form-control {
    min-width: 80px;
    font-size: 13px;
  }
  
  /* 手機版時，篩選器按鈕改為垂直排列 */
  .filter-section.filters-section .filter-group {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .filter-section.filters-section .filter-group:last-child {
    margin-bottom: 0;
  }
  
  /* 確保篩選器按鈕在手機版時寬度一致 */
  .filter-section.filters-section .form-control {
    width: 100%;
    min-width: auto;
  }
  
}

/* 操作員頁面特定容器樣式 */
.container {
  max-width: 100vw;
  margin: 0;
  padding: 0;
  width: 100vw;
  box-sizing: border-box;
}

body.operator-page .nav-container {
  padding: 0 16px;
}

/* 移除未使用的面板樣式 - 操作員頁面已改為單行佈局 */

/* 表單樣式 */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-dark);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
  outline: none;
}

/* 按鈕樣式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--gray-medium);
}

/* 左側按鈕特殊樣式 */
.left-section .btn {
  padding: 6px 8px; /* 左側區域按鈕使用較小的間距 */
  font-size: var(--font-size-filter);
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

/* 表格容器 */
#grid-container {
  height: calc(100vh - 70px);
  width: calc(100vw - 24px);
  border-radius: var(--border-radius);
  overflow: auto;
  box-shadow: var(--shadow);
  margin: 8px auto;
}


/* ========== 純圖示按鈕樣式（仿照Word風格） ========== */
.icon-only-container {
  display: flex;
  flex-direction: row;
  gap: 8px !important; /* 增加間距 */
  margin-bottom: 0 !important;
  align-items: center;
}

.icon-only-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.15s ease !important;
}

/* 主要按鈕樣式 - 給 icon-only-btn 添加主題色 */
.icon-only-btn.btn-primary {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.icon-only-btn.btn-primary:hover:enabled {
  background-color: var(--primary-dark) !important;
}

.icon-only-btn:hover:enabled {
  transform: translateY(-1px) !important; /* 更小的上移效果 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important; /* 更明顯的懸停陰影 */
}

.icon-only-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.icon-only-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.icon-only-btn i {
  font-size: 14px !important;
  line-height: 1 !important;
}

/* ========== 操作員月曆日期篩選彈窗樣式 ========== */
.operator-calendar-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.operator-calendar-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.operator-calendar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.operator-calendar-modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.operator-calendar-modal-header h3 i {
  margin-right: 6px;
}

.operator-calendar-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.operator-calendar-modal-close:hover {
  background: #e9ecef;
  color: #495057;
}

.operator-calendar-modal-body {
  padding: 20px;
}

.calendar-section {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.calendar-container {
  flex: 1;
  min-width: 280px;
}

.calendar-container h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.calendar-wrapper {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  background: var(--primary-color);
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.calendar-month-year {
  font-weight: 600;
  font-size: 16px;
}

.calendar-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #6c757d;
  padding: 8px 4px;
}

.calendar-day {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.calendar-day:hover {
  background: #e9ecef;
}

.calendar-day.selected {
  background: var(--primary-color);
  color: white;
}

.calendar-day.in-range {
  background: rgba(74, 100, 130, 0.2);
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.today {
  font-weight: bold;
  background: #fff3cd;
}

.operator-calendar-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.operator-calendar-modal-footer-spacer {
  flex: 1;
}

/* 統一篩選按鈕樣式（進階篩選、日期篩選） */
.advanced-filter-btn,
.date-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

/* 升降冪按鈕：使用 icon-only 樣式（36x36px） */
.data-sort-btn.icon-only-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

/* 升降冪按鈕圖示 */
.data-sort-btn.icon-only-btn i {
  font-size: 14px !important;
  color: white !important;
}

/* 升降冪按鈕懸停效果 */
.data-sort-btn.icon-only-btn:hover {
  background: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.data-sort-btn.icon-only-btn:hover i {
  color: var(--primary-color) !important;
}

/* 進階篩選和日期篩選按鈕寬度 */
.advanced-filter-btn,
.date-filter-btn {
  min-width: 180px;
}

/* 統一懸停效果：變白色 */
.advanced-filter-btn:hover,
.date-filter-btn:hover {
  background: white !important;
  color: var(--primary-color) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 懸停時圖示顏色也要變 */
.advanced-filter-btn:hover i,
.date-filter-btn:hover i {
  color: var(--primary-color) !important;
}

/* 懸停時文字顏色也要變 */
.advanced-filter-btn:hover span,
.date-filter-btn:hover span {
  color: var(--primary-color) !important;
}

/* 統一圖示樣式 */
.advanced-filter-btn i,
.date-filter-btn i {
  font-size: 14px;
  flex-shrink: 0;
}

/* 統一文字樣式 */
.advanced-filter-btn span,
.date-filter-btn span {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ========== 新增欄位彈窗樣式 ========== */
.add-row-client-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  align-items: center;
  justify-content: center;
}

.add-row-client-modal-content {
  background: white;
  padding: 32px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  min-width: 320px;
  max-width: 90vw;
}

.add-row-client-modal-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.add-row-client-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-client-error {
  color: var(--error-color);
  display: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.modal-client-cancel-btn {
  background: var(--gray-light);
  color: var(--text-color);
}

.required-asterisk {
  color: var(--error-color);
}

/* ========== Excel 載入資料模態框樣式 ========== */

.excel-import-initially-hidden {
  display: none;
}

.excel-import-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.excel-import-modal-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.excel-import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-medium);
  background: var(--gray-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.excel-import-modal-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 18px;
}

.excel-import-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-dark);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.excel-import-modal-close:hover {
  background-color: var(--gray-medium);
  color: var(--text-color);
}

.excel-import-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.excel-import-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--gray-medium);
  background: var(--gray-light);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* 任務歷史紀錄彈窗樣式已統一至 styles/task-history-modal.css，操作員/客戶/廠商共用 */

/* 欄位映射樣式 */
.field-mapping-container {
  margin-bottom: 24px;
}

.mapping-instruction {
  margin-bottom: 16px;
  padding: 12px;
  background: #e3f2fd;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary-color);
}

.mapping-instruction p {
  margin: 0;
  color: var(--text-color);
  font-size: 14px;
}

.mapping-grid {
  display: grid;
  gap: 12px;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-medium);
}

.excel-field,
.system-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.excel-field label,
.system-field label {
  font-weight: 500;
  color: var(--text-color);
  font-size: 14px;
}

.excel-header-input {
  background: #f5f5f5;
  border: 1px solid var(--gray-medium);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 14px;
}

.system-field-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
  background: white;
  font-size: 14px;
}

/* 預覽樣式 */
.preview-container {
  margin-bottom: 24px;
}

.preview-info {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff3e0;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--warning-color);
}

.preview-info p {
  margin: 0;
  color: var(--text-color);
  font-size: 14px;
}

.preview-info.success {
  background: #e8f5e9;
  border-left-color: var(--success-color);
}

.preview-info.warning {
  background: #fff3e0;
  border-left-color: var(--warning-color);
}

.preview-info.error {
  background: #ffebee;
  border-left-color: var(--error-color);
}

.preview-table-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
}

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

.preview-table th,
.preview-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-medium);
}

.preview-table th {
  background: var(--gray-light);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.preview-table tr:nth-child(even) {
  background: #f9f9f9;
}

.preview-table tr:hover {
  background: #f0f8ff;
}

/* 進度條樣式 */
.progress-container {
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 驗證結果樣式 */
.validation-results {
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius-sm);
}

.validation-results h4 {
  margin: 0 0 16px 0;
  color: var(--primary-color);
  font-size: 16px;
}

.validation-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.validation-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.validation-summary-item.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.validation-summary-item.error {
  background: #ffebee;
  color: #c62828;
}

.validation-summary-item.info {
  background: #e3f2fd;
  color: #1565c0;
}

.validation-summary-item .count {
  font-size: 16px;
  font-weight: 700;
}

.validation-errors h5 {
  margin: 0 0 8px 0;
  color: var(--error-color);
  font-size: 14px;
}

.validation-errors ul {
  margin: 0;
  padding-left: 20px;
}

.validation-errors li {
  margin-bottom: 4px;
  color: var(--text-color);
  font-size: 13px;
}

.validation-errors strong {
  color: var(--error-color);
}

.validation-capacity-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 12px;
  border-radius: 4px;
  margin-top: 12px;
}

.validation-capacity-warning h5,
.validation-capacity-warning strong,
.validation-capacity-warning-text {
  color: #856404;
}

.validation-capacity-warning-text {
  margin: 0;
}

/* 表單提示樣式 */
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .excel-import-modal-content {
    width: 98%;
    max-height: 95vh;
  }

  .excel-import-modal-body {
    padding: 16px;
  }

  .mapping-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .validation-summary {
    flex-direction: column;
    gap: 8px;
  }

  .preview-table {
    font-size: 12px;
  }

  .preview-table th,
  .preview-table td {
    padding: 6px 8px;
  }
}
