﻿/* ===== Layout Principal ===== */
html, body, #main {
    min-height: 90vh !important;
}

#main {
    padding: 80px 0 0 0 !important;
}

.bgBrand {
    min-height: 92px;
}

.textBrand {
    padding-top: 2px;
}

.divLogoTop {
    height: 70px;
    padding-top: 2px;
    border-right: 0.5px solid #e1e1e1;
    display: flex;
}

.divLogoTopMobile {
    border-right: none !important;
}

.logoTop {
    margin: auto;
    max-height: 70px;
}

.modal-dialog {
    left: auto !important;
}

/* ===== Tablas & DataTables ===== */
.dataTables_scrollBody {
    overflow-y: hidden !important;
}

    .dataTables_scrollBody thead tr[role="row"] {
        visibility: collapse !important;
    }

.table-striped > tbody > tr:nth-child(2n+1) > td {
    background: none !important;
}

tr:hover, .table-striped > tbody > tr:nth-child(2n+1):hover {
    background-color: #ECECEC !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid #fff !important;
}

td {
    vertical-align: middle !important;
}

.ArchivoList td {
    word-break: break-word;
}

table {
    text-transform: uppercase;
}

code {
    text-transform: initial !important;
}

.tiempoAtras {
    text-transform: lowercase;
}

/* ===== Botones & Select2 ===== */
.width-5em {
    width: 5em !important;
}

.dt-buttons {
    margin: 23px 0 0 50px;
}

.btn:hover, button.btn:hover, span.btn:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, .16), inset 0 2px 100px 100px rgba(255, 255, 255, .12);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: white !important;
    background-color: #DB3339 !important;
}

.divBotones > a,
.divBotones > button {
    display: inline-block;
    margin-bottom: 10px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #DB3339 !important;
}

/* ===== Inputs: Checkbox / Radio / Switch ===== */
.checkbox input:checked + .input-helper::before,
.radio input:checked + .input-helper::before {
    background-color: #DB3339 !important;
    border-color: #DB3339 !important;
}

.checkbox .input-helper::before {
    top: 40% !important;
    left: 50% !important;
}

.toggle-switch:not([data-ts-color]) input:not(:disabled):checked + .ts-helper {
    background-color: rgba(219, 51, 57, 0.5) !important;
}

    .toggle-switch:not([data-ts-color]) input:not(:disabled):checked + .ts-helper::before {
        background-color: #db3339 !important;
    }

/* ===== Tabs ===== */
.tab-nav {
    box-shadow: inset 0 -2px 0 0 #db3339 !important;
}

    .tab-nav li.active > a {
        background-color: #db3339 !important;
        color: white !important;
    }

.tab-content {
    padding: 15px 0 !important;
}

.tab-nav[data-tab-color=amber] > li > a:after {
    background: #DB3339 !important;
}

/* ===== SweetAlert2 ===== */
.swal2-modal {
    width: 500px;
    max-width: 90%;
    box-sizing: border-box;
}

.swal2-icon {
    font-size: 16px;
}

.swal2-title {
    font-size: 24px !important;
    padding-top: 0;
}

.swal2-html-container {
    font-size: 15px !important;
    text-align: center;
}

.swal2-actions {
    font-size: 14px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

    .swal2-actions .swal2-styled {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 120px;
    }

/* ===== Alerts ===== */
.alert-success {
    background-color: #B3FFBB;
    line-height: 15px;
    padding: 20px 35px !important;
    text-align: justify;
}

.alert-warning {
    line-height: 15px;
    padding: 20px 35px !important;
    text-align: justify;
}

/* ===== User UI ===== */
.s-profile > a .sp-info {
    margin-top: 23px !important;
    font-size: 11px !important;
}

.hidden-xs {
    display: block;
}

.waves-circle {
    width: auto;
    min-width: 3em;
}

/* ===== Media Queries ===== */
@media (min-width: 1200px) and (max-width: 1340px) {
    #liIndicadores {
        width: 40% !important;
        margin-left: 1% !important;
    }
}

@media only screen and (max-width: 1200px) {
    #liIndicadores {
        width: 35% !important;
        margin-left: 0% !important;
    }
}

@media only screen and (max-width: 768px) {
    .swal2-modal {
        min-width: 90% !important;
        font-size: 90% !important;
    }

    .swal2-title {
        font-size: 20px !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
    }

    .swal2-actions .swal2-styled {
        font-size: 13px;
        padding: 6px 12px;
        min-width: 100px;
    }

    #iconEmpresas {
        margin-top: 15px !important;
    }
}

@media only screen and (max-width: 480px) {
    .swal2-modal {
        min-width: 95%;
        margin: 0 10px;
    }

    .swal2-title {
        font-size: 18px !important;
    }

    .swal2-html-container {
        font-size: 13px !important;
    }

    .swal2-actions {
        flex-direction: column;
    }

        .swal2-actions .swal2-styled {
            width: 100%;
            font-size: 13px;
        }


    .hi-logo img {
        height: 50px !important;
        margin-top: -20px !important;
        margin-bottom: -20px !important;
        margin-left: -20px !important;
    }

    li[data-ma-action="search-open"] {
        display: none !important;
    }

    #liChat {
        margin-right: -20px !important;
    }

    #iconEmpresas {
        margin-top: 15px !important;
        font-size: 22px !important;
        margin-left: 0px !important;
    }

    .hide-xs {
        display: none;
    }
}

.classCheckbox:hover,
input[type=checkbox]:hover {
    cursor: pointer;
}

.urlClickeable {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    font-feature-settings: "liga" 0, "calt" 0;
    font-variant-ligatures: none;
    transition: all 0.2s ease;
}

    .urlClickeable::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background-color: #db333924;
        transform: translateY(2px);
    }

.td-link-inicializado {
    cursor: pointer;
}

    .td-link-inicializado:hover .urlClickeable {
        cursor: pointer;
        color: #db3339;
        /*font-weight: bold;*/
    }


i.fa.fa-circle,
span.fa-layers.fa-fw,
i.far.fa-square,
i.far.fa-check-square {
    cursor: help;
}

/* Verde: éxito */
.badge-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* Amarillo: advertencia */
.badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Rojo: error/peligro */
.badge-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* Gris: información */
.badge-info {
    background-color: #6c757d !important; /* gris medio */
    color: #fff !important;
}

.cursorPointer {
    cursor: pointer;
}

.nav-tabs > li > a {
    color: #707070;
}

    .nav-tabs > li > a:hover {
        color: #0049b0;
        padding-bottom: 9.5px;
    }

@media (min-width: 900px) {
    .modal-lg {
        min-width: 75%;
    }
}


.tabla-scroll {
    max-height: 55vh;
    overflow-y: auto;
    position: relative;
}

    /* Fijar el encabezado */
    .tabla-scroll thead th {
        position: sticky;
        top: 0;
        background: #f8f9fa; /* mismo color que .thead-light */
        z-index: 2;
    }


.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
    margin-bottom: -2px !important;
    margin-right: 0;
}

.modal-header h5 {
    position: absolute;
}

.modal-footer {
    padding-top: 0px;
    padding-bottom: 15px;
}

.modal-title {
    font-weight: bold;
}
