:root {
	--ath-primary: #071B45;
	--ath-accent: #F47A20;
	--ath-list-header: #D4A62A;
	--ath-list-header-text: #071B45;
	--ath-title: #071B45;
	--ath-nav-text: #FFFFFF;
	--ath-nav-text-rgb: 255, 255, 255;
	--ath-nav-muted: rgba(255, 255, 255, .86);
	--ath-nav-glass: rgba(255, 255, 255, .14);
	--ath-nav-glass-strong: rgba(255, 255, 255, .20);
	--ath-nav-icon-bg: rgba(255, 255, 255, .15);
	--ath-nav-border: rgba(255, 255, 255, .18);
	--ath-menu-text: #FFFFFF;
	--ath-menu-text-muted: rgba(255, 255, 255, .86);
	--ath-topbar-text: #FFFFFF;
	--ath-topbar-icon: #FFFFFF;
	--ath-menu-hover-text: #FFFFFF;
	--ath-menu-active-text: #FFFFFF;

	--ath-primary-rgb: 7, 27, 69;
	--ath-accent-rgb: 244, 122, 32;
	--ath-list-header-rgb: 212, 166, 42;
	--ath-title-rgb: 7, 27, 69;

	--ath-primary-soft: rgba(7, 27, 69, .12);
	--ath-accent-soft: rgba(244, 122, 32, .14);
	--ath-list-header-soft: rgba(212, 166, 42, .18);

	--ath-success: #16A34A;
	--ath-danger: #DC2626;
	--ath-warning: #F59E0B;
	--ath-info: #29B6F6;

	--ath-sidebar-bg: linear-gradient(180deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 40%, rgba(0,0,0,.72) 100%);
	--ath-sidebar-active: linear-gradient(135deg, var(--ath-accent), var(--ath-primary));
	--ath-sidebar-item-gradient: linear-gradient(135deg, rgba(0,0,0,.70), rgba(var(--ath-primary-rgb), .75));
	--ath-topbar-bg: linear-gradient(90deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 45%, rgba(0,0,0,.72) 100%);
	--ath-premium-gradient: linear-gradient(135deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .92) 45%, rgba(0,0,0,.72) 100%);
	--ath-premium-gradient-soft: linear-gradient(135deg, rgba(var(--ath-primary-rgb), .92) 0%, rgba(var(--ath-list-header-rgb), .72) 100%);
	--ath-premium-gradient-hover: linear-gradient(135deg, rgba(var(--ath-primary-rgb), .96) 0%, rgba(var(--ath-accent-rgb), .92) 100%);
	--ath-card-premium: var(--ath-premium-gradient);
	--ath-card-border: rgba(var(--ath-primary-rgb), .16);

	/* Legacy variables mapping for compatibility */
	--sas-primary: var(--ath-primary);
	--sas-accent: var(--ath-accent);
	--sas-header: var(--ath-list-header);
	--premium-primary: var(--ath-primary);
	--premium-primary-2: rgba(var(--ath-primary-rgb), .94);
	--premium-primary-3: var(--ath-list-header);
	--premium-gold: var(--ath-list-header);
	--premium-gold-light: rgba(var(--ath-list-header-rgb), .72);
	--premium-orange: var(--ath-accent);
	--premium-dark: var(--ath-title);
	--premium-gray: rgba(var(--ath-title-rgb), .62);
	--premium-bg: #f6f8fc;
	--premium-border: rgba(var(--ath-primary-rgb), .14);
	--premium-black: #071B45;
	--premium-brown: var(--ath-primary);
	--premium-cyan: var(--ath-accent);
	--premium-text-primary: var(--ath-title);
	--premium-text-secondary: rgba(var(--ath-title-rgb), .62);
	--premium-bg-subtle: rgba(var(--ath-primary-rgb), .06);
	--premium-border-color: rgba(var(--ath-primary-rgb), .14);
	--premium-shadow-sm: 0 8px 18px rgba(var(--ath-primary-rgb), .08);
	--premium-shadow-md: 0 14px 32px rgba(var(--ath-primary-rgb), .12);
	--ad-primary: var(--ath-primary);
	--ad-orange: var(--ath-accent);
	--ad-gold: var(--ath-list-header);
	--ad-card-premium: var(--ath-card-premium);
	--ad-navy: var(--ath-primary);
	--ad-bg: rgba(var(--ath-list-header-rgb), .04);
	--ad-card-bg: #ffffff;
	--ad-text-secondary: rgba(var(--ath-primary-rgb), .54);
}

body {
	color: var(--ath-title) !important;
}

.main-sidebar, .app-sidebar, .sidebar, .side-menu {
	background: var(--ath-sidebar-bg) !important;
	background-image: var(--ath-sidebar-bg) !important;
	color: var(--ath-nav-text) !important;
}

.side-menu__item.active, .slide.is-expanded .side-menu__item, .main-sidebar .active>a, .app-sidebar .active>a {
	background: var(--ath-sidebar-item-gradient) !important;
	background-image: var(--ath-sidebar-item-gradient) !important;
	color: var(--ath-nav-text) !important;
}

.side-menu__item:hover {
	background: var(--ath-sidebar-item-gradient) !important;
	background-image: var(--ath-sidebar-item-gradient) !important;
	color: var(--ath-nav-text) !important;
}

.main-header, .app-header, .header, .navbar, .ath-topbar {
	background: var(--ath-topbar-bg) !important;
	background-image: var(--ath-topbar-bg) !important;
	color: var(--ath-nav-text) !important;
}

.btn-primary, .btn.btn-primary, .btn-primary-light, .btn.btn-primary-light, .ad-btn-primary, .ad-btn.ad-btn-primary, .church-access-btn, .btn-search, .btn-buscar, .dataTables_filter button, .ripple.btn-primary, .btn-orange, .btn-info, .btn.btn-info {
	background: linear-gradient(135deg, var(--ath-primary), var(--ath-accent)) !important;
	border-color: var(--ath-primary) !important;
	color: #fff !important;
}

.btn-primary i, .btn.btn-primary i, .btn-primary-light i, .btn-primary-light i, .ad-btn-primary i, .ad-btn.ad-btn-primary i, .church-access-btn i, .btn-search i, .btn-buscar i, .dataTables_filter button i, .ripple.btn-primary i, .btn-orange i, .btn-info i, .btn.btn-info i {
	color: #fff !important;
}

.btn-success, .btn.btn-success, .badge.bg-success, .badge-success, .bg-success {
	background-color: var(--ath-success) !important;
	border-color: var(--ath-success) !important;
	color: #fff !important;
}

.btn-warning, .btn.btn-warning, .btn-warning-light, .btn.btn-warning-light, .btn-accent, .badge.bg-primary, .badge-primary, .badge.bg-warning, .bg-primary, .bg-warning, .bg-orange, .status-badge {
	background: var(--ath-accent) !important;
	border-color: var(--ath-accent) !important;
	color: #fff !important;
}

.btn-warning i, .btn.btn-warning i, .btn-warning-light i, .btn-warning-light i, .btn-accent i, .badge.bg-primary i, .badge-primary i, .badge.bg-warning i, .bg-primary i, .bg-warning i, .bg-orange i, .status-badge i {
	color: #fff !important;
}

.btn-info, .btn.btn-info, .badge.bg-info, .badge-info, .bg-info {
	background-color: var(--ath-info) !important;
	border-color: var(--ath-info) !important;
	color: #fff !important;
}

.btn-outline-primary, .btn.btn-outline-primary {
	color: var(--ath-primary) !important;
	border-color: var(--ath-primary) !important;
}

.btn-outline-primary:hover, .btn.btn-outline-primary:hover {
	background: var(--ath-primary) !important;
	color: #fff !important;
}

.card, .ad-kpi-card, .church-card, .home-info-box, .home-chart-card, .img7-card, .img7-summary, .img7-chart-card {
	border-color: var(--ath-card-border) !important;
}

.card-header, .ad-module-header, .home-info-head, .modal-header {
	background: var(--ath-premium-gradient) !important;
	color: #fff !important;
}

.modal-header .modal-title, .modal-header h1, .modal-header h2, .modal-header h3, .modal-header h4, .modal-header h5 {
	color: #fff !important;
}

.card-title, .main-content-title, .page-title, .ad-module-header h1, .ath-page h1, .ath-page h2, .ath-page h3, .ath-sas-dashboard h1, .ath-sas-dashboard h2, .ath-panel-home h1, .ath-panel-home h2, .bi-block-header h3, .cont-page-title, .ebd-shell h1, .ebd-shell h2, .ebd-shell h3, .ebd-shell h4, .ebd-shell h5, .page-title, .ath-title {
	color: var(--ath-title) !important;
}

.ad-kpi-card__icon-box, .ad-kpi-card__small-icon-box, .ath-directory-title-icon, .input-group-text i {
	color: var(--ath-accent) !important;
}

.ad-kpi-card__icon-box, .ath-directory-title-icon {
	background: var(--ath-premium-gradient-hover) !important;
	color: #fff !important;
}

.table thead th, .dataTable thead th, .ad-table thead th, .sas-thead-highlight th {
	background: var(--ath-list-header-soft) !important;
	border-color: rgba(var(--ath-list-header-rgb), .45) !important;
	color: #1f2937 !important;
}

.form-control:focus, .form-select:focus, .select2-container--default .select2-selection--single:focus, .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--ath-primary) !important;
	box-shadow: 0 0 0 .2rem var(--ath-primary-soft) !important;
}

a, .text-primary {
	color: var(--ath-primary);
}

.badge-primary {
	background-color: var(--ath-accent) !important;
	color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--ath-primary) !important;
	border-color: var(--ath-primary) !important;
	color: #fff !important;
}

.ath-premium-hero {
	background: var(--ath-premium-gradient) !important;
	color: #fff !important;
}

.main-sidebar-sticky, .main-sidemenu, .app-sidebar .side-menu {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ath-nav-text) !important;
}

.main-sidebar-header {
	background: transparent !important;
	border-bottom: 2px solid rgba(255,255,255,.18) !important;
	border-right: 2px solid rgba(255,255,255,.32) !important;
	box-shadow: 8px 0 18px rgba(0,0,0,.10) !important;
}

.main-sidebar-header.active, .main-sidebar-header .header-logo, .main-sidebar-header .header-logo.active, .main-sidebar-header .header-logo:hover, .main-sidebar-header .header-logo:focus {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.main-sidebar-header .header-logo::before, .main-sidebar-header .header-logo::after {
	display: none !important;
	content: none !important;
}

.side-menu .slide, .side-menu .slide.active, .side-menu .slide.active.is-expanded, .side-menu .slide.is-expanded {
	background: transparent !important;
	background-color: transparent !important;
}

.side-menu:has(.slide.is-expanded) .slide.active:not(.is-expanded) > .side-menu__item {
	background: transparent !important;
	box-shadow: none !important;
	border-color: transparent !important;
	transform: none !important;
}

.side-menu:has(.slide.is-expanded) .slide.active:not(.is-expanded) > .side-menu__item::before {
	opacity: 0 !important;
}

/* ========================================== */
/* ATH PREMIUM DYNAMIC DESIGN SYSTEM OVERRIDES */
/* ========================================== */

/* FASE 1 - CARDS PREMIUM */
.card, .card-box, .dashboard-card, .widget-card, .small-box, .metric-card, .stat-card, .panel-card, .info-card, .resumo-card, .ad-kpi-card, .premium-card-resumo {
    background: #ffffff !important;
    border: 1px solid rgba(var(--ath-primary-rgb), 0.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.card:hover, .card-box:hover, .dashboard-card:hover, .widget-card:hover, .small-box:hover, .metric-card:hover, .stat-card:hover, .panel-card:hover, .info-card:hover, .resumo-card:hover, .ad-kpi-card:hover, .premium-card-resumo:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(var(--ath-primary-rgb), 0.12) !important;
}

.card::after, .card-box::after, .dashboard-card::after, .widget-card::after, .small-box::after, .metric-card::after, .stat-card::after, .panel-card::after, .info-card::after, .resumo-card::after, .ad-kpi-card::after, .premium-card-resumo::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(39, 196, 188, 0.05) 0%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.card-header, .panel-heading, .box-header, .ad-kpi-card__head, .premium-card-head {
    background: var(--ath-card-premium) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(var(--ath-primary-rgb), 0.12) !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 2 !important;
}

.card-header *, .panel-heading *, .box-header *, .ad-kpi-card__head *, .premium-card-head * {
    color: #ffffff !important;
}

.card-icon-box, .info-box-icon, .small-box .icon, .ad-kpi-card__icon-box, .ad-kpi-card__small-icon-box, .premium-card-icon {
    background: linear-gradient(135deg, var(--ath-accent), rgba(var(--ath-accent-rgb), .85)) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(var(--ath-accent-rgb), 0.25) !important;
    border-radius: 14px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* FASE 2 - HERO HEADERS */
.ad-module-header, .page-header, .breadcrumb-header, .ath-premium-hero, .hero-header, .module-header, .membros-topo {
    background: var(--ath-premium-gradient) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 24px 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 24px !important;
}

.ad-module-header h1, .page-header h1, .breadcrumb-header h1, .ath-premium-hero h1, .hero-header h1, .module-header h1, .membros-topo h1, .membros-topo h2,
.ad-module-header .main-content-title, .page-header .main-content-title, .breadcrumb-header .main-content-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.ad-module-header p, .page-header p, .breadcrumb-header p, .ath-premium-hero p, .hero-header p, .module-header p, .membros-topo p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
}

.ad-module-header__icon, .hero-icon, .page-header-icon, .membros-topo-icone {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    width: 54px !important;
    height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.ad-module-header__actions .btn, .page-header-actions .btn, .hero-actions .btn, .membros-topo-actions .btn,
.ad-btn-primary, .ad-btn-secondary, .btn-topo-membros {
    border-radius: 14px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.ad-module-header__actions .btn-primary, .page-header-actions .btn-primary, .membros-topo-actions .btn-primary,
.ad-btn-primary, .btn-topo-principal {
    background: #ffffff !important;
    color: var(--ath-primary) !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.ad-module-header__actions .btn-primary:hover, .page-header-actions .btn-primary:hover, .membros-topo-actions .btn-primary:hover,
.ad-btn-primary:hover, .btn-topo-principal:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 25px rgba(0,0,0,0.15) !important;
}

/* FASE 3 - MENU LATERAL E SUBMENUS */
.sidebar-item, .sidebar-link, .side-menu__item, .slide-item, .submenu a, .nav-link {
    color: var(--ath-nav-text) !important;
    transition: all 0.2s ease !important;
}

.sidebar-item:hover, .sidebar-link:hover, .side-menu__item:hover, .slide-item:hover, .submenu a:hover, .nav-link:hover {
    background: linear-gradient(135deg, var(--ath-accent), rgba(var(--ath-accent-rgb), .85)) !important;
    color: var(--ath-nav-text) !important;
}

.sidebar-item.active, .sidebar-link.active, .side-menu__item.active, .slide.active > .side-menu__item, .slide.is-expanded > .side-menu__item, .slide-item.active, .submenu .active a, .nav-link.active {
    background: var(--ath-sidebar-active) !important;
    color: var(--ath-nav-text) !important;
    box-shadow: 0 8px 20px rgba(var(--ath-primary-rgb), 0.2) !important;
    border-color: transparent !important;
}

.sidebar-item.active *, .sidebar-link.active *, .side-menu__item.active *, .slide.active > .side-menu__item *, .slide.is-expanded > .side-menu__item *, .slide-item.active *, .submenu .active a *, .nav-link.active * {
    color: var(--ath-nav-text) !important;
}

.sidebar-item i, .sidebar-link i, .side-menu__item i, .slide-item i, .submenu i, .dropdown-item i, .nav-link i,
.side-menu__icon, .side-menu__item > i {
    color: var(--ath-nav-text) !important;
}

.app-sidebar, .main-sidebar, .sidebar {
    background: var(--ath-sidebar-bg) !important;
    background-image: var(--ath-sidebar-bg) !important;
    border-right: 1px solid var(--ath-nav-border) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
}

.submenu, .slide-menu {
    background: var(--ath-nav-glass) !important;
    border: 1px solid var(--ath-nav-border) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 12px 28px rgba(var(--ath-primary-rgb), .18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.main-header .nav-link,
.main-header .header-icon-svgs,
.main-header i,
.main-header svg,
.premium-top-center,
.premium-top-center *,
.header-igreja-pill,
.header-igreja-pill *,
.profile-user,
.profile-user * {
    color: var(--ath-nav-text) !important;
    fill: var(--ath-nav-text) !important;
}

.premium-top-center,
.header-igreja-pill,
.main-header .new.nav-link,
.main-header .profile-user,
.main-header .dropdown-toggle {
    background: var(--ath-nav-glass) !important;
    border-color: var(--ath-nav-border) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 22px rgba(var(--ath-primary-rgb), .14) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.main-header .new.nav-link:hover,
.main-header .dropdown-toggle:hover,
.header-igreja-pill:hover {
    background: var(--ath-nav-glass-strong) !important;
}

.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(var(--ath-primary-rgb), 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* FASE 6 - PUBLIC CARDS OVERRIDES */
.company-card {
  border: 1px solid rgba(var(--ath-accent-rgb), 0.72) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(var(--ath-accent-rgb), 0.05) 100%) !important;
}

.company-card:hover {
  border-color: var(--ath-accent) !important;
}

.company-card-banner {
  background: var(--ath-card-premium) !important;
}

.company-card-action {
  background: var(--ath-card-premium) !important;
}

html body .app-sidebar,
html body .main-sidebar,
html body .sidebar,
html body .side-menu,
html body .app-sidebar__user,
html body .main-sidebar-header,
html body .left-side-menu,
html body .sidebar-left,
html body .main-sidemenu,
html body .main-sidebar-sticky {
    background: linear-gradient(180deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 40%, rgba(0,0,0,.72) 100%) !important;
    background-image: linear-gradient(180deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 40%, rgba(0,0,0,.72) 100%) !important;
}

html body .app-header,
html body .main-header,
html body .main-navbar,
html body .navbar,
html body .header,
html body .topbar,
html body .hor-header,
html body .jumps-prevent,
html body .page-header,
html body .sticky-pin,
html body .main-header-left,
html body .main-header-right,
html body .side-header,
html body .main-header .main-container {
    background: linear-gradient(90deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 45%, rgba(0,0,0,.72) 100%) !important;
    background-image: linear-gradient(90deg, var(--ath-primary) 0%, rgba(var(--ath-primary-rgb), .88) 45%, rgba(0,0,0,.72) 100%) !important;
}

html body .side-menu__item.active,
html body .side-menu__item:hover,
html body .slide.active > .side-menu__item,
html body .slide.is-expanded > .side-menu__item,
html body .slide-item.active,
html body .slide-item:hover,
html body .menu-item.active,
html body .menu-item:hover {
    background: linear-gradient(135deg, rgba(0,0,0,.70), rgba(var(--ath-primary-rgb), .75)) !important;
    background-image: linear-gradient(135deg, rgba(0,0,0,.70), rgba(var(--ath-primary-rgb), .75)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

html body .app-sidebar a,
html body .main-sidebar a,
html body .side-menu__item,
html body .side-menu__label,
html body .slide-item,
html body .sidebar a,
html body .sidebar span,
html body .submenu a {
    color: var(--ath-menu-text) !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

html body .app-sidebar i,
html body .main-sidebar i,
html body .side-menu__icon,
html body .sidebar i {
    color: var(--ath-menu-text) !important;
}

html body .side-menu__item.active,
html body .side-menu__item:hover,
html body .slide.active > .side-menu__item,
html body .slide.is-expanded > .side-menu__item,
html body .slide-item.active,
html body .slide-item:hover,
html body .sidebar a.active,
html body .sidebar a:hover {
    background: linear-gradient(135deg, rgba(0,0,0,.72), rgba(var(--ath-primary-rgb), .75)) !important;
    background-image: linear-gradient(135deg, rgba(0,0,0,.72), rgba(var(--ath-primary-rgb), .75)) !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

html body .side-menu__item.active *,
html body .side-menu__item:hover *,
html body .slide.active > .side-menu__item *,
html body .slide.is-expanded > .side-menu__item *,
html body .slide-item.active *,
html body .slide-item:hover *,
html body .sidebar a.active *,
html body .sidebar a:hover * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

html body .app-header,
html body .app-header *,
html body .main-header,
html body .main-header *,
html body .topbar,
html body .topbar *,
html body .navbar,
html body .navbar * {
    color: var(--ath-topbar-text) !important;
    fill: var(--ath-topbar-text) !important;
    font-weight: 800 !important;
}

html body .app-header .nav-link,
html body .main-header .nav-link,
html body .topbar .nav-link,
html body .navbar .nav-link {
    color: var(--ath-topbar-icon) !important;
    fill: var(--ath-topbar-icon) !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
}

html body .app-header .header-icons .new.nav-link,
html body .main-header .header-icons .new.nav-link,
html body .topbar .header-icons .new.nav-link,
html body .navbar .header-icons .new.nav-link,
html body .app-header .full-screen-link,
html body .main-header .full-screen-link,
html body .app-header .profile-user,
html body .main-header .profile-user {
    color: var(--ath-topbar-icon) !important;
    fill: var(--ath-topbar-icon) !important;
    background: var(--ath-nav-glass) !important;
    border: 1px solid var(--ath-nav-border) !important;
    border-radius: 14px !important;
}

html body .app-header .header-icons .new.nav-link:hover,
html body .main-header .header-icons .new.nav-link:hover,
html body .app-header .header-icons .new.nav-link:focus,
html body .main-header .header-icons .new.nav-link:focus {
    background: var(--ath-nav-glass-strong) !important;
}

html body .app-header .header-icons .new.nav-link i,
html body .main-header .header-icons .new.nav-link i,
html body .app-header .header-icons .new.nav-link svg,
html body .main-header .header-icons .new.nav-link svg,
html body .app-header .header-icons .new.nav-link svg *,
html body .main-header .header-icons .new.nav-link svg * {
    color: var(--ath-topbar-icon) !important;
    fill: currentColor !important;
}

html body .app-header .header-badge,
html body .main-header .header-badge,
html body .topbar .header-badge,
html body .navbar .header-badge {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    font-weight: 900 !important;
}

html body .app-header .dropdown-menu,
html body .main-header .dropdown-menu,
html body .topbar .dropdown-menu,
html body .navbar .dropdown-menu {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #071B45 !important;
    border: 1px solid rgba(7,27,69,.10) !important;
    box-shadow: 0 20px 48px rgba(7,27,69,.18) !important;
}

html body .app-header .dropdown-menu *,
html body .main-header .dropdown-menu *,
html body .topbar .dropdown-menu *,
html body .navbar .dropdown-menu * {
    color: #071B45 !important;
    fill: #071B45 !important;
}

html body .app-header .dropdown-menu .dropdown-item:hover,
html body .main-header .dropdown-menu .dropdown-item:hover,
html body .topbar .dropdown-menu .dropdown-item:hover,
html body .navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(var(--ath-primary-rgb), .08) !important;
}

/* ATH Premium global retrofit for legacy filial pages */
html body .panel,
html body .box,
html body .card,
html body .card-premium,
html body .card-premium-body,
html body .table-premium-container,
html body .premium-table-wrap,
html body .ad-table-container,
html body .dataTables_wrapper,
html body .modal-content,
html body .swal2-popup {
    border: 1px solid rgba(var(--ath-primary-rgb), .14) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 46px rgba(var(--ath-primary-rgb), .10) !important;
}

html body .panel-heading,
html body .box-header,
html body .card-header,
html body .modal-header,
html body .premium-card-head,
html body .ad-kpi-card__head,
html body .table-card-header {
    background: var(--ath-premium-gradient) !important;
    background-image: var(--ath-premium-gradient) !important;
    color: #FFFFFF !important;
    border-color: rgba(var(--ath-primary-rgb), .18) !important;
}

html body .panel-heading *,
html body .box-header *,
html body .card-header *,
html body .modal-header *,
html body .premium-card-head *,
html body .ad-kpi-card__head *,
html body .table-card-header * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

html body table.table,
html body table.dataTable,
html body .premium-table,
html body .table-premium,
html body .reunioes-premium-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    color: var(--ath-title) !important;
}

html body table.table thead th,
html body table.dataTable thead th,
html body .premium-table thead th,
html body .table-premium thead th,
html body .table-bordered thead th,
html body .table-striped thead th,
html body .dt-responsive thead th,
html body .reunioes-premium-table thead th {
    background: var(--ath-list-header) !important;
    background-image: linear-gradient(135deg, var(--ath-list-header), rgba(var(--ath-list-header-rgb), .82)) !important;
    color: var(--ath-list-header-text) !important;
    border-color: rgba(var(--ath-list-header-rgb), .36) !important;
    font-weight: 900 !important;
}

html body table.table thead th *,
html body table.dataTable thead th *,
html body .premium-table thead th *,
html body .table-premium thead th *,
html body .table-bordered thead th *,
html body .table-striped thead th *,
html body .dt-responsive thead th * {
    color: var(--ath-list-header-text) !important;
    fill: var(--ath-list-header-text) !important;
}

html body table.table tbody tr,
html body table.dataTable tbody tr,
html body .premium-table tbody tr,
html body .table-premium tbody tr {
    background: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(var(--ath-primary-rgb), .045) !important;
}

html body table.table tbody tr:hover,
html body table.dataTable tbody tr:hover,
html body .premium-table tbody tr:hover,
html body .table-premium tbody tr:hover {
    background: rgba(var(--ath-primary-rgb), .055) !important;
    box-shadow: 0 14px 28px rgba(var(--ath-primary-rgb), .10) !important;
}

html body .btn-primary,
html body .btn-success,
html body .btn-info,
html body .btn-warning,
html body .btn-default,
html body .btn-secondary,
html body .btn-premium,
html body .premium-actions-btn,
html body .premium-action-btn,
html body .ad-btn,
html body .btn-topo-membros,
html body .swal2-confirm,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ath-premium-gradient-hover) !important;
    background-image: var(--ath-premium-gradient-hover) !important;
    border-color: rgba(var(--ath-primary-rgb), .28) !important;
    color: #FFFFFF !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 26px rgba(var(--ath-primary-rgb), .18) !important;
}

html body .btn-primary *,
html body .btn-success *,
html body .btn-info *,
html body .btn-warning *,
html body .btn-default *,
html body .btn-secondary *,
html body .btn-premium *,
html body .premium-actions-btn *,
html body .premium-action-btn *,
html body .ad-btn *,
html body .btn-topo-membros *,
html body .swal2-confirm * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

html body .btn-danger,
html body .btn.btn-danger,
html body .swal2-deny,
html body .swal2-cancel {
    border-radius: 14px !important;
    font-weight: 900 !important;
}

html body .form-control,
html body .form-select,
html body .select2-container--default .select2-selection--single,
html body textarea,
html body input[type="text"],
html body input[type="email"],
html body input[type="number"],
html body input[type="date"],
html body input[type="password"] {
    border: 1px solid rgba(var(--ath-primary-rgb), .14) !important;
    border-radius: 14px !important;
    color: var(--ath-title) !important;
    box-shadow: none !important;
}

html body .form-control:focus,
html body .form-select:focus,
html body textarea:focus,
html body input:focus,
html body .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--ath-primary) !important;
    box-shadow: 0 0 0 .22rem rgba(var(--ath-primary-rgb), .14) !important;
}

html body .modal-dialog {
    max-width: min(96vw, 1180px) !important;
}

html body .modal-content {
    overflow: hidden !important;
    background: #FFFFFF !important;
}

html body .modal-body {
    color: var(--ath-title) !important;
}

html body .modal-footer {
    border-top: 1px solid rgba(var(--ath-primary-rgb), .10) !important;
    background: linear-gradient(180deg, #FFFFFF, rgba(var(--ath-primary-rgb), .035)) !important;
}

html body .dropdown-menu:not(.main-header .dropdown-menu):not(.app-header .dropdown-menu),
html body .premium-dropdown {
    border: 1px solid rgba(var(--ath-primary-rgb), .12) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px rgba(var(--ath-primary-rgb), .14) !important;
}

html body .dropdown-item:hover,
html body .dropdown-item:focus {
    background: rgba(var(--ath-primary-rgb), .08) !important;
    color: var(--ath-primary) !important;
}

html body .badge-primary,
html body .badge.bg-primary,
html body .badge-info,
html body .badge.bg-info,
html body .badge-warning,
html body .badge.bg-warning,
html body .badge-premium {
    background: var(--ath-premium-gradient-hover) !important;
    color: #FFFFFF !important;
    border-color: rgba(var(--ath-primary-rgb), .18) !important;
}

html body .ad-module-header,
html body .ath-premium-hero,
html body .page-header,
html body .breadcrumb-header,
html body .hero-header,
html body .module-header,
html body .membros-topo {
    background: var(--ath-premium-gradient) !important;
    background-image: var(--ath-premium-gradient) !important;
    color: #FFFFFF !important;
}

html body .ad-module-header *,
html body .ath-premium-hero *,
html body .page-header *,
html body .breadcrumb-header *,
html body .hero-header *,
html body .module-header *,
html body .membros-topo * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}