/* ESG62 tables: same soft look as ESG51-61 (rounded frame, dark blue header,
   horizontal lines only, light-blue row headers). The frame sits on
   .esg-table-scroll so the "Source" note under two tables stays outside it. */
.esg62-page .esg62-table-wrap {
    width: 100%;
}

.esg62-page .esg62-table-wrap .esg-table-scroll {
    border: 1px solid var(--esg-process-blue-soft);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(23, 58, 138, 0.06);
}

.esg62-page .esg62-table {
    border: none;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.esg62-page .esg62-table th,
.esg62-page .esg62-table td {
    border: none;
    border-bottom: 1px solid var(--esg-process-blue-soft);
    color: var(--esg-color-heading-strong);
    font-size: 16px;
    line-height: 1.65;
    padding: 14px 14px;
    text-align: center;
    text-indent: 0;
    vertical-align: middle;
}

.esg62-page .esg62-table tbody tr:last-child th,
.esg62-page .esg62-table tbody tr:last-child td {
    border-bottom: none;
}

.esg62-page .esg62-table tbody td + td {
    border-left: 1px solid var(--esg-process-blue-soft);
}

.esg62-page .esg62-table thead th {
    background: var(--esg-process-blue-strong);
    color: var(--esg-color-white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.esg62-page .esg62-table thead th + th {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* Second header row: lighter, divided from the row above by a clear white line (docx) */
.esg62-page .esg62-table thead tr + tr th {
    border-top: 2px solid rgba(255, 255, 255, 0.85);
}

.esg62-page .esg62-table thead th.esg62-subhead {
    background: var(--esg-process-blue);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.esg62-page .esg62-table tbody th {
    background: var(--esg-process-blue-soft);
    border-bottom-color: var(--esg-color-white);
    color: var(--esg-process-blue-strong);
    font-size: 16px;
    font-weight: 700;
}

.esg62-page .esg62-table .esg62-mainhead {
    width: 18%;
}

.esg62-page .esg62-esg-table td,
.esg62-page .esg62-plan-table td {
    text-align: left;
}

.esg62-page .esg62-plan-table td {
    vertical-align: top;
}

.esg62-page .esg62-plan-table th:nth-child(1) { width: 27%; }
.esg62-page .esg62-plan-table th:nth-child(2) { width: 28%; }
.esg62-page .esg62-plan-table th:nth-child(3) { width: 21%; }
.esg62-page .esg62-plan-table th:nth-child(4) { width: 24%; }

.esg62-page .esg62-list {
    margin: 4px 0 0;
    padding-left: 1.2em;
}

.esg62-page .esg62-list li {
    color: var(--esg-color-heading-strong);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 6px;
}

.esg62-page .esg62-list li:last-child {
    margin-bottom: 0;
}

/* Local procurement tables: "Location / Materials" row reads as a light sub-header */
.esg62-page .esg62-local-table thead tr:nth-child(2) th {
    background: var(--esg-process-blue-soft);
    color: var(--esg-process-blue-strong);
    font-weight: 700;
}

.esg62-page .esg62-local-table thead tr:nth-child(2) th + th {
    border-left-color: var(--esg-color-white);
}

.esg62-page .esg62-local-table tbody td,
.esg62-page .esg62-procurement-table tbody td {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.esg62-page .esg62-table-title {
    margin: 8px 0 12px;
    color: var(--esg-color-heading-strong);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.35;
    text-align: center;
}

.esg62-page .esg62-note {
    margin: 8px 0 0;
    color: var(--esg-color-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    text-indent: 0;
}

@media (max-width: 991px) {
    .esg62-page .esg62-table th,
    .esg62-page .esg62-table td,
    .esg62-page .esg62-list li {
        font-size: 15px;
    }

    .esg62-page .esg62-table th,
    .esg62-page .esg62-table td {
        padding: 12px 10px;
    }
}

/* Phones */
@media (max-width: 768px) {
    /* Risk management plan: each column becomes a titled card (labels from td[data-label]) */
    .esg62-page .esg62-plan-table,
    .esg62-page .esg62-plan-table tbody,
    .esg62-page .esg62-plan-table tr,
    .esg62-page .esg62-plan-table td {
        display: block;
        width: auto !important;
    }

    .esg62-page .esg62-plan-table thead {
        display: none;
    }

    .esg62-page .esg62-plan-table td {
        border: none !important;
        padding: 0 14px 14px;
    }

    .esg62-page .esg62-plan-table td + td {
        border-top: 1px solid var(--esg-process-blue-soft) !important;
    }

    .esg62-page .esg62-plan-table td::before {
        content: attr(data-label);
        display: block;
        margin: 0 -14px 10px;
        padding: 10px 14px;
        background: var(--esg-process-blue-strong);
        color: var(--esg-color-white);
        font-size: 16px;
        font-weight: 700;
    }

    /* Implementation status + procurement tables keep their grid and scroll inside the frame */
    .esg62-page .esg62-esg-table {
        min-width: 640px;
    }

    .esg62-page .esg62-local-table {
        min-width: 560px;
    }

    .esg62-page .esg62-table-wrap .esg-table-scroll {
        overflow-x: auto;
    }

    .esg62-page .esg62-table-title {
        font-size: 17px;
    }
}
