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;
}
.flex-table.row {
    margin-bottom: .5rem;
    cursor: pointer;
}

/* Ancho de las columnas*/
.flex-table > .flex-row:nth-child(1) {/* sku */
    width: 17.5%;
}
.flex-table > .flex-row:nth-child(2) {/* producto */
    width: 45%;
    text-align: left;
}
.flex-table > .flex-row:nth-child(3) {/* estado */
    width: 25%;
    text-align: left;
}
.flex-table > .flex-row:nth-child(4) {/* fecha */
    width: 10%;
}
.flex-table > .flex-row:nth-child(5) {/* dropdown */
    width: 2.5%;
}

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

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

.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 > .fa {
    transition: .5s transform ease-in-out;
}
.flex-table[aria-expanded=true] > .last > .fa {
    transform: rotate(180deg);
}

@media all and (max-width: 1092px) {
    /* Ancho de las columnas*/
    .flex-table > .flex-row:nth-child(1) {/* sku */
        width: 15%;
    }
    .flex-table > .flex-row:nth-child(2) {/* producto */
        width: 40%;
        text-align: left;
    }
    .flex-table > .flex-row:nth-child(3) {/* estado */
        width: 25%;
        text-align: left;
    }
    .flex-table > .flex-row:nth-child(4) {/* fecha */
        width: 15%;
    }
    .flex-table > .flex-row:nth-child(5) {/* dropdown */
        width: 5%;
    }
}

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

@media all and (max-width: 767px) {
    /* 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% / 6);
    }

    /* 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: 430px) {
    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
   }
    /* 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: 50%;
        text-align: center;
    }

    .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) {
    /* En resoluciones móviles se aplica el 100% para cada columna */
    .flex-row {
        width: 100%;
   }

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