﻿body {
    padding-bottom: 20px;
    background: #F0F0F0;
}

.login_info{
    border: 0px solid;
    padding-top:20px;
    color: white;
    text-align:center;
}

table thead tr{
    font-size: 16px;
    font-weight: bold;
    background: #3276B1;
    color: white;
    text-align:center;
    border: 1px solid;
}
table thead tr td{
    border: 1px solid;
}
table tbody tr{
    font-size: 8pt;
}

#custom-bootstrap-menu.navbar-default .navbar-brand {
    color:white;
}
#custom-bootstrap-menu.navbar-default {
    font-size: 14px;
    background-color: #2C5686;
    border-width: 1px;
    border-radius: 4px;
    font-weight: bold;
}
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a {
    color: white;
    background-color: rgba(248, 248, 248, 0);
}
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a:hover,
#custom-bootstrap-menu.navbar-default .navbar-nav>li>a:focus {
    color: white;
    background-color: #3276B1;
}
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a,
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a:hover,
#custom-bootstrap-menu.navbar-default .navbar-nav>.active>a:focus {
    color: rgba(85, 85, 85, 1);
    background-color: rgba(231, 231, 231, 1);
}
#custom-bootstrap-menu.navbar-default .navbar-toggle {
    border-color: #ddd;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle:hover,
#custom-bootstrap-menu.navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}
#custom-bootstrap-menu.navbar-default .navbar-toggle:hover .icon-bar,
#custom-bootstrap-menu.navbar-default .navbar-toggle:focus .icon-bar {
    background-color: #888;
}

.topo{
    background: #2C5686;
    border-top: 5px solid #9ECB3B;
    border-bottom: 3px solid #283F59;
}
.topo .logo{
    float: left;
}
.topo .login{
    width: 200px;
    height: 155px;
    border: 1px solid red;
    float: right;
}
.topo img{
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 0;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    width:100%;
    background:#fff;
    border: 1px solid #dddddd;
    padding: 10px;
    margin-bottom: 15px;
}
.clear
{
	clear: both;
}

.form_login p
{
  width: 90px;
  float:left;
  font-size: 16px;
  color:#000;
  padding-top:5px;
  text-align: right;
  padding-right: 10px;
}
.form_login input
{
  width: 200px;
}
.lembrar
{
  float:right;
}
.lembrar p
{
  font-size: 14px;
  width:auto;
  padding-top: 0;
}
.lembrar input
{
  margin-top: 5px;
  width: auto;
}
.bt_logar
{
  background: #2b5686;
  border: 0;
  text-transform: uppercase;
  float: right;
  color: #fff;
  padding: 9px 10px;
  margin-top: 15px;
}
.login{
    border: 1px solid #D8EBFF; 
    margin: 0 auto;
    float: none;
    background: #D8EBFF;
    border-radius: 10px;
    box-shadow: 0 0 100px 1px #2C5686;
}
.login_titulo{
    text-align: center; 
}
.form_login_input{
    width: 100%;
    text-align: center;
}

footer{
    padding-top: 35px;
    padding-bottom: 35px;
    background: #29344A;
    text-align: center;
}
footer p{
    color:#7889AA; 
}

.tp-hero {
    background: linear-gradient(135deg, #0c4a6e, #2563eb);
    color: #fff;
    border-radius: 10px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    margin: 15px 0 0 0;
}

    .tp-hero h1 {
        font-weight: 700;
        margin: 0 0 8px;
    }

    .tp-hero p {
        margin: 0 0 18px;
        font-size: 16px;
        opacity: .95;
    }

    .tp-hero .tp-cta .btn {
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .tp-hero .tp-badge {
        position: absolute;
        right: -30px;
        top: -30px;
        width: 180px;
        height: 180px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
    }

/* CARDS */
.tp-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #efefef;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .tp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .tp-card .tp-ico {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #eff6ff;
        color: #2563eb;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .tp-card h4 {
        margin-top: 6px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .tp-card p {
        color: #475569;
        margin-bottom: 12px;
    }

    .tp-card a.btn {
        padding: 6px 10px;
    }

.tp-card-relatorio {
    background: linear-gradient(135deg, #fff7f7, #ffffff);
    border: 1px solid #f1d4d4;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

    .tp-card-relatorio .tp-ico {
        background: #fff1f1;
        color: #c9302c;
    }

    .tp-card-relatorio h4 {
        margin-top: 0;
        color: #243044;
    }

    .tp-card-relatorio p {
        margin-bottom: 0;
        color: #4b5563;
    }

.tp-faq dt {
    font-weight: 600;
    margin-top: 10px;
}

.tp-faq dd {
    margin-left: 0;
    color: #475569;
}

.mt-24 {
    margin-top: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}

.btn-sm {
    font-weight: bold;
}
/* =========================================================
   PORTAL DA TRANSPARÊNCIA - IDENTIDADE VISUAL 2026
   Baseada no padrão institucional utilizado no Portal Intranet.
   Mantém Bootstrap 3 para não impactar as telas legadas.
   ========================================================= */
:root {
    --funpar-blue: #2C5686;
    --funpar-blue-dark: #283F59;
    --funpar-blue-deep: #1F334A;
    --funpar-green: #9ECB3B;
    --portal-border: #dfe8f2;
    --portal-muted: #6b7280;
    --portal-bg-soft: #f6f9fd;
}

html,
body.portal-page {
    min-height: 100%;
}

body.portal-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: #fff;
    color: #243044;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* TOPO INSTITUCIONAL */
body.portal-page .portal-header {
    position: relative;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, var(--funpar-blue) 0%, var(--funpar-blue-dark) 100%) !important;
    border: 0;
    box-shadow: 0 7px 22px rgba(31, 51, 74, .16);
    z-index: 20;
}

.portal-header-accent {
    height: 5px;
    background: var(--funpar-green);
}

.portal-header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px clamp(18px, 3vw, 44px);
}

.portal-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.portal-brand-link:hover,
.portal-brand-link:focus {
    color: #fff;
    text-decoration: none;
}

body.portal-page .portal-header .portal-logo {
    display: block;
    width: clamp(205px, 18vw, 230px);
    height: auto;
    max-height: 82px;
    object-fit: contain;
    flex: 0 0 auto;
    margin: 0;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    line-height: 1.15;
}

.portal-brand-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .66);
}

.portal-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.portal-brand-subtitle {
    margin-top: 3px;
    max-width: 330px;
    font-size: 10.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .72);
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.portal-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.portal-header-link:hover,
.portal-header-link:focus {
    color: #fff;
    background: rgba(255,255,255,.13);
    text-decoration: none;
}

/* CONTEÚDO FULL WIDTH */
.portal-main {
    width: 100%;
    flex: 1 0 auto;
    background: #fff;
}

body.portal-page .portal-body-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px clamp(15px, 2vw, 32px) 32px;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
}

body.portal-page .portal-body-content .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.portal-page .portal-body-content > .row,
body.portal-page .portal-body-content form > .row,
body.portal-page .portal-body-content .portal-container > .row {
    margin-left: -8px;
    margin-right: -8px;
}

body.portal-page .portal-body-content [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.portal-page-title {
    margin: 0 0 22px;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--portal-border);
    color: var(--funpar-blue);
    font-size: 22px;
    font-weight: 700;
}

.portal-page-title:after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin-top: 10px;
    margin-bottom: -14px;
    background: var(--funpar-green);
    border-radius: 3px;
}

.portal-page-title .portal-page-subtitle {
    color: #718096;
    font-weight: 600;
}

/* FORMULÁRIOS / PAINÉIS */
body.portal-page .form-control,
body.portal-page .select2-container--default .select2-selection--single {
    border-color: #d5e0eb;
    border-radius: 6px;
    box-shadow: none;
}

body.portal-page .form-control:focus,
body.portal-page .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #8eacd0;
    box-shadow: 0 0 0 2px rgba(44, 86, 134, .08);
}

body.portal-page .input-group-addon {
    border-color: #d5e0eb;
    background: #f5f8fc;
    color: #50657d;
    font-weight: 600;
}

body.portal-page .panel {
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(44,86,134,.06);
    overflow: hidden;
}

body.portal-page .panel-default > .panel-heading {
    border-color: var(--portal-border);
    background: var(--portal-bg-soft);
    color: var(--funpar-blue-dark);
}

body.portal-page .panel-footer {
    border-color: var(--portal-border);
    background: #fbfcfe;
}

body.portal-page .btn {
    border-radius: 7px;
}

body.portal-page .btn-primary {
    background-color: var(--funpar-blue);
    border-color: var(--funpar-blue);
}

body.portal-page .btn-primary:hover,
body.portal-page .btn-primary:focus {
    background-color: var(--funpar-blue-dark);
    border-color: var(--funpar-blue-dark);
}

body.portal-page .alert {
    border-radius: 8px;
}

body.portal-page table thead tr {
    background: var(--funpar-blue);
    color: #fff;
    border-color: var(--funpar-blue);
}

body.portal-page table tbody tr {
    font-size: 12px;
}

/* HOME */
body.portal-page .tp-hero {
    margin-top: 0;
    background: linear-gradient(135deg, var(--funpar-blue) 0%, var(--funpar-blue-dark) 100%);
    border-radius: 14px;
    padding: 34px 30px;
    box-shadow: 0 10px 28px rgba(31, 51, 74, .14);
}

body.portal-page .tp-card {
    background: #fff;
    border-color: var(--portal-border);
    box-shadow: 0 5px 16px rgba(44,86,134,.06);
}

body.portal-page .tp-card .tp-ico {
    background: #eef4fa;
    color: var(--funpar-blue);
}

body.portal-page .tp-card:hover {
    box-shadow: 0 12px 28px rgba(44,86,134,.11);
}

/* RODAPÉ INSTITUCIONAL */
body.portal-page .portal-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background: linear-gradient(135deg, var(--funpar-blue-deep) 0%, #17283c 100%) !important;
    color: #dce5ee;
    text-align: left;
    flex: 0 0 auto;
}

.portal-footer-accent {
    height: 4px;
    background: var(--funpar-green);
}

.portal-footer-content {
    padding: 18px clamp(18px, 3vw, 44px) 12px;
}

.portal-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
}

.portal-footer-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

body.portal-page .portal-footer .portal-footer-logo {
    display: block;
    width: 178px;
    height: auto;
    max-height: 66px;
    object-fit: contain;
    flex: 0 0 auto;
    margin: 0;
}

.portal-footer-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    min-width: 0;
}

.portal-footer-context-title {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: rgba(255, 255, 255, .90);
}

.portal-footer-context-copy {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .52);
}

.portal-footer-funpar-link {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .68);
    font-size: 10.5px;
    text-decoration: none;
    white-space: nowrap;
}

.portal-footer-funpar-link:hover,
.portal-footer-funpar-link:focus {
    color: #d8efa7;
    text-decoration: none;
}

.portal-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    font-size: 10px;
    color: rgba(255, 255, 255, .46);
}

.portal-footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.portal-footer-version,
.portal-footer-developer,
.portal-footer-developer strong,
.portal-footer-site {
    color: rgba(255, 255, 255, .48);
}

.portal-footer-developer {
    font-size: 9.5px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.portal-footer-developer:hover,
.portal-footer-developer:focus {
    color: rgba(255,255,255,.75);
    text-decoration: none;
}

.portal-footer-separator {
    color: rgba(255, 255, 255, .22);
}

@media (max-width: 767px) {
    .portal-header-inner {
        min-height: auto;
        padding: 12px 15px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portal-brand-link {
        width: 100%;
        gap: 12px;
    }

    body.portal-page .portal-header .portal-logo {
        width: 155px;
        max-height: 58px;
    }

    .portal-brand-copy {
        padding-left: 12px;
    }

    .portal-brand-subtitle {
        display: none;
    }

    .portal-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .portal-header-link {
        font-size: 10px;
        padding: 6px 8px;
    }

    body.portal-page .portal-body-content {
        padding: 16px 12px 24px;
    }

    .portal-page-title {
        font-size: 19px;
    }

    .portal-footer-main,
    .portal-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    body.portal-page .portal-footer .portal-footer-logo {
        width: 150px;
    }

    .portal-footer-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* =========================================================
   CONTEÚDO DE CONSULTA - REFINAMENTO VISUAL 2026
   Escopo somente das páginas de consulta. Não altera topo/rodapé.
   ========================================================= */
.portal-content-shell {
    width: 100%;
    margin: 0;
    padding: 0 0 8px;
}

.portal-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 5px 18px rgba(44, 86, 134, .055);
}

.portal-page-heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    color: #2C5686;
    background: #edf4fb;
    border: 1px solid #dbe8f4;
    font-size: 21px;
}

.portal-page-heading-copy {
    min-width: 0;
}

.portal-page-eyebrow,
.portal-section-kicker {
    display: block;
    color: #7a8da3;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .11em;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-page-heading h1 {
    margin: 2px 0 3px;
    color: #263f5b;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.portal-page-heading p {
    margin: 0;
    color: #65778b;
    font-size: 13px;
    line-height: 1.45;
}

.portal-query-form {
    margin: 0;
}

.portal-query-card,
.portal-results-card {
    margin: 0;
    border: 1px solid #dce6f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(35, 64, 96, .07);
}

.portal-query-card-header,
.portal-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    background: #fbfcfe;
    border-bottom: 1px solid #e3eaf2;
}

.portal-query-card-header h2,
.portal-results-header h2 {
    margin: 3px 0 2px;
    color: #2b4663;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.portal-query-card-header h2 i {
    margin-right: 7px;
    color: #2C5686;
}

.portal-query-card-header p {
    margin: 0;
    color: #75869a;
    font-size: 13px;
}

.portal-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #d9e6d0;
    border-radius: 999px;
    background: #f5faef;
    color: #668534;
    font-size: 10.5px;
    font-weight: 700;
}

.portal-query-card-body {
    padding: 20px;
}

.portal-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid;
}

.portal-notice-warning {
    background: #fffaf0;
    border-color: #f2dfb6;
    color: #7f6225;
}

.portal-notice-info {
    background: #f2f8fc;
    border-color: #d6e8f3;
    color: #45677f;
}

.portal-notice-compact {
    flex: 1 1 520px;
    margin: 0;
}

.portal-notice-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(255, 255, 255, .72);
    font-size: 15px;
}

.portal-notice-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    line-height: 1.4;
}

.portal-notice-copy strong {
    font-size: 13.5px;
    color: inherit;
}

.portal-notice-copy span {
    font-size: 13px;
    color: inherit;
    opacity: .9;
}

.portal-filter-section {
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid #edf1f5;
}

.portal-filter-section-last {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.portal-filter-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.portal-filter-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border-radius: 8px;
    background: #eef4fa;
    color: #2C5686;
    border: 1px solid #dde8f3;
    font-size: 13px;
}

.portal-filter-section-title > div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.portal-filter-section-title strong {
    color: #334e69;
    font-size: 13.5px;
    font-weight: 700;
}

.portal-filter-section-title small {
    margin-top: 2px;
    color: #8796a6;
    font-size: 12px;
}

.portal-form-row {
    margin-bottom: 12px;
}

.portal-form-row:last-child {
    margin-bottom: 0;
}

.portal-field {
    margin: 0;
}

.portal-field label {
    display: block;
    margin: 0 0 5px;
    color: #425a73;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.portal-content-shell .portal-field input.form-control,
.portal-content-shell .portal-field select.form-control {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #d5e1ec;
    border-radius: 7px;
    background: #fff;
    color: #334a62;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.portal-content-shell .portal-field input.form-control::placeholder {
    color: #9aa8b6;
}

.portal-content-shell .portal-field input.form-control:focus,
.portal-content-shell .portal-field select.form-control:focus {
    border-color: #87a7ca;
    box-shadow: 0 0 0 3px rgba(44, 86, 134, .08);
}

.portal-input-wrap {
    position: relative;
}

.portal-input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #7990a8;
    font-size: 14px;
    pointer-events: none;
}

.portal-content-shell .portal-input-wrap > i + input.form-control {
    padding-left: 36px;
}

.portal-input-prefix {
    position: absolute;
    left: 11px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #6e8398;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.portal-content-shell .portal-input-wrap input.portal-input-with-prefix {
    padding-left: 34px;
}

.portal-content-shell .select2-container {
    width: 100% !important;
}

.portal-content-shell .select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid #d5e1ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.portal-content-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 40px;
    padding-left: 12px;
    padding-right: 34px;
    color: #334a62;
    font-size: 14px;
    line-height: 40px !important;
}

.portal-content-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 5px;
}

.portal-content-shell .select2-container--default.select2-container--focus .select2-selection--single,
.portal-content-shell .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #87a7ca !important;
    box-shadow: 0 0 0 3px rgba(44, 86, 134, .08) !important;
}

body.portal-page .select2-results__option {
    font-size: 14px;
    line-height: 1.4;
}

.portal-query-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 15px 20px;
    border-top: 1px solid #e4eaf1;
    background: #fbfcfe;
}

.portal-resource-callout {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1 1 560px;
}

.portal-resource-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #edf7fb;
    border: 1px solid #d5eaf3;
    color: #2d7897;
}

.portal-resource-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.portal-resource-copy strong {
    color: #38556f;
    font-size: 11.5px;
}

.portal-resource-copy span {
    color: #8190a0;
    font-size: 10.5px;
}

.portal-resource-link {
    width: auto !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #cfe0ec !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #2C5686 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.portal-resource-link:hover,
.portal-resource-link:focus {
    background: #f1f6fb !important;
    border-color: #aec7dd !important;
}

.portal-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.portal-content-shell .portal-btn {
    width: auto;
    min-width: 112px;
    height: 36px;
    margin: 0;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12.5px;
    line-height: 20px;
    font-weight: 700;
    box-shadow: none;
    transition: all .15s ease;
}

.portal-content-shell .portal-btn i {
    margin-right: 5px;
}

.portal-btn-primary {
    color: #fff !important;
    background: #2C5686 !important;
    border-color: #2C5686 !important;
}

.portal-btn-primary:hover,
.portal-btn-primary:focus {
    color: #fff !important;
    background: #234a75 !important;
    border-color: #234a75 !important;
    box-shadow: 0 4px 10px rgba(44, 86, 134, .18) !important;
}

.portal-btn-secondary {
    color: #4d6278 !important;
    background: #fff !important;
    border-color: #cfdbe6 !important;
}

.portal-btn-secondary:hover,
.portal-btn-secondary:focus {
    color: #2C5686 !important;
    background: #f3f7fb !important;
    border-color: #aebfd0 !important;
}

.portal-btn-ghost {
    min-width: 86px !important;
    color: #6d7f92 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.portal-btn-ghost:hover,
.portal-btn-ghost:focus {
    color: #2C5686 !important;
    background: #eef4fa !important;
}

.portal-btn-success {
    color: #fff !important;
    background: #5b842b !important;
    border-color: #5b842b !important;
}

.portal-btn-success:hover,
.portal-btn-success:focus {
    color: #fff !important;
    background: #4f7623 !important;
    border-color: #4f7623 !important;
}

.portal-results-wrap {
    margin-top: 18px;
}

.portal-results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.portal-results-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #edf4fa;
    border: 1px solid #dce8f3;
    color: #2C5686;
}

.portal-results-summary {
    padding: 7px 10px;
    border-radius: 7px;
    background: #f2f8ed;
    border: 1px solid #dceacb;
    color: #5d7c34;
    font-size: 10.5px;
}

.portal-results-body {
    padding: 16px 18px;
}

.portal-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid #e4eaf1;
    background: #fbfcfe;
}

.portal-export-label {
    color: #718296;
    font-size: 10.5px;
    font-weight: 700;
}

.portal-export-label i {
    margin-right: 5px;
}

.portal-export-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.portal-data-table,
#resultado_pesquisa table {
    margin-bottom: 0 !important;
    border: 1px solid #e2e9f0 !important;
    border-radius: 8px;
    overflow: hidden;
}

body.portal-page .portal-content-shell table thead tr,
body.portal-page .portal-content-shell #resultado_pesquisa table thead tr {
    background: #315d8d;
    color: #fff;
    border-color: #315d8d;
    font-size: 11px;
}

body.portal-page .portal-content-shell table thead th,
body.portal-page .portal-content-shell #resultado_pesquisa table thead th {
    padding: 9px 8px !important;
    border-bottom: 0 !important;
    vertical-align: middle;
}

body.portal-page .portal-content-shell table tbody tr,
body.portal-page .portal-content-shell #resultado_pesquisa table tbody tr {
    font-size: 10.5px;
    background: #fff;
}

body.portal-page .portal-content-shell table tbody tr:nth-child(even),
body.portal-page .portal-content-shell #resultado_pesquisa table tbody tr:nth-child(even) {
    background: #fafcfe;
}

body.portal-page .portal-content-shell table tbody tr:hover,
body.portal-page .portal-content-shell #resultado_pesquisa table tbody tr:hover {
    background: #f1f6fb;
}

body.portal-page .portal-content-shell table tbody td,
body.portal-page .portal-content-shell #resultado_pesquisa table tbody td {
    padding: 8px !important;
    border-top-color: #edf1f5 !important;
    vertical-align: middle;
}

#resultado_pesquisa {
    background: transparent !important;
    padding: 0 !important;
}

.portal-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dde7f0;
    border-radius: 8px;
    background: #f7fafe;
    color: #5b7188;
    font-size: 11px;
}

.portal-loading img {
    width: 20px;
    height: 20px;
}

.portal-result-message {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 11px;
}

.portal-result-success {
    color: #55782e;
    background: #f4f9ef;
    border-color: #dcebcf;
}

.portal-result-warning {
    color: #816122;
    background: #fffaf0;
    border-color: #eedcb4;
}

/* DataTables alinhado ao novo painel */
.portal-content-shell .dataTables_wrapper .dataTables_length,
.portal-content-shell .dataTables_wrapper .dataTables_filter,
.portal-content-shell .dataTables_wrapper .dataTables_info,
.portal-content-shell .dataTables_wrapper .dataTables_paginate {
    color: #728296;
    font-size: 10.5px;
}

.portal-content-shell .dataTables_wrapper .dataTables_length select,
.portal-content-shell .dataTables_wrapper .dataTables_filter input {
    width: auto;
    height: 30px;
    margin: 0 4px;
    padding: 4px 7px;
    border: 1px solid #d5e1ec;
    border-radius: 6px;
    background: #fff;
}

.portal-content-shell .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}

@media (max-width: 991px) {
    .portal-form-row {
        margin-bottom: 0;
    }

    .portal-form-row > [class*="col-"] {
        margin-bottom: 12px;
    }

    .portal-form-row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .portal-query-card-footer {
        align-items: stretch;
    }

    .portal-form-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .portal-page-heading {
        align-items: flex-start;
        padding: 14px;
    }

    .portal-page-heading-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .portal-page-heading h1 {
        font-size: 20px;
    }

    .portal-query-card-header,
    .portal-results-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .portal-filter-badge {
        align-self: flex-start;
    }

    .portal-query-card-body {
        padding: 14px;
    }

    .portal-query-card-footer,
    .portal-results-footer {
        padding: 12px 14px;
    }

    .portal-resource-callout {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .portal-resource-link {
        margin-left: 47px !important;
    }

    .portal-form-actions,
    .portal-export-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .portal-content-shell .portal-btn {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .portal-results-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-results-body {
        padding: 12px;
    }
}

/* =========================================================
   MODAL DETALHES DO PROJETO - REFINAMENTO VISUAL 2026
   ========================================================= */
.portal-project-modal {
    width: 92%;
    max-width: 1480px;
    margin: 28px auto;
}

.portal-project-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(24, 44, 67, .28);
}

.portal-project-modal-header {
    position: relative;
    padding: 20px 22px;
    border: 0;
    border-top: 4px solid #9ECB3B;
    border-bottom: 1px solid #dfe8f2;
    background: linear-gradient(135deg, #f9fbfe 0%, #eef5fb 100%);
}

.portal-project-modal-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 42px;
}

.portal-project-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border: 1px solid #d5e3ef;
    border-radius: 12px;
    background: #fff;
    color: #2C5686;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(44, 86, 134, .08);
}

.portal-project-modal-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.portal-project-modal-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #7890a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.portal-project-modal-header .modal-title {
    margin: 0;
    color: #274663;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.portal-project-modal-heading-copy p {
    margin: 4px 0 0;
    color: #64798e;
    font-size: 13px;
    line-height: 1.4;
}

.portal-project-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 3;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    border: 1px solid #d9e4ee !important;
    border-radius: 9px;
    background: rgba(255,255,255,.86) !important;
    color: #60758a;
    font-size: 22px;
    line-height: 28px;
    opacity: 1;
    text-shadow: none;
}

.portal-project-modal-close:hover,
.portal-project-modal-close:focus {
    color: #2C5686;
    background: #fff !important;
    opacity: 1;
}

.portal-project-status,
.portal-project-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-project-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 11px;
}

.portal-project-status-inline {
    padding: 4px 9px;
    font-size: 12px;
}

.portal-project-status i {
    font-size: 7px;
}

.portal-project-status-active {
    border: 1px solid #d4e6c0;
    background: #f2f8eb;
    color: #608535;
}

.portal-project-status-finished {
    border: 1px solid #dce4ec;
    background: #f5f7f9;
    color: #66798c;
}

.portal-project-modal-body {
    padding: 20px;
    background: #f6f9fc;
}

.portal-project-section {
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(42, 70, 99, .045);
}

.portal-project-section-last {
    margin-bottom: 0;
}

.portal-project-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf1f5;
}

.portal-project-section-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border: 1px solid #dce8f3;
    border-radius: 9px;
    background: #eef5fb;
    color: #2C5686;
    font-size: 14px;
}

.portal-project-section-heading h5 {
    margin: 0;
    color: #334f6b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.portal-project-section-heading span {
    display: block;
    margin-top: 2px;
    color: #8392a2;
    font-size: 11.5px;
    line-height: 1.35;
}

.portal-project-grid {
    margin-left: -6px;
    margin-right: -6px;
}

.portal-project-grid > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

.portal-project-field {
    min-height: 66px;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    background: #fbfcfe;
}

.portal-project-label {
    display: block;
    margin-bottom: 4px;
    color: #778a9e;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.portal-project-value {
    display: block;
    color: #344b62;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.portal-project-value-strong {
    color: #274e77;
    font-weight: 700;
}

.portal-project-money {
    color: #557a2d;
    font-weight: 700;
}

.portal-project-text-block {
    padding: 13px 14px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    background: #fbfcfe;
    color: #455d74;
    font-size: 13px;
    line-height: 1.6;
}

.portal-project-objectives {
    white-space: normal;
}

.portal-project-links-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.portal-project-link-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.portal-project-link-line i {
    margin-top: 4px;
    color: #7a9fc2;
}

.portal-project-empty {
    color: #8a98a7;
    font-style: italic;
}

.portal-project-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.portal-project-file {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #dde7f0;
    border-radius: 8px;
    background: #fbfcfe;
    color: #2C5686;
    font-size: 12.5px;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.portal-project-file:hover,
.portal-project-file:focus {
    border-color: #b9cde0;
    background: #f3f8fc;
    color: #244d79;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(44, 86, 134, .07);
}

.portal-project-file span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.portal-project-file-icon {
    flex: 0 0 auto;
    color: #6f91b3;
}

.portal-project-file-open {
    flex: 0 0 auto;
    color: #97a9ba;
}

.portal-project-empty-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px dashed #d8e1ea;
    border-radius: 8px;
    background: #fbfcfd;
    color: #8292a3;
    font-size: 12.5px;
}

.portal-project-table-wrap {
    margin: 0;
    border: 1px solid #e1e8ef;
    border-radius: 9px;
    overflow: hidden;
}

.portal-project-modal .portal-project-table {
    margin: 0;
    border: 0;
}

.portal-project-modal .portal-project-table thead tr {
    border: 0;
    background: #315d8d;
    color: #fff;
    font-size: 12px;
}

.portal-project-modal .portal-project-table thead th {
    padding: 10px 9px;
    border: 0;
    vertical-align: middle;
}

.portal-project-modal .portal-project-table tbody tr {
    background: #fff;
    color: #40576f;
    font-size: 12px;
    font-weight: 400;
}

.portal-project-modal .portal-project-table tbody tr:nth-child(even) {
    background: #fafcfe;
}

.portal-project-modal .portal-project-table tbody td {
    padding: 9px;
    border-top: 1px solid #edf1f5;
    vertical-align: middle;
}

.portal-project-external-link {
    color: #2C5686;
    font-weight: 700;
    white-space: nowrap;
}

.portal-project-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-top: 1px solid #dfe8f2;
    background: #fff;
    text-align: left;
}

.portal-project-footer-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
}

.portal-project-footer-copy strong {
    color: #405974;
    font-size: 12.5px;
}

.portal-project-footer-copy span {
    margin-top: 2px;
    color: #8a99a8;
    font-size: 11px;
}

.portal-project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-project-action-form {
    display: inline-block;
    margin: 0;
}

.portal-project-action-btn {
    width: auto !important;
    min-width: 118px;
    height: 36px;
    margin: 0 !important;
    padding: 7px 12px !important;
    border-radius: 7px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    box-shadow: none;
}

.portal-project-action-btn i {
    margin-right: 5px;
}

.portal-project-action-primary {
    border-color: #2C5686 !important;
    background: #2C5686 !important;
    color: #fff !important;
}

.portal-project-action-primary:hover,
.portal-project-action-primary:focus {
    border-color: #234a75 !important;
    background: #234a75 !important;
    color: #fff !important;
}

.portal-project-action-receipt {
    border-color: #5d8437 !important;
    background: #5d8437 !important;
    color: #fff !important;
}

.portal-project-action-receipt:hover,
.portal-project-action-receipt:focus {
    border-color: #4f742d !important;
    background: #4f742d !important;
    color: #fff !important;
}

.portal-project-action-print {
    border-color: #d1dde8 !important;
    background: #f8fafc !important;
    color: #496078 !important;
}

.portal-project-action-print:hover,
.portal-project-action-print:focus {
    border-color: #b4c6d8 !important;
    background: #eef4f8 !important;
    color: #2C5686 !important;
}

.portal-project-action-close {
    border-color: #cfd9e2 !important;
    background: #fff !important;
    color: #687a8d !important;
}

.portal-project-action-close:hover,
.portal-project-action-close:focus {
    border-color: #aebdca !important;
    background: #f4f6f8 !important;
    color: #3f556b !important;
}

@media (max-width: 991px) {
    .portal-project-modal {
        width: 96%;
        margin: 18px auto;
    }

    .portal-project-files {
        grid-template-columns: 1fr;
    }

    .portal-project-modal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-project-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .portal-project-modal {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .portal-project-modal-header,
    .portal-project-modal-body,
    .portal-project-modal-footer {
        padding-left: 13px;
        padding-right: 13px;
    }

    .portal-project-modal-heading {
        align-items: flex-start;
        padding-right: 35px;
    }

    .portal-project-status {
        display: none;
    }

    .portal-project-section {
        padding: 13px;
    }

    .portal-project-action-btn {
        min-width: 0;
        width: 100% !important;
    }

    .portal-project-action-form,
    .portal-project-actions > a,
    .portal-project-actions > button {
        width: 100%;
    }
}

/* =========================================================
   PORTAL DA TRANSPARÊNCIA - HOME / ÂNCORAS V3
   ========================================================= */
.portal-result-anchor {
    position: relative;
    top: -8px;
    height: 1px;
    margin: 0;
    scroll-margin-top: 18px;
}

.portal-home {
    padding-top: 2px;
}

.portal-home-section {
    margin-top: 26px;
}

.portal-home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 24px;
    border: 1px solid #dbe6f0;
    border-left: 4px solid var(--funpar-green);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 5px 18px rgba(44, 86, 134, .055);
}

.portal-home-intro-copy {
    min-width: 0;
}

.portal-home-kicker {
    display: block;
    margin-bottom: 4px;
    color: #6d8398;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.portal-home-intro h1,
.portal-home-section-heading h2,
.portal-home-panel-heading h2 {
    margin: 0;
    color: #263f59;
    font-weight: 700;
}

.portal-home-intro h1 {
    font-size: 24px;
    line-height: 1.25;
}

.portal-home-intro p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #5d7083;
    font-size: 14px;
    line-height: 1.55;
}

.portal-home-trust {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.portal-home-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #dce7f1;
    border-radius: 999px;
    background: #fff;
    color: #536b82;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-home-trust i {
    color: #678b35;
}

.portal-home-section-heading {
    margin-bottom: 14px;
}

.portal-home-section-heading-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.portal-home-section-heading h2 {
    font-size: 20px;
    line-height: 1.3;
}

.portal-home-section-heading p {
    margin: 5px 0 0;
    color: #718294;
    font-size: 12.5px;
    line-height: 1.5;
}

.portal-home-section-icon-large {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border: 1px solid #efdada;
    border-radius: 12px;
    background: #fff7f7;
    color: #b84242;
    font-size: 21px;
}

.portal-home-services {
    display: flex;
    flex-wrap: wrap;
}

.portal-home-services > [class*="col-"] {
    display: flex;
}

.portal-home-service-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 245px;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #dce6ef;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(44, 86, 134, .06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.portal-home-service-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--funpar-blue);
}

.portal-home-service-payment:before {
    background: #c88a2e;
}

.portal-home-service-receipt:before {
    background: #6f9c3d;
}

.portal-home-service-card:hover {
    transform: translateY(-3px);
    border-color: #cbdbe8;
    box-shadow: 0 13px 30px rgba(44, 86, 134, .105);
}

.portal-home-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 14px;
}

.portal-home-service-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe8f3;
    border-radius: 11px;
    background: #eef5fb;
    color: var(--funpar-blue);
    font-size: 19px;
}

.portal-home-service-payment .portal-home-service-icon {
    border-color: #f1dfc6;
    background: #fff8ee;
    color: #b6751f;
}

.portal-home-service-receipt .portal-home-service-icon {
    border-color: #dce8cf;
    background: #f5faef;
    color: #668d3d;
}

.portal-home-service-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f4f7fa;
    color: #758697;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-home-service-card h3 {
    margin: 0 0 7px;
    color: #2a425b;
    font-size: 18px;
    font-weight: 700;
}

.portal-home-service-card p {
    margin: 0 0 18px;
    color: #637689;
    font-size: 12.5px;
    line-height: 1.55;
}

.portal-home-service-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

body.portal-page .portal-home-btn-primary,
body.portal-page .portal-report-button {
    padding: 8px 12px;
    border: 1px solid var(--funpar-blue);
    border-radius: 7px;
    background: var(--funpar-blue);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

body.portal-page .portal-home-btn-primary:hover,
body.portal-page .portal-home-btn-primary:focus,
body.portal-page .portal-report-button:hover,
body.portal-page .portal-report-button:focus {
    border-color: var(--funpar-blue-dark);
    background: var(--funpar-blue-dark);
    color: #fff;
    text-decoration: none;
}

body.portal-page .portal-home-btn-link {
    padding: 7px 4px;
    border: 0;
    background: transparent;
    color: #4f6f8d;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: none;
}

body.portal-page .portal-home-btn-link:hover,
body.portal-page .portal-home-btn-link:focus {
    background: transparent;
    color: var(--funpar-blue);
    text-decoration: underline;
}

.portal-home-reports-section {
    padding: 20px 20px 0;
    border: 1px solid #e4e9ef;
    border-radius: 14px;
    background: #fbfcfe;
}

.portal-report-grid {
    display: flex;
    flex-wrap: wrap;
}

.portal-report-grid > [class*="col-"] {
    display: flex;
}

.portal-report-card {
    display: grid;
    width: 100%;
    min-height: 148px;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid #e4e7eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(44, 86, 134, .045);
}

.portal-report-card-current {
    border-color: #d4e2ee;
    box-shadow: 0 5px 16px rgba(44, 86, 134, .07);
}

.portal-report-card-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff2f2;
    color: #ba3e3e;
    font-size: 18px;
}

.portal-report-card-copy {
    min-width: 0;
}

.portal-report-period {
    display: inline-block;
    margin-bottom: 5px;
    color: #476785;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.portal-report-card h3 {
    margin: 0 0 4px;
    color: #2f465e;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.portal-report-card p {
    margin: 0;
    color: #718294;
    font-size: 11.5px;
    line-height: 1.45;
}

.portal-report-button {
    white-space: nowrap;
}

.portal-home-info-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(44, 86, 134, .045);
}

.portal-home-info-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 16px 18px;
}

.portal-home-info-item + .portal-home-info-item {
    border-left: 1px solid #e7edf3;
}

.portal-home-info-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #f0f6eb;
    color: #6c953f;
    font-size: 15px;
}

.portal-home-info-item strong {
    display: block;
    margin-bottom: 2px;
    color: #3b526a;
    font-size: 12px;
}

.portal-home-info-item p {
    margin: 0;
    color: #7a8a99;
    font-size: 11px;
    line-height: 1.4;
}

.portal-home-bottom-grid {
    display: flex;
    flex-wrap: wrap;
}

.portal-home-bottom-grid > [class*="col-"] {
    display: flex;
}

.portal-home-panel {
    width: 100%;
    padding: 18px;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(44, 86, 134, .045);
}

.portal-home-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.portal-home-panel-heading h2 {
    font-size: 16px;
    line-height: 1.3;
}

.portal-home-panel-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 1px solid #dce8f3;
    border-radius: 9px;
    background: #eef5fb;
    color: var(--funpar-blue);
    font-size: 16px;
}

.portal-home-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.portal-home-faq-item {
    padding: 12px;
    border: 1px solid #e6edf3;
    border-radius: 9px;
    background: #fbfcfd;
}

.portal-home-faq-item strong {
    display: block;
    margin-bottom: 4px;
    color: #425a72;
    font-size: 11.5px;
    line-height: 1.35;
}

.portal-home-faq-item p,
.portal-home-purchases > p {
    margin: 0;
    color: #748596;
    font-size: 11px;
    line-height: 1.5;
}

.portal-home-purchases {
    display: flex;
    flex-direction: column;
}

.portal-home-purchases > p {
    margin-bottom: 16px;
}

.portal-home-btn-block {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

@media (max-width: 991px) {
    .portal-home-intro,
    .portal-home-section-heading-inline {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-home-trust {
        justify-content: flex-start;
    }

    .portal-home-info-strip {
        grid-template-columns: 1fr;
    }

    .portal-home-info-item + .portal-home-info-item {
        border-top: 1px solid #e7edf3;
        border-left: 0;
    }

    .portal-report-card {
        grid-template-columns: 44px 1fr;
    }

    .portal-report-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .portal-home-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .portal-home-intro {
        padding: 17px;
    }

    .portal-home-intro h1 {
        font-size: 21px;
    }

    .portal-home-trust span {
        white-space: normal;
    }

    .portal-home-service-card {
        min-height: 0;
    }

    .portal-home-service-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-home-service-actions .btn {
        width: 100%;
        text-align: center;
    }

    .portal-home-reports-section {
        padding: 16px 16px 0;
    }

    .portal-report-card {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-report-button {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   PORTAL DA TRANSPARÊNCIA - BACKGROUND INSTITUCIONAL V4.1
   Corrige empilhamento do Bootstrap Modal sem perder o fundo.
   IMPORTANTE: não criar stacking context em .portal-main ou
   .portal-body-content, pois o .modal-backdrop é anexado ao body.
   ========================================================= */
.portal-main {
    position: relative;
    width: 100%;
    flex: 1 0 auto;
    background:
        linear-gradient(135deg,
            rgba(44, 86, 134, .050) 0%,
            rgba(44, 86, 134, .022) 18%,
            transparent 18.2%) left top / 520px 520px no-repeat,
        linear-gradient(45deg,
            transparent 0%,
            transparent 68%,
            rgba(44, 86, 134, .025) 68.2%,
            rgba(44, 86, 134, .045) 84%,
            transparent 84.2%) left 120px top 120px / 520px 520px no-repeat,
        linear-gradient(315deg,
            rgba(44, 86, 134, .050) 0%,
            rgba(44, 86, 134, .022) 18%,
            transparent 18.2%) right bottom / 520px 520px no-repeat,
        linear-gradient(225deg,
            transparent 0%,
            transparent 68%,
            rgba(44, 86, 134, .025) 68.2%,
            rgba(44, 86, 134, .045) 84%,
            transparent 84.2%) right 120px bottom 120px / 520px 520px no-repeat,
        linear-gradient(180deg, #f7f9fc 0%, #edf2f6 100%);
}

body.portal-page .portal-body-content {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1720px;
    margin: 22px auto 28px;
    padding: 22px clamp(15px, 2vw, 32px) 32px;
    border: 1px solid rgba(44, 86, 134, .105);
    border-radius: 18px;
    background: rgba(255, 255, 255, .975);
    box-shadow: 0 16px 38px rgba(31, 51, 74, .085);
}

/* Linha institucional sutil no topo do conteúdo. */
body.portal-page .portal-body-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(158, 203, 59, .36) 18%,
        rgba(44, 86, 134, .12) 50%,
        rgba(158, 203, 59, .36) 82%,
        transparent 100%);
    pointer-events: none;
}

/* Salvaguarda do Bootstrap 3: modal sempre acima do backdrop. */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

@media (max-width: 767px) {
    .portal-main {
        background:
            linear-gradient(135deg,
                rgba(44, 86, 134, .035) 0%,
                rgba(44, 86, 134, .015) 18%,
                transparent 18.2%) left top / 320px 320px no-repeat,
            linear-gradient(315deg,
                rgba(44, 86, 134, .035) 0%,
                rgba(44, 86, 134, .015) 18%,
                transparent 18.2%) right bottom / 320px 320px no-repeat,
            linear-gradient(180deg, #f7f9fc 0%, #edf2f6 100%);
    }

    body.portal-page .portal-body-content {
        width: calc(100% - 18px);
        margin: 10px auto 14px;
        padding: 14px 10px 22px;
        border-radius: 12px;
    }

    body.portal-page .portal-body-content::before {
        left: 12px;
        right: 12px;
    }
}
