/* ===== ONLINE FIXED TIME MODAL ===== */
.ft-employees-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .ft-employees-overlay { align-items: center; } }

.ft-employees-popup {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 600px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@media (min-width: 768px) { .ft-employees-popup { border-radius: 20px; max-height: 75vh; } }

.ft-employees-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px 24px 16px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.ft-employees-header h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.ft-employees-subtitle { font-size: 13px; color: #888; margin: 0; line-height: 1.4; }
.ft-employees-header button { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 8px; color: #666; }
.ft-employees-body { flex: 1; overflow-y: auto; padding: 16px 24px; -webkit-overflow-scrolling: touch; }

.ft-employees-list { display: flex; flex-direction: column; gap: 8px; }

.ft-status-btn { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.ft-status-btn.on { background: #e8f5e9; color: #2e7d32; }
.ft-status-btn.off { background: #f5f5f5; color: #999; }

/* Скелетоны */
.ft-skeleton-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f8f8; border-radius: 12px; }
.ft-skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.ft-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ft-skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.ft-skeleton-line-wide { width: 60%; }
.ft-skeleton-line-narrow { width: 40%; }

/* Модалка дней недели */
.ft-weekdays-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2100;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .ft-weekdays-overlay { align-items: center; } }
.ft-weekdays-popup {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) { .ft-weekdays-popup { border-radius: 20px; max-height: 80vh; } }

.ft-weekdays-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.ft-weekdays-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.ft-weekdays-header button { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 8px; color: #666; }
.ft-weekdays-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }

/* Тумблер */
.ft-toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ft-toggle-row-bordered { padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ft-toggle-label { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.ft-toggle-label-sm { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.ft-toggle-hint { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.4; }

.client-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.client-toggle input { opacity: 0; width: 0; height: 0; }
.client-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .3s; border-radius: 26px; }
.client-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background: #fff; transition: .3s; border-radius: 50%; }
.client-toggle input:checked + .client-toggle-slider { background: #dd1847; }
.client-toggle input:checked + .client-toggle-slider:before { transform: translateX(22px); }

.ft-disabled-section { opacity: 0.4; pointer-events: none; }
.ft-disabled-section.ft-enabled { opacity: 1; pointer-events: auto; }

/* Секция */
.ft-section { margin-bottom: 24px; }
.ft-section-bordered { padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ft-section-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.ft-section-desc { font-size: 12px; color: #888; margin: 0 0 12px; line-height: 1.4; }

/* Дни недели */
.ft-weekdays { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-weekday {
    width: 40px; height: 40px; border-radius: 10px;
    border: 2px solid #e8e8e8; background: #fff;
    font-size: 13px; font-weight: 500; color: #666;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.ft-weekday.active { background: #dd1847; border-color: #dd1847; color: #fff; }

.ft-time-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }

/* Кнопка действия */
.ft-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: #fdf2f5;
    border: 1px solid #dd1847; border-radius: 10px;
    color: #dd1847; font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.ft-action-btn:hover { background: #dd1847; color: #fff; }
.ft-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Мини-календарь */
.ft-mini-calendar { margin-top: 12px; }
.ft-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ft-cal-nav { background: none; border: none; padding: 4px; cursor: pointer; border-radius: 6px; color: #666; }
.ft-cal-month { font-size: 14px; font-weight: 600; }
.ft-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 4px; }
.ft-cal-weekdays span { font-size: 11px; color: #999; padding: 4px 0; }
.ft-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ft-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 13px; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.ft-cal-day:hover { background: #f5f5f5; }
.ft-cal-day.other-month { color: #ccc; cursor: default; }
.ft-cal-day.today { border: 2px solid #dd1847; font-weight: 600; }
.ft-cal-day.selected { background: #fdf2f5; color: #dd1847; font-weight: 600; }
.ft-cal-day.day-off { background: #fce4e4; color: #c62828; }

/* Панель выбора */
.ft-selection-panel {
    position: fixed; 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);
    z-index: 100; display: none;
}
.ft-selection-panel.show { display: block; }
.ft-selection-panel-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ft-selection-info { font-size: 14px; color: #666; }
.ft-selection-info span { font-weight: 600; color: #dd1847; }
.ft-selection-actions { display: flex; gap: 8px; }
.ft-selection-btn { padding: 10px 16px; border: none; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.ft-selection-btn-secondary { background: #f5f5f5; color: #666; }
.ft-selection-btn-danger { background: #fff; color: #f44336; border: 1px solid #f44336; }
.ft-selection-btn-primary { background: #dd1847; color: #fff; }

/* Попап времени */
.mbt-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2200;
    display: flex; align-items: center; justify-content: center;
}
.mbt-popup {
    background: #fff; border-radius: 20px; width: 90%; max-width: 400px;
    max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
}
.mbt-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0;
}
.mbt-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.mbt-header button { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 8px; color: #666; }
.mbt-body { padding: 16px; overflow-y: auto; }