/* Plataforma gerencial — Clínica Dr. Bonilla */

.app-brand-logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  flex-shrink: 0;
}
.app-brand-logo--on-dark {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.nav-link { text-decoration: none; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dataTables_wrapper .dataTables_filter input {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
}
table.dataTable thead th { border-bottom: 2px solid #e2e8f0 !important; }
.kanban-col { min-height: 400px; }

/* DataTables en móvil */
@media (max-width: 640px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

[x-cloak] { display: none !important; }

/* Menú lateral responsive */
body.app-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Móvil / tablet: cajón fuera de pantalla hasta abrir */
.app-sidebar {
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.3s ease-out, visibility 0.3s;
  visibility: hidden;
  pointer-events: none;
}
.app-sidebar.app-sidebar--open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}
.app-sidebar-overlay {
  -webkit-tap-highlight-color: transparent;
}

/* Escritorio: menú visible por defecto; contenido con margen fijo en CSS */
@media (min-width: 1024px) {
  .app-sidebar {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .app-shell--sidebar-collapsed .app-sidebar {
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
  }
  .app-main {
    margin-left: 16rem;
    transition: margin-left 0.3s ease-out;
  }
  .app-shell--sidebar-collapsed .app-main {
    margin-left: 0;
  }
}

.notif-item {
  cursor: pointer;
  background: #fff;
}
.notif-item:hover {
  background: #f8fafc;
}
.notif-item--unread {
  background: #eff6ff;
  border-left: 3px solid #29438A;
  padding-left: calc(1rem - 3px) !important;
}
.notif-item-hint {
  font-size: 0.65rem;
  font-weight: 700;
  color: #29438A;
  white-space: nowrap;
}
.notif-mark-all {
  cursor: pointer;
  background: none;
  border: none;
}


/* Filtro por estado (Activos / Inactivos / Todos) en Usuarios y Departamentos */
.estado-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.estado-filtro {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid #dbe2ee; background: #fff;
  font-size: .8125rem; font-weight: 600; color: #475569;
  text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.estado-filtro:hover { background: #f1f5f9; border-color: #29438A; color: #29438A; }
.estado-filtro--activo { background: #29438A; border-color: #29438A; color: #fff; }
.estado-filtro:focus-visible { outline: 2px solid #29438A; outline-offset: 2px; }
.estado-filtro-conteo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: #eef2f9; color: #475569; font-size: .6875rem; font-weight: 700;
}
.estado-filtro--activo .estado-filtro-conteo { background: rgba(255,255,255,.22); color: #fff; }
.estado-vacio { padding: 3rem 1rem; text-align: center; color: #94a3b8; }
.estado-vacio i { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.fila-inactiva { opacity: .6; }
.fila-inactiva:hover { opacity: 1; }
.dept-card--inactivo { opacity: .62; border-style: dashed; }
.dept-card--inactivo:hover { opacity: 1; }
