/**
 * 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;
}
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;
}
div.page-section {
  display:flex;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

div.page-section-container {
  width: 800px;
  max-width: 800px;
}

div.section-box {
  padding: 10px;
  margin-bottom: 10px;
}

div.columned-box {
  display: flex;
  width: 100%;
}

div.col-90p {
  width: 90%;
}

div.col-10p {
  width: 10%;
  text-align: right;
}

p.warehouse-info-line {
  margin: 0;
}

h5.warehouse-title {
  margin: 10px 0px;
}

div.page-top-section {
  text-align: right;
  margin-bottom: 10px;
}

div.wh-form-bottom {
  text-align: right;
}

.material-switch > span.label-span {
  margin-right: 10px;;
}