/* Paletas compartilhadas pelo painel, formulários, loja e diálogos. */
:root{color-scheme:light;--page:#f7f8f4;--surface:#ffffff;--surface-soft:#edf1e9;--text:#223b35;--muted:#536358;--green:#163d35;--line:#cfd8cd;--accent:#163d35;--on-accent:#ffffff;--selected:#eaf0e5;--selected-text:#294932;--warning-bg:#fff0df;--warning-text:#805010;--error-bg:#fff2ec;--error-text:#933d2d;--focus:#316bb5}
html,body{background:var(--page);color:var(--text);min-height:100dvh}
.theme-toggle{white-space:nowrap;min-height:36px;flex-shrink:0}
/* A troca de tema deve atualizar texto e fundo juntos, sem contraste intermediário. */
button{transition:filter .15s}
.login>.theme-toggle{display:block;width:auto;margin-left:auto;margin-bottom:16px}
:is(.eyebrow,.navlabel,.footer,.dash-chart-total,.dash-request small,.dash-platform span,.company-preview-banner span,.modulecard p,.banner p,.notice-copy time){color:var(--muted)}
:is(.pill,.store .pill){background:var(--selected);color:var(--selected-text)}
.pill.orange{background:var(--warning-bg);color:var(--warning-text)}
.pill.gray{background:var(--surface-soft);color:var(--muted)}
:is(.danger,.error){background:var(--error-bg);color:var(--error-text)}
.formerror{color:var(--error-text)}
th{color:var(--muted)}
input,select,textarea{border-color:#7b897d}
.producticon{color:#5f7057}
.square.shop{color:#545c7b}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.notification-count{background:#a43b2a;color:#fff}
.storehead .pill{background:#315348;color:#edf7e7}
:root[data-theme=dark]{color-scheme:dark;--page:#0b111b;--surface:#121c2b;--surface-soft:#1a283b;--text:#edf3ff;--muted:#adc2db;--green:#43d6ac;--line:#2d435e;--lime:#a9c9ff;--accent:#43d6ac;--on-accent:#06271e;--selected:#19343b;--selected-text:#64e6c5;--warning-bg:#3c3021;--warning-text:#ffdaa7;--error-bg:#3c2534;--error-text:#ffb3c2;--focus:#83b4ff}
[data-theme=dark] :is(.sidebar,.topbar,.stat,.card,.login,.product,.option,.checkout-head,.notification-panel,.notification-item,dialog){background:var(--surface);color:var(--text)}
[data-theme=dark] :is(input,select,textarea,.branding-grid input[type=file]){background:#101a29;color:var(--text);border-color:var(--line)}
[data-theme=dark] button{color:var(--text);background:var(--surface-soft)}
[data-theme=dark] .ghost{background:transparent;color:var(--text)}
[data-theme=dark] :is(.primary,.booksteps .current,.lime){background:var(--accent);color:var(--on-accent)}
.brandmark,[data-theme=dark] .brandmark{background:#163d35;color:#d7ec9c}
[data-theme=dark] :is(.storehead,.stat.featured){background:#121c2b;color:#edf3ff;border-color:#2d465a}
[data-theme=dark] .storehead p,[data-theme=dark] .featured .statfoot{color:#adc2db}
[data-theme=dark] :is(.option.selected,.notice,.demo,.modulecard,.banner,.dash-platform,.company-preview-banner,.notification-item.unread,.request-highlight){background:var(--selected);color:var(--text);border-color:#2d465a}
[data-theme=dark] .nav button{background:transparent}
[data-theme=dark] .nav button.active{background:var(--selected);color:var(--selected-text)}
[data-theme=dark] :is(.pill,.store .pill,.storehead .pill){background:var(--selected);color:var(--selected-text)}
[data-theme=dark] .pill.orange{background:var(--warning-bg);color:var(--warning-text)}
[data-theme=dark] .pill.gray{background:var(--surface-soft);color:var(--muted)}
[data-theme=dark] :is(.producticon,.square,.square.shop,.avatar,.flow b,.booksteps span,.dash-request-icon,.notice-symbol,.success .checkmark){background:var(--surface-soft);color:#adc2db}
[data-theme=dark] :is(th,.notification-panel>footer){background:#121c2b;color:var(--muted)}
[data-theme=dark] :is(td,.notification-item){border-color:var(--line)}
[data-theme=dark] .notification-item:hover{background:#20364b}
[data-theme=dark] .notification-count{border-color:var(--surface);background:#a43b2a;color:#fff}
[data-theme=dark] :is(.danger,.error){background:var(--error-bg);color:var(--error-text)}
[data-theme=dark] .formerror{color:var(--error-text)}
[data-theme=dark] .dash-bar-track{background:repeating-linear-gradient(to top,transparent 0,transparent 41px,#273b53 42px)}
[data-theme=dark] .dash-bar-pending,[data-theme=dark] .dot.pending{background:#ff8aa0}
[data-theme=dark] .dash-bar{background:#233a53}
[data-theme=dark] .unread-dot{background:#43d6ac}
[data-theme=dark] .checkout-content #customerform>button{box-shadow:0 -7px 12px var(--surface)}
[data-theme=dark] .moduleline{background:var(--surface)}
[data-theme=dark] .linkbox{background:var(--surface-soft);color:var(--text);border:1px solid var(--line)}
[data-theme=dark] #toast{background:#d5e7ff;color:#11213a;border:1px solid #43d6ac}
[data-theme=dark] .request-highlight{box-shadow:0 0 0 3px #51bda744}
[data-theme=dark] dialog::backdrop{background:#000a}
:root[data-theme=dark]{background:var(--page);color:var(--text)}
[data-theme=dark] .storehead.has-cover{background:#121c2b}
[data-theme=dark] .storehead.has-cover:after{background:linear-gradient(90deg,#0b111bed,#0b111b99)}
.sidebar{position:relative;z-index:5;gap:24px}
.schedule-days{border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.schedule-days legend{font-size:12px;padding:0 6px}
.sidebar-controls{display:grid;gap:10px;min-width:0}
.sidebar>div:has(>.sidebar-controls)>.navlabel{text-align:center;margin-left:0;margin-right:0}
.sidebar-controls>select,.sidebar-controls>button{width:100%;max-width:none!important;min-height:40px;text-align:center}
.sidebar-controls>select{text-align-last:center}
.sidebar-controls .notification-bell{justify-content:center;width:100%;min-height:40px;text-align:center}
.sidebar-controls .notification-caption{display:inline}
.sidebar-controls .theme-toggle{order:2}
.sidebar-controls [data-action=logout]{order:3}
.sidebar-controls .notification-panel{position:fixed;left:256px;right:auto;top:16px;width:min(420px,calc(100vw - 272px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column}
.sidebar-controls .notification-panel>header,.sidebar-controls .notification-tools,.sidebar-controls .notification-panel>footer{flex-shrink:0}
.sidebar-controls .notification-list{max-height:calc(100dvh - 220px)}
.sidebar-controls .notification-panel button{min-height:32px}
.sidebar-controls .notification-panel .notification-item{min-height:0}
.shell>section{min-width:0}
@media(min-width:761px) and (max-width:1100px){.sidebar-controls .notification-panel{left:217px;width:min(420px,calc(100vw - 233px))}}
@media(max-width:760px){.sidebar-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.sidebar-controls .notification-anchor{grid-column:1}.sidebar-controls .theme-toggle{order:0}.sidebar-controls [data-action=logout]{order:0}.sidebar-controls .notification-panel{position:fixed;left:12px;right:12px;top:16px;width:auto;max-height:calc(100dvh - 32px)}.sidebar-controls .notification-list{max-height:calc(100dvh - 220px)}}
@media(max-width:760px){.topbar{height:auto;min-height:83px;padding-top:14px;padding-bottom:14px}.topactions{justify-content:flex-end}.topactions select{max-width:100%!important}.topactions .theme-toggle{min-height:38px}.row{flex-wrap:wrap}.row>div{min-width:0;overflow-wrap:anywhere}}

/* Logos mantêm as cores e a transparência do arquivo em ambos os temas. */
.company-logo,#brand-preview-logo{filter:none!important;mix-blend-mode:normal;opacity:1}

[data-theme=dark] .nav button.active{box-shadow:inset 0 0 0 1px #2a5963}
[data-theme=dark] .stat.featured{background:linear-gradient(110deg,#16323a,#121c2b);border-color:#2a5762}
[data-theme=dark] .stat.featured .statvalue{color:#43d6ac}

.day-config{border:1px solid var(--line);padding:14px;border-radius:10px}.day-config summary{font-weight:700;cursor:pointer}.day-config[open] summary{margin-bottom:16px}.day-config .two{margin-top:12px}

.agenda-event{display:grid;grid-template-columns:70px minmax(0,1fr);gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.agenda-event time{font-size:19px;font-weight:700;border-right:3px solid var(--accent);padding-right:10px}.agenda-event time small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:6px}.agenda-event p{font-size:12px;color:var(--muted)}.row[hidden]{display:none}.agenda-event .actions{flex-wrap:wrap}

.advanced-navigation{margin-top:18px}.advanced-navigation summary{cursor:pointer;padding:12px;color:var(--muted);font-size:13px}.advanced-navigation[open] summary{margin-bottom:8px}.message-link{display:block;text-align:center;text-decoration:none;border-radius:9px;padding:14px}#print-report{display:none}@media print{body>*{display:none!important}body>#print-report{display:block!important;color:#000;background:#fff;padding:20px;font-family:Arial,sans-serif}#print-report table{border-collapse:collapse;width:100%;margin:20px 0}#print-report td,#print-report th{border-bottom:1px solid #bbb;padding:10px;text-align:left;color:#000}#print-report h1{font-size:22px}}

.share-qr{background:#fff;padding:15px;border-radius:10px;max-width:300px;margin:20px auto}.share-qr svg{display:block;width:100%;height:auto}.public-store .primary{background:var(--store-accent,#163d35);color:var(--store-on-accent,#fff)}.public-store .storehead:not(.has-cover){background:var(--store-accent,#163d35);color:var(--store-on-accent,#fff)}.public-store .storehead:not(.has-cover) :is(h1,p,.pill){color:inherit}.public-store .storehead:not(.has-cover) .pill{background:transparent;border:1px solid currentColor}

.agenda-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:12px 18px;border-bottom:1px solid var(--line)}.agenda-week button{padding:10px 4px;font-size:12px}

/* Action groups reserve their own space instead of sharing inline baselines. */
.actions{gap:12px;row-gap:12px}
.actions>button,.actions>a,.modalfoot>button{height:auto;white-space:normal}
.request-controls{flex:0 1 260px;justify-content:flex-end}
.request-controls>select{flex-basis:100%}
.schedule-actions{margin-bottom:18px}
.professional-actions{flex:0 1 220px;justify-content:flex-end}
.professional-actions>button{width:auto}
.sidebar>div{flex-shrink:0}
.storehead.has-cover{display:flex;flex-direction:column;justify-content:center;padding:0;gap:0;min-height:230px;background:var(--surface,#fff);color:var(--text,#223b35);border:1px solid var(--line)}
.storehead.has-cover>.store-cover{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center;z-index:-1;opacity:.13;pointer-events:none}
.storehead.has-cover:after{display:none}
.storehead.has-cover>.pill{align-self:flex-start;margin:22px 24px 0}
.storehead.has-cover>:is(h1,h2){margin:12px 24px 0;color:inherit;line-height:1.25}
.storehead.has-cover>p{margin:12px 24px 24px;color:var(--muted);line-height:1.65}
[data-theme=dark] .storehead.has-cover{background:var(--surface,#142131);color:#edf3ff}
[data-theme=dark] .storehead.has-cover>p{color:#adc2db}
.company-logo{padding:0;border:0;background:transparent;border-radius:10px;object-fit:contain}
.company-brand>.store-name{font:inherit;margin:0;line-height:1.3;overflow-wrap:anywhere;min-width:0}
.public-store .store>.actions:first-child{margin-bottom:24px}
.fields[hidden]{display:none}
.store-contact{margin:-8px 0 24px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.store-contact a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:3px}
@media(max-width:600px){.storehead.has-cover{min-height:185px}.storehead.has-cover>.pill{margin:18px 20px 0}.storehead.has-cover>:is(h1,h2){margin:10px 20px 0}.storehead.has-cover>p{margin:10px 20px 20px}.storehead.has-cover h1{font-size:27px}}
