/* Ajustes aprovados da V1.1; a paleta e os componentes continuam na V15. */
.v11-schedule-list { display:grid; gap:10px; }
.v11-list-row,.v11-list-head { display:grid; grid-template-columns:minmax(180px,2fr) 150px 140px minmax(120px,1fr) 220px; align-items:center; gap:16px; }
.v11-list-head { padding:12px; font-weight:700; }
#settingsItems { z-index:40; }
#scheduleTopicChecks { display:grid; gap:8px; max-height:240px; overflow:auto; }
#auditRows pre { white-space:pre-wrap; overflow-wrap:anywhere; }
#importPreview .table-wrap { max-height:350px; overflow:auto; }
#importInputs,#importPreview { min-width:0; overflow-wrap:anywhere; }
#importInputs { display:grid; gap:17px; }
#importInputs input,#importInputs select { min-width:0; max-width:100%; }
#view-generator .participant-panel { display:none; }
[data-action="delete-schedule"],[data-action="extra-topic"],[data-action="replace-instructor"],#resetDemo { display:none; }
@media(max-width:700px){
 .tabs { overflow:visible; flex-wrap:wrap; }
 .settings-menu { position:relative; }
 .settings-items { position:absolute; left:auto; right:0; width:min(280px,85vw); }
 .v11-list-head { display:none; }
 .v11-list-row { grid-template-columns:1fr; gap:8px; }
 .page-heading { flex-wrap:wrap; }
 .page-heading>button { max-width:100%; }
}

#view-generator {display:none!important}
.v11-program-row {display:grid;grid-template-columns:45px minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:end;grid-column:1/-1;min-width:0}
.v11-program-row label,.v11-program-row select {min-width:0;width:100%}
.v11-program-row [data-shift-hint] {grid-column:1/-1;overflow-wrap:anywhere}
@media(max-width:600px){.v11-program-row{grid-template-columns:1fr}.v11-program-row strong{padding-top:10px}}

#plannerSelection141 {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.v141-task .check-label,.v141-agenda summary {overflow-wrap:anywhere}
[data-instructor-picker] input,[data-instructor-picker] select,#replacementPicker input,#replacementPicker select {width:100%;min-width:0;margin-top:6px}
.v11-program-row>div {min-width:0}
@media(max-width:850px){.v11-program-row{grid-template-columns:1fr 1fr}.v11-program-row>strong,.v11-program-row>div{grid-column:1/-1}}
@media(max-width:600px){.v11-program-row{grid-template-columns:1fr}}

/* Sugestões de instrutor e cartões compactos. */
.instructor-combobox { position:relative; min-width:0; }
.instructor-combobox [role=listbox] { position:absolute; top:100%; left:0; right:0; z-index:30; max-height:240px; overflow:auto; background:white; color:#14213d; border:1px solid #cbd5e1; border-radius:8px; box-shadow:0 5px 15px #0002; }
.instructor-combobox [role=option] { padding:10px; cursor:pointer; }
.instructor-combobox [role=option] small { display:block; }
.instructor-combobox [role=option]:hover,.instructor-combobox [aria-selected=true] { background:#e7f1ff; }
.v141-task.compact-task { display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 6px; padding:6px; margin:4px 0; min-width:0; }
.compact-title { grid-column:2; border:0; background:transparent; color:inherit; text-align:left; font:inherit; font-weight:600; padding:0; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; }
.compact-task .v141-state { grid-column:2; font-size:11px; margin:0; }
.compact-task input[type=checkbox] { width:16px; height:16px; margin:2px 0; }
.v141-calendar .v141-day { height:250px; min-height:250px; overflow:hidden; min-width:0; }
.v141-calendar { grid-auto-rows:auto; }

.compact-task { box-sizing:border-box; height:48px; }
.compact-title { font-size:12px; line-height:16px; }
.compact-task .v141-state { line-height:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Linhas explícitas evitam que o checkbox crie uma terceira linha implícita. */
.v141-task.compact-task { grid-template-rows:18px 14px; height:48px; gap:2px 6px; align-content:center; }
.compact-task input[type=checkbox] { grid-column:1; grid-row:1 / 3; align-self:start; }
.compact-task .compact-title { grid-row:1; min-height:0; height:18px; line-height:18px; }
.compact-task .v141-state { grid-row:2; height:14px; line-height:14px; letter-spacing:0; }
.compact-task.status-planejada { border-top-color:#64748b; }.status-planejada .v141-state { color:#475569; }
.compact-task.status-aberta { border-top-color:#1672b8; }.status-aberta .v141-state { color:#1265a1; }
.compact-task.status-encerrada { border-top-color:#21825b; }.status-encerrada .v141-state { color:#176b48; }
.compact-task.status-atrasado { border-top-color:#c56b13; }.status-atrasado .v141-state { color:#99500c; }
.compact-task.status-cancelada { border-top-color:#bc3030; }.status-cancelada .v141-state { color:#a22525; }
.absence-row { border:1px solid #dce4ed; border-radius:8px; padding:12px; margin:10px 0; }
.absence-row textarea { width:100%; box-sizing:border-box; }

/* Progresso sem trocar texto, foco ou QR. */
.operation-busy::after { content:""; display:inline-block; width:12px; height:12px; margin-left:8px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:operation-spin .8s linear infinite; vertical-align:middle; }
[data-operation-status]:empty { display:none; }
.loading-placeholder { min-height:100px; }
.loading-placeholder span { display:block; height:14px; width:70%; background:#e3e8ef; border-radius:4px; margin:12px 0; }
.loading-placeholder span + span { width:40%; height:26px; }
.button,.mini-button,.tab { transition:background-color .12s ease,color .12s ease,box-shadow .12s ease; }
dialog[open] { animation:dialog-enter .12s ease-out; }
.instructor-results,.autocomplete-results { animation:dialog-enter .1s ease-out; }
@keyframes operation-spin { to { transform:rotate(360deg); } }
@keyframes dialog-enter { from { opacity:.6; transform:translateY(3px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
