/* ===== EMPLOYEE SCHEDULE MODAL ===== */
.emp-schedule-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
}
.emp-schedule-modal {
    background: #fff; border-radius: 20px;
    width: 95%; max-width: 800px; height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@media (max-width: 767px) {
    .emp-schedule-modal { width: 100%; height: 100%; border-radius: 0; max-width: 100%; }
}

.emp-schedule-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.emp-schedule-header button {
    background: none; border: none; padding: 8px; cursor: pointer;
    border-radius: 8px; display: flex; align-items: center; gap: 4px;
    color: #1a1a1a; font-size: 16px; font-weight: 600;
}
.emp-schedule-header button:hover { background: #f5f5f5; }
.emp-schedule-header svg { width: 24px; height: 24px; stroke: #666; }

.emp-schedule-month { padding: 0 16px 20px; }
.emp-schedule-month-title { font-size: 15px; font-weight: 600; color: #1a1a1a; padding: 16px 0 8px; position: sticky; top: 0; background: #fff; z-index: 5; }
.emp-schedule-calendar { width: 100%; border-collapse: collapse; }
.emp-schedule-calendar th { font-size: 12px; color: #888; padding: 8px 4px; text-align: center; font-weight: 500; }
.emp-schedule-calendar th.weekend { color: #dd1847; }
.emp-schedule-calendar td { padding: 4px; text-align: center; vertical-align: top; border-radius: 8px; cursor: pointer; transition: all 0.15s; position: relative; width: 14.28%; }
.emp-schedule-calendar td:hover { background: #f5f5f5; }
.emp-schedule-calendar td.empty { cursor: default; background: none; }
.emp-schedule-calendar td.selected { background: #fdf2f5; }
.emp-schedule-day { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.emp-schedule-time { font-size: 10px; padding: 2px 4px; border-radius: 4px; display: inline-block; }
.emp-schedule-time.weekend { background: #fce4e4; color: #c62828; }
.emp-day-check { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #dd1847; display: flex; align-items: center; justify-content: center; }

.emp-day-panel { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #f0f0f0; padding: 12px 20px; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); }
.emp-day-panel-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.emp-day-panel-info { font-size: 14px; color: #666; }
.emp-day-panel-info span { font-weight: 600; color: #dd1847; }
.emp-day-panel-actions { display: flex; gap: 8px; }
.emp-day-btn { padding: 10px 16px; border: none; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.emp-day-btn-secondary { background: #f5f5f5; color: #666; }
.emp-day-btn-danger { background: #fff; color: #f44336; border: 1px solid #f44336; }
.emp-day-btn-primary { background: #dd1847; color: #fff; }

.emp-mobile-panel { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #f0f0f0; padding: 12px 16px; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.emp-mobile-panel-content { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #666; }
.emp-mobile-panel-content span { font-weight: 600; color: #dd1847; }
.emp-mobile-panel-actions { display: flex; gap: 6px; }
.emp-mobile-panel-actions button { padding: 8px 12px; border: none; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; }
.emp-mobile-panel-actions button:first-child { background: #f5f5f5; color: #666; }
.emp-mobile-panel-actions button:nth-child(2) { background: #fff; color: #f44336; border: 1px solid #f44336; }
.emp-mobile-panel-actions button:last-child { background: #dd1847; color: #fff; }

/* Пикер месяца */
.emp-month-picker-overlay { display: flex; flex-direction: column; }
.emp-month-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.emp-month-picker-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.emp-month-picker-header button { background: none; border: none; color: #dd1847; font-size: 14px; font-weight: 500; cursor: pointer; }
.emp-month-picker-body { display: flex; flex: 1; overflow: hidden; }
.emp-picker-col { flex: 1; display: flex; flex-direction: column; }
.emp-picker-col:first-child { border-right: 1px solid #f0f0f0; }
.emp-picker-col-title { font-size: 12px; color: #888; text-transform: uppercase; padding: 12px 20px 8px; }
.emp-picker-col > div:last-child { flex: 1; overflow-y: auto; padding: 0 20px 80px; }
.month-picker-item, .year-picker-item { padding: 14px 0; text-align: center; font-size: 16px; color: #1a1a1a; cursor: pointer; border-radius: 10px; transition: all 0.15s; }
.month-picker-item.selected, .year-picker-item.selected { background: #fdf2f5; color: #dd1847; font-weight: 600; }
.emp-month-picker-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; }
.emp-month-picker-footer button { width: 100%; padding: 16px; background: #dd1847; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.emp-schedule-modal > div:nth-child(2) {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}