/* Styling voor de geschiedenis tabel */
.history-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    table-layout: fixed;
}

.history-table th, .history-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    white-space: nowrap;
    max-width: none;
}

/* Specifieke kolombreedte */
.history-table th:first-child,
.history-table td:first-child {
    width: 110px;
    text-align: left;
}

.history-table th:nth-child(2), 
.history-table td:nth-child(2),
.history-table th:nth-child(3), 
.history-table td:nth-child(3),
.history-table th:nth-child(4), 
.history-table td:nth-child(4),
.history-table th:nth-child(5), 
.history-table td:nth-child(5) {
    width: 90px;
    min-width: 90px;
}

/* Specifieke styling voor de pauze kolom */
.history-table th:nth-child(4),
.history-table td:nth-child(4) {
    background-color: #f9f9f9;
    border-right: 2px solid #eee;
}

/* Specifieke styling voor de totaal kolom */
.history-table th:nth-child(5),
.history-table td:nth-child(5) {
    font-weight: 600;
    background-color: #f5f5f5;
}

.history-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-item {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.history-header {
    background-color: #f5f5f5;
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-content {
    overflow-x: auto;
    padding: 0;
    min-width: 100%;
}

.version-title {
    font-weight: 600;
}

.changed-value {
    background-color: rgba(255, 224, 102, 0.5);
    font-weight: 600;
}

/* Weektotaal styling in geschiedenis */
.week-total-row {
    background-color: rgba(240, 240, 240, 0.5);
    font-weight: 600;
}

.week-total-label {
    text-align: right;
    padding-right: 1rem;
}

.week-total-value {
    font-weight: bold;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Confirmation overlay en dialog styling */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px;
    overflow: hidden;
    touch-action: none;
}

.confirmation-dialog {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 80%;
    max-width: 90%;
    position: relative;
}

/* Wijzigingsgeschiedenis dialog extra breed maken */
.confirmation-dialog.history-dialog {
    width: 95%;
    max-width: 1800px;
    position: relative;
    overflow: auto;
}

/* Groter maken van het geschiedenis dialoog */
.history-dialog {
    width: 95%;
    max-width: 1800px;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.history-dialog h3 {
    margin: 10px 0 20px 0;
    text-align: center;
    font-size: 1.4rem;
}

.history-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(95vh - 120px);
    padding: 0;
    position: relative;
}

/* Styling voor de close-btn */
.close-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    align-self: center;
}

.close-btn:hover {
    background-color: #e9e9e9;
}

/* Payslip action buttons */
.approve-btn {
    background-color: #28a745 !important;
    color: white !important;
    margin-left: 0.25rem;
}

.approve-btn:hover {
    background-color: #218838 !important;
}

.delete-btn {
    background-color: #dc3545 !important;
    color: white !important;
    margin-left: 0.25rem;
}

.delete-btn:hover {
    background-color: #c82333 !important;
}

.replace-btn {
    background-color: #ffc107 !important;
    color: #212529 !important;
    margin-left: 0.25rem;
}

.replace-btn:hover {
    background-color: #e0a800 !important;
}

.archived-text {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* De NIWO suggestie CSS is verwijderd omdat deze niet meer wordt gebruikt */ 