.report-image-card .card-body {
    padding: 0.75rem;
}

.report-image-dropzone {
    border: 2px dashed #aeb7c2;
    border-radius: 6px;
    min-height: 180px;
    background: #f8fafc;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.report-image-dropzone.report-image-dragover {
    border-color: #0d6efd;
    background: #eef6ff;
}

.report-image-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.report-image-actions .btn {
    min-height: 34px;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    white-space: nowrap;
}

.report-image-dropzone img {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.report-image-empty {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #56616f;
    font-size: 0.85rem;
}

.report-image-editor {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    flex-direction: column;
    background: #111827;
    color: #fff;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}

.report-image-editor.is-open {
    display: flex;
}

.report-image-editor-head,
.report-image-editor-actions {
    flex: 0 0 auto;
    padding: 0.5rem;
    background: #1f2937;
}

.report-image-editor-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
}

.report-image-editor-loading {
    position: absolute;
    inset: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    background: #000;
    z-index: 1;
}

.report-image-editor-loading i {
    font-size: 1.2rem;
}

.report-image-editor-canvas {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 8.5rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 8.5rem);
    background: #000;
    touch-action: none;
}

.report-image-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.report-image-editor-actions .btn {
    min-height: 38px;
    width: auto;
    min-width: 56px;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.report-image-editor-constraint {
    min-height: 38px;
    max-width: min(15rem, calc(100vw - 1rem));
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}

body.report-image-editor-open {
    overflow: hidden !important;
}
