﻿@font-face {
    font-family: "DM Sans";
    src: url("/Fonts/DMSans/DMSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("/Fonts/DMSans/DMSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Titillium Web";
    src: url("/Fonts/TitilliumWeb/TitilliumWeb-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Titillium Web";
    src: url("/Fonts/TitilliumWeb/TitilliumWeb-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
}

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

.text-center {
    text-align: center;
}

.content-area {
    background: #e5e5e5 !important;
    padding: 1rem;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 400px;
}

.contenido {
    background: white;
    min-height: 400px;
    padding-top: 2em;
}

.background-dark {
    background: #343a40 !important;
}

.text-center {
    text-align: center;
}


.box-central {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    margin: 0 auto;
    gap: 40px;
}

.box-central.logged {
    width: 100%;
}


.bg-login {
    background-color: #13324F;
    background-image: url(../../Contents/Images/encustody-bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}


.titular-centro h2 {
    font-size: 17px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #122237;
}

.encabezado {
    max-width: 450px;
    min-height: 100px;
    margin: 40px auto 0;
}

.bg-login .form-group .form-control {
    font-size: 13px;
}

.bg-login .form-group label {
    /*font-size:14px;
     font-weight:500;*/
}

.box-central .btn {
    /*width: 100%;*/
    font-size: 14px;
}

.alert {
    font-size: 14px;
}

    .alert .texto-resaltado {
        color: #7b0d0d !important;
        text-align: center;
        font-weight: bold !important;
    }



.top-header .btn-primary {
    font-size: 14px;
    margin-top: 20px;
    margin-right: 20px;
}

.btn-primary {
    color: #fff;
    background-color: #01a6e6;
    border-color: #01a6e6;
}


    .btn-primary:hover, .btn-primary:focus {
        color: #fff;
        background-color: #2196F3;
        border-color: #2196F3;
    }

.btn-top {
    color: #fff;
    background-color: #012d4f;
    border-color: #012d4f;
    padding: 3px 15px;
    margin-top: 20px;
    margin-left: 10px;
    font-size: 14px;
}

    .btn-top:hover, .btn-top:focus {
        color: #01a6e6;
        background-color: #011a2e;
        border-color: #011a2e;
    }

.estilo-form .form-control {
    font-size: 14px;
}

.estilo-form label {
    font-size: 14px;
    font-weight: 500;
}

.logo-encustody {
    width: 283px;
    height: 45px;
    margin: 30px auto 40px;
}


/* Styles for LogoHeader.razor
-------------------------------------------------- */
.logo-header {
    display: flex;
    align-items: center;
    gap: 19px;
}

.logo-header img {
    width: 53.75px;
    height: 53.75px;
}

.logo-header__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.logo-header__support {
    font-family: "DM Sans", "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #024d5d;
}

.logo-header__company {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #024d5d;
    letter-spacing: 1px;
}

/* Styles for PrimaryButtonLogIn.razor
-------------------------------------------------- */
.primary-login-btn {
    width: 100%;
    padding: 10px 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: none;
    background: #03657a;
    color: #f3f3f3;
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 12px rgba(3, 101, 122, 0.2);
}

.primary-login-btn:hover:not(:disabled) {
    background: #024d5d;
    box-shadow: 0 10px 18px rgba(2, 77, 93, 0.35);
    transform: translateY(-1px);
}

.primary-login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(113, 197, 214, 0.8), 0 8px 16px rgba(2, 77, 93, 0.4);
}

.primary-login-btn:disabled {
    background: #8db7c4;
    color: rgba(255, 255, 255, 0.85);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.9;
}


.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.font-size-12 {
    font-size: 12px;
}

.box-central h4 {
    margin-top: 0px;
    margin-bottom: 0px;
    color: #236595;
    font-weight: 300;
    font-size: 18px;
    margin: auto;
}



.encustody-container .form-control {
    height: 43px;
    border-radius: 20px !important;
    padding-left: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #5D5D5D;
}

.encustody-container label {
    font-weight: 600;
    color: #A4A4A4;
    font-size: 13px;
    font-weight: 400;
}





.btn-primary {
    background-color: #236595 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 12px 50px !important;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: #195A82 !important;
        background-image: none !important;
        border: none !important;
        color: #fff !important;
    }

.btn-secondary {
    border-radius: 20px !important;
    padding: 12px 50px !important;
}

#divFirmar .btn-primary {
    width: 100%;
    margin-top: 20px;
    font-weight: 600;
}

#divFirmar .btn-group, .btn-group-vertical {
    width: 100%;
}



.top-header .btn-top {
    background-color: #012d4f;
    border-color: #012d4f;
    padding: 5px 5px;
    border-radius: 50%;
    float: left;
}

.botones-header {
    float: right;
}

#pdf-canvas {
    margin: auto !important;
    display: block !important;
}

#pdf-contents {
    background-color: #d5d3d3;
    padding-top: 20px;
    padding-bottom: 20px;
}

#pdf-canvas {
    /*width: 100%;*/
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    /*width: 60px;
    height: 34px;*/
    width: 8%;
    height: 80%;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 70%;
        width: 40%;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(95%);
    -ms-transform: translateX(95%);
    transform: translateX(95%);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: #222;
    opacity: 0.4;
    filter: alpha(opacity=40);
    z-index: 9999999;
}

.container-overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: table;
    z-index: 99999999;
}

.content-overlay {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.spinner {
    width: 180px;
    /*height: 105px;*/
    height: 10%;
    margin: auto auto;
    background-color: #FFF;
    /*background: repeating-linear-gradient(
      45deg,
      #FFF,
      #FFF 1px,
      #BBB 1px,
      #BBB 2px
    );*/
    padding: 10px;
    font-size: 14px;
    color: #444;
    border-radius: 10px;
    border: 5px solid #2B5B7B; /*#14522F;*/
}



#spinner-container {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background-color: #222;
    opacity: 0.3;
}

#spinner-content {
    opacity: 1;
    color: #FFF;
    margin: 22% 48%;
    position: absolute;
    overflow: hidden;
}

.imgProcesando {
    /*background: url(../../Contents/Images/procesando.gif) center center fixed no-repeat !important;*/
}

@media (max-width: 480px) { /*480*/
    .box-central {
        max-width: 85% !important;
    }

    .box-central.logged {
        max-width: 100% !important;
    }

    .box-central h4 {
        font-weight: 400;
        font-size: 16px;
    }

    .logo-encustody img {
        width: 85%;
        margin-left: 1.5rem;
    }
}

/* Login form container (EditForm) */
.login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 626px;
    max-width: 100%;
    padding: 40px 32px 20px;
    margin: 0 auto;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 60px rgba(18, 71, 107, 0.25);
    backdrop-filter: blur(22px);
}

.login-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

.login-card .form-floating,
.login-card .validation-summary {
    width: 100%;
}

.login-card__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.login-field__label {
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #272727;
    line-height: 20px;
}

.login-field .form-control {
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #7d7d7d;
    padding: 12px 16px;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field .form-control:not(.is-invalid):not(.is-valid) {
    border: 1px solid #c6c6c6;
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

.login-field .form-control::placeholder {
    color: #7d7d7d;
    opacity: 1;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .password-input {
    padding-right: 48px;
}

.password-input.is-invalid,
.password-input.is-valid {
    background-image: none !important;
    padding-right: 48px;
}

.remember-check {
    margin-bottom: 35px;
}

.remember-check .form-check-input {
    margin-right: 8px;
}

.remember-check .form-check-label {
    color: #5d5d5d;
    text-align: center;
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;
    margin: 0;
}

.forgot-password {
    margin-top: 12px;
    text-align: center;
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.login-footer {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.login-footer img {
    width: 150px;
    height: auto;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle img {
    width: 20px;
    height: 20px;
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 183, 221, 0.4);
    border-radius: 50%;
}

.login-field .form-control:focus {
    border-color: #05b7dd;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 4px #b5e3ff;
    outline: none;
}

/* Styles for LoginTitle.razor
-------------------------------------------------- */
.login-title {
    width: 100%;
    font-family: "Titillium Web", 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #024d5d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 12px;
}

.login-card .login-title {
    margin-top: 24px;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    float: left;
}

@media (min-width: 480px) {
    .col-ms-1, .col-ms-2, .col-ms-3, .col-ms-4, .col-ms-5, .col-ms-6, .col-ms-7, .col-ms-8, .col-ms-9, .col-ms-10, .col-ms-11, .col-ms-12 {
        float: left;
    }
}

@media (min-width: 768px) {
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        float: left;
    }
}

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"],
.btn-close {
    --bs-btn-close-bg: url(/Contents/Images/Cross.svg) !important;
}

/* ========================================
   QuickGrid Pagination Styles
   ======================================== */

/* Ocultar paginadores que están directamente después de quickgrid o table (paginadores automáticos) */
quickgrid + nav.pagination,
.table-hover + nav.pagination,
.col-md-12 > nav.pagination:first-of-type {
    display: none !important;
}

/* Asegurar que nuestros divs contenedores se muestren */
#paginador-usuarios,
#paginador-certificados,
#paginador-logs {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    margin-top: 15px;
    width: 100%;
}

/* Mostrar SOLO los paginadores dentro de nuestros divs específicos */
#paginador-usuarios nav,
#paginador-usuarios nav.pagination,
#paginador-certificados nav,
#paginador-certificados nav.pagination,
#paginador-logs nav,
#paginador-logs nav.pagination {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
}

/* Estilos base del paginador de QuickGrid */
.encustody-paginator nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botones del paginador */
.encustody-paginator button,
.encustody-paginator a {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    margin: 0 3px;
    font-size: 14px;
    font-weight: 500;
    color: #236595;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover en botones */
.encustody-paginator button:hover:not(:disabled),
.encustody-paginator a:hover:not([aria-disabled="true"]) {
    background-color: #236595;
    color: #fff;
    border-color: #236595;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(35, 101, 149, 0.2);
}

/* Botón activo/seleccionado */
.encustody-paginator button[aria-current="page"],
.encustody-paginator a[aria-current="page"] {
    background-color: #236595;
    color: #fff;
    border-color: #236595;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(35, 101, 149, 0.3);
}

/* Botones deshabilitados */
.encustody-paginator button:disabled,
.encustody-paginator a[aria-disabled="true"] {
    color: #ccc;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.encustody-paginator button:disabled:hover,
.encustody-paginator a[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
    background-color: #f5f5f5;
    color: #ccc;
}

/* Texto informativo (ej: "Page 1 of 5") */
.encustody-paginator span:not([role="button"]) {
    padding: 0 10px;
    font-size: 14px;
    color: #5D5D5D;
    font-weight: 500;
}

/* Estilos para los controles Prev/Next */
.encustody-paginator button:first-child,
.encustody-paginator button:last-child {
    font-weight: 600;
}

/* Responsive: ajuste para móviles */
@media (max-width: 768px) {
    .encustody-paginator {
        padding: 15px 0;
    }
    
    .encustody-paginator button,
    .encustody-paginator a {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 2px;
    }
    
    .encustody-paginator span:not([role="button"]) {
        font-size: 13px;
        padding: 0 5px;
    }
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.encustody-paginator {
    animation: fadeIn 0.3s ease-in-out;
}
.password-input {
    padding-right: calc(1.5em + 0.75rem);
    background-position: right calc(0.375rem + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
