/**
 * Overrides do painel cliente (header.twig inline + componentes)
 */

html[data-brand="blue"] #block_342 .component-navbar-nav-link__navbar-public:hover,
html[data-brand="yellow"] #block_342 .component-navbar-nav-link__navbar-public:hover,
html[data-brand="red"] #block_342 .component-navbar-nav-link__navbar-public:hover,
html[data-brand="blue"] #block_342 .component-navbar-public-brand,
html[data-brand="yellow"] #block_342 .component-navbar-public-brand,
html[data-brand="red"] #block_342 .component-navbar-public-brand,
html[data-brand="blue"] #block_342 .component-navbar-public-brand a,
html[data-brand="yellow"] #block_342 .component-navbar-public-brand a,
html[data-brand="red"] #block_342 .component-navbar-public-brand a,
html[data-brand="blue"] #block_342 .navbar-brand span,
html[data-brand="yellow"] #block_342 .navbar-brand span,
html[data-brand="red"] #block_342 .navbar-brand span {
  color: var(--brand-accent) !important;
}

html[data-brand="blue"] .body .component_private_sidebar .component-sidebar_wrapper,
html[data-brand="yellow"] .body .component_private_sidebar .component-sidebar_wrapper,
html[data-brand="red"] .body .component_private_sidebar .component-sidebar_wrapper,
html[data-brand="blue"] .body .component_private_sidebar .component-sidebar,
html[data-brand="yellow"] .body .component_private_sidebar .component-sidebar,
html[data-brand="red"] .body .component_private_sidebar .component-sidebar,
html[data-brand="blue"] .body .component_private_sidebar .component-sidebar__menu-wrapper,
html[data-brand="yellow"] .body .component_private_sidebar .component-sidebar__menu-wrapper,
html[data-brand="red"] .body .component_private_sidebar .component-sidebar__menu-wrapper,
html[data-brand="blue"] .body .component_private_sidebar .sidebar-block__left,
html[data-brand="yellow"] .body .component_private_sidebar .sidebar-block__left,
html[data-brand="red"] .body .component_private_sidebar .sidebar-block__left {
  background: var(--brand-sidebar-grad) !important;
}

html[data-brand="blue"] .component-sidebar__menu-item-link.active,
html[data-brand="yellow"] .component-sidebar__menu-item-link.active,
html[data-brand="red"] .component-sidebar__menu-item-link.active,
html[data-brand="blue"] .component-sidebar__menu-item-link:hover,
html[data-brand="yellow"] .component-sidebar__menu-item-link:hover,
html[data-brand="red"] .component-sidebar__menu-item-link:hover,
html[data-brand="blue"] .sidebar-menu__link.active,
html[data-brand="yellow"] .sidebar-menu__link.active,
html[data-brand="red"] .sidebar-menu__link.active,
html[data-brand="blue"] .sidebar-menu__link:hover,
html[data-brand="yellow"] .sidebar-menu__link:hover,
html[data-brand="red"] .sidebar-menu__link:hover {
  color: var(--brand-accent-light, var(--primary-light)) !important;
}

html[data-brand="blue"] .sg-user__trigger,
html[data-brand="yellow"] .sg-user__trigger,
html[data-brand="red"] .sg-user__trigger,
html[data-brand="blue"] .sg-balance,
html[data-brand="yellow"] .sg-balance,
html[data-brand="red"] .sg-balance,
html[data-brand="blue"] .sg-user__panel a:hover i,
html[data-brand="yellow"] .sg-user__panel a:hover i,
html[data-brand="red"] .sg-user__panel a:hover i,
html[data-brand="blue"] .component-navbar-nav-link:hover,
html[data-brand="yellow"] .component-navbar-nav-link:hover,
html[data-brand="red"] .component-navbar-nav-link:hover {
  color: var(--brand-accent-2) !important;
}

html[data-brand="blue"] .sg-user__avatar,
html[data-brand="yellow"] .sg-user__avatar,
html[data-brand="red"] .sg-user__avatar,
html[data-brand="blue"] .sg-btn--primary,
html[data-brand="yellow"] .sg-btn--primary,
html[data-brand="red"] .sg-btn--primary,
html[data-brand="blue"] .component-button__primary,
html[data-brand="yellow"] .component-button__primary,
html[data-brand="red"] .component-button__primary,
html[data-brand="blue"] .btn-primary,
html[data-brand="yellow"] .btn-primary,
html[data-brand="red"] .btn-primary,
html[data-brand="blue"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line,
html[data-brand="yellow"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line,
html[data-brand="red"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line,
html[data-brand="blue"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:before,
html[data-brand="yellow"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:before,
html[data-brand="red"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:before,
html[data-brand="blue"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:after,
html[data-brand="yellow"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:after,
html[data-brand="red"] .component-navbar__navbar-private .navbar-burger.is-active .navbar-burger-line:after {
  background: var(--brand-accent) !important;
}

html[data-brand="blue"] .sg-btn--outline,
html[data-brand="yellow"] .sg-btn--outline,
html[data-brand="red"] .sg-btn--outline {
  color: var(--brand-accent-2) !important;
  border-color: var(--brand-accent-2) !important;
}

html[data-brand="blue"] .sg-mobile-nav,
html[data-brand="yellow"] .sg-mobile-nav,
html[data-brand="red"] .sg-mobile-nav,
html[data-brand="blue"] .sg-drawer,
html[data-brand="yellow"] .sg-drawer,
html[data-brand="red"] .sg-drawer {
  background: var(--brand-sidebar-grad) !important;
}

html[data-brand="blue"] .sg-mobile-nav__link.is-active,
html[data-brand="yellow"] .sg-mobile-nav__link.is-active,
html[data-brand="red"] .sg-mobile-nav__link.is-active,
html[data-brand="blue"] .sg-drawer__link.is-active,
html[data-brand="yellow"] .sg-drawer__link.is-active,
html[data-brand="red"] .sg-drawer__link.is-active {
  background: var(--brand-btn-grad) !important;
}

html[data-brand="blue"] .form-control:focus,
html[data-brand="yellow"] .form-control:focus,
html[data-brand="red"] .form-control:focus,
html[data-brand="blue"] .component-form__control:focus,
html[data-brand="yellow"] .component-form__control:focus,
html[data-brand="red"] .component-form__control:focus,
html[data-brand="blue"] select:focus,
html[data-brand="yellow"] select:focus,
html[data-brand="red"] select:focus,
html[data-brand="blue"] textarea:focus,
html[data-brand="yellow"] textarea:focus,
html[data-brand="red"] textarea:focus,
html[data-brand="blue"] input:focus,
html[data-brand="yellow"] input:focus,
html[data-brand="red"] input:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 2px var(--brand-accent) !important;
}

html[data-brand="blue"] .component-tabs__item.active,
html[data-brand="yellow"] .component-tabs__item.active,
html[data-brand="red"] .component-tabs__item.active,
html[data-brand="blue"] .nav-tabs .active a,
html[data-brand="yellow"] .nav-tabs .active a,
html[data-brand="red"] .nav-tabs .active a {
  color: var(--brand-accent-2) !important;
  border-color: var(--brand-accent-2) !important;
}

html[data-brand="blue"] .progress-bar,
html[data-brand="yellow"] .progress-bar,
html[data-brand="red"] .progress-bar,
html[data-brand="blue"] .component-progress__bar,
html[data-brand="yellow"] .component-progress__bar,
html[data-brand="red"] .component-progress__bar {
  background: var(--brand-btn-grad) !important;
}

html[data-brand="blue"] .component-badge--primary,
html[data-brand="yellow"] .component-badge--primary,
html[data-brand="red"] .component-badge--primary,
html[data-brand="blue"] .badge-primary,
html[data-brand="yellow"] .badge-primary,
html[data-brand="red"] .badge-primary {
  background: var(--brand-accent-soft) !important;
  color: var(--brand-accent-2) !important;
}

html[data-brand="blue"] body.admin-login-page,
html[data-brand="yellow"] body.admin-login-page,
html[data-brand="red"] body.admin-login-page {
  background: var(--brand-hero-grad) !important;
}

html[data-brand="blue"] body.admin-login-page .login-card button[type="submit"],
html[data-brand="yellow"] body.admin-login-page .login-card button[type="submit"],
html[data-brand="red"] body.admin-login-page .login-card button[type="submit"] {
  background: var(--brand-btn-grad) !important;
}

html[data-brand="blue"] body.admin-login-page .form-control:focus,
html[data-brand="yellow"] body.admin-login-page .form-control:focus,
html[data-brand="red"] body.admin-login-page .form-control:focus {
  border-color: var(--brand-accent) !important;
}

html[data-brand="blue"] body.admin-login-page label i,
html[data-brand="yellow"] body.admin-login-page label i,
html[data-brand="red"] body.admin-login-page label i {
  color: var(--brand-accent) !important;
}

html[data-brand="blue"] .sb-tab:hover,
html[data-brand="yellow"] .sb-tab:hover,
html[data-brand="red"] .sb-tab:hover {
  border-color: var(--brand-accent) !important;
  color: var(--brand-accent-2) !important;
}

html[data-brand="blue"] .sb-tab.is-active,
html[data-brand="yellow"] .sb-tab.is-active,
html[data-brand="red"] .sb-tab.is-active {
  background: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
}

.brand-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 992px) {
  .brand-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-theme-grid {
    grid-template-columns: 1fr;
  }
}

.brand-theme-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}

.brand-theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brand-theme-card__inner {
  border: 2px solid #E9E8F0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.brand-theme-card:hover .brand-theme-card__inner {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(25, 24, 43, 0.08);
}

.brand-theme-card input:checked + .brand-theme-card__inner {
  border-color: var(--adm-primary, #7138E8);
  box-shadow: 0 0 0 3px rgba(113, 56, 232, 0.14);
}

.brand-theme-card__preview {
  height: 120px;
  position: relative;
}

.brand-theme-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.brand-theme-card__footer {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-theme-card__footer strong {
  font-size: 15px;
  color: #19182B;
}

.brand-theme-card__footer span {
  font-size: 12px;
  color: #77768A;
  line-height: 1.45;
}

/* Painel logado — saldo, menu hambúrguer e indicadores */
html[data-brand] .navbar .navbar-burger-line,
html[data-brand] .navbar .navbar-burger-line::before,
html[data-brand] .navbar .navbar-burger-line::after,
html[data-brand] .component_private_navbar .navbar-burger-line,
html[data-brand] .component_private_navbar .navbar-burger-line::before,
html[data-brand] .component_private_navbar .navbar-burger-line::after,
html[data-brand] .nb-toggle__bar {
  background: var(--brand-accent) !important;
}

html[data-brand] .nb-toggle__label {
  color: var(--brand-accent) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-balance-bar {
  background: var(--brand-balance-bg) !important;
  border-color: var(--brand-balance-border) !important;
  box-shadow: var(--brand-balance-shadow) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-balance-bar:hover {
  border-color: var(--brand-balance-border-rail) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-balance-bar .fa-money-bill-wave,
html[data-brand] .body .component_private_sidebar .sidebar-balance-bar .fa-wallet {
  color: var(--brand-balance-icon) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-balance-value {
  color: var(--brand-balance-value) !important;
}

html[data-brand] .body.sidebar-collapsed .component_private_sidebar .sidebar-balance-bar,
html[data-brand] .body.mobile-menu-open .component_private_sidebar .sidebar-balance-bar {
  background: var(--brand-balance-bg-rail) !important;
  border-color: var(--brand-balance-border-rail) !important;
}

html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-active > .component-sidebar__menu-item-link,
html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-active > .component-sidebar__menu-item-link:hover {
  background: var(--brand-menu-active-bg) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-active > .component-sidebar__menu-item-link::before,
html[data-brand] .body .component_private_sidebar .sidebar-net.is-open > .component-sidebar__menu-item-link::before,
html[data-brand] .body .component_private_sidebar .sidebar-neworder-btn.is-active::before {
  background: var(--brand-menu-active-grad) !important;
  box-shadow: var(--brand-menu-active-glow) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-neworder-btn,
html[data-brand] .body .component_private_sidebar .sidebar-neworder-btn:hover {
  background: var(--brand-neworder-bg) !important;
  box-shadow: var(--brand-neworder-shadow) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-net.is-open > .component-sidebar__menu-item-link,
html[data-brand] .body .component_private_sidebar .sidebar-net--chip.is-open > .component-sidebar__menu-item-link,
html[data-brand] .body.sidebar-collapsed .component_private_sidebar .sidebar-net.is-open > .component-sidebar__menu-item-link,
html[data-brand] .body.sidebar-collapsed .component_private_sidebar .sidebar-net--chip.is-open > .component-sidebar__menu-item-link {
  background: var(--brand-net-open-bg) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-sec__label {
  color: var(--brand-sidebar-sec-color) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-nets-wrap {
  background: var(--brand-nets-wrap-bg) !important;
  border-color: var(--brand-nets-wrap-border) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-net--chip > .component-sidebar__menu-item-link:hover {
  background: var(--brand-chip-hover-bg) !important;
  border-color: var(--brand-chip-hover-border) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-net--chip > .component-sidebar__menu-item-link > i:first-child {
  color: var(--brand-chip-icon-color) !important;
}

html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-link:hover {
  background: var(--brand-link-hover-bg) !important;
  color: #fff !important;
}

html[data-brand] .desktop-net-flyout {
  background: var(--brand-flyout-bg) !important;
}

html[data-brand] .desktop-net-flyout__list a:hover {
  background: var(--brand-flyout-hover-bg) !important;
  color: #fff !important;
}

html[data-brand] .mobile-net-flyout {
  background: var(--brand-flyout-bg) !important;
  border-color: var(--brand-nets-wrap-border) !important;
}

html[data-brand] .mobile-net-flyout__list a:hover,
html[data-brand] .mobile-net-flyout__list a:active,
html[data-brand] .mobile-net-flyout__list a.is-active {
  background: var(--brand-flyout-hover-bg) !important;
  border-color: var(--brand-chip-hover-border) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-child-menu::before,
html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li::before {
  background: var(--brand-child-line) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li::after {
  background: var(--brand-child-dot) !important;
  box-shadow: 0 0 0 2px var(--brand-child-dot-ring) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li.is-current::after,
html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li:hover::after {
  background: #fff !important;
  box-shadow: 0 0 0 2px var(--brand-accent) !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-child-menu a:hover,
html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li.is-current > a,
html[data-brand] .body .component_private_sidebar .sidebar-child-menu a.is-active {
  background: var(--brand-child-hover-bg) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .sidebar-child-menu > li:has(a.is-active)::after {
  background: var(--brand-child-active-dot) !important;
  box-shadow: 0 0 0 2px var(--brand-accent) !important;
}

html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-active .component-sidebar__menu-item-link .badge,
html[data-brand] .body .component_private_sidebar .component-sidebar__menu-item-active > .component-sidebar__menu-item-link .badge {
  background: var(--brand-accent) !important;
}

html[data-brand] .lp-footer {
  background: var(--lp-footer-bg) !important;
}

html[data-brand] .lp-footer::before {
  background: var(--lp-footer-glow) !important;
}

html[data-brand] .sg-user__btn:hover,
html[data-brand] .sg-user.is-open .sg-user__btn {
  color: var(--brand-accent-2) !important;
}

html[data-brand] .sg-user__btn:hover .sg-user__home,
html[data-brand] .sg-user.is-open .sg-user__btn .sg-user__home,
html[data-brand] .sg-user__btn:hover .sg-user__caret,
html[data-brand] .sg-user.is-open .sg-user__btn .sg-user__caret {
  color: inherit !important;
}

html[data-brand] .sidebar-footer-bar {
  background: var(--brand-footer-bg) !important;
  border-top-color: color-mix(in srgb, var(--brand-accent) 12%, transparent) !important;
}

html[data-brand] .sg-user__panel a:hover,
html[data-brand] .sg-user__panel a.is-danger:hover {
  background: var(--brand-surface-soft) !important;
  color: var(--brand-accent-2) !important;
}

html[data-brand] .sg-user__panel a:hover i {
  color: var(--brand-accent) !important;
}

html[data-brand] .sidebar-footer-bar a:hover {
  background: var(--brand-sidebar-footer-hover) !important;
  color: #fff !important;
}

html[data-brand] .body .component_private_sidebar .component-sidebar_wrapper,
html[data-brand] .body .component_private_sidebar .component-sidebar,
html[data-brand] .body .component_private_sidebar .component-sidebar__menu-wrapper,
html[data-brand] .body .component_private_sidebar .sidebar-block__left {
  background: var(--brand-sidebar-grad) !important;
}

html[data-brand] .dash-page {
  background: var(--d-bg);
}

html[data-brand] .dash-stat {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--d-primary) 6%, transparent);
}

html[data-brand] .dash-card {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--d-primary) 6%, transparent);
}
