/* General */
html, body {
  margin-top: 45;
  padding: 10;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}


.filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

input, select, button {
    padding: 5px;
    font-size: 14px;
}

button.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

button.btn:hover {
    background-color: #0056b3;
}

.btn {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    white-space: nowrap;
}

.btn-logout {
    background-color: #dc3545;
}

.btn-logout:hover {
    background-color: #b52a38;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th, td {
    padding: 3px;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background-color: #f0f0f0;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

th, td {
    border: 1px solid #ccc;
    padding: 1px;
    text-align: center;
}

th {
    background-color: #eee;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 90%;
    padding: 5px;
    box-sizing: border-box;
}
.btn-restart {
    background-color: #ff9800;
    color: white;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-restart:hover {
    background-color: #e68900;
}

.btn-update {
    background-color: #007bff;
    color: white;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-update:hover {
    background-color: #0069d9;
}

.btn-history {
    background-color: #6f42c1;
    color: white;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-history:hover {
    background-color: #5936a3;
}

.btns {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #034f17 !important; /* fuerza color */
    color: white !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btns:hover {
    background-color: #2d7540 !important;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #b52a38;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-volver {
    background-color: #eb4034;
    color: white;
}

.btn-volver:hover {
    background-color: #9c3028;
}

.btn-logout {
    background-color: #dc3545;
}

.btn-logout:hover {
    background-color: #b52a38;
}

.topbar {
    display: flex;
	
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    flex-wrap: wrap;
}

.topbar-left {
    flex: 1;
}

.topbar-form {
    display: flex;
    flex-wrap: nowrap; /* fuerza que no se bajen */
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.topbar-form .btn {
    padding: 10px 5px;
    font-size: 14px;
    white-space: nowrap;
    flex: 0 1 auto; /* evita que se expandan o contraigan demasiado */
}

/* Opcional: ajustes móviles */
@media screen and (max-width: 600px) {
    .topbar-form {
        justify-content: center;
        gap: 8px;
    }

    .topbar-form .btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}

.usuario {
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap;
}

/* Formularios */
form.filter {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
/* ===============================
   Pagination (NO horizontal scroll)
   =============================== */

.pagination{
  display: flex;
  flex-wrap: wrap;              /* CLAVE: permite bajar de línea */
  align-items: center;
  justify-content: center;
  gap: 6px 6px;                 /* row-gap / column-gap */
  margin: 16px 0;
  padding: 0 8px;
  list-style: none;
  max-width: 100%;
  overflow-x: hidden;           /* elimina barra horizontal */
  box-sizing: border-box;
}

/* Items */
.pagination a,
.pagination span{
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d0d7e2;
  background: #fff;
  color: #1f2937;
  white-space: nowrap;
}

/* Hover */
.pagination a:hover{
  background: #f3f6fb;
  border-color: #b8c1cc;
}

/* Active */
.pagination .active,
.pagination .active span{
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37,99,235,.35);
}

/* Disabled */
.pagination .disabled,
.pagination .disabled span{
  opacity: .45;
  pointer-events: none;
}

/* Prev / Next */
.pagination .prev a,
.pagination .next a{
  padding: 0 12px;
}

/* Responsive */
@media (max-width: 600px){
  .pagination{
    gap: 4px;
  }
  .pagination a,
  .pagination span{
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

/* Mensajes */
.mensaje {
    margin: 10px 0;
    font-weight: bold;
    color: green;
    padding: 10px;
    background: #e2e3e5;
    border-left: 5px solid #6c757d;
}

/* Gráfica */
#graficaDesktop {
    max-width: 300px;
    max-height: 500px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* Otros */
.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.form-usuario-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.05);
}
.dashboard-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 85px;
}

.tarjeta {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    flex: 1 1 300px; /* mínimo 250px por tarjeta */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 300px;
}


.grafica-contenedor {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

#graficaLlamadas {
    width: 100% !important;
    height: auto !important;
}
/* Para escritorio: tarjetas en fila horizontal */
.tarjetas-container {
    display: flex;
	width: 1920px;
    justify-content: center;
    gap: 20px;
    padding: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .tarjetas-container {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        max-width: 100%;
        width: 99%;
    }
}


.mensaje {
    padding: 10px 15px;
    margin: 15px auto;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    max-width: 600px;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.mensaje-exito {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
/* Estilo responsive para tabla y gráfica */
@media (max-width: 768px) {
    .tabla-grafica-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .tabla-grafica-container table {
        width: 100%;
        font-size: 14px;
        overflow-x: auto;
    }

    .tabla-grafica-container canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    .tarjeta {
        padding: 10px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .toolbar select {
        width: 100%;
    }
}
/* Estilo específico para la página de login */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .login-container {
        margin: 30px 15px;
        padding: 20px;
    }
}
/* Mostrar solo en escritorio */
	.tabla-escritorio {
		display: flex;
		width: 90%;
	}

.tabla-movil {
    display: none;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
    .tabla-escritorio {
        display: none !important;
    }

    .tabla-movil {
        display: flex !important;
        flex-direction: column;
    }
	

    .tabla-movil table {
        width: 100%;
    }
	.tabla-movil td, .tabla-movil th {
		min-width: 80px;
	}
}
.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.form-vertical .form-group {
    display: flex;
    flex-direction: column;
}

.form-vertical input,
.form-vertical select,
.form-vertical button {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-vertical button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
}

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.exportar-container {
    display: flex;
    align-items: center;
}

.exportar-container .btn {
    white-space: nowrap;
}


.filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 0px;
    white-space: nowrap;
}

.filter input,
.filter select,
.filter button,
.filter .btn {
    padding: 5px;
    font-size: 14px;
}
/* Estilos generales */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #757575;
    color: #fff;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* evita saltos de línea */
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: 'Inter', sans-serif; /* opcional, moderna */
}

.navbar-logo {
    font-weight: bold;
    font-size: 20px;
    margin-right: 20px;
    white-space: nowrap;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto; /* para que no se rompa en pantallas pequeñas */
}

.navbar-lang-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    white-space: nowrap;
}

.navbar-toggle {
    display: none; /* ocultamos hamburguesa si no es necesario */
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-links a.btn {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin: 4px 0;
  }

  .navbar-lang-user {
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding-left: 0;
  }
}
 box-sizing: border-box;
}


/* Botón Exportar al final */
.exportar-container {
    margin-left: auto;
}

/* Espacio al contenido debajo del filtro */
main, .contenido-principal {
    margin-top: 120px; /* Ajustar según altura de navbar + filtros */
}

/* Responsive: filtro en columna en móviles */
@media (max-width: 768px) {
    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .exportar-container {
        margin-left: 0;
        width: 100%;
    }

    .filtros-container form.filter label {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Aplicar tipografía moderna */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #e0e0e0;
    color: #333;
}

/* Contenedor de filtros */
.filtros-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    position: sticky;
    top: 10px;
    z-index: 999;
    border-bottom: 1px solid #ccc;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    flex: 1;
}

.filter label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    min-width: 120px;
}

.filter input, .filter select {
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.exportar-container {
    display: flex;
    align-items: flex-end;
}

.exportar-container .btn {
    padding: 8px 12px;
    background-color: #007bff;
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

/* Tabla */
table {
    width: 97%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

table th {
    background-color: #f0f0f0;
}

/* Responsive tabla */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter {
        flex-direction: column;
    }

    .exportar-container {
        justify-content: flex-end;
    }
}


.fixed-filter {
    position: sticky;
    top: 0px; /* ajusta esto a la altura real de tu navbar */
    background-color: #f9f9f9; /* o el color de fondo que uses */
    z-index: 999;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ---Filtro */
.filtro-tarjeta {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
}

.filtro-formulario {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.filtro-campo {
    flex: 1 1 200px;
    min-width: 200px;
}

.filtro-campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.filtro-campo input,
.filtro-campo select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.filtro-botones {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.filtro-botones .btn {
    padding: 10px 14px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.filtro-botones .btn-secundario {
    background-color: #1976d2;
}

.filtro-botones .btn:hover {
    opacity: 0.9;
}
/* Dropdown Admin */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-dropdown {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 8px;
  display: none;
  z-index: 9999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,.06);
}

.dropdown-menu.show {
  display: block;
}

/* En móvil: que el menú admin se vea “integrado” dentro del menú hamburguesa */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.10);
    margin-top: 6px;
  }

  .btn-dropdown {
    width: 100%;
    justify-content: center;
  }
}
/* Permite que el dropdown se “salga” del navbar sin recortarse */
.navbar,
.navbar-links {
  overflow: visible !important;
}

/* Asegura que el dropdown esté encima de todo */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;          /* o right:0 si lo quieres alineado a la derecha */
  z-index: 99999;
}
/* Texto visible dentro del dropdown Admin */
.dropdown-menu a {
  color: #222 !important;
}

/* Fondo visible (por si algún theme lo pisa) */
.dropdown-menu {
  background: #ffffff !important;
}
.dropdown-menu {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.dropdown-menu a {
  color: #1f2937; /* gris oscuro */
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
  color: #0d6efd; /* azul del navbar */
}
/* Admin debe verse idéntico a los demás botones */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* El caret no debe romper el alto del botón */
.admin-btn .caret {
  font-size: 0.8em;
  opacity: 0.9;
  transform: translateY(1px);
}

/* Hover idéntico */
.admin-btn:hover {
  filter: brightness(1.05);
}

/* Evita que herede estilos raros de <button> */
.admin-btn {
  border: none;
  background: inherit;
  font: inherit;
}
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  top: calc(100% + 10px);
  left: 0;
}
/* Todos los botones del navbar consistentes */
.navbar .btn,
.navbar .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* caret consistente */
.navbar .caret {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.9;
  transform: translateY(1px);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 8px;
  display: none;
  z-index: 99999;
}

.dropdown-menu.show { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #222 !important;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,.06);
}
/* ===== User menu (top-right) ===== */
.user-dropdown {
  margin-left: auto;            /* empuja a la derecha */
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

.user-toggle:hover {
  background: rgba(255,255,255,.08);
}

.user-icon {
  font-size: 26px;              /* icono más grande */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;    /* si lo quieres como estaba */
}

.user-toggle .caret {
  font-size: 0.85em;
  opacity: 0.9;
  transform: translateY(1px);
}

/* dropdown panel */
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 8px;
  display: none;
  z-index: 99999;
}

.user-menu.show { display: block; }

.user-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #222;
  text-decoration: none;
}

.user-menu a:hover {
  background: rgba(0,0,0,.06);
}

.user-menu .danger {
  color: #b42318;
}

.user-menu-sep {
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 8px 6px;
}

/* En móvil: que se vea bien dentro del menú hamburguesa si aplica */
@media (max-width: 768px) {
  .user-dropdown { margin-left: 0; width: 100%; justify-content: flex-end; }

  .user-menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    margin-top: 8px;
  }
}
/* ===== Fusion-style user dropdown ===== */
.user-dd {
  margin-left: auto;            /* empuja a la derecha */
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
}

.user-dd-toggle:hover {
  background: rgba(255,255,255,.08);
}

.user-dd-icon {
  font-size: 22px;
  line-height: 1;
}

.user-dd-label {
  font-weight: 700;
  text-transform: lowercase; /* como en tu screenshot "admin" */
  font-size: 18px;
}

.user-dd-toggle .caret {
  font-size: 0.85em;
  opacity: 0.9;
  transform: translateY(1px);
}

/* menu card */
.user-dd-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  padding: 16px;
  display: none;
  z-index: 99999;
}

.user-dd-menu.show { display: block; }

/* header (avatar + info) */
.user-dd-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.user-dd-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.user-dd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  font-size: 48px;
  opacity: 0.35;
}

.user-dd-info {
  min-width: 0;
}

.user-dd-username {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}

.user-dd-fullname {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 4px;
}

/* divider */
.user-dd-sep {
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 14px 0;
}

/* items */
.user-dd-item {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0b4aa2;              /* azul tipo FusionPBX */
  font-size: 22px;
  font-weight: 700;
}

.user-dd-item:hover {
  background: rgba(0,0,0,.06);
}

.user-dd-item.danger {
  color: #b42318;
}

/* responsive */
@media (max-width: 768px) {
  .user-dd { margin-left: 0; }

  .user-dd-menu {
    width: min(92vw, 420px);
    right: 0;
  }

  .user-dd-item { font-size: 18px; }
  .user-dd-username { font-size: 22px; }
}

/* ===== Compact user dropdown ===== */

/* card más pequeña */
.user-dd-menu {
  width: 280px;          /* antes 360 */
  padding: 12px;
}

/* header más compacto */
.user-dd-header {
  gap: 12px;
}

/* avatar más pequeño */
.user-dd-avatar {
  width: 56px;
  height: 56px;
}

.avatar-fallback {
  font-size: 28px;
}

/* texto más discreto */
.user-dd-username {
  font-size: 18px;
  font-weight: 700;
}

.user-dd-fullname {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

/* separador más fino */
.user-dd-sep {
  margin: 10px 0;
}

/* items de menú */
.user-dd-item {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
}

/* ======= Layout general users.php ======= */
.users-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;
}

.section-card{
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  margin-bottom: 14px;
}

.section-title{
  font-weight: 700;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}

.users-list-box{
  border: 2px solid #111;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  max-height: 360px;     /* como tu “caja grande” */
  overflow: auto;
}

/* ======= Bloque Add New User ======= */
.add-user-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas como tu esquema */
  gap: 14px;
}

.card-mini{
  border: 2px solid #111;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  min-height: 240px;
}

.card-mini h4{
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:8px;
}

.form-vertical label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.form-vertical input,
.form-vertical select{
  width: 100%;
}

.resources-list{
  display:flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow:auto;
  padding-right: 4px;
}

/* schedule dentro de la tarjeta */
.schedule-list{
  display:flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow:auto;
  padding-right: 4px;
}

.schedule-row{
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 8px;
}

.schedule-row label{
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 0;
}

.schedule-row .day{
  width: 40px;
  font-weight: 700;
}

/* Botonera inferior del bloque Add New User */
.add-user-actions{
  margin-top: 12px;
  display:flex;
  justify-content: flex-end;
  gap: 10px;
}
/* Contenedor logo + título */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;            /* separación logo ↔ texto */
}

/* Texto del título (antes estaba solo) */
.navbar-title-text {
  font-weight: 700;
  white-space: nowrap;
}

/* Responsive: en móvil apila 1 columna */
@media (max-width: 980px){
  .add-user-grid{
    grid-template-columns: 1fr;
  }
  .users-list-box{
    max-height: 420px;
  }
}
@media (max-width: 768px) {
    .filtro-botones {
        justify-content: center;
    }
}
/* --- FIX definitivo tamaño logo en móvil --- */
.navbar-logo-img{
  height: 50px;
  width: auto;
  max-height: auto;
  object-fit: contain;
  display: block;
}

/* Contenedor del título + logo */
.navbar-logo{
  display:flex;
  align-items:center;
  gap:8px;
}

/* ---------- Global Modal ---------- */
.app-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 9999;
}

.app-modal-backdrop.show{ display: flex; }

.app-modal{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.app-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e8e8e8;
}

.app-modal-title{ font-weight: 700; }

.app-modal-close{
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.app-modal-close:hover{ background:#f2f2f2; }

.app-modal-body{
  padding: 14px;
  max-height: min(75vh, 720px);
  overflow: auto;
}

/* mini UI para forms en modal */
.modal-form{
  display:grid;
  gap: 12px;
}

.modal-form .row{
  display:grid;
  gap: 6px;
}

.modal-form input, .modal-form select{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  outline:none;
}

.modal-form .actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-top: 6px;
}

.modal-form button{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #ddd;
  cursor:pointer;
  background:#f8f8f8;
}

.modal-form button.primary{
  background:#1e6bff;
  border-color:#1e6bff;
  color:#fff;
}

.form-msg{
  padding:10px 12px;
  border-radius:10px;
  display:none;
}

.form-msg.ok{ display:block; background:#e9fff0; border:1px solid #a7f0bd; color:#0d6b2f; }
.form-msg.err{ display:block; background:#fff0f0; border:1px solid #ffb3b3; color:#8a0b0b; }

/* Password strength meter */
.pw-meter{
  width:100%;
  height:10px;
  background:#eee;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #ddd;
}

.pw-meter-bar{
  height:100%;
  width:0%;
  border-radius:999px;
  transition: width .18s ease;
}

/* No fijo colores “bonitos” por tema; uso tonos neutrales */
.pw-meter-bar.lvl0{ background:#bbb; }
.pw-meter-bar.lvl1{ background:#c98; }
.pw-meter-bar.lvl2{ background:#cc6; }
.pw-meter-bar.lvl3{ background:#9c9; }
.pw-meter-bar.lvl4{ background:#6c9; }
.pw-meter-bar.lvl5{ background:#4c8; }

.pw-req{
  margin-top:8px;
  display:grid;
  gap:6px;
}

.pw-item{
  opacity:.75;
  font-size: 13px;
}

.pw-item.ok{
  opacity:1;
  font-weight:600;
}

.pw-hint{
  display:block;
  margin-top:6px;
  opacity:.7;
  font-size: 12px;
}
.pw-meter{ height:10px; background:#eee; border-radius:999px; overflow:hidden; border:1px solid #ddd; }
.pw-meter-bar{ height:100%; width:0%; transition: width .18s ease; }

.pw-meter-bar.lvl0{ background:#bbb; }
.pw-meter-bar.lvl1{ background:#c98; }
.pw-meter-bar.lvl2{ background:#cc6; }
.pw-meter-bar.lvl3{ background:#9c9; }
.pw-meter-bar.lvl4{ background:#6c9; }
.pw-meter-bar.lvl5{ background:#4c8; }

.pw-item{ opacity:.75; font-size:13px; }
.pw-item.ok{ opacity:1; font-weight:600; }
/* Logo: límites duros */
.navbar-logo-img{
  height: 34px !important;     /* desktop */
  width: auto !important;
  max-height: 34px !important;
  max-width: 34px !important;  /* evita que se infle */
  object-fit: contain !important;
  display: block !important;
}
/* Password match validation */
.input-ok{
  border:2px solid #4CAF50 !important;
  box-shadow:0 0 0 2px rgba(76,175,80,.15);
}

.input-error{
  border:2px solid #E53935 !important;
  box-shadow:0 0 0 2px rgba(229,57,53,.15);
}
/* Match states (más específico) */
.modal-form input.input-ok,
.modal-form input.input-error{
  border-width: 2px !important;
}

.modal-form input.input-ok{
  border-color: #23a55a !important;
  box-shadow: 0 0 0 2px rgba(35,165,90,.18) !important;
}

.modal-form input.input-error{
  border-color: #e24444 !important;
  box-shadow: 0 0 0 2px rgba(226,68,68,.18) !important;
}
/* ===== Settings wrapper (responsive fluid) ===== */
.settings-wrap{
  width: 100%;
  max-width: 1280px;        /* ancho máximo en desktop */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Card contenedor elegante */
.settings-card{
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  box-sizing: border-box;
}

/* Título */
.settings-title{
  font-weight: 700;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 1200px){
  .settings-wrap{ max-width: 1000px; }
}

@media (max-width: 992px){
  .settings-wrap{ max-width: 100%; padding: 16px; }
  .settings-card{ padding: 16px; }
}

@media (max-width: 768px){
  .settings-wrap{ padding: 12px; }
  .settings-card{ padding: 14px; border-radius: 14px; }
}

@media (max-width: 480px){
  .settings-wrap{ padding: 10px; }
  .settings-card{ padding: 12px; border-radius: 12px; }
}

/* Móvil */
@media (max-width: 768px){
  .navbar-logo-img{
    height: 22px !important;
    max-height: 22px !important;
    max-width: 22px !important;
  }
}