/*
 * Admin panel form layout rules that Filament's grid cannot express.
 * Published by `php artisan filament:assets` (run on every Vapor build) and
 * registered in AppServiceProvider.
 */

/*
 * Edit Conference > CEU certificate settings: one column (Content, Images,
 * Signature) until the viewport reaches 1440px, then Content takes two thirds
 * beside the Signature card and Images runs the full width under both.
 * Filament's responsive grid only knows Tailwind's breakpoints (xl 1280px,
 * 2xl 1536px), so the threshold lives here.
 *
 * Filament renders a Grid's extra attributes on a wrapper div; the real grid
 * (`.fi-sc.fi-grid`) is that wrapper's child, and each item sits in a
 * `.fi-grid-col`. The selectors carry enough class levels to beat Filament's
 * own `.fi-grid`, `.lg:fi-grid-cols` and `.fi-grid-col` rules regardless of
 * stylesheet order.
 */
.ceu-certificate-grid > .fi-sc.fi-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.ceu-certificate-grid > .fi-sc.fi-grid > .fi-grid-col {
    grid-column: span 1 / span 1;
}

@media (min-width: 1440px) {
    .ceu-certificate-grid > .fi-sc.fi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Content */
    .ceu-certificate-grid > .fi-sc.fi-grid > .fi-grid-col:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    /* Images: second in the markup so it stays under Content in one column */
    .ceu-certificate-grid > .fi-sc.fi-grid > .fi-grid-col:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    /* Signature */
    .ceu-certificate-grid > .fi-sc.fi-grid > .fi-grid-col:nth-child(3) {
        grid-column: 3 / span 1;
        grid-row: 1;
    }
}

/*
 * Edit User page (EditUser + edit-user-header.blade.php): profile-style
 * header, underline tabs and profile cards. Every selector is scoped
 * by an `asca-` class so no other admin page changes. Fonts and sizes stay
 * Filament's own; the only sizes declared here are for the two new texts —
 * the avatar initials and the "Last sign-in" line.
 */

/* Header: avatar (photo, else initials) beside the name and sign-in line. */
.asca-user-header-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.asca-user-avatar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dark .asca-user-avatar {
    background-color: color-mix(in oklab, var(--primary-400) 15%, transparent);
    color: var(--primary-300);
}

.asca-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asca-user-header-meta {
    margin-top: 0.125rem;
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
}

.dark .asca-user-header-meta {
    color: var(--gray-400);
}

/*
 * Underline tabs. Filament draws non-contained tabs as a centred white pill
 * with a ring; flatten it to a left-aligned row with a 1px rule underneath.
 * The rule is an inset shadow rather than a border because `.fi-tabs`
 * scrolls horizontally (overflow-x: auto), which would clip an item's
 * negative-margin underline; the active item's 2px bottom border paints
 * over the shadow instead. The page tabs of the Sponsors and Exhibitors
 * lists (pages carrying `asca-underline-tabs`) get the same look.
 */
:is(.asca-user-edit-tabs > .fi-tabs:not(.fi-contained), .asca-underline-tabs .fi-page-sub-navigation-tabs) {
    margin-inline: 0;
    padding: 0;
    column-gap: calc(var(--spacing) * 3);
    border-radius: 0;
    background-color: transparent;
    box-shadow: inset 0 -1px 0 var(--gray-200);
}

.dark :is(.asca-user-edit-tabs > .fi-tabs:not(.fi-contained), .asca-underline-tabs .fi-page-sub-navigation-tabs) {
    background-color: transparent;
    box-shadow: inset 0 -1px 0 color-mix(in oklab, #fff 10%, transparent);
}

:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item,
:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item:hover,
:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item:focus-visible,
:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item.fi-active {
    border-radius: 0;
    background-color: transparent;
}

:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item {
    padding-inline: calc(var(--spacing) * 0.5);
    border-bottom: 2px solid transparent;
}

:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item.fi-active {
    border-bottom-color: var(--primary-600);
}

.dark :is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item.fi-active {
    border-bottom-color: var(--primary-400);
}

/* The background focus cue is gone, so keep a visible (inset) outline. */
:is(.asca-user-edit-tabs > .fi-tabs, .asca-underline-tabs .fi-page-sub-navigation-tabs) .fi-tabs-item:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: -2px;
}

/*
 * Below the md breakpoint Filament swaps a page's tabs for a dropdown above
 * the page title. Two short tabs fit a phone, so these pages keep the strip
 * at every width (it scrolls sideways if it ever runs out of room).
 */
.asca-underline-tabs .fi-page-sub-navigation-tabs {
    display: flex;
}

.asca-underline-tabs .fi-page-sub-navigation-dropdown {
    display: none;
}

/*
 * The six tabs of the Sessions page run out of room on a small laptop and on
 * a phone, and the strip then scrolls sideways. The open tab stays pinned to
 * the edge it would have scrolled past, so it is never the one cut off; the
 * tabs passing beside it fade out over the gap between two tabs. With room
 * for every tab nothing is pinned and the fades sit on empty space.
 */
.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active,
.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:hover,
.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:focus-visible {
    position: sticky;
    inset-inline: 0;
    z-index: 1;
    background-color: var(--gray-50);
}

.dark .asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active,
.dark .asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:hover,
.dark .asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:focus-visible {
    background-color: var(--gray-950);
}

.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:first-child)::before,
.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-block: 0 2px;
    width: calc(var(--spacing) * 3);
    pointer-events: none;
}

.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:first-child)::before {
    inset-inline-end: 100%;
    background: linear-gradient(to right, transparent, var(--gray-50));
}

.asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:last-child)::after {
    inset-inline-start: 100%;
    background: linear-gradient(to left, transparent, var(--gray-50));
}

.dark .asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:first-child)::before {
    background: linear-gradient(to right, transparent, var(--gray-950));
}

.dark .asca-underline-tabs .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active:not(:last-child)::after {
    background: linear-gradient(to left, transparent, var(--gray-950));
}

/*
 * Profile cards (collapsible Sections). They keep Filament's default card
 * padding and the divider under the heading, like the relation tables on the
 * other tabs; the gap between field rows and columns is 1.25rem, a little
 * under Filament's 1.5rem. Filament renders a Section's extra attributes on a
 * wrapper div, so the card class sits on the section's parent.
 */
.asca-profile-card > .fi-section:not(.fi-section-not-contained):not(.fi-divided) > .fi-section-content-ctn > .fi-section-content {
    gap: calc(var(--spacing) * 5);
}

/*
 * Space the cards about 1rem apart, as in the mockup, instead of the 1.5rem
 * schema gap. `:has()` limits this to the grid that holds the cards: the
 * Profile tab form and the relation-manager edit modals that reuse it.
 */
.fi-sc.fi-sc-has-gap:has(> .fi-grid-col > .fi-sc-component > .asca-profile-card) {
    row-gap: calc(var(--spacing) * 4);
}

/*
 * Profile preferences: one full-width row per toggle — label left, switch
 * right — with a divider between rows, inside the card padding (the card
 * heading's own divider sits above the first row). The inline toggle sits
 * inside the field's label before the label text, so reversing the label's
 * flex row moves the switch to the right.
 */
.asca-profile-card.asca-profile-preferences > .fi-section:not(.fi-section-not-contained):not(.fi-divided) > .fi-section-content-ctn > .fi-section-content {
    gap: 0;
}

.asca-profile-preferences .fi-section-content > .fi-grid-col {
    padding-block: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.dark .asca-profile-preferences .fi-section-content > .fi-grid-col {
    border-top-color: color-mix(in oklab, #fff 10%, transparent);
}

.asca-profile-preferences .fi-section-content > .fi-grid-col:first-child {
    padding-top: 0;
    border-top-width: 0;
}

.asca-profile-preferences .fi-section-content > .fi-grid-col:last-child {
    padding-bottom: 0;
}

.asca-profile-preferences .fi-fo-field .fi-fo-field-label-col,
.asca-profile-preferences .fi-fo-field .fi-fo-field-label-ctn {
    width: 100%;
}

.asca-profile-preferences .fi-fo-field .fi-fo-field-label {
    width: 100%;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}


/*
 * Edit User > Agenda (and, via `asca-table-header-row`, the Conferences,
 * Organizations and Devices tabs): one header row — heading, then the filter
 * button and the search field, then the Add button. Filament renders the
 * heading + header actions in `.fi-ta-header` and the search/filter toolbar in a separate
 * `.fi-ta-header-toolbar` row below it; `display: contents` lifts both rows'
 * children into the shared `.fi-ta-header-ctn`, which becomes the flex row,
 * and `order` interleaves them. Scoped by the table's `asca-agenda-table` or
 * `asca-table-header-row` class so no other table changes.
 */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-ctn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
    padding: calc(var(--spacing) * 4);
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 40rem) {
    :is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-ctn {
        padding-inline: calc(var(--spacing) * 6);
    }
}

.dark :is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-ctn {
    border-color: rgba(255, 255, 255, 0.1);
}

:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header,
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-toolbar {
    display: contents;
}

/* heading */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header > div:not(.fi-ta-actions) {
    order: 1;
    margin-inline-end: auto;
}

/*
 * A table without a heading (the Users list, whose page title already names
 * it): no heading margin takes the free space, so the row packs to the right.
 */
.asca-table-header-row .fi-ta-header-ctn:not(:has(.fi-ta-header > div:not(.fi-ta-actions))) {
    justify-content: flex-end;
}

/*
 * A table with a description under its title (Support Manager > Support
 * center topics): the title block takes the free space and wraps its text, so
 * the controls stay on the row instead of dropping under one long line.
 */
.asca-table-header-row .fi-ta-header > div:not(.fi-ta-actions):has(.fi-ta-header-description) {
    flex: 1 1 16rem;
    min-width: 0;
}

/* On a narrow page the buttons wrap under the title; keep them to the right. */
.asca-table-header-row .fi-ta-header:has(.fi-ta-header-description) > .fi-ta-actions {
    margin-inline-start: auto;
}

/* bulk actions (only while rows are selected) */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-toolbar > .fi-ta-actions {
    order: 2;
}

/* search field + filter button */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-toolbar > div:not(.fi-ta-actions) {
    order: 3;
}

/* Add to Agenda */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header > .fi-ta-actions {
    order: 4;
}

/*
 * Only the heading's end margin may absorb the free space; Filament gives the
 * toolbar's search group and the header actions auto start margins of their
 * own, which would otherwise split the row into three gaps.
 */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-toolbar > div:not(.fi-ta-actions),
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header > .fi-ta-actions {
    margin-inline: 0;
}

/* filter button first, then the search field (both are flex siblings) */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-header-toolbar > div:not(.fi-ta-actions) > .fi-ta-search-field {
    order: 1;
}

/*
 * Tables sharing the row (Edit User > Conferences, Organizations, Devices):
 * their filter trigger is the same outlined icon-only button, and Filament's
 * count badge (a permanent "0" on its corner) is dropped as on Agenda — the
 * active-filter chips under the header say what is applied.
 */
.asca-table-header-row .fi-ta-filters-dropdown .fi-badge {
    display: none;
}

/*
 * The filter trigger is an outlined icon-only button; the Conference filter is
 * always on, so Filament's count badge would read "1" forever — the active
 * filter chips under the header carry that information instead.
 */
.asca-agenda-table .fi-ta-filters-dropdown .fi-badge {
    display: none;
}

/* The active-filter chips row is tinted so an applied filter is noticed. */
:is(.asca-agenda-table, .asca-table-header-row) .fi-ta-filter-indicators {
    background-color: color-mix(in oklab, var(--primary-500) 8%, transparent);
}

.dark :is(.asca-agenda-table, .asca-table-header-row) .fi-ta-filter-indicators {
    background-color: color-mix(in oklab, var(--primary-400) 14%, transparent);
}

/*
 * Name cell of the Speakers list and of Edit Session > Speakers
 * (speaker-resource/name-cell.blade.php): a round avatar, then the name with
 * the email underneath. A ViewColumn gets no padding of its own, so the cell
 * carries the padding of Filament's text column, and the two lines take the
 * sizes of a text column's state and description, so they line up with the
 * Position column beside them.
 */
.asca-person-cell {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 3);
    width: 100%;
    padding: calc(var(--spacing) * 4) calc(var(--spacing) * 3);
    text-align: start;
}

/* The initials; a photo, when there is one, covers them. */
.asca-person-avatar {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.dark .asca-person-avatar {
    background-color: color-mix(in oklab, var(--primary-400) 15%, transparent);
    color: var(--primary-300);
}

.asca-person-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the gap Filament puts between a text column's state and its description */
.asca-person-text {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1);
    min-width: 0;
    max-width: 20rem;
}

/* A very long name or address is cut at the cell's width, not wrapped. */
.asca-person-name,
.asca-person-email {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.asca-person-name {
    color: var(--gray-950);
    font-size: var(--text-sm);
    line-height: calc(var(--spacing) * 6);
}

.dark .asca-person-name {
    color: white;
}

.asca-person-email {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
}

.dark .asca-person-email {
    color: var(--gray-400);
}

/*
 * Position and Sessions on the same tables wrap, so the table fits beside the
 * sidebar without scrolling sideways. The minimum keeps a narrow screen from
 * squeezing them to a word per line; the table scrolls sideways there instead.
 */
.asca-speaker-lines {
    min-width: 10rem;
}

/*
 * Support Manager > Support requests > View: the request as label and value
 * rows, side by side from 40rem and stacked below it. The values are whatever
 * the attendee typed, so a long unbroken string must wrap inside the modal.
 */
.asca-support-request-details {
    display: grid;
    gap: calc(var(--spacing) * 3);
    font-size: 0.875rem;
}

.asca-support-request-details dt,
.asca-support-request-details-note {
    color: var(--gray-500);
}

.dark .asca-support-request-details dt,
.dark .asca-support-request-details-note {
    color: var(--gray-400);
}

.asca-support-request-details dd {
    overflow-wrap: anywhere;
}

.asca-support-request-details a {
    color: var(--primary-600);
    text-decoration: underline;
}

.dark .asca-support-request-details a {
    color: var(--primary-400);
}

@media (min-width: 40rem) {
    .asca-support-request-details > div {
        display: grid;
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: calc(var(--spacing) * 4);
    }
}
\n
/*
 * The Review step of the session import (ImportSessions): Filament prints a
 * list item's text as an inline block, which puts the bullet beside the last
 * line of an item that wraps. Inline text keeps it beside the first.
 */
.asca-import-review-list > li > .fi-sc-text {
    display: inline;
}

/*
 * A card whose header holds a button beside a long description: the Winners
 * card on Movement Challenge > Challenge Winner. Filament sizes the header
 * text by its content, so a description wider than the row pushes the button
 * onto a line of its own, under the text. Starting the text from a fixed
 * width lets the description wrap and keeps the button at the end of the
 * row. Where even that width does not fit beside the button, as on a phone,
 * the button still drops under the text.
 */
.asca-section-header-actions-end .fi-section-header-text-ctn {
    flex: 1 1 16rem;
}

/*
 * Edit Conference > Details > National conference (ConferenceSchemas): the
 * switch sits in the card heading and the fields under it are shown in the
 * browser while it is on. While it is off the card body holds nothing but
 * the hidden fieldset, so the body goes too and the card folds to its
 * heading. The divider under a card heading is the top border of the body's
 * container, which is why the container is the element hidden. `x-cloak`
 * covers the moment before the browser has read the switch.
 */
.asca-conference-national .fi-section-content-ctn:has(> .fi-section-content > .fi-sc-visibility-fieldset:only-child:is(.fi-hidden, [x-cloak])) {
    display: none;
}

/*
 * Edit Conference > Details > Date & time > Timezone, and the same field on
 * the New Conference page. ConferenceSchemas::timezoneOptionLabel() builds
 * each label: the GMT offset, the zone's name, a No DST tag where it applies,
 * and the places the zone covers. The same label is drawn two ways: as a row
 * of the open list and as one line on the closed field.
 */
.asca-tz-gmt {
    color: var(--gray-500);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dark .asca-tz-gmt {
    color: var(--gray-400);
}

.asca-tz-zone {
    font-weight: 600;
}

.asca-tz-places {
    color: var(--gray-500);
}

.dark .asca-tz-places {
    color: var(--gray-400);
}

.asca-tz-tag {
    display: inline-block;
    margin-inline-start: 0.125rem;
    padding-inline: 0.375rem;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    background-color: #fff;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
}

.dark .asca-tz-tag {
    border-color: color-mix(in oklab, #fff 20%, transparent);
    background-color: transparent;
    color: var(--gray-300);
}

/*
 * The open list. A row is a flex container, so the label takes its full
 * width. The offset keeps a column of its own and the places sit on a line
 * under the zone's name. The list is taller than a select's usual 15rem, so
 * the ten zones show without scrolling on most screens.
 */
.fi-select-input-ctn:has(.asca-tz) > .fi-dropdown-panel {
    max-height: min(34rem, 70vh);
}

.fi-select-input-option > span:has(> .asca-tz) {
    flex: 1 1 auto;
    min-width: 0;
}

.fi-select-input-option .asca-tz {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 0.5rem;
    align-items: baseline;
}

.fi-select-input-option .asca-tz-places {
    display: block;
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
}

/*
 * A rule before the row that starts a group: the territories, and a zone
 * saved on the conference that the list does not hold. It is darker than the
 * hairline the list draws between rows.
 */
.fi-select-input-option:has(.asca-tz-gap) {
    margin-top: 0.25rem;
    border-top: 1px solid var(--gray-300);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dark .fi-select-input-option:has(.asca-tz-gap) {
    border-top-color: color-mix(in oklab, #fff 20%, transparent);
}

/*
 * The closed field: offset, name and places on one line, so the field keeps
 * its height. The words wrap inside a box one line tall: the places show
 * when there is room for them beside the name (a wide field) and drop to a
 * second line that is cut off when there is not (the narrow column). A name
 * longer than the field ends in an ellipsis.
 */
.fi-select-input-value-label:has(> .asca-tz) {
    min-width: 0;
}

.fi-select-input-value-label .asca-tz {
    display: flex;
    align-items: baseline;
    column-gap: 0.5rem;
    min-width: 0;
}

.fi-select-input-value-label .asca-tz-gmt {
    flex: none;
}

.fi-select-input-value-label .asca-tz-words {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.375rem;
    min-width: 0;
    max-height: 1.5rem;
    overflow: hidden;
}

.fi-select-input-value-label .asca-tz-zone {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The name may break after a slash in the list, never on the closed field. */
.fi-select-input-value-label .asca-tz-zone wbr {
    display: none;
}

.fi-select-input-value-label .asca-tz-tag {
    flex: none;
    margin-inline-start: 0;
}

.fi-select-input-value-label .asca-tz-places {
    flex: 1 0 9rem;
    min-width: 0;
    overflow: hidden;
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Edit Conference > Handouts > Handout ZIP files (handout-zip-rows.blade.php):
 * one row per ZIP file, with its name over what it holds on the left and,
 * on the right, Ready and a Download link or "Not generated yet". A divider
 * separates the rows; the card heading's own divider sits above the first.
 */
.asca-handout-zips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.asca-handout-zips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing) * 2) calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 4);
    border-top: 1px solid var(--gray-200);
}

.dark .asca-handout-zips-row {
    border-top-color: color-mix(in oklab, #fff 10%, transparent);
}

.asca-handout-zips-row:first-child {
    padding-top: 0;
    border-top-width: 0;
}

.asca-handout-zips-row:last-child {
    padding-bottom: 0;
}

.asca-handout-zips-text {
    min-width: 0;
}

.asca-handout-zips-title,
.asca-handout-zips-description,
.asca-handout-zips-empty {
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
}

.asca-handout-zips-title {
    color: var(--gray-950);
    font-weight: 500;
}

.dark .asca-handout-zips-title {
    color: white;
}

.asca-handout-zips-description,
.asca-handout-zips-empty {
    color: var(--gray-500);
}

.dark .asca-handout-zips-description,
.dark .asca-handout-zips-empty {
    color: var(--gray-400);
}

.asca-handout-zips-status {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 4);
}

/*
 * Edit Conference > Information > Preview (information-preview.blade.php):
 * the saved information at phone width, under the strip the app's Conference
 * Information page shows. The strip takes the conference's primary colour
 * from an inline style. The body and the card keep the app's light colours
 * in the dark theme too, because the app is always light.
 *
 * The card prints stored HTML (sanitized, with its style and class
 * attributes dropped). `contain` and `overflow` keep whatever it holds inside
 * the card, long words wrap, images shrink to fit, and links cannot be
 * followed from the preview.
 */
.asca-conference-preview {
    max-width: 22rem;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: #f3f4f6;
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--gray-950) 10%, transparent);
}

.dark .asca-conference-preview {
    box-shadow: 0 0 0 1px color-mix(in oklab, #fff 20%, transparent);
}

.asca-conference-preview-strip {
    padding: 1.25rem 1rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.asca-conference-preview-body {
    contain: content;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 1rem;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.asca-conference-preview-card {
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.asca-conference-preview-empty {
    padding-block: 1.5rem;
    color: #6b7280;
    text-align: center;
}

.asca-conference-preview-card img,
.asca-conference-preview-card video,
.asca-conference-preview-card table {
    max-width: 100%;
    height: auto;
}

.asca-conference-preview-card a {
    color: #0e7490;
    text-decoration: underline;
    pointer-events: none;
}

.asca-conference-preview-card :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote) {
    margin-block: 0 0.75rem;
}

.asca-conference-preview-card :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote):last-child {
    margin-bottom: 0;
}

.asca-conference-preview-card :is(h1, h2, h3, h4, h5, h6) {
    color: #111827;
    font-weight: 600;
}

.asca-conference-preview-card :is(h1, h2) {
    font-size: 1rem;
    line-height: 1.5rem;
}

.asca-conference-preview-card :is(ul, ol) {
    padding-inline-start: 1.25rem;
}

.asca-conference-preview-card ul {
    list-style: disc;
}

.asca-conference-preview-card ol {
    list-style: decimal;
}

.asca-conference-preview-card li {
    margin-block: 0.25rem;
}

.asca-conference-preview-card li > p {
    margin: 0;
}

.asca-conference-preview-card strong {
    color: #111827;
    font-weight: 600;
}

/*
 * Edit Conference > CEU certificate: the row with the sentence and the
 * Preview certificate button sits as far above the cards as the cards sit
 * from each other.
 */
.asca-conference-ceu > .fi-section.fi-section-not-contained {
    row-gap: calc(var(--spacing) * 6);
}

/*
 * Edit Conference > Registration system. The tab holds no fields. Its table
 * is printed under the form by EditConference::content() and is shown only
 * while that tab is open. The rule reads the open panel, which Alpine marks
 * with `fi-active`, so it needs no script and still works when a narrow
 * screen moves the tab's button into the strip's overflow menu. The table's
 * cell of the page grid is the element hidden, because an empty row of that
 * grid would still take a gap.
 */
.fi-page-content .fi-grid-col:has(> .fi-sc-component > .asca-conference-registration) {
    display: none;
}

.fi-page-content:has(.asca-conference-tabs > .fi-sc-tabs-tab.asca-conference-registration-tab.fi-active) .fi-grid-col:has(> .fi-sc-component > .asca-conference-registration) {
    display: block;
}

/*
 * The empty panel takes no room, so the table sits one grid gap under the
 * strip, the distance Filament gives every other panel.
 */
.asca-conference-tabs > .fi-sc-tabs-tab.asca-conference-registration-tab.fi-active {
    margin-top: 0;
}

/*
 * Edit Conference page header (edit-conference-header.blade.php): a tile in
 * the conference's two colours beside its name, a status badge and a line of
 * organization, dates and location. The row and the line reuse the Edit User
 * header's `asca-user-header-identity` and `asca-user-header-meta`.
 *
 * The tile is the size and shape of the Edit User avatar. Its two halves take
 * their colours from inline styles; a conference with no usable colour gets
 * the neutral tile. The ring keeps a white or very pale tile visible.
 */
.asca-conference-header-text {
    min-width: 0;
}

.asca-conference-header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.asca-conference-swatch {
    display: flex;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--gray-950) 10%, transparent);
}

.dark .asca-conference-swatch {
    box-shadow: 0 0 0 1px color-mix(in oklab, #fff 15%, transparent);
}

.asca-conference-swatch > span {
    flex: 1 1 0;
}

.asca-conference-swatch-empty {
    background-color: var(--gray-200);
}

.dark .asca-conference-swatch-empty {
    background-color: color-mix(in oklab, #fff 10%, transparent);
}

/*
 * Edit Conference save bar (edit-conference-save-bar.blade.php): "Unsaved
 * changes" with Discard and Save changes, pinned to the bottom of the screen
 * and centred over the page content. It is the last child of the page's
 * column, so `sticky` holds it at the bottom of the window while the page is
 * taller than the window and lets it rest under the content at the very end.
 * The view hides it (`x-show`, and `x-cloak` before the script has run) until
 * a field has been changed; both of those beat the `display` set here.
 */
.asca-save-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    align-self: center;
    width: 100%;
    max-width: 40rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: #fff;
    box-shadow:
        0 0 0 1px color-mix(in oklab, var(--gray-950) 10%, transparent),
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark .asca-save-bar {
    background-color: var(--gray-800);
    box-shadow:
        0 0 0 1px color-mix(in oklab, #fff 15%, transparent),
        0 20px 25px -5px rgb(0 0 0 / 0.4),
        0 8px 10px -6px rgb(0 0 0 / 0.4);
}

.asca-save-bar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-950);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--text-sm--line-height);
}

.dark .asca-save-bar-status {
    color: #fff;
}

.asca-save-bar-dot {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--warning-400);
}

.asca-save-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
