/* API documentation (/docx) */

td p span {
    background: #EEEEEE;
    color: #5b5b59;
    width: 70px;
    padding: 2px;
    display: inline-block;
}

xmp {
    background-color: #F0F0F0;
    color: #000;
}

/* side menu: group headings are the strongest text, the calls under them are quieter */
#sideNav .navbar-nav .nav-item {
    text-align: left;
}

#sideNav .navbar-nav .nav-item.nav-group {
    margin: 16px 0 4px;
    padding: 16px 0.75rem 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    line-height: 1.3;
    color: #fff;
}

#sideNav .navbar-nav .nav-item .nav-link {
    padding: 0.35rem 0.75rem 0.35rem 1.5rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
    text-align: left;
    color: rgba(255, 255, 255, 0.78);
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Overview and SMS V3 are single links, shown like headings */
#sideNav .navbar-nav .nav-item.nav-top .nav-link {
    padding-left: 0.75rem;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: #fff;
}

#sideNav .navbar-nav .nav-item .nav-link.active {
    color: #fff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-left: 0;
}

@media (min-width: 992px) {
    #sideNav .navbar-collapse {
        overflow-y: auto;
        max-height: calc(100vh - 140px);
    }
}

/* page content */
.docs-page {
    max-width: 960px;
}

.docs-page h2 {
    font-size: 22px;
    margin: 34px 0 12px;
}

.docs-page h3 {
    font-size: 18px;
    margin: 26px 0 10px;
}

.docs-page table td code,
.docs-page code.inline {
    background: #eef1f6;
    color: #1f2d3d;
    padding: 1px 6px;
    border-radius: 4px;
}

.docs-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f4f6fa;
    border: 1px solid #dfe4ee;
    border-radius: 6px;
    margin: 10px 0 20px;
    word-break: break-all;
}

.docs-endpoint .verb {
    background: #335ACB;
    color: #fff;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.docs-endpoint code {
    color: #111;
    font-size: 15px;
}

.doc-code {
    background: #1e2433;
    color: #e6e9f2;
    padding: 16px;
    border-radius: 0 0 6px 6px;
    margin: 0 0 20px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre;
}

.doc-json {
    border-radius: 6px;
    margin-bottom: 14px;
}

.docs-page .nav-tabs {
    margin-top: 10px;
    border-bottom: 0;
}

.docs-page .nav-tabs .nav-link {
    padding: 4px 14px;
    font-size: 13px;
    color: #335ACB;
}

.docs-page .nav-tabs .nav-link.active {
    background: #1e2433;
    color: #fff;
    border-color: #1e2433;
}

.badge-required {
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}

.badge-optional {
    background: #e3e7ee;
    color: #555;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}

.docs-notice {
    border-left: 5px solid #f0ad4e;
    background: #fff8ec;
    padding: 14px 18px;
    margin: 18px 0 24px;
    border-radius: 0 6px 6px 0;
}

.docs-notice strong {
    display: block;
    margin-bottom: 4px;
}

.docs-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0;
}

.docs-card {
    flex: 1 1 280px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    padding: 18px 20px;
    background: #fff;
}

.docs-card h3 {
    margin-top: 0;
}

.docs-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.docs-card .tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 2px 10px;
    border-radius: 10px;
    background: #335ACB;
    color: #fff;
}

.docs-card .tag.tag-wa {
    background: #25a244;
}

.docs-card .tag.tag-other {
    background: #6c757d;
}

.docs-card .tag.tag-new {
    background: #9b59b6;
}

.docs-note-list li {
    margin-bottom: 6px;
}

/* SMS v3 is the recommended API, legacy pages point to it */
.docs-card-featured {
    flex-basis: 100%;
    border: 2px solid #9b59b6;
    background: #faf5fc;
}

.docs-card-featured h3 {
    font-size: 22px;
}

.docs-notice-new {
    border-left-color: #9b59b6;
    background: #faf5fc;
}

/* Postman: download the collection or copy its import link */
.postman-box { display: flex; flex-direction: column; gap: 8px; padding: 4px 0.75rem 8px; max-width: 320px; }
.postman-inline .postman-box { padding: 0; margin-bottom: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
.postman-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: left; }
.postman-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; }
.postman-primary { background: #ff6c37; border-color: #ff6c37; }
.postman-primary:hover { background: #e85a28; }
.postman-help { color: rgba(255, 255, 255, 0.85); font-size: 12.5px; line-height: 1.4; }
.postman-help code { color: #fff; background: rgba(255, 255, 255, 0.18); padding: 0 4px; border-radius: 3px; }
.docs-page .postman-btn { color: #335acb; border-color: #335acb; }
.docs-page .postman-btn:hover { background: #eef2ff; color: #335acb; }
.docs-page .postman-primary { background: #ff6c37; border-color: #ff6c37; color: #fff; }
.docs-page .postman-primary:hover { background: #e85a28; color: #fff; }
.docs-page .postman-help { color: #6c757d; flex-basis: 100%; }
.docs-page .postman-help code { color: #333; background: #f1f3f9; }


/* thin scroll bars, the same as the other TelcoMW tools (wgit_pos): 5px, no track, a soft rounded thumb */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent; } }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.docs-page ::-webkit-scrollbar-thumb { background: #cbd5e1; }
