/* ===== na_rejected_items_html (HTML form) =====
   Loaded eagerly from anvil.yaml native_deps.head_html, which is also what styles
   the designer canvas.

   The root rule stays a bare class so it
   outranks the scoped rules under it; everything else is scoped
   :where(.na-rejected-card), which adds zero specificity and so cannot change
   which rule wins.

   .na-rejected-card is a plain grid item of the shell's .na-two-col, not a screen
   root, so it gains no `flex: 1 0 auto` and no `position: relative`. Its
   overflow/display/flex-direction/max-height are this box's own layout: the
   shared layout's port is .px-nav-content, several boxes up, and this
   rule cannot reach it.

   Tie audit: this form styles no px-* class and declares no name any other sheet
   in the estate declares, so as a head link it cannot lose a tie on document
   order — not to theme.css, and not to the dependency's sheet, which is injected into the head
   at runtime after every link. The table carries .na-rejected-table rather than
   .px-table, so the dependency's table rules never reach it. .na-rejected-body
   also carries the dependency's .themed-scrollbar, whose rules are its own
   ::-webkit-scrollbar selectors and meet nothing declared here.

   DESIGNER NOTE: .na-rejected-empty { display: none } hides the empty-state line
   in the designer too. At runtime the module writes the element's inline display,
   and an inline write beats a class rule. This leaf carries no live class of its
   own to gate the rule on. */

.na-rejected-card {
    background: var(--px-bg-card);
    border: 1px solid var(--px-border);
    border-radius: 16px;
    box-shadow: var(--px-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

:where(.na-rejected-card) .na-rejected-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--px-border);
    flex-shrink: 0;
}

:where(.na-rejected-card) .na-rejected-title {
    font-family: var(--px-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--px-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

:where(.na-rejected-card) .na-rejected-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent, var(--px-accent));
    border-radius: 2px;
}

:where(.na-rejected-card) .na-rejected-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Print shows every row: the scroll box grows to its whole table. */
@media print {
    .na-rejected-card { max-height: none; overflow: visible; }
    :where(.na-rejected-card) .na-rejected-body { overflow: visible; }
}

:where(.na-rejected-card) .na-rejected-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--px-font-display);
    font-size: 0.875rem;
}

:where(.na-rejected-card) .na-rejected-table th {
    position: sticky;
    top: 0;
    background: var(--px-bg-elevated);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--px-text-muted);
    border-bottom: 1px solid var(--px-border-strong);
    white-space: nowrap;
    z-index: 2;
}

:where(.na-rejected-card) .na-rejected-table th[data-sort-type] {
    cursor: pointer;
    user-select: none;
}

:where(.na-rejected-card) .na-rejected-table th[data-sort-type]:hover {
    color: var(--px-text-primary);
}

:where(.na-rejected-card) .na-rejected-table th[data-sort-type]::after {
    content: '\2195';
    margin-left: 0.5rem;
    color: var(--px-text-muted);
    font-size: 0.85em;
}

/* Same specificity as the sorted rules below, so a sorted arrow keeps its accent. */
:where(.na-rejected-card) .na-rejected-table th:hover::after {
    color: var(--px-text-primary);
}

:where(.na-rejected-card) .na-rejected-table th.sort-asc::after {
    content: '\2191';
    color: var(--accent, var(--px-accent-fg));
}

:where(.na-rejected-card) .na-rejected-table th.sort-desc::after {
    content: '\2193';
    color: var(--accent, var(--px-accent-fg));
}

:where(.na-rejected-card) .na-rejected-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--px-border);
    color: var(--px-text-primary);
    vertical-align: middle;
}

:where(.na-rejected-card) .na-rejected-table tbody tr:hover {
    background: var(--px-bg-elevated);
}

:where(.na-rejected-card) .na-rejected-table tbody tr:last-child td {
    border-bottom: none;
}

:where(.na-rejected-card) .na-rejected-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

:where(.na-rejected-card) .na-rejected-empty {
    display: none;
    padding: 2rem;
    text-align: center;
    color: var(--px-text-muted);
    font-size: 0.9rem;
}
