﻿
.swagger-ui .topbar {
    background: linear-gradient(120deg, #0ca675 0%, #087fac 100%);
    height: 76px;
    padding-top: 20px;
    box-shadow: 0 2px 10px rgba(23, 63, 82, .18);
}

    .swagger-ui .topbar a.link {
        display: inline-flex;
        width: 184px;
        height: 42px;
        align-items: center;
        cursor: pointer !important;
    }

        .swagger-ui .topbar a.link img {
            display: block;
            width: 100%;
            max-height: 42px;
            margin: 0;
            object-fit: contain;
            object-position: left center;
        }

        .swagger-ui .topbar a.link span {
            display: none !important;
        }

    .swagger-ui .topbar .download-url-wrapper .download-url-button {
        background-color: #0ca675 !important;
    }

    .swagger-ui .topbar .download-url-wrapper {
        -webkit-flex: 2 !important;
        -ms-flex: 2 !important;
        -o-flex: 2 !important;
        flex: 2 !important;
        -webkit-box-flex: 2 !important;
    }


.swagger-ui .wrapper {
    max-width: 1170px;
}

/* Identidade visual IndexMed aplicada à documentação de integração. */
.swagger-ui {
    color: #173f52;
}

.swagger-ui .info {
    margin: 34px 0 28px;
}

.swagger-ui .info .title {
    color: #173f52;
    font-weight: 700;
}

.swagger-ui .info .title small.version-stamp {
    background-color: #0ca675;
}

/* Comunicado inicial de alterações relevantes para quem consome a API. */
.swagger-ui .indexmed-api-release-notice {
    margin: -8px 0 28px;
    overflow: hidden;
    border: 1px solid #b9ded4;
    border-radius: 10px;
    background: #fbfefd;
    box-shadow: 0 4px 14px rgba(21, 83, 98, .08);
}

.swagger-ui .indexmed-api-release-notice__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    color: #fff;
    background: linear-gradient(120deg, #087fac 0%, #0ca675 100%);
}

.swagger-ui .indexmed-api-release-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    font-style: italic;
}

.swagger-ui .indexmed-api-release-notice h2,
.swagger-ui .indexmed-api-release-notice h3,
.swagger-ui .indexmed-api-release-notice p { margin-top: 0; }

.swagger-ui .indexmed-api-release-notice__head h2 {
    margin-bottom: 3px;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
}

.swagger-ui .indexmed-api-release-notice__head p {
    margin-bottom: 0;
    color: #fff !important;
    font-size: 13px;
}

.swagger-ui .indexmed-api-release-notice__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 17px 20px 20px;
}

.swagger-ui .indexmed-api-release-notice__item {
    padding: 14px 15px;
    border: 1px solid #dce9e7;
    border-radius: 7px;
    background: #fff;
}

.swagger-ui .indexmed-api-release-notice__item--primary { border-color: #b8ddeb; background: #f2f9fc; }
.swagger-ui .indexmed-api-release-notice__routes { grid-column: 1 / -1; }

.swagger-ui .indexmed-api-release-notice h3 {
    margin-bottom: 8px;
    color: #174a62;
    font-size: 14px;
    font-weight: 700;
}

.swagger-ui .indexmed-api-release-notice p,
.swagger-ui .indexmed-api-release-notice li { color: #476577; font-size: 12px; line-height: 1.55; }
.swagger-ui .indexmed-api-release-notice p:last-child { margin-bottom: 0; }
.swagger-ui .indexmed-api-release-notice ul { margin: 0; padding-left: 18px; }
.swagger-ui .indexmed-api-release-notice li + li { margin-top: 5px; }
.swagger-ui .indexmed-api-release-notice code { color: #066f71; background: #e7f5f2; border-radius: 3px; padding: 2px 4px; }

@media (max-width: 640px) {
    .swagger-ui .indexmed-api-release-notice__head { align-items: flex-start; padding: 15px; }
    .swagger-ui .indexmed-api-release-notice__content { grid-template-columns: 1fr; padding: 14px; }
    .swagger-ui .indexmed-api-release-notice__routes { grid-column: auto; }
}

/* A folha do Swagger é um recurso legado incorporado; não há SCSS correspondente. */
html { background: #f8fbff; }
body { background: radial-gradient(circle at 88% 4%, rgba(8, 121, 207, .10), transparent 27rem), #f8fbff; }

.swagger-ui .topbar {
    height: 86px;
    padding: 18px 0;
    border-bottom: 1px solid #dceaf6;
    background: linear-gradient(105deg, #fff 0%, #f7fbff 56%, #e0f2ff 100%);
    box-shadow: 0 8px 24px rgba(26, 61, 94, .08);
}

.swagger-ui .topbar .topbar-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    max-width: 1180px;
    gap: 0;
}

.swagger-ui .topbar a.link {
    flex: 0 0 184px;
    margin-right: 30px;
    width: 184px;
    height: 46px;
}

.swagger-ui .topbar a.link img { max-height: 46px; }

.swagger-ui .topbar .download-url-wrapper .download-url-button {
    margin-left: 8px;
    border-color: #0879cf !important;
    border-radius: 8px;
    background: #0879cf !important;
    box-shadow: 0 7px 14px rgba(8, 121, 207, .20);
}

.swagger-ui .topbar .download-url-wrapper input[type=text] {
    border-color: #cfe1f0;
    border-radius: 8px 0 0 8px;
    color: #2d4d69;
    background: #fff;
}

.swagger-ui .topbar .download-url-wrapper {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: none;
    margin-right: 16px;
}

.swagger-ui .topbar .swagger-pdf-button {
    flex: 0 0 auto;
    margin-left: auto;
    border-color: #0ca675 !important;
    border-radius: 8px;
    color: #fff !important;
    background: #0ca675 !important;
    box-shadow: 0 7px 14px rgba(12, 166, 117, .22);
}

.swagger-ui .topbar .swagger-pdf-button:hover,
.swagger-ui .topbar .swagger-pdf-button:focus {
    color: #fff !important;
    background: #087a5a !important;
    outline-color: rgba(12, 166, 117, .35);
}

.swagger-ui .topbar .swagger-pdf-button:before {
    display: inline-block;
    margin-right: 8px;
    content: "\2193";
    font-size: 17px;
    font-weight: 700;
    line-height: .8;
    vertical-align: -1px;
}

.swagger-ui .wrapper { max-width: 1180px; }
.swagger-ui .info { margin-top: 48px; }
.swagger-ui .info .title { color: #172438; letter-spacing: -.025em; }
.swagger-ui .info .title small.version-stamp { background: #0879cf; }

.swagger-ui .indexmed-api-release-notice {
    border-color: #d9e9f6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(26, 61, 94, .08);
}

.swagger-ui .indexmed-api-release-notice__head {
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(110deg, #0879cf 0%, #0c95d2 55%, #43b9e6 100%);
}

.swagger-ui .indexmed-api-release-notice__content { gap: 16px; padding: 20px 22px 22px; }
.swagger-ui .indexmed-api-release-notice__item { border-color: #e1ecf5; border-radius: 10px; background: #fbfdff; }
.swagger-ui .indexmed-api-release-notice__item--primary { border-color: #cde8fb; background: #f0f8ff; }
.swagger-ui .indexmed-api-release-notice h3 { color: #1c4262; }
.swagger-ui .indexmed-api-release-notice p,
.swagger-ui .indexmed-api-release-notice li { color: #536b82; }
.swagger-ui .indexmed-api-release-notice code { color: #0879cf; background: #eaf6ff; }

.swagger-ui .scheme-container {
    margin-bottom: 30px;
    padding: 18px 0;
    border-top: 1px solid #e4eef6;
    border-bottom: 1px solid #e4eef6;
    background: rgba(255, 255, 255, .70);
    box-shadow: none;
}

.swagger-ui .indexmed-swagger-context {
    padding: 20px 22px 10px;
    border-color: #dce9f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 61, 94, .06);
}

.swagger-ui .indexmed-swagger-context-title {
    color: #172438;
    border-bottom-color: #0879cf;
    font-size: 20px;
}

.swagger-ui .opblock-tag {
    color: #25445f;
    border-bottom-color: #e4edf5;
}
.swagger-ui .opblock-tag:hover { background: #f5faff; }
.swagger-ui .opblock-tag small { color: #718197; }
.swagger-ui .opblock { border-radius: 9px; box-shadow: 0 2px 6px rgba(31, 65, 95, .07); }

.swagger-ui .btn.authorize { border-color: #0879cf; color: #0879cf; }
.swagger-ui .btn.authorize svg { fill: #0879cf; }
.swagger-ui .btn.execute { border-color: #0879cf; background: #0879cf; }
.swagger-ui .btn.execute:hover,
.swagger-ui .btn.execute:focus { border-color: #075a9e; background: #075a9e; }

@media (max-width: 640px) {
    .swagger-ui .topbar { height: auto; padding: 12px 0; }
    .swagger-ui .topbar .topbar-wrapper { align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 0; }
    .swagger-ui .topbar a.link { flex: 0 0 100%; justify-content: center; width: 100%; height: 38px; margin: 0 0 12px; }
    .swagger-ui .topbar a.link img { width: 158px; max-height: 38px; object-position: center; }
    .swagger-ui .topbar .download-url-wrapper { display: flex; flex: 0 0 100% !important; width: 100%; max-width: none; margin: 0; justify-content: center !important; }
    .swagger-ui .topbar .swagger-pdf-button { width: 100%; margin: 16px 0 0; }

    .swagger-ui .opblock .opblock-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        min-height: 62px;
        padding: 10px;
    }

    .swagger-ui .opblock .opblock-summary-method {
        flex: 0 0 80px;
        min-width: 80px;
        margin: 0;
    }

    .swagger-ui .opblock .opblock-summary-path,
    .swagger-ui .opblock .opblock-summary-path a {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 0 10px;
        overflow: hidden;
        color: inherit;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .swagger-ui .opblock .opblock-summary-description {
        flex: 1 0 calc(100% - 90px);
        min-width: 0;
        margin: 8px 34px 0 90px;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

.swagger-ui .scheme-container {
    margin: 0 0 26px;
    padding: 18px 0;
    background: #f5faf9;
    box-shadow: inset 0 1px 0 rgba(12, 166, 117, .08), 0 1px 4px rgba(23, 63, 82, .06);
}

.swagger-ui .opblock-tag {
    margin: 0 0 10px;
    padding: 18px 12px 14px;
    color: #173f52;
    border-bottom: 2px solid #d8e2e8;
    font-size: 20px;
    font-weight: 700;
}

.swagger-ui .opblock-tag:hover {
    background: #f2f8f7;
}

.swagger-ui .indexmed-swagger-contexts {
    margin-top: 24px;
}

.swagger-ui .indexmed-swagger-context {
    margin: 0 0 30px;
    padding: 18px 20px 8px;
    border: 1px solid #d7e8e5;
    border-radius: 8px;
    background: #fbfefd;
}

.swagger-ui .indexmed-swagger-context-title {
    margin: 0 0 12px;
    padding: 0 0 10px;
    color: #087fac;
    border-bottom: 2px solid #0ca675;
    font-size: 21px;
    font-weight: 700;
}

.swagger-ui .indexmed-swagger-context .opblock-tag {
    margin: 0;
    background: #ffffff;
}

.swagger-ui .opblock-tag small {
    color: #536b82;
    font-size: 13px;
    font-weight: 400;
}

.swagger-ui .opblock {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(23, 63, 82, .08);
}

.swagger-ui .btn.authorize {
    color: #0ca675;
    border-color: #0ca675;
}

.swagger-ui .btn.authorize svg {
    fill: #0ca675;
}

.swagger-ui .btn.execute {
    border-color: #0ca675;
    background-color: #0ca675;
}

.swagger-ui .btn.execute:hover,
.swagger-ui .btn.execute:focus {
    border-color: #087fac;
    background-color: #087fac;
}

/* Resumo de contratos exibido diretamente nas operações. */
.swagger-ui .opblock-description-wrapper table {
    width: 100%;
    margin: 12px 0 20px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}
.swagger-ui .opblock-description-wrapper th,
.swagger-ui .opblock-description-wrapper td {
    padding: 9px 11px;
    border: 1px solid #d8e2e8;
    text-align: left;
    vertical-align: top;
}
.swagger-ui .opblock-description-wrapper th {
    color: #173f52;
    background: #edf7f4;
    font-weight: 700;
}
.swagger-ui .opblock-description-wrapper h3 {
    margin: 22px 0 8px;
    color: #165c6d;
    font-size: 16px;
}
.swagger-ui .opblock-description-wrapper code {
    color: #0a6c75;
    background: #eef7f8;
    border-radius: 3px;
    padding: 2px 5px;
}
.swagger-ui .opblock-description-wrapper th:first-child,
.swagger-ui .opblock-description-wrapper td:first-child {
    padding-left: 16px;
}

/* Respostas HTTP: aproxima a mensagem do código e deixa o status mais legível. */
.swagger-ui .responses-table .response-col_status {
    width: 76px;
    padding: 10px 12px 10px 0;
    color: #087fac;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.swagger-ui .responses-table .response-col_description {
    padding: 10px 0 10px 14px;
    color: #173f52;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
}

.swagger-ui .topbar .swagger-pdf-button {
    margin-left: 16px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 4px;
    background: #fff;
    color: #087fac;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.swagger-ui .topbar .swagger-pdf-button:hover,
.swagger-ui .topbar .swagger-pdf-button:focus {
    background: #eef8fb;
    outline: 2px solid rgba(255, 255, 255, .45);
    outline-offset: 2px;
}

.swagger-ui .topbar .swagger-pdf-button:disabled {
    cursor: wait;
    opacity: .7;
}

@media (max-width: 640px) {
    .swagger-ui .topbar .topbar-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .swagger-ui .topbar .swagger-pdf-button {
        width: 100%;
        margin-left: 0;
    }
}
