Ativa o menu
Alternar menu de preferências
Alternar menu pessoal
Não autenticado(a)
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: mudanças entre as edições

Página de Interface do MediaWiki
Sem resumo de edição
Sem resumo de edição
 
(91 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
/* --- FOOTER CORRIGIDO (PROTEGE A SIDEBAR) --- */
/* =========================================
/* 1. Configuração do Container Principal */
  CELTA WIKI - CITIZEN SKIN OVERRIDES
.citizen-footer {
  ========================================= */
    padding: 8px 20px !important;
 
    margin-top: 30px !important;
:root {
  /* --- Palette --- */
  --celta-blue: #3366cc;
  --celta-dark: #151E32;
  --celta-green: #198754;
  --celta-yellow: #ffc107;
  --celta-red: #dc3545;
 
  /* --- Text & Borders --- */
  --celta-text-main: #333;
  --celta-text-muted: #64748b;
  --celta-border-light: #e2e8f0;
  --celta-border-code: #cbd5e1;
 
  /* --- Fonts --- */
  --celta-font-sans: 'Segoe UI', Roboto, sans-serif;
  --celta-font-mono: 'Consolas', 'Monaco', monospace;
}
}
/* 2. Forçar layout horizontal (Linha) */
 
.citizen-footer__content {
/* =========================================
    display: flex !important;
  1. GLOBAL RESET & LAYOUT
    flex-direction: row !important;
  ========================================= */
    align-items: center !important; /* Centraliza verticalmente */
 
    justify-content: space-between !important; /* Espalha: Esq - Meio - Dir */
* {
    gap: 20px !important;
  box-sizing: border-box !important;
}
}
/* Oculta o texto "Celta Sistemas Wiki" SÓ no footer */
 
.citizen-footer .mw-logo-wordmark {
body {
    display: none !important;
  font-family: var(--celta-font-sans) !important;
}
}
/* Ajusta o tamanho da logo SÓ no footer */
 
.citizen-footer .citizen-footer__sitetitle {
/* Full Width Layout Overrides */
    margin: 0 !important;
body:has(.celta-full-width) .citizen-col-toc {
    padding: 0 !important;
  display: none !important;
    display: block !important;
    flex-shrink: 0; /* Impede que a logo seja esmagada */
}
}
.citizen-footer .mw-logo-icon {
 
    height: 40px !important; /* Altura fixa para garantir que não fique minúscula */
body:has(.celta-full-width) .citizen-col-content {
    width: auto !important;
  grid-column: 1 / -1 !important;
    display: block !important;
  max-width: 100% !important;
}
}
/* ----------------------------------------------------------- */
 
/* 3. TEXTO CENTRAL */
body:has(.celta-full-width) .celta-page-header {
#footer-info {
  max-width: 1150px;
    margin: 0 !important;
  margin: 0 auto 40px auto;
    padding: 0 !important;
    text-align: center !important;
    flex-grow: 1; /* Faz o texto ocupar o espaço central */
}
}
#footer-info li {
 
    display: inline-block !important;
body:has(.celta-full-width) .citizen-section-indicator {
    margin: 0 10px !important;
  display: none !important;
    font-size: 0.85em !important;
    line-height: 1 !important;
    color: #666;
}
}
/* 4. ÍCONE MEDIAWIKI (DIREITA) */
 
#footer-icons {
/* =========================================
    margin: 0 !important;
  2. HEADER & PAGE TITLES (Top)
    padding: 0 !important;
  ========================================= */
    flex-shrink: 0;
 
/* Hide Default Wiki Elements */
#siteSub,
.citizen-section-indicator,
body:not(.pageInício) .mw-page-title-main,
body:not(.pageInício) h1#firstHeading,
body:not(.pageInício) .firstHeading-container,
body:not(.pageInício) .citizen-header__text {
  display: none !important;
}
}
/* Ajuste para Celular (volta a empilhar para não quebrar) */
 
@media (max-width: 768px) {
/* Header Container Adjustments */
    .citizen-footer__content {
body:not(.pageInício) header.mw-body-header,
        flex-direction: column !important;
body:not(.pageInício) .citizen-page-header {
        gap: 10px !important;
  margin-bottom: 0 !important;
    }
  padding-bottom: 0px !important;
  min-height: 0 !important;
  border-bottom: none !important;
}
}
/* --- AJUSTE FINO DO LOGO NO TOPO (SIDEBAR) --- */
 
.citizen-header .mw-logo-icon,
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
.citizen-drawer__header .mw-logo-icon {
    height: 40px !important; /* Reduzi de 55px para 40px */
  height: 40px !important;
    width: auto !important;
  width: auto !important;
    max-height: none !important;
  margin-top: 2px !important;
    margin-top: 2px !important; /* Um leve ajuste para centralizar */
}
}
/* --- REMOVER MENU DE PREFERÊNCIAS --- */
 
/* 1. Bloqueia pelo ID exato que aparece no seu inspetor */
/* =========================================
#citizen-preferences-details {
  3. TYPOGRAPHY & CONTENT (Middle)
    display: none !important;
  ========================================= */
    visibility: hidden !important;
 
    opacity: 0 !important;
/* General Headings */
    pointer-events: none !important;
html body:not(.pageInício) h1,
html body:not(.pageInício) h2,
html body:not(.pageInício) h3,
html body:not(.pageInício) h4 {
  font-family: var(--celta-font-sans) !important;
  color: #1e293b !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.6em !important;
  line-height: 1.2 !important;
}
}
/* 2. Bloqueia pelo texto do título (visto no seu print: "Alternar menu de preferências") */
 
summary[title="Alternar menu de preferências"],
.mw-body-content p {
summary[aria-label="Alternar menu de preferências"] {
  font-size: 1em !important;
    display: none !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 1.5em !important;
  max-width: 900px;
}
}
/* 3. Garante que suma da barra lateral rodapé
.citizen-sidebar__footer details,
.citizen-sidebar__footer summary {
    display: none !important;
} */


/* --- RESPONSIVIDADE DAS TABELAS DA PÁGINA PRINCIPAL --- */
/* H1 - Page Title */
@media (max-width: 768px) {
html body:not(.pageInício) h1 {
    .categoria-table,
  font-size: 2.2rem !important;
    .help-table {
  font-weight: 700 !important;
        display: block !important;
  border-bottom: 1px solid #e2e8f0 !important;
    }
  padding-bottom: 15px !important;
    .categoria-table tbody,
  margin-bottom: 30px !important;
    .categoria-table tr,
  margin-top: 10px !important;
    .categoria-table td,
    .help-table tbody,
    .help-table tr,
    .help-table td {
        display: block !important;
        width: 100% !important;
    }
    .categoria-table td,
    .help-table td {
        margin-bottom: 10px !important;
        border-spacing: 0 !important;
    }
}
}


/* --- REMOVER FUNDO CINZA DOS LINKS COM SPAN ---  
/* H2 - Section Block */
a span,
html body:not(.pageInício) .mw-heading2 {
a:visited span,
  background-color: #FFFF !important;
a:hover span,
  border-left: 5px solid var(--celta-blue) !important;
a:active span {
  border-radius: 4px !important;
    background: none !important;
  padding: 12px 20px !important;
    background-color: transparent !important;
  margin-top: 30px !important;
}*/
  margin-bottom: 20px !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  font-size: 1.35em !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  cursor: pointer;
}


/* Remove o texto "De Celta Sistemas Wiki" */
html body:not(.pageInício) .mw-heading2 h2 {
#siteSub {
  font-size: inherit !important;
    display: none;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
}


/* Ajuste do tamanho do título */
/* H2 Arrow */
.citizen-page-header-inner .firstHeading,
html body:not(.pageInício) .mw-heading2::after {
.citizen-page-header .firstHeading,
  content: "";
#firstHeading {
  display: inline-block;
    font-size: 1.3em !important;
  width: 8px;
    font-weight: 400 !important;
  height: 8px;
    letter-spacing: -0.03em !important;
  border-right: 2px solid var(--celta-border-code);
    line-height: 1.2 !important;
  border-bottom: 2px solid var(--celta-border-code);
    padding-top: 0 !important;
  transform: rotate(45deg);
    padding-bottom: 0.2em !important;
  margin-left: 15px;
    margin: 0 !important;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
}


.citizen-page-header {
html body:not(.pageInício) .mw-heading2:hover::after {
    padding-top: 0px !important;
  border-color: #3b82f6;
    padding-bottom: 0px !important;
    margin-bottom: -0.8em !important;
}
}


.citizen-body-header {
html body:not(.pageInício) .mw-heading2::before,
    padding-top: 0.3em !important;
html body:not(.pageInício) h2::before {
    margin-top: 0 !important;
  content: none !important;
  display: none !important;
}
}


/* Sombra para imagens com a classe screenshot */
/* H3 Styles */
.screenshot img {
html body:not(.pageInício) h3,
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
html body:not(.pageInício) .mw-heading3 {
    border: 1px solid #ddd;
  font-size: 1.15em !important;
    border-radius: 4px;
  font-weight: 600 !important;
  color: #334155 !important;
  border: none !important;
  padding-left: 0 !important;
  margin-top: 10px !important;
  margin-bottom: 0px !important;
}
}


/* --- FOOTER CORRIGIDO (PROTEGE A SIDEBAR) --- */
/* =========================================
/* 1. Configuração do Container Principal */
  4. CODE BLOCKS & UTILS
.citizen-footer {
  ========================================= */
    padding: 8px 20px !important;
 
    margin-top: 30px !important;
pre,
.mw-highlight,
.mw-code {
  background-color: #243342 !important;
  color: #f8f9fa !important;
  font-family: var(--celta-font-mono) !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border: 1px solid #34495e !important;
  position: relative;
  margin: 20px 0;
  overflow-x: auto;
  white-space: pre-wrap !important;
  font-size: 0.9em;
  line-height: 1.6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
}
/* 2. Forçar layout horizontal (Linha) */
 
.citizen-footer__content {
pre code,
    display: flex !important;
.mw-highlight code {
    flex-direction: row !important;
  background: transparent !important;
    align-items: center !important; /* Centraliza verticalmente */
  color: inherit !important;
    justify-content: space-between !important; /* Espalha: Esq - Meio - Dir */
  border: none !important;
    gap: 20px !important;
  padding: 0 !important;
}
}
/* Oculta o texto "Celta Sistemas Wiki" SÓ no footer */
 
.citizen-footer .mw-logo-wordmark {
/* Copy Button */
    display: none !important;
.mw-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 6px;
}
}
/* Ajusta o tamanho da logo SÓ no footer */
 
.citizen-footer .citizen-footer__sitetitle {
.mw-copy-btn svg {
    margin: 0 !important;
  width: 16px;
    padding: 0 !important;
  height: 16px;
    display: block !important;
  stroke: #a0aec0;
    flex-shrink: 0; /* Impede que a logo seja esmagada */
  transition: stroke 0.2s;
}
}
.citizen-footer .mw-logo-icon {
 
    height: 40px !important; /* Altura fixa para garantir que não fique minúscula */
.mw-copy-btn:hover {
    width: auto !important;
  background: rgba(255, 255, 255, 0.2);
    display: block !important;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
}
/* ----------------------------------------------------------- */
 
/* 3. TEXTO CENTRAL */
.mw-copy-btn:hover svg {
#footer-info {
  stroke: #fff;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    flex-grow: 1; /* Faz o texto ocupar o espaço central */
}
}
#footer-info li {
 
    display: inline-block !important;
.mw-copy-btn.copied {
    margin: 0 10px !important;
  background: rgba(34, 197, 94, 0.2);
    font-size: 0.85em !important;
  border-color: rgba(34, 197, 94, 0.4);
    line-height: 1 !important;
    color: #666;
}
}
/* 4. ÍCONE MEDIAWIKI (DIREITA) */
 
#footer-icons {
.mw-copy-btn.copied svg {
    margin: 0 !important;
  stroke: #4ade80;
    padding: 0 !important;
    flex-shrink: 0;
}
}
/* Ajuste para Celular (volta a empilhar para não quebrar) */
 
@media (max-width: 768px) {
.citizen-col-toc {
    .citizen-footer__content {
  padding-top: 60px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
}
/* --- AJUSTE FINO DO LOGO NO TOPO (SIDEBAR) --- */
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
    height: 40px !important; /* Reduzi de 55px para 40px */
    width: auto !important;
    max-height: none !important;
    margin-top: 2px !important; /* Um leve ajuste para centralizar */
}
/* --- REMOVER MENU DE PREFERÊNCIAS --- */
/* 1. Bloqueia pelo ID exato que aparece no seu inspetor */
#citizen-preferences-details {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
}
/* 2. Bloqueia pelo texto do título (visto no seu print: "Alternar menu de preferências") */
summary[title="Alternar menu de preferências"],
summary[aria-label="Alternar menu de preferências"] {
    display: none !important;
}
/* 3. Garante que suma da barra lateral rodapé
.citizen-sidebar__footer details,
.citizen-sidebar__footer summary {
    display: none !important;
} */


/* --- RESPONSIVIDADE DAS TABELAS DA PÁGINA PRINCIPAL --- */
.page-info {
@media (max-width: 768px) {
  opacity: 0.6;
    .categoria-table,
  font-size: 0.85em;
    .help-table {
        display: block !important;
    }
    .categoria-table tbody,
    .categoria-table tr,
    .categoria-table td,
    .help-table tbody,
    .help-table tr,
    .help-table td {
        display: block !important;
        width: 100% !important;
    }
    .categoria-table td,
    .help-table td {
        margin-bottom: 10px !important;
        border-spacing: 0 !important;
    }
}
}


/* --- REMOVER FUNDO CINZA DOS LINKS COM SPAN ---
/* =========================================
a span,
  5. FOOTER OVERRIDES (Bottom)
a:visited span,
  ========================================= */
a:hover span,
a:active span {
    background: none !important;
    background-color: transparent !important;
}*/


/* Remove o texto "De Celta Sistemas Wiki" */
.citizen-page-footer {
#siteSub {
  padding: 0px !important;
    display: none;
  margin-top: 0px !important;
  margin-bottom: 0px;
}
}


/* Ajuste do tamanho do título */
.citizen-footer {
.citizen-page-header-inner .firstHeading,
  padding: 4px 20px !important;
.citizen-page-header .firstHeading,
  margin-top: 30px !important;
#firstHeading {
  border-top: 1px solid #eaecf0;
    font-size: 1.3em !important;
  min-height: 0 !important;
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
    padding-top: 0 !important;
    padding-bottom: 0.2em !important;
    margin: 0 !important;
}
}


.citizen-page-header {
.citizen-footer__content {
    padding-top: 0px !important;
  display: flex !important;
    padding-bottom: 0px !important;
  flex-direction: row !important;
    margin-bottom: -0.8em !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}
}


.citizen-body-header {
#footer-info,
    padding-top: 0.3em !important;
#footer-info ul,
    margin-top: 0 !important;
#footer-info li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}
}


/* Sombra para imagens com a classe screenshot */
.citizen-footer__logo {
.screenshot img {
  margin: 0 !important;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 0 !important;
    border: 1px solid #ddd;
  order: 1;
    border-radius: 4px;
  line-height: 0 !important;
}
}


/* ================================================================= */
.citizen-footer .mw-logo-wordmark {
/* 🛡️ PADRÃO CELTA ERP (CSS INTELIGENTE) */
  display: none !important;
/* Aplica o visual de manual em tudo, MENOS na Página Principal */
/* ================================================================= */
 
/* 1. EXTERMÍNIO DA SETA (COLLAPSE ICON) */
html body:not(.page-Página_principal) .citizen-section-indicator,
html body:not(.page-Página_principal) .mw-heading .indicator,
html body:not(.page-Página_principal) .citizen-sections-enabled .citizen-section-indicator {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
}


/* 2. CORREÇÃO DOS TÍTULOS H2 (BARRA AZUL) */
.citizen-footer .mw-logo-icon {
html body:not(.page-Página_principal) .mw-heading.mw-heading2,
  height: 45px !important;
html body:not(.page-Página_principal) .citizen-section-heading {
  width: auto !important;
    margin-top: 25px !important;
  display: block !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
}
}


/* Estilo do Texto H2 */
#footer-info {
html body:not(.page-Página_principal) h2 {
  order: 2;
    border-bottom: 1px solid var(--border-color-base, #eaecf0) !important;
  text-align: center !important;
    border-left: 5px solid var(--color-primary, #3366cc) !important;
  flex-grow: 1;
    padding-left: 15px !important;
  font-size: 0.85em !important;
    padding-bottom: 8px !important;
  color: #666;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 1.5em !important;
    line-height: 1.2 !important;
}
}


/* 3. TÍTULOS H3 (SUBTÍTULOS) */
#footer-info li {
html body:not(.page-Página_principal) .mw-heading.mw-heading3 {
  display: inline-block !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
}
}


html body:not(.page-Página_principal) h3 {
#footer-icons {
    padding-left: 10px !important;
  order: 3;
    border-left: 3px solid #c8ccd1 !important;
  margin: 0 !important;
    font-weight: 600 !important;
  padding: 0 !important;
    margin: 0 !important;
  display: flex !important;
  align-items: center !important
}
}


/* 4. LINHA HORIZONTAL (HR) */
#footer-icons img {
html body:not(.page-Página_principal) hr {
  height: 28px !important;
    margin: 20px 0 !important;
  width: auto !important;
    height: 1px;
    border: none;
    background-color: #eaecf0;
}
}


/* 5. ÍNDICE LATERAL (TOC) AZUL */
#footer-info-lastmod,
html body:not(.page-Página_principal) .citizen-toc__item--active > a,
.citizen-footer__lastmod {
html body:not(.page-Página_principal) .citizen-toc__item--active > .citizen-toc__link {
  display: none !important;
    color: #3366cc !important;
    font-weight: 700 !important;
    border-left: 3px solid #3366cc !important;
    background-color: rgba(51, 102, 204, 0.08) !important;
    padding-left: 10px !important;
    text-decoration: none !important;
}
}


/* 6. TEMPLATES (BREADCRUMB, META, NOTAS) */
.citizen-footer__siteinfo {
/* Estes podem ser globais para manter consistência de cor */
  display: block !important;
.celta-breadcrumb a { color: #3366cc !important; text-decoration: none; font-weight: 600; }
  margin: 0 !important;
.celta-breadcrumb a:hover { text-decoration: underline; }
  padding: 0 !important;
 
  order: 1;
.celta-note-box {
    background-color: rgba(51, 102, 204, 0.03) !important;
    border: 1px solid rgba(51, 102, 204, 0.2) !important;
    border-left: 4px solid #3366cc !important;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
}
.celta-note-title {
    font-weight: 700; font-size: 0.95em;
    color: #3366cc !important;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
}


/* 7. INTRODUÇÃO (<BIG>) */
.citizen-footer__sitetitle {
html body:not(.page-Página_principal) big {
  display: block !important;
    display: block !important;
  margin: 0 !important;
    background-color: #f8f9fa;
  line-height: 0 !important;
    border: 1px solid #eaecf0;
    border-left: 4px solid #3366cc;
    border-radius: 4px;
    padding: 15px !important;
    margin-bottom: 20px !important;
    font-size: 1.05em !important;
}
}


/* 8. BADGES DE VERSÃO (Globais) */
/* =========================================
.celta-badge {
  6. MOBILE RESPONSIVENESS
    display: inline-block; padding: 2px 8px; border-radius: 4px;
  ========================================= */
    font-size: 0.6em; font-weight: 700; text-transform: uppercase;
    margin-left: 10px; vertical-align: middle; position: relative; top: -2px;
}
.celta-badge-novo { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.celta-badge-versao { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }


/* ================================================================= */
@media (max-width: 768px) {
/* ✂️ REMOÇÃO DO TÍTULO NATIVO (APENAS EM MANUAIS) */
  .citizen-footer__content {
/* ================================================================= */
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }


/* 1. ESCONDE O TÍTULO NATIVO */
  .citizen-col-toc {
body:not(.page-Página_principal) .mw-page-title-main,
body:not(.page-Página_principal) h1#firstHeading {
     display: none !important;
     display: none !important;
}
  }


/* 2. COMPACTA O CABEÇALHO DO TEMA */
  .citizen-col-content {
body:not(.page-Página_principal) header.mw-body-header,
     grid-column: 1 / -1 !important;
body:not(.page-Página_principal) .citizen-page-header {
     max-width: 100% !important;
     margin-bottom: 0 !important;
     display: flex !important;
     padding-bottom: 5px !important;
     align-items: center !important;
     min-height: 0 !important;
  }
     border-bottom: none !important;
}
 
/* 3. REMOVE O ESPAÇO DO CONTAINER */
body:not(.page-Página_principal) .firstHeading-container,
body:not(.page-Página_principal) .citizen-header__text {
    margin: 0 !important; padding: 0 !important; height: 0 !important; display: none !important;
}
}


/* 4. AJUSTE FINO (Puxa o template pra cima) */
.erp-menu-item.active {
body:not(.page-Página_principal) .celta-breadcrumb {
     background-color: #e3f2fd !important;
     margin-top: -10px;
     color: #1565c0 !important;
     position: relative;
     border-left-color: #3366cc !important;
     z-index: 10;
}
}

Edição atual tal como às 20h16min de 13 de dezembro de 2025

/* =========================================
   CELTA WIKI - CITIZEN SKIN OVERRIDES
   ========================================= */

:root {
  /* --- Palette --- */
  --celta-blue: #3366cc;
  --celta-dark: #151E32;
  --celta-green: #198754;
  --celta-yellow: #ffc107;
  --celta-red: #dc3545;

  /* --- Text & Borders --- */
  --celta-text-main: #333;
  --celta-text-muted: #64748b;
  --celta-border-light: #e2e8f0;
  --celta-border-code: #cbd5e1;

  /* --- Fonts --- */
  --celta-font-sans: 'Segoe UI', Roboto, sans-serif;
  --celta-font-mono: 'Consolas', 'Monaco', monospace;
}

/* =========================================
   1. GLOBAL RESET & LAYOUT
   ========================================= */

* {
  box-sizing: border-box !important;
}

body {
  font-family: var(--celta-font-sans) !important;
}

/* Full Width Layout Overrides */
body:has(.celta-full-width) .citizen-col-toc {
  display: none !important;
}

body:has(.celta-full-width) .citizen-col-content {
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
}

body:has(.celta-full-width) .celta-page-header {
  max-width: 1150px;
  margin: 0 auto 40px auto;
}

body:has(.celta-full-width) .citizen-section-indicator {
  display: none !important;
}

/* =========================================
   2. HEADER & PAGE TITLES (Top)
   ========================================= */

/* Hide Default Wiki Elements */
#siteSub,
.citizen-section-indicator,
body:not(.pageInício) .mw-page-title-main,
body:not(.pageInício) h1#firstHeading,
body:not(.pageInício) .firstHeading-container,
body:not(.pageInício) .citizen-header__text {
  display: none !important;
}

/* Header Container Adjustments */
body:not(.pageInício) header.mw-body-header,
body:not(.pageInício) .citizen-page-header {
  margin-bottom: 0 !important;
  padding-bottom: 0px !important;
  min-height: 0 !important;
  border-bottom: none !important;
}

.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
  height: 40px !important;
  width: auto !important;
  margin-top: 2px !important;
}

/* =========================================
   3. TYPOGRAPHY & CONTENT (Middle)
   ========================================= */

/* General Headings */
html body:not(.pageInício) h1,
html body:not(.pageInício) h2,
html body:not(.pageInício) h3,
html body:not(.pageInício) h4 {
  font-family: var(--celta-font-sans) !important;
  color: #1e293b !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.6em !important;
  line-height: 1.2 !important;
}

.mw-body-content p {
  font-size: 1em !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 1.5em !important;
  max-width: 900px;
}

/* H1 - Page Title */
html body:not(.pageInício) h1 {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 15px !important;
  margin-bottom: 30px !important;
  margin-top: 10px !important;
}

/* H2 - Section Block */
html body:not(.pageInício) .mw-heading2 {
  background-color: #FFFF !important;
  border-left: 5px solid var(--celta-blue) !important;
  border-radius: 4px !important;
  padding: 12px 20px !important;
  margin-top: 30px !important;
  margin-bottom: 20px !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  font-size: 1.35em !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  position: relative;
  cursor: pointer;
}

html body:not(.pageInício) .mw-heading2 h2 {
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* H2 Arrow */
html body:not(.pageInício) .mw-heading2::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--celta-border-code);
  border-bottom: 2px solid var(--celta-border-code);
  transform: rotate(45deg);
  margin-left: 15px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

html body:not(.pageInício) .mw-heading2:hover::after {
  border-color: #3b82f6;
}

html body:not(.pageInício) .mw-heading2::before,
html body:not(.pageInício) h2::before {
  content: none !important;
  display: none !important;
}

/* H3 Styles */
html body:not(.pageInício) h3,
html body:not(.pageInício) .mw-heading3 {
  font-size: 1.15em !important;
  font-weight: 600 !important;
  color: #334155 !important;
  border: none !important;
  padding-left: 0 !important;
  margin-top: 10px !important;
  margin-bottom: 0px !important;
}

/* =========================================
   4. CODE BLOCKS & UTILS
   ========================================= */

pre,
.mw-highlight,
.mw-code {
  background-color: #243342 !important;
  color: #f8f9fa !important;
  font-family: var(--celta-font-mono) !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border: 1px solid #34495e !important;
  position: relative;
  margin: 20px 0;
  overflow-x: auto;
  white-space: pre-wrap !important;
  font-size: 0.9em;
  line-height: 1.6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

pre code,
.mw-highlight code {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
}

/* Copy Button */
.mw-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 6px;
}

.mw-copy-btn svg {
  width: 16px;
  height: 16px;
  stroke: #a0aec0;
  transition: stroke 0.2s;
}

.mw-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mw-copy-btn:hover svg {
  stroke: #fff;
}

.mw-copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}

.mw-copy-btn.copied svg {
  stroke: #4ade80;
}

.citizen-col-toc {
  padding-top: 60px !important;
}

.page-info {
  opacity: 0.6;
  font-size: 0.85em;
}

/* =========================================
   5. FOOTER OVERRIDES (Bottom)
   ========================================= */

.citizen-page-footer {
  padding: 0px !important;
  margin-top: 0px !important;
  margin-bottom: 0px;
}

.citizen-footer {
  padding: 4px 20px !important;
  margin-top: 30px !important;
  border-top: 1px solid #eaecf0;
  min-height: 0 !important;
}

.citizen-footer__content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

#footer-info,
#footer-info ul,
#footer-info li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

.citizen-footer__logo {
  margin: 0 !important;
  padding: 0 !important;
  order: 1;
  line-height: 0 !important;
}

.citizen-footer .mw-logo-wordmark {
  display: none !important;
}

.citizen-footer .mw-logo-icon {
  height: 45px !important;
  width: auto !important;
  display: block !important;
}

#footer-info {
  order: 2;
  text-align: center !important;
  flex-grow: 1;
  font-size: 0.85em !important;
  color: #666;
}

#footer-info li {
  display: inline-block !important;
}

#footer-icons {
  order: 3;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important
}

#footer-icons img {
  height: 28px !important;
  width: auto !important;
}

#footer-info-lastmod,
.citizen-footer__lastmod {
  display: none !important;
}

.citizen-footer__siteinfo {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 1;
}

.citizen-footer__sitetitle {
  display: block !important;
  margin: 0 !important;
  line-height: 0 !important;
}

/* =========================================
   6. MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
  .citizen-footer__content {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  .citizen-col-toc {
    display: none !important;
  }

  .citizen-col-content {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
}

.erp-menu-item.active {
    background-color: #e3f2fd !important;
    color: #1565c0 !important;
    border-left-color: #3366cc !important;
}