﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,'Noto Sans',sans-serif;
    font-size: 0.95rem;
}

@media(max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
}

@media(max-width: 376px) {
    body {
        font-size: 0.85rem;
    }
}

/*app { 
    position: relative;
    display: flex;
    flex-direction: column;
}*/

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.js-line .form-group {
    margin-bottom: 0;
}

.linea {
}

.linea-primary {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.linea-primary__img {
    border-radius: 24px;
    max-width: 48px;
    border: 1px solid #6c757d;
    margin-right: 0.8em;
}

.linea-primary__title {
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.linea-secondary {
}


.linea-customization {
    background: white;
    position: fixed;
    z-index: 1030;
    padding: 1rem;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
}

.custom-line {
    padding: 0.5rem;
    border:1px solid #ddd;
    margin-bottom:0.25rem;
    border-radius: 0.25rem;
}

.more-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: center;
    border-bottom: 1px solid #dee2e6;
}

.table td {
    padding: 0.2em;
}

.more-info__cell {
    text-align: center;
}

.table-inner-toggle {
    display: none;
}

.detalle {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
}

.detalle__border-bottom {
    border-bottom: 1em solid #dee2e6;
}


.detalle__item {
    margin: 0;
    padding: 0.5em;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    flex-grow: 1;
    flex-basis: 4em;
    text-align: center;
    align-items: center;
}

.detalle__item-descripcion {
    flex-grow: 4;
    flex-basis: 10em;
}

.detalle__item-tallaje {
    flex-basis: 100%;
}

.detalle__item-observaciones {
    flex-basis: 100%;
    padding: 0.5em;
    border-top: 1px solid #dee2e6;
}

.detalle__item-observaciones-borderless {
    flex-basis: 100%;
    padding: 0.5em;
}

.unfold-controls {
    background-color: rgb(239, 239, 239);
}

.btn__tallaje, .btn__tallaje:hover, .btn__tallaje:active, .btn__tallaje:visited,
.btn__custom, .btn__custom:hover, .btn__custom:active, .btn__custom:visited {
    width: 100%;
    border: none;
    outline: none;
}

.btn, .form-control {
    font-size: 1em !important;
    cursor:pointer;
}

.detalle__break {
    flex-basis: 100%;
    height: 0;
}


/*Centrar el texto de las líneas de producto verticalmente para que quede alineado con la imagen*/
/*.ui-cell-data .media .media-body, .js-line .media .media-body {
    height: 48px;
    display: table;
}*/

/*.ui-cell-data .media .media-body h5, .js-line .media .media-body h5 {
        display: table-cell;
        vertical-align: middle;
    }*/

.ui-cell-data .media img, .js-line .media img {
    border-radius: 24px;
    max-width: 48px;
    border: 1px solid #6c757d;
}

#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;
    }



/* Personalizaciones */
.lh-100 {
    line-height: 1;
}


.badge.status-blue {
    background-color: #1C93ED;
    color: white;
}

.badge.status-green {
    background-color: #66B92E;
    color: white;
}

.badge.status-orange {
    background-color: #DA932C;
    color: white;
}

.badge.status-red {
    background-color: #D65B4A;
    color: white;
}

.bg-theme {
    background-color: #f3eadc;
}

body {
    background-color: #ecf0f1;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0.5rem auto;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

nav.navbar {
    height: 56px;
}

.offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 35%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    transition: visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

    .offcanvas-collapse.open {
        visibility: visible;
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

.custom-navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
}

main {
    padding-top: 56px;
}

.sticky-top-toolbar {
    position: -webkit-sticky;
    position: sticky;
    padding: 1rem;
    top: 56px;
    z-index: 900;
    background: rgba(222, 226, 230, 0.85);
    margin-bottom: 1rem;
    margin-left: -15px;
    margin-right: -15px;
}

.card .table {
    margin-bottom: 0;
}

.table-inner {
    width: 100%;
}

.table-inner-toggle {
    display: none;
}

.tallaje__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}

.tallaje__element {
    text-align: center;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    flex: 1;
    padding-bottom: 0.3em;
}

.tallaje__element-borderless {
    text-align: center;
    flex: 1;
    padding: 0.2rem;
}

.tallaje__input {
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

    .tallaje__input::-webkit-outer-spin-button,
    .tallaje__input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.tallaje__element--bold {
    font-weight: bold;
    font-size: 1.3em;
}

.tallaje__header {
    display: block;
    font-weight: bold;
}

.tallaje__header__small {
    font-size: 0.6rem;
}

.tallaje__header__sub {
    margin: 0;
}

.tallaje__header__muted {
    color: #999;
    font-weight: normal;
}

.tallaje__header--small {
    font-size: 0.8em:
}

.tallaje__header__highlighted {
    margin-left: 0.5em;
    font-weight: normal;
}

#navbar-auth {
    background-color: #fff;
    height: calc(100% - 56px);
    /*display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;    
    align-content: space-between;*/
}

    #navbar-auth footer a {
        color: black;
        text-decoration: underline;
    }

        #navbar-auth footer a:hover {
            color: #808080;
        }

.navbar-dark .navbar-nav .nav-link {
    color: black;
    -webkit-transition: .25s;
    -moz-transition: .25s;
    -ms-transition: .25s;
    -o-transition: .25s;
}

    .navbar-dark .navbar-nav .nav-link.active {
        /*color: #808080;*/
        color: #000000;
        background-color: #f3eadc;
        padding-left: 1em;
        border-radius: 4px;
        font-weight: bold;
    }

    .navbar-dark .navbar-nav .nav-link:after {
    }

    .navbar-dark .navbar-nav .nav-link:hover {
        /*color: #808080;*/
        color: #000000;
        background-color: #f3eadc;
        border-radius: 4px;
        padding-left: 1em;
    }

.navbar-dark .text-black-50 {
    color: #808080 !important;
}

.navbar-dark .btn-link {
    color: black;
    text-decoration: underline;
}

    .navbar-dark .btn-link:hover {
        color: #808080;
    }

.image-viewer {
    background-color: #000;
    position: fixed;
    display: block;
    opacity: 1;
    height: 100%;
    width: 100%;
    left: 0;
    top: 56px;
    z-index: 999;
}

    .image-viewer > figure > img {
        transform: translate(-50%, -50%);
        position: fixed;
        max-height: 100%;
        max-width: 100%;
        left: 50%;
        top: 50%;
    }

    .image-viewer > figure > figcaption {
        background: rgba(0, 0, 0, 0.5);
        text-align: center;
        position: absolute;
        padding: 10px;
        color: #fff;
        z-index: 1;
        right: 0;
        bottom: 60px;
        left: 0;
    }

    .image-viewer > #iv-top-btn-holder > .iv-btn {
        background-color: transparent;
        position: relative;
        margin-top: 10px;
        font-size: 25px;
        cursor: pointer;
        border: none;
        color: #fff;
        z-index: 1;
    }

    .image-viewer > #iv-top-btn-holder > #back-button {
        margin-left: 15px;
        float: left;
    }

    .image-viewer > #iv-top-btn-holder > #fullscreen-button {
        margin-right: 15px;
        float: right;
    }

.iv-hide {
    animation: hide 1s forwards;
}


@keyframes hide {
    from {
        visibility: visible;
        opacity: 1;
    }

    to {
        visibility: hidden;
        opacity: 0;
    }
}


/*@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {*/
@media only screen and (max-width: 992px) {

    .detalle__item-descripcion {
        flex-grow: 1;
        flex-basis: 100%;
    }


    /* Force table to not be like tables anymore */
    table .table, .table thead, .table tbody, .table th, .table td, .table tr {
        /*   display: block;*/
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        .table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    .table tr {
        border: none;
    }


    .table__cell {
        border: none;
        padding: 0 0.625rem 0.5rem 0.625rem;
        font-weight: normal;
        float: left;
        width: 25%;
        position: relative;
        text-align: center !important;
        padding: 0;
        line-height: 1.5rem;
        padding-bottom: 1.3rem;
        border-right: 1px solid rgba(0,0,0,.125);
    }

    .table_cell:last-child {
        border: 0;
    }

    .table__cell--main {
        padding: 0.5rem;
        text-align: left !important;
        border: 0;
        width: 100%;
        text-align: left;
        padding: 0.5rem;
        margin: 0;
        font-weight: bold;
        border-bottom: 1px solid rgba(0,0,0,.125);
    }

    .table__cell:after {
        content: attr(data-label);
        display: block;
        width: 100%;
        position: absolute;
        bottom: 5pt;
        left: 0;
        font-size: 0.6rem;
        line-height: 1.2;
        color: #999;
        text-align: center;
    }

    .offcanvas-collapse {
        width: 100%;
    }

    footer {
        margin: 0.5rem 0;
    }

    #anon {
        height: 100%;
        min-height: 100%;
    }

        #anon footer {
            position: absolute;
            margin: 0.5rem 0;
            bottom: 0;
        }

    footer small {
        font-size: 0.7rem;
    }

    .js-line .form-group {
        margin-bottom: 0.5rem;
    }
}






/*RADZEN CUSTOMIZATIONS*/

/*Fix GridDropDown productos param darle el aspecto de bootstrap*/
.ui-dropdown.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.ui-dropdown-panel {
    z-index: 2000 !important;
}


/*Mostrar las notificaciones en la parte superior de la pantalla, centradas*/
app .rz-notification {
    position: absolute;
    z-index: 1002;
    top: 56px !important;
    float: unset !important;
    right: 1rem !important;
    display: block;
    width: 100%;
    pointer-events: none;
}

    app .rz-notification .ui-growl {
        position: relative;
        width: 50% !important;
        margin-left: 2em;
    }

.ui-growl-item {
    padding: 0.5rem;
    margin: 0.25rem;
    font-size: 0.9em;
    pointer-events: all;
}

.ui-dialog-wrapper .ui-dialog {
    position: static !important;
    width: unset !important;
}

.ui-dialog-wrapper .ui-dialog-content {
    overflow: hidden;
}

.ui-datatable-odd > td, .bg-odd {
    background-color: #dee2e6;
}

/*Compensar el padding del card donde están contenidas las líneas de pedido*/
.row.js-line {
    margin: 0;
}

/*Evitar que en pantallas grandes la celda del botón ocupe más de lo necesario, el botón es de tipo block y ocupará siempre el máximo posible*/
.grid .ui-datatable-data td.no-title {
    width: 120px;
}

.grid .col-btn {
    width: 120px;
}

@media (max-width: 768px) {
    /*Mostrar los datos del grid en negrita cuando hacemos el collapse para moviles*/
    .ui-datatable-data td .ui-cell-data {
        /*font-weight: bold;*/
        font-size: 1rem;
        color: inherit;
    }

    /*Ajustes para el desplegable de productos, permitir wrap para descripciones largas*/
    .ui-datatable-data td.dd-grid-column span.ui-cell-data {
        text-align: left;
        font-weight: normal;
        white-space: normal;
    }

        /*Ajustes para el desplegable de productos, permitir wrap para descripciones largas*/
        .ui-datatable-data td.dd-grid-column span.ui-cell-data small {
            white-space: nowrap;
            padding-left: 0.5rem;
        }
    /*Mostrar el grid en dos columnas para moviles (celdas titles)*/
    .ui-datatable-reflow .ui-datatable-odd > td .ui-column-title, .ui-datatable-reflow .ui-datatable-even > td .ui-column-title {
        display: block;
        float: left;
        width: 40%;
    }

    .grid .ui-datatable-data td {
        float: left;
        position: relative;
        padding: 0;
        line-height: 1.5rem;
        /*padding-bottom: 1.3rem;*/
        height: 2.8rem;
        /*border-right: 1px solid rgba(0,0,0,.125);*/
        margin-bottom: 0;
        /*border: 1px solid red;*/
    }

    .grid .ui-datatable-data tr.ui-datatable-odd {
        background-color: #dee2e6;
    }

    .grid .ui-datatable-data td.mobile1-2 {
        width: 50% !important;
        text-align: center !important;
    }

    .grid .ui-datatable-data td.border-br {
        border-right: 1px solid rgba(0,0,0,.125);
        border-bottom: 1px solid rgba(0,0,0,.125);
    }

    .grid .ui-datatable-data td.border-b {
        border-bottom: 1px solid rgba(0,0,0,.125);
    }

    .grid .ui-datatable-data td.mobile1-4 {
        width: 25% !important;
        text-align: center !important;
    }

    .grid .ui-datatable-data td.no-border {
        border-right: 0;
    }

    .grid .ui-datatable-data td.mobile1-3 {
        width: 33.3% !important;
        text-align: center !important;
    }


    .grid .ui-datatable-data td .ui-column-title {
        display: block;
        width: 100%;
        position: absolute;
        bottom: 5pt;
        left: 0;
        font-size: 0.6rem;
        line-height: 1.2;
        color: #999;
        text-align: center;
    }

    .grid .ui-datatable-data td.no-title {
        padding: 0.2rem;
    }

        .grid .ui-datatable-data td.no-title .btn-block {
            height: 100%;
        }

    .grid .col-btn {
        width: unset;
    }

    /*Mostrar las notificaciones en la parte inferior de la pantalla, centradas*/
    app .rz-notification {
        position: absolute;
        bottom: 1rem;
        left: 0;
        top: unset !important;
        display: flex;
        width: 100%;
    }

        app .rz-notification .ui-growl {
            position: fixed;
            top: 100px;
            right: 20px;
            min-width: 20rem;
            width: 90% !important;
            margin: auto;
        }

    /*Permitir que el despegable del buscador de pedidos ocupe el 100% de la pantalla, sino las líneas quedan cortadas*/
    .ui-dropdown-panel {
        left: 0 !important;
        width: 100% !important;
    }
    /*Impedir que los inputs de talla sean menores del 20%*/
    .tallaje__element, .tallaje__element-borderless {
        flex-basis: 20%;
        flex-grow: 0;
    }
}


/*Animations*/

.scale-in-ver-top {
    -webkit-animation: scale-in-ver-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: scale-in-ver-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.slide-in-top {
    -webkit-animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2020-12-4 9:44:5
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation scale-in-ver-top
 * ----------------------------------------
 */
@-webkit-keyframes scale-in-ver-top {
    0% {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
        -webkit-transform-origin: 100% 0%;
        transform-origin: 100% 0%;
        opacity: 1;
    }

    100% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
        -webkit-transform-origin: 100% 0%;
        transform-origin: 100% 0%;
        opacity: 1;
    }
}

@keyframes scale-in-ver-top {
    0% {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
        -webkit-transform-origin: 100% 0%;
        transform-origin: 100% 0%;
        opacity: 1;
    }

    100% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
        -webkit-transform-origin: 100% 0%;
        transform-origin: 100% 0%;
        opacity: 1;
    }
}

/**
 * ----------------------------------------
 * animation slide-in-top
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-top {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-top {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}
