/* scheduling.css — Operations Scheduler Phase A (PHASE-A-SPEC §4.6).
   Desktop board (form-based grid; drag-drop is Phase B) + mobile My Schedule. */

/* ---------- shared ---------- */
.sched-wrap { padding: 12px; max-width: 1400px; margin: 0 auto; }
.sched-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px; }
.sched-toolbar .spacer { flex: 1; }
.sched-btn { border: 1px solid #444; background: #1c1c1e; color: #eee;
  border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.sched-btn:hover { border-color: #f0a63c; }
.sched-btn--primary { background: #f0a63c; border-color: #f0a63c; color: #111;
  font-weight: 600; }
.sched-btn--danger { border-color: #a33; color: #f88; }
.sched-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.sched-tab { border: 0; background: transparent; color: #aaa; padding: 8px 14px;
  cursor: pointer; border-bottom: 2px solid transparent; font-size: 13px; }
.sched-tab.is-active { color: #f0a63c; border-bottom-color: #f0a63c; }
.sched-note { color: #999; font-size: 12px; margin: 6px 0; }
.sched-badge { display: inline-block; border-radius: 10px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; }
.sched-badge--draft { background: #444; color: #ddd; }
.sched-badge--published { background: #2a5599; color: #dbe9ff; }
.sched-badge--confirmed { background: #2c7a3f; color: #dcf5e3; }
.sched-badge--completed { background: #555; color: #ccc; }
.sched-badge--cancelled { background: #6b2a2a; color: #f5c9c9; }
.sched-badge--block { background: #6d5a19; color: #f5e9bd; }

/* ---------- desktop grid ---------- */
.sched-grid-scroll { overflow-x: auto; }
table.sched-grid { border-collapse: collapse; width: 100%; min-width: 900px; }
.sched-grid th, .sched-grid td { border: 1px solid #333; padding: 4px 6px;
  vertical-align: top; font-size: 12px; }
.sched-grid th { background: #191919; color: #bbb; position: sticky; top: 0; }
.sched-grid td.is-today { background: rgba(240, 166, 60, 0.06); }
.sched-emp { min-width: 190px; background: #161616; }
.sched-emp .name { font-weight: 600; color: #eee; }
.sched-emp .sub { color: #888; font-size: 11px; }
.sched-meter { margin-top: 4px; height: 6px; border-radius: 3px; background: #333;
  overflow: hidden; }
.sched-meter > div { height: 100%; background: #4a8f5c; }
.sched-meter.warn > div { background: #d9a53a; }
.sched-meter.over > div { background: #c0392b; }
.sched-meter-label { font-size: 10px; color: #999; margin-top: 2px; }
.sched-chip { display: block; border-radius: 6px; padding: 3px 6px; margin: 2px 0;
  background: #24344d; color: #d7e6ff; cursor: pointer; border: 1px solid #345;
  text-align: left; width: 100%; font-size: 11px; }
.sched-chip.block { background: #4d4324; color: #f0e6bf; border-color: #665a2e; }
.sched-chip.cancelled { text-decoration: line-through; opacity: 0.5; }
.sched-chip .hrs { color: #9fb8dd; }
.sched-cell-add { width: 100%; border: 1px dashed #3a3a3a; background: transparent;
  color: #666; border-radius: 6px; font-size: 11px; padding: 2px; cursor: pointer; }
.sched-cell-add:hover { color: #f0a63c; border-color: #f0a63c; }

/* ---------- exceptions / lists ---------- */
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-list li { border: 1px solid #333; border-radius: 8px; padding: 8px 12px;
  margin-bottom: 8px; background: #191919; font-size: 13px; }
.sched-list .warn { color: #d9a53a; }
.sched-list .bad { color: #e57373; }

/* ---------- modal ---------- */
.sched-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 400; display: flex; align-items: center; justify-content: center; }
.sched-modal { background: #1d1d1f; border: 1px solid #3a3a3a; border-radius: 12px;
  padding: 18px; width: min(460px, 94vw); max-height: 90vh; overflow-y: auto; }
.sched-modal h3 { margin: 0 0 12px; color: #f0a63c; font-size: 16px; }
.sched-field { margin-bottom: 10px; }
.sched-field label { display: block; font-size: 12px; color: #999;
  margin-bottom: 3px; }
.sched-field input, .sched-field select, .sched-field textarea { width: 100%;
  background: #141414; color: #eee; border: 1px solid #3a3a3a; border-radius: 7px;
  padding: 7px 9px; font-size: 13px; box-sizing: border-box; }
.sched-verdicts { border: 1px solid #6b2a2a; background: #241214;
  border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 12px;
  color: #f5c9c9; }
.sched-verdicts.warn { border-color: #6d5a19; background: #221d0e; color: #f0e6bf; }
.sched-modal-actions { display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 14px; }

/* ---------- mobile My Schedule ---------- */
#mysched .sched-wrap { max-width: 640px; }
.mysched-day { margin-bottom: 14px; }
.mysched-day h4 { margin: 0 0 6px; color: #bbb; font-size: 13px; }
.mysched-card { border: 1px solid #333; border-radius: 10px; background: #1a1a1c;
  padding: 10px 12px; margin-bottom: 8px; }
.mysched-card .job { font-weight: 600; color: #eee; font-size: 14px; }
.mysched-card .meta { color: #999; font-size: 12px; margin-top: 2px; }
.mysched-card .addr { color: #8ab; font-size: 12px; margin-top: 2px; }
.mysched-card .addr a, .mysched-card .detail a { color: #f0a63c; }
.mysched-card .detail { color: #ccc; font-size: 12px; margin-top: 5px; }
.mysched-card .instructions { color: #ddd; font-size: 12px; margin-top: 8px;
  padding: 8px; border-radius: 7px; background: #242426; white-space: pre-wrap; }
.mysched-ack { margin-top: 8px; width: 100%; border: 0; border-radius: 8px;
  background: #f0a63c; color: #111; font-weight: 600; padding: 9px;
  font-size: 13px; cursor: pointer; }
.mysched-acked { margin-top: 8px; color: #7bc98a; font-size: 12px;
  font-weight: 600; }
.mysched-changed { border-left: 3px solid #d9a53a; padding-left: 9px; }
