.pz-table-outer {
    display: flex;
    width: 100%;
}

.pz-table-wrap {
    width: 100%;
    box-sizing: border-box;
}

.pz-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pz-table-title {
    margin: 0 0 16px;
}

.pz-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
}

.pz-table th,
.pz-table td {
    border-style: solid;
    border-width: 1px;
    border-color: #000;
    vertical-align: middle;
    font-weight: 700;
}

.pz-cell-label {
    text-align: left;
}

.pz-cell-value {
    text-align: center;
}

.pz-row-section th {
    text-align: center;
}

.pz-table-placeholder {
    padding: 30px;
    border: 2px dashed #999;
    background: #f9f9f9;
    text-align: center;
    color: #666;
    font-weight: 700;
    border-radius: 4px;
}

/* Accordéon */
.pz-table .pz-row[hidden] {
    display: none !important;
}

.pz-sec {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pz-sec__text {
    flex: 1 1 auto;
    min-width: 0;
}

.pz-row-section th {
    position: relative;
}

.pz-accordion--row .pz-row-section th {
    cursor: pointer;
}

.pz-table .pz-sec__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pz-table .pz-sec__btn:hover {
    background: rgba(0, 0, 0, 0.32);
}

.pz-table .pz-sec__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.pz-sec__chev {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.pz-row-section.is-open .pz-sec__chev {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .pz-sec__chev,
    .pz-table .pz-sec__btn {
        transition: none;
    }
}

/* Mode empilé sur mobile */
@media (max-width: 767px) {
    .pz-stacked .pz-table,
    .pz-stacked .pz-table tbody,
    .pz-stacked .pz-table tr,
    .pz-stacked .pz-table th,
    .pz-stacked .pz-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .pz-stacked .pz-table th,
    .pz-stacked .pz-table td {
        border-width: 0 0 1px 0 !important;
    }

    .pz-stacked .pz-row-data .pz-cell-label,
    .pz-stacked .pz-row-header .pz-cell-label {
        text-align: left;
    }

    .pz-stacked .pz-row-data .pz-cell-value,
    .pz-stacked .pz-row-header .pz-cell-value {
        text-align: left;
        padding-left: 24px !important;
    }

    .pz-stacked .pz-row-section th {
        border-width: 0 !important;
    }

    .pz-stacked .pz-sec {
        gap: 8px;
    }
}
