/* ============================================
   Honeywell Scanner 基础信息表查询 - 样式
   ============================================ */

/* 导入通用样式 */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
}

.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.loading-content { text-align: center; color: white; padding: 40px; }
.loading-content p { font-size: 18px; margin-top: 16px; font-weight: 500; }
.spinner {
  width: 60px; height: 60px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff; border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.config-panel {
  background: #ffffff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); padding: 32px;
}

.page-header { margin-bottom: 32px; padding-bottom: 24px; }
.header-title {
  font-size: 28px; font-weight: 700; color: #2d3748; margin: 0 0 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-subtitle { font-size: 14px; color: #718096; font-style: italic; }

/* 水平Tab导航 */
.nav-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0; padding-bottom: 0;
}
.nav-tabs li {
  list-style: none; padding: 10px 20px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #718096;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.nav-tabs li:hover { color: #667eea; }
.nav-tabs li.tab-active {
  color: #667eea; border-bottom-color: #667eea;
}

/* 搜索框 */
.search-box {
  position: relative; margin-bottom: 20px;
}
.search-input {
  width: 100%; padding: 12px 50px 12px 16px;
  border: 2px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; background: #f7fafc; color: #2d3748;
  box-sizing: border-box; transition: all 0.2s;
}
.search-input:focus {
  outline: none; border-color: #667eea; background: white;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.clear-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(102,126,234,0.15); border: none;
  font-size: 20px; cursor: pointer; color: #667eea;
  padding: 6px 12px; border-radius: 6px; display: none;
  line-height: 1; font-weight: 600;
}
.clear-btn:hover { background: rgba(102,126,234,0.25); }
.search-input.has-search + .clear-btn,
.has-search ~ .clear-btn { display: block; }

/* 表格 */
.data-table-container { overflow-x: auto; border-radius: 12px; }
#config-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px;
}
#config-table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; font-weight: 600; padding: 14px 12px;
  text-align: left; white-space: nowrap; position: sticky; top: 0;
}
#config-table thead th:first-child { border-top-left-radius: 12px; }
#config-table thead th:last-child { border-top-right-radius: 12px; }
#config-table tbody td {
  padding: 10px 12px; border-bottom: 1px solid #edf2f7; color: #4a5568;
}
#config-table tbody tr:hover { background: #f7fafc; }

.empty-state { text-align: center; padding: 60px 20px; color: #a0aec0; }

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 16px 12px; }
  .header-title { font-size: 22px; }
  .config-panel { padding: 20px 16px; }
  .nav-tabs li { padding: 8px 14px; font-size: 13px; }
  #config-table { font-size: 13px; }
  #config-table thead th { padding: 10px 8px; }
  #config-table tbody td { padding: 8px 8px; }
}
