/**
 * SumiSync Hub - Sistema de Diseño Institucional & Tokens Comunes
 * Diseño Clínico Light Mode, tipografía Plus Jakarta Sans y JetBrains Mono.
 * Resolución 2275 de 2023 de MinSalud y UBL 2.1 Salud DIAN.
 */

:root {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #e2e8f0;
  
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  
  --success: #059669;
  --success-light: #d1fae5;
  --success-border: #a7f3d0;
  
  --warning: #d97706;
  --warning-light: #fef3c7;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-border: #fecaca;

  --info: #2563eb;
  --info-light: #dbeafe;
  --info-border: #bfdbfe;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Botones Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background-color: #047857;
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background-color: #b91c1c;
}

.btn-sm {
  font-size: 0.76rem;
  padding: 4px 10px;
}

/* Badges / Etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.badge-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.badge-neutral {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-superadmin {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.badge-admin {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bae6fd;
}

.badge-operator {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Formularios & Inputs */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* ==========================================================================
   SISTEMA DE ALERTAS Y MODALES ESTILO SWEETALERT / CLEANSHOT X
   ========================================================================== */
.swal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background-color: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.swal-overlay.swal-active {
  opacity: 1;
  pointer-events: auto;
}

.swal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(22, 22, 24, 0.08);
  width: 100%;
  max-width: 460px;
  padding: 30px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  overflow: hidden;
}

.swal-overlay.swal-active .swal-card {
  transform: scale(1) translateY(0);
}

.swal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(22, 22, 24, 0.08);
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.swal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.swal-icon-chip {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swal-overlay.swal-active .swal-icon-chip {
  transform: scale(1.05);
}

.swal-icon-success {
  background: #ecfdf5;
  color: #059669;
  border: 2px solid #a7f3d0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.swal-icon-error {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.swal-icon-warning {
  background: #fffbeb;
  color: #d97706;
  border: 2px solid #fde68a;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.swal-icon-info {
  background: #eff6ff;
  color: #0d44e8;
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 12px rgba(13, 68, 232, 0.15);
}

.swal-icon-question {
  background: #f0fdfa;
  color: #0d9488;
  border: 2px solid #99f6e4;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.swal-icon-shield {
  background: #faf5ff;
  color: #7e22ce;
  border: 2px solid #e9d5ff;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.15);
}

.swal-title {
  font-family: 'Google Sans Flex', 'Inter', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #161618;
  margin: 0 0 10px 0;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.swal-body {
  font-size: 0.88rem;
  color: #475569;
  text-align: center;
  line-height: 1.55;
  margin: 0 0 24px 0;
  width: 100%;
}

.swal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.swal-btn-confirm {
  background: #0d44e8;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(13, 68, 232, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 120px;
}

.swal-btn-confirm:hover {
  background: #0b3ac5;
  box-shadow: 0 4px 12px rgba(13, 68, 232, 0.35);
  transform: translateY(-1px);
}

.swal-btn-cancel {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 100px;
}

.swal-btn-cancel:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.swal-btn-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

.swal-btn-danger:hover {
  background: #b91c1c !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

/* ==========================================================================
   TOASTS MODERNOS CLEANSHOT X CON ICONOGRAFÍA FONTAWESOME
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 480px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #161618;
  border: 1px solid rgba(22, 22, 24, 0.08);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
  position: relative;
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.toast-icon-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.toast-icon-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.toast-icon-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.toast-icon-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.toast-icon-info { background: #eff6ff; color: #0d44e8; border: 1px solid #bfdbfe; }

.toast-message {
  flex-grow: 1;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.toast-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modales Base */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
}

.modal-card.modal-lg {
  max-width: 900px;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-subtle);
}

.modal-header h3 {
  font-size: 1rem;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   LAYOUT PRINCIPAL UNIFICADO CLEANSHOT X (COMPARTIDO ENTRE TODAS LAS VISTAS)
   ========================================================================== */
.dashboard-layout {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  background-color: var(--bg-app, #f1f5f9) !important;
}

.dashboard-main {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  min-width: 0 !important;
  overflow-y: auto !important;
  background-color: var(--bg-app, #f1f5f9) !important;
  position: relative !important;
}

/* ==========================================================================
   SIDEBAR UNIFICADO CLEANSHOT X (COMPARTIDO ENTRE TODAS LAS VISTAS)
   ========================================================================== */
.dashboard-sidebar {
  width: 272px;
  height: 100vh;
  background-color: #ffffff;
  border-right: 1px solid rgba(22, 22, 24, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(22, 22, 24, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0f0f12;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #161618;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #6a6a6b;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #6b7280;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: #f8fafc;
  color: #111827;
}

.nav-link:hover i {
  color: #0d44e8;
}

.nav-link.active {
  background-color: #f0f4ff;
  color: #0d44e8;
  font-weight: 600;
  border-color: rgba(13, 68, 232, 0.15);
}

.nav-link.active i {
  color: #0d44e8;
}

.nav-link-microcampo {
  border: 1px dashed rgba(13, 68, 232, 0.3) !important;
  background: rgba(13, 68, 232, 0.03) !important;
  color: #0d44e8 !important;
}

.nav-link-superadmin {
  background-color: #faf5ff;
  border-color: #f3e8ff;
  color: #7e22ce;
}

.sidebar-user {
  padding: 16px 14px;
  border-top: 1px solid rgba(22, 22, 24, 0.06);
  background-color: #ffffff;
}

.user-card {
  background: #ffffff;
  border: 1px solid rgba(22, 22, 24, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #161618;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.user-role-container {
  margin: 2px 0 4px 0;
}

.user-email {
  font-size: 0.72rem;
  color: #6a6a6b;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL SUMIVITALES & CRÉDITOS LENIPSEART DEVELOPER
   ========================================================================== */
.sumisync-footer {
  margin-top: auto;
  padding: 32px 0 16px 0;
  border-top: 1px solid rgba(22, 22, 24, 0.08);
  background: transparent;
  color: #6a6a6b;
  font-size: 0.82rem;
  width: 100%;
}

.sumisync-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1.4fr;
  gap: 32px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .sumisync-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-col-brand .footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: #161618;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6a6a6b;
  margin-bottom: 12px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #6a6a6b;
}

.footer-contact-info a {
  color: #0d44e8;
  text-decoration: none;
}
.footer-contact-info a:hover {
  text-decoration: underline;
}

.footer-sec-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #161618;
  margin-bottom: 12px;
}

.footer-compliance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
}

.footer-compliance-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-credits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-version-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0;
}

.footer-developer-card {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 22, 24, 0.12);
  border-radius: 12px;
  font-size: 0.78rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.footer-developer-card .link-developer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-developer-card .link-developer:hover {
  color: #047857;
  transform: translateY(-1px);
}

/* ==========================================================================
   BADGES DE ROLES OFICIALES (4 ROLES SUMISYNC)
   ========================================================================== */
.badge-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  line-height: 1.2;
}

.badge-role-superadmin {
  background: #0f0f12;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.badge-role-superadmin i {
  color: #f59e0b;
}

.badge-role-gerencia {
  background: #1e1b4b;
  color: #e0e7ff;
  border: 1px solid #4338ca;
}
.badge-role-gerencia i {
  color: #818cf8;
}

.badge-role-facturacion {
  background: #0d44e8;
  color: #ffffff;
  border: 1px solid rgba(13, 68, 232, 0.35);
  box-shadow: 0 1px 3px rgba(13, 68, 232, 0.2);
}
.badge-role-facturacion i {
  color: #93c5fd;
}

.badge-role-compras {
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #059669;
}
.badge-role-compras i {
  color: #34d399;
}

/* ==========================================================================
   SWITCHES DE PERMISOS ESTILO MACOS / CLEANSHOT X
   ========================================================================== */
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch-control input:checked + .switch-slider {
  background-color: #0d44e8;
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.switch-control input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.perm-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(22, 22, 24, 0.08);
  border-radius: 14px;
  transition: all 0.15s ease;
}

.perm-switch-card:hover {
  border-color: rgba(13, 68, 232, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.perm-switch-card.active-perm {
  background: #f8faff;
  border-color: rgba(13, 68, 232, 0.3);
}

.perm-switch-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.perm-icon-box.active {
  background: #eef2ff;
  color: #0d44e8;
}

.perm-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.perm-desc {
  font-size: 0.73rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}


