body.reports-page { font-family: 'Tajawal', sans-serif; min-height: 100vh; margin: 0; padding: 84px 0 32px; overflow-x: hidden; background: #f8fafc; color: #0f172a; }
.reports-page-header { position: fixed; inset: 0 0 auto; z-index: 90; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.reports-page-header > strong { grid-column: 2; font-size: 1rem; font-weight: 900; }
.reports-page-header__back { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-size: .7rem; font-weight: 900; }
.reports-page-main { width: min(1180px, calc(100% - 28px)); margin-inline: auto; direction: rtl; text-align: right; }
@media(max-width: 640px) { .reports-page-header { padding-inline: 12px; } .reports-page-header__back span { display: none; } .reports-page-main { width: min(100% - 20px, 1180px); } }
.custom-card { background: white; border-radius: 1.5rem; border: 1px solid #e2e8f0; }
        .form-input { width: 100%; padding: 14px; border-radius: 1rem; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 0.95rem; font-weight: 600; outline:none;}
        .admin-filters-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; align-items: start; }
        .admin-filters-grid > .admin-multi-filter { min-width: 0; width: 100%; }
        .admin-multi-filter { position: relative; min-width: 0; }
        .admin-multi-filter__toggle { width: 100%; min-width: 0; padding: 14px; border-radius: 1rem; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: right; }
        .admin-multi-filter__summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .admin-multi-filter__chevron { flex: 0 0 auto; transition: transform 0.2s ease; }
        .admin-multi-filter__toggle[aria-expanded="true"] .admin-multi-filter__chevron { transform: rotate(180deg); }
        .admin-multi-filter__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; width: min(300px, calc(100vw - 24px)); padding: 10px; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16); direction: rtl; }
        .admin-multi-filter__menu[hidden] { display: none !important; }
        .admin-multi-filter__search { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #f8fafc; color: #334155; font-size: 0.75rem; outline: none; }
        .admin-multi-filter__search:focus { border-color: #60a5fa; background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
        .admin-multi-filter__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid #f1f5f9; }
        .admin-multi-filter__actions button { color: #2563eb; font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
        .admin-multi-filter__options { max-height: 220px; overflow-y: auto; overflow-x: hidden; padding: 6px 0; }
        .admin-multi-filter__option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 0.7rem; color: #475569; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
        .admin-multi-filter__option:hover { background: #eff6ff; }
        .admin-multi-filter__option[hidden] { display: none !important; }
        .admin-multi-filter__option input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: #3b82f6; }
        .admin-multi-filter__option span { min-width: 0; overflow-wrap: anywhere; }
        .admin-multi-filter__apply { width: 100%; padding: 9px 12px; border-radius: 0.75rem; background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 800; }
        .admin-multi-filter--hierarchical .admin-multi-filter__menu { width: min(340px, calc(100vw - 24px)); }
        .hierarchical-filter__options { display: grid; gap: 8px; }
        .hierarchical-filter__group { min-width: 0; max-width: 100%; display: grid; gap: 6px; }
        .hierarchical-filter__group[hidden] { display: none !important; }
        .hierarchical-filter__region { width: 100%; }
        .hierarchical-filter__cities { min-width: 0; max-width: 100%; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 8px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
        .hierarchical-filter__cities[hidden] { display: none !important; }
        .hierarchical-filter__city { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 9px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.68rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
        .hierarchical-filter__city-checkbox { flex: 0 0 auto; width: 15px; height: 15px; accent-color: #3b82f6; }
        @media(max-width: 639px) {
            .admin-filters-grid .admin-multi-filter__toggle { min-width: 0; padding: 10px 8px; gap: 4px; font-size: 0.68rem; }
            .admin-filters-grid .admin-multi-filter:first-child .admin-multi-filter__menu { right: 0; left: auto; transform: none; }
            .admin-filters-grid .admin-multi-filter:nth-child(2) .admin-multi-filter__menu { right: auto; left: 50%; transform: translateX(-50%); }
            .admin-filters-grid .admin-multi-filter:last-child .admin-multi-filter__menu { right: auto; left: 0; transform: none; }
            .admin-multi-filter__menu { max-height: min(430px, calc(100vh - 130px)); overflow: hidden; }
            .admin-multi-filter__options { max-height: min(250px, calc(100vh - 285px)); }
        }
        .admin-reports { display: grid; gap: 18px; }
        .admin-reports__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 4px 2px; }
        .admin-reports__header h1 { margin: 2px 0 3px; color: #0f172a; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; }
        .admin-reports__header p { margin: 0; color: #64748b; font-size: 0.78rem; font-weight: 700; }
        .admin-reports__eyebrow { color: #2563eb !important; font-size: 0.66rem !important; font-weight: 900 !important; }
        .admin-reports__reset { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-size: 0.7rem; font-weight: 900; }
        .admin-reports__filters { display: grid; gap: 10px; padding: 12px; overflow: visible; }
        .admin-reports__filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
        .admin-reports__filter-grid .admin-multi-filter { min-width: 0; }
        .admin-reports__type-filter select { width: 100%; height: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 0.85rem; background: #f8fafc; color: #334155; font: 800 0.72rem Tajawal, sans-serif; outline: none; }
        .admin-reports__search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border: 1px solid #e2e8f0; border-radius: 0.9rem; background: #fff; color: #94a3b8; }
        .admin-reports__search input[type="search"] { min-width: 0; padding: 6px 0; border: 0; background: transparent; color: #334155; font-size: 0.75rem; font-weight: 700; outline: none; }
        .admin-reports__search button { padding: 8px 13px; border-radius: 0.7rem; background: #2563eb; color: #fff; font-size: 0.7rem; font-weight: 900; }
        .admin-reports__summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
        .report-summary-card { min-width: 0; padding: 15px 13px; border: 1px solid #dbeafe; border-radius: 1rem; background: linear-gradient(145deg, #fff, #eff6ff); box-shadow: 0 8px 20px rgba(15, 23, 42, .04); }
        .report-summary-card span { display: block; min-height: 2.5em; color: #64748b; font-size: 0.67rem; font-weight: 800; line-height: 1.35; }
        .report-summary-card strong { display: block; margin-top: 5px; color: #1d4ed8; font-size: 1.5rem; font-weight: 900; line-height: 1; }
        .report-summary-card--check { border-color: #99f6e4; background: linear-gradient(145deg, #fff, #f0fdfa); }
        .report-summary-card--check strong { color: #0f766e; }
        .report-summary-card--clock { border-color: #fde68a; background: linear-gradient(145deg, #fff, #fffbeb); }
        .report-summary-card--clock strong { color: #b45309; }
        .report-summary-card--full { border-color: #c7d2fe; background: linear-gradient(145deg, #fff, #eef2ff); }
        .report-summary-card--full strong { color: #4f46e5; }
        .report-summary-card--short { border-color: #ddd6fe; background: linear-gradient(145deg, #fff, #f5f3ff); }
        .report-summary-card--short strong { color: #7c3aed; }
        .admin-reports__charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
        .report-chart-card { min-width: 0; height: 330px; padding: 18px; }
        .report-chart-card h2 { margin: 0 0 12px; color: #334155; font-size: 0.8rem; font-weight: 900; }
        .report-chart-card > div { position: relative; height: 260px; }
        .admin-reports__section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 2px; }
        .admin-reports__section-heading h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 900; }
        .admin-reports__section-heading p { margin: 2px 0 0; color: #94a3b8; font-size: 0.68rem; font-weight: 700; }
        .admin-reports__section-heading > span { padding: 5px 9px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 0.65rem; font-weight: 900; }
        .admin-reports__section-heading--leaderboard { align-items: center; }
        .report-ranking-switch { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; }
        .report-ranking-switch button { min-height: 34px; padding: 7px 11px; border-radius: 9px; color: #64748b; font-size: 0.66rem; font-weight: 900; white-space: nowrap; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
        .report-ranking-switch button.is-active { background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .2); }
        .report-leaderboard { overflow: hidden; border-radius: 1.1rem; }
        .report-leaderboard__row { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(150px, auto) 110px; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
        .report-leaderboard__row:last-child { border-bottom: 0; }
        .report-leaderboard__row:nth-child(-n+3) { background: linear-gradient(90deg, rgba(239,246,255,.75), #fff 45%); }
        .report-leaderboard__rank { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; color: #1d4ed8; font-size: .72rem; font-weight: 900; }
        .report-leaderboard__identity, .report-leaderboard__numbers { min-width: 0; display: grid; gap: 2px; }
        .report-leaderboard__identity strong { overflow: hidden; color: #1e293b; font-size: .76rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
        .report-leaderboard__identity span, .report-leaderboard__numbers span { overflow: hidden; color: #94a3b8; font-size: .6rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
        .report-leaderboard__numbers { text-align: center; }
        .report-leaderboard__numbers strong { color: #475569; font-size: .7rem; font-weight: 800; white-space: nowrap; }
        .report-leaderboard__numbers b { color: #0f766e; font-weight: 900; }
        .report-leaderboard__progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
        .report-leaderboard__progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0d9488); }
        .admin-reports__representatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        .report-representative-card { min-width: 0; display: grid; gap: 13px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 1.1rem; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
        .report-representative-card__head { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
        .report-representative-card__avatar { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid #bfdbfe; border-radius: 13px; background: #eff6ff; color: #2563eb; font-weight: 900; }
        .report-representative-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
        .report-representative-card__avatar img.is-default { padding: 7px; object-fit: contain; }
        .report-representative-card__head h3 { margin: 0; overflow: hidden; color: #1e293b; font-size: 0.8rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
        .report-representative-card__head p { margin: 2px 0 0; overflow: hidden; color: #94a3b8; font-size: 0.6rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
        .report-representative-card__head > strong { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #2563eb; color: #fff; font-size: 0.8rem; font-weight: 900; }
        .report-representative-card__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
        .report-representative-card__metrics span { min-width: 0; padding: 7px 3px; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: 0.55rem; font-weight: 700; text-align: center; }
        .report-representative-card__metrics b { display: block; margin-bottom: 2px; color: #1e293b; font-size: 0.72rem; font-weight: 900; }
        .report-representative-card__progress > div { display: flex; justify-content: space-between; margin-bottom: 5px; color: #64748b; font-size: 0.6rem; font-weight: 800; }
        .report-representative-card__progress i { height: 6px; display: block; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
        .report-representative-card__progress i span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0d9488); }
        .report-representative-card__footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding-top: 10px; border-top: 1px solid #f1f5f9; color: #94a3b8; font-size: 0.58rem; font-weight: 700; }
        .report-representative-card__footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .report-representative-card__footer b { color: #475569; }
        .report-secondary-list-card { min-width: 0; height: 330px; padding: 18px; }
        .report-secondary-list-card h2 { margin: 0 0 12px; color: #334155; font-size: .8rem; font-weight: 900; }
        .report-secondary-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
        .report-secondary-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; padding: 6px 9px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: .68rem; font-weight: 800; }
        .report-secondary-list li strong { flex: 0 0 auto; color: #1d4ed8; font-size: .64rem; }
        .report-secondary-list-card__empty { display: grid; min-height: 240px; place-items: center; margin: 0; color: #94a3b8; font-size: .72rem; font-weight: 800; }
        .admin-reports__empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #94a3b8; text-align: center; }
        .admin-reports__empty--compact { min-height: 100px; }
        .admin-reports__empty strong { color: #475569; font-size: 0.85rem; }
        .admin-reports__empty span { font-size: 0.7rem; font-weight: 700; }
        @media (max-width: 900px) {
            .admin-reports__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .admin-reports__representatives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 640px) {
            .admin-reports { gap: 14px; }
            .admin-reports__header { align-items: center; }
            .admin-reports__filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .admin-reports__filter-grid .admin-multi-filter__toggle, .admin-reports__type-filter select { min-height: 40px; padding-inline: 8px; font-size: 0.66rem; }
            .admin-reports__search button { padding-inline: 10px; }
            .admin-reports__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
            .report-summary-card { padding: 12px; }
            .report-summary-card span { min-height: auto; font-size: 0.62rem; }
            .report-summary-card strong { font-size: 1.25rem; }
            .admin-reports__charts { grid-template-columns: minmax(0, 1fr); }
            .report-chart-card { height: 300px; padding: 14px; }
            .report-chart-card > div { height: 235px; }
            .admin-reports__section-heading--leaderboard { align-items: stretch; flex-direction: column; }
            .report-ranking-switch { width: 100%; }
            .report-ranking-switch button { min-height: 36px; padding-inline: 6px; font-size: .62rem; }
            .report-leaderboard__row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
            .report-leaderboard__rank { width: 28px; height: 28px; }
            .report-leaderboard__numbers { text-align: left; }
            .report-leaderboard__progress { grid-column: 2 / -1; }
            .report-secondary-list-card { height: auto; min-height: 300px; padding: 14px; }
            .admin-reports__representatives { grid-template-columns: minmax(0, 1fr); }
        }

/* Simplified report reading flow: summary, one chart, then a horizontal leaderboard. */
.admin-reports__summary { grid-template-columns: repeat(4, minmax(0, 1fr)); direction: rtl; }
.report-summary-secondary { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: -8px; }
.report-summary-secondary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; font-size: .62rem; font-weight: 800; }
.report-summary-secondary strong { color: #1d4ed8; font-size: .72rem; }

.report-primary-chart { min-width: 0; padding: 18px; }
.report-primary-chart__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.report-primary-chart__header h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 900; }
.report-primary-chart__header p { margin: 3px 0 0; color: #94a3b8; font-size: .65rem; font-weight: 700; }
.report-primary-chart__header p strong { color: #1d4ed8; font-size: .78rem; }
.report-chart-switch { min-width: 0; display: flex; flex-wrap: nowrap; gap: 3px; overflow-x: auto; padding: 3px; border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; direction: rtl; scrollbar-width: none; }
.report-chart-switch::-webkit-scrollbar { display: none; }
.report-chart-switch button { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; border-radius: 9px; color: #64748b; font-size: .65rem; font-weight: 900; white-space: nowrap; }
.report-chart-switch button.is-active { background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .18); }
.report-primary-chart__scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; direction: rtl; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bfdbfe transparent; }
.report-primary-chart__stage { position: relative; height: 330px; min-width: 100%; }

.report-leaderboard { max-width: 100%; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 10px; border: 0; border-radius: 0; background: transparent; direction: rtl; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #bfdbfe transparent; }
.report-leaderboard__card { position: relative; flex: 0 0 205px; min-width: 0; display: grid; gap: 10px; padding: 14px; border: 1px solid #dbeafe; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(15, 23, 42, .045); scroll-snap-align: start; }
.report-leaderboard__card:nth-child(-n+3) { background: linear-gradient(145deg, #fff, #eff6ff); }
.report-leaderboard__card h3 { min-width: 0; margin: 0; padding-inline-end: 34px; overflow: hidden; color: #1e293b; font-size: .78rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.report-leaderboard__card .report-leaderboard__rank { position: absolute; inset: 11px auto auto 11px; }
.report-leaderboard__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.report-leaderboard__metrics span { min-width: 0; padding: 7px 5px; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: .58rem; font-weight: 800; text-align: center; }
.report-leaderboard__metrics b { display: block; margin-bottom: 2px; color: #1e293b; font-size: .82rem; font-weight: 900; }
.report-leaderboard__rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64748b; font-size: .6rem; font-weight: 800; }
.report-leaderboard__rate strong { color: #0f766e; font-size: .82rem; font-weight: 900; }

@media (max-width: 640px) {
    .admin-reports__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-summary-secondary { justify-content: stretch; margin-top: -6px; }
    .report-summary-secondary span { flex: 1 1 0; justify-content: center; min-width: 0; }
    .report-primary-chart { padding: 13px; }
    .report-primary-chart__header { align-items: stretch; flex-direction: column; gap: 9px; }
    .report-chart-switch { width: 100%; }
    .report-chart-switch button { flex: 1 0 auto; min-height: 32px; padding: 6px 9px; font-size: .61rem; }
    .report-primary-chart__stage { height: 285px; }
    .report-leaderboard__card { flex-basis: 174px; padding: 12px; }
}

/* Compact report header and representative cards. */
.admin-reports__header { position: relative; justify-content: center; text-align: center; }
.admin-reports__header { order: 1; }
.admin-reports__header > div { width: 100%; text-align: center; }
.admin-reports__header .admin-reports__reset { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); }
.admin-reports__summary { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-reports__section-heading--leaderboard { order: 3; }
.report-leaderboard, .admin-reports__empty--compact { order: 4; }
.report-analysis-heading { order: 5; }
.report-primary-chart { order: 6; }
.report-storefronts { order: 7; }
.report-summary-secondary { display: none; }
.report-summary-card { text-align: center; }
.report-summary-card span { min-height: auto; }
.admin-reports__summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.report-summary-card { display: grid; align-content: center; min-height: 104px; padding: 18px 14px; }
.report-summary-card strong { margin-top: 8px; font-size: 1.75rem; }
.report-summary-card:nth-child(2) { min-height: 116px; border-color: #93c5fd; background: linear-gradient(145deg, #fff, #dbeafe); box-shadow: 0 12px 28px rgba(37, 99, 235, .12); }
.report-summary-card:nth-child(2) strong { font-size: 2rem; }

.report-leaderboard__card { flex-basis: 168px; justify-items: center; gap: 8px; padding: 13px 11px; text-align: center; }
.report-leaderboard__card h3 { width: 100%; padding: 0; font-size: .76rem; text-align: center; }
.report-leaderboard__card .report-leaderboard__rank { inset: 9px 9px auto auto; }
.report-leaderboard__avatar { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid #dbeafe; border-radius: 50%; background: #eff6ff; color: #2563eb; font-size: 1rem; font-weight: 900; }
.report-leaderboard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.report-leaderboard__avatar img.is-default { padding: 8px; object-fit: contain; }
.report-leaderboard__value { min-width: 92px; display: grid; gap: 2px; padding: 8px 12px; border-radius: 11px; background: #eff6ff; color: #1d4ed8; text-align: center; }
.report-leaderboard__value b { font-size: 1.55rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.report-leaderboard__value span { color: #64748b; font-size: .67rem; font-weight: 800; }
.report-leaderboard__value[hidden] { display: none !important; }
.report-storefronts { padding: 4px 2px; text-align: right; }
.report-storefronts h2 { margin: 0 0 9px; color: #0f172a; font-size: .9rem; font-weight: 900; }
.report-storefronts__links { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.report-storefronts__links a { display: inline-flex; min-height: 36px; flex: 1 1 130px; align-items: center; justify-content: center; padding: 7px 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; color: #1d4ed8; font-size: .75rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.report-storefronts__links a:hover, .report-storefronts__links a:focus-visible { border-color: #93c5fd; background: #eff6ff; color: #1e40af; transform: translateY(-1px); }

@media (max-width: 640px) {
    .admin-reports__header { padding-inline: 42px; }
    .admin-reports__header .admin-reports__reset { inset-inline-end: 0; padding-inline: 8px; font-size: .58rem; }
    .admin-reports__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .report-summary-card { min-height: 86px; padding: 11px 5px; }
    .report-summary-card span { font-size: .55rem; white-space: nowrap; }
    .report-summary-card strong { font-size: 1.25rem; }
    .report-summary-card:nth-child(2) { min-height: 94px; }
    .report-summary-card:nth-child(2) strong { font-size: 1.45rem; }
    .report-leaderboard__card { flex-basis: 152px; padding: 11px 9px; }
    .report-leaderboard__avatar { width: 54px; height: 54px; }
}
        
