.worktime-backfill-page {
    --page-bg: #f7f8fc;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    --primary: #2563eb;
    --text-main: #0f172a;
    --text-sub: #475569;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--page-bg);
    color: var(--text-main);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--primary);
}

.title {
    font-size: 1rem;
    font-weight: 600;
}

.subtext {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.month-picker {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.month-picker label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.month-switcher {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.month-label {
    font-size: 1rem;
    font-weight: 600;
    min-width: 110px;
    text-align: center;
}

.employee-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employee-selector {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.employee-selector label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.employee-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
}

.employee-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.entry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: flex-end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.field input {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: #ffffff;
}

.entry-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.icon-button {
    border-radius: 10px;
    min-width: 42px;
}

.month-nav {
    background: #e7f0fb !important;
    color: #1f2937 !important;
}
.save-button {
    background: #16a34a !important;
    color: #ffffff !important;
}

.delete-button {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.danger-button {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 10px;
}

.worktime-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.table-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #f8fafc;
}

.table-header {
    background: #eef2ff;
    font-weight: 600;
}

.empty-state {
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px dashed var(--card-border);
    color: var(--text-sub);
}

@media (min-width: 720px) {
    .title {
        font-size: 1.1rem;
    }

    .header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .employee-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .employee-selector {
        flex: 1 1 60%;
    }

    .employee-summary {
        flex: 1 1 40%;
        justify-content: flex-end;
    }

    .entry-row {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .field {
        flex: 1 1 calc(25% - 0.75rem);
        min-width: 180px;
    }

    .entry-actions {
        align-self: flex-end;
        padding-bottom: 0.2rem;
    }

    .table-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .table-row div {
        flex: 1 1 20%;
    }
}
