body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: #f0f2f5;
    box-sizing: border-box;
}
* {
    box-sizing: border-box;
}
.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: auto;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.legend-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 14px;
}
.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}
.legend-box.work-day { background-color: #2ecc71; }
.legend-box.day-off { background-color: #95a5a6; }
.legend-box.vacation { background-color: #74b9ff; }
.legend-box.holiday { background-color: #fd79a8; }
.hint {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}
.custom-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}
.fc .fc-toolbar .fc-button {
    background-color: #4361ee !important;
    border-color: #4361ee !important;
    color: white !important;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none !important;
    text-transform: none !important;
    transition: background 0.2s;
}
.fc .fc-toolbar .fc-button:hover {
    background-color: #3651d4 !important;
    border-color: #3651d4 !important;
}
.fc .fc-toolbar .fc-button.fc-button-active {
    background-color: #2c3e8c !important;
    border-color: #2c3e8c !important;
}
.fc .fc-toolbar .fc-clearYear-button {
    background-color: #e76f51 !important;
    border-color: #e76f51 !important;
    font-size: 18px;
    padding: 0 12px;
}
.fc .fc-toolbar .fc-clearYear-button:hover {
    background-color: #d95f43 !important;
    border-color: #d95f43 !important;
}
#calendar {
    margin-bottom: 0;
}
.fc-event {
    display: none !important;
}
.fc-daygrid-day {
    transition: background 0.1s;
}
.fc-daygrid-day:hover {
    filter: brightness(0.97);
    cursor: pointer;
}
.fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
}
.fc-daygrid-day-number {
    font-weight: 700;
    font-size: 14px;
    padding: 4px 0 !important;
    float: none !important;
    text-align: center;
    width: 100%;
}
.fc-daygrid-day-frame {
    min-height: 36px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fc-daygrid-day-events {
    display: none !important;
}
.fc-daygrid-day-bottom {
    display: none !important;
}
.fc-daygrid-day.cell-work-day {
    background-color: #2ecc71 !important;
}
.fc-daygrid-day.cell-day-off {
    background-color: #95a5a6 !important;
}
.fc-daygrid-day.cell-vacation {
    background-color: #74b9ff !important;
}
.fc-daygrid-day.cell-holiday {
    background-color: #fd79a8 !important;
}
.fc .fc-multimonth-month {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 0;
}
.fc .fc-multimonth-header {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}
.fc .fc-col-header-cell {
    padding: 4px 0 !important;
    font-size: 11px;
    font-weight: 500;
    background: #f8f9fa;
}
@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    .container {
        padding: 12px 8px;
    }
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .fc-daygrid-day-number {
        font-size: 13px;
    }
}
