.seconet-problem-reporter-dialog .modal-dialog {
    width: min(920px, calc(100vw - 30px));
}

.seconet-problem-reporter-help {
    margin-bottom: 14px;
    line-height: 1.45;
}

.seconet-problem-reporter-help-title {
    margin-bottom: 4px;
}

.seconet-problem-reporter-help-title .fas {
    margin-right: 4px;
}

.seconet-problem-reporter-autosave {
    margin-top: 7px;
    opacity: 0.85;
}

.seconet-problem-reporter-autosave .fas {
    margin-right: 4px;
}

.seconet-problem-reporter-context {
    margin-bottom: 16px;
}

.seconet-problem-reporter-attachments {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.seconet-problem-reporter-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--panel-border-color, #ddd);
    border-radius: 4px;
    padding: 6px 8px;
}

.seconet-problem-reporter-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seconet-problem-reporter-add-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seconet-problem-reporter .text-break {
    overflow-wrap: anywhere;
}

.seconet-problem-reporter-attachment-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.seconet-problem-reporter-attachment-preview {
    width: 96px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--panel-border-color, #ddd);
    border-radius: 4px;
    background: transparent;
    overflow: hidden;
    flex: 0 0 auto;
    cursor: pointer;
}

.seconet-problem-reporter-attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seconet-problem-reporter-attachment-icon {
    width: 28px;
    text-align: center;
    opacity: 0.65;
    flex: 0 0 auto;
}

.seconet-problem-reporter-attachment-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.seconet-problem-reporter-attachment-name {
    font-weight: 600;
}

.seconet-problem-reporter-attachment-filename {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-muted-color, #777);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seconet-problem-reporter-annotation-badge {
    display: inline-block;
    margin-top: 4px;
}

.seconet-problem-reporter-attachment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.seconet-problem-reporter-attachment-actions .btn-default {
    white-space: nowrap;
}

.seconet-problem-reporter-annotate-button {
    min-height: 40px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
}

.seconet-problem-annotator-dialog .modal-dialog {
    width: min(1400px, calc(100vw - 16px));
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
}

.seconet-problem-annotator-dialog .modal-content {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.seconet-problem-annotator-dialog .modal-header,
.seconet-problem-annotator-dialog .modal-footer {
    flex: 0 0 auto;
}

.seconet-problem-annotator-dialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.seconet-problem-annotator {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.seconet-problem-annotator-help {
    flex: 0 0 auto;
    margin-bottom: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.seconet-problem-annotator-toolbar {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
    z-index: 3;
    background: var(--body-bg, #fff);
}

.seconet-problem-annotator-tool-hint {
    flex: 1 1 320px;
    min-width: 220px;
}

.seconet-problem-annotator-workspace {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--panel-border-color, #ddd);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seconet-problem-annotator-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: crosshair;
    touch-action: none;
}

.seconet-problem-annotator-text-input {
    position: absolute;
    width: min(280px, calc(100% - 24px));
    z-index: 6;
    transform: translateY(-100%);
}

@media (max-width: 767px) {
    .seconet-problem-reporter-attachment {
        align-items: flex-start;
        flex-direction: column;
    }

    .seconet-problem-reporter-attachment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .seconet-problem-reporter-attachment-preview {
        width: 80px;
        height: 48px;
    }

    .seconet-problem-annotator-dialog .modal-dialog {
        width: calc(100vw - 10px);
        margin: 5px;
    }

}
