/* =============================================================================
   Empty state: the panel a list shows when it has nothing to show.

   The application had grown 25-odd of these, one per module - .empty-state,
   .doc-empty, .rx-empty, .rp-empty, .gd-empty, .member-empty,
   .fg-jobopenings-empty, .report-role-empty and so on - each with its own
   padding, icon size and muted colour. This is the one to use from here on.

   Markup:
     <div class="app-empty">
       <i class="bi bi-inbox app-empty-icon" aria-hidden="true"></i>
       <p class="app-empty-title">No leave requests yet</p>
       <p class="app-empty-text">Requests appear here once someone applies.</p>
     </div>

   Only .app-empty is required. The icon works with a Bootstrap Icon, a
   Lucide <i data-lucide>, or an inline <svg>.

   A module-prefixed empty state that is already consistent within its own
   screens is not a bug - migrate those as each module is touched, rather than
   in one sweep, so the change can be seen.
   ============================================================================= */

.app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-5);
    text-align: center;
    color: var(--text-muted);
}

/* Inside a table cell the panel should not add a second set of margins. */
td > .app-empty,
th > .app-empty {
    padding-block: var(--space-6);
}

.app-empty-icon,
.app-empty i[data-lucide],
.app-empty > svg {
    width: 40px;
    height: 40px;
    font-size: 32px;
    line-height: 1;
    color: var(--theme-muted, var(--gray-400));
    stroke-width: 1.5;
    margin-bottom: var(--space-1);
}

.app-empty-title {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.app-empty-text {
    margin: 0;
    max-width: 44ch;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    color: var(--text-muted);
}

/* An empty state is a dead end unless it offers the way out. */
.app-empty-action {
    margin-top: var(--space-3);
}

@media (max-width: 575.98px) {
    .app-empty {
        padding: var(--space-6) var(--space-4);
    }
}
