/* =========================================================
   DIN UNION - PRODUCT CHART TABS
   ========================================================= */

.din-chart-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 30px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}


/* =========================================================
   TABS
   ========================================================= */

.din-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    border-bottom: 2px solid #b71919;
}

.din-tab {
    border: 1px solid #d5d5d5;
    border-bottom: none;
    background: #f2f2f2;
    color: #333;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
    text-transform: uppercase;
}

.din-tab:hover {
    background: #e7e7e7;
}

.din-tab.active {
    background: #b71919;
    color: #fff;
    border-color: #b71919;
}


/* =========================================================
   CONTENT
   ========================================================= */

.din-tab-content {
    display: none;
    border: 1px solid #d7d7d7;
    border-top: none;
    padding: 15px;
    background: #fff;
}

.din-tab-content.active {
    display: block;
}


/* =========================================================
   TITLE
   ========================================================= */

.din-chart-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.din-chart-number {
    width: 27px;
    height: 27px;
    min-width: 27px;
    background: #b71919;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.din-chart-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================================
   DRAWING + TABLE
   ========================================================= */

   .din-chart-layout {
display: grid;
grid-template-columns: 190px minmax(0, 1fr);
gap: 18px;
align-items: center;
}


/* =========================================================
   DRAWING
   ========================================================= */

   .din-chart-drawing {
width: 220px;
height: 180px;
display: flex;
align-items: center;
justify-content: center;
}

.din-chart-drawing img {
max-width: 180px;
max-height: 160px;
width: auto;
height: auto;
object-fit: contain;
}


/* =========================================================
   TABLE
   ========================================================= */

.din-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.din-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

.din-table th {
    background: #111;
    color: #fff;
    border: 1px solid #d2d2d2;
    padding: 7px 4px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 600;
}

.din-table td {
    border: 1px solid #d2d2d2;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.din-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.din-table tbody tr:hover {
    background: #f1f1f1;
}

.din-table td:first-child {
    font-weight: 700;
    color: #b71919;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .din-chart-wrapper {
        max-width: 100%;
    }

    .din-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .din-tab {
        flex-shrink: 0;
        padding: 10px 13px;
        font-size: 10px;
    }

    .din-tab-content {
        padding: 10px;
    }

    .din-chart-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .din-chart-drawing {
        width: 100%;
        height: 150px;
    }

    .din-chart-drawing img {
        max-width: 110px;
        max-height: 110px;
    }

    .din-table-wrapper {
        overflow-x: auto;
    }

    .din-table {
        min-width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .din-chart-title h3 {
        font-size: 15px;
    }

    .din-chart-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
}
/* =========================================================
DIN UNION - COMPACT + BALANCED LAYOUT
========================================================= */

.din-chart-layout {
display: grid;

/* image area + table area */
grid-template-columns: 220px minmax(0, 1fr);

gap: 18px;

align-items: center;
}


/* =========================================================
PRODUCT DRAWING
========================================================= */

.din-chart-drawing {
width: 220px;
height: 220px;

display: flex;
align-items: center;
justify-content: center;
}

.din-chart-drawing img {
width: auto;
height: auto;

max-width: 205px;
max-height: 205px;

object-fit: contain;
}


/* =========================================================
TABLE
========================================================= */

.din-table-wrapper {
width: 100%;
overflow-x: auto;
}


/* Compact table but use available area */
.din-table {
width: 100%;

table-layout: auto;

border-collapse: collapse;

font-size: 12px;
}


/* Header */

.din-table th {
padding: 7px 8px;

font-size: 13px;
line-height: 1.15;

text-align: center;

white-space: nowrap;
}


/* Cells */

.din-table td {
padding: 6px 8px;

font-size: 13px;
line-height: 1.15;

text-align: center;

white-space: nowrap;
}


/* First column */

.din-table td:first-child {
font-weight: 700;
color: #b71919;
}


/* =========================================================
KEEP IMAGE + TABLE CENTERED
========================================================= */

.din-chart-layout > .din-chart-drawing,
.din-chart-layout > .din-table-wrapper {
align-self: center;
}


/* =========================================================
LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

.din-chart-layout {
grid-template-columns: 240px minmax(0, 1fr);

gap: 20px;
}

.din-chart-drawing {
width: 240px;
height: 240px;
}

.din-chart-drawing img {
max-width: 220px;
max-height: 220px;
}

}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 991px) {

.din-chart-layout {
grid-template-columns: 180px minmax(0, 1fr);

gap: 15px;
}

.din-chart-drawing {
width: 180px;
height: 180px;
}

.din-chart-drawing img {
max-width: 165px;
max-height: 165px;
}

.din-table th {
padding: 6px 7px;
font-size: 12px;
}

.din-table td {
padding: 5px 7px;
font-size: 12px;
}

}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

.din-chart-layout {
display: block;
}

.din-chart-drawing {
width: 100%;
height: 160px;

margin-bottom: 10px;
}

.din-chart-drawing img {
max-width: 135px;
max-height: 135px;
}

.din-table-wrapper {
width: 100%;

overflow-x: auto;

-webkit-overflow-scrolling: touch;
}

.din-table {
width: max-content;
min-width: 100%;
}

}
/* =========================================================
DIN UNION - COMPACT + BALANCED LAYOUT
========================================================= */

.din-chart-layout {
display: grid;

/* image area + table area */
grid-template-columns: 250px minmax(0, 1fr);

gap: 18px;

align-items: center;
}


/* =========================================================
PRODUCT DRAWING
========================================================= */

.din-chart-drawing {
width: 250px;
height: 250px;

display: flex;
align-items: center;
justify-content: center;
}

.din-chart-drawing img {
width: 250px;
height: 250px;

max-width: 250px;
max-height: 250px;

object-fit: contain;
}


/* =========================================================
TABLE
========================================================= */

.din-table-wrapper {
width: 80%;
overflow-x: auto;
}


/* Compact table but use available area */
.din-table {
width: 100%;

table-layout: auto;

border-collapse: collapse;

font-size: 12px;
}


/* Header */

.din-table th {
padding: 7px 8px;

font-size: 13px;
line-height: 1.15;

text-align: center;

white-space: nowrap;
}


/* Cells */

.din-table td {
padding: 6px 8px;

font-size: 13px;
line-height: 1.15;

text-align: center;

white-space: nowrap;
}


/* First column */

.din-table td:first-child {
font-weight: 700;
color: #b71919;
}


/* =========================================================
KEEP IMAGE + TABLE CENTERED
========================================================= */

.din-chart-layout > .din-chart-drawing,
.din-chart-layout > .din-table-wrapper {
align-self: center;
}


/* =========================================================
LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

.din-chart-layout {
grid-template-columns: 240px minmax(0, 1fr);

gap: 20px;
}

.din-chart-drawing {
width: 240px;
height: 240px;
}

.din-chart-drawing img {
max-width: 220px;
max-height: 220px;
}

}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 991px) {

.din-chart-layout {
grid-template-columns: 180px minmax(0, 1fr);

gap: 15px;
}

.din-chart-drawing {
width: 180px;
height: 180px;
}

.din-chart-drawing img {
max-width: 165px;
max-height: 165px;
}

.din-table th {
padding: 6px 7px;
font-size: 12px;
}

.din-table td {
padding: 5px 7px;
font-size: 12px;
}

}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

.din-chart-layout {
display: block;
}

.din-chart-drawing {
width: 100%;
height: 160px;

margin-bottom: 10px;
}

.din-chart-drawing img {
max-width: 135px;
max-height: 135px;
}

.din-table-wrapper {
width: 100%;

overflow-x: auto;

-webkit-overflow-scrolling: touch;
}

.din-table {
width: max-content;
min-width: 100%;
}

}
