﻿/* Professional Table Styling */

/* DataTables Pagination */
.dataTables_paginate {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  gap: 0.25rem;
}

.dataTables_paginate .paginate_button {
  background: var(--primary-color, #0d6efd);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin: 0 0.125rem;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.dataTables_paginate .paginate_button.current {
  background: var(--primary-dark, #0b5ed7);
  font-weight: 600;
}

.dataTables_paginate .paginate_button.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

.dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: var(--primary-hover, #0b5ed7);
}

/* Report Table Styling */
#reportTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

#reportTable th,
#reportTable td {
  padding: 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}

#reportTable th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

#reportTable tbody tr:hover {
  background: rgba(0, 123, 255, 0.075);
}

#reportTable .actions {
  text-align: center;
  white-space: nowrap;
}

/* Action Icons */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  margin: 0 0.125rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.action-icon.edit {
  background: #ffc107;
  color: #212529;
}

.action-icon.edit:hover {
  background: #ffcd39;
}

.action-icon.delete {
  background: #dc3545;
  color: white;
}

.action-icon.delete:hover {
  background: #e15567;
}

/* Responsive Design */
@media (max-width: 768px) {
  #reportTable th,
  #reportTable td {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
  
  .action-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
  
  .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}
