/* Add here all your CSS customizations */
.overflow-visable {
    overflow: visible;
}

.nav-tabs .nav-link.active {
    background-color: #e0f0ff; /* light blue background */
    font-weight: bold;
    border-color: #007bff #007bff #fff;
    color: #007bff;
}

.nav-tabs .nav-link {
    color: #007bff; /* match your blue theme */
    border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    border-left: 4px solid #007bff;
}

.api-example-tabs-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(237, 245, 255, 0.95));
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.api-example-tabs {
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
    padding: 0.5rem;
    gap: 0.5rem;
}

.api-example-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    color: #0d1b2a;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.api-example-tabs .nav-link:hover {
    background-color: rgba(13, 27, 42, 0.08);
    color: #0056b3;
}

.api-example-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.18), rgba(32, 201, 151, 0.35));
    color: #0d1b2a;
    box-shadow: 0 6px 15px rgba(7, 43, 89, 0.2);
    border: 0;
    border-left: 0;
    border-color: transparent;
}

.api-example-tab-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.5rem;
}

.api-example-pane {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.api-example-pane > .api-snippet {
    flex: 1 1 auto;
}

#inquiry-bulk-actions .btn-group .btn {
    white-space: nowrap;
}

.bulk-active-row {
    background-color: #fff3cd !important;
    box-shadow: inset 0 0 0 2px rgba(255, 193, 7, 0.6);
}

.bulk-active-row > td {
    background-color: transparent !important;
}

@media (max-width: 576px) {
    #inquiry-bulk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #inquiry-bulk-actions .btn-group {
        width: 100%;
    }

    #inquiry-bulk-actions .btn-group .btn {
        flex: 1 1 auto;
    }
}

#modalStringPrompt .modal-header,
#modalStringPrompt .modal-footer {
    padding: 0.5rem 1rem;
}

#modalStringPrompt .modal-body {
    padding: 1rem;
}

/* ShipVia API landing page */
.api-hero {
    --hero-block-padding: clamp(3rem, 10vw, 7rem);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.85), rgba(32, 201, 151, 0.85));
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-block: var(--hero-block-padding);
}

.api-hero-actions .btn {
    width: 100%;
}

.api-hero-actions > [class*="col-"] {
    display: flex;
}

.api-hero-actions > [class*="col-"] .btn {
    flex: 1 1 auto;
}

.api-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.api-badge {
    background-color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.15rem;
}

.api-hero-illustration {
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-hero-illustration img {
    max-height: calc(100vh - (var(--hero-block-padding) * 2));
    object-fit: contain;
    margin: auto;
}

.api-section {

}

.api-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(22, 53, 80, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(22, 53, 80, 0.12);
}

.api-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(32, 201, 151, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
    color: #007bff;
}

.api-timeline-section {
    background-image: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
}

.api-timeline .timeline-index {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(32, 201, 151, 0.4));
    color: #0056b3;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

.api-snippet {
    background: #0d1b2a;
    border-radius: 1rem;
    color: #e0f4ff;
    box-shadow: 0 20px 40px rgba(7, 43, 89, 0.3);
    overflow: auto;
}

.api-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background-color: #f5f7fb;
    color: #0d1b2a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.api-method-badge-get {
    background-color: #61affe;
    border-color: rgba(32, 94, 168, 0.35);
    color: #ffffff;
}

.api-method-badge-post {
    background-color: #49cc90;
    border-color: rgba(15, 96, 61, 0.3);
    color: #ffffff;
}

.api-method-badge-put {
    background-color: #fca130;
    border-color: rgba(160, 91, 12, 0.35);
    color: #ffffff;
}

.api-method-badge-patch {
    background-color: #50e3c2;
    border-color: rgba(5, 110, 86, 0.3);
    color: #03463a;
}

.api-method-badge-delete {
    background-color: #f93e3e;
    border-color: rgba(155, 34, 34, 0.35);
    color: #ffffff;
}

.api-snippet code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
}

.api-schema-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(22, 53, 80, 0.08);
}

.api-schema-card .bx {
    font-size: 1.25rem;
}

.api-cta-section {
    background: linear-gradient(135deg, #007bff, #20c997);
    border-radius: 2rem 2rem 0 0;
}

.api-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
    .api-hero {
        min-height: auto;
        --hero-block-padding: clamp(2.5rem, 16vw, 5.5rem);
        padding-block: var(--hero-block-padding);
    }

    .api-timeline-section {
        text-align: center;
    }

}

@media (min-width: 576px) {
    .api-hero-actions .btn {
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .api-hero {
        text-align: center;
    }

    .api-hero-illustration {
        padding: 1rem;
    }

    .api-snippet code {
        font-size: 0.75rem;
    }
}

/* API documentation theme extensions */
.api-doc-main {
    background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
}

.api-doc-context {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.api-doc-context .api-doc-copy-btn {
    margin-top: 1.5rem;
}

.api-doc-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.api-doc-value {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    color: #ffffff;
}

.api-doc-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(32, 201, 151, 0.4));
    color: #0d1b2a;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.api-doc-copy-btn:hover,
.api-doc-copy-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(13, 27, 42, 0.15);
    color: #0d1b2a;
    text-decoration: none;
}

.api-doc-copy-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.api-snippet {
    padding: 1.25rem;
}

.api-snippet-compact {
    padding: 1rem 1.25rem;
}

.api-snippet-editable {
    padding: 1.5rem 1.25rem 1.25rem;
}

.api-snippet .api-doc-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(13, 27, 42, 0.7);
    color: #e0f4ff;
    border: 1px solid rgba(224, 244, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.api-snippet .api-doc-copy-btn:hover,
.api-snippet .api-doc-copy-btn:focus {
    color: #ffffff;
    border-color: rgba(224, 244, 255, 0.5);
    box-shadow: 0 12px 30px rgba(6, 22, 43, 0.25);
}

.api-request-editor {
    width: 100%;
    background: transparent;
    border: none;
    color: #e0f4ff;
    resize: vertical;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.api-request-editor:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(32, 201, 151, 0.4);
    border-radius: 0.75rem;
}

.api-doc-endpoint-head .btn {
    border-radius: 999px;
    padding-inline: 1.75rem;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.2);
}

.api-doc-endpoints .api-card {
    border-radius: 1.5rem;
}

.api-endpoint-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 27, 42, 0.08);
    background: rgba(13, 27, 42, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.api-endpoint-form .form-label {
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: rgba(13, 27, 42, 0.6);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.api-endpoint-form .form-control,
.api-endpoint-form .form-select {
    border-radius: 0.75rem;
    border-color: rgba(13, 27, 42, 0.12);
    background-color: #ffffff;
    box-shadow: none;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
}

.api-endpoint-form .form-control:focus,
.api-endpoint-form .form-select:focus {
    border-color: rgba(0, 123, 255, 0.35);
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

.api-endpoint-form input[data-request-url][readonly] {
    background-color: #fff;
    cursor: default;
    opacity: 1;
    color: inherit;
}

.api-endpoint-form .input-group {
    align-items: stretch;
}

.api-endpoint-form .input-group > .form-control,
.api-endpoint-form .input-group > textarea.form-control {
    border-radius: 0.75rem 0 0 0.75rem;
    border-color: rgba(13, 27, 42, 0.12);
    min-width: 0;
}

.api-endpoint-form .input-group > textarea.form-control {
    resize: vertical;
}

.api-endpoint-form .input-group > .btn {
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.55rem 1.1rem;
}

.api-endpoint-form .input-group > .btn.api-doc-copy-btn {
    border-color: rgba(0, 123, 255, 0.3);
    background: rgba(0, 123, 255, 0.12);
    color: #0056b3;
    font-weight: 600;
}

.api-endpoint-form .input-group > .btn.api-doc-copy-btn:hover,
.api-endpoint-form .input-group > .btn.api-doc-copy-btn:focus {
    background: rgba(0, 123, 255, 0.35);
    color: #ffffff;
    box-shadow: none;
}

.api-endpoint-input-group .api-method-badge {
    border-radius: 0.75rem 0 0 0.75rem;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-right: 0;
    min-width: 4.5rem;
    justify-content: center;
}

.api-endpoint-input-group > .form-control {
    border-radius: 0;
    border-left: 0;
}

.api-endpoint-input-group > .btn.api-doc-copy-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.api-request-editor-compact {
    min-height: 6.5rem;
}

.api-endpoint-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 0.85rem;
    background: rgba(13, 27, 42, 0.035);
    box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.05);
}

@media (min-width: 992px) {
    .api-endpoint-section {
        padding: 1.5rem 1.75rem;
    }
}

.api-endpoint-section + .api-endpoint-section {
    margin-top: 1.75rem;
}

.api-endpoint-section h4 {
    letter-spacing: 0.14rem;
}

.api-live-result {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.08);
    background: rgba(13, 27, 42, 0.05);
    color: #0d1b2a;
}

.api-live-result.alert-success {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.12), rgba(0, 123, 255, 0.18));
    color: #05502b;
}

.api-live-result.alert-danger {
    background: linear-gradient(135deg, rgba(255, 99, 132, 0.2), rgba(255, 214, 102, 0.18));
    color: #842029;
}

.api-live-result.alert-secondary {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.12), rgba(0, 123, 255, 0.14));
    color: #0d1b2a;
}

.api-doc-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.4);
    background: transparent;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.api-doc-ghost-btn:hover,
.api-doc-ghost-btn:focus {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(32, 201, 151, 0.15));
    color: #0056b3;
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.15);
}

@media (max-width: 991.98px) {
    .api-doc-context {
        padding: 1.75rem;
    }

    .api-request-editor {
        min-height: 14rem;
    }

    .api-endpoint-form {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .api-doc-context {
        text-align: center;
    }

    .api-doc-context ul {
        display: inline-block;
        text-align: left;
    }

    .api-doc-copy-btn {
        width: 100%;
    }

    .api-endpoint-form {
        padding: 1.25rem;
    }

    .api-endpoint-form .api-doc-copy-btn {
        width: auto;
    }
}

.api-doc-layout {
    position: relative;
}

.api-doc-toc {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.api-session-status {
    background: linear-gradient(180deg, rgba(233, 246, 255, 0.9) 0%, rgba(214, 241, 255, 0.75) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 123, 255, 0.12);
    padding: 1.25rem 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.api-session-status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.api-session-status-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: rgba(13, 27, 42, 0.55);
}

.api-session-status-state {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0d1b2a;
}

.api-session-status-indicator {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #adb5bd;
    box-shadow: 0 0 0 4px rgba(173, 181, 189, 0.25);
}

.api-session-status-indicator.is-active {
    background: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.18);
}

.api-session-status-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.api-session-status-row {
    display: grid;
    grid-template-columns: minmax(0, max-content) 1fr;
    gap: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: rgba(13, 27, 42, 0.75);
}

.api-session-status-row dt {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: rgba(13, 27, 42, 0.55);
}

.api-session-status-row dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.api-session-status-token {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: #0d1b2a;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-session-status-token.is-empty {
    color: rgba(13, 27, 42, 0.5);
    font-style: italic;
}

.api-session-status-copy {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 123, 255, 0.12);
    border-color: rgba(0, 123, 255, 0.25);
    box-shadow: none;
}

.api-session-status-copy:hover,
.api-session-status-copy:focus {
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.18);
}

.api-session-status-hint {
    margin: 0;
    font-size: 0.7rem;
    color: rgba(13, 27, 42, 0.55);
}

.api-doc-toc-nav ul {
    margin-bottom: 0.25rem;
    padding-left: 0;
}

.api-doc-toc-nav ul ul {
    margin-top: 0.35rem;
    padding-left: 1rem;
}

.api-doc-toc-link {
    display: block;
    padding: 0.35rem 0.75rem;
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.api-doc-toc-link:hover,
.api-doc-toc-link:focus {
    color: #0056b3;
    background-color: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.4);
}

.api-doc-toc-link.is-active {
    color: #0056b3;
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.12);
    border-color: #007bff;
}

@media (min-width: 992px) {
    .api-doc-toc {
        position: sticky;
        top: 48px;
        max-height: calc(100vh - 96px);
        overflow: hidden;
    }

    .api-doc-toc-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-right: 0.25rem;
    }
}

@media (max-width: 991.98px) {
    .api-doc-toc {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 1.25rem;
        margin-bottom: 1rem;
        gap: 1.25rem;
    }

    .api-doc-toc-nav > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .api-doc-toc-nav > ul > li {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 12rem;
    }

    .api-doc-toc-nav ul ul {
        margin-top: 0.25rem;
        padding-left: 0.75rem;
    }
}

