/* ===========================================
   DISEÑO SIMPLE Y CÓMODO PARA SOPORTE
   =========================================== */

/* Contenedor Principal */
.contenedor-principal-empresa {
    padding: 20px;
    background-color: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    overflow-y: hidden;
    max-height: 90vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===========================================
   FILTROS SIMPLES
   =========================================== */

.filtros-simples {
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    padding: 20px 24px;
    margin-bottom: 5px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 15px -5px color-mix(in srgb, var(--accent-fill-rest) 30%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--accent-fill-rest) 15%, transparent);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* ===========================================
   LAYOUT PRINCIPAL
   =========================================== */

.seccion-inferior-empresa {
    display: flex;
    gap: 20px;
    background: transparent;
    height: calc(100vh - 0px);
}

.columnaempresa-40 {
    flex: 0 0 40%;
    background-color: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 10px 15px -5px color-mix(in srgb, var(--accent-fill-rest) 30%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--accent-fill-rest) 15%, transparent);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    width: 100%;
    min-height: 400px;
    max-height: 87vh;
}

.columnaempresa-60 {
    flex: 60%;
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 400px;
    max-height: 87vh;
}

.grillasForm {
    height: 400px;
    overflow-y: scroll;
}


/* ===========================================
   SCROLLBARS CON COLORES DEL SISTEMA
   =========================================== */
.grillasForm::-webkit-scrollbar,
.columnaempresa-40::-webkit-scrollbar,
.columnaempresa-60::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.grillasForm::-webkit-scrollbar-track,
.columnaempresa-40::-webkit-scrollbar-track,
.columnaempresa-60::-webkit-scrollbar-track {
    background: var(--neutral-layer-2);
    border-radius: 6px;
}

.grillasForm::-webkit-scrollbar-thumb,
.columnaempresa-40::-webkit-scrollbar-thumb,
.columnaempresa-60::-webkit-scrollbar-thumb {
    background: var(--accent-fill-rest);
    border-radius: 6px;
    transition: background 0.2s ease;
}

    .grillasForm::-webkit-scrollbar-thumb:hover,
    .columnaempresa-40::-webkit-scrollbar-thumb:hover,
    .columnaempresa-60::-webkit-scrollbar-thumb:hover {
        background: var(--accent-fill-hover);
    }


/* ==========================
   Estilos personalizados
   ========================== */

/* Contenedor centrado en pantalla */
.centered-container {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: hidden;
    overflow-x: hidden; /* Bootstrap's light background */
    background: var(--neutral-layer-2);
    background-image: linear-gradient( 135deg, color-mix(in srgb, var(--neutral-layer-2) 90%, var(--accent-fill-rest) 10%), color-mix(in srgb, var(--neutral-layer-2) 90%, var(--accent-fill-hover) 10%) );
}

.login-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 800px;
    height: 420px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 15px -5px color-mix(in srgb, var(--accent-fill-rest) 30%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--accent-fill-rest) 15%, transparent);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Sección izquierda: branding/logo */
.login-card-left {
    width: 40%;
    background: var(--accent-fill-rest);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    color: white;
    background-image: url('/images/login-bg.jpg'); /* opcional: imagen de fondo */
    background-size: cover;
    background-position: center;
}

    /* Logo opcional */
    .login-card-left img {
        max-width: 150px;
        margin-bottom: 1rem;
    }

/* Sección derecha: formulario */
.login-card-right {
    width: 60%;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

    /* Inputs, botones */
    .login-card-right .form-group {
        margin-bottom: 1rem;
    }

    .login-card-right button {
        width: 100%;
        padding: 0.6rem;
        font-weight: 600;
    }

/* Botón principal */
.btn-primary-full {
    width: 100%;
    padding: 0.6rem;
    font-weight: 500;
}

/* Botón secundario (link o alternativo) */
.btn-secondary-outline {
    width: 100%;
    padding: 0.6rem;
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .btn-secondary-outline:hover {
        background-color: #6c757d;
        color: white;
    }

/* Espaciado entre campos */
.form-group {
    margin-bottom: 1rem;
}


.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--neutral-layer-3);
    margin-bottom: 0.5rem;
}

/* Tipografía para el subtítulo */
.brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--neutral-layer-2);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
    gap: 0.75rem;
}

.left {
    font-weight: bold;
    font-size: 1.2rem;
}

.right,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Indicador Por concluir — cabecera clara */
.por-concluir-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--neutral-stroke-divider-rest));
    background: color-mix(in srgb, #f59e0b 14%, var(--neutral-layer-1));
    color: var(--neutral-foreground-rest);
    border-radius: 999px;
    padding: 0.28rem 0.75rem 0.28rem 0.45rem;
    cursor: pointer;
    font: inherit;
    line-height: 1.1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none;
    animation: none;
}

.por-concluir-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--neutral-foreground-rest) 12%, transparent);
}

.por-concluir-luz {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 0 color-mix(in srgb, #f59e0b 55%, transparent);
    animation: por-concluir-blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

.por-concluir-texto {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--neutral-foreground-rest);
}

.por-concluir-texto strong {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.por-concluir-count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #f59e0b 22%, var(--neutral-layer-2));
    color: var(--neutral-foreground-rest);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

@keyframes por-concluir-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 207, 51, 0.65); }
    50% { opacity: 0.45; box-shadow: 0 0 0 6px rgba(255, 207, 51, 0); }
}

@keyframes por-concluir-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 170, 0, 0); }
}

@media (max-width: 700px) {
    .por-concluir-texto strong {
        display: none;
    }
}

.contenedorgrilla
{
    padding: 20px;
}

/* Panel de usuarios — buscador */
.usuarios-panel .usuarios-toolbar {
    margin: 0.75rem 0 0.5rem;
    flex-wrap: wrap;
}

.usuarios-panel .usuarios-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 240px;
    min-width: 0;
}

.usuarios-panel .usuarios-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.usuarios-panel .usuarios-search-hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--neutral-foreground-hint, #64748b);
}

@media (max-width: 700px) {
    .usuarios-panel .usuarios-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .usuarios-panel .usuarios-actions {
        width: 100%;
    }

    .usuarios-panel .usuarios-actions fluent-button {
        flex: 1 1 auto;
    }
}
