/*
 * داشبورد و مرکز گزارشِ برگزارکننده (سندِ Fix5).
 *
 * چرا فایلِ مستقل؟ تمِ پنل از پیش بیلد شده و کلاس‌های تازهٔ Tailwind در بلید ساخته
 * نمی‌شوند؛ هر چیزِ مهم اینجا با کلاس‌های ov-* و توکن‌های رنگی خودِ Filament نوشته
 * شده است. حالتِ تیره با کلاسِ .dark روی <html> (همان که Filament می‌گذارد).
 */
.ov {
    --ov-card: #fff;
    --ov-line: rgba(15, 23, 42, .1);
    --ov-muted: rgba(15, 23, 42, .6);
    --ov-soft: rgba(15, 23, 42, .04);
    --ov-accent: var(--color-primary-600, var(--primary-600, #5b3fd8));
    --ov-accent-soft: color-mix(in oklab, var(--ov-accent) 12%, transparent);
    --ov-good: #00806f; /* سبزآبیِ برند (#00C2A8) با کنتراستِ متنیِ کافی */
    --ov-warn: #8a6a1f; /* طلاییِ برند (#C8A45C) با کنتراستِ متنیِ کافی */
    --ov-bad: #b91c1c;
    --ov-info: #5b3fd8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: inherit;
}
.dark .ov {
    --ov-card: rgba(255, 255, 255, .04);
    --ov-line: rgba(255, 255, 255, .1);
    --ov-muted: rgba(255, 255, 255, .62);
    --ov-soft: rgba(255, 255, 255, .05);
    --ov-accent: var(--color-primary-400, var(--primary-400, #9b8cf0));
    --ov-good: #00C2A8;
    --ov-warn: #C8A45C;
    --ov-bad: #f87171;
    --ov-info: #9b8cf0;
}

.ov-card {
    background: var(--ov-card);
    border: 1px solid var(--ov-line);
    border-radius: .85rem;
    padding: 1rem;
}
.ov-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
}
.ov-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.ov-sub { font-size: .8rem; color: var(--ov-muted); margin: .15rem 0 0; }
.ov-h3 { font-size: .9rem; font-weight: 700; margin: 0 0 .6rem; }
.ov-muted { color: var(--ov-muted); }
.ov-small { font-size: .75rem; }

/* فیلترها */
.ov-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ov-pill {
    border: 1px solid var(--ov-line);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .8rem;
    cursor: pointer;
    line-height: 1.4;
}
.ov-pill[aria-pressed="true"] {
    background: var(--ov-accent);
    border-color: var(--ov-accent);
    color: #fff;
}
.ov-field {
    border: 1px solid var(--ov-line);
    background: var(--ov-card);
    color: inherit;
    border-radius: .55rem;
    padding: .35rem .6rem;
    font-size: .82rem;
    min-width: 0;
    max-width: 100%;
}
.ov-filters { min-width: 0; }
@media (max-width: 639px) {
    .ov-filters > select.ov-field, .ov-filters > div { width: 100%; }
    .ov-filters select.ov-field { width: 100%; box-sizing: border-box; }
}
.ov-field-label { font-size: .72rem; color: var(--ov-muted); display: block; margin-bottom: .15rem; }
.ov-range { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }

/* کارت‌های شاخص */
.ov-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ov-kpis.ov-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ov-kpis.ov-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 640px) { .ov-kpis.ov-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ov-kpi {
    background: var(--ov-card);
    border: 1px solid var(--ov-line);
    border-radius: .85rem;
    padding: .85rem 1rem;
    min-width: 0;
}
.ov-kpi-label { font-size: .78rem; color: var(--ov-muted); display: flex; align-items: center; gap: .3rem; }
.ov-kpi-value { font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin-top: .15rem; word-break: break-word; }
.ov-kpi-value.ov-sm { font-size: 1.2rem; }
.ov-kpi-note { font-size: .74rem; color: var(--ov-muted); margin-top: .2rem; }
.ov-help {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 1px solid var(--ov-line); font-size: .65rem; cursor: help; color: var(--ov-muted);
}
.ov-delta { font-weight: 700; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.ov-delta.up { color: var(--ov-good); }
.ov-delta.down { color: var(--ov-bad); }

/* هشدار */
.ov-alerts { display: grid; gap: .5rem; }
.ov-alert {
    display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between;
    border: 1px solid var(--ov-line);
    border-inline-start-width: 4px;
    border-radius: .7rem;
    padding: .7rem .9rem;
    background: var(--ov-card);
}
.ov-alert.danger { border-inline-start-color: var(--ov-bad); }
.ov-alert.warning { border-inline-start-color: var(--ov-warn); }
.ov-alert.info { border-inline-start-color: var(--ov-info); }
.ov-alert.success { border-inline-start-color: var(--ov-good); }
.ov-alert b { font-size: .88rem; }
.ov-alert p { margin: .15rem 0 0; font-size: .8rem; color: var(--ov-muted); }
.ov-actions { display: flex; flex-wrap: wrap; gap: .4rem; flex-shrink: 0; }
.ov-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    border: 1px solid var(--ov-line);
    background: transparent; color: inherit;
    border-radius: .55rem; padding: .3rem .7rem; font-size: .78rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ov-btn:hover { border-color: var(--ov-accent); color: var(--ov-accent); }
.ov-btn.primary { background: var(--ov-accent); border-color: var(--ov-accent); color: #fff; }
.ov-btn.primary:hover { color: #fff; opacity: .9; }

/* رویدادهای فعال */
.ov-events { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ov-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-event { display: flex; flex-direction: column; gap: .55rem; }
.ov-event-title { font-weight: 700; font-size: .92rem; margin: 0; }
.ov-bar { height: .55rem; border-radius: 999px; background: var(--ov-soft); overflow: hidden; }
.ov-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--ov-accent); }
.ov-bar > i.hot { background: var(--ov-warn); }
.ov-bar > i.full { background: var(--ov-good); }
.ov-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .8rem; }

/* جدول */
.ov-table-wrap { overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ov-table th { text-align: start; font-weight: 600; color: var(--ov-muted); padding: .5rem .6rem; border-bottom: 1px solid var(--ov-line); white-space: nowrap; }
.ov-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--ov-line); vertical-align: middle; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-link { background: none; border: 0; padding: 0; color: var(--ov-accent); cursor: pointer; font: inherit; text-align: start; }
.ov-link:hover { text-decoration: underline; }

/* تب */
.ov-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--ov-line); }
.ov-tab {
    background: none; border: 0; border-bottom: 2px solid transparent;
    color: var(--ov-muted); padding: .55rem .9rem; font-size: .86rem; cursor: pointer; white-space: nowrap;
}
.ov-tab[aria-selected="true"] { color: var(--ov-accent); border-bottom-color: var(--ov-accent); font-weight: 700; }

/* نمودار */
.ov-chart { width: 100%; height: auto; display: block; direction: ltr; }
.ov-chart .bar { fill: var(--ov-accent); }
.ov-chart .bar.zero { opacity: .22; }
.ov-chart .prev { fill: none; stroke: var(--ov-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ov-chart .grid { stroke: var(--ov-line); stroke-width: 1; }
.ov-chart text { fill: var(--ov-muted); font-size: 11px; }
.ov-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--ov-muted); margin-top: .35rem; flex-wrap: wrap; }
.ov-legend i { display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; vertical-align: -1px; margin-inline-end: .3rem; background: var(--ov-accent); }
.ov-legend i.dash { background: none; border-top: 2px dashed var(--ov-muted); height: 0; border-radius: 0; vertical-align: 3px; }

/* گروه‌بندی و حالت‌های خالی */
.ov-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ov-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-empty { color: var(--ov-muted); font-size: .85rem; padding: .75rem 0; }
.ov-lock {
    border: 1px dashed var(--ov-line); border-radius: .85rem; padding: 1rem;
    background: var(--ov-soft); font-size: .85rem;
}
.ov-share { display: flex; align-items: center; gap: .5rem; }
.ov-share .ov-bar { flex: 1 1 4rem; min-width: 3rem; }

/* راهنمای تعریف‌ها */
.ov-defs { display: grid; gap: .35rem; font-size: .78rem; color: var(--ov-muted); }
.ov-defs b { color: inherit; }

@media print { .ov-filters, .ov-actions, .ov-tabs { display: none !important; } }


/* دسترسی سریع (سندِ Fix8) */
.ov-quick-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .5rem; }
@media (min-width: 768px) { .ov-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ov-quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ov-quick-item { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 2.75rem; padding: .5rem .6rem;
    border: 1px solid var(--ov-line); border-radius: .75rem; background: var(--ov-accent-soft); color: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; }
.ov-quick-item:hover, .ov-quick-item:focus-visible { border-color: var(--ov-accent); color: var(--ov-accent); outline: none; }
.ov-head [data-ov-head-actions] { align-self: center; }


/* ── داشبوردِ کاربرپسند: کارتِ هویت، کارت‌های اقدام، شاخص‌های آیکون‌دار، نقشهٔ بخش‌ها ── */
.fi-page-header-main-ctn:has(.ov-hero) > .fi-header { display: none; }

.ov-ico { width: 1.35rem; height: 1.35rem; flex: none; }
.ov-sec-head { margin: 0 0 .65rem; }
.ov-sec-head .ov-h3 { margin: 0; }
.ov-sec-head p { margin: .1rem 0 0; }

.ov-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: linear-gradient(135deg, color-mix(in oklab, var(--ov-accent) 11%, var(--ov-card)), var(--ov-card) 62%);
    border: 1px solid var(--ov-line);
    border-radius: 1.1rem;
    padding: 1.1rem 1.25rem;
}
.ov-hero-id { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 22rem; }
.ov-hero-id > :first-child { flex: none; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); }
.ov-hero-text { min-width: 0; }
.ov-hero-hello { margin: 0; font-size: .78rem; color: var(--ov-muted); }
.ov-hero-name { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 0; font-size: 1.3rem; font-weight: 800; line-height: 1.35; }
.ov-hero-name > span { min-width: 0; overflow-wrap: anywhere; }
.ov-hero-sub { margin: .2rem 0 .5rem; font-size: .82rem; color: var(--ov-muted); }
.ov-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ov-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
    background: var(--ov-soft); border: 1px solid var(--ov-line); color: inherit; white-space: nowrap;
}
.ov-chip.good { color: var(--ov-good); border-color: color-mix(in oklab, var(--ov-good) 35%, transparent); background: color-mix(in oklab, var(--ov-good) 9%, transparent); }
.ov-chip.warn { color: var(--ov-warn); border-color: color-mix(in oklab, var(--ov-warn) 35%, transparent); background: color-mix(in oklab, var(--ov-warn) 9%, transparent); }
.ov-chip-ico { width: .95rem; height: .95rem; flex: none; }
.ov-hero > .ov-actions { align-self: center; }
.ov-btn .ov-chip-ico { margin-inline-end: .1rem; }
.ov-btn { padding: .45rem .9rem; font-size: .82rem; font-weight: 600; border-radius: .7rem; }

/* کارت‌های اقدام */
.ov-acts { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .ov-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ov-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ov-act, .ov-sec-head-link {
    display: flex; align-items: flex-start; gap: .7rem; min-width: 0;
    padding: .75rem .8rem; border: 1px solid var(--ov-line); border-radius: .9rem;
    background: var(--ov-card); color: inherit; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ov-act:hover, .ov-act:focus-visible, .ov-sec .ov-sec-head:hover {
    border-color: var(--ov-accent); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); outline: none;
}
.ov-act-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2.5rem; height: 2.5rem; border-radius: .75rem;
    background: var(--ov-accent-soft); color: var(--ov-accent);
}
.ov-act-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ov-act-text b { font-size: .88rem; font-weight: 700; }
.ov-act-text small { font-size: .74rem; color: var(--ov-muted); }
@media (max-width: 479px) {
    .ov-act { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .ov-act-text small { font-size: .72rem; }
}

/* شاخص‌های آیکون‌دار */
.ov-kpi-label { gap: .45rem; }
.ov-kpi-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 1.8rem; height: 1.8rem; border-radius: .55rem;
    background: var(--ov-accent-soft); color: var(--ov-accent);
}
.ov-kpi-ico .ov-ico { width: 1.05rem; height: 1.05rem; }
.ov-kpi-hint { font-size: .72rem; color: var(--ov-muted); margin-top: .1rem; }

.ov-perf .ov-head { align-items: center; }
.ov-event-thumb { width: 2.75rem; height: 3.6rem; object-fit: cover; border-radius: .5rem; flex: none; background: var(--ov-soft); }

/* نقشهٔ بخش‌ها */
.ov-map { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ov-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ov-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ov-sec { background: var(--ov-card); border: 1px solid var(--ov-line); border-radius: 1rem; padding: .35rem .35rem .75rem; min-width: 0; }
.ov-sec .ov-sec-head { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: .55rem .6rem; border: 1px solid transparent; border-radius: .8rem; color: inherit; text-decoration: none; }
.ov-sec-links { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .65rem; }
.ov-sec-links a {
    font-size: .76rem; padding: .2rem .6rem; border-radius: 999px; text-decoration: none;
    border: 1px solid var(--ov-line); color: inherit;
}
.ov-sec-links a:hover { border-color: var(--ov-accent); color: var(--ov-accent); }
.ov-sec-links a.more { color: var(--ov-muted); border-style: dashed; }

@media (max-width: 639px) {
    .ov-hero { padding: .95rem; }
    .ov-hero-id { gap: .75rem; }
    .ov-hero-name { font-size: 1.1rem; }
    .ov-hero > .ov-actions { width: 100%; }
    .ov-hero > .ov-actions .ov-btn { flex: 1 1 auto; justify-content: center; }
}

/* تفکیکِ بلیت‌ها: جمع‌شده با خلاصهٔ یک‌خطی */
.ov-more > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.ov-more > summary::-webkit-details-marker { display: none; }
.ov-more-title { font-weight: 700; font-size: .88rem; }
.ov-more-title::after { content: " ▾"; color: var(--ov-muted); }
.ov-more[open] .ov-more-title::after { content: " ▴"; }
.ov-more-sum { font-size: .76rem; color: var(--ov-muted); }
.ov-more-body { display: flex; flex-direction: column; gap: .75rem; margin-top: .8rem; }


/* ── نسخهٔ مدرن‌تر: آیکن‌های گرادیانی و پویا، در موبایل وسط‌چین و بزرگ‌تر ── */
/* پالتِ برند: بنفش ۷۵٪ · سبزآبی ۲۵٪ (هر چهارمین کاشی). طلایی فقط برای تأکیدهای نادر (۵٪) و نه آیکن‌ها. */
.ov-acts > .ov-act, .ov-map > .ov-sec, .ov-kpis > .ov-kpi { --c1: #7c5cf0; --c2: #5b3fd8; }
.ov-acts > .ov-act:nth-child(4n), .ov-map > .ov-sec:nth-child(4n), .ov-kpis > .ov-kpi:nth-child(4n) { --c1: #22d3b6; --c2: #00c2a8; }

.ov-act-ico, .ov-kpi-ico {
    background: linear-gradient(145deg, var(--c1, #7c5cf0), var(--c2, #5b3fd8));
    color: #fff;
    box-shadow: 0 6px 14px color-mix(in oklab, var(--c2, #5b3fd8) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.ov-act:hover .ov-act-ico, .ov-sec .ov-sec-head:hover .ov-act-ico { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.ov-act:active { transform: scale(.97); }
.ov-act, .ov-sec { animation: ov-rise .45s ease both; }
.ov-acts > .ov-act:nth-child(2), .ov-map > .ov-sec:nth-child(2) { animation-delay: .04s; }
.ov-acts > .ov-act:nth-child(3), .ov-map > .ov-sec:nth-child(3) { animation-delay: .08s; }
.ov-acts > .ov-act:nth-child(4), .ov-map > .ov-sec:nth-child(4) { animation-delay: .12s; }
.ov-acts > .ov-act:nth-child(n+5), .ov-map > .ov-sec:nth-child(n+5) { animation-delay: .16s; }
@keyframes ov-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ov-act, .ov-sec { animation: none; }
    .ov-act-ico, .ov-kpi-ico { transition: none; }
}
.ov-act, .ov-sec, .ov-kpi, .ov-hero { border-radius: 1.1rem; }

@media (max-width: 639px) {
    /* کارت‌های اقدام: سه‌ستونه، آیکنِ بزرگِ وسط‌چین، متنِ ریز زیرش */
    .ov-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .ov-act { flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: .85rem .35rem .7rem; }
    .ov-act-ico { width: 3.6rem; height: 3.6rem; border-radius: 1.15rem; }
    .ov-act-ico .ov-ico { width: 1.9rem; height: 1.9rem; }
    .ov-act-text { align-items: center; gap: .15rem; }
    .ov-act-text b { font-size: .76rem; line-height: 1.35; }
    .ov-act-text small {
        font-size: .64rem; line-height: 1.35; opacity: .85;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* شاخص‌ها: آیکنِ وسط‌چین بالای عدد */
    .ov-kpi { text-align: center; padding: .8rem .5rem; }
    .ov-kpi-label { flex-direction: column; justify-content: center; gap: .4rem; font-size: .72rem; }
    .ov-kpi-ico { width: 2.5rem; height: 2.5rem; border-radius: .85rem; }
    .ov-kpi-ico .ov-ico { width: 1.4rem; height: 1.4rem; }
    .ov-kpi-value { font-size: 1.4rem; }
    .ov-kpi-value.ov-sm { font-size: 1.1rem; }
    .ov-kpi-hint, .ov-kpi-note { font-size: .66rem; }

    /* کارتِ هویت: وسط‌چین */
    .ov-hero-id { flex-direction: column; text-align: center; flex-basis: 100%; }
    .ov-hero-id > :first-child { width: 5.25rem !important; height: 5.25rem !important; }
    .ov-hero-name { justify-content: center; }
    .ov-chips { justify-content: center; }

    /* نقشهٔ بخش‌ها: آیکنِ بزرگِ وسط‌چین */
    .ov-sec .ov-sec-head { flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding-top: .8rem; }
    .ov-sec .ov-act-ico { width: 3.4rem; height: 3.4rem; border-radius: 1.1rem; }
    .ov-sec .ov-act-ico .ov-ico { width: 1.8rem; height: 1.8rem; }
    .ov-sec .ov-act-text small { font-size: .68rem; }
    .ov-sec-links { justify-content: center; }
    .ov-sec-links a { font-size: .7rem; }

    /* نوارِ تبِ بخش: آیکنِ بزرگ‌تر */
    .org-tabs-ico { width: 2.6rem; height: 2.6rem; border-radius: .85rem; background: linear-gradient(145deg, #7c5cf0, #5b3fd8); color: #fff; }
    .org-ico { width: 1.45rem; height: 1.45rem; }
    .org-tab { padding: .5rem .85rem; }
    .org-tab-ico { width: 1.1rem; height: 1.1rem; }
}

/* کاشی‌های «امروز چه کاری دارید؟»: تعدادشان به دسترسی‌ها بستگی دارد (۴ تا ۷)؛ ستون‌ها با تعداد تنظیم می‌شوند تا کاشیِ یتیم نماند. */
@media (min-width: 1100px) {
  .ov-acts:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ov-acts:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* نقشهٔ بخش‌ها (details): در ظاهرِ قبلی open و عنوانِ summary پنهان؛ در ظاهرِ جدید بسته با summaryِ کارتی */
.ov-fold:not(.ov-fold--v2) > .ov-fold-sum { display: none; }
.ov-fold--v2 > .ov-sec-head { display: none; }
.ov-fold-sum { display: flex; align-items: baseline; gap: .75rem; cursor: pointer; list-style: none; padding: .8rem 1rem; border: 1px solid rgba(15, 23, 42, .09); border-radius: 1rem; background: #fff; }
.ov-fold-sum::-webkit-details-marker { display: none; }
.ov-fold-sum::after { content: ""; margin-inline-start: auto; width: .55rem; height: .55rem; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .15s ease; align-self: center; }
.ov-fold[open] > .ov-fold-sum::after { transform: rotate(-135deg); }
.ov-fold--v2[open] > .ov-fold-sum { margin-bottom: .75rem; }
.dark .ov-fold-sum { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }

/* انتخابگرِ رویدادِ داشبورد (فهرستِ کشویی) — هم‌خانوادهٔ منوهای استانداردِ پنل */
.ov-dd { position: relative; min-width: 12rem; }
.ov-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; cursor: pointer; text-align: start; }
.ov-dd-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-dd-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + .35rem); margin: 0; padding: .3rem; list-style: none; max-height: 16rem; overflow: auto; min-width: 100%; width: max-content; max-width: min(24rem, 90vw); background: #fff; border: 1px solid rgba(15, 23, 42, .12); border-radius: .85rem; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45); }
.ov-dd-list button { display: block; width: 100%; padding: .5rem .7rem; border: 0; border-radius: .55rem; background: transparent; color: inherit; font: inherit; font-size: .85rem; text-align: start; cursor: pointer; }
.ov-dd-list button:hover, .ov-dd-list button:focus-visible { background: rgba(91, 63, 216, .09); outline: none; }
.ov-dd-list button.is-on { font-weight: 800; color: #4730b8; background: rgba(91, 63, 216, .12); }
.dark .ov-dd-list { background: #1a1826; border-color: rgba(255, 255, 255, .12); }
.dark .ov-dd-list button.is-on { color: #b9aef6; }
@media (max-width: 767px) { .ov-dd { width: 100%; } .ov-dd-list { width: 100%; } }


/* ═══ calm-palette (۱۴۰۵/۰۹/۰۸): سطح‌های تخت — بدونِ گرادینت/درخششِ رنگی ═══ */
html body .ov-act-ico, html body .ov-kpi-ico, html body .kt-ico { background-image: none; background-color: var(--c2, #5b3fd8); box-shadow: none; }
html body .org-tabs-ico { background-image: none; background-color: #5b3fd8; box-shadow: none; }
html body .ov-hero { background-image: none; background-color: color-mix(in oklab, var(--ov-accent, #5b3fd8) 8%, var(--ov-card, #fff)); }
html body .fi-wi-stats-overview-stat::before { background-image: none; background-color: var(--pm-brand, #5b3fd8); }
html body .fi-wi-stats-overview-stat:nth-child(4n)::before { background-image: none; background-color: var(--pm-teal, #00c2a8); }
html body .ow-progress__bar i, html body .ow-up__bar i { background-image: none; background-color: var(--ow-acc, #5b3fd8); }
html body .ow-card { box-shadow: 0 1px 2px rgba(20, 16, 40, .10), 0 6px 18px -10px rgba(20, 16, 40, .22); }
html body .org-sb-create-btn:hover { box-shadow: none; }
