.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-selector {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#month-picker {
    border: none;
    padding: 5px 10px;
    font-weight: 600;
    color: #495057;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    font-family: inherit;
}

#work-display {
    font-size: 1rem;
}

.monthly-table-wrapper {
    width: 100%;
    overflow-x: auto; 
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.work-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background-color: #fff;
    table-layout: fixed;
}
.monthly-table {
    width: auto;
    min-width: 100%;
}
.monthly-table .group-header {
    width: 60px;
}
.monthly-table .sub-group {
    width: 120px;
}
.monthly-table th:not([colspan]), .monthly-table td.names-cell {
    width: 80px;
}
.work-table th, .work-table td {
    border: 1px solid #dee2e6;
    padding: 0;
    text-align: center;
    font-size: 14px;
    vertical-align: middle;
    word-break: break-all;
    height: 50px; 
}

.names-cell .p1, .names-cell .p2, .edit-work-input {
    width: 100%;
    height: 40px; 
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    background-color: transparent;
    outline: none;
    text-align: center;
}
.names-cell .p1, .edit-work-input:first-child {
    border-bottom: 1px solid #f0f0f0;
}
.edit-work-input:focus {
    background-color: #fff !important;
    box-shadow: inset 0 0 0 2px #0d6efd;
    position: relative;
    z-index: 10;
}