/* ===== OUVIDORIA & e-SIC - Modern Page Styles ===== */
body {
    font-family: 'Lato', sans-serif !important;
    background-color: #f8f9fa;
}

.formulario-protocolo {
    margin: 0 !important;
    background: transparent !important;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    color: #0A57B3;
    margin: 25px 0 8px 0;
    border-left: 5px solid #0A57B3;
    padding-left: 15px;
    line-height: 1.2;
}

.page-desc {
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ===== Info Bar (Contact / Location) ===== */
.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.info-bar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-bar-item i {
    color: #0A57B3;
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.info-bar-item .info-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-bar-item .info-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.info-bar-item .info-value a {
    color: #0A57B3;
    text-decoration: none;
    font-weight: 700;
}

.info-bar-item .info-value a:hover {
    text-decoration: underline;
}

/* ===== Tab Navigation ===== */
.tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.tab-btn {
    flex: 1;
    max-width: 320px;
    padding: 14px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
    bottom: -3px;
    text-align: left;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.tab-btn.active {
    background: #ffffff;
    color: #0A57B3;
    border-color: #cbd5e1;
    border-bottom: 3px solid #ffffff;
    box-shadow: 0 -2px 8px rgba(10, 87, 179, 0.06);
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn .tab-badge {
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: auto;
}

.tab-btn.active .tab-badge {
    background: #dbeafe;
    color: #1e3a8a;
}

/* ===== Tab Content ===== */
.tab-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 28px 28px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tab-pane {
    display: none;
}

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

/* ===== Section Cards ===== */
.section-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.section-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.section-header:hover {
    background: #eff6ff;
}

.section-header i.section-icon {
    color: #0A57B3;
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.section-header h3 {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.section-header .chevron {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.3s;
}

.section-header.open .chevron {
    transform: rotate(180deg);
}

.section-body {
    padding: 18px 20px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.7;
    display: none;
}

.section-body.open {
    display: block;
}

.section-body p {
    margin: 0 0 10px 0;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body ul,
.section-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.section-body li {
    margin-bottom: 6px;
}

.section-body a {
    color: #0A57B3;
    font-weight: 700;
    text-decoration: none;
}

.section-body a:hover {
    text-decoration: underline;
}

/* ===== Quick Actions Grid ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.quick-action {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    text-decoration: none !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-action:hover {
    background: #f8fafc;
    border-color: #0A57B3;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 20px rgba(10, 87, 179, 0.12);
}

.quick-action i {
    font-size: 28px;
    color: #0A57B3;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.quick-action:hover i {
    transform: scale(1.1);
}

.quick-action .qa-text strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #0A57B3;
    margin-bottom: 3px;
}

.quick-action .qa-text span {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, #0A57B3 0%, #1e3a8a 100%);
    border-radius: 8px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.cta-banner-text h4 {
    margin: 0 0 3px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.cta-banner-text p {
    margin: 0;
    color: #93c5fd;
    font-size: 12.5px;
    font-weight: 600;
}

.cta-btn {
    background: #ffffff;
    color: #0A57B3;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12.5px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cta-btn:hover {
    background: #dbeafe;
    color: #1e3a8a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ===== Reports Grid ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.report-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.2s;
    cursor: pointer;
}

.report-card:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(10, 87, 179, 0.06);
}

.report-card .year {
    font-size: 20px;
    font-weight: 800;
    color: #0A57B3;
    display: block;
    margin-bottom: 4px;
}

.report-card .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== Accordion (LAI / FAQ) ===== */
.accordion-ouv {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-ouv-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-ouv-item:last-child {
    border-bottom: none;
}

.accordion-ouv-header {
    width: 100%;
    padding: 13px 18px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    gap: 10px;
}

.accordion-ouv-header:hover {
    background: #eff6ff;
    color: #0A57B3;
}

.accordion-ouv-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: #94a3b8;
}

.accordion-ouv-header.active {
    background: #eff6ff;
    color: #0A57B3;
}

.accordion-ouv-header.active::after {
    transform: rotate(180deg);
    color: #0A57B3;
}

.accordion-ouv-content {
    display: none;
    padding: 16px 20px;
    background: #fff;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
}

.accordion-ouv-content a {
    color: #0A57B3;
    font-weight: 700;
    text-decoration: none;
}

.accordion-ouv-content a:hover {
    text-decoration: underline;
}

.accordion-ouv-content ul {
    margin: 6px 0;
    padding-left: 18px;
}

.accordion-ouv-content li {
    margin-bottom: 4px;
}

/* ===== Legislation List ===== */
.legislation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legislation-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legislation-list li:last-child {
    border-bottom: none;
}

.legislation-list li i {
    color: #0A57B3;
    margin-top: 3px;
    font-size: 14px;
    flex-shrink: 0;
}

.legislation-list li a {
    font-weight: 700;
    color: #0A57B3;
    text-decoration: none;
    font-size: 13.5px;
}

.legislation-list li a:hover {
    text-decoration: underline;
}

.legislation-list li .leg-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}

/* ===== Prazos / Info Table ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.info-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .tab-btn {
        font-size: 12px;
        padding: 12px 14px;
    }

    .tab-btn .tab-label-full {
        display: none;
    }

    .tab-btn .tab-label-short {
        display: inline;
    }

    .tab-content {
        padding: 20px 16px;
    }

    .info-bar {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .tab-btn .tab-label-short {
        display: none;
    }
}