/* SIGFAD_MAPAS_TEMATICOS_REFINO_V3 */

#thematicMapsModal.thematic-refino-v3 {
    --thematic-border: #d9e2ec;
    --thematic-muted: #6d7d90;
    --thematic-title: #173454;
    --thematic-blue: #2167ad;
    --thematic-green: #218153;
    --thematic-surface: #f4f7fa;
}

#thematicMapsModal.thematic-refino-v3 .modal-content {
    background: var(--thematic-surface);
    border-color: #cbd7e3;
    border-radius: 12px;
}

#thematicMapsModal.thematic-refino-v3 .thematic-header-v3 {
    min-height: 82px;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid var(--thematic-border);
}

.thematic-header-copy-v3 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.thematic-header-icon-v3 {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #185f9f;
    background: #e8f2fb;
    border: 1px solid #d2e4f5;
    border-radius: 8px;
    font-size: 1rem;
}

.thematic-header-text-v3 {
    min-width: 0;
}

.thematic-header-kicker-v3 {
    display: block;
    margin-bottom: 2px;
    color: #64758b;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
}

#thematicMapsModal.thematic-refino-v3 .modal-title {
    margin: 0;
    color: var(--thematic-title);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
}

.thematic-header-description-v3 {
    display: block;
    margin-top: 2px;
    color: var(--thematic-muted) !important;
    font-size: .74rem;
    line-height: 1.25;
}

.thematic-header-actions-v3 {
    min-width: 0;
    justify-content: flex-end;
}

.thematic-format-summary-v3 {
    max-width: 310px;
    overflow: hidden;
    color: #536a83;
    font-size: .7rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#thematicMapsModal.thematic-refino-v3 .thematic-status-v3 {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    color: #4e6075;
    background: #eef2f6 !important;
    border: 1px solid #d7e0e9;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

#thematicMapsModal.thematic-refino-v3
.thematic-status-v3[data-tone="success"] {
    color: #146640;
    background: #e9f6ef !important;
    border-color: #c7e8d6;
}

#thematicMapsModal.thematic-refino-v3
.thematic-status-v3[data-tone="warning"] {
    color: #875c05;
    background: #fff7df !important;
    border-color: #f0dfab;
}

#thematicMapsModal.thematic-refino-v3
.thematic-status-v3[data-tone="danger"] {
    color: #9b2d3c;
    background: #fdecef !important;
    border-color: #f1cbd2;
}

#thematicMapsModal.thematic-refino-v3 .thematic-close-v3 {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-workspace {
    grid-template-columns: 356px minmax(0, 1fr) !important;
    background: var(--thematic-surface);
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-sidebar {
    background: #fff;
    border-right: 1px solid var(--thematic-border);
}

#thematicMapsModal.thematic-refino-v3
.der-thematic-sidebar .accordion {
    scrollbar-color: #bcc9d6 transparent;
    scrollbar-width: thin;
}

#thematicMapsModal.thematic-refino-v3 .accordion-item {
    border: 0;
    border-bottom: 1px solid #e6ebf1;
}

#thematicMapsModal.thematic-refino-v3 .accordion-button {
    min-height: 58px;
    padding: 9px 14px;
    color: #2d445f;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: .82rem;
    font-weight: 750;
}

#thematicMapsModal.thematic-refino-v3
.accordion-button:not(.collapsed) {
    color: #174f86;
    background: #edf5fc;
}

#thematicMapsModal.thematic-refino-v3 .accordion-button::after {
    width: .8rem;
    height: .8rem;
    background-size: .8rem;
}

.thematic-step-v3 {
    display: grid;
    min-width: 0;
    grid-template-columns: 22px 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.thematic-step-index-v3 {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: #61758b;
    background: #eef2f6;
    border: 1px solid #d9e2eb;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 800;
}

.accordion-button:not(.collapsed) .thematic-step-index-v3 {
    color: #fff;
    background: var(--thematic-blue);
    border-color: var(--thematic-blue);
}

.thematic-step-icon-v3 {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #3b6f9f;
    background: #edf4fa;
    border-radius: 7px;
}

.thematic-step-label-v3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#thematicMapsModal.thematic-refino-v3 .accordion-body {
    padding: 14px;
    background: #fbfcfd;
}

#thematicMapsModal.thematic-refino-v3 .form-label {
    margin-bottom: 5px;
    color: #556a82;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

#thematicMapsModal.thematic-refino-v3
.form-control,
#thematicMapsModal.thematic-refino-v3
.form-select {
    min-height: 38px;
    color: #263d57;
    background-color: #fff;
    border-color: #d6e0ea;
    border-radius: 6px;
    font-size: .8rem;
}

#thematicMapsModal.thematic-refino-v3
.form-control:focus,
#thematicMapsModal.thematic-refino-v3
.form-select:focus {
    border-color: #74a7d6;
    box-shadow: 0 0 0 3px rgba(33, 103, 173, .12);
}

#thematicMapsModal.thematic-refino-v3 .form-switch {
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding-block: 7px;
    padding-left: 2.6rem;
    border-bottom: 1px solid #edf1f5;
}

#thematicMapsModal.thematic-refino-v3
.form-switch .form-check-label {
    color: #40566f;
    font-size: .78rem;
    font-weight: 650;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-utm-info {
    color: #4f657d;
    background: #eef5fb;
    border-color: #d6e6f3;
    border-radius: 6px;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-layer-list {
    max-height: 180px;
    background: #fff;
    border-color: #d6e0ea;
    border-radius: 6px;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-layer-item {
    min-height: 30px;
    padding: 5px 4px;
    color: #40566e;
    border-bottom: 1px solid #eef2f5;
    font-size: .75rem;
}

#thematicMapsModal.thematic-refino-v3
.der-thematic-layer-item:last-child {
    border-bottom: 0;
}

#thematicMapsModal.thematic-refino-v3 .thematic-actions-v3 {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--thematic-border);
}

#thematicMapsModal.thematic-refino-v3
.thematic-actions-v3 .row {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
    margin-bottom: 0 !important;
}

#thematicMapsModal.thematic-refino-v3
.thematic-actions-v3 .btn {
    min-height: 38px;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 750;
}

#thematicMapsModal.thematic-refino-v3
.thematic-preview-action-v3 {
    margin-bottom: 0 !important;
    background: #2269b2;
    border-color: #2269b2;
}

#thematicMapsModal.thematic-refino-v3
.thematic-export-actions-v3 .btn-success {
    background: #218153;
    border-color: #218153;
}

#thematicMapsModal.thematic-refino-v3
.thematic-preview-area-v3 {
    position: relative;
    padding: 18px 22px 24px;
    background: #e8edf3;
}

.thematic-preview-toolbar-v3 {
    position: sticky;
    top: -18px;
    z-index: 12;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -18px -22px 18px;
    padding: 9px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #d5dee8;
}

.thematic-preview-heading-v3 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.thematic-preview-heading-v3 > span:last-child {
    min-width: 0;
}

.thematic-preview-heading-v3 strong,
.thematic-preview-heading-v3 small {
    display: block;
}

.thematic-preview-heading-v3 strong {
    color: #203c5a;
    font-size: .78rem;
}

.thematic-preview-heading-v3 small {
    max-width: 420px;
    margin-top: 1px;
    overflow: hidden;
    color: #718196;
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thematic-preview-icon-v3 {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    color: #276dab;
    background: #e5f0fa;
    border-radius: 7px;
}

.thematic-preview-state-v3 {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    color: #67788d;
    background: #eef2f6;
    border: 1px solid #d8e0e8;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    white-space: nowrap;
}

.thematic-preview-state-v3.is-ready {
    color: #176b45;
    background: #eaf6f0;
    border-color: #c9e6d7;
}

#thematicMapsModal.thematic-refino-v3 .thematic-empty-v3 {
    top: 54px;
    color: #61748a;
}

#thematicMapsModal.thematic-refino-v3 .thematic-empty-v3 i {
    color: #2c72b2;
    font-size: 2.35rem;
}

#thematicMapsModal.thematic-refino-v3 .thematic-empty-v3 h5 {
    color: #294867;
    font-size: 1rem;
    font-weight: 800;
}

#thematicMapsModal.thematic-refino-v3 .thematic-empty-v3 p {
    margin: 5px auto 0;
    color: #75869a;
    font-size: .78rem;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-sheet-wrap {
    padding-bottom: 8px;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-sheet {
    flex: 0 0 auto;
    box-shadow: 0 16px 38px rgba(31, 49, 70, .2);
    transform: scale(var(--thematic-preview-scale, 1));
    transform-origin: top left;
}

#thematicMapsModal.thematic-refino-v3 .der-thematic-sheet.exporting {
    transform: none !important;
}

.thematic-mobile-nav-v3 {
    display: none;
}

@media (max-width: 980px) {
    #thematicMapsModal.thematic-refino-v3 .der-thematic-workspace {
        grid-template-columns: 320px minmax(0, 1fr) !important;
    }

    .thematic-format-summary-v3 {
        display: none;
    }
}

@media (max-width: 760px) {
    #thematicMapsModal.thematic-refino-v3 .thematic-header-v3 {
        min-height: 70px;
        padding: 10px 11px;
    }

    .thematic-header-icon-v3 {
        width: 36px;
        height: 36px;
    }

    .thematic-header-kicker-v3,
    .thematic-header-description-v3 {
        display: none;
    }

    #thematicMapsModal.thematic-refino-v3 .modal-title {
        font-size: .98rem;
    }

    #thematicMapsModal.thematic-refino-v3 .thematic-status-v3 {
        display: none;
    }

    #thematicMapsModal.thematic-refino-v3 .thematic-close-v3 {
        width: 36px !important;
        height: 36px !important;
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-workspace {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 46px minmax(0, 1fr);
        overflow: hidden;
    }

    .thematic-mobile-nav-v3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 5px;
        background: #eef2f6;
        border-bottom: 1px solid #d7e0e9;
    }

    .thematic-mobile-nav-v3 button {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 7px 10px;
        color: #5d7086;
        background: transparent;
        border: 0;
        border-radius: 6px;
        font-size: .74rem;
        font-weight: 750;
    }

    .thematic-mobile-nav-v3 button.active {
        color: #1e5f9d;
        background: #fff;
        box-shadow: 0 1px 3px rgba(31, 54, 78, .12);
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-sidebar,
    #thematicMapsModal.thematic-refino-v3 .der-thematic-preview-area {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
    }

    #thematicMapsModal.thematic-refino-v3[data-thematic-mobile-panel="config"]
    .der-thematic-preview-area {
        display: none;
    }

    #thematicMapsModal.thematic-refino-v3[data-thematic-mobile-panel="preview"]
    .der-thematic-sidebar {
        display: none;
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-sidebar {
        border-right: 0;
        border-bottom: 0;
    }

    #thematicMapsModal.thematic-refino-v3 .thematic-preview-area-v3 {
        padding: 14px;
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-sheet-wrap {
        align-items: flex-start;
        justify-content: flex-start;
        padding-bottom: 0;
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-sheet {
        flex: 0 0 auto;
        transform: scale(var(--thematic-preview-scale, 1));
        transform-origin: top left;
    }

    #thematicMapsModal.thematic-refino-v3 .der-thematic-sheet.exporting {
        transform: none !important;
    }

    .thematic-preview-toolbar-v3 {
        top: -14px;
        margin: -14px -14px 14px;
    }

    .thematic-preview-heading-v3 small {
        max-width: 190px;
    }

    .thematic-preview-state-v3 {
        display: none;
    }
}

@media (max-width: 430px) {
    .thematic-header-copy-v3 {
        gap: 8px;
    }

    #thematicMapsModal.thematic-refino-v3 .accordion-button {
        min-height: 54px;
        padding-inline: 11px;
    }

    .thematic-step-v3 {
        grid-template-columns: 20px 28px minmax(0, 1fr);
        gap: 6px;
    }

    .thematic-step-index-v3 {
        width: 20px;
        height: 20px;
    }

    .thematic-step-icon-v3 {
        width: 28px;
        height: 28px;
    }

    #thematicMapsModal.thematic-refino-v3 .accordion-body {
        padding: 11px;
    }

    #thematicMapsModal.thematic-refino-v3 .thematic-actions-v3 {
        padding: 10px 11px;
    }
}
