/* Accounts tab toolbar (select-all, batch bar, filters) and its stacked narrow-viewport layout. */

/* Accounts toolbar */
.toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
}
.toolbar-spacer {
  flex: 1;
  min-width: 0;
}
.toolbar-divider {
  width: 1px;
  height: 1rem;
  background: var(--border);
  flex-shrink: 0;
}
.batch-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.batch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Accounts mobile layout */
@media (max-width: 720px) {
  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .card-title {
    text-align: left;
  }
  .card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .card-actions > label {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin: 0;
  }
  .card-actions > .btn {
    width: 100%;
    min-width: 0;
    padding: 0;
    height: 2.5rem;
  }
  .card-actions > .btn .btn-text {
    display: none;
  }
  .card-actions > .btn > i {
    font-size: 1rem;
  }
  .toolbar {
    align-items: stretch;
    gap: 0.5rem;
  }
  .toolbar > label {
    width: 100%;
    justify-content: flex-start;
  }
  .toolbar-divider {
    display: none;
  }
  .toolbar-spacer {
    display: none;
  }
  .batch-bar:not(.hidden) {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
  }
  .batch-bar .batch-count {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .batch-bar .btn {
    width: 100%;
    min-width: 0;
  }
  #filterSearch {
    width: 100% !important;
    flex: 1 1 100%;
  }
  #filterStatusSelect {
    width: 100% !important;
  }
  .toolbar .custom-select,
  #filterStatusSelect.custom-select-native + .custom-select {
    flex: 1 1 100%;
    width: 100%;
  }
}

