/**
 * FilePond Custom Styles
 */
 .filepond--drop-label {
	color: #4c4e53;
}

.filepond--label-action {
	text-decoration-color: #babdc0;
}

.filepond--panel-root {
	background-color: #edf0f4;
	height: 1em;
}

.filepond--item-panel {
	background-color: #595e68;
}

.filepond--drip-blob {
	background-color: #7f8a9a;
}

.filepond--drop-label{
    font-size: medium !important;
}

.filepond--item {
    width: calc(50% - .5em);
}

@media (min-width: 30em) {
    .filepond--item {
        width: calc(50% - .5em);
    }
}

@media (min-width: 50em) {
    .filepond--item {
        width: calc(33.33% - .5em);
    }
}

.filepond--root {
    height: calc(60vh);
    max-height: 60vh;
}
div {
    box-sizing: border-box;
}

.table-container {
    display: block;
    max-width: 100%;
    font-size: smaller;
}

.flex-table {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-flow: row wrap;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.flex-table.row {
    margin: 0px;
}


/* Estilos para el header de la tabla */

.flex-table:first-of-type .flex-row {
    background: white;
    border-bottom: 3px solid black;
    font-weight: bold;
    color: black;
}


/* Estilos para las filas pares*/

.flex-table.row:nth-child(2n) .flex-row {
    background-color: #f4f4f4;
}


/* Estilos para las filas impares*/

.flex-table.row:nth-child(2n+1) .flex-row {
    background-color: #dadada;
}


/* Estilos para las columnas. Se divide entre 4 como estilo base, si se quiere modificar 
la cantidad de columnas con el mismo ancho solo se debe pisar la clase con el ancho 
calc(100% / cantidad_de_colunas */

.flex-row {
    width: calc(100% / 4);
    text-align: center;
    padding: 0.5em 0.5em;
    align-content: center;
    display: grid;
}

.rowspan {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-flow: row wrap;
    -webkit-box-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    justify-content: center;
}

.column {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-flow: column wrap;
    width: 100%;
    padding: 0;
}

.column .flex-row {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-flow: row wrap;
    width: 100%;
    padding: 0;
    border: 0;
}

.flex-cell {
    width: calc(100% / 4);
    text-align: center;
    padding: 0.5em 0.5em;
}


/* Estilos para las columnas de contenido principal */

.flex-row.top {
    word-break: break-word;
}

@media all and (max-width: 767px) {
    .flex-row {
        width: calc(100% / 3);
    }
    .flex-row.top {
        width: 100%;
    }
    .column {
        width: 100%;
    }
}

@media all and (max-width: 430px) {
    .flex-table .flex-row {
        border-bottom: 0;
    }
    .flex-table>.flex-row.last {
        display: none;
    }
    .header .flex-row {
        border-bottom: solid 1px;
    }
    .flex-row {
        width: 100%;
    }
    .flex-row.top {
        width: 100%;
        border-bottom: solid 1px #d9d9d9;
    }
    .column {
        width: 100%;
    }
    .column .flex-row {
        border-bottom: solid 1px #d9d9d9;
    }
    .flex-cell {
        width: 100%;
    }
}


/* Se eliminan los estilos de header a la primera fila dentro del contenedor #flexTableRowsContainer */

#flexTableRowsContainer>.flex-table:first-of-type .flex-row {
    background: #dadada;
    border-bottom: none;
    font-weight: initial;
}

#flexTableRowAdderContainer>.flex-row {
    cursor: pointer;
    width: 100%;
    justify-content: right;
}
.search-field-group{
    width: 50%;
}

.flex-table.row {
    margin-bottom: .5rem;
    cursor: pointer;
}

/* Ancho de las columnas*/
.flex-table > .flex-row:nth-child(1) {/* Variacion | Valor */
    width: 50%;
    text-align: center;
}
.flex-table > .flex-row:nth-child(2) {/* Producto */
    width: 10%;
    text-align: center;
}
.flex-table > .flex-row:nth-child(3) {/* Acciones */
    width: 10%;
    text-align: center;
}
.flex-table > .flex-row:nth-child(4) {/* SKU */
    width: 10%;
    text-align: center;
}
.flex-table > .flex-row:nth-child(5) {/* Stock */
    width: 20%;
    text-align: center;
}


/*Nueva Variacion*/
.flex-table > .flex-row.new-cell:nth-child(1) {/* Variacion | Valor */
    width: 88%;
    text-align: center;
}

/* Estilos para las filas pares*/
.flex-table.row:nth-child(2n) .flex-row {
    background-color: unset;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* Estilos para las filas impares*/
.flex-table.row:nth-child(2n+1) .flex-row {
    background-color: unset;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.collapse-row {
    text-align: center;
    padding: 0.5em 0.5em;
    align-content: center;
    border: solid 1px #d9d9d9;
    width: 100%;
}

/* Estilos para las filas collapse pares*/
.flex-table.row:nth-child(2n) .collapse-row {
    background-color: white;
}

/* Estilos para las filas collapse impares*/
.flex-table.row:nth-child(2n+1) .collapse-row {
    background-color: white;
}

.flex-cell {
    align-self: center;
}

.flex-table > .last > .form-group > a:nth-child(2) > .fa {
    transition: .5s transform ease-in-out;
}
.flex-table > .last > .form-group > a[aria-expanded=true] > .fa {
    transform: rotate(180deg);
}

@media all and (max-width: 944px) {
    /* Ancho de las columnas*/
    .flex-table > .flex-row:nth-child(1) {/* Variacion | Valor */
        width: 50%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(2) {/* SKU */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(3) {/* Precio */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(4) {/* Stock */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(5) {/* Acciones */
        width: 20%;
        text-align: center;
    }

}

@media all and (max-width: 614px) {
    /* Ancho de las columnas*/
    .flex-table > .flex-row:nth-child(1) {/* Variacion | Valor */
        width: 50%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(2) {/* SKU */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(3) {/* Precio */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(4) {/* Stock */
        width: 10%;
        text-align: center;
    }
    .flex-table > .flex-row:nth-child(5) {/* Acciones */
        width: 20%;
        text-align: center;
    }

}

@media all and (max-width: 804px) {
    .search-field-group{
        width: 70%;
    }
    .table-container {
        font-size: x-small;
    }
}

@media all and (max-width: 767px) {

    .search-field-group{
        width: 75%;
    }

    /* Se modifica la cantidad de columnas que no tengan la clase .top a 6 
    en resoluciones por debajo de 767px  */
    .flex-row {
        width: calc(100% / 5);
    }

    .material-switch{
        padding-right: 3rem;
    }

    /* La clase top se utiliza como identificador de las columnas principales 
    que estan fuera de las simples flex-row, en este caso son 2 [sku, producto] por eso 50% */
    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
   }
}

@media all and (max-width: 490px) {

    .search-field-group{
        width: 100%;
    }

    .flex-table > .flex-row.last {
        display: unset;
   }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
   }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .flex-row.variation-adder {
        display: none;
   }

    /* Se mantiene el esquema  [sku, producto] al 50% cada una y el resto debajo c/u al 100%*/
    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
   }

    /* Ancho de las columnas*/
    .flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100%;
        text-align: center;
    }

    .flex-table > .flex-row.new-cell:nth-child(n) {/* Variacion | Valor */
        width: 100%;
    }

    .flex-table:first-of-type .flex-row {
        background: white;
        border-bottom: 1px solid black;
        font-weight: bold;
        color: black;
    }

    .column .flex-row {
        border-bottom: none;
        display: table-cell;
        width: 50%;
    }
}

@media all and (max-width: 340px) {

    .search-field-group{
        width: 100%;
    }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
   }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .flex-row.variation-adder {
        display: none;
   }

    /* Ancho de las columnas*/
    .flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100%;
        text-align: center;
    }
    .flex-table > .flex-row.new-cell:nth-child(n) {/* Variacion | Valor */
        width: 100%;
    }
}
/* Ancho de las columnas*/
.ordersTable.flex-table > .flex-row:nth-child(1) {/* Marketplace */
    width: 7%;
}
.ordersTable.flex-table > .flex-row:nth-child(2) {/* Forma de pago */
    width: 7%;
}
.ordersTable.flex-table > .flex-row:nth-child(3) {/* ID Orden */
    width: 11%;
}
.ordersTable.flex-table > .flex-row:nth-child(4) {/* Fecha */
    width: 7%;
}
.ordersTable.flex-table > .flex-row:nth-child(5) {/* Cliente */
    width: 30%;
    justify-content: left;
}
.ordersTable.flex-table > .flex-row:nth-child(6) {/* Envio */
    width: 5%;
}
.ordersTable.flex-table > .flex-row:nth-child(7) {/* Total Orden */
    width: 7%;
}
.ordersTable.flex-table > .flex-row:nth-child(8) {/* Transportista */
    width: 11%;
}
.ordersTable.flex-table > .flex-row:nth-child(9) {/* Estado */
    width: 9%;
}
.ordersTable.flex-table > .flex-row:nth-child(10) {/* Sincro. */
    width: 4%;
}
.ordersTable.flex-table > .flex-row:nth-child(11) {/* Boton editar. */
    width: 2%;
    justify-content: left;
}
/* Estilos para las filas pares*/
.ordersTable.flex-table.row:nth-child(2n) .flex-row {
    background-color: white;
    align-content: center;
    align-items: center;
}

/* Estilos para las filas impares*/
.ordersTable.flex-table.row:nth-child(2n+1) .flex-row {
    background-color: #dadada;
    align-content: center;
    align-items: center;
}

#flexTableEmptyRow>.flex-row {
    width: 100%;
    justify-content: center;
}

@media all and (max-width: 944px) {
    .ordersTable.flex-table > .flex-row:nth-child(2) {/* Forma de pago */
        width: 9%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(4) {/* Fecha */
        width: 10%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(5) {/* Cliente */
        width: 25%;
    }
}

@media all and (max-width: 804px) {

    .ordersTable.flex-table > .flex-row:nth-child(2) {/* Forma de pago */
        width: 9%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(4) {/* Fecha */
        width: 10%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(5) {/* Cliente */
        width: 25%;
    }
    .search-field-group{
        width: 70%;
    }
    .table-container {
        font-size: x-small;
    }
}

@media all and (max-width: 767px) {

    .ordersTable.flex-table > .flex-row:nth-child(2) {/* Forma de pago */
        width: 9%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(4) {/* Fecha */
        width: 10%;
    }
    .ordersTable.flex-table > .flex-row:nth-child(5) {/* Cliente */
        width: 25%;
    }

    .search-field-group{
        width: 75%;
    }

    /* Se modifica la cantidad de columnas que no tengan la clase .top a 6
    en resoluciones por debajo de 767px  */
    .flex-row {
        width: calc(100% / 11);
    }

    .material-switch{
        padding-right: 3rem;
    }

    /* La clase top se utiliza como identificador de las columnas principales
    que estan fuera de las simples flex-row, en este caso son 2 [sku, producto] por eso 50% */
    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
    }
}



@media all and (max-width: 614px) {

    .ordersTable.flex-table > .flex-row:nth-child(5) {/* Cliente */
        justify-content: center;
    }
    .ordersTable.flex-table > .flex-row:nth-child(11) {/* Boton Edit */
        justify-content: center;
    }
    .search-field-group{
        width: 100%;
    }

    .flex-table > .flex-row.last {
        display: unset;
    }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
    }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .flex-row.variation-adder {
        display: none;
    }

    /* Se mantiene el esquema  [sku, producto] al 50% cada una y el resto debajo c/u al 100%*/
    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
    }

    /* Ancho de las columnas*/
    .ordersTable.flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100%;
        text-align: center;
    }


    .ordersTable.flex-table:first-of-type .flex-row {
        background: white;
        border-bottom: 1px solid black;
        font-weight: bold;
        color: black;
    }

    .column .flex-row {
        border-bottom: none;
        display: table-cell;
        width: 50%;
    }
}

@media all and (max-width: 340px) {

    .search-field-group{
        width: 100%;
    }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
    }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .flex-row.variation-adder {
        display: none;
    }

    /* Ancho de las columnas*/
    .ordersTable.flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100%;
        text-align: center;
    }
}
/* Ancho de las columnas*/
.publicationsTable.flex-table > .flex-row:nth-child(1) {/* Nombre */
    width: 10%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(2) {/* Variacion */
    width: 10%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(3) {/* Estado */
    width: 45%;
    justify-content: left;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(4) {/* Ultima Sincronizacion */
    width: 15%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(5) {/* Precio */
    width: 7%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(6) {/* Stock */
    width: 8%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(7) {/* Link */
    width: 5%;
    text-align: center;
}
.publicationsTable.flex-table > .flex-row:nth-child(8) {/* Forzar */
    width: 0%;
    text-align: center;
}
.statusColumn {/* Estado */
    width: 55% !important;
}


/* Estilos para las filas pares*/
.publicationsTable.flex-table.row:nth-child(2n) .flex-row {
    background-color: white;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* Estilos para las filas impares*/
.publicationsTable.flex-table.row:nth-child(2n+1) .flex-row {
    background-color: #dadada;
    align-content: center;
    justify-content: center;
    align-items: center;
}

#flexTableEmptyRow>.flex-row {
    width: 100%;
    justify-content: center;
}

@media all and (max-width: 944px) {

}


@media all and (max-width: 804px) {

    .search-field-group{
        width: 70%;
    }
    .table-container {
        font-size: x-small;
    }
}

@media all and (max-width: 767px) {

    .search-field-group{
        width: 75%;
    }

    /* Se modifica la cantidad de columnas que no tengan la clase .top a 6
    en resoluciones por debajo de 767px  */
    .flex-row {
        width: calc(100% / 7);
    }

    .material-switch{
        padding-right: 3rem;
    }

    /* La clase top se utiliza como identificador de las columnas principales
    que estan fuera de las simples flex-row, en este caso son 2 [sku, producto] por eso 50% */
    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
    }
}

@media all and (max-width: 614px) {
}


@media all and (max-width: 490px) {


    .search-field-group{
        width: 100%;
    }

    .flex-table > .flex-row.last {
        display: unset;
    }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
    }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .publicationsTable.flex-row.variation-adder {
        display: none;
    }

    .flex-row.top {
        width: 50%;
        border-bottom: solid 1px #d9d9d9;
    }

    /* Ancho de las columnas*/
    .publicationsTable.flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100% !important;
        text-align: center;
        justify-content: center !important;
    }


    .column .flex-row {
        border-bottom: none;
        display: table-cell;
        width: 50%;
    }
}

@media all and (max-width: 340px) {

    .search-field-group{
        width: 100%;
    }

    .statusColumn {/* Estado */
        width: 100%;
        justify-content: center;
    }

    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
    }

    /* En resoluciones móviles se ocultan las columnas sobrantes*/
    .flex-row.variation-adder {
        display: none;
    }

    /* Ancho de las columnas*/
    .publicationsTable.flex-table > .flex-row:nth-child(n) {/* Todos los encabezados de la tabla */
        width: 100%;
        text-align: center;
    }
    .publicationsTable.flex-table > .flex-row.new-cell:nth-child(n) {/* Variacion | Valor */
        width: 100%;
    }
}

/**
 * Estilos para el switch material design.
 * Source: https://bootsnipp.com/snippets/xp0QM
*/
.material-switch > input[type="checkbox"] {
    display: none;   
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;  
}

.material-switch > label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: -8px;
    position:absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;
}
.material-switch > label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}
.material-switch > input[type="checkbox"]:checked + label::before {
    background: inherit;
    opacity: 0.5;
}
.material-switch > input[type="checkbox"]:checked + label::after {
    background: inherit;
    left: 20px;
}