/* Styles for report configuration interface */
.report-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.report-config-filters {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.report-config-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.report-config-filters select,
.report-config-filters input[type="text"] {
    min-width: 160px;
}

.report-groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
}

.modal-window label {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75em;
}
.modal-window input[type="text"],
.modal-window input[type="number"],
.modal-window input[type="color"],
.modal-window textarea {
    width: 100%;
}

/* Layout for report groups */
.qmap-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.qmap-card-grid > .qmap-chapter-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 300px;
}
.qmap-chapter-footer {
    margin-top: auto;
    padding: 0.6em;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qmap-chapter-card[draggable="true"] {
    cursor: move;
}

.qmap-chapter-card.dragging {
    opacity: 0.5;
}

.qmap-chapter-card.drag-over {
    outline: 2px dashed #666;
}
