/* Table container */
#patients_table {
  width: 100%;
  height: 100vh;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Table header */
#patients_table thead {
  background: #004080; /* hospital brand color */
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#patients_table th {
  padding: 12px 16px;
  text-align: left;
}

/* Table rows */
#patients_table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
}

/* Smooth hover effect ONLY for tbody rows */
#patients_table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

#patients_table tbody tr:hover {
  background: #f9f9f9;
}

/* Explicitly lock header styling */
#patients_table thead tr {
  background: #004080 !important;
  color: #fff !important;
}

/* Status labels */
.site-active {
  color: #2e7d32;
  font-weight: 600;
}

.site-inactive {
  color: #c62828;
  font-weight: 600;
}

/* Action buttons container */
.patient-action {
    display: flex;
    gap: 12px;
}

/* View button */
.view-patient-btn {
    background: #0066cc !important;
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-patient-btn:hover {
    background: #1a75ff !important;
}

/* Edit button */
.edit-patient-btn {
    background: #004080 !important;
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.edit-patient-btn:hover {
    background: #0066cc !important;
}

/* Delete button */
.delete-patient-btn {
    background: #c62828 !important;
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-patient-btn:hover {
    background: #e53935 !important;
}

/* Sticky header */
#patients_table thead {
    position: sticky;
    top: 0;
    background-color: #044ca5;
    color: #fff;
    z-index: 9999;
}

#patients_table thead th {
    padding: 10px;
    text-align: left;
}

/* Table container */
#department_table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Table header */
#department_table thead {
  background: #004080; /* hospital brand color */
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#department_table th {
  padding: 12px 16px;
  text-align: left;
}

/* Table rows */
#department_table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
}

/* Smooth hover effect ONLY for tbody rows */
#department_table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

#department_table tbody tr:hover {
  background: #f9f9f9;
}

/* Explicitly lock header styling */
#department_table thead tr {
  background: #004080 !important;
  color: #fff !important;
}

/* Status labels */
.site-active {
  color: #2e7d32;
  font-weight: 600;
}

.site-inactive {
  color: #c62828;
  font-weight: 600;
}

/* Action buttons container */
.dept-action {
    display: flex;
    gap: 12px;
}

/* Edit button */
.edit-btn {
    background: #004080 !important;
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.edit-btn:hover {
    background: #0066cc !important;
}

/* Delete button */
.dept-delete-btn {
    background: #c62828 !important; /* red */
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dept-delete-btn:hover {
    background: #e53935 !important; /* lighter red */
}

.cancel-btn {
    background: #c62828 !important; /* red */
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background: #e53935 !important; /* lighter red */
}

/* Make table header sticky */
#department_table thead {
    position: sticky;
    top: 0;                /* stick to the very top of the container */
    background-color: #044ca5; /* your brand blue */
    color: #fff;           /* white text for contrast */
    z-index: 9999;            /* keep it above the rows */
}

/* Optional: style header cells */
#department_table thead th {
    padding: 10px;
    text-align: left;
}


