﻿/* =========================
   VARIÁVEIS GLOBAIS (usado por todo o sistema) - Todas as paginas
========================= */


:root{
  --radius:16px;
  --headerHeight:70px;
  --accent-light:#36AEBF;/* complemento do gradiente */
  --accent-main:#36AEBF;   /* sólida */
  --header-height: 70px;
}

html[data-theme="white"]{
  --bg:#f3f4f6;
  --sidebar:#ffffff;
  --card:#ffffff;
  --hover:rgba(0,0,0,.05);
  --stroke:rgba(0,0,0,.10);
  --text:#111827;
  --muted:rgba(17,24,39,.65);
}

html[data-theme="black"]{
  --bg:#222222;
  --sidebar:#1a1a1a;
  --card:#2a2a2a;
  --hover:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.08);
  --text:#f3f4f6;
  --muted:rgba(243,244,246,.65);
}

html,
body {
  background-color: var(--bg);
}

html[data-theme="white"] {
  color-scheme: light;
}

html[data-theme="black"] {
  color-scheme: dark;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

#contentArea {
  transition: opacity 140ms ease, transform 140ms ease;
}

#contentArea.content-transitioning {
  opacity: .82;
  transform: translateY(2px);
  pointer-events: none;
}

html[data-theme="white"] .loadingOverlay {
  background: rgba(243, 244, 246, .34) !important;
  backdrop-filter: blur(2px) !important;
}

html[data-theme="black"] .loadingOverlay {
  background: rgba(34, 34, 34, .34) !important;
  backdrop-filter: blur(2px) !important;
}

.loadingBox {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--stroke) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18) !important;
}

.loadingText {
  color: var(--text) !important;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  #contentArea {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}


/* =========================
   DIVISOR - Todas as paginas
========================= */

.submenu{
  display:none;
  flex-direction:column;
  gap:4px;
  margin-left:28px;
  position: relative;
  padding-left: 12px;
}

.submenu.active{
  display:flex;
}

.submenuItem{
  padding:8px 12px;
  border-radius:8px;
  font-size:13px;
  cursor:pointer;
  position: relative;
  background: transparent !important;
}

/* Linha curva: vertical (topo → meio) + horizontal (curva no canto) */
.submenuItem::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 50%;
  width: 10px;
  border-left: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  border-bottom-left-radius: 6px;
}

/* Continua a linha vertical do meio até o fim — só nos itens que não são o último */
.submenuItem:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  bottom: 0;
  border-left: 1px solid rgba(255,255,255,0.22);
}

html[data-theme="white"] .submenuItem::before {
  border-left-color: rgba(0,0,0,0.18);
  border-bottom-color: rgba(0,0,0,0.18);
}

html[data-theme="white"] .submenuItem:not(:last-child)::after {
  border-left-color: rgba(0,0,0,0.18);
}

html[data-theme="white"] .submenuItem{
  color: #000000 !important;
}

html[data-theme="white"] .submenuItem:hover {
  background: transparent !important;
  color: #000000 !important;
}

html[data-theme="white"] .submenuItem.active {
  color: #6b7280 !important;
  font-weight: 400 !important;
  background: transparent !important;
}

html[data-theme="black"] .submenuItem{
  color: #ffffff !important;
}

html[data-theme="black"] .submenuItem:hover {
  background: transparent !important;
  color: #ffffff !important;
}

html[data-theme="black"] .submenuItem.active {
  color: rgba(255,255,255,0.55) !important;
  font-weight: 400 !important;
  background: transparent !important;
}

.sidebar.collapsed .submenu{
  display:none !important;
}

.menuFooter{
  flex-shrink:0;
}
.menuLogout{
  background:linear-gradient(180deg,var(--accent-light),var(--accent-main));
  color:white;
}

.menuLogout:hover{
  opacity:.9;
}

.menuLogout .menuIcon{
  filter:brightness(0) invert(1);
}

/* =========================
   ÍCONES - Todas as paginas
========================= */


.menuIcon{
  object-fit:contain;
  opacity: var(--icon-opacity, 1);
}


.menuIcon2{
  object-fit:contain;
  opacity: var(--icon-opacity, 1);
}

:root {
  --theme-hover-icon-filter: brightness(0) saturate(100%) invert(59%) sepia(69%) saturate(512%) hue-rotate(139deg) brightness(91%) contrast(88%);
}

html[data-theme="black"] .menuIcon,
html[data-theme="black"] .menuIcon2{
  filter: brightness(0) invert(1);
}

html[data-theme="white"] .menuIcon,
html[data-theme="white"] .menuIcon2 {
  filter: brightness(0) opacity(0.65); 
}

html[data-theme="white"] .menuItem:hover .menuIcon,
html[data-theme="white"] .menuItem:hover .menuIcon2 {
  filter: brightness(0) opacity(0.85); 
}

/* =========================
   SELECT PADRÃO - Todas as paginas
========================= */


.themeSelect{
  padding:10px 40px 10px 16px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--card);
  color:var(--text);
  font-size:15px;
  cursor:pointer;
  appearance:none;
  transition:.25s ease;
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;
}

.topSelect{
  padding:8px 36px 8px 12px;
  font-size:14px;
  border-radius:12px;
  min-width:140px;
}


html[data-theme="black"] .themeSelect{
  background-image:url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

html[data-theme="white"] .themeSelect{
  background-image:url("data:image/svg+xml;utf8,<svg fill='%23000000' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

.themeSelect:focus{
  outline:none;
  border-color:var(--accent-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-main) 15%, transparent);
}

/* =========================
   CUSTOM SELECT REAL - Todas as paginas
========================= */


.nativeHidden{
  display:none !important;
}

.customSelect {
  width: 280px;
  height: 36px;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  padding: 8px 36px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  cursor: pointer;
  font-size: 12px;
  
 
 z-index: 2;
}

/* A MÁGICA: Ao passar o mouse ou abrir, ele assume a frente de todos os outros cards */
.customSelect:hover,
.customSelect.is-open,
.customSelect[aria-expanded="true"],
.customSelect:has(.customSelectOptions[style*="block"]) {
  z-index: 999;
}

  .customSelect:hover,
  .themeSelect:hover,
  .topSelect:hover,
  .cad-select-input:hover {
    z-index: 999;
    background-color: color-mix(in srgb, var(--accent-main) 5%, transparent) !important;
  }

.customSelect::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.72;
  transform:translateY(-65%) rotate(45deg);
  transform-origin:center;
  transition:transform .18s ease, opacity .18s ease;
  pointer-events:none;
}

.customSelect.is-open::after,
.customSelect[aria-expanded="true"]::after,
.customSelect:has(.customSelectOptions[style*="block"])::after {
  transform:translateY(-25%) rotate(225deg);
}

.customSelectMes{
  width:100px;
}

.customSelectOptions {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: 100% !important;
  background: var(--card) !important;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 0 8px 8px !important; /* Ajuste no padding para o scroll colar na borda */
  display: none;
  z-index: 999999 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden !important; /* Força a remoção do segundo scroll aqui */
}

/* Substitua (ou adicione) a classe .customScroll para limitar a 5 itens */
.customScroll {
  max-height: 175px !important; /* Altura exata para exibir ~5 itens (aprox 35px por item) */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 8px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-main) transparent;
}

.customScroll::-webkit-scrollbar {
  width: 6px;
}


.customSelectOptions::-webkit-scrollbar {
  width: 6px;
}

.customSelectOptions::-webkit-scrollbar-thumb {
  background: var(--accent-main);
  border-radius: 6px;
}

.customScroll{
  max-height:220px;
  overflow-y:auto;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color:var(--accent-main) transparent;
}

.customScroll::-webkit-scrollbar{
  width:12px;
}

.customScroll::-webkit-scrollbar-track{
  background:transparent;
}

.customScroll::-webkit-scrollbar-thumb{
  background:var(--accent-main);
  border-radius:12px;
  border:3px solid transparent;
  background-clip:content-box;
}

.customScroll::-webkit-scrollbar-button{
  display:none;
}

.customOption{
  padding:8px 12px;
  cursor:pointer;
  transition:.2s;
  margin-right:10px;
  position: relative;
}

.customOption:hover{
  background: color-mix(in srgb, var(--accent-main) 15%, transparent) !important;
}

.customOption.active {
  background: transparent !important;
  color: var(--muted) !important;
}

.customOption.active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent-main);
}

.cad-pager__rows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cad-page-size-select {
  width: 72px;
  min-width: 72px;
  height: 28px;
  padding: 0 26px 0 12px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 30;
}

.cad-page-size-select::after {
  right: 10px;
  width: 6px;
  height: 6px;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
}

.cad-page-size-select .cad-status-select__value {
  font-weight: 500;
}

.cad-page-size-select .customSelectOptions {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  width: 72px !important;
  min-width: 72px !important;
  padding: 6px 0 6px 6px !important;
  z-index: 2147483647 !important;
}

.cad-page-size-select .customScroll {
  max-height: 148px !important;
  padding-right: 6px !important;
}

.cad-page-size-select .customOption {
  margin-right: 6px;
  padding: 8px 10px;
  font-size: 12px;
}




#mesCustom{
  width:150px;
  min-width:100px;
}

#anoCustom{
  min-width: 85px;
  width: fit-content;
  padding-right: 28px; 
}

#languageCustom{
  width:150px;
  min-width:110px;
}

#themeCustom{
  min-width:140px;
}


/* =========================
   TOOLTIP GLOBAL - Todas as paginas
========================= */

.tooltip {
  position: relative;
  --tooltip-bg: rgba(45, 45, 45, 0.96);
  --tooltip-text: #ffffff;
  --tooltip-border: var(--stroke);
}

html[data-theme="white"] .tooltip {
  --tooltip-bg: #ffffff;
  --tooltip-text: var(--accent-main);
  --tooltip-border: rgba(0, 0, 0, 0.08);
}

.tooltip::before,
.tooltip::after {
  opacity: 0;
  pointer-events: none;
  transition: 0.15s ease;
  z-index: 9999;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--tooltip-bg) !important;
  color: var(--tooltip-text) !important;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid var(--tooltip-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--accent-main) transparent;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
}

.tooltip:hover::after {
  transform: translateX(-50%) translateY(0);
}

.tooltip:hover::before {
  transform: translateX(-50%) translateY(0);
}

.tooltipThemeKnob::after {
  top: calc(100% + 6px);
  bottom: auto;
  left: 78%;
  transform: translateX(-50%) translateY(4px);
}

.tooltipThemeKnob::before {
  top: calc(100% + 1px);
  bottom: auto;
  left: 78%;
  transform: translateX(-50%) translateY(4px);
}

.tooltipThemeKnob:hover::before,
.tooltipThemeKnob:hover::after {
  opacity: 1;
}

.tooltipThemeKnob:hover::after {
  transform: translateX(-50%) translateY(0);
}

.tooltipThemeKnob:hover::before {
  transform: translateX(-50%) translateY(0);
}

.tooltip-up::after {
  bottom: calc(100% + 10px) !important;
  top: auto !important;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-up::before {
  bottom: calc(100% + 4px) !important;
  top: auto !important;
  transform: translateX(-50%) translateY(-4px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--accent-main) transparent transparent transparent;
}

.tooltip-up:hover::before,
.tooltip-up:hover::after {
  opacity: 1;
}

.tooltip-up:hover::after {
  transform: translateX(-50%) translateY(0);
}

.tooltip-up:hover::before {
  transform: translateX(-50%) translateY(0);
}

.tooltip-left::after {
  top: 50% !important;
  right: calc(100% + 10px) !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateX(-4px) translateY(-50%) !important;
}

.tooltip-left::before {
  top: 50% !important;
  right: calc(100% + 4px) !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateX(-4px) translateY(-50%) !important;
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent-main);
}

.tooltip-left:hover::before,
.tooltip-left:hover::after {
  opacity: 1;
}

.tooltip-left:hover::after {
  transform: translateX(0) translateY(-50%) !important;
}

.tooltip-left:hover::before {
  transform: translateX(0) translateY(-50%) !important;
}

/* Suprime o CSS tooltip pseudo-element quando o JS tooltip está ativo (evita tooltip duplo) */
body.has-js-tooltip .tooltip::before,
body.has-js-tooltip .tooltip::after {
  content: none !important;
  display: none !important;
}

/* =========================
   ESTILOS DOS MODAIS (EXTRAÍDOS DO HTML PARA MANTER O PADRÃO) - Todas as paginas
========================= */


html[data-theme] body[data-icon-pack] .avatarPopupItem .icon-lang-img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  object-fit: cover;
  filter: none !important; /* Blindado 100% contra regras globais e packs */
  margin-right: 8px;
  display: inline-block;
}

.modalTitle { 
  margin-top: 0; 
  margin-bottom: 12px;
  font-size: 18px; 
  font-weight: 600;
  color: var(--text); }

.modalTitle.no-margin { margin-bottom: 0; }

.modalTextDesc { 
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5; }

.modalActionsRight { 
  display: flex;
  justify-content: flex-end;
  gap: 12px; }

.modalContent.modalEditProfile { max-width: 420px; padding: 30px; }

.profileEditHeader { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  position: relative; }

.relativeContainer { position: relative; }

.btnOpcoesPerfil { 
  background: transparent; border: none; cursor: pointer; padding: 4px; 
  display: flex; align-items: center; justify-content: center; 
  border-radius: 8px; transition: .2s ease; 
}
.btnOpcoesPerfil:hover { opacity: 0.6; }

#popupOpcoesPerfil { position: absolute; right: 0; top: 100%; margin-top: 5px; min-width: 200px; }
.textRemoveImage { font-weight: 500; font-size: 13px; }

.avatarEditContainer { display: flex; justify-content: center; margin-bottom: 30px; }
.userAvatarWrapper.editMode { width: 100px; height: 100px; position: relative; }
#previewAvatarModal { font-size: 40px; transition: none; }

.btnCameraHover { 
  position: absolute; bottom: 0; right: -5px; width: 34px; height: 34px; 
  border-radius: 50%; background: var(--card); border: 1px solid var(--stroke); 
  cursor: pointer; display: flex; align-items: center; justify-content: center; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: opacity 0.2s ease; 
}
.btnCameraHover:hover { opacity: 0.7; }
.btnCameraHover img { width: 16px; height: 16px; margin: 0; }

.inputGroup.editProfileGroup { margin-bottom: 30px; }
.inputIconInside { 
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); 
  width: 16px; height: 16px; margin: 0; pointer-events: none; opacity: 0.6; 
}
.inputWithIcon { padding-left: 40px !important; }

.profileEditFooter { 
  display: flex; justify-content: flex-end; gap: 12px; 
  border-top: 1px solid var(--stroke); padding-top: 20px; 
}
.btnModalCancel.editSize { height: 38px; }
.btnModalDanger.editSize { height: 38px; padding: 0 24px; }



/* =========================
   MODAL DE CONFIRMAÇÃO GLOBAL (MOVIDO DO HTML PARA O CSS) - Todas as paginas
========================= */

.custom-modal-backdrop {
  position: fixed; top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7); 
  backdrop-filter: blur(4px);
  z-index: 99999999 !important; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.2s ease;
}

.custom-modal-backdrop.show { 
  opacity: 1; pointer-events: auto; 
}


/* === Toast global === */
#toastGlobalSistema,
.toastMsg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  min-width: 200px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 46px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--accent-main, #10b981) 14%, rgba(18,18,20,0.74));
  color: var(--accent-main, #10b981);
  border: 1px solid color-mix(in srgb, var(--accent-main, #10b981) 55%, transparent);
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  z-index: 2147483647 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

#toastGlobalSistema.show,
.toastMsg.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toastMsg__icon,
.toastGlobalSistema__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: var(--accent-main, #10b981);
}
.toastMsg__icon svg,
.toastGlobalSistema__icon svg {
  width: 19px;
  height: 19px;
}

.toastMsg__text,
.toastGlobalSistema__text {
  display: block;
  line-height: 1.3;
  white-space: nowrap;
}

.toastMsg__close,
.toastGlobalSistema__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: var(--accent-main, #10b981);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: .75;
}

.toastMsg__close:hover,
.toastGlobalSistema__close:hover {
  opacity: 1;
}

/* Barra vertical separando o conteúdo do botão de fechar */
.toastMsg__close::before,
.toastGlobalSistema__close::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--accent-main, #10b981);
}

.toastMsg.success,
.toastMsg.error,
.toastMsg.info {
  background: color-mix(in srgb, var(--accent-main, #10b981) 14%, rgba(18,18,20,0.74));
  color: var(--accent-main, #10b981);
}


.custom-modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 38px 32px 34px; width: 94%; max-width: 540px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform: translateY(20px); transition: transform 0.2s ease;
}

/* Botão fechar (X) no canto — círculo como o padrão do sistema */
.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hover);
  border: 0;
  border-radius: 50%;
  color: var(--accent-main);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.custom-modal-close:hover {
  background: color-mix(in srgb, var(--accent-main) 15%, transparent);
  color: var(--accent-main);
}

/* Linha de aviso em vermelho ("Isso não pode ser desfeito.") */
.custom-modal-danger {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 26px 0;
  line-height: 1.4;
}

/* Chip com o nome do registro + botão de copiar */
.custom-modal-namechip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 10px;
  margin: 0 2px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--bg);
  vertical-align: middle;
}
.custom-modal-namechip__text {
  color: var(--accent-main);
  font-weight: 700;
  font-size: 13px;
  user-select: all;
}
.custom-modal-namechip__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.custom-modal-namechip__copy:hover {
  background: var(--hover);
  color: var(--text);
}
.custom-modal-namechip__copy.is-copied {
  color: #22c55e;
}

/* No modo nome, o input aceita texto normal (sem caixa-alta/espaçamento de código) */
.custom-modal-security__input.is-name-mode {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.custom-modal-backdrop.show .custom-modal-box { 
  transform: translateY(0); 
}

.custom-modal-title {
  color: var(--text);
  font-size: 18px; margin: 0 0 22px 0; font-weight: 600;
}

html[data-theme="white"] .custom-modal-title {
  color: var(--accent-main) !important;
}

.custom-modal-text {
  color: var(--muted);
  font-size: 14px; margin: 0 0 6px 0; line-height: 1.5;
}

.custom-modal-security {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px 0;
}

.custom-modal-security__label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

/* Frase de instrução: mesma fonte/cor do texto "Tem certeza..." */
.custom-modal-security__instr {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Apenas o código: negrito e na cor do tema */
.custom-modal-security__code {
  color: var(--accent-main);
  font-weight: 700;
  letter-spacing: 1px;
  user-select: all;
}

.custom-modal-security__input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  outline: none;
}

.custom-modal-security__input:focus {
  border-color: var(--stroke);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-main) 22%, transparent);
}

.custom-modal-security__input::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

.custom-modal-actions { 
  display: flex; gap: 12px; justify-content: flex-end; 
}

.btn-modal-cancel { 
  background: transparent; 
  color: var(--text); 
  border: 1px solid var(--stroke); 
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; 
  transition: .2s ease;
}

.btn-modal-cancel:hover { 
  background: var(--hover); 
}

.btn-modal-confirm { 
  background: linear-gradient(180deg, var(--accent-light), var(--accent-main));
  color: white; border: none; 
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; 
  transition: transform .2s ease, opacity .2s ease;
}

.btn-modal-confirm:hover { 
  transform: translateY(-1px);
  opacity: .92;
 
}

.btn-modal-confirm:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(.25);
}

/* Modal de confirmação (excluir): botões em pílula, como Limpar/Salvar do cadastro.
   Escopado em .custom-modal-actions para não alterar os demais modais do sistema. */
.custom-modal-actions .btn-modal-cancel {
  border-radius: 999px;
  padding: 8px 22px;
  border-color: color-mix(in srgb, var(--accent-main) 55%, var(--stroke));
  color: var(--accent-main);
}
.custom-modal-actions .btn-modal-cancel:hover {
  background: color-mix(in srgb, var(--accent-main) 10%, transparent);
}
.custom-modal-actions .btn-modal-confirm {
  border-radius: 999px;
  padding: 8px 22px;
}

/* =========================
   PACKS COLORIDOS — PROTEÇÃO MÁXIMA DE FILTRO - Todas as paginas
========================= */

html[data-theme] body[data-icon-pack="2"] .menuIcon,
html[data-theme] body[data-icon-pack="2"] .menuIcon2,
html[data-theme] body[data-icon-pack="2"] .themeIcon,
html[data-theme] body[data-icon-pack="2"] .iconSizeTarget,
html[data-theme] body[data-icon-pack="2"] img.menuIcon,
html[data-theme] body[data-icon-pack="2"] img.menuIcon2,
html[data-theme] body[data-icon-pack="2"] .dashCardIcon img,
html[data-theme] body[data-icon-pack="2"] .inputIconLeft,
html[data-theme] body[data-icon-pack="2"] .toggleSenha,
html[data-theme] body[data-icon-pack="2"] .btnSocial img,
html[data-theme] body[data-icon-pack="2"] .icon-social-footer img,
/* hover: .menuItem */
html[data-theme] body[data-icon-pack="2"] .menuItem:hover .menuIcon,
html[data-theme] body[data-icon-pack="2"] .menuItem:hover .menuIcon2,
html[data-theme] body[data-icon-pack="2"] .btnSocial:hover img,
html[data-theme] body[data-icon-pack="2"] .icon-social-footer:hover img,
html[data-theme] body[data-icon-pack="3"] .menuItem:hover .menuIcon,
html[data-theme] body[data-icon-pack="3"] .menuItem:hover .menuIcon2,
html[data-theme] body[data-icon-pack="3"] .btnSocial:hover img,
html[data-theme] body[data-icon-pack="3"] .icon-social-footer:hover img,
html[data-theme] body[data-icon-pack="5"] .menuItem:hover .menuIcon,
html[data-theme] body[data-icon-pack="5"] .menuItem:hover .menuIcon2,
html[data-theme] body[data-icon-pack="5"] .btnSocial:hover img,
html[data-theme] body[data-icon-pack="5"] .icon-social-footer:hover img,
html[data-theme] body[data-icon-pack="4"] .menuItem:hover .menuIcon,
html[data-theme] body[data-icon-pack="4"] .menuItem:hover .menuIcon2,
/* hover: button / a / notificationBox / btnCardFiltro / boxSocialFooter —
   mesmos seletores do bloco genérico (linhas abaixo), mas com pack específico
   e html[data-theme] para ter especificidade maior e sobrescrever o filter geral */
html[data-theme] body[data-icon-pack="2"] button:hover .menuIcon,
html[data-theme] body[data-icon-pack="2"] button:hover .menuIcon2,
html[data-theme] body[data-icon-pack="2"] a:hover .menuIcon,
html[data-theme] body[data-icon-pack="2"] a:hover .menuIcon2,
html[data-theme] body[data-icon-pack="2"] .btnCardFiltro:hover img,
html[data-theme] body[data-icon-pack="2"] .notificationBox:hover img,
html[data-theme] body[data-icon-pack="2"] .boxSocialFooter:hover img,
html[data-theme] body[data-icon-pack="3"] button:hover .menuIcon,
html[data-theme] body[data-icon-pack="3"] button:hover .menuIcon2,
html[data-theme] body[data-icon-pack="3"] a:hover .menuIcon,
html[data-theme] body[data-icon-pack="3"] a:hover .menuIcon2,
html[data-theme] body[data-icon-pack="3"] .btnCardFiltro:hover img,
html[data-theme] body[data-icon-pack="3"] .notificationBox:hover img,
html[data-theme] body[data-icon-pack="3"] .boxSocialFooter:hover img,
html[data-theme] body[data-icon-pack="5"] button:hover .menuIcon,
html[data-theme] body[data-icon-pack="5"] button:hover .menuIcon2,
html[data-theme] body[data-icon-pack="5"] a:hover .menuIcon,
html[data-theme] body[data-icon-pack="5"] a:hover .menuIcon2,
html[data-theme] body[data-icon-pack="5"] .btnCardFiltro:hover img,
html[data-theme] body[data-icon-pack="5"] .notificationBox:hover img,
html[data-theme] body[data-icon-pack="5"] .boxSocialFooter:hover img,
/* base (sem hover) */
html[data-theme] body[data-icon-pack="2"] .menuIcon,
html[data-theme] body[data-icon-pack="2"] .menuIcon2,
html[data-theme] body[data-icon-pack="2"] .themeIcon,
html[data-theme] body[data-icon-pack="2"] .iconSizeTarget,
html[data-theme] body[data-icon-pack="2"] img.menuIcon,
html[data-theme] body[data-icon-pack="2"] img.menuIcon2,
html[data-theme] body[data-icon-pack="2"] .dashCardIcon img,
html[data-theme] body[data-icon-pack="2"] .inputIconLeft,
html[data-theme] body[data-icon-pack="2"] .toggleSenha,
html[data-theme] body[data-icon-pack="2"] .btnSocial img,
html[data-theme] body[data-icon-pack="2"] .icon-social-footer img,
html[data-theme] body[data-icon-pack="3"] .menuIcon,
html[data-theme] body[data-icon-pack="3"] .menuIcon2,
html[data-theme] body[data-icon-pack="3"] .themeIcon,
html[data-theme] body[data-icon-pack="3"] .iconSizeTarget,
html[data-theme] body[data-icon-pack="3"] img.menuIcon,
html[data-theme] body[data-icon-pack="3"] img.menuIcon2,
html[data-theme] body[data-icon-pack="3"] .dashCardIcon img,
html[data-theme] body[data-icon-pack="3"] .inputIconLeft,
html[data-theme] body[data-icon-pack="3"] .toggleSenha,
html[data-theme] body[data-icon-pack="3"] .btnSocial img,
html[data-theme] body[data-icon-pack="3"] .icon-social-footer img,
html[data-theme] body[data-icon-pack="5"] .menuIcon,
html[data-theme] body[data-icon-pack="5"] .menuIcon2,
html[data-theme] body[data-icon-pack="5"] .themeIcon,
html[data-theme] body[data-icon-pack="5"] .iconSizeTarget,
html[data-theme] body[data-icon-pack="5"] img.menuIcon,
html[data-theme] body[data-icon-pack="5"] img.menuIcon2,
html[data-theme] body[data-icon-pack="5"] .dashCardIcon img,
html[data-theme] body[data-icon-pack="5"] .inputIconLeft,
html[data-theme] body[data-icon-pack="5"] .toggleSenha,
html[data-theme] body[data-icon-pack="5"] .btnSocial img,
html[data-theme] body[data-icon-pack="5"] .icon-social-footer img,
html[data-theme] body[data-icon-pack="4"] .menuIcon,
html[data-theme] body[data-icon-pack="4"] .menuIcon2,
html[data-theme] body[data-icon-pack="4"] .themeIcon,
html[data-theme] body[data-icon-pack="4"] .iconSizeTarget,
html[data-theme] body[data-icon-pack="4"] img.menuIcon,
html[data-theme] body[data-icon-pack="4"] img.menuIcon2,
html[data-theme] body[data-icon-pack="4"] .dashCardIcon img,
html[data-theme] body[data-icon-pack="4"] .inputIconLeft,
html[data-theme] body[data-icon-pack="4"] .toggleSenha,
html[data-theme] body[data-icon-pack="4"] .btnSocial img,
html[data-theme] body[data-icon-pack="4"] .icon-social-footer img {
  filter: none !important;
}

/* =========================
   PACK 4 MONOCROMATICO - COR POR TEMA (Todas as paginas)
========================= */

html[data-theme="white"] body[data-icon-pack="4"] .menuIcon,
html[data-theme="white"] body[data-icon-pack="4"] .menuIcon2,
html[data-theme="white"] body[data-icon-pack="4"] .themeIcon,
html[data-theme="white"] body[data-icon-pack="4"] .iconSizeTarget,
html[data-theme="white"] body[data-icon-pack="4"] img.menuIcon,
html[data-theme="white"] body[data-icon-pack="4"] img.menuIcon2,
html[data-theme="white"] body[data-icon-pack="4"] .dashCardIcon img,
html[data-theme="white"] body[data-icon-pack="4"] .inputIconLeft,
html[data-theme="white"] body[data-icon-pack="4"] .toggleSenha,
html[data-theme="white"] body[data-icon-pack="4"] .btnSocial img,
html[data-theme="white"] body[data-icon-pack="4"] .icon-social-footer img,
html[data-theme="white"] body[data-icon-pack="4"] .menuItem:hover .menuIcon,
html[data-theme="white"] body[data-icon-pack="4"] .menuItem:hover .menuIcon2,
html[data-theme="white"] body[data-icon-pack="4"] .btnSocial:hover img,
html[data-theme="white"] body[data-icon-pack="4"] .icon-social-footer:hover img,
html[data-theme="white"] body[data-icon-pack="4"] .iconSizeTargetSm {
  filter: none !important;
}

html[data-theme="black"] body[data-icon-pack="4"] .menuIcon,
html[data-theme="black"] body[data-icon-pack="4"] .menuIcon2,
html[data-theme="black"] body[data-icon-pack="4"] .themeIcon,
html[data-theme="black"] body[data-icon-pack="4"] .iconSizeTarget,
html[data-theme="black"] body[data-icon-pack="4"] img.menuIcon,
html[data-theme="black"] body[data-icon-pack="4"] img.menuIcon2,
html[data-theme="black"] body[data-icon-pack="4"] .dashCardIcon img,
html[data-theme="black"] body[data-icon-pack="4"] .inputIconLeft,
html[data-theme="black"] body[data-icon-pack="4"] .toggleSenha,
html[data-theme="black"] body[data-icon-pack="4"] .btnSocial img,
html[data-theme="black"] body[data-icon-pack="4"] .icon-social-footer img,
html[data-theme="black"] body[data-icon-pack="4"] .menuItem:hover .menuIcon,
html[data-theme="black"] body[data-icon-pack="4"] .menuItem:hover .menuIcon2,
html[data-theme="black"] body[data-icon-pack="4"] .btnSocial:hover img,
html[data-theme="black"] body[data-icon-pack="4"] .icon-social-footer:hover img,
html[data-theme="black"] body[data-icon-pack="4"] .iconSizeTargetSm {
  filter: brightness(0) invert(1) !important;
}

html[data-theme] body[data-icon-pack="4"] .menuItem.active .menuIcon,
html[data-theme] body[data-icon-pack="4"] .menuItem.active .menuIcon2 {
  filter: var(--pack4-active-filter, none) !important;
  opacity: 1 !important;
}

html[data-theme] body[data-icon-pack="4"] .postit-header img[id^="heart_"],
html[data-theme] body[data-icon-pack="4"] .postit-header img[id^="lock_"],
html[data-theme] body[data-icon-pack="4"] .postit-header img[id^="alarm_"],
html[data-theme] body[data-icon-pack="4"] .postit-header img[id^="pin_"] {
  width: 13px !important;
  height: 13px !important;
}

html body[data-icon-pack] .btnCardFiltro:hover img,
html body[data-icon-pack] .notificationBox:hover img,
html body[data-icon-pack] .btnSocial:hover img,
html body[data-icon-pack] .icon-social-footer:hover img,
html body[data-icon-pack] .boxSocialFooter:hover img,
html body[data-icon-pack] button:hover .menuIcon,
html body[data-icon-pack] button:hover .menuIcon2,
html body[data-icon-pack] a:hover .menuIcon,
html body[data-icon-pack] a:hover .menuIcon2 {
  filter: var(--pack4-active-filter, var(--theme-hover-icon-filter)) !important;
  opacity: 1 !important;
}

html body:not([data-icon-pack]) .btnCardFiltro:hover img,
html body:not([data-icon-pack]) .notificationBox:hover img,
html body:not([data-icon-pack]) .btnSocial:hover img,
html body:not([data-icon-pack]) .icon-social-footer:hover img,
html body:not([data-icon-pack]) .boxSocialFooter:hover img,
html body:not([data-icon-pack]) button:hover .menuIcon,
html body:not([data-icon-pack]) button:hover .menuIcon2,
html body:not([data-icon-pack]) a:hover .menuIcon,
html body:not([data-icon-pack]) a:hover .menuIcon2 {
  filter: var(--pack4-active-filter, var(--theme-hover-icon-filter)) !important;
  opacity: 1 !important;
}
/* =========================
   TAMANHO DINÂMICO — VARIANTE PEQUENA (sempre -4px) - Todas as paginas
========================= */

.iconSizeTarget {
  width:  var(--icon-size-screens, 24px) !important;
  height: var(--icon-size-screens, 24px) !important;
  object-fit: contain;
  transition: width 0s, height 0s !important; /* Blinda contra efeito de crescer/piscar */
}

.iconSizeTargetSm {
  width:  calc(var(--icon-size, 24px) - 10px) !important;
  height: calc(var(--icon-size, 24px) - 10px) !important;
  object-fit: contain;
}
/* Proteção de cor para packs coloridos */
html body[data-icon-pack="2"] .iconSizeTargetSm,
html body[data-icon-pack="3"] .iconSizeTargetSm {
  filter: none !important;
}

.iconPackSizeRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

/* =========================
   REDUÇÃO DOS TÍTULOS (Visão Geral / Configurações) - Config
========================= */


/* 1. SUBTÍTULOS GERAIS (O texto cinza das duas imagens) */
.pageSubtitle {
  font-size: 12px !important;   /* Tamanho reduzido para os dois */
   color: var(--muted) !important;
  margin-bottom: 12px !important;
  display: block;
}

/* 2. TÍTULOS DE PÁGINA (Visão Geral / Configurações) */
/* Definimos um tamanho menor para a classe geral */
.pageTitle {
  font-size: 17px !important;   /* Tamanho reduzido para os dois */
  font-weight: 700;
  margin-bottom: 2px !important;
  color: var(--text);
}

/* =========================
   CARDS / CONFIG - Home / VisaoGeral / Config
========================= */


.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:20px;
}

.topRightCard{
  display:flex;
  align-items:center;
  gap:8px;
    width: auto;
  min-width: unset;
  padding:4px 10px;  
}


.settingsGrid{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

/* DEPOIS — stacking context só existe quando o card está ativo */
.settingsGrid .card{
  flex: 1;
  min-width: 320px;
  position: relative;
 
}

.logoRow{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:14px;
  flex-wrap:wrap;
}

.logoPreview{
  width:160px;
  height:90px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--hover);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.logoPreview img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.btnFile,
.btnTrash{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--stroke);
  background:transparent;
  cursor:pointer;
}

.btnFile:hover,
.btnTrash:hover{
  background:var(--hover);
} 

.fixedCard{
  display:flex;
  align-items:center;
  justify-content:space-between;   
  padding:12px 24px;
  background:transparent;
}

.cardLeft{
  display:flex;
  align-items:center;
}

.cardRight{
  display:flex;
  align-items:center;
  gap:12px;
}

.pageTitle{
  margin:0;
}

/* Cabecalhos de pagina sem linhas divisorias em qualquer modulo. */
.fixedCard,
#fixedCardTopo,
.fixedCard .cardLeft,
#fixedCardTopo .cardLeft,
.pageTitle,
.pageSubtitle {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.pageTitle::before,
.pageTitle::after,
.pageSubtitle::before,
.pageSubtitle::after {
  content: none !important;
  display: none !important;
}





/* =========================
   Z-INDEX GLOBAL MODAIS / LOADING - Todas as páginas
========================= */
.loadingOverlay,
.loadingOverlay.show {
  z-index: 2147483647 !important;
}

.custom-modal-backdrop,
.custom-modal-backdrop.show,
.modalOverlay,
.modalOverlay.show,
.modalFiltroOverlay,
.modalFiltroOverlay.show,
.cad-modal {
  z-index: 2147483646 !important;
}

.toastMsg,
.cad-fixed-tooltip {
  z-index: 2147483647 !important;
}

/* Mantem o fundo dos modais contido nas quinas arredondadas. */
html body .cad-modal > .cad-modal__dialog {
  border-radius: 14px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
  isolation: isolate;
}

html body .cad-modal > .cad-modal__dialog > .cad-modal__head {
  border-radius: 13px 13px 0 0 !important;
}

html body .cad-modal > .cad-modal__dialog > .cad-modal__foot {
  border-radius: 0 0 13px 13px !important;
}

html body .cad-upload-modal > .cad-upload-modal__dialog {
  border-radius: 8px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
  isolation: isolate;
}

html body .cad-upload-modal > .cad-upload-modal__dialog > .cad-upload-modal__head {
  border-radius: 7px 7px 0 0 !important;
}

html body .cad-upload-modal > .cad-upload-modal__dialog > .cad-upload-modal__foot {
  border-radius: 0 0 7px 7px !important;
}

/* Titulos sem sublinhados curtos; a divisao estrutural da topbar permanece. */
.topBarGreeting,
#greetingUsuario,
#fixedCardTopo .cardLeft,
#pageTitle,
#pageSubtitle {
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.topBarGreeting::before,
.topBarGreeting::after,
#greetingUsuario::before,
#greetingUsuario::after,
#fixedCardTopo .cardLeft::before,
#fixedCardTopo .cardLeft::after,
#pageTitle::before,
#pageTitle::after,
#pageSubtitle::before,
#pageSubtitle::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* Mesmo efeito de hover do checkbox original em todas as paginas internas. */
input[type="checkbox"]:not([role="switch"]) {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

input[type="checkbox"]:not([role="switch"]):hover,
input[type="checkbox"]:not([role="switch"]):focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 4px 0 var(--accent-main);
  outline: none;
}

.cad-checkbox:hover span,
.cad-checkbox:focus-within span {
  transform: scale(1.05) !important;
  box-shadow: 0 0 4px 0 var(--accent-main) !important;
  border-color: var(--accent-main) !important;
}

