/* CEDAR Agenda · PROPOSTA A (16/10/2026) — apresentação sobre o R3. Prefixo html.cedar-agenda-r3.cedar-agenda-a
   vence a especificidade do R3; !important só onde o R3 já usa. Tokens: cdr_brand_theme.css / cedar_design_system_v0.css. */
html.cedar-agenda-a{--a-bar:30px;--a-line:#E6D8C8;--a-line-soft:#EFE6DB;--a-row:#F0E9E1;--a-ink:#2B211B;--a-soft:#6F6258;--a-mute:#8A7E73;--a-brand:#785533;--a-light:#F4EADF;--a-accent:#B3864F;--a-s3:#FAF7F2;--a-s2:#F6F0EA;
  --a-sched-bg:#EEF3FF;--a-sched-tx:#1E3F96;--a-sched-bd:#B9CBEF;--a-conf-bg:#E8F4F4;--a-conf-tx:#0F766E;--a-conf-bd:#BFE0DE;--a-wait-bg:#FFF1CC;--a-wait-tx:#7A4E00;--a-wait-bd:#E2B85A;--a-care-bg:#EDE9FE;--a-care-tx:#5B21B6;--a-care-bd:#C9BCF6;--a-done:#1E7A4F;--a-miss:#B3261E;--a-canc:#6F6258;--a-pink:#9D174D;--a-pink-bg:#FCE7F3;--a-pink-bd:#FBCFE8;--a-warn:#92610C;--a-warn-bg:#FEF6E7;--a-warn-bd:#F3E0BD;--a-eda:#1D4ED8;--a-eda-bd:#C7DAFB;--a-col:#177245;--a-col-bd:#C4E3D2;--a-dual:#0F766E;--a-dual-bd:#BFE0DE;--a-wa:#1F8F4E;--a-focus:0 0 0 3px rgba(179,134,79,.45)}
html.cedar-agenda-a .a-ico{width:16px;height:16px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html.cedar-agenda-a .a-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--a-light);color:var(--a-brand);font-size:11px;font-weight:700;display:inline-grid;place-items:center;margin-left:4px}

/* ── moldura da tela ───────────────────────────────────────────────────────── */
html.cedar-agenda-a.cedar-agenda-a-bar body:has(#screen_agenda.active) .layout{height:calc(100dvh - var(--r4-header-height,58px) - var(--a-bar))!important}
/* o app liga a tela com style="display:block" inline: só !important vence */
html.cedar-agenda-a #screen_agenda.active{max-width:none!important;width:auto!important;min-width:0;margin:0!important;padding:0!important;height:calc(100dvh - var(--r4-header-height,58px) - var(--a-bar))!important;overflow:hidden!important;display:flex!important;flex-direction:column;background:#FBFAF8;box-sizing:border-box}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-header.a-vazio,html.cedar-agenda-a #screen_agenda .ag-toolbar{display:none!important}
html.cedar-agenda-a #screen_agenda .ag-title{display:none!important}
html.cedar-agenda-a .a-band{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:6px 14px;background:#fff;border-bottom:1px solid var(--a-line-soft);min-width:0;flex-wrap:wrap}
html.cedar-agenda-a .a-band2{border-bottom-color:var(--a-line);padding:5px 14px}
html.cedar-agenda-a .a-band3{background:var(--a-s3);padding:2px 14px;min-height:30px;font-size:11.5px;color:var(--a-soft);gap:8px;flex-wrap:nowrap;overflow:hidden}
html.cedar-agenda-a #ag_terap_section{margin:6px 14px 0!important}

/* banda 1 */
html.cedar-agenda-a .a-datenav{display:flex;align-items:center;gap:4px}
html.cedar-agenda-a .a-datenav .agdn-btn{height:36px!important;min-width:34px;border-radius:6px}
html.cedar-agenda-a .a-datenav #ag_date_picker{height:36px;border:1px solid var(--a-line);border-radius:6px;padding:0 10px;font-weight:600;font-family:inherit;font-size:13px;color:var(--a-ink);background:#fff}
html.cedar-agenda-a .a-datenav #ag_date_label{font-size:12px;color:var(--a-soft);font-weight:500;margin-left:4px;white-space:nowrap}
html.cedar-agenda-a .a-band1 .ag-period-tabs{display:inline-flex;border:1px solid var(--a-line);border-radius:6px;overflow:hidden;height:36px;margin:0;gap:0;background:#fff}
html.cedar-agenda-a .a-band1 .ag-period-tabs .ag-tab{border:0!important;border-radius:0!important;background:#fff!important;padding:0 10px!important;height:100%;color:var(--a-soft)!important;font-weight:500!important;font-size:13px!important;box-shadow:none!important;margin:0!important}
html.cedar-agenda-a .a-band1 .ag-period-tabs .ag-tab+.ag-tab{border-left:1px solid var(--a-line-soft)!important}
html.cedar-agenda-a .a-band1 .ag-period-tabs .ag-tab--active{background:var(--a-s2)!important;color:var(--a-ink)!important;font-weight:600!important}
html.cedar-agenda-a #tab_busca{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .r3-search{flex:1 1 260px;min-width:200px;max-width:none;margin:0;height:36px;border-radius:6px;padding:0 8px;border-color:var(--a-line)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .r3-search:focus-within{box-shadow:var(--a-focus);border-color:var(--a-accent)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .r3-search #ag_search{height:34px;font-size:13.5px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .r3-search select{min-height:30px;font-size:12px;background:var(--a-s3)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .a-band1 .ag-header-right{margin-left:auto;gap:6px;flex-wrap:nowrap}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .a-band1 .ag-header-right .ag-btn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .a-band1 .r3-menu>summary,html.cedar-agenda-a .a-lista-btn{height:36px;min-height:36px!important;padding:0 11px!important;border-radius:6px!important;font-size:13px!important;font-weight:500;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid var(--a-line);background:#fff;color:var(--a-ink)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 #btn_novo_agendamento,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 #btn_quick_register{min-height:36px!important;height:36px;padding:0 12px!important;font-size:13px!important;font-weight:600!important;border-radius:6px!important;box-shadow:none!important}
html.cedar-agenda-a .a-batch-btn[aria-pressed="true"]{background:var(--a-light)!important;border-color:var(--a-accent)!important;color:var(--a-brand)!important}
html.cedar-agenda-a .a-lista-btn{display:none}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-lista-btn{display:inline-flex}

/* banda 2 */
html.cedar-agenda-a .a-band2 #ag_cons_tabs{display:inline-flex;gap:2px;border-right:1px solid var(--a-line);padding-right:10px;margin:0!important}
html.cedar-agenda-a .a-band2 .ag-ctab{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:0!important;background:transparent!important;border-radius:6px!important;color:var(--a-soft)!important;font-weight:600!important;font-size:13px!important;box-shadow:none!important;margin:0!important}
html.cedar-agenda-a .a-band2 .ag-ctab--active{color:var(--a-brand)!important;background:var(--a-light)!important}
html.cedar-agenda-a .a-band2 .ag-ctab-n{font-variant-numeric:tabular-nums;font-weight:600;color:var(--a-soft);font-size:12px;background:transparent!important;padding:0!important}
html.cedar-agenda-a .a-tasks{display:inline-flex;gap:4px;flex-wrap:wrap}
html.cedar-agenda-a .a-task{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid transparent;border-radius:16px;background:transparent;color:var(--a-ink);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
html.cedar-agenda-a .a-task:hover{background:var(--a-s2)}
html.cedar-agenda-a .a-task[aria-pressed="true"]{background:var(--a-ink);color:#fff;border-color:var(--a-ink)}
html.cedar-agenda-a .a-task .a-n{font-variant-numeric:tabular-nums;font-weight:600;color:var(--a-soft);font-size:12px}
html.cedar-agenda-a .a-task[aria-pressed="true"] .a-n{color:#E8D7BF}
html.cedar-agenda-a .a-task .a-dot{width:8px;height:8px;border-radius:50%;background:var(--a-mute)}
html.cedar-agenda-a .a-task--ativos .a-dot{background:var(--a-wait-bd)}html.cedar-agenda-a .a-task--finalizados .a-dot{background:var(--a-done)}html.cedar-agenda-a .a-task--faltas .a-dot{background:var(--a-miss)}html.cedar-agenda-a .a-task--pendencias .a-dot{background:var(--a-pink)}
html.cedar-agenda-a .a-task .a-lbl-short{display:none}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-task .a-lbl-long{display:none}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-task .a-lbl-short{display:inline}
html.cedar-agenda-a .a-band2-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html.cedar-agenda-a .a-filtros{position:relative;display:none}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-filtros{display:inline-block}
html.cedar-agenda-a .a-filtros>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:1px solid var(--a-line);border-radius:6px;background:#fff;font-size:13px;cursor:pointer;color:var(--a-ink)}
html.cedar-agenda-a .a-filtros>summary::-webkit-details-marker{display:none}
html.cedar-agenda-a .a-filtros-list{position:absolute;right:0;top:100%;z-index:60;min-width:240px;background:#fff;border:1px solid var(--a-line);border-radius:8px;box-shadow:0 10px 30px rgba(43,33,27,.16);padding:10px;display:flex;flex-direction:column;gap:8px}
html.cedar-agenda-a .a-filtros-list #sec_viewmode,html.cedar-agenda-a .a-filtros-list #ag_filter_tipo{width:100%}
html.cedar-agenda-a .a-filtros-list .sec-vm-btn{flex:1}
html.cedar-agenda-a .a-band2-right #sec_viewmode{display:inline-flex;border:1px solid var(--a-line);border-radius:6px;overflow:hidden;height:32px}
html.cedar-agenda-a .a-band2-right .sec-vm-btn{border:0!important;border-radius:0!important;background:#fff!important;padding:0 9px!important;font-size:12px!important;color:var(--a-soft)!important;height:100%;box-shadow:none!important;margin:0!important}
html.cedar-agenda-a .a-band2-right .sec-vm-btn+.sec-vm-btn{border-left:1px solid var(--a-line-soft)!important}
html.cedar-agenda-a .a-band2-right .sec-vm-btn.is-on{background:var(--a-s2)!important;color:var(--a-ink)!important;font-weight:600!important}
html.cedar-agenda-a .a-band2-right #ag_filter_tipo{height:32px;border:1px solid var(--a-line);border-radius:6px;background:#fff;padding:0 8px;color:var(--a-soft);font-size:12px;font-family:inherit}
html.cedar-agenda-a .a-showing{font-size:12px;color:var(--a-soft);font-variant-numeric:tabular-nums;white-space:nowrap}
html.cedar-agenda-a .a-showing .a-sh-short{display:none}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-showing .a-sh-long{display:none}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-showing .a-sh-short{display:inline}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-band2-right .sec-vm-btn{padding:0 7px!important;font-size:11.5px!important}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-band2-right #ag_filter_tipo{max-width:120px}
html.cedar-agenda-a #ag_bulk_bar{display:none!important}
html.cedar-agenda-a.a-batch #ag_bulk_bar{display:flex!important;margin:6px 14px 0!important;background:var(--a-ink)!important;color:#fff;border-radius:8px;padding:6px 12px!important}
html.cedar-agenda-a .ag-row>.ag-row-chk{display:none!important}
html.cedar-agenda-a.a-batch .ag-row>.ag-row-chk{display:inline-block!important}

/* banda 3: resumo em uma linha + SISA em texto */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar{position:static!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:0!important;flex:1 1 auto;min-width:0}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-fixed{min-height:26px!important;padding:0!important;gap:2px 6px;flex-wrap:nowrap;overflow:hidden}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-overview{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:nowrap}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-production{gap:1px;flex-wrap:nowrap}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-mini{min-height:22px!important;padding:1px 5px!important;font-size:11.5px!important;color:var(--a-soft)!important;border-radius:5px;text-transform:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-mini b,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-fixed .agr-num{font-size:12px!important;color:var(--a-ink)!important;font-weight:600;margin-left:2px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-fixed .agr-card--active{background:var(--a-light)!important;border-color:var(--a-accent)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-insurers{margin-left:0;border-left:1px solid var(--a-line);padding-left:8px;flex-wrap:nowrap}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-procedures,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-loading{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar .agr-details{border:0!important;color:var(--a-brand)!important;font-weight:600!important;padding:1px 6px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda #ag_kpi_bar #agr_details{position:fixed;right:0;top:var(--r4-header-height,58px);bottom:var(--a-bar);width:min(560px,94vw);z-index:9700;overflow:auto;background:#fff;border-left:1px solid var(--a-line);box-shadow:-12px 0 30px rgba(43,33,27,.18);padding:14px}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa{margin:0 0 0 auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;flex:0 1 auto;min-width:0;max-width:60%;overflow:hidden;white-space:nowrap}
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .sv-band.sv-faixa .sv-sub{display:none}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa{display:flex;align-items:center;gap:8px;height:26px}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-linha{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;padding:0!important;margin:0!important}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-msg{font-size:11px;white-space:nowrap;margin:0!important;padding:0!important}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-msg:empty{display:none}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-tit{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:var(--a-mute);display:inline-flex;align-items:center;gap:4px}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-tit svg{width:14px;height:14px}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-chip{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 6px;border:1px solid transparent!important;border-radius:11px;background:transparent!important;font-size:11.5px!important;font-weight:500;cursor:pointer;box-shadow:none!important}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-chip:hover{background:#fff!important;border-color:var(--a-line)!important}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-chip b{font-weight:700}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-chip.sv-zero{color:var(--a-mute)!important}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-sub{font-size:11px;color:var(--a-mute);white-space:nowrap}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .cm-chip-wrap .cm-chip{height:22px;padding:0 6px;font-size:11.5px;border:1px solid transparent;background:transparent;border-radius:11px}
html.cedar-agenda-a #screen_agenda .sv-band.sv-faixa .sv-pop{position:fixed;right:0;top:var(--r4-header-height,58px);bottom:var(--a-bar);width:min(520px,94vw);z-index:9700;overflow:auto;background:#fff;border-left:1px solid var(--a-line);box-shadow:-12px 0 30px rgba(43,33,27,.18)}

/* ── área principal ───────────────────────────────────────────────────────── */
html.cedar-agenda-a .a-main{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr);position:relative}
html.cedar-agenda-a .a-main:has(#a_lista[hidden]){grid-template-columns:minmax(0,1fr)}
html.cedar-agenda-a #screen_agenda[data-a-bp="compact"] .a-main{grid-template-columns:220px minmax(0,1fr)}
html.cedar-agenda-a #screen_agenda[data-a-bp="compact"] .a-main:has(#a_lista[hidden]){grid-template-columns:minmax(0,1fr)}
html.cedar-agenda-a .a-center{display:flex;flex-direction:column;min-height:0;min-width:0}
html.cedar-agenda-a #screen_agenda #ag_body{flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important;padding:4px 14px 16px!important;overscroll-behavior:contain;transition:none}
html.cedar-agenda-a.a-detail-open #screen_agenda[data-a-bp="desktop"] #ag_body,html.cedar-agenda-a.a-detail-open #screen_agenda[data-a-bp="compact"] #ag_body{padding-right:394px!important}
html.cedar-agenda-a #screen_agenda #ag_consultas_panel{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 14px 16px}
html.cedar-agenda-a #screen_agenda .a-period-semana #ag_body,html.cedar-agenda-a #screen_agenda.a-period-semana #ag_body,html.cedar-agenda-a #screen_agenda.a-period-mes #ag_body{display:none!important}
html.cedar-agenda-a .a-periodo{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 14px 16px}
html.cedar-agenda-a .a-aviso{display:flex;align-items:center;gap:8px;padding:4px 10px;margin:6px 0 2px;border:1px solid var(--a-line);border-radius:8px;background:#fff;font-size:11.5px;color:var(--a-soft)}
html.cedar-agenda-a #screen_agenda #ag_exam_phead{display:none!important;align-items:center;gap:8px;margin:6px 0 0;padding:0 4px;font-size:12px;color:var(--a-soft);border:0;background:transparent}
html.cedar-agenda-a #screen_agenda #ag_exam_phead .ag-phead-n{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;color:var(--a-ink);background:var(--a-s2);border-radius:10px;padding:0 7px;font-size:11px}
html.cedar-agenda-a .a-scrim{position:absolute;inset:0;background:rgba(43,33,27,.28);z-index:40}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-main{grid-template-columns:minmax(0,1fr)!important}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] #a_lista:not([hidden]){position:absolute;left:0;top:0;bottom:0;width:300px;z-index:41;box-shadow:12px 0 30px rgba(43,33,27,.18)}

/* turnos nativos escondidos quando agrupado; paginação/empty mantidos */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .ag-turno-head{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda .ag-turno{margin-top:6px}

/* ── grupos ───────────────────────────────────────────────────────────────── */
html.cedar-agenda-a #screen_agenda .sec-stgroups{display:flex;flex-direction:column;gap:0!important}
html.cedar-agenda-a #screen_agenda .sec-stgroup{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;border-radius:0!important}
html.cedar-agenda-a #screen_agenda .sec-stgroup.a-empty{display:none!important}
html.cedar-agenda-a #screen_agenda .sec-stgroup-head{display:flex;align-items:center;gap:8px;height:28px;margin:6px 0 0;padding:0 4px;font-size:12px;font-weight:700;color:var(--a-soft);text-transform:uppercase;letter-spacing:.05em;border:0;background:transparent;width:100%;text-align:left;border-radius:6px;cursor:pointer}
html.cedar-agenda-a #screen_agenda .sec-stgroup-head:hover{background:var(--a-s2)}
html.cedar-agenda-a #screen_agenda .sec-stgroup-n{font-variant-numeric:tabular-nums;color:var(--a-ink);background:var(--a-s2);border-radius:10px;padding:0 7px;height:18px;display:inline-grid;place-items:center;font-size:11px;font-weight:700}
html.cedar-agenda-a #screen_agenda .sec-stgroup-car{margin-left:auto;order:9;opacity:.6}
html.cedar-agenda-a #screen_agenda .a-grp-sub{font-weight:500;text-transform:none;letter-spacing:0;color:var(--a-soft);margin-left:4px}
html.cedar-agenda-a #screen_agenda .sec-stgroup[data-status="finalizado"] .a-grp-sub:not(:empty)::before{content:'';}
html.cedar-agenda-a #screen_agenda .sec-stgroup[data-status="finalizado"] .a-grp-sub{color:var(--a-pink);font-weight:600}
html.cedar-agenda-a #screen_agenda .sec-stgroup-list{border:1px solid var(--a-line);border-radius:8px;background:#fff;overflow:hidden;display:flex;flex-direction:column;gap:0!important;padding:0!important}
html.cedar-agenda-a #screen_agenda .sec-stgroup.is-collapsed .sec-stgroup-list{display:none}
html.cedar-agenda-a #screen_agenda .sec-stgroup[data-status="finalizado"] .sec-stgroup-list,html.cedar-agenda-a #screen_agenda .sec-stgroup[data-status="faltou"] .sec-stgroup-list,html.cedar-agenda-a #screen_agenda .sec-stgroup[data-status="cancelado"] .sec-stgroup-list{border-color:var(--a-line-soft)}
html.cedar-agenda-a #screen_agenda .sec-stgroup-dot{width:9px;height:9px;border-radius:50%}
html.cedar-agenda-a #screen_agenda .sec-stgroup--wait .sec-stgroup-dot{background:var(--a-wait-tx)!important}html.cedar-agenda-a #screen_agenda .sec-stgroup--care .sec-stgroup-dot{background:var(--a-care-tx)!important}html.cedar-agenda-a #screen_agenda .sec-stgroup--done .sec-stgroup-dot{background:var(--a-done)!important}html.cedar-agenda-a #screen_agenda .sec-stgroup--miss .sec-stgroup-dot{background:var(--a-miss)!important}html.cedar-agenda-a #screen_agenda .sec-stgroup--sched .sec-stgroup-dot{background:var(--a-sched-bg)!important;border:1.5px solid var(--a-sched-tx)}

/* ── linha do paciente (grade sobre os nós nativos) ───────────────────────── */
/* colunas: 1 chk · 2 ordem · 3 hora · 4 idade(nasc) · 5 convênio · 6 tipo · 7 pílula · 8 check-in · 9 etiquetas · 10 chamar · 11 abrir · 12 whatsapp · 13 detalhes */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row{display:grid!important;grid-template-columns:auto 28px 46px max-content minmax(120px,1.2fr) 54px auto auto minmax(132px,1fr) auto auto auto auto!important;grid-template-rows:auto auto auto!important;gap:2px 10px!important;align-items:center;padding:5px 10px 5px 8px!important;margin:0!important;min-height:60px;border:0!important;border-top:1px solid var(--a-row)!important;border-left:3px solid transparent!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;position:relative;cursor:default;transition:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup-list>.ag-row:first-child{border-top:0!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:hover{background:var(--a-s3)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.a-sel{background:var(--a-light)!important;border-left-color:var(--a-brand)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:focus-visible{outline:none;box-shadow:inset var(--a-focus)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.a-hide{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="em_espera"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="em_atendimento"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="finalizado"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="atendido"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="faltou"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="cancelado"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-preag="1"]{background:#fff!important;border-color:var(--a-row)!important;border-left-color:transparent!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.a-sel[data-opst]{background:var(--a-light)!important;border-left-color:var(--a-brand)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row>.ag-row-chk{grid-column:1;grid-row:1/3}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-ordleft{grid-column:2;grid-row:1/3;width:28px!important;height:28px!important;min-width:28px;border-radius:50%!important;border:1.5px solid var(--a-line)!important;font-size:12px!important;font-weight:700;background:#fff!important;color:var(--a-ink)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-ordnum--empty{color:var(--a-mute)!important;border-style:dashed!important;font-weight:500}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-hora{grid-column:3;grid-row:1/3;font-size:13px!important;font-weight:600;font-variant-numeric:tabular-nums;color:var(--a-ink)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-nome{grid-column:4/6!important;grid-row:1!important;font-size:14px!important;font-weight:600;letter-spacing:.01em;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;cursor:pointer;color:var(--a-ink)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-nome:hover{color:var(--a-brand);text-decoration:underline;text-underline-offset:2px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-age{grid-column:4!important;grid-row:2!important;justify-self:start;font-size:11.5px!important;color:var(--a-soft)!important;white-space:nowrap;line-height:1.2;font-variant-numeric:tabular-nums}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-conv{grid-column:5!important;grid-row:2!important;justify-self:start;font-size:11.5px!important;color:var(--a-soft)!important;white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-conv::before{content:'· ';color:var(--a-line)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-tipo{grid-column:6!important;grid-row:1/3!important;justify-self:center;height:22px;padding:0 7px;border-radius:4px;border:1px solid var(--a-line);font-size:10.5px!important;font-weight:700;letter-spacing:.06em;background:#fff!important;display:inline-grid;place-items:center;color:var(--a-soft)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-tipo[data-t="EDA"]{color:var(--a-eda)!important;border-color:var(--a-eda-bd)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-tipo[data-t="COLONO"]{color:var(--a-col)!important;border-color:var(--a-col-bd)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-tipo[data-t="EDA+COLONO"]{color:var(--a-dual)!important;border-color:var(--a-dual-bd)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-strip,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-attctrl,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions{display:contents!important}
/* pílula de situação: informação, não botão grande */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-pill,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-status{grid-column:7!important;grid-row:1/3!important;min-height:28px!important;height:28px;padding:0 10px!important;border-radius:14px!important;font-size:12px!important;font-weight:600;border:1px solid transparent!important;background:#fff!important;color:var(--a-ink)!important;white-space:nowrap;justify-content:center;gap:6px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-status{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--sched,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="agendado"] .sec-pill{background:var(--a-sched-bg)!important;border-color:var(--a-sched-bd)!important;color:var(--a-sched-tx)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--conf,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="confirmado"] .sec-pill{background:var(--a-conf-bg)!important;border-color:var(--a-conf-bd)!important;color:var(--a-conf-tx)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--wait,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="em_espera"] .sec-pill{background:var(--a-wait-bg)!important;border-color:var(--a-wait-bd)!important;color:var(--a-wait-tx)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--care,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="em_atendimento"] .sec-pill{background:var(--a-care-bg)!important;border-color:var(--a-care-bd)!important;color:var(--a-care-tx)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--done,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="finalizado"] .sec-pill,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="atendido"] .sec-pill{background:transparent!important;border-color:transparent!important;color:var(--a-done)!important;padding-left:4px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--miss,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="faltou"] .sec-pill{background:transparent!important;border-color:transparent!important;color:var(--a-miss)!important;padding-left:4px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--canc,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="cancelado"] .sec-pill{background:transparent!important;border-color:transparent!important;color:var(--a-canc)!important;padding-left:4px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-preag="1"] .sec-pill,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-pill.sec-pill--pre{background:#fff!important;border:1px dashed var(--a-mute)!important;color:var(--a-soft)!important}
/* check-in: indicador compacto */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-ckbtn{grid-column:8!important;grid-row:1/3!important;height:26px!important;min-height:26px!important;width:auto!important;padding:0 8px!important;border-radius:13px!important;font-size:11.5px!important;font-weight:600;border:1px solid var(--a-line)!important;background:#fff!important;color:var(--a-soft)!important;white-space:nowrap;justify-content:center;box-shadow:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-ckbtn.is-filled{background:#EDF7F1!important;border-color:#BFE0CC!important;color:var(--a-done)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-ckbtn.is-partial{background:var(--a-warn-bg)!important;border-color:var(--a-warn-bd)!important;color:var(--a-warn)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-ckbtn.is-preag{border-style:dashed!important;border-color:var(--a-warn-bd)!important;color:var(--a-warn)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-ckbtn:disabled{opacity:.5!important;background:#fff!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .sec-ckbtn:not(:disabled):hover{border-color:var(--a-accent)!important;filter:none}
/* etiquetas */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-flags{grid-column:9!important;grid-row:1/3!important;display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-height:0;min-width:0;max-width:100%;padding:0}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-flag,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .cdr-hp,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .agsd-chip,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-pending-summary{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 6px!important;border-radius:4px;border:1px solid var(--a-line);background:#fff;font-size:11px!important;font-weight:600;color:var(--a-soft);white-space:nowrap;line-height:1;margin:0!important;box-shadow:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-flag--ap{color:var(--a-pink)!important;border-color:var(--a-pink-bd)!important;background:var(--a-pink-bg)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-flag--sig,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-flag--pdf{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-flag--at-anticoag{color:var(--a-warn)!important;border-color:var(--a-warn-bd)!important;background:var(--a-warn-bg)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-pending-summary{border-style:dashed;color:var(--a-soft)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:not(.r3-expanded) .ag-row-flags>[data-agsd]{display:inline-flex!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .agsd-chip--pend{color:var(--a-warn)!important;border-color:var(--a-warn-bd)!important}
/* chamar / abrir / whatsapp / detalhes */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call{grid-column:10!important;grid-row:1/3!important;height:34px!important;min-height:34px!important;width:auto!important;padding:0 12px!important;border-radius:6px!important;font-size:12.5px!important;font-weight:600;white-space:nowrap!important;justify-self:end}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call:not(.sec-call--wait):not(.sec-call--urg){background:var(--a-brand)!important;border-color:var(--a-brand)!important;color:#fff!important;font-size:12.5px!important;gap:6px!important;width:auto!important;min-width:0!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call:not(.sec-call--urg):not(.sec-call--wait)>span:not(.sec-pic){position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:has(.sec-call:not(.sec-call--wait):not(.sec-call--urg)) .ag-row-actions>.ag-btn--outline{width:34px!important;min-width:34px!important;padding:0!important;font-size:0!important;gap:0!important;justify-content:center}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:has(.sec-call:not(.sec-call--wait):not(.sec-call--urg)) .ag-row-actions>.ag-btn--outline .r5-action-icon{margin:0}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call:not(:disabled):not(.sec-call--urg):hover{background:#66462B!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call--wait{display:none!important}   /* «Aguardando check-in»: o indicador de check-in já diz isso */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call--urg{grid-column:10!important;grid-row:1/3!important;height:34px!important;min-height:34px!important;width:34px!important;min-width:34px!important;padding:0!important;font-size:0!important;justify-self:end;border-radius:6px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call--urg .sec-pic,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-call--urg svg{font-size:16px;width:16px;height:16px;display:inline-flex}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:has(.sec-call:not(.sec-call--urg):not(.sec-call--wait)) .sec-call--urg{grid-row:3!important;height:24px!important;min-height:24px!important;width:auto!important;font-size:11px!important;padding:0 8px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions>.ag-btn--outline{grid-column:11!important;grid-row:1/3!important;height:34px!important;width:auto!important;min-width:0!important;padding:0 12px!important;font-size:12.5px!important;gap:6px!important;border-radius:6px!important;background:#fff!important;border:1px solid var(--a-line)!important;color:var(--a-ink)!important;font-weight:500;white-space:nowrap;justify-self:end}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions>.ag-btn--outline:hover{background:var(--a-s2)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row[data-opst="em_atendimento"] .ag-row-actions>.ag-btn--outline,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:has(.sec-call)[data-opst="em_atendimento"] .ag-row-actions>.ag-btn--outline{background:var(--a-brand)!important;border-color:var(--a-brand)!important;color:#fff!important;font-weight:600;width:auto!important;min-width:0!important;padding:0 12px!important;font-size:12.5px!important;gap:6px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r5-action-icon,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r5-action-icon .cdr-ico{width:16px;height:16px;font-size:16px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r5-action-icon svg{width:16px!important;height:16px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions>.a-reag{grid-column:11!important;grid-row:1/3!important;height:34px;padding:0 12px!important;border-radius:6px!important;font-size:12.5px!important;gap:6px;display:inline-flex;align-items:center;justify-self:end;white-space:nowrap;background:#fff!important;border:1px solid var(--a-line)!important;color:var(--a-ink)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions>[data-cedar-wa="agenda"]{grid-column:12!important;grid-row:1/3!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:6px!important;margin:0!important;justify-self:end;border:1px solid var(--a-line)!important;background:#fff!important;color:var(--a-wa)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 [data-cedar-wa="agenda"]>.cdr-ico,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 [data-cedar-wa="agenda"] svg{width:18px!important;height:18px!important;font-size:18px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .r3-details-toggle{grid-column:13!important;grid-row:1/3!important;width:34px!important;min-width:34px;height:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:1px solid var(--a-line)!important;border-radius:6px!important;background:#fff!important;color:var(--a-soft)!important;font-size:0!important;justify-self:end}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .r3-details-toggle .cdr-ico,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .r3-details-toggle svg{width:16px!important;height:16px!important;font-size:16px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row .r3-details-toggle:hover,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.r3-expanded .r3-details-toggle{background:var(--a-light)!important;color:var(--a-brand)!important;border-color:var(--a-accent)!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-locktag,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row-actions>.ag-btn--danger{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .agsol-strip{grid-column:4/-1!important;grid-row:3!important;border-top:1px dashed var(--a-line-soft)!important;padding:4px 0 0!important;margin:2px 0 0!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row:not(.r3-expanded) .sec-note--imp{grid-column:4/10!important;grid-row:3!important;font-size:11.5px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row>.cedar-test-badge{position:absolute;left:4px;top:2px;grid-column:auto;grid-row:auto;font-size:9px;line-height:1;padding:1px 4px;z-index:1}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.r3-expanded::after{display:none!important;content:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-details-heading{display:none!important}
/* linhas encerradas: compactas */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="cancelado"] .ag-row{min-height:42px;padding:3px 10px 3px 8px!important;color:var(--a-soft)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .ag-row-nome,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .ag-row-nome,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="cancelado"] .ag-row .ag-row-nome{font-size:13px!important;font-weight:500;-webkit-line-clamp:1}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .ag-row-hora,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .ag-row-hora,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="cancelado"] .ag-row .ag-row-hora{font-weight:500;color:var(--a-soft)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .ag-row-actions>.ag-btn--outline,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .ag-row-actions>.ag-btn--outline,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .a-reag{height:30px!important;font-size:12px!important;padding:0 10px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row [data-cedar-wa="agenda"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row [data-cedar-wa="agenda"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .r3-details-toggle,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .r3-details-toggle,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="cancelado"] .ag-row .r3-details-toggle{width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .sec-ckbtn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .sec-ckbtn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="cancelado"] .ag-row .sec-ckbtn{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="finalizado"] .ag-row .cdr-hp[data-hp-status^="nao_pesquisado"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .sec-stgroup[data-status="faltou"] .ag-row .cdr-hp{display:none!important}

/* ── painel de detalhes (bloco do R3 mostrado FIXO à direita; nó continua na linha) ── */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .a-detail{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.r3-expanded .a-detail{display:flex;flex-direction:column;position:fixed;right:0;top:var(--r4-header-height,58px);bottom:var(--a-bar);width:380px;z-index:45;background:#fff;border-left:1px solid var(--a-line);box-shadow:none;overflow:auto;cursor:default;text-align:left;color:var(--a-ink);font-size:13px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3[data-a-bp="tablet"] .ag-row.r3-expanded .a-detail{width:min(440px,92vw);box-shadow:-12px 0 30px rgba(43,33,27,.18)}
html.cedar-agenda-a .a-detail-h{display:flex;gap:10px;align-items:flex-start;padding:12px 14px 8px;border-bottom:1px solid var(--a-line-soft)}
html.cedar-agenda-a .a-detail-hb{min-width:0;flex:1}
html.cedar-agenda-a .a-detail-nome{font-size:15px;font-weight:700;line-height:1.25;letter-spacing:.01em}
html.cedar-agenda-a .a-detail-sub{font-size:12px;color:var(--a-soft);margin-top:3px;font-variant-numeric:tabular-nums}
html.cedar-agenda-a .a-detail-meta{padding:6px 14px 8px;font-size:12px;color:var(--a-soft);border-bottom:1px solid var(--a-line-soft)}
html.cedar-agenda-a .a-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--a-line);border-radius:6px;background:#fff;color:var(--a-soft);cursor:pointer;flex:0 0 auto;padding:0}
html.cedar-agenda-a .a-iconbtn:hover{background:var(--a-s2);color:var(--a-ink)}
html.cedar-agenda-a .a-detail-slots{display:flex;flex-direction:column;padding:4px 14px 14px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot{display:flex!important;flex-direction:column;gap:4px;padding:10px 0!important;border-bottom:1px solid var(--a-line-soft);width:auto!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--a-mute);font-weight:700}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot-value{font-size:13px;color:var(--a-ink);min-height:0}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot .sec-acmp,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot .tbx-btn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot .sec-note{padding:2px 0;font-size:13px;color:var(--a-ink)}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot .r4-note-label,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .r4-slot .sec-acmp--add .sec-acmp-tx{color:var(--a-brand);font-weight:600}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .cks-sendbtn{display:inline-flex!important;position:static;margin:10px 0 0;min-height:32px;width:auto;opacity:1;font-size:12px;color:var(--a-brand);gap:6px;justify-content:flex-start;border:1px solid var(--a-line);border-radius:6px;padding:0 10px;background:#fff}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .r3-expanded .cks-sendbtn:after{content:attr(aria-label)}
/* apagar: no rodapé do painel (nó continua em .ag-row-actions; posicionado FIXO só quando expandido) */
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.r3-expanded .ag-row-actions>.ag-btn--danger{display:inline-flex!important;position:fixed;right:14px;bottom:calc(var(--a-bar) + 10px);z-index:46;height:28px;padding:0 8px!important;border:0!important;background:transparent!important;color:var(--a-mute)!important;font-size:12px!important;opacity:1;box-shadow:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3 .ag-row.r3-expanded .ag-row-actions>.ag-btn--danger:hover{color:var(--a-miss)!important;background:#FBEDEC!important;border-radius:4px}

/* ── Lista do dia ─────────────────────────────────────────────────────────── */
html.cedar-agenda-a .a-lista{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--a-line);font-size:12px}
html.cedar-agenda-a .a-lista[hidden]{display:none}
html.cedar-agenda-a .a-lista-h{display:flex;align-items:center;gap:6px;padding:8px 10px 6px;border-bottom:1px solid var(--a-line-soft)}
html.cedar-agenda-a .a-lista-h h2{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--a-soft);font-weight:700}
html.cedar-agenda-a .a-lista-h .a-n{font-variant-numeric:tabular-nums;color:var(--a-ink);font-weight:700}
html.cedar-agenda-a .a-lista-close{display:none;width:28px;height:28px;margin-left:auto}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-lista-close{display:inline-flex}
html.cedar-agenda-a .a-sort{margin-left:auto;display:inline-flex;border:1px solid var(--a-line);border-radius:6px;overflow:hidden}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-sort{margin-left:0}
html.cedar-agenda-a .a-sort button{border:0;background:#fff;height:24px;padding:0 7px;font:inherit;font-size:11px;color:var(--a-soft);cursor:pointer}
html.cedar-agenda-a .a-sort button[aria-pressed="true"]{background:var(--a-s2);color:var(--a-ink);font-weight:600}
html.cedar-agenda-a .a-lista-counts{display:flex;gap:2px;padding:4px 6px;border-bottom:1px solid var(--a-line-soft);flex-wrap:wrap}
html.cedar-agenda-a .a-lc{border:1px solid transparent;background:transparent;border-radius:11px;height:22px;padding:0 5px;font:inherit;font-size:11px;color:var(--a-soft);display:inline-flex;align-items:center;gap:4px;cursor:pointer}
html.cedar-agenda-a .a-lc b{color:var(--a-ink);font-variant-numeric:tabular-nums}
html.cedar-agenda-a .a-lc[aria-pressed="true"]{background:var(--a-ink);color:#fff;border-color:var(--a-ink)}html.cedar-agenda-a .a-lc[aria-pressed="true"] b{color:#fff}
html.cedar-agenda-a .a-lista-ol{list-style:none;margin:0;padding:4px 0;overflow:auto;flex:1 1 auto;min-height:0;overscroll-behavior:contain}
html.cedar-agenda-a .a-lista-ol li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:34px;padding:3px 8px 3px 6px;border-left:3px solid transparent;cursor:pointer}
html.cedar-agenda-a .a-lista-ol li:hover{background:var(--a-s3)}
html.cedar-agenda-a .a-lista-ol li[aria-current="true"]{background:var(--a-light);border-left-color:var(--a-brand)}
html.cedar-agenda-a .a-lista-ol .a-pos{font-variant-numeric:tabular-nums;font-size:12px;color:var(--a-soft);text-align:right;padding-right:2px}
html.cedar-agenda-a .a-lista-ol .a-pos b{color:var(--a-ink);font-weight:700}
html.cedar-agenda-a .a-lista-ol .a-nm{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;color:var(--a-ink)}
html.cedar-agenda-a .a-lista-ol .a-nm small{display:block;font-weight:400;color:var(--a-soft);font-size:10.5px;white-space:normal}
html.cedar-agenda-a .a-lista-ol li.a-enc .a-nm{color:var(--a-soft);font-weight:500}
html.cedar-agenda-a .a-lista-ol .a-st{display:inline-flex;align-items:center;gap:4px}
html.cedar-agenda-a .a-sdot{width:9px;height:9px;border-radius:50%;border:1.5px solid transparent;display:inline-block;flex:0 0 auto}
html.cedar-agenda-a .a-sdot--sched{background:var(--a-sched-bg);border-color:var(--a-sched-tx)}html.cedar-agenda-a .a-sdot--conf{background:var(--a-conf-bg);border-color:var(--a-conf-tx)}html.cedar-agenda-a .a-sdot--wait{background:var(--a-wait-tx)}html.cedar-agenda-a .a-sdot--care{background:var(--a-care-tx)}html.cedar-agenda-a .a-sdot--done{background:var(--a-done)}html.cedar-agenda-a .a-sdot--miss{background:var(--a-miss)}html.cedar-agenda-a .a-sdot--canc{background:#E2DCD4}html.cedar-agenda-a .a-sdot--pre{background:#fff;border-style:dashed;border-color:var(--a-mute)}
html.cedar-agenda-a .a-pdot{width:7px;height:7px;border-radius:50%;background:var(--a-pink);display:inline-block}
html.cedar-agenda-a .a-lista-foot{padding:6px 10px;border-top:1px solid var(--a-line-soft);font-size:10.5px;color:var(--a-mute);line-height:1.3}
html.cedar-agenda-a .a-tot-h{padding:8px 10px 4px;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--a-mute);font-weight:700;display:block;min-height:0;grid-template-columns:none;cursor:default}
html.cedar-agenda-a .a-lista-ol li.a-tot-l{display:flex;justify-content:space-between;gap:8px;padding:5px 10px;font-size:12px;border-bottom:1px solid var(--a-line-soft);min-height:0;cursor:default;border-left:0}
html.cedar-agenda-a .a-lista-ol li.a-tot-l b{font-variant-numeric:tabular-nums}html.cedar-agenda-a .a-lista-ol li.a-tot-l b.a-miss{color:var(--a-miss)}html.cedar-agenda-a .a-lista-ol li.a-tot-l b.a-pend{color:var(--a-pink)}
html.cedar-agenda-a .a-lista-ol li.a-tot-l:hover,html.cedar-agenda-a .a-lista-ol li.a-tot-h:hover{background:transparent}

/* ── Semana / Mês ─────────────────────────────────────────────────────────── */
html.cedar-agenda-a .a-dia-h{display:flex;align-items:center;gap:10px;min-height:34px;margin-top:10px;padding:0 6px 4px;border-bottom:2px solid var(--a-line);font-size:12px;color:var(--a-soft);scroll-margin-top:6px}
html.cedar-agenda-a .a-dia-h .a-dn{text-transform:capitalize;font-weight:700;color:var(--a-ink)}
html.cedar-agenda-a .a-dia-h.a-hoje{border-bottom-color:var(--a-accent)}html.cedar-agenda-a .a-dia-h.a-hoje .a-dn::after{content:' · hoje';color:var(--a-brand);font-weight:600}
html.cedar-agenda-a .a-dia-h.a-foco{background:var(--a-light);border-radius:6px 6px 0 0}
html.cedar-agenda-a .a-dia-h .a-mini{font-variant-numeric:tabular-nums}
html.cedar-agenda-a .a-dia-h .a-abrir-dia{margin-left:auto;height:30px;display:inline-flex;align-items:center;gap:6px;font-size:12px}
html.cedar-agenda-a .a-dia-vazio{padding:8px;color:var(--a-mute);font-size:12px;min-height:8px}
html.cedar-agenda-a .a-pgrp{border:1px solid var(--a-line-soft);border-radius:8px;background:#fff;overflow:hidden}
html.cedar-agenda-a .a-prow{display:grid;grid-template-columns:28px 46px minmax(200px,1.4fr) 54px auto minmax(0,1fr);gap:10px;align-items:center;width:100%;min-height:42px;padding:3px 10px;border:0;border-top:1px solid var(--a-row);background:#fff;font:inherit;font-size:13px;color:var(--a-soft);text-align:left;cursor:pointer}
html.cedar-agenda-a .a-prow:first-child{border-top:0}html.cedar-agenda-a .a-prow:hover{background:var(--a-s3)}html.cedar-agenda-a .a-prow:focus-visible{outline:none;box-shadow:inset var(--a-focus)}
html.cedar-agenda-a .a-pord{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--a-line);display:inline-grid;place-items:center;font-size:11.5px;font-weight:700;color:var(--a-ink)}
html.cedar-agenda-a .a-phora{font-variant-numeric:tabular-nums;font-weight:500}
html.cedar-agenda-a .a-pnome{min-width:0;color:var(--a-ink);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html.cedar-agenda-a .a-pnome small{display:block;color:var(--a-soft);font-size:11px;font-weight:400}
html.cedar-agenda-a .a-ptipo{display:inline-grid;place-items:center;height:22px;padding:0 7px;border-radius:4px;border:1px solid var(--a-line);font-size:10.5px;font-weight:700;letter-spacing:.06em;background:#fff;justify-self:center}
html.cedar-agenda-a .a-ptipo--EDA{color:var(--a-eda);border-color:var(--a-eda-bd)}html.cedar-agenda-a .a-ptipo--COLON{color:var(--a-col);border-color:var(--a-col-bd)}html.cedar-agenda-a .a-ptipo--DUAL{color:var(--a-dual);border-color:var(--a-dual-bd)}
html.cedar-agenda-a .a-ppill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:13px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent}
html.cedar-agenda-a .a-ppill--sched{background:var(--a-sched-bg);color:var(--a-sched-tx);border-color:var(--a-sched-bd)}html.cedar-agenda-a .a-ppill--conf{background:var(--a-conf-bg);color:var(--a-conf-tx);border-color:var(--a-conf-bd)}html.cedar-agenda-a .a-ppill--wait{background:var(--a-wait-bg);color:var(--a-wait-tx);border-color:var(--a-wait-bd)}html.cedar-agenda-a .a-ppill--care{background:var(--a-care-bg);color:var(--a-care-tx);border-color:var(--a-care-bd)}html.cedar-agenda-a .a-ppill--done{color:var(--a-done)}html.cedar-agenda-a .a-ppill--miss{color:var(--a-miss)}html.cedar-agenda-a .a-ppill--canc{color:var(--a-canc)}
html.cedar-agenda-a .a-ptags{display:flex;gap:4px;flex-wrap:wrap}
html.cedar-agenda-a .a-tag{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:4px;border:1px solid var(--a-line);background:#fff;font-size:11px;font-weight:600;color:var(--a-soft);white-space:nowrap}
html.cedar-agenda-a .a-tag--ap{color:var(--a-pink);border-color:var(--a-pink-bd);background:var(--a-pink-bg)}
html.cedar-agenda-a .a-nota{display:flex;align-items:center;gap:8px;padding:5px 10px;margin:10px 0 0;border:1px solid var(--a-line);border-radius:8px;background:#fff;font-size:11.5px;color:var(--a-soft)}
html.cedar-agenda-a .a-mes{display:flex;flex-direction:column;min-height:100%;padding-top:8px}
html.cedar-agenda-a .a-mes-h{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--a-mute);font-weight:700;padding:0 0 6px}
html.cedar-agenda-a .a-mes-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(92px,1fr);gap:6px;flex:1 1 auto}
html.cedar-agenda-a .a-mcell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:6px 8px;border:1px solid var(--a-line);border-radius:8px;background:#fff;text-align:left;font:inherit;font-size:12px;color:var(--a-soft);min-width:0;cursor:pointer}
html.cedar-agenda-a .a-mcell:hover{border-color:var(--a-accent)}html.cedar-agenda-a .a-mcell.a-hoje{border-color:var(--a-brand);box-shadow:inset 0 0 0 1px var(--a-brand)}html.cedar-agenda-a .a-mcell.a-vazio,html.cedar-agenda-a .a-mcell.a-fds{background:var(--a-s3)}html.cedar-agenda-a .a-mcell.a-fora{visibility:hidden}
html.cedar-agenda-a .a-mcell .a-d{font-weight:700;color:var(--a-ink);font-size:13px}html.cedar-agenda-a .a-mcell.a-hoje .a-d{color:var(--a-brand)}
html.cedar-agenda-a .a-mcell .a-tot{font-size:18px;font-weight:700;color:var(--a-ink);line-height:1.1}html.cedar-agenda-a .a-mcell .a-tot small{font-size:11px;font-weight:500;color:var(--a-soft)}
html.cedar-agenda-a .a-mcell .a-mods{display:flex;gap:4px;flex-wrap:wrap}html.cedar-agenda-a .a-mcell .a-mods i{font-style:normal;font-size:10.5px;font-weight:700;padding:0 5px;border-radius:4px;border:1px solid;background:#fff}
html.cedar-agenda-a .a-m-eda{color:var(--a-eda);border-color:var(--a-eda-bd)}html.cedar-agenda-a .a-m-col{color:var(--a-col);border-color:var(--a-col-bd)}html.cedar-agenda-a .a-m-dual{color:var(--a-dual);border-color:var(--a-dual-bd)}
html.cedar-agenda-a .a-mcell .a-mf{color:var(--a-miss);font-weight:600;font-size:11px}html.cedar-agenda-a .a-mcell .a-mp{color:var(--a-pink);font-weight:600;font-size:11px}html.cedar-agenda-a .a-mcell .a-semagenda{color:var(--a-mute);font-size:11px}

/* ── faixa inferior global ────────────────────────────────────────────────── */
html.cedar-agenda-a .a-statusbar{position:fixed;left:0;right:0;bottom:0;height:var(--a-bar);z-index:9600;display:flex;align-items:center;gap:14px;padding:0 14px;padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));background:#fff;border-top:1px solid var(--a-line);font-size:11.5px;color:var(--a-soft);font-family:var(--font,inherit)}
html.cedar-agenda-a #cdr_footer{display:none!important}
/* as abas que moraram na borda esquerda agora vivem na faixa inferior: a reserva de largura do cedar_ap_alertas (padding-left = right() das abas) deixa de valer */
html.cedar-agenda-a body.cdr-abas-esq main.layout{padding-left:0!important}
html.cedar-agenda-a .a-sync{display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46%}
html.cedar-agenda-a .a-sync-dot{width:8px;height:8px;border-radius:50%;background:var(--a-done);flex:0 0 auto}
html.cedar-agenda-a .a-sync--warn{color:var(--a-warn);font-weight:600}html.cedar-agenda-a .a-sync--warn .a-sync-dot{background:var(--a-warn);animation:a-pulse 1.4s ease-in-out infinite}
@keyframes a-pulse{0%,100%{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){html.cedar-agenda-a .a-sync--warn .a-sync-dot{animation:none}}
html.cedar-agenda-a #cedar-sync-pull-aviso{display:none!important}
html.cedar-agenda-a .a-motto{margin:0 auto;font-style:italic;color:var(--a-brand);font-weight:500;letter-spacing:.01em;white-space:nowrap}
html.cedar-agenda-a .a-sb-right{display:inline-flex;gap:4px;align-items:center}
html.cedar-agenda-a .a-sb-btn,html.cedar-agenda-a #a_sb_right>*{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;writing-mode:horizontal-tb!important;display:inline-flex!important;align-items:center;gap:5px;height:22px!important;min-height:0!important;width:auto!important;padding:0 8px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:var(--a-soft)!important;font:inherit!important;font-size:11.5px!important;font-weight:500!important;box-shadow:none!important;cursor:pointer;margin:0!important;line-height:1!important;z-index:auto!important}
html.cedar-agenda-a #a_sb_right>*{flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow:visible!important;max-width:none!important;color:var(--a-soft)!important}
html.cedar-agenda-a .a-sb-btn:hover,html.cedar-agenda-a #a_sb_right>*:hover{background:var(--a-s2)!important;color:var(--a-ink)!important}
html.cedar-agenda-a #a_sb_right>[hidden]{display:none!important}
html.cedar-agenda-a #a_sb_right .cal-pend-badge,html.cedar-agenda-a #a_sb_right .cdr-apa-badge,html.cedar-agenda-a #a_sb_right b{min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--a-s2);color:var(--a-ink);font-size:10.5px;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums;position:static!important;margin:0!important;line-height:1}
html.cedar-agenda-a #cal_pend_tab.has .cal-pend-badge{background:var(--a-brand);color:#fff}
html.cedar-agenda-a #cdr_apalert_tab.crit .cdr-apa-badge,html.cedar-agenda-a #cdr_apalert_tab.at .cdr-apa-badge{background:var(--a-miss);color:#fff}
html.cedar-agenda-a #cdr_apalert_tab:not(.on){display:none!important}
html.cedar-agenda-a #a_sb_right .cal-pend-indicators{display:inline-flex;gap:4px;align-items:center;position:static!important}
html.cedar-agenda-a #a_sb_right .cal-pend-sync{font-size:10.5px}
html.cedar-agenda-a #a_sb_right .cal-pend-tab-lbl,html.cedar-agenda-a #a_sb_right .cdr-apa-lbl,html.cedar-agenda-a #a_sb_right .cm-lbl{display:inline!important;font-size:11.5px;white-space:nowrap;transform:none!important;writing-mode:horizontal-tb!important;position:static!important;opacity:1!important;visibility:visible!important;width:auto!important;height:auto!important;clip:auto!important}
html.cedar-agenda-a #a_sb_right svg,html.cedar-agenda-a #a_sb_right .cdr-ico{width:14px;height:14px;font-size:14px}
html.cedar-agenda-a #cedar_sisa_root .sisa-btn{display:none!important}
html.cedar-agenda-a #cedar_sisa_root{bottom:calc(var(--a-bar) + 10px)!important}
/* abas laterais antigas (se algum addon reposicionar): nunca mais verticais */
html.cedar-agenda-a body>.cal-pend-tab,html.cedar-agenda-a body>.cdr-apa-tab,html.cedar-agenda-a body>#cm_tab{display:none!important}

/* ── responsivo (atributo data-a-bp definido pelo addon pela largura da tela da agenda) ── */
html.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-datenav #ag_date_label{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #btn_gerar_ordem>span{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) .a-batch-btn>span{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #r3_tools>summary{font-size:0!important;padding:0 9px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #r3_tools>summary .cdr-ico,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #r3_tools>summary svg{font-size:16px;width:16px;height:16px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #btn_agenda_terap{font-size:0!important;padding:0 9px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #btn_agenda_terap::before{content:'🔬';font-size:15px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #btn_agenda_terap .ag-terap-badge-n{font-size:11px;margin-left:4px}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-band1{gap:8px;padding:6px 12px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .r3-search{flex-basis:150px;min-width:130px}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-band1 .ag-header-right .ag-btn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-band1 .r3-menu>summary,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-datenav .agdn-btn,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-datenav #ag_date_picker,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .ag-period-tabs{height:40px;min-height:40px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3[data-a-bp="tablet"] .a-band1 .ag-header-right .a-batch-btn{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3[data-a-bp="tablet"] #btn_novo_agendamento{font-size:0!important;padding:0 12px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda.agenda-r3[data-a-bp="tablet"] #btn_novo_agendamento::before{content:"+ Novo";font-size:13px}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-lista-btn>span{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda:not([data-a-bp="desktop"]) #btn_gerar_ordem>span{display:inline}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] #btn_gerar_ordem>span{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] #btn_gerar_ordem:not(:has(.cdr-ico:not(:empty))):not(:has(svg))::before{content:"Ordem";font-size:12px}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-band2 .ag-ctab,html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-task{height:36px}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-task{padding:0 8px}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .a-showing{display:none}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row{min-height:64px;gap:2px 8px!important;grid-template-columns:auto 28px 44px max-content minmax(90px,1.2fr) 50px auto auto minmax(120px,1fr) auto auto auto auto!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .cdr-hp[data-hp-status^="nao_pesquisado"]{display:none!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .sec-call,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row-actions>.ag-btn--outline,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row-actions>[data-cedar-wa="agenda"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row .r3-details-toggle,html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row-actions>.a-reag{height:40px!important;min-height:40px!important}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row-actions>[data-cedar-wa="agenda"],html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"].agenda-r3 .ag-row .r3-details-toggle{width:40px!important;min-width:40px!important}
html.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] .sv-band.sv-faixa{max-width:100%}
html.cedar-agenda-r3.cedar-agenda-a #screen_agenda[data-a-bp="tablet"] #ag_kpi_bar .agr-insurers{display:none}
@media(prefers-reduced-motion:reduce){html.cedar-agenda-a #screen_agenda *{animation:none!important;transition:none!important}}
@media print{html.cedar-agenda-a .a-statusbar,html.cedar-agenda-a .a-lista,html.cedar-agenda-a .a-band{display:none!important}}
