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

*{box-sizing:border-box}html,body{min-height:100%;}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f7fb;color:#182230}.app-bg{position:fixed;inset:-18px;background-image:linear-gradient(rgba(245,247,251,.80),rgba(245,247,251,.80)),none;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px);transform:scale(1.03);opacity:.95;z-index:0;pointer-events:none}.side,.main{position:relative;z-index:1}.side{position:fixed;inset:0 auto 0 0;width:235px;height:100vh;background:#0d2b45;color:#fff;padding:22px 14px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent}.brand{font-size:21px;font-weight:800;padding:0 10px 25px}.brand small{display:block;font-size:11px;opacity:.65;margin-top:4px}.nav a{display:block;color:#dce9f3;text-decoration:none;padding:11px 12px;border-radius:9px;margin:3px 0}.nav a:hover{background:#174462}.nav button{display:block;width:100%;border:0;text-align:left;background:transparent;color:#dce9f3;padding:11px 12px;border-radius:9px;margin:3px 0;font:inherit;cursor:pointer}.nav button:hover{background:#174462}.backup-note{font-size:11px;color:#cbd8e3;padding:8px 12px;margin:4px 0 8px;line-height:1.35;border-top:1px solid #ffffff18;border-bottom:1px solid #ffffff18}.main{margin-left:235px;padding:28px;max-width:1500px;background:rgba(245,247,251,.36);min-height:100vh}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.user{font-size:13px;color:#637282}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.card{background:#fff;border:1px solid #e5eaf0;border-radius:14px;padding:18px;box-shadow:0 3px 15px #193b5010}.num{font-size:30px;font-weight:800;margin-top:8px}.muted{color:#718096}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.table th,.table td{padding:12px;border-bottom:1px solid #edf0f4;text-align:left;font-size:13px}.table th{background:#f8fafc}.pill{padding:5px 9px;border-radius:20px;font-weight:700;font-size:11px}.green{background:#dcfce7;color:#166534}.yellow{background:#fef3c7;color:#92400e}.red{background:#fee2e2;color:#991b1b}.form{background:#fff;padding:20px;border:1px solid #e5eaf0;border-radius:14px;max-width:850px}.row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field label{font-size:12px;font-weight:700}.field input,.field select{padding:10px;border:1px solid #d6dde6;border-radius:8px;font-size:14px}.btn{border:0;background:#199399;color:#fff;padding:10px 15px;border-radius:8px;font-weight:700;cursor:pointer}.btn.secondary{background:#e8eef5;color:#16324a}.alert{padding:11px 14px;border-radius:9px;margin-bottom:15px}.ok{background:#dcfce7;color:#166534}.error{background:#fee2e2;color:#991b1b}.section{margin-top:25px}.login{position:relative;z-index:2;min-height:100vh;display:grid;place-items:center;background:rgba(13,43,69,.18)}.loginbox{position:relative;z-index:3;background:rgba(255,255,255,.97);width:min(400px,92vw);padding:30px;border-radius:18px;box-shadow:0 18px 60px rgba(15,23,42,.20)}.loginbox h1{margin-top:0}@media (max-width:850px), (pointer:coarse) and (max-height:500px){.side{position:static;width:auto}.main{margin:0;padding:16px}.grid{grid-template-columns:repeat(2,1fr)}.row{grid-template-columns:1fr}.table{font-size:11px;display:block;overflow:auto}.top{gap:10px;flex-wrap:wrap}}
.brand-logo-box{background:#fff;border-radius:10px;padding:8px 10px;margin-bottom:9px;display:flex;align-items:center;justify-content:center}.brand-logo{width:185px;max-width:100%;max-height:82px;object-fit:contain;display:block}.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:7px;border:2px solid #fff}.user{display:flex;align-items:center;gap:6px}.edit{color:#2f7f83;text-decoration:none;font-weight:700}.login-logo{width:235px;display:block;margin:0 auto 18px}.brand{background:rgba(255,255,255,.05);border-radius:12px;padding:10px}.side{background:linear-gradient(180deg,#2f7f83 0%,#123b5b 72%)}.btn{background:#2f7f83}.btn:hover{background:#24676b}.unit-badge{font-size:11px;padding:4px 7px;border-radius:999px;background:#f3f4f6;color:#4b5563;margin-left:5px}.role-badge{font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px;background:#effdfe;color:#36989d}.modal-backdrop{position:fixed;inset:0;background:#0b173080;display:grid;place-items:center;z-index:1000;padding:20px}.modal-card{background:#fff;border-radius:16px;padding:22px;width:min(650px,96vw);box-shadow:0 20px 60px #0004}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0}.modal-close{border:0;background:transparent;font-size:28px;cursor:pointer;color:#64748b}.privacy-note{padding:12px 14px;background:#f4fefe;border-left:4px solid #2f7f83;border-radius:8px;color:#37365d;font-size:13px}
.side::-webkit-scrollbar{width:7px}.side::-webkit-scrollbar-track{background:transparent}.side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:10px}.side::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.45)}

/* Personalização das tabelas: largura das colunas e densidade */
.table-wrap{position:relative;overflow:auto;margin-top:14px;border-radius:14px;background:#fff}
.table-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.table-toolbar label{font-size:12px;font-weight:700;color:#526273}
.table-toolbar select,.table-toolbar button{border:1px solid #d6dde6;background:#fff;color:#26374a;border-radius:8px;padding:7px 9px;font-size:12px;cursor:pointer}
.table-toolbar button.active{background:#2f7f83;color:#fff;border-color:#2f7f83}
.resizable-table{table-layout:fixed;width:max-content;min-width:100%;max-width:none}
.resizable-table th{position:relative;white-space:nowrap;user-select:none;overflow:hidden;text-overflow:ellipsis}
.resizable-table td{vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:1px}
.resizable-table .resize-handle{position:absolute;top:0;right:-3px;width:7px;height:100%;cursor:col-resize;z-index:5}
.resizable-table .resize-handle:hover,.resizable-table .resize-handle.dragging{background:#2f2a8866}
.table-density-compact .table th,.table-density-compact .table td{padding:7px 9px;font-size:12px}
.table-density-normal .table th,.table-density-normal .table td{padding:12px;font-size:13px}
.table-density-comfortable .table th,.table-density-comfortable .table td{padding:16px 13px;font-size:14px}
.table-density-compact .table .btn{padding:7px 9px;font-size:11px}
.table-density-comfortable .table .btn{padding:11px 14px}
.table-resize-mode .resizable-table th{outline:1px dashed #2f2a8830}
.table-resize-mode .resize-handle{display:block}
.resizable-table th,.resizable-table td{min-width:0}
.resizable-table th:first-child,.resizable-table td:first-child{min-width:0}
.resizable-table .btn{white-space:nowrap}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.table-toolbar{justify-content:flex-start}.resizable-table{min-width:900px}}

/* V96 • Redesign visual: Clean Professional + Clínico, com tema escuro opcional. */
:root{--bg:#f4f8fb;--surface:#ffffff;--surface-2:#f8fbfd;--text:#102a43;--muted:#66788a;--border:#dfe9ef;--primary:#087f8c;--primary-2:#0ea5a8;--nav:#073b4c;--nav-2:#075e6b;--nav-text:#eafcff;--shadow:0 10px 30px rgba(16,42,67,.08);--input:#ffffff;--table-head:#f1f7fa;--hover:#eaf8fa;--danger:#dc3b4b}
html[data-theme="dark"]{--bg:#07131f;--surface:#0d2030;--surface-2:#10283a;--text:#e8f3f8;--muted:#9bb0be;--border:#1f3a4d;--primary:#22b8b8;--primary-2:#35d1c8;--nav:#061a29;--nav-2:#0a3143;--nav-text:#eafcff;--shadow:0 14px 35px rgba(0,0,0,.28);--input:#0b1b29;--table-head:#122b3d;--hover:#123b4b;--danger:#ff6b78}
html,body{background:var(--bg);color:var(--text)}body{font-family:Inter,Segoe UI,Arial,sans-serif;letter-spacing:.01em}.app-bg{background-image:linear-gradient(rgba(244,248,251,.90),rgba(244,248,251,.90)),none;filter:blur(7px);opacity:.48}html[data-theme="dark"] .app-bg{background-image:linear-gradient(rgba(5,17,28,.88),rgba(5,17,28,.88)),none;opacity:.35}
.side{width:250px;padding:18px 13px;background:linear-gradient(180deg,var(--nav) 0%,var(--nav-2) 100%);box-shadow:8px 0 28px rgba(3,28,44,.14)}.main{margin-left:250px;padding:26px 30px;max-width:none;background:rgba(244,248,251,.28)}html[data-theme="dark"] .main{background:rgba(7,19,31,.18)}
.brand{padding:9px 10px 17px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:16px;margin-bottom:12px}.brand-logo-box{border-radius:12px;padding:7px 10px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.08)}.brand-logo{width:188px;max-height:74px}.brand small{color:#d8f6fa}.nav a,.nav button{border-radius:11px;padding:11px 12px;margin:4px 0;color:var(--nav-text);transition:background .16s ease,transform .16s ease}.nav a:hover,.nav button:hover{background:rgba(36,210,207,.15);transform:translateX(2px)}.nav a[href="/"],.nav a[href="/produtos"]:focus{background:linear-gradient(90deg,#0ea5a8,#07839a);color:#fff;box-shadow:0 6px 16px rgba(14,165,168,.20)}
.top{gap:16px;margin-bottom:22px;padding:2px 2px}.top h2{font-size:25px;letter-spacing:-.02em;margin:0}.top-actions{display:flex;align-items:center;gap:12px}.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:8px 11px;border-radius:999px;font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 4px 12px rgba(16,42,67,.05);transition:.15s ease}.theme-toggle:hover{border-color:var(--primary);transform:translateY(-1px)}.theme-icon{font-size:15px}.user{color:var(--muted);background:var(--surface);border:1px solid var(--border);padding:6px 10px;border-radius:12px;box-shadow:0 4px 12px rgba(16,42,67,.04)}
.card,.form,.table,.table-wrap,.loginbox,.modal-card{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow);color:var(--text)}.card{border-radius:16px}.table{border:1px solid var(--border)}.table th{background:var(--table-head);color:var(--text)}.table td{border-color:var(--border)}.table-toolbar select,.table-toolbar button,.field input,.field select{background:var(--input);color:var(--text);border-color:var(--border)}.field input::placeholder{color:var(--muted)}.muted,.table-toolbar label{color:var(--muted)}.btn{background:linear-gradient(135deg,var(--primary),var(--primary-2));border-radius:10px;box-shadow:0 5px 14px rgba(8,127,140,.16)}.btn:hover{background:linear-gradient(135deg,#066e7a,#0b999b)}.btn.secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border);box-shadow:none}.btn.secondary:hover{background:var(--hover)}.section{margin-top:22px}.alert{border:1px solid var(--border)}.privacy-note{background:rgba(14,165,168,.08);border-left-color:var(--primary);color:var(--text)}
.status-all{background:var(--surface);border-color:var(--border);color:var(--text)}.status-green{background:rgba(34,197,94,.12);border-color:#22c55e;color:#86efac}.status-yellow{background:rgba(234,179,8,.12);border-color:#eab308;color:#fde68a}.status-red{background:rgba(220,59,75,.12);border-color:#ef6471;color:#fecdd3}html[data-theme="dark"] .stock-row.stock-green td{background:rgba(34,197,94,.10);color:#b7f7ca}html[data-theme="dark"] .stock-row.stock-yellow td{background:rgba(234,179,8,.10);color:#fde68a}html[data-theme="dark"] .stock-row.stock-red td{background:rgba(220,59,75,.12);color:#fecdd3}
html[data-theme="dark"] .unit-badge{background:#173347;color:#b9d1de}html[data-theme="dark"] .role-badge{background:#173b4d;color:#b8f3ef}html[data-theme="dark"] .collapse-btn{background:#153347;color:#9fe9e5}html[data-theme="dark"] .modal-backdrop{background:rgba(0,0,0,.68)}html[data-theme="dark"] .modal-close{color:#a9bdc9}html[data-theme="dark"] .login{background:rgba(3,15,25,.45)}html[data-theme="dark"] .loginbox{background:rgba(13,32,48,.98)}html[data-theme="dark"] .loginbox h1{color:#e8f3f8}
html[data-theme="dark"] .table-toolbar button.active{background:var(--primary);border-color:var(--primary);color:#042027}html[data-theme="dark"] .table-density-compact .table th,html[data-theme="dark"] .table-density-compact .table td{border-color:var(--border)}
/* Harmoniza elementos com cores antigas embutidas nos templates sem alterar a lógica. */
html[data-theme="dark"] [style*="background:#fff"],html[data-theme="dark"] [style*="background: #fff"],html[data-theme="dark"] [style*="background:white"],html[data-theme="dark"] [style*="background: white"]{background:var(--surface)!important;color:var(--text)!important}html[data-theme="dark"] [style*="color:#6b7280"],html[data-theme="dark"] [style*="color: #6b7280"],html[data-theme="dark"] [style*="color:#718096"],html[data-theme="dark"] [style*="color: #718096"]{color:var(--muted)!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.side{width:auto;box-shadow:none}.main{margin:0;padding:16px}.top-actions{width:100%;justify-content:space-between}.user{max-width:70%;overflow:auto}.theme-toggle{flex:none}}

<style>
.sr-dashboard-operational .sr-kpi-operational .sr-kpi{min-height:92px}.sr-operational-message{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--v96-line);border-radius:14px;background:linear-gradient(135deg,#f5fbff,#ffffff);margin-bottom:12px}.sr-operational-message small{display:block;color:var(--v96-muted);margin-top:3px}.sr-panel-operational-info{min-height:250px}.sr-dashboard-operational .sr-help{margin-top:14px}.sr-dashboard-operational .sr-action-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.sr-dashboard-operational .sr-kpi-row{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

/* Correcao de contraste do menu mobile OdiHub */
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  html .side{color:#fff!important;background:linear-gradient(180deg,#2f7c80 0%,#286f73 62%,#20245f 100%)!important}
  html .side .brand,html .side .brand-subtitle,html .side .brand-unit{color:#fff!important}
  html .side .brand small{color:#e9fdfe!important;opacity:1!important}
  html .side .nav,html .side .nav *{opacity:1!important}
  html .side .nav .nav-item,
  html .side .nav .nav-group>summary,
  html .side .nav .nav-subitem,
  html .side .nav a,
  html .side .nav button{color:#fff!important;text-shadow:none!important}
  html .side .nav .nav-ico,
  html .side .nav .nav-chevron{color:#fff!important;opacity:1!important}
  html .side .nav .nav-group>summary{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;min-height:48px!important;font-weight:750!important}
  html .side .nav .nav-group[open]>summary{background:rgba(0,157,224,.24)!important;border-color:rgba(0,157,224,.62)!important}
  html .side .nav .nav-submenu{border-left:2px solid #009de0!important}
  html .side .nav .nav-subitem{background:transparent!important;min-height:42px!important;border-radius:8px!important}
  html .side .nav .nav-subitem:hover,
  html .side .nav .nav-subitem:focus-visible{background:rgba(0,157,224,.28)!important}
  html .side .nav .nav-item.active,
  html .side .nav a[href="/"]{background:linear-gradient(100deg,#009de0,#087fc5)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important}
  html .side .nav .nav-group>summary .nav-chevron{color:#fff!important}
  html .side .side-footer{background:#f5fefe!important;color:#1b676b!important;border:1px solid #cff1f3!important}
  html .side .side-footer strong,html .side .side-footer small{color:#1b676b!important}
  html .side .side-footer-gear{color:#2f7c80!important}
}


/* ODI V19: mascote flutuante e chat compacto, sem painel de botões */
#odi-panel{position:fixed!important;right:28px!important;bottom:22px!important;top:auto!important;width:min(420px,calc(100vw - 28px))!important;height:330px!important;max-height:46vh!important;border-radius:22px!important;box-shadow:0 16px 48px #0b327b30!important;overflow:hidden!important;z-index:99990!important}
#odi-panel #odi-head{padding:8px 12px!important;min-height:44px!important;background:linear-gradient(110deg,#1da1a8,#078bdc)!important}
#odi-panel #odi-head #odi-avatar,#odi-panel #odi-head strong,#odi-panel #odi-head small{display:none!important}
#odi-panel #odi-head:before{content:'Converse com o Odi';font-size:13px;font-weight:700;flex:1}
#odi-panel #odi-showcase,#odi-panel #odi-emotions,#odi-panel #odi-footnote{display:none!important}
#odi-panel #odi-body{flex:1!important;min-height:0!important;padding:10px 12px!important;overflow-y:auto!important;background:linear-gradient(145deg,#f2fefe,#fff)!important}
#odi-panel #odi-form{padding:8px 10px!important;gap:6px!important;border-top:1px solid #e1f8fa!important}
#odi-panel #odi-question{min-width:0!important;font-size:13px!important}
#odi-panel #odi-send{padding:0 12px!important;border-radius:12px!important}
#odi-panel #odi-close{font-size:22px!important;width:28px!important;height:28px!important;border:0!important;background:#ffffff25!important;color:white!important;border-radius:50%!important}
#odi-launcher{position:fixed!important;right:70px!important;bottom:365px!important;width:112px!important;height:112px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:99992!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;transition:bottom .25s ease,right .25s ease,transform .25s ease!important}
#odi-launcher .odi-bot-launch{width:100px!important;height:100px!important;transform-origin:center bottom!important;filter:drop-shadow(0 8px 10px #1677c655)!important;animation:odi-float 2.8s ease-in-out infinite,odi-wave 5s ease-in-out infinite!important}
#odi-launcher:after{content:'•••';position:absolute;right:-3px;top:-4px;display:grid;place-items:center;width:38px;height:28px;border-radius:18px 18px 18px 4px;background:#fff;color:#21d9e3;font-size:17px;font-weight:900;box-shadow:0 4px 14px #1769e82b;animation:odi-thought 2.2s ease-in-out infinite}
@keyframes odi-thought{0%,100%{transform:translateY(0);opacity:.75}50%{transform:translateY(-5px);opacity:1}}
/* Aberto: personagem flutua diretamente acima da conversa. Fechado: mascote compacto no canto. */
#odi-panel.odi-open ~ #odi-launcher{bottom:365px!important;right:170px!important}
@media(max-width:600px){ #odi-panel{right:8px!important;bottom:8px!important;width:calc(100vw - 16px)!important;height:300px!important;max-height:44vh!important}#odi-launcher{right:22px!important;bottom:320px!important;width:88px!important;height:88px!important}#odi-launcher .odi-bot-launch{width:80px!important;height:80px!important}#odi-panel.odi-open ~ #odi-launcher{right:calc(50vw - 44px)!important;bottom:315px!important}}


/* V123.83 • Modernização visual SaaS para teste. Mantém rotas, IDs e lógica existentes. */
:root{
 --oc-app-bg:#f8fafc;--oc-sidebar:#0f172a;--oc-sidebar-border:#1e293b;
 --oc-primary:#26c6cf;--oc-primary-hover:#25a1a8;--oc-surface:#fff;
 --oc-border:#e2e8f0;--oc-text:#1e293b;--oc-muted:#64748b;
 --oc-radius:12px;--oc-shadow:0 1px 3px rgba(15,23,42,.06)
}
html,body{background:var(--oc-app-bg);color:var(--oc-text)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:normal;-webkit-font-smoothing:antialiased}
.app-bg{opacity:.18;filter:blur(8px);background-image:linear-gradient(rgba(248,250,252,.94),rgba(248,250,252,.94)),none}
.side{background:var(--oc-sidebar)!important;color:#f8fafc!important;border-right:1px solid var(--oc-sidebar-border);box-shadow:2px 0 12px rgba(15,23,42,.04)}
.brand{background:transparent!important;border-radius:0!important;border-bottom:1px solid #ffffff18;padding:12px 10px 20px!important;margin-bottom:14px!important}
.brand-logo-box{border:1px solid #e2e8f0;border-radius:10px;margin:8px 2px 16px;padding:8px;background:#fff}
.nav a,.nav button{color:#cbd5e1!important;border-radius:8px!important;margin:2px 0!important;padding:10px 12px!important;font-size:13px!important;transition:background .15s ease,color .15s ease,border-color .15s ease}
.nav a:hover,.nav button:hover{background:#1e293b!important;color:#fff!important}
.nav a.active,.nav a[aria-current="page"]{background:#1e293b!important;color:#fff!important;box-shadow:inset 3px 0 0 #38bdf8!important;font-weight:650}
.backup-note{border-color:#ffffff18;color:#cbd5e1}
.main{padding:26px 30px!important;background:rgba(248,250,252,.7)!important;max-width:none!important}
.top{background:#fff;border:1px solid var(--oc-border);border-radius:var(--oc-radius);padding:14px 18px;margin-bottom:22px;box-shadow:var(--oc-shadow);gap:12px}
.user{color:var(--oc-muted);font-size:13px}
.card,.form,.modal-card,.data-card{border:1px solid var(--oc-border)!important;border-radius:var(--oc-radius)!important;box-shadow:var(--oc-shadow)!important}
.card{padding:18px!important}
.table-wrap{border:1px solid var(--oc-border);border-radius:var(--oc-radius);box-shadow:var(--oc-shadow)}
.table{border:0!important;border-radius:var(--oc-radius)!important}
.table th{background:#f8fafc!important;color:#64748b!important;font-size:11px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.045em;border-bottom:1px solid var(--oc-border)!important;padding:12px 14px!important}
.table td{background:#fff!important;color:#1e293b!important;border-bottom:1px solid #e2e8f0!important;padding:12px 14px!important}
.table tr:hover td{background:#f8fafc!important}
.btn{background:var(--oc-primary)!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(15,23,42,.06);transition:background .15s ease,transform .15s ease}
.btn:hover{background:var(--oc-primary-hover)!important;transform:translateY(-1px)}
.btn.secondary{background:#f1f5f9!important;color:#334155!important;border:1px solid #e2e8f0!important}
.field input,.field select,.field textarea,input,select,textarea{border-color:#cbd5e1;border-radius:8px}
.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{outline:2px solid #98f3f8;outline-offset:1px;border-color:#2fd8e1}
.modal-card{box-shadow:0 20px 60px rgba(15,23,42,.18)!important}
/* Não substitui o layout mobile aprovado: mantém cabeçalho/tema verde-azulado e acessos em telas pequenas. */
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
 .side{background:linear-gradient(180deg,#087f80 0%,#075e6b 100%)!important;border-right:0;box-shadow:none}
 .main{padding:14px!important;background:transparent!important}
 .top{padding:12px;border-radius:12px;margin-bottom:16px}
 .grid{gap:10px}
 .card{padding:14px!important}
 .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}



/* V96 • layout fiel ao conceito Clean + Clínico */
:root{--v96-blue:#073b66;--v96-blue2:#0a567a;--v96-teal:#11aeb2;--v96-teal2:#087f8c;--v96-ink:#102f4f;--v96-muted:#6c8195;--v96-line:#dfe9ef;--v96-bg:#f5f9fc;--v96-card:#fff;--v96-shadow:0 8px 28px rgba(16,47,79,.07)}
html[data-theme="dark"]{--v96-blue:#061c2f;--v96-blue2:#0b344b;--v96-teal:#20c4c1;--v96-teal2:#1299a0;--v96-ink:#e8f3f8;--v96-muted:#9cb3c2;--v96-line:#234052;--v96-bg:#071521;--v96-card:#0d2232;--v96-shadow:0 10px 30px rgba(0,0,0,.24)}
body{background:var(--v96-bg)!important;color:var(--v96-ink)!important;font-family:Inter,Segoe UI,Arial,sans-serif}
.app-bg{opacity:.10!important;filter:blur(9px)!important}
html[data-theme="dark"] .app-bg{opacity:.07!important}
.side{width:224px!important;padding:16px 12px 14px!important;background:linear-gradient(180deg,var(--v96-blue) 0%,#07475e 100%)!important;box-shadow:7px 0 24px rgba(5,34,54,.10)!important;border-right:1px solid rgba(255,255,255,.08)}
.main{margin-left:224px!important;padding:25px 32px 38px!important;max-width:none!important;background:transparent!important}
.brand{padding:10px 10px 12px!important;margin:0 0 12px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:15px!important}
.brand-logo-box{padding:6px 9px!important;border-radius:11px!important;margin-bottom:8px!important}.brand-logo{width:180px!important;max-height:74px!important}.brand-subtitle{font-size:11px;font-weight:800;color:#dff8fb;margin:0 4px}.brand-unit{font-size:10px;color:#b9d4df;margin:4px 4px 0}
.nav{display:flex;flex-direction:column;gap:2px}.nav-item,.nav-group>summary{min-height:40px!important;border-radius:10px!important;padding:9px 10px!important;margin:0!important;color:#e9f8fb!important;font-size:13px!important;font-weight:650!important;display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;cursor:pointer;transition:background .14s ease,transform .14s ease}.nav-item:hover,.nav-group>summary:hover{background:rgba(35,205,203,.13)!important;transform:none!important}.nav-item.active{background:linear-gradient(90deg,#10aeb3,#0789a0)!important;color:#fff!important;box-shadow:0 5px 14px rgba(14,180,182,.18)!important}.nav-ico{width:20px;min-width:20px;text-align:center;font-size:16px;line-height:1;color:#d9f9fa}.nav-group{border:0;margin:0}.nav-group>summary{list-style:none}.nav-group>summary::-webkit-details-marker{display:none}.nav-group[open]>summary{background:rgba(35,205,203,.08)}.nav-chevron{margin-left:auto;font-size:13px;opacity:.72;transition:transform .15s}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-submenu{margin:1px 0 4px 29px;padding-left:10px;border-left:1px solid rgba(255,255,255,.16);display:flex;flex-direction:column;gap:1px}.nav-subitem{display:flex;align-items:center;gap:8px;color:#c9e0e8;text-decoration:none;font-size:12px;padding:7px 8px;border-radius:8px}.nav-subitem:hover{background:rgba(35,205,203,.10);color:#fff}.nav-subitem.active{background:rgba(35,205,203,.16);color:#fff;font-weight:800}.sub-dot{width:5px;height:5px;border-radius:50%;background:#6bcdd0}.nav-button{border:0;background:transparent;width:100%;font:inherit;text-align:left}.nav-exit{margin-top:4px!important;border-top:1px solid rgba(255,255,255,.10);border-radius:0!important;padding-top:12px!important}.side-footer{margin-top:14px;padding:9px 9px;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.055);display:flex;align-items:center;gap:8px;color:#fff;font-size:11px}.side-footer-icon{width:31px;height:31px;border-radius:9px;background:#13afb2;display:grid;place-items:center;font-weight:900}.side-footer small{display:block;color:#b9d4df;font-size:9px;margin-top:2px}.side-footer-gear{margin-left:auto;opacity:.75}
.top{margin-bottom:18px!important;padding:0!important;align-items:center!important}.top h2{font-size:25px!important;line-height:1.1!important;margin:0!important}.top-heading{min-width:0}.top-subtitle{margin:5px 0 0;font-size:13px;color:var(--v96-muted)}.dashboard-main .top h2{font-size:27px!important;font-weight:850!important;letter-spacing:-.03em!important}.top-actions{gap:8px!important}.theme-toggle{border:1px solid var(--v96-line)!important;background:var(--v96-card)!important;color:var(--v96-ink)!important;border-radius:999px!important;box-shadow:0 3px 10px rgba(16,47,79,.05)!important;padding:8px 11px!important}.user{border:1px solid var(--v96-line)!important;background:var(--v96-card)!important;color:var(--v96-muted)!important;border-radius:12px!important;padding:6px 10px!important;box-shadow:0 3px 10px rgba(16,47,79,.04)!important}.unit-badge,.role-badge{border:0!important}.unit-badge{background:#eef5f8!important;color:#60798b!important}.role-badge{background:#e8f7f7!important;color:#087f8c!important}
.card,.form,.table-wrap,.table{border-color:var(--v96-line)!important;background:var(--v96-card)!important;box-shadow:var(--v96-shadow)!important}.muted{color:var(--v96-muted)!important}.section{margin-top:18px!important}.btn{background:linear-gradient(90deg,#087f8c,#0ea5a8)!important;border-radius:9px!important}.btn.secondary{background:#edf4f7!important;color:#24475d!important}html[data-theme="dark"] .btn.secondary{background:#132e3f!important;color:#d9edf3!important}.table th{background:#f0f7fa!important;color:#173b57!important}html[data-theme="dark"] .table th{background:#122d3e!important;color:#dbeef4!important}.table td{border-color:var(--v96-line)!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.side{width:auto!important}.main{margin:0!important;padding:16px!important}.top-actions{width:auto!important}}

.nav-group{margin:3px 8px}.nav-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--v96-ink);font-weight:800;font-size:13px}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:hover{background:rgba(10,157,164,.08)}.nav-group[open]>summary{background:rgba(10,157,164,.06)}.nav-group .nav-chevron{margin-left:auto;font-size:12px;transition:transform .15s}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-submenu{padding:2px 0 5px 31px;display:flex;flex-direction:column;gap:2px}.nav-subitem{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;text-decoration:none;color:var(--v96-muted);font-size:12px;font-weight:700}.nav-subitem:hover,.nav-subitem.active{background:rgba(10,157,164,.10);color:#087f8c}.sub-dot{width:18px;height:18px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:900}.entry-dot{background:#e2f7f0;color:#11966b}.exit-dot{background:#ffe9ed;color:#dc4050}
html[data-theme="dark"] .nav-group>summary{color:#e5f0f5}html[data-theme="dark"] .nav-group[open]>summary{background:rgba(95,211,211,.08)}html[data-theme="dark"] .nav-subitem{color:#a9c0cc}html[data-theme="dark"] .nav-subitem:hover,html[data-theme="dark"] .nav-subitem.active{color:#9fe9e5;background:#12384a}


:root{
 --brand-blue:#188086;--brand-blue2:#10a6ae;--brand-cyan:#10a9c5;--brand-green:#21b66f;--brand-red:#ef4355;--brand-yellow:#f4b83f;
 --v98-bg:#f4f9fc;--v98-surface:#ffffff;--v98-text:#15345b;--v98-muted:#6f8296;--v98-line:#dce8f0;--v98-shadow:0 12px 34px rgba(20,61,96,.09);
}
html[data-theme="dark"]{
 --v98-bg:#061321;--v98-surface:#0b1d2d;--v98-text:#edf8ff;--v98-muted:#9db3c3;--v98-line:#1d3a4e;--v98-shadow:0 16px 42px rgba(0,0,0,.30);
}
body{background:var(--v98-bg)!important;color:var(--v98-text)!important}
.app-bg{opacity:.055!important;filter:blur(12px)!important}
.side{width:238px!important;background:linear-gradient(180deg,#0b3564 0%,#073d68 48%,#07566c 100%)!important;padding:15px 12px!important;box-shadow:10px 0 30px rgba(3,35,61,.16)!important}
.brand{background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.045))!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:18px!important;padding:10px!important;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.brand-logo-box{border-radius:14px!important;padding:7px 9px!important;position:relative;overflow:hidden}.brand-logo-box:after{content:'';position:absolute;right:-22px;bottom:-32px;width:90px;height:90px;border-radius:50%;background:linear-gradient(135deg,#ef4355,#21b66f);opacity:.12}.brand-logo{width:190px!important;max-height:78px!important;object-fit:contain}.brand-subtitle{font-size:11px!important;font-weight:850!important;color:#fff!important;letter-spacing:.2px}.brand-unit{font-size:10px!important;color:#cbe4ef!important}
.nav-item,.nav-group>summary{border-radius:12px!important;padding:10px 11px!important;min-height:42px!important;font-weight:700!important}.nav-item:hover,.nav-group>summary:hover{background:rgba(255,255,255,.10)!important;transform:translateX(2px)!important}.nav-item.active{background:linear-gradient(90deg,#1ecad3,#08a6c0)!important;box-shadow:0 8px 20px rgba(5,144,202,.24)!important}.nav-ico{color:#e9fbff!important}.nav-subitem{border-radius:9px!important}.nav-subitem.active{background:rgba(16,180,197,.18)!important}
.side-footer{background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04))!important;border-radius:14px!important}.side-footer-icon{background:linear-gradient(135deg,#ef4355,#10a9c5)!important}
.main{margin-left:238px!important;padding:24px 30px 42px!important;background:transparent!important}
.top{padding:0 2px 2px!important;margin-bottom:17px!important}.top h2{font-size:26px!important;color:var(--v98-text)!important}.top-subtitle{color:var(--v98-muted)!important}.top-actions input{background:var(--v98-surface)!important;color:var(--v98-text)!important;border-color:var(--v98-line)!important}.theme-toggle{background:var(--v98-surface)!important;color:var(--v98-text)!important;border-color:var(--v98-line)!important}.user{background:var(--v98-surface)!important;color:var(--v98-muted)!important;border-color:var(--v98-line)!important}
.card,.dash-panel,.dash-kpi,.quick-card,.form,.table{background:var(--v98-surface)!important;border-color:var(--v98-line)!important;box-shadow:var(--v98-shadow)!important;color:var(--v98-text)!important}
.dashboard-hero{position:relative;min-height:188px;border-radius:24px;overflow:hidden;margin:0 0 16px;border:1px solid rgba(255,255,255,.65);box-shadow:0 16px 40px rgba(20,70,110,.12);background:linear-gradient(105deg,#ffffff 0%,#f1fbff 55%,#d9f3f7 100%)}
.dashboard-hero:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 8% 20%,rgba(33,182,111,.13),transparent 26%),radial-gradient(circle at 84% 10%,rgba(18,63,140,.15),transparent 32%)}
.dashboard-hero:after{content:'';position:absolute;right:0;top:0;bottom:0;width:43%;background-image:linear-gradient(90deg,#f1fbff 0%,rgba(241,251,255,.35) 22%,rgba(241,251,255,.03) 62%),url('/static/dental-hero-clean2.jpg');background-size:cover;background-position:center;opacity:.98}
.hero-copy{position:relative;z-index:2;width:64%;padding:25px 28px}.hero-brandline{display:flex;align-items:center;gap:12px}.hero-brandline img{width:165px;max-height:54px;object-fit:contain}.hero-eyebrow{font-size:10px;font-weight:900;color:var(--brand-blue);text-transform:uppercase;letter-spacing:.14em;margin-bottom:7px}.hero-copy h1{margin:4px 0 5px;font-size:28px;line-height:1.05;color:#188086;letter-spacing:-.035em}.hero-copy p{margin:0;color:#55728b;font-size:12px;max-width:520px}.hero-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}.hero-chip{background:#fff;border:1px solid #dbeaf2;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800;color:#315674;box-shadow:0 5px 12px rgba(24,72,110,.05)}.hero-chip.green{color:#128858;background:#edfbf4}.hero-chip.red{color:#d73549;background:#fff0f2}.hero-chip.blue{color:#1aa5ac;background:#effdfe}
.dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}.dash-kpi{min-height:96px!important;border-radius:18px!important;padding:14px 15px!important}.kpi-icon{width:42px!important;height:42px!important;border-radius:13px!important}.kpi-products{border-top:3px solid #21dbe5!important}.kpi-stock{border-top:3px solid #21b66f!important}.kpi-low{border-top:3px solid #f4b83f!important}.kpi-zero{border-top:3px solid #ef4355!important}.kpi-kits{border-top:3px solid #67ced3!important}.kpi-copy strong{font-size:27px!important}.kpi-copy small{font-size:10px!important}
.dashboard-main-grid{gap:14px!important}.dash-panel{border-radius:18px!important;padding:16px!important}.panel-head h3{font-size:15px!important;color:var(--v98-text)}.mini-table th{background:#f1f7fb!important;color:#57718a!important}.movement-pill.in{background:#e7f9ef!important;color:#148a58!important}.movement-pill.out{background:#fff0f2!important;color:#d43a4d!important}
.quick-card{border-radius:15px!important}.quick-card:hover{border-color:#8ecddd!important;box-shadow:0 12px 26px rgba(17,116,155,.10)!important}.quick-icon{border-radius:12px!important}
.usage-active{background:linear-gradient(135deg,#1d868c,#087f8c)!important;color:#fff!important}.btn{background:linear-gradient(135deg,#188086,#087f8c)!important}.btn:hover{background:linear-gradient(135deg,#126a6f,#066e78)!important}
html[data-theme="dark"] body{background:var(--v98-bg)!important}.dark .dashboard-hero{}
html[data-theme="dark"] .dashboard-hero{background:linear-gradient(105deg,#0a1e30,#0b293b)!important;border-color:#214257!important}.dashboard-hero:after{opacity:.9}html[data-theme="dark"] .dashboard-hero:after{background-image:linear-gradient(90deg,#0a1e30 0%,rgba(10,30,48,.45) 28%,rgba(10,30,48,.05) 68%),url('/static/dental-hero-clean2.jpg');mix-blend-mode:screen;opacity:.32}.hero-copy h1{color:#188086}html[data-theme="dark"] .hero-copy h1{color:#f2fbff}.hero-copy p{color:#5d7588}html[data-theme="dark"] .hero-copy p{color:#b1c8d7}.hero-chip{background:rgba(255,255,255,.82)}html[data-theme="dark"] .hero-chip{background:#112b3d;border-color:#24465b;color:#cfe2ed}.hero-chip.green{color:#128858}html[data-theme="dark"] .hero-chip.green{background:#0d3025;color:#8de2b8}.hero-chip.red{color:#d73549}html[data-theme="dark"] .hero-chip.red{background:#351a23;color:#ff9daa}.hero-chip.blue{color:#1aa5ac}html[data-theme="dark"] .hero-chip.blue{background:#102a45;color:#95f4f9}
html[data-theme="dark"] .mini-table th{background:#112b3c!important;color:#aac3d2!important}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)!important}.hero-copy{width:75%}.dashboard-hero:after{width:48%}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.side{width:auto!important}.main{margin-left:0!important;padding:16px!important}.dashboard-kpis{grid-template-columns:1fr 1fr!important}.dashboard-hero{min-height:230px}.dashboard-hero:after{width:100%;height:105px;top:auto;opacity:.28}.hero-copy{width:100%;padding:20px}.hero-copy h1{font-size:23px}.hero-brandline img{width:145px}.hero-chips{margin-top:12px}}

/* V98 EXACT ODIHUB REFERENCE: dashboard visual layer */
:root{--sr-blue:#1dd8e2;--sr-blue2:#21dbe5;--sr-navy:#188086;--sr-green:#16b879;--sr-red:#f23f4f;--sr-yellow:#f6b52e;--sr-purple:#58d2d9;--sr-bg:#f6fefe;--sr-line:#dfeaf3;--sr-text:#19696d;--sr-muted:#6d8298}
html[data-theme="dark"]{--sr-bg:#071a29;--sr-line:#214157;--sr-text:#eaf7ff;--sr-muted:#a6bfce}
.dashboard-main .top-heading{display:none!important}.dashboard-main .top{justify-content:flex-end;margin-bottom:10px!important}.dashboard-main .top-actions{width:100%;justify-content:flex-end}.dashboard-main .top-actions form{flex:1;max-width:790px}.dashboard-main .top-actions form input{width:100%!important;height:42px!important;border-radius:13px!important;padding:10px 15px!important;background:#fff!important;border:1px solid #d9e7f1!important;box-shadow:0 4px 15px rgba(20,72,120,.05)}.dashboard-main .top-actions form button{display:none}.dashboard-main .theme-toggle{height:42px!important;border-radius:13px!important;background:#fff!important;color:#19696d!important;border:1px solid #d9e7f1!important}.dashboard-main .user{height:42px!important;border-radius:13px!important;background:#fff!important;border:1px solid #d9e7f1!important;color:#5f7690!important;padding:5px 11px!important}
html[data-theme="dark"] .dashboard-main .top-actions form input,html[data-theme="dark"] .dashboard-main .theme-toggle,html[data-theme="dark"] .dashboard-main .user{background:#0d2638!important;border-color:#24465c!important;color:#eef8ff!important}
.side{background:#fff!important;color:#188086!important;border-right:1px solid #e1ebf3!important;box-shadow:4px 0 20px rgba(18,63,140,.05)!important}.brand{background:#fff!important;border:0!important;padding:8px 8px 18px!important;margin-bottom:10px!important}.brand-logo-box{border:0!important;box-shadow:none!important;padding:0!important;background:#fff!important}.brand-logo{width:190px!important;max-height:78px!important}.brand-subtitle,.brand-unit{display:none!important}.nav-item,.nav-group>summary{color:#19696d!important;background:transparent!important;border-radius:11px!important;font-weight:700!important;padding:11px 12px!important;margin:4px 0!important}.nav-item:hover,.nav-group>summary:hover{background:#effdfe!important;transform:none!important}.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-ico{color:inherit!important}.nav-subitem{color:#6a8098!important}.nav-subitem:hover,.nav-subitem.active{background:#eefdfe!important;color:#1dd8e2!important}.side-footer{background:#f4fcfc!important;border:1px solid #deebf4!important;color:#19696d!important}.side-footer small{color:#71869b!important}.side-footer-icon{background:linear-gradient(135deg,#1dd8e2,#16b879)!important}
.sr-dashboard{width:100%;max-width:1280px;margin:0 auto;padding-bottom:20px}.sr-hero{height:247px;width:100%;border-radius:18px;background:linear-gradient(120deg,#087f80,#10b9a5);box-shadow:0 10px 30px rgba(18,63,140,.10);border:1px solid #dcebf5;margin-bottom:12px}.sr-action-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:12px}.sr-action{min-height:82px;border:1px solid var(--sr-line);background:#fff;border-radius:15px;display:flex;align-items:center;gap:12px;padding:13px 15px;text-decoration:none;color:var(--sr-text);box-shadow:0 6px 20px rgba(18,63,140,.055);transition:.16s}.sr-action:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(18,63,140,.10)}.sr-action-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:900}.sr-action b{display:block;font-size:15px}.sr-action small{display:block;color:var(--sr-muted);font-size:11px;margin-top:2px}.action-green .sr-action-icon{background:#dff7e9;color:#15a96d}.action-red .sr-action-icon{background:#ffe1e5;color:#ef3e4e}.action-blue .sr-action-icon{background:#e3fcfe;color:#1dd8e2}.action-purple .sr-action-icon{background:#e9fdfe;color:#58d2d9}.action-cobalt .sr-action-icon{background:#e4fcfe;color:#21dbe5}
.sr-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.sr-kpi{min-height:88px;background:#fff;border:1px solid var(--sr-line);border-radius:15px;padding:13px 15px;display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--sr-text);box-shadow:0 6px 20px rgba(18,63,140,.05)}.sr-kpi>div{min-width:0}.sr-kpi strong{display:block;font-size:21px;line-height:1.05;color:var(--sr-text)}.sr-kpi small{display:block;color:var(--sr-muted);font-size:10px;font-weight:700;margin-top:4px}.sr-kpi em{display:block;color:#15a96d;font-style:normal;font-size:9px;font-weight:800;margin-top:4px}.sr-kpi>b{margin-left:auto;color:#1dd8e2;font-size:22px}.sr-kpi-icon{width:43px;height:43px;min-width:43px;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:900}.sr-kpi-icon.green{background:#dff7e9;color:#16b879}.sr-kpi-icon.blue{background:#e3fcfe;color:#1dd8e2}.sr-kpi-icon.red{background:#ffe1e5;color:#f23f4f}.sr-kpi-icon.yellow{background:#fff0ca;color:#e6a20d}.sr-kpi .red-number{color:#ef3348}.sr-kpi .yellow-number{color:#e9a30a}
.sr-grid-top{display:grid;grid-template-columns:1.05fr 1.08fr .72fr;gap:12px;margin-bottom:12px}.sr-grid-bottom{display:grid;grid-template-columns:1.55fr 1fr;gap:12px;margin-bottom:12px}.sr-panel{background:#fff;border:1px solid var(--sr-line);border-radius:15px;padding:15px;box-shadow:0 6px 20px rgba(18,63,140,.05);min-width:0}.sr-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.sr-panel-head h3{margin:0;color:var(--sr-text);font-size:16px}.sr-panel-head a{color:#1dd8e2;text-decoration:none;font-size:10px;font-weight:850;white-space:nowrap}.sr-filter{border:1px solid #dce8f2;border-radius:9px;padding:7px 9px;font-size:10px;color:#45617f;background:#fff}.sr-alert-list{display:flex;flex-direction:column;gap:8px}.sr-alert{display:flex;align-items:center;gap:10px;border-radius:11px;padding:10px 11px}.sr-alert>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:16px}.sr-alert div{min-width:0}.sr-alert strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-alert small{display:block;font-size:9px;margin-top:3px}.alert-danger{background:#fff0f2;color:#d93245}.alert-danger>span{background:#ffd8de}.alert-warning{background:#fff7df;color:#a66e00}.alert-warning>span{background:#ffe6a7}.alert-ok{background:#eaf9f1;color:#148a58}.alert-ok>span{background:#d5f3e4}.sr-donut-row{display:flex;align-items:center;justify-content:center;gap:20px;min-height:165px}.sr-donut-wrap{width:150px;height:150px;position:relative;flex:none}.sr-donut{width:150px;height:150px;border-radius:50%;position:relative}.sr-donut:after{content:"";position:absolute;inset:31px;border-radius:50%;background:#fff}.sr-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;pointer-events:none}.sr-donut-center strong{font-size:24px;color:var(--sr-text)}.sr-donut-center span{font-size:9px;color:var(--sr-muted);font-weight:800}.sr-legend{display:flex;flex-direction:column;gap:10px;min-width:130px}.sr-legend div{display:grid;grid-template-columns:9px 1fr auto;gap:7px;align-items:center;font-size:9px}.sr-legend i{width:8px;height:8px;border-radius:50%}.sr-legend span{color:#617892;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-legend b{color:#274a73}.sr-quick-list{display:flex;flex-direction:column;gap:7px}.sr-quick-list a{display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid #e2ebf3;border-radius:9px;background:#f9feff;color:#27686b;text-decoration:none;font-size:10px;font-weight:750}.sr-quick-list a:hover{background:#eefdfe}.sr-quick-list i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-size:15px;font-weight:900}.sr-quick-list b{margin-left:auto;color:#1dd8e2}.q-blue{background:#e3fcfe;color:#1dd8e2}.q-green{background:#ddf7e8;color:#16a96b}.q-red{background:#ffe1e5;color:#ef3f4f}.q-purple{background:#e8fdfe;color:#58d2d9}.sr-table{width:100%;border-collapse:collapse}.sr-table th,.sr-table td{padding:10px 8px;border-bottom:1px solid #e7eef4;text-align:left;font-size:10px;color:#29496d;white-space:nowrap}.sr-table th{background:#f2f7fb;color:#607891;font-size:9px}.sr-pill{padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850}.sr-pill.in{background:#dff7e9;color:#15915b}.sr-pill.out{background:#ffe1e5;color:#dc3f4e}.sr-empty{text-align:center;color:#7890a6;padding:25px!important}.sr-chart-toggle{display:flex;gap:22px;font-size:10px;color:#58708c;margin:2px 0 7px}.sr-chart-toggle .active{color:#1dd8e2;font-weight:850}.sr-linechart{height:230px;display:flex;position:relative}.sr-y{width:36px;display:flex;flex-direction:column;justify-content:space-between;padding:5px 0 22px;color:#6d8298;font-size:8px}.sr-chart-area{position:relative;flex:1}.sr-gridlines{position:absolute;inset:5px 0 25px;display:flex;flex-direction:column;justify-content:space-between}.sr-gridlines i{border-top:1px solid #e7eef4}.sr-bars{position:absolute;inset:5px 0 0;display:flex;align-items:flex-end;justify-content:space-around}.sr-bar-col{height:100%;width:14%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.sr-bar{width:45%;min-height:5px;background:#21dbe5;border-radius:6px 6px 0 0;opacity:.9}.sr-bar-col span{font-size:9px;color:#71869b;margin-top:4px}.sr-line{position:absolute;inset:0 0 20px;width:100%;height:calc(100% - 20px);pointer-events:none}.sr-products-used{margin-bottom:12px}.sr-product-rank{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.sr-rank-card{border:1px solid #e2ebf3;border-radius:11px;background:#fff;padding:9px;display:flex;align-items:center;gap:8px;min-width:0}.rank-num{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f1f6fb;color:#1dd8e2;font-weight:900;font-size:10px}.rank-photo{width:36px;height:36px;border-radius:9px;background:#f1f6fb;display:grid;place-items:center;font-size:19px}.sr-rank-card div{min-width:0}.sr-rank-card strong{display:block;font-size:10px;color:#27686b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-rank-card small{display:block;font-size:11px;color:#1dd8e2;font-weight:850;margin-top:3px}.sr-help{display:flex;align-items:center;gap:10px;background:#f2fbfb;border:1px solid #dceaf4;border-radius:13px;padding:10px 13px;width:280px}.sr-help-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e3fcfe;color:#1dd8e2;font-size:17px}.sr-help strong{display:block;color:#226a6e;font-size:11px}.sr-help small{display:block;color:#7890a6;font-size:9px;margin-top:2px}.sr-help a{margin-left:auto;color:#1dd8e2;text-decoration:none;font-size:9px;font-weight:850}
html[data-theme="dark"] .sr-hero{border-color:#23475c}.sr-action,html[data-theme="dark"] .sr-kpi,html[data-theme="dark"] .sr-panel,html[data-theme="dark"] .sr-rank-card{background:#0d2436;border-color:#24465b;color:#eef8ff}.sr-action b,html[data-theme="dark"] .sr-panel-head h3,html[data-theme="dark"] .sr-kpi strong,html[data-theme="dark"] .sr-rank-card strong{color:#eef8ff}.sr-action small,html[data-theme="dark"] .sr-kpi small,html[data-theme="dark"] .sr-panel p,html[data-theme="dark"] .sr-legend span{color:#9db7c7}.sr-donut:after{background:#fff}html[data-theme="dark"] .sr-donut:after{background:#0d2436}html[data-theme="dark"] .sr-filter,html[data-theme="dark"] .sr-quick-list a{background:#102c40;border-color:#24465b;color:#dceefa}html[data-theme="dark"] .sr-table th{background:#122f42;color:#b6cbd8}.sr-table td{color:#cfe0ea}html[data-theme="dark"] .sr-gridlines i{border-color:#24465b}html[data-theme="dark"] .sr-help{background:#102b3e;border-color:#25485d}html[data-theme="dark"] .sr-help strong{color:#eef8ff}html[data-theme="dark"] .sr-help small{color:#9db7c7}
@media(max-width:1150px){.sr-action-row{grid-template-columns:repeat(3,1fr)}.sr-kpi-row{grid-template-columns:repeat(2,1fr)}.sr-grid-top{grid-template-columns:1fr 1fr}.sr-quick{grid-column:span 2}.sr-grid-bottom{grid-template-columns:1fr}.sr-product-rank{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.dashboard-main .top-actions form{max-width:none}.sr-action-row,.sr-kpi-row,.sr-grid-top,.sr-grid-bottom,.sr-product-rank{grid-template-columns:1fr}.sr-quick{grid-column:auto}.sr-hero{height:210px;background-position:center}.sr-donut-row{flex-direction:column}.sr-help{width:100%}}



.nav-subitem.nav-button{border:0!important;background:transparent!important;width:100%!important;text-align:left!important;font:inherit!important;cursor:pointer!important}.nav-subitem .sub-dot{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:6px;background:#eefdfe;color:#21d4de;font-size:11px}.nav-subitem.entry-dot{background:#e2f7f0!important;color:#11966b!important}.nav-subitem.exit-dot{background:#ffe9ed!important;color:#dc4050!important}.nav-group[open]>summary{background:#effdfe!important}.nav-group[open]>summary .nav-ico{color:#21d4de!important}
html[data-theme="dark"] .nav-group[open]>summary{background:#102d40!important}.nav-subitem.nav-button:hover{background:#eefdfe!important;color:#1dd8e2!important}


/* V100: faithful OdiHub dashboard layout and color system */
.dashboard-main .top-heading{display:block!important;flex:1;min-width:300px!important}.dashboard-main .top{justify-content:space-between!important;align-items:center!important;margin-bottom:12px!important}.dashboard-main .top h2{font-size:27px!important;font-weight:850!important;color:#188086!important;margin:0!important}.dashboard-main .top-subtitle{display:block!important;color:#6d8298!important;font-size:13px!important;margin-top:5px!important}.dashboard-main .top-actions{width:auto!important;flex:1;max-width:790px;justify-content:flex-end!important}.dashboard-main .top-actions form{max-width:520px!important;flex:1!important}
.sr-action-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}.sr-action{background:#fff!important;color:#19696d!important;border:1px solid #dfeaf3!important;box-shadow:0 7px 22px rgba(18,63,140,.07)!important}.sr-action b{color:#19696d!important}.sr-action small{color:#71869b!important}.sr-action-icon{box-shadow:none!important}.action-green .sr-action-icon{background:#dff7e9!important;color:#16b879!important}.action-red .sr-action-icon{background:#ffe1e5!important;color:#f23f4f!important}.action-blue .sr-action-icon{background:#e3fcfe!important;color:#1dd8e2!important}.action-purple .sr-action-icon{background:#e9fdfe!important;color:#58d2d9!important}.action-cobalt .sr-action-icon{background:#e4fcfe!important;color:#21dbe5!important}
.sr-kpi-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}.sr-kpi-icon.purple{background:#e9fdfe!important;color:#58d2d9!important}.sr-kpi .purple-number{color:#58d2d9!important}
.sr-grid-middle{display:grid;grid-template-columns:1.05fr 1.08fr .72fr;gap:12px;margin-bottom:12px}.sr-grid-lower{display:grid;grid-template-columns:1.55fr 1fr;gap:12px;margin-bottom:12px}.sr-grid-middle .sr-panel,.sr-grid-lower .sr-panel{min-width:0}
.sr-category{grid-column:auto}.sr-movements{grid-column:auto}.sr-consumption{grid-column:auto}.sr-alerts{grid-column:auto}.sr-quick{grid-column:auto}
.sr-table th{color:#4d6987!important;background:#eef5fa!important;font-weight:850!important}.sr-table td{color:#274a73!important;font-weight:650!important;opacity:1!important}.sr-table tbody tr:hover td{color:#19696d!important}.sr-table td:first-child{color:#58718b!important}.sr-table td:nth-child(2){color:#226a6e!important;font-weight:800!important}.sr-table td:last-child{color:#58718b!important}.sr-pill.in{background:#dff7e9!important;color:#138a58!important}.sr-pill.out{background:#ffe1e5!important;color:#d83c4d!important}
.sr-linechart{height:235px!important}.sr-chart-tooltip{display:none;position:absolute;z-index:50;background:#188086;color:#fff;border-radius:9px;padding:8px 10px;font-size:10px;line-height:1.35;font-weight:750;white-space:nowrap;box-shadow:0 10px 26px rgba(18,63,140,.25);pointer-events:none}.sr-line circle{pointer-events:auto!important;cursor:pointer}.sr-bar-col{cursor:pointer}
@media(max-width:1150px){.dashboard-main .top-heading{min-width:220px!important}.sr-action-row{grid-template-columns:repeat(3,1fr)!important}.sr-kpi-row{grid-template-columns:repeat(3,1fr)!important}.sr-grid-middle,.sr-grid-lower{grid-template-columns:1fr 1fr}.sr-consumption{grid-column:span 2}.sr-quick{grid-column:auto}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.dashboard-main .top{display:block!important}.dashboard-main .top-heading{min-width:0!important;margin-bottom:10px}.dashboard-main .top-actions{max-width:none!important}.sr-action-row,.sr-kpi-row,.sr-grid-middle,.sr-grid-lower{grid-template-columns:1fr!important}.sr-consumption{grid-column:auto}.sr-hero{height:210px!important}}


/* V103: dashboard layout + movement table definitive fix */
.sr-grid-two{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
.sr-movements{min-width:0!important;overflow:hidden!important}
.sr-movements-table-wrap{width:100%!important;overflow:hidden!important}
.sr-movements .sr-table{width:100%!important;table-layout:fixed!important}
.sr-movements .sr-table .col-date{width:18%!important}
.sr-movements .sr-table .col-product{width:38%!important}
.sr-movements .sr-table .col-type{width:14%!important}
.sr-movements .sr-table .col-qty{width:10%!important;text-align:center!important}
.sr-movements .sr-table .col-user{width:19%!important}
.sr-movements .sr-table td,.sr-movements .sr-table th{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:0!important}
.sr-movements .sr-table td{color:#1d6a6e!important;font-weight:650!important;opacity:1!important}
.sr-movements .sr-table th{color:#45627f!important;font-weight:850!important}
.sr-movements .sr-table td:nth-child(2){color:#1c696d!important;font-weight:400!important}
.sr-movements .sr-table td:last-child{color:#45627f!important}
@media(max-width:1150px){.sr-grid-two{grid-template-columns:1fr 1fr!important}}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.sr-grid-two{grid-template-columns:1fr!important}}
.sr-help{margin-bottom:18px!important}

.sr-help{display:flex;align-items:center;gap:12px;background:#f5fefe;border:1px solid #ddf4f6;border-radius:14px;padding:12px 14px;margin:12px 0 4px;box-shadow:0 5px 16px rgba(18,63,140,.04)}
.sr-help-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e4fcfe;color:#1dd8e2;font-weight:900;flex:none}
.sr-help>div:nth-child(2){min-width:0;flex:1}.sr-help strong{display:block;color:#1c696d;font-size:11px}.sr-help small{display:block;color:#6a8198;font-size:9px;margin-top:3px}
.sr-support-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:9px;background:#25d366;color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:850;white-space:nowrap;box-shadow:0 4px 12px rgba(37,211,102,.18)}
.sr-support-btn:hover{background:#1ebe5b!important;color:#fff!important}
@media(max-width:600px){.sr-help{align-items:flex-start;flex-wrap:wrap}.sr-support-btn{margin-left:48px}}

.global-greeting{font-size:24px;font-weight:900;line-height:1.05;color:#188086;letter-spacing:-.4px;margin-bottom:2px}.global-greeting + h2{margin-top:4px!important}.top-subtitle{margin-top:3px!important}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){.global-greeting{font-size:20px}}

.nav-group>summary{min-height:40px!important}.nav-submenu{padding-top:4px!important;padding-bottom:7px!important}.nav-subitem{min-height:34px!important}.nav-subitem .sub-dot{box-shadow:0 0 0 1px rgba(18,104,237,.05)}.nav-group[open]>summary{box-shadow:inset 3px 0 0 #21dbe5!important}.side-footer{margin-top:10px!important}


/* V109 • Home consistente, busca global funcional e cabeçalho simplificado */
.dashboard-main .top{display:grid!important;grid-template-columns:minmax(240px,auto) minmax(320px,1fr) auto auto!important;align-items:center!important;gap:12px!important}
.dashboard-main .top-heading{min-width:0!important;grid-column:1!important}
.dashboard-main .top-actions{display:contents!important}
.dashboard-main .global-search-form{grid-column:2!important;width:100%!important;max-width:none!important;min-width:0!important;flex:none!important;height:42px!important}
.dashboard-main .theme-toggle{grid-column:3!important;white-space:nowrap!important}
.dashboard-main .user{grid-column:4!important;white-space:nowrap!important}
.global-search-form{min-width:260px!important}
.global-search-form input{display:block!important}
.global-search-button{display:none!important}
.top-user-identity{display:flex;align-items:center;gap:7px;min-width:0}
.top-user-name{font-weight:800;color:var(--text)!important;white-space:nowrap}
.top-logout{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:8px 12px;border-radius:10px;background:#21d4de;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:12px;box-shadow:0 5px 14px rgba(23,105,232,.16)}
.top-logout:hover{background:#18b7c0!important;color:#fff!important}
/* Home ativa segue o mesmo padrão visual dos demais itens, sem faixa azul pesada. */
.nav a.nav-item.active{background:#effdfe!important;color:#1dd8e2!important;box-shadow:none!important}
.nav a.nav-item.active:hover{background:#e6fdfe!important;color:#1dd8e2!important}
html[data-theme="dark"] .nav a.nav-item.active{background:#102d40!important;color:#6af0f7!important;box-shadow:inset 3px 0 0 #21dbe5!important}
html[data-theme="dark"] .nav a.nav-item.active:hover{background:#14384d!important}
html[data-theme="dark"] .top-user-name{color:#eef8ff!important}
html[data-theme="dark"] .top-logout{background:#21d4de!important;color:#fff!important}
/* Busca global: mesma aparência e comportamento em todas as telas. */
.global-search-form{background:transparent!important}
.global-search-form input{cursor:text!important}
.global-search-form input:focus{outline:none!important}
/* Usuário não-ADM: a Home mostra as ações, sem o bloco redundante de orientação/atividades. */
.sr-dashboard-operational .sr-kpi-operational{margin-bottom:12px!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}.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;order:3!important}.dashboard-main .theme-toggle{order:4!important}.dashboard-main .user{order:5!important;max-width:100%!important;overflow:auto!important}.top-logout{margin-left:5px!important}}


.top{display:flex!important;align-items:flex-start!important;gap:22px!important;min-width:0!important}
.top-heading{flex:0 1 320px!important;min-width:250px!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}
.global-search-form{display:flex!important;align-items:center!important;gap:8px!important;position:relative!important;flex:1 1 520px!important;width:min(100%,540px)!important;max-width:540px!important;height:42px!important;margin:0!important}
.global-search-input-wrap{position:relative!important;flex:1 1 auto!important;min-width:0!important;height:42px!important}
.global-search-form .global-search-icon{position:absolute!important;left:13px!important;top:50%!important;transform:translateY(-50%)!important;font-size:18px!important;line-height:1!important;color:#1dd8e2!important;z-index:2!important;pointer-events:none!important}
.global-search-form input{display:block!important;width:100%!important;height:42px!important;box-sizing:border-box!important;padding:9px 14px 9px 38px!important;border:1px solid #d9e7f1!important;border-radius:12px!important;background:#fff!important;color:#19696d!important;outline:none!important;box-shadow:0 3px 12px 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,.10)!important}
.global-search-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:42px!important;padding:0 16px!important;border:1px solid #21d9e2!important;border-radius:11px!important;background:#21d9e2!important;color:#fff!important;font-weight:800!important;font-size:12px!important;cursor:pointer!important;box-shadow:0 3px 10px rgba(22,115,237,.16)!important;white-space:nowrap!important}
.global-search-button:hover{background:#19c2cb!important}
.top-actions>.user{flex:0 0 auto!important;max-width:330px!important;min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important}
.top-user-identity{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important}
.top-user-name{white-space:nowrap!important}
.unit-badge{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:150px!important}
.top-logout{white-space:nowrap!important}
@media(max-width:1050px){.top{gap:12px!important}.top-heading{flex:0 1 260px!important;min-width:220px!important}.global-search-form{max-width:460px!important}.top-actions>.user{max-width:290px!important}.unit-badge{max-width:110px!important}}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.top{flex-wrap:wrap!important}.top-heading{flex:1 1 100%!important;min-width:0!important}.top-actions{width:100%!important;justify-content:stretch!important}.global-search-form{max-width:none!important;flex:1 1 auto!important}.top-actions>.user{max-width:280px!important}}
html[data-theme="dark"] .global-search-form input{background:#102c40!important;color:#eef8ff!important;border-color:#2a5268!important;box-shadow:0 4px 14px rgba(0,0,0,.20)!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:#20d4de!important;border-color:#20d4de!important}
.appearance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.appearance-option{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface);cursor:pointer;transition:.15s ease;box-shadow:var(--shadow)}
.appearance-option:hover{border-color:#21dbe5;transform:translateY(-1px)}
.appearance-option.active{border:2px solid #21d9e2;padding:17px;box-shadow:0 8px 22px rgba(22,115,237,.10)}
.appearance-option .appearance-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#ebfdfe;font-size:22px;flex:0 0 auto}
.appearance-option strong{display:block;color:var(--text);margin-bottom:3px}.appearance-option span{color:var(--muted);font-size:13px}
@media(max-width:650px){.appearance-grid{grid-template-columns:1fr}}


/* V117: banner proporcional e busca global realmente digitavel em todas as telas. */
.sr-hero.sr-hero-unit{
  width:100%!important;
  height:300px!important;
  min-height:300px!important;
  max-height:300px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
}
.global-search-form{
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
}
.global-search-form .global-search-icon{
  pointer-events:none!important;
  z-index:2!important;
}
.global-search-form input{
  position:relative!important;
  z-index:3!important;
  pointer-events:auto!important;
  cursor:text!important;
  user-select:text!important;
  -webkit-user-select:text!important;
}
.global-search-form input:focus{
  cursor:text!important;
}
.global-search-form .global-search-button{
  position:relative!important;
  z-index:4!important;
}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .sr-hero.sr-hero-unit{height:220px!important;min-height:220px!important;max-height:220px!important}
}


/* V119: banner ocupa toda a largura do campo, sem faixas brancas e sem cortar a arte. */
.sr-hero.sr-hero-unit{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!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;
}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .sr-hero.sr-hero-unit{height:auto!important;min-height:0!important;max-height:none!important;border-radius:14px!important}
}


/* V120: o nome real do usuário logado deve aparecer completo no cabeçalho. */
.top-actions>.user{
  flex:0 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:220px!important;
  overflow:visible!important;
}
.top-user-identity{
  min-width:0!important;
  flex:0 1 auto!important;
  overflow:visible!important;
}
.top-user-name{
  max-width:none!important;
  width:auto!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.unit-badge{
  max-width:150px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  flex:0 1 auto!important;
}
.top-logout{flex:0 0 auto!important}
@media(max-width:1050px){
  .top-actions>.user{min-width:210px!important;max-width:none!important}
}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .top-actions>.user{width:auto!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
}


/* V122.27 - correção definitiva da Entrada e cabeçalhos de relatórios */
.report-page .top-heading > h2{display:none!important}
.sr-entry-form{width:100%!important;max-width:1080px!important;padding:20px!important}
.sr-entry-form h3{margin:0 0 18px!important;font-size:20px!important;line-height:1.2!important;color:var(--sr-text,#19696d)!important}
.sr-entry-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px 16px!important;align-items:start!important;width:100%!important}
.sr-entry-grid > .field{min-width:0!important;width:100%!important;margin:0!important}
.sr-entry-grid > .field label{display:block!important;margin:0 0 7px!important;line-height:1.2!important}
.sr-entry-grid > .field input,.sr-entry-grid > .field select{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;padding:10px 12px!important}
.sr-entry-inline{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;min-width:0!important}
.sr-entry-inline select{width:100%!important;min-width:0!important}
.sr-entry-new{height:42px!important;white-space:nowrap!important;padding:10px 14px!important}
.sr-entry-observation{grid-column:1 / -1!important}
.sr-entry-submit{margin-top:18px!important;min-height:42px!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .sr-entry-grid{grid-template-columns:minmax(0,1fr)!important}
  .sr-entry-observation{grid-column:auto!important}
}
.brand-client-name{display:flex;align-items:center;justify-content:center;min-height:68px;padding:10px 8px;font-size:clamp(15px,2vw,22px);line-height:1.15;font-weight:900;text-align:center;overflow-wrap:anywhere;color:#188086;background:#fff;border-radius:12px;box-sizing:border-box}
html[data-theme="dark"] .brand-client-name{background:#10283b;color:#e7f6ff}


/* V122.87: tabelas contidas nos painéis, com rolagem interna */
html,body{max-width:100%;overflow-x:hidden}
.main{min-width:0;width:calc(100% - 238px);max-width:none;overflow-x:hidden}
.main>.card,.main>.section,.main .card,.main .form{min-width:0;max-width:100%}
.table-wrap{display:block;width:100%;max-width:100%;min-width:0;overflow:auto!important;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8aa6b8 #edf4f7}
.table-wrap::-webkit-scrollbar{height:10px;width:10px}
.table-wrap::-webkit-scrollbar-track{background:#edf4f7;border-radius:8px}
.table-wrap::-webkit-scrollbar-thumb{background:#8aa6b8;border-radius:8px}
.table-wrap>.table,.table-wrap>table.table{width:max-content;min-width:100%;max-width:none}
.cost-report-card{min-width:0!important;overflow:hidden}
.cost-report-table-wrap{max-height:58vh;margin-top:12px!important;border:1px solid var(--v96-line,#dfe9ef)}
.cost-report-table-wrap .table{min-width:1120px;width:max-content;table-layout:auto}
.cost-report-table-wrap .table th,.cost-report-table-wrap .table td{white-space:nowrap}
.products-table-wrap{max-height:62vh;margin-top:14px!important;border:1px solid var(--v96-line,#dfe9ef)}
.products-list-wrap .table{min-width:1050px;table-layout:auto}
.products-search-wrap .table{min-width:650px;table-layout:auto}
.products-table-wrap .table th,.products-table-wrap .table td{white-space:nowrap;vertical-align:middle}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.main{width:100%;margin-left:0!important}.cost-report-table-wrap .table{min-width:1050px}.products-list-wrap .table{min-width:1000px}}


@media (min-width:851px) and (pointer:fine), (min-width:851px) and (min-height:501px){
  html body .side{background:linear-gradient(180deg,#102f68 0%,#082653 58%,#071f46 100%)!important;color:#fff!important;border-right:1px solid #207d82!important;}
  html body .side .brand,html body .side .brand small,html body .side .nav,
  html body .side .nav a,html body .side .nav button,html body .side .nav span,
  html body .side .nav small,html body .side .nav strong,html body .side .nav i,
  html body .side .nav summary,html body .side .nav label,
  html body .side .sidebar-footer,html body .side .unit-name,html body .side .unit-label{color:#f7feff!important;}
  html body .side .nav a:hover,html body .side .nav button:hover,
  html body .side .nav a:focus-visible,html body .side .nav button:focus-visible{background:#1d858b!important;color:#fff!important;outline-color:#27b8f2!important;}
  html body .side .nav a.active,html body .side .nav a[aria-current="page"],
  html body .side .nav button.active,html body .side .nav button[aria-expanded="true"]{background:linear-gradient(90deg,#14dae4,#22e9f3)!important;color:#fff!important;box-shadow:0 4px 12px #00183b55!important;}
  html body .side .nav a *,html body .side .nav button *{color:inherit!important;}
  html body .side .nav a:visited{color:#f7feff!important;}
  html body .side .brand-logo-box{background:#fff!important;}
  html body .side .backup-note{color:#ddfbfc!important;border-color:#ffffff25!important;}
}


@media (min-width:851px) and (pointer:fine), (min-width:851px) and (min-height:501px){
 html body .side .nav a.active, html body .side .nav a[aria-current="page"],
 html body .side .nav button.active, html body .side .nav button[aria-expanded="true"],
 html body .side .nav details[open] > summary, html body .side .nav .nav-subitem.active {
   background:linear-gradient(90deg,#14dae4 0%,#22e9f3 100%) !important;
   color:#ffffff !important; border-color:#27b8f2 !important;
 }
 html body .side .nav a.active *, html body .side .nav button.active *,
 html body .side .nav details[open] > summary *, html body .side .nav .nav-subitem.active * {color:#ffffff !important;}
}


.avatar-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;max-width:900px}.avatar-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px;border:2px solid #dbe7f5;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}.avatar-option input{position:absolute;top:7px;left:7px;width:17px;height:17px;accent-color:#20d4de}.avatar-option img{width:76px;height:76px;object-fit:cover;border-radius:10px}.avatar-option span{font-size:11px;color:#5c6b80}.avatar-option:has(input:checked){border-color:#20d4de;box-shadow:0 0 0 3px #1677e822;background:#effdfe}@media(max-width:600px){.avatar-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.avatar-option img{width:100%;height:auto;aspect-ratio:1}.avatar-option{padding:4px}}

/* Odi mobile: painel compacto, sem sobrepor o mascote ao conteúdo. */
@media (max-width: 600px) {
  #odi-panel, #odi-panel.odi-open {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    height: min(46dvh, 390px) !important;
    max-height: calc(100dvh - 24px) !important;
    min-height: 230px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #f7feff !important;
    box-shadow: 0 8px 32px rgba(13, 57, 104, .24) !important;
  }
  #odi-panel:not(.odi-open) { display: none !important; }
  #odi-panel #odi-head {
    flex: 0 0 auto !important;
    min-height: 46px !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  #odi-panel #odi-head:before { font-size: 15px !important; }
  #odi-panel #odi-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 10px !important;
    gap: 8px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  #odi-panel .odi-msg, #odi-panel #odi-body .odi-msg {
    max-width: 100% !important;
    padding: 10px 12px !important;
    margin: 0 0 8px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }
  #odi-panel #odi-footnote { display: none !important; }
  #odi-panel #odi-form {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    background: #f7feff !important;
    border-top: 1px solid #daf5f6 !important;
  }
  #odi-panel #odi-question {
    min-width: 0 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  #odi-panel #odi-send { flex: 0 0 42px !important; width: 42px !important; height: 42px !important; }
  #odi-launcher {
    width: 56px !important;
    height: 56px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
  #odi-launcher .odi-bot-launch { width: 54px !important; height: 54px !important; }
  #odi-panel.odi-open ~ #odi-launcher { display: none !important; }
}


.oc-mobile-launcher{display:none}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  body{background:#f1f5f9!important}
  .side{display:none!important}
  .main{margin-left:0!important;padding:14px 12px calc(82px + env(safe-area-inset-bottom))!important;min-height:100dvh!important}
  .dashboard-main .top{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .dashboard-main .top-heading{width:100%!important;min-width:0!important}
  .dashboard-main .top h2{font-size:23px!important;line-height:1.15!important}
  .dashboard-main .top-subtitle{font-size:12px!important}
  .dashboard-main .top-actions{width:100%!important;max-width:none!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .dashboard-main .global-search-form{width:100%!important;max-width:none!important;order:0!important}
  .oc-mobile-launcher{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0 18px}
  .oc-tile{min-height:104px;border-radius:17px;padding:13px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none!important;color:#fff!important;font-size:13px;line-height:1.2;box-shadow:0 5px 13px rgba(20,45,75,.13);border:1px solid rgba(255,255,255,.55);transition:transform .12s ease}
  .oc-tile:active{transform:scale(.98)}
  .oc-tile-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:rgba(255,255,255,.2);font-size:27px;font-weight:800}
  .oc-tile b{font-size:13px;font-weight:800}
  .oc-blue{background:linear-gradient(145deg,#21dbe5,#10acb4)}
  .oc-green{background:linear-gradient(145deg,#27bd79,#07834f)}
  .oc-orange{background:linear-gradient(145deg,#ff9b20,#e86a00)}
  .oc-purple{background:linear-gradient(145deg,#67dce2,#38aeb4)}
  .oc-red{background:linear-gradient(145deg,#f64e63,#c9253c)}
  .oc-teal{background:linear-gradient(145deg,#12b9bd,#087b8e)}
  .oc-indigo{background:linear-gradient(145deg,#6cd0d5,#3e3c9d)}
  .oc-yellow{background:linear-gradient(145deg,#ffc83d,#d88d00)}
  .sr-hero-wrap{margin-bottom:12px!important;border-radius:14px!important}
  .sr-hero-wrap + .sr-action-row{display:none!important}
  .sr-action-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .sr-action{min-height:70px!important;padding:11px!important;border-radius:13px!important}
  .sr-action-icon{width:34px!important;height:34px!important;flex:none!important}
  .sr-kpi-row,.sr-grid-top,.sr-grid-bottom,.sr-grid-middle,.sr-grid-lower,.sr-product-rank{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .sr-panel{padding:12px!important;border-radius:14px!important;margin-bottom:10px!important}
  .sr-panel-head h3{font-size:14px!important}
  .sr-table th,.sr-table td{padding:8px 6px!important;font-size:10px!important}
  .sr-help{width:100%!important;max-width:none!important}
  .sr-quick{grid-column:1/-1!important}
  .sr-products-used{overflow:hidden}
  .oc-mobile-bottom{display:flex!important}
  .oc-mobile-bottom a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#dceaf6;text-decoration:none;font-size:10px;font-weight:750;padding:8px 2px}
  .oc-mobile-bottom a span{font-size:21px;line-height:1.1}
}
.oc-mobile-bottom{display:none}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
 .oc-mobile-bottom{position:fixed;z-index:10000;left:0;right:0;bottom:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#0d2b45;box-shadow:0 -5px 20px rgba(10,30,50,.18);border-top:1px solid rgba(255,255,255,.12)}
 .oc-mobile-bottom a.active{background:#21d4de;border-radius:12px;color:#fff}
}


@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .dashboard-main .top,.main .top{display:none!important}
  .dashboard-main .top-heading,.dashboard-main .top-actions{display:none!important}
  .dashboard-main .user-card,.dashboard-main .profile-card,.dashboard-main .welcome-card{display:none!important}
}


@media (max-width:700px), (pointer:coarse) and (max-height:500px){
  .oc-mobile-home{display:block!important}
  .sr-dashboard>.sr-hero-wrap,.sr-dashboard>.sr-kpi-row,.sr-dashboard>.sr-panel,
  .sr-dashboard>.sr-action-row,.sr-dashboard>.sr-grid-top,.sr-dashboard>.sr-grid-bottom,
  .sr-dashboard>.sr-grid-middle,.sr-dashboard>.sr-grid-lower{display:none!important}
  .oc-mobile-odi{display:none!important}
  .oc-mobile-unit,.oc-mobile-greeting,.oc-mobile-search{display:none!important}
  .oc-mobile-brand{margin:-14px -12px 0!important;padding:12px 15px!important}
  .oc-mobile-brandtext small{display:none!important}
  .oc-mobile-attention{padding-right:0!important}
  .oc-mobile-alert{max-width:100%}
  .main .top,.dashboard-main .top{display:none!important}
  .main .user-card,.main .profile-card,.main .welcome-card{display:none!important}
  .oc-mobile-home~*{display:none!important}
  .oc-mobile-bottom{display:flex!important}
}

/* V123.09 • identidade teal consistente e navegação mobile simplificada */
:root{--primary:#087f80;--primary-2:#4fcfc8;--nav:#073b4c;--nav-2:#075e6b;--accent-teal:#4fcfc8}
.btn,.pr-btn{background:#087f80!important;color:#fff!important}
.btn:hover,.pr-btn:hover{background:#066b6c!important}
.btn.secondary,.pr-btn.secondary{background:#f1f9f9!important;color:#155b61!important;border-color:#cfe7e6!important}
.card,.form,.pr-card,.validity-v110-head,.validity-v110-filters,.validity-v110-results,.validity-v110-empty{border-top:3px solid #4fcfc8!important}
.oc-tile{border-left-color:#4fcfc8!important}
.oc-tile.oc-blue,.oc-tile.oc-green,.oc-tile.oc-orange,.oc-tile.oc-purple,.oc-tile.oc-red,.oc-tile.oc-teal,.oc-tile.oc-indigo,.oc-tile.oc-yellow{background:#fff!important;color:#173f4b!important;border-left:5px solid #4fcfc8!important}
.oc-tile .oc-tile-icon{background:#e4f8f6!important;color:#087f80!important;border-radius:14px!important}
.top-home,.top-logout{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.top-home{background:#e4f8f6;color:#087f80;border:1px solid #bde9e5}
.top-logout{background:#fff;color:#536875;border:1px solid #dce7eb}
.mobile-home-shortcut{display:none;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:#e4f8f6;border:1px solid #bde9e5;color:#087f80;text-decoration:none;font-size:24px;font-weight:800;flex:none}
/* A barra inferior duplicava a navegação e consumia espaço útil. */
.oc-mobile-bottom{display:none!important}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
 .oc-mobile-bottom{display:none!important}
 .mobile-home-shortcut{display:flex!important}
 .mobile-appbar{display:flex!important;align-items:center;gap:10px!important}
 .mobile-brand-block{flex:1;min-width:0}
 .main{padding-bottom:24px!important}
 .top-home,.top-logout{padding:8px 10px;font-size:11px}
}

/* V123.11: navegação consistente no cabeçalho mobile. */
.mobile-appbar-actions{display:none;align-items:center;gap:6px;flex:none}
.mobile-appbar-actions .top-home,.mobile-appbar-actions .top-logout{min-height:36px;padding:8px 10px;font-size:11px;border-radius:10px;font-weight:800}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
 .mobile-appbar-actions{display:flex!important}
 .main .top .top-home,.main .top .top-logout{display:none!important}
 .mobile-brand-block{flex:1 1 auto!important;min-width:0!important}
 .mobile-brand-block strong{display:block;color:#fff!important;font-size:17px!important;line-height:1.15}
 .mobile-brand-block small{display:block;color:#eefaff!important;font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:38vw}
 .mobile-appbar-actions .top-home{background:#e4f8f6!important;color:#087f80!important;border:1px solid #bde9e5!important}
 .mobile-appbar-actions .top-logout{background:#fff!important;color:#24445b!important;border:1px solid #dce7eb!important}
}


/* Cabeçalho: ambos os comandos usam o mesmo botão branco. */
.top-home,.top-logout,.mobile-appbar-actions .top-home,.mobile-appbar-actions .top-logout{background:#fff!important;color:#17445a!important;border:1px solid #dce7eb!important;box-shadow:none!important}
.top-home:hover,.top-logout:hover,.mobile-appbar-actions .top-home:hover,.mobile-appbar-actions .top-logout:hover{background:#f3f8fa!important;color:#12384c!important}


:root{--oc-accent:#4fcfc8;--oc-accent-strong:#087f80;--oc-accent-soft:#e4f8f6;--oc-ink:#173f4b;--oc-muted:#718096;--oc-border:#d8e8e9;--oc-surface:#fff;--oc-bg:#f1f8fc;--oc-radius:16px;--oc-control-height:44px}
body{background:var(--oc-bg)!important;color:var(--oc-ink)!important}
.main{min-width:0;max-width:none;background:rgba(241,248,252,.45)!important}
.top-appbar{background:linear-gradient(110deg,#2f7f83,#087fbd)!important}
.top-home,.top-logout{background:#fff!important;color:#174453!important;border:1px solid #dce9ed!important;box-shadow:0 2px 7px #082f3b12!important}
.top-home{font-size:0!important}.top-home:before{content:'Início';font-size:14px}.top-home:after{content:none!important}
.top-logout{font-size:14px!important}
.unit-badge{max-width:min(36vw,300px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#e4f8f6!important;color:#087f80!important}
.role-badge{background:#e4f8f6!important;color:#087f80!important}
.side{background:linear-gradient(180deg,#087f80 0%,#075b65 100%)!important}
.nav a:hover,.nav button:hover,.nav a.active,.nav-subitem.active{background:#ffffff20!important}
.btn,.btn-primary,button.primary,.btn-success{background:var(--oc-accent-strong)!important;color:#fff!important;border-color:var(--oc-accent-strong)!important}
.btn:hover,.btn-primary:hover,button.primary:hover,.btn-success:hover{background:#066d70!important}
.btn.secondary,.btn-outline,.btn-light{background:#e4f8f6!important;color:#087f80!important;border:1px solid #bde9e5!important}
.card,.form,.modal-card,.panel,.settings-card,.config-card,.report-card,.section-card{border-color:var(--oc-border)!important;border-radius:var(--oc-radius)!important;box-shadow:0 5px 18px rgba(23,63,75,.06)!important}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea{max-width:100%;min-width:0;box-sizing:border-box}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select{min-height:var(--oc-control-height);border-color:#d4e3e7!important;border-radius:10px!important}
textarea{border-color:#d4e3e7!important;border-radius:10px!important;line-height:1.45}
label{line-height:1.35}
.table-wrap{max-width:100%;min-width:0;border:1px solid var(--oc-border)}
.table th{background:#eaf8f7!important;color:#17616a!important}
.table td,.table th{overflow-wrap:anywhere}
/* Responsividade global: não deixar campos, tabelas e cartões estourarem a viewport. */
*,*:before,*:after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
.form,.row,.grid,.card,.section,.table-wrap,.table-toolbar{min-width:0;max-width:100%}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.main{padding:14px!important;overflow-x:hidden}.row{grid-template-columns:minmax(0,1fr)!important}.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.form{width:100%;padding:15px!important}.top{align-items:flex-start}.user{min-width:0;flex-wrap:wrap}.table-wrap,.table-responsive{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:600px}.table-wrap table{width:max-content;min-width:100%}}
@media(max-width:480px){.main{padding:10px!important}.grid{gap:10px!important}.card{padding:13px!important}.top-home:before{font-size:13px}.top-home,.top-logout{padding:9px 12px!important}.unit-badge{max-width:42vw}.table th,.table td{padding:9px 8px!important}}
/* Formulário de próteses: campos de data compactos e alinhados aos demais controles. */
.pr-formgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
.pr-field{min-width:0!important;width:100%!important}
.pr-field input,.pr-field select,.pr-field textarea{width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:9px 11px!important;font-size:14px!important}
.pr-field input[type=date],.pr-field input[type=datetime-local]{display:block;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;padding:8px 9px!important;font-size:14px!important}
.pr-field.full{grid-column:1/-1}
@media (max-width:900px), (pointer:coarse) and (max-height:500px){.pr-formgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.pr-formgrid{grid-template-columns:minmax(0,1fr)!important}.pr-field.full{grid-column:auto}.pr-field input[type=date],.pr-field input[type=datetime-local]{font-size:13px!important}}
/* Odi menor e fora do conteúdo clicável; não cobre títulos nem cartões. */
#odi-launcher{width:66px!important;height:66px!important;right:16px!important;bottom:84px!important}
#odi-launcher .odi-bot-launch{width:62px!important;height:62px!important;transform:scale(.88)}
#odi-launcher:after{width:29px!important;height:23px!important;font-size:13px!important;right:-1px!important;top:-2px!important}
#odi-panel{max-width:calc(100vw - 20px)!important}
@media(max-width:600px){ #odi-launcher{width:58px!important;height:58px!important;right:12px!important;bottom:68px!important}#odi-launcher .odi-bot-launch{width:54px!important;height:54px!important}#odi-panel{right:8px!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important}}
/* Cabeçalhos e cartões do sistema adotam um único acento verde-água. */
:where(h1,h2,h3,.page-title,.section-title){text-wrap:balance}
:where(.settings-card,.config-card,.report-card,.section-card,.card):before{border-color:var(--oc-accent)!important}


:root{--oc-accent:#4fcfc8;--oc-accent-strong:#087f80;--oc-accent-soft:#e4f8f6;--oc-ink:#173f4b;--oc-muted:#718096;--oc-border:#d8e8e9;--oc-surface:#fff;--oc-bg:#f1f8fc;--oc-radius:16px;--oc-control-height:44px}
/* Uma identidade clínica consistente, sem azuis aleatórios nos cartões e ações. */
.btn,.btn-primary,.btn-success,button.primary,.pr-btn:not(.secondary){background:var(--oc-accent-strong)!important;border-color:var(--oc-accent-strong)!important;color:#fff!important}
.btn.secondary,.btn-outline,.btn-light,.pr-btn.secondary{background:var(--oc-accent-soft)!important;border-color:#bde9e5!important;color:var(--oc-accent-strong)!important}
.card,.form,.panel,.settings-card,.config-card,.report-card,.section-card,.modal-card{border-color:var(--oc-border)!important;border-radius:var(--oc-radius)!important}
.card:where(:not(.sr-kpi)),.settings-card,.config-card,.report-card,.section-card{border-top:3px solid var(--oc-accent)!important}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea{max-width:100%;min-width:0;box-sizing:border-box}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select{min-height:var(--oc-control-height)}
.table th{background:#eaf8f7!important;color:#17616a!important}
/* Cabeçalho: apenas texto, sem ícone e sem repetição do rótulo Início. */
.top-home{font-size:14px!important}
.top-home:before,.top-home:after{content:none!important;display:none!important}
.mobile-appbar-actions .top-home{font-size:14px!important}
.mobile-appbar-actions .top-home:before,.mobile-appbar-actions .top-home:after{content:none!important;display:none!important}
/* Identificação de unidade não deve duplicar visualmente o nome no cabeçalho. */
.mobile-brand-block small{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Campos de data da prótese mantêm a legibilidade, mas deixam de crescer em altura. */
.pr-field input[type=date],.pr-field input[type=datetime-local],.pr-field input[type=text][inputmode],.pr-field input[type=date]::-webkit-date-and-time-value{height:44px!important;min-height:44px!important;max-height:44px!important;padding:8px 10px!important;line-height:1.2!important;box-sizing:border-box!important}
.pr-field input[type=date],.pr-field input[type=datetime-local]{width:100%!important;max-width:100%!important;min-width:0!important;display:block!important}
@media (max-width:700px), (pointer:coarse) and (max-height:500px){
 .main{overflow-x:hidden!important;min-width:0!important}
 .mobile-appbar{gap:8px!important}
 .mobile-appbar-actions{gap:6px!important}
 .mobile-appbar-actions .top-home,.mobile-appbar-actions .top-logout{min-width:64px;min-height:38px;padding:8px 10px!important;font-size:13px!important}
 .mobile-brand-block{min-width:0!important;flex:1 1 auto!important}
 .mobile-brand-block strong{font-size:16px!important}
 .mobile-brand-block small{font-size:10px!important;max-width:36vw!important}
 .pr-formgrid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .pr-field{width:100%!important;min-width:0!important}
 .pr-field input,.pr-field select,.pr-field textarea{width:100%!important;max-width:100%!important;min-width:0!important}
}


@media (max-width: 700px), (pointer:coarse) and (max-height:500px){
  html, body { background: #edf8f6 !important; }
  body { background-color: #edf8f6 !important; }
  body .app-bg { background-image: none !important; opacity: 0 !important; }
  body .main, body .dashboard-main, body main, body .content, body .page-content { background-color: #edf8f6 !important; }
}
@media (max-width: 520px) {
  .pm-wrap .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pm-wrap .pm-stat { padding: 12px !important; }
  .pm-wrap .pm-stat strong { font-size: 24px !important; }
}


@media (min-width:851px) and (pointer:fine), (min-width:851px) and (min-height:501px){
  .side{width:255px!important;padding-left:14px!important;padding-right:14px!important}
  .main{margin-left:255px!important}
}
.side .nav-submenu{width:100%;min-width:0;overflow:visible}
.side .nav-subitem{
  display:flex!important;align-items:center;gap:8px;
  width:100%;min-width:0;padding:10px 9px!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  word-break:normal!important;line-height:1.25!important;
  font-size:12.5px!important;
}
.side .nav-subitem .sub-dot{flex:0 0 20px;width:20px;text-align:center}
.side .nav-group>summary{min-width:0}
.side .nav-group>summary>span:nth-child(2){min-width:0;white-space:normal;overflow-wrap:anywhere}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  .side .nav-subitem{font-size:12px!important}
}


:root{--oc-nav:#073b46;--oc-nav-deep:#062d3a;--oc-nav-hover:rgba(27,190,170,.14);--oc-nav-active:linear-gradient(105deg,#078b83 0%,#10b9a5 100%);--oc-teal:#0b9b91;--oc-teal-bright:#16bfa9}
html,body{background:#f2faf8!important}
.app-bg{background:linear-gradient(135deg,#f4fbfa 0%,#eaf7f4 55%,#f7fbfc 100%)!important;opacity:1!important;filter:none!important}
.side{width:250px!important;padding:16px 12px 18px!important;background:linear-gradient(180deg,#0a3b48 0%,#082f40 54%,#072a3a 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important;box-shadow:5px 0 24px rgba(5,45,57,.10)!important}
.main{margin-left:250px!important}
.brand.brand-odonto{min-height:88px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:10px 8px 17px!important;margin:0 2px 14px!important;border:0!important;border-bottom:1px solid rgba(224,255,251,.14)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.brand-mark{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;border-radius:14px;color:#fff;font-size:15px;font-weight:900;letter-spacing:-.8px;background:linear-gradient(145deg,#18c6b0,#087c82);box-shadow:0 7px 18px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.3)}
.brand-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.brand-title{font-size:17px;line-height:1.15;font-weight:850;letter-spacing:-.45px;color:#f5fffd!important}
.brand-subtitle{font-size:10px!important;line-height:1.2;font-weight:600!important;color:#a9d8d4!important;margin:0!important}
.brand-unit{font-size:9px!important;line-height:1.2;color:#80b9b9!important;margin-top:3px}
.side .nav{gap:4px!important}
.side .nav-item,.side .nav-group>summary{min-height:41px!important;height:auto!important;display:flex!important;align-items:center!important;gap:10px!important;padding:10px 11px!important;margin:1px 0!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#e8f8f6!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease!important}
.side .nav-item:hover,.side .nav-group>summary:hover,.side .nav-subitem:hover{background:var(--oc-nav-hover)!important;border-color:rgba(37,205,184,.16)!important;color:#fff!important;transform:none!important}
.side .nav-item.active,.side .nav-group[open]>summary{background:var(--oc-nav-active)!important;border-color:rgba(120,255,230,.18)!important;color:#fff!important;box-shadow:0 5px 14px rgba(0,155,139,.20)!important}
.side .nav-ico{width:18px;min-width:18px;text-align:center;color:#a9e9df!important}
.side .nav-chevron{margin-left:auto;color:#a9d8d4!important}
.side .nav-submenu{margin:3px 0 7px 9px!important;padding:3px 0 3px 10px!important;border-left:1px solid rgba(137,222,212,.32)!important;background:transparent!important}
.side .nav-subitem{min-height:35px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:7px 9px!important;margin:2px 0!important;border:1px solid transparent!important;border-radius:9px!important;color:#c7e6e2!important;font-size:11px!important;font-weight:650!important;background:transparent!important}
.side .nav-subitem.active{color:#fff!important;background:rgba(17,185,165,.23)!important;border-color:rgba(53,224,199,.20)!important;box-shadow:inset 3px 0 0 #20d4bb!important}
.side .nav-exit{margin-top:12px!important;padding-top:12px!important;border-top:1px solid rgba(225,255,251,.14)!important;border-radius:10px!important;color:#d7eeeb!important}
.side .nav-exit:hover{background:rgba(239,91,91,.14)!important;color:#fff!important}
.side .side-footer{display:none!important}
.brand-logo-box,.brand-logo{display:none!important}
.unit-badge{max-width:180px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.side{width:min(290px,86vw)!important;padding:14px 12px 20px!important}.main{margin-left:0!important}.brand.brand-odonto{min-height:78px!important;margin-bottom:10px!important}.brand-title{font-size:16px!important}}


.btn,.btn.secondary{height:40px!important;min-height:40px!important;min-width:124px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;line-height:1.15!important;font-weight:800!important;border-radius:10px!important;white-space:nowrap!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){.btn,.btn.secondary{min-height:42px!important;height:42px!important}}


/* V124.18 • Menu lateral clean aprovado: branco gelo + verde-água */
:root{
  --oc-sidebar:#F8FCFB;
  --oc-sidebar-border:#E3EEEA;
  --oc-nav-hover:#EEF7F4;
  --oc-nav-active:#DDF3EE;
}
html body .side{
  background:#F8FCFB!important;
  color:#344F59!important;
  border-right:1px solid #E3EEEA!important;
  box-shadow:4px 0 18px rgba(26,72,67,.045)!important;
  scrollbar-color:#C8DCD6 transparent!important;
}
html body .side .brand{
  background:#EAF5F1!important;
  border:1px solid #DCEBE5!important;
  border-radius:14px!important;
  box-shadow:none!important;
  margin-bottom:12px!important;
}
html body .side .brand-mark{
  background:linear-gradient(145deg,#19B6A5,#087F80)!important;
  box-shadow:0 4px 10px rgba(8,127,128,.12)!important;
}
html body .side .brand-title{color:#214B50!important}
html body .side .brand-subtitle{color:#718B88!important}
html body .side .brand-unit{color:#78918D!important}
html body .side .nav-item,
html body .side .nav-group>summary{
  color:#405A60!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  box-shadow:none!important;
  font-weight:650!important;
  transition:background .15s ease,color .15s ease,border-color .15s ease!important;
}
html body .side .nav-item:hover,
html body .side .nav-group>summary:hover{
  background:#EEF7F4!important;
  border-color:#E4F0EB!important;
  color:#087F78!important;
  transform:none!important;
}
html body .side .nav-item.active,
html body .side .nav-group[open]>summary{
  background:#DDF3EE!important;
  border-color:#CDE9E1!important;
  color:#087F78!important;
  box-shadow:inset 3px 0 0 #0E9F95!important;
}
html body .side .nav-ico{color:#718A89!important}
html body .side .nav-item.active .nav-ico,
html body .side .nav-group[open]>summary .nav-ico{color:#087F78!important}
html body .side .nav-chevron{color:#809794!important}
html body .side .nav-submenu{
  border-left:1px solid #DCEAE5!important;
  background:transparent!important;
}
html body .side .nav-subitem{
  color:#687F80!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  font-weight:600!important;
}
html body .side .nav-subitem:hover{
  color:#087F78!important;
  background:#F0F8F5!important;
  border-color:#E5F0EB!important;
}
html body .side .nav-subitem.active{
  color:#087F78!important;
  background:#E4F4EF!important;
  border-color:#D7ECE4!important;
  box-shadow:inset 2px 0 0 #0E9F95!important;
  font-weight:750!important;
}
html body .side .nav-subitem .sub-dot{
  background:#EDF5F2!important;
  color:#64827C!important;
  box-shadow:none!important;
}
html body .side .nav-subitem .entry-dot{background:#E2F5EC!important;color:#19865F!important}
html body .side .nav-subitem .exit-dot{background:#FCEDEE!important;color:#C65A62!important}
html body .side .nav-exit{
  border-top:1px solid #E5EEEA!important;
  color:#657B7C!important;
}
html body .side .nav-exit:hover{background:#FFF1F0!important;color:#B94F55!important}
html body .side .side-footer{background:#F0F7F4!important;border-color:#E0ECE6!important;color:#405A60!important}
html body .side .side-footer small{color:#718987!important}
html body .side .side-footer-icon{background:#0E9F95!important;color:#fff!important}
html body .side::-webkit-scrollbar-thumb{background:#C8DCD6!important}
html body .side::-webkit-scrollbar-thumb:hover{background:#AFCAC1!important}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
  html body .side{background:#F8FCFB!important;box-shadow:8px 0 28px rgba(26,72,67,.10)!important}
}


/* V124.20: menu minimalista, tipografia e alinhamento unificados. */
html body aside.side {
  width: 204px !important;
  min-width: 204px !important;
  padding: 10px 9px 16px !important;
  box-sizing: border-box !important;
  background: #F8FCFB !important;
  color: #344F59 !important;
  border-right: 1px solid #E3EEEA !important;
}
html body aside.side .brand {
  min-height: 68px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border-radius: 12px !important;
  background: #EAF5F1 !important;
  border: 1px solid #DCEBE5 !important;
  box-sizing: border-box !important;
}
html body aside.side .brand-mark {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
}
html body aside.side .brand-copy { min-width: 0 !important; }
html body aside.side .brand-title {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #214B50 !important;
  white-space: nowrap !important;
}
html body aside.side nav#mainSidebarNav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  width: 100% !important;
  padding: 0 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  color: #344F59 !important;
}
/* Retira pictogramas e mini-ícones: a identificação passa a ser feita pelo texto. */
html body aside.side nav#mainSidebarNav .nav-ico,
html body aside.side nav#mainSidebarNav .sub-dot {
  display: none !important;
}
html body aside.side nav#mainSidebarNav .nav-item,
html body aside.side nav#mainSidebarNav .nav-group > summary {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #405A60 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}
html body aside.side nav#mainSidebarNav .nav-item > span:not(.nav-ico),
html body aside.side nav#mainSidebarNav .nav-group > summary > span:not(.nav-ico):not(.nav-chevron) {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}
html body aside.side nav#mainSidebarNav .nav-item:hover,
html body aside.side nav#mainSidebarNav .nav-group > summary:hover {
  color: #087F78 !important;
  background: #EEF7F4 !important;
  border-color: #E4F0EB !important;
}
html body aside.side nav#mainSidebarNav .nav-item.active,
html body aside.side nav#mainSidebarNav .nav-item[aria-current="page"] {
  color: #087F78 !important;
  background: #DDF3EE !important;
  border-color: #CDE9E1 !important;
  box-shadow: inset 3px 0 0 #0E9F95 !important;
  font-weight: 650 !important;
}
html body aside.side nav#mainSidebarNav .nav-group {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body aside.side nav#mainSidebarNav .nav-group > summary {
  list-style: none !important;
}
html body aside.side nav#mainSidebarNav .nav-group > summary::-webkit-details-marker { display:none !important; }
html body aside.side nav#mainSidebarNav .nav-chevron {
  display: inline-flex !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  margin: 0 1px 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  color: #819693 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  opacity: 1 !important;
}
html body aside.side nav#mainSidebarNav .nav-group[open] > summary {
  color: #087F78 !important;
  background: #EAF5F1 !important;
  border-color: #DCEBE5 !important;
  box-shadow: inset 3px 0 0 #0E9F95 !important;
}
html body aside.side nav#mainSidebarNav .nav-submenu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1px !important;
  margin: 3px 0 5px 10px !important;
  padding: 2px 0 2px 9px !important;
  border-left: 1px solid #DCEAE5 !important;
  background: transparent !important;
}
html body aside.side nav#mainSidebarNav a.nav-subitem,
html body aside.side nav#mainSidebarNav a.nav-subitem:visited,
html body aside.side nav#mainSidebarNav button.nav-subitem {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 31px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #52696D !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  box-shadow: none !important;
  transform: none !important;
}
html body aside.side nav#mainSidebarNav a.nav-subitem:hover,
html body aside.side nav#mainSidebarNav button.nav-subitem:hover {
  color: #087F78 !important;
  background: #F0F8F5 !important;
  border-color: #E5F0EB !important;
}
html body aside.side nav#mainSidebarNav a.nav-subitem.active {
  color: #087F78 !important;
  background: #E4F4EF !important;
  border-color: #D7ECE4 !important;
  box-shadow: inset 2px 0 0 #0E9F95 !important;
  font-weight: 600 !important;
}
html body aside.side nav#mainSidebarNav .nav-exit {
  margin-top: 5px !important;
  padding-top: 9px !important;
  border-top: 1px solid #E5EEEA !important;
}
html body aside.side nav#mainSidebarNav .nav-exit:hover {
  color: #B94F55 !important;
  background: #FFF1F0 !important;
}
@media (max-width: 850px), (pointer:coarse) and (max-height:500px){
  html body aside.side { width: 204px !important; min-width: 204px !important; }
}


/* V124.21 - escala confortável em zoom nativo de 100%, sem aplicar zoom/transform no documento. */
@media (min-width: 851px) and (pointer:fine), (min-width: 851px) and (min-height:501px){
  html { font-size: 15px !important; }
  body { font-size: 13px !important; line-height: 1.45 !important; }
  html body aside.side { width: 210px !important; padding: 12px 9px 14px !important; }
  html body .main {
    width: calc(100% - 210px) !important;
    margin-left: 210px !important;
    padding: 19px 21px 30px !important;
    max-width: 1700px !important;
  }
  .top { gap: 12px !important; margin-bottom: 15px !important; }
  .top h2, .global-greeting { font-size: 22px !important; line-height: 1.18 !important; }
  h1, .page-title { font-size: 25px !important; line-height: 1.2 !important; }
  h2, .section-title { font-size: 20px !important; line-height: 1.25 !important; }
  h3 { font-size: 17px !important; line-height: 1.3 !important; }
  h4 { font-size: 14px !important; line-height: 1.3 !important; }
  p { line-height: 1.45 !important; }
  .card, .panel, .section-card, .settings-card, .config-card, .report-card,
  .modal-card, .form, .dashboard-panel, .content-card {
    padding: 14px !important;
    border-radius: 13px !important;
  }
  .grid, .dashboard-main-grid, .dashboard-kpis { gap: 11px !important; }
  .row { gap: 11px !important; }
  label, .field label, .form-label { font-size: 12px !important; line-height: 1.3 !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
  select, textarea {
    min-height: 38px !important;
    height: auto;
    padding: 8px 10px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    border-radius: 8px !important;
  }
  input[type=date], input[type=datetime-local], input[type=time] {
    min-height: 38px !important; height: 38px !important; padding: 6px 8px !important;
  }
  textarea { min-height: 76px !important; }
  body :is(button,.btn,a.btn,input[type=submit],input[type=button],[role=button]):not(.nav button):not(.sidebar button):not(.menu button):not(.mobile-menu-toggle):not(.odi-fab):not(#odi-button) {
    min-height: 34px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    border-radius: 8px !important;
    font-weight: 650 !important;
  }
  .table th, .table td, table th, table td {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }
  .num, .kpi-value, .stat-value { font-size: 25px !important; }
  .pill, .badge, .status-badge { font-size: 10px !important; }
  html body aside.side .brand { padding: 8px !important; margin-bottom: 9px !important; border-radius: 12px !important; }
  html body aside.side .brand-logo { width: 165px !important; max-height: 58px !important; }
  html body aside.side nav#mainSidebarNav .nav-item,
  html body aside.side nav#mainSidebarNav .nav-group > summary {
    min-height: 33px !important;
    padding: 7px 9px !important;
    margin: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  html body aside.side nav#mainSidebarNav a.nav-subitem {
    min-height: 30px !important;
    padding: 6px 9px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }
  .top-home, .top-logout { min-height: 34px !important; padding: 7px 11px !important; font-size: 12px !important; }
}
@media (min-width: 851px) and (max-width: 1100px) and (pointer:fine), (min-width: 851px) and (max-width: 1100px) and (min-height:501px){
  html body .main { padding: 16px 15px 24px !important; }
  html body aside.side { width: 198px !important; }
  html body .main { width: calc(100% - 198px) !important; margin-left: 198px !important; }
}


/* V124.22 | acabamento compacto global: tipografia, densidade, limites e alinhamento */
:root{--oc-density-gap:10px;--oc-density-pad:12px;--oc-control-h:36px}
@media (min-width:851px) and (pointer:fine), (min-width:851px) and (min-height:501px){
 html{font-size:14px!important}
 body{font-size:12.5px!important;line-height:1.42!important;letter-spacing:0!important}
 .main{padding:17px 19px 28px!important}
 .top{margin-bottom:13px!important;gap:10px!important}
 .top h2,.global-greeting{font-size:20px!important;line-height:1.2!important}
 h1,.page-title{font-size:22px!important;line-height:1.22!important}
 h2,.section-title{font-size:18px!important;line-height:1.25!important}
 h3{font-size:15px!important;line-height:1.3!important}
 h4{font-size:13px!important;line-height:1.3!important}
 p{margin-top:5px;margin-bottom:8px;line-height:1.42!important}
 .card,.panel,.section-card,.settings-card,.config-card,.report-card,.form,
 .dashboard-panel,.content-card,.suite-panel,.v124-dentist-card,.v124-individual-head{
  padding:12px!important;border-radius:12px!important
 }
 .grid,.dashboard-main-grid,.dashboard-kpis,.row,.suite-grid,.suite-form{gap:9px!important}
 .section,.section-card,.form-section{margin-top:13px!important}
 label,.field label,.form-label{font-size:11.5px!important;line-height:1.25!important}
 input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
 select,textarea{min-height:35px!important;padding:7px 9px!important;font-size:12px!important;line-height:1.3!important;border-radius:7px!important;max-width:100%}
 input[type=date],input[type=datetime-local],input[type=time]{height:35px!important;min-height:35px!important;padding:5px 7px!important}
 textarea{min-height:68px!important}
 body :is(button,.btn,a.btn,input[type=submit],input[type=button],[role=button]):not(.nav button):not(.sidebar button):not(.menu button):not(.mobile-menu-toggle):not(.odi-fab):not(#odi-button){min-height:31px!important;padding:6px 9px!important;font-size:11.5px!important;line-height:1.2!important;border-radius:7px!important;font-weight:600!important}
 .table th,.table td,table th,table td{padding:7px 9px!important;font-size:11px!important;line-height:1.3!important}
 .num,.kpi-value,.stat-value{font-size:22px!important}
 .pill,.badge,.status-badge{font-size:9.5px!important;padding:3px 6px!important}
 .suite-head{margin:5px 0 14px!important}
 .suite-head h1{font-size:21px!important}
 .suite-panel{margin-bottom:12px!important}
 .suite-stat{padding:10px!important}
 .suite-stat b{font-size:20px!important}
 .suite-form input,.suite-form select,.suite-form textarea{padding:7px 9px!important}
 .v124-overview-heading{margin:5px 0 10px!important}
 .v124-dentist-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))!important;gap:9px!important}
 .v124-dentist-card{padding:10px!important;min-width:0!important;overflow:hidden!important}
 .v124-dentist-card-head{gap:8px!important;min-width:0!important}
 .v124-dentist-avatar{width:42px!important;height:42px!important;flex:0 0 42px!important}
 .v124-dentist-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin:9px 0 8px!important}
 .v124-dentist-stats>div{padding:6px 2px!important;min-width:0!important;overflow:hidden!important}
 .v124-dentist-stats strong{font-size:14px!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .v124-dentist-stats small{font-size:8px!important;line-height:1.12!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .v124-presence{font-size:8px!important;padding:4px 5px!important}
 .v124-dentist-card-foot{font-size:9px!important;gap:5px!important;flex-wrap:wrap!important}
 .v124-dentist-card-foot>*{min-width:0!important;overflow-wrap:anywhere}
 .v124-individual-head{gap:9px!important;margin:3px 0 10px!important}
 .v124-individual-avatar{width:48px!important;height:48px!important;flex:0 0 48px!important}
 .v124-individual-stats{gap:5px!important}
 .v124-individual-stats span{padding:5px 7px!important;font-size:9px!important;min-width:0!important;overflow-wrap:anywhere}
 .v124-individual-stats b{font-size:11px!important}
 .v124-individual-list{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))!important;gap:7px!important}
 .v124-individual-list .v124-appt{min-height:58px!important}
}
/* Evita que grids e campos largos estourem seus cards em qualquer viewport. */
:where(.card,.panel,.section-card,.settings-card,.config-card,.report-card,.form,.dashboard-panel,.content-card,.suite-panel,.v124-dentist-card,.v124-individual-head){min-width:0;max-width:100%}
:where(.grid,.row,.dashboard-main-grid,.dashboard-kpis,.suite-grid,.suite-form,.v124-dentist-grid,.v124-dentist-stats,.v124-individual-list)>*{min-width:0;max-width:100%}
:where(input,select,textarea,button,table,img,canvas,svg){max-width:100%}
:where(.v124-dentist-ident,.v124-dentist-card-head,.v124-dentist-card-foot){min-width:0}
@media (max-width:850px), (pointer:coarse) and (max-height:500px){
 .v124-dentist-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .v124-dentist-card{padding:9px!important;overflow:hidden!important}
 .v124-dentist-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 .v124-dentist-stats strong{font-size:14px!important;white-space:normal!important}
 .v124-dentist-stats small{font-size:9px!important}
}
@media(max-width:430px){.v124-dentist-grid{grid-template-columns:1fr!important}.v124-individual-list{grid-template-columns:1fr!important}}
