/* Gerado a partir do base.html (estilos de versões anteriores), na mesma ordem. */

/* V108 • Busca global consistente + modo escuro alinhado à identidade OdiHub */
.global-search-form{display:flex!important;align-items:center!important;gap:7px!important;position:relative!important;flex:1 1 520px!important;max-width:520px!important;height:42px!important}
.global-search-form .global-search-icon{position:absolute!important;left:13px!important;top:50%!important;transform:translateY(-52%)!important;font-size:20px!important;line-height:1!important;color:#1dd8e2!important;z-index:2!important;pointer-events:none!important}
.global-search-form input{width:100%!important;height:42px!important;box-sizing:border-box!important;padding:10px 14px 10px 39px!important;border:1px solid #d9e7f1!important;border-radius:13px!important;background:#fff!important;color:#19696d!important;outline:none!important;box-shadow:0 4px 15px rgba(20,72,120,.05)!important;font:inherit!important}
.global-search-form input::placeholder{color:#7890a5!important;opacity:1!important}
.global-search-form input:focus{border-color:#21dbe5!important;box-shadow:0 0 0 3px rgba(22,140,240,.12)!important}
.global-search-button{display:none!important}
html[data-theme="dark"] .global-search-form input{background:#102c40!important;color:#eef8ff!important;border-color:#2a5268!important;box-shadow:0 5px 18px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .global-search-form input::placeholder{color:#9bb7c8!important}
html[data-theme="dark"] .global-search-form .global-search-icon{color:#55eef6!important}

/* Dashboard: modo escuro não troca a identidade, apenas adapta a superfície. */
html[data-theme="dark"] .dashboard-main{background:#071521!important}
html[data-theme="dark"] .dashboard-main .top-actions form input{background:#102c40!important;color:#eef8ff!important;border-color:#2a5268!important}
html[data-theme="dark"] .dashboard-main .theme-toggle{background:#102c40!important;color:#eef8ff!important;border-color:#2a5268!important}
html[data-theme="dark"] .dashboard-main .user{background:#102c40!important;color:#d9edf7!important;border-color:#2a5268!important}
html[data-theme="dark"] .dashboard-main .user .unit-badge{background:#183c52!important;color:#bcd5e3!important}
html[data-theme="dark"] .dashboard-main .user .role-badge{background:#104c4d!important;color:#8ff0dd!important}

html[data-theme="dark"] .sr-dashboard .sr-action{background:#102c40!important;border-color:#2a5268!important;color:#eef8ff!important;box-shadow:0 8px 22px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .sr-dashboard .sr-action b{color:#f2f9fd!important}
html[data-theme="dark"] .sr-dashboard .sr-action small{color:#a9c0ce!important}
html[data-theme="dark"] .sr-dashboard .sr-kpi{background:#102c40!important;border-color:#2a5268!important;color:#eef8ff!important;box-shadow:0 8px 22px rgba(0,0,0,.20)!important}
html[data-theme="dark"] .sr-dashboard .sr-kpi strong{color:#f2f9fd!important}
html[data-theme="dark"] .sr-dashboard .sr-kpi small{color:#a9c0ce!important}
html[data-theme="dark"] .sr-dashboard .sr-kpi em{color:#48d39a!important}
html[data-theme="dark"] .sr-dashboard .sr-kpi>b{color:#55eef6!important}
html[data-theme="dark"] .sr-dashboard .sr-panel{background:#102c40!important;border-color:#2a5268!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important;color:#eef8ff!important}
html[data-theme="dark"] .sr-dashboard .sr-panel-head h3{color:#f2f9fd!important}
html[data-theme="dark"] .sr-dashboard .sr-panel p{color:#a9c0ce!important}
html[data-theme="dark"] .sr-dashboard .sr-filter{background:#15364b!important;border-color:#2a5268!important;color:#dceefa!important}
html[data-theme="dark"] .sr-dashboard .sr-legend span{color:#c0d2dc!important}
html[data-theme="dark"] .sr-dashboard .sr-legend b{color:#eef8ff!important}
html[data-theme="dark"] .sr-dashboard .sr-donut:after{background:#102c40!important}
html[data-theme="dark"] .sr-dashboard .sr-table th{background:#17384c!important;color:#cfe3ee!important;border-color:#2a5268!important}
html[data-theme="dark"] .sr-dashboard .sr-table td{background:#102c40!important;color:#dbeaf2!important;border-color:#24495d!important;opacity:1!important}
html[data-theme="dark"] .sr-dashboard .sr-table td:first-child,html[data-theme="dark"] .sr-dashboard .sr-table td:last-child{color:#aec5d2!important}
html[data-theme="dark"] .sr-dashboard .sr-table td:nth-child(2){color:#f0f8fc!important}
html[data-theme="dark"] .sr-dashboard .sr-table tbody tr:hover td{background:#14384d!important;color:#fff!important}
html[data-theme="dark"] .sr-dashboard .sr-quick-list a{background:#102c40!important;border-color:#2a5268!important;color:#e6f3f9!important}
html[data-theme="dark"] .sr-dashboard .sr-quick-list a:hover{background:#15384d!important;border-color:#3b6b84!important}
html[data-theme="dark"] .sr-dashboard .sr-help{background:#102c40!important;border-color:#2a5268!important;color:#e6f3f9!important}
html[data-theme="dark"] .sr-dashboard .sr-help small{color:#9eb8c7!important}

/* Cores OdiHub permanecem vivas nos dois temas. */
.sr-action.action-green .sr-action-icon{background:#dff7e9!important;color:#10a86a!important}
.sr-action.action-red .sr-action-icon{background:#ffe1e5!important;color:#ef3e4e!important}
.sr-action.action-blue .sr-action-icon{background:#e3fcfe!important;color:#1dd8e2!important}
.sr-action.action-purple .sr-action-icon{background:#e9fdfe!important;color:#58d2d9!important}
.sr-action.action-cobalt .sr-action-icon{background:#e4fcfe!important;color:#21dbe5!important}
html[data-theme="dark"] .sr-action.action-green .sr-action-icon{background:#173f38!important;color:#59e0a5!important}
html[data-theme="dark"] .sr-action.action-red .sr-action-icon{background:#4a2730!important;color:#ff7b88!important}
html[data-theme="dark"] .sr-action.action-blue .sr-action-icon{background:#183b62!important;color:#6af0f7!important}
html[data-theme="dark"] .sr-action.action-purple .sr-action-icon{background:#382c58!important;color:#98f5fa!important}
html[data-theme="dark"] .sr-action.action-cobalt .sr-action-icon{background:#183c62!important;color:#6cf0f7!important}

/* A busca global deve permanecer visível também na Home. */
@media (min-width:851px) and (pointer:fine), (min-width:851px) and (min-height:501px){.dashboard-main .top-actions{width:auto!important;max-width:none!important;flex:1!important}.dashboard-main .global-search-form{display:flex!important;visibility:visible!important;opacity:1!important;max-width:520px!important;flex:1 1 520px!important}.dashboard-main .global-search-button{display:none!important}}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.global-search-form{max-width:none!important;flex-basis:100%!important}.top-actions{flex-wrap:wrap!important}.dashboard-main .global-search-form{display:flex!important}}


/* V112 • Polimento final de interface: hierarquia, densidade e consistência */

/* Busca global: ícone, campo e ação em um único componente, sem sobreposição. */
.global-search-form{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  width:100%!important;
  max-width:560px!important;
  min-width:0!important;
  height:40px!important;
  padding:0 4px 0 0!important;
  position:relative!important;
  overflow:hidden!important;
  border:1px solid #d7e5ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(20,72,120,.045)!important;
}
.global-search-form .global-search-icon{
  position:static!important;
  transform:none!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
  width:34px!important;
  height:100%!important;
  font-size:17px!important;
  color:#21d4de!important;
  pointer-events:none!important;
}
.global-search-form input{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:38px!important;
  padding:8px 8px 8px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  color:#123b69!important;
  font:inherit!important;
}
.global-search-form input::placeholder{color:#7890a5!important;opacity:1!important}
.global-search-form input:focus{border:0!important;box-shadow:none!important;outline:none!important}
.global-search-button{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  height:32px!important;
  margin-right:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:#21d4de!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:850!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.global-search-button:hover{background:#1bb7bf!important}

/* Menu lateral: ícone e texto sempre na mesma linha, com densidade profissional. */
.nav-submenu{padding:3px 0 7px 18px!important;margin:0!important;border-left:1px solid #dce8f1!important;gap:2px!important}
.nav-subitem{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:34px!important;
  height:34px!important;
  gap:8px!important;
  padding:6px 8px!important;
  margin:1px 0!important;
  border-radius:9px!important;
  white-space:nowrap!important;
  line-height:1.1!important;
}
.nav-subitem .sub-dot{
  display:grid!important;
  place-items:center!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  border-radius:6px!important;
  font-size:10px!important;
}
.nav-subitem.active{font-weight:850!important}
.nav-group>summary{min-height:40px!important;height:40px!important}

/* Menos espaço vertical no menu, sem perder legibilidade. */
.nav{gap:1px!important}
.nav-item{min-height:40px!important;height:40px!important;padding:9px 11px!important;margin:2px 0!important}
.nav-exit{margin-top:5px!important}

/* Cabeçalho: saudação não compete com a busca. */
.dashboard-main .top{
  display:grid!important;
  grid-template-columns:minmax(210px,250px) minmax(260px,1fr) auto auto!important;
  align-items:center!important;
  gap:12px!important;
  overflow:visible!important;
}
.dashboard-main .top-heading{grid-column:1!important;min-width:0!important;max-width:none!important}
.dashboard-main .top-actions{display:contents!important}
.dashboard-main .global-search-form{grid-column:2!important;max-width:none!important;width:100%!important}
.dashboard-main .theme-toggle{grid-column:3!important}
.dashboard-main .user{grid-column:4!important}

/* Cards: escala mais elegante em 100% do navegador. */
.sr-action{min-height:68px!important;padding:9px 11px!important}
.sr-action-icon{width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important}
.sr-action b{font-size:13px!important}
.sr-action small{font-size:9px!important}
.sr-kpi{min-height:76px!important;padding:9px 11px!important}
.sr-kpi-icon{width:36px!important;height:36px!important;min-width:36px!important}

/* Validação de validade: botões de PDF ficam integrados à área de conteúdo. */
.validity-v110-head{display:block!important;padding:20px!important}
.validity-v110-head>div:first-child{max-width:900px!important}
.validity-v110-pdfs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;justify-content:stretch!important;margin-top:15px!important}
.validity-v110-pdfs .btn{width:100%!important;min-height:38px!important;padding:8px 10px!important;text-align:center!important;font-size:12px!important;white-space:nowrap!important}
.validity-v110-pdfs .btn:nth-child(1){border-color:#d1f3f5!important;background:#eefdfe!important;color:#21d4de!important}
.validity-v110-pdfs .btn:nth-child(2){border-color:#ffd5da!important;background:#fff0f2!important;color:#d83c4d!important}
.validity-v110-pdfs .btn:nth-child(3){border-color:#f5dfaa!important;background:#fff8e5!important;color:#a86e00!important}
.validity-v110-pdfs .btn:nth-child(4){border-color:#d4f6f8!important;background:#f0fdfe!important;color:#4dcad1!important}

/* Tema escuro: superfície azul-marinho, nunca preto puro. */
html[data-theme="dark"] .global-search-form{background:#102c40!important;border-color:#294b60!important}
html[data-theme="dark"] .global-search-form input{color:#eef8ff!important}
html[data-theme="dark"] .global-search-form input::placeholder{color:#9bb7c8!important}
html[data-theme="dark"] .global-search-form .global-search-icon{color:#5deff6!important}
html[data-theme="dark"] .nav-submenu{border-left-color:#294b60!important}
html[data-theme="dark"] .nav-subitem{color:#a9c1ce!important}
html[data-theme="dark"] .nav-subitem:hover,html[data-theme="dark"] .nav-subitem.active{background:#102f42!important;color:#8fe8f0!important}
html[data-theme="dark"] .validity-v110-pdfs .btn:nth-child(1){background:#102f4a!important;color:#79f2f8!important;border-color:#285275!important}
html[data-theme="dark"] .validity-v110-pdfs .btn:nth-child(2){background:#3b2028!important;color:#ff8c99!important;border-color:#63313d!important}
html[data-theme="dark"] .validity-v110-pdfs .btn:nth-child(3){background:#3b321b!important;color:#ffd56a!important;border-color:#625323!important}
html[data-theme="dark"] .validity-v110-pdfs .btn:nth-child(4){background:#30254c!important;color:#c6a9ff!important;border-color:#51407c!important}

@media(max-width:1150px){
  .dashboard-main .top{grid-template-columns:minmax(190px,220px) minmax(220px,1fr) auto!important}
  .dashboard-main .user{grid-column:3!important}
  .dashboard-main .theme-toggle{grid-column:3!important;transform:translateX(-120px)!important}
  .validity-v110-pdfs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .dashboard-main .top{display:flex!important;flex-wrap:wrap!important;gap:9px!important}
  .dashboard-main .top-heading{width:100%!important;order:1!important}
  .dashboard-main .top-actions{display:flex!important;width:100%!important;flex-wrap:wrap!important;gap:8px!important;order:2!important}
  .dashboard-main .global-search-form{flex:1 1 100%!important;order:1!important}
  .dashboard-main .theme-toggle{order:2!important;transform:none!important}
  .dashboard-main .user{order:3!important;max-width:100%!important;flex:1 1 auto!important}
  .global-search-form{max-width:none!important}
}
@media(max-width:600px){
  .validity-v110-pdfs{grid-template-columns:1fr!important}
  .global-search-button{display:none!important}
  .nav-submenu{padding-left:12px!important}
}


#odi-launcher{position:fixed;right:22px;bottom:22px;z-index:99990;width:64px;height:64px;border:0;border-radius:50%;background:linear-gradient(145deg,#08a9df,#21d4de 65%,#2f7c80);box-shadow:0 8px 24px #123f8c55;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:30px;transition:transform .18s}
#odi-launcher:hover{transform:translateY(-3px) scale(1.04)}#odi-launcher:focus-visible,#odi-panel button:focus-visible,#odi-panel input:focus-visible{outline:3px solid #ffcf4a;outline-offset:2px}
#odi-panel{position:fixed;right:22px;bottom:22px;z-index:99991;width:min(470px,calc(100vw - 28px));height:min(650px,calc(100dvh - 44px));display:none;flex-direction:column;overflow:hidden;border:1px solid #d9f2f3;border-radius:20px;background:#fff;color:#19696d;box-shadow:0 18px 55px #123f8c35;font-family:inherit}
#odi-panel.odi-open{display:flex}#odi-head{padding:14px 15px;background:linear-gradient(115deg,#2f7c80,#21d4de 70%,#009de0);color:#fff;display:flex;align-items:center;gap:10px}
#odi-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#21d4de;font-size:25px;border:2px solid #d9f5ff}#odi-head strong{display:block;font-size:15px}#odi-head small{display:block;color:#e8f6ff;font-size:11px;margin-top:2px}#odi-minimize{margin-left:auto;background:#ffffff20;color:#fff;border:1px solid #ffffff55;border-radius:9px;width:32px;height:32px;font-size:22px;cursor:pointer}#odi-close{margin-left:0;background:#ffffff20;color:#fff;border:1px solid #ffffff55;border-radius:9px;width:32px;height:32px;font-size:20px;cursor:pointer}
#odi-body{padding:14px;overflow:auto;flex:1;background:linear-gradient(#f6feff,#fff)}.odi-msg{padding:11px 12px;border-radius:13px;background:#ebfdfe;border:1px solid #d8f7f9;font-size:13px;line-height:1.45;margin-bottom:10px;white-space:pre-wrap}.odi-msg.odi-user{background:#21d4de;color:#fff;border-color:#21d4de;margin-left:22px}.odi-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 12px}.odi-topic{border:1px solid #d6e5f4;background:#fff;border-radius:10px;padding:9px 8px;text-align:left;font-size:12px;color:#1b7479;cursor:pointer}.odi-topic:hover{border-color:#21d4de;background:#effdfe}.odi-topic span{display:block;font-size:17px;margin-bottom:4px}#odi-form{display:flex;gap:7px;padding:11px;border-top:1px solid #e0ebf5;background:#fff}#odi-question{min-width:0;flex:1;border:1px solid #cbddec;border-radius:11px;padding:11px;font:inherit;font-size:13px;color:#19696d}#odi-send{border:0;border-radius:11px;background:#21d4de;color:#fff;padding:0 13px;font-weight:800;cursor:pointer}#odi-footnote{font-size:10px;color:#6a829c;padding:0 14px 10px;background:#fff}
@media(max-width:600px){ #odi-panel{right:8px;bottom:8px;width:calc(100vw - 16px);height:min(650px,calc(100dvh - 16px))} #odi-launcher{right:14px;bottom:14px;width:56px;height:56px;font-size:26px}#odi-panel{right:8px;bottom:78px;width:calc(100vw - 16px);height:min(590px,calc(100dvh - 95px));border-radius:17px}.odi-options{grid-template-columns:1fr 1fr}}

/* ODI V3: mascote desenhado em CSS, animado e responsivo, sem emoji */
#odi-launcher{overflow:visible!important;isolation:isolate!important}
.odi-bot-launch{position:relative;display:block;width:48px;height:48px;animation:odi-float 3.1s ease-in-out infinite;filter:drop-shadow(0 4px 4px #061b6650)}
.odi-bot-launch:before{content:"";position:absolute;left:4px;right:4px;top:5px;bottom:0;border-radius:15px 15px 18px 18px;background:linear-gradient(145deg,#fff 0%,#defcfd 48%,#a8d9ff 100%);border:2px solid #d5f4ff;box-shadow:inset -4px -5px 0 #86e5ea, inset 3px 3px 0 #fff;transform:rotate(-3deg)}
.odi-bot-antenna{position:absolute;z-index:2;left:22px;top:-3px;width:3px;height:10px;background:#dff8ff;border-radius:3px;transform-origin:bottom;animation:odi-antenna 2.2s ease-in-out infinite}
.odi-bot-antenna:after{content:"";position:absolute;width:8px;height:8px;left:-2.5px;top:-5px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#42e8ff 40%,#13d3dd 80%);box-shadow:0 0 10px #49dfff}
.odi-bot-face{position:absolute;z-index:3;left:8px;top:13px;width:32px;height:25px;border-radius:9px;background:linear-gradient(145deg,#092b61,#071a45);border:1.5px solid #68dfff;box-shadow:inset 0 0 8px #1fd9e3;display:block;transform:rotate(-2deg)}
.odi-eye{position:absolute;top:7px;width:5px;height:8px;border-radius:6px;background:#48e8ff;box-shadow:0 0 5px #2ce6ff;animation:odi-blink 4.8s infinite;transition:transform .12s}
.odi-eye-left{left:6px}.odi-eye-right{right:6px}
.odi-bot-smile{position:absolute;left:10px;bottom:4px;width:11px;height:5px;border-bottom:2px solid #8af8ff;border-radius:0 0 10px 10px}
.odi-bot-ear{position:absolute;z-index:0;top:19px;width:6px;height:13px;border-radius:4px;background:linear-gradient(#47dfff,#21d4de);box-shadow:0 0 7px #54ddff}
.odi-bot-ear-left{left:0}.odi-bot-ear-right{right:0}
#odi-launcher:hover .odi-bot-launch{animation:odi-wave .55s ease-in-out 2,odi-float 3.1s ease-in-out infinite}
#odi-avatar.odi-bot-head{position:relative;overflow:visible;flex:0 0 42px;width:42px;height:42px;padding:0;border:2px solid #d9f5ff;background:linear-gradient(145deg,#fff,#a9dcff);border-radius:13px;box-shadow:inset -3px -3px 0 #86e5ea;display:block}
#odi-avatar .odi-bot-antenna{left:19px;top:-5px}
#odi-avatar .odi-bot-face{left:5px;top:10px;width:28px;height:23px;border-radius:8px}
#odi-avatar .odi-eye{top:6px;width:4px;height:7px}
#odi-avatar .odi-eye-left{left:5px}#odi-avatar .odi-eye-right{right:5px}
#odi-avatar .odi-bot-smile{left:8px;bottom:3px;width:10px}
@keyframes odi-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes odi-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
@keyframes odi-antenna{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(9deg)}}
@keyframes odi-blink{0%,45%,49%,100%{transform:scaleY(1)}47%,48%{transform:scaleY(.12)}}
#odi-launcher:after{content:"";position:absolute;right:2px;top:2px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#26d68a;box-shadow:0 0 0 2px #21d4de}
@media(prefers-reduced-motion:reduce){.odi-bot-launch,.odi-bot-antenna,.odi-eye{animation:none!important}}


/* ODI V17: painel visual ampliado, estados expressivos e personalização */
#odi-panel{width:min(760px,calc(100vw - 32px));height:min(680px,calc(100dvh - 40px));border-radius:24px;box-shadow:0 24px 80px #123f8c42}
#odi-head{padding:14px 18px}
#odi-body{background:radial-gradient(ellipse at 20% 0%,#e4f5ff 0%,#f6feff 42%,#fff 100%)}
#odi-showcase{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;padding:12px 14px 4px;background:linear-gradient(120deg,#e9fdfe,#fff)}
#odi-bot-stage{min-height:250px;border-radius:18px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 72%,#8be8ff88,transparent 45%),linear-gradient(145deg,#d7efff,#f8feff 62%,#c9fafc);border:1px solid #c8e6fb}
#odi-bot-stage:before,#odi-bot-stage:after{content:"";position:absolute;border:1px solid #55caff66;border-radius:50%;width:170px;height:170px;animation:odi-orbit 12s linear infinite;pointer-events:none}
#odi-bot-stage:after{width:210px;height:210px;animation-direction:reverse;pointer-events:none}
#odi-bot-stage .odi-bot-launch{display:none!important}
#odi-mascot-image{position:relative;z-index:2;width:min(78%,340px);height:100%;max-height:320px;object-fit:contain;filter:drop-shadow(0 12px 14px #1769e855);animation:odi-float 3.2s ease-in-out infinite;transition:transform .25s ease}
#odi-panel.odi-thinking #odi-mascot-image{animation:odi-float .65s ease-in-out infinite}
#odi-panel.odi-happy #odi-mascot-image{animation:odi-wave .5s ease-in-out 2,odi-float 3s ease-in-out infinite}
#odi-stage-mascot-wrap{height:100%;min-height:220px;width:100%;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
#odi-panel.odi-alert #odi-mascot-image{filter:drop-shadow(0 12px 14px #ffbf4c88)}
#odi-personalize{border:1px solid #d7f3f4;background:#ffffffd9;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
#odi-personalize strong{font-size:12px;color:#17676b}
#odi-personalize small{font-size:11px;line-height:1.35;color:#4b6590}
.odi-custom-row{display:flex;gap:6px;flex-wrap:wrap}
.odi-swatch{width:22px;height:22px;border:2px solid white;box-shadow:0 0 0 1px #cbd9ed;border-radius:50%;cursor:pointer;padding:0}
.odi-size{flex:1;border:1px solid #cbddec;border-radius:8px;background:#fff;color:#1b7479;font-size:11px;padding:6px;cursor:pointer}
#odi-logo-upload{font-size:10px;max-width:100%;width:100%}
#odi-emotions{display:flex;gap:6px;overflow-x:auto;padding:8px 14px 10px;background:#f5fefe;border-bottom:1px solid #e1f6f7}
.odi-emotion{flex:0 0 auto;border:1px solid #d6f4f5;background:white;border-radius:10px;padding:6px 8px;color:#217b80;font-size:10px;cursor:pointer}
.odi-emotion[aria-pressed="true"]{border-color:#21d9e3;background:#e3f4ff;box-shadow:0 0 0 1px #21d9e3}
#odi-panel.odi-thinking #odi-bot-stage .odi-bot-launch{animation:odi-float .6s ease-in-out infinite}
#odi-panel.odi-happy #odi-bot-stage .odi-bot-launch{animation:odi-wave .5s ease-in-out 2,odi-float 3s ease-in-out infinite}
#odi-panel.odi-alert #odi-bot-stage{background:linear-gradient(145deg,#fff1d9,#fff9ed);border-color:#ffcf76}
#odi-panel.odi-sad #odi-bot-stage{background:linear-gradient(145deg,#e7fdfe,#f6fefe)}
#odi-panel.odi-negative #odi-bot-stage{background:linear-gradient(145deg,#ffe9ed,#fff8f8)}
@keyframes odi-orbit{to{transform:rotate(360deg)}}
@media(max-width:600px){ #odi-panel{width:calc(100vw - 16px);height:calc(100dvh - 18px);right:8px;bottom:8px}#odi-showcase{grid-template-columns:1fr;padding:8px}#odi-bot-stage{min-height:104px}#odi-mascot-image{width:min(78%,300px);max-height:250px}#odi-stage-mascot-wrap{min-height:190px}#odi-personalize{display:none}#odi-emotions{padding:6px 9px}}



#odi-panel{position:fixed!important;right:24px!important;bottom:24px!important;z-index:99991!important;width:min(370px,calc(100vw - 28px))!important;height:min(440px,calc(100dvh - 110px))!important;display:none;flex-direction:column!important;overflow:hidden!important;border:1px solid #cbf6f8!important;border-radius:22px!important;background:#fff!important;box-shadow:0 18px 55px #0c3a6840!important}
#odi-panel.odi-open{display:flex!important}#odi-head{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 14px!important;background:linear-gradient(115deg,#1c858b,#13c7d0 68%,#009bba)!important;color:#fff!important;flex:0 0 auto!important}
#odi-head strong{font-size:14px!important}#odi-head small{font-size:11px!important;color:#eaf7ff!important}#odi-avatar{width:38px!important;height:38px!important;flex-basis:38px!important}
#odi-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:13px!important;background:linear-gradient(160deg,#f2fefe,#fff)!important}
#odi-footnote{font-size:10px!important;color:#68829d!important;padding:5px 12px 8px!important;background:#fff!important;flex:0 0 auto!important}
#odi-form{display:flex!important;gap:7px!important;padding:10px!important;border-top:1px solid #e2edf6!important;background:#fff!important;flex:0 0 auto!important}
#odi-question{min-width:0!important;flex:1!important;border:1px solid #cbddec!important;border-radius:14px!important;padding:11px!important;font-size:13px!important}
#odi-send{width:42px!important;min-width:42px!important;border:0!important;border-radius:13px!important;background:#13d3dd!important;color:#fff!important;font-size:20px!important;cursor:pointer!important}
#odi-launcher{position:fixed!important;right:28px!important;bottom:26px!important;z-index:99992!important;width:94px!important;height:104px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;cursor:pointer!important;transition:transform .2s ease!important}
#odi-launcher .odi-bot-launch{width:84px!important;height:84px!important;animation:odi-v20-float 3s ease-in-out infinite,odi-wave 7s ease-in-out infinite!important;filter:drop-shadow(0 7px 10px #1677c655)!important}
#odi-launcher:after{display:none!important}#odi-launcher .odi-thought-bubble{position:absolute!important;right:-1px!important;top:-3px!important;display:grid!important;place-items:center!important;width:36px!important;height:27px!important;border-radius:18px 18px 18px 5px!important;background:white!important;color:#078ce8!important;box-shadow:0 4px 15px #1769e82b!important;font-size:14px!important;font-weight:900!important;animation:odi-think-bob 2.4s ease-in-out infinite!important}
#odi-launcher .odi-thought-bubble:after{content:"";position:absolute;left:7px;bottom:-4px;border-width:5px 5px 0 0;border-style:solid;border-color:white transparent transparent transparent}
#odi-launcher:hover{transform:scale(1.04)!important}#odi-launcher:hover .odi-bot-launch{animation:odi-wave .5s ease-in-out 2,odi-v20-float 3s ease-in-out infinite!important}
#odi-panel.odi-open~#odi-launcher{right:34px!important;bottom:min(480px,calc(100dvh - 125px))!important}
#odi-panel .odi-msg{white-space:pre-wrap!important;user-select:text!important;-webkit-user-select:text!important}
@keyframes odi-v20-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-11px) rotate(2deg)}}@keyframes odi-think-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:600px){ #odi-panel{right:10px!important;bottom:10px!important;width:calc(100vw - 20px)!important;height:min(420px,calc(100dvh - 100px))!important}#odi-launcher{right:12px!important;bottom:14px!important;width:72px!important;height:80px!important}#odi-launcher .odi-bot-launch{width:68px!important;height:68px!important}#odi-panel.odi-open~#odi-launcher{right:16px!important;bottom:min(440px,calc(100dvh - 92px))!important}}
@media(prefers-reduced-motion:reduce){ #odi-launcher .odi-bot-launch,#odi-launcher .odi-thought-bubble{animation:none!important}}


#odi-quick-actions{display:flex;flex-wrap:wrap;gap:7px;padding:10px;margin:4px 0 10px;border:1px solid #daf8f9;border-radius:14px;background:#fff}
.odi-quick-heading{flex:0 0 100%;font-size:11px;font-weight:800;color:#287478;padding:0 2px 2px}
.odi-quick-btn{border:1px solid #d1f4f6;background:#f5fefe;color:#1c8d93;border-radius:999px;padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer;max-width:100%}
.odi-quick-btn:hover,.odi-quick-btn:focus{background:#e4fcfe;border-color:#21d9e3;outline:2px solid #1688ee33}
.odi-msg{line-height:1.48}
html[data-theme="dark"] #odi-quick-actions{background:#10283b;border-color:#2a5268}
html[data-theme="dark"] .odi-quick-heading{color:#dbfbfd}
html[data-theme="dark"] .odi-quick-btn{background:#143750;color:#e9f7ff;border-color:#2a5268}


html{--oc-mobile-compact:1}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
 /* A única marca/cabeçalho é o appbar principal. */
 .dashboard-main .top,.dashboard-main .top-heading,.dashboard-main .top-actions,
 .dashboard-main .global-greeting,.dashboard-main .top-subtitle{display:none!important}
 .oc-mobile-brand{display:none!important}
 .oc-mobile-home~.sr-dashboard{display:none!important}
 .oc-mobile-home~.sr-dashboard-operational{display:none!important}
 .oc-mobile-home{display:block!important}
 .oc-mobile-home~*{display:none!important}
 .oc-mobile-dashboard-summary{display:block!important;margin-top:16px}
 .oc-summary-title{font-size:20px;color:#173454;margin:18px 0 10px}
 .oc-summary-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
 .oc-summary-card{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 9px;border:1px solid #dce8f3;border-radius:13px;background:#fff;text-decoration:none;color:#173454;box-shadow:0 3px 10px #163b5b0b}
 .oc-summary-card>span:last-child{min-width:0}.oc-summary-card small{display:block;font-size:11px;line-height:1.2;color:#6d8298}.oc-summary-card strong{display:block;font-size:17px;line-height:1.2;overflow-wrap:anywhere;margin-top:4px}
 .oc-summary-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;font-weight:900;font-size:17px}.oc-summary-icon.green{background:#dff7e9;color:#16a36a}.oc-summary-icon.blue{background:#e3fcfe;color:#1dd8e2}.oc-summary-icon.red{background:#ffe1e5;color:#ef3348}.oc-summary-icon.yellow{background:#fff0ca;color:#c38a00}
 .oc-summary-panel{padding:14px;margin:12px 0;background:#fff;border:1px solid #dce8f3;border-radius:15px;box-shadow:0 3px 12px #163b5b0b;min-width:0}
 .oc-summary-panel h3{font-size:17px;color:#1c6f73;margin:0 0 12px}
 .oc-summary-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.oc-summary-panel-head h3{margin:0}.oc-summary-panel-head a{font-size:12px;color:#1dd8e2;text-decoration:none;font-weight:800;white-space:nowrap}
 .oc-prosthesis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.oc-prosthesis-grid a{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px;border-radius:11px;background:#f2fbfc;border:1px solid #e0eaf4;text-decoration:none;color:#1c6f73}.oc-prosthesis-grid strong{font-size:24px;line-height:1.1}.oc-prosthesis-grid span{font-size:12px;font-weight:750}
 .oc-mobile-category-layout{display:grid;grid-template-columns:minmax(125px, .9fr) minmax(0,1.1fr);gap:12px;align-items:center}.oc-mobile-donut{width:min(38vw,160px);aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#dbe4ef;color:#1c6f73;font-size:23px;font-weight:850}.oc-mobile-donut:after{content:"";position:absolute;inset:26%;border-radius:50%;background:#fff}.oc-mobile-donut span,.oc-mobile-donut small{position:relative;z-index:1}.oc-mobile-donut small{font-size:10px;color:#6d8298;font-weight:700}.oc-mobile-category-legend{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow:auto;min-width:0}.oc-mobile-cat-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:6px;align-items:center;font-size:11px;color:#49627e}.oc-mobile-cat-dot{width:8px;height:8px;border-radius:50%}.oc-mobile-cat-name{overflow-wrap:anywhere}.oc-mobile-cat-value{font-weight:800}
 /* Todas as tabelas podem ser deslizadas horizontalmente com o dedo. */
 .table-toolbar{display:none!important}
 .table-wrap,.table-responsive,.table-container,.resizable-table-wrap,.sr-movements-table-wrap,div:has(> table.table){max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y}
 table.table,.sr-table{min-width:max-content!important;width:max-content!important;max-width:none!important}
 table.table th,table.table td,.sr-table th,.sr-table td{white-space:nowrap!important}
 /* Cards de relatórios: botões não se sobrepõem nem quebram palavras. */
 .report-card,.report-item,.analysis-card,.sr-report-card,.relatorio-card{min-width:0!important;overflow:hidden!important}
 .report-card a,.report-item a,.analysis-card a,.sr-report-card a,.relatorio-card a,
 .report-card button,.report-item button,.analysis-card button,.sr-report-card button,.relatorio-card button{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;width:auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important;text-decoration:none!important;line-height:1.25!important;padding:10px 13px!important;box-sizing:border-box!important}
 .oc-mobile-bottom{display:flex!important}
}
/* Tabelas ficam compactas também no desktop, sem controles extras. */
html.table-density-compact table.table th,html.table-density-compact table.table td{padding:8px 9px!important}


/* V111 - correções finais para apresentação ao cliente */
.top{display:flex!important;align-items:center!important;gap:18px!important;min-width:0!important;overflow:visible!important}
.top-heading{flex:0 0 260px!important;min-width:0!important;max-width:260px!important}
.global-greeting{font-size:22px!important;line-height:1.08!important;white-space:normal!important;overflow-wrap:anywhere!important}
.top-actions{display:grid!important;grid-template-columns:minmax(280px,1fr) auto minmax(205px,auto)!important;align-items:center!important;gap:8px!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important}
.global-search-form{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;gap:0!important;width:100%!important;max-width:none!important;min-width:0!important;height:40px!important;position:relative!important;overflow:hidden!important;border:1px solid #d9e7f1!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 15px rgba(20,72,120,.05)!important}
.global-search-form .global-search-icon{position:static!important;transform:none!important;display:grid!important;place-items:center!important;width:28px!important;height:100%!important;font-size:18px!important;line-height:1!important;color:#1dd8e2!important;pointer-events:none!important}
.global-search-form input{grid-column:2!important;width:100%!important;min-width:0!important;height:38px!important;padding:8px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;color:#19696d!important;font:inherit!important}
.global-search-form input::placeholder{color:#7890a5!important;opacity:1!important}
.global-search-button{grid-column:3!important;display:inline-flex!important;height:32px!important;align-items:center!important;justify-content:center!important;margin-right:4px!important;padding:0 11px!important;border:0!important;border-radius:9px!important;background:#1dd8e2!important;color:#fff!important;font-weight:800!important;font-size:12px!important;cursor:pointer!important;white-space:nowrap!important}
.theme-toggle{height:40px!important;padding:8px 11px!important;white-space:nowrap!important}
.user{min-width:205px!important;max-width:260px!important;height:40px!important;overflow:hidden!important;display:flex!important;align-items:center!important;gap:7px!important;padding:5px 8px!important;white-space:nowrap!important}
.top-user-identity{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:hidden!important;flex:1 1 auto!important}
.top-user-name{max-width:92px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important}
.unit-badge{max-width:110px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.top-logout{flex:0 0 auto!important;padding:7px 9px!important;font-size:11px!important;margin-left:2px!important}

/* Cards mais proporcionais em 100% do navegador. */
.sr-action{min-height:70px!important;padding:10px 12px!important;gap:10px!important;border-radius:13px!important}
.sr-action-icon{width:38px!important;height:38px!important;border-radius:10px!important;font-size:18px!important}
.sr-action b{font-size:14px!important}
.sr-action small{font-size:10px!important}
.sr-kpi{min-height:78px!important;padding:10px 12px!important;gap:10px!important;border-radius:13px!important}
.sr-kpi strong{font-size:19px!important}
.sr-kpi small{font-size:9px!important}
.sr-kpi em{font-size:8px!important}
.sr-kpi-icon{width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important;font-size:18px!important}

/* Item ativo: somente o módulo selecionado fica azul. */
.nav-item:not(.active),.nav-group>summary{background:transparent!important;color:var(--ui-text)!important;box-shadow:none!important}
.nav-item:not(.active):hover,.nav-group>summary:hover{background:#eefdfe!important;color:#1dd8e2!important}
.nav-item.active{background:linear-gradient(90deg,#1dd8e2,#21dbe5)!important;color:#fff!important}
.nav-group[open]>summary{background:transparent!important;color:var(--ui-text)!important}

/* Evita qualquer overflow horizontal provocado pelo cabeçalho. */
.main{overflow-x:hidden!important}
.dashboard-main .sr-dashboard{max-width:1280px!important}
@media(max-width:1150px){
  .top{align-items:flex-start!important}
  .top-heading{flex:0 0 220px!important;max-width:220px!important}
  .top-actions{grid-template-columns:minmax(240px,1fr) auto auto!important}
  .user{min-width:185px!important}
}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .top{display:flex!important;flex-wrap:wrap!important}
  .top-heading{flex:1 1 100%!important;max-width:none!important}
  .top-actions{width:100%!important;grid-template-columns:minmax(0,1fr) auto!important}
  .global-search-form{grid-column:1!important}
  .theme-toggle{grid-column:2!important}
  .user{grid-column:1/-1!important;max-width:none!important;width:100%!important}
}
@media(max-width:600px){
  .global-search-form{grid-template-columns:28px minmax(0,1fr)!important}
  .global-search-button{display:none!important}
}

/* Modo escuro: mesmas cores da marca, sem cartões pretos pesados. */
html[data-theme="dark"] .global-search-form{background:#102c40!important;border-color:#2a5268!important}
html[data-theme="dark"] .global-search-form input{color:#eef8ff!important}
html[data-theme="dark"] .global-search-form input::placeholder{color:#9bb7c8!important}
html[data-theme="dark"] .global-search-form .global-search-icon{color:#55eef6!important}
html[data-theme="dark"] .global-search-button{background:#21dbe5!important}
html[data-theme="dark"] .nav-item:not(.active),html[data-theme="dark"] .nav-group>summary{background:transparent!important;color:#e9f6fc!important}
html[data-theme="dark"] .nav-item:not(.active):hover,html[data-theme="dark"] .nav-group>summary:hover{background:#102d40!important;color:#8fe8f0!important}
html[data-theme="dark"] .nav-group[open]>summary{background:transparent!important}



/* V98.1 FINAL BRAND IDENTITY - ODIHUB */
:root{
 --s-blue:#21d4de;--s-blue-dark:#188086;--s-cyan:#0aa9c6;--s-green:#20b66f;--s-red:#ef4051;--s-yellow:#f4b83f;--s-purple:#55d9e0;
 --ui-bg:#f4fcfd;--ui-surface:#fff;--ui-text:#123b69;--ui-muted:#6e8195;--ui-line:#dce8f1;--ui-shadow:0 8px 26px rgba(24,71,112,.08)
}
html[data-theme="dark"]{--ui-bg:#071522;--ui-surface:#0c1f30;--ui-text:#eef8ff;--ui-muted:#9db4c4;--ui-line:#1d3a4d;--ui-shadow:0 12px 32px rgba(0,0,0,.28)}
body{background:var(--ui-bg)!important;color:var(--ui-text)!important}
.app-bg{display:none!important}
.side{width:232px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;border-right:1px solid var(--ui-line)!important;box-shadow:4px 0 18px rgba(20,65,100,.05)!important;padding:12px 10px 16px!important}
.brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:7px 7px 14px!important}
.brand-logo-box{background:#fff!important;border:1px solid #e5edf4!important;border-radius:14px!important;padding:8px!important;box-shadow:0 5px 15px rgba(18,63,140,.06)!important}
.brand-logo{width:188px!important;max-height:76px!important}
.brand-subtitle{color:var(--ui-text)!important;font-size:11px!important;font-weight:850!important;margin-top:8px!important}
.brand-unit{color:var(--ui-muted)!important;font-size:10px!important}
.nav-item,.nav-group>summary{color:var(--ui-text)!important;border-radius:11px!important;margin:3px 0!important;padding:10px 11px!important;min-height:41px!important;font-weight:700!important}
.nav-item:hover,.nav-group>summary:hover{background:#eefdfe!important;transform:none!important}
.nav-item.active{background:linear-gradient(90deg,#1dd8e2,#21dbe5)!important;color:#fff!important;box-shadow:0 7px 18px rgba(23,105,232,.20)!important}
.nav-ico{color:inherit!important}.nav-subitem{color:var(--ui-muted)!important}.nav-subitem:hover,.nav-subitem.active{background:#eefdfe!important;color:var(--s-blue-dark)!important}
.side-footer{background:#f4fcfd!important;border:1px solid var(--ui-line)!important;color:var(--ui-text)!important}.side-footer small{color:var(--ui-muted)!important}.side-footer-icon{background:linear-gradient(135deg,var(--s-blue),var(--s-cyan))!important}
.main{margin-left:232px!important;padding:18px 28px 40px!important;background:var(--ui-bg)!important;min-height:100vh!important}
.top{margin-bottom:14px!important}.top h2{color:var(--ui-text)!important;font-size:25px!important}.top-subtitle{color:var(--ui-muted)!important}
.top-actions input{background:#fff!important;border:1px solid var(--ui-line)!important;color:var(--ui-text)!important;border-radius:13px!important}.theme-toggle,.user{background:#fff!important;border:1px solid var(--ui-line)!important;color:var(--ui-text)!important;border-radius:13px!important;box-shadow:none!important}
.card,.form,.table-wrap,.table,.dash-panel,.dash-kpi,.quick-card{background:var(--ui-surface)!important;border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;color:var(--ui-text)!important}
.btn{background:linear-gradient(90deg,var(--s-blue),#087fca)!important;border-radius:10px!important}.btn.secondary{background:#effafa!important;color:var(--s-blue-dark)!important}
.table th{background:#eff6fb!important;color:var(--ui-text)!important}.table td{border-color:var(--ui-line)!important}
/* hero uses the approved OdiHub dental identity reference */
.dashboard-hero{min-height:247px!important;height:247px!important;border-radius:22px!important;margin:0 0 13px!important;border:1px solid #dcecf5!important;overflow:hidden!important;background:#eaf6fb linear-gradient(120deg,#087f80,#10b9a5)!important;box-shadow:0 12px 30px rgba(21,73,112,.10)!important}
.dashboard-hero:before,.dashboard-hero:after{display:none!important}
.hero-copy{width:100%!important;height:100%!important;padding:0!important;opacity:0!important;pointer-events:none!important}
.dashboard-hero-meta{margin:-2px 2px 10px!important;color:var(--ui-muted)!important}
.dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.dash-kpi{min-height:96px!important;border-radius:16px!important}.kpi-icon.blue{background:#e8fdfe!important;color:#21d4de!important}.kpi-icon.green{background:#e3f8ee!important;color:#16a467!important}.kpi-icon.yellow{background:#fff4d8!important;color:#e7a900!important}.kpi-icon.red{background:#ffe8ec!important;color:#e53c4d!important}.kpi-icon.purple{background:#eafdfe!important;color:#58d2d8!important}
.dashboard-main-grid{grid-template-columns:1fr 1fr 1fr!important;gap:13px!important;margin-top:14px!important}.dash-panel{border-radius:16px!important}.panel-head h3{font-size:16px!important}.panel-head p{font-size:10px!important}.panel-link{color:var(--s-blue)!important}
.stock-alert.danger{background:#fff0f2!important;color:#d43749!important}.stock-alert.warning{background:#fff7df!important;color:#a46d00!important}.empty-alert{background:#eafaf2!important;color:#178a59!important}
.quick-actions{grid-template-columns:repeat(6,1fr)!important;gap:10px!important}.quick-card{border-radius:13px!important}.quick-icon.blue{background:#e9fdfe!important;color:#21d4de!important}.quick-icon.teal{background:#e1f8f7!important;color:#0b9fa4!important}.quick-icon.purple{background:#e9fdfe!important;color:#53d3da!important}.quick-icon.mint{background:#e4f9ef!important;color:#18a66a!important}
.usage-card,.usage-category-card{border-radius:16px!important}.usage-bar-column{background:linear-gradient(180deg,#21d4de,#0aa9c6)!important}.category-bar{background:linear-gradient(90deg,#21d4de,#20b66f)!important}
html[data-theme="dark"] .side{background:#081a29!important;border-right-color:#1d3a4d!important;color:#eaf7ff!important}html[data-theme="dark"] .brand-logo-box{background:#fff!important;border-color:#2a4659!important}html[data-theme="dark"] .brand-subtitle{color:#eef8ff!important}html[data-theme="dark"] .brand-unit{color:#a5bfcd!important}html[data-theme="dark"] .nav-item,html[data-theme="dark"] .nav-group>summary{color:#e9f6fc!important}html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] .nav-group>summary:hover{background:#102d40!important}html[data-theme="dark"] .nav-item.active{background:linear-gradient(90deg,#1dd8e2,#0aa9c6)!important}html[data-theme="dark"] .nav-subitem{color:#a6bdca!important}html[data-theme="dark"] .nav-subitem:hover,html[data-theme="dark"] .nav-subitem.active{background:#102f42!important;color:#8fe8f0!important}html[data-theme="dark"] .side-footer{background:#0d2537!important;color:#eaf7ff!important}html[data-theme="dark"] .top-actions input,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .user{background:#0c1f30!important;color:#eef8ff!important;border-color:#1d3a4d!important}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)!important}.dashboard-main-grid{grid-template-columns:1fr 1fr!important}.alerts-panel{grid-column:span 2!important}.quick-actions{grid-template-columns:repeat(3,1fr)!important}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.side{width:auto!important}.main{margin-left:0!important;padding:14px!important}.dashboard-hero{height:220px!important;min-height:220px!important;background-position:center!important}.dashboard-kpis{grid-template-columns:1fr 1fr!important}.dashboard-main-grid{grid-template-columns:1fr!important}.alerts-panel{grid-column:auto!important}.quick-actions{grid-template-columns:1fr 1fr!important}}



/* V110: busca sem sobreposição e ativo azul somente no item selecionado. */
.dashboard-main .top{grid-template-columns:minmax(220px,1fr) minmax(300px,520px) auto auto!important;gap:12px!important}
.global-search-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;position:relative!important;width:100%!important;max-width:520px!important;min-width:0!important;height:42px!important}
.global-search-form input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
.global-search-button{display:inline-flex!important;height:42px!important;align-items:center!important;justify-content:center!important;padding:0 14px!important;border:1px solid #1dd8e2!important;border-radius:11px!important;background:#1dd8e2!important;color:#fff!important;font-weight:800!important;font:inherit!important;cursor:pointer!important;white-space:nowrap!important}
.global-search-button:hover{background:#18b7c0!important}
html[data-theme="dark"] .global-search-button{background:#21dbe5!important;border-color:#21dbe5!important}
.nav a.nav-item.active{background:linear-gradient(90deg,#1dd8e2,#21dbe5)!important;color:#fff!important;box-shadow:0 7px 18px rgba(18,104,237,.20)!important}
.nav a.nav-item.active:hover{background:linear-gradient(90deg,#1dd8e2,#21dbe5)!important;color:#fff!important}
html[data-theme="dark"] .nav a.nav-item.active{background:linear-gradient(90deg,#1dd8e2,#0aa9c6)!important;color:#fff!important;box-shadow:0 7px 18px rgba(18,104,237,.28)!important}
@media(max-width:1150px){.dashboard-main .top{grid-template-columns:1fr auto auto!important}.dashboard-main .global-search-form{grid-column:1!important;grid-row:2!important;max-width:none!important}.dashboard-main .theme-toggle{grid-column:2!important;grid-row:2!important}.dashboard-main .user{grid-column:3!important;grid-row:2!important}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.global-search-form{grid-template-columns:minmax(0,1fr) auto!important}.global-search-button{padding:0 10px!important}.dashboard-main .global-search-form{width:100%!important;max-width:none!important}}


/* V113: banner da unidade + cabeçalho/busca definitivo */
.sr-hero.sr-hero-unit{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:18px!important;
  overflow:hidden!important;
  margin:0 0 13px!important;
  border:1px solid #dcebf5!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(18,63,140,.10)!important;
}
/* A busca é um único campo visual. A lupa fica dentro dele, sem segunda caixa. */
.dashboard-main .top{
  display:grid!important;
  grid-template-columns:minmax(210px,250px) minmax(320px,1fr) auto auto!important;
  align-items:center!important;
  gap:12px!important;
}
.dashboard-main .top-heading{grid-column:1!important;min-width:0!important}
.dashboard-main .top-actions{display:contents!important}
.dashboard-main .global-search-form{
  grid-column:2!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
  width:100%!important;
  max-width:600px!important;
  min-width:0!important;
  height:42px!important;
  padding:0 4px 0 0!important;
  margin:0!important;
  box-sizing:border-box!important;
  gap:0!important;
  position:relative!important;
  overflow:hidden!important;
  border:1px solid #d9e7f1!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 4px 15px rgba(20,72,120,.05)!important;
}
.dashboard-main .global-search-form .global-search-icon{
  grid-column:1!important;
  position:static!important;
  transform:none!important;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:100%!important;
  font-size:18px!important;
  color:#1dd8e2!important;
  pointer-events:none!important;
}
.dashboard-main .global-search-form input{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  padding:8px 10px 8px 0!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  color:#19696d!important;
  font:inherit!important;
}
.dashboard-main .global-search-form input::placeholder{color:#7890a5!important;opacity:1!important}
.dashboard-main .global-search-form .global-search-button{
  grid-column:3!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:32px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:#21d4de!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.dashboard-main .theme-toggle{grid-column:3!important;height:42px!important;white-space:nowrap!important}
.dashboard-main .user{grid-column:4!important;min-width:0!important;white-space:nowrap!important}
html[data-theme="dark"] .dashboard-main .global-search-form{background:#102c40!important;border-color:#294b60!important}
html[data-theme="dark"] .dashboard-main .global-search-form input{color:#eef8ff!important}
html[data-theme="dark"] .dashboard-main .global-search-form input::placeholder{color:#9bb7c8!important}
html[data-theme="dark"] .dashboard-main .global-search-form .global-search-icon{color:#5deff6!important}
html[data-theme="dark"] .dashboard-main .global-search-form .global-search-button{background:#21dbe5!important}
@media(max-width:1150px){
  .dashboard-main .top{grid-template-columns:minmax(200px,1fr) auto auto!important}
  .dashboard-main .global-search-form{grid-column:1!important;grid-row:2!important;max-width:none!important}
  .dashboard-main .theme-toggle{grid-column:2!important;grid-row:2!important}
  .dashboard-main .user{grid-column:3!important;grid-row:2!important}
}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .dashboard-main .top{display:flex!important;flex-wrap:wrap!important}
  .dashboard-main .top-heading{width:100%!important}
  .dashboard-main .global-search-form{width:100%!important;max-width:none!important;order:3!important}
  .dashboard-main .theme-toggle{order:4!important}
  .dashboard-main .user{order:5!important;width:auto!important;max-width:100%!important}
  .dashboard-main .global-search-form{grid-template-columns:34px minmax(0,1fr)!important}
  .dashboard-main .global-search-button{display:none!important}
}


/* V114: cabeçalho único e consistente em TODAS as telas. */
.top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:22px!important;
  width:100%!important;
  margin-bottom:18px!important;
  padding:0!important;
}
.top-heading{
  flex:0 1 330px!important;
  min-width:210px!important;
  max-width:380px!important;
}
.top-heading .global-greeting{
  line-height:1.05!important;
  margin:0!important;
}
.top-heading h2{
  margin:3px 0 0!important;
  line-height:1.08!important;
}
.top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
.global-search-form{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  align-items:center!important;
  flex:1 1 460px!important;
  width:auto!important;
  max-width:560px!important;
  min-width:280px!important;
  height:42px!important;
  margin:0!important;
  padding:0 4px 0 0!important;
  overflow:hidden!important;
  border:1px solid #d7e5ef!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(16,47,79,.05)!important;
}
.global-search-icon{
  position:static!important;
  grid-column:1!important;
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:100%!important;
  color:#1dd8e2!important;
  font-size:17px!important;
  pointer-events:none!important;
}
.global-search-form input{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  padding:7px 8px 7px 0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#173b57!important;
  box-shadow:none!important;
  font:inherit!important;
}
.global-search-form input::placeholder{color:#7890a5!important;opacity:1!important}
.global-search-button{
  grid-column:3!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:32px!important;
  min-width:62px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:#1dd8e2!important;
  color:#fff!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
.theme-toggle{flex:0 0 auto!important;height:42px!important;white-space:nowrap!important}
.user{
  flex:0 1 auto!important;
  min-width:185px!important;
  max-width:270px!important;
  height:42px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.top-user-identity{min-width:0!important;overflow:hidden!important}
.top-user-name{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.top-logout{flex:0 0 auto!important;white-space:nowrap!important}

/* V114: entrada/saída usam o mesmo padrão visual dos demais botões. */
.movement-switch{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-bottom:16px!important;
  padding:4px!important;
  width:max-content!important;
  background:#f1f6fa!important;
  border:1px solid #dbe7ef!important;
  border-radius:10px!important;
}
.movement-tab{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:8px 13px!important;
  border-radius:8px!important;
  border:1px solid transparent!important;
  text-decoration:none!important;
  color:#31536d!important;
  background:transparent!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.movement-tab:hover{background:#e7f0f7!important;color:#1dd8e2!important}
.movement-tab.active,.movement-tab.exit-active{
  background:linear-gradient(90deg,#1dd8e2,#21dbe5)!important;
  color:#fff!important;
  border-color:#1dd8e2!important;
  box-shadow:0 4px 10px rgba(18,104,237,.18)!important;
}

/* V114: controles do inventário seguem o padrão secundário do sistema. */
.inventory-toolbar-btn{min-height:36px!important;padding:8px 12px!important;font-size:12px!important}

@media(max-width:1150px){
  .top-heading{flex-basis:270px!important;max-width:300px!important}
  .global-search-form{min-width:240px!important}
  .user{min-width:170px!important}
}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .top{flex-wrap:wrap!important;align-items:flex-start!important}
  .top-heading{flex:1 1 100%!important;max-width:none!important}
  .top-actions{width:100%!important;justify-content:stretch!important;flex-wrap:wrap!important}
  .global-search-form{flex:1 1 320px!important;min-width:220px!important;max-width:none!important}
}
@media(max-width:600px){
  .top-actions{gap:7px!important}
  .global-search-form{grid-template-columns:34px minmax(0,1fr)!important;min-width:0!important;flex-basis:100%!important}
  .global-search-button{display:none!important}
  .theme-toggle{flex:0 0 auto!important}
  .user{flex:1 1 auto!important;min-width:0!important;max-width:none!important}
}

html[data-theme="dark"] .global-search-form{background:#102c40!important;border-color:#294b60!important}
html[data-theme="dark"] .global-search-form input{color:#eef8ff!important}
html[data-theme="dark"] .global-search-form input::placeholder{color:#9bb7c8!important}
html[data-theme="dark"] .global-search-icon{color:#5deff6!important}
html[data-theme="dark"] .global-search-button{background:#21dbe5!important}
html[data-theme="dark"] .movement-switch{background:#102d40!important;border-color:#294b60!important}
html[data-theme="dark"] .movement-tab{color:#cfe4ef!important}
html[data-theme="dark"] .movement-tab:hover{background:#17384d!important;color:#8fe8f0!important}


/* V118: busca global removida do cabeçalho. O topo permanece limpo e proporcional. */
.global-search-form,.global-search-input-wrap,.global-search-button,.global-search-icon{display:none!important}
.top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:1 1 auto!important;min-width:0!important}
.top-actions>.user{margin-left:auto!important}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.top-actions{width:100%!important;justify-content:flex-end!important}.top-actions>.user{max-width:100%!important}}


/* V122.35: o cabeçalho global exibe somente a saudação; títulos e descrições ficam no conteúdo de cada módulo. */
.top-heading{flex:0 1 310px!important;min-width:190px!important;max-width:360px!important}
.top-heading .global-greeting{margin:0!important;line-height:1.12!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.top-heading{flex:1 1 100%!important;max-width:none!important}}


/* Ajuste dedicado para celulares: navegação compacta, alvos de toque maiores e conteúdo sem transbordar. */
.mobile-appbar,.mobile-nav-backdrop{display:none}
.mobile-menu-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor;margin:4px auto}
.mobile-brand-block{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.mobile-brand-block strong{font-size:15px;font-weight:900;letter-spacing:-.2px;color:#188086}
.mobile-brand-block small{font-size:10px;color:#6e8195;margin-top:3px;max-width:55vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-network-mark{margin-left:auto;color:#20b66f;font-size:12px;padding:0 5px}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .mobile-appbar{display:flex!important;align-items:center!important;gap:12px!important;position:sticky!important;top:0!important;z-index:1300!important;width:100%!important;height:58px!important;padding:6px 13px!important;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #dce8f1!important;box-shadow:0 3px 14px rgba(18,63,140,.07)!important;backdrop-filter:blur(12px)!important}
  .mobile-menu-toggle{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;border:1px solid #dce8f1!important;border-radius:12px!important;background:#f4fcfd!important;color:#21d4de!important;cursor:pointer!important;touch-action:manipulation!important}
  .mobile-brand-block{flex:1 1 auto!important}
  .side{position:fixed!important;inset:58px auto 0 0!important;width:min(86vw,320px)!important;max-width:320px!important;height:auto!important;max-height:none!important;margin:0!important;padding:12px 10px 18px!important;overflow-y:auto!important;overflow-x:hidden!important;transform:translateX(-105%)!important;visibility:hidden!important;transition:transform .22s ease,visibility .22s ease!important;z-index:1200!important;box-shadow:12px 0 35px rgba(5,34,54,.22)!important;border-right:1px solid #dce8f1!important}
  html.mobile-nav-open .side{transform:translateX(0)!important;visibility:visible!important}
  .mobile-nav-backdrop{display:block!important;position:fixed!important;inset:58px 0 0!important;z-index:1190!important;background:rgba(9,28,46,.48)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .22s ease,visibility .22s ease!important}
  html.mobile-nav-open .mobile-nav-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  .main{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:13px 12px 30px!important;overflow-x:hidden!important}
  .main>.top,.main .top{width:100%!important;max-width:100%!important;min-width:0!important;gap:8px!important;margin:0 0 14px!important;align-items:flex-start!important;flex-wrap:wrap!important}
  .top-heading{flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .global-greeting{font-size:19px!important;line-height:1.18!important;overflow-wrap:anywhere!important}
  .top-actions{display:flex!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
  .top-actions>.user,.user{flex:1 1 150px!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:40px!important;padding:6px 8px!important;white-space:normal!important;overflow:hidden!important;font-size:12px!important}
  .top-user-name{white-space:normal!important;overflow-wrap:anywhere!important}
  .theme-toggle{min-height:40px!important;height:auto!important;padding:8px 10px!important;font-size:11px!important;white-space:normal!important}
  .card,.form,.dash-panel,.sr-panel{min-width:0!important;max-width:100%!important;padding:13px!important;border-radius:14px!important}
  .section{margin-top:13px!important}
  .row{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
  .field{min-width:0!important;width:100%!important}
  .field input,.field select,.field textarea,input,select,textarea{max-width:100%;}
  .table-wrap,.products-table-wrap,.products-list-wrap,.products-search-wrap,.cost-report-table-wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important}
  .table-wrap>.table,.table-wrap>table.table{width:max-content!important;min-width:100%!important;max-width:none!important}
  .table-toolbar{align-items:flex-start!important;justify-content:flex-start!important;gap:7px!important;max-width:100%!important;flex-wrap:wrap!important}
  .table-toolbar label{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
  .table-toolbar select,.table-toolbar button{min-height:38px!important}
  .btn,button,.nav a,.nav button,summary{touch-action:manipulation}
  .btn{min-height:42px!important;max-width:100%!important;white-space:normal!important;line-height:1.2!important}
  .nav-item,.nav-group>summary,.nav-subitem{min-height:44px!important}
  .modal-backdrop{padding:10px!important;align-items:start!important;overflow-y:auto!important}
  .modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important;padding:15px!important}
  .movement-switch{width:100%!important;max-width:100%!important;flex-wrap:wrap!important}
  .movement-tab{flex:1 1 auto!important;min-height:42px!important;white-space:normal!important}
  .dashboard-hero{height:185px!important;min-height:185px!important;border-radius:15px!important;background-position:center!important}
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .dashboard-main-grid,.sr-grid-middle,.sr-grid-lower,.sr-grid-two{grid-template-columns:minmax(0,1fr)!important}
  .quick-actions,.quick-actions-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .dash-kpi,.sr-kpi,.quick-card{min-width:0!important;padding:12px!important}
  .sr-action-row,.sr-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .sr-consumption,.sr-alerts,.sr-quick,.alerts-panel{grid-column:auto!important}
  .sr-help{align-items:flex-start!important;flex-wrap:wrap!important}
  .sr-support-btn{margin-left:0!important}
  img,canvas,svg{max-width:100%}
}
@media(max-width:600px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .mobile-appbar{padding-left:10px!important;padding-right:10px!important}
  .main{padding:11px 10px 26px!important}
  .top h2{font-size:20px!important}
  .card h1,.card h2,.card h3,.section h1,.section h2,.section h3{overflow-wrap:anywhere}
  .field input,.field select,.field textarea,input[type="text"],input[type="search"],input[type="number"],input[type="email"],input[type="password"],input[type="date"],select,textarea{font-size:16px!important;min-height:44px!important;width:100%!important;min-width:0!important}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .num{font-size:24px!important}
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .quick-actions,.quick-actions-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sr-action-row,.sr-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .table{font-size:12px!important}
  .table th,.table td{padding:9px 10px!important}
  .resizable-table{min-width:680px!important}
  .table .btn{min-height:38px!important;padding:7px 10px!important;font-size:12px!important}
  .table-density-comfortable .table th,.table-density-comfortable .table td{padding:10px!important;font-size:12px!important}
  .validity-v110-pdfs{grid-template-columns:minmax(0,1fr)!important}
  .sr-hero{height:175px!important;min-height:175px!important}
}
@media(prefers-reduced-motion:reduce){.side,.mobile-nav-backdrop{transition:none!important}}

/* Identidade OdiHub aplicada exclusivamente em telas mobile. */
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  :root{--mobile-brand-red:#f20d24;--mobile-brand-violet:#2f7c80;--mobile-brand-green:#008c36;--mobile-brand-cyan:#009de0;--primary:var(--mobile-brand-cyan);--primary-2:#087fc5;--nav:var(--mobile-brand-violet);--nav-2:#25676a;--hover:rgba(0,157,224,.10)}
  body{background:#f2fcfc!important}
  .app-bg{background-image:linear-gradient(rgba(241,247,253,.93),rgba(241,247,253,.93)),none!important;opacity:.32!important}
  .mobile-appbar{background:linear-gradient(112deg,#2f7c80 0%,#2f7c80 54%,#009de0 100%)!important;border-bottom:3px solid #f20d24!important;box-shadow:0 5px 18px rgba(48,42,133,.20)!important}
  .mobile-brand-block strong{color:#fff!important}
  .mobile-brand-block small{color:#e7fdfe!important}
  .mobile-network-mark{color:#63e6a1!important}
  .mobile-menu-toggle{background:#fff!important;border:2px solid #009de0!important;color:#2f7c80!important;box-shadow:0 2px 8px rgba(0,0,0,.12)!important}
  .side{background:linear-gradient(180deg,#2f7c80 0%,#25676a 74%,#008c36 150%)!important;border-right:3px solid #009de0!important}
  .brand{border-color:rgba(255,255,255,.20)!important;background:rgba(255,255,255,.08)!important}
  .nav a,.nav button{color:#fff!important}
  .nav a:hover,.nav button:hover,.nav a:focus-visible,.nav button:focus-visible{background:rgba(0,157,224,.28)!important}
  .nav a[href="/"],.nav a[href="/produtos"]:focus{background:linear-gradient(100deg,#009de0,#087fc5)!important;box-shadow:0 5px 14px rgba(0,157,224,.24)!important}
  .main{background:rgba(241,247,253,.62)!important}
  .global-greeting,.top-heading h1,.top-heading h2{color:#2f7c80!important}
  .card,.form,.dash-panel,.sr-panel{border-color:#d9f2f3!important;box-shadow:0 5px 18px rgba(48,42,133,.07)!important}
  .card{border-top:3px solid rgba(0,157,224,.72)!important}
  .card h1,.card h2,.card h3,.section h1,.section h2,.section h3{color:#2f7c80}
  .btn{background:linear-gradient(125deg,#009de0 0%,#087fc5 100%)!important;box-shadow:0 4px 12px rgba(0,157,224,.22)!important}
  .btn:hover,.btn:focus-visible{background:linear-gradient(125deg,#087fc5,#2f7c80)!important}
  .btn.secondary{background:#fff!important;color:#2f7c80!important;border:1px solid #c8d9ef!important;box-shadow:none!important}
  .table th{background:#eafafb!important;color:#2f7c80!important}
  .table-toolbar button.active{background:#2f7c80!important;border-color:#2f7c80!important;color:#fff!important}
  .role-badge{background:#e7f6ff!important;color:#2f7c80!important}
  .unit-badge{background:#f2fefe!important;color:#2f7c80!important}
  .privacy-note{border-left-color:#009de0!important;background:#ebfdfe!important}
  .mobile-nav-backdrop{background:rgba(48,42,133,.48)!important}
  /* Vermelho fica reservado para alertas críticos; verde para confirmações. */
  .alert.error,.error{background:#fff0f1!important;border-color:#f20d24!important;color:#a80b1b!important}
  .alert.ok,.ok{background:#eaf8ef!important;border-color:#008c36!important;color:#075d27!important}
}
@media(max-width:600px){
  .mobile-appbar{height:60px!important}
  .global-greeting{font-weight:850!important}
  .card{border-radius:15px!important}
}


@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .sr-dashboard .sr-grid-two{grid-template-columns:minmax(0,1fr)!important}
  .sr-dashboard .sr-category{min-width:0!important;overflow:hidden!important}
  .sr-dashboard .sr-category .sr-donut-row{display:flex!important;flex-direction:column!important;align-items:center!important;gap:16px!important;width:100%!important;min-width:0!important}
  .sr-dashboard .sr-category .sr-donut-wrap{width:190px!important;height:190px!important;max-width:72vw!important;max-height:72vw!important}
  .sr-dashboard .sr-category .sr-donut{width:100%!important;height:100%!important}
  .sr-dashboard .sr-category .sr-donut:after{inset:27%!important}
  .sr-dashboard .sr-category .sr-legend{width:100%!important;min-width:0!important;gap:9px!important}
  .sr-dashboard .sr-category .sr-legend div{grid-template-columns:10px minmax(0,1fr) auto!important;font-size:13px!important;gap:8px!important}
  .sr-dashboard .sr-category .sr-legend span{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
  .sr-dashboard .sr-movements-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important}
  .sr-dashboard .sr-movements .sr-table{width:max-content!important;min-width:560px!important;table-layout:auto!important}
  .sr-dashboard .sr-movements .sr-table th,.sr-dashboard .sr-movements .sr-table td{max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
}


/* Odi V22.5: novo personagem 3D, mantendo o painel e o backend contextual existentes. */
#odi-launcher{
 position:fixed!important;right:13px!important;bottom:2px!important;z-index:99992!important;
 width:120px!important;height:164px!important;padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:visible!important;cursor:pointer!important;isolation:isolate!important;transition:filter .2s ease,transform .2s ease!important;
}
#odi-launcher:hover{filter:drop-shadow(0 10px 13px #0878f936)!important;transform:scale(1.025)!important}
#odi-launcher:focus-visible{outline:2px solid #22e9f3!important;outline-offset:3px!important;border-radius:18px!important}
#odi-launcher:after{display:none!important}
#odi-launcher .odi-modern-stage{position:absolute!important;inset:0!important;display:block!important;animation:odi-modern-float 3.8s ease-in-out infinite;transform-origin:50% 80%;pointer-events:none!important}
#odi-launcher .odi-modern-rig{position:absolute!important;top:0!important;left:50%!important;height:100%!important;aspect-ratio:706/1050!important;width:auto!important;transform:translateX(-50%);transform-origin:50% 78%;transition:transform .18s ease-out;will-change:transform}
#odi-launcher .odi-modern-part{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}
#odi-launcher .odi-modern-base{z-index:1!important}
#odi-launcher .odi-modern-arm-left{z-index:2!important;transform-origin:39.7% 54.8%;animation:odi-modern-arm-wave 3.1s ease-in-out infinite;will-change:transform}
#odi-launcher .odi-modern-arm-right{z-index:2!important;transform-origin:78.8% 54%;animation:odi-modern-arm-relax 3.5s ease-in-out infinite;will-change:transform}
#odi-launcher:hover .odi-modern-arm-left{animation-duration:1.05s}
#odi-launcher:hover .odi-modern-arm-right{animation-duration:1.7s}
#odi-launcher .odi-modern-eye-patch{position:absolute!important;z-index:4!important;width:20.7%!important;height:10.1%!important;border-radius:50%!important;background:radial-gradient(ellipse at 50% 50%,#030b1a 0 64%,rgba(3,11,26,.98) 73%,rgba(3,11,26,.82) 84%,rgba(3,11,26,0) 100%)!important;pointer-events:none!important;overflow:visible!important}
#odi-launcher .odi-modern-eye-patch.left{left:32.55%!important;top:26.15%!important}
#odi-launcher .odi-modern-eye-patch.right{left:56.95%!important;top:22.76%!important}
#odi-launcher .odi-modern-eye-glow{position:absolute!important;left:35.5%!important;top:20.7%!important;width:29%!important;height:58%!important;border-radius:50%!important;background:radial-gradient(ellipse at 37% 25%,#e0ffff 0 8%,#a3f9ff 17%,#4ceaff 39%,#159eff 78%,#13c7d0 100%)!important;box-shadow:0 0 4px #60f6ff,0 0 9px #11caff,0 0 14px #13e7f3!important;transform-origin:50% 50%;transition:transform .11s ease!important}
#odi-launcher .odi-modern-eye-shine{position:absolute!important;left:45%!important;top:16%!important;width:18%!important;height:20%!important;border-radius:50%!important;background:#fff!important;box-shadow:0 0 4px #fff!important}
#odi-launcher .odi-modern-blink-line{position:absolute!important;left:5%!important;right:5%!important;top:46%!important;height:8%!important;border-radius:100%!important;background:#071b2d!important;opacity:0!important;transform:scaleX(.72)!important;transition:opacity .04s ease!important}
#odi-launcher .odi-modern-eye-patch.blink .odi-modern-eye-glow{transform:scaleY(.08)!important}
#odi-launcher .odi-modern-eye-patch.blink .odi-modern-blink-line{opacity:1!important}
#odi-launcher .odi-thought-bubble{position:absolute!important;right:1px!important;top:8px!important;z-index:6!important;display:grid!important;place-items:center!important;width:36px!important;height:27px!important;border-radius:18px 18px 18px 5px!important;background:#fff!important;color:#078ce8!important;box-shadow:0 4px 15px #1769e82b!important;font-size:14px!important;font-weight:900!important;animation:odi-think-bob 2.4s ease-in-out infinite!important}
#odi-launcher .odi-thought-bubble:after{content:"";position:absolute;left:7px;bottom:-4px;border-width:5px 5px 0 0;border-style:solid;border-color:#fff transparent transparent transparent}
#odi-panel.odi-open~#odi-launcher{right:22px!important;bottom:min(460px,calc(100dvh - 175px))!important}
#odi-avatar.odi-modern-header-avatar{width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important;overflow:hidden!important;border-radius:12px!important;background:#e8f6ff!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #bfe7fb!important}
#odi-avatar.odi-modern-header-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important}
@keyframes odi-modern-float{0%,100%{translate:0 0}50%{translate:0 -6px}}
@keyframes odi-modern-arm-wave{0%,100%{transform:rotate(0deg)}24%{transform:rotate(-3.8deg)}44%{transform:rotate(1.8deg)}64%{transform:rotate(-2.6deg)}82%{transform:rotate(.8deg)}}
@keyframes odi-modern-arm-relax{0%,100%{transform:rotate(0deg)}40%{transform:rotate(-2.4deg)}72%{transform:rotate(1.3deg)}}
@media(max-width:600px){
 #odi-launcher{right:7px!important;bottom:0!important;width:94px!important;height:132px!important}
 #odi-launcher .odi-thought-bubble{right:0!important;top:4px!important;transform:scale(.86)!important}
 #odi-panel.odi-open~#odi-launcher{right:8px!important;bottom:min(420px,calc(100dvh - 145px))!important}
}
@media(prefers-reduced-motion:reduce){ #odi-launcher .odi-modern-stage,#odi-launcher .odi-modern-arm-left,#odi-launcher .odi-modern-arm-right,#odi-launcher .odi-thought-bubble{animation:none!important}}


/* V23: troca somente a fisionomia do mascote. O painel e o backend contextual permanecem intactos. */
#odi-launcher .odi-dentinho-rig{width:100%!important;height:100%!important;aspect-ratio:1284/1059!important;left:50%!important;top:0!important;transform:translateX(-50%)!important}
#odi-launcher .odi-dentinho-body{z-index:1!important;object-fit:contain!important;animation:odi-tooth-bob 3.2s ease-in-out infinite}
#odi-launcher .odi-dentinho-arm-left{z-index:2!important;object-fit:contain!important;transform-origin:25% 55%!important;animation:odi-tooth-wave 3s ease-in-out infinite}
#odi-launcher .odi-dentinho-arm-right{z-index:2!important;object-fit:contain!important;transform-origin:75% 55%!important;animation:odi-tooth-relax 3.4s ease-in-out infinite}
#odi-launcher:hover .odi-dentinho-arm-left{animation-duration:.8s!important}
#odi-launcher:hover .odi-dentinho-body{animation-duration:.65s!important}
#odi-panel #odi-head #odi-avatar img{content:url("/static/odi_vivo/odi_avatar.webp?v=1354")!important;object-fit:contain!important}
@keyframes odi-tooth-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(1deg)}}
@keyframes odi-tooth-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}50%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}}
@keyframes odi-tooth-relax{0%,100%{transform:rotate(0)}50%{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){ #odi-launcher .odi-dentinho-body,#odi-launcher .odi-dentinho-arm-left,#odi-launcher .odi-dentinho-arm-right{animation:none!important}}


/* V24: movimentos discretos do Dentinho, balão integrado e transição suave dos banners. */
#odi-launcher .odi-dentinho-body{
  transform-origin:50% 58%!important;
  animation:odi-tooth-bob 3.4s ease-in-out infinite,odi-tooth-soft-blink 5.2s ease-in-out infinite!important;
  transition:filter .25s ease, transform .25s ease!important;
}
#odi-launcher .odi-dentinho-arm-left{
  animation:odi-tooth-wave 4.1s ease-in-out infinite!important;
  transition:transform .25s ease!important;
}
#odi-launcher .odi-dentinho-arm-right{
  animation:odi-tooth-relax 4.7s ease-in-out infinite!important;
  transition:transform .25s ease!important;
}
#odi-launcher .odi-thought-bubble{
  right:4px!important;top:5px!important;
  width:34px!important;height:28px!important;
  border:1px solid rgba(5,145,225,.18)!important;
  box-shadow:0 3px 12px rgba(18,100,180,.18)!important;
  transition:transform .22s ease,box-shadow .22s ease!important;
}
#odi-launcher:hover .odi-thought-bubble,
#odi-launcher:focus-visible .odi-thought-bubble{
  transform:translateY(-3px) scale(1.04)!important;
  box-shadow:0 5px 16px rgba(18,100,180,.24)!important;
}
#odi-panel.odi-open~#odi-launcher .odi-dentinho-body{
  animation:odi-tooth-greet 1.05s ease-out 1,odi-tooth-bob 3.4s ease-in-out 1.05s infinite!important;
}
#odi-panel.odi-open~#odi-launcher .odi-dentinho-arm-left{
  animation:odi-tooth-greet-wave .9s ease-in-out 1,odi-tooth-wave 4.1s ease-in-out .9s infinite!important;
}
#odi-panel.odi-open~#odi-launcher .odi-thought-bubble{
  transform:translateY(-2px) scale(1.05)!important;
}
.sr-hero.sr-hero-unit,
.sr-hero.sr-hero-unit img,
.sr-hero.sr-hero-unit picture,
.sr-hero.sr-hero-unit .sr-hero-slide{
  transition:opacity .65s ease-in-out, transform .8s ease-in-out, filter .65s ease-in-out!important;
}
.sr-hero.sr-hero-unit img{will-change:opacity,transform}
@keyframes odi-tooth-soft-blink{
  0%,43%,47%,100%{filter:brightness(1);transform:translateY(0) scaleY(1)}
  45%{filter:brightness(.97);transform:translateY(1px) scaleY(.975)}
}
@keyframes odi-tooth-greet{
  0%{transform:translateY(0) scale(1)}
  35%{transform:translateY(-7px) scale(1.025)}
  65%{transform:translateY(-2px) scale(.99)}
  100%{transform:translateY(0) scale(1)}
}
@keyframes odi-tooth-greet-wave{
  0%,100%{transform:rotate(0)}
  20%{transform:rotate(-15deg)}
  42%{transform:rotate(10deg)}
  64%{transform:rotate(-10deg)}
  82%{transform:rotate(4deg)}
}
@media(prefers-reduced-motion:reduce){
 #odi-launcher .odi-dentinho-body,#odi-launcher .odi-dentinho-arm-left,#odi-launcher .odi-dentinho-arm-right,#odi-launcher .odi-thought-bubble,
 .sr-hero.sr-hero-unit,.sr-hero.sr-hero-unit img,.sr-hero.sr-hero-unit picture,.sr-hero.sr-hero-unit .sr-hero-slide{animation:none!important;transition:none!important}
}


/* V25: animações mais perceptíveis, sem disputar a propriedade transform entre keyframes. */
#odi-launcher .odi-modern-stage{animation:odi-v25-stage-float 3.6s ease-in-out infinite!important}
#odi-launcher .odi-dentinho-body{
  transform-origin:50% 58%!important;
  animation:odi-v25-tooth-life 3.2s ease-in-out infinite!important;
  transition:filter .25s ease!important;
}
#odi-launcher .odi-dentinho-arm-left{
  transform-origin:23.5% 64%!important;
  animation:odi-v25-left-wave 2.8s ease-in-out infinite!important;
}
#odi-launcher .odi-dentinho-arm-right{
  transform-origin:75.5% 47%!important;
  animation:odi-v25-right-wave 3.5s ease-in-out infinite!important;
}
#odi-launcher .odi-thought-bubble{
  right:3px!important;top:3px!important;
  animation:odi-v25-bubble-pulse 2.2s ease-in-out infinite!important;
  border:1px solid #d6efff!important;
}
#odi-launcher .odi-thought-bubble:after{left:8px!important;bottom:-5px!important}
#odi-panel.odi-open~#odi-launcher .odi-dentinho-body{
  animation:odi-v25-greet 1.15s ease-out 1,odi-v25-tooth-life 3.2s ease-in-out 1.15s infinite!important;
}
#odi-panel.odi-open~#odi-launcher .odi-dentinho-arm-left{
  animation:odi-v25-greet-wave 1.1s ease-in-out 1,odi-v25-left-wave 2.8s ease-in-out 1.1s infinite!important;
}
#odi-panel.odi-open~#odi-launcher .odi-thought-bubble{
  animation:odi-v25-bubble-pulse 1.15s ease-in-out infinite!important;
}
@keyframes odi-v25-stage-float{
  0%,100%{translate:0 0}
  50%{translate:0 -5px}
}
@keyframes odi-v25-tooth-life{
  0%,38%,43%,100%{transform:translateY(0) rotate(0) scaleY(1)}
  18%{transform:translateY(-5px) rotate(-1.5deg) scaleY(1.015)}
  40%{transform:translateY(1px) rotate(0) scaleY(.94)}
  60%{transform:translateY(-2px) rotate(1.2deg) scaleY(1.01)}
  82%{transform:translateY(0) rotate(-.5deg) scaleY(1)}
}
@keyframes odi-v25-left-wave{
  0%,100%{transform:rotate(0)}
  18%{transform:rotate(-19deg)}
  34%{transform:rotate(13deg)}
  50%{transform:rotate(-16deg)}
  66%{transform:rotate(10deg)}
  82%{transform:rotate(-5deg)}
}
@keyframes odi-v25-right-wave{
  0%,100%{transform:rotate(0)}
  35%{transform:rotate(7deg)}
  65%{transform:rotate(-6deg)}
}
@keyframes odi-v25-greet{
  0%{transform:translateY(0) rotate(0) scale(1)}
  28%{transform:translateY(-10px) rotate(-3deg) scale(1.04)}
  54%{transform:translateY(-3px) rotate(2deg) scale(.99)}
  78%{transform:translateY(-6px) rotate(-1deg) scale(1.02)}
  100%{transform:translateY(0) rotate(0) scale(1)}
}
@keyframes odi-v25-greet-wave{
  0%,100%{transform:rotate(0)}
  15%{transform:rotate(-24deg)}
  30%{transform:rotate(17deg)}
  45%{transform:rotate(-22deg)}
  60%{transform:rotate(15deg)}
  75%{transform:rotate(-12deg)}
}
@keyframes odi-v25-bubble-pulse{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-4px) scale(1.09)}
}
@media(prefers-reduced-motion:reduce){
 #odi-launcher .odi-modern-stage,#odi-launcher .odi-dentinho-body,#odi-launcher .odi-dentinho-arm-left,#odi-launcher .odi-dentinho-arm-right,#odi-launcher .odi-thought-bubble{animation:none!important;transition:none!important}
}


#odi-launcher.odi-chat-open .odi-dentinho-body{animation:odi-v25-greet 1.15s ease-out 1,odi-v25-tooth-life 3.2s ease-in-out 1.15s infinite!important}
#odi-launcher.odi-chat-open .odi-dentinho-arm-left{animation:odi-v25-greet-wave 1.1s ease-in-out 1,odi-v25-left-wave 2.8s ease-in-out 1.1s infinite!important}
#odi-launcher.odi-chat-open .odi-thought-bubble{animation:odi-v25-bubble-pulse 1.15s ease-in-out infinite!important}


/* V26: rosto animado em camadas separadas; braços permanecem integrados ao corpo para evitar efeito de fantasma. */
#odi-launcher .odi-dentinho-rig{
  width:100%!important;height:100%!important;aspect-ratio:1284/1059!important;
  left:50%!important;top:0!important;transform:translateX(-50%)!important;
  transform-origin:50% 72%!important;
  animation:odi-v26-idle-body 4.2s ease-in-out infinite!important;
}
#odi-launcher .odi-dentinho-body{
  z-index:1!important;object-fit:fill!important;
  animation:none!important;
}
#odi-launcher .odi-dentinho-eyes{
  z-index:3!important;object-fit:fill!important;
  transform-origin:50% 39%!important;
  animation:odi-v26-blink 5.1s linear infinite!important;
}
#odi-launcher .odi-dentinho-mouth{
  z-index:4!important;object-fit:fill!important;
  transform-origin:50% 54%!important;
  animation:odi-v26-mouth-idle 3.8s ease-in-out infinite!important;
}
#odi-launcher .odi-dentinho-eyelids{
  position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important;
}
#odi-launcher .odi-dentinho-eyelids:before,
#odi-launcher .odi-dentinho-eyelids:after{
  content:"";position:absolute;top:36.5%;width:10.5%;height:3.2%;
  background:#fff;border-bottom:3px solid #1c686c;border-radius:0 0 55% 55%;
  opacity:0;transform:scaleY(.35);transform-origin:center;
  animation:odi-v26-eyelid-blink 5.1s linear infinite;
}
#odi-launcher .odi-dentinho-eyelids:before{left:29.5%}
#odi-launcher .odi-dentinho-eyelids:after{left:53.5%}
#odi-launcher:hover .odi-dentinho-rig{animation-duration:2.6s!important}
#odi-launcher:hover .odi-dentinho-mouth{animation-duration:1.8s!important}
#odi-panel.odi-open ~ #odi-launcher .odi-dentinho-rig{
  animation:odi-v26-greet 1s ease-out 1,odi-v26-idle-body 4.2s ease-in-out 1s infinite!important;
}
#odi-panel.odi-open ~ #odi-launcher .odi-dentinho-mouth{
  animation:odi-v26-speaking-mouth .75s ease-in-out 1.4s 3!important;
}
#odi-panel.odi-open ~ #odi-launcher .odi-thought-bubble{
  transform:translateY(-3px) scale(1.06)!important;
  box-shadow:0 5px 16px rgba(18,100,180,.25)!important;
}
#odi-panel #odi-body .odi-msg:first-child{
  user-select:text;
}
@keyframes odi-v26-idle-body{
  0%,100%{transform:translateX(-50%) translateY(0) rotate(0deg)}
  50%{transform:translateX(-50%) translateY(-2px) rotate(.45deg)}
}
@keyframes odi-v26-greet{
  0%{transform:translateX(-50%) translateY(0) rotate(0)}
  28%{transform:translateX(-50%) translateY(-5px) rotate(-1deg)}
  58%{transform:translateX(-50%) translateY(-1px) rotate(1deg)}
  100%{transform:translateX(-50%) translateY(0) rotate(0)}
}
@keyframes odi-v26-blink{
  0%,42%,45%,82%,85%,100%{transform:scaleY(1)}
  43.5%,84%{transform:scaleY(.06)}
}
@keyframes odi-v26-eyelid-blink{
  0%,42%,45%,82%,85%,100%{opacity:0;transform:scaleY(.35)}
  43.5%,84%{opacity:1;transform:scaleY(1)}
}
@keyframes odi-v26-mouth-idle{
  0%,100%{transform:scaleY(1)}
  50%{transform:scaleY(1.07)}
}
@keyframes odi-v26-speaking-mouth{
  0%,100%{transform:scaleY(.8)}
  50%{transform:scaleY(1.35)}
}
@media(prefers-reduced-motion:reduce){
 #odi-launcher .odi-dentinho-rig,#odi-launcher .odi-dentinho-eyes,#odi-launcher .odi-dentinho-mouth,
 #odi-launcher .odi-dentinho-eyelids:before,#odi-launcher .odi-dentinho-eyelids:after{animation:none!important}
}


/* V27: mascot uses the original full-width silhouette; only face layers animate. */
#odi-launcher .odi-modern-stage{
  animation:none!important;
}
#odi-launcher .odi-modern-rig,
#odi-launcher .odi-dentinho-rig{
  position:absolute!important;top:0!important;left:50%!important;
  height:100%!important;width:auto!important;aspect-ratio:1284/1059!important;
  transform:translateX(-50%)!important;transform-origin:50% 78%!important;
  animation:odi-v27-idle 4.2s ease-in-out infinite!important;
}
#odi-launcher .odi-modern-part,
#odi-launcher .odi-dentinho-rig img{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:fill!important;pointer-events:none!important;user-select:none!important;
}
#odi-launcher .odi-dentinho-body{z-index:1!important;animation:none!important;transform:none!important}
#odi-launcher .odi-dentinho-eyes{
  z-index:3!important;animation:odi-v27-blink 5.1s linear infinite!important;
  transform-origin:50% 39%!important;
}
#odi-launcher .odi-dentinho-mouth{
  z-index:4!important;animation:odi-v27-mouth 3.6s ease-in-out infinite!important;
  transform-origin:50% 53%!important;
}
#odi-launcher .odi-dentinho-eyelids{
  position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important;
}
#odi-launcher .odi-dentinho-eyelids:before,
#odi-launcher .odi-dentinho-eyelids:after{
  content:"";position:absolute;top:37.5%;width:10.5%;height:2.5%;
  background:#fff;border-bottom:3px solid #1b686c;border-radius:0 0 55% 55%;
  opacity:0;transform:scaleY(.25);transform-origin:center;
  animation:odi-v27-lids 5.1s linear infinite;
}
#odi-launcher .odi-dentinho-eyelids:before{left:29.5%}
#odi-launcher .odi-dentinho-eyelids:after{left:53.5%}
#odi-launcher .odi-thought-bubble{
  right:5px!important;top:4px!important;z-index:7!important;
  box-shadow:0 3px 12px rgba(18,100,180,.20)!important;
  animation:odi-v27-bubble 3.5s ease-in-out infinite!important;
}
#odi-launcher:hover .odi-modern-rig{animation-duration:2.6s!important}
#odi-launcher.odi-chat-open .odi-modern-rig,
#odi-panel.odi-open ~ #odi-launcher .odi-modern-rig{
  animation:odi-v27-greet 1s ease-out 1,odi-v27-idle 4.2s ease-in-out 1s infinite!important;
}
#odi-launcher.odi-chat-open .odi-dentinho-mouth,
#odi-panel.odi-open ~ #odi-launcher .odi-dentinho-mouth{
  animation:odi-v27-speaking .65s ease-in-out 1.2s 3!important;
}
@keyframes odi-v27-idle{
  0%,100%{transform:translateX(-50%) translateY(0) rotate(0)}
  50%{transform:translateX(-50%) translateY(-1.5px) rotate(.25deg)}
}
@keyframes odi-v27-greet{
  0%{transform:translateX(-50%) translateY(0) rotate(0)}
  30%{transform:translateX(-50%) translateY(-3px) rotate(-.6deg)}
  65%{transform:translateX(-50%) translateY(-1px) rotate(.5deg)}
  100%{transform:translateX(-50%) translateY(0) rotate(0)}
}
@keyframes odi-v27-blink{
  0%,42%,45%,82%,85%,100%{transform:scaleY(1)}
  43.5%,84%{transform:scaleY(.05)}
}
@keyframes odi-v27-lids{
  0%,42%,45%,82%,85%,100%{opacity:0;transform:scaleY(.25)}
  43.5%,84%{opacity:1;transform:scaleY(1)}
}
@keyframes odi-v27-mouth{
  0%,100%{transform:scaleY(1)}
  50%{transform:scaleY(1.04)}
}
@keyframes odi-v27-speaking{
  0%,100%{transform:scaleY(.85)}
  50%{transform:scaleY(1.18)}
}
@keyframes odi-v27-bubble{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}
@media(max-width:600px){
 #odi-launcher .odi-modern-rig,#odi-launcher .odi-dentinho-rig{height:100%!important;width:auto!important;max-width:125%!important}
}
@media(prefers-reduced-motion:reduce){
 #odi-launcher .odi-modern-rig,#odi-launcher .odi-dentinho-eyes,#odi-launcher .odi-dentinho-mouth,
 #odi-launcher .odi-dentinho-eyelids:before,#odi-launcher .odi-dentinho-eyelids:after,#odi-launcher .odi-thought-bubble{animation:none!important}
}


#odi-launcher{width:84px!important;height:100px!important;right:12px!important;bottom:12px!important;left:auto!important;top:auto!important;overflow:visible!important;touch-action:none!important;cursor:grab!important}
#odi-launcher.odi-dragging{cursor:grabbing!important;transition:none!important}
#odi-launcher .odi-modern-stage{width:100%!important;height:100%!important;overflow:visible!important}
#odi-launcher .odi-modern-rig,#odi-launcher .odi-dentinho-rig{height:100%!important;width:auto!important;max-width:100%!important}
#odi-launcher .odi-thought-bubble{right:0!important;top:1px!important;width:30px!important;height:25px!important;font-size:12px!important}
@media(max-width:600px){
 #odi-launcher{width:68px!important;height:82px!important;right:8px!important;bottom:8px!important}
 #odi-launcher .odi-thought-bubble{width:27px!important;height:23px!important;right:-1px!important;top:0!important}
}


/* Mascote com proporção mais larga e altura controlada. */
#odi-launcher{
 width:108px!important;height:98px!important;
 overflow:visible!important;touch-action:none!important;
}
#odi-launcher .odi-modern-stage{
 width:100%!important;height:100%!important;overflow:visible!important;
}
#odi-launcher .odi-modern-rig,
#odi-launcher .odi-dentinho-rig{
 height:100%!important;width:auto!important;max-width:100%!important;
}
#odi-launcher .odi-thought-bubble{
 right:3px!important;top:0!important;width:28px!important;height:24px!important;
 border-radius:14px!important;box-shadow:0 2px 8px rgba(30,90,150,.14)!important;
}
@media(max-width:600px){
 #odi-launcher{width:82px!important;height:76px!important}
}
/* Chat minimalista inspirado na referência: compacto, sem área vazia excessiva. */
#odi-panel{
 position:fixed!important;
 width: min(340px, calc(100vw - 24px))!important;
 height: min(270px, calc(100dvh - 32px))!important;
 max-height:calc(100dvh - 32px)!important;
 right:auto!important;bottom:auto!important;
 border:1px solid #ddf5f7!important;border-radius:20px!important;
 background:#fff!important;
 box-shadow:0 12px 34px rgba(26,72,124,.14)!important;
 overflow:hidden!important;
}
#odi-panel #odi-head,
#odi-panel .odi-head{
 min-height:52px!important;padding:10px 14px!important;
 background:#fff!important;color:#1b686c!important;
 border-bottom:1px solid #edf2f8!important;
}
#odi-panel #odi-head strong,
#odi-panel .odi-head strong,
#odi-panel #odi-title{color:#1b686c!important;font-size:14px!important;font-weight:700!important}
#odi-panel #odi-body{
 padding:12px!important;gap:8px!important;
 background:#fff!important;overflow:auto!important;
}
#odi-panel .odi-msg{
 max-width:95%!important;padding:10px 12px!important;
 border:1px solid #e2f8f9!important;border-radius:13px!important;
 background:#f4fefe!important;color:#286669!important;
 font-size:12px!important;line-height:1.45!important;
}
#odi-panel #odi-footnote{display:none!important}
#odi-panel #odi-form{
 padding:9px 10px!important;gap:7px!important;
 border-top:1px solid #edf2f8!important;background:#fff!important;
}
#odi-panel #odi-question{
 min-width:0!important;height:40px!important;padding:9px 12px!important;
 border:1px solid #daf4f5!important;border-radius:13px!important;
 box-shadow:none!important;font-size:12px!important;outline:none!important;
}
#odi-panel #odi-question:focus{border-color:#85ecf1!important;box-shadow:0 0 0 2px #e9fdfe!important}
#odi-panel #odi-send{
 width:40px!important;height:40px!important;min-width:40px!important;
 border-radius:12px!important;box-shadow:none!important;
}
@media(max-width:600px){
 #odi-panel{
  width:min(320px,calc(100vw - 20px))!important;
  height:min(250px,calc(100dvh - 24px))!important;
  border-radius:18px!important;
 }
 #odi-panel #odi-body{padding:10px!important}
}
