/* --- DataTables 搜索框容器及输入框样式调整 --- */

.flex.flex-col.sm\:flex-row.sm\:justify-between.items-center.mb-4 {
  gap: 1rem;
  flex-wrap: wrap;
}

.flex > div.dataTables_filter {
  flex-grow: 1;
  text-align: right;
  padding-left: 0.75rem;
  min-width: 280px;
  max-width: 400px;
}

div.dataTables_filter input {
  width: 100%;
  min-width: 280px;
  max-width: 400px;
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid #d1d5db; /* gray-300 */
  padding: 0.5rem 0.75rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  font-size: 0.875rem; /* text-sm */
}

div.dataTables_filter input:focus {
  box-shadow: 0 0 6px #f97316; /* Tailwind orange-400 */
  border-color: #f97316;
  outline: none;
}

/* --- 条数选择 --- */
div.dataTables_length {
  padding-right: 0.75rem;
}

div.dataTables_length select {
  min-width: 5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem; /* text-sm */
}

/* --- 分页按钮 --- */
div.dataTables_paginate a {
  margin: 0 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

div.dataTables_paginate a:hover {
  background-color: #f97316;
  color: white !important;
  border-color: #f97316 !important;
}

div.dataTables_paginate a.current {
  background-color: #f97316;
  color: white !important;
  border-color: #f97316 !important;
  cursor: default;
}

    /* 表头背景色 */
    #resultTable thead tr {
      /* background-color: #008281; Tailwind gray-100 */
      background-color: #fffce5;
    }

    #resultTable text {
        color: #f97316;
    }