/* 表格样式 */
#location-table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#location-table th, #location-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: center;
}

#location-table th {
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-weight: 600;
}

#location-table tr:nth-child(even) {
  background: #f6f8fa;
}

#location-table tr:hover {
  background: #e6f7f1;
}

/* 新增按钮和操作按钮 */
#add-location-btn,
#location-table .edit-btn,
#location-table .del-btn,
#save-location-btn,
#upload_excel,
#download_location,
#cancel-location-btn {
  background: var(--primary);
  color: var(--text-on-primary);
  border: none;
  border-radius: var(--radius);
  padding: 0.4em 1.2em;
  margin: 0 0.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background var(--transition-duration);
}

#add-location-btn:hover,
#location-table .edit-btn:hover,
#upload_excel:hover,
#download_location:hover,
#save-location-btn:hover {
  background: var(--primary-hover);
}

#location-table .del-btn,
#cancel-location-btn {
  background: var(--error);
}

#location-table .del-btn:hover,
#cancel-location-btn:hover {
  background: var(--danger);
}

/* 弹窗表单美化 */
#location-modal {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 320px;
}

#location-modal label {
  display: inline-block;
  width: 60px;
  color: var(--text-secondary);
  margin-right: 8px;
}

#location-modal input[type="text"] {
  width: 200px;
  padding: 0.4em 0.6em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1em;
  background: var(--surface-alt);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

#location-modal input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
}

#location-modal form > div {
  margin-bottom: 1em;
}

#modal-mask {
  /* 已有样式，补充淡入淡出动画 */
  transition: opacity 0.2s;
}

/* 提示区域 */
.notice {
  background: var(--surface-alt);
  color: var(--error);
  border-left: 4px solid var(--error);
  padding: 0.7em 1em;
  margin-bottom: 1em;
  border-radius: var(--radius);
  font-size: 1em;
}
