:root{--agenda-action-fill:#0e7490}
@media(forced-colors:none){
 body{--agenda-action-ink:#84dfeb}
 body.light-theme{--agenda-action-ink:#095968}
 body .agenda-row-complete{--agenda-action-fill:var(--solid-purple)}
 body button.btn:is(.agenda-create,.agenda-operation-action){
   --action-focus:var(--agenda-action-ink);
   background:var(--agenda-action-fill)!important;color:var(--solid-ink)!important;border:1px solid var(--agenda-action-fill)!important
 }
 @media (hover:hover){body button.btn:is(.agenda-create,.agenda-operation-action):hover:not(:disabled){filter:brightness(1.08)}}
 body button.btn:is(.agenda-create,.agenda-operation-action):focus-visible{outline:3px solid var(--agenda-action-ink);outline-offset:3px}
}
.settings-category-tabs.agenda-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.agenda-page [role=tabpanel][hidden]{display:none}
[data-agenda-load-status]{margin-bottom:12px;color:var(--muted)}
[data-agenda-load-status] p{margin:0 0 8px}
.agenda-date-bar,.agenda-date-controls,.agenda-page-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.agenda-date-bar,.agenda-page-head{justify-content:space-between;margin-bottom:16px}
.agenda-date-controls .input{min-width:132px}
.agenda-arrow{font-size:20px;min-width:44px;min-height:44px}
.agenda-date-title{margin:0 0 14px;font-size:17px}
.agenda-date-title:first-letter{text-transform:uppercase}
.agenda-settings-grid,.agenda-schedule{display:grid;gap:16px}
.agenda-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:max-content 1fr auto;grid-template-areas:"reservas expediente" "bloqueios expediente" "salvar salvar";align-items:start}
#agenda-panel-settings{container:agenda-settings / inline-size}
.agenda-settings-grid>.section,.agenda-schedule{min-width:0;margin:0}
.agenda-settings-grid [data-agenda-reservations]{grid-area:reservas}
.agenda-reservation-options{display:grid;gap:10px}
.agenda-reservation-options>[data-agenda-public-link]:empty{display:none}
.agenda-reservation-options>.field{margin-block:6px 0}
[data-agenda-store-hours]{grid-area:expediente}
[data-agenda-store-hours],[data-agenda-custom-hours]{container:agenda-hours-card / inline-size}
.agenda-schedule{grid-area:bloqueios}.agenda-schedule>.section{margin:0}
[data-agenda-settings-footer]{grid-area:salvar;display:grid;justify-items:start;gap:10px}
[data-agenda-settings-footer] p{margin:0;font-size:14px}
[data-agenda-block-times][hidden]{display:none}
.agenda-page-head h2{margin:0 0 8px;font-size:16px}
.agenda-empty .muted{margin:6px 0 12px}
.agenda-setup-guide{display:grid;justify-items:center;gap:12px;padding:24px 12px;text-align:center}
.agenda-setup-guide p{margin:0;color:var(--muted);max-width:56ch}
.agenda-record small{display:block;overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
#agenda-panel-appointments{container:agenda-day / inline-size}
.agenda-appointment-list{display:grid;gap:10px;min-width:0}
.agenda-order{display:flex;align-items:center;justify-self:end;gap:8px;color:var(--muted);font-size:13px}
.agenda-order .select{width:auto;min-width:0;min-height:44px}
.agenda-appointment-cards{display:grid;gap:12px;list-style:none;padding:0;margin:0;min-width:0}
.agenda-appointment-card{
 --agenda-card-bg:#312d3b;--agenda-card-border:#4b4458;
 --agenda-card-slot:#443d52;--agenda-card-slot-ink:#f0eaf5;--agenda-card-status:#3b3448;--agenda-card-ink:#e1d7eb;
 --agenda-card-radius:23px;
 display:grid;grid-template-columns:88px minmax(0,1fr) minmax(180px,max-content) 200px;align-items:center;gap:10px 12px;
 padding:8px 13px 8px 8px;border-radius:var(--agenda-card-radius);min-width:0;
 background:var(--agenda-card-bg);border:1px solid var(--agenda-card-border);color:var(--text)
}
.agenda-appointment-card[data-agenda-card=confirmed]{
 --agenda-card-bg:#234651;--agenda-card-border:#366377;
 --agenda-card-slot:#2b5c6a;--agenda-card-slot-ink:#f0fbff;--agenda-card-status:#1b3944;--agenda-card-ink:#a9e7ef
}
.agenda-appointment-card[data-agenda-card=pending]{
 --agenda-card-bg:#5b452c;--agenda-card-border:#816040;
 --agenda-card-slot:#805b2e;--agenda-card-slot-ink:#fff4df;--agenda-card-status:#483621;--agenda-card-ink:#ffdb9e
}
.agenda-appointment-card[data-agenda-card=cancelled]{
 --agenda-card-bg:#4d303a;--agenda-card-border:#76505a;
 --agenda-card-slot:#623d48;--agenda-card-slot-ink:#fff0f2;--agenda-card-status:#412631;--agenda-card-ink:#ffc1c7
}
.agenda-appointment-card[data-agenda-card=blocked]{
 --agenda-card-bg:#40362b;--agenda-card-border:#67513a;
 --agenda-card-slot:#55442f;--agenda-card-slot-ink:#fff1d8;--agenda-card-status:#382d22;--agenda-card-ink:#f7d9a6
}
.light-theme .agenda-appointment-card{
 --agenda-card-bg:#efedf3;--agenda-card-border:#d4cede;
 --agenda-card-slot:#ded9e7;--agenda-card-slot-ink:#372e46;--agenda-card-status:#e4e0ed;--agenda-card-ink:#4a405b
}
.light-theme .agenda-appointment-card[data-agenda-card=confirmed]{
 --agenda-card-bg:#c5e3e7;--agenda-card-border:#9fc8cf;
 --agenda-card-slot:#a3d4db;--agenda-card-slot-ink:#173848;--agenda-card-status:#e0f0f2;--agenda-card-ink:#1b4e5c
}
.light-theme .agenda-appointment-card[data-agenda-card=pending]{
 --agenda-card-bg:#f2d5a2;--agenda-card-border:#d3ad76;
 --agenda-card-slot:#eabd73;--agenda-card-slot-ink:#432a13;--agenda-card-status:#fae8c6;--agenda-card-ink:#654615
}
.light-theme .agenda-appointment-card[data-agenda-card=cancelled]{
 --agenda-card-bg:#f5dce0;--agenda-card-border:#d8aab5;
 --agenda-card-slot:#eec5ce;--agenda-card-slot-ink:#672537;--agenda-card-status:#fae9ec;--agenda-card-ink:#762b39
}
.light-theme .agenda-appointment-card[data-agenda-card=blocked]{
 --agenda-card-bg:#f6ead8;--agenda-card-border:#dbbd97;
 --agenda-card-slot:#ecdbbf;--agenda-card-slot-ink:#563916;--agenda-card-status:#f9f0e2;--agenda-card-ink:#6e481d
}
.agenda-time{
 display:grid;place-content:center;gap:2px;min-width:0;min-height:61px;padding:4px;text-align:center;
 border-radius:calc(var(--agenda-card-radius) - 8px);background:var(--agenda-card-slot);color:var(--agenda-card-slot-ink);
 font-variant-numeric:tabular-nums;line-height:1.2
}
.agenda-time>time{font-size:21px;font-weight:800}
.agenda-time>span,.agenda-time>strong{font-size:12px}
.agenda-appointment-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.agenda-appointment-copy>strong{font-size:15px}
.agenda-appointment-people{font-size:13px;line-height:1.4}
.agenda-appointment-people>span+span::before{content:" · ";white-space:pre}
.agenda-status{
 display:inline-flex;align-items:center;justify-self:start;gap:6px;padding:5px 8px;border-radius:999px;
 background:var(--agenda-card-status);color:var(--agenda-card-ink);font-size:12px;font-weight:700;white-space:nowrap
}
.agenda-status::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.agenda-row-actions,.agenda-row-actions>.actions{
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--agenda-row-gap,7px);margin:0;min-width:0
}
.agenda-row-actions :is(.agenda-row-confirm,.agenda-row-complete){
 display:grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:9px;margin-inline-end:3px
}
.agenda-row-actions :is(.agenda-row-confirm,.agenda-row-complete) svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-visit-error]:empty{display:none}
@media(min-width:901px){
 #modal>.modal-card:has([data-visit-actions]>:nth-child(6)){--modal-max-width:720px}
 #modalBody [data-visit-actions]{flex-wrap:nowrap}
 #modalBody [data-visit-actions]>.btn{white-space:nowrap}
}
.agenda-history{margin-top:20px}
.agenda-history summary{cursor:pointer;padding-block:12px;width:fit-content}
.agenda-record{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);min-height:48px}
.agenda-record>div{flex:1;overflow-wrap:anywhere}
:is(.agenda-team-record,.agenda-service-record){flex-wrap:wrap}
:is(.agenda-team-record,.agenda-service-record)>div:first-child{min-width:min(100%,12ch)}
:is(.agenda-team-record,.agenda-service-record)>.actions{flex:0 0 auto;gap:8px;margin:0;margin-inline-start:auto}
.agenda-record small{margin-top:3px}
.agenda-record:last-child{border-bottom:0}
.agenda-check{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
.agenda-select select:focus-visible{outline:2px solid var(--soft-purple-ink);outline-offset:3px}
.agenda-check:has(input:disabled){opacity:.65;cursor:default}
.agenda-select{display:block;position:relative;min-width:0}.agenda-select select.input{appearance:none;width:100%;padding-inline-end:38px;background-image:none}
.agenda-select>.app-icon{position:absolute;width:16px;height:16px;inset-inline-end:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
.agenda-hours,.agenda-work-mode,.agenda-staff-options{border:0;min-width:0;padding:0;margin:0}
.agenda-hours legend,.agenda-work-mode legend,.agenda-staff-options legend{padding:0 0 8px;font-weight:800}
.agenda-workday{display:grid;grid-template-columns:minmax(76px,.55fr) minmax(0,1.45fr);gap:0 8px;align-items:center;padding-block:7px;border-bottom:1px solid var(--border)}
.agenda-workday:last-child{border:0}
.agenda-workday-head{display:flex;align-items:center;flex-wrap:wrap;gap:0 6px}.agenda-workday-head .muted{font-size:13px}
.agenda-lunch{min-width:0}
.agenda-lunch>[data-agenda-lunch-fields]{margin-top:10px}
.agenda-lunch fieldset{min-width:0;border:0;padding:0;margin:0}
.agenda-lunch [hidden],.agenda-workday [hidden]{display:none}
.agenda-lunch p{margin:0 0 8px;font-size:14px}
.agenda-lunch-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.agenda-lunch-times .field,.agenda-lunch-times .input{min-width:0;width:100%}
.agenda-lunch .agenda-lunch-days{margin-top:10px}
.agenda-lunch-days legend{padding:0;font-size:14px;font-weight:700}
.agenda-lunch-days>div,.agenda-staff-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,130px),1fr));gap:4px 14px}
.agenda-lunch-days .agenda-check{font-size:14px}
.agenda-workday [data-agenda-lunch-summary],.agenda-inherited-hours dd small{display:block;margin-top:4px;color:var(--store-accent-ink,var(--soft-purple-ink));font-size:13px;font-variant-numeric:tabular-nums}
.agenda-workday [data-agenda-lunch-summary][hidden]{display:none}
.agenda-period{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px;align-items:center}
.agenda-period+.agenda-period{margin-top:5px}
.agenda-period>span{color:var(--muted);font-size:13px}
.agenda-hours .input{min-width:0;width:100%;padding-inline:6px}
.agenda-hours>p{margin:0 0 8px;font-size:14px}
[data-agenda-store-hours] [data-agenda-lunch-summary]{grid-column:2}
.agenda-work-mode>div{display:flex;flex-wrap:wrap;gap:4px 14px}
.agenda-work-mode .agenda-check{display:flex;max-width:100%;gap:9px}
.agenda-work-mode .agenda-check>span{min-width:0;overflow-wrap:anywhere}
.agenda-inherited-hours{margin:8px 0 0}.agenda-inherited-hours>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:5px 0;border-bottom:1px solid var(--border)}.agenda-inherited-hours dd{margin:0;font-variant-numeric:tabular-nums}
[data-agenda-inherited]>p,[data-agenda-custom-hours]>p{margin:0 0 8px}
.agenda-settings-grid a{overflow-wrap:anywhere}
.agenda-settings-grid .agenda-date-bar{margin-bottom:6px}
.agenda-sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container agenda-day (max-width:730px){
 .agenda-appointment-card{grid-template-columns:70px minmax(0,1fr);gap:7px 10px;padding:8px}
 .agenda-appointment-card:has(.agenda-operation-action){
  --agenda-action-columns:3;
  grid-template-columns:repeat(var(--agenda-action-columns),minmax(0,1fr));column-gap:var(--agenda-row-gap,7px)
 }
 .agenda-appointment-card:has(.agenda-operation-action):has(.customer-whatsapp-action){--agenda-action-columns:4}
 .agenda-appointment-card:not([data-agenda-card=blocked]) .agenda-time{grid-area:1 / 1 / 3 / 2;align-self:stretch}
 .agenda-appointment-copy>strong{font-size:clamp(16px,calc(14px + 1cqi),18px)}
 .agenda-appointment-people{font-size:clamp(13px,calc(11px + 1cqi),15px)}
 .agenda-appointment-card :is(.agenda-appointment-copy,.agenda-status){grid-column:2/-1}
 .agenda-appointment-card .agenda-row-actions{
  display:grid;grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));margin-top:2px
 }
 .agenda-appointment-card:has(.agenda-operation-action) .agenda-row-actions{grid-template-columns:inherit;justify-content:start}
 .agenda-row-actions>.actions{display:contents}
 body .agenda-row-actions button:is(.compact-action,.agenda-row-confirm,.agenda-row-complete){width:100%;margin-inline-end:0}
}
@container agenda-day (max-width:340px){
 .agenda-appointment-card{--agenda-row-gap:5px}
}
@container agenda-settings (max-width:700px){
 .agenda-settings-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"reservas" "expediente" "bloqueios" "salvar"}
}
@container agenda-hours-card (max-width:335px){
 .agenda-workday{grid-template-columns:minmax(0,1fr);row-gap:3px}
 [data-agenda-store-hours] [data-agenda-lunch-summary]{grid-column:1}
}
