/**
 * QuantumLayers Insights Panel Styles - Dark Mode
 * File: assets/insights-panel-dark.css
 */

/* ============================================
   INSIGHTS PANEL CONTAINER
   ============================================ */

.ql-insights-panel {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    border-radius: 2px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(139, 127, 219, 0.15);
}

.ql-insights-panel-header {
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.3);
}

.ql-insights-panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ql-insights-panel-header h2::before {
    content: '💡';
    font-size: 28px;
}

.ql-insights-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ql-insights-panel-body {
    padding: 30px;
}

/* ============================================
   HOLISTIC ANALYSIS SECTION
   ============================================ */

.ql-holistic-insight {
    background: linear-gradient(135deg, #2C2440 0%, #342850 100%);
    border: 2px solid rgba(139, 127, 219, 0.3);
    border-left: 4px solid #9B8FE8;
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(139, 127, 219, 0.2);
}

.ql-holistic-insight-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 127, 219, 0.3);
}

.ql-holistic-insight-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(139, 127, 219, 0.3));
}

.ql-holistic-insight-title {
    flex: 1;
    min-width: 0;
}

.ql-holistic-insight-title h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.2;
}

.ql-holistic-insight-title p {
    margin: 0;
    color: #9B8FE8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ql-holistic-importance-badge {
    padding: 10px 18px;
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.ql-holistic-insight-body {
    line-height: 1.8;
    color: #B8B8B8;
    font-size: 15px;
}

/* Markdown-style content in holistic analysis */
.ql-holistic-insight-body h1,
.ql-holistic-insight-body h2,
.ql-holistic-insight-body h3,
.ql-holistic-insight-body h4 {
    margin-top: 28px;
    margin-bottom: 14px;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.3;
}

.ql-holistic-insight-body h1:first-child,
.ql-holistic-insight-body h2:first-child,
.ql-holistic-insight-body h3:first-child {
    margin-top: 0;
}

.ql-holistic-insight-body h1 {
    font-size: 24px;
    border-bottom: 2px solid rgba(139, 127, 219, 0.3);
    padding-bottom: 10px;
    margin-top: 32px;
}

.ql-holistic-insight-body h2 {
    font-size: 21px;
    color: #9B8FE8;
}

.ql-holistic-insight-body h3 {
    font-size: 18px;
    color: #B8B8B8;
}

.ql-holistic-insight-body h4 {
    font-size: 16px;
    color: #9B8FE8;
}

.ql-holistic-insight-body p {
    margin: 14px 0;
    line-height: 1.8;
    color: #B8B8B8;
}

.ql-holistic-insight-body ul,
.ql-holistic-insight-body ol {
    margin: 16px 0;
    padding-left: 30px;
}

.ql-holistic-insight-body ul {
    list-style-type: disc;
}

.ql-holistic-insight-body ol {
    list-style-type: decimal;
}

.ql-holistic-insight-body li {
    margin: 10px 0;
    line-height: 1.7;
    color: #B8B8B8;
}

.ql-holistic-insight-body li::marker {
    color: #9B8FE8;
    font-weight: 700;
}

.ql-holistic-insight-body strong {
    color: #FFFFFF;
    font-weight: 700;
}

.ql-holistic-insight-body em {
    color: #B8B8B8;
    font-style: italic;
}

.ql-holistic-insight-body code {
    background: rgba(139, 127, 219, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9em;
    color: #9B8FE8;
    border: 1px solid rgba(139, 127, 219, 0.3);
}

.ql-holistic-insight-body blockquote {
    border-left: 4px solid #9B8FE8;
    padding-left: 20px;
    margin: 20px 0;
    color: #B8B8B8;
    font-style: italic;
    background: rgba(139, 127, 219, 0.1);
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
}

.ql-holistic-insight-body a {
    color: #9B8FE8;
    text-decoration: underline;
}

.ql-holistic-insight-body a:hover {
    color: #AA9EED;
}

/* ============================================
   INSIGHTS CONTROLS
   ============================================ */

.ql-insights-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.ql-insights-filter {
    flex: 1;
    min-width: 200px;
}

.ql-insights-filter select {
    width: 100%;
    border: 2px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.ql-insights-filter select:focus {
    outline: none;
    border-color: #8B7FDB;
    box-shadow: 0 0 0 2px rgba(139, 127, 219, 0.2);
}

.ql-insights-refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.3);
}

.ql-insights-refresh-btn:hover {
    background: linear-gradient(135deg, #8B7FDB 0%, #AA9EED 100%);
    box-shadow: 0 6px 16px rgba(139, 127, 219, 0.4);
}

.ql-insights-refresh-btn::before {
    content: '🔄';
    font-size: 16px;
}

.ql-user-prompt {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.ql-user-prompt:focus {
    outline: none;
    border-color: #8B7FDB;
    box-shadow: 0 0 0 3px rgba(139, 127, 219, 0.2);
}

.ql-user-prompt::placeholder {
    color: #666;
    font-style: italic;
}

/* ============================================
   INSIGHTS GRID
   ============================================ */

.ql-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ============================================
   INDIVIDUAL INSIGHT CARD
   ============================================ */

.ql-insight-card {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    border: 2px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Importance indicator bar */
.ql-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #7C6FD6 0%, #9B8FE8 100%);
    opacity: 0.8;
}

.ql-insight-card:hover {
    border-color: #8B7FDB;
}

/* Severity-based left border colors */
.ql-insight-card[data-severity="critical"]::before,
.ql-insight-card[data-severity="warning"]::before {
    background: linear-gradient(180deg, #EB5757 0%, #D84848 100%);
}

.ql-insight-card[data-severity="positive"]::before {
    background: linear-gradient(180deg, #6FCF97 0%, #5ABF85 100%);
}

.ql-insight-card[data-severity="info"]::before,
.ql-insight-card[data-severity="moderate"]::before {
    background: linear-gradient(180deg, #56CCF2 0%, #48B8DE 100%);
}

/* ============================================
   INSIGHT CARD HEADER
   ============================================ */

.ql-insight-header {
    padding: 20px 20px 15px 20px;
    background: rgba(139, 127, 219, 0.1);
    border-bottom: 1px solid rgba(139, 127, 219, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ql-insight-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(139, 127, 219, 0.3));
}

.ql-insight-title-group {
    flex: 1;
    min-width: 0;
}

.ql-insight-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.ql-insight-type {
    font-size: 11px;
    text-transform: uppercase;
    color: #AB9FF8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Additional styles for updated insight cards */
.ql-insight-title-section {
    flex: 1;
    min-width: 0;
}

.ql-insight-title-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.ql-insight-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #1a1a1a;
    color: #8b92A0;
}

.ql-insight-importance {
    margin-left: auto;
    padding: 6px 14px;
    background: #1a1a1a;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7583;
    white-space: nowrap;
    flex-shrink: 0;
}

.ql-insight-message {
    font-size: 15px;
    color: #576171;
    line-height: 1.6;
    margin: 16px 0;
}

.ql-insight-recommendation {
    background: #1a1a1a;
    border-left: 3px solid #6366f1;
    padding: 14px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.ql-insight-recommendation-label {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.ql-insight-recommendation-text {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}


.ql-importance-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(139, 127, 219, 0.3);
}

.ql-importance-badge.high {
    background: linear-gradient(135deg, #EB5757 0%, #D84848 100%);
}

.ql-importance-badge.medium {
    background: linear-gradient(135deg, #F2C94C 0%, #E0B73F 100%);
    color: #1A1A1A;
}

.ql-importance-badge.low {
    background: linear-gradient(135deg, #56CCF2 0%, #48B8DE 100%);
}

/* ============================================
   INSIGHT CARD BODY
   ============================================ */

.ql-insight-body {
    padding: 20px;
    flex: 1;
}

.ql-insight-message {
    color: #B8B8B8;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
}

.ql-insight-message strong {
    color: #FFFFFF;
    font-weight: 600;
}

.ql-insight-details {
    display: grid;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 127, 219, 0.2);
}

.ql-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.ql-detail-label {
    color: #B8B8B8;
    font-weight: 500;
}

.ql-detail-value {
    color: #FFFFFF;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ============================================
   INSIGHT CARD FOOTER
   ============================================ */

.ql-insight-footer {
    padding: 15px 20px;
    background: rgba(139, 127, 219, 0.05);
    border-top: 1px solid rgba(139, 127, 219, 0.2);
}

.ql-insight-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ql-btn-chart,
.ql-btn-explore {
    padding: 8px 16px;
    border: 1px solid rgba(139, 127, 219, 0.4);
    background: rgba(139, 127, 219, 0.1);
    color: #9B8FE8;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ql-btn-chart:hover,
.ql-btn-explore:hover {
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    border-color: #8B7FDB;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.3);
}

.ql-btn-chart::before {
    content: '📊';
}

.ql-btn-explore::before {
    content: '🔍';
}

/* ============================================
   INSIGHTS CONTROLS - MATCHING ANALYTICS.CSS STYLES
   ============================================ */

.ql-insights-controls-wrapper {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    border: 1px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 20px;
}

.ql-insights-controls-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.ql-insights-controls-row:last-child {
    margin-bottom: 0;
}

.ql-insights-control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ql-insights-control-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    padding: 10px 10px;
}

.ql-filter-column-selector,
.ql-filter-value,
.ql-max-insights {
    width: 100% !important;
    border: 1px solid rgba(139, 127, 219, 0.3) !important;
    border-radius: 2px !important;
    font-size: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
    transition: all 0.2s !important;
}

.ql-filter-column-selector:focus,
.ql-filter-value:focus,
.ql-max-insights:focus {
    outline: none;
    border-color: #8B7FDB;
    box-shadow: 0 0 0 2px rgba(139, 127, 219, 0.2);
}

.ql-max-insights {
    max-width: 120px;
}

/* Date Filter Selectors - Same styling as existing filter controls */
.ql-filter-date-column-selector,
.ql-filter-date-from-custom,
.ql-filter-date-to-custom,
.ql-filter-date-to-input,
.ql-filter-date-from-input {
    border: 1px solid rgba(139, 127, 219, 0.3) !important;
    border-radius: 2px !important;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-size: 15px;
    transition: all 0.2s;
    min-width: 250px;
}

/* Focus states */
.ql-filter-date-column-selector:focus,
.ql-filter-date-from-input:focus,
.ql-filter-date-to-input:focus,
.ql-filter-date-from-custom:focus,
.ql-filter-date-to-custom:focus {
    outline: none;
    border-color: #8B7FDB !important;
    box-shadow: 0 0 0 2px rgba(139, 127, 219, 0.2);
}


.ql-insights-column-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    color: #FFFFFF;
    min-width: 200px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    padding: 8px 15px;
}

.ql-insights-column-trigger:hover {
    border-color: #8B7FDB;
}

.ql-insights-column-trigger:active {
    background: rgba(139, 127, 219, 0.15);
}

.ql-multiselect-label {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ql-multiselect-count {
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* Multi-Select Modal */
.ql-insights-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ql-insights-modal.show {
    display: flex;
}

.ql-insights-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ql-insights-modal-dialog {
    position: relative;
    z-index: 10001;
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 127, 219, 0.3);
}

.ql-insights-modal-header {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(139, 127, 219, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ql-insights-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 600;
}

.ql-insights-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #B8B8B8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.2s;
}

.ql-insights-modal-close:hover {
    background: rgba(139, 127, 219, 0.2);
    color: #FFFFFF;
}

.ql-insights-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ql-insights-modal-body p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #B8B8B8;
}

#ql-insights-column-selector {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    font-size: 14px;
    min-height: 200px;
    max-height: 300px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

#ql-insights-column-selector option {
    padding: 6px;
    color: #FFFFFF;
}

.ql-insights-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(139, 127, 219, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.ql-insights-columns-done {
    padding: 10px 20px;
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.3);
}

.ql-insights-columns-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 127, 219, 0.4);
}

.ql-insights-columns-done:active {
    transform: translateY(0);
}

/* Loading State */
.ql-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #B8B8B8;
    font-size: 16px;
}

.ql-loading:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 127, 219, 0.2);
    border-top-color: #9B8FE8;
    border-radius: 50%;
    animation: ql-spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes ql-spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.ql-error {
    background: rgba(235, 87, 87, 0.15);
    border: 1px solid rgba(235, 87, 87, 0.4);
    color: #EB5757;
    padding: 15px;
    border-radius: 2px;
    margin: 10px 0;
}

.ql-no-insights {
    background: rgba(242, 201, 76, 0.15);
    border: 1px solid rgba(242, 201, 76, 0.4);
    color: #F2C94C;
    padding: 15px;
    border-radius: 2px;
    margin: 10px 0;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1400px) {
    .ql-insights-controls-row {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .ql-insights-control-group {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .ql-insights-panel,
    .ql-insights-controls-wrapper {
        padding: 15px;
        margin: 20px 0;
    }

    .ql-insights-grid {
        grid-template-columns: 1fr;
    }

    .ql-holistic-insight {
        padding: 20px;
    }
    
    .ql-max-insights {
        max-width: 100%;
    }

    .ql-insight-actions {
        width: 100%;
        justify-content: center;
    }
    
    .ql-insight-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ql-insight-icon {
        font-size: 24px;
    }
    
    .ql-importance-badge {
        align-self: flex-start;
    }

    .ql-insights-modal-dialog {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .ql-insights-panel-header h2::before {
        font-size: 24px;
    }
    
    .ql-insight-card h4 {
        font-size: 15px;
    }
    
    .ql-insight-message {
        font-size: 13px;
    }
    
    .ql-insight-actions {
        flex-direction: column;
    }
    
    .ql-btn-chart,
    .ql-btn-explore {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .ql-insights-panel {
        box-shadow: none;
        border: 1px solid #666;
    }
    
    .ql-insights-controls,
    .ql-insights-refresh-btn,
    .ql-insight-actions {
        display: none;
    }
    
    .ql-insight-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #666;
    }

    .ql-insights-grid {
        display: block;
    }
    
    .ql-insight-card {
        margin-bottom: 20px;
    }
}
