/* SPARK Chat Widget*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --spark-primary: #2563eb;
    --spark-primary-dark: #1e40af;
    --spark-gradient-start: #1e293b;
    --spark-gradient-end: #0f172a;
    --spark-bg: #ffffff;
    --spark-bg-secondary: #f8fafc;
    --spark-text-main: #1e293b;
    --spark-text-muted: #64748b;
    --spark-border: #e2e8f0;
    --spark-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --spark-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --spark-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --spark-radius-lg: 1.125rem;
    --spark-radius-md: 0.875rem;
    --spark-radius-sm: 0.625rem;
    --spark-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --spark-viewport-height: 100dvh;
    --spark-mobile-footer-padding: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Floating Button */
.spark-chat-button {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #2361e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(35, 97, 231, 0.3);
    transition: var(--spark-transition);
    z-index: 1000;
    border: none;
    overflow: hidden;
}

.spark-chat-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 20px rgba(35, 97, 231, 0.4);
}

.spark-chat-button:active {
    transform: scale(0.95);
}

.spark-chat-btn-content {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.25rem;
}

.spark-chat-button.active {
    transform: rotate(90deg);
    background: #ef4444;
}

.spark-chat-button.active .spark-chat-btn-content i::before {
    content: "\f00d";
    /* FontAwesome times icon */
}

/* Widget Container - Native Chat App Style */
.spark-chat-widget {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: min(400px, calc(100vw - 2rem));
    height: min(650px, calc(var(--spark-viewport-height, 100vh) - 8rem));
    max-height: calc(var(--spark-viewport-height, 100vh) - 8rem);
    background: #f0f2f5;
    /* Native chat background */
    border-radius: var(--spark-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: var(--spark-transition);
    border: none;
    font-family: var(--font-primary);
    container-type: inline-size;
    -webkit-tap-highlight-color: transparent;
}

.spark-chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.spark-chat-header {
    position: relative;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--navbar-primary-color, #0078d4), var(--navbar-secondary-color, #005a9e));
    color: white;
    overflow: hidden;
}

.spark-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.spark-header-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    z-index: 2;
}

.spark-avatar-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.spark-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: white;
}

.spark-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid var(--spark-gradient-end);
    border-radius: 50%;
}

.spark-header-info {
    flex: 1;
}

.spark-title-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: 0.125rem;
}

.spark-title-row h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    color: #ffffff !important;
}

.spark-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
}

.spark-subtitle-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.86);
}

.spark-separator {
    opacity: 0.4;
}

.spark-header-actions {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

.spark-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #f8fbff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.spark-action-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.spark-action-btn:focus-visible {
    outline: 2px solid rgba(191, 219, 254, 0.95);
    outline-offset: 2px;
}

.spark-action-btn.info-btn {
    color: #ffffff;
}

.spark-action-btn.close-btn {
    background: rgba(15, 23, 42, 0.2);
    border-color: rgba(255, 255, 255, 0.22);
}

.spark-action-btn.close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(254, 202, 202, 0.65);
    color: #ffffff;
}

/* Disclaimer content inside standard SPARK modal */
#sparkDisclaimerModal .modal-spark {
    max-width: 540px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25);
}

#sparkDisclaimerModal .modal-spark-header {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #dbeafe;
}

#sparkDisclaimerModal .modal-spark-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
}

#sparkDisclaimerModal .modal-spark-close {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    padding: 0.375rem;
}

#sparkDisclaimerModal .modal-spark-close:hover {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.18);
}

#sparkDisclaimerModal .modal-spark-title i {
    color: #1d4ed8;
}

#sparkDisclaimerModal .modal-spark-footer {
    border-top: 1px solid #dbeafe;
    background: #f8fbff;
}

.spark-disclaimer-body {
    color: #1e293b;
    font-size: 0.875rem;
    line-height: 1.45;
}

.spark-disclaimer-body p {
    margin: 0 0 0.75rem 0;
}

.spark-disclaimer-body p:last-child {
    margin-bottom: 0;
}

/* Messages Area - Native Chat Style */
.spark-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--spacing-4);
    padding-bottom: 90px;
    /* Space for floating input */
    background: #f0f2f5;
    /* Native chat app background */
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.spark-chat-welcome-spacer {
    height: 0.5rem;
}

.spark-chat-message {
    display: flex;
    gap: var(--spacing-2);
    max-width: 85%;
    animation: slideUp 0.3s ease-out forwards;
    min-width: 0;
}

.spark-chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.spark-chat-message-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--spark-text-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spark-chat-message.user .spark-chat-message-avatar {
    display: none;
}

.spark-chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    max-width: 100%;
}

.spark-chat-message-bubble-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.spark-chat-message-bubble {
    padding: 0.625rem 0.875rem;
    border-radius: 18px;
    font-size: 0.9375rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.spark-copy-btn {
    background: transparent;
    border: none;
    color: var(--spark-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--spark-transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.spark-chat-message-bubble-wrapper:hover .spark-copy-btn {
    opacity: 1;
}

.spark-copy-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--spark-primary);
}

.spark-copy-btn.success {
    color: #22c55e !important;
}

.spark-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.625rem;
}

.spark-message-action-btn {
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spark-message-action-btn:hover {
    border-color: #0078d4;
    color: #0078d4;
    background: #eff6ff;
}

@media (max-width: 768px) {
    .spark-copy-btn {
        opacity: 0.6;
    }
}

.spark-chat-message.assistant .spark-chat-message-bubble {
    background: white;
    color: var(--spark-text-main);
    border-top-left-radius: 4px;
}

.spark-chat-message.user .spark-chat-message-bubble {
    background: #0078d4;
    color: white;
    border-top-right-radius: 4px;
}

.spark-chat-message-time {
    font-size: 0.65rem;
    color: var(--spark-text-muted);
    margin-top: 0.125rem;
    opacity: 0.7;
}

.spark-chat-message.user .spark-chat-message-time {
    text-align: right;
}

/* Typing Indicator - Floating with Logo Animation */
.spark-chat-typing-container {
    position: absolute;
    bottom: 70px;
    left: 1rem;
    right: auto;
    padding: 0;
    display: none;
    z-index: 100;
}

.spark-chat-typing-container.active {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: fadeIn 0.3s ease;
}

/* Logo typing indicator - shown on both desktop and mobile */
.spark-typing-logo-mobile {
    display: block;
    background: none;
    border: none;
    box-shadow: none;
}

.spark-typing-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: pulseRotate 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 120, 212, 0.4));
}

/* Hide dots bubble, use logo instead */
.spark-typing-bubble {
    display: none;
}

@keyframes pulseRotate {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 8px rgba(0, 120, 212, 0.4));
    }

    50% {
        transform: scale(1.15) rotate(180deg);
        filter: drop-shadow(0 4px 12px rgba(0, 120, 212, 0.6));
    }

    100% {
        transform: scale(1) rotate(360deg);
        filter: drop-shadow(0 2px 8px rgba(0, 120, 212, 0.4));
    }
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.spark-typing-status {
    font-size: 0.8125rem;
    color: #475569;
    font-weight: var(--font-weight-medium);
    transition: opacity 0.3s ease;
}

/* Footer / Input Area - Floating Native Style */
.spark-chat-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: transparent;
    border-top: none;
    backdrop-filter: blur(12px);
}

.spark-chat-input-form {
    width: 100%;
    margin: 0;
}

.spark-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: none;
    border-radius: 30px;
    padding: 0.25rem 0.25rem 0.25rem 0.5rem;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    min-height: 46px;
}

.spark-input-wrapper:focus-within {
    background: white;
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.spark-chat-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
    min-width: 0;
    -webkit-text-size-adjust: 100%;
}

.spark-chat-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.spark-chat-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.spark-chat-input::-webkit-input-placeholder {
    color: #94a3b8;
}

.spark-chat-input::-moz-placeholder {
    color: #94a3b8;
    opacity: 1;
}

.spark-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: var(--spark-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    transition: all 0.2s;
    margin: 0.125rem;
    touch-action: manipulation;
}

.spark-send-btn.active {
    background: #0078d4;
    color: white;
    cursor: pointer;
}

.spark-send-btn.active:hover {
    background: #006cbd;
    transform: scale(1.05);
}

.spark-send-btn.loading {
    background: #94a3b8;
    color: #ffffff;
    cursor: wait;
}

.spark-shortcuts-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.spark-footer-note {
    display: none;
    /* Hidden for cleaner native look */
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Responsive & Mobile Optimization */
@media (max-width: 768px) {
    .spark-chat-widget {
        width: 100%;
        height: var(--spark-viewport-height, 100dvh);
        max-height: var(--spark-viewport-height, 100dvh);
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 9999;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .spark-chat-widget.active {
        transform: translateY(0);
    }

    /* Adjust header for mobile */
    .spark-chat-header {
        padding: var(--spacing-4);
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    /* Adjust messages area */
    .spark-chat-messages {
        padding: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* Adjust footer for mobile */
    .spark-chat-footer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0.625rem 0.75rem var(--spark-mobile-footer-padding);
        background: linear-gradient(180deg, rgba(240, 242, 245, 0) 0%, rgba(240, 242, 245, 0.88) 18%, #f0f2f5 48%);
    }

    /* Floating button position on mobile */
    .spark-chat-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        box-shadow: 0 4px 12px rgba(35, 97, 231, 0.4);
    }

    .spark-chat-btn-content {
        font-size: 1.1rem;
    }

    /* Larger touch targets */
    .spark-action-btn {
        width: 40px;
        height: 40px;
    }

    .spark-send-btn {
        width: 40px;
        height: 40px;
    }

    .spark-chat-input {
        font-size: 16px;
        /* Prevent iOS zoom */
        line-height: 1.5;
    }
}

/* Report Cards Styling */
.spark-report-card {
    background: white;
    border: 1px solid var(--spark-border);
    border-radius: var(--spark-radius-md);
    overflow: hidden;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.spark-report-card:hover {
    border-color: var(--spark-primary);
    box-shadow: var(--spark-shadow-md);
}

.spark-report-card-header {
    background: var(--spark-bg-secondary);
    padding: 0.75rem;
    border-bottom: 1px solid var(--spark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spark-report-card-title {
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    color: var(--spark-text-main);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.spark-report-card-body {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2);
}

.spark-report-stat {
    font-size: 0.75rem;
    color: var(--spark-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.spark-report-card-footer {
    padding: 0.5rem 0.75rem;
    background: var(--spark-bg-secondary);
    border-top: 1px solid var(--spark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spark-report-view-btn {
    font-size: 0.75rem;
    color: var(--spark-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.spark-report-view-btn:hover {
    text-decoration: underline;
}

/* Charts */
.spark-chart-wrapper {
    background: white;
    border: 1px solid var(--spark-border);
    border-radius: var(--spark-radius-md);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* Chart Expand Button */
.spark-chart-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.spark-chart-expand-btn {
    background: var(--spark-bg-secondary);
    border: 1px solid var(--spark-border);
    color: var(--spark-text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: var(--spark-radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--spark-transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.spark-chart-expand-btn:hover {
    background: var(--spark-primary);
    color: white;
    border-color: var(--spark-primary);
    transform: translateY(-1px);
}

.spark-chart-expand-btn i {
    font-size: 0.875rem;
}

/* Fullscreen Chart Overlay */
.spark-chart-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spark-chart-fullscreen-overlay.active {
    opacity: 1;
}

.spark-chart-fullscreen-container {
    background: white;
    border-radius: var(--spark-radius-lg);
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spark-chart-fullscreen-overlay.active .spark-chart-fullscreen-container {
    transform: scale(1);
}

.spark-chart-fullscreen-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--spark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--spark-bg-secondary);
}

.spark-chart-fullscreen-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--spark-text-main);
}

.spark-chart-close-btn {
    background: transparent;
    border: none;
    color: var(--spark-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--spark-transition);
}

.spark-chart-close-btn:hover {
    background: var(--spark-bg-secondary);
    color: var(--spark-text-main);
    transform: rotate(90deg);
}

.spark-chart-fullscreen-body {
    flex: 1;
    padding: 2rem;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spark-chart-fullscreen-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 700px;
}

/* Responsive Fullscreen Chart */
@media (max-width: 768px) {
    .spark-chart-fullscreen-overlay {
        padding: var(--spacing-4);
    }

    .spark-chart-fullscreen-container {
        height: 95vh;
        max-height: none;
    }

    .spark-chart-fullscreen-header {
        padding: 1rem 1.5rem;
    }

    .spark-chart-fullscreen-header h3 {
        font-size: 1.25rem;
    }

    .spark-chart-fullscreen-body {
        padding: var(--spacing-4);
    }

    .spark-chart-fullscreen-canvas {
        max-height: none;
    }
}

/* Animation for chart appearance */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spark-chart-wrapper {
    animation: chartFadeIn 0.4s ease-out;
}

/* Improve chart wrapper styling */
.spark-charts-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    margin-top: 0.75rem;
}

.spark-chart-wrapper {
    background: white;
    border: 1px solid var(--spark-border);
    border-radius: var(--spark-radius-md);
    padding: var(--spacing-4);
    transition: var(--spark-transition);
}

.spark-chart-wrapper:hover {
    box-shadow: var(--spark-shadow-md);
    border-color: var(--spark-primary);
}

/* D3 Chart Container */
.spark-d3-chart-container {
    width: 100%;
    height: 280px;
    min-height: 200px;
    position: relative;
}

.spark-d3-chart-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* D3 Fullscreen Chart */
.spark-d3-chart-fullscreen {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.spark-d3-chart-fullscreen svg {
    width: 100%;
    height: 100%;
}

/* D3 Chart Axes */
.spark-d3-chart-container .x-axis path,
.spark-d3-chart-container .y-axis path,
.spark-d3-chart-fullscreen .x-axis path,
.spark-d3-chart-fullscreen .y-axis path {
    stroke: #e2e8f0;
}

.spark-d3-chart-container .x-axis line,
.spark-d3-chart-container .y-axis line,
.spark-d3-chart-fullscreen .x-axis line,
.spark-d3-chart-fullscreen .y-axis line {
    stroke: #e2e8f0;
}

/* D3 Chart Grid */
.spark-d3-chart-container .grid line,
.spark-d3-chart-fullscreen .grid line {
    stroke: #e2e8f0;
    stroke-dasharray: 3, 3;
}

/* D3 Chart Bars */
.spark-d3-chart-container .bar,
.spark-d3-chart-fullscreen .bar {
    transition: fill 0.2s ease;
}

/* D3 Chart Points */
.spark-d3-chart-container .point,
.spark-d3-chart-fullscreen .point {
    transition: r 0.2s ease, fill 0.2s ease;
}

/* D3 Chart Lines */
.spark-d3-chart-container .line,
.spark-d3-chart-fullscreen .line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* D3 Chart Area */
.spark-d3-chart-container .area,
.spark-d3-chart-fullscreen .area {
    opacity: 0.8;
}

/* D3 Chart Slices (Pie/Doughnut) */
.spark-d3-chart-container .slice,
.spark-d3-chart-fullscreen .slice {
    transition: d 0.2s ease;
}

/* D3 Chart Legend */
.spark-d3-chart-container .legend text,
.spark-d3-chart-fullscreen .legend text {
    font-size: 11px;
    fill: #64748b;
}

/* D3 Chart Title */
.spark-chart-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    fill: #1e293b;
}

/* D3 Data Labels */
.spark-d3-chart-container .data-label,
.spark-d3-chart-fullscreen .data-label {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    fill: #1e293b;
    pointer-events: none;
}

/* Legacy canvas support (fallback) */
.spark-chart-canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
}


/* Shortcuts Button */
.spark-shortcuts-btn {
    background: transparent;
    border: none;
    color: var(--spark-text-muted);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--spark-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--spark-radius-sm);
    touch-action: manipulation;
}

.spark-shortcuts-btn:hover {
    background: var(--spark-bg-secondary);
    color: var(--spark-primary);
}

.spark-shortcuts-btn.active {
    background: var(--spark-primary);
    color: white;
}

.spark-shortcuts-btn i {
    font-size: 1.125rem;
}

/* Shortcuts Panel */
.spark-shortcuts-panel {
    position: fixed;
    bottom: 6.5rem;
    right: 434px;
    /* 380px (widget) + 32px (margin) + 22px (gap) */
    width: 320px;
    max-height: 600px;
    background: white;
    border-radius: var(--spark-radius-lg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transform: translateX(30px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    border: 1px solid var(--spark-border);
}

.spark-shortcuts-panel.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Large screens - ensure panel is visible */
@media (min-width: 1400px) {
    .spark-shortcuts-panel {
        right: 434px;
    }
}

/* Medium screens - adjust position */
@media (min-width: 1100px) and (max-width: 1399px) {
    .spark-shortcuts-panel {
        right: 434px;
        width: 280px;
    }
}

/* Tablet and small screens - show as overlay */
@media (max-width: 1099px) {
    .spark-shortcuts-panel {
        right: 2rem;
        left: 2rem;
        width: auto;
        bottom: 8rem;
        transform: translateY(20px) scale(0.95);
        max-height: calc(100vh - 10rem);
    }

    .spark-shortcuts-panel.active {
        transform: translateY(0) scale(1);
    }
}

.spark-shortcuts-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--spark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--spark-bg-secondary);
}

.spark-shortcuts-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--spark-text-main);
}

.spark-shortcuts-close {
    background: transparent;
    border: none;
    color: var(--spark-text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--spark-transition);
}

.spark-shortcuts-close:hover {
    background: var(--spark-bg);
    color: var(--spark-text-main);
}

.spark-shortcuts-content {
    padding: 0.75rem;
    max-height: 540px;
    overflow-y: auto;
}

/* Shortcut Category */
.spark-shortcut-category {
    margin-bottom: var(--spacing-4);
}

.spark-shortcut-category:last-child {
    margin-bottom: 0;
}

.spark-shortcut-category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.5rem 0.75rem;
    background: var(--spark-bg-secondary);
    border-radius: var(--spark-radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--spark-text-main);
}

.spark-shortcut-category-header i {
    font-size: 0.875rem;
    color: var(--spark-primary);
}

.spark-shortcut-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-left: 0.5rem;
}

.spark-shortcut-btn {
    background: white;
    border: 1px solid var(--spark-border);
    color: var(--spark-text-main);
    padding: 0.625rem 0.875rem;
    border-radius: var(--spark-radius-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--spark-transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    text-align: left;
    width: 100%;
}

.spark-shortcut-btn:hover {
    background: var(--spark-bg-secondary);
    border-color: var(--spark-primary);
    color: var(--spark-primary);
    transform: translateX(4px);
}

.spark-shortcut-btn i {
    font-size: 0.75rem;
    color: var(--spark-text-muted);
    flex-shrink: 0;
}

.spark-shortcut-btn:hover i {
    color: var(--spark-primary);
}

.spark-shortcut-btn.selected {
    background: var(--spark-primary);
    color: white;
    border-color: var(--spark-primary);
}

.spark-shortcut-btn.selected i {
    color: white;
}

.spark-shortcut-btn span {
    flex: 1;
    line-height: 1.4;
}

/* Scrollbar for shortcuts */
.spark-shortcuts-content::-webkit-scrollbar {
    width: 6px;
}

.spark-shortcuts-content::-webkit-scrollbar-track {
    background: var(--spark-bg-secondary);
    border-radius: 3px;
}

.spark-shortcuts-content::-webkit-scrollbar-thumb {
    background: var(--spark-border);
    border-radius: 3px;
}

.spark-shortcuts-content::-webkit-scrollbar-thumb:hover {
    background: var(--spark-text-muted);
}

/* Animation for shortcut buttons */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spark-shortcuts-panel.active .spark-shortcut-btn {
    animation: slideInRight 0.3s ease-out backwards;
}

.spark-shortcuts-panel.active .spark-shortcut-category:nth-child(1) .spark-shortcut-btn {
    animation-delay: 0.05s;
}

.spark-shortcuts-panel.active .spark-shortcut-category:nth-child(2) .spark-shortcut-btn {
    animation-delay: 0.1s;
}

.spark-shortcuts-panel.active .spark-shortcut-category:nth-child(3) .spark-shortcut-btn {
    animation-delay: 0.15s;
}

.spark-shortcuts-panel.active .spark-shortcut-category:nth-child(4) .spark-shortcut-btn {
    animation-delay: 0.2s;
}

/* Tablet and mobile responsive */
@media (max-width: 768px) {
    .spark-shortcuts-content {
        max-height: calc(70vh - 60px);
    }

    .spark-shortcut-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .spark-shortcut-category-header {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
}


/* ============================================
   MOBILE NATIVE CHAT EXPERIENCE
   ============================================ */

/* Mobile Full-Screen Chat Mode */
@media (max-width: 768px) {

    /* Full screen takeover - true fullscreen */
    .spark-chat-widget {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw !important;
        height: var(--spark-viewport-height, 100dvh) !important;
        max-height: var(--spark-viewport-height, 100dvh) !important;
        border-radius: 0 !important;
        transform: translateY(100%);
        opacity: 1;
        z-index: 99999 !important;
        /* Ensure it's above everything */
        background: #f0f2f5;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .spark-chat-widget.active {
        transform: translateY(0);
    }

    /* Prevent body scroll when chat is open */
    body.spark-chat-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        overscroll-behavior: none;
    }

    /* Native-style header */
    .spark-chat-header {
        padding: 0.75rem 1rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .spark-header-content {
        width: 100%;
    }

    .spark-avatar-container {
        width: 40px;
        height: 40px;
    }

    .spark-title-row h5 {
        font-size: 0.9375rem;
    }

    .spark-subtitle-row {
        font-size: 0.6875rem;
    }

    .spark-badge {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.25rem;
    }

    /* Close button as back arrow on mobile */
    .spark-action-btn.close-btn {
        width: 36px;
        height: 36px;
        margin-right: -0.25rem;
    }

    .spark-action-btn.close-btn i::before {
        content: "\f053";
        /* chevron-left */
    }

    /* Message bubbles - native style */
    .spark-chat-message {
        max-width: 85%;
        margin-bottom: 0.25rem;
    }

    .spark-chat-message-avatar {
        width: 24px;
        height: 24px;
    }

    .spark-chat-message-time {
        font-size: 0.625rem;
        margin-top: 0.125rem;
    }

    .spark-shortcuts-btn {
        padding: 0.625rem;
    }

    /* Typing indicator position on mobile - above input */
    .spark-chat-typing-container {
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        left: 0.75rem;
        right: 0.75rem;
        z-index: 10;
    }

    /* Adjust messages padding to account for fixed footer */
    .spark-chat-messages {
        padding-bottom: 0.75rem !important;
    }

    /* Footer stays at bottom */
    .spark-chat-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 0.625rem 0.75rem var(--spark-mobile-footer-padding);
        background: linear-gradient(180deg, rgba(240, 242, 245, 0) 0%, rgba(240, 242, 245, 0.92) 18%, #f0f2f5 46%);
        z-index: 100;
    }

    .spark-input-wrapper {
        min-height: 52px;
        border-radius: 18px;
        padding: 0.375rem 0.375rem 0.375rem 0.625rem;
    }

    .spark-chat-input {
        min-height: 44px;
        font-size: 16px !important;
    }

    /* Floating button - smaller on mobile */
    .spark-chat-button {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        right: 1rem;
        width: 56px;
        height: 56px;
        box-shadow: 0 4px 12px rgba(35, 97, 231, 0.35);
    }

    .spark-chat-btn-content {
        font-size: 1.25rem;
    }

    /* Report cards - compact on mobile */
    .spark-report-cards {
        gap: var(--spacing-2);
    }

    .spark-report-card {
        margin-top: 0.375rem;
    }

    .spark-report-card-header {
        padding: 0.625rem;
    }

    .spark-report-card-body {
        padding: 0.625rem;
        gap: 0.375rem;
    }

    .spark-report-card-footer {
        padding: 0.375rem 0.625rem;
    }

    /* Charts - responsive on mobile */
    .spark-chart-wrapper {
        padding: 0.625rem;
        margin-top: 0.375rem;
    }

    .spark-d3-chart-container {
        height: 220px;
        min-height: 180px;
    }

    .spark-chart-expand-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
    }

    /* Fullscreen chart on mobile */
    .spark-chart-fullscreen-overlay {
        padding: 0;
    }

    .spark-chart-fullscreen-container {
        border-radius: 0;
        height: 100%;
        max-height: none;
    }

    .spark-chart-fullscreen-header {
        padding: 0.75rem 1rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    }

    .spark-chart-fullscreen-header h3 {
        font-size: 1rem;
    }

    .spark-chart-fullscreen-body {
        padding: 0.75rem;
    }

    .spark-d3-chart-fullscreen {
        min-height: 300px;
    }

    /* Shortcuts panel - bottom sheet on mobile */
    .spark-shortcuts-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(72vh, calc(var(--spark-viewport-height, 100dvh) - 5rem));
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .spark-shortcuts-panel.active {
        transform: translateY(0);
    }

    .spark-shortcuts-header {
        padding: var(--spacing-4);
        border-radius: 20px 20px 0 0;
    }

    /* Drag handle indicator */
    .spark-shortcuts-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }

    .spark-shortcuts-content {
        max-height: calc(min(72vh, calc(var(--spark-viewport-height, 100dvh) - 5rem)) - 60px);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .spark-shortcut-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }

    .spark-shortcut-category-header {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 10px;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .spark-chat-messages {
        padding: 0.5rem;
    }

    .spark-chat-message {
        max-width: 90%;
    }

    .spark-chat-message-bubble {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .spark-avatar-container {
        width: 36px;
        height: 36px;
    }

    .spark-title-row h5 {
        font-size: 0.875rem;
    }

    .spark-d3-chart-container {
        height: 180px;
        min-height: 150px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .spark-chat-header {
        padding: var(--spacing-2) var(--spacing-4);
        padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.5rem + env(safe-area-inset-right, 0px));
        min-height: 50px;
    }

    .spark-avatar-container {
        width: 32px;
        height: 32px;
    }

    .spark-chat-messages {
        padding: var(--spacing-2) var(--spacing-4);
        padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.5rem + env(safe-area-inset-right, 0px));
    }

    .spark-chat-footer {
        padding: 0.375rem 1rem;
        padding-left: calc(0.375rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.375rem + env(safe-area-inset-right, 0px));
        padding-bottom: calc(0.375rem + env(safe-area-inset-bottom, 0px));
    }

    .spark-shortcuts-panel {
        max-height: 80vh;
    }
}

/* Touch feedback for interactive elements */
@media (hover: none) and (pointer: coarse) {
    .spark-chat-button:active {
        transform: scale(0.92);
    }

    .spark-send-btn.active:active {
        transform: scale(0.92);
    }

    .spark-action-btn:active {
        background: rgba(255, 255, 255, 0.3);
    }

    .spark-shortcut-btn:active {
        background: var(--spark-primary);
        color: white;
        transform: scale(0.98);
    }

    .spark-report-card:active {
        transform: scale(0.99);
    }

    .spark-chart-expand-btn:active {
        transform: scale(0.95);
    }
}

/* Smooth scrolling for messages */
.spark-chat-messages {
    scroll-behavior: smooth;
}

/* Custom scrollbar - thin on mobile */
@media (max-width: 768px) {
    .spark-chat-messages::-webkit-scrollbar {
        width: 3px;
    }

    .spark-chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .spark-chat-messages::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }
}

/* Prevent pull-to-refresh on chat */
.spark-chat-widget {
    overscroll-behavior: contain;
}

/* iOS keyboard handling and viewport fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .spark-chat-widget {
            height: 100vh;
            height: -webkit-fill-available;
        }

        .spark-chat-widget.active {
            height: 100vh;
            height: -webkit-fill-available;
        }

        /* Ensure messages area fills properly */
        .spark-chat-messages {
            height: calc(100vh - 60px - 70px);
            height: calc(-webkit-fill-available - 60px - 70px);
        }
    }
}

/* Additional iOS Safari fixes */
@media (max-width: 768px) {

    /* Prevent Safari from showing content behind */
    .spark-chat-widget::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f0f2f5;
        z-index: -1;
    }

    /* Ensure header is at the very top */
    .spark-chat-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, var(--navbar-primary-color, #0078d4), var(--navbar-secondary-color, #005a9e));
    }
}

/* SPARK Fluent inputs */
.spark-input,
.spark-select,
.spark-textarea {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
}

.spark-input:focus,
.spark-select:focus,
.spark-textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 1px rgba(30, 58, 95, 0.3);
}

.spark-input::placeholder {
  color: #94a3b8;
}

.spark-textarea {
  height: auto;
  min-height: 64px;
  padding: 8px 12px;
  resize: vertical;
}

.spark-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ============================================
   Mobile Chat Stabilization Overrides
   Keep these near the end so they win over older
   duplicated chat rules above.
   ============================================ */

:root {
    --spark-chat-bottom-offset: 0px;
    --spark-composer-height: 88px;
    --spark-viewport-offset-top: 0px;
}

.spark-chat-widget {
    isolation: isolate;
}

.spark-chat-messages {
    padding-bottom: calc(var(--spark-composer-height, 88px) + 1rem);
}

.spark-chat-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + var(--spark-chat-bottom-offset, 0px));
    background: linear-gradient(180deg, rgba(240, 242, 245, 0) 0%, rgba(240, 242, 245, 0.9) 18%, #f0f2f5 45%);
}

.spark-chat-typing-container {
    bottom: calc(var(--spark-composer-height, 88px) + 0.5rem + var(--spark-chat-bottom-offset, 0px));
}

.spark-input-wrapper {
    align-items: flex-end;
}

.spark-chat-input {
    resize: none;
    min-height: 24px;
    max-height: 144px;
    overflow-y: hidden;
}

.spark-chat-input::-webkit-scrollbar {
    width: 4px;
}

.spark-chat-input::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

@media (max-width: 768px) {
    .spark-chat-widget {
        top: var(--spark-viewport-offset-top, 0px) !important;
        bottom: auto !important;
        height: var(--spark-viewport-height, 100dvh) !important;
        max-height: var(--spark-viewport-height, 100dvh) !important;
    }

    .spark-chat-widget.mobile-keyboard-open .spark-chat-typing-container {
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
    }

    .spark-chat-header {
        padding-left: calc(1rem + env(safe-area-inset-left, 0px));
        padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    }

    .spark-chat-messages {
        padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
        padding-bottom: calc(var(--spark-composer-height, 92px) + 0.5rem);
        scroll-padding-bottom: calc(var(--spark-composer-height, 92px) + 1rem);
    }

    .spark-chat-footer {
        padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
        padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px) + var(--spark-chat-bottom-offset, 0px));
        backdrop-filter: blur(14px);
    }

    .spark-input-wrapper {
        min-height: 54px;
        border-radius: 20px;
        padding: 0.375rem;
        gap: 0.125rem;
    }

    .spark-chat-input {
        max-height: 120px;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .spark-send-btn,
    .spark-action-btn {
        touch-action: manipulation;
    }

    .spark-shortcuts-panel {
        bottom: var(--spark-chat-bottom-offset, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .spark-shortcuts-panel.keyboard-open {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(100%);
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .spark-chat-widget,
        .spark-chat-widget.active {
            height: var(--spark-viewport-height, 100dvh) !important;
            max-height: var(--spark-viewport-height, 100dvh) !important;
        }

        .spark-chat-messages {
            height: auto !important;
            min-height: 0 !important;
        }
    }
}
