/* --- Uurloon & Navigatie Header --- */
.hourly-rate-settings {
    display: flex;
    align-items: center;
    background: #f0faff;
    padding: 8px 15px;
    border-radius: 10px;
    margin-top: 5px;
    border: 1px solid #54c3ea;
    min-height: 45px;
    transition: all 0.2s ease;
}

.rate-text-display {
    color: #2e7d32; /* Groen voor geld */
    font-size: 1.1rem;
}

.rate-input-small {
    width: 90px !important;
    height: 30px !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    font-weight: bold;
}

/* Zorg dat het edit icoon subtiel is */
.hourly-rate-settings .edit-cat-icon {
    font-size: 0.85rem;
    color: #54c3ea;
    opacity: 0.7;
}

.hourly-rate-settings:hover .edit-cat-icon {
    opacity: 1;
}

.rate-input-small:focus {
    border-color: #54c3ea;
    background-color: white;
}

.work-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 5px 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.period-display {
    font-weight: 800;
    font-size: 1.05rem;
    color: #333;
    min-width: 160px;
    text-align: center;
}

/* --- Tabel Layout & Wrapper --- */
.work-table-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.work-table {
    width: 100%;
    border-collapse: collapse;
}

.work-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #eee;
}

.work-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.work-row:hover td {
    background-color: #f8fafc;
}

/* --- Salaris & Uren Focus --- */
.paid-cell {
    font-weight: 800;
    color: #2e7d32 !important;
    background-color: rgba(46, 125, 50, 0.06);
}

/* --- Footer Statistieken --- */
.work-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-top: 10px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-stat strong {
    color: #334155;
}

.footer-stat.highlight {
    color: #2e7d32;
    background: #f1f8e9;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

/* --- Knoppen in de Tabel --- */
.actions-col {
    text-align: center;
    width: 100px;
}

.btn-table-action {
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    margin: 0 2px;
}

.btn-table-action.edit { color: #64748b; }
.btn-table-action.delete { color: #ef4444; }

.btn-table-action:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

.btn-table-action.delete:hover {
    background: #fef2f2;
}

/* --- Modal Specifieke Toevoegingen --- */
.input-wrapper-modal {
    margin-bottom: 12px;
}

.input-wrapper-modal label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

/* --- MOBIEL: Responsieve Kaarten --- */
@media (max-width: 768px) {
    .planning-content-area {
        padding: 10px !important;
    }

    .work-table thead {
        display: none;
    }

    .work-table, .work-table tbody, .work-table tr, .work-table td {
        display: block;
        width: 100%;
    }

    .work-row {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: white;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        position: relative;
    }

    .work-table td {
        text-align: right;
        padding: 10px 15px;
        border: none;
        position: relative;
        min-height: 40px;
    }

    /* Genereer labels via data-label attribuut */
    .work-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 700;
        color: #94a3b8;
        font-size: 0.75rem;
        text-transform: uppercase;
        top: 50%;
        transform: translateY(-50%);
    }

    .actions-col {
        text-align: center !important;
        border-top: 1px solid #f1f5f9 !important;
        margin-top: 10px;
        padding-top: 15px !important;
        display: flex !important;
        justify-content: center;
        gap: 20px;
    }

    .actions-col::before {
        display: none;
    }

    /* Footer & Header op mobiel */
    .work-header {
        flex-direction: column;
        gap: 15px;
    }

    .work-nav-group {
        width: 100%;
        justify-content: space-between;
    }

    .period-display {
        font-size: 0.95rem;
        min-width: 0;
    }

    .work-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    .footer-stat {
        justify-content: space-between;
    }

    .footer-stat.highlight {
        text-align: center;
        justify-content: center;
        margin-top: 5px;
    }

    .hourly-rate-settings {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }
}