﻿.container-shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border-radius: 8px;
    background-color: #fff;
    /*max-width: 400px;*/
}

.predictive-insights {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.predictive-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.predictive-header h5 {
    margin: 0;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.predictive-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.predictive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.predictive-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.predictive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.1);
}

.predictive-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.predictive-value {
    font-size: 32px;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.1;
}

.predictive-footnote {
    font-size: 12px;
    color: #6c757d;
}

.predictive-table-container {
    margin-top: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.predictive-table-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 202, 240, 0.05));
    border-bottom: 1px solid #e5e7eb;
}

.predictive-table-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.predictive-table-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.predictive-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.predictive-badge.badge-points {
    background: #0d6efd;
    color: #ffffff;
}

.predictive-badge.badge-clients {
    background: #20c997;
    color: #0b2f26;
}

.predictive-table-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.predictive-table-row .predictive-table-container {
    flex: 1 1 360px;
}

.predictive-table-header h6 {
    margin: 0;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.predictive-table-header p {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

.predictive-table-container .table {
    margin-bottom: 0;
}

.predictive-table-container thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
    font-size: 13px;
}

.predictive-table-container .table-responsive {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.4) rgba(13, 110, 253, 0.08);
}

.predictive-table-container tbody tr td {
    vertical-align: middle;
    font-size: 14px;
}

.predictive-table-container tbody tr td.text-end {
    font-weight: 600;
    color: #0d6efd;
}

.overview-insights {
    margin: 30px 0;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.overview-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.overview-header h5 {
    margin: 0;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.overview-charts {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.overview-charts-section {
    margin: 30px 0;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.overview-card {
    position: relative;
    border-radius: 14px;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(248, 249, 255, 0.92) 0%, #ffffff 100%);
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 0;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.18);
}

.overview-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.overview-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    line-height: 1.25;
    margin: 0;
}

.overview-value {
    font-size: 28px;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.15;
}

.overview-footnotes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.35;
}

.overview-footnotes strong {
    color: #0d6efd;
    font-weight: 600;
}

.overview-sms-history-link {
    font-size: 12px;
    font-weight: 500;
}

.overview-card.accent-clients .overview-icon {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.overview-card.accent-products .overview-icon {
    background: rgba(253, 126, 20, 0.15);
    color: #fd7e14;
}

.overview-card.accent-loyalty .overview-icon {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.overview-card.accent-rewards .overview-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.overview-card.accent-sms .overview-icon {
    background: rgba(13, 202, 240, 0.18);
    color: #0aa2c0;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

.tab-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    min-height: 400px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .predictive-insights {
        padding: 16px;
    }

    .predictive-table-row {
        gap: 16px;
    }

    .predictive-table-row .predictive-table-container {
        flex: 1 1 100%;
    }

    .predictive-table-container .table-responsive {
        max-height: 220px;
    }

    .overview-insights {
        padding: 18px;
    }

    .overview-charts-section {
        padding: 18px;
    }

    .predictive-table-badges {
        gap: 6px;
    }

    .predictive-value {
        font-size: 28px;
    }
}