.input-xxlarge {
    width: 720px;
}

.textarea-xxlarge {
    width: 720px;
    height: 300px;
}

select.autocomplete-xxlarge {
    width: 734px!important;
}

.input-xlarge {
    width: 520px;
}

/* Стили для карточек mermaid в Django admin */
.mermaid-card {
    border: 1px solid #bbb;
    border-radius: 10px;
    padding: 18px 22px;
    background: none !important;
    box-shadow: none !important;
    width: fit-content !important;
    height: fit-content !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    font-size: var(--mermaid-card-font-size, 32px);
    line-height: 1.5;
}

/* Стили для строк в карточках */
.mermaid-card-row {
    margin-bottom: 10px;
}

.mermaid-card-row:last-child {
    margin-bottom: 0;
}

/* Стили для меток (ключ, имя, описание) */
.mermaid-card-label {
    font-weight: 700;
    font-size: 1.1em;
}

/* Стили для ссылок в карточках */
.mermaid-card-link {
    color: #2a4d8f;
    text-decoration: underline;
}

.mermaid-card-link:hover {
    color: #1a3d7f;
    text-decoration: none;
}

/* Масштабирование SVG внутри mermaid для увеличения размера карточек */
.mermaid-wrapper {
    width: 100%;
    overflow-x: unset;
    padding-bottom: 16px;
}

.mermaid svg {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transform-origin: unset !important;
    display: block;
}
