hesabixWpTheme/assets/css/api-docs.css

1158 lines
23 KiB
CSS

/**
* مرجع API — Hesabix2
*/
.api-docs-breadcrumb a {
text-decoration: none;
}
.api-docs-hero-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
border-radius: 0.75rem;
font-size: 0.875rem;
font-weight: 600;
text-decoration: none;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.api-docs-hero-btn--ghost {
background: rgba(255, 255, 255, 0.12);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.35);
}
.api-docs-hero-btn--ghost:hover {
background: rgba(255, 255, 255, 0.22);
}
.api-docs-hero-btn--solid {
background: #fff;
color: var(--brand-600, #0284c7);
}
.api-docs-hero-btn--solid:hover {
background: #f0f9ff;
}
.api-docs-hero-stats li {
background: rgba(255, 255, 255, 0.15);
border-radius: 0.75rem;
padding: 0.5rem 0.875rem;
font-size: 0.8125rem;
}
.api-docs-hero-stats strong {
display: block;
font-size: 1.125rem;
font-weight: 700;
}
.api-docs-intro {
padding: 0.75rem 0;
}
.api-docs-intro__summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
cursor: pointer;
font-weight: 600;
color: #1e293b;
list-style: none;
padding: 0.5rem 0;
}
.api-docs-intro__summary::-webkit-details-marker {
display: none;
}
.api-docs-intro[open] .api-docs-intro__chevron {
transform: rotate(180deg);
}
.api-docs-intro__chevron {
flex-shrink: 0;
transition: transform 0.2s;
color: #64748b;
}
.api-docs-intro__body {
padding: 0 0 1.25rem;
max-height: 28rem;
overflow-y: auto;
}
.api-docs-loading {
text-align: center;
padding: 4rem 1rem;
}
.api-docs-loading__spinner {
width: 2.5rem;
height: 2.5rem;
margin: 0 auto 1rem;
border: 3px solid #e2e8f0;
border-top-color: var(--brand-500, #0ea5e9);
border-radius: 50%;
animation: api-docs-spin 0.8s linear infinite;
}
@keyframes api-docs-spin {
to { transform: rotate(360deg); }
}
.api-docs-error {
text-align: center;
padding: 3rem 1rem;
color: #b45309;
}
.api-docs-app {
display: flex;
flex-direction: column;
gap: 1rem;
}
.api-docs-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: flex-end;
padding: 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.api-docs-toolbar__search-wrap {
position: relative;
flex: 1 1 14rem;
min-width: 12rem;
}
.api-docs-search {
width: 100%;
padding: 0.625rem 2.75rem 0.625rem 1rem;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
font-size: 0.875rem;
background: #f8fafc;
}
.api-docs-search:focus {
outline: none;
border-color: var(--brand-500, #0ea5e9);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
background: #fff;
}
.api-docs-search-kbd {
position: absolute;
left: 0.5rem;
top: 50%;
transform: translateY(-50%);
font-size: 0.65rem;
color: #94a3b8;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 0.25rem;
padding: 0.1rem 0.35rem;
pointer-events: none;
}
.api-docs-toolbar__actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: flex-end;
}
.api-docs-field {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.api-docs-field--server .api-docs-input {
min-width: 14rem;
max-width: 22rem;
}
.api-docs-field--block {
width: 100%;
margin-bottom: 0.75rem;
}
.api-docs-field__label {
font-size: 0.75rem;
font-weight: 600;
color: #64748b;
}
.api-docs-input,
.api-docs-textarea {
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
font-size: 0.8125rem;
padding: 0.5rem 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
background: #fff;
}
.api-docs-input--full {
width: 100%;
}
.api-docs-textarea {
width: 100%;
resize: vertical;
min-height: 6rem;
}
.api-docs-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
border: 1px solid transparent;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.api-docs-btn--primary {
background: var(--brand-500, #0ea5e9);
color: #fff;
}
.api-docs-btn--primary:hover {
background: var(--brand-600, #0284c7);
}
.api-docs-btn--outline {
background: #fff;
border-color: #e2e8f0;
color: #334155;
}
.api-docs-btn--outline:hover {
border-color: var(--brand-500, #0ea5e9);
color: var(--brand-600, #0284c7);
}
.api-docs-btn--ghost {
background: transparent;
color: #64748b;
}
/* ارتفاع و اسکرول یکپارچهٔ explorer */
.api-docs-explorer {
--api-docs-sticky-top: 4.5rem;
--api-docs-workspace-h: clamp(22rem, calc(100dvh - 20rem), 42rem);
}
.api-docs-layout {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
height: var(--api-docs-workspace-h);
min-height: 22rem;
align-items: stretch;
}
@media (min-width: 1024px) {
.api-docs-layout {
grid-template-columns: minmax(11rem, 14rem) 1fr;
}
}
.api-docs-sidebar {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
overflow: hidden;
}
@media (min-width: 1024px) {
.api-docs-sidebar {
position: sticky;
top: var(--api-docs-sticky-top);
align-self: start;
max-height: var(--api-docs-workspace-h);
}
}
.api-docs-sidebar__inner {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
padding: 0.5rem;
}
.api-docs-tag-nav {
padding: 0;
overflow: visible;
}
.api-docs-tag-btn {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
text-align: right;
padding: 0.5rem 0.75rem;
border: none;
background: transparent;
border-radius: 0.5rem;
font-size: 0.8125rem;
color: #475569;
cursor: pointer;
transition: background 0.12s, color 0.12s;
}
.api-docs-tag-btn:hover,
.api-docs-tag-btn.is-active {
background: rgba(14, 165, 233, 0.1);
color: var(--brand-600, #0284c7);
font-weight: 600;
}
.api-docs-tag-btn__count {
font-size: 0.7rem;
color: #94a3b8;
background: #f1f5f9;
padding: 0.1rem 0.4rem;
border-radius: 999px;
}
.api-docs-panel {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
min-width: 0;
min-height: 0;
height: 100%;
}
@media (min-width: 1024px) {
.api-docs-panel {
grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
}
}
.api-docs-op-list-wrap {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
overflow: hidden;
}
.api-docs-detail-column {
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
min-width: 0;
}
.api-docs-op-list-title {
font-size: 0.875rem;
font-weight: 700;
color: #1e293b;
margin: 0;
flex-shrink: 0;
}
.api-docs-op-list {
list-style: none;
margin: 0;
padding: 0.25rem;
overflow: visible;
}
.api-docs-op-item {
margin: 0;
}
.api-docs-op-link {
display: flex;
align-items: flex-start;
gap: 0.5rem;
width: 100%;
text-align: right;
padding: 0.5rem 0.625rem;
border: none;
background: transparent;
border-radius: 0.5rem;
cursor: pointer;
font-size: 0.75rem;
color: #334155;
transition: background 0.12s;
}
.api-docs-op-link:hover,
.api-docs-op-link.is-active {
background: #f1f5f9;
}
.api-docs-op-link__path {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
direction: ltr;
text-align: left;
font-family: ui-monospace, monospace;
}
.api-docs-method {
flex-shrink: 0;
font-size: 0.65rem;
font-weight: 800;
text-transform: uppercase;
padding: 0.15rem 0.35rem;
border-radius: 0.25rem;
letter-spacing: 0.02em;
}
.api-docs-method--get { background: #dcfce7; color: #166534; }
.api-docs-method--post { background: #dbeafe; color: #1e40af; }
.api-docs-method--put { background: #ffedd5; color: #9a3412; }
.api-docs-method--patch { background: #f3e8ff; color: #6b21a8; }
.api-docs-method--delete { background: #fee2e2; color: #991b1b; }
.api-docs-method--head,
.api-docs-method--options { background: #f1f5f9; color: #475569; }
.api-docs-detail,
.api-docs-placeholder {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
min-width: 0;
flex: 1;
min-height: 0;
}
.api-docs-detail {
padding: 1.25rem 1.5rem;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
}
.api-docs-placeholder {
display: flex;
align-items: stretch;
justify-content: stretch;
padding: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
.api-docs-empty {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem 1.5rem;
max-width: 28rem;
margin: 0 auto;
}
.api-docs-empty__icon {
color: var(--brand-500, #0ea5e9);
opacity: 0.85;
margin-bottom: 1rem;
}
.api-docs-empty__title {
font-size: 1.0625rem;
font-weight: 700;
color: #1e293b;
margin: 0 0 0.5rem;
}
.api-docs-empty__lead {
font-size: 0.875rem;
color: #64748b;
line-height: 1.6;
margin: 0 0 1.25rem;
}
.api-docs-empty__steps {
list-style: none;
margin: 0 0 1.25rem;
padding: 0;
width: 100%;
text-align: right;
font-size: 0.8125rem;
color: #475569;
}
.api-docs-empty__steps li {
position: relative;
padding: 0.5rem 2rem 0.5rem 0.75rem;
margin-bottom: 0.35rem;
background: #f8fafc;
border-radius: 0.5rem;
border: 1px solid #e2e8f0;
}
.api-docs-empty__steps li::before {
content: counter(step);
counter-increment: step;
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
width: 1.25rem;
height: 1.25rem;
border-radius: 999px;
background: var(--brand-500, #0ea5e9);
color: #fff;
font-size: 0.65rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.api-docs-empty__steps {
counter-reset: step;
}
.api-docs-empty__hint {
font-size: 0.75rem;
font-weight: 600;
color: #94a3b8;
margin: 0 0 0.5rem;
width: 100%;
text-align: right;
}
.api-docs-empty__suggestions {
display: flex;
flex-direction: column;
gap: 0.35rem;
width: 100%;
}
.api-docs-empty__chip {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
text-align: right;
padding: 0.5rem 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
background: #fff;
font-size: 0.75rem;
color: #334155;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.api-docs-empty__chip:hover {
border-color: var(--brand-500, #0ea5e9);
background: rgba(14, 165, 233, 0.06);
}
.api-docs-empty__chip-path {
flex: 1;
min-width: 0;
direction: ltr;
text-align: left;
font-family: ui-monospace, monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.api-docs-detail__header {
margin-bottom: 1.25rem;
padding-bottom: 1rem;
border-bottom: 1px solid #f1f5f9;
}
.api-docs-back {
background: none;
border: none;
color: var(--brand-600, #0284c7);
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
margin-bottom: 0.75rem;
padding: 0;
}
.api-docs-detail__method-path {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.api-docs-path {
font-size: 0.875rem;
word-break: break-all;
color: #0f172a;
}
.api-docs-detail__title {
font-size: 1.25rem;
font-weight: 700;
color: #0f172a;
margin: 0 0 0.5rem;
}
.api-docs-detail__desc {
font-size: 0.875rem;
margin: 0;
}
.api-docs-section-title {
font-size: 0.9375rem;
font-weight: 700;
color: #1e293b;
margin: 1.25rem 0 0.75rem;
}
.api-docs-params-table {
width: 100%;
border-collapse: collapse;
font-size: 0.8125rem;
}
.api-docs-params-table th,
.api-docs-params-table td {
text-align: right;
padding: 0.5rem 0.625rem;
border-bottom: 1px solid #f1f5f9;
vertical-align: top;
}
.api-docs-params-table th {
color: #64748b;
font-weight: 600;
background: #f8fafc;
}
.api-docs-params-table code {
font-size: 0.75rem;
direction: ltr;
display: inline-block;
}
.api-docs-response-block {
margin-bottom: 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
overflow: hidden;
}
.api-docs-response-block summary {
padding: 0.5rem 0.75rem;
cursor: pointer;
font-weight: 600;
font-size: 0.8125rem;
background: #f8fafc;
}
.api-docs-response-block pre {
margin: 0;
padding: 0.75rem;
font-size: 0.75rem;
overflow-x: auto;
background: #0f172a;
color: #e2e8f0;
max-height: 12rem;
}
.api-docs-try {
margin-top: 1.5rem;
padding-top: 1.25rem;
border-top: 1px solid #e2e8f0;
}
.api-docs-try__actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.75rem;
}
.api-docs-try__result {
margin-top: 1rem;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
overflow: hidden;
}
.api-docs-try__result-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
padding: 0.5rem 0.75rem;
background: #f8fafc;
font-size: 0.75rem;
font-weight: 600;
}
.api-docs-result-pre {
margin: 0;
padding: 1rem;
font-size: 0.75rem;
max-height: 20rem;
overflow: auto;
background: #0f172a;
color: #cbd5e1;
white-space: pre-wrap;
word-break: break-word;
}
.api-docs-status--ok { color: #15803d; }
.api-docs-status--err { color: #b91c1c; }
.api-docs-dialog {
border: none;
border-radius: 1rem;
padding: 0;
max-width: 28rem;
width: calc(100% - 2rem);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.api-docs-dialog::backdrop {
background: rgba(15, 23, 42, 0.45);
}
.api-docs-dialog__inner {
padding: 1.5rem;
}
.api-docs-dialog__title {
font-size: 1.125rem;
font-weight: 700;
margin: 0 0 0.5rem;
}
.api-docs-dialog__actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
/* Markdown از OpenAPI */
.api-docs-markdown h1,
.api-docs-markdown h2,
.api-docs-markdown h3 {
font-weight: 700;
color: #0f172a;
margin: 1rem 0 0.5rem;
}
.api-docs-markdown h1 { font-size: 1.25rem; }
.api-docs-markdown h2 { font-size: 1.0625rem; }
.api-docs-markdown h3 { font-size: 0.9375rem; }
.api-docs-markdown p {
margin: 0.5rem 0;
}
.api-docs-markdown ul,
.api-docs-markdown ol {
margin: 0.5rem 0;
padding-right: 1.25rem;
}
.api-docs-markdown pre {
background: #0f172a;
color: #e2e8f0;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
overflow-x: auto;
font-size: 0.75rem;
direction: ltr;
text-align: left;
}
.api-docs-markdown code {
font-family: ui-monospace, monospace;
font-size: 0.8em;
background: #f1f5f9;
padding: 0.1rem 0.35rem;
border-radius: 0.25rem;
}
.api-docs-markdown pre code {
background: none;
padding: 0;
}
.api-docs-markdown table {
width: 100%;
border-collapse: collapse;
font-size: 0.8125rem;
margin: 0.75rem 0;
}
.api-docs-markdown th,
.api-docs-markdown td {
border: 1px solid #e2e8f0;
padding: 0.4rem 0.6rem;
text-align: right;
}
.api-docs-markdown th {
background: #f8fafc;
}
.api-docs-markdown hr {
border: none;
border-top: 1px solid #e2e8f0;
margin: 1rem 0;
}
.api-docs-markdown a {
color: var(--brand-600, #0284c7);
}
body.hesabix2-api-docs .site-content,
body.hesabix2-api-docs #content {
max-width: none;
padding: 0;
}
@media (max-width: 1023px) {
.api-docs-explorer {
--api-docs-workspace-h: auto;
}
.api-docs-layout {
height: auto;
}
.api-docs-sidebar {
max-height: 11rem;
position: static;
}
.api-docs-panel {
height: auto;
min-height: 18rem;
}
.api-docs-op-list-wrap {
max-height: 14rem;
height: auto;
}
.api-docs-detail-column {
min-height: 16rem;
}
.api-docs-panel.api-docs-panel--detail-open .api-docs-op-list-wrap {
display: none;
}
.api-docs-panel.api-docs-panel--detail-open .api-docs-placeholder {
display: none !important;
}
.api-docs-panel.api-docs-panel--detail-open .api-docs-detail {
min-height: 50vh;
}
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
body.hesabix2-api-docs.api-docs-search-focus .api-docs-search {
border-color: var(--brand-500, #0ea5e9);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
/* ——— v2 ——— */
.api-docs-quickstart__steps { list-style: none; }
.api-docs-quickstart__step {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 1rem;
padding: 1.25rem;
position: relative;
padding-top: 2.5rem;
}
.api-docs-quickstart__num {
position: absolute;
top: 0.75rem;
right: 0.75rem;
width: 1.75rem;
height: 1.75rem;
border-radius: 999px;
background: var(--brand-500, #0ea5e9);
color: #fff;
font-size: 0.75rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.api-docs-quickstart__link {
background: none;
border: none;
padding: 0;
cursor: pointer;
font: inherit;
}
.api-docs-group-nav {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
border-bottom: 1px solid #e2e8f0;
flex-shrink: 0;
}
.api-docs-tag-nav-wrap {
flex-shrink: 0;
}
.api-docs-group-btn {
text-align: right;
padding: 0.45rem 0.65rem;
border: none;
background: transparent;
border-radius: 0.5rem;
font-size: 0.8125rem;
font-weight: 600;
color: #475569;
cursor: pointer;
}
.api-docs-group-btn:hover,
.api-docs-group-btn.is-active {
background: rgba(14, 165, 233, 0.12);
color: var(--brand-600, #0284c7);
}
.api-docs-sidebar__label {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #94a3b8;
margin: 0 0 0.35rem;
padding: 0 0.5rem;
}
.api-docs-op-list-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid #f1f5f9;
}
.api-docs-op-list-scroller {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
.api-docs-load-more {
width: 100%;
padding: 0.5rem;
border: none;
border-top: 1px solid #f1f5f9;
background: #f8fafc;
font-size: 0.8125rem;
font-weight: 600;
color: var(--brand-600, #0284c7);
cursor: pointer;
}
.api-docs-load-more:hover { background: #f1f5f9; }
.api-docs-op-lock {
flex-shrink: 0;
font-size: 0.65rem;
opacity: 0.7;
}
.api-docs-mark {
background: #fef08a;
padding: 0 0.1em;
border-radius: 0.15rem;
}
.api-docs-auth-btn--active {
border-color: #15803d !important;
color: #15803d !important;
background: #f0fdf4 !important;
}
.api-docs-auth-badge {
color: #15803d;
font-size: 0.5rem;
margin-right: 0.25rem;
}
.api-docs-secured-badge {
display: inline-block;
font-size: 0.7rem;
font-weight: 700;
padding: 0.2rem 0.5rem;
border-radius: 0.35rem;
margin-bottom: 0.5rem;
}
.api-docs-secured-badge--yes { background: #fef3c7; color: #92400e; }
.api-docs-secured-badge--no { background: #dcfce7; color: #166534; }
.api-docs-code-samples { margin: 1rem 0; }
.api-docs-code-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.5rem;
}
.api-docs-code-tab {
padding: 0.35rem 0.75rem;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
background: #fff;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
}
.api-docs-code-tab.is-active {
background: var(--brand-500, #0ea5e9);
border-color: var(--brand-500, #0ea5e9);
color: #fff;
}
.api-docs-code-block {
background: #0f172a;
color: #e2e8f0;
padding: 1rem;
border-radius: 0.75rem;
font-size: 0.75rem;
overflow-x: auto;
max-height: 16rem;
margin: 0 0 0.5rem;
}
.api-docs-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
.api-docs-try-headers {
border: none;
margin: 0 0 1rem;
padding: 0;
}
.api-docs-try-headers__grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
gap: 0.5rem;
}
.api-docs-field--grow { grid-column: span 2; }
@media (max-width: 640px) {
.api-docs-field--grow { grid-column: span 1; }
}
.api-docs-toggle-readonly {
display: flex;
align-items: center;
gap: 0.35rem;
font-size: 0.75rem;
color: #64748b;
cursor: pointer;
white-space: nowrap;
}
.api-docs-cors-hint {
margin-top: 0.75rem;
padding: 0.75rem;
background: #fff7ed;
border: 1px solid #fed7aa;
border-radius: 0.5rem;
font-size: 0.8125rem;
color: #9a3412;
}
.api-docs-schemas-panel.hidden { display: none; }
.api-docs-schema-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
gap: 0.35rem;
max-height: 12rem;
overflow-y: auto;
}
.api-docs-schema-btn {
width: 100%;
text-align: left;
direction: ltr;
padding: 0.35rem 0.5rem;
border: 1px solid #e2e8f0;
border-radius: 0.35rem;
background: #fff;
font-size: 0.7rem;
cursor: pointer;
}
.api-docs-schema-btn:hover {
border-color: var(--brand-500, #0ea5e9);
color: var(--brand-600, #0284c7);
}
.api-docs-schema-detail {
margin-top: 1rem;
max-height: 20rem;
overflow: auto;
background: #0f172a;
color: #cbd5e1;
padding: 1rem;
border-radius: 0.75rem;
font-size: 0.75rem;
}
.api-docs-schema-search { max-width: 16rem; }
.api-docs-admin-details { margin-top: 0; }
.api-docs-dialog__session input { width: auto; }
/* placeholder: فقط وقتی جزئیات باز نیست */
.api-docs-detail-column:has(.api-docs-detail:not([hidden])) .api-docs-placeholder {
display: none !important;
}
.api-docs-detail[hidden] {
display: none !important;
}