/* Definição Local da Família Tipográfica Poppins */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --font-primary: 'Poppins', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Cores de Fundo e Texto da Prefeitura */
    --bg-page: #f4fbf7;
    --bg-surface: #ffffff;
    --bg-surface-alt: #eaf6f0;
    --bg-breadcrumb: #0b3b27;

    --text-main: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --text-accent-title: #1AB16E;

    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;

    --color-title-orange: #d97706;
    --color-teal-blue: #1AB16E;
    --color-teal-dark: #0b3b27;
    --color-brand-green: #1AB16E;
    --color-brand-green-hover: #26d084;

    /* Cores Oficiais dos 18 ODS */
    --ods-1: #E5243B;
    --ods-2: #DDA63A;
    --ods-3: #4C9F38;
    --ods-4: #C5192D;
    --ods-5: #FF3A21;
    --ods-6: #26BDE2;
    --ods-7: #FCC30B;
    --ods-8: #A21942;
    --ods-9: #FD6925;
    --ods-10: #DD1367;
    --ods-11: #FD9D24;
    --ods-12: #BF8B2E;
    --ods-13: #3F7E44;
    --ods-14: #0A97D9;
    --ods-15: #56C02B;
    --ods-16: #00689D;
    --ods-17: #19486A;
    --ods-18: #591823;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-card: 0 2px 6px rgba(0,0,0,0.06);

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-teal-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1AB16E;
    text-decoration: underline;
}

/* Header Limpo Institucional */
.portal-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 0.25rem 0;
}

.portal-header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.prefeitura-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.prefeitura-logo-img:hover {
    transform: scale(1.02);
}

.portal-brand-divider {
    width: 1px;
    height: 36px;
    background-color: #cbd5e1;
}

.portal-brand-badge {
    background: linear-gradient(135deg, #0b3b27 0%, #1AB16E 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    font-family: var(--font-primary);
}

.portal-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

/* Footer Institucional */
.portal-footer {
    background-color: #0b3b27;
    color: #d1fae5;
    border-top: 4px solid #1AB16E;
    padding: 2rem 0;
    margin-top: auto;
    font-family: var(--font-primary);
}

.portal-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.portal-footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.prefeitura-logo-footer {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.portal-footer-text {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.portal-footer-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Container Principal */
.portal-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* Titulo Principal da Pagina (Padrao ObservaVix com Linha Amarela/Laranja) */
.observa-page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-title-orange);
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: -0.01em;
}

.observa-title-divider {
    height: 3px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fed7aa 100%);
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* GRADE DOS 18 ODS (HOME - IMAGEM 2)                                         */
/* -------------------------------------------------------------------------- */
.ods-grid-observavix {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 1100px) {
    .ods-grid-observavix {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .ods-grid-observavix {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ods-grid-observavix {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ods-card-box {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ods-card-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Card com Imagem PNG Oficial da ONU */
.ods-card-img-link {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-decoration: none;
}

.ods-card-img-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.ods-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ods-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.ods-card-number {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-primary);
}

.ods-card-label {
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    flex: 1;
}

.ods-card-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.25rem 0;
}

.ods-icon-svg {
    width: 68%;
    height: 68%;
    max-height: 80px;
    fill: currentColor;
}

/* -------------------------------------------------------------------------- */
/* TELA DO ODS SELECIONADO (IMAGEM 3)                                         */
/* -------------------------------------------------------------------------- */
.ods-detail-top-block {
    display: flex;
    gap: 1.5rem;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .ods-detail-top-block {
        flex-direction: column;
    }
}

.ods-detail-badge-square {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.ods-detail-badge-square .ods-card-number {
    font-size: 1.25rem;
}

.ods-detail-badge-square .ods-card-label {
    font-size: 0.55rem;
}

/* Badge PNG Oficial na Pagina do ODS (Imagem 3) */
.ods-detail-badge-img-link {
    display: block;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}

.ods-detail-badge-img-link:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.ods-detail-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ods-detail-top-content {
    flex: 1;
}

.ods-detail-objetivo-destaque {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.ods-detail-texto-contexto {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.btn-mais-info {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border: 1px solid #1e293b;
    border-radius: var(--radius-sm);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-mais-info:hover {
    background-color: #1e293b;
    color: #ffffff;
    text-decoration: none;
}

/* Seção de Metas */
.metas-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-title-orange);
    margin-bottom: 1.25rem;
}

.meta-item-box {
    margin-bottom: 1.75rem;
}

.meta-header-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.meta-badge-gold {
    background-color: #f59e0b;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.meta-descricao-texto {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309;
    line-height: 1.4;
}

.meta-indicadores-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.indicador-link-bar {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.indicador-link-bar:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0b3b27;
    text-decoration: none;
    padding-left: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* TELA DO INDICADOR DETALHADO (IMAGEM 1)                                     */
/* -------------------------------------------------------------------------- */
.breadcrumb-bar-observa {
    background-color: var(--bg-breadcrumb);
    color: #94a3b8;
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.breadcrumb-bar-observa .container {
    max-width: 1240px;
    margin: 0 auto;
}

.breadcrumb-bar-observa a {
    color: #cbd5e1;
    text-decoration: none;
}

.breadcrumb-bar-observa a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-bar-observa span.current {
    color: #ffffff;
    font-weight: 600;
}

.indicador-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.indicador-main-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0b3b27;
    line-height: 1.25;
}

.associated-ods-badges {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.mini-ods-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 0.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.mini-ods-badge .ods-card-number {
    font-size: 0.65rem;
}

.mini-ods-badge .ods-card-label {
    display: none;
}

/* Mini-badge PNG Oficial na Pagina do Indicador (Imagem 1) */
.mini-ods-badge-img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.mini-ods-badge-img:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-md);
}

.mini-ods-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.indicador-divider-line {
    height: 2px;
    background-color: #1AB16E;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Blocos de Texto Metodologia e Justificativa */
.indicador-body-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.section-subhead {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b3b27;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.links-ref-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.links-ref-list li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

/* Painel de Métricas do Rodapé (Imagem 1) */
.footer-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .footer-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-footer-card {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.metric-footer-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0b3b27;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.metric-footer-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0c4a6e;
    font-family: var(--font-primary);
}

/* -------------------------------------------------------------------------- */
/* PAINEL ADMINISTRATIVO                                                      */
/* -------------------------------------------------------------------------- */
.admin-login-box {
    max-width: 440px;
    margin: 4rem auto;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin-bottom: -2px;
}

.admin-tab-btn:hover {
    color: #0b3b27;
}

.admin-tab-btn.active {
    color: #1AB16E;
    border-bottom-color: #1AB16E;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: #1AB16E;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-primary:hover {
    background-color: #26d084;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(38, 208, 132, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    text-decoration: none;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
    text-decoration: none;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

/* Modais e Formularios */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.25rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    color: #1e293b;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: #1AB16E;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tabelas Administrativas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.alert {
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0b3b27;
    border-color: #bae6fd;
}

/* -------------------------------------------------------------------------- */
/* FASE 2: GRID DE ODS (TELA 1)                                              */
/* -------------------------------------------------------------------------- */
.ods-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.ods-admin-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ods-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.ods-admin-card-header {
    padding: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
}

.ods-admin-card-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    flex-shrink: 0;
}

.ods-admin-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.ods-admin-card-number {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.ods-admin-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ods-admin-card-body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.ods-admin-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-badge-nao-iniciada {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.status-badge-em-andamento {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-badge-alcancada, .status-badge-concluida {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-badge-pausada {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.ods-progress-box {
    margin-top: 0.25rem;
}

.ods-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.ods-progress-track {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.ods-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.ods-admin-metrics-row {
    display: flex;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ods-admin-metrics-item strong {
    color: #0f172a;
    font-weight: 700;
}

.ods-admin-card-footer {
    padding: 0.65rem 1.15rem;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-teal-dark);
}

.ods-admin-card-footer span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* -------------------------------------------------------------------------- */
/* FASE 2: VISÃO INTEGRADA - EDIÇÃO ODS & AÇÕES (TELA 2)                     */
/* -------------------------------------------------------------------------- */
.ods-switcher-bar {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.ods-hero-header {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}

.ods-hero-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ods-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.admin-card-surface {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Checklist de Indicadores Impactados */
.impacted-indicators-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.65rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.impact-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    background: #ffffff;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.impact-check-label:hover {
    border-color: #93c5fd;
    background-color: #f0fdf4;
}

/* -------------------------------------------------------------------------- */
/* FASE 2: GERENCIAMENTO DE INDICADORES (TELA 3) - INLINE EDITING            */
/* -------------------------------------------------------------------------- */
.filter-bar-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.inline-edit-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background-color: transparent;
    transition: all 0.2s ease;
    outline: none;
    color: #1e293b;
    font-weight: 500;
}

.inline-edit-input:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.inline-edit-input:focus {
    background-color: #ffffff;
    border-color: #1AB16E;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.inline-edit-input.saved {
    background-color: #f0fdf4 !important;
    border-color: #22c55e !important;
}

.table-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* TOAST NOTIFICATIONS                                                       */
/* -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    pointer-events: auto;
    animation: toastSlideIn 0.25s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
    background-color: #15803d;
    border-left: 4px solid #86efac;
}

.toast-danger {
    background-color: #b91c1c;
    border-left: 4px solid #fca5a5;
}

.toast-info {
    background-color: #0b3b27;
    border-left: 4px solid #7dd3fc;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rodape */
.portal-footer {
    background-color: #0e374e;
    color: #94a3b8;
    padding: 1.5rem;
    font-size: 0.8rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.portal-footer a {
    color: #38bdf8;
}

.portal-footer .container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================================================== */
/* FASE 3: GRÍFICOS, DATAVIZ E EXPORTAÇÃO EXECUTIVA                           */
/* ========================================================================== */
.chart-container-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.chart-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 480px;
}

.chart-wrapper-mini {
    position: relative;
    width: 100%;
    height: 240px;
    margin-top: 1rem;
}

/* ========================================================================== */
/* FASE 3: STEPPER DE FORMULÍRIO (UX EM ETAPAS)                               */
/* ========================================================================== */
.stepper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    position: relative;
}

.stepper-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.stepper-step {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.stepper-bullet {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.stepper-step.active .stepper-bullet {
    background-color: #1AB16E;
    border-color: #1AB16E;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.stepper-step.completed .stepper-bullet {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.stepper-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stepper-step.active .stepper-title {
    color: #1AB16E;
}

.stepper-pane {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.stepper-pane.active {
    display: block;
}

/* ========================================================================== */
/* FASE 3: VALIDAÇÃO INLINE EM TEMPO REAL                                     */
/* ========================================================================== */
.form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.form-control.is-valid {
    border-color: #22c55e !important;
    background-color: #f0fdf4 !important;
}

.field-error-msg {
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* ========================================================================== */
/* FASE 3: ESTILOS DE IMPRESSÃO LIMPA E RELATÓRIOS EXECUTIVOS                 */
/* ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }

    .portal-header,
    .admin-header-bar,
    .admin-tabs-nav,
    .btn,
    button,
    .modal-backdrop,
    .toast-container,
    .chart-filters-bar,
    .alert,
    .portal-footer,
    #loginSection {
        display: none !important;
    }

    .admin-section {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .portal-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .chart-container-card,
    .admin-card-surface {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        page-break-inside: avoid;
        margin-bottom: 1.5cm !important;
    }

    .print-only-header {
        display: block !important;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #1AB16E;
        padding-bottom: 0.75rem;
    }

    .data-table th, 
    .data-table td {
        border: 1px solid #dddddd !important;
        color: #000000 !important;
    }
}

.print-only-header {
    display: none;
}

/* ========================================================================== */
/* FASE 4 â€” POLIMENTO & RESPONSIVIDADE MOBILE/TABLET                          */
/* ========================================================================== */

/* Otimização de Performance */
.ods-card-box, 
.ods-card-img-link, 
.ods-admin-card {
    will-change: transform, box-shadow;
}

.meta-item-box {
    content-visibility: auto;
    contain-intrinsic-size: 0 100px;
}

/* Responsividade Portal Público */
@media (max-width: 768px) {
    .portal-container {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 640px) {
    /* Header do Indicador Detalhado */
    .indicador-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .associated-ods-badges {
        margin-top: 0.25rem;
    }

    /* Gráficos em dispositivos menores */
    .chart-wrapper {
        min-height: 220px !important;
        max-height: 300px !important;
    }

    .chart-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .chart-filters-bar > div {
        flex-direction: column;
        align-items: stretch !important;
    }

    .chart-filters-bar select,
    .chart-filters-bar input {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Portal Header */
    .portal-header-container {
        padding: 0.65rem 1rem;
    }

    .portal-brand-title {
        font-size: 0.95rem;
    }

    .portal-brand-subtitle {
        font-size: 0.65rem;
    }

    .portal-brand-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
    }

    /* Stepper UI */
    .stepper-title {
        display: none; /* Oculta títulos para manter apenas a bolha numérica no celular */
    }

    .stepper-nav::before {
        left: 15%;
        right: 15%;
    }
}
