/**
 * Schedule — Расписание
 */

.schedule-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 12px; }
.month-title { font-size: 18px; font-weight: 800; min-width: 180px; text-align: center; }
.schedule-shop-toggles { display: flex; gap: 8px; }
.shop-toggle { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; transition: all .15s; }
.shop-toggle.active { background: var(--text); color: #fff; border-color: var(--text); }
.schedule-tables { display: grid; gap: 20px; margin-bottom: 16px; }
.schedule-tables.side-by-side { align-items: start; }
.schedule-shop-block.hidden { display: none; }
.schedule-shop-title { font-size: 14px; font-weight: 800; padding: 10px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: #fff; }
.schedule-shop-title.aurora { background: var(--aurora); }
.schedule-shop-title.gudok { background: var(--gudok); }
.schedule-card { border-radius: 0 0 var(--radius) var(--radius); padding: 0; }
.schedule-table { font-size: 12px; table-layout: fixed; width: 100%; }
.schedule-table td { padding: 4px 8px; height: 32px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-table .day-cell { width: 52px; }
.schedule-table .schedule-cell { width: calc((100% - 52px) / 2); }
.schedule-cell { cursor: pointer; position: relative; min-width: 80px; }
.day-cell { font-weight: 700; font-family: var(--font-mono); white-space: nowrap; min-width: 60px; font-size: 11px; }
.empty-slot { color: var(--text-muted); font-size: 16px; cursor: pointer; }
.schedule-dropdown { position: absolute; top: 100%; left: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 50; min-width: 130px; overflow: hidden; }
.dd-option { padding: 8px 12px; cursor: pointer; font-size: 12px; transition: background .1s; }
.dd-option:hover { background: var(--bg3); }
.dd-option.clear { color: var(--red); font-weight: 700; border-bottom: 1px solid var(--border); }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Чипы сотрудников в легенде */
.sch-legend-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sch-legend-stat { font-family: var(--font-mono); font-size: 12px; opacity: .6; }
.sch-legend-pay { background: #fff3e0; color: #e65100; }
.sch-legend-paid { background: #e8f5e9; color: #2e7d32; }
.shifts-count-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shifts-count-item { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.shifts-count-item .count { font-family: var(--font-mono); font-weight: 800; }

/* Часы смены в ячейке графика */
.schedule-hours { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); margin-left: 4px; }
.schedule-hours-custom { color: var(--accent); font-weight: 700; }
.schedule-hours-btn { cursor: pointer; display: inline-block; transition: opacity .15s; }
.schedule-hours-btn:hover { opacity: .7; }
.schedule-cell .emp-tag { font-size: 11px; }

/* ══════════════════════════════════════════════
   Платёжный календарь (третья колонка)
   ══════════════════════════════════════════════ */
.pay-table { table-layout: fixed; width: 100%; }
.pay-cell { padding: 2px 4px !important; height: 32px; vertical-align: middle; white-space: normal; line-height: 22px; box-sizing: border-box; }
.pay-table tbody tr { height: 32px; }
.pay-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: rgba(255,51,102,.1); color: #FF3366; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: all .15s; border: 1px solid rgba(255,51,102,.25); line-height: 1.3; }
.pay-chip:hover { background: rgba(255,51,102,.2); transform: scale(1.03); }
.pay-chip b { font-family: var(--font-mono); font-size: 11px; font-weight: 800; }
.pay-chip-paid { background: rgba(52,199,89,.12); color: var(--green); border-color: rgba(52,199,89,.3); text-decoration: line-through; opacity: .7; }
.pay-chip-overdue { background: rgba(255,59,48,.12); color: var(--red); border-color: var(--red); font-weight: 800; }
.pay-cell:has(.pay-chip) { background: rgba(255,51,102,.03); }
.pay-add-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all .15s; line-height: 1; }
.pay-add-btn:hover { background: var(--accent); color: #fff; }
.pay-add-circle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--border); color: var(--text-muted); font-size: 16px; font-weight: 700; cursor: pointer; transition: all .15s; }
.pay-add-circle:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,51,102,.06); }

