/* Hide expand/collapse carets for schema properties */
.model-box .model-toggle::after,
.model-container .model-toggle::after,
button[aria-label*="Expand"] svg,
button[aria-label*="Collapse"] svg,
.model-toggle svg {
    display: none !important;
}

/* Remove pointer cursor from non-interactive elements */
.model-box .model-toggle,
.model-container .model-toggle {
    cursor: default !important;
    pointer-events: none !important;
}

/* Keep properties expanded by default */
.model-box-control:not([aria-expanded="true"]) ~ .model-box,
.model-container-control:not([aria-expanded="true"]) ~ .model-container {
    display: block !important;
}

/* Force property rows to use table-like layout for alignment */
.model-box tr,
.model tr {
    display: table-row !important;
}

.model-box td,
.model td {
    display: table-cell !important;
    padding-right: 10px !important;
    vertical-align: baseline !important;
}

/* Make the type cell wrap its content inline */
.model-box .prop-type,
.model .prop-type {
    display: inline !important;
}

/* Hide the line break before nullable text */
.property.primitive br {
    display: none !important;
}

/* Force nullable and other description elements inline with type */
.model-box .property.primitive,
.model .property.primitive {
    display: inline !important;
    margin-left: 10px !important;
    font-style: italic !important;
    color: #888 !important;
    font-size: 12px !important;
}

.model-box .renderedMarkdown,
.model .renderedMarkdown {
    display: inline !important;
    margin-left: 8px !important;
}

.model-box .renderedMarkdown p,
.model .renderedMarkdown p {
    display: inline !important;
    margin: 0 !important;
}

/* Style the inline tag description from Swagger */
.opblock-tag small {
    display: inline !important;
    margin-left: 10px;
    font-size: 12px;
    font-weight: normal;
    color: #888;
}

.opblock-tag small .renderedMarkdown {
    display: inline !important;
}

.opblock-tag small .renderedMarkdown p {
    display: inline !important;
    margin: 0 !important;
}

/* Hide the long description section by default */
.opblock-tag-section .opblock-tag-section-description {
    display: none !important;
}

/* Style and show the long description ONLY when the section is expanded */
.opblock-tag-section.is-open .opblock-tag-section-description {
    display: block !important;
    margin: 0 0 0 0 !important;
    padding: 8px 20px 8px 45px !important;
    background: linear-gradient(to bottom, #f7f7f7 0%, #fafafa 100%) !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-top: 1px solid #e8e8e8 !important;
    color: #555 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-style: italic !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03) !important;
}

/* Style paragraphs in the description */
.opblock-tag-section-description p {
    margin: 0 !important;
}
