.madmin-toggle-form {
  display: inline-block;
  margin: 0;
}

.madmin-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.madmin-toggle-button.is-on {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

.madmin-toggle-button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.madmin-toggle-track {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  align-items: center;
  border-radius: 9999px;
  background: #94a3b8;
  transition: background-color 150ms ease;
}

.madmin-toggle-button.is-on .madmin-toggle-track {
  background: #059669;
}

.madmin-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateX(3px);
  transition: transform 150ms ease;
}

.madmin-toggle-button.is-on .madmin-toggle-thumb {
  transform: translateX(19px);
}

.supervisor-checkbox-form {
  display: inline;
  margin: 0;
}

.supervisor-checkbox {
  cursor: pointer;
}

/* --- Custom Madmin utility classes --- */

.madmin-section {
  margin-top: 2rem;
}

.madmin-section-title {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.madmin-subsection {
  margin-top: 1.5rem;
}

.madmin-subsection-title {
  margin-bottom: 0.5rem;
}

.madmin-form-group {
  margin: 1.5rem 0;
}

.madmin-form-group-sm {
  margin: 1rem 0;
}

.madmin-form-actions {
  margin-top: 1.5rem;
}

.madmin-flex-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.madmin-select {
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.madmin-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.madmin-label-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.madmin-hint {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.madmin-muted {
  color: #64748b;
}

.madmin-muted-block {
  color: #64748b;
  margin-bottom: 1rem;
}

.madmin-text-danger {
  color: #dc2626;
}

.madmin-text-danger-sm {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.madmin-text-success {
  color: #16a34a;
}

.madmin-text-invalid {
  color: #991b1b;
}

.madmin-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #991b1b;
}

.madmin-alert-danger-hover {
  color: #dc2626;
  cursor: help;
}

.madmin-actions-bar {
  margin-bottom: 1rem;
}

.madmin-actions-bottom {
  margin-top: 1rem;
}

/* Preview import row backgrounds */
.madmin-row-valid {
  background: #f0fdf4;
}

.madmin-row-invalid {
  background: #fef2f2;
}

/* Print table column widths */
.madmin-col-person {
  width: 22%;
}

.madmin-col-date {
  width: 24%;
}

.madmin-col-time {
  width: 18%;
}

.madmin-col-action {
  width: 12%;
}

.madmin-col-checkbox {
  width: 2rem;
}
