/* ========================================================================== */
/* Layout, filtros e componentes da plataforma */
/* Arquivo gerado a partir do styles(4).css, com regras consolidadas. */
/* ========================================================================== */

.hero {
    background: var(--navy);
    color: white;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero h1 {
    font-size: 1.55rem;
    margin: 5px 0 6px;
}

.hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: .82rem;
}

.eyebrow {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #7890be;
}

.hero .eyebrow {
    color: #8ebcff;
}

.diamond {
    color: #6db7ff;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.panel-heading h2 {
    font-size: 1rem;
    margin: 3px 0;
}

.text-button {
    background: transparent;
    color: #9dc9fb;
    border: 0;
    font-size: .72rem;
    padding: 3px;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.field {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
}

.field>span,.field-label {
    font-size: .69rem;
    font-weight: 600;
    color: #dbe7ff;
}

.field input {
    min-width: 0;
    width: 100%;
    border: 1px solid #c8d2e1;
    background: #fff;
    color: #25324a;
    border-radius: 6px;
    padding: 8px;
    font-size: .75rem;
}

.filters-stack {
    display: grid;
    gap: 9px;
}

.multi-select {
    position: relative;
}

.select-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-size: .69rem;
    font-weight: 600;
    color: #e1ebff;
}

.select-control:after {
    content: "⌄";
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 1rem;
}

.select-option:hover {
    background: #f0f4f9;
}

.select-option.selected {
    background: #edf3fa;
}

.check {
    width: 14px;
    text-align: center;
    color: #17274d;
    font-weight: 700;
}

.lock-diamond {
    color: #58a7f5;
    font-size: .7rem;
}

.select-note {
    font-size: .63rem;
    color: #b7c7e8;
    margin-left: auto;
}

.currency-box {
    margin: 12px 0;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #162750;
    padding: 3px;
    border-radius: 7px;
}

.segmented input {
    display: none;
}

.segmented span {
    display: block;
    text-align: center;
    padding: 7px 4px;
    border-radius: 5px;
    font-size: .7rem;
    color: #c6d2ea;
}

.segmented input:checked+span {
    background: white;
    color: #21304e;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 18px;
    min-width: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.card h2 {
    font-size: 1.04rem;
    margin: 3px 0;
}

.card p {
    font-size: .75rem;
    color: var(--muted);
    margin: 4px 0;
}

.filters-panel,
.filters-panel * {
    min-width: 0;
}

.filters-stack,
.multi-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.select-control {
    width: 100%;
    min-height: 34px;
    border: 1px solid #c8d2e1;
    background: #fff;
    color: #29364e;
    border-radius: 6px;
    padding: 7px 31px 7px 10px;
    text-align: left;
    position: relative;
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    min-width: 0;
}

.select-menu {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 4px);
    background: #fff;
    color: #334155;
    border: 1px solid #bdc9da;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(9,25,56,.22);
    z-index: 25;
    max-height: 245px;
    overflow: auto;
    padding: 5px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border: 0;
    background: #fff;
    border-radius: 4px;
    text-align: left;
    font-size: .72rem;
    color: #334155;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.option-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.option-left .option-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.content-title {
    padding: 2px 4px 0;
}

.content-title h1 {
    margin: 4px 0 0;
    color: #17274d;
    font-size: 1.25rem;
    line-height: 1.25;
}

.coverage-icon {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: #213665;
}

.coverage-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.coverage-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coverage-copy strong {
    color: #213665;
    font-size: .78rem;
    font-weight: 600;
}

.coverage-copy span {
    color: #71809a;
    font-size: .67rem;
}

.premium-footer-cta {
    max-width: 1644px;
    margin: 0 auto 18px;
    min-height: 60px;
    border: 1px solid #8fc8ff;
    border-radius: 7px;
    background: #edf6ff;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.premium-footer-copy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.footer-diamond {
    color: #3d9cf2;
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 1px;
}

.premium-footer-copy div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-footer-copy strong {
    color: #213665;
    font-size: .76rem;
    font-weight: 700;
}

.premium-footer-copy span {
    color: #71809a;
    font-size: .75rem;
    line-height: 1.4;
}

.premium-footer-cta .btn {
    flex: 0 0 auto;
    padding: 10px 17px;
    font-size: .68rem;
}

.coverage-banner {
    grid-area: coverage;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    border: 1px solid #d6e1ef;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 13px 20px;
    text-align: left;
    box-shadow: 0 3px 14px rgba(20,37,70,.035);
    max-width: 100%;
    box-sizing: border-box;
}

.filters-column {
    grid-area: filters;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 18px;
    align-self: start;
    min-width: 0;
}

.filters-panel {
    background: var(--navy);
    border-radius: 10px;
    padding: 14px;
    color: white;
    height: max-content;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    min-width: 0;
    box-sizing: border-box;
}

.workspace {
    display: grid;
    grid-template-columns: 270px minmax(0,1fr);
    gap: 18px;
    padding: 18px;
    max-width: 1680px;
    margin: auto;
    grid-template-areas: "coverage ."
    "filters content";
    align-items: start;
}

.content {
    display: grid;
    gap: 18px;
    min-width: 0;
    grid-area: content;
    position: relative;
    padding-top: 0;
}

.indicator-page-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 14px);
    margin: 0;
    text-align: center;
    color: #102452;
    font-size: 1.32rem;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
}

.diamond .lucide-gem,
.lock-diamond .lucide-gem {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.footer-diamond .lucide-gem {
    width: 14px;
    height: 14px;
}

.platform-page {
    background: #f5f7fb;
}

    .platform-page .workspace {
        max-width: var(--pi-container);
        grid-template-rows: auto 1fr;
        gap: 16px;
        padding: 24px 0 34px;
        grid-template-areas: "coverage content" "filters content";
    }

.platform-page .coverage-banner {
    min-height: 76px;
    border-radius: 10px;
    padding: 14px 15px;
    justify-content: flex-start;
    box-shadow: none;
    background: #fff;
}

.platform-page .coverage-copy strong {
    font-size: .75rem;
}

.platform-page .coverage-copy span {
    font-size: .63rem;
    line-height: 1.4;
}

.platform-page .filters-panel {
    border-radius: 10px;
    padding: 16px;
    background: #1d3968;
    position: static;
    top: auto;
    box-shadow: none;
}

.platform-page .panel-heading h2 {
    font-size: .9rem;
}

.platform-page .eyebrow {
    font-size: .58rem;
    letter-spacing: .11em;
}

.platform-page .field>span,.platform-page .field-label,.platform-page .select-label {
    font-size: .64rem;
}

.platform-page .field input,.platform-page .select-control {
    min-height: 36px;
}

.platform-page .content {
    gap: 14px;
}

.platform-page .indicator-page-title {
    position: static;
    text-align: left;
    font-size: 1.35rem;
    letter-spacing: -.025em;
    margin: 0 0 1px;
    color: #16315c;
}

.platform-page .card {
    border-radius: 10px;
    border: 1px solid #e0e6ee;
    box-shadow: 0 5px 18px rgba(31,52,86,.045);
    padding: 18px;
}

.platform-page .card h2 {
    font-size: .95rem;
    color: #213a63;
}

.platform-page .card p {
    font-size: .7rem;
}

.platform-page .card-header {
    margin-bottom: 12px;
}

.platform-page .premium-footer-cta {
    max-width: var(--pi-container);
    margin: 0 auto 28px;
    border-radius: 9px;
}

@media (max-width:1000px) {
    .hero {
        padding: 22px;
    }

    .workspace {
        grid-template-columns: minmax(210px,230px) minmax(0,1fr);
    }

    .indicator-page-title {
        font-size: 1.12rem;
    }

    .platform-page .workspace {
        width: calc(100% - 28px);
        grid-template-columns: 225px minmax(0,1fr);
    }

}

@media (max-width:760px) {
    .hero {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }

   .filters-column {
        position: relative;
        top: auto;
        gap: 12px;
        margin-bottom: 12px;
    }

    .filters-panel {
        position: relative;
        top: auto;
        margin-bottom: 12px;
    }

    .content {
        gap: 12px;
    }

    .card {
        padding: 13px;
    }

    .date-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-title h1 {
        font-size: 1.08rem;
    }

    .coverage-banner {
        min-height: 92px;
        padding: 14px 16px;
        justify-content: center;
    }

    .premium-footer-cta {
        margin: 0 10px 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .premium-footer-cta .btn {
        width: 100%;
    }

    .workspace {
        display: block;
        padding: 10px;
        grid-template-areas: "coverage"
      "filters"
      "content";
    }

    .indicator-page-title {
        position: static;
        margin: 2px 0 12px;
        white-space: normal;
        font-size: 1.08rem;
    }

    .platform-page .workspace {
        display: block;
        width: auto;
        padding: 12px;
    }

    .platform-page .coverage-banner {
        margin-bottom: 12px;
    }

    .platform-page .indicator-page-title {
        font-size: 1.1rem;
        margin: 0 0 12px;
    }

    .platform-page .card {
        padding: 14px;
    }

    .platform-page .premium-footer-cta {
        margin: 0 12px 16px;
    }

}


/* === consultas salvar ===*/

.saved-queries-panel {
    padding: 18px;
    background: var(--navy);
    border-radius: 14px;
    color: #fff;
}

.saved-queries-header {
    margin-bottom: 14px;
}

    .saved-queries-header h3 {
        margin: 0;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
    }


.saved-query-name {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-query-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .saved-query-actions button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
    }

        .saved-query-actions button:hover {
            background: rgba(255, 255, 255, 0.12);
        }

.saved-query-delete:hover {
    color: #ffb4b4;
}
.saved-queries-box {
    position: relative;
    margin-top: 18px;
    padding: 16px 12px 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
}

.saved-queries-caption {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 6px;
    background: #1d3968;
    color: #8ebcff;
    font-size: .64rem;
    font-weight: 600;
}

.saved-query-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

    .saved-query-item:last-child {
        border-bottom: 0;
    }


#dialogSalvarConsulta {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #213665;
    box-shadow: 0 18px 45px rgba(16, 36, 82, 0.22);
}

    #dialogSalvarConsulta::backdrop {
        background: rgba(16, 36, 82, 0.38);
    }

#formSalvarConsulta {
    padding: 22px;
}

    #formSalvarConsulta h3 {
        margin: 0 0 8px;
        color: #16315c;
        font-size: 1.05rem;
        font-weight: 700;
    }

    #formSalvarConsulta p {
        margin: 0 0 18px;
        color: #71809a;
        font-size: .78rem;
        line-height: 1.45;
    }

#nomeConsulta {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #c8d2e1;
    border-radius: 7px;
    background: #fff;
    color: #25324a;
    font-size: .78rem;
    outline: none;
}

    #nomeConsulta:focus {
        border-color: #58a7f5;
        box-shadow: 0 0 0 3px rgba(88, 167, 245, 0.15);
    }

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

    .dialog-actions button {
        min-width: 86px;
        min-height: 36px;
        padding: 8px 14px;
        border-radius: 7px;
        font-size: .75rem;
        font-weight: 600;
        cursor: pointer;
    }

    .dialog-actions .btn-secondary {
        border: 1px solid #c8d2e1;
        background: #fff;
        color: #213665;
    }

        .dialog-actions .btn-secondary:hover {
            background: #f5f7fb;
        }

    .dialog-actions .btn-primary {
        border: 1px solid #1d3968;
        background: #1d3968;
        color: #fff;
    }

        .dialog-actions .btn-primary:hover {
            background: #172f59;
        }
.js-mudar-plano:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


#dialogInfoPlano {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #213665;
    box-shadow: 0 18px 45px rgba(16, 36, 82, 0.22);
}

    #dialogInfoPlano::backdrop {
        background: rgba(16, 36, 82, 0.38);
    }

.info-plano-content {
    padding: 22px;
}

    .info-plano-content h3 {
        margin: 0 0 8px;
        color: #16315c;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .info-plano-content > p {
        margin: 0 0 22px;
        color: #71809a;
        font-size: .78rem;
        line-height: 1.45;
    }

.info-plano-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
}

    .info-plano-field span {
        color: #71809a;
        font-size: .75rem;
    }

    .info-plano-field strong {
        color: #25324a;
        font-size: .88rem;
        font-weight: 600;
    }

.info-plano-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-plano-content .dialog-actions {
    border-top: 1px solid #e5eaf1;
    padding-top: 16px;
    margin-top: 8px;
}
