/* ===== ПТО — стили модуля «График работ» (schedule.css) ===== */

.sched-switch { display: flex; gap: 8px; margin: 12px 0; }
.sched-switch button {
  padding: 8px 18px; border: 1px solid #d0d7de; border-radius: 20px;
  background: #fff; cursor: pointer; font-size: 14px;
}
.sched-switch button.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ---- Лента времени ---- */
.gantt { overflow-x: auto; border: 1px solid #e0e0e0; border-radius: 10px; padding: 8px; }
.gantt-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.gantt-range { font-weight: 600; }
.gantt-head { display: flex; align-items: center; }
.gantt-title { width: 220px; min-width: 220px; font-weight: 600; font-size: 13px; }
.gantt-day { width: 44px; text-align: center; font-size: 12px; color: #666; }
.gantt-day.today { color: #1a73e8; font-weight: 700; }
.gantt-obj { margin: 14px 0 4px; font-weight: 700; color: #1a73e8; font-size: 14px; }
.gantt-row { display: flex; align-items: center; height: 40px; cursor: pointer; }
.gantt-row:hover { background: #f6f9ff; }
.gantt-name { width: 220px; min-width: 220px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.gantt-track { position: relative; height: 24px; flex: 1; min-width: 616px; }
.gantt-bar { position: absolute; top: 2px; height: 20px; border-radius: 5px; opacity: .92; }
.gantt-bar.late { box-shadow: inset 0 0 0 2px #d93025; }
.gantt-empty { padding: 24px; color: #888; text-align: center; }

/* ---- Календарь ---- */
.cal-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.cal-month { font-weight: 700; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-weight: 600; font-size: 12px; color: #555; padding: 4px 0; }
.cal-cell { min-height: 76px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 3px; font-size: 11px; background: #fff; }
.cal-cell.empty { background: #fafafa; }
.cal-cell.today { border-color: #1a73e8; border-width: 2px; }
.cal-num { font-weight: 600; margin-bottom: 2px; }
.cal-chip { border-radius: 4px; color: #fff; padding: 1px 4px; margin: 2px 0; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-more { color: #888; }

/* ---- Мои работы ---- */
.mine-card { display: flex; align-items: center; gap: 10px; border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; flex-wrap: wrap; }
.mine-card:hover { background: #f6f9ff; }
.mine-name { font-weight: 600; }
.mine-meta { color: #777; font-size: 13px; flex: 1; }
.status-pill { color: #fff; border-radius: 10px; padding: 2px 10px; font-size: 12px; }

/* ---- Общее ---- */
.gantt-toolbar button, .cal-toolbar button, .modal-actions button, .mine-card button {
  padding: 6px 14px; border: 1px solid #d0d7de; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px;
}
.gantt-toolbar button.primary, .cal-toolbar button.primary, .modal-actions button.primary {
  background: #188038; color: #fff; border-color: #188038; font-weight: 600;
}
.modal-actions button.danger { background: #fff; color: #d93025; border-color: #d93025; }
#sched-modal label { display: block; margin: 10px 0; font-size: 13px; }
#sched-modal input, #sched-modal select {
  display: block; width: 100%; margin-top: 4px; padding: 8px;
  border: 1px solid #d0d7de; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.modal-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.muted { color: #777; }
