/* Home sales charts — نفس سطح ويدجت أوقات الصلاة / الاختصارات / المبيعات */

.bb-dashboard-chart-card {
    --pr-mid: #64748b;
    position: relative;
    z-index: 0;
    margin-top: 0;
    border-radius: 1.15rem;
    overflow: hidden;
    color: #334155;
    background: linear-gradient(
        155deg,
        color-mix(in srgb, #ffffff 92%, var(--pr-mid) 8%) 0%,
        color-mix(in srgb, #f1f5f9 92%, var(--pr-mid) 8%) 40%,
        color-mix(in srgb, #e8eef5 92%, var(--pr-mid) 8%) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.36);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 12px 32px -16px rgba(15, 23, 42, 0.12),
        0 4px 12px -4px rgba(15, 23, 42, 0.06),
        0 0 0 1px color-mix(in srgb, #e2e8f0 87%, var(--pr-mid) 13%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease;
}

.bb-dashboard-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
}

.bb-dashboard-chart-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 100% 60% at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.9;
}

.bb-dashboard-chart-card:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 12px 32px -16px rgba(15, 23, 42, 0.12),
        0 0 0 1px color-mix(in srgb, #e2e8f0 87%, var(--pr-mid) 13%),
        0 0 100px -40px rgba(56, 189, 248, 0.14);
}

.bb-dashboard-chart-header,
.bb-dashboard-chart-header.bb-dashboard-chart-header--blue {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
}

.bb-dashboard-chart-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:lang(ar) .bb-dashboard-chart-title {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 1.02rem;
}

.bb-dashboard-chart-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
}

/* أيقونات بسيطة — متوافقة مع السطح الفاتح */
.bb-dashboard-chart-icon,
.bb-dashboard-chart-icon.bb-dashboard-chart-icon--blue {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d97706;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.bb-dashboard-chart-icon.bb-dashboard-chart-icon--blue {
    color: #0284c7;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(56, 189, 248, 0.12) inset;
}

.bb-dashboard-chart-actions .btn {
    border-radius: 0.5rem;
    background: color-mix(in srgb, #ffffff 92%, #64748b 8%) !important;
    border: 1px solid rgba(203, 213, 225, 0.86) !important;
    color: #334155 !important;
}

.bb-dashboard-chart-actions .btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.65) !important;
}

.bb-dashboard-chart-body {
    position: relative;
    z-index: 1;
    padding: 0.65rem 0.9rem 1rem 1rem;
}

.bb-dashboard-chart-canvas {
    min-height: 360px;
}

.bb-dashboard-chart-canvas .highcharts-container,
.bb-dashboard-chart-canvas svg {
    width: 100% !important;
}
