html,
body {
    min-height: 100%;
    background: #f5f8fa !important;
}

body {
    color: #1f2933;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.55;
}

body.swagger-section {
    padding-bottom: 48px;
}

.swagger-section a,
.swagger-section a:hover,
.swagger-section a:focus {
    color: #208b87;
}

.swagger-section #header {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 74px;
    padding: 0;
    background: #ffffff !important;
    border-bottom: 1px solid #d9e2e7;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.06);
}

.swagger-section #header .swagger-ui-wrap {
    width: calc(100% - 40px) !important;
    max-width: 1120px;
    min-width: 0 !important;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 26px;
    box-sizing: border-box;
}

.swagger-section #header #logo {
    width: auto;
    min-width: 276px;
    height: 48px;
    margin: 0;
    padding: 0;
    background: none !important;
    color: #1f2933;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
}

.swagger-section #header #logo::before {
    content: "";
    display: inline-block;
    width: 138px;
    height: 48px;
    margin-right: 14px;
    vertical-align: middle;
    background: url("/Content/brand/agile-b2b-logo.png") left center / contain no-repeat;
}

.swagger-section #header #logo::after {
    content: "Swagger";
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-left: 14px;
    border-left: 1px solid #d9e2e7;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

.swagger-section #api_selector {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    padding: 0;
    font-size: 0;
    box-sizing: border-box;
}

.swagger-section #api_selector .input {
    display: flex;
    align-items: center;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.swagger-section #api_selector .input:first-child {
    flex: 1 1 300px;
    max-width: 520px;
}

.swagger-section #api_selector .input:nth-child(2) {
    flex: 0 0 210px;
}

.swagger-section #api_selector .input:nth-child(3) {
    flex: 0 0 auto;
}

.swagger-section #api_selector input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    color: #1f2933;
    background: #ffffff;
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.4;
}

.swagger-section #input_baseUrl {
    min-width: 0;
    max-width: none;
}

.swagger-section #input_apiKey {
    min-width: 0;
}

.swagger-section #explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    color: #ffffff;
    background: #40b2ae !important;
    border: 1px solid #40b2ae;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    text-shadow: none;
}

.swagger-section #explore:hover,
.swagger-section #explore:focus {
    background: #208b87 !important;
    border-color: #208b87;
}

.swagger-section #message-bar {
    position: static !important;
    clear: both;
    display: block;
    width: calc(100% - 40px) !important;
    max-width: 1120px;
    min-width: 0 !important;
    margin: 18px auto 0;
    padding: 12px 16px;
    color: #475467;
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.swagger-section.agile-swagger-ready #message-bar {
    display: none;
}

.swagger-section.agile-swagger-ready #message-bar.agile-message-visible {
    display: block;
}

.agile-swagger-intro {
    width: calc(100% - 40px) !important;
    max-width: 1120px;
    min-width: 0 !important;
    margin: 34px auto 22px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-top: 4px solid #40b2ae;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 16px 42px rgba(31, 41, 51, 0.08);
}

.agile-swagger-intro__label {
    margin: 0 0 10px;
    color: #208b87;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.agile-swagger-intro h1 {
    margin: 0;
    color: #17212b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.agile-swagger-intro p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #475467;
    font-size: 16px;
    line-height: 1.65;
}

.swagger-section .swagger-ui-wrap {
    width: calc(100% - 40px) !important;
    max-width: 1120px;
    min-width: 0 !important;
    box-sizing: border-box;
}

.swagger-section #swagger-ui-container {
    margin-top: 0;
}

.swagger-section.agile-swagger-ready #swagger-ui-container > h1 {
    display: none;
}

.swagger-section:not(.agile-swagger-ready) #swagger-ui-container::before {
    content: "Swagger da API de Integração Agile B2B";
    display: block;
    margin: 34px 0 0;
    padding: 28px 30px 8px;
    color: #17212b;
    white-space: normal;
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-bottom: 0;
    border-top: 4px solid #40b2ae;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
    box-shadow: 0 16px 42px rgba(31, 41, 51, 0.08);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.swagger-section:not(.agile-swagger-ready) #swagger-ui-container::after {
    content: "Explore os recursos públicos, valide schemas dinâmicos e teste chamadas autorizadas mantendo o mesmo fluxo de uso do Swagger atual.";
    display: block;
    margin: 0 0 22px;
    padding: 0 30px 28px;
    color: #475467;
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    box-shadow: 0 16px 42px rgba(31, 41, 51, 0.08);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.swagger-section #resources_container {
    padding-bottom: 24px;
}

.swagger-section ul#resources {
    margin: 0;
    padding: 0;
}

.swagger-section ul#resources li.resource {
    margin: 0 0 16px;
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
    overflow: hidden;
}

.swagger-section ul#resources li.resource:hover {
    box-shadow: 0 14px 32px rgba(31, 41, 51, 0.08);
}

.swagger-section ul#resources li.resource div.heading {
    min-height: 58px;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e8eef1;
}

.swagger-section ul#resources li.resource div.heading h2,
.swagger-section ul#resources li.resource div.heading h3 {
    margin: 0;
    color: #17212b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.swagger-section ul#resources li.resource div.heading h2 a,
.swagger-section ul#resources li.resource div.heading h3 a {
    color: #17212b;
    text-decoration: none;
}

.swagger-section ul#resources li.resource div.heading .options {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

.swagger-section ul.endpoints {
    padding: 0;
}

.swagger-section ul.endpoints li.endpoint {
    margin: 0;
    padding: 0;
    border-top: 1px solid #edf1f4;
}

.swagger-section ul.endpoints li.endpoint:first-child {
    border-top: 0;
}

.swagger-section .endpoint .operations {
    padding: 0;
}

.swagger-section .endpoint .operations li.operation {
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.swagger-section .endpoint .operations li.operation div.heading {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
}

.swagger-section .endpoint .operations li.operation div.heading h3 {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.swagger-section .http_method a {
    min-width: 74px;
    height: 28px;
    margin-right: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
}

.swagger-section .operation.get .http_method a {
    background: #2f80ed;
}

.swagger-section .operation.post .http_method a,
.swagger-section .operation.put .http_method a,
.swagger-section .operation.patch .http_method a {
    background: #208b87;
}

.swagger-section .operation.delete .http_method a {
    background: #c0392b;
}

.swagger-section .path a {
    color: #1f2933 !important;
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 13px;
    font-weight: 700;
    word-break: break-word;
}

.swagger-section .operation.get div.heading,
.swagger-section .operation.get div.content {
    background: #f6fbff;
}

.swagger-section .operation.post div.heading,
.swagger-section .operation.put div.heading,
.swagger-section .operation.patch div.heading,
.swagger-section .operation.post div.content,
.swagger-section .operation.put div.content,
.swagger-section .operation.patch div.content {
    background: #f2fbfa;
}

.swagger-section .operation.delete div.heading,
.swagger-section .operation.delete div.content {
    background: #fff7f5;
}

.swagger-section .operation div.content {
    padding: 18px 20px 20px;
    border-top: 1px solid #d9e2e7;
    color: #344054;
}

.swagger-section .operation div.content h4,
.swagger-section .operation div.content h5 {
    color: #17212b;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
}

.swagger-section table {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.swagger-section table thead tr th,
.swagger-section table tbody tr td {
    padding: 10px 12px;
    border-color: #e8eef1;
}

.swagger-section table thead tr th {
    color: #344054;
    background: #f8fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.swagger-section input,
.swagger-section textarea,
.swagger-section select {
    border: 1px solid #cbd5dc !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.swagger-section textarea {
    min-height: 120px;
    color: #d5e7e6;
    background: #102a30;
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 13px;
}

.swagger-section pre,
.swagger-section code {
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.swagger-section pre {
    color: #d5e7e6;
    background: #102a30;
    border: 1px solid #173c43;
    border-radius: 8px;
}

.swagger-section .submit,
.swagger-section .submit .submit,
.swagger-section input[type="button"],
.swagger-section button {
    border-radius: 8px !important;
}

.swagger-section input.submit,
.swagger-section .submit input,
.swagger-section .sandbox_header input {
    color: #ffffff !important;
    background: #40b2ae !important;
    border-color: #40b2ae !important;
    font-weight: 800;
}

.swagger-section .response_hider,
.swagger-section .model-signature,
.swagger-section .model-signature .description {
    color: #667085;
}

@media (max-width: 900px) {
    .swagger-section #header .swagger-ui-wrap {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .swagger-section #api_selector {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .swagger-section #api_selector .input:first-child {
        flex: 1 1 min(100%, 320px);
        max-width: none;
    }
}

@media (max-width: 560px) {
    .swagger-section #header .swagger-ui-wrap,
    .swagger-section .swagger-ui-wrap,
    .swagger-section #message-bar,
    .agile-swagger-intro {
        width: calc(100% - 28px) !important;
        max-width: 1120px;
        min-width: 0 !important;
    }

    .swagger-section #header #logo {
        min-width: 0;
        width: 100%;
    }

    .swagger-section #header #logo::before {
        width: 120px;
        margin-right: 0;
    }

    .swagger-section #header #logo::after {
        display: block;
        min-height: 20px;
        margin-top: 6px;
        padding-left: 0;
        border-left: 0;
    }

    .swagger-section #input_baseUrl,
    .swagger-section #input_apiKey,
    .swagger-section #explore {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .swagger-section #api_selector .input,
    .swagger-section #api_selector .input:first-child,
    .swagger-section #api_selector .input:nth-child(2),
    .swagger-section #api_selector .input:nth-child(3) {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .swagger-section #explore {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .agile-swagger-intro {
        margin-top: 24px;
        padding: 20px;
    }

    .agile-swagger-intro h1 {
        font-size: 27px;
    }

    .swagger-section .endpoint .operations li.operation div.heading {
        align-items: flex-start;
    }

    .swagger-section .endpoint .operations li.operation div.heading h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
