.central-actions{width:auto!important}.central-actions .status{width:auto!important;min-width:260px}.schedule-panel{margin:0 0 14px}.schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid var(--border);background:#fbfcfc}.schedule-head strong{font-size:13px}.schedule-head small{color:var(--muted)}.schedule-list{display:grid}.schedule-row{display:grid;grid-template-columns:110px minmax(180px,1.4fr) minmax(180px,1.3fr) minmax(130px,.8fr) auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf2f0}.schedule-row:last-child{border-bottom:0}.schedule-time strong,.schedule-patient strong,.schedule-exam strong{display:block}.schedule-row small{display:block;color:var(--muted);margin-top:2px}.schedule-status{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;background:#eef5f2;color:#17624f;font-size:11px;font-weight:800}.schedule-status.arrived,.schedule-status.in_progress{background:#eef4ff;color:#42577d}.schedule-status.completed{background:#f1faf6;color:#17624f}.schedule-empty{padding:18px;color:var(--muted);text-align:center}.schedule-actions{display:flex;gap:6px;justify-content:flex-end}.schedule-actions .btn{height:32px;padding:0 9px}.schedule-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:90;display:none;align-items:center;justify-content:center;padding:20px}.schedule-modal-backdrop.open{display:flex}.schedule-modal{width:min(720px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.18);padding:20px}.schedule-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.schedule-modal h2{margin:0;font-size:20px}.schedule-modal .close{float:none}.schedule-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.schedule-field{display:grid;gap:5px}.schedule-field.full{grid-column:1/-1}.schedule-field label{font-size:12px;font-weight:800;color:var(--text)}.schedule-field input,.schedule-field select,.schedule-field textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;background:#fff;color:var(--text);font:inherit}.schedule-field textarea{min-height:72px;resize:vertical}.schedule-patient-results{border:1px solid var(--border);border-radius:8px;overflow:hidden;display:none}.schedule-patient-results.show{display:block}.schedule-patient-option{display:block;width:100%;border:0;border-bottom:1px solid #edf2f0;background:#fff;padding:9px 10px;text-align:left;cursor:pointer;color:var(--text)}.schedule-patient-option:last-child{border-bottom:0}.schedule-patient-option:hover{background:#f7fbf9}.schedule-selected{display:none;padding:9px 10px;border:1px solid #b9dacd;background:#f1faf6;border-radius:8px}.schedule-selected.show{display:flex;align-items:center;justify-content:space-between;gap:12px}.schedule-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.schedule-feedback{grid-column:1/-1;font-size:12px;min-height:18px}.schedule-feedback.error{color:#9a332c}.schedule-feedback.success{color:#17624f}@media(max-width:900px){.schedule-row{grid-template-columns:100px 1fr 1fr}.schedule-device{display:none}.schedule-actions{grid-column:3;justify-content:flex-start}}@media(max-width:620px){.central-actions{width:100%!important;justify-content:flex-start}.central-actions .status{width:100%!important}.schedule-row{grid-template-columns:1fr}.schedule-actions{grid-column:auto}.schedule-form{grid-template-columns:1fr}.schedule-field.full,.schedule-form-actions,.schedule-feedback{grid-column:auto}}


/* Agenda compacta: cabeçalho único quando não há pendências. */
.schedule-head{min-height:48px;cursor:default}
.schedule-head-title{display:flex;align-items:center;gap:5px;min-width:0;flex:1;border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left}
.schedule-head-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.schedule-head-actions #scheduleCount{margin:0}
.schedule-head-actions #newAppointment{height:32px;padding:0 10px;white-space:nowrap}
.schedule-toggle{display:inline-grid;place-items:center;width:14px;flex:0 0 14px;color:var(--muted);font-size:11px}
.schedule-toggle.is-static{opacity:.35}
.schedule-head-title.schedule-head-toggleable{cursor:pointer}
.schedule-head-title.schedule-head-toggleable:hover strong{color:var(--accent)}
.schedule-head-title:disabled{cursor:default;opacity:1}
.schedule-panel.schedule-empty-collapsed .schedule-head{border-bottom:0}
.schedule-panel.schedule-empty-collapsed .schedule-list{display:none}
@media(max-width:620px){
  .schedule-head{align-items:flex-start}
  .schedule-head-title{flex-wrap:wrap}
  .schedule-head-actions{margin-left:auto}
  .schedule-head small{flex-basis:100%;margin-left:19px}
}
