@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


/* =========================================================
   1. BASE GLOBAL
   ========================================================= */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.content {
    padding-top: 1.1rem;
    width: 100%;
    max-width: 100%;
}

.blue-dark {
    background-color: #003366;
}


/* =========================================================
   2. BOTONES
   ========================================================= */

.btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
}

.btn-lg,
.btn-group-lg > .btn {
    font-size: 13px;
    padding: 6px 12px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-login {
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    padding: 0.75rem 1rem;
}

.btn-google {
    color: white !important;
    background-color: #ea4335;
}

.btn-facebook {
    color: white !important;
    background-color: #3b5998;
}


/* =========================================================
   3. VALIDACIONES
   ========================================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


/* =========================================================
   4. MENSAJE DE ERROR DE BLAZOR
   ========================================================= */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem,#b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }


/* =========================================================
   5. NAVBAR SIMPLE
   ========================================================= */

.navbars {
    width: 100%;
    background-color: navy;
    overflow: auto;
}

    .navbars a {
        float: left;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-size: 17px;
    }

        .navbars a:hover {
            background-color: #000;
        }

    .navbars .active-item {
        background-color: lightskyblue;
    }

@media screen and (max-width:500px) {
    .navbars a {
        float: none;
        display: block;
    }
}


/* =========================================================
   6. NAVBAR COMIN
   ========================================================= */

.navbar-comin {
    width: 100%;
    background-color: crimson;
    overflow: auto;
}

    .navbar-comin a {
        float: left;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-size: 15px;
    }

        .navbar-comin a:hover {
            background-color: skyblue;
        }

    .navbar-comin .active-item {
        background-color: lightskyblue;
    }


/* =========================================================
   7. MENU PRINCIPAL
   ========================================================= */

.main-nav-custom {
    background-color: #333;
    padding: 10px;
}

    .main-nav-custom ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-nav-custom li {
        display: inline-block;
        margin-right: 20px;
    }

    .main-nav-custom a {
        text-decoration: none;
        color: #fff;
    }


/* =========================================================
   8. SUBMENUS
   ========================================================= */

.submenu {
    position: relative;
}

    .submenu a {
        cursor: pointer;
    }

.sub-menu {
    display: none;
    position: absolute;
    background-color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    left: 0;
    z-index: 2000;
}

    .sub-menu li {
        padding: 10px;
    }

.submenu:hover .sub-menu {
    display: block;
}

    .submenu:hover .sub-menu li:hover {
        background-color: #555;
    }


/* =========================================================
   9. TABLAS
   ========================================================= */

.table {
    width: 100%;
    margin-bottom: 0.5rem;
}

    .table th,
    .table td {
        padding: 6px 8px;
        font-size: 12px;
        vertical-align: middle;
    }

    .table thead th {
        font-weight: 600;
        white-space: nowrap;
    }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}


/* =========================================================
   11. FORMULARIOS
   ========================================================= */

.form-control,
.form-select {
    font-size: 12px !important;
    height: 31px;
    min-height: 31px;
    padding: 4px 8px;
    border-radius: 3px;
}

input.form-control,
select.form-select,
textarea.form-control {
    font-size: 12px !important;
}

select,
input,
textarea {
    font-size: 12px;
}

label,
.form-label {
    margin-bottom: 0.2rem;
    font-size: 11.5px;
    font-weight: 500;
}

.form-group,
.mb-3 {
    margin-bottom: 0.55rem !important;
}


/* =========================================================
   12. TARJETAS
   ========================================================= */

.card {
    border-radius: 4px;
}

.card-body {
    padding: 10px;
}


/* =========================================================
   13. GRID COMPACTO
   ========================================================= */

.row {
    margin-left: -6px;
    margin-right: -6px;
}

    .row > * {
        padding-left: 6px;
        padding-right: 6px;
    }


/* =========================================================
   14. CONTENEDORES FULL WIDTH
   ========================================================= */

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100% !important;
}

.container,
.container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

main,
.main,
.content,
.page,
.page-content,
.main-content {
    width: 100%;
    max-width: 100%;
}

.erp-page,
.page-wide,
.page-full {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
}

.erp-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}


/* =========================================================
   15. SWITCH
   ========================================================= */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    -webkit-transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        -webkit-transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


/* =========================================================
   16. MODALES XL
   ========================================================= */

.modal.show .modal-dialog.modal-xl {
    margin: 16px auto;
    height: calc(100vh - 32px);
}

    .modal.show .modal-dialog.modal-xl .modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.modal .modal-header,
.modal .modal-footer {
    flex: 0 0 auto;
}

.modal .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 20px;
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.footer {
    position: fixed;
    bottom: 0;
}


/* =========================================================
   18. LOGIN BACKGROUND
   ========================================================= */

.page-background-class {
    background-image: url('../images/login-background.jpg');
    width: 1920px;
    height: 1080px;
}


/* =========================================================
   19. SEGURIDAD BOOTSTRAP
   ========================================================= */

.active-item {
    background-color: lightskyblue;
}


/* =========================================================
   20. PRINT
   ========================================================= */

@media print {

    @page {
        size: A4;
        margin: 10mm 20mm 20mm 20mm;
    }

    html, body {
        width: 210mm;
        height: 297mm;
        font-size: 12px;
        background: #FFF;
        overflow: visible;
    }

    body {
        padding-top: 0mm;
    }

    tfoot > tr {
        height: 10mm;
        padding-bottom: 1.5mm;
    }

    tfoot div {
        position: fixed;
        bottom: 0;
    }

    .pagebreak {
        page-break-before: always;
    }
}
