:root {
	--gold: #D4AF37;
	--navy: #050b1a;
	--navy-light: #0c2b5b;
	--offwhite: #F4F4F4;
	--slate: #64748b;
	--dark-text: #1e293b;
	--tier-0: #8B0000;    /* Vermelho Sangue (Abaixo do mínimo) */
	--tier-80: #d97706;   /* Laranja (Quase lá) */
	--tier-100: #059669;  /* Verde (Meta batida) */
	--tier-125: #2563eb;  /* Azul Royal (Superação) */
	--tier-150: #7c3aed;  /* Roxo (Elite/Fora da curva) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	background-color: var(--offwhite);
	color: var(--dark-text);
	font-family: 'Oswald', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.5); border-radius: 4px; }

/* --- FAIXA DE AMBIENTE (staging / homologação) --- */
:root {
	--fe-os-banner-h: 0px;
	--fe-trial-banner-h: 0px;
	--fe-super-adm-banner-h: 0px;
	--fe-os-banners-total-h: 0px;
	--fe-os-navbar-h: 65px;
}

#fe-os-ambiente-banner {
	display: none;
	width: 100%;
	flex-shrink: 0;
	background: linear-gradient(90deg, #d97706, #fbbf24);
	color: #02050d;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	padding: 7px 12px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	z-index: 10001;
}

/* Staging: a cada 15s fica vermelho por 3s e volta ao âmbar */
@keyframes fe-os-staging-banner-blink {
	0%, 20% {
		background: linear-gradient(90deg, #b91c1c, #ef4444);
		color: #ffffff;
		box-shadow: 0 2px 16px rgba(185, 28, 28, 0.55);
	}
	22%, 100% {
		background: linear-gradient(90deg, #d97706, #fbbf24);
		color: #02050d;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	}
}

body.fe-os-staging-layout #fe-os-ambiente-banner {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000002;
	animation: fe-os-staging-banner-blink 15s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	body.fe-os-staging-layout #fe-os-ambiente-banner {
		animation: none;
	}
}

body.fe-os-staging-layout #muralha-login-screen {
	top: var(--fe-os-banner-h, 32px) !important;
	height: calc(100vh - var(--fe-os-banner-h, 32px)) !important;
}

body.fe-os-staging-layout .navbar {
	top: var(--fe-os-banners-total-h, var(--fe-os-banner-h, 32px));
}

body.fe-os-staging-layout .app-container {
	margin-top: calc(var(--fe-os-navbar-h, 65px) + var(--fe-os-banners-total-h, var(--fe-os-banner-h, 32px)));
	height: calc(100vh - var(--fe-os-navbar-h, 65px) - var(--fe-os-banners-total-h, var(--fe-os-banner-h, 32px)));
}

/* --- FAIXA SUPER_ADM (dentro de base) --- */
#fe-super-adm-banner {
	display: none;
	width: 100%;
	flex-shrink: 0;
	background: linear-gradient(90deg, #581c87, #7c3aed);
	color: #f8fafc;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	padding: 8px 12px;
	letter-spacing: 0.6px;
	box-shadow: 0 2px 10px rgba(88, 28, 135, 0.35);
	z-index: 10000001;
}

body.fe-os-super-adm-ativo #fe-super-adm-banner {
	position: fixed;
	top: var(--fe-os-banner-h, 0px);
	left: 0;
	right: 0;
}

body.fe-os-super-adm-base .navbar {
	top: calc(var(--fe-os-banner-h, 0px) + var(--fe-super-adm-banner-h, 36px));
}

body.fe-os-super-adm-base .app-container {
	margin-top: calc(var(--fe-os-navbar-h, 65px) + var(--fe-os-banner-h, 0px) + var(--fe-super-adm-banner-h, 36px));
	height: calc(100vh - var(--fe-os-navbar-h, 65px) - var(--fe-os-banner-h, 0px) - var(--fe-super-adm-banner-h, 0px));
}

body.fe-os-staging-layout.fe-os-super-adm-base .navbar {
	top: var(--fe-os-banners-total-h, calc(var(--fe-os-banner-h, 32px) + var(--fe-super-adm-banner-h, 36px)));
}

body.fe-os-staging-layout.fe-os-super-adm-base .app-container {
	margin-top: calc(var(--fe-os-navbar-h, 65px) + var(--fe-os-banners-total-h, calc(var(--fe-os-banner-h, 32px) + var(--fe-super-adm-banner-h, 36px))));
	height: calc(100vh - var(--fe-os-navbar-h, 65px) - var(--fe-os-banners-total-h, calc(var(--fe-os-banner-h, 32px) + var(--fe-super-adm-banner-h, 36px))));
}

/* --- FAIXA TRIAL (aviso de licença) --- */
#fe-os-trial-banner,
.fe-os-trial-banner {
	display: none;
	width: 100%;
	flex-shrink: 0;
	background: linear-gradient(90deg, #d97706, #fbbf24);
	color: #02050d;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	padding: 7px 12px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	z-index: 100000015;
}

#fe-os-trial-banner.fe-trial-banner--critico {
	background: linear-gradient(90deg, #991b1b, #dc2626);
	color: #fff;
}

body.fe-os-trial-layout #fe-os-trial-banner {
	display: block;
	position: fixed;
	top: var(--fe-os-banner-h, 0px);
	left: 0;
	right: 0;
}

body.fe-os-trial-layout .navbar {
	top: calc(var(--fe-os-banner-h, 0px) + var(--fe-trial-banner-h, 32px) + var(--fe-super-adm-banner-h, 0px));
}

body.fe-os-trial-layout .app-container {
	margin-top: calc(var(--fe-os-navbar-h, 65px) + var(--fe-os-banner-h, 0px) + var(--fe-trial-banner-h, 32px) + var(--fe-super-adm-banner-h, 0px));
	height: calc(100vh - var(--fe-os-navbar-h, 65px) - var(--fe-os-banner-h, 0px) - var(--fe-trial-banner-h, 32px) - var(--fe-super-adm-banner-h, 0px));
}

body.fe-os-staging-layout.fe-os-trial-layout .navbar,
body.fe-os-staging-layout.fe-os-trial-layout.fe-os-super-adm-base .navbar {
	top: var(--fe-os-banners-total-h);
}

body.fe-os-staging-layout.fe-os-trial-layout .app-container,
body.fe-os-staging-layout.fe-os-trial-layout.fe-os-super-adm-base .app-container {
	margin-top: calc(var(--fe-os-navbar-h, 65px) + var(--fe-os-banners-total-h));
	height: calc(100vh - var(--fe-os-navbar-h, 65px) - var(--fe-os-banners-total-h));
}

body.fe-os-super-adm-ativo #fe-super-adm-banner {
	top: calc(var(--fe-os-banner-h, 0px) + var(--fe-trial-banner-h, 0px));
}

/* --- BLOQUEIO DE LICENÇA --- */
.fe-license-lock-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000050;
	background: rgba(2, 5, 13, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.fe-license-lock-card {
	max-width: 440px;
	width: 100%;
	background: linear-gradient(180deg, #0f172a 0%, #02050d 100%);
	border: 1px solid rgba(239, 68, 68, 0.45);
	border-top: 4px solid #dc2626;
	border-radius: 14px;
	padding: 32px 28px;
	text-align: center;
	color: #e2e8f0;
	box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}
.fe-license-lock-icon {
	width: 64px; height: 64px; margin: 0 auto 16px;
	border-radius: 16px;
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(248, 113, 113, 0.35);
	display: flex; align-items: center; justify-content: center;
	color: #f87171; font-size: 26px;
}
.fe-license-lock-card h2 {
	font-family: 'Cinzel', serif;
	font-size: 22px;
	color: #fff;
	margin: 0 0 12px;
	text-transform: uppercase;
}
.fe-license-lock-card p {
	font-family: 'Merriweather', serif;
	font-size: 13px;
	line-height: 1.55;
	color: #94a3b8;
	margin: 0 0 10px;
}
.fe-license-lock-btn {
	margin-top: 18px;
	padding: 12px 22px;
	border: none;
	border-radius: 8px;
	background: #dc2626;
	color: #fff;
	font-family: 'Oswald', sans-serif;
	font-weight: bold;
	font-size: 13px;
	text-transform: uppercase;
	cursor: pointer;
	letter-spacing: 0.6px;
}

.fe-super-adm-eyebrow {
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	color: #7c3aed;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1.2;
}
.fe-super-adm-eyebrow i {
	font-size: 14px;
}
.fe-super-adm-eyebrow__ver {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	letter-spacing: 0.6px;
	font-weight: 800;
	color: #6d28d9;
	background: #f5f3ff;
	border: 1px solid #c4b5fd;
	border-radius: 999px;
	padding: 2px 9px;
	margin-left: 2px;
}
.fe-super-adm-dev-btn {
	padding: 10px 14px;
	border-radius: 8px;
	border: 1.5px dashed #a855f7;
	background: linear-gradient(135deg, #1a0a2e 0%, #312e81 100%);
	color: #e9d5ff;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	box-shadow: 0 4px 14px rgba(88, 28, 135, 0.25);
	pointer-events: auto;
	position: relative;
	z-index: 42;
}
.fe-super-adm-dev-btn:hover {
	filter: brightness(1.08);
}
.fe-super-adm-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	position: sticky;
	top: calc(var(--fe-os-banners-total-h, calc(var(--fe-os-banner-h, 0px) + var(--fe-super-adm-banner-h, 0px))) + 4px);
	z-index: 40;
	padding: 10px 0 12px;
	background: #f4f4f4;
	box-shadow: 0 8px 12px -10px rgba(15, 23, 42, 0.25);
}
.fe-super-adm-toolbar__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	position: relative;
	z-index: 41;
	pointer-events: auto;
}
.fe-super-adm-action-btn {
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
	pointer-events: auto;
}
.fe-super-adm-action-btn--danger {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

.super-adm-tab {
	padding: 7px 11px;
	border-radius: 8px;
	border: 2px solid #cbd5e1;
	background: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	color: #475569;
	letter-spacing: 0.3px;
	white-space: nowrap;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.super-adm-tab--bases {
	border-color: #64748b;
	color: #475569;
}
.super-adm-tab--bases.active {
	background: #64748b;
	border-color: #64748b;
	color: #ffffff;
}
.super-adm-tab--bloqueadas {
	border-color: #94a3b8;
	color: #64748b;
}
.super-adm-tab--bloqueadas.active {
	background: #475569;
	border-color: #334155;
	color: #ffffff;
}
.super-adm-tab--clientes {
	border-color: #10b981;
	color: #047857;
}
.super-adm-tab--clientes.active {
	background: #10b981;
	border-color: #059669;
	color: #ffffff;
}
.super-adm-tab--clientes-inativos {
	border-color: #fb7185;
	color: #9f1239;
}
.super-adm-tab--clientes-inativos.active {
	background: #e11d48;
	border-color: #be123c;
	color: #ffffff;
}
.super-adm-tab--vouchers {
	border-color: #a855f7;
	color: #7c3aed;
}
.super-adm-tab--vouchers.active {
	background: #7c3aed;
	border-color: #6d28d9;
	color: #ffffff;
}

.fe-super-adm-tabs-row {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
}
.fe-super-adm-search-group {
	display: inline-flex;
	gap: 6px;
	margin-left: auto;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
}
.fe-super-adm-search {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: 138px;
	min-width: 138px;
	max-width: 138px;
	flex: 0 0 138px;
	padding: 0 8px;
	height: 32px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}
.fe-super-adm-search--idc {
	border-color: #10b981;
	width: 148px;
	min-width: 148px;
	max-width: 148px;
	flex: 0 0 148px;
}
.fe-super-adm-search--idc i {
	color: #10b981;
}
.fe-super-adm-search i {
	color: #94a3b8;
	font-size: 11px;
	flex-shrink: 0;
}
.fe-super-adm-search input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: Oswald, sans-serif;
	font-size: 11px;
	color: #0f172a;
	min-width: 0;
}
.fe-super-adm-search input::placeholder {
	color: #94a3b8;
	text-transform: none;
	font-weight: 400;
	font-size: 10px;
}
@media (max-width: 980px) {
	.fe-super-adm-tabs-row {
		flex-wrap: wrap;
	}
	.fe-super-adm-search-group {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}
}
.fe-base-card.fe-base-card--filtro-oculto,
.fe-voucher-row.fe-base-card--filtro-oculto {
	display: none !important;
}

.fe-lic-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Oswald', sans-serif;
	font-size: 10px;
	font-weight: bold;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.fe-lic-badge--ativa { background: #dcfce7; color: #166534; }
.fe-lic-badge--trial { background: #fef3c7; color: #92400e; }
.fe-lic-badge--cliente { background: #dbeafe; color: #1e40af; }
.fe-lic-badge--bloqueada { background: #fee2e2; color: #991b1b; }
.fe-lic-badge--legado { background: #e2e8f0; color: #475569; }
.fe-lic-badge--expirado { background: #e2e8f0; color: #64748b; }
.fe-lic-badge--usado { background: #e2e8f0; color: #64748b; }

/* Cards de base — paleta estilo Stripe/HubSpot/SaaS enterprise */
.fe-base-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.fe-base-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fe-base-legend__item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.fe-base-legend__item.is-active {
  background: #ffffff;
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.fe-base-legend__item i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.fe-base-legend__item--todas i { background: #0f172a; }
.fe-base-legend__item--trial-ativo i { background: #3b82f6; }
.fe-base-legend__item--trial-fim i { background: #f59e0b; }
.fe-base-legend__item--trial-morto i { background: #ef4444; }
.fe-base-legend__item--cliente i { background: #10b981; }
.fe-base-legend__item--cli-30 i { background: #fca5a5; }
.fe-base-legend__item--cli-15 i { background: #ef4444; }
.fe-base-legend__item--cli-7 i { background: #a855f7; }
.fe-base-legend__item--ativa i { background: #64748b; }
.fe-base-legend__item--inativa i { background: #94a3b8; }

.fe-base-card {
  position: relative;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.fe-base-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}
.fe-base-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Trial ativo — azul (saude/avaliacao ativa) */
.fe-base-card--trial-ativo {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 55%, #ffffff 100%);
  border-color: #bfdbfe;
}
.fe-base-card--trial-ativo::before { background: #3b82f6; }
.fe-base-card--trial-ativo .fe-base-card__status {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Finalizando trial — âmbar (alerta SaaS) */
.fe-base-card--trial-fim {
  background: linear-gradient(135deg, #fffbeb 0%, #fffdf7 55%, #ffffff 100%);
  border-color: #fde68a;
}
.fe-base-card--trial-fim::before { background: #f59e0b; }
.fe-base-card--trial-fim .fe-base-card__status {
  background: #fef3c7;
  color: #b45309;
}

/* Trial finalizado sem conversão — vermelho suave (churn) */
.fe-base-card--trial-morto {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7f7 55%, #fafafa 100%);
  border-color: #fecaca;
}
.fe-base-card--trial-morto::before { background: #ef4444; }
.fe-base-card--trial-morto .fe-base-card__status {
  background: #fee2e2;
  color: #b91c1c;
}

/* Virou cliente — esmeralda (sucesso / ARR) */
.fe-base-card--cliente {
  background: linear-gradient(135deg, #ecfdf5 0%, #f6fffb 55%, #ffffff 100%);
  border-color: #a7f3d0;
}
.fe-base-card--cliente::before { background: #10b981; }
.fe-base-card--cliente .fe-base-card__status {
  background: #d1fae5;
  color: #047857;
}

/* ≤30 dias — vermelho clarinho */
.fe-base-card--cliente-30 {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7f7 60%, #ffffff 100%);
  border-color: #fecaca;
}
.fe-base-card--cliente-30::before { background: #fca5a5; }
.fe-base-card--cliente-30 .fe-base-card__status {
  background: #fee2e2;
  color: #b91c1c;
}

/* ≤15 dias — vermelho um pouco mais forte */
.fe-base-card--cliente-15 {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 55%, #fff5f5 100%);
  border-color: #f87171;
}
.fe-base-card--cliente-15::before { background: #ef4444; }
.fe-base-card--cliente-15 .fe-base-card__status {
  background: #fecaca;
  color: #991b1b;
}

/* ≤7 dias — roxo claro mas forte */
.fe-base-card--cliente-7 {
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 55%, #ffffff 100%);
  border-color: #d8b4fe;
}
.fe-base-card--cliente-7::before { background: #a855f7; }
.fe-base-card--cliente-7 .fe-base-card__status {
  background: #e9d5ff;
  color: #6b21a8;
}

/* Cliente com contrato no fim (legado visual na lista geral) */
.fe-base-card--cliente-fim {
  background: linear-gradient(135deg, #ecfdf5 0%, #fffbeb 70%, #ffffff 100%);
  border-color: #fde68a;
}
.fe-base-card--cliente-fim::before { background: #d97706; }
.fe-base-card--cliente-fim .fe-base-card__status {
  background: #fef3c7;
  color: #92400e;
}

/* Ativa / legado — slate neutro */
.fe-base-card--ativa {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: #e2e8f0;
}
.fe-base-card--ativa::before { background: #64748b; }
.fe-base-card--ativa .fe-base-card__status {
  background: #e2e8f0;
  color: #334155;
}

/* Inativa / bloqueada / churn */
.fe-base-card--inativa {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  opacity: 0.92;
}
.fe-base-card--inativa::before { background: #94a3b8; }
.fe-base-card--inativa .fe-base-card__status {
  background: #e2e8f0;
  color: #64748b;
}

.fe-super-adm-btn--churn { border-color: #f9a8d4; background: #fdf2f8; color: #9d174d; }

.fe-super-adm-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.fe-super-adm-btn--block { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.fe-super-adm-btn--trial { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.fe-super-adm-btn--edit { border-color: #cbd5e1; background: #f8fafc; color: #334155; }
.fe-super-adm-btn--cliente { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.fe-super-adm-btn--unlock { border-color: #86efac; background: #ecfdf5; color: #166534; }

.fe-simular-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: transparent;
  color: #0f172a;
  font-family: Oswald, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.fe-simular-user:hover {
  border-color: #475569;
  background: rgba(255, 255, 255, 0.45);
}
.fe-simular-user i {
  color: #64748b;
  width: 16px;
  text-align: center;
}
.fe-simular-user__role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  white-space: nowrap;
}
.fe-simular-user__name {
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Destaque: simular gestor (acesso simulado evidente) */
.fe-simular-user--gestor {
  border: 2px solid #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}
.fe-simular-user--gestor:hover {
  border-color: #1e40af;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}
.fe-simular-user--gestor i {
  color: #1d4ed8;
}
.fe-simular-user--gestor .fe-simular-user__role {
  color: #1d4ed8;
}
.fe-simular-user--gestor .fe-simular-user__name {
  color: #1e3a8a;
  font-weight: 700;
}
.fe-simular-user--inativo {
  border-style: dashed;
  border-color: #cbd5e1;
  opacity: 0.72;
}
.fe-simular-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 6px 0;
}
.fe-simular-row .fe-simular-user {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.fe-simular-user-del {
  flex: 0 0 42px;
  width: 42px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fe-simular-user-del:hover {
  background: #fef2f2;
  border-color: #f87171;
}
.fe-simular-user-del--disabled {
  border-color: #e2e8f0;
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
  pointer-events: none;
}

.fe-super-adm-emit-card {
  background: linear-gradient(145deg, #ede9fe 0%, #e0e7ff 55%, #ddd6fe 100%);
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.08);
}
.fe-super-adm-emit-card__title {
  font-family: Oswald, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #4c1d95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.fe-super-adm-emit-card__title i { color: #7c3aed; margin-right: 6px; }

.fe-voucher-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.fe-voucher-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.fe-voucher-row__used {
  margin-top: 8px;
  font-size: 12px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.2px;
}
.fe-voucher-row__used--off {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fecaca;
}
.fe-voucher-row__actions {
  display: flex;
  gap: 6px;
}
.fe-voucher-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.fe-voucher-btn--off {
  background: #fee2e2;
  color: #b91c1c;
}
.fe-voucher-btn--on {
  background: #dcfce7;
  color: #15803d;
}
.fe-voucher-row__code {
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #0f172a;
  letter-spacing: 0.5px;
}
.fe-voucher-row__meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.fe-voucher-row--past {
  background: #f1f5f9;
  border-color: #cbd5e1;
  opacity: 0.72;
}
.fe-voucher-row--past .fe-voucher-row__code {
  color: #64748b;
  font-weight: 600;
}
.fe-voucher-row--past .fe-voucher-row__meta {
  color: #94a3b8;
}

#view-super-adm {
	display: none;
	min-height: 100vh;
	background: #f4f4f4;
	box-sizing: border-box;
	padding: 0 20px 40px;
}

.fe-super-adm-page {
	max-width: 1010px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

#view-super-adm.super-adm-console-ativo {
	display: block !important;
	margin-top: 0;
	min-height: 100vh;
	padding-top: calc(var(--fe-os-banners-total-h, calc(var(--fe-os-banner-h, 0px) + var(--fe-super-adm-banner-h, 0px))) + 28px) !important;
}

body.super-adm-console-mode .navbar,
body.super-adm-console-mode .app-container,
body.super-adm-console-mode #barra-bi-global-container {
	display: none !important;
}

/* Console SUPER_ADM: zero módulo flutuante (CSS + JS forçam hide; inline !important do layout) */
body.super-adm-console-mode #sniper-floating-widget,
body.super-adm-console-mode #olimpo-floating-widget,
body.super-adm-console-mode #calendario-floating-widget,
body.super-adm-console-mode #calendario-floating-panel,
body.super-adm-console-mode #excecoes-floating-widget,
body.super-adm-console-mode #oraculo-floating-widget,
body.super-adm-console-mode #oraculo-floating-panel,
body.super-adm-console-mode #fe-modules-dock {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Arcade precisavam sair de .app-container; garante stack acima do console */
body.super-adm-console-mode #muralha-arcade-modal,
body.super-adm-console-mode #muralha-tetris-modal,
body.super-adm-console-mode #muralha-pacman-modal {
	z-index: 100000010 !important;
}

/* --- NAVBAR FIXA --- */
.navbar {
	position: fixed; top: 0; left: 0; width: 100%; height: 65px;
	background-color: var(--navy); border-bottom: none;
	display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
	z-index: 2000; box-shadow: none;
}
.navbar .brand {
	display: flex;
	align-items: center;
	gap: 15px;
	cursor: pointer;
	border-radius: 10px;
	padding: 4px 8px 4px 4px;
	margin-left: -4px;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	user-select: none;
}
.navbar .brand:hover {
	background: rgba(212, 175, 55, 0.08);
	box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.22);
}
.navbar .brand:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.55);
}
.navbar .brand img { height: 40px; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4)); pointer-events: none; }

.brand-text { display: flex; flex-direction: column; }
.brand-text h1 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 18px; letter-spacing: 2px; line-height: 1; margin: 0; }
.brand-text .app-subtitle { font-family: 'Oswald'; font-weight: 300; font-size: 8.5px; letter-spacing: 4px; color: #fff; opacity: 0.8; text-transform: uppercase; margin-top: 3px; width: 100%; text-align: justify; }

.nav-user-info { font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.nav-user-info span { color: #fff; font-weight: bold; }

/* --- LAYOUT CENTRAL --- */
.app-container {
	display: flex;
	margin-top: 65px;
	height: calc(100vh - 65px);
	background: var(--navy);
}

/* --- SIDEBAR REESTRUTURADA --- */
.sidebar {
	width: 245px;
	background: var(--navy);
	border-right: none;
	border-top: none;
	display: flex; flex-direction: column;
	flex-shrink: 0;
}
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 20px 15px; display: flex; flex-direction: column; gap: 8px; }

.nav-btn {
	background: transparent; border: none; color: #cbd5e1; padding: 11px 15px; border-radius: 6px;
	font-family: 'Oswald'; text-transform: uppercase; font-size: 13px; cursor: pointer;
	display: flex; align-items: center; gap: 12px; transition: all 0.3s; letter-spacing: 1px; width: 100%; text-align: left;
}
.nav-btn:hover, .nav-btn.active { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.nav-btn.active { border-left: 4px solid var(--gold); background: rgba(255,255,255,0.02); }

/* Acordeões */
.accordion-header {
	background: rgba(255,255,255,0.03); border: 1px solid transparent; color: #94a3b8; width: 100%; text-align: left;
	padding: 12px 15px; font-family: 'Oswald'; font-size: 13px; text-transform: uppercase;
	cursor: pointer; display: flex; justify-content: space-between; align-items: center;
	letter-spacing: 1px; font-weight: bold; border-radius: 6px; margin-bottom: 5px; margin-top: 10px;
	transition: all 0.3s;
}
.accordion-header:hover { color: #fff; background: rgba(255,255,255,0.08); }
.accordion-header.active {
	background: transparent; 
	color: var(--gold);
	border: 1px solid transparent;
	box-shadow: none;
}
.accordion-header i.arrow { transition: transform 0.3s; }
.accordion-header.active i.arrow { transform: rotate(180deg); color: var(--gold); }

.accordion-body { display: none; flex-direction: column; padding-left: 10px; padding-top: 5px; padding-bottom: 15px; gap: 5px; }
.accordion-body.open { display: flex; animation: slideDown 0.3s ease-out; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Calendário e Footer Fixos Base */
.sidebar-bottom { padding: 15px; background: transparent; border-top: 1px solid rgba(212,175,55,0.1); }
.sidebar-calendar { background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(212,175,55,0.1); padding: 10px; }
.cal-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav-btn { background: transparent; border: none; color: var(--gold); cursor: pointer; font-size: 14px; padding: 0 5px; transition: 0.3s; }
.cal-nav-btn:hover { color: #fff; }
.sidebar-calendar h4 { color: var(--gold); font-size: 11px; text-align: center; margin: 0; letter-spacing: 2px; text-transform: uppercase; }

.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 9px; color: #94a3b8; margin-bottom: 5px; font-weight: bold; }

/* Grid travado em 6 linhas exatas (Impede pulos de botões e instabilidade) */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 22px); gap: 2px; }

.cal-day { background: rgba(0,0,0,0.3); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #475569; }
.cal-day.working { color: #cbd5e1; }
.cal-day.today { background: var(--gold) !important; color: var(--navy) !important; font-weight: bold; box-shadow: 0 0 8px var(--gold); }
.cal-day.holiday { background: var(--tier-0) !important; color: #fff !important; font-weight: bold; border: 1px solid #fca5a5; }

/* Cores Finais de Semana */
.cal-sun { color: var(--tier-0) !important; font-weight: bold; }
.cal-sat { color: #38bdf8 !important; font-weight: bold; }
.cal-day.passed { text-decoration: line-through; opacity: 0.4; }

.sidebar-cal-stats { margin-top: 10px; font-size: 10px; text-align: center; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 8px; }
.sidebar-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.sidebar-footer img { height: 18px; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); opacity: 0.8; }
.sidebar-footer p { font-size: 9px; color: #64748b; letter-spacing: 1px; }

/* --- CONTEÚDO PRINCIPAL --- */
.main-content {
	flex: 1;
	padding: 30px;
	overflow-y: auto;
	background: var(--offwhite);
	border-top: 3px solid var(--gold);
	border-left: 3px solid var(--gold);
	border-top-left-radius: 28px;
	min-width: 0;
	box-sizing: border-box;
}
.view-panel { display: none; animation: fadeIn 0.4s ease-out; }
.view-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- TOASTS LIMPOS --- */
#toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 6px; font-family: 'Oswald'; font-size: 14px; letter-spacing: 1px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-left: 3px solid var(--gold); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--tier-0); }
.toast.success i { color: var(--gold); }

/* TOOLTIP */
.tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; background: var(--gold); color: #fff; border-radius: 50%; font-size: 10px; font-family: 'Oswald'; font-weight: bold; cursor: help; margin-left: 5px; position: relative; }
.tooltip-icon::after { content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 8px; border-radius: 4px; font-size: 11px; font-family: 'Merriweather', sans-serif; width: max-content; max-width: 220px; opacity: 0; visibility: hidden; transition: 0.2s; pointer-events: none; z-index: 10; text-align: center; }
.tooltip-icon:hover::after { opacity: 1; visibility: visible; }

/* COMPONENTES COMPACTOS */
.box-container { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }

/* Paleta flutuante de cores dos esquadrões (sobre cards/tabelas) */
.saas-paleta-esquadrao-pop {
	display: none;
	position: fixed;
	z-index: 99999;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
	box-sizing: border-box;
	width: 224px;
	grid-template-columns: repeat(7, 24px);
	gap: 6px;
	justify-content: center;
}
.saas-paleta-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	transition: transform 0.15s ease, opacity 0.15s ease;
	flex-shrink: 0;
	justify-self: center;
}
.saas-paleta-esquadrao-pop.saas-paleta-sm .saas-paleta-dot {
	width: 18px;
	height: 18px;
}
.saas-paleta-dot.is-ocupada {
	opacity: 0.15;
	pointer-events: none;
	cursor: not-allowed;
}
.saas-paleta-anchor {
	cursor: pointer;
	flex-shrink: 0;
}
#subtab-tropa-esquadroes .box-container,
#subtab-tropa-esquadroes .esquadroes-table-shell {
	overflow: visible !important;
}
#subtab-tropa-esquadroes .esquadroes-bottom-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}
@media (max-width: 960px) {
	#subtab-tropa-esquadroes .esquadroes-bottom-grid {
		grid-template-columns: 1fr;
	}
}
#fe-convocar-header {
	cursor: pointer;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: -12px -16px 0 -16px;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}
#fe-convocar-header:hover {
	background: linear-gradient(105deg, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0.07) 55%, rgba(255, 255, 255, 0) 100%);
	border-color: #0ea5e9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22), inset 4px 0 0 #0ea5e9;
	transform: translateY(-1px);
}
#fe-convocar-header:hover .fe-convocar-title {
	color: #0369a1;
}
#fe-convocar-header:hover .fe-convocar-hint {
	color: #0284c7;
	font-weight: 700;
}
#fe-convocar-header:hover .fe-convocar-icon {
	background: #0ea5e9;
	border-color: #0284c7;
	color: #fff;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
#fe-convocar-header.is-expanded {
	margin-bottom: 4px;
	border-color: #bae6fd;
	background: rgba(224, 242, 254, 0.45);
	box-shadow: inset 4px 0 0 #0ea5e9;
}
.fe-convocar-title {
	transition: color 0.22s ease;
}
.fe-convocar-icon {
	width: 38px;
	height: 38px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--navy);
	font-size: 16px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
	flex-shrink: 0;
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.fe-convocar-hint {
	font-size: 10px;
	color: #94a3b8;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
}
#fe-convocar-chevron {
	transition: transform 0.3s ease;
	color: var(--slate);
	font-size: 13px;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}
#fe-convocar-header:hover #fe-convocar-chevron {
	background: #0284c7;
	border-color: #0369a1;
	color: #fff;
	box-shadow: 0 3px 10px rgba(2, 132, 199, 0.45);
}

/* Pill toggle animado — FE.app / CRM */
.fe-pill-toggle {
	display: inline-flex;
	position: relative;
	background: #e2e8f0;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 20px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
.fe-pill-toggle-track {
	display: flex;
	position: relative;
	min-width: 320px;
}
.fe-pill-toggle-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: var(--navy);
	border-radius: 999px;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s ease;
	box-shadow: 0 2px 10px rgba(12, 43, 91, 0.22);
	z-index: 0;
}
.fe-pill-toggle.is-crm .fe-pill-toggle-slider {
	transform: translateX(100%);
	background: #0ea5e9;
	box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}
.fe-pill-toggle-btn {
	position: relative;
	z-index: 1;
	flex: 1;
	padding: 10px 14px;
	border: none;
	background: transparent;
	font-family: 'Oswald', sans-serif;
	font-size: 10.5px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #64748b;
	cursor: pointer;
	transition: color 0.25s ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.fe-pill-toggle:not(.is-crm) .fe-pill-toggle-btn-feos,
.fe-pill-toggle.is-crm .fe-pill-toggle-btn-crm {
	color: #fff;
}
.fe-pill-toggle-btn:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 999px;
}
@media (max-width: 520px) {
	.fe-pill-toggle-track {
		min-width: 100%;
	}
	.fe-pill-toggle-btn {
		font-size: 9.5px;
		padding: 10px 8px;
	}
}
.box-title { font-family: 'Cinzel'; color: var(--navy); font-size: 18px; font-weight: bold; letter-spacing: 1px; margin-bottom: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; display: flex; align-items: center; gap: 10px;}

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); position: relative; border-bottom: 4px solid var(--navy-light); }
.stat-card h3 { font-size: 11px; color: var(--slate); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--navy); }
.stat-card .value.gold { color: var(--gold); }

.mini-progress { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.mini-progress-bar { height: 100%; background: var(--gold); transition: 0.5s; }

.progress-container { background: #e2e8f0; border-radius: 6px; height: 20px; position: relative; margin: 20px 0; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--tier-0); transition: width 0.5s ease, background 0.5s ease; }
.tier-mark { position: absolute; top: 0; height: 100%; width: 2px; background: rgba(0,0,0,0.2); z-index: 2; }
.tier-label { position: absolute; top: -20px; font-size: 10px; font-weight: bold; transform: translateX(-50%); color: var(--navy); }

/* Cockpit — trilha de evolução de patente (cold → hot) */
.op-tier-track-wrap { padding-top: 4px; }
.op-tier-labels-row { position: relative; height: 34px; margin-bottom: 6px; }
.op-tier-label-item {
    position: absolute; top: 0; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    min-width: 44px; text-align: center; pointer-events: none;
}
.op-tier-label-item .op-tier-pts {
    font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 900;
    color: var(--navy); letter-spacing: 0.3px;
}
.op-tier-label-item .op-tier-name {
    font-family: 'Oswald', sans-serif; font-size: 8px; font-weight: 700;
    color: var(--slate); text-transform: uppercase; letter-spacing: 0.2px;
    max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.op-tier-track {
    position: relative; height: 28px; border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(12, 43, 91, 0.08);
    border: 1px solid rgba(12, 43, 91, 0.12);
    background: #fff;
}
.op-tier-milestones { position: absolute; left: 4px; right: 4px; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.op-tier-milestone {
    top: 2px; height: calc(100% - 4px); width: 2px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(12, 43, 91, 0.15);
}
.op-tier-progress-shell {
    position: absolute; left: 4px; right: 4px; top: 50%;
    height: 10px; transform: translateY(-50%); z-index: 2;
    pointer-events: none; overflow: hidden; border-radius: 5px;
}
.op-tier-fill {
    height: 10px; overflow: hidden;
    background: transparent !important;
    box-shadow: none;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.op-tier-fill-gradient {
    height: 100%; border-radius: 5px;
    width: var(--op-tier-inner-w, 100%);
    background: linear-gradient(90deg,
        #1e3a8a 0%,
        #0ea5e9 22%,
        #0d9488 44%,
        #d97706 66%,
        #ea580c 82%,
        #dc2626 92%,
        #7c3aed 100%
    );
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}
.op-tier-marker {
    position: absolute; top: 50%; z-index: 5;
    width: 16px; height: 16px; margin-top: -8px; margin-left: -8px;
    border-radius: 50%;
    background: var(--gold);
    border: 2.5px solid var(--navy);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(12, 43, 91, 0.25);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.op-profile-rank-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.op-profile-simulator-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
}

.op-cockpit-score-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(12, 43, 91, 0.96), rgba(12, 43, 91, 0.82));
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 1px 4px rgba(12, 43, 91, 0.18);
    white-space: nowrap;
}
.op-cockpit-score-badge .pts-val {
    color: #f3e5ab;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.op-cockpit-score-badge i {
    font-size: 10px;
    opacity: 0.9;
}

/* CONFIGS FORMS */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 15px; }
label { display: flex; align-items: center; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy-light); margin-bottom: 4px; font-weight: bold; }
input, select { width: 100%; padding: 8px 12px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; color: var(--navy); font-family: 'Oswald'; font-size: 14px; outline: none; transition: 0.3s; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 5px rgba(212,175,55,0.3); background: #fff; }
input::placeholder { color: #cbd5e1; opacity: 0.7; }

.btn-gold { background: var(--gold); color: var(--navy); border: none; padding: 10px 20px; font-family: 'Oswald'; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-gold:hover:not(:disabled) { background: var(--navy); color: var(--gold); }
.btn-gold:disabled { opacity: 0.5; cursor: default; }

.btn-red { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: 'Oswald'; text-transform: uppercase; font-size: 11px; font-weight: bold; transition: 0.3s; }
.btn-red:hover { background: #dc2626; color: #fff; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th { background: var(--navy); color: var(--gold); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; padding: 10px; text-align: left; }
td { padding: 10px; border-bottom: 1px solid #e2e8f0; color: var(--dark-text); }
tr:hover td { background: #f8fafc; }
.week-badge { background: var(--navy-light); color: var(--gold); font-weight: bold; padding: 3px 8px; border-radius: 4px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

.filter-bar { display: flex; gap: 15px; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); align-items: center; flex-wrap: wrap; }
.filter-bar select { width: auto; min-width: 180px; padding: 6px 12px; }

.audit-panel { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.audit-badge { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; }
.audit-ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.audit-warn { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.audit-error { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

.podium-1 { background: rgba(212, 175, 55, 0.08) !important; border-left: 4px solid var(--gold); }
.podium-1 td { color: var(--navy); font-weight: bold; }

.tabela-input input { padding: 6px 10px; font-size: 14px; text-align: center; width: 100px; background: #fff; }
.resultado-calc { font-weight: bold; color: var(--navy); font-size: 16px; }

/* Sobre JM7 */
.sobre-hero { background: var(--navy); padding: 40px; border-radius: 8px; text-align: center; color: white; border-bottom: 4px solid var(--gold); margin-bottom: 20px; }
.sobre-hero h1 { font-family: 'Cinzel'; color: var(--gold); font-size: 32px; letter-spacing: 2px; margin-bottom: 10px; }
.sobre-versao { font-family: 'Oswald'; background: rgba(212,175,55,0.2); border: 1px solid var(--gold); color: var(--gold); padding: 5px 15px; border-radius: 20px; display: inline-block; font-size: 14px; letter-spacing: 2px; }
.changelog { list-style: none; margin-top: 15px; }
.changelog li { padding: 12px; border-bottom: 1px solid #e2e8f0; font-size: 14px; display: flex; gap: 15px; }
.changelog li .ver { font-weight: bold; color: var(--navy); width: 60px; }
.changelog li .date { color: var(--slate); font-size: 12px; width: 90px; }

/* --- TABS RANKING (MESA DE GUERRA) --- */
.tab-btn { background: transparent; border: none; padding: 10px 20px; font-family: 'Oswald'; font-weight: bold; text-transform: uppercase; color: var(--slate); cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; font-size: 14px; }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.ranking-tab { display: none; animation: fadeIn 0.4s ease-out; }
.ranking-tab.active { display: block; }

/* --- ESTILIZAÇÃO PREMIUM DO AVATAR COM HOVER ATIVO --- */
.nav-avatar {
	width: 35px; height: 35px; 
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%); 
	border: 1.5px solid var(--gold); border-radius: 50%; 
	display: flex; align-items: center; justify-content: center; 
	color: var(--gold); font-size: 13px; 
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); 
	flex-shrink: 0; transition: all 0.3s ease; cursor: pointer;
}
/* Quando o mouse passa por cima, o círculo inverte as cores com brilho (Glow) */
.nav-avatar:hover {
	background: var(--gold);
	color: var(--navy);
	box-shadow: 0 0 15px var(--gold);
	transform: scale(1.05); /* Leve pulsação tática */
}  
/* --- TELEMETRIA EXCLUSIVA DO COCKPIT OPERACIONAL --- */
.telemetry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-top: 15px; }
.telemetry-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; border-left: 4px solid var(--slate); transition: transform 0.2s; }
.telemetry-card:hover { transform: translateY(-2px); }
.telemetry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.telemetry-title { font-size: 12px; font-weight: bold; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.3; }
.telemetry-meta { font-size: 10px; color: var(--slate); font-family: 'Merriweather', serif; }
.telemetry-progress-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin: 10px 0 5px 0; }
.telemetry-progress-bar { height: 100%; width: 0%; transition: width 0.5s ease, background-color 0.3s; }
.telemetry-footer { display: flex; justify-content: space-between; font-size: 11px; font-weight: bold; color: var(--navy-light); }

/* Badges de Ritmo (Pacing) */
.pacing-badge { font-size: 9px; font-weight: bold; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 4px; }
.pacing-ahead { background: rgba(5, 150, 105, 0.1); color: #059669; border: 1px solid rgba(5, 150, 105, 0.2); }
.pacing-behind { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Card de Perfil Simulado */
.pilot-profile-card { background: linear-gradient(135deg, var(--navy) 0%, #0c1630 100%); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 8px; padding: 15px; color: #fff; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- ENGENHARIA DE SIDEBAR RETRÁTIL DE VANGUARDA (VERSÃO COMPACTA 88PX) --- */
.sidebar {
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, box-shadow 0.3s;
	overflow: visible !important; /* Mantém visible para permitir a saída lateral do Pop-up */
}

/* CORREÇÃO DO REQUISITO 1: Mantém o scroll do menu funcional e blinda a rolagem para os lados */
.sidebar .sidebar-scroll {
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

.sidebar.collapsed {
	width: 88px;
	overflow: visible !important; 
}

/* Restaura e isola a rolagem vertical interna dos botões no modo curto */
.sidebar.collapsed .sidebar-scroll {
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

/* Destacando o menu ao passar o mouse */
.sidebar.collapsed:hover {
	background: var(--navy) !important;
	box-shadow: 6px 0 25px rgba(212, 175, 55, 0.2);
}

/* Alinhamento dos ícones internos no modo retraído */
.sidebar.collapsed .nav-btn {
	font-size: 0 !important;
	letter-spacing: 0 !important;
	justify-content: center !important;
	padding: 14px 0 !important;
	margin: 4px auto !important;
	width: 56px !important;
	height: 52px !important;
	border-radius: 8px !important;
	transition: all 0.25s ease;
}

.sidebar.collapsed .nav-btn i {
	margin: 0 !important;
	font-size: 18px !important;
}

/* Força a exibição dos sub-botões de configuração em fila vertical, ocultando a sanfona */
.sidebar.collapsed .accordion-header {
	display: none !important;
}
.sidebar.collapsed .accordion-body {
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
	gap: 4px !important;
}

/* Ocultação de textos auxiliares */
.sidebar.collapsed #sidebar-toggle-text {
	display: none !important;
}

/* Configuração do botão superior das setas fixas e destacadas */
.sidebar.collapsed #sidebar-toggle-container {
	justify-content: center !important;
	border-bottom: none !important;
	margin-bottom: 5px !important;
	padding: 10px 0 !important;
}

.toggle-action-btn {
	background: rgba(212, 175, 55, 0.06);
	border: 1px solid rgba(212, 175, 55, 0.4);
	color: var(--gold) !important; /* Sempre visível em ouro fixo */
	cursor: pointer;
	font-size: 11px; /* Seta menor e discreta */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px; /* Diâmetro compacto de 28px */
	height: 28px; /* Diâmetro compacto de 28px */
	border-radius: 50%;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-action-btn:hover {
	color: var(--navy) !important;
	background: var(--gold);
	box-shadow: 0 0 15px var(--gold);
	transform: scale(1.08);
}

/* Área Inferior - REEXIBIÇÃO COMPACTA DO CALENDÁRIO (CDD) + LOGO JM7 ISOLADA */
.sidebar.collapsed .sidebar-bottom {
	padding: 20px 0 !important;
	background: transparent !important;
	border-top: 1px solid rgba(212, 175, 55, 0.08) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 15px !important;
}

/* Injeta e renderiza o botão do calendário dinâmico acima da logo */
.sidebar.collapsed .sidebar-calendar {
	display: flex !important; 
	justify-content: center !important;
	align-items: center !important;
	border: 1px solid rgba(212, 175, 55, 0.25) !important;
	background: rgba(212, 175, 55, 0.04) !important;
	padding: 0 !important;
	margin: 0 auto !important;
	width: 46px !important;
	height: 46px !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
}

.sidebar.collapsed .sidebar-calendar::before {
	content: "\f073" !important;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	color: var(--gold) !important;
	font-size: 16px !important;
	display: block !important;
}

.sidebar.collapsed .sidebar-calendar:hover {
	background: rgba(212, 175, 55, 0.15) !important;
	border-color: var(--gold) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25) !important;
}

/* Oculta os numéricos internos do calendário para não quebrar a telemetria curta */
.sidebar.collapsed .sidebar-calendar * {
	display: none !important;
}

/* DESIGN POP-UP: ESTADO ATIVO DO CALENDÁRIO */
.sidebar.collapsed .sidebar-calendar.popover-open {
	position: fixed !important;
	left: 98px !important;
	bottom: 60px !important;
	width: 260px !important;
	height: auto !important;
	background: linear-gradient(180deg, #050b1a 0%, #0c2b5b 100%) !important;
	border: 2px solid var(--gold) !important;
	padding: 15px !important;
	border-radius: 8px !important;
	z-index: 3000 !important;
	display: block !important;
	cursor: default !important;
}

/* FORÇA A REEXIBIÇÃO DAS TABELAS E GRADES APENAS DENTRO DO POP-UP ATIVO */
.sidebar.collapsed .sidebar-calendar.popover-open * {
	display: inherit !important;
}
.sidebar.collapsed .sidebar-calendar.popover-open .cal-grid {
	display: grid !important;
}

/* CORREÇÃO DO REQUISITO 2: Restaura o grid horizontal mestre dos dias da semana (D S T Q...) */
.sidebar.collapsed .sidebar-calendar.popover-open .cal-header {
	display: grid !important;
}

.sidebar.collapsed .sidebar-calendar.popover-open .cal-nav-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 8px !important;
}
.sidebar.collapsed .sidebar-calendar.popover-open .cal-nav-header div {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}

/* ISOLA A MARCA OFICIAL REMOVENDO O BLOCO DE TEXTO DE COPYRIGHT */
.sidebar.collapsed .sidebar-footer {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 auto !important;
	border: none !important;
	width: 100% !important;
}
.sidebar.collapsed .sidebar-footer p {
	display: none !important;
}

.sidebar.collapsed .sidebar-footer img {
	height: 24px !important;
	width: auto !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 auto !important;
	opacity: 0.8;
	transition: all 0.2s ease;
}

.sidebar.collapsed .sidebar-footer:hover img {
	opacity: 1;
	filter: drop-shadow(0 0 8px var(--gold));
}

/* LINHA DIVISÓRIA DOURADA PREMIUM EM DEGRADÊ */
.sidebar-divider {
	height: 1px;
	background: linear-gradient(90deg, rgba(212, 175, 55, 0), var(--gold), rgba(212, 175, 55, 0));
	margin: 15px 0;
	width: 100%;
	flex-shrink: 0;
}

/* BLINDA O CONTÊINER CONTRA O INHERIT E FORÇA ALINHAMENTO HORIZONTAL */
.sidebar.collapsed .sidebar-calendar.popover-open #side-cal-stats {
	white-space: nowrap !important; 
	font-size: 11px !important;    
	display: block !important;
	text-align: center !important;
	width: 100% !important;
}

.sidebar.collapsed .sidebar-calendar.popover-open #side-cal-stats span {
	font-size: 10.5px !important;  /* Ajuste milimétrico para acomodar os caracteres nos 260px do popover */
	white-space: nowrap !important;
	display: inline-block !important; /* QUEBRA A HERANÇA: Impede que o span vire bloco e quebre a linha */
	vertical-align: middle !important;
}
/* Cockpit: oculta Cargo/Nível/Time na Live Filter sem toggling JS (evita piscar) */
body.fe-cockpit-active .fe-live-filter-scope {
	display: none !important;
}

/* --- LIVE FILTER: calendário de período (FEAPP48) --- */
.fe-periodo-picker-wrap { flex-shrink: 0; }
.fe-periodo-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: 'Oswald', sans-serif;
	font-weight: bold;
	font-size: 11px;
	color: var(--navy);
	outline: none;
	min-width: 0;
	flex: 1;
}
.fe-periodo-trigger:hover { color: var(--navy-light); }
.fe-periodo-pill-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 200px;
}
.fe-periodo-chevron { font-size: 8px; color: var(--slate); flex-shrink: 0; transition: transform 0.2s; }
.fe-periodo-picker-wrap.popover-open .fe-periodo-chevron { transform: rotate(180deg); }

.fe-periodo-popover {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 10050;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-bottom: 3px solid var(--gold);
	border-radius: 10px;
	box-shadow: 0 14px 40px rgba(5, 11, 26, 0.18);
	padding: 12px;
	min-width: 340px;
	animation: fadeIn 0.2s ease-out;
}
.fe-periodo-popover-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 8px;
}
.fe-periodo-nav-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: var(--navy);
	cursor: pointer;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	padding: 4px 10px;
	transition: 0.15s;
}
.fe-periodo-nav-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.fe-periodo-nav-today { text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; }

.fe-periodo-calendars {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.fe-periodo-cal-panel { min-width: 0; }
.fe-periodo-cal-title {
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: var(--navy);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 6px 0;
}
.fe-periodo-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	font-size: 9px;
	font-weight: bold;
	color: #94a3b8;
	margin-bottom: 4px;
}
.fe-periodo-cal-weekdays span:first-child,
.fe-periodo-cal-weekdays span:last-child { color: #cbd5e1; }
.fe-periodo-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: repeat(6, 28px);
	gap: 2px;
}
.fe-pcal-day {
	background: #f8fafc;
	border: 1px solid transparent;
	border-radius: 4px;
	color: var(--navy);
	cursor: pointer;
	font-family: 'Oswald', sans-serif;
	font-size: 11px;
	font-weight: 600;
	padding: 0;
	transition: background 0.12s, color 0.12s;
}
.fe-pcal-day:hover:not(:disabled) { background: #e2e8f0; border-color: #cbd5e1; }
.fe-pcal-day.weekend { color: #94a3b8; background: #f1f5f9; }
.fe-pcal-day.today { box-shadow: inset 0 0 0 2px var(--navy); font-weight: bold; }
.fe-pcal-day.in-range { background: rgba(212, 175, 55, 0.22); color: var(--navy); }
.fe-pcal-day.range-start,
.fe-pcal-day.range-end { background: var(--gold) !important; color: var(--navy) !important; font-weight: bold; box-shadow: 0 2px 6px rgba(212, 175, 55, 0.45); }
.fe-pcal-day.fe-cal-preview { background: rgba(212, 175, 55, 0.14) !important; color: var(--navy); border-color: rgba(212, 175, 55, 0.35); }
.fe-pcal-day.fe-cal-preview-end { background: rgba(212, 175, 55, 0.55) !important; color: var(--navy) !important; font-weight: bold; box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.65); }
.fe-pcal-day.fe-cal-hover-day { background: rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.45); }
.fe-pcal-day.fe-cal-feriado { position: relative; color: #b91c1c; font-weight: 700; }
.fe-pcal-day.fe-cal-feriado.weekend { color: #991b1b; }
.fe-pcal-day.fe-cal-feriado::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #ef4444;
}
.fe-pcal-day.empty { visibility: hidden; pointer-events: none; background: transparent; border: none; }

.fe-periodo-popover-summary {
	margin-top: 8px;
	padding: 6px 10px;
	background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 100%);
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 6px;
	font-family: 'Oswald', sans-serif;
	font-size: 10px;
	font-weight: bold;
	color: var(--navy);
	text-align: center;
	letter-spacing: 0.3px;
}

.fe-periodo-popover-hint {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
	font-family: 'Oswald', sans-serif;
	font-size: 9px;
	font-weight: bold;
	color: #94a3b8;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* --- DATE PICKER: ATUALIZAR INDICADORES --- */
.fe-lanc-date-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid #fca5a5;
	border-bottom: 2px solid #dc2626;
	border-radius: 6px;
	font-family: 'Oswald', sans-serif;
	font-weight: 900;
	font-size: 14px;
	color: var(--navy);
	cursor: pointer;
	text-align: left;
	outline: none;
	box-sizing: border-box;
	transition: background 0.15s, box-shadow 0.15s;
}
.fe-lanc-date-trigger:hover {
	background: #fff7f7;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
.fe-lanc-date-trigger > .fa-calendar-day { color: #ef4444; font-size: 13px; }
.fe-lanc-date-chevron { margin-left: auto; font-size: 9px; color: #94a3b8; transition: transform 0.2s; }
.fe-lanc-date-wrap.is-open .fe-lanc-date-chevron { transform: rotate(180deg); }
.fe-lanc-date-popover {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 2400;
	width: 280px;
	max-width: min(280px, 92vw);
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 3px solid #dc2626;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(7, 17, 38, 0.18);
	padding: 12px;
	box-sizing: border-box;
}
.fe-lanc-date-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}
.fe-lanc-date-nav-title {
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.fe-lanc-date-nav-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: var(--navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.fe-lanc-date-nav-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.fe-lanc-date-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.fe-lanc-date-cal .fe-periodo-cal-weekdays { margin-bottom: 4px; }
.fe-lanc-date-cal .fe-pcal-day.selected {
	background: #dc2626 !important;
	color: #fff !important;
	font-weight: 900;
	border-color: #b91c1c;
}
.fe-lanc-date-cal .fe-pcal-day:disabled,
.fe-lanc-date-cal .fe-pcal-day.unavailable {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
	background: #f1f5f9;
	color: #94a3b8;
}

/* --- BADGES DE PATENTE MILITAR PREMIUM (COCKPIT E LANÇAMENTOS) --- */
.rank-badge {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	padding: 5px 14px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	border: 1px solid transparent;
	transition: all 0.3s ease;
	animation: fadeIn 0.4s ease-out;
}
.rank-recruta { background: #343a40; color: #adb5bd; border-color: #495057; }
.rank-soldado { background: rgba(217, 119, 6, 0.15); color: #d97706; border-color: #d97706; }
.rank-cabo { background: rgba(5, 150, 105, 0.15); color: #059669; border-color: #059669; }
.rank-sargento { background: rgba(37, 99, 235, 0.15); color: #2563eb; border-color: #2563eb; }
.rank-coronel { 
	background: linear-gradient(135deg, #7c3aed 0%, #050b1a 100%); 
	color: var(--gold); 
	border-color: var(--gold); 
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
	text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

/* ========================================================================= */
/* 🚀 ANIMAÇÕES SAAS HIGH-LEVEL (TELA SOBRE E CTAS)                          */
/* ========================================================================= */

@keyframes voeAltumFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.card-cta-saas {
    animation: voeAltumFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.card-cta-saas:hover {
    animation: none;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212,175,55,0.2) !important;
    border-color: var(--gold) !important;
}

.neemias-pulse-blur {
    animation: goldPulse 2.5s infinite ease-in-out;
}

.btn-pulse-gold {
    animation: goldPulse 2s infinite;
}

/* 🚀 TOOLTIP SAAS HIGH-LEVEL (INSTANTÂNEO & ANIMADO) */
.saas-tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--navy-light);
    transition: color 0.2s;
}

.saas-tooltip-container .saas-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #071126;
    color: #ffffff;
    text-align: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-family: 'Merriweather', serif;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.saas-tooltip-container .saas-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(212, 175, 55, 0.4) transparent transparent transparent;
}

.saas-tooltip-container:hover .saas-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.saas-tooltip-container:hover {
    color: var(--gold);
}

.tooltip-feature {
    border-bottom: 1px dotted var(--navy-light);
    cursor: help;
    color: var(--navy-light);
    transition: color 0.2s;
}

.tooltip-feature:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ========================================================================= */
/* 🌌 PLANETARY GALAXY WOW STYLE SAAS ANIMATIONS                             */
/* ========================================================================= */

@keyframes galaxyGlowOrange {
    0% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.3), inset 0 0 10px rgba(249, 115, 22, 0.1); }
    50% { box-shadow: 0 0 35px rgba(249, 115, 22, 0.6), inset 0 0 20px rgba(249, 115, 22, 0.2); }
    100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.3), inset 0 0 10px rgba(249, 115, 22, 0.1); }
}

@keyframes floatCosmic {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes spinNebula { 
    100% { transform: rotate(360deg); } 
}

/* Card NΞΞMIAS Laranja Espacial */
.card-galaxy-neemias {
    background: linear-gradient(145deg, #030712 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.4);
    animation: floatCosmic 5s ease-in-out infinite, galaxyGlowOrange 3s infinite alternate;
}

/* Efeito de Nebulosa girando no fundo do card */
.card-galaxy-neemias::before {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: spinNebula 15s linear infinite;
    z-index: 0;
}

.btn-galaxy-orange {
    background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.btn-galaxy-orange:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.8);
    transform: translateY(-2px) scale(1.03);
}

/* Card voeALTUM Ouro Cósmico */
.card-galaxy-gold {
    background: linear-gradient(145deg, #071126 0%, #170f03 100%);
    border: 1px solid rgba(212,175,55,0.5);
    animation: floatCosmic 6s ease-in-out infinite 1s; /* delay para flutuar em assincronia com o de cima */
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

/* Brilho Solar no canto do card */
.card-galaxy-gold::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(212, 175, 55, 0.25);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Toggle » removido — menu abre/fecha pela logo (.brand) na navbar */
.sidebar-toggle-handle { display: none !important; }

/* 🚀 SCROLLBAR ULTRA-FINA EXCLUSIVA PARA O FRAME DA SIDEBAR */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-radius: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* 👤 MENU DROPDOWN DE PERFIL SUSPENSO - HIGH PERFORMANCE SaaS                */
/* ========================================================================= */
.profile-dropdown-menu {
    position: absolute;
    top: 52px;
    right: 0;
    width: 230px;
    background: rgba(5, 11, 26, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(5, 11, 26, 0.35);
    z-index: 2100;
    padding: 6px 0;
    transform-origin: top right;
    animation: profileDropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes profileDropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.profile-dropdown-header strong {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-dropdown-header span {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 11px;
    color: var(--gold);
    margin-top: 3px;
}
.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}
.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease-in-out;
}
.profile-dropdown-menu a i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: var(--gold);
}
.profile-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 22px;
}

/* 📅 AJUSTE DE ALTA FIDELIDADE PARA CALENDÁRIO EM SIDEBARS ESTREITAS */
.sidebar-calendar {
    padding: 8px !important;
}
.cal-header {
    font-size: 8.5px !important;
    gap: 4px !important;
}
.cal-grid {
    grid-template-rows: repeat(6, 24px) !important;
    gap: 3px !important;
}
.cal-day {
    font-size: 10.5px !important;
    font-weight: 500 !important;
}

/* ========================================================================= */
/* 🧲 ENGINE DE ATIVAÇÃO ISOLADA - HIGH-LEVEL SAAS (WOW STYLE)               */
/* ========================================================================= */
.sidebar .nav-btn {
    position: relative !important;
    background: transparent !important;
    border-left: none !important;
    color: #94a3b8;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}
.sidebar .nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--gold);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    opacity: 0;
}
.sidebar .nav-btn:hover:not(.active) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding-left: 18px !important;
}
.sidebar.collapsed .nav-btn:hover:not(.active) {
    padding-left: 0 !important;
}
.sidebar .nav-btn.active {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.05) !important;
    font-weight: bold;
}
.sidebar .nav-btn.active::before {
    transform: scaleY(1);
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--gold));
}
.sidebar.collapsed .nav-btn::before {
    top: 0 !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* =========================================================================
   🌘 ALGORITMO CYBER-NEON DARK MODE 2030 (PROT. REFATORADO)
   ========================================================================= */
body.dark-mode { background: #0b0f19 !important; color: #f8fafc !important; }
body.dark-mode .app-container { background: #070a14 !important; }
body.dark-mode .main-content {
	background: #0b0f19 !important;
	border-top-color: var(--gold) !important;
	border-left-color: var(--gold) !important;
	box-shadow: none;
}
body.dark-mode .navbar { background: #070a14 !important; border-bottom: none !important; }
body.dark-mode aside.sidebar {
	background: #070a14 !important;
	border-right: none !important;
	border-top: none !important;
}
body.dark-mode .fe-modules-dock {
	background: #070a14 !important;
}
body.dark-mode .box-container,
body.dark-mode div[style*="background: #ffffff"],
body.dark-mode div[style*="background: #fff"],
body.dark-mode div[style*="background: white"] { 
    background: #111827 !important; border-color: #1f293d !important; color: #f1f5f9 !important; 
}
body.dark-mode div[style*="background: #f8fafc"],
body.dark-mode div[style*="background: #f8fafc; text-align: center;"],
body.dark-mode div[style*="background: #f1f5f9"] { 
    background: #1f293d !important; border-color: #374151 !important; color: #f9fafb !important; 
}
body.dark-mode tr:hover, body.dark-mode tr[style*="background-color"] { background-color: #1f293d !important; }
body.dark-mode select, body.dark-mode input { background: #1f293d !important; border-color: #374151 !important; color: #ffffff !important; }
body.dark-mode .nav-btn:hover, body.dark-mode .nav-btn.active { background: rgba(212, 175, 55, 0.12) !important; color: var(--gold) !important; }
body.dark-mode .sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
body.dark-mode span[style*="color: var(--slate)"] { color: #94a3b8 !important; }
body.dark-mode div[style*="color: var(--slate)"] { color: #94a3b8 !important; }

/* =========================================================================
   ⚡ ENGENHARIA VELOCÍMETRO BATTLE FEED (NYSE STACKED MARQUEE)
   ========================================================================= */
.ticker-wrap-saas {
    width: 100%;
    padding-left: 110px; /* Protege o texto de passar por baixo do badge fixo */
    display: inline-block;
}

/* =========================================================================
   ⚡ LIVE FEED — carousel fade (mensagem inteira, ~4.5s por slide)
   ========================================================================= */
.fe-live-feed-stage {
    width: 100%;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
}

.fe-live-feed-stage.fe-live-feed-visible {
    opacity: 1;
}

.fe-live-feed-stage.fe-live-feed-fade-out {
    opacity: 0;
}

.fe-live-feed-line {
    display: inline;
}

body[data-motion="reduce"] .fe-live-feed-stage {
    transition: none !important;
}

.ticker-content-saas {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Oswald', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: none;
}

/* =========================================================================
   🛰️ MATRIX DRILL-DOWN MODAL STYLING (GLASSMORPHISM 2030)
   ========================================================================= */
body.dark-mode #drilldown-modal-card {
    background: #111827 !important;
    border-color: #1f293d !important;
    color: #f1f5f9 !important;
}

body.dark-mode .drill-item-bg {
    background: #1f293d !important;
    border-color: #374151 !important;
}

.drill-item-bg {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

/* =========================================================================
   🛰️ DETECTOR DE REAÇÃO TÁTIL DRILL-DOWN (BLINDAGEM ABSOLUTA DE CÉLULAS 2030)
   ========================================================================= */
.drilldown-row {
    transition: background-color 0.15s ease-in-out !important;
}

/* 🛡️ Garante o fundo dourado cravado na linha mestre */
body .matrix-table tr.drilldown-row:hover,
body.dark-mode .matrix-table tr.drilldown-row:hover {
    background-color: var(--gold) !important;
}

/* ⚔️ EXPURGO DO COBERTOR: Força as células (td) a ficarem transparentes 
   para o dourado de fundo da linha transparecer sem piscar ou oscilar */
body .matrix-table tr.drilldown-row:hover td,
body.dark-mode .matrix-table tr.drilldown-row:hover td {
    background-color: transparent !important;
    background: transparent !important;
}

/* Garante o contraste preto do texto com força total enquanto o mouse estiver parado */
body .matrix-table tr.drilldown-row:hover td,
body .matrix-table tr.drilldown-row:hover b,
body .matrix-table tr.drilldown-row:hover span:not(.rank-badge),
body.dark-mode .matrix-table tr.drilldown-row:hover td,
body.dark-mode .matrix-table tr.drilldown-row:hover b,
body.dark-mode .matrix-table tr.drilldown-row:hover span:not(.rank-badge) {
    color: #071126 !important;
    text-shadow: none !important;
}

/* =========================================================================
   🏆 REATOR DE DOPAMINA CELEBRAÇÃO 100% (VANILLA CONFETTI ENGINE 2030)
   ========================================================================= */
.saas-confetti-particle {
    position: fixed;
    z-index: 999999 !important;
    pointer-events: none;
    opacity: 1;
    animation: saasExplodeEngine 3.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
}

@keyframes saasExplodeEngine {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    100% {
        /* Move as partículas usando variáveis dinâmicas injetadas via JS */
        transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(0.4);
        opacity: 0;
    }
}

/* =========================================================================
   🎆 REATOR PIROTÉCNICO DE ELITE 150% (VANILLA FIREWORKS ENGINE)
   ========================================================================= */
.saas-firework-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999 !important;
    animation: saasFireworkEngine 1.5s ease-out forwards;
}

@keyframes saasFireworkEngine {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--x), var(--y), 0) scale(0.3);
        opacity: 0;
    }
}

/* =========================================================================
   🤖 REATOR DE ONDAS DE LED SEMÂNTICO (ORACLE PULSE ENGINE 2030)
   ========================================================================= */
@keyframes oracleGlowGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes oracleGlowYellow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}
@keyframes oracleGlowRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.oracle-led-green { background: #22c55e !important; animation: oracleGlowGreen 2s infinite ease-in-out; }
.oracle-led-yellow { background: #eab308 !important; animation: oracleGlowYellow 2s infinite ease-in-out; }
.oracle-led-red { background: #ef4444 !important; animation: oracleGlowRed 2s infinite ease-in-out; }

/* =========================================================================
   ⚡ BRASÃO ILUMINADO DO BATTLE FEED (JM7 COSMIC GLOW HUB 2030)
   ========================================================================= */
.ticker-logo-saas {
    height: 20px !important; /* Ajustado milimetricamente para o teto compacto da Navbar */
    width: 20px !important;
    vertical-align: middle !important;
    margin: 0 15px !important;
    padding: 0 !important;
    background: #070a14 !important;
    border: 1.5px solid var(--gold) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
    object-fit: contain !important;
    display: inline-block !important;
}

//* =========================================================================
   🛡️ ESPECIFICIDADE ESMAGADORA: CORRETOR DE OVERFLOW DA BORDA DIREITA
   ========================================================================= */
body .saas-tooltip-container.saas-tooltip-right-edge .saas-tooltip-text {
    white-space: normal !important;       /* Destrói o nowrap e força quebra de linha */
    width: 240px !important;              /* Fixa a largura ideal de leitura */
    max-width: 240px !important;          /* Garante rigidez estrutural */
    left: auto !important;                /* Anula a centralização padrão */
    right: 0 !important;                  /* Cola o balão na parede interna do card */
    text-align: left !important;          /* Texto formatado como livro */
    transform: scale(0.9) !important;     /* Remove o translateX original que jogava pra fora */
    transform-origin: top right !important; /* Aproximação visual elegante */
}

/* Força a escala perfeita ao sofrer o hover sem deixar o texto vazar */
body .saas-tooltip-container.saas-tooltip-right-edge:hover .saas-tooltip-text {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Realinha a seta indicadora (Triângulo) para a ponta direita interna */
body .saas-tooltip-container.saas-tooltip-right-edge .saas-tooltip-text::after {
    left: auto !important;
    right: 20px !important;               /* Alinha a seta sob os botões da ponta */
    margin-left: 0 !important;
}

/* =========================================================================
   ARENA DE GLÓRIA - ENGINE VISUAL CAMPEONATO / PÓDIO (V7 CHAMPIONSHIP STAGE)
   ========================================================================= */

/* REATOR DO PULSAR DO BOTÃO FLUTUANTE */
@keyframes olimpoGoldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8), inset 0 0 15px rgba(212, 175, 55, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 22px rgba(212, 175, 55, 0), inset 0 0 15px rgba(212, 175, 55, 0.4); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), inset 0 0 15px rgba(212, 175, 55, 0.4); transform: scale(1); }
}
#olimpo-floating-widget.neemias-pulse-blur { animation: olimpoGoldPulse 2s infinite ease-in-out !important; touch-action: none; user-select: none; -webkit-user-select: none; }

/* VIEWPORTS PROTEGIDOS DO CARD PRINCIPAL AMPLADO */
#olimpo-photo-studio.studio-wide { width: 1340px !important; height: 750px !important; flex-direction: row !important; }
#olimpo-photo-studio.studio-story { width: 440px !important; height: 780px !important; flex-direction: column !important; overflow-y: auto !important; padding: 25px !important; }
#olimpo-photo-studio.studio-wide #olimpo-content-wrapper-pontos { padding-top: 85px !important; }

/* Fundo base contínuo do overlay */
#muralha-olimpo-overlay { background: #02040a !important; position: relative; overflow: hidden; }

/* CARD: ESTÁDIO ESCURO + PALCO DO PÓDIO */
#muralha-olimpo-overlay #olimpo-photo-studio {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(ellipse 70% 45% at 32% 78%, rgba(148, 163, 184, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 50% 72%, rgba(212, 175, 55, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 70% 45% at 68% 80%, rgba(234, 88, 12, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(7, 17, 38, 0.95) 0%, transparent 70%),
        linear-gradient(180deg, #071126 0%, #030712 42%, #010205 100%) !important;
    border: 3px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 40px 90px rgba(0,0,0,0.9) !important;
}

/* Holofotes de campeonato (substituem o fogo) */
@keyframes olimpoSpotSweep {
    0% { opacity: 0.55; filter: brightness(0.95); }
    50% { opacity: 0.95; filter: brightness(1.25); }
    100% { opacity: 0.55; filter: brightness(0.95); }
}
@keyframes olimpoSpotSway {
    0% { transform: translateX(-2%) skewX(-6deg); }
    50% { transform: translateX(2%) skewX(4deg); }
    100% { transform: translateX(-2%) skewX(-6deg); }
}
#muralha-olimpo-overlay #olimpo-photo-studio::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        /* 3 cones de luz no pódio: prata / ouro / bronze */
        linear-gradient(188deg, rgba(255,255,255,0.00) 0%, rgba(203,213,225,0.07) 38%, rgba(148,163,184,0.16) 72%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.00) 0%, rgba(212,175,55,0.10) 36%, rgba(234,179,8,0.22) 70%, transparent 100%),
        linear-gradient(172deg, rgba(255,255,255,0.00) 0%, rgba(249,115,22,0.08) 40%, rgba(234,88,12,0.18) 74%, transparent 100%),
        /* piso refletivo do palco */
        linear-gradient(to top, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0.05) 12%, transparent 28%),
        /* vinheta de arena */
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(212,175,55,0.12) 0%, transparent 60%);
    background-size: 28% 100%, 34% 100%, 28% 100%, 100% 100%, 100% 100%;
    background-position: 18% 0, 50% 0, 82% 0, 0 0, 0 0;
    background-repeat: no-repeat;
    animation: olimpoSpotSweep 4.5s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Anel de glória / laurel championship girando atrás do pódio */
@keyframes olimpoGlorySpin {
    0% { transform: translate(-50%, -42%) rotate(0deg); }
    100% { transform: translate(-50%, -42%) rotate(360deg); }
}
@keyframes olimpoGloryPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}
#muralha-olimpo-overlay #olimpo-photo-studio::after {
    content: '';
    position: absolute;
    left: 36%;
    top: 58%;
    width: min(520px, 55vw);
    height: min(520px, 55vw);
    transform: translate(-50%, -42%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(212, 175, 55, 0.22) 0deg 8deg,
            transparent 8deg 22deg,
            rgba(255, 255, 255, 0.06) 22deg 26deg,
            transparent 26deg 40deg
        );
    -webkit-mask-image: radial-gradient(circle, transparent 42%, #000 48%, #000 62%, transparent 70%);
    mask-image: radial-gradient(circle, transparent 42%, #000 48%, #000 62%, transparent 70%);
    animation: olimpoGlorySpin 28s linear infinite, olimpoGloryPulse 5s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Confete / partículas de campeonato (sobe, não fogo) */
@keyframes olimpoConfettiRiseA {
    0% { background-position: 0 40px, 20px 80px; }
    100% { background-position: 0 -420px, -60px -360px; }
}
@keyframes olimpoConfettiRiseB {
    0% { background-position: 10px 60px, -30px 100px; }
    100% { background-position: 40px -480px, 90px -400px; }
}
@keyframes olimpoConfettiDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 120px -300px, -80px -260px; }
}
@keyframes olimpoArenaBreath {
    0% { opacity: 0.45; transform: scale(1); }
    100% { opacity: 0.85; transform: scale(1.04); }
}

#muralha-olimpo-overlay .olimpo-depth-particles {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.55) 0 1.2px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.4px);
    background-size: 72px 96px, 110px 140px;
    animation: olimpoConfettiRiseA 11s linear infinite, olimpoArenaBreath 7s ease-in-out infinite alternate !important;
    mix-blend-mode: screen !important;
}
#muralha-olimpo-overlay .olimpo-depth-particles::before {
    content: '';
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        radial-gradient(circle, rgba(234, 179, 8, 0.45) 0 1.5px, transparent 2px),
        radial-gradient(circle, rgba(14, 165, 233, 0.25) 0 1px, transparent 1.5px);
    background-size: 88px 120px, 140px 160px;
    animation: olimpoConfettiRiseB 15s linear infinite;
    mix-blend-mode: screen !important;
}
#muralha-olimpo-overlay .olimpo-depth-particles::after {
    content: '';
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(115deg, transparent 0 46%, rgba(212,175,55,0.07) 48%, transparent 50%),
        linear-gradient(65deg, transparent 0 52%, rgba(255,255,255,0.04) 54%, transparent 56%),
        radial-gradient(circle, rgba(249, 115, 22, 0.3) 0 1.2px, transparent 1.8px);
    background-size: 180px 180px, 220px 220px, 100px 130px;
    animation: olimpoConfettiDrift 18s linear infinite;
    mix-blend-mode: soft-light !important;
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    #muralha-olimpo-overlay #olimpo-photo-studio::before,
    #muralha-olimpo-overlay #olimpo-photo-studio::after,
    #muralha-olimpo-overlay .olimpo-depth-particles,
    #muralha-olimpo-overlay .olimpo-depth-particles::before,
    #muralha-olimpo-overlay .olimpo-depth-particles::after {
        animation: none !important;
    }
}

/* ESTRUTURA DO PÓDIO COM FOTO GIGANTE LEVITANDO ACIMA */
#muralha-olimpo-overlay .olimpo-podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 24px; width: 100%; height: 100%; padding-bottom: 20px; position: relative; z-index: 3; }
#muralha-olimpo-overlay .olimpo-podium-slot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; z-index: 5; }

#muralha-olimpo-overlay .olimpo-podium-slot:hover { transform: translateY(-18px) scale(1.02); z-index: 20; }
#muralha-olimpo-overlay .olimpo-podium-slot.slot-1:hover { transform: translateY(-25px) scale(1.05); }

/* Colunas de Vidro Deep Glow com Sombra 3D Diagonal */
#muralha-olimpo-overlay .olimpo-column {
    background: linear-gradient(180deg, rgba(14, 28, 54, 0.5) 0%, rgba(3, 7, 18, 0.98) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 25px 12px 15px 12px; position: relative; gap: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        4px 4px 0px rgba(0,0,0,0.8),
        0 10px 40px rgba(0,0,0,0.9),
        12px 12px 25px rgba(0,0,0,0.9),
        20px 20px 60px rgba(0,0,0,0.8),
        inset 0 0 15px rgba(255,255,255,0.03),
        inset 0 -10px 20px rgba(0,0,0,0.4) !important;
}
#muralha-olimpo-overlay .olimpo-col-1 { 
    height: 290px !important; width: 175px !important; border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 
        0 0 35px rgba(212, 175, 55, 0.2),
        4px 4px 0px rgba(0,0,0,0.8),
        12px 12px 25px rgba(0,0,0,0.9),
        20px 20px 60px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(212,175,55,0.05) !important;
}
#muralha-olimpo-overlay .olimpo-col-2 { height: 210px !important; width: 145px !important; border-color: rgba(148, 163, 184, 0.4) !important; }
#muralha-olimpo-overlay .olimpo-col-3 { height: 175px !important; width: 145px !important; border-color: rgba(249, 115, 22, 0.4) !important; }

/* Brilho dos Distintivos do Pódio */
#muralha-olimpo-overlay .olimpo-badge-top { font-family: 'Oswald', sans-serif !important; font-weight: 900 !important; font-size: 13.5px !important; padding: 3px 14px !important; border-radius: 20px !important; text-transform: uppercase; display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 6px 15px rgba(0,0,0,0.6) !important; width: auto !important; height: auto !important; position: absolute !important; top: -15px !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 10; }
#muralha-olimpo-overlay .badge-gold { background: rgba(212, 175, 55, 0.25) !important; color: #ffffff !important; border: 1.5px solid #eab308 !important; filter: drop-shadow(0 0 14px #eab308) !important; }
#muralha-olimpo-overlay .badge-silver { background: rgba(148, 163, 184, 0.25) !important; color: #ffffff !important; border: 1.5px solid #cbd5e1 !important; filter: drop-shadow(0 0 14px #cbd5e1) !important; }
#muralha-olimpo-overlay .badge-bronze { background: rgba(234, 88, 12, 0.25) !important; color: #ffffff !important; border: 1.5px solid #f97316 !important; filter: drop-shadow(0 0 14px #f97316) !important; }

/* Molduras e Tipografias */
#muralha-olimpo-overlay .olimpo-avatar-frame { border-radius: 50%; background: #030712; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.6); flex-shrink: 0; position: relative; filter: drop-shadow(0 0 12px currentColor); }
#muralha-olimpo-overlay .olimpo-txt-name { font-family: 'Oswald', sans-serif; font-size: 20px !important; font-weight: 900 !important; color: #ffffff !important; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; width: 100%; margin-top: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); opacity: 1 !important; }
#muralha-olimpo-overlay .olimpo-col-1 .olimpo-txt-name { font-size: 25px !important; color: var(--gold) !important; }
#muralha-olimpo-overlay .olimpo-patent-pod-label { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 175, 55, 0.3); padding: 4px 10px; border-radius: 6px; font-size: 10px; color: #cbd5e1; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; margin: 4px 0 8px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
#muralha-olimpo-overlay .olimpo-txt-pts { font-family: 'Oswald', sans-serif; font-size: 18px !important; font-weight: 900 !important; color: #00ff66 !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); opacity: 1 !important; }
#muralha-olimpo-overlay .olimpo-col-1 .olimpo-txt-pts { font-size: 23px !important; color: #22c55e !important; }
#muralha-olimpo-overlay .olimpo-prize-capsule { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 175, 55, 0.3); padding: 4px 10px; border-radius: 6px; font-size: 10px; color: #cbd5e1; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 5px; width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }

/* RANKING DIREITO INTEGRADO */
#muralha-olimpo-overlay #olimpo-roster-zone { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-left: none !important; padding-left: 20px !important; flex: 0.8 !important; display: flex !important; flex-direction: column !important; gap: 10px !important; justify-content: center !important; position: relative; z-index: 5; }
#muralha-olimpo-overlay .olimpo-roster-row { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%) !important; border: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; border-left: 3px solid rgba(212, 175, 55, 0.15) !important; padding: 12px 16px !important; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important; box-shadow: none !important; border-radius: 4px !important; }
#muralha-olimpo-overlay .olimpo-roster-row:hover { background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.01) 100%) !important; border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important; border-left: 3px solid var(--gold) !important; transform: translateX(6px) !important; }
#muralha-olimpo-overlay .olimpo-roster-rank-num { font-family: 'Oswald', sans-serif; font-weight: 900; color: var(--gold); font-size: 16px; width: 30px; text-align: center; flex-shrink: 0; }
#muralha-olimpo-overlay .olimpo-roster-rank-label { font-family: 'Oswald', sans-serif !important; font-size: 10px !important; font-weight: 700 !important; padding: 3px 8px !important; border-radius: 4px !important; letter-spacing: 0.5px; display: inline-flex !important; align-items: center; gap: 5px; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 1px solid transparent; }
#muralha-olimpo-overlay .olimpo-roster-txt-name { color: #ffffff !important; font-family: 'Oswald', sans-serif; font-size: 15px !important; font-weight: bold !important; text-transform: uppercase; letter-spacing: 0.5px; }
#muralha-olimpo-overlay .olimpo-roster-txt-pts { color: #ffffff !important; font-size: 20px !important; font-weight: 900 !important; font-family: 'Oswald'; line-height: 1; }
#muralha-olimpo-overlay .olimpo-roster-txt-sub { font-size: 8.5px !important; color: #00ff66 !important; font-weight: 900 !important; letter-spacing: 1px; font-family: 'Oswald', sans-serif; margin-top: 3px; }
#muralha-olimpo-overlay .olimpo-laser-bar-bg { width: 100% !important; height: 4px !important; background: rgba(255, 255, 255, 0.06) !important; border-radius: 4px !important; overflow: hidden !important; margin-top: 6px !important; }
#muralha-olimpo-overlay .olimpo-laser-bar-fill { height: 100% !important; background: linear-gradient(90deg, #059669 0%, #00ff66 100%) !important; box-shadow: 0 0 10px #00ff66 !important; border-radius: 4px !important; }

/* STORIES STORIES (9:16) */
#olimpo-photo-studio.studio-story #olimpo-content-wrapper-pontos { flex-direction: column !important; align-items: center !important; padding-top: 0 !important; }
#olimpo-photo-studio.studio-story #olimpo-podium-zone { width: 100% !important; min-height: auto !important; padding-top: 35px !important; transform: scale(0.92); transform-origin: center top; }
#olimpo-photo-studio.studio-story .olimpo-podium-wrapper { gap: 12px; }
#olimpo-photo-studio.studio-story .olimpo-col-1 { height: 230px !important; width: 135px !important; }
#olimpo-photo-studio.studio-story .olimpo-col-2 { height: 180px !important; width: 115px !important; }
#olimpo-photo-studio.studio-story .olimpo-col-3 { height: 155px !important; width: 115px !important; }
#olimpo-photo-studio.studio-story .olimpo-avatar-frame { width: 65px; height: 65px; margin-bottom: 10px; }
#olimpo-photo-studio.studio-story .olimpo-col-1 .olimpo-avatar-frame { width: 85px; height: 85px; margin-bottom: 12px; }
#olimpo-photo-studio.studio-story #olimpo-roster-zone { width: 100% !important; padding: 20px 10px !important; margin-top: -15px; }

/* ==========================================================================
   🏛️ COCKPIT PREMIUM: MAPEAMENTO DE MÉTRICAS & GAVETA LATERAL (V3.0.0)
   ========================================================================== */

@keyframes inline-radar-glow {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.inline-radar-pulse {
    animation: inline-radar-glow 1.8s infinite ease-in-out;
}

.premium-widget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(7,17,38,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(7,17,38,0.05);
    border-color: #cbd5e1;
}

.matrix-row-premium {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.matrix-row-premium:hover {
    background-color: #f8fafc !important;
    box-shadow: inset 4px 0 0 var(--gold);
}

.matrix-row-premium .ghost-action-btn {
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

.matrix-row-premium:hover .ghost-action-btn {
    opacity: 1;
}

.segmented-bar {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    gap: 2px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.segmented-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.segmented-btn.active-cargo { 
    background: var(--navy-light); 
    color: #ffffff; 
}

.segmented-btn.active-nivel { 
    background: #059669; 
    color: #ffffff; 
}

.muralha-drawer-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(5, 11, 26, 0.5); 
    backdrop-filter: blur(4px);
    z-index: 200000; 
    display: none; 
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.muralha-drawer-body {
    position: fixed; 
    top: 0; 
    right: -460px; 
    width: 450px; 
    height: 100vh;
    background: #ffffff; 
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 200001; 
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    flex-direction: column; 
    border-left: 1px solid #e2e8f0;
}

.led-indicator {
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    display: inline-block;
}

.led-success { background: #10b981; box-shadow: 0 0 8px #10b981; }
.led-warning { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.led-danger { background: #ef4444; box-shadow: 0 0 8px #ef4444; }


/* ==========================================================================
   ⚡ COCKPIT PREMIUM: FORJA DE NOVAS DIRETRIZES (SaaS SPLIT LAYOUT)
   ========================================================================== */
.saas-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
}

.saas-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.saas-field-premium {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 2.5px solid var(--navy-light);
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.saas-field-premium:focus {
    background: #ffffff;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 4px rgba(12, 43, 91, 0.05);
}

.saas-select-premium {
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saas-engineering-box {
    background: rgba(100, 116, 139, 0.02);
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ========================================================================
   🎛️ DESIGN SYSTEM: INTERRUPTORES MINIMALISTAS COM TEXTO EMBUTIDO (ON/OFF)
   ======================================================================== */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 28px;
    flex-shrink: 0;
    user-select: none;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.modern-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* 📝 TEXTO INTERNO DINÂMICO NO ESTADO DESLIGADO (OFF) */
.modern-slider:after {
    content: "OFF";
    color: #64748b;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 10px;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* 👑 ESTADO ATIVO UNIFICADO: Verde Esmeralda PVE de Alto Impacto */
input:checked + .modern-slider {
    background-color: #059669 !important; /* Mudado de azul para o verde padrão do chassi */
    filter: drop-shadow(0 0 5px rgba(5, 150, 105, 0.4)); /* Glow neon verde suave */
}

input:checked + .modern-slider:before {
    transform: translateX(36px);
}

/* 📝 TEXTO INTERNO DINÂMICO NO ESTADO LIGADO (ON) */
input:checked + .modern-slider:after {
    content: "ON";
    color: #ffffff;
    right: auto;
    left: 11px;
}

/* 🌘 ADAPTAÇÃO AUTOMÁTICA COMPATÍVEL COM MODO ESCURO */
body.dark-mode .modern-slider {
    background-color: #334155;
}

body.dark-mode .modern-slider:after {
    color: #94a3b8;
}

body.dark-mode .modern-switch-card {
    background: #111827 !important;
    border-color: rgba(255,255,255,0.05) !important;
}

@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(34,197,94, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(34,197,94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239,68,68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239,68,68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68, 0); } }
.bloco-matriz { width: 100%; aspect-ratio: 1; border-radius: 3px; border: 1px solid rgba(0,0,0,0.5); box-shadow: inset 0 0 5px rgba(255,255,255,0.1); cursor: help; transition: transform 0.2s; }
.bloco-matriz:hover { transform: scale(1.15); border-color: #fff; z-index: 2; }
	
/* ========================================================================= */
/* 💥 MOTORES DE PULSAÇÃO DE ALTA INTENSIDADE PARA WIDGETS FLUTUANTES        */
/* ========================================================================= */

@keyframes pulse-gold-strong {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(212, 175, 55, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(212, 175, 55, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 15px rgba(212, 175, 55, 0.6); }
}

@keyframes pulse-red-strong {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(239, 68, 68, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(239, 68, 68, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(239, 68, 68, 0.6); }
}

@keyframes pulse-yellow-strong {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.8), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(234, 179, 8, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(234, 179, 8, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(234, 179, 8, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0), 0 12px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(234, 179, 8, 0.6); }
}

.pulse-widget-gold { animation: pulse-gold-strong 2s infinite !important; }
.pulse-widget-red { animation: pulse-red-strong 2s infinite !important; }

/* ========================================================================= */
/* 🧱 MATRIZ E TABELAS DA GESTÃO POR EXCEÇÃO                                 */
/* ========================================================================= */
.bloco-matriz-real {
    width: 26px; height: 26px; border-radius: 4px; 
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
    cursor: help; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; 
    border: 1px solid rgba(255,255,255,0.08);
}
.bloco-matriz-real:hover {
    transform: scale(1.3); z-index: 2; 
    box-shadow: 0 0 12px rgba(255,255,255,0.25); 
    border-color: #fff;
}

/* Hover Seguro Anti-Bug para as linhas da tabela */
.tr-hover-saas {
    border-bottom: 1px dashed #1e293b;
    transition: background-color 0.2s ease;
}
.tr-hover-saas:hover {
    /* Um Azul Escuro Real translúcido: destaca a linha sem matar o contraste do texto branco */
    background-color: rgba(30, 58, 138, 0.3) !important; 
}

/* =================================================================================== */
/* O ARSENAL CSS: Barra de Rolagem Customizada e a Opção Nuclear contra o Hover Branco */
/* =================================================================================== */
/* 1. Barra de Rolagem Elegante Dourada/Dark para a Coluna Direita */
.saas-scroll-dourado::-webkit-scrollbar { width: 8px; }
.saas-scroll-dourado::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.5); border-radius: 4px; }
.saas-scroll-dourado::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; border: 2px solid rgba(15, 23, 42, 0.5); }
.saas-scroll-dourado::-webkit-scrollbar-thumb:hover { background: #b45309; }




/* ===================================================== */
/* ESTILOS DO PAINEL GIGANTE E CORREÇÃO FORENSE DO HOVER */
/* ===================================================== */

/* Barra de Rolagem de Alta Performance */
.saas-scroll-dourado::-webkit-scrollbar { width: 8px; }
.saas-scroll-dourado::-webkit-scrollbar-track { background: rgba(6, 10, 19, 0.5); border-radius: 4px; }
.saas-scroll-dourado::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; border: 2px solid #060a13; }
.saas-scroll-dourado::-webkit-scrollbar-thumb:hover { background: #b45309; }

/* Sinalizadores legado (mini blocos) — não aplicar aos cards FEAPP52 */
#muralha-exception-modal .bloco-matriz-real:not(.exc-anomaly-btn) {
	width: 34px !important; height: 34px !important; border-radius: 4px !important;
	box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 1px 2px rgba(255,255,255,0.05) !important;
	cursor: help !important; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s !important;
	border: 1px solid rgba(0,0,0,0.4) !important; display: block;
}
#muralha-exception-modal .bloco-matriz-real:not(.exc-anomaly-btn):hover {
	transform: scale(1.2) !important; z-index: 5 !important;
	box-shadow: 0 0 15px rgba(255,255,255,0.3), inset 0 1px 4px rgba(255,255,255,0.2) !important;
	border-color: #ffffff !important;
}


/* ========================================================================= */
/* 🛸 ISOLAMENTO DE CONTRASTE: GESTÃO POR EXCEÇÃO (ANTI-BUG DO HOVER)        */
/* ========================================================================= */

/* 1. Força o fundo de todas as linhas e células do modal a serem transparentes */
#muralha-exception-modal table tr,
#muralha-exception-modal table td {
    background: transparent !important;
    background-color: transparent !important;
}

/* 2. Texto base da tabela — legível, sem forçar branco puro (ruído no hover) */
#muralha-exception-modal .exc-audit-table tbody td {
    color: #cbd5e1 !important;
}

/* 3. Combatente — peso normal (sem negrito) na tabela de auditoria */
#muralha-exception-modal table tbody td:nth-child(2) {
    color: #7dd3fc !important;
    font-weight: 400 !important;
}
#muralha-exception-modal .exc-audit-table tbody td:nth-child(2) {
    font-weight: 400 !important;
}

/* 4. Hover suave — fundo discreto, sem forçar branco/negrito (mantém legibilidade) */
#muralha-exception-modal table tbody tr.excecao-tr-hover:hover {
    background-color: rgba(30, 58, 138, 0.28) !important;
}

#muralha-exception-modal table tbody tr.excecao-tr-hover:hover td {
    background: transparent !important;
    background-color: transparent !important;
}

/* 5. No hover: texto do painel fica legível (normal), pills/status mantêm a própria cor */
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover td.exc-audit-metric,
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover td.exc-audit-combatente,
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover td.exc-audit-sugestao,
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover .exc-metric-name,
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover .exc-combatente-name,
#muralha-exception-modal .exc-audit-table tbody tr.excecao-tr-hover:hover .exc-sugestao-text {
    color: #e2e8f0 !important;
    font-weight: 400 !important;
}

/* ========================================================================= */
/* 🚨 MOTOR DE CENTRAL DE ALARMES TÁTICOS (ASYNC BACKGROUND LIGHTS)          */
/* ========================================================================= */

/* Reatores de Intermitência Crítica (Pisca-Pisca Assíncrono) */
@keyframes alarm-flash-fast {
    0%, 100% { opacity: 0.08; filter: drop-shadow(0 0 2px currentColor) brightness(0.6); }
    50% { opacity: 0.55; filter: drop-shadow(0 0 12px currentColor) brightness(1.5); }
}
@keyframes alarm-flash-medium {
    0%, 100% { opacity: 0.45; filter: drop-shadow(0 0 10px currentColor) brightness(1.4); }
    50% { opacity: 0.05; filter: drop-shadow(0 0 2px currentColor) brightness(0.5); }
}
@keyframes alarm-flash-slow {
    0%, 100% { opacity: 0.04; filter: drop-shadow(0 0 2px currentColor) brightness(0.5); }
    50% { opacity: 0.38; filter: drop-shadow(0 0 8px currentColor) brightness(1.3); }
}

/* Base dos Sinalizadores Físicos do Painel de Fundo */
.central-alarme-no {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.2);
}

/* Variações de Frequência e Cor do Alarme */
.alarme-vermelho { color: #ef4444; background-color: #ef4444; }
.alarme-amarelo  { color: #eab308; background-color: #eab308; }
.alarme-verde    { color: #22c55e; background-color: #22c55e; }

.alarme-fast   { animation: alarm-flash-fast 1.4s infinite ease-in-out; }
.alarme-medium { animation: alarm-flash-medium 2.2s infinite ease-in-out; }
.alarme-slow   { animation: alarm-flash-slow 3s infinite ease-in-out; }

/* 🛡️ Limpa os rastros e linhas antigas do modal de exceções */
#muralha-exception-modal::before {
    display: none !important;
}
#muralha-exception-modal {
    position: fixed;
    overflow: hidden !important;
}

/* ========================================================================= */
/* 🚨 REATOR DE AMBIÊNCIA VIVA DA TABELA (WAR ROOM MATRIX GLOW)              */
/* ========================================================================= */

@keyframes table-panic-glow {
    0%, 100% { 
        background-color: rgba(10, 15, 30, 0.75) !important;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
    }
    50% { 
        /* O fundo ganha uma pulsação sutil de vermelho de alerta de subsuperfície */
        background-color: rgba(24, 12, 18, 0.9) !important;
        box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
        border-color: rgba(239, 68, 68, 0.2) !important;
    }
}

.tabela-war-room-viva {
    position: relative !important;
    overflow: hidden !important;
    animation: table-panic-glow 3.5s infinite ease-in-out !important;
}

/* Exception panel: keep glow, but don't clip — single scroll is on .exc-monitor-right */
#muralha-exception-modal .exc-table-card.tabela-war-room-viva {
    overflow: visible !important;
}


/* ========================================================================= */
/* 🌌 ENGINE DE ONDAS GRAVITACIONAIS (GOLDEN SPACE-TIME WARP)               */
/* ========================================================================= */

@keyframes gravitational-gold-warp {
    0% {
        background-position: 0px 0px, 0px 0px, 0% 50%;
        transform: scale(1) rotate(0deg);
    }
    50% {
        background-position: 30px 15px, -30px -15px, 100% 50%;
        transform: scale(1.04) rotate(0.5deg);
    }
    100% {
        background-position: 0px 0px, 0px 0px, 0% 50%;
        transform: scale(1) rotate(0deg);
    }
}

.malha-grid-viva {
    /* Linhas douradas finas e sutis cruzando o fundo escuro */
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(12, 22, 48, 0.3) 0%, #02050d 80%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    animation: gravitational-gold-warp 16s infinite ease-in-out;
    position: absolute;
    top: -6%;
    left: -6%;
    width: 112%;
    height: 112%;
    z-index: 1;
    pointer-events: none;
}

/* ========================================================================
   Cockpit → Diretrizes & Requisitos — premium table cockpit (FEAPP44)
   ======================================================================== */

#op-subview-diretrizes {
    margin-top: 15px;
}

#op-subview-diretrizes .fe-diretrizes-shell {
    position: relative;
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 17, 38, 0.55) 0%, rgba(212, 175, 55, 0.45) 50%, rgba(7, 17, 38, 0.4) 100%);
    box-shadow:
        0 4px 24px rgba(7, 17, 38, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

#op-subview-diretrizes .fe-diretrizes-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0 5px;
    table-layout: fixed;
    font-size: 13px;
    color: var(--dark-text);
    background: #ffffff;
    margin: 0;
}

#op-subview-diretrizes .fe-diretrizes-table thead tr {
    background: rgba(7, 17, 38, 0.96);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Oswald', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(7, 17, 38, 0.15);
}

#op-subview-diretrizes .fe-diretrizes-table thead tr:first-child th:first-child {
    border-top-left-radius: 16px;
}

#op-subview-diretrizes .fe-diretrizes-table thead tr:first-child th:last-child {
    border-top-right-radius: 16px;
}

#op-subview-diretrizes .fe-diretrizes-table thead th {
    padding: 16px 10px;
    text-align: center;
    font-weight: 700;
    vertical-align: middle;
    border-bottom: 2px solid var(--gold);
    background: inherit;
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-metrica {
    width: 18%;
    padding: 14px 18px;
    text-align: left;
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grip {
    width: 36px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grip i {
    opacity: 0.65;
    font-size: 11px;
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-pct { width: 10%; }
#op-subview-diretrizes .fe-diretrizes-table thead th.th-limitadores { width: 11%; }
#op-subview-diretrizes .fe-diretrizes-table thead th.th-peso { width: 9%; }

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grp-realizado {
    width: 10%;
    background: rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
    font-weight: 700;
    border-bottom: 3px solid #0ea5e9;
    box-shadow: inset 0 -1px 0 rgba(14, 165, 233, 0.28);
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grp-meta {
    width: 10%;
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    font-weight: 700;
    border-bottom: 3px solid #dc2626;
    box-shadow: inset 0 -1px 0 rgba(220, 38, 38, 0.24);
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grp-pontos {
    width: 9%;
    background: rgba(217, 119, 6, 0.2);
    color: #fde68a;
    font-weight: 800;
    border-bottom: 3px solid var(--tier-80);
    letter-spacing: 0.6px;
    line-height: 1.25;
    box-shadow: inset 0 -1px 0 rgba(217, 119, 6, 0.28);
}

#op-subview-diretrizes .fe-diretrizes-table thead th.th-grp-pontos .th-grp-pontos-sub {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: none;
    opacity: 0.92;
    margin-top: 3px;
    color: #fbbf24;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row td {
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    background: #ffffff;
    border-top: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    font-variant-numeric: tabular-nums;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row td:first-child {
    border-left: 3px solid var(--fe-dir-accent, #cbd5e1);
    border-radius: 8px 0 0 8px;
    padding: 8px 4px;
    width: 36px;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row td:last-child {
    border-radius: 0 8px 8px 0;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:nth-child(even) td {
    background: #fafbfd;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:hover td {
    background: #f8fafc;
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(7, 17, 38, 0.07);
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row--risk { --fe-dir-accent: #ef4444; }
#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row--warn { --fe-dir-accent: var(--gold); }
#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row--safe { --fe-dir-accent: #059669; }
#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row--elite { --fe-dir-accent: #7c3aed; }

#op-subview-diretrizes .fe-diretrizes-table tbody td.td-grp-realizado {
    background: rgba(56, 189, 248, 0.055);
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:nth-child(even) td.td-grp-realizado {
    background: rgba(56, 189, 248, 0.07);
}

#op-subview-diretrizes .fe-diretrizes-table tbody td.td-grp-meta {
    background: rgba(239, 68, 68, 0.04);
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:nth-child(even) td.td-grp-meta {
    background: rgba(239, 68, 68, 0.055);
}

#op-subview-diretrizes .fe-diretrizes-table tbody td.td-grp-pontos {
    background: rgba(217, 119, 6, 0.045);
}

#op-subview-diretrizes .fe-diretrizes-table tbody tr.fe-dir-row:nth-child(even) td.td-grp-pontos {
    background: rgba(217, 119, 6, 0.06);
}

#op-subview-diretrizes .fe-diretrizes-table tbody td.td-metrica {
    text-align: left;
    padding: 12px 18px;
}

#op-subview-diretrizes .fe-dir-metric-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--navy);
    font-size: 12.5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#op-subview-diretrizes .fe-dir-crm-icon {
    flex-shrink: 0;
    font-size: 10px;
    color: #0ea5e9;
    opacity: 0.9;
}

#op-subview-diretrizes .fe-dir-metric-dir {
    display: block;
    font-size: 8.5px;
    color: var(--slate);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    opacity: 0.72;
    margin-top: 3px;
}

#op-subview-diretrizes .fe-dir-crm-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 7.5px;
    color: #0369a1;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

#op-subview-diretrizes .fe-ind-drag-handle {
    cursor: grab;
    color: #94a3b8;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s, transform 0.15s;
    touch-action: none;
    -webkit-user-drag: element;
}

#op-subview-diretrizes .fe-ind-drag-handle:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    transform: scale(1.08);
}

#op-subview-diretrizes .fe-ind-drag-handle:active {
    cursor: grabbing;
    color: var(--navy-light);
}

#op-subview-diretrizes .fe-dir-num {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#op-subview-diretrizes .fe-dir-realizado--pace {
    font-weight: 900;
    font-size: 14px;
}

#op-subview-diretrizes .fe-dir-pct-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 64px;
    margin: 0 auto;
}

#op-subview-diretrizes .fe-dir-pct-val {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

#op-subview-diretrizes .fe-dir-pct-val--risk { color: #ef4444; }
#op-subview-diretrizes .fe-dir-pct-val--warn { color: var(--gold); }
#op-subview-diretrizes .fe-dir-pct-val--safe { color: #059669; }
#op-subview-diretrizes .fe-dir-pct-val--elite { color: #7c3aed; }

#op-subview-diretrizes .fe-dir-pct-bar {
    width: 100%;
    max-width: 72px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: visible;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
}

#op-subview-diretrizes .fe-dir-pct-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#op-subview-diretrizes .fe-dir-pct-min-mark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    margin-left: -1px;
    background: #b91c1c;
    border-radius: 1px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}
#op-subview-diretrizes .fe-dir-pct-max-mark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    margin-left: -1px;
    background: #7c3aed;
    border-radius: 1px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}
#op-subview-diretrizes .fe-dir-pct-gate {
    display: block;
    margin-top: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
}
#op-subview-diretrizes .fe-dir-pct-gate--cap {
    color: #7c3aed;
}
#op-subview-diretrizes .fe-dir-pct-wrap--locked .fe-dir-pct-val {
    opacity: 0.85;
}

#op-subview-diretrizes .fe-dir-pct-fill--risk { background: linear-gradient(90deg, #fca5a5, #ef4444); }
#op-subview-diretrizes .fe-dir-pct-fill--warn { background: linear-gradient(90deg, #fcd34d, var(--gold)); }
#op-subview-diretrizes .fe-dir-pct-fill--safe { background: linear-gradient(90deg, #6ee7b7, #059669); }
#op-subview-diretrizes .fe-dir-pct-fill--elite { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
#op-subview-diretrizes .fe-dir-pct-fill--muted { background: #94a3b8; }

#op-subview-diretrizes .fe-dir-peso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(7, 17, 38, 0.06);
    color: var(--navy);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(7, 17, 38, 0.08);
}

#op-subview-diretrizes .fe-dir-limitadores {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

#op-subview-diretrizes .fe-dir-pts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

#op-subview-diretrizes .fe-dir-pts-badge--active {
    color: #047857;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.14), rgba(5, 150, 105, 0.06));
    border: 1px solid rgba(5, 150, 105, 0.35);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12);
}

#op-subview-diretrizes .fe-dir-pts-badge--zero {
    color: #94a3b8;
    background: transparent;
    font-weight: 500;
    font-size: 14px;
}

#op-subview-diretrizes .fe-dir-pts-badge--unlock {
    animation: fe-dir-pts-unlock 1.4s ease-out 1;
}

@keyframes fe-dir-pts-unlock {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.45); transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); transform: scale(1); }
}

#op-subview-diretrizes .fe-diretrizes-empty-row td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#op-subview-diretrizes .fe-diretrizes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fafbfd 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    margin: 8px 12px 16px;
}

#op-subview-diretrizes .fe-diretrizes-empty-icon {
    font-size: 36px;
    color: rgba(212, 175, 55, 0.55);
    filter: drop-shadow(0 2px 6px rgba(7, 17, 38, 0.08));
}

#op-subview-diretrizes .fe-diretrizes-empty p {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--slate);
    max-width: 360px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    #op-subview-diretrizes .fe-diretrizes-table {
        min-width: 860px;
    }
}

/* ========================================================================= */
/* GESTÃO POR EXCEÇÃO — Mission Control Monitor (20260706FEAPP58)          */
/* ========================================================================= */

@keyframes exc-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes exc-wave-pulse {
    0%   { transform: translateX(-50%) scale(0.55); opacity: 0.75; }
    100% { transform: translateX(-50%) scale(1.35); opacity: 0; }
}
@keyframes receber-sinal {
    0%   { transform: scale(0.35); opacity: 0.9; }
    100% { transform: scale(3.2); opacity: 0; }
}
@keyframes exc-scanline-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 0 48px; }
}

/* Modal overlay */
.exc-modal-monitor {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(212, 175, 55, 0.06), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(30, 58, 138, 0.18), transparent 55%),
        rgba(4, 8, 18, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* Panel shell — command-center frame */
.exc-panel-master {
    position: relative;
    width: min(1400px, 90vw);
    height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    padding: 22px 26px 18px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.04) 0%, transparent 28%),
        linear-gradient(160deg, #071126 0%, #0a1628 45%, #06101f 100%);
    border: 1px solid rgba(212, 175, 55, 0.14);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 28px 72px rgba(0, 0, 0, 0.75),
        0 0 48px rgba(30, 58, 138, 0.12);
    animation: exc-fade-in 0.3s ease both;
    overflow: hidden;
    isolation: isolate;
}
.exc-panel-master::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 85%);
    opacity: 0.55;
    z-index: 0;
}
.exc-panel-master::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.012) 3px,
        rgba(255, 255, 255, 0.012) 4px
    );
    animation: exc-scanline-drift 14s linear infinite;
    opacity: 0.35;
    z-index: 0;
}
.exc-panel-master > * {
    position: relative;
    z-index: 1;
}
.exc-state-nominal .exc-panel-master {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.06) inset,
        0 28px 72px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(34, 197, 94, 0.08);
}
.exc-state-alert .exc-live-badge {
    --exc-live-primary: #f97316;
    border-color: rgba(249, 115, 22, 0.35);
}
.exc-state-alert .exc-live-label {
    color: #fb923c;
}

.exc-close-btn {
    position: static;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1a33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.exc-close-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

/* Header — 3-col grid: LIVE left | centered title | close (FEAPP63) */
.exc-monitor-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 8px;
    margin: -6px -10px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px 10px 0 0;
    background: #071126;
    flex-shrink: 0;
}
.exc-monitor-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    grid-column: 1;
    min-width: 0;
    flex-shrink: 0;
}
.exc-monitor-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    justify-self: end;
    grid-column: 3;
}
.exc-monitor-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    text-align: center;
    grid-column: 2;
    min-width: 0;
    max-width: min(100%, 440px);
    padding: 2px 28px 18px;
    position: relative;
}
.exc-monitor-title-eyebrow {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.78);
    line-height: 1;
    padding-right: 0.4em;
}
.exc-monitor-title-hero {
    display: block;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.05;
    background: linear-gradient(168deg, #ffffff 0%, #f5edd8 38%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f8fafc;
    filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.28));
}
.exc-monitor-title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: 0;
    width: calc(100% + 32px);
    max-width: 400px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 72% 88% at 50% 18%, rgba(212, 175, 55, 0.09) 0%, transparent 68%);
    pointer-events: none;
    z-index: -1;
    border-radius: 6px;
}
.exc-monitor-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 40px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 15%, rgba(212, 175, 55, 0.9) 50%, rgba(212, 175, 55, 0.15) 85%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
@keyframes exc-live-fade-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}
.exc-live-badge {
    --exc-live-primary: #00e1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 5px 22px 5px 18px;
    border-radius: 999px;
    background: rgba(7, 17, 38, 0.95);
    border: 1px solid rgba(0, 225, 255, 0.22);
    min-height: 0;
    box-shadow: 0 0 18px rgba(0, 225, 255, 0.08);
    animation: exc-live-fade-pulse 1.9s ease-in-out infinite;
}
.exc-live-icon {
    color: var(--exc-live-primary);
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.exc-live-label {
    color: var(--exc-live-primary);
    line-height: 1;
    text-shadow: 0 0 12px rgba(0, 225, 255, 0.35);
}
body[data-motion="reduce"] .exc-live-badge {
    animation: none;
    opacity: 1;
}
/* CRM status card — critical column (20260706FEAPP62) */
#muralha-exception-modal .exc-crm-matrix-card--ativo {
    cursor: pointer;
    opacity: 1;
}
#muralha-exception-modal .exc-crm-matrix-card--ativo:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.12);
}

/* KPI Strip */
.exc-kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #0a1628;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}
.exc-kpi-card {
    background: #0d1a33;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.exc-kpi-card--alert { border-left: 3px solid #ef4444; }
.exc-kpi-card--ok    { border-left: 3px solid #22c55e; }
.exc-kpi-card--warn  { border-left: 3px solid #eab308; }
.exc-kpi-card--crm   { border-left: 3px solid #f97316; cursor: pointer; }
.exc-kpi-card--crm:hover { background: #111f3d; }
.exc-kpi-card-label {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.2;
}
.exc-kpi-card-value {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
    line-height: 1.1;
}
.exc-kpi-card-meta {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #64748b;
    line-height: 1.25;
    margin-top: 2px;
}
.exc-kpi-card--alert .exc-kpi-card-value { color: #ef4444; }
.exc-kpi-card--ok .exc-kpi-card-value    { color: #22c55e; }
.exc-kpi-crm-val--ok   { color: #22c55e !important; font-size: 14px !important; }
.exc-kpi-crm-val--warn { color: #eab308 !important; font-size: 14px !important; }
.exc-kpi-crm-val--bad  { color: #ef4444 !important; font-size: 14px !important; }
.exc-kpi-crm-val--off  { color: #f97316 !important; font-size: 14px !important; }

/* Main body layout */
.exc-monitor-body {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 18px;
    flex: 1;
    min-height: 0;
}

/* Donut card — FEAPP68: 3-slice donut + center % não ok */
.exc-donut-card {
    background: #0d1a33;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 12px 10px;
    position: relative;
    overflow: hidden;
    min-width: 0;
    flex: 1;
    min-height: 0;
}
.exc-donut-column {
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}
.exc-donut-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    overflow: visible;
}
.exc-donut-ring-wrap {
    width: 158px;
    height: 158px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 8px;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 50%;
    outline: none;
    cursor: default;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.12));
}
.exc-donut-ring-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}
.exc-donut-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
    text-align: center;
    max-width: 92px;
}
.exc-donut-kpi {
    font-family: 'Cinzel', 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.45), 0 1px 0 rgba(255, 255, 255, 0.15);
}
.exc-donut-severity {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #22c55e;
    line-height: 1.15;
    max-width: 110px;
}
.exc-donut--controle .exc-donut-severity { color: #22c55e; }
.exc-donut--analise .exc-donut-severity { color: #fbbf24; }
.exc-donut--alerta .exc-donut-severity { color: #f97316; }
.exc-donut--critica .exc-donut-severity { color: #ef4444; }
.exc-donut--inoperante .exc-donut-severity { color: #7c3aed; }
.exc-donut-tooltip {
    display: none !important;
}
.exc-donut-micro {
    font-family: 'Oswald', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ef4444;
    margin-top: 2px;
    line-height: 1.2;
}
.exc-donut--warn .exc-donut-micro { color: #fbbf24; }
.exc-donut--critical .exc-donut-micro { color: #ef4444; }
.exc-donut-label {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1.3;
}
.exc-donut-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: center;
    align-self: center;
    margin-top: 0;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.exc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #071126;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.exc-legend-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.exc-legend-ok .exc-legend-swatch { background: #22c55e; }
.exc-legend-warn .exc-legend-swatch { background: #eab308; }
.exc-legend-critical .exc-legend-swatch,
.exc-legend-anomaly .exc-legend-swatch { background: #ef4444; }
.exc-legend-nominal .exc-legend-swatch { background: #22c55e; }
.exc-legend-text {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
}
.exc-legend-val {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
    white-space: nowrap;
}
.exc-kpi-severity {
    font-size: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.exc-kpi-severity--controle { color: #22c55e; }
.exc-kpi-severity--analise { color: #fbbf24; }
.exc-kpi-severity--alerta { color: #f97316; }
.exc-kpi-severity--critica { color: #ef4444; }
.exc-kpi-severity--inoperante { color: #7c3aed; }
.exc-donut-sidebar,
.exc-donut-briefing {
    width: 100%;
    align-self: stretch;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    margin-top: 0;
    padding: 10px 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background:
        linear-gradient(160deg, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, rgba(7, 17, 38, 0.92) 0%, rgba(10, 22, 40, 0.88) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.exc-briefing-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.exc-briefing-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}
.exc-briefing-kicker {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.exc-briefing-kicker i { font-size: 11px; opacity: 0.9; }
.exc-briefing-scroll {
    flex: 1 1 auto;
    min-height: 72px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -2px;
}
.exc-briefing-bands {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.exc-briefing-band {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 9px;
    border-radius: 7px;
    background: rgba(5, 11, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.exc-briefing-band--active {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.28);
    border-left-color: var(--band, var(--gold));
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.08);
}
.exc-briefing-band-top {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.exc-briefing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--band, #64748b);
    box-shadow: 0 0 8px color-mix(in srgb, var(--band, #64748b) 55%, transparent);
    flex-shrink: 0;
}
.exc-briefing-range {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}
.exc-briefing-band--active .exc-briefing-range { color: #e2e8f0; }
.exc-briefing-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--band, #cbd5e1);
    white-space: nowrap;
}
.exc-briefing-mean {
    margin: 0;
    padding-left: 15px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 10.5px;
    line-height: 1.4;
    color: #64748b;
}
.exc-briefing-band--active .exc-briefing-mean { color: #94a3b8; }
/* legacy sidebar stats (unused after FEAPP85) */
.exc-donut-stats-list { display: none; }
.exc-donut-health-bar { display: none; }
.exc-donut-stat { display: none; }
.exc-donut-stat--crm .exc-donut-stat-val { color: #94a3b8; }
.exc-donut-stat--crm.exc-donut-stat--ok .exc-donut-stat-val { color: #4ade80; }
.exc-donut-stat--crm.exc-donut-stat--warn .exc-donut-stat-val { color: #fbbf24; }
.exc-donut-stat--crm.exc-donut-stat--bad .exc-donut-stat-val { color: #fb923c; }
.exc-donut-stat--periodo .exc-donut-stat-val {
    white-space: normal;
    text-align: right;
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    max-width: 58%;
    line-height: 1.25;
}
.exc-kpi-row {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}
.exc-kpi-cell { text-align: center; }
.exc-kpi-num {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    display: block;
}
.exc-kpi-ok .exc-kpi-num  { color: #22c55e; }
.exc-kpi-bad .exc-kpi-num { color: #ef4444; }
.exc-kpi-lbl {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}
.exc-kpi-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.07);
}
.exc-nominal-calm {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(7, 17, 38, 0.82);
    border: 2px solid rgba(34, 197, 94, 0.25);
    pointer-events: none;
    z-index: 3;
}
.exc-nominal-calm[hidden] {
    display: none !important;
}
.exc-nominal-calm i {
    font-size: 22px;
    color: #22c55e;
}
.exc-nominal-calm span {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

/* Right column — UNIQUE scroll: sinalizadores first, then alertas */
.exc-monitor-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    min-width: 0;
    padding-right: 6px;
    scroll-behavior: smooth;
}

/* Matrix section */
.exc-matrix-section {
    width: 100%;
    min-width: 0;
}
.exc-matrix-card {
    background: #0f2038;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.exc-state-nominal .exc-matrix-card {
    background: linear-gradient(145deg, #0f2038 0%, rgba(15, 48, 36, 0.55) 100%);
    border-color: rgba(34, 197, 94, 0.12);
}
.exc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.exc-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
}
.exc-section-title i { color: #d4af37; font-size: 10px; }
.exc-section-meta {
    font-size: 10px;
    color: #475569;
    font-style: italic;
}
.exc-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    max-height: none;
    overflow: visible;
}
.exc-matrix-grid::-webkit-scrollbar { width: 6px; height: 6px; }
.exc-matrix-grid::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.35); border-radius: 3px; }
.exc-matrix-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.04);
    border: 1px dashed rgba(34, 197, 94, 0.2);
    color: #64748b;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.exc-matrix-empty i { color: #22c55e; font-size: 16px; }

/* Split matrix — Críticos | Operacionais (20260706FEAPP62) */
.exc-matrix-split {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 12px;
    width: 100%;
}
.exc-matrix-col {
    min-width: 0;
    border-radius: 8px;
    padding: 10px 12px;
}
.exc-matrix-col-critical {
    background: #1a0f0f;
    border: 1px solid rgba(249, 115, 22, 0.22);
}
.exc-matrix-col-ops {
    background: rgba(10, 20, 36, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.exc-matrix-col-title {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.exc-matrix-col-critical .exc-matrix-col-title {
    color: #f97316;
    border-bottom-color: rgba(249, 115, 22, 0.2);
}
.exc-matrix-col .exc-matrix-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.exc-matrix-filter-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.2);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
    flex-shrink: 0;
}
.exc-matrix-filter-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.exc-matrix-filter-bar strong {
    color: #fbbf24;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
}
.exc-matrix-filter-detail {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #cbd5e1;
    line-height: 1.35;
}
.exc-matrix-filter-clear {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #94a3b8;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
}
.exc-matrix-filter-clear:hover {
    border-color: rgba(212, 175, 55, 0.35);
    color: #d4af37;
}

/* Anomaly grid buttons */
#muralha-exception-modal .exc-anomaly-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    height: 100%;
    padding: 8px 10px 8px 0;
    border-radius: 8px;
    background: #0a1424;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    overflow: hidden;
    box-sizing: border-box;
}
#muralha-exception-modal .exc-anomaly-btn:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
#muralha-exception-modal .exc-anomaly-btn:active {
    transform: scale(0.98);
}
#muralha-exception-modal .exc-anomaly-btn.exc-anomaly-btn--active {
    border-color: rgba(0, 225, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.3);
}
#muralha-exception-modal .exc-sev-critical.exc-anomaly-btn { background: rgba(239, 68, 68, 0.07); }
#muralha-exception-modal .exc-sev-critical.exc-anomaly-btn:hover { background: rgba(239, 68, 68, 0.12); }
#muralha-exception-modal .exc-sev-warn.exc-anomaly-btn { background: rgba(234, 179, 8, 0.07); }
#muralha-exception-modal .exc-sev-warn.exc-anomaly-btn:hover { background: rgba(234, 179, 8, 0.12); }
#muralha-exception-modal .exc-sev-crm.exc-anomaly-btn { background: rgba(249, 115, 22, 0.08); }
#muralha-exception-modal .exc-sev-crm.exc-anomaly-btn:hover { background: rgba(249, 115, 22, 0.14); }
#muralha-exception-modal .exc-sev-info.exc-anomaly-btn { background: rgba(34, 197, 94, 0.07); }
#muralha-exception-modal .exc-sev-info.exc-anomaly-btn:hover { background: rgba(34, 197, 94, 0.12); }
.exc-anomaly-sev-bar {
    width: 3px;
    align-self: stretch;
    flex-shrink: 0;
    border-radius: 3px 0 0 3px;
}
.exc-sev-critical .exc-anomaly-sev-bar { background: #ef4444; }
.exc-sev-warn     .exc-anomaly-sev-bar { background: #eab308; }
.exc-sev-crm      .exc-anomaly-sev-bar { background: #f97316; }
.exc-sev-info     .exc-anomaly-sev-bar { background: #22c55e; }
.exc-anomaly-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
}
.exc-anomaly-label {
    flex: 1;
    min-width: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.exc-anomaly-count {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    margin-right: 6px;
}

/* Table section — grows with content; no nested scroll (scroll fica só em .exc-monitor-right) */
.exc-table-card {
    display: flex;
    flex-direction: column;
    background: #0a1424;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    flex: 0 0 auto;
    min-height: 0;
}
.exc-row-highlight td {
    background: rgba(0, 225, 255, 0.07) !important;
}
.exc-row-highlight {
    outline: 1px solid rgba(0, 225, 255, 0.22);
}
.exc-tab-rail {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.exc-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    padding: 9px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    outline: none;
    transition: color 0.15s, border-color 0.15s;
}
.exc-tab--anomalias.exc-tab--active { color: #ef4444; border-bottom-color: #ef4444; }
.exc-tab--saudaveis.exc-tab--active  { color: #22c55e; border-bottom-color: #22c55e; }
.exc-tab:hover:not(.exc-tab--active) { color: #94a3b8; }
.exc-tab-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}
.exc-tab-badge--bad { background: #ef4444; color: #fff; }
.exc-tab-badge--ok  { background: #1e293b; color: #fff; }
.exc-tab--active .exc-tab-badge--ok { background: #166534; }

.exc-table-wrap {
    overflow: visible;
    flex: 0 0 auto;
}
.exc-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
}
.exc-audit-table thead tr {
    color: #64748b;
    font-size: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.exc-audit-table th {
    padding: 8px 6px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.exc-audit-table th:nth-child(1) { width: 18%; }
.exc-audit-table th:nth-child(2) { width: 14%; }
.exc-audit-table th:nth-child(3) { width: 11%; text-align: center; }
.exc-audit-table th:nth-child(4) { width: 42%; }
.exc-audit-table th:nth-child(5) { width: 15%; text-align: right; }
#muralha-exception-modal .exc-audit-table tbody td.exc-audit-metric,
#muralha-exception-modal .exc-audit-table tbody td.exc-audit-combatente,
#muralha-exception-modal .exc-audit-table tbody td.exc-audit-perf,
#muralha-exception-modal .exc-audit-table tbody td.exc-audit-status,
#muralha-exception-modal .exc-audit-table tbody .exc-metric-name,
#muralha-exception-modal .exc-audit-table tbody .exc-combatente-name,
#muralha-exception-modal .exc-audit-table tbody .exc-perf-val,
#muralha-exception-modal .exc-audit-table tbody .exc-status-pill {
    font-weight: 400 !important;
}
#muralha-exception-modal .exc-audit-table tbody td.exc-audit-sugestao {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    font-weight: 400 !important;
    padding: 12px 14px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.exc-header-scan-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    padding: 5px 14px 5px 12px;
    border-radius: 999px;
    background: rgba(7, 17, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
    line-height: 1;
    flex-shrink: 0;
}
.exc-header-scan-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: exc-scan-dot-pulse 2s ease-in-out infinite;
}
@keyframes exc-scan-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
    50%      { opacity: 0.7; box-shadow: 0 0 10px rgba(34, 197, 94, 0.85); }
}
body[data-motion="reduce"] .exc-header-scan-time::before {
    animation: none;
}

.exc-warroom-link-btn,
.exc-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1a33;
    color: #94a3b8;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.exc-warroom-link-btn:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}
.exc-export-btn:hover {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.war-room-exc-bridge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(34, 197, 94, 0.06) 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08);
}
.war-room-exc-bridge-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.war-room-exc-bridge-left > i {
    font-size: 22px;
    color: #22c55e;
}
.war-room-exc-bridge-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--navy);
}
.war-room-exc-bridge-summary {
    display: block;
    margin-top: 2px;
    font-family: 'Merriweather', serif;
    font-size: 11px;
    color: var(--slate);
}
.war-room-exc-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.war-room-exc-open-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}
.war-room-exc-card:hover {
    filter: brightness(0.98);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.war-room-exc-performer {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.war-room-exc-performer:hover {
    border-color: rgba(34, 197, 94, 0.35) !important;
    background: rgba(34, 197, 94, 0.06) !important;
}
.fe-oraculo-exc-chip:hover,
.fe-oraculo-performer:hover {
    filter: brightness(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.fe-oraculo-war-room #ia-oracle-content {
    max-height: none;
}
.fe-oraculo-gemini--top {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.2);
}
#oraculo-floating-widget {
    flex-direction: column;
    cursor: grab;
}
#oraculo-floating-widget:active {
    cursor: grabbing;
}

/* --- Barra fixa de módulos (dock) --- */
.fe-modules-dock {
    position: fixed;
    z-index: 99990;
    display: none;
    gap: 6px;
    padding: 8px;
    background: var(--navy);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.fe-modules-dock--right {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: auto;
    transform: none;
    flex-direction: column;
    border-radius: 14px;
    width: 54px;
    align-items: center;
}
.fe-modules-dock--bottom {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: auto;
    transform: none;
    flex-direction: row;
    border-radius: 14px;
    height: 54px;
    align-items: center;
    max-width: calc(100vw - 40px);
}

.fe-layout-pills {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 4px;
    min-width: 108px;
}
.fe-layout-pills--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    background: #eef2f7;
    flex-shrink: 0;
}
.fe-layout-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}
.fe-layout-pills--row .fe-layout-pill {
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 9.5px;
}
.fe-layout-pill:hover {
    color: var(--navy);
}
.fe-layout-pill.is-active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(12, 43, 91, 0.22);
}

.fe-modules-dock-btn {
    width: 40px;
    min-height: 40px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px 2px;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.fe-modules-dock-btn:hover {
    transform: scale(1.06);
    background: rgba(30, 41, 59, 0.95);
}
.fe-modules-dock-btn i { font-size: 15px; }
.fe-modules-dock-emoji { font-size: 15px; line-height: 1; }
.fe-modules-dock-label {
    font-family: 'Oswald', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    max-width: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fe-modules-dock-btn--oraculo { border-color: rgba(129,140,248,0.55); color: #c7d2fe; }
.fe-modules-dock-btn--sniper { border-color: rgba(239,68,68,0.55); color: #fca5a5; }
.fe-modules-dock-btn--arena { border-color: rgba(212,175,55,0.55); color: var(--gold); }
.fe-modules-dock-btn--excecoes { border-color: rgba(34,197,94,0.55); color: #86efac; }
.fe-modules-dock-btn--calendario { border-color: rgba(212,175,55,0.6); color: var(--gold); }

#calendario-floating-widget {
    flex-direction: column;
    cursor: grab;
}
#calendario-floating-widget:active { cursor: grabbing; }

body.fe-cal-float-active .sidebar.collapsed .sidebar-calendar {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.fe-cal-float-panel {
    position: fixed;
    width: min(292px, calc(100vw - 24px));
    background: linear-gradient(165deg, #0b1a33 0%, #071126 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
    z-index: 99993;
    padding: 12px 12px 14px;
    color: #e2e8f0;
    animation: feOraculoPanelIn 0.18s ease-out;
}
.fe-cal-float-panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.fe-cal-float-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.fe-cal-float-title-wrap strong {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
}
.fe-cal-float-today {
    background: transparent;
    border: none;
    color: rgba(212, 175, 55, 0.75);
    font-size: 9px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fe-cal-float-today:hover { color: var(--gold); }
.fe-cal-float-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 2px;
}
.fe-cal-float-close:hover { color: #fff; }
.fe-cal-float-panel .cal-nav-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.2);
    color: var(--gold);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}
.fe-cal-float-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 4px;
}
.fe-cal-float-panel .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.fe-cal-float-panel .cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-family: 'Oswald', sans-serif;
    border-radius: 4px;
    color: #cbd5e1;
}
.fe-cal-float-panel .cal-day.working { color: #fff; background: rgba(255,255,255,0.04); }
.fe-cal-float-panel .cal-day.today {
    background: var(--gold);
    color: #071126;
    font-weight: bold;
}
.fe-cal-float-panel .cal-day.holiday { color: #f87171; }
.fe-cal-float-panel .cal-day.passed { opacity: 0.45; }
.fe-cal-float-stats {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(212,175,55,0.2);
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

/* --- Config Módulos Flutuantes (2 colunas) --- */
.fe-widgets-autosave {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--slate);
    opacity: 0.55;
}
.fe-widgets-cfg-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 28px 28px 32px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(7, 17, 38, 0.04) 0%, rgba(248, 250, 252, 0.95) 42%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--navy);
    box-shadow: 0 18px 40px rgba(7, 17, 38, 0.06);
    position: relative;
    overflow: hidden;
}
.fe-widgets-cfg-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 70%);
    pointer-events: none;
}
.fe-widgets-cfg-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(12, 43, 91, 0.08);
    position: relative;
    z-index: 1;
}
.fe-widgets-cfg-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c2b5b 0%, #071126 100%);
    color: var(--gold);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.25);
    flex-shrink: 0;
}
.fe-widgets-cfg-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.fe-widgets-cfg-sub {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--slate);
    font-size: 12.5px;
    margin: 5px 0 0;
    line-height: 1.45;
    max-width: 620px;
}
.fe-widgets-cfg-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    gap: 22px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.fe-widgets-cfg-col-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 12px;
}
.fe-widgets-style-list {
    gap: 10px;
}
.fe-widgets-style-hint {
    margin: 2px 2px 0;
    padding: 0 4px;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.45;
}
.fe-widgets-mod-row--style-gestor,
.fe-widgets-mod-row--style-op {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.fe-widgets-mod-row--style-gestor .fe-widgets-mod-info,
.fe-widgets-mod-row--style-op .fe-widgets-mod-info {
    width: 100%;
}
.fe-widgets-mod-row--style-gestor .fe-layout-pills--row,
.fe-widgets-mod-row--style-op .fe-layout-pills--row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    justify-content: stretch;
}
.fe-widgets-mod-row--style-gestor .fe-layout-pill,
.fe-widgets-mod-row--style-op .fe-layout-pill {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}
.fe-widgets-mod-row--style-gestor { border-left-color: var(--navy); }
.fe-widgets-mod-row--style-op { border-left-color: var(--navy-light); }
.fe-widgets-mod-row--style-gestor .fe-widgets-mod-ico--fa {
    color: var(--gold);
    background: rgba(12, 43, 91, 0.08);
}
.fe-widgets-mod-row--style-op .fe-widgets-mod-ico--fa {
    color: var(--navy-light);
    background: rgba(37, 99, 235, 0.08);
}
.fe-widgets-mod-row--sniper .fe-widgets-mod-ico--fa {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.fe-widgets-mods-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.fe-widgets-mods-head .fe-widgets-cfg-col-label { margin-bottom: 0; }
.fe-widgets-mods-cols {
    display: grid;
    grid-template-columns: 52px 52px;
    gap: 18px;
    min-width: 122px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--slate);
}
.fe-widgets-mods-cols span:last-child { color: var(--navy-light); }
.fe-widgets-mods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fe-widgets-mod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(7, 17, 38, 0.03);
    border-left: 4px solid #94a3b8;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fe-widgets-mod-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.06);
}
.fe-widgets-mod-row--sniper { border-left-color: #ef4444; }
.fe-widgets-mod-row--arena { border-left-color: var(--gold); }
.fe-widgets-mod-row--excecoes { border-left-color: #22c55e; }
.fe-widgets-mod-row--oraculo { border-left-color: #818cf8; }
.fe-widgets-mod-row--oraculo.is-prod-locked {
    opacity: 0.72;
    background: #f8fafc;
}
.fe-widgets-mod-row--oraculo.is-prod-locked .modern-switch {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}
.fe-widgets-mod-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fe-widgets-mod-title-row strong {
    display: inline-block;
    margin: 0;
}
.fe-embreve-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}
/* Soft-lock PROD: faixa de ganhos 0–79 (staging segue editável) */
.fe-ganhos-tier-card.is-prod-locked {
    opacity: 0.88;
    background: #f8fafc;
}
.fe-ganhos-tier-card.is-prod-locked #cfg-ganhos-tier-0-config,
.fe-ganhos-tier-card.is-prod-locked #roi-calc-0 {
    display: none !important;
}
.fe-ganhos-079-embreve-panel {
    padding: 22px 16px;
    background: #f8fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
}
.fe-ganhos-079-embreve-panel em {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 11px;
    color: var(--slate);
    line-height: 1.45;
    max-width: 180px;
    margin: 0;
}
.fe-widgets-mod-row--calendario { border-left-color: #0c2b5b; }
.fe-widgets-mod-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.fe-widgets-mod-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-size: 20px;
    flex-shrink: 0;
}
.fe-widgets-mod-ico--fa {
    font-size: 16px;
    color: var(--navy);
}
.fe-widgets-mod-row--arena .fe-widgets-mod-ico--fa { color: var(--gold); background: rgba(212,175,55,0.1); }
.fe-widgets-mod-row--excecoes .fe-widgets-mod-ico--fa { color: #16a34a; background: rgba(34,197,94,0.1); }
.fe-widgets-mod-row--oraculo .fe-widgets-mod-ico--fa { color: #6366f1; background: rgba(129,140,248,0.12); }
.fe-widgets-mod-row--calendario .fe-widgets-mod-ico--fa { color: var(--gold); background: rgba(12,43,91,0.08); }
.fe-widgets-mod-row--sniper .fe-widgets-mod-ico { background: rgba(239,68,68,0.08); }
.fe-widgets-mod-info strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fe-widgets-mod-info em {
    display: block;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 11px;
    color: var(--slate);
    margin-top: 2px;
}
.fe-widgets-mod-switches {
    display: grid;
    grid-template-columns: 52px 52px;
    gap: 18px;
    align-items: center;
    justify-items: center;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .fe-widgets-cfg-grid {
        grid-template-columns: 1fr;
    }
    .fe-widgets-cfg-shell {
        padding: 20px 16px 24px;
    }
    .fe-widgets-mods-cols {
        display: none;
    }
    .fe-widgets-mod-switches {
        gap: 12px;
    }
    .fe-widgets-mod-row {
        flex-wrap: wrap;
    }
}

body.dark-mode .fe-widgets-cfg-shell {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, #0f172a 100%);
    border-color: #334155;
}
body.dark-mode .fe-widgets-cfg-title,
body.dark-mode .fe-widgets-cfg-col-label,
body.dark-mode .fe-widgets-mod-info strong { color: #e2e8f0; }
body.dark-mode .fe-widgets-mod-row {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .fe-widgets-mod-ico { background: #0f172a; }
body.dark-mode .fe-layout-pills--row { background: #0f172a; }
body.dark-mode .fe-widgets-style-hint { color: #94a3b8; }

/* --- GESTÃO DE FERIADOS (layout alinhado ao FE.app atual) --- */
.fe-feriados-count-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    padding: 6px 12px;
}
.fe-feriados-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 28px;
    padding: 28px 28px 32px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(7, 17, 38, 0.04) 0%, rgba(248, 250, 252, 0.95) 42%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--navy);
    box-shadow: 0 18px 40px rgba(7, 17, 38, 0.06);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.fe-feriados-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 70%);
    pointer-events: none;
}
.fe-feriados-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(12, 43, 91, 0.08);
    position: relative;
    z-index: 1;
}
.fe-feriados-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c2b5b 0%, #071126 100%);
    color: var(--gold);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.25);
    flex-shrink: 0;
}
.fe-feriados-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.fe-feriados-sub {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--slate);
    font-size: 12.5px;
    margin: 5px 0 0;
    line-height: 1.45;
    max-width: 620px;
}
.fe-feriados-compose {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 18px 18px 14px;
    box-shadow: 0 6px 18px rgba(7, 17, 38, 0.04);
    margin-bottom: 22px;
}
.fe-feriados-compose-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fe-feriados-compose-label i { color: var(--gold); }
.fe-feriados-compose-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.6fr) auto;
    gap: 12px;
    align-items: end;
}
.fe-feriados-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.fe-feriados-field label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--navy-light);
    margin: 0;
}
.fe-feriados-field input {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: var(--navy);
    background: #fff;
    outline: none;
    box-sizing: border-box;
}
.fe-feriados-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.fe-feriados-add-btn {
    height: 42px;
    padding: 0 18px;
    white-space: nowrap;
    border-radius: 8px;
}
.fe-feriados-hint {
    margin: 12px 2px 0;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.45;
}
.fe-feriados-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.fe-feriados-col-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy);
}
.fe-feriados-list-meta {
    font-family: 'Oswald', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--slate);
}
.fe-feriados-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.fe-feriados-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(7, 17, 38, 0.03);
    border-left: 4px solid #b91c1c;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fe-feriados-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.06);
}
.fe-feriados-row.is-editing {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0%, #fff 55%);
}
.fe-feriados-date {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.fe-feriados-date-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    font-size: 14px;
    flex-shrink: 0;
}
.fe-feriados-date-text {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
}
.fe-feriados-date-year {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--slate);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 1px;
}
.fe-feriados-desc {
    font-family: 'Merriweather', serif;
    font-size: 13.5px;
    color: var(--dark-text);
    line-height: 1.4;
    min-width: 0;
}
.fe-feriados-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-shrink: 0;
}
.fe-feriados-actions .btn-gold,
.fe-feriados-actions .btn-red {
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 8px;
    min-width: 34px;
}
.fe-feriados-row input[type="date"],
.fe-feriados-row input[type="text"] {
    width: 100%;
    max-width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    color: var(--navy);
    background: #fff;
    outline: none;
    box-sizing: border-box;
}
.fe-feriados-empty {
    text-align: center;
    padding: 36px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    color: var(--slate);
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 13px;
}
.fe-feriados-empty i {
    display: block;
    font-size: 22px;
    color: #cbd5e1;
    margin-bottom: 10px;
    font-style: normal;
}
@media (max-width: 720px) {
    .fe-feriados-shell { padding: 20px 16px 24px; }
    .fe-feriados-compose-row { grid-template-columns: 1fr; }
    .fe-feriados-add-btn { width: 100%; }
    .fe-feriados-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .fe-feriados-actions { justify-content: flex-start; }
}
body.dark-mode .fe-feriados-shell {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, #0f172a 100%);
    border-color: #334155;
}
body.dark-mode .fe-feriados-title,
body.dark-mode .fe-feriados-col-label,
body.dark-mode .fe-feriados-compose-label,
body.dark-mode .fe-feriados-date-text { color: #e2e8f0; }
body.dark-mode .fe-feriados-compose,
body.dark-mode .fe-feriados-row {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .fe-feriados-count-pill {
    color: #fde68a;
    background: rgba(212, 175, 55, 0.12);
}
body.dark-mode .fe-feriados-desc { color: #cbd5e1; }
body.dark-mode .fe-feriados-field input,
body.dark-mode .fe-feriados-row input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* --- EXPORTAR SNAPSHOT (layout alinhado ao FE.app atual) --- */
.fe-backup-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fe-backup-pill i { color: #0ea5e9; font-size: 11px; }
.fe-backup-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 28px;
    padding: 28px 28px 32px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(7, 17, 38, 0.04) 0%, rgba(248, 250, 252, 0.95) 42%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--navy);
    box-shadow: 0 18px 40px rgba(7, 17, 38, 0.06);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.fe-backup-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 70%);
    pointer-events: none;
}
.fe-backup-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(12, 43, 91, 0.08);
    position: relative;
    z-index: 1;
}
.fe-backup-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c2b5b 0%, #071126 100%);
    color: var(--gold);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.25);
    flex-shrink: 0;
}
.fe-backup-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.fe-backup-sub {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--slate);
    font-size: 12.5px;
    margin: 5px 0 0;
    line-height: 1.45;
    max-width: 640px;
}
.fe-backup-callout {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(7, 17, 38, 0.04);
    margin-bottom: 20px;
}
.fe-backup-callout-main {
    font-family: 'Merriweather', serif;
    color: var(--slate);
    font-size: 12.5px;
    margin: 0 0 12px;
    line-height: 1.6;
}
.fe-backup-callout-main strong {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
    font-style: normal;
}
.fe-backup-callout-note {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: #64748b;
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}
.fe-backup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}
.fe-backup-card {
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 4px 14px rgba(7, 17, 38, 0.03);
    height: 100%;
    box-sizing: border-box;
}
.fe-backup-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fe-backup-card ul {
    font-family: 'Merriweather', serif;
    font-size: 12.5px;
    margin: 0;
    padding-left: 18px;
    line-height: 1.75;
}
.fe-backup-card--in {
    background: linear-gradient(160deg, #f0fdf4 0%, #fff 70%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
}
.fe-backup-card--in h4 { color: #166534; }
.fe-backup-card--in h4 i { color: #16a34a; }
.fe-backup-card--in ul { color: #15803d; }
.fe-backup-card--out {
    background: linear-gradient(160deg, #fff7ed 0%, #fff 70%);
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
}
.fe-backup-card--out h4 { color: #9a3412; }
.fe-backup-card--out h4 i { color: #ea580c; }
.fe-backup-card--out ul { color: #c2410c; }
.fe-backup-actions {
    position: relative;
    z-index: 1;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}
.fe-backup-download-btn {
    width: 100%;
    max-width: 420px;
    height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.2);
}
@media (max-width: 720px) {
    .fe-backup-shell { padding: 20px 16px 24px; }
    .fe-backup-grid { grid-template-columns: 1fr; }
}
body.dark-mode .fe-backup-shell {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, #0f172a 100%);
    border-color: #334155;
}
body.dark-mode .fe-backup-title { color: #e2e8f0; }
body.dark-mode .fe-backup-callout {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .fe-backup-callout-main strong { color: #fde68a; }
body.dark-mode .fe-backup-pill {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.12);
}
body.dark-mode .fe-backup-card--in {
    background: linear-gradient(160deg, rgba(22, 163, 74, 0.12) 0%, #1e293b 70%);
    border-color: rgba(34, 197, 94, 0.35);
}
body.dark-mode .fe-backup-card--out {
    background: linear-gradient(160deg, rgba(234, 88, 12, 0.12) 0%, #1e293b 70%);
    border-color: rgba(249, 115, 22, 0.35);
}
body.dark-mode .fe-backup-actions { border-top-color: #334155; }

/* --- PAINEL DE INTEGRAÇÕES (hub → ficha → config) --- */
.fe-int-menu-beta {
    font-size: 9px;
    background: rgba(212, 175, 55, 0.18);
    color: var(--navy);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.fe-int-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1040px;
    margin: 10px auto 16px;
    padding: 0 8px;
    box-sizing: border-box;
}
.fe-int-back-btn {
    background: transparent;
    border: none;
    color: var(--navy-light);
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, transform 0.2s;
    outline: none;
    padding: 0;
}
.fe-int-back-btn:hover {
    color: var(--gold);
    transform: translateX(-2px);
}
.fe-int-shell {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 28px;
    padding: 28px 28px 32px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(7, 17, 38, 0.04) 0%, rgba(248, 250, 252, 0.95) 42%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--navy);
    box-shadow: 0 18px 40px rgba(7, 17, 38, 0.06);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.fe-int-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 70%);
    pointer-events: none;
}
.fe-int-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(12, 43, 91, 0.08);
    position: relative;
    z-index: 1;
}
.fe-int-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0c2b5b 0%, #071126 100%);
    color: var(--gold);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(7, 17, 38, 0.25);
    flex-shrink: 0;
}
.fe-int-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.fe-int-sub {
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--slate);
    font-size: 12.5px;
    margin: 5px 0 0;
    line-height: 1.45;
    max-width: 720px;
}
.fe-int-section-head {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}
.fe-int-section-head h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 4px;
}
.fe-int-section-head h4 span {
    font-weight: 500;
    color: var(--slate);
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 12px;
}
.fe-int-section-head p {
    margin: 0;
    font-size: 12px;
    color: var(--slate);
    font-family: 'Merriweather', serif;
    line-height: 1.4;
}
.fe-int-active {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(7, 17, 38, 0.04);
}
.fe-int-active-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 12px;
}
.fe-int-active-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate);
    font-size: 13px;
    font-family: 'Merriweather', serif;
}
.fe-int-active-empty i {
    font-size: 22px;
    color: #94a3b8;
}
.fe-int-active-empty p { margin: 0; }
.fe-int-active-filled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.fe-int-active-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fe-int-active-logo,
.fe-int-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--crm-accent, #f97316) 14%, #fff);
    color: var(--crm-accent, #f97316);
    font-size: 18px;
    border: 1px solid color-mix(in srgb, var(--crm-accent, #f97316) 35%, #e2e8f0);
    flex-shrink: 0;
}
.fe-int-active-brand strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    color: var(--navy);
    letter-spacing: 0.3px;
}
.fe-int-active-brand p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--slate);
    font-family: 'Merriweather', serif;
}
.fe-int-active-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fe-int-status-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    color: #94a3b8;
    background: #f8fafc;
    white-space: nowrap;
}
.fe-int-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.fe-int-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    font: inherit;
    color: inherit;
    min-height: 148px;
}
.fe-int-card:hover {
    border-color: color-mix(in srgb, var(--crm-accent, var(--gold)) 45%, #e2e8f0);
    box-shadow: 0 10px 24px rgba(7, 17, 38, 0.08);
    transform: translateY(-2px);
}
.fe-int-card.is-coming-soon {
    opacity: 0.78;
    cursor: pointer;
}
.fe-int-card.is-coming-soon:hover { opacity: 0.92; }
.fe-int-card.is-active-crm {
    border-color: color-mix(in srgb, var(--crm-accent, #22c55e) 50%, #e2e8f0);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--crm-accent, #22c55e) 25%, transparent);
}
.fe-int-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.fe-int-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
    margin: 0;
}
.fe-int-card-blurb {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--slate);
    font-family: 'Merriweather', serif;
    flex: 1;
}
.fe-int-card-cta {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--navy-light);
}
.fe-int-card.is-available .fe-int-card-cta,
.fe-int-card.is-active-crm .fe-int-card-cta {
    color: var(--crm-accent, #ea580c);
}
.fe-int-guide {
    position: relative;
    z-index: 1;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}
.fe-int-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.fe-int-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
}
.fe-int-step-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fe-int-steps strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: var(--navy);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.fe-int-steps p {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: var(--slate);
    font-family: 'Merriweather', serif;
    line-height: 1.35;
}

/* Ficha do conector */
.fe-int-sheet-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.fe-int-sheet-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: color-mix(in srgb, var(--crm-accent, #f97316) 14%, #fff);
    color: var(--crm-accent, #f97316);
    border: 1px solid color-mix(in srgb, var(--crm-accent, #f97316) 35%, #e2e8f0);
    flex-shrink: 0;
}
.fe-int-sheet-kicker {
    margin: 0 0 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--slate);
}
.fe-int-sheet-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--navy);
    letter-spacing: 0.4px;
}
.fe-int-sheet-tagline {
    margin: 6px 0 0;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 12.5px;
    color: var(--slate);
}
.fe-int-sheet-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: var(--slate);
    font-family: 'Merriweather', serif;
}
.fe-int-sheet-meta strong {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.3px;
    margin-right: 6px;
}
.fe-int-sheet-benefits {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 0 0 0 18px;
    color: var(--slate);
    font-family: 'Merriweather', serif;
    font-size: 13px;
    line-height: 1.55;
}
.fe-int-sheet-benefits li { margin-bottom: 6px; }
.fe-int-sheet-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
.fe-int-sheet-soon {
    position: relative;
    z-index: 1;
    padding: 16px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px dashed #cbd5e1;
    font-family: 'Merriweather', serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Config Spotter */
.fe-int-config-shell { max-width: 960px; padding: 0; overflow: hidden; }
.fe-int-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 28px 16px;
    border-bottom: 1px dashed #e2e8f0;
    position: relative;
    z-index: 1;
}
.fe-int-config-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fe-int-config-kicker {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--slate);
}
.fe-int-config-title {
    margin: 2px 0 0;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fe-int-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    background: #fff;
}
.fe-int-tab {
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--slate);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-bottom: -2px;
}
.fe-int-tab.is-active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.fe-int-panel {
    padding: 24px 28px;
    position: relative;
    z-index: 1;
    background: #fff;
}
.fe-int-panel-status {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 16px;
}
.fe-int-token-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin-bottom: 18px;
    align-items: end;
}
.fe-int-token-field label,
.fe-int-field-block label,
.fe-int-webhook-box label {
    display: block;
    margin-bottom: 6px;
}
.fe-int-token-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fe-int-field-block { margin-bottom: 18px; }
.fe-int-hint {
    font-size: 11px;
    color: #64748b;
    margin: 6px 0 0;
}
.fe-int-hint-muted {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
}
.fe-int-webhook-box {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.fe-int-webhook-url {
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    margin: 0 0 10px;
    color: #334155;
}
.fe-int-webhook-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.fe-int-webhook-list {
    font-size: 11px;
    color: #475569;
    margin: 10px 0 0 18px;
    padding: 0;
}
.fe-int-config-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.fe-int-btn-navy { background: var(--navy-light) !important; border-color: var(--navy-light) !important; }
.fe-int-btn-green { background: #059669 !important; border-color: #059669 !important; }
.fe-int-btn-violet { background: #7c3aed !important; border-color: #7c3aed !important; }
.fe-int-btn-muted { background: #64748b !important; border-color: #64748b !important; }

@media (max-width: 900px) {
    .fe-int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fe-int-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .fe-int-shell { padding: 20px 16px 24px; }
    .fe-int-grid { grid-template-columns: 1fr; }
    .fe-int-token-row { grid-template-columns: 1fr; }
    .fe-int-config-head,
    .fe-int-panel { padding-left: 16px; padding-right: 16px; }
    .fe-int-tabs { padding: 0 8px; overflow-x: auto; }
}
body.dark-mode .fe-int-shell {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, #0f172a 100%);
    border-color: #334155;
}
body.dark-mode .fe-int-title,
body.dark-mode .fe-int-card-name,
body.dark-mode .fe-int-sheet-title,
body.dark-mode .fe-int-config-title,
body.dark-mode .fe-int-section-head h4,
body.dark-mode .fe-int-active-brand strong { color: #e2e8f0; }
body.dark-mode .fe-int-active,
body.dark-mode .fe-int-card,
body.dark-mode .fe-int-panel,
body.dark-mode .fe-int-tabs {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .fe-int-steps li,
body.dark-mode .fe-int-sheet-meta,
body.dark-mode .fe-int-webhook-box {
    background: #0f172a;
    border-color: #334155;
}

/* --- SOBRE FE.app (layout + carrossel de propaganda) --- */
.fe-sobre-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 8px 36px;
    box-sizing: border-box;
}
.fe-sobre-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    text-align: left;
}
.fe-sobre-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.fe-sobre-aside {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fe-sobre-promo-head {
    padding: 0 2px;
}
.fe-sobre-promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--navy);
}
.fe-sobre-promo-kicker i { color: var(--gold); }
.fe-sobre-promo-head p {
    margin: 4px 0 0;
    font-family: 'Merriweather', serif;
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.4;
}
.fe-sobre-promo-stage {
    position: relative;
    min-height: 440px;
}
.fe-sobre-promo-slide {
    display: none;
    width: 100%;
    min-height: 440px;
    padding: 36px 22px;
    border-radius: 14px;
    text-align: center;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(7, 17, 38, 0.12);
}
.fe-sobre-promo-slide.is-active {
    display: flex;
    animation: feSobrePromoIn 0.45s ease;
}
@keyframes feSobrePromoIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fe-sobre-promo-inner {
    margin: auto 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fe-sobre-promo-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}
.fe-sobre-promo-badge--orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.4);
}
.fe-sobre-promo-badge--navy {
    background: rgba(5, 11, 26, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.fe-sobre-promo-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.25;
}
.fe-sobre-promo-title--light {
    color: #fff;
    text-shadow: 0 0 15px rgba(249,115,22,0.85), 0 2px 4px rgba(0,0,0,0.95);
}
.fe-sobre-promo-title--light i { color: #f97316; margin-right: 6px; }
.fe-sobre-promo-title--gold {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212,175,55,0.45);
}
.fe-sobre-promo-copy {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 24px;
}
.fe-sobre-promo-copy--light { color: #cbd5e1; }
.fe-sobre-promo-copy--gold {
    color: #e2e8f0;
    font-style: italic;
}
.fe-sobre-promo-discount {
    display: block;
    margin: 8px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 900;
    font-style: normal;
    color: var(--gold);
    text-decoration: underline;
}
.fe-sobre-promo-link {
    text-decoration: none;
    display: block;
    width: 100%;
}
.fe-sobre-promo-cta {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
}
.fe-sobre-promo-cta--navy {
    background: var(--navy);
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(5, 11, 26, 0.45);
    transition: background 0.2s, transform 0.2s;
}
.fe-sobre-promo-cta--navy:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}
.fe-sobre-promo-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
}
.fe-sobre-promo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.fe-sobre-promo-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
}
.fe-sobre-promo-dot:hover { border-color: var(--navy); }
@media (max-width: 980px) {
    .fe-sobre-layout {
        grid-template-columns: 1fr;
    }
    .fe-sobre-aside {
        position: static;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}
body.dark-mode .fe-sobre-promo-kicker { color: #e2e8f0; }
body.dark-mode .fe-sobre-tabs {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.fe-oraculo-float-panel {
    position: fixed;
    width: min(380px, calc(100vw - 40px));
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.08);
    z-index: 99992;
    padding: 14px 16px 16px;
    animation: feOraculoPanelIn 0.2s ease-out;
}
@keyframes feOraculoPanelIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.fe-oraculo-float-panel::after {
    content: '';
    position: absolute;
    bottom: -8px;
    top: auto;
    right: 28px;
    left: auto;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid rgba(99, 102, 241, 0.35);
    border-bottom: 1px solid rgba(99, 102, 241, 0.35);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.fe-oraculo-float-panel.fe-oraculo-float-below::after {
    bottom: auto;
    top: -8px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(99, 102, 241, 0.35);
    border-top: 1px solid rgba(99, 102, 241, 0.35);
}
.fe-oraculo-float-panel.fe-oraculo-float-align-left::after {
    right: auto;
    left: 28px;
}
.fe-oraculo-float-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4338ca;
    margin-bottom: 8px;
}
.fe-oraculo-float-panel-header i { margin-right: 6px; color: #6366f1; }
.fe-oraculo-float-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.fe-oraculo-float-close:hover { color: #475569; }
.fe-oraculo-float-hint {
    margin: 0 0 12px;
    font-family: 'Merriweather', serif;
    font-size: 11px;
    color: var(--slate);
    line-height: 1.5;
}
.fe-oraculo-float-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fe-oraculo-float-input-row input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Merriweather', serif;
    font-size: 12px;
}
.fe-oraculo-float-input-row button {
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.fe-oraculo-float-answer {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    font-family: 'Merriweather', serif;
    font-size: 12px;
    line-height: 1.6;
    color: var(--dark-text);
}
.fe-oraculo-float-answer-label {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.exc-table-hint {
    margin: 0 0 10px;
    padding: 8px 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(7, 17, 38, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}
.exc-table-hint i { color: var(--gold); margin-right: 6px; }

.exc-matrix-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.exc-matrix-filter-action {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.exc-matrix-filter-action:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
}

.exc-row-actionable {
    cursor: pointer;
}
.exc-row-actionable:hover {
    outline: 1px solid rgba(212, 175, 55, 0.35);
}
.exc-row-highlight {
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--gold);
}

.exc-combatente-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.exc-combatente-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(12, 43, 91, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.exc-combatente-name {
    font-weight: 400;
    color: #e2e8f0;
}
.exc-metric-crm {
    color: #f97316;
    font-size: 10px;
    margin-left: 4px;
}

.exc-perf-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}
.exc-perf-val {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}
.exc-perf-val--elite { color: #22c55e; }
.exc-perf-val--safe { color: #4ade80; }
.exc-perf-val--warn { color: #fbbf24; }
.exc-perf-val--risk { color: #ef4444; }
.exc-perf-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.exc-perf-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.35s ease;
}
.exc-perf-fill--elite,
.exc-perf-fill--safe { background: linear-gradient(90deg, #16a34a, #22c55e); }
.exc-perf-fill--warn { background: linear-gradient(90deg, #ca8a04, #fbbf24); }
.exc-perf-fill--risk { background: linear-gradient(90deg, #dc2626, #ef4444); }
.exc-perf-na { color: #64748b; font-style: italic; }

.exc-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.exc-status-pill--critical {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
}
.exc-status-pill--warn {
    color: #fef08a;
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.35);
}
.exc-status-pill--ok {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
}
.exc-status-pill--crm {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.35);
}

.exc-sugestao-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}
.exc-sugestao-text {
    display: block;
    margin: 0;
    line-height: 1.5;
    color: #e2e8f0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.exc-sugestao-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}
.exc-row-actionable:hover .exc-sugestao-action {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.65);
}
.exc-audit-status-cell {
    text-align: right;
    vertical-align: middle;
}

tr.fe-exc-lanc-highlight {
    background: rgba(212, 175, 55, 0.18) !important;
    box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.55);
    animation: fe-exc-lanc-pulse 1.2s ease-in-out 2;
}
@keyframes fe-exc-lanc-pulse {
    0%, 100% { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.55); }
    50% { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.9); }
}

/* Responsive */
@media (max-width: 1200px) {
    .exc-audit-table th:nth-child(1) { width: 16%; }
    .exc-audit-table th:nth-child(2) { width: 14%; }
    .exc-audit-table th:nth-child(3) { width: 12%; text-align: center; }
    .exc-audit-table th:nth-child(4) { width: 40%; }
    .exc-audit-table th:nth-child(5) { width: 18%; text-align: right; }
    .exc-sugestao-text { font-size: 11.5px; }
}
@media (max-width: 1100px) {
    .exc-monitor-header { padding: 8px 10px; gap: 10px; }
    .exc-monitor-title-eyebrow { font-size: 9px; letter-spacing: 0.34em; padding-right: 0.34em; }
    .exc-monitor-title-hero { font-size: 21px; letter-spacing: 0.04em; }
}
@media (max-width: 900px) {
    .exc-kpi-strip { grid-template-columns: repeat(3, 1fr); }
    .exc-monitor-body { grid-template-columns: 1fr; }
    .exc-donut-ring-wrap { width: 140px; height: 140px; }
    .exc-donut-kpi { font-size: 32px; }
    .exc-donut-column { max-height: none; }
    .exc-donut-briefing {
        max-height: 260px;
    }
    .exc-briefing-mean { font-size: 10px; }
    .exc-matrix-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .exc-matrix-split { grid-template-columns: 1fr; }
    /* Telas menores: 1 scroll no body; card-rows em 3 zonas */
    .exc-monitor-right {
        overflow: visible;
        padding-right: 0;
    }
    .exc-monitor-body {
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
    }
    .exc-audit-table thead { display: none; }
    .exc-audit-table,
    .exc-audit-table tbody {
        display: block;
        width: 100%;
    }
    .exc-audit-table tbody tr.excecao-tr-hover,
    .exc-audit-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
        gap: 8px 10px;
        align-items: start;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background: rgba(7, 17, 38, 0.55);
    }
    .exc-audit-table tbody td {
        display: block;
        padding: 0 !important;
        border: none !important;
        width: auto !important;
    }
    .exc-audit-table tbody td.exc-audit-metric {
        grid-column: 1;
        grid-row: 1;
    }
    .exc-audit-table tbody td.exc-audit-combatente {
        grid-column: 2;
        grid-row: 1;
    }
    .exc-audit-table tbody td.exc-audit-perf {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }
    .exc-audit-table tbody td.exc-audit-status-cell {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }
    .exc-audit-table tbody td.exc-audit-sugestao {
        grid-column: 3;
        grid-row: 1 / span 2;
        padding: 0 !important;
    }
    .exc-sugestao-block { gap: 6px; height: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .exc-panel-master { padding: 16px 14px; height: 94vh; width: 96vw; }
    .exc-kpi-strip { grid-template-columns: repeat(2, 1fr); }
    .exc-monitor-header { padding: 7px 10px; gap: 8px; }
    .exc-monitor-header-actions { gap: 8px; }
    .exc-monitor-title-eyebrow { font-size: 8px; letter-spacing: 0.28em; padding-right: 0.28em; }
    .exc-monitor-title-hero { font-size: 16px; letter-spacing: 0.03em; }
    .exc-close-btn { width: 28px; height: 28px; font-size: 14px; }
    .exc-live-badge { padding: 4px 18px 4px 14px; font-size: 10px; }
    .exc-header-scan-time { padding: 4px 12px 4px 10px; font-size: 10px; }
    .exc-matrix-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
    /* Mobile: stack 3 zones vertically — still one scroll */
    .exc-audit-table tbody tr.excecao-tr-hover,
    .exc-audit-table tbody tr {
        grid-template-columns: 1fr;
    }
    .exc-audit-table tbody td.exc-audit-metric,
    .exc-audit-table tbody td.exc-audit-combatente,
    .exc-audit-table tbody td.exc-audit-perf,
    .exc-audit-table tbody td.exc-audit-status-cell,
    .exc-audit-table tbody td.exc-audit-sugestao {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Radar — comprometimento bonificação / lucro líquido */
.macro-roi-block {
    margin-top: auto;
    text-align: left;
    padding: 16px;
    background: rgba(5, 150, 105, 0.02);
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-left: 4px solid #059669;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.01);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.macro-roi-block--link {
    cursor: pointer;
}
.macro-roi-block--link:hover {
    background: rgba(5, 150, 105, 0.05);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.08);
    transform: translateY(-1px);
}
.macro-roi-block--link:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.65);
    outline-offset: 2px;
}
.macro-roi-alert-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}
.macro-roi-alert-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.28);
}
.macro-roi-alert-btn.is-macro-alert-active,
#macro-roi-pending-hint.is-macro-alert-active {
    display: inline-flex !important;
}
#macro-roi-pending-hint.is-macro-alert-active {
    display: block !important;
}
#macro-roi-pending-hint,
#macro-roi-safe-badge {
    display: none !important;
}
#macro-roi-safe-badge.is-macro-badge-active {
    display: inline-flex !important;
}
.macro-roi-block--ready {
    background: rgba(5, 150, 105, 0.02) !important;
    border-color: rgba(5, 150, 105, 0.12) !important;
    border-left-color: #059669 !important;
}
.macro-roi-block--pending {
    background: rgba(249, 115, 22, 0.03) !important;
    border-color: rgba(249, 115, 22, 0.22) !important;
    border-left-color: #f97316 !important;
}
.macro-roi-block--pending #macro-roi-payout {
    color: #94a3b8 !important;
}

.macro-global-card--link {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.macro-global-card--link:hover {
    box-shadow: 0 8px 22px rgba(7, 17, 38, 0.06);
}
.macro-global-card--pending {
    background: rgba(249, 115, 22, 0.03) !important;
    border-color: rgba(249, 115, 22, 0.22) !important;
    border-left-color: #f97316 !important;
}
.macro-global-card--pending #macro-global-pct {
    color: #94a3b8 !important;
}

