/* ---------- Barra viste + filtri (lista ticket) ---------- */
.page-hero.slim { padding: 1.9rem 2.5rem; margin: 1.25rem 0; }
.page-hero.slim .page-title { font-size: 1.9rem; margin-bottom: .2rem; }
.page-hero.slim .page-subtitle { font-size: .95rem; }

.toolbar {
  background: #fff; border-radius: 16px; padding: .75rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.toolbar-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.toolbar-tabs::-webkit-scrollbar { display: none; }
.toolbar-tabs .tab { white-space: nowrap; border-color: transparent; padding: .55rem 1rem; }
.toolbar-tabs .tab:hover { border-color: var(--color-border-strong); }
.toolbar-tabs .tab.active { border-color: #000; }

.toolbar-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding-top: .75rem; border-top: 1px solid var(--color-border);
}
.search-box {
  flex: 1 1 260px; min-width: 200px; height: 40px; display: flex; align-items: center; gap: .6rem; padding: 0 .9rem;
  background: #f8fafc; border: 2px solid #f1f5f9; border-radius: 10px; color: var(--color-muted); cursor: text; transition: all .2s;
}
.search-box:focus-within { background: #fff; border-color: #000; color: #000; }
.search-box input {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: .9rem; color: #000;
}
.filter-select.select.sm {
  width: auto; flex: 0 0 auto; max-width: 190px; height: 40px;
  background-color: #f8fafc; border-color: #f1f5f9; font-size: .85rem; font-weight: 500;
}
.filter-select.select.sm:hover { border-color: var(--color-border-strong); }
.filter-select.select.sm.is-set {
  background-color: #000; color: #fff; border-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.toolbar-filters .btn.sm { height: 40px; }

/* Schermi larghi: viste e filtri sulla stessa riga */
/* Sempre due righe (viste sopra, filtri sotto): mai oltre il bordo della barra */
.toolbar, .toolbar-filters { min-width: 0; }
.toolbar { overflow: hidden; }
@media (max-width: 700px) {
  .filter-select.select.sm { flex: 1 1 calc(50% - .25rem); width: 0; min-width: 0; max-width: none; text-overflow: ellipsis; }
  .search-box { flex-basis: 100%; }
  .page-hero.slim { padding: 1.4rem 1.25rem; }
  .page-hero.slim .page-title { font-size: 1.6rem; }
}

/* Menu staff con la voce Aggiornamenti: più compatto, menu mobile sotto i 1400px */
.admin-body .header-left { gap: 1.25rem; }
.admin-body .site-header .site-nav { gap: .35rem; }
.admin-body .site-header .site-nav a { padding: .5rem .7rem; font-size: .82rem; }
@media (max-width: 1400px) {
  .admin-body .site-header .site-nav, .admin-body .header-actions .btn-outline-dark, .admin-body .header-actions .inline-form { display: none; }
  .admin-body .icon-btn { display: flex; }
}
