* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
}

.login-box h1 {
    font-size: 1.4rem;
    color: #1a2b4c;
    margin-bottom: 0.25rem;
}

.subtitulo {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    font-size: 0.85rem;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.login-box input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.95rem;
}

.login-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.login-box button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.7rem;
    background-color: #1a2b4c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #2c4270;
}

.mensaje-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.mensaje-exito {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.contenedor {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.contenedor-angosto {
    max-width: 500px;
}

.contenedor-ancha {
    max-width: 1100px;
}

/* --- Barra de navegación --- */
.barra-nav {
    background-color: #1a2b4c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.nav-marca {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-enlaces {
    display: flex;
    gap: 1.3rem;
}

.nav-enlaces a {
    color: #c7d2e8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.nav-enlaces a:hover {
    color: #fff;
}

.nav-enlaces a.nav-activo {
    color: #fff;
    border-bottom: 2px solid #4f7cff;
    font-weight: 500;
}

.nav-usuario {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.85rem;
    color: #c7d2e8;
}

.nav-salir {
    color: #fca5a5;
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-salir:hover {
    text-decoration: underline;
}

.nav-empresa {
    color: #c7d2e8;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #3d4f78;
    border-radius: 5px;
}

.nav-empresa:hover {
    background-color: #2c4270;
}

.nav-desplegable {
    position: relative;
}

.nav-desplegable-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 210px;
    padding: 0.4rem 0;
    z-index: 10;
}

.nav-desplegable:hover .nav-desplegable-menu {
    display: block;
}

.nav-desplegable-menu a {
    display: block;
    color: #374151;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-bottom: none;
}

.nav-desplegable-menu a:hover {
    background-color: #f3f4f6;
    color: #1a2b4c;
}

/* --- Dashboard --- */
.bienvenida {
    margin-bottom: 2rem;
}

.bienvenida h1 {
    color: #1a2b4c;
    font-size: 1.7rem;
}

.bienvenida .subtitulo {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.tarjeta-grafica {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.resultados-busqueda-pos {
    display: none;
    position: relative;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.resultado-busqueda-item {
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.resultado-busqueda-item:hover {
    background-color: #f3f4f6;
}

.controles-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.texto-paginacion {
    font-size: 0.82rem;
    color: #6b7280;
}

.boton-secundario.deshabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tarjetas-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.tarjeta-modulo {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #eef0f3;
}

.tarjeta-modulo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.tarjeta-icono {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.tarjeta-modulo h2 {
    color: #1a2b4c;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.tarjeta-modulo p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* --- Botón "volver" reutilizable en submódulos --- */
.boton-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #4f7cff;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.boton-volver:hover {
    text-decoration: underline;
}

.pestanas-reportes {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.2rem;
}

.pestana-reporte {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.pestana-reporte:hover {
    color: #1a2b4c;
}

.pestana-reporte.pestana-activa {
    color: #1a2b4c;
    font-weight: 600;
    border-bottom-color: #1a2b4c;
}

.encabezado-modulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.encabezado-modulo h1 {
    color: #1a2b4c;
    font-size: 1.5rem;
}

.boton-primario {
    background-color: #1a2b4c;
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.boton-primario:hover {
    background-color: #2c4270;
}

.boton-secundario {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.55rem 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.boton-enlace {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tabla-datos th {
    background-color: #1a2b4c;
    color: #fff;
    text-align: left;
    padding: 0.7rem;
    font-size: 0.85rem;
}

.tabla-datos td {
    padding: 0.65rem 0.7rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.tabla-datos tr.inactivo {
    color: #9ca3af;
    font-style: italic;
}

.tabla-datos .vacio {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
}

.contenedor form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.contenedor form label {
    display: block;
    font-size: 0.85rem;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.contenedor form input,
.contenedor form select {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem !important;
}

.checkbox-label input {
    width: auto !important;
}

.ayuda {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.acciones-formulario {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.fila-encabezado {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.filtros {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.filtros select,
.filtros input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.85rem;
}

.tabla-movimientos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.tabla-movimientos th {
    background-color: #f3f4f6;
    text-align: left;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
}

.tabla-movimientos td {
    padding: 0.4rem;
    border-bottom: 1px solid #e5e7eb;
}

.tabla-movimientos select,
.tabla-movimientos input {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
}

.campo-monto {
    text-align: right;
}

.indicador-balance {
    margin-top: 0.7rem;
    padding: 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.balance-ok {
    background-color: #dcfce7;
    color: #15803d;
}

.balance-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.etiqueta-borrador,
.etiqueta-aplicada,
.etiqueta-cancelada {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.etiqueta-borrador {
    background-color: #fef3c7;
    color: #92400e;
}

.etiqueta-aplicada {
    background-color: #dcfce7;
    color: #15803d;
}

.etiqueta-cancelada {
    background-color: #f3f4f6;
    color: #6b7280;
    text-decoration: line-through;
}

.ficha-poliza {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.9rem;
}

.etiqueta-campo {
    color: #6b7280;
    font-size: 0.82rem;
}

/* --- Estados financieros --- */
.grid-estado-financiero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.titulo-seccion-ef {
    font-size: 1rem;
    color: #1a2b4c;
    margin-bottom: 0.5rem;
}

.fila-seccion td {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    padding-top: 0.6rem;
    padding-bottom: 0.4rem;
}

.fila-total-intermedio td {
    border-top: 2px solid #1a2b4c;
    border-bottom: 2px solid #1a2b4c;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
}

.fila-total-final td {
    background-color: #1a2b4c;
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 0.7rem;
}

/* --- Formularios en rejilla horizontal (se adaptan al ancho de pantalla) --- */
.contenedor-formulario {
    max-width: 1100px;
    margin: 1rem auto;
}

.rejilla-formulario {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1rem;
    align-items: start;
}

.rejilla-formulario > div { min-width: 0; }
.rejilla-formulario .doble { grid-column: span 2; }
.rejilla-formulario .completa { grid-column: 1 / -1; }
.rejilla-formulario label { margin-top: 0.7rem !important; }

.titulo-seccion {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2b4c;
    margin: 1.2rem 0 0.2rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
    .rejilla-formulario { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .rejilla-formulario { grid-template-columns: minmax(0, 1fr); }
    .rejilla-formulario .doble { grid-column: auto; }
}

/* --- Panel de navegación vertical (Vertical Navigation Drawer) --- */
:root { --ancho-drawer: 250px; }

.drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--ancho-drawer);
    background: #1a2b4c;
    color: #c7d2e8;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 30;
    transition: transform 0.2s ease;
}

.drawer-marca {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.1rem 1.2rem 0.6rem;
}

.drawer-empresa {
    display: block;
    margin: 0 1rem 0.8rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #3d4f78;
    border-radius: 6px;
    color: #c7d2e8;
    text-decoration: none;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer-empresa:hover { background: #2c4270; }

.drawer-menu { flex: 1; padding: 0.3rem 0.6rem; }

.drawer-enlace, .drawer-grupo summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    color: #e2e8f5;
    text-decoration: none;
    font-size: 0.92rem;
    cursor: pointer;
    list-style: none;
}
.drawer-grupo summary::-webkit-details-marker { display: none; }
.drawer-grupo summary::after { content: '▸'; margin-left: auto; font-size: 0.75rem; transition: transform 0.15s; }
.drawer-grupo[open] > summary::after { transform: rotate(90deg); }

.drawer-enlace:hover, .drawer-grupo summary:hover { background: #2c4270; }
.drawer-enlace.activo { background: #4f7cff; color: #fff; }

.drawer-grupo > a {
    display: block;
    margin-left: 1.9rem;
    padding: 0.4rem 0.7rem;
    border-left: 2px solid #3d4f78;
    color: #c7d2e8;
    text-decoration: none;
    font-size: 0.85rem;
}
.drawer-grupo > a:hover { background: #2c4270; color: #fff; }
.drawer-grupo > a.activo { color: #fff; border-left-color: #4f7cff; background: #263b66; font-weight: 500; }

.drawer-usuario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #2c4270;
    font-size: 0.82rem;
}

.con-drawer { margin-left: var(--ancho-drawer); min-height: 100vh; }

.barra-movil { display: none; }
.drawer-fondo { display: none; }

@media (max-width: 900px) {
    .drawer { transform: translateX(-100%); box-shadow: 2px 0 12px rgba(0,0,0,0.3); }
    .drawer.abierto { transform: translateX(0); }
    .drawer-fondo.visible { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 20; }
    .con-drawer { margin-left: 0; }
    .barra-movil {
        display: flex; align-items: center; gap: 0.8rem;
        background: #1a2b4c; padding: 0.6rem 1rem; position: sticky; top: 0; z-index: 10;
    }
    .drawer-boton { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
}

/* --- Inicio: módulos principales centrados --- */
.bienvenida { text-align: center; }
.contenedor-centrado { max-width: 1200px; }
.tarjetas-modulos.centradas {
    grid-template-columns: repeat(auto-fit, minmax(220px, 250px));
    justify-content: center;
}
.tarjetas-modulos.centradas .tarjeta-modulo { text-align: center; }

/* --- Aviso de conteos terminados desde el celular --- */
.drawer-globo { display: inline-block; min-width: 1.3rem; padding: 0 0.4rem; margin-left: 0.4rem; border-radius: 999px;
    background: #ef4444; color: #fff; font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.3rem; }
.aviso-conteo { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 40; max-width: 380px; padding: 0.9rem 1rem;
    background: #15803d; color: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); font-size: 0.9rem; }
.aviso-conteo.visible { display: block; }
.aviso-conteo a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: 0.3rem; }
.aviso-conteo button { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; margin-left: 0.5rem; }
.etiqueta-terminado { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 0.78rem; font-weight: 600; }

/* --- Permisos por sección de un usuario --- */
.bloque-permisos { border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.8rem 1rem 1rem; margin-top: 1rem; }
.bloque-permisos legend { font-size: 0.9rem; font-weight: 600; color: #1a2b4c; padding: 0 0.4rem; }
.bloque-permisos label { display: flex !important; align-items: flex-start; gap: 0.5rem; margin-top: 0.6rem !important; font-size: 0.88rem; cursor: pointer; }
.bloque-permisos input[type=radio], .bloque-permisos input[type=checkbox] { width: auto !important; margin-top: 0.2rem; }
.bloque-permisos .opcion small { display: block; color: #6b7280; font-size: 0.78rem; font-weight: normal; }
.lista-permisos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.grupo-permisos { background: #f9fafb; border: 1px solid #eef0f3; border-radius: 8px; padding: 0.4rem 0.8rem 0.7rem; }
.grupo-permisos .permiso-grupo { border-bottom: 1px solid #e5e7eb; padding-bottom: 0.4rem; color: #1a2b4c; }
.grupo-permisos .permiso-item { padding-left: 0.4rem; }
.etiqueta-acceso { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 0.78rem; }
.etiqueta-acceso.restringido { background: #fef3c7; color: #92400e; }

/* --- Marca SP Contable (logo del desarrollador) --- */
.drawer-marca { display: flex; align-items: center; gap: 0.7rem; }
.drawer-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: #fff; border-radius: 10px; padding: 4px; }
.drawer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.barra-movil-marca { display: inline-flex; align-items: center; gap: 0.6rem; }
.barra-movil-marca .drawer-logo { width: 32px; height: 32px; border-radius: 8px; }
.login-logo { display: block; width: 110px; height: 110px; object-fit: contain; margin: 0 auto 0.6rem; }
.login-box h1, .login-box .subtitulo { text-align: center; }

/* --- Bitácora de auditoría --- */
.etiqueta-bitacora { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #e5e7eb; color: #374151; white-space: nowrap; }
.etiqueta-bitacora.creacion { background: #dcfce7; color: #15803d; }
.etiqueta-bitacora.modificacion { background: #fef3c7; color: #92400e; }
.etiqueta-bitacora.eliminacion { background: #fee2e2; color: #b91c1c; }
.etiqueta-bitacora.acceso { background: #e0e7ff; color: #3730a3; }
.etiqueta-bitacora.seguridad { background: #fecaca; color: #991b1b; }
.etiqueta-bitacora.exportacion { background: #cffafe; color: #155e75; }

/* --- Tablero gerencial: tarjetas de KPIs --- */
.kpi-seccion { font-size: 1rem; color: #1a2b4c; margin: 1.4rem 0 0.6rem; padding-bottom: 0.3rem; border-bottom: 1px solid #e5e7eb; }
.kpi-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.8rem; margin-bottom: 0.4rem; }
.kpi-inicio { margin-bottom: 1.4rem; }
.kpi { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 0.8rem 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.kpi-titulo { font-size: 0.78rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.02em; }
.kpi-valor { font-size: 1.55rem; font-weight: 700; color: #1a2b4c; margin: 0.15rem 0; }
.kpi-valor.negativo { color: #b91c1c; }
.kpi-delta { font-size: 0.8rem; font-weight: 600; }
.kpi-delta span { font-weight: 400; color: #9ca3af; }
.kpi-delta.bueno { color: #15803d; }
.kpi-delta.malo { color: #b91c1c; }
.kpi-delta.neutral { color: #6b7280; }
.kpi-nota { font-size: 0.74rem; color: #9ca3af; margin-top: 0.15rem; }
.kpi-dos-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1rem; margin-top: 1rem; }
.kpi-dos-columnas .tarjeta-grafica { margin-bottom: 0; }
.kpi-dos-columnas h3 { font-size: 0.9rem; color: #1a2b4c; margin-bottom: 0.5rem; }

/* --- Impresión: sin menú lateral ni controles --- */
@media print {
    .drawer, .barra-movil, .drawer-fondo, .aviso-conteo, .no-imprimir, .filtros { display: none !important; }
    .con-drawer { margin-left: 0 !important; }
    body { background: #fff; }
    .contenedor { max-width: none; margin: 0; padding: 0; }
    .kpi, .tarjeta-grafica { box-shadow: none; break-inside: avoid; }
}
@media (max-width: 560px) { .kpi-dos-columnas { grid-template-columns: 1fr; } }

/* --- Artículos compuestos --- */
.etiqueta-tipo { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.etiqueta-tipo.kit { background: #ede9fe; color: #5b21b6; }
.etiqueta-tipo.ensamble { background: #cffafe; color: #155e75; }
.opciones-tipo { display: grid; gap: 0.3rem; margin-top: 0.3rem; }
.opciones-tipo .checkbox-label { margin-top: 0.2rem !important; font-size: 0.86rem; align-items: flex-start; }

/* Avisos de pantallas que no los muestran por su cuenta (ver base.html) */
.avisos-flotantes {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: min(420px, calc(100vw - 2rem));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
}
.avisos-flotantes > div { margin: 0; border-radius: 0; }
.avisos-flotantes > div:first-child { border-radius: 6px 6px 0 0; }
.avisos-flotantes > div:last-child { border-radius: 0 0 6px 6px; }
.avisos-flotantes > div:only-child { border-radius: 6px; }
