.ptp-table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

.ptp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ptp-table th,
.ptp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.ptp-table th {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Zebra rows */
.ptp-table.zebra tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.ptp-table.zebra tbody tr:hover {
    background-color: #f3f4f6;
    transition: background-color 0.2s ease;
}

/* Action column */
.ptp-action-col {
    text-align: center;
    width: 140px;
    white-space: nowrap;
}

/* Button styling - basis stijlen, kleuren worden dynamisch toegevoegd via inline style */
.ptp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.ptp-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ptp-button:active {
    transform: translateY(0);
}

.ptp-button-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.ptp-button:hover .ptp-button-icon {
    transform: translateX(4px);
}

.ptp-no-action {
    color: #9ca3af;
    font-size: 14px;
}

/* MOBIEL FIX - Responsive table */
@media (max-width: 768px) {

    .ptp-table thead {
        display: none;
    }

    .ptp-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 16px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .ptp-table.zebra tbody tr:nth-child(even) {
        background: #fff;
    }
    
    .ptp-table.zebra tbody tr:nth-child(even) {
        background: #fff;
    }

    .ptp-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border: none;
        gap: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .ptp-table td:last-child {
        border-bottom: none;
    }

    .ptp-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        min-width: 100px;
        flex-shrink: 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .ptp-action-col::before {
        content: "Actie";
    }
    
    .ptp-action-col {
        width: auto;
        white-space: normal;
    }

    .ptp-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ptp-button-icon {
        font-size: 12px;
    }
}

/* Kleine desktop optimalisaties */
@media (min-width: 769px) and (max-width: 1024px) {
    .ptp-table th,
    .ptp-table td {
        padding: 10px 12px;
    }
    
    .ptp-action-col {
        width: 120px;
    }
    
    .ptp-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Print stijlen */
@media print {
    .ptp-table {
        border: 1px solid #ddd;
    }
    
    .ptp-table th,
    .ptp-table td {
        border: 1px solid #ddd;
    }
    
    .ptp-button {
        display: none;
    }
}