.schedules-panel{padding:0}.schedules-panel table{min-width:940px}.schedules-panel th:nth-child(5),.schedules-panel th:nth-child(6),.schedules-panel td:nth-child(5),.schedules-panel td:nth-child(6){text-align:center}.schedule-weekly-total{display:block;color:#273b55;font-size:12px}.schedule-weekly-total.practical{color:var(--color-primary)}.schedule-expected-extra{display:block;margin-top:3px;color:var(--muted);font-size:9px;white-space:nowrap}.days-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.days-grid label{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #dce3ec;border-radius:7px;padding:9px 4px;color:#526174;font-size:12px;font-weight:650}.days-grid input{accent-color:var(--blue)}.practical-schedule-fields{padding:12px;border:1px solid #dbe7f7;border-radius:10px;background:#f7faff}.practical-schedule-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.practical-schedule-heading strong{color:#263b57;font-size:12px}.practical-schedule-heading small{color:var(--muted);font-size:10px;font-weight:500}.practical-time-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}@media(max-width:720px){.days-grid{grid-template-columns:repeat(4,1fr)}.practical-schedule-heading{align-items:flex-start;flex-direction:column;gap:3px}.practical-time-grid{grid-template-columns:1fr}}

.schedule-needs-configuration{background:#fff9ed}
.schedule-needs-configuration td:first-child{color:#9a5d08}
.schedule-needs-configuration td:first-child small{display:block;margin-top:3px;color:#b77718;font-size:9px;font-weight:650}
.schedule-linked-state{display:block;margin-top:3px;color:#64748b;font-size:9px;font-weight:650}.schedule-linked-state strong{color:#315fd4}.schedule-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.schedule-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.schedule-row-actions .row-button{white-space:nowrap}.schedules-panel .row-button[data-view-schedule-id]{background:#f7f9fc;color:#3a4b62;border:1px solid #dfe5ed}.schedules-panel .row-button[data-view-schedule-id]:hover{background:#eef3fb;border-color:#bccce0}.schedules-panel .row-button[data-clone-schedule-id]{background:#eaf0ff;color:#315fd4}.schedules-panel .row-button[data-clone-schedule-id]:hover{background:#dfe8ff}@media(max-width:720px){.schedule-page-actions{align-items:stretch;flex-direction:column}.schedule-page-actions .outline-button{display:inline-flex}.schedule-row-actions{justify-content:flex-start}}

/* Alinhamento vertical e ações consistentes na tabela de Jornadas. */
.schedules-panel tbody tr{vertical-align:middle}
.schedules-panel tbody td{height:61px;vertical-align:middle}
.schedules-panel tbody td:first-child{display:table-cell!important;vertical-align:middle!important;line-height:1.25}
.schedule-name-stack,.schedule-practical-stack{position:relative;display:flex;align-items:center;min-height:28px}
.schedule-name-stack{justify-content:flex-start}
.schedule-practical-stack{justify-content:center}
.schedule-name-main,.schedule-practical-stack .schedule-weekly-total{display:block;line-height:1.2}
.schedule-name-stack>small,.schedule-practical-stack>small{position:absolute;top:calc(50% + 8px);display:block;line-height:1.2;white-space:nowrap}
.schedule-name-stack>small{left:0}
.schedule-practical-stack>small{left:50%;transform:translateX(-50%)}
.schedules-panel .schedule-expected-extra{margin-top:0}
.schedules-panel tbody td:last-child{width:145px;text-align:right!important;vertical-align:middle!important}
.schedules-panel tbody td:last-child>.row-button{display:inline-flex;align-items:center;justify-content:center;width:70px;min-width:70px;height:30px!important;min-height:30px!important;padding:6px 8px!important;line-height:1!important;margin:0}
.schedules-panel .schedule-row-actions{min-height:30px;align-items:center;justify-content:flex-end;gap:4px}
.schedules-panel .schedule-row-actions .row-button{width:70px;min-width:70px;height:30px!important;min-height:30px!important}

/* Vínculos de uma jornada (item 4 de 17/08/2026). "Em uso por N" dizia quantas
   pessoas travavam a escala, nunca quais — este diálogo lista, desvincula e
   copia o log antes, para a escala poder ser reaplicada depois da edição. */
.schedule-links-dialog{width:min(680px,calc(100% - 32px))}
.schedule-links-dialog .schedule-links-hint{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff9ef;color:#7a5410;font-size:12px;line-height:1.5}
.schedule-links-table{max-height:320px;overflow:auto;margin-top:14px;border:1px solid var(--color-border);border-radius:12px}
.schedule-links-table table{width:100%;border-collapse:collapse}
.schedule-links-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#64748b;font-size:10px;letter-spacing:.06em;text-align:left;padding:9px 12px}
.schedule-links-table td{padding:9px 12px;border-top:1px solid var(--color-border);font-size:12.5px}
/* Mais de uma vigência na mesma escala (a pessoa saiu e voltou) vira uma
   pílula por data, em vez de uma lista corrida sem separação. */
.schedule-link-term{display:inline-block;margin:1px 4px 1px 0;padding:2px 8px;border-radius:999px;background:#eef2f7;color:#41536a;font-size:11px;font-weight:700}
.schedule-link-legacy{color:#8a94a6;font-size:11px}
.schedule-links-dialog .danger-button{border-color:#dc3545;background:#dc3545}

/* Excluir jornada: só aparece na linha SEM vínculo nenhum (nem histórico).
   Discreta por padrão e vermelha só no hover — é ação destrutiva, mas fica ao
   lado de "Editar" numa lista que se percorre rápido, e não pode competir com
   ela pelo olhar. */
/* Escopado igual a regra que define o botao da linha
   (.schedules-panel .schedule-row-actions .row-button, especificidade 0,3,0):
   sem isso .schedule-delete (0,1,0) perde e o botao sai com a cor do Editar,
   indistinguivel de uma acao inofensiva numa lista que se percorre rapido. */
.schedules-panel .schedule-row-actions .schedule-delete{color:#8a6a72}
.schedules-panel .schedule-row-actions .schedule-delete:hover{
  border-color:#f3c3ca;
  background:#fff5f6;
  color:#b42335;
}

/* Linha arquivada: presente, mas claramente fora do fluxo de trabalho. Não some
   por opacidade (texto apagado é ilegível, e ela ainda precisa ser lida para
   quem foi conferir o histórico) — o que muda é o fundo e um selo. */
.schedule-archived-row{background:#f7f9fc}
.schedule-archived-row .schedule-name-main{color:#5b6b82}
.schedule-archived-row .schedule-name-main::after{
  content:"arquivada";
  display:inline-block;
  margin-left:8px;
  padding:2px 7px;
  border-radius:999px;
  background:#e8edf4;
  color:#5b6b82;
  font-size:9px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  vertical-align:middle;
}
.schedules-panel .schedule-row-actions .schedule-restore{color:#2d5fd0}
.schedules-panel .schedule-row-actions .schedule-restore:hover{
  border-color:#c3d7fb;
  background:#f2f7ff;
  color:#2d5fd0;
}

/* Jornadas: barra de páginas na mesma linha da busca — ver renderSchedules em
   app.js. O topo compacto do card agora é regra geral (fim de ui-refinement.css). */
#jornadas #scheduleCount .lista-paginas{margin:0;padding:0;border-top:0;gap:14px}
@media(max-width:720px){#jornadas .schedules-panel>.people-toolbar{flex-wrap:wrap}#jornadas #scheduleCount{display:block;width:100%}#jornadas #scheduleCount .lista-paginas{justify-content:space-between}}
