/* ============================================================
   DATATABLE LITE — LIGHT THEME
   ============================================================ */

.dt-controls {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.25rem;
  border-bottom: none;
}

.dt-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dt-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.dt-search-wrap > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 0.9rem;
  pointer-events: none;
}

.dt-search {
  padding-left: 2.5rem !important;
  padding-right: 1rem !important;
  border-radius: 8px !important;
  background: #f8f9fc !important;
  border: 1px solid #e5e7eb !important;
  color: #1a1a2e !important;
  height: 40px;
}

.dt-search:focus {
  background: #ffffff !important;
  border-color: #667eea !important;
}

.dt-search::placeholder { color: #9ca3af !important; }

.dt-search-hint {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #6b7280;
  pointer-events: none;
}

.dt-perpage-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.dt-perpage {
  width: auto !important;
  height: 40px;
  background: #f8f9fc !important;
  border: 1px solid #e5e7eb !important;
  color: #1a1a2e !important;
  border-radius: 8px !important;
  padding: 0 2rem 0 0.75rem;
}

.dt-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.25s ease;
}

.dt-sortable:hover { background: rgba(102, 126, 234, 0.08) !important; }

.dt-sort-icon { font-size: 0.75rem; opacity: 0.4; margin-left: 0.25rem; }
.dt-sort-asc .dt-sort-icon, .dt-sort-desc .dt-sort-icon { opacity: 1; color: #667eea; }

.dt-editable { cursor: pointer; position: relative; transition: all 0.25s ease; }
.dt-editable:hover { background: rgba(102, 126, 234, 0.06) !important; }

.dt-editable:hover::after {
  content: '\F4CB';
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #6b7280;
  opacity: 0.7;
}

.dt-inline-input {
  font-size: 0.85rem !important;
  padding: 0.25rem 0.5rem !important;
  background: #ffffff !important;
  color: #1a1a2e !important;
  border: 1px solid #667eea !important;
  border-radius: 4px !important;
  width: 100%;
}

.dt-saving { color: #6b7280; font-size: 0.85rem; font-style: italic; }
.dt-saving i { animation: dt-spin 1s linear infinite; display: inline-block; }

@keyframes dt-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.dt-edited { animation: dt-flashGreen 1.5s ease; }
@keyframes dt-flashGreen {
  0%   { background: rgba(16, 185, 129, 0.3); }
  100% { background: transparent; }
}

.dt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.dt-info { color: #6b7280; font-size: 0.85rem; }
.dt-info strong { color: #1a1a2e; }

.dt-pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.dt-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dt-page-btn:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  transform: translateY(-1px);
}

.dt-page-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dt-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.dt-page-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  color: #6b7280;
}

.empty-state-row td { padding: 3rem 1rem !important; background: #ffffff !important; }

@media (max-width: 768px) {
  .dt-controls-row { flex-direction: column; align-items: stretch; }
  .dt-search-wrap { max-width: 100%; }
  .dt-footer { flex-direction: column; align-items: stretch; }
  .dt-pagination { justify-content: center; }
}