/* Shared layout for the FreshCode screens built on top of MainLayout's tabs: list pages
   (EmailSOSList, PhoneSOSList) and menu pages (ConfigMenu). */

.screen {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 48rem;
    /* The layout's content area is a flex column: auto margins there shrink-to-fit unless the width is set. */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.screen__empty {
    text-align: center;
    color: var(--fc-muted);
    padding: 2rem 0;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    /* SearchResultCardStyle: RoundRectangle 18, padding 18,16, black shadow 10% (0,3 / 10). */
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

.list-card__main {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    color: var(--fc-ink);
}

.list-card__title {
    font-weight: 600;
}

.list-card__subtitle {
    font-size: .85rem;
    color: var(--fc-muted);
}

.menu-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2rem);
}

/* Bulk upload: the native file input is hidden; its <label> carries GUI's button look. */
.bulk-load__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bulk-load__button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.3;
}

.bulk-load__button--busy {
    opacity: var(--gui-button-disabled-opacity, .45);
    pointer-events: none;
}

/* Server answers can be several lines (one per rejected user). */
.bulk-load__result {
    white-space: pre-line;
}

/* .gui-theme prefix: must outrank the label colors in gui-tokens.css. */
.gui-theme .bulk-load__result--error {
    color: var(--fc-gui-cancel-text);
}
