﻿/* CCTMS Swagger UI visual system */
:root {
    --navy: #173b64;
    --navy-deep: #102d50;
    --blue: #1976dc;
    --ink: #264665;
    --muted: #66809b;
    --line: #d9e6f4;
    --page: #f7fbff;
    --sidebar: 145px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    padding-bottom: 30px;
    overflow-x: hidden;
    background: var(--page) !important;
    color: var(--ink);
    font-family: "Segoe UI",Arial,sans-serif;
    transition: --sidebar .2s ease;
}

    body.cctms-sidebar-collapsed {
        --sidebar: 0px;
    }

.swagger-ui {
    font-family: "Segoe UI",Arial,sans-serif;
    color: var(--ink);
}

    .swagger-ui .topbar {
        position: fixed !important;
        top: 0 !important;
        left: var(--sidebar);
        z-index: 50;
        width: calc(100% - var(--sidebar));
        min-height: 70px;
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid #dce8f5;
        background: #fff !important;
        box-shadow: 0 2px 8px #0e31581a;
    }

body.cctms-ready .swagger-ui {
    padding-top: 55px;
}

.swagger-ui .topbar .wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 24px;
    align-items: center;
    flex-wrap: nowrap !important;
}

.swagger-ui .topbar-wrapper {
    position: relative;
    display: flex !important;
    width: 100%;
    align-items: center;
    flex-wrap: nowrap !important;
}

    .swagger-ui .topbar-wrapper .link {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 9px;
        font-size: 0 !important;
    }

        .swagger-ui .topbar-wrapper .link svg, .swagger-ui .topbar-wrapper .link img {
            display: none !important;
        }

        .swagger-ui .topbar-wrapper .link:before {
            content: "";
            display: block;
            width: 82px;
            height: 34px;
            background: url("/images/nama-logo-ink.png") center/contain no-repeat;
        }

        .swagger-ui .topbar-wrapper .link:after {
            content: "CCTMS API";
            color: var(--navy);
            font-size: 17px;
            font-weight: 700;
            letter-spacing: .1px;
        }

.cctms-header-search {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    width: min(330px,30vw);
    height: 30px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #d8e7f6;
    border-radius: 5px;
    background: #fff;
    color: #63809c;
    transform: translateX(-50%);
}

    .cctms-header-search span {
        font-size: 14px;
    }

    .cctms-header-search input {
        width: 100%;
        min-width: 0;
        border: 0 !important;
        outline: 0 !important;
        background: transparent;
        color: #315574;
        font: 10px "Segoe UI",Arial,sans-serif;
    }

        .cctms-header-search input::placeholder {
            color: #7891aa;
        }

.cctms-api-version {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 8px 9px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font: 700 10px "Segoe UI",Arial,sans-serif;
}

.cctms-theme-toggle {
    display: grid !important;
    place-items: center;
    width: 31px;
    height: 31px;
    margin-left: 8px;
    padding: 0 0 2px;
    border: 1px solid #cbddec;
    border-radius: 5px;
    background: #fff;
    color: #244f7f;
    cursor: pointer;
    font: 700 18px/1 Arial,sans-serif;
}

    .cctms-theme-toggle:hover {
        background: #edf5fd;
        color: #0f5da7;
    }
/* Hide Swagger UI's default header icon; the branded moon/sun control remains visible. */
.swagger-ui .topbar-wrapper > button:not(.cctms-theme-toggle),
.swagger-ui .topbar-wrapper > svg,
.swagger-ui .topbar-wrapper > [class*="theme"]:not(.cctms-theme-toggle),
.swagger-ui .topbar-wrapper > [aria-label*="theme" i]:not(.cctms-theme-toggle) {
    display: none !important;
}
/* The remaining default control is SVG-only; the branded header has no SVG controls. */
.swagger-ui .topbar svg {
    display: none !important;
}

.swagger-ui .topbar .download-url-wrapper {
    display: none !important;
}

    .swagger-ui .topbar .download-url-wrapper input[type=text] {
        width: 178px;
        height: 30px;
        border: 1px solid #c9dbed;
        border-radius: 5px 0 0 5px;
        color: #607995;
        font-size: 11px;
    }

    .swagger-ui .topbar .download-url-wrapper .select-label select {
        width: 48px;
        height: 30px;
        border-radius: 5px;
        background: #244f7f;
        color: #fff;
        font-size: 0;
    }

    .swagger-ui .topbar .download-url-wrapper .select-label:after {
        content: "v1⌄";
        position: absolute;
        right: 8px;
        color: #fff;
        font-size: 10px;
        pointer-events: none;
    }

    .swagger-ui .topbar .download-url-wrapper .select-label {
        position: relative;
    }

.swagger-ui .wrapper {
    width: calc(100% - var(--sidebar));
    max-width: none;
    margin-left: var(--sidebar);
    padding: 0 26px 45px;
}

.swagger-ui .information-container {
    width: calc(100% - var(--sidebar));
    margin-left: var(--sidebar);
    padding: 13px 26px 0;
}

    .swagger-ui .information-container .wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

.swagger-ui .info {
    position: relative;
    margin: 0 !important;
}

    .swagger-ui .info .title {
        margin: 0 0 1px;
        color: #1d4169;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0;
    }

        .swagger-ui .info .title small {
            display: none;
        }

    .swagger-ui .info p {
        max-width: 820px;
        margin: 2px 0;
        color: #57728d;
        font-size: 11px;
        line-height: 1.35;
    }

        .swagger-ui .info p:first-of-type {
            font-weight: 700;
            color: #557393;
        }

    .swagger-ui .info .base-url {
        display: none;
    }

    .swagger-ui .info a {
        color: #1976dc;
        font-size: 10px;
    }

    .swagger-ui .info > a[href*="swagger.json"] {
        display: none;
    }

    .swagger-ui .info .info__tos, .swagger-ui .info .info__contact {
        display: inline-flex;
        align-items: center;
        gap: 20px;
        margin: 7px 0 0;
        vertical-align: middle;
        line-height: 18px;
    }

    .swagger-ui .info .info__tos {
        margin-right: 20px;
    }

    .swagger-ui .info .info__contact a {
        display: inline-flex;
        align-items: center;
        margin: 0;
        white-space: nowrap;
    }

    .swagger-ui .info .info__license {
        display: none;
    }

    .swagger-ui .info .info__tos:before {
        content: "▣";
        display: inline-block;
        margin-right: 6px;
        color: #2776c8;
        font-size: 11px;
    }

    .swagger-ui .info .info__contact a:before {
        display: inline-block;
        margin-right: 6px;
        color: #2776c8;
        font-size: 11px;
    }

    .swagger-ui .info .info__contact a:first-child:before {
        content: "⌁";
    }

    .swagger-ui .info .info__contact a:last-child:before {
        content: "✉";
    }

.cctms-trust-badge {
    position: absolute;
    right: 0;
    top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #eaf3ff;
    color: #365e86;
    font-size: 9px;
}

    .cctms-trust-badge span {
        color: #1976dc;
        font-size: 14px;
    }

    .cctms-trust-badge i {
        color: #8aa7c5;
        font-style: normal;
    }

.swagger-ui .scheme-container {
    display: block !important;
    width: calc(100% - var(--sidebar) - 52px);
    margin: 8px 26px 8px calc(var(--sidebar) + 26px);
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

    .swagger-ui .scheme-container .schemes {
        padding: 0;
    }

.swagger-ui .filter-container {
    display: none !important;
}

.swagger-ui .scheme-container .schemes {
    display: flex !important;
    justify-content: flex-end !important;
}

.swagger-ui .scheme-container .auth-wrapper {
    margin-left: auto !important;
}

.swagger-ui .scheme-container .wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.swagger-ui .opblock-tag-section {
    margin: 4px 0 !important;
    padding: 0 !important;
}

.swagger-ui .opblock-tag {
    min-height: 44px;
    padding-left: 48px;
    font-size: 10px;
}

    .swagger-ui .opblock-tag:before {
        left: 6px;
        width: 32px;
        height: 32px;
    }

    .swagger-ui .opblock-tag:after {
        right: 10px;
        font-size: 23px;
    }

.swagger-ui .cctms-tag-0:before, .swagger-ui .cctms-tag-1:before, .swagger-ui .cctms-tag-2:before, .swagger-ui .cctms-tag-3:before, .swagger-ui .cctms-tag-4:before, .swagger-ui .cctms-tag-5:before, .swagger-ui .cctms-tag-6:before, .swagger-ui .cctms-tag-7:before {
    line-height: 32px;
}

.swagger-ui .opblock-tag {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 31px;
    margin: 5px 0 0;
    padding: 5px 45px 5px 32px;
    border: 1px solid var(--tag-border,#cce1fb);
    border-radius: 5px;
    background: var(--tag-bg,#eef6ff);
    color: var(--tag-color,#176cc6);
    font-size: 11px;
    font-weight: 800;
    transition: filter .15s ease;
}

    .swagger-ui .opblock-tag:hover {
        background: var(--tag-bg,#eef6ff);
        filter: brightness(.98);
    }

    .swagger-ui .opblock-tag:before {
        content: "";
        position: absolute;
        left: 7px;
        width: 19px;
        height: 19px;
        border-radius: 4px;
        background: var(--tag-color,#176cc6);
        box-shadow: inset 0 0 0 1px #fff6;
    }

    .swagger-ui .opblock-tag:after {
        content: "⌄";
        position: absolute;
        right: 11px;
        color: #537b9d;
        font-size: 15px;
        font-weight: 400;
    }

    .swagger-ui .opblock-tag small:not(.cctms-tag-description) {
        display: none;
    }

.cctms-tag-description {
    display: block;
    margin-left: 10px;
    color: #5d7892 !important;
    font-size: 8px !important;
    font-weight: 400 !important;
}

.cctms-tag-summary {
    position: absolute;
    right: 35px;
    padding: 3px 7px;
    border-radius: 10px;
    background: #fff9;
    font-size: 8px;
    font-weight: 700;
}

.cctms-tag-0 {
    --tag-bg: #eaf4ff;
    --tag-border: #c9e1fb;
    --tag-color: #1976dc
}

.cctms-tag-1 {
    --tag-bg: #e8fbf4;
    --tag-border: #c5efde;
    --tag-color: #0c9b67
}

.cctms-tag-2 {
    --tag-bg: #f1ecff;
    --tag-border: #dcd1ff;
    --tag-color: #6f42d7
}

.cctms-tag-3 {
    --tag-bg: #fff4e9;
    --tag-border: #ffe0c4;
    --tag-color: #ef7d13
}

.cctms-tag-4 {
    --tag-bg: #fff0f1;
    --tag-border: #ffd5d7;
    --tag-color: #e73f4c
}

.cctms-tag-5 {
    --tag-bg: #eafafb;
    --tag-border: #c5eced;
    --tag-color: #137b83
}

.cctms-tag-6 {
    --tag-bg: #edf2fa;
    --tag-border: #d5e0f1;
    --tag-color: #456a97
}

.cctms-tag-7 {
    --tag-bg: #f5f1ff;
    --tag-border: #e3d9ff;
    --tag-color: #7950c5
}

.swagger-ui .opblock {
    margin: 0 0 6px !important;
    border-radius: 0 0 5px 5px;
    box-shadow: none;
}

    .swagger-ui .opblock .opblock-summary {
        min-height: 34px;
        padding: 6px 12px;
    }

    .swagger-ui .opblock .opblock-summary-method {
        min-width: 52px;
        border-radius: 4px;
        font-size: 10px;
    }

    .swagger-ui .opblock .opblock-summary-path {
        font-size: 11px;
    }

    .swagger-ui .opblock .opblock-summary-description {
        font-size: 10px;
    }

    .swagger-ui .opblock .opblock-body {
        background: #fff;
    }

    .swagger-ui .opblock .opblock-section-header {
        background: #f0f6fd;
        box-shadow: none;
    }

.swagger-ui .opblock-tag + .opblock {
    margin-top: 10px !important;
}

.swagger-ui .opblock-tag-section > .opblock {
    margin-top: 12px !important;
}

.swagger-ui .opblock-tag-section > h3.opblock-tag {
    margin-bottom: 2px !important;
}

    .swagger-ui .opblock-tag-section > h3.opblock-tag:has(+ .opblock) {
        margin-bottom: 12px !important;
    }

.swagger-ui section.models {
    border-color: var(--line);
    border-radius: 6px;
}

.swagger-ui .btn {
    border-radius: 5px;
}

    .swagger-ui .btn.execute {
        background: var(--navy);
        border-color: var(--navy);
    }

.swagger-ui input[type=text], .swagger-ui textarea, .swagger-ui select {
    border-color: #cbd9e7;
    border-radius: 5px;
}

.cctms-sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    height: 100vh;
    left: 0;
    width: 145px;
    padding: 10px 8px 40px;
    overflow: hidden;
    border-right: 1px solid #dbe7f4;
    background: linear-gradient(180deg,#f1f7ff,#fff);
    transition: transform .2s ease;
}

    .cctms-sidebar.is-expanded {
        overflow-y: auto;
    }

.cctms-sidebar-collapsed .cctms-sidebar {
    transform: translateX(-100%);
}

.cctms-sidebar-toggle {
    position: fixed;
    z-index: 40;
    top: 50%;
    left: 132px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 42px;
    padding: 0 0 3px;
    border: 1px solid #c9def2;
    border-radius: 0 7px 7px 0;
    background: #fff;
    color: #1d6fbf;
    box-shadow: 2px 1px 5px #17436b1f;
    cursor: pointer;
    font: 700 24px/1 Arial,sans-serif;
    transition: left .2s ease;
}

.cctms-sidebar-collapsed .cctms-sidebar-toggle {
    left: 0;
}

.cctms-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cctms-nav-item[hidden] {
    display: none !important;
}

.cctms-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 29px;
    padding: 5px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #50708e;
    text-align: left;
    cursor: pointer;
    font: 600 8px "Segoe UI",Arial,sans-serif;
}

    .cctms-nav-item span {
        min-width: 11px;
        color: #416b9a;
        font-size: 13px;
        text-align: center;
    }

    .cctms-nav-item b {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
    }

    .cctms-nav-item i {
        margin-left: auto;
        font-size: 14px;
        font-style: normal;
    }

    .cctms-nav-item:hover, .cctms-nav-item.is-active {
        color: #1671cf;
        background: #e1efff;
    }

        .cctms-nav-item.is-active span {
            color: #1671cf;
        }

.cctms-nav-divider {
    height: 1px;
    margin: 8px 3px;
    background: #dbe8f5;
}

.cctms-nav-label {
    margin: 1px 8px 4px;
    color: #8aa0b7;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .7px;
}

.cctms-load-more {
    margin: 7px 4px 0;
    padding: 6px;
    border: 1px solid #c8ddf5;
    border-radius: 4px;
    background: #fff;
    color: #1b70c9;
    cursor: pointer;
    font: 700 8px "Segoe UI",Arial,sans-serif;
}

    .cctms-load-more:hover {
        background: #e8f3ff;
    }

.cctms-sidebar-version {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 22px 0 0;
    padding: 10px;
    border: 1px solid #e0ebf8;
    border-radius: 5px;
    background: #f6faff;
    color: #587693;
    font-size: 8px;
}

    .cctms-sidebar-version strong {
        font-size: 8px;
        color: #3d5d7e;
    }

        .cctms-sidebar-version strong:first-letter {
            color: #1976dc;
        }

.cctms-footer {
    position: fixed;
    z-index: 31;
    right: 0;
    bottom: 0;
    left: var(--sidebar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    padding: 0 20px;
    border-top: 1px solid #dce8f5;
    color: #5a7490;
    background: #fff;
    font: 8px "Segoe UI",Arial,sans-serif;
}
/* Dark theme */
body.cctms-dark-theme {
    --page: #080d14;
    --ink: #eef4fb;
    --muted: #aebdcd;
    --line: #26384b;
    background: #080d14 !important;
}

    body.cctms-dark-theme .swagger-ui, body.cctms-dark-theme .swagger-ui .information-container, body.cctms-dark-theme .swagger-ui .wrapper {
        background: #080d14 !important;
    }

        body.cctms-dark-theme .swagger-ui .topbar, body.cctms-dark-theme .cctms-footer {
            background: #0d141e !important;
            border-color: #26384b;
        }

    body.cctms-dark-theme .cctms-header-search, body.cctms-dark-theme .cctms-header-search input {
        background: #121d29 !important;
        border-color: #354b62 !important;
    }

    body.cctms-dark-theme .swagger-ui .scheme-container {
        background: transparent !important;
        border: 0 !important;
    }

    body.cctms-dark-theme .swagger-ui .topbar-wrapper .link:before {
        background-image: url("/images/nama-logo.png");
    }

    body.cctms-dark-theme .swagger-ui .topbar-wrapper .link:after, body.cctms-dark-theme .swagger-ui .info .title, body.cctms-dark-theme .swagger-ui .info p, body.cctms-dark-theme .swagger-ui .info a, body.cctms-dark-theme .cctms-header-search input, body.cctms-dark-theme .cctms-footer {
        color: #edf6ff;
    }

        body.cctms-dark-theme .cctms-header-search input::placeholder {
            color: #9eafc1;
        }

    body.cctms-dark-theme .cctms-theme-toggle {
        border-color: #455d75;
        background: #172331;
        color: #ffe598;
    }

    body.cctms-dark-theme .cctms-sidebar {
        background: #0d141e;
        border-color: #26384b;
    }

    body.cctms-dark-theme .cctms-sidebar-version {
        background: #121d29;
        border-color: #31465d;
        color: #dceafa;
    }

    body.cctms-dark-theme .cctms-trust-badge {
        background: #142235;
        color: #dce9f6;
    }

    body.cctms-dark-theme .swagger-ui .opblock-tag {
        background: #121d29 !important;
        border-color: #293c50 !important;
        color: #edf4fb !important;
        filter: none;
    }

    body.cctms-dark-theme .cctms-tag-description {
        color: #adbdcd !important;
    }

    body.cctms-dark-theme .cctms-tag-summary {
        background: #080d14 !important;
        color: #dce9f6;
    }

    body.cctms-dark-theme .swagger-ui .opblock {
        background: #111b27 !important;
        border-color: #2a3f54 !important;
    }

        body.cctms-dark-theme .swagger-ui .opblock.opblock-get {
            background: #101e2e !important;
            border-color: #24537e !important;
        }

        body.cctms-dark-theme .swagger-ui .opblock.opblock-post {
            background: #10251f !important;
            border-color: #256953 !important;
        }

        body.cctms-dark-theme .swagger-ui .opblock.opblock-put, body.cctms-dark-theme .swagger-ui .opblock.opblock-patch {
            background: #2a2113 !important;
            border-color: #806125 !important;
        }

        body.cctms-dark-theme .swagger-ui .opblock.opblock-delete {
            background: #2a1519 !important;
            border-color: #81333f !important;
        }

        body.cctms-dark-theme .swagger-ui .opblock .opblock-summary, body.cctms-dark-theme .swagger-ui .opblock .opblock-summary-path, body.cctms-dark-theme .swagger-ui .opblock .opblock-summary-description {
            color: #e8f1fb !important;
        }

        body.cctms-dark-theme .swagger-ui .opblock .opblock-body, body.cctms-dark-theme .swagger-ui .opblock .opblock-section-header {
            background: #111b27 !important;
            color: #edf4fb;
        }

        body.cctms-dark-theme .swagger-ui .opblock svg {
            fill: #d4e1ee !important;
        }

    body.cctms-dark-theme .cctms-sidebar-toggle {
        border-color: #455d75;
        background: #121d29;
        color: #bdddff;
    }
    /* Swagger authorization dialog in dark mode */
    body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux, body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-content, body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-inner {
        background: #0d141e !important;
        color: #edf4fb !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-header {
        background: #080d14 !important;
        border-color: #26384b !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux h3, body.cctms-dark-theme .swagger-ui .dialog-ux h4, body.cctms-dark-theme .swagger-ui .dialog-ux p, body.cctms-dark-theme .swagger-ui .dialog-ux label {
        color: #edf4fb !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux input[type=text], body.cctms-dark-theme .swagger-ui .dialog-ux input[type=password] {
        border-color: #40566d !important;
        background: #121d29 !important;
        color: #fff !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux {
        border: 1px solid #3a5067 !important;
        box-shadow: 0 18px 55px #000b !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-header {
        border-bottom: 1px solid #26384b !important;
    }

        body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-header .close-modal {
            color: #d8e6f4 !important;
            opacity: 1;
        }

    body.cctms-dark-theme .swagger-ui .dialog-ux .modal-ux-content {
        padding: 24px !important;
    }

    body.cctms-dark-theme .swagger-ui .dialog-ux input {
        box-shadow: none !important;
    }
    /* Keep the entire dark header on one unified surface. */
    body.cctms-dark-theme .swagger-ui .topbar, body.cctms-dark-theme .swagger-ui .topbar .wrapper, body.cctms-dark-theme .swagger-ui .topbar-wrapper {
        background: #0d141e !important;
        box-shadow: none !important;
    }
/* Module symbols */
.swagger-ui .cctms-tag-0:before {
    content: "▣";
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-1:before {
    content: "⌕";
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-2:before {
    content: "⚙";
    color: #fff;
    text-align: center;
    font-size: 11px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-3:before {
    content: "✓";
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-4:before {
    content: "♟";
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-5:before {
    content: "▤";
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-6:before {
    content: "▥";
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 19px;
}

.swagger-ui .cctms-tag-7:before {
    content: "◈";
    color: #fff;
    text-align: center;
    font-size: 11px;
    line-height: 19px;
}
/* Operation group header: keep the colour tile prominent, with a compact label and chevron. */
.swagger-ui .opblock-tag {
    min-height: 46px;
    padding: 6px 45px 6px 78px;
    font-size: 12px;
    line-height: 1.2;
}

    .swagger-ui .opblock-tag:before {
        left: 34px;
        width: 32px;
        height: 32px;
        border-radius: 5px;
        line-height: 32px !important;
        font-size: 16px !important;
    }

    .swagger-ui .opblock-tag svg {
        position: absolute;
        top: 50%;
        left: 11px;
        width: 15px !important;
        height: 15px !important;
        margin: 0;
        color: #547899 !important;
        fill: #547899 !important;
        stroke: #547899 !important;
        filter: invert(45%) sepia(18%) saturate(1120%) hue-rotate(166deg) brightness(91%) contrast(86%);
        transform: translateY(-50%);
    }

body.cctms-dark-theme .swagger-ui .opblock-tag svg {
    color: #b9cbe0 !important;
    fill: #b9cbe0 !important;
    stroke: #b9cbe0 !important;
    filter: invert(83%) sepia(17%) saturate(677%) hue-rotate(169deg) brightness(94%) contrast(91%);
}

.swagger-ui .opblock-tag:after {
    right: 12px;
    font-size: 14px;
}

.swagger-ui .cctms-tag-description {
    margin-left: 9px;
    font-size: 9px !important;
    line-height: 1.2;
}

@media(max-width:700px) {
    :root {
        --sidebar: 0px;
    }

    .cctms-sidebar, .cctms-sidebar-toggle {
        display: none;
    }

    .swagger-ui .topbar {
        width: 100%;
        margin-left: 0;
    }

    .swagger-ui .wrapper, .swagger-ui .information-container, .swagger-ui .scheme-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 12px 35px;
    }

    .swagger-ui .scheme-container {
        padding: 8px 12px;
    }

    .cctms-header-search {
        width: 145px;
    }

    .cctms-trust-badge {
        position: static;
        width: max-content;
        margin: 8px 0;
    }

    .cctms-tag-description {
        display: none;
    }

    .swagger-ui .opblock-tag {
        padding-right: 74px;
    }

    .cctms-footer {
        left: 0;
        padding: 0 10px;
    }

        .cctms-footer span:last-child {
            display: none;
        }
}
