:root {
    --color-fondo-auth: #f5f6fa;
    --color-sidebar: #1e2a3a;
    --ancho-sidebar: 272px;
    --ancho-sidebar-colapsado: 84px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --cui-sidebar-width: var(--ancho-sidebar);
    --cui-sidebar-occupy-start: 0;
}

.fondo-auth {
    background-color: var(--color-fondo-auth);
}

.auth-pantalla {
    min-height: 100vh;
}

.auth-lado-visual {
    background:
        radial-gradient(circle at 18% 22%, rgba(90, 102, 241, 0.2), transparent 50%),
        radial-gradient(circle at 80% 76%, rgba(30, 42, 58, 0.32), transparent 48%),
        linear-gradient(135deg, #e8edf6 0%, #dce3ee 100%);
}

.auth-lado-form {
    background: linear-gradient(180deg, #f5f6fa 0%, #eef2f8 100%);
    padding: 2rem 1.25rem;
}

.auth-card-login {
    width: min(100%, 540px);
    border-radius: 0.95rem;
    overflow: hidden;
}

.encabezado-login-auth {
    margin-bottom: 1rem;
}

.encabezado-login-auth .logo-empresa-login-wrap {
    background: linear-gradient(180deg, #243447 0%, #1e2a3a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.15rem 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.encabezado-login-auth .logo-empresa-login {
    max-width: 210px;
    width: 100%;
    height: auto;
    display: block;
}

.encabezado-login-auth h5 {
    color: #1f2937;
    font-weight: 700;
}

.encabezado-login-auth p {
    color: #6b7280 !important;
}

.contenido-login-auth {
    padding-top: 0.25rem;
}

.fondo-auth .card .form-label {
    color: #1f2937;
    font-weight: 500;
}

.fondo-auth .card .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

@media (max-width: 575.98px) {
    .auth-lado-form {
        padding: 1rem 0.75rem;
    }

    .encabezado-login-auth .logo-empresa-login-wrap {
        padding: 0.85rem 0.8rem;
    }

    .encabezado-login-auth .logo-empresa-login {
        max-width: 180px;
    }

    .contenido-login-auth {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1.25rem !important;
    }
}

@media (min-width: 992px) {
    .auth-lado-form {
        justify-content: center !important;
        padding-right: clamp(1rem, 2vw, 2rem);
        padding-left: clamp(1rem, 2vw, 2rem);
    }
}

.sidebar {
    background-color: var(--color-sidebar) !important;
}

.sidebar .nav-link,
.sidebar .nav-title,
.sidebar .sidebar-brand {
    color: #e4ebf3 !important;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar {
    z-index: 1035;
    transition: width 0.2s ease;
}

.sidebar-footer .sidebar-toggler {
    border: 0;
    background: transparent;
    color: #cfd8e3;
}

@media (min-width: 992px) {
    .sidebar {
        width: var(--ancho-sidebar);
    }

    .wrapper {
        margin-left: var(--ancho-sidebar) !important;
        transition: margin-left 0.2s ease;
    }

    body.con-sidebar-colapsado .sidebar,
    .sidebar.sidebar-narrow {
        width: var(--ancho-sidebar-colapsado);
    }

    body.con-sidebar-colapsado .wrapper,
    .sidebar.sidebar-narrow ~ .wrapper {
        margin-left: var(--ancho-sidebar-colapsado) !important;
    }

    body.con-sidebar-colapsado .sidebar .sidebar-brand span,
    body.con-sidebar-colapsado .sidebar .nav-title,
    .sidebar.sidebar-narrow .sidebar-brand span,
    .sidebar.sidebar-narrow .nav-title {
        display: none;
    }

    body.con-sidebar-colapsado .sidebar .sidebar-brand,
    .sidebar.sidebar-narrow .sidebar-brand {
        justify-content: center;
        width: 100%;
    }

    body.con-sidebar-colapsado .sidebar .sidebar-brand i,
    .sidebar.sidebar-narrow .sidebar-brand i {
        margin-right: 0;
    }

    body.con-sidebar-colapsado .sidebar .nav-link,
    .sidebar.sidebar-narrow .nav-link {
        justify-content: center;
        font-size: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.con-sidebar-colapsado .sidebar .nav-link .nav-icon,
    .sidebar.sidebar-narrow .nav-link .nav-icon {
        margin-right: 0;
        font-size: 1.2rem;
    }

    body.con-sidebar-colapsado .sidebar .sidebar-header,
    body.con-sidebar-colapsado .sidebar .sidebar-footer,
    .sidebar.sidebar-narrow .sidebar-header,
    .sidebar.sidebar-narrow .sidebar-footer {
        display: flex !important;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .wrapper {
        margin-left: 0 !important;
    }

    .sidebar-footer {
        display: none !important;
    }
}

.pagination .page-link {
    min-width: 2rem;
    text-align: center;
}

[data-coreui-theme='dark'] .pagination .page-link {
    background-color: var(--cui-tertiary-bg);
    border-color: var(--cui-border-color);
    color: var(--cui-body-color);
}

[data-coreui-theme='dark'] .pagination .page-item.active .page-link {
    background-color: var(--cui-primary);
    border-color: var(--cui-primary);
    color: #fff;
    font-weight: 600;
}

[data-coreui-theme='dark'] .pagination .page-item:not(.active) .page-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-coreui-theme='dark'] .pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

.icono-horario-morado {
    color: #8b5cf6;
}

.icono-correo-outlook {
    color: #0078d4 !important;
}

.icono-huella-verde {
    color: #16a34a !important;
}

.icono-supervisor-amarillo {
    color: #f59e0b !important;
}

[data-coreui-theme='dark'] .icono-supervisor-amarillo {
    color: #fbbf24 !important;
}

[data-coreui-theme='dark'] .icono-huella-verde {
    color: #22c55e !important;
}

.tabla-empleados thead th,
.tabla-empleados thead th a {
    font-size: 14px;
    font-weight: 400 !important;
}

.tabla-empleados thead th {
    background-color: rgb(249, 250, 252) !important;
    color: #1f2937;
    vertical-align: middle;
}

.tabla-empleados thead th a {
    color: inherit !important;
}

.tabla-empleados thead th.columna-icono {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-align: center;
}

.tabla-empleados thead th.columna-icono .marcador-columna {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.5em;
    line-height: 1.5;
    font-size: inherit;
}

.tabla-empleados tbody td {
    font-size: 14px;
}

[data-coreui-theme='dark'] .tabla-empleados thead th {
    background-color: #243043 !important;
    color: #e5e7eb;
}

.listado-empleados-placeholder .placeholder {
    min-height: 0.85rem;
    border-radius: 0.35rem;
}

[data-coreui-theme='dark'] .listado-empleados-placeholder .placeholder {
    background-color: rgba(255, 255, 255, 0.22);
}

.tarjeta-metrica {
    border: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.tarjeta-metrica--empleados {
    background: linear-gradient(135deg, #5454d4 0%, #6b5ce7 100%);
}

.tarjeta-metrica--nomina {
    background: linear-gradient(135deg, #2f8ee5 0%, #4a9df0 100%);
}

.tarjeta-metrica--asistencia {
    background: linear-gradient(135deg, #169a45 0%, #24b653 100%);
}

.tarjeta-metrica--solicitudes {
    background: linear-gradient(135deg, #e6a70c 0%, #f6b91e 100%);
}

[data-coreui-theme='dark'] .tarjeta-metrica {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
