/* ==============================
   TABLEAU DES COMPOSANTS
   ============================== */

.table-container {
    max-width: 50em;
	padding: 5px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.0em;
	overflow: visible; /* Pour éviter le débordement */
}

.tableaux {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 20px;
    background: white;
    border: 1px solid #d8dce2;
    border-radius: 10px;
    overflow: hidden;
}

.tableaux-commandes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 18px;
    background: white;
    border: 1px solid #d8dce2;
    border-radius: 10px;
    overflow: hidden;
}

/* En-tête */
.tableaux thead th,
.tableaux-commandes thead th {
    padding: 12px 14px;
    background: #34495e;
    color: white;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* Cellules tableaux */
.tableaux tbody td {
    padding: 6px 14px;
    vertical-align: middle;
}

/* Cellules tableaux-commandes */
.tableaux-commandes tbody td {
    padding: 6px 14px;
    border: 1px solid #021228;
    vertical-align: middle;
}

/* Alternance des lignes */

.tableaux-commandes tbody tr:nth-child(even),
.tableaux tbody tr:nth-child(even) {
    background: #f7f9fb;
}

/* Effet au passage de la souris */

.tableaux tbody tr:hover {
    background: #eef3f7;
}

/* Alignement de certaines colonnes */

.tableaux-commandes th:first-child,
.tableaux-commandes td:first-child,
.tableaux th:first-child,
.tableaux td:first-child {
    text-align: center;
    width: 50px;
}

/* Empêche les références de devenir trop difficiles à lire */

.tableaux td:nth-child(2) {
    line-height: 1.0;
}

.pixel {
    width: 10px;
    height: 10px;
    padding: 0 !important;
    border: 1px solid #ccc;
}

.pixel.black {
    background-color: black;
}

.pixel.white {
    background-color: white;
}

/* ==============================
   VERSION SMARTPHONE
   ============================== */

@media (max-width: 600px) {

    .table-container {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .tableaux {
        width: max-content;
        min-width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .tableaux th,
    .tableaux td {
        white-space: nowrap;
    }

    .tableaux th {
        padding: 8px 10px;
    }

    .tableaux td {
        padding: 2px 10px;
    }
}

.container-ogf-ocf {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow-x: auto;
    max-width: 45em;
}

.table-ogf-ocf {
    margin-left: 15px;
    margin-right: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(20px, auto);
    margin-left: auto;
    margin-right: auto;
    max-width: 30em;
}

.table-ogf-ocf .element {
    border: 1px solid gray;
    text-align: center;
    padding-top: 10px;
    font-family: Arial;
    font-weight: bold;
}

.obox1  { grid-column: 1 / 3; grid-row: 1 / 2; }
.obox2  { grid-column: 3 / 4; grid-row: 1 / 3; }
.obox3  { grid-column: 4 / 5; grid-row: 1 / 3; }
.obox4  { grid-column: 1 / 2; grid-row: 2 / 3; background-color: red; color: white; }
.obox5  { grid-column: 2 / 3; grid-row: 2 / 3; background-color: green; color: white; }
.obox6  { grid-column: 1 / 3; grid-row: 3 / 4; }
.obox7  { grid-column: 3 / 5; grid-row: 3 / 4; }
.obox8  { grid-column: 1 / 5; grid-row: 4 / 5; }
.obox9  { grid-column: 1 / 3; grid-row: 5 / 6; }
.obox10 { grid-column: 3 / 5; grid-row: 5 / 6; }