.hidden{display:none!important}
:root{--nav:#344750;--head:#5e7d89;--teal:#299c9a;--blue:#359fe0;--bg:#f2f3f4;--text:#416276}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:12px Arial,sans-serif;color:var(--text);display:flex}.sidebar{width:143px;min-height:100vh;background:var(--nav);color:#fff;position:fixed;left:0;top:0}.brand{height:49px;background:#eee;color:#68717a;padding:13px 9px 4px;font-size:18px}.brand span,.brand-mini span{color:#e22}.brand small{display:block;font-size:9px;text-align:center;margin-top:-3px}.sidebar nav a{height:31px;display:block;color:#fff;text-decoration:none;padding:9px 13px;font-size:12px}.sidebar nav a.active,.sidebar nav a:hover{background:#263840}.sidebar nav a b{margin-left:8px}main{margin-left:143px;width:calc(100% - 143px)}.topbar{height:49px;background:#eee;display:flex;align-items:center;padding:0 10px}.brand-mini{width:120px;font-size:16px;font-weight:bold;color:#65717a}.brand-mini small{display:block;font-size:9px;font-weight:normal}.search{height:32px;background:#fff;width:270px;color:#a0a0a0;padding:9px 12px;margin-left:8px}.search button{float:right;border:0;background:#06b8bb;color:#fff;height:32px;width:67px;margin:-9px -12px 0 0;font-size:22px}.user{margin-left:auto;text-align:right;color:#496170}.user small{font-size:9px;color:#78878f}.titlebar{height:49px;background:var(--head);color:#fff;padding:11px;font-size:16px;display:flex;justify-content:space-between}.titlebar button{border:0;color:white;padding:8px 14px;border-radius:3px;margin-left:8px}.tutorial{background:#f6b33f}.new{background:#00d982}.content{padding:17px 22px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.metric{height:69px;background:#fff;border:1px solid;padding:10px 15px;position:relative}.metric.green{border-color:#42c782}.metric.red{border-color:#ff6068}.metric>strong{font-size:21px;color:#4ac47e;margin-right:9px}.metric.red>strong{color:#fa5961}.metric span{display:inline-block;color:#63727b;vertical-align:top;line-height:15px}.metric em{font-style:normal;color:#3fc47a}.metric.red em{color:#ff5d65}.metric i{position:absolute;right:10px;top:8px;font-size:36px;color:#d9f4e7}.metric.red i{color:#ffe0e1}.metric footer{position:absolute;bottom:0;left:0;width:100%;text-align:center;background:#48c47d;color:#fff;padding:3px}.metric.red footer{background:#fb5d63}.columns{display:grid;grid-template-columns:1.45fr 1fr;gap:22px;margin-top:22px}.panel{background:#fff;border:1px solid #dfe3e5;margin-bottom:22px}.panel h3{margin:0;background:#587783;color:#fff;font-size:13px;padding:9px 10px;font-weight:bold}.panel h3 small{float:right;font-weight:normal}.alerts{height:103px}.alerts p{margin:12px 14px 0;color:#4f6772}.chart{height:546px;position:relative}.legend{text-align:center;padding:15px}.bar,.line{display:inline-block;width:31px;height:11px;background:#48c0bc;margin:0 4px}.line{background:#3b9fe0}.bars{height:430px;margin:0 30px;border-bottom:1px solid #ddd;display:flex;align-items:end;justify-content:space-around;background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,#e8ecee 48px)}.bars>div{height:100%;width:12%;display:flex;flex-direction:column;justify-content:end;align-items:center}.bars i{display:block;width:72%;background:#399fe0}.bars>div:last-child i{background:#93a9bb}.bars small{margin:8px 0;color:#687983}.pie{height:399px;text-align:center}.pie-shape{width:300px;height:300px;border-radius:50%;background:conic-gradient(#369fe1 0 87%,#4bb9bb 87%);margin:36px auto 0}.pie-legend{margin-top:-330px;font-size:9px}.result{padding-bottom:3px}.result p{margin:10px;color:#496779}.result p b{float:right;color:#3dbd77;font-weight:normal}.lower{margin-top:0}.products{min-height:264px}.products table{width:100%;border-collapse:collapse;margin:11px}.products th,.products td{text-align:left;padding:8px 14px;font-weight:normal}.products th{text-align:center}.products tr:nth-child(even){background:#eee}.products td:last-child{text-align:right}.report{display:block;text-align:right;padding:8px 15px;color:#2879c2}.files{height:182px;text-align:center}.files p{margin-top:48px}.activities{min-height:205px}.activities p{padding:5px 12px;color:#5e7680}.activities p b{float:right}.activities p small{float:right;clear:right;color:#9caab0}@media(max-width:1000px){.metric-grid{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.sidebar{width:120px}main{margin-left:120px;width:calc(100% - 120px)}}
:root{--home-icon-size:16px}.side-icon,.purchase-side-icon{width:16px!important;height:16px!important;max-width:16px;max-height:16px;object-fit:contain;vertical-align:-3px;margin-right:8px}
/* Menu lateral compartilhado: mesmas medidas em todas as páginas. */
:root{--shared-sidebar-width:143px;--shared-top-height:49px}
body .sidebar.shared-sidebar,body .sidebar{width:var(--shared-sidebar-width)!important;min-width:var(--shared-sidebar-width)!important;position:fixed!important;left:0!important;top:0!important;height:100vh!important;min-height:100vh!important;overflow:hidden!important;z-index:50!important}
body .sidebar.shared-sidebar .brand,body .sidebar .brand{height:var(--shared-top-height)!important;min-height:var(--shared-top-height)!important;box-sizing:border-box!important}
body .sidebar.shared-sidebar nav,body .sidebar nav{display:block!important;width:100%!important;margin:0!important;padding:0!important}
body .sidebar.shared-sidebar nav a,body .sidebar nav a{height:31px!important;min-height:31px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;padding:9px 13px!important;margin:0!important;line-height:13px!important;font-size:12px!important;white-space:nowrap!important}
body .sidebar.shared-sidebar nav a>img,body .sidebar nav a>img{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain!important;flex:0 0 16px!important;margin:0 8px 0 0!important}
body .sidebar.shared-sidebar nav a>span,body .sidebar nav a>span{width:16px!important;flex:0 0 16px!important;margin:0 8px 0 0!important;text-align:center!important}
body .sidebar.shared-sidebar nav a b,body .sidebar nav a b{margin:0!important;line-height:13px!important}
body main{margin-left:var(--shared-sidebar-width)!important;width:calc(100% - var(--shared-sidebar-width))!important;min-width:0!important}
body main>.topbar{height:var(--shared-top-height)!important;min-height:var(--shared-top-height)!important;box-sizing:border-box!important;position:sticky!important;top:0!important;z-index:40!important}

/* Estrutura padrão unificada e fixa em todas as guias do sistema */
.client-tabs button,.purchase-tab,.tabs .tab{border-radius:4px 4px 0 0!important}
.sales-pagination{display:none;align-items:center;justify-content:flex-end;gap:8px;padding:10px 0;color:#496a79;font-size:12px}.sales-pagination button{border:1px solid #cbd4d8;background:#fff;color:#496a79;border-radius:3px;min-width:28px;height:28px}.sales-pagination button:disabled{opacity:.45;cursor:default}

html body,
html body.standard-layout,
html body:has(.clients),
html body:has(.purchase-content),
html body:has(.sales-content),
html body:has(.finance-page),
html body:has(.products-topbar){font-size:12px!important}

/* Menu lateral fixo e idêntico em todas as telas */
html body .sidebar,
html body .sidebar.shared-sidebar,
html body.standard-layout .sidebar,
html body:has(.sales-content) .sidebar,
html body:has(.purchase-content) .sidebar,
html body:has(.clients) .sidebar,
html body:has(.finance-page) .sidebar,
html body:has(.products-topbar) .sidebar,
html body.standard-layout:has(.sales-content) .sidebar,
html body.standard-layout:has(.purchase-content) .sidebar,
html body.standard-layout:has(.clients) .sidebar{
  position:fixed!important;
  left:0!important;
  top:0!important;
  width:143px!important;
  min-width:143px!important;
  max-width:143px!important;
  height:100vh!important;
  min-height:100vh!important;
  background:#344750!important;
  overflow:hidden!important;
  z-index:90!important;
}

/* Tema visual Piremaxx: azul profundo, superfícies azuladas e relevo suave. */
:root {
  --piremaxx-navy: #17366f;
  --piremaxx-blue: #2f5a9e;
  --piremaxx-blue-dark: #102e67;
  --piremaxx-surface: #e7edf9;
  --piremaxx-panel: #f1f5fd;
  --piremaxx-line: #c7d3e8;
  --piremaxx-text: #193b78;
}

body:not(:has(.login-shell)), body:not(:has(.login-shell)) main,
body:not(:has(.login-shell)) .content, body:not(:has(.login-shell)) .dashboard,
body:not(:has(.login-shell)) .finance-content, body:not(:has(.login-shell)) .sales-content,
body:not(:has(.login-shell)) .purchase-content, body:not(:has(.login-shell)) .products-content,
body:not(:has(.login-shell)) .clients, body:not(:has(.login-shell)) .config-body {
  background: var(--piremaxx-surface) !important;
  color: var(--piremaxx-text);
}

body:not(:has(.login-shell)) .sidebar, body:not(:has(.login-shell)) .sidebar.shared-sidebar {
  background: var(--piremaxx-navy) !important;
}

body:not(:has(.login-shell)) .sidebar nav a.active,
body:not(:has(.login-shell)) .sidebar nav a:hover,
body:not(:has(.login-shell)) .sidebar.shared-sidebar nav a.active,
body:not(:has(.login-shell)) .sidebar.shared-sidebar nav a:hover {
  background: var(--piremaxx-blue-dark) !important;
}

body:not(:has(.login-shell)) .brand, body:not(:has(.login-shell)) .search {
  background: var(--piremaxx-panel) !important;
  color: var(--piremaxx-text) !important;
}

body:not(:has(.login-shell)) .titlebar, body:not(:has(.login-shell)) .clients-title,
body:not(:has(.login-shell)) .purchase-header, body:not(:has(.login-shell)) .dashboard-title,
body:not(:has(.login-shell)) .finance-title, body:not(:has(.login-shell)) .fleet-title,
body:not(:has(.login-shell)) .products-title, body:not(:has(.login-shell)) .reports-title,
body:not(:has(.login-shell)) .config-title, body:not(:has(.login-shell)) .panel h3 {
  background: var(--piremaxx-navy) !important;
  color: #fff !important;
}

body:not(:has(.login-shell)) .panel, body:not(:has(.login-shell)) .metric,
body:not(:has(.login-shell)) .finance-panel, body:not(:has(.login-shell)) .purchase-panel,
body:not(:has(.login-shell)) .client-panel, body:not(:has(.login-shell)) .product-panel {
  background: var(--piremaxx-panel) !important;
  border-color: var(--piremaxx-line) !important;
  box-shadow: 5px 5px 12px rgba(116, 139, 181, .22), -4px -4px 10px rgba(255,255,255,.78) !important;
}

body:not(:has(.login-shell)) input:not([type="checkbox"]):not([type="radio"]),
body:not(:has(.login-shell)) select, body:not(:has(.login-shell)) textarea {
  background: var(--piremaxx-surface) !important;
  border-color: var(--piremaxx-line) !important;
  color: var(--piremaxx-text) !important;
  box-shadow: inset 3px 3px 7px rgba(151, 171, 207, .28), inset -3px -3px 7px rgba(255,255,255,.8) !important;
}

body:not(:has(.login-shell)) .search button,
body:not(:has(.login-shell)) button.primary,
body:not(:has(.login-shell)) button.save,
body:not(:has(.login-shell)) .btn-primary {
  background: linear-gradient(145deg, var(--piremaxx-blue), var(--piremaxx-blue-dark)) !important;
  color: #fff !important;
}

/* Logo 1 (topo da barra lateral) fixa e idêntica */
html body .sidebar>.brand,
html body .sidebar.shared-sidebar .brand,
html body.standard-layout .sidebar .brand,
html body:has(.sales-content) .sidebar .brand,
html body:has(.purchase-content) .sidebar .brand,
html body:has(.clients) .sidebar .brand,
html body:has(.finance-page) .sidebar .brand,
html body:has(.products-topbar) .sidebar .brand,
html body.standard-layout:has(.sales-content) .sidebar .brand,
html body.standard-layout:has(.purchase-content) .sidebar .brand,
html body.standard-layout:has(.clients) .sidebar .brand{
  display:block!important;
  visibility:visible!important;
  width:143px!important;
  height:49px!important;
  min-height:49px!important;
  max-height:49px!important;
  margin:0!important;
  padding:0!important;
  background-color:#eee!important;
  background-image:none!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:auto 26px!important;
  font-size:0!important;
  color:transparent!important;
  box-sizing:border-box!important;
}
html body .sidebar>.brand strong,
html body .sidebar>.brand small{display:none!important}

/* Itens do menu lateral */
html body .sidebar nav,
html body .sidebar.shared-sidebar nav,
html body.standard-layout .sidebar nav{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
html body .sidebar nav a,
html body .sidebar.shared-sidebar nav a,
html body.standard-layout .sidebar nav a,
html body:has(.sales-content) .sidebar nav a,
html body:has(.purchase-content) .sidebar nav a,
html body:has(.clients) .sidebar nav a,
html body.standard-layout:has(.sales-content) .sidebar nav a,
html body.standard-layout:has(.purchase-content) .sidebar nav a,
html body.standard-layout:has(.clients) .sidebar nav a{
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  padding:9px 13px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  font-size:12px!important;
  line-height:13px!important;
  color:#fff!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
html body .sidebar nav a.active,
html body .sidebar nav a:hover{background:#263840!important}

/* Container principal alinhado ao menu e ao topo fixo */
html body main,
html body.standard-layout main,
html body:has(.sales-content) main,
html body:has(.purchase-content) main,
html body:has(.clients) main,
html body:has(.finance-page) main,
html body:has(.products-topbar) main,
html body .products-page,
html body.standard-layout:has(.sales-content) main,
html body.standard-layout:has(.purchase-content) main,
html body.standard-layout:has(.clients) main{
  margin-left:143px!important;
  width:calc(100% - 143px)!important;
  min-width:0!important;
  padding-top:98px!important;
  box-sizing:border-box!important;
}

/* Barra superior (topbar) fixa e idêntica em todas as guias */
html body main>.topbar,
html body main>.products-topbar,
html body .products-page>.products-topbar,
html body.standard-layout main>.topbar,
html body.standard-layout main>.products-topbar,
html body:has(.sales-content) main>.topbar,
html body:has(.purchase-content) main>.topbar,
html body:has(.clients) main>.topbar,
html body:has(.finance-page) main>.topbar,
html body:has(.products-topbar) main>.products-topbar,
html body.standard-layout:has(.sales-content) main>.topbar,
html body.standard-layout:has(.purchase-content) main>.topbar,
html body.standard-layout:has(.clients) main>.topbar{
  position:fixed!important;
  left:143px!important;
  top:0!important;
  width:calc(100% - 143px)!important;
  height:49px!important;
  min-height:49px!important;
  max-height:49px!important;
  padding:0 10px!important;
  margin:0!important;
  background-color:#0d315e!important;
  background-image:url('public/images/topo-textura-automotiva.svg?v=2')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  box-sizing:border-box!important;
  z-index:85!important;
}

/* Logo 2 (barra superior) fixa na mesma posição e tamanho em todas as guias */
html body .topbar .brand-mini,
html body .products-topbar .brand-mini,
html body.standard-layout .brand-mini,
html body:has(.dashboard) .brand-mini,
html body:has(.sales-content) .brand-mini,
html body:has(.purchase-content) .brand-mini,
html body:has(.clients) .brand-mini,
html body:has(.finance-page) .brand-mini,
html body.finance-page .topbar .brand-mini,
html body:has(.products-topbar) .brand-mini{
  display:block!important;
  width:133px!important;
  min-width:133px!important;
  max-width:133px!important;
  height:49px!important;
  min-height:49px!important;
  max-height:49px!important;
  flex:0 0 133px!important;
  margin:0!important;
  padding:0!important;
  background-color:transparent!important;
  background-image:url('public/logo.png')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:auto 26px!important;
  font-size:0!important;
  color:transparent!important;
  box-sizing:border-box!important;
}
html body .brand-mini strong,
html body .brand-mini small{display:none!important}

/* Caixa de pesquisa fixa na mesma posição e medida em todas as guias */
html body .topbar .search,
html body .products-topbar .products-search,
html body.standard-layout .search{
  width:288px!important;
  min-width:288px!important;
  max-width:288px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  flex:0 0 288px!important;
  margin:0 0 0 8px!important;
  padding:0 0 0 12px!important;
  background:#fff!important;
  color:#a0a0a0!important;
  font:12px/32px Arial,sans-serif!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
}
html body .topbar .search button,
html body .products-topbar .products-search button{
  float:none!important;
  width:67px!important;
  min-width:67px!important;
  max-width:67px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  flex:0 0 67px!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  border:0!important;
  background:#06b8bb!important;
  color:#fff!important;
  font:22px/32px Arial,sans-serif!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}

/* Usuário no topo direito */
html body .topbar .user,
html body .products-topbar .products-user,
html body .products-topbar .user{
  margin-left:auto!important;
  text-align:right!important;
  color:#496170!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  min-width:225px!important;
  padding:6px 46px 6px 8px!important;
  position:relative!important;
  line-height:15px!important;
  font-size:12px!important;
  cursor:pointer!important;
}
html body .topbar .user small,
html body .products-topbar .products-user small,
html body .products-topbar .user small{
  display:block!important;
  font-size:9px!important;
  color:#78878f!important;
}
html body .topbar .user:before,
html body .products-topbar .products-user:before{display:none!important}
html body .topbar .user-avatar,
html body .products-topbar .user-avatar{
  position:absolute!important;
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:32px!important;
  height:32px!important;
  border-radius:50%!important;
  background:linear-gradient(#f8f8f8 0 38%,#c9c9c9 39% 58%,#707070 59%)!important;
  box-shadow:0 0 0 1px #bfc5c8!important;
}
html body .topbar .user:after,
html body .products-topbar .products-user:after,
html body .products-topbar .user:after{
  content:'⌄'!important;
  position:absolute!important;
  right:2px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#66777d!important;
  font-size:12px!important;
}
html body .topbar .user-menu,
html body .products-topbar .user-menu{
  display:none;
  position:absolute;
  right:0;
  top:44px;
  width:190px;
  background:#344952;
  color:#fff;
  z-index:180;
  box-shadow:0 2px 5px #0004;
  text-align:left;
}
html body .topbar .user-menu.open,
html body .products-topbar .user-menu.open{display:block}
html body .topbar .user-menu a,
html body .products-topbar .user-menu a{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:10px 12px;
  border-bottom:1px solid #53666d;
  font-size:12px;
}
html body .topbar .user-menu a:hover,
html body .products-topbar .user-menu a:hover{background:#263840}

/* Barra de título da página fixa logo abaixo da topbar */
html body main>.titlebar,
html body main>.dashboard-title,
html body main>.finance-title,
html body main>.purchase-header,
html body main>.fleet-title,
html body main>.clients-title,
html body main>.products-title,
html body main>.reports-title,
html body main>.config-title{
  position:fixed!important;
  left:143px!important;
  top:49px!important;
  width:calc(100% - 143px)!important;
  height:49px!important;
  min-height:49px!important;
  max-height:49px!important;
  padding:0 14px!important;
  margin:0!important;
  background-color:#5e7d89!important;
  background-image:none!important;
  color:#fff!important;
  font-size:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
  opacity:1!important;
  z-index:80!important;
}

html body:has(.sales-content) .sales-content>.tabs,html body:has(.sales-content) .sales-content>.toolbar{opacity:1!important;background-color:#f2f3f4!important;background-image:none!important;isolation:isolate!important}
html body .client-tabs{display:flex!important;align-items:flex-start!important;height:38px!important;min-height:38px!important;border-bottom:1px solid #20a9a8!important;margin:0!important}
html body .client-tabs button{height:38px!important;min-height:38px!important;box-sizing:border-box!important;padding:10px 16px!important;margin:0 4px 0 0!important;border:0!important;border-radius:4px 4px 0 0!important;font-size:12px!important;line-height:18px!important}
.sidebar nav a.finance-link,.sidebar nav a[href="financeiro.html"]{position:relative!important;z-index:2!important;display:flex!important;width:100%!important;min-width:100%!important;box-sizing:border-box!important;align-items:center!important;cursor:pointer!important;pointer-events:auto!important}
.sidebar nav a.finance-link>*,.sidebar nav a[href="financeiro.html"]>*{pointer-events:none!important}
html body .products-page .products-content{padding-top:24px!important}
html body .products-page .product-tabs{position:relative!important;z-index:60!important;overflow:visible!important}

/* Formulários e modais abertos nunca ocultam o menu lateral (143px) nem o topo fixo (49px) */
html body .finance-form-overlay,
html body .transfer-form-overlay,
html body .recurrence-form-overlay,
html body .receipt-form-overlay,
html body .receipt-history-overlay,
html body .conciliation-upload-overlay,
html body .new-purchase,
html body .stock-adjust-modal,
html body .account-modal{
  left:143px!important;
  top:49px!important;
  right:0!important;
  bottom:0!important;
  width:calc(100% - 143px)!important;
  height:calc(100vh - 49px)!important;
  z-index:82!important;
}
html body .finance-form-overlay .finance-form-body,
html body .finance-form-overlay.payment-mode .finance-form-body{
  padding:28px 6% 32px!important;
  min-height:calc(100vh - 190px)!important;
  box-sizing:border-box!important;
}
html body .collection-modal,
html body .finance-print-dialog,
html body .contact-sheet,
html body .whatsapp-sale-modal,
html body .return-detail-modal,
html body .category-modal{
  left:143px!important;
  top:49px!important;
  right:0!important;
  bottom:0!important;
  width:calc(100% - 143px)!important;
  height:calc(100vh - 49px)!important;
  z-index:84!important;
}
html body .product-top,
html body .service-top,
html body .buyer-head{
  position:fixed!important;
  left:143px!important;
  top:49px!important;
  width:calc(100% - 143px)!important;
  z-index:80!important;
}
html body .sales-content>.tabs .tab,
html body .finance-tabs button,
html body .purchase-tabs .purchase-tab,
html body .client-tabs button,
html body .product-tabs button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}
html body .sales-tab-icon,
html body .finance-tab-icon,
html body .purchase-tab-icon,
html body .client-tabs button img,
html body .product-tabs button img{
  display:inline-block!important;
  width:15px!important;
  height:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  object-fit:contain!important;
  flex:0 0 15px!important;
  pointer-events:none!important;
}
html body .local-action-icon,
html body .finance-action-icon,
html body .purchase-action-icon,
html body .toolbar-icon{
  width:18px!important;
  height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  object-fit:contain!important;
}

/* ==========================================================================
   SISTEMA FLUIDO E ADAPTÁVEL PARA TABLETS E DISPOSITIVOS MÓVEIS (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  html body,
  html body.standard-layout {
    display: block !important;
  }

  /* Gaveta lateral deslizante (Off-Canvas Menu) */
  html body .sidebar,
  html body .sidebar.shared-sidebar,
  html body.standard-layout .sidebar,
  html body:has(.sales-content) .sidebar,
  html body:has(.purchase-content) .sidebar,
  html body:has(.clients) .sidebar,
  html body:has(.finance-page) .sidebar,
  html body:has(.products-topbar) .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 999 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
  }
  html body.mobile-menu-open .sidebar,
  html body.mobile-menu-open .sidebar.shared-sidebar {
    transform: translateX(0) !important;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35) !important;
  }
  html body .sidebar>.brand,
  html body .sidebar.shared-sidebar .brand {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
  html body .sidebar nav a,
  html body .sidebar.shared-sidebar nav a {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  /* Container Principal ocupando 100% da largura */
  html body main,
  html body.standard-layout main,
  html body.finance-page main,
  html body.fleet-page main,
  html body.pix-page main,
  html body.reports-page main,
  html body:has(.sales-content) main,
  html body:has(.purchase-content) main,
  html body:has(.clients) main,
  html body:has(.finance-page) main,
  html body:has(.products-topbar) main,
  html body.standard-layout:has(.sales-content) main,
  html body.standard-layout:has(.purchase-content) main,
  html body.standard-layout:has(.clients) main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
  }

  /* Topbar Mobile Fixa */
  html body main>.topbar,
  html body main>.products-topbar,
  html body.standard-layout main>.topbar,
  html body.standard-layout main>.products-topbar,
  html body.finance-page main>.topbar,
  html body.fleet-page main>.topbar,
  html body.pix-page main>.topbar,
  html body.reports-page main>.topbar,
  html body:has(.sales-content) main>.topbar,
  html body:has(.purchase-content) main>.topbar,
  html body:has(.clients) main>.topbar,
  html body:has(.finance-page) main>.topbar,
  html body.standard-layout:has(.sales-content) main>.topbar,
  html body.standard-layout:has(.purchase-content) main>.topbar,
  html body.standard-layout:has(.clients) main>.topbar {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 10px !important;
    z-index: 120 !important;
  }

  /* Barra de Título Fluida */
  html body main>.titlebar,
  html body main>.clients-title,
  html body main>.purchase-header,
  html body main>.dashboard-title,
  html body main>.finance-title,
  html body main>.fleet-title,
  html body main>.products-title,
  html body main>.reports-title,
  html body main>.config-title,
  html body .product-top,
  html body .service-top,
  html body .buyer-head {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    z-index: 40 !important;
  }

  /* Abas e Toolbars de Vendas, Financeiro, Contatos e Compras */
  html body:has(.sales-content) main>.sales-content:before {
    display: none !important;
  }
  html body:has(.sales-content) main>.sales-content {
    padding: 10px !important;
  }
  html body:has(.sales-content) main>.sales-content>.tabs,
  html body .client-tabs,
  html body .finance-tabs,
  html body .purchase-tabs,
  html body .product-tabs,
  html body .categories {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38px !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 4px !important;
  }
  html body:has(.sales-content) main>.sales-content>.toolbar,
  html body .toolbar,
  html body .client-toolbar,
  html body .finance-toolbar,
  html body .purchase-toolbar,
  html body .product-toolbar {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    padding: 10px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Sobreposições e Modais em Tela Cheia no Mobile */
  html body .finance-form-overlay,
  html body .transfer-form-overlay,
  html body .recurrence-form-overlay,
  html body .receipt-form-overlay,
  html body .receipt-history-overlay,
  html body .conciliation-upload-overlay,
  html body .new-purchase,
  html body .stock-adjust-modal,
  html body .account-modal,
  html body .user-modal-overlay,
  html body .collection-modal,
  html body .finance-print-dialog,
  html body .contact-sheet,
  html body .whatsapp-sale-modal,
  html body .return-detail-modal,
  html body .category-modal {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 230 !important;
  }
}

/* Aplicação final do tema Piremaxx após os estilos legados. */
body:not(:has(.login-shell)) { background: #e7edf9 !important; color: #193b78 !important; }
body:not(:has(.login-shell)) .sidebar,
body:not(:has(.login-shell)) .sidebar.shared-sidebar { background: #17366f !important; }
body:not(:has(.login-shell)) .sidebar nav a.active,
body:not(:has(.login-shell)) .sidebar nav a:hover,
body:not(:has(.login-shell)) .sidebar.shared-sidebar nav a.active,
body:not(:has(.login-shell)) .sidebar.shared-sidebar nav a:hover { background: #102e67 !important; }
body:not(:has(.login-shell)) .topbar,
body:not(:has(.login-shell)) .products-topbar { background: #f1f5fd !important; }
body:not(:has(.login-shell)) .titlebar,
body:not(:has(.login-shell)) .clients-title,
body:not(:has(.login-shell)) .purchase-header,
body:not(:has(.login-shell)) .dashboard-title,
body:not(:has(.login-shell)) .finance-title,
body:not(:has(.login-shell)) .fleet-title,
body:not(:has(.login-shell)) .products-title,
body:not(:has(.login-shell)) .reports-title,
body:not(:has(.login-shell)) .config-title { background: #17366f !important; }
body:not(:has(.login-shell)) .content,
body:not(:has(.login-shell)) .dashboard,
body:not(:has(.login-shell)) .finance-content,
body:not(:has(.login-shell)) .sales-content,
body:not(:has(.login-shell)) .purchase-content,
body:not(:has(.login-shell)) .products-content,
body:not(:has(.login-shell)) .clients,
body:not(:has(.login-shell)) .config-body { background: #e7edf9 !important; }
body:not(:has(.login-shell)) .panel,
body:not(:has(.login-shell)) .metric,
body:not(:has(.login-shell)) .finance-panel,
body:not(:has(.login-shell)) .purchase-panel,
body:not(:has(.login-shell)) .client-panel,
body:not(:has(.login-shell)) .product-panel { background: #f1f5fd !important; border-color: #c7d3e8 !important; }

/* A tela Pix usa a barra superior fixa e inicia o cabeçalho logo abaixo dela. */
html body.pix-page main { padding-top:49px !important; }

/* Novo topo visual: logo à esquerda e pneu central, mantendo busca e usuário. */
html body main>.topbar{
  background-color:#0d315e!important;
  background-image:url('public/images/topo-textura-automotiva.svg?v=2')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  overflow:visible!important;
  position:fixed!important;
  z-index:85!important;
}
html body:not(:has(.login-shell)) main>.topbar{
  background-color:#0d315e!important;
  background-image:url('public/images/topo-textura-automotiva.svg?v=2')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
html body .sidebar .brand{
  background-image:none!important;
  background-color:#123d72!important;
  color:transparent!important;
}
html body main>.topbar .brand-mini{
  width:210px!important;
  min-width:210px!important;
  height:49px!important;
  background-image:url('public/logo.png')!important;
  background-repeat:no-repeat!important;
  background-position:left center!important;
  background-size:196px auto!important;
  font-size:0!important;
  color:transparent!important;
}
html body main>.topbar .brand-mini{
  background-image:url('public/images/TOPO1.png')!important;
  background-position:left center!important;
  background-size:290px auto!important;
  background-repeat:no-repeat!important;
  mix-blend-mode:normal!important;
}
html body main>.topbar .brand-mini:after{display:none!important}
html body main>.topbar .brand-mini strong,
html body main>.topbar .brand-mini small{display:none!important}
html body main>.topbar:before{
  content:none!important;
  display:none!important;
}
html body main>.topbar .search,
html body main>.topbar .user{position:relative!important;z-index:3!important}
@media(max-width:768px){
  html body main>.topbar:before{display:none!important}
  html body main>.topbar .brand-mini{width:120px!important;min-width:120px!important;background-size:116px auto!important}
}

/* Cabeçalho azul no estilo da referência enviada com textura automotiva, rastro de pneu, mascote e perfil executivo. */
html body main>.topbar,
html body main>.products-topbar{
  background-color:#0d315e!important;
  background-image:url('public/images/topo-textura-automotiva.svg?v=2')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  overflow:visible!important;
}
html body main>.topbar .brand-mini,
html body main>.products-topbar .brand-mini,
html body main>.topbar .brand-mini.brand-mini,
html body main>.products-topbar .brand-mini.brand-mini{
  width:185px!important;
  min-width:185px!important;
  max-width:185px!important;
  height:49px!important;
  flex:0 0 185px!important;
  background-image:url('public/images/TOPO1.png')!important;
  background-position:left center!important;
  background-repeat:no-repeat!important;
  background-size:178px auto!important;
  mix-blend-mode:normal!important;
  font-size:0!important;
  color:transparent!important;
  position:relative!important;
}
html body main>.topbar .brand-mini:after,
html body main>.products-topbar .brand-mini:after{content:none!important;display:none!important}
html body .topbar .topbar-mascot,
html body .products-topbar .topbar-mascot{
  display:none!important;
}
html body main>.topbar .search,
html body main>.products-topbar .products-search,
html body main>.products-topbar .search{
  width:410px!important;
  min-width:260px!important;
  max-width:410px!important;
  height:34px!important;
  border-radius:18px!important;
  margin:0 auto!important;
  padding:0 0 0 14px!important;
  background:#fff!important;
  color:#193b78!important;
  box-shadow:0 2px 8px rgba(0,0,0,.22)!important;
  position:relative!important;
  overflow:visible!important;
  display:flex!important;
  align-items:center!important;
}
html body main>.topbar .search .topbar-search-input,
html body main>.products-topbar .products-search .topbar-search-input,
html body main>.products-topbar .search .topbar-search-input{
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  height:32px!important;
  border:0!important;
  outline:none!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#17366f!important;
  font-size:12.5px!important;
  font-weight:500!important;
  padding:0 6px 0 0!important;
  margin:0!important;
}
html body main>.topbar .search .topbar-search-input::placeholder,
html body main>.products-topbar .products-search .topbar-search-input::placeholder{
  color:#7c8fa8!important;
  font-weight:400!important;
}
html body main>.topbar .search .topbar-search-clear,
html body main>.products-topbar .products-search .topbar-search-clear{
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:24px!important;
  flex:0 0 24px!important;
  margin:0 4px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#e2eaf7!important;
  color:#1e468a!important;
  font-size:15px!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
html body main>.topbar .search .topbar-search-clear[hidden],
html body main>.products-topbar .products-search .topbar-search-clear[hidden]{
  display:none!important;
}
html body main>.topbar .search button.topbar-search-btn,
html body main>.products-topbar .products-search button.topbar-search-btn,
html body main>.topbar .search>button:not(.topbar-search-clear),
html body main>.products-topbar .products-search>button:not(.topbar-search-clear),
html body main>.products-topbar .search>button:not(.topbar-search-clear){
  border-radius:0 18px 18px 0!important;
  width:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  height:34px!important;
  flex:0 0 54px!important;
  margin:0!important;
  background:linear-gradient(135deg,#08b8bb 0%,#069699 100%)!important;
  color:#fff!important;
  font-size:18px!important;
  border:0!important;
  cursor:pointer!important;
}
html body .topbar .topbar-search-results,
html body .products-topbar .topbar-search-results{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:40px!important;
  background:#f1f5fd!important;
  border:1px solid #c7d3e8!important;
  border-radius:12px!important;
  box-shadow:0 16px 36px rgba(13,49,94,.34),0 4px 10px rgba(23,54,111,.18)!important;
  padding:6px!important;
  z-index:260!important;
  max-height:380px!important;
  overflow-y:auto!important;
  text-align:left!important;
}
html body .topbar .topbar-search-results[hidden],
html body .products-topbar .topbar-search-results[hidden]{
  display:none!important;
}
html body .topbar .topbar-search-head,
html body .products-topbar .topbar-search-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:7px 10px!important;
  margin:-6px -6px 6px -6px!important;
  background:linear-gradient(135deg,#17366f 0%,#102e67 100%)!important;
  color:#fff!important;
  border-radius:11px 11px 0 0!important;
  font-size:11.5px!important;
  font-weight:700!important;
}
html body .topbar .topbar-search-head small,
html body .products-topbar .topbar-search-head small{
  color:#bcd2f5!important;
  font-size:10px!important;
  font-weight:500!important;
}
html body .topbar .topbar-search-item,
html body .products-topbar .topbar-search-item{
  width:100%!important;
  border:0!important;
  background:transparent!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  text-align:left!important;
  cursor:pointer!important;
  color:#193b78!important;
  transition:background .14s ease!important;
}
html body .topbar .topbar-search-item:hover,
html body .products-topbar .topbar-search-item:hover{
  background:#dce7f9!important;
}
html body .topbar .topbar-search-badge,
html body .products-topbar .topbar-search-badge{
  font-size:9.5px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  padding:3px 7px!important;
  border-radius:6px!important;
  background:#17366f!important;
  color:#fff!important;
  flex:0 0 auto!important;
  min-width:58px!important;
  text-align:center!important;
}
html body .topbar .topbar-search-badge.product,
html body .products-topbar .topbar-search-badge.product{background:#0891b2!important}
html body .topbar .topbar-search-badge.contact,
html body .products-topbar .topbar-search-badge.contact{background:#2563eb!important}
html body .topbar .topbar-search-badge.sale,
html body .products-topbar .topbar-search-badge.sale{background:#0d9488!important}
html body .topbar .topbar-search-text,
html body .products-topbar .topbar-search-text{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
html body .topbar .topbar-search-text strong,
html body .products-topbar .topbar-search-text strong{
  font-size:12px!important;
  color:#102e67!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body .topbar .topbar-search-text small,
html body .products-topbar .topbar-search-text small{
  font-size:10.5px!important;
  color:#4b6794!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body .topbar .topbar-search-empty,
html body .products-topbar .topbar-search-empty{
  padding:12px 10px!important;
  font-size:12px!important;
  color:#35558a!important;
  line-height:1.45!important;
}
html body main>.topbar .user,
html body main>.products-topbar .products-user,
html body main>.products-topbar .user{
  margin-left:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:auto!important;
  padding:4px 26px 4px 8px!important;
  text-align:left!important;
  color:#fff!important;
  position:relative!important;
}
html body .topbar .user-avatar,
html body .products-topbar .user-avatar{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  transform:none!important;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:50%!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23ffffff'/%3E%3Cpath d='M12 64 C13 48 21 43 32 43 C43 43 51 48 52 64 Z' fill='%231e293b'/%3E%3Cpolygon points='26,43 32,57 38,43' fill='%23e2e8f0'/%3E%3Cpolygon points='30,45 32,43 34,45 33,58 32,60 31,58' fill='%2338bdf8'/%3E%3Crect x='28' y='35' width='8' height='10' rx='3' fill='%23e0ac8b'/%3E%3Cpath d='M21 24 C21 16 25 12 32 12 C39 12 43 16 43 24 C43 32 38 38 32 38 C26 38 21 32 21 24 Z' fill='%23eab898'/%3E%3Cpath d='M20 23 C20 14 25 10 32 10 C39 10 44 14 44 22 C42 18 39 16 33 16 C26 16 22 18 20 23 Z' fill='%231e1b18'/%3E%3C/svg%3E")!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  box-shadow:0 2px 6px rgba(0,0,0,.28)!important;
}
html body main>.topbar .user .user-info,
html body main>.products-topbar .user .user-info{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  text-align:left!important;
  line-height:1.25!important;
}
html body main>.topbar .user .user-info b,
html body main>.products-topbar .user .user-info b{
  font-size:13px!important;
  font-weight:500!important;
  color:#fff!important;
  letter-spacing:.2px!important;
}
html body main>.topbar .user small,
html body main>.products-topbar .user small{
  color:#d9e6f3!important;
  font-size:9.5px!important;
  margin-top:1px!important;
}
html body .topbar .user:after,
html body .products-topbar .products-user:after,
html body .products-topbar .user:after{
  content:'⌄'!important;
  position:absolute!important;
  right:6px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#fff!important;
  font-size:15px!important;
}
html body .topbar .user-menu,
html body .products-topbar .user-menu{
  display:none!important;
  position:absolute!important;
  right:0!important;
  top:52px!important;
  width:258px!important;
  background:#f1f5fd!important;
  color:#193b78!important;
  border:1px solid #c7d3e8!important;
  border-radius:12px!important;
  padding:6px!important;
  z-index:220!important;
  box-shadow:0 14px 32px rgba(16,46,103,.32),0 4px 10px rgba(23,54,111,.16)!important;
  text-align:left!important;
  overflow:hidden!important;
}
html body .topbar .user-menu.open,
html body .products-topbar .user-menu.open{display:block!important}
html body .topbar .user-menu .user-menu-head,
html body .products-topbar .user-menu .user-menu-head{
  background:linear-gradient(135deg,#17366f 0%,#102e67 100%)!important;
  color:#fff!important;
  padding:10px 12px!important;
  margin:-6px -6px 6px -6px!important;
  border-bottom:1px solid #2b4f8c!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:10px!important;
}
html body .topbar .user-menu .user-menu-head-avatar,
html body .products-topbar .user-menu .user-menu-head-avatar{
  position:relative!important;
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  border-radius:50%!important;
  border:2px solid rgba(255,255,255,.85)!important;
  background-color:#fff!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  padding:0!important;
  cursor:pointer!important;
  box-shadow:0 2px 6px rgba(0,0,0,.28)!important;
}
html body .topbar .user-menu .user-menu-cam-badge,
html body .products-topbar .user-menu .user-menu-cam-badge{
  position:absolute!important;
  right:-2px!important;
  bottom:-2px!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:#08b8bb!important;
  color:#fff!important;
  border:1.5px solid #102e67!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body .topbar .user-menu .user-menu-head-text,
html body .products-topbar .user-menu .user-menu-head-text{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:0!important;
}
html body .topbar .user-menu .user-menu-head strong,
html body .products-topbar .user-menu .user-menu-head strong{
  font-size:12.5px!important;
  font-weight:700!important;
  color:#fff!important;
  letter-spacing:.2px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body .topbar .user-menu .user-menu-head span,
html body .products-topbar .user-menu .user-menu-head span{
  font-size:10.5px!important;
  color:#bcd2f5!important;
  font-weight:500!important;
}
html body .topbar .user-menu .user-menu-avatar-section,
html body .products-topbar .user-menu .user-menu-avatar-section{
  background:#e5eefb!important;
  border:1px solid #cddbf0!important;
  border-radius:9px!important;
  padding:8px!important;
  margin-bottom:6px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}
html body .topbar .user-menu .user-menu-upload-btn,
html body .products-topbar .user-menu .user-menu-upload-btn{
  width:100%!important;
  height:30px!important;
  border:1px solid #2b549a!important;
  border-radius:7px!important;
  background:linear-gradient(135deg,#244d92 0%,#17366f 100%)!important;
  color:#fff!important;
  font-size:11.5px!important;
  font-weight:700!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  cursor:pointer!important;
  box-shadow:0 2px 5px rgba(23,54,111,.22)!important;
  transition:filter .15s ease,transform .12s ease!important;
}
html body .topbar .user-menu .user-menu-upload-btn:hover,
html body .products-topbar .user-menu .user-menu-upload-btn:hover{
  filter:brightness(1.1)!important;
}
html body .topbar .user-menu .user-menu-presets-row,
html body .products-topbar .user-menu .user-menu-presets-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:5px!important;
}
html body .topbar .user-menu .user-menu-presets-label,
html body .products-topbar .user-menu .user-menu-presets-label{
  font-size:10.5px!important;
  font-weight:700!important;
  color:#35558a!important;
}
html body .topbar .user-menu .avatar-preset-btn,
html body .products-topbar .user-menu .avatar-preset-btn{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  border-radius:50%!important;
  border:2px solid #fff!important;
  background-color:#fff!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  padding:0!important;
  cursor:pointer!important;
  box-shadow:0 1px 3px rgba(16,46,103,.25)!important;
  transition:transform .12s ease,border-color .12s ease!important;
}
html body .topbar .user-menu .avatar-preset-btn:hover,
html body .products-topbar .user-menu .avatar-preset-btn:hover{
  transform:scale(1.08)!important;
}
html body .topbar .user-menu .avatar-preset-btn.active,
html body .products-topbar .user-menu .avatar-preset-btn.active{
  border-color:#08b8bb!important;
  box-shadow:0 0 0 2px rgba(8,184,187,.32)!important;
}
html body .topbar .user-menu .avatar-reset-btn,
html body .products-topbar .user-menu .avatar-reset-btn{
  height:22px!important;
  padding:0 7px!important;
  border:1px solid #b9cbe6!important;
  border-radius:5px!important;
  background:#f8fbff!important;
  color:#2b4f8c!important;
  font-size:10px!important;
  font-weight:700!important;
  cursor:pointer!important;
}
html body .topbar .user-menu .avatar-reset-btn:hover,
html body .products-topbar .user-menu .avatar-reset-btn:hover{
  background:#dce7f9!important;
}
html body .topbar .user-menu a,
html body .products-topbar .user-menu a{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:#193b78!important;
  background:transparent!important;
  text-decoration:none!important;
  padding:8px 10px!important;
  border-bottom:0!important;
  border-radius:8px!important;
  font-size:12.5px!important;
  font-weight:600!important;
  transition:background .15s ease,color .15s ease,transform .12s ease!important;
}
html body .topbar .user-menu a .user-menu-ico,
html body .products-topbar .user-menu a .user-menu-ico{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  border-radius:7px!important;
  background:#e1ebf9!important;
  color:#1e468a!important;
  transition:background .15s ease,color .15s ease!important;
}
html body .topbar .user-menu a:hover,
html body .products-topbar .user-menu a:hover{
  background:#dce7f9!important;
  color:#102e67!important;
}
html body .topbar .user-menu a:hover .user-menu-ico,
html body .products-topbar .user-menu a:hover .user-menu-ico{
  background:#17366f!important;
  color:#fff!important;
}
html body .topbar .user-menu a[data-logout-link],
html body .products-topbar .user-menu a[data-logout-link]{
  margin-top:4px!important;
  padding-top:9px!important;
  border-top:1px solid #d5e0f2!important;
  border-radius:0 0 8px 8px!important;
  color:#b91c1c!important;
}
html body .topbar .user-menu a[data-logout-link] .user-menu-ico,
html body .products-topbar .user-menu a[data-logout-link] .user-menu-ico{
  background:#fee2e2!important;
  color:#dc2626!important;
}
html body .topbar .user-menu a[data-logout-link]:hover,
html body .products-topbar .user-menu a[data-logout-link]:hover{
  background:#fee2e2!important;
  color:#991b1b!important;
}
html body .topbar .user-menu a[data-logout-link]:hover .user-menu-ico,
html body .products-topbar .user-menu a[data-logout-link]:hover .user-menu-ico{
  background:#dc2626!important;
  color:#fff!important;
}
@media(max-width:768px){
  html body .topbar .topbar-mascot,
  html body .products-topbar .topbar-mascot{display:none!important}
  html body main>.topbar .brand-mini,
  html body main>.products-topbar .brand-mini{width:96px!important;min-width:96px!important;max-width:96px!important;flex:0 0 96px!important;background-size:94px auto!important}
  html body main>.topbar .search,
  html body main>.products-topbar .products-search,
  html body main>.products-topbar .search{width:auto!important;min-width:0!important;max-width:none!important;flex:1 1 0!important}
  html body main>.topbar .user,
  html body main>.products-topbar .products-user,
  html body main>.products-topbar .user{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;flex:0 0 38px!important;padding:0!important;margin:0 0 0 auto!important;justify-content:center!important}
  html body main>.topbar .user .user-info,
  html body main>.products-topbar .user .user-info{display:none!important}
  html body .topbar .user-menu,
  html body .products-topbar .user-menu{position:fixed!important;top:calc(54px + env(safe-area-inset-top, 0px))!important;right:8px!important;left:auto!important;width:min(272px, calc(100vw - 16px))!important;max-height:calc(100vh - 118px)!important;overflow-y:auto!important;z-index:9999!important}
}

/* Abas do Pix seguem o azul padrão do sistema. */
html body.pix-page .pix-tabs{border-bottom-color:#1b2886!important}
html body.pix-page .pix-tabs button.active{background:#1b2886!important}

/* Padrão único do cabeçalho: ocupa também o antigo espaço da marca lateral. */
@media (min-width:769px){
  html body .sidebar.shared-sidebar,
  html body .sidebar{top:49px!important;height:calc(100vh - 49px)!important;min-height:calc(100vh - 49px)!important}
  html body .sidebar.shared-sidebar .brand,
  html body .sidebar .brand{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;background-image:none!important}
  html body main>.topbar,
  html body main>.products-topbar{left:0!important;width:100%!important;z-index:85!important}
}
