/*
 * The admin panel (Lunar on Filament), made to use the screen and to fit more on it: a wider content area
 * (the width itself is set in AppServiceProvider), a narrower sidebar, a denser menu and tables.
 * Loaded as a Filament asset (AppServiceProvider); published to public/css/app by `php artisan filament:assets`
 * (composer runs it). Everything here is about density, nothing about colour.
 */

/* Content: the whole width, with a modest gutter. */
.fi-main {
  padding-inline: 1.5rem;
}

.fi-page {
  row-gap: 1.25rem;
}

.fi-header {
  row-gap: 0.5rem;
}

/* Sidebar menu: a short row per item and small gaps, so the whole menu fits without scrolling. */
.fi-sidebar-nav {
  padding: 0.75rem 0.625rem;
  row-gap: 0.5rem;
}

.fi-sidebar-nav-groups {
  row-gap: 0.125rem;
}

.fi-sidebar-group {
  row-gap: 0.125rem;
}

.fi-sidebar-group-btn {
  padding: 0.25rem 0.5rem;
}

.fi-sidebar-group-label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fi-sidebar-group-items {
  row-gap: 0;
}

.fi-sidebar-item-btn {
  padding: 0.25rem 0.5rem;
  column-gap: 0.5rem;
  min-height: 0;
}

.fi-sidebar-item-label {
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.fi-sidebar-item-btn .fi-icon,
.fi-sidebar-item-icon {
  width: 1.125rem;
  height: 1.125rem;
}

/*
 * Tables: denser rows. The height of a row is the padding of the cell plus the padding of what is in it (the text,
 * the thumbnail, the badge ...), which Filament sets to 1rem above and below: that is what makes a row tall.
 */
.fi-ta-cell {
  padding-block: 0.125rem;
}

.fi-ta-col > * {
  padding-block: 0.25rem;
}

.fi-ta-header-cell {
  padding-block: 0.5rem;
}

/* Filters above a table: one row. Filament puts a "Filters" heading and the Reset link over the form (two lines);
   the heading goes, the Reset link moves to the end of the row. */
.fi-ta-filters-above-content-ctn .fi-ta-filters {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.fi-ta-filters-above-content-ctn .fi-ta-filters-heading {
  display: none;
}
.fi-ta-filters-above-content-ctn .fi-ta-filters-header {
  order: 2;
  padding-bottom: 0.5rem;
  white-space: nowrap;
}
.fi-ta-filters-above-content-ctn .fi-ta-filters > :not(.fi-ta-filters-header) {
  flex: 1 1 0;
  min-width: 0;
}
