/* Admin, rating and audit-like platform screens. */
.manager-rating-search,
.user-list-filter {
  display:grid;
  gap:8px;
}
.compact-filter {
  display:flex;
  align-items:end;
  gap:10px;
  flex-wrap:wrap;
}
.compact-filter label {
  font-weight:800;
  color:var(--brand);
}
.compact-filter select {
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:10px 12px;
  font:inherit;
  color:var(--ink);
  min-height:44px;
}
.admin-filter-form {
  margin:0;
}
.admin-filter-grid {
  display:grid;
  grid-template-columns:minmax(260px, 1fr) minmax(280px, 1fr) auto;
  gap:12px;
  align-items:end;
}
.admin-filter-grid label {
  margin:0 0 6px;
}
.admin-filter-grid select,
.admin-filter-grid input {
  min-height:44px;
  box-shadow:none;
}
.admin-filter-actions {
  align-self:end;
  flex-wrap:nowrap;
  margin:0;
}
.admin-filter-actions .button,
.admin-filter-actions button {
  min-height:44px;
  white-space:nowrap;
}
.admin-quick-panel {
  display:grid;
  gap:12px;
}
.admin-quick-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:10px;
}
.admin-quick-card {
  display:grid;
  gap:6px;
  min-height:92px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
}
.admin-quick-card:hover {
  border-color:#bcd3ff;
  background:#f8fbff;
}
.admin-quick-card strong {
  font-size:14px;
}
.admin-quick-card span {
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.rating-filter-row {
  display:grid;
  grid-template-columns:minmax(220px, 1.3fr) minmax(140px, .8fr) minmax(170px, .9fr) minmax(150px, .8fr) auto auto;
  align-items:end;
  gap:10px;
}
.rating-filter-field {
  display:grid;
  gap:6px;
}
.rating-filter-row select {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:12px 14px;
  font:inherit;
  color:var(--ink);
  min-height:46px;
  box-shadow:0 8px 22px rgba(5,29,94,.05);
}
.rating-filter-row .button,
.rating-filter-row button {
  white-space:nowrap;
}
.user-list-filter {
  grid-template-columns:minmax(220px, 1.4fr) minmax(150px, .75fr) minmax(180px, .85fr) minmax(160px, .75fr) minmax(150px, .7fr);
  align-items:end;
}
.user-list-filter .user-list-filter-row {
  display:grid;
  gap:6px;
}
.user-list-filter table,
.user-list-filter .curator-fold,
.user-list-filter [data-user-list-count] {
  grid-column:1 / -1;
}
.user-list-table th,
.user-list-table td {
  overflow-wrap:anywhere;
}
.wrap:has(.page-views-page) {
  max-width:min(1220px, calc(100vw - 32px));
  overflow-x:hidden;
}
.page-views-page {
  min-width:0;
}
.page-views-page .panel,
.page-views-page .curator-fold {
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.page-views-table {
  table-layout:fixed;
  max-width:100%;
}
.page-views-table th,
.page-views-table td {
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (min-width: 901px) {
  .page-views-stats-table th:nth-child(1),
  .page-views-stats-table td:nth-child(1) {
    width:23%;
  }
  .page-views-stats-table th:nth-child(2),
  .page-views-stats-table td:nth-child(2) {
    width:34%;
  }
  .page-views-stats-table th:nth-child(3),
  .page-views-stats-table td:nth-child(3) {
    width:11%;
  }
  .page-views-stats-table th:nth-child(4),
  .page-views-stats-table td:nth-child(4),
  .page-views-stats-table th:nth-child(5),
  .page-views-stats-table td:nth-child(5) {
    width:16%;
  }
  .page-views-recent-table th:nth-child(1),
  .page-views-recent-table td:nth-child(1) {
    width:19%;
  }
  .page-views-recent-table th:nth-child(2),
  .page-views-recent-table td:nth-child(2) {
    width:25%;
  }
  .page-views-recent-table th:nth-child(3),
  .page-views-recent-table td:nth-child(3) {
    width:41%;
  }
  .page-views-recent-table th:nth-child(4),
  .page-views-recent-table td:nth-child(4) {
    width:15%;
  }
}
.table-row-actions {
  margin-top:8px;
}
.manager-rating-search label,
.user-list-filter label {
  font-weight:800;
  color:var(--brand);
}
.manager-rating-search input[type="search"],
.user-list-filter input[type="search"],
.user-list-filter select {
  width:min(520px, 100%);
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:12px 14px;
  font:inherit;
  color:var(--ink);
  box-shadow:0 8px 22px rgba(5,29,94,.05);
}
.user-list-filter select {
  width:100%;
}
.manager-rating-search input[type="search"]:focus,
.rating-filter-row select:focus,
.user-list-filter input[type="search"]:focus,
.user-list-filter select:focus {
  outline:2px solid rgba(255,164,18,.35);
  border-color:var(--brand-2);
}
@media (max-width: 900px) {
  .rating-filter-row {
    grid-template-columns:1fr;
  }
  .admin-filter-grid {
    grid-template-columns:1fr;
  }
  .admin-filter-actions {
    flex-wrap:wrap;
  }
  .user-list-filter {
    grid-template-columns:1fr;
  }
  .user-list-filter input[type="search"] {
    width:100%;
  }
}
