﻿.hidden {
    display: none;
}

/*************** ESTILOS PARA MODAL ****************/
#extr-page #header #logo img { width: 180px; }
.blockUI { z-index: 99999 !important; }

/*.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}*/

.modal .modal-header {
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 4px solid #8b0000;
    opacity: .9;
    min-height: 20px;
    line-height: 22px;
    vertical-align: middle;
    -webkit-border-radius: 6px 6px 0 0;
}

.modal-content {
    border: 10px solid rgba(61,61,61,.25);
    box-shadow: 0 0 1px rgba(47,47,47,.6);
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -webkit-box-shadow: 0 0 1px rgba(47,47,47,.6);
    -moz-box-shadow: 0 0 1px rgba(47,47,47,.6);
}

.modal-body {
    position: relative;
    padding: 15px;
    max-height: 500px;
}

.modal-footer { padding: 0.4rem; }

.animated-modal {
    animation-duration: 0.7s;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
    -webkit-animation-name: fadeIn;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-80px);
        -ms-transform: translateY(-80px);
        transform: translateY(-80px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-80px);
        transform: translateY(-80px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}


/*************** ESTILOS PARA DATA TABLE ****************/
.td-100 { width: 100% !important; }
.td-50 { width: 50% !important; }
.td-45 { width: 45% !important; }
.td-40 { width: 40% !important; }
.td-35 { width: 35% !important; }
.td-30 { width: 30% !important; }
.td-25 { width: 25% !important; }
.td-20 { width: 20% !important; }
.td-15 { width: 15% !important; }
.td-10 { width: 10% !important; }
.td-5 { width: 5% !important; }

.text-sm { font-size: 0.8rem; }
.text-md { font-size: 0.95rem; }
.text-lg { font-size: 1.08rem; }
.text-badge { font-size: 0.9rem; }

td {
    color: #282828 !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
}

th { font-size: 0.9rem !important; }
.table-style tbody tr td { padding: 0.35rem !important; }

/************* VALIDACIÓN DE CAMPOS OBLIGATORIOS **************/
label.error {
    font-size: 13px !important;
    font-family: Arial Rounded MT !important;
    color: red;
}

.error {
    color: red !important;
    font-weight: normal;
    font-size: 11.4px !important;
    font-family: Arial Rounded MT !important;
}

div.has-error label.label { color: red; }
div.has-error input.form-control { border: 1px solid red !important; }
div.has-error select.form-control { border: 1px solid red !important; }
div.has-error textarea.form-control { border: 1px solid red !important; }
div.has-error span.select2 { border: 1px solid red !important; }


/************* ESTILOS PERSONALIZADOS - CONTENT **************/
.bg-perfil {
    color: white;
    background-color: #174d83;
}

.titleCargo {
    font-size: .875rem;
    color: #A0CBFF !important;
}

.select2 { width: 100% !important; }
.select2-selection__choice { font-size: 12px; }
.select2-selection__clear {
    margin-right: 10px;
    position: absolute;
    right: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
    font-family: Tahoma !important;
    font-size: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px;
    font-size: 12px !important;
    font-family: Tahoma !important;
    padding-right: 20px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { top: 6px !important; }
.select2-hidden-accessible { display: none; }

.card {
    margin-bottom: 24px;
    -webkit-box-shadow: 0 0 13px 0 rgb(236 236 241 / 44%);
    box-shadow: 0 0 13px 0 rgb(236 236 241 / 44%);
    border-radius: 10px !important;
}

.card-shadow {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 0.1rem dashed #8b0000;
}

.bg-danger-mini {
    /*background-color: #E74C3C !important;*/
    background-color: #e1001a !important;
    /*background-color: #8b0000 !important;*/
}

.bg-secondary-mini {
    /* background-color: #E74C3C !important; */
    /*background-color: #e9ecef !important;*/
    background-color: rgba(233, 236, 239, 0.7);
    /* background-color: #8b0000 !important; */
}

.bg-gray-mini {
    /* background-color: #E74C3C !important; */
    background-color: #6c757d !important;
    /* background-color: #8b0000 !important; */
}

.topnav {
    /*background: #333547;*/
    background: #8b0000;
    padding: 0 calc(24px / 2);
    -webkit-box-shadow: 0 0 13px 0 rgb(236 236 241 / 44%);
    box-shadow: 0 0 13px 0 rgb(236 236 241 / 44%);
    margin-top: 20px !important;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1;
}

.badge {
    display: inline;
    padding: 0.35em 0.65em;
    vertical-align: middle;
}

.bg-danger {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-danger-rgb),var(--bs-bg-opacity)) !important;
}

.badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 600;
    --bs-badge-color: #FFFFFF;
    --bs-badge-border-radius: 4px;
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

/*******ESTILO PARA LOS BOTONTES*******/
.btn-danger {
    color: #fff;
    background-color: #8b0000;
    border-color: #ec4561;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c9302c;
    border-color: #ec4561;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-25 {
    width: 25% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

/*******ESTILO PARA INPUT*******/
.input-soft-red {
    width: 56% !important; /* Más ancho */
    max-width: 100% !important;
    height: 45px; /* Más alto */
    border-radius: 12px; /* Bordes redondeados */
    background-color: #ffe5e5; /* Rojo claro suave */
    border: 1px solid #ffb3b3; /* Borde rojo más marcado */
    padding: 10px 12px; /* Espaciado interno */
    font-size: 14px; /* Texto más grande */
    font-weight: bold;
    outline: none; /* Quita el borde azul al hacer click */
    transition: 0.3s ease; /* Animación suave */
}

    .input-soft-red:focus {
        background-color: #ffe5e5; /* Forzamos que se mantenga */
        border-color: #ff6666;
        box-shadow: 0 0 5px rgba(255, 102, 102, 0.4);
    }

@media (max-width: 1200px) {
    .w-5,
    .w-10,
    .w-15,
    .w-20,
    .w-25,
    .w-30,
    .w-35,
    .w-40,
    .w-45 {
        width: 20% !important;
    }
}

@media (max-width: 768px) {
    .input-soft-red {
        width: 100% !important;
    }

    .w-5,
    .w-10,
    .w-15,
    .w-20,
    .w-25,
    .w-30,
    .w-35,
    .w-40,
    .w-45 {
        width: 100% !important;
    }
}