/* Modern user-statistics dialog; the original local handlers remain in place. */
.foxy-ui .Modal.fx-statistics {
  display:flex; flex-direction:column;
  width:min(1080px,calc(100vw - 72px)); height:min(760px,calc(100dvh - 72px));
  max-width:none; max-height:calc(100dvh - 32px); min-width:0;
  padding:0; border:1px solid var(--fx-line); border-radius:22px;
  background:var(--fx-surface); color:var(--fx-text); font-size:16px;
  box-shadow:0 30px 100px #101d3538;
}
.foxy-ui .fx-statistics-header { flex:none; display:flex; align-items:center; gap:16px; padding:30px 90px 26px 30px; }
.foxy-ui .fx-statistics-avatar { width:52px; height:52px; flex:none; display:grid; place-items:center; border:1px solid var(--fx-line); border-radius:16px; background:var(--fx-subtle); color:var(--fx-accent-ink); }
.foxy-ui .fx-statistics :is(.fx-statistics-avatar,.fx-statistics-empty,.fx-statistics-filter) svg { width:24px; height:24px; color:inherit!important; fill:none!important; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.foxy-ui .fx-statistics :is(.fx-statistics-avatar,.fx-statistics-empty,.fx-statistics-filter) svg path { color:inherit!important; fill:none!important; stroke:currentColor; }
.foxy-ui .fx-statistics-identity { min-width:0; }
.foxy-ui .fx-statistics .fx-statistics-header h2 { font-size:24px; line-height:1.3; font-weight:650; letter-spacing:-.5px; margin:0; color:var(--fx-text); }
.foxy-ui .fx-statistics-header p { margin:5px 0 0; font-size:16px; line-height:1.5; color:var(--fx-muted); overflow-wrap:anywhere; }
.foxy-ui .Modal.fx-statistics>.modal-btns { position:absolute; top:28px; right:28px; padding:0; margin:0!important; border:0; }
.foxy-ui .Modal.fx-statistics .fx-statistics-close { display:grid; place-items:center; flex:none; width:40px; min-width:40px; height:40px; min-height:40px; padding:0; margin:0; border:1px solid var(--fx-line); border-radius:12px; color:var(--fx-muted); background:var(--fx-subtle); font-size:28px; font-weight:400; line-height:1; }
.foxy-ui .Modal.fx-statistics .fx-statistics-close:hover { background:var(--fx-hover); color:var(--fx-text); }
.foxy-ui .fx-statistics-tabs { display:flex; gap:8px; flex:none; padding:0 30px 18px; border-bottom:1px solid var(--fx-line); overflow-x:auto; }
.foxy-ui .Modal.fx-statistics .fx-statistics-tab { display:flex; justify-content:center; align-items:center; flex:none; gap:10px; width:auto; min-height:44px; height:auto; padding:10px 16px; border-radius:12px; border:1px solid transparent; background:transparent; color:var(--fx-muted); font-size:16px; font-weight:600; white-space:nowrap; }
.foxy-ui .Modal.fx-statistics .fx-statistics-tab:hover { color:var(--fx-text); background:var(--fx-subtle); box-shadow:none; }
.foxy-ui .Modal.fx-statistics .fx-statistics-tab[aria-selected=true] { color:var(--fx-accent-ink); background:var(--fx-tint); }
.foxy-ui .fx-statistics-count { min-width:25px; height:24px; display:grid; place-items:center; padding:1px 7px; border-radius:7px; background:var(--fx-hover); color:var(--fx-muted); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.foxy-ui .fx-statistics-tab[aria-selected=true] .fx-statistics-count { color:var(--fx-accent-ink); background:var(--fx-surface); }
.foxy-ui .Modal.fx-statistics>.modal-scroll-content { padding:26px 30px 30px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.foxy-ui .fx-statistics .fx-statistics-panel { background:none; border:0; padding:0; margin:0; border-radius:0; box-shadow:none; }
.foxy-ui .fx-statistics .fx-statistics-panel>.spoiler-header { display:none!important; }
.foxy-ui .fx-statistics .fx-statistics-panel>.spoiler-content { height:auto!important; max-height:none!important; overflow:visible; }
.foxy-ui .fx-statistics .fx-statistics-panel>.spoiler-content>.spoiler-inner-content { padding:0; }
.foxy-ui .fx-statistics .admin-head { position:relative; display:block; width:100%; padding:0 0 20px; margin:0 0 20px; border-bottom:1px solid var(--fx-line); }
.foxy-ui .fx-statistics .search-form { display:block; width:100%; margin:0; }
.foxy-ui .fx-statistics .search-inputs { display:block; width:100%; }
.foxy-ui .fx-statistics .search-inputs>div:first-child { width:calc(100% - 140px); max-width:580px; margin:0; }
.foxy-ui .fx-statistics .search-inputs>div:first-child>label:empty { display:none; }
.foxy-ui .fx-statistics :is(input:not([type=checkbox]):not([type=radio]),select,.fx-select-trigger) { min-width:0; width:100%; height:46px; min-height:46px; padding:11px 14px; font-size:16px!important; border-radius:11px; background:var(--fx-subtle); border:1px solid var(--fx-line); color:var(--fx-text); }
.foxy-ui .fx-statistics .fx-select-control { min-width:0; width:100%; }
.foxy-ui .fx-statistics .select-inputs { display:none; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 18px; margin:22px 0 0; padding:20px; border:1px solid var(--fx-line); border-radius:14px; background:var(--fx-subtle); }
.foxy-ui .fx-statistics .fx-statistics-filters-open .select-inputs { display:grid; }
.foxy-ui .fx-statistics .select-inputs>.fx-statistics-field { display:flex; flex-direction:column; align-items:stretch; justify-content:start; gap:8px; width:100%; min-width:0; margin:0; padding:0; }
.foxy-ui .fx-statistics .select-inputs>.fx-statistics-field>label { margin:0; font-size:14px; line-height:1.4; color:var(--fx-muted); font-weight:500; }
.foxy-ui .fx-statistics .select-inputs :is(input,.fx-select-trigger) { background:var(--fx-surface); }
.foxy-ui .fx-statistics .date-picker-container :is(.calendar-wrapper,.react-datepicker-wrapper,.react-datepicker__input-container) { display:block; width:100%; min-width:0; }
.foxy-ui .fx-statistics .date-picker-container .calendar-wrapper { margin:0; }
.foxy-ui .Modal.fx-statistics .fx-statistics-filter { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; gap:7px; width:124px; height:46px; min-height:46px; padding:10px 14px; background:var(--fx-surface); border:1px solid var(--fx-line); border-radius:11px; color:var(--fx-text); font-size:15px; font-weight:550; }
.foxy-ui .Modal.fx-statistics .fx-statistics-filter svg { width:18px; height:18px; }
.foxy-ui .Modal.fx-statistics .fx-statistics-filter[aria-expanded=true] { color:var(--fx-accent-ink); background:var(--fx-tint); border-color:var(--fx-accent-ink); }
.foxy-ui .fx-statistics .fx-statistics-total { font-size:0; line-height:0; margin:15px 0 0; color:var(--fx-muted); }
.foxy-ui .fx-statistics .fx-statistics-total::after { content:attr(data-fx-count-label); display:block; font-size:14px; line-height:1.5; font-variant-numeric:tabular-nums; }
.foxy-ui .fx-statistics .admin-list { display:flex; flex-direction:column; gap:14px; width:100%; max-height:none; overflow:visible; margin:0; }
.foxy-ui .fx-statistics .admin-card { width:100%; align-items:start; padding:20px; border:1px solid var(--fx-line); border-radius:15px; background:var(--fx-surface); }
.foxy-ui .fx-statistics .admin-info { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:calc(100% - 58px); gap:13px 22px; }
.foxy-ui .fx-statistics .admin-info p { display:flex; gap:9px; align-items:center; margin:0; font-size:15px; line-height:1.6; word-break:normal; overflow-wrap:anywhere; color:var(--fx-text); }
.foxy-ui .fx-statistics .admin-info>p:first-child { grid-column:1/-1; font-size:17px; font-weight:600; }
.foxy-ui .fx-statistics .admin-info svg { width:17px; height:17px; flex:none; color:var(--fx-muted); }
.foxy-ui .fx-statistics .admin-info>.inner-div { grid-column:1/-1; }
.foxy-ui .fx-statistics .admin-controll { width:auto; }
.foxy-ui .Modal.fx-statistics .admin-controll .red-btn { display:grid; place-items:center; width:40px; min-width:40px; height:40px; min-height:40px; padding:10px; margin:0; color:#b94e58; background:transparent; border:1px solid var(--fx-line); border-radius:10px; }
.foxy-ui .Modal.fx-statistics .admin-controll .red-btn:hover { background:color-mix(in srgb,#b94e58 8%,var(--fx-surface)); border-color:color-mix(in srgb,#b94e58 35%,var(--fx-line)); }
.foxy-ui .Modal.fx-statistics .admin-controll .red-btn svg,.foxy-ui .Modal.fx-statistics .admin-controll .red-btn svg path { color:inherit!important; fill:currentColor!important; }
.foxy-ui .fx-statistics-empty { min-height:300px; padding:46px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.foxy-ui .fx-statistics .fx-statistics-empty>svg { width:48px; height:48px; padding:10px; border:1px solid var(--fx-line); border-radius:14px; background:var(--fx-subtle); color:var(--fx-muted); margin-bottom:18px; }
.foxy-ui .fx-statistics .fx-statistics-empty h3 { margin:0 0 8px; font-size:18px; line-height:1.4; font-weight:600; color:var(--fx-text); }
.foxy-ui .fx-statistics-empty p { margin:0; max-width:340px; color:var(--fx-muted); font-size:15px; line-height:1.6; }
@media(max-width:760px) {
  .foxy-ui .Modal.fx-statistics { width:calc(100vw - 28px); height:calc(100dvh - 48px); border-radius:18px; }
  .foxy-ui .fx-statistics-header { padding:24px 68px 22px 22px; gap:12px; }
  .foxy-ui .fx-statistics-avatar { width:44px; height:44px; border-radius:13px; }
  .foxy-ui .fx-statistics .fx-statistics-header h2 { font-size:21px; }
  .foxy-ui .Modal.fx-statistics>.modal-btns { top:22px; right:20px; }
  .foxy-ui .fx-statistics-tabs { padding:0 22px 16px; gap:4px; }
  .foxy-ui .Modal.fx-statistics .fx-statistics-tab { font-size:15px; padding:10px 12px; }
  .foxy-ui .Modal.fx-statistics>.modal-scroll-content { padding:22px; }
  .foxy-ui .fx-statistics .select-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px; }
}
@media(max-width:480px) {
  .foxy-ui .Modal.fx-statistics { width:calc(100vw - 16px); height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); border-radius:16px; }
  .foxy-ui .fx-statistics-header { padding:22px 60px 20px 18px; gap:10px; }
  .foxy-ui .fx-statistics-avatar { display:none; }
  .foxy-ui .fx-statistics .fx-statistics-header h2 { font-size:20px; }
  .foxy-ui .Modal.fx-statistics>.modal-btns { top:19px; right:16px; }
  .foxy-ui .Modal.fx-statistics .fx-statistics-close { width:36px; min-width:36px; height:36px; min-height:36px; }
  .foxy-ui .fx-statistics-tabs { padding:0 18px 14px; }
  .foxy-ui .Modal.fx-statistics>.modal-scroll-content { padding:18px; }
  .foxy-ui .fx-statistics .search-inputs>div:first-child { width:calc(100% - 54px); }
  .foxy-ui .Modal.fx-statistics .fx-statistics-filter { width:44px; padding:0; gap:0; font-size:0; }
  .foxy-ui .Modal.fx-statistics .fx-statistics-filter svg { width:22px; height:22px; }
  .foxy-ui .fx-statistics .select-inputs { grid-template-columns:1fr; gap:17px; padding:14px; }
  .foxy-ui .fx-statistics .admin-info { grid-template-columns:1fr; gap:12px; }
  .foxy-ui .fx-statistics-empty { min-height:250px; padding:32px 8px; }
}
