
/* ACELERE Design System — UI only. Backend contracts, KPI definitions and auth untouched. */
html.acelere-dark { --ac-radius: 12px; --ac-transition: 160ms ease; }
html.acelere-dark #desktopSidebar { display:none; }
@media(min-width:768px) {
  html.acelere-dark #desktopSidebar {
    display:flex; position:fixed; top:0; left:0; bottom:0; width:76px;
    z-index:75; background:#0d130e; border-right:1px solid #29382b;
    align-items:center; flex-direction:column; padding:16px 10px 14px; gap:22px;
  }
  html.acelere-dark #appShell > header,
  html.acelere-dark #appShell > main,
  html.acelere-dark #appShell > footer,
  html.acelere-dark #appShell > #customDateBanner { margin-left:76px; }
  html.acelere-dark #appShell > main { width:calc(100% - 76px); }
  html.acelere-dark #appShell > header > div { max-width:none; }
}
html.acelere-dark #desktopSidebar .ac-side-logo {
  width:47px;height:47px;display:grid;place-items:center;border:1px solid #355d3c;
  border-radius:13px;background:#14261a;flex:none;cursor:pointer;
}
html.acelere-dark #desktopSidebar .ac-side-logo img { width:34px;height:34px;object-fit:contain; }
html.acelere-dark #desktopSidebar .ac-side-nav {
  width:100%; display:flex; flex:1; gap:10px; flex-direction:column; align-items:center;
}
html.acelere-dark #desktopSidebar .ac-side-bottom { width:100%;display:flex;flex-direction:column;gap:13px;align-items:center; }
html.acelere-dark #desktopSidebar .ac-side-separator {width:34px;height:1px;background:#2b3c30;}
html.acelere-dark #desktopSidebar .ac-side-action,
html.acelere-dark #desktopSidebar #headerReportPdfBtn,
html.acelere-dark #desktopSidebar #logoutBtnDesktop,
html.acelere-dark #desktopSidebar #backToAdminBtn {
  height:47px;min-height:47px;width:47px;min-width:47px;display:flex;align-items:center;
  justify-content:center;padding:0 !important;border-radius:11px !important;
  border:1px solid transparent !important; background:transparent !important; color:#b2c6b6 !important;
  box-shadow:none !important;transition:background var(--ac-transition),color var(--ac-transition);
}
html.acelere-dark #desktopSidebar :is(button:hover,button.ac-active) {
  background:#203a28 !important; color:#68e795 !important; border-color:#345d40 !important;
}
html.acelere-dark #desktopSidebar button:focus-visible {outline:2px solid var(--ac-green);outline-offset:3px;}
html.acelere-dark #desktopSidebar #logoutBtnDesktop:hover {color:#ffb0b8 !important;}
html.acelere-dark #desktopSidebar :is(#headerReportPdfBtn,#backToAdminBtn) span {display:none !important;}
html.acelere-dark #desktopSidebar :is(#headerReportPdfBtn,#logoutBtnDesktop,#backToAdminBtn).hidden,
html.acelere-dark #desktopSidebar .hidden {display:none !important;}
html.acelere-dark .ac-select {display:inline-block;position:relative;min-width:0;max-width:100%;vertical-align:middle;}
html.acelere-dark .ac-select-native {
  position:absolute !important;inset:0 !important; width:100% !important;height:100% !important;
  opacity:0 !important;pointer-events:none !important;z-index:-1 !important;
}
html.acelere-dark .ac-select-trigger {
  border:1px solid #38503d; background:#18251b; color:#f2f9f4;
  font-size:12px;font-weight:650;line-height:1.3;border-radius:11px;
  min-height:44px;min-width:100px;max-width:100%;padding:10px 13px;
  display:flex;align-items:center;gap:12px;justify-content:space-between;
  cursor:pointer;text-align:left;transition:border-color var(--ac-transition),background var(--ac-transition);
}
html.acelere-dark .ac-select-trigger > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html.acelere-dark .ac-select-trigger::after {
  content:"";flex:none;width:7px;height:7px;border-right:1.7px solid #98cda7;border-bottom:1.7px solid #98cda7;
  transform:translateY(-2px) rotate(45deg);transition:transform var(--ac-transition);
}
html.acelere-dark .ac-select.ac-open .ac-select-trigger {border-color:#59d886;background:#203528;}
html.acelere-dark .ac-select.ac-open .ac-select-trigger::after {transform:translateY(2px) rotate(225deg);}
html.acelere-dark .ac-select-trigger:focus-visible {outline:2px solid #59d886;outline-offset:2px;}
html.acelere-dark .ac-select-trigger:disabled {opacity:.45;cursor:not-allowed;}
html.acelere-dark .ac-select + :is(svg,i) {display:none !important;}
html.acelere-dark .ac-select-menu {
  position:fixed;display:none;z-index:220;background:#142018;color:#edf7ef;
  border:1px solid #3a5841;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.6);
  padding:6px;overflow:auto;overscroll-behavior:contain;max-height:min(330px,65vh);
}
html.acelere-dark .ac-select-menu.ac-open {display:block;}
html.acelere-dark .ac-select-menu button {
  display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 12px;border-radius:8px;background:transparent;border:0;
  font-weight:550;font-size:12px;text-align:left;line-height:1.4;color:#d5e7d9;min-height:41px;
}
html.acelere-dark .ac-select-menu button:hover,
html.acelere-dark .ac-select-menu button:focus-visible {background:#243a2b;color:#fff;outline:0;}
html.acelere-dark .ac-select-menu button[aria-selected="true"] {background:#1d3927;color:#65e892;font-weight:750;}
html.acelere-dark .ac-select-menu button:disabled {opacity:.45;cursor:not-allowed;}
html.acelere-dark .ac-select-search {background:#0f1912;border:1px solid #344d3c;border-radius:8px;padding:10px;color:#fff;outline:none;width:100%;margin-bottom:6px;font-size:12px;}
html.acelere-dark .ac-select-search:focus {border-color:#59d886;}
html.acelere-dark #clientPortalSelect + .ac-select-trigger {width:100%;}
html.acelere-dark #clientView .ac-select {min-width:min(190px,100%);}
html.acelere-dark #clientView > .glass-panel:first-child {overflow:visible !important;}
html.acelere-dark #clientView > .glass-panel:first-child .ac-select {max-width:min(280px,75vw);}
html.acelere-dark #tenantSelectWrap .ac-select-trigger {max-width:225px;}
html.acelere-dark #appShell .ac-busy-target {position:relative;}
html.acelere-dark #appShell .ac-is-loading > :not(.ac-skeleton-overlay) {visibility:hidden;}
html.acelere-dark #appShell .ac-skeleton-overlay {
  position:absolute;inset:0;z-index:8;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;pointer-events:none;min-height:100%;align-items:stretch;
}
html.acelere-dark #appShell .ac-skeleton-tile {
  min-height:116px;border-radius:12px;border:1px solid #2a3b2e;background:#17211a;
  padding:18px;display:flex;flex-direction:column;gap:18px;
}
html.acelere-dark #appShell .ac-skeleton-tile span {
  display:block;height:12px;border-radius:6px;width:54%;
  background:linear-gradient(95deg,#27382b 20%,#3d5742 46%,#27382b 72%);
  background-size:230% 100%;animation:ac-shimmer 1.6s linear infinite;
}
html.acelere-dark #appShell .ac-skeleton-tile span:last-child {width:72%;height:28px;}
html.acelere-dark #appShell .ac-busy-single .ac-skeleton-overlay {grid-template-columns:1fr;}
html.acelere-dark #appShell .ac-busy-single .ac-skeleton-tile {min-height:190px;}
html.acelere-dark #appShell .ac-is-updating::after {
  content:"Atualizando…";position:absolute;right:6px;top:-22px;color:#67e497;
  background:#132218;border:1px solid #2f5739;border-radius:7px;padding:2px 7px;
  font-size:10px;z-index:9;pointer-events:none;
}
html.acelere-dark #appShell .ac-busy-error {
  position:absolute;inset:0;z-index:9;background:#141c16;border:1px solid #3d4e40;
  border-radius:12px;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:9px;padding:20px;text-align:center;font-size:13px;color:#e2ede4;
}
html.acelere-dark .ac-busy-error button {background:#225b36;border:1px solid #56ad6f;border-radius:9px;padding:9px 15px;color:#fff;}
@keyframes ac-shimmer {to{background-position-x:-230%;}}
html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) {
  background:rgba(3,9,5,.82) !important;backdrop-filter:blur(6px) !important;
}
html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) > .glass-panel {
  background:#141f17 !important;border:1px solid #35523c !important;
  border-radius:17px !important;box-shadow:0 24px 70px rgba(0,0,0,.55) !important;
}
html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) .glass-input {
  background:#0f1812 !important;border:1px solid #334b3a !important;color:#f4faf5 !important;
  border-radius:10px !important;
}
html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) input:focus-visible,
html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) textarea:focus-visible {outline:2px solid #5ddd87;outline-offset:2px;}
html.acelere-dark input[type="file"]::file-selector-button {
  background:#1d3b27;color:#e6faec;border:1px solid #456d51;
  border-radius:8px;padding:9px;margin-right:12px;cursor:pointer;
}
html.acelere-dark .ac-confirm-backdrop {
  position:fixed;inset:0;z-index:230;background:rgba(1,7,3,.80);
  align-items:center;justify-content:center;padding:16px;display:flex;
  backdrop-filter:blur(7px);
}
html.acelere-dark .ac-confirm-backdrop.hidden {display:none !important;}
html.acelere-dark .ac-confirm-card {
  max-width:440px;width:100%;background:#152119;border:1px solid #3a5741;
  border-radius:16px;box-shadow:0 24px 75px rgba(0,0,0,.55);
  padding:26px;display:flex;flex-direction:column;gap:14px;
}
html.acelere-dark .ac-confirm-symbol {width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#22432e;color:#76eb9d;}
html.acelere-dark .ac-confirm-card h2 {font-size:18px;font-weight:750;color:#f5faf6;}
html.acelere-dark .ac-confirm-card p {font-size:13px;color:#bfcec2;line-height:1.6;white-space:pre-line;}
html.acelere-dark .ac-confirm-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:8px;}
html.acelere-dark .ac-confirm-actions button {min-height:43px;padding:10px 16px;border-radius:9px;font-size:13px;font-weight:650;}
html.acelere-dark .ac-confirm-cancel {background:#26342a;color:#e3f0e6;border:1px solid #3b4b3e;}
html.acelere-dark .ac-confirm-accept {background:#4bd77a;color:#0a1a0e;}
html.acelere-dark .ac-confirm-accept.ac-danger {background:#a93c47;color:#fff;}
html.acelere-dark .ac-toast {
  display:flex;gap:12px;align-items:center;pointer-events:auto;padding:13px;
  background:#16221a;border:1px solid #35553d;border-left:3px solid #65e892;
  border-radius:11px;box-shadow:0 16px 50px rgba(0,0,0,.45);
  color:#f2faf4;font-size:12px;font-weight:550;max-width:min(410px,90vw);
}
html.acelere-dark .ac-toast--warning {border-left-color:#e9bd72;}
html.acelere-dark .ac-toast--error {border-left-color:#ed9199;}
html.acelere-dark .ac-toast-mark {font-size:15px;font-weight:800;color:#65e892;flex:none;}
html.acelere-dark .ac-toast--warning .ac-toast-mark {color:#e9bd72;}
html.acelere-dark .ac-toast--error .ac-toast-mark {color:#ed9199;}
html.acelere-dark .ac-toast-message {flex:1;overflow-wrap:anywhere;line-height:1.5;}
html.acelere-dark .ac-toast-close {color:#b9cbbd;font-size:20px;line-height:1;padding:4px;}
html.acelere-dark .ac-toast-close:hover {color:white;}
html.acelere-dark #geographySection.hidden {display:none !important;}
html.acelere-dark #geographySection #cityMap.hidden {display:none !important;}
html.acelere-dark #geographySection .grid:has(#cityMap.hidden) {grid-template-columns:minmax(0,1fr) !important;}
@media(max-width:767px) {
 html.acelere-dark .ac-skeleton-overlay {gap:8px !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
 html.acelere-dark .ac-skeleton-tile {min-height:115px !important;padding:12px !important;}
 html.acelere-dark :is(#clientModal,#metaModal,#pdfReportModal) > .glass-panel {border-radius:0 !important;}
 html.acelere-dark .ac-confirm-card {padding:21px;}
 html.acelere-dark .ac-confirm-actions {flex-direction:column-reverse;}
 html.acelere-dark .ac-confirm-actions button {width:100%;}
}
@media(prefers-reduced-motion:reduce) {
 html.acelere-dark .ac-skeleton-tile span {animation:none !important;}
}
