.bsh-error-report-open {
    overflow: hidden;
}

.bsh-error-report [hidden] {
    display: none !important;
}

.bsh-error-report__float-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    padding: 11px 17px;
    border: 0;
    border-radius: 22px;
    background: #2f74d0;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.bsh-error-report__overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .58);
}

.bsh-error-report__modal {
    position: relative;
    width: min(680px, 100%);
    margin: 40px auto;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.bsh-error-report__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
}

.bsh-error-report__title {
    margin: 0 44px 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.bsh-error-report__hint,
.bsh-error-report__capture-note {
    color: #6b7280;
    font-size: 13px;
}

.bsh-error-report__form {
    margin-top: 22px;
}

.bsh-error-report__field {
    display: block;
    margin-bottom: 16px;
}

.bsh-error-report__field > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.bsh-error-report__field > span .bsh-error-report__required {
    display: inline;
    margin: 0;
    color: #d94b4b;
    font-weight: 700;
}

.bsh-error-report__field input,
.bsh-error-report__field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d5d9df;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    resize: vertical;
}

.bsh-error-report__field input:focus,
.bsh-error-report__field textarea:focus {
    outline: 2px solid rgba(47, 116, 208, .2);
    border-color: #2f74d0;
}

.bsh-error-report__selected-field textarea {
    background: #f6f7f9;
}

.bsh-error-report__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bsh-error-report__screenshot {
    padding: 14px;
    border: 1px dashed #cbd1d9;
    border-radius: 10px;
    background: #f8f9fb;
}

.bsh-error-report__capture,
.bsh-error-report__remove-shot,
.bsh-error-report__cancel,
.bsh-error-report__submit,
.bsh-error-report__editor-controls button {
    padding: 10px 15px;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.bsh-error-report__capture,
.bsh-error-report__remove-shot,
.bsh-error-report__cancel,
.bsh-error-report__editor-controls button {
    border: 1px solid #cbd1d9;
    background: #fff;
}

.bsh-error-report__submit,
.bsh-error-report__editor-save {
    border: 1px solid #2f74d0 !important;
    background: #2f74d0 !important;
    color: #fff;
}

.bsh-error-report__editor-controls button.is-active {
    border-color: #2f74d0;
    background: #eaf2fc;
    color: #175ca8;
}

.bsh-error-report__capture-note {
    margin-top: 8px;
}

.bsh-error-report__preview {
    display: block;
    max-width: 100%;
    max-height: 320px;
    margin-top: 14px;
    border: 1px solid #d5d9df;
    border-radius: 8px;
}

.bsh-error-report__preview[hidden] {
    display: none !important;
}

.bsh-error-report__error,
.bsh-error-report__success {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    white-space: pre-line;
}

.bsh-error-report__error {
    background: #fff0f0;
    color: #b42318;
}

.bsh-error-report__success {
    background: #ecfdf3;
    color: #067647;
}

.bsh-error-report__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.bsh-error-report button:disabled {
    opacity: .6;
    cursor: default;
}

.bsh-error-report__editor {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    background: #17191d;
    color: #fff;
}

.bsh-error-report__editor-toolbar {
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #24272d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.bsh-error-report__editor-help {
    margin-bottom: 10px;
    font-size: 14px;
}

.bsh-error-report__editor-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bsh-error-report__editor-stage {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 16px;
    overflow: auto;
}

.bsh-error-report__editor-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    cursor: crosshair;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
    touch-action: none;
    user-select: none;
}

.bsh-error-report__editor-canvas.is-arrow-mode {
    cursor: crosshair;
}

@media (max-width: 640px) {
    .bsh-error-report__overlay {
        padding: 10px;
    }

    .bsh-error-report__modal {
        margin: 10px auto;
        padding: 22px 16px;
    }

    .bsh-error-report__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bsh-error-report__float-button {
        right: 12px;
        bottom: 12px;
    }

    .bsh-error-report__editor-toolbar {
        padding: 10px;
    }

    .bsh-error-report__editor-controls button {
        padding: 8px 10px;
        font-size: 13px;
    }
}


/* Защита от глобальных стилей шаблона Aspro для кнопок редактора. */
.bsh-error-report .bsh-error-report__editor-controls button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 108px !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    overflow: visible !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
}

.bsh-error-report .bsh-error-report__editor-controls button:disabled {
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
}

.bsh-error-report .bsh-error-report__editor-controls .bsh-error-report__editor-save {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.bsh-error-report .bsh-error-report__editor-controls button::before,
.bsh-error-report .bsh-error-report__editor-controls button::after {
    display: none !important;
    content: none !important;
}

.bsh-error-report__editor-canvas {
    max-width: none;
    max-height: none;
    image-rendering: auto;
}


.bsh-error-report__attachments {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed #cbd1d9;
    border-radius: 10px;
    background: #f8f9fb;
}

.bsh-error-report__attachments-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.bsh-error-report__file-button {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.bsh-error-report__file-button input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bsh-error-report__file-button span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #cbd1d9;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    line-height: 1.2;
}

.bsh-error-report__file-button:hover span {
    border-color: #2f74d0;
}

.bsh-error-report__attachments-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.bsh-error-report__file-list {
    margin-top: 12px;
}

.bsh-error-report__file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid #e2e5e9;
}

.bsh-error-report__file-info {
    min-width: 0;
}

.bsh-error-report__file-name {
    overflow: hidden;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bsh-error-report__file-size {
    margin-top: 2px;
    color: #7b818b;
    font-size: 12px;
}

.bsh-error-report .bsh-error-report__file-remove {
    flex: 0 0 auto;
    padding: 6px 9px !important;
    border: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    font: inherit !important;
    font-size: 13px !important;
    cursor: pointer;
}
