/* WP BCM – API documentation (public /api-docs and dashboard). */
.wb-docs-wrap { padding-block: 40px 90px; }
.wb-docs { display: grid; grid-template-columns: 250px 1fr; gap: 0; align-items: start; background: #fff; border-radius: 18px; border: 1px solid #e3e9f2; box-shadow: 0 10px 30px rgba(7, 26, 61, .06); overflow: visible; }
.wb-card--flush .wb-docs { border: 0; box-shadow: none; border-radius: 0; }
.wb-docs__nav { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 22px 14px; border-inline-end: 1px solid #e3e9f2; }
.wb-docs__nav nav { display: grid; gap: 2px; }
.wb-docs__nav-title { margin: 16px 10px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #9aa7bd; }
html[lang="ar"] .wb-docs__nav-title { letter-spacing: 0; font-size: 12px; }
.wb-docs__nav-title:first-child { margin-top: 0; }
.wb-docs__nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #36445e; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.wb-docs__nav a:hover { background: #f3f6fb; color: #1f5bff; }
.wb-docs__body { min-width: 0; padding: 10px 34px 30px; }
.wb-doc { padding: 28px 0; border-bottom: 1px solid #eef2f8; scroll-margin-top: 90px; }
.wb-doc:last-child { border-bottom: 0; }
.wb-doc h2 { font-size: 22px; margin: 0 0 10px; color: #071a3d; }
.wb-doc p { color: #36445e; }
.wb-doc pre { background: #040e24; color: #cfe1ff; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 12px 0; text-align: left; }
.wb-doc pre code { background: none; color: inherit; padding: 0; word-break: normal; white-space: pre; font-size: inherit; }
.wb-doc code { background: #eef2f8; color: #12306b; padding: 2px 6px; border-radius: 6px; font-size: 12.5px; }
.wb-doc__kv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: #f3f6fb; }
.wb-doc__kv span { font-weight: 700; color: #071a3d; }
.wb-doc__label { font-weight: 800; color: #071a3d; margin: 16px 0 4px; font-size: 14px; }
.wb-endpoint { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f3f6fb; margin-bottom: 12px; max-width: 100%; overflow-x: auto; }
.wb-endpoint code { background: none; padding: 0; white-space: nowrap; }
.wb-method { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; flex-shrink: 0; }
.wb-method--get { background: #12a150; }
.wb-method--post { background: #1f5bff; }
.wb-method--put, .wb-method--patch { background: #c97a06; }
.wb-method--delete { background: #dc2626; }
.wb-docs .wb-table-wrap { overflow-x: auto; margin: 12px 0; }
.wb-docs .wb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wb-docs .wb-table th { text-align: start; padding: 8px 10px; border-bottom: 1px solid #e3e9f2; color: #6b7a96; font-size: 12px; }
.wb-docs .wb-table td { padding: 8px 10px; border-bottom: 1px solid #eef2f8; vertical-align: top; color: #36445e; }
.wb-req { color: #dc2626; font-weight: 700; }
.wb-code-tabs { border-radius: 12px; overflow: hidden; background: #040e24; margin: 14px 0; }
.wb-code-tabs__bar { display: flex; gap: 4px; padding: 8px; background: #0b1a3a; flex-wrap: wrap; }
.wb-code-tabs__bar button { border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.wb-code-tabs__bar button.is-active { background: linear-gradient(135deg, #2f6bff, #22c7f0); color: #fff; }
.wb-code-tabs__copy { margin-inline-start: auto; display: inline-flex !important; align-items: center; gap: 6px; }
.wb-code-tabs pre { display: none; margin: 0; border-radius: 0; }
.wb-code-tabs pre.is-active { display: block; }
.wb-steps-list { padding-inline-start: 22px; display: grid; gap: 8px; color: #36445e; }
.wb-sdk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wb-sdk { display: grid; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid #e3e9f2; background: linear-gradient(135deg, #f6f9ff, #f0fbfe); color: #071a3d; }
.wb-sdk strong { font-size: 17px; }
.wb-sdk span { color: #6b7a96; font-size: 13.5px; }
.wb-sdk:hover { border-color: #2f6bff; }
.wb-hint { font-size: 13px; color: #6b7a96; }
@media (max-width: 900px) {
	.wb-docs { grid-template-columns: 1fr; }
	.wb-docs__nav { position: static; max-height: 260px; border-inline-end: 0; border-bottom: 1px solid #e3e9f2; }
	.wb-docs__body { padding: 6px 18px 20px; }
	.wb-sdk-grid { grid-template-columns: 1fr; }
}
