.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%;
    }
}