/**
 * Member Portal CSS
 * Union Member Management Plugin
 * Version: 1.0.0
 */

/* =========================================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ========================================================= */

/* Colours (light and dark), the union's colour and the shapes: assets/css/umm-ui.css,
   loaded before this file. Layout tokens stay here. */
.umm-member-portal {
    --umm-sidebar-w: 240px;

    --umm-header-h: 60px;
    --umm-radius: 8px;
    --umm-radius-sm: 4px;
    --umm-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --umm-shadow-md: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .06);

    --umm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --umm-font-size: 14px;
    --umm-line-height: 1.6;

    --umm-transition: 0.2s ease;
    --umm-z-modal: 9999;
    --umm-z-dropdown: 1000;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

.umm-member-portal,
.umm-member-portal * {
    box-sizing: border-box;
}

.umm-member-portal {
    font-family: var(--umm-font);
    font-size: var(--umm-font-size);
    line-height: var(--umm-line-height);
    color: var(--umm-text);
    background: var(--umm-bg);
    border-radius: var(--umm-radius);
    overflow: hidden;
    border: 1px solid var(--umm-border);
    min-height: 600px;
    position: relative;
    padding: 0 !important;
}

/* =========================================================
   HEADER
   ========================================================= */

.umm-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--umm-header-h);
    padding: 0 16px;
    background: var(--umm-sidebar-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: var(--umm-z-dropdown);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.umm-portal-header-left,
.umm-portal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umm-portal-logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Logo text: full on desktop, short on tablet/mobile */
.umm-logo-short {
    display: none;
}

.umm-logo-full {
    display: inline;
}

.umm-portal-nav-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--umm-radius-sm);
    display: flex;
    align-items: center;
}

.umm-portal-nav-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.umm-portal-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--umm-sidebar-text);
    position: relative;
}

.umm-portal-user-menu__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    border-radius: var(--umm-radius-sm);
    transition: background var(--umm-transition);
}

.umm-portal-user-menu__toggle:hover,
.umm-portal-user-menu__toggle:focus-visible {
    background: rgba(255, 255, 255, .1);
    outline: none;
}

.umm-portal-user-caret {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    transition: transform var(--umm-transition);
    flex-shrink: 0;
}

.umm-portal-user-menu.is-open .umm-portal-user-caret {
    transform: rotate(180deg);
}

.umm-portal-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 264px;
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    box-shadow: var(--umm-shadow-md);
    z-index: 9000;
    overflow: hidden;
}

.umm-portal-user-dropdown__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--umm-text);
}

.umm-portal-user-dropdown__header strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.umm-portal-user-dropdown__header small {
    display: block;
    font-size: 11px;
    color: var(--umm-text-muted);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umm-portal-user-dropdown__divider {
    margin: 0;
    border: none;
    border-top: 1px solid var(--umm-border);
}

.umm-portal-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--umm-danger);
    text-align: left;
    transition: background var(--umm-transition);
}

/* "Contul Meu" in the account menu: each section with the star it had on its
   card (Listă rapidă). */
.umm-portal-user-dropdown__row {
    display: flex;
    align-items: center;
}

.umm-portal-user-dropdown__row > .umm-portal-user-dropdown__item {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    color: var(--umm-text);
    font-size: calc(14.5px * var(--umm-scale, 1));
}

.umm-portal-user-dropdown__row > .umm-portal-user-dropdown__item .dashicons {
    color: var(--umm-accent-text);
}

.umm-portal-user-dropdown__pin {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--umm-text-muted);
    cursor: pointer;
}

.umm-portal-user-dropdown__pin[hidden] {
    display: none;
}

.umm-portal-user-dropdown__pin:hover,
.umm-portal-user-dropdown__pin:focus-visible {
    background: var(--umm-accent-soft);
    color: var(--umm-accent-text);
}

.umm-portal-user-dropdown__pin.is-pinned {
    color: var(--umm-warn-icon);
}

@media (pointer: coarse) {
    .umm-portal-user-dropdown__pin {
        width: 44px;
        height: 44px;
    }
}

/* "Contul Meu" in the account menu: a small heading over its sections. */
.umm-portal-user-dropdown__label {
    margin: 4px 0 2px;
    padding: 0 12px;
    color: var(--umm-text-muted);
    font-size: calc(11.5px * var(--umm-scale, 1));
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.umm-portal-user-dropdown__item:hover,
.umm-portal-user-dropdown__item:focus-visible {
    background: var(--umm-surface-alt);
    outline: none;
}

/* "Administrare" (an officer who is also a member): a way somewhere, not
   the red of signing out. */
.umm-portal-user-dropdown__item--link,
.umm-portal-user-dropdown__item--link:hover,
.umm-portal-user-dropdown__item--link:focus,
.umm-portal-user-dropdown__item--link:visited {
    color: var(--umm-text);
    text-decoration: none;
    box-sizing: border-box;
}

.umm-portal-user-dropdown__item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.umm-portal-username {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   BODY LAYOUT (sidebar + content)
   ========================================================= */

.umm-portal-body {
    display: flex;
    min-height: calc(100% - var(--umm-header-h));
}

/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.umm-portal-sidebar {
    width: var(--umm-sidebar-w);
    flex-shrink: 0;
    background: var(--umm-sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: width var(--umm-transition);
    overflow-y: auto;
    min-height: 100%;
}

.umm-portal-nav-list {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.umm-portal-nav-item {
    position: relative;
}

.umm-portal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--umm-sidebar-text);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 13.5px;
    font-family: var(--umm-font);
    transition: background var(--umm-transition), color var(--umm-transition);
    border-left: 3px solid transparent;
}

.umm-portal-nav-link:hover {
    background: var(--umm-sidebar-hover);
    color: #fff;
    text-decoration: none;
}

.umm-portal-nav-item.is-active>.umm-portal-nav-link,
.umm-portal-nav-link[aria-selected="true"] {
    background: rgba(59, 130, 246, .15);
    color: var(--umm-sidebar-active);
    border-left-color: var(--umm-sidebar-active);
    font-weight: 600;
}

.umm-portal-nav-label {
    flex: 1;
}

.umm-portal-badge {
    background: var(--umm-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.umm-portal-sidebar-footer {
    padding: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* Collapsed sidebar */
.umm-portal-sidebar.umm-sidebar-collapsed {
    width: 56px;
}

.umm-portal-sidebar.umm-sidebar-collapsed .umm-portal-nav-label,
.umm-portal-sidebar.umm-sidebar-collapsed .umm-portal-badge,
.umm-portal-sidebar.umm-sidebar-collapsed .umm-portal-sidebar-footer {
    display: none;
}

/* =========================================================
   CONTENT AREA
   ========================================================= */

.umm-portal-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--umm-bg);
    min-width: 0;
}

.umm-portal-tab {
    display: none;
    padding: 24px;
    animation: ummFadeIn .18s ease;
}

.umm-portal-tab.is-active {
    display: block;
}

.umm-portal-tab[data-tab-slug="benefits"].is-active {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.umm-portal-tab[data-tab-slug="notes"].is-active {
    padding: 0;
}

.umm-tab-benefits {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.umm-tab-benefits>.umm-portal-page-title {
    flex-shrink: 0;
}

.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: var(--umm-mb-portal-wrap-h, calc(100vh - 70px));
    height: var(--umm-mb-portal-wrap-h, calc(100vh - 70px));
    overflow: hidden;
    position: relative;
    border: 1px solid var(--umm-border);
    border-radius: 12px;
    background: var(--umm-surface);
}

.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal .umm-mb-main,
.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal .umm-mb-content,
.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal .umm-mb-view {
    flex: 1;
    min-height: 0;
}

.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal .umm-mb-content {
    padding-top: 0;
}

.umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal .umm-mb-toolbar {
    box-shadow: none;
}

.umm-tab-benefits .umm-mb-portal-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.umm-tab-benefits .umm-mb-portal-tabs::-webkit-scrollbar {
    display: none;
}

.umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item {
    width: auto;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid transparent !important;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    background: transparent !important;
}

.umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item.active,
.umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item.is-active,
.umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item[aria-selected="true"] {
    border-color: var(--umm-dk-info-line, #d3e3f2) !important;
    background: var(--umm-primary-light) !important;
    color: var(--umm-primary);
}

@media (max-width: 640px) {
    /* The label goes, so the pill's padding goes too: icon only is a circle. */
    .umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item {
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
    }

    .umm-tab-benefits .umm-mb-portal-tabs .umm-mb-nav-item .umm-nav-label {
        display: none;
    }
}

@keyframes ummFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.umm-portal-tab-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 10px;
    color: var(--umm-text-muted);
}

/* Loading, inside the portal: the components' skeleton, shaped like a
   section (a strip, then three cards) — drawn from the loader every script
   already writes, whatever it holds (Phase 3, §5.2). */
.umm-member-portal .umm-portal-tab-loader {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 4px 0;
}

.umm-member-portal .umm-portal-tab-loader > .umm-portal-spinner {
    display: none;
}

.umm-member-portal .umm-portal-tab-loader::before,
.umm-member-portal .umm-portal-tab-loader::after {
    content: "";
    display: block;
    background: linear-gradient(90deg, var(--umm-surface-alt) 0%, var(--umm-border) 50%, var(--umm-surface-alt) 100%);
    background-size: 200% 100%;
    animation: umm-ui-shimmer 1.2s linear infinite;
}

.umm-member-portal .umm-portal-tab-loader::before {
    width: 62%;
    height: 42px;
    border-radius: var(--umm-radius-pill, 999px);
}

.umm-member-portal .umm-portal-tab-loader::after {
    height: 198px;
    border-radius: var(--umm-radius-card, 14px);
    -webkit-mask: linear-gradient(#000 0 58px, transparent 58px 70px, #000 70px 128px, transparent 128px 140px, #000 140px);
    mask: linear-gradient(#000 0 58px, transparent 58px 70px, #000 70px 128px, transparent 128px 140px, #000 140px);
}

@media (prefers-reduced-motion: reduce) {
    .umm-member-portal .umm-portal-tab-loader::before,
    .umm-member-portal .umm-portal-tab-loader::after {
        animation: none;
    }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.umm-portal-page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--umm-text);
}
/* ── A section's groups: fieldsets drawn as the components' card ──────────
   (Phase 3, §5.2: "legends become card titles"). The legend floats, so it
   sits inside the card as its title instead of cutting the border; what
   follows it starts below it. */
fieldset.umm-portal-fieldset {
    min-width: 0;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-card, 14px);
    background: var(--umm-surface);
    box-shadow: var(--umm-elev-1);
}

fieldset.umm-portal-fieldset > legend {
    float: left;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    color: var(--umm-text);
    font-family: inherit;
    font-size: calc(16px * var(--umm-scale, 1));
    font-weight: 700;
    line-height: 1.35;
}

fieldset.umm-portal-fieldset > legend + * {
    clear: both;
}

fieldset.umm-portal-fieldset > legend .dashicons {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--umm-accent-soft);
    color: var(--umm-accent-text);
    font-size: 18px;
    line-height: 32px;
}

.umm-section-note {
    color: var(--umm-text-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.umm-profile-edit-section>.umm-section-note {
    margin-bottom: 28px;
}

/* =========================================================
   BUTTONS — assets/css/umm-ui.css (the components, since 1.5.70)
   ========================================================= */

/* =========================================================
   FORMS
   ========================================================= */

.umm-form-row {
    margin-bottom: 16px;
}

.umm-form-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--umm-text);
}

.umm-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-sm);
    font-size: 14px;
    font-family: var(--umm-font);
    color: var(--umm-text);
    background: var(--umm-surface);
    transition: border-color var(--umm-transition), box-shadow var(--umm-transition);
}

.umm-form-control:focus {
    outline: none;
    border-color: var(--umm-primary);
    box-shadow: 0 0 0 3px rgba(30, 124, 191, .15);
}

textarea.umm-form-control {
    resize: vertical;
    min-height: 80px;
}

.umm-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* member-form-universal.css styles this as the footer of a solid white card:
   a gradient fill, rounded bottom corners and -20px bleed margins so it meets
   the card's edges. In the portal the sections are transparent fieldsets, so
   the fill reads as a stray light panel and the bleed overhangs the fieldset
   border by 4px on each side. Keep the separator rule, drop the rest.
   The second selector outranks the "admin" form skin, which reinstates a fill
   and the same bleed at .umm-form.umm-skin-admin .umm-form-actions. */
.umm-member-portal .umm-form-actions,
.umm-member-portal .umm-form.umm-skin-admin .umm-form-actions {
    background: none;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 24px;
    padding: 16px 0 0;
}

.umm-form-status {
    font-size: 13px;
    color: var(--umm-success);
}

.umm-form-status.is-error {
    color: var(--umm-danger);
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.umm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 9px;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-pill, 999px);
    background: var(--umm-surface-alt);
    color: var(--umm-text-muted);
    font-size: calc(12.5px * var(--umm-scale, 1));
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* The status palette of the components (.umm-ui-pill): one meaning
   everywhere — ok = active, paid; warn = due, suspended; danger = overdue,
   withdrawn; info = pending, partial; grey = closed, waived. */
.umm-status-active,
.umm-status-paid {
    border-color: var(--umm-ok-line);
    background: var(--umm-ok-soft);
    color: var(--umm-ok-ink);
}

.umm-status-suspended,
.umm-status-due {
    border-color: var(--umm-warn-line);
    background: var(--umm-warn-soft);
    color: var(--umm-warn-ink);
}

.umm-status-withdrawn,
.umm-status-overdue {
    border-color: var(--umm-danger-line);
    background: var(--umm-danger-soft);
    color: var(--umm-danger-ink);
}

.umm-status-pending,
.umm-status-partial {
    border-color: var(--umm-info-line);
    background: var(--umm-info-soft);
    color: var(--umm-info-ink);
}

.umm-status-waived {
    border-color: var(--umm-border);
    background: var(--umm-surface-alt);
    color: var(--umm-text-muted);
}

/* =========================================================
   TABLES
   ========================================================= */

.umm-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.umm-portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.umm-portal-table th,
.umm-portal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--umm-border);
    text-align: left;
}

.umm-portal-table th {
    background: var(--umm-surface-alt);
    font-weight: 700;
    color: var(--umm-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.umm-portal-table tbody tr:hover {
    background: var(--umm-primary-light);
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.umm-empty-state {
    color: var(--umm-text-muted);
    text-align: center;
    padding: 40px 16px;
    font-size: 14px;
}

/* Nothing to show, inside the portal: the components' empty state — a
   circle icon over the sentence (§5.2). Ajutoare's own empty line too. */
.umm-member-portal :is(.umm-empty-state, .umm-aid-portal-empty, .umm-member-forms-empty, .umm-amp-empty) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 24px 12px;
    font-size: calc(14px * var(--umm-scale, 1));
    line-height: 1.5;
}

.umm-member-portal :is(.umm-empty-state, .umm-aid-portal-empty, .umm-member-forms-empty, .umm-amp-empty)::before {
    content: "\f14c";
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--umm-surface-alt);
    color: var(--umm-text-muted);
    font-family: dashicons;
    font-size: 24px;
    line-height: 48px;
    speak: never;
}

/* =========================================================
   ACASĂ: the member, "De făcut", one row per section
   (tab-dashboard.php; Phase 3 wave 1). The rows are the components'
   (.umm-ui-row); two columns where there is room.
   ========================================================= */

.umm-member-portal .umm-dash {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.umm-member-portal .umm-dash > .umm-dash__hello {
    margin: 0;
}

.umm-member-portal .umm-dash-me {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-card);
    background: var(--umm-surface);
    box-shadow: var(--umm-elev-1);
}

.umm-member-portal .umm-dash-me > :is(img, .umm-avatar, span):first-child {
    flex: none;
}

.umm-member-portal .umm-dash-me__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.umm-member-portal .umm-dash-me__name {
    color: var(--umm-text);
    font-size: calc(17px * var(--umm-scale, 1));
    font-weight: 700;
    line-height: 1.3;
}

.umm-member-portal .umm-dash-me__meta {
    color: var(--umm-text-muted);
    font-size: calc(13.5px * var(--umm-scale, 1));
}

.umm-member-portal .umm-dash-block > .umm-ui-heading {
    margin: 0 0 8px;
}

@media (min-width: 900px) {
    .umm-member-portal .umm-dash-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.umm-member-portal .umm-dash-row :is(.umm-ui-row__title, .umm-ui-row__meta) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   MESAJE, inside the portal: one card, the list on the
   surface, the rows as tall as a finger; on a phone the
   conversation pane only once one is open and "Mesaj nou"
   the round "+" (Phase 3 wave 1).
   ========================================================= */

.umm-member-portal .umm-messages-layout {
    border-radius: var(--umm-radius-card);
    box-shadow: var(--umm-elev-1);
}

.umm-member-portal .umm-thread-list {
    background: var(--umm-surface);
}

.umm-member-portal .umm-thread-list-header h3 {
    font-size: calc(15px * var(--umm-scale, 1));
    font-weight: 700;
}

.umm-member-portal .umm-thread-link {
    min-height: 56px;
    padding: 10px 14px;
    color: var(--umm-text);
}

.umm-member-portal .umm-thread-subject {
    max-width: none;
    font-size: calc(14px * var(--umm-scale, 1));
}

.umm-member-portal .umm-thread-meta {
    font-size: calc(12.5px * var(--umm-scale, 1));
}

.umm-member-portal .umm-thread-item.is-active .umm-thread-link,
.umm-member-portal .umm-thread-link:hover {
    background: var(--umm-accent-soft);
}

.umm-member-portal .umm-unread-badge {
    min-width: 20px;
    padding: 0 6px;
    border-radius: var(--umm-radius-pill);
    background: var(--umm-danger-strong);
    color: var(--umm-on-fill);
    font-size: calc(11.5px * var(--umm-scale, 1));
    font-weight: 800;
    text-align: center;
}

@media (max-width: 900px) {
    .umm-member-portal .umm-messages-layout {
        min-height: 0;
    }

    .umm-member-portal .umm-thread-list {
        max-height: none;
        border-bottom: 0;
    }

    .umm-member-portal .umm-thread-detail:not(.has-thread) {
        display: none;
    }

    .umm-member-portal .umm-thread-detail.has-thread {
        border-top: 1px solid var(--umm-border);
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    .umm-member-portal #umm-compose-btn {
        display: none;
    }
}

/* =========================================================
   WAVE 2: what the shared pieces do not reach
   ========================================================= */

/* The section's header already names it and the intro line says what it is
   for: Bibliotecă's own title and description, Portofel's own title said it
   a second and a third time (§9). On their own pages they stay. */
.umm-member-portal .umm-library-frontend[data-portal="1"] :is(.umm-library-heading, .umm-library-subheading),
.umm-member-portal .umm-wallet--portal .umm-wallet-title,
.umm-member-portal .umm-a11y-portal > .umm-portal-section-head > h2,
.umm-member-portal .umm-scanner-portal .umm-scanner-portal-intro,
.umm-member-portal .umm-amp-head > .umm-amp-title {
    display: none;
}

/* Accesibilitate keeps its second sentence (where the settings live), as a
   note under the intro, without the header's box around it. */
.umm-member-portal .umm-a11y-portal > .umm-section-intro {
    margin-bottom: 0;
}

.umm-member-portal .umm-a11y-portal > .umm-portal-section-head {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.umm-member-portal .umm-a11y-portal > .umm-portal-section-head > .umm-portal-section-sub {
    margin: 0;
    color: var(--umm-text-muted);
    font-size: calc(14px * var(--umm-scale, 1));
    line-height: 1.5;
}

/* Echipament keeps its counts, at the right. */
.umm-member-portal .umm-amp-head {
    justify-content: flex-end;
}

/* A finger's target on a touch screen (§10) for wave 2's own controls.
   Several modules shrink their icon buttons to 28–32 px circles on a narrow
   screen (Relaxare's with !important); inside the portal, on a touch screen,
   they are 44 px. On the modules' own pages nothing changes. */
@media (pointer: coarse) {
    .umm-member-portal .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle {
        height: 44px;
        min-height: 44px;
    }

    .umm-member-portal .umm-news-toolbar .umm-news-prefs-btn,
    .umm-member-portal .umm-mb-btn-my-location,
    .umm-member-portal .umm-mb-btn-reset-map,
    .umm-member-portal .umm-mb-panel-close-btn,
    .umm-member-portal .umm-tvr-card-fav {
        /* flex: none — in a toolbar row a module's own min-width (32 px)
           would otherwise let it shrink back. */
        flex: none;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    /* The magnifier inside the search box: the box keeps its height. */
    .umm-member-portal .umm-news-toolbar .umm-news-search-go {
        width: 44px;
        height: 44px;
        margin: -10px -12px -10px -4px;
    }

    .umm-member-portal .umm-tvr-card-fav {
        top: 2px;
        right: 2px;
    }

    .umm-member-portal .umm-relax-wrap .umm-btn.umm-btn-icon-circle {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        line-height: 44px !important;
    }

    .umm-member-portal .umm-personal-notes-wrap .umm-toolbar-right .umm-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .umm-member-portal :is(.umm-relax-dd--pill .umm-relax-dd-toggle, .umm-mb-dd-toggle, .umm-wallet-btn) {
        min-height: 44px;
    }

    /* The panels' own close buttons (each family has one) and Notițe's
       editor header. */
    .umm-member-portal :is(.umm-slide-panel-close, .umm-panel-close, .umm-wallet-modal__close),
    .umm-member-portal .umm-personal-notes-wrap .umm-panel-close {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .umm-member-portal .umm-personal-notes-wrap .umm-notes-panel-actions .umm-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Wave 3, Convertor: its shortcuts, recent conversions, swap and the
       result's buttons. */
    .umm-member-portal :is(.umm-uc-quicklink, .umm-uc-chip, .umm-uc-actions button) {
        min-height: 44px;
    }

    .umm-member-portal .umm-uc-swap {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    /* The map's own + and −. */
    .umm-member-portal .leaflet-touch .leaflet-bar a {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }
}

/* Noutăți's toolbar inside the portal: no band of its own (the strip is the
   page's, as in every section). */
.umm-member-portal .umm-news-toolbar {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Notițe runs edge to edge on a phone: its intro line keeps the margin its
   search box has. */
.umm-member-portal .umm-notes-portal-wrap > .umm-section-intro {
    padding-inline: 12px;
}

/* Their empty states: the components' (no dashed box). */
.umm-member-portal :is(.umm-aid-portal-empty, .umm-member-forms-empty, .umm-amp-empty) {
    background: transparent;
    border: 0;
    color: var(--umm-text-muted);
}

.umm-member-portal .umm-wallet-empty {
    padding: 28px 16px;
    border: 0;
}

.umm-member-portal .umm-wallet-empty > .dashicons {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--umm-surface-alt);
    color: var(--umm-text-muted);
    font-size: 28px;
    line-height: 56px;
}

/* A headline: two lines at most. */
.umm-member-portal .umm-dash-news .umm-ui-row__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* De făcut's rows (partials/todo-list.php): the word that says what to do. */
.umm-member-portal .umm-todo-go {
    flex: none;
    color: var(--umm-accent-text);
    font-size: calc(14px * var(--umm-scale, 1));
    font-weight: 700;
}

@media (max-width: 380px) {
    .umm-member-portal .umm-todo-go {
        display: none;
    }
}

/* „Vedeți tot (N)” under the box, when the whole list holds more. */
.umm-member-portal .umm-todo-more-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
}

/* A finger's target on a touch screen (§10) for the wave-1 sections' own
   small controls: the card's button, Cotizație's "altă sumă" links and its
   28 px circles, Evenimente's calendar button. */
@media (pointer: coarse) {
    .umm-member-portal .umm-member-card-footer .umm-member-card-generate-btn {
        min-height: 44px;
    }

    .umm-member-portal .umm-pay-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }

    .umm-member-portal .umm-btn.umm-btn-icon {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .umm-member-portal .umm-ical-btn {
        min-width: 44px;
    }
}

/* One button per action: while a section's empty state shows its own
   button for the main action (Tichet Nou, Încarcă Document, Adaugă primul
   card — .umm-main-action-alt), the round "+" and the section's own button
   step aside (member-portal.js watchEmptyCta sets .has-empty-cta). */
.umm-member-portal .umm-portal-tab.has-empty-cta :is(.umm-ui-fab, .umm-has-fab, #umm-tk-btn-new, #umm-wallet-add-btn, #upload-document-btn) {
    display: none !important;
}

/* The Listă rapidă's round button (class-portal-quick-list.php) and a
   section's round "+" (.umm-ui-fab, umm-ui.css) share the corner: the "+"
   goes above while the list's button is on screen. */
.umm-member-portal:has(.umm-quicklist-fab:not([hidden])) {
    --umm-ui-fab-lift: 64px;
}

/* =========================================================
   SPINNER
   ========================================================= */

.umm-portal-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--umm-border);
    border-top-color: var(--umm-primary);
    border-radius: 50%;
    animation: ummSpin .7s linear infinite;
}

@keyframes ummSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   DASHBOARD WIDGET GRID
   ========================================================= */
.umm-widget-link {
    font-size: 12px;
    color: var(--umm-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    padding-top: 10px;
    font-family: var(--umm-font);
}

.umm-widget-link:hover {
    text-decoration: underline;
    color: var(--umm-primary-dark);
}

/* Widget links inside nav — override sidebar hover style */
.umm-portal-nav-link.umm-widget-link {
    width: auto;
    padding: 4px 0;
    border-left: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--umm-primary);
}

.umm-portal-nav-link.umm-widget-link:hover {
    background: rgba(59, 130, 246, .08);
    color: var(--umm-primary);
    text-decoration: underline;
    border-left-color: transparent;
    border-radius: var(--umm-radius-sm);
}

.umm-widget-empty {
    color: var(--umm-text-muted);
    font-size: 12.5px;
    margin: 6px 0;
}

/* Payment status */
.umm-status-advance {
    background: var(--umm-dk-info-soft, #e0f2fe);
    color: var(--umm-dk-info-ink, #0c4a6e);
}

/* =========================================================
   PROFILE TAB
   ========================================================= */

/* Hero banner */
.umm-profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.umm-profile-hero-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--umm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.umm-profile-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.umm-profile-hero-initials {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.umm-profile-hero-meta {
    flex: 1;
    min-width: 0;
}

.umm-profile-hero-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    padding-bottom: 4px;
    color: var(--umm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umm-profile-hero-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* The member's photo: add, change, delete (tab-profile.php, member-portal.js
   profilePhoto). Under the name; on a phone the buttons take their own line. */
.umm-member-portal .umm-profile-photo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.umm-member-portal .umm-profile-photo-state {
    flex-basis: 100%;
    min-height: 1.2em;
    color: var(--umm-text-muted);
    font-size: calc(13px * var(--umm-scale, 1));
}

.umm-member-portal .umm-profile-photo-state:empty {
    display: none;
}

.umm-member-portal .umm-profile-photo-state.is-error {
    color: var(--umm-danger-text, var(--umm-danger));
}
/* Two-column info grid */
.umm-profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Box styling comes from .umm-portal-fieldset, which these carry too — the
   profile sections must read the same as the ones on Date Personale. Only what
   is specific to this grid stays here. */
fieldset.umm-profile-card {
    margin-bottom: 0;   /* a grid cell: .umm-profile-info-grid owns the gap */
}

.umm-profile-card>legend {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    color: var(--umm-text);
    margin-bottom: 12px;
}

.umm-profile-card>legend .dashicons {
    color: var(--umm-primary);
}

/* Employer autocomplete dropdown */
.umm-portal-employer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-top: none;
    border-radius: 0 0 var(--umm-radius-sm) var(--umm-radius-sm);
    box-shadow: var(--umm-shadow-md);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 200;
}

.umm-portal-emp-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: background var(--umm-transition);
}

.umm-portal-emp-item:hover {
    background: var(--umm-primary-light);
}

.umm-portal-emp-item strong {
    display: block;
}

.umm-emp-county {
    color: var(--umm-text-muted);
    font-size: 12px;
}

/* Edit section — box styling from .umm-portal-fieldset. */
fieldset.umm-profile-edit-section {
    width: 100%;
}

.umm-profile-edit-section>legend {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    color: var(--umm-text);
    margin-bottom: 10px;
}

.umm-profile-edit-section>legend .dashicons {
    color: var(--umm-primary);
}

fieldset.umm-profile-edit-section--empty {
    border-style: dashed;
    background: var(--umm-surface-alt);
}

.umm-profile-edit-section--empty .umm-section-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Restore Dashicons font-family inside the profile form.
   The enhanced skin uses `.umm-form.umm-skin-enhanced * { font-family: ... !important }` (specificity 0,2,0).
   This rule uses 3 class selectors (0,3,0) so it wins regardless of stylesheet load order. */
.umm-member-portal .umm-profile-form .dashicons,
.umm-member-portal .umm-profile-edit-section .dashicons {
    font-family: dashicons !important;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override: keep labels visible in the profile edit form regardless of skin.
   The enhanced skin hides labels (uses placeholders), but in an edit form the field
   already has a value so the placeholder is invisible — labels are essential here. */
.umm-profile-form .umm-form-group label,
.umm-profile-form .umm-form-group label,
.umm-profile-form.umm-skin-enhanced .umm-form-group label,
.umm-profile-form.umm-skin-classic .umm-form-group label {
    display: block !important;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--umm-dk-text, #333);
    margin-bottom: 4px;
}

/* Remove the profile-specific grid — the form-enhanced.css umm-form-grid handles layout now. */

.umm-form-label-note {
    font-weight: 400;
    font-size: 11px;
    color: var(--umm-text-muted);
    margin-left: 4px;
}

.umm-label-empty {
    color: var(--umm-warning);
}

/* DL: definition list for read-only data */
.umm-profile-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.umm-profile-dl dt {
    font-weight: 600;
    color: var(--umm-text-muted);
    font-size: 12.5px;
    padding-top: 1px;
}

.umm-profile-dl dd {
    margin: 0;
    color: var(--umm-text);
    font-size: 13px;
    word-break: break-word;
}

/* ── Union positions list (profile tab) ─────────────────────── */

.umm-profile-positions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.umm-profile-position-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.umm-profile-position-item strong {
    color: var(--umm-text);
    font-weight: 600;
}

.umm-profile-position-structure {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--umm-text-muted);
    font-size: 12px;
}

.umm-profile-position-structure .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.umm-profile-member-default {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--umm-text-muted);
    font-style: italic;
}

.umm-profile-member-default .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--umm-text-light);
    flex-shrink: 0;
}

/* =========================================================
   PAYMENTS TAB
   ========================================================= */
.umm-payment-balance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--umm-radius);
    margin-bottom: 20px;
    font-size: 15px;
}

.umm-balance-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.umm-balance-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.umm-balance-contact-hint {
    font-size: 13px;
    opacity: .85;
}

.umm-balance-ok {
    background: var(--umm-dk-ok-soft, #dcfce7);
    color: var(--umm-dk-ok-ink, #166534);
    border: 1px solid var(--umm-dk-ok-line, #bbf7d0);
}

.umm-balance-advance {
    background: var(--umm-dk-info-soft, #e0f2fe);
    color: var(--umm-dk-info-ink, #0c4a6e);
    border: 1px solid var(--umm-dk-info-line, #bae6fd);
}

.umm-balance-due {
    background: var(--umm-dk-warn-soft, #fef9c3);
    color: var(--umm-dk-warn-ink, #713f12);
    border: 1px solid var(--umm-dk-warn-line, #fde68a);
}

.umm-balance-overdue {
    background: var(--umm-dk-danger-soft, #fee2e2);
    color: var(--umm-dk-danger-ink, #991b1b);
    border: 1px solid var(--umm-dk-danger-line, #fecaca);
}

.umm-stripe-portal-cta {
    margin-top: 16px;
}

/* =========================================================
   EVENTS TAB
   ========================================================= */

.umm-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.umm-event-card {
    display: flex;
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
    box-shadow: var(--umm-shadow);
}

.umm-event-color-bar {
    width: 5px;
    flex-shrink: 0;
}

.umm-event-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    width: 100%;
    flex-wrap: wrap;
}

.umm-event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    background: var(--umm-primary-light);
    border-radius: var(--umm-radius-sm);
    padding: 6px;
}

.umm-event-day {
    font-size: 22px;
    font-weight: 800;
    color: var(--umm-primary);
    line-height: 1;
}

.umm-event-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--umm-primary);
    text-transform: uppercase;
}

.umm-event-details {
    flex: 1;
    min-width: 0;
}

.umm-event-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.umm-event-time,
.umm-event-location {
    font-size: 12.5px;
    color: var(--umm-text-muted);
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.umm-event-desc {
    font-size: 12.5px;
    color: var(--umm-text-muted);
    margin: 8px 0 0;
}

.umm-event-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.umm-rsvp-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.umm-rsvp-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--umm-text-muted);
}

.umm-rsvp-attending {
    color: var(--umm-success);
}

.umm-rsvp-not_attending {
    color: var(--umm-danger);
}

.umm-rsvp-maybe {
    color: var(--umm-warning);
}

.umm-rsvp-closed {
    font-size: 11px;
    font-weight: 600;
    color: var(--umm-text-muted);
    font-style: italic;
}

.umm-event-attendees {
    font-size: 12px;
    color: var(--umm-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 0;
}

.umm-event-attendees .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

/* =========================================================
   MESSAGES TAB
   ========================================================= */

.umm-messages-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    background: var(--umm-surface);
    min-height: 480px;
    overflow: hidden;
}

.umm-thread-list {
    border-right: 1px solid var(--umm-border);
    display: flex;
    flex-direction: column;
    background: var(--umm-surface-alt);
}

.umm-thread-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid var(--umm-border);
}

.umm-thread-list-header h3 {
    margin: 0;
    font-size: 14px;
}

.umm-thread-items {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.umm-thread-item {
    border-bottom: 1px solid var(--umm-border);
}

.umm-thread-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--umm-font);
    transition: background var(--umm-transition);
}

.umm-thread-link:hover {
    background: var(--umm-primary-light);
}

.umm-thread-item.is-active .umm-thread-link {
    background: var(--umm-primary-light);
    border-right: 2px solid var(--umm-primary);
}

.umm-thread-subject {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--umm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.umm-thread-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--umm-text-muted);
    margin-top: 3px;
}

.umm-thread-unread .umm-thread-subject {
    font-weight: 800;
    color: var(--umm-primary);
}

.umm-unread-badge {
    background: var(--umm-primary);
    color: #fff;
    border-radius: 10px;
    padding: 0 5px;
    font-size: 10px;
}

.umm-thread-detail {
    display: flex;
    flex-direction: column;
    position: relative;
}

.umm-thread-detail-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--umm-text-muted);
    padding: 40px;
    gap: 12px;
}

.umm-thread-detail-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.umm-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.umm-message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: var(--umm-radius);
    font-size: 13px;
    line-height: 1.5;
}

.umm-message-bubble.is-mine {
    background: var(--umm-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.umm-message-bubble.is-theirs {
    background: var(--umm-surface-alt);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.umm-message-meta {
    font-size: 10.5px;
    margin-top: 4px;
    opacity: .7;
}

.umm-reply-form {
    padding: 14px;
    border-top: 1px solid var(--umm-border);
    background: var(--umm-surface);
}

/* Modal */
.umm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: var(--umm-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.umm-modal-inner {
    background: var(--umm-surface);
    border-radius: var(--umm-radius);
    box-shadow: var(--umm-shadow-md);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
}

.umm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--umm-border);
}

.umm-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.umm-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--umm-text-muted);
    padding: 4px;
    border-radius: var(--umm-radius-sm);
}

.umm-modal-close:hover {
    background: var(--umm-surface-alt);
}

.umm-modal-body {
    padding: 20px;
}

/* =========================================================
   GDPR TAB
   ========================================================= */
.umm-consent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-sm);
    overflow: hidden;
}

.umm-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--umm-border);
    gap: 16px;
}

.umm-consent-row:last-child {
    border-bottom: none;
}

/* display:flex above beats the browser's rule for [hidden]: the push row is
   hidden until pwa-portal.js takes it over, and must stay so without it. */
.umm-consent-row[hidden] {
    display: none;
}

/* Preferințe de comunicare: the push row's line says what it is on THIS
   device; a state the member cannot switch from here reads as a warning. */
.umm-push-pref[data-state="denied"] .umm-consent-meta,
.umm-push-pref[data-state="other"] .umm-consent-meta,
.umm-push-pref[data-state="ios"] .umm-consent-meta {
    color: var(--umm-warning, var(--umm-dk-warn-ink, #b45309));
}

/* Ce primiți ca push: the category switches, nested under the push row.
   Shown only while push is on on this device or another of the member's
   (pwa-portal.js sets data-state and data-devices); [hidden] until the
   categories are loaded and there is a choice to make. */
.umm-push-cats {
    display: none;
    margin: 0 0 4px 16px;
    padding-left: 12px;
    border-left: 2px solid var(--umm-border, var(--umm-dk-border, #e5e7eb));
}
.umm-push-pref:not([hidden])[data-state="on"] + .umm-push-cats:not([hidden]),
.umm-push-pref:not([hidden])[data-devices]:not([data-devices="0"]) + .umm-push-cats:not([hidden]) {
    display: block;
}
.umm-push-cats > .umm-consent-meta {
    margin: 8px 0 2px;
}
.umm-push-cat .umm-consent-label {
    font-weight: 500;
}

.umm-consent-info {
    flex: 1;
}

.umm-consent-label {
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: block;
}

.umm-consent-meta {
    font-size: 11.5px;
    color: var(--umm-text-muted);
    margin-top: 2px;
    display: block;
}

/* A consent never decided has no date to show. */
.umm-consent-meta:empty {
    display: none;
}

/* Toggle Switch */
.umm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.umm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.umm-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--umm-dk-surface-3, #d1d5db);
    border-radius: 22px;
    transition: background var(--umm-transition);
}

.umm-toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--umm-transition);
}

.umm-toggle-switch input:checked+.umm-toggle-slider {
    background: var(--umm-success);
}

.umm-toggle-switch input:checked+.umm-toggle-slider::before {
    transform: translateX(18px);
}

.umm-toggle-switch input:focus-visible+.umm-toggle-slider {
    outline: 2px solid var(--umm-primary);
    outline-offset: 2px;
}

.umm-dsr-form {
    max-width: 520px;
}

/* Inside the portal (Date Personale, Preferințe de comunicare): the fieldset
   is the card, so the list is its rows with lines between, no second box;
   the switch is the components' (.umm-ui-switch): an outline when off, the
   union's colour when on, a 44 px target (Phase 3 wave 1). */
.umm-member-portal .umm-consent-list {
    border: 0;
    border-radius: 0;
}

.umm-member-portal .umm-consent-row {
    min-height: 60px;
    padding: 10px 0;
    border-bottom: 1px solid var(--umm-border);
}

.umm-member-portal .umm-consent-list > .umm-consent-row:last-child {
    border-bottom: 0;
}

.umm-member-portal .umm-consent-info {
    min-width: 0;
}

.umm-member-portal .umm-consent-label {
    color: var(--umm-text);
    font-size: calc(15px * var(--umm-scale, 1));
    font-weight: 650;
    line-height: 1.35;
}

.umm-member-portal .umm-consent-meta {
    margin-top: 3px;
    font-size: calc(13px * var(--umm-scale, 1));
    line-height: 1.45;
}

.umm-member-portal .umm-push-pref:is([data-state="denied"], [data-state="other"], [data-state="ios"]) .umm-consent-meta {
    color: var(--umm-warn-text);
}

.umm-member-portal .umm-consent-toggle {
    display: flex;
    flex: none;
    align-items: center;
    margin: 0;
}

.umm-member-portal .umm-toggle-switch {
    width: 48px;
    height: 44px;
    margin: 0;
}

/* The checkbox lies over the switch, invisible: the tap lands on it. */
.umm-member-portal .umm-toggle-switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.umm-member-portal .umm-toggle-slider {
    inset: 8px 0;
    border: 2px solid var(--umm-control-line);
    border-radius: var(--umm-radius-pill);
    background: var(--umm-surface-alt);
    transition: background-color .16s ease, border-color .16s ease;
}

.umm-member-portal .umm-toggle-slider::before {
    top: 50%;
    left: 4px;
    width: 16px;
    height: 16px;
    background: var(--umm-control-line);
    transform: translateY(-50%);
    transition: left .16s ease, width .16s ease, height .16s ease, background-color .16s ease;
}

.umm-member-portal .umm-toggle-switch input:checked + .umm-toggle-slider {
    border-color: var(--umm-accent);
    background: var(--umm-accent);
}

.umm-member-portal .umm-toggle-switch input:checked + .umm-toggle-slider::before {
    left: 22px;
    width: 20px;
    height: 20px;
    background: var(--umm-knob);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
    transform: translateY(-50%);
}

.umm-member-portal .umm-toggle-switch input:focus-visible + .umm-toggle-slider {
    outline: 3px solid var(--umm-accent);
    outline-offset: 2px;
}

.umm-member-portal .umm-toggle-switch input:disabled + .umm-toggle-slider {
    opacity: .5;
    cursor: not-allowed;
}

/* =========================================================
   ORG POSITION TAB
   ========================================================= */

.umm-org-positions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.umm-org-position-card {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
}

.umm-org-active {
    border-left: 4px solid var(--umm-success);
}

.umm-org-inactive {
    border-left: 4px solid var(--umm-border);
    opacity: .75;
}

.umm-org-position-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--umm-border);
    background: var(--umm-surface-alt);
}

.umm-org-position-icon .dashicons {
    font-size: 24px;
    color: var(--umm-primary);
    width: 24px;
    height: 24px;
}

.umm-org-position-title {
    flex: 1;
}

.umm-org-position-title h3 {
    margin: 0;
    font-size: 15px;
}

.umm-org-structure {
    font-size: 12px;
    color: var(--umm-text-muted);
    margin: 3px 0 0;
}

.umm-org-type-tag {
    display: inline-block;
    background: var(--umm-primary-light);
    color: var(--umm-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    text-transform: uppercase;
}

.umm-org-position-body {
    padding: 14px 16px;
}

.umm-org-date {
    font-size: 12px;
    color: var(--umm-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

/* =========================================================
   LEGAL DISPUTES TAB
   ========================================================= */

.umm-legal-cases-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.umm-case-card {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
}

.umm-case-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--umm-surface-alt);
    border-bottom: 1px solid var(--umm-border);
}

.umm-case-number {
    font-weight: 700;
    font-size: 14px;
}

.umm-case-card-body {
    padding: 14px 16px;
}

.umm-case-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    margin: 0;
}

.umm-case-dl dt {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--umm-text-muted);
}

.umm-case-dl dd {
    margin: 0;
    font-size: 13px;
}

.umm-date-soon {
    color: var(--umm-danger);
    font-weight: 700;
}

.umm-case-desc {
    margin-top: 10px;
    font-size: 13px;
    color: var(--umm-text-muted);
    border-top: 1px solid var(--umm-border);
    padding-top: 10px;
}

/* =========================================================
   MEDIA TAB
   ========================================================= */

.umm-media-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.umm-media-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--umm-border);
    border-radius: 20px;
    background: var(--umm-surface);
    color: var(--umm-text-muted);
    font-size: 12.5px;
    cursor: pointer;
    font-family: var(--umm-font);
    transition: all var(--umm-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.umm-media-filter-btn.is-active,
.umm-media-filter-btn:hover {
    background: var(--umm-primary);
    color: #fff;
    border-color: var(--umm-primary);
}

.umm-filter-count {
    background: rgba(255, 255, 255, .25);
    border-radius: 10px;
    padding: 0 6px;
    font-size: 11px;
}

.umm-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.umm-media-item {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-sm);
    overflow: hidden;
    transition: box-shadow var(--umm-transition);
}

.umm-media-item:hover {
    box-shadow: var(--umm-shadow-md);
}

.umm-media-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--umm-surface-alt);
    overflow: hidden;
}

.umm-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.umm-media-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--umm-text-light);
}

.umm-media-icon-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
}

.umm-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--umm-transition);
    color: #fff;
    text-decoration: none;
}

.umm-media-thumb:hover .umm-media-overlay {
    opacity: 1;
}

.umm-media-overlay .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.umm-media-duration {
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.umm-media-caption {
    padding: 8px 10px;
}

.umm-media-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umm-media-date {
    font-size: 11px;
    color: var(--umm-text-muted);
    margin: 0;
}

/* =========================================================
   NEWS TAB
   ========================================================= */

.umm-news-toolbar {
    min-height: 52px;
    background: var(--umm-dk-surface, #ffffff);
    border: none;
    border-bottom: 1px solid var(--umm-dk-border, #e2e8f0);
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
    z-index: 5;
}

.umm-news-toolbar .umm-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.umm-news-toolbar .umm-toolbar-inner::-webkit-scrollbar {
    display: none;
}

.umm-news-toolbar .umm-news-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.umm-news-toolbar .umm-news-toolbar-btn {
    width: auto;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid transparent !important;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1;
}

.umm-news-toolbar .umm-news-toolbar-btn.active,
.umm-news-toolbar .umm-news-toolbar-btn.is-active,
.umm-news-toolbar .umm-news-toolbar-btn[aria-selected="true"] {
    border-color: var(--umm-dk-info-line, #d3e3f2) !important;
    background: var(--umm-dk-surface-2, #f0f6fc) !important;
    color: var(--umm-accent-text, #2271b1) !important;
}

/* Toolbar search — one box drives whichever pane (news/press) is active */
.umm-news-toolbar .umm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
    /* Source filter + preferences button + search must stay on ONE line at any
       width — they shrink instead of wrapping. */
    flex-wrap: nowrap;
}

.umm-news-toolbar .umm-toolbar-right > * {
    min-width: 0;
}

.umm-news-toolbar .umm-news-prefs-btn,
.umm-news-toolbar .umm-news-toolbar-btn {
    flex-shrink: 0;
}

/* Source filter — one <select> per sub-view, only the active one is shown.
   Sized so it never pushes the search box onto a second line. */
.umm-news-toolbar .umm-news-toolbar-sources {
    display: none;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.umm-news-toolbar .umm-news-toolbar-sources.is-active {
    display: flex;
}

.umm-news-toolbar .umm-news-toolbar-sources .umm-select-dropdown {
    max-width: 180px;
    min-width: 0;
}

.umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle {
    height: 36px;
    min-height: 36px;
    max-width: 180px;
    padding: 0 10px;
    font-size: 12.5px;
    border-radius: 18px;
}

.umm-news-toolbar .umm-news-toolbar-sources .umm-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Pre-enhancement fallback (UMMSelect not loaded / JS disabled) */
.umm-news-toolbar .umm-news-source-select {
    max-width: 180px;
    height: 36px;
    font-size: 12.5px;
    border-radius: 18px;
    border: 1px solid var(--umm-dk-border, #e2e8f0);
    padding: 0 8px;
}

/* Preferences button — opens the per-member domains/sources panel. Kept as a
   round icon button so the toolbar still fits on one line on a phone. */
.umm-news-toolbar .umm-news-prefs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--umm-dk-border, #e2e8f0);
    border-radius: 50%;
    background: var(--umm-dk-surface, #fff);
    color: var(--umm-text-muted, var(--umm-dk-muted, #64748b));
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.umm-news-toolbar .umm-news-prefs-btn:hover,
.umm-news-toolbar .umm-news-prefs-btn:focus-visible {
    background: var(--umm-primary-light, var(--umm-dk-info-soft, #eff6ff));
    border-color: var(--umm-primary, var(--umm-accent, #2563eb));
    color: var(--umm-primary, var(--umm-accent-text, #2563eb));
}

.umm-news-toolbar .umm-news-prefs-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    /* base.css gives every `button .dashicons` a 6px right margin so icons sit
       next to a label. This button is icon-only, and that margin pushed the gear
       3px off centre in the admin context where base.css loads. */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

/* ── News preferences panel (per member): the portal's sheet ───────────── */
.umm-news-prefs-panel .umm-news-prefs-bulkbar {
    display: inline-flex;
    gap: 6px;
}

.umm-news-prefs-hint {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--umm-text-muted, var(--umm-dk-muted, #64748b));
}

/* "Ați ascuns 3 articole din acest flux · Arată-le din nou" */
.umm-news-prefs-hidden {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--umm-surface-muted, var(--umm-dk-surface-2, #f1f5f9));
    color: var(--umm-text, var(--umm-dk-text, #334155));
    font-size: 13px;
    line-height: 1.4;
}

.umm-news-prefs-hidden .dashicons {
    color: var(--umm-text-muted, var(--umm-dk-muted, #64748b));
}

.umm-news-prefs-unhide {
    margin-left: auto;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--umm-accent-strong, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.umm-news-prefs-unhide:hover {
    background: var(--umm-accent-strong, #1e40af);
}

.umm-news-prefs-unhide:focus-visible {
    outline: 2px solid var(--umm-accent, #2563eb);
    outline-offset: 2px;
}

.umm-news-prefs-unhide:disabled {
    opacity: .6;
    cursor: default;
}

.umm-news-prefs-feed {
    display: none;
}

.umm-news-prefs-feed.is-active {
    display: block;
}

.umm-news-prefs-group {
    margin: 0 0 14px;
    padding: 10px 12px 12px;
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-radius: 10px;
    background: var(--umm-dk-surface, #fff);
}

.umm-news-prefs-group.is-off {
    opacity: .55;
}

.umm-news-prefs-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
}

.umm-news-prefs-legend-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.umm-news-prefs-legend-label .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    color: var(--umm-primary, var(--umm-accent-text, #2563eb));
}

.umm-news-prefs-count {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f1f5f9));
    font-size: 11px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #64748b));
}

.umm-news-prefs-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
    gap: 6px 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--umm-border, var(--umm-dk-border, #e2e8f0));
}

.umm-news-prefs-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
}

.umm-news-prefs-source-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.umm-news-toolbar .umm-news-toolbar-search,
.umm-news-toolbar .umm-news-search-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.umm-news-toolbar .umm-pg-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 36px;
    box-sizing: border-box;
    border: 1px solid var(--umm-dk-border, #e2e8f0);
    border-radius: 18px;
    background: var(--umm-dk-surface, #ffffff);
    transition: border-color .2s ease, background .2s ease;
}

.umm-news-toolbar .umm-pg-search-wrap:hover,
.umm-news-toolbar .umm-pg-search-wrap:focus-within {
    border-color: var(--umm-accent, #2271b1);
}

.umm-news-toolbar .umm-pg-search-wrap .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--umm-dk-muted, #64748b);
    flex-shrink: 0;
}

.umm-news-toolbar .umm-news-search-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
    line-height: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.umm-news-toolbar .umm-news-search-go .dashicons {
    transition: color .2s ease;
}

.umm-news-toolbar .umm-news-search-go:hover .dashicons,
.umm-news-toolbar .umm-news-search-go:focus .dashicons {
    color: var(--umm-accent-text, #2271b1);
}

.umm-news-toolbar .umm-news-search-go:focus {
    outline: none;
}

.umm-news-toolbar .umm-pg-search-input {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 13px;
    width: 180px;
    max-width: 42vw;
    color: var(--umm-dk-text, #1e293b);
    padding: 0;
    margin: 0;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

.umm-news-toolbar .umm-pg-search-input::placeholder {
    color: var(--umm-dk-muted, #64748b);
    opacity: .7;
}

.umm-news-toolbar .umm-pg-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.umm-news-toolbar .umm-pg-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.umm-news-toolbar .umm-pg-search-wrap.has-value {
    border-color: var(--umm-accent, #2271b1);
    background: var(--umm-dk-surface-2, #f0f6fc);
}

.umm-news-toolbar .umm-news-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: none;
    background: rgba(0, 0, 0, .08);
    border-radius: 50%;
    color: var(--umm-accent-text, #2271b1);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, color .2s ease;
}

.umm-news-toolbar .umm-news-search-clear:hover {
    background: #ef4444;
    color: #fff;
}

.umm-news-pane {
    display: none;
}

.umm-news-pane.is-active {
    display: block;
}

.umm-news-section {
    margin-bottom: 28px;
}

.umm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 16px;
}

.umm-news-card {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
    box-shadow: var(--umm-shadow);
    transition: box-shadow var(--umm-transition);
}

.umm-news-card:hover {
    box-shadow: var(--umm-shadow-md);
}
.umm-news-card-body {
    padding: 14px;
}

.umm-news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--umm-text-muted);
}
.umm-news-card-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.umm-news-card-excerpt {
    font-size: 12.5px;
    color: var(--umm-text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}
/* Press list */@media (max-width: 1024px) {
    .umm-news-toolbar .umm-news-toolbar-btn {
        justify-content: center !important;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        gap: 0;
    }

    .umm-news-toolbar .umm-nav-label {
        display: none;
    }

    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-dropdown,
    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle,
    .umm-news-toolbar .umm-news-source-select {
        max-width: 140px;
    }
}

/* Phone: the view pills, the source filter and the search box must all still
   share ONE line — each keeps shrinking rather than wrapping or scrolling. */
@media (max-width: 640px) {
    .umm-news-toolbar {
        padding: 0 12px;
    }

    .umm-news-toolbar .umm-toolbar-inner,
    .umm-news-toolbar .umm-toolbar-right {
        gap: 8px;
    }

    .umm-news-toolbar .umm-pg-search-wrap {
        padding: 5px 10px;
        min-height: 34px;
    }

    .umm-news-toolbar .umm-pg-search-input {
        width: 96px;
        max-width: 28vw;
    }

    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-dropdown,
    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle,
    .umm-news-toolbar .umm-news-source-select {
        max-width: 104px;
    }

    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle,
    .umm-news-toolbar .umm-news-source-select {
        height: 34px;
        min-height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }

    .umm-news-toolbar .umm-news-prefs-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }
}

@media (max-width: 400px) {
    .umm-news-toolbar {
        padding: 0 8px;
    }

    .umm-news-toolbar .umm-toolbar-inner,
    .umm-news-toolbar .umm-toolbar-right {
        gap: 6px;
    }

    .umm-news-toolbar .umm-news-toolbar-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .umm-news-toolbar .umm-pg-search-wrap {
        padding: 4px 8px;
        min-height: 32px;
    }

    .umm-news-toolbar .umm-pg-search-input {
        width: 48px;
        max-width: 18vw;
    }

    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-dropdown,
    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle,
    .umm-news-toolbar .umm-news-source-select {
        max-width: 68px;
    }

    .umm-news-toolbar .umm-news-toolbar-sources .umm-select-toggle,
    .umm-news-toolbar .umm-news-source-select {
        height: 32px;
        min-height: 32px;
        padding: 0 6px;
    }

    .umm-news-toolbar .umm-news-prefs-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .umm-news-toolbar .umm-news-prefs-btn .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/* =========================================================
   NOTIFICATION BELL
   ========================================================= */

.umm-notification-bell {
    position: relative;
}

.umm-bell-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--umm-radius-sm);
    position: relative;
    display: flex;
    align-items: center;
}

.umm-bell-btn:hover {
    background: rgba(255, 255, 255, .1);
}

.umm-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--umm-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
}

.umm-bell-badge.umm-hidden,
.umm-hidden {
    display: none !important;
}

/* Bell ring/pulse on new notifications — mirrors the back office's bell
   (class-admin-interface.php). It throbbed for as long as anything was unread:
   a button growing to 125% and back every 1.5 s is a moving target for a
   finger, and motion that never stops is what «reduce motion» asks to be
   spared. The badge is the standing information; the pulse only catches the
   eye, six times. */
.umm-bell-btn.has-notifications {
    color: #ff6900;
    animation: umm-portal-bell-pulse 1.5s ease-in-out 6;
}
.umm-bell-btn.umm-notif-ringing {
    animation: umm-portal-bell-ring 0.6s ease-in-out 8, umm-portal-bell-pulse 1.5s ease-in-out 4 4.8s !important;
}
@media (prefers-reduced-motion: reduce) {
    .umm-bell-btn.has-notifications,
    .umm-bell-btn.umm-notif-ringing {
        animation: none !important;
    }
}
@keyframes umm-portal-bell-pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255, 105, 0, 0.5); }
    50%  { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255, 105, 0, 0);   }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255, 105, 0, 0);   }
}
@keyframes umm-portal-bell-ring {
    0%   { transform: scale(1.0)  rotate(0deg);   color: #ff6900; }
    15%  { transform: scale(1.3)  rotate(-18deg); color: #ffb020; }
    30%  { transform: scale(1.25) rotate(18deg);  color: #ff6900; }
    45%  { transform: scale(1.3)  rotate(-12deg); color: #ffb020; }
    60%  { transform: scale(1.25) rotate(12deg);  color: #ff6900; }
    75%  { transform: scale(1.2)  rotate(-6deg);  color: #ffb020; }
    90%  { transform: scale(1.15) rotate(6deg);   color: #ff6900; }
    100% { transform: scale(1.0)  rotate(0deg);   color: #ff6900; }
}

.umm-notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    /* It hangs from the coloured top bar and took its white text: the
       "Notificări" heading was white on the panel's light grey. */
    color: var(--umm-text);
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    box-shadow: var(--umm-shadow-md);
    z-index: var(--umm-z-dropdown);
    overflow: hidden;
}

.umm-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--umm-border);
    background: var(--umm-surface-alt);
}

.umm-notifications-header h4 {
    margin: 0;
    font-size: 14px;
}

.umm-notifications-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 360px;
    overflow-y: auto;
}

.umm-notification-item {
    border-bottom: 1px solid var(--umm-border);
}

.umm-notification-item:last-child {
    border-bottom: none;
}

.umm-notification-item.umm-notif-unread {
    background: var(--umm-primary-light);
}

.umm-notif-link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--umm-text);
}

.umm-notif-link:hover {
    background: var(--umm-border);
    text-decoration: none;
}

.umm-notif-title {
    display: block;
    font-size: 13px;
}

.umm-notif-body {
    display: block;
    font-size: 12px;
    color: var(--umm-text-muted);
    margin-top: 2px;
}

.umm-notif-time {
    display: block;
    font-size: 11px;
    color: var(--umm-text-light);
    margin-top: 3px;
}

.umm-notification-empty {
    padding: 20px;
    text-align: center;
    color: var(--umm-text-muted);
    font-size: 13px;
}

/* The bell's foot: the way to every notification (partials/notification-bell.php). */
.umm-member-portal .umm-notifications-foot {
    border-top: 1px solid var(--umm-border);
    background: var(--umm-surface-alt);
    text-align: center;
}

.umm-member-portal .umm-notifications-all {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: var(--umm-accent-text, var(--umm-primary));
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.umm-member-portal .umm-notifications-all:hover,
.umm-member-portal .umm-notifications-all:focus-visible {
    text-decoration: underline;
}

/* "Toate notificările" (partials/menu-panels.php): the bell's rows, the whole
   height of the sheet, the whole text. */
.umm-member-portal .umm-notif-all__seg {
    margin: 0 0 12px;
}

.umm-member-portal .umm-notif-all__list {
    max-height: none;
    overflow: visible;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
}

.umm-member-portal .umm-notif-all__list:empty {
    display: none;
}

.umm-member-portal .umm-notif-all__list .umm-notif-link {
    padding: 12px 14px;
}

.umm-member-portal .umm-notif-all__list .umm-notif-title {
    font-size: calc(15px * var(--umm-scale, 1));
}

.umm-member-portal .umm-notif-all__list .umm-notif-body {
    font-size: calc(14px * var(--umm-scale, 1));
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.umm-member-portal .umm-notif-all__list .umm-notif-time {
    font-size: calc(12px * var(--umm-scale, 1));
    color: var(--umm-text-muted);
}

.umm-member-portal .umm-notif-all__more {
    margin: 12px 0 0;
    text-align: center;
}

/* =========================================================
   MEMBER CARD
   ========================================================= */

.umm-member-card {
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--umm-primary-dark) 0%, var(--umm-primary) 100%);
    color: #fff;
    max-width: 340px;
}

.umm-member-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.umm-card-org-name {
    font-size: 13px;
    font-weight: 700;
    opacity: .9;
}

/* Card org name: full on desktop, short on tablet/mobile */
.umm-card-org-short {
    display: none;
}

.umm-card-org-full {
    display: inline;
}

.umm-card-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.umm-member-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}
.umm-card-full-name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.umm-card-function {
    font-size: 12px;
    opacity: .8;
    margin: 0 0 8px;
}

.umm-card-dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
}

.umm-card-dl dt {
    font-size: 11px;
    opacity: .7;
    white-space: nowrap;
}

.umm-card-dl dd {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.umm-member-card-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.umm-member-card-footer .umm-member-card-generate-btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    padding: 10px 16px;
    border-radius: 5px;
    border: 1px solid var(--umm-accent, #0073aa);
    background: linear-gradient(135deg, var(--umm-accent, #0073aa) 0%, var(--umm-accent-strong, #005a87) 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.umm-member-card-footer .umm-member-card-generate-btn:hover {
    background: linear-gradient(135deg, var(--umm-accent-strong, #005a87) 0%, #004568 100%);
    border-color: #004568;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 115, 170, 0.4);
}

.umm-member-card-footer .umm-member-card-generate-btn .dashicons {
    margin-right: 6px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.umm-btn-text-short {
    display: none;
}

.umm-btn-text-full {
    display: inline;
}

@media (max-width: 768px) {
    .umm-btn-text-full {
        display: none;
    }

    .umm-btn-text-short {
        display: inline;
    }

    /* Logo text: switch to short name on tablet/mobile */
    .umm-logo-full {
        display: none;
    }

    .umm-logo-short {
        display: inline;
    }

    /* Card org name: switch to short name on tablet/mobile */
    .umm-card-org-full {
        display: none;
    }

    .umm-card-org-short {
        display: inline;
    }

    /* Tablet portrait tweaks */
    .umm-portal-tab {
        padding: 18px;
    }

    /* Profile: stack info grid on tablet portrait */
    .umm-profile-info-grid {
        grid-template-columns: 1fr;
    }

    /* Profile form: single column on tablet portrait — override form-enhanced.css grid */
    .umm-profile-form .umm-form-grid {
        grid-template-columns: 1fr !important;
    }

    .umm-profile-form .umm-form-group.full-width {
        grid-column: 1 !important;
    }

    .umm-profile-dl {
        grid-template-columns: max-content 1fr;
        gap: 6px 12px;
    }

    /* Hero: compact on tablet */
    .umm-profile-hero {
        padding: 16px;
        gap: 14px;
    }

    .umm-profile-hero-avatar {
        width: 60px;
        height: 60px;
    }

    .umm-profile-hero-initials {
        font-size: 20px;
    }

    .umm-profile-hero-name {
        font-size: 17px;
    }

    /* Payment balance banner wraps on narrow tablet */
    .umm-payment-balance-banner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }

    /* Events: push actions below date+details on portrait tablet */
    .umm-event-actions {
        flex-basis: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
}

/* The portal's own panels (the card, the payments, Preferințe știri) are the
   portal's sheets (umm-ui.css); #umm-portal-overlay is their backdrop. */

/* The card's frame fills its sheet, edge to edge. */
.umm-member-portal .umm-portal-sheet__frame {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.umm-member-card-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--umm-dk-surface, #fff);
}

/* What the card's QR code holds (partials/menu-panels.php): over the card's
   sheet, wherever that is (here, or Portofel's), so a step above the sheets. */
.umm-member-portal .umm-card-qr-backdrop {
    z-index: calc(var(--umm-z-sheet) + 1);
}

.umm-member-portal .umm-card-qr-sheet {
    z-index: calc(var(--umm-z-sheet) + 2);
}

/* The code large enough to be scanned off the screen. The image carries its
   own white quiet zone, so it scans in the dark theme too. */
.umm-member-portal .umm-card-qr__code {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

.umm-member-portal .umm-card-qr__code img {
    display: block;
    width: min(100%, 320px);
    height: auto;
    border-radius: var(--umm-radius);
    image-rendering: pixelated;
}

.umm-member-portal .umm-card-qr__lead {
    margin: 0 0 8px;
    color: var(--umm-text-muted);
    font-size: calc(14px * var(--umm-scale, 1));
}

.umm-member-portal .umm-card-qr__text {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid var(--umm-accent, var(--umm-primary));
    border-radius: var(--umm-radius);
    background: var(--umm-surface-alt);
    color: var(--umm-text);
    font-size: calc(15px * var(--umm-scale, 1));
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* Balance summary bar */
.umm-pay-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--umm-primary-light, var(--umm-dk-info-soft, #e8f3fb));
    border: 1px solid rgba(30, 124, 191, .25);
    border-radius: var(--umm-radius);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.umm-pay-summary-lbl {
    font-size: 12px;
    color: var(--umm-text-muted);
    font-weight: 500;
}

.umm-pay-summary-amt {
    font-size: 16px;
    font-weight: 700;
    color: var(--umm-primary, var(--umm-accent-text, #1e7cbf));
}
/* Compact radio-style option list */
.umm-pay-opt-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    overflow: hidden;
}

.umm-pay-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid var(--umm-border);
    background: var(--umm-surface);
    cursor: pointer;
    text-align: left;
    font-family: var(--umm-font);
    font-size: var(--umm-font-size);
    color: var(--umm-text);
    transition: background .12s;
    position: relative;
}

.umm-pay-opt:last-child {
    border-bottom: none;
}

.umm-pay-opt:hover {
    background: var(--umm-surface-alt);
}

.umm-pay-opt:hover .umm-pay-opt-radio {
    border-color: var(--umm-primary, var(--umm-accent, #1e7cbf));
}

.umm-pay-opt:hover .umm-pay-opt-radio-dot {
    opacity: 1;
}

.umm-pay-opt:hover .umm-pay-opt-arrow {
    color: var(--umm-primary, var(--umm-accent-text, #1e7cbf));
    transform: translateX(2px);
}

.umm-pay-opt:disabled,
.umm-pay-opt.is-loading {
    cursor: not-allowed;
    background: var(--umm-surface-alt);
}

.umm-pay-opt.is-active {
    background: var(--umm-primary-light, var(--umm-dk-info-soft, #e8f3fb));
}

/* Radio circle */
.umm-pay-opt-radio {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--umm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .12s;
}

.umm-pay-opt-radio-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--umm-primary, var(--umm-accent, #1e7cbf));
    opacity: 0;
    transition: opacity .12s;
}

.umm-pay-opt.is-active .umm-pay-opt-radio {
    border-color: var(--umm-primary, var(--umm-accent, #1e7cbf));
}

.umm-pay-opt.is-active .umm-pay-opt-radio-dot {
    opacity: 1;
}

/* Provider icon badge */
.umm-pay-opt-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.umm-pay-opt-icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Text */
.umm-pay-opt-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.umm-pay-opt-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umm-pay-opt-sub {
    font-size: 11px;
    color: var(--umm-text-muted);
    line-height: 1.3;
}

/* Arrow */
.umm-pay-opt-arrow {
    flex-shrink: 0;
    color: var(--umm-text-light, var(--umm-dk-muted, #9ca3af));
    transition: color .12s, transform .12s;
}

/* Spinner (per-option loading state) */
.umm-pay-opt-spin {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--umm-border);
    border-top-color: var(--umm-primary, var(--umm-accent, #1e7cbf));
    border-radius: 50%;
    animation: ummSpin .7s linear infinite;
    display: none;
}

.umm-pay-opt.is-active .umm-pay-opt-arrow {
    display: none;
}

.umm-pay-opt.is-active .umm-pay-opt-spin {
    display: block;
}

/* Result panel body */
.umm-pay-result-panel-body {
    overflow-y: auto;
    padding: 0;
}

.umm-pay-result-panel-body>* {
    padding: 16px;
}

/* Error state inside result panel */
.umm-pay-result-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px !important;
    gap: 12px;
}

.umm-pay-result-error-icon {
    width: 48px;
    height: 48px;
    font-size: 48px;
    color: var(--umm-danger, var(--umm-dk-danger-ink, #dc2626));
}

.umm-pay-result-error-msg {
    font-size: 14px;
    font-weight: 600;
    color: var(--umm-text);
    margin: 0;
    line-height: 1.5;
}

.umm-pay-result-error-hint {
    font-size: 12px;
    color: var(--umm-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Ledger table actions column */
.umm-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.umm-row-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.umm-no-action {
    color: var(--umm-text-muted);
    font-size: 13px;
}

/* ── Circle icon-only action button (mirrors .umm-tk-circle-btn) ── */
.umm-btn.umm-btn-icon {
    all: unset;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    line-height: 1 !important;
    flex-shrink: 0;
}

.umm-btn.umm-btn-icon .dashicons {
    display: block !important;
    font-size: 15px !important;
    width: 15px !important;
    height: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.umm-btn.umm-btn-primary.umm-btn-icon {
    background: var(--umm-primary, var(--umm-accent, #1e7cbf));
    color: #fff;
    border: 1.5px solid var(--umm-primary, var(--umm-accent, #1e7cbf));
}

.umm-btn.umm-btn-primary.umm-btn-icon:hover,
.umm-btn.umm-btn-primary.umm-btn-icon:focus-visible {
    background: var(--umm-primary-hover, #1668a5);
    border-color: var(--umm-primary-hover, #1668a5);
    outline: none;
}

.umm-btn.umm-btn-outline.umm-btn-icon {
    background: transparent;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    border: 1.5px solid var(--umm-border, var(--umm-dk-border, #e5e7eb));
}

.umm-btn.umm-btn-outline.umm-btn-icon:hover,
.umm-btn.umm-btn-outline.umm-btn-icon:focus-visible {
    background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f9fafb));
    color: var(--umm-text, var(--umm-dk-text, #111827));
    border-color: var(--umm-text-muted, #6b7280);
    outline: none;
}

.umm-btn.umm-btn-ghost.umm-btn-icon {
    background: transparent;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    border: 1.5px solid transparent;
}

.umm-btn.umm-btn-ghost.umm-btn-icon:hover,
.umm-btn.umm-btn-ghost.umm-btn-icon:focus-visible {
    background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f9fafb));
    color: var(--umm-text, var(--umm-dk-text, #111827));
    border-color: var(--umm-border, var(--umm-dk-border, #e5e7eb));
    outline: none;
}

.umm-btn.umm-btn-icon:disabled,
.umm-btn.umm-btn-icon[disabled] {
    opacity: .4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.umm-btn.umm-btn-icon.is-loading {
    opacity: .6 !important;
    pointer-events: none !important;
}

/* ── Detail panel fieldsets (mirrors .umm-tk-fieldset) ── */
.umm-detail-fs {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    margin: 0 0 14px;
    min-width: 0;
}

.umm-detail-fs>legend {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    color: var(--umm-text);
}

.umm-detail-fs>legend .dashicons {
    color: var(--umm-primary, var(--umm-accent-text, #1e7cbf));
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Definition list inside summary fieldset */
.umm-detail-dl {
    margin: 10px 0 0;
}

.umm-detail-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--umm-border);
    font-size: 13px;
    gap: 12px;
}

.umm-detail-dl-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.umm-detail-dl dt {
    color: var(--umm-text-muted);
    font-weight: 400;
    flex-shrink: 0;
}

.umm-detail-dl dd {
    font-weight: 500;
    text-align: right;
    margin: 0;
}

/* Transaction cards */
.umm-detail-txn-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.umm-detail-txn {
    border: 1px solid var(--umm-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background: var(--umm-surface-alt);
}

.umm-detail-txn-top,
.umm-detail-txn-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umm-detail-txn-top {
    margin-bottom: 4px;
}

.umm-detail-txn-provider {
    font-weight: 600;
}

.umm-detail-txn-amount {
    font-weight: 600;
}

.umm-detail-txn-method {
    color: var(--umm-text-muted);
    font-size: 12px;
}

.umm-detail-txn-date {
    color: var(--umm-text-muted);
    font-size: 11px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--umm-border);
}

/* Documents fieldset download link */
.umm-detail-fs .umm-btn-outline {
    margin-top: 6px;
}

/* Compact card */
.umm-member-card-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--umm-radius-sm);
}

.umm-card-name {
    font-size: 12px;
    color: var(--umm-sidebar-text);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umm-card-num {
    font-size: 11px;
    color: var(--umm-sidebar-text);
    opacity: .6;
}

/* =========================================================
   LOGIN PROMPT
   ========================================================= */
.umm-login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
/* =========================================================
   MEMBERSHIP STATUS BADGE (sidebar)
   ========================================================= */

.umm-membership-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--umm-radius-sm);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, .05);
    color: var(--umm-sidebar-text);
}

.umm-membership-status-badge.umm-status-active {
    background: rgba(22, 163, 74, .15);
    color: #86efac;
}

.umm-membership-status-badge.umm-status-suspended {
    background: rgba(217, 119, 6, .15);
    color: #fcd34d;
}

.umm-membership-status-badge.umm-status-withdrawn {
    background: rgba(220, 38, 38, .15);
    color: #fca5a5;
}

/* =========================================================
   RELAXATION
   ========================================================= */

.umm-relaxation-placeholder {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    padding: 40px;
    text-align: center;
}

.umm-relaxation-info h3 {
    font-size: 18px;
    margin: 12px 0 8px;
}

.umm-relaxation-info p {
    color: var(--umm-text-muted);
}
.umm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.umm-stat-card {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.umm-stat-label {
    font-size: 11px;
    color: var(--umm-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
/* =========================================================
   PAYMENTS — Balance
   ========================================================= */

.umm-highlight {
    color: var(--umm-primary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet landscape: a narrower messages sidebar */
@media (max-width: 1024px) {
    .umm-messages-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 900px) {
    /* Reduce tab content padding on tablet */
    .umm-portal-tab {
        padding: 20px;
    }

    .umm-messages-layout {
        grid-template-columns: 1fr;
    }

    .umm-thread-list {
        border-right: none;
        border-bottom: 1px solid var(--umm-border);
        max-height: 260px;
    }
}

@media (max-width: 680px) {

    :root,
    .umm-member-portal {
        --umm-sidebar-w: 200px;
    }

    /* Remove forced min-height — portal content stacks vertically on mobile */
    .umm-member-portal {
        min-height: unset;
    }
    .umm-portal-body {
        flex-direction: column;
    }

    .umm-portal-sidebar {
        width: 100% !important;
        min-height: unset;
        overflow: hidden;
    }

    .umm-portal-sidebar.umm-sidebar-closed {
        display: none;
    }

    .umm-portal-nav-list {
        display: flex;
        flex-wrap: wrap;
        padding: 4px;
    }

    .umm-portal-nav-item {
        flex-basis: 50%;
    }

    .umm-portal-tab {
        padding: 16px;
    }

    /* Benefits tab: remove bottom padding so map fills edge-to-edge */
    .umm-portal-tab[data-tab-slug="benefits"].is-active {
        padding-bottom: 8px;
    }

    /* Benefits wrap: match admin page responsive height fallback */
    .umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal {
        --umm-mb-portal-wrap-h: calc(100vh - 56px);
        border-radius: 8px;
    }

    .umm-news-grid {
        grid-template-columns: 1fr;
    }

    /* Events: keep date+details inline, push actions to a new full-width row */
    .umm-event-body {
        gap: 12px;
    }

    .umm-event-date-block {
        flex-shrink: 0;
    }

    .umm-event-details {
        min-width: 120px;
    }

    .umm-event-actions {
        flex-basis: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    /* Profile hero: keep avatar + meta on the same row on mobile */
    .umm-profile-hero {
        flex-direction: row;
        align-items: center;
        padding: 12px 14px;
        gap: 12px;
    }

    .umm-profile-hero-avatar {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .umm-profile-hero-initials {
        font-size: 16px;
    }

    .umm-profile-hero-name {
        font-size: 15px;
        white-space: normal;
    }

    fieldset.umm-profile-card,
    fieldset.umm-profile-edit-section {
        padding: 14px;
    }

    .umm-profile-dl {
        grid-template-columns: max-content 1fr;
        gap: 5px 10px;
    }

    .umm-case-dl {
        grid-template-columns: 1fr;
    }

    /* Notifications panel: keep within viewport */
    .umm-notifications-panel {
        right: 0;
        left: auto;
        width: min(310px, calc(100vw - 16px));
    }

    .umm-member-card {
        max-width: 100%;
    }
}

@media (max-width: 440px) {
    .umm-portal-nav-item {
        flex-basis: 100%;
    }

    .umm-portal-username {
        display: none;
    }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .umm-portal-tab {
        padding: 12px;
    }

    .umm-portal-page-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Payment balance banner stacks vertically */
    .umm-payment-balance-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
        font-size: 13px;
        gap: 6px;
    }

    /* Case card header wraps on very small phones */
    .umm-case-card-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Benefits tab: match admin page responsive height fallback */
    .umm-tab-benefits #umm-mb-wrap.umm-mb-wrap--portal {
        --umm-mb-portal-wrap-h: calc(100vh - 56px);
        border-radius: 6px;
    }

    /* Messages thread list shorter on small phones */
    .umm-thread-list {
        max-height: 200px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .umm-portal-tab,
    .umm-portal-spinner {
        animation: none;
    }
}

/* =========================================================
   MEMBER LOGIN FORM  ([umm_member_login] + login-prompt)
   ========================================================= */

.umm-member-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 32px 20px;
    font-family: var(--umm-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.umm-member-login__panel {
    display: none;
    width: 100%;
    max-width: 420px;
    background: var(--umm-surface, var(--umm-dk-surface, #fff));
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e5e7eb));
    border-radius: var(--umm-radius, 8px);
    box-shadow: var(--umm-shadow-md, 0 4px 6px rgba(0, 0, 0, .07));
    padding: 36px 32px;
}

.umm-member-login__panel.is-active {
    display: block;
}

.umm-member-login__icon {
    text-align: center;
    margin-bottom: 12px;
}

.umm-member-login__icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--umm-primary, var(--umm-accent-text, #1e7cbf));
}

.umm-member-login__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--umm-text, var(--umm-dk-text, #111827));
    text-align: center;
    margin: 0 0 6px;
}

.umm-member-login__subtitle {
    font-size: 14px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    text-align: center;
    margin: 0 0 24px;
}

.umm-member-login__form .umm-form-group {
    margin-bottom: 16px;
}

.umm-member-login__form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--umm-text, var(--umm-dk-text, #111827));
    margin-bottom: 5px;
}

.umm-member-login__form input[type="email"],
.umm-member-login__form input[type="password"],
.umm-member-login__form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e5e7eb));
    border-radius: var(--umm-radius-sm, 4px);
    font-size: 14px;
    color: var(--umm-text, var(--umm-dk-text, #111827));
    background: var(--umm-surface, var(--umm-dk-surface, #fff));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.umm-member-login__form input:focus {
    border-color: var(--umm-primary, var(--umm-accent, #1e7cbf));
    box-shadow: 0 0 0 3px rgba(30, 124, 191, 0.15);
}

/* Suppress Edge / IE native reveal + clear buttons */
.umm-input-with-toggle input[type="password"]::-ms-reveal,
.umm-input-with-toggle input[type="password"]::-ms-clear,
.umm-input-with-toggle input[type="text"]::-ms-clear {
    display: none !important;
}

.umm-input-with-toggle {
    position: relative;
    display: flex;
    align-items: stretch;
}

.umm-input-with-toggle input {
    flex: 1;
    padding-right: 40px !important;
}

.umm-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    line-height: 1;
}

.umm-toggle-password:hover {
    color: var(--umm-primary, var(--umm-accent-text, #1e7cbf));
}
.umm-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400 !important;
    cursor: pointer;
}

.umm-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.umm-btn-full {
    width: 100%;
    justify-content: center;
}

.umm-member-login__message {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: var(--umm-radius-sm, 4px);
    font-size: 13px;
    line-height: 1.5;
}

.umm-member-login__message.is-error {
    background: var(--umm-dk-danger-soft, #fef2f2);
    border: 1px solid var(--umm-dk-danger-line, #fecaca);
    color: var(--umm-dk-danger-ink, #991b1b);
}

.umm-member-login__message.is-success {
    background: var(--umm-dk-ok-soft, #f0fdf4);
    border: 1px solid var(--umm-dk-ok-line, #bbf7d0);
    color: var(--umm-dk-ok-ink, #166534);
}
/* Spinner inside submit button */
.umm-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--umm-dk-border, #fff);
    border-radius: 50%;
    animation: umm-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

/* Standalone reset-password page */
.umm-standalone-page {
    background: var(--umm-bg, var(--umm-dk-surface-2, #f3f4f6));
}

.umm-standalone-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Dark-mode adjustments (inherits from .umm-portal-dark parent when embedded) */
.umm-portal-dark .umm-member-login__panel {
    background: var(--umm-surface);
    border-color: var(--umm-border);
}

.umm-portal-dark .umm-member-login__form input[type="email"],
.umm-portal-dark .umm-member-login__form input[type="password"] {
    background: var(--umm-surface-alt);
    border-color: var(--umm-border);
    color: var(--umm-text);
}

.umm-portal-dark .umm-member-login__message.is-error {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.umm-portal-dark .umm-member-login__message.is-success {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

/* =========================================================
   BLANK CANVAS PAGE  (portal-canvas.php template)
   ========================================================= */

body.umm-portal-canvas {
    margin: 0;
    padding: 0;
    background: var(--umm-dk-surface-2, #f3f4f6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.umm-portal-canvas *,
body.umm-portal-canvas *::before,
body.umm-portal-canvas *::after {
    box-sizing: border-box;
}

/* =========================================================
   MEMBER AVATAR — initials fallback (no WP user linked)
   ========================================================= */

.umm-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--umm-primary, var(--umm-accent, #1e7cbf));
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
    user-select: none;
}

/* =========================================================
   SECURITY TAB
   ========================================================= */

.umm-sec-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .umm-sec-overview-grid {
        grid-template-columns: 1fr;
    }
}

.umm-sec-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    border-left: 4px solid var(--umm-border);
}

.umm-sec-card--ok {
    border-left-color: #22c55e;
}

.umm-sec-card--warn {
    border-left-color: #f59e0b;
}

.umm-sec-card__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--umm-primary-light, var(--umm-dk-info-soft, #e8f4fc));
    display: flex;
    align-items: center;
    justify-content: center;
}

.umm-sec-card--ok .umm-sec-card__icon {
    background: var(--umm-dk-ok-soft, #dcfce7);
}

.umm-sec-card--warn .umm-sec-card__icon {
    background: var(--umm-dk-warn-soft, #fef3c7);
}

.umm-sec-card__icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--umm-primary);
}

.umm-sec-card--ok .umm-sec-card__icon .dashicons {
    color: #16a34a;
}

.umm-sec-card--warn .umm-sec-card__icon .dashicons {
    color: #d97706;
}

.umm-sec-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.umm-sec-card__label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--umm-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.umm-sec-card__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--umm-text);
    word-break: break-all;
}

.umm-sec-card__sub {
    font-size: 12px;
    color: var(--umm-text-muted);
}

.umm-sec-password-box {
    background: var(--umm-surface);
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius);
    padding: 20px 24px;
    max-width: 640px;
}

/* Inside the portal the fieldset is already the card (§5.2): no second box
   in it; the overview's three cards are three rows of one card. */
.umm-member-portal .umm-sec-password-box {
    max-width: 640px;
    padding: 0;
    border: 0;
    background: transparent;
}

.umm-member-portal .umm-sec-overview-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--umm-border);
    border-radius: var(--umm-radius-card);
    background: var(--umm-surface);
    box-shadow: var(--umm-elev-1);
}

.umm-member-portal .umm-sec-card {
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px 14px;
    border: 0;
    border-left: 1px solid var(--umm-border);
    border-radius: 0;
}

.umm-member-portal .umm-sec-card:first-child {
    border-left: 0;
}

.umm-member-portal .umm-sec-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--umm-accent-soft);
}

.umm-member-portal .umm-sec-card__icon .dashicons {
    color: var(--umm-accent-text);
}

.umm-member-portal .umm-sec-card--ok .umm-sec-card__icon { background: var(--umm-ok-soft); }
.umm-member-portal .umm-sec-card--ok .umm-sec-card__icon .dashicons { color: var(--umm-ok-icon); }
.umm-member-portal .umm-sec-card--warn .umm-sec-card__icon { background: var(--umm-warn-soft); }
.umm-member-portal .umm-sec-card--warn .umm-sec-card__icon .dashicons { color: var(--umm-warn-icon); }

.umm-member-portal .umm-sec-card__label {
    font-size: calc(12px * var(--umm-scale, 1));
}

.umm-member-portal .umm-sec-card__value {
    font-size: calc(16px * var(--umm-scale, 1));
}

.umm-member-portal .umm-sec-card__sub {
    font-size: calc(12.5px * var(--umm-scale, 1));
}

@media (max-width: 700px) {
    .umm-member-portal .umm-sec-card {
        border-left: 0;
        border-top: 1px solid var(--umm-border);
    }

    .umm-member-portal .umm-sec-card:first-child {
        border-top: 0;
    }

    /* The line under each value repeats the label on a phone. */
    .umm-member-portal .umm-sec-card__sub {
        display: none;
    }
}

/* The eye that shows the password: a 44 px target inside the box. */
.umm-member-portal .umm-sec-reveal-btn {
    right: 2px;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--umm-radius-control);
}

.umm-member-portal .umm-sec-pwd-field .umm-form-control {
    padding-right: 48px;
}

.umm-sec-pwd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 560px) {
    .umm-sec-pwd-row {
        grid-template-columns: 1fr;
    }
}

.umm-sec-pwd-field {
    position: relative;
    display: flex;
    align-items: center;
}

.umm-sec-pwd-field .umm-form-control {
    padding-right: 40px;
}

.umm-sec-reveal-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--umm-text-muted);
    line-height: 1;
    display: flex;
    align-items: center;
}

.umm-sec-reveal-btn:hover {
    color: var(--umm-primary);
}

.umm-sec-reveal-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.umm-sec-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.umm-sec-pag-info {
    font-size: 13px;
    color: var(--umm-text-muted);
}

.umm-sec-pag-btns {
    display: flex;
    gap: 8px;
}

/* ── A section's inner tabs (the shared strip) ──────────────────────────────
   Every section's .umm-tvr-shortcode-nav (Profil, Structura, Cotizație,
   Alegeri, Evenimente, Mesaje, Date Personale, Securitate, TV & Radio…) is
   drawn as the components' strip (.umm-ui-seg, assets/css/umm-ui.css): pills
   with icon AND label — on a phone too (they used to shrink to bare icons
   under 560 px) — the chosen one filled with the union's colour; the strip
   scrolls sideways when the tabs do not fit (Phase 3,
   docs/PORTAL-UI-PLAN-2026-11-09.md §9). The !important answer the ones in
   tv-radio.css, whose rules also draw this strip on its own admin page.
   ─────────────────────────────────────────────────────────────────────────── */
.umm-portal-tab-content .umm-tvr-toolbar {
    display: block;
    min-height: 0;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 0 -2px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-inner::-webkit-scrollbar { display: none; }

.umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none;
    gap: 6px;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 15px;
    border: 1.5px solid var(--umm-border) !important;
    border-radius: var(--umm-radius-pill, 999px);
    background: var(--umm-surface) !important;
    box-shadow: none !important;
    color: var(--umm-text);
    font-family: inherit;
    font-size: calc(14px * var(--umm-scale, 1));
    font-weight: 650;
    letter-spacing: normal;
    line-height: 1.25;
    text-indent: 0 !important;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item:hover {
    border-color: var(--umm-accent-line) !important;
    background: var(--umm-surface) !important;
    color: var(--umm-text) !important;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item.active {
    border-color: var(--umm-accent) !important;
    background: var(--umm-accent) !important;
    color: var(--umm-accent-ink) !important;
    box-shadow: 0 8px 18px -10px var(--umm-accent) !important;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item:focus-visible {
    outline: 3px solid var(--umm-accent);
    outline-offset: 2px;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item .dashicons {
    display: block !important;
    flex-shrink: 0;
    width: calc(18px * var(--umm-scale, 1));
    height: calc(18px * var(--umm-scale, 1));
    margin: 0 !important;
    padding: 0 !important;
    color: var(--umm-accent-text);
    font-size: calc(18px * var(--umm-scale, 1));
    line-height: 1;
}

.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item.active .dashicons {
    color: inherit;
}

/* The label: always there (tv-radio.css hides it below 1024 px on its own page). */
.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-nav-label {
    display: inline !important;
}

@media (pointer: coarse) {
    .umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item {
        height: 44px;
    }
}

@media (max-width: 1024px) {
    /* Not the bare icon tv-radio.css makes of it on a narrow screen. */
    .umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item {
        width: auto;
        min-width: 0;
        padding: 0 15px;
        gap: 6px;
    }
}

@media (max-width: 560px) {
    /* A finger's target for the RSVP buttons on phones (44 px, §10). */
    .umm-events-list .umm-btn-sm:not(.umm-btn-icon):not(.umm-ical-btn) {
        padding: 8px 12px;
        min-height: 44px;
    }

    /* iCal button: collapse to perfect icon-only circle on phones */
    .umm-ical-btn .umm-ical-btn-label {
        display: none !important;
    }
    .umm-ical-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    .umm-ical-btn .dashicons {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
}
/* ============================================================
 * Communication sub-views (Conferințe / Transmisiuni) embedded
 * in the "Mesaje" tab. Reuses the admin WebRTC apps; these rules
 * adapt them to the member portal surface.
 * ============================================================ */

/* Neutralize the WP-admin .wrap margins for the embedded apps. */
.umm-msgview-embed .wrap,
.umm-msgview-embed .umm-vc-wrap,
.umm-msgview-embed .umm-ls-wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Keep each embedded app within a sensible viewport height inside the portal. */
.umm-msgview-embed .umm-vc-main,
.umm-msgview-embed .umm-ls-main {
    min-height: 60vh;
}

/* Members never initiate — defensively hide any officer-only affordance
 * that slips through (JS also hides these). */
.umm-vc-no-create [data-action="create-room"],
.umm-vc-no-create [data-action="show-settings"],
.umm-ls-no-create [data-action="new-stream"],
.umm-ls-no-create [data-action="show-settings"],
.umm-ls-no-create #umm-ls-btn-golive {
    display: none !important;
}

/* Portal-rendered pending-invitation strip (video conferences). */
.umm-portal-comm-invites {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--umm-portal-border, var(--umm-dk-border, #e2e8f0));
    border-radius: 10px;
    background: var(--umm-portal-surface, var(--umm-dk-surface-2, #f8fafc));
}
.umm-portal-comm-invites-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}
.umm-portal-comm-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--umm-portal-border, var(--umm-dk-border, #e2e8f0));
}
.umm-portal-comm-invite:first-of-type { border-top: 0; }
.umm-portal-comm-invite-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.umm-portal-comm-invite-title { font-weight: 600; }
.umm-portal-comm-invite-meta {
    /* --umm-portal-muted has never been defined; the token is --umm-text-muted,
       which is also what the dark theme overrides. */
    color: var(--umm-text-muted, #6b7280);
    font-size: 12px;
}
.umm-portal-comm-invite-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .umm-portal-comm-invite { flex-direction: column; align-items: stretch; }
    .umm-portal-comm-invite-actions { justify-content: flex-end; }
}

/* ================================================================
 *  PAYMENTS TAB — v2 (deduction types, total-first payment)
 *
 *  The banner carries the decision: "Achită tot" is a primary button,
 *  the two partial paths are links under it. Charges are coloured by
 *  their deduction type through --umm-pay-type-color, which each row
 *  sets inline from the type's own colour and falls back to the accent.
 * ================================================================ */

.umm-balance-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.umm-balance-banner-sub {
    font-size: 12px;
    opacity: .8;
    font-weight: 500;
}
.umm-balance-banner-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.umm-pay-secondary-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.umm-pay-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    opacity: .8;
    text-decoration: underline;
    cursor: pointer;
}
.umm-pay-link:hover { opacity: 1; }
.umm-pay-link-sep { opacity: .5; }

.umm-pay-credit-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    margin: -8px 0 16px;
}
.umm-pay-credit-note .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ---- balance grouped by deduction type ---- */
.umm-pay-type-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.umm-pay-type-chip {
    --umm-pay-type-color: var(--umm-primary, #1e7cbf);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-left: 4px solid var(--umm-pay-type-color);
    border-radius: var(--umm-radius, 8px);
    background: var(--umm-surface, var(--umm-dk-surface, #fff));
    min-width: 150px;
}
.umm-pay-type-chip-label { font-weight: 600; font-size: 13px; }
.umm-pay-type-chip-amount { font-size: 17px; font-weight: 700; }
.umm-pay-type-chip-count { font-size: 11px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }

.umm-pay-type-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--umm-primary, var(--umm-accent, #1e7cbf));
    margin-right: 6px;
    vertical-align: middle;
}

/* ---- open charges ---- */
.umm-pay-charge-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.umm-pay-charge {
    --umm-pay-type-color: var(--umm-primary, #1e7cbf);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-left: 4px solid var(--umm-pay-type-color);
    border-radius: var(--umm-radius, 8px);
    background: var(--umm-surface, var(--umm-dk-surface, #fff));
}
.umm-pay-charge-main { display: flex; flex-direction: column; min-width: 0; }
.umm-pay-charge-label { font-weight: 600; }
.umm-pay-charge-period { font-size: 12px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-charge-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.umm-pay-charge-paid { font-size: 11px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-charge-amount { font-weight: 700; white-space: nowrap; }
.umm-pay-charge-actions { display: flex; gap: 6px; }

/* ---- what recurs ---- */
.umm-pay-enrol-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.umm-pay-enrol {
    --umm-pay-type-color: var(--umm-primary, #1e7cbf);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: baseline;
    padding: 8px 12px;
    border-left: 3px solid var(--umm-pay-type-color);
    background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f8fafc));
    border-radius: 0 var(--umm-radius, 8px) var(--umm-radius, 8px) 0;
}
.umm-pay-enrol.is-ended { opacity: .55; }
.umm-pay-enrol-label { font-weight: 600; }
.umm-pay-enrol-amount { font-weight: 600; white-space: nowrap; }
.umm-pay-enrol-period { font-weight: 400; font-size: 11px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-enrol-dates { font-size: 12px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); white-space: nowrap; }

/* ---- history ---- */
.umm-pay-history-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.umm-pay-history-more { text-align: center; margin-top: 12px; }
.umm-pay-txn-provider {
    display: block;
    font-size: 11px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
}
.umm-pay-txn-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--umm-dk-danger-soft, #fee2e2);
    color: var(--umm-dk-danger-ink, #991b1b);
}
.umm-pay-txn-refund td { opacity: .85; }

/* ---- pay panel: amount, picker, preview ---- */
.umm-pay-fs {
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-radius: var(--umm-radius, 8px);
    padding: 12px 14px;
    margin: 0 0 14px;
}
.umm-pay-fs > legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    padding: 0 6px;
}
.umm-pay-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.umm-pay-amount-row .umm-input { flex: 1; font-size: 20px; font-weight: 700; text-align: right; }
.umm-pay-amount-cur { font-weight: 600; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-amount-hint,
.umm-pay-pick-hint {
    font-size: 12px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    margin: 8px 0 0;
}

.umm-pay-pick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 40vh;
    overflow-y: auto;
}
.umm-pay-pick {
    --umm-pay-type-color: var(--umm-primary, #1e7cbf);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-left: 3px solid var(--umm-pay-type-color);
    border-radius: var(--umm-radius, 8px);
    cursor: pointer;
}
.umm-pay-pick:hover { background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f8fafc)); }
.umm-pay-pick-text { display: flex; flex-direction: column; min-width: 0; }
.umm-pay-pick-label { font-weight: 600; font-size: 13px; }
.umm-pay-pick-period { font-size: 11px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-pick-amount { font-weight: 700; white-space: nowrap; }

.umm-pay-preview { margin: 0 0 14px; }
.umm-pay-preview-inner {
    border: 1px dashed var(--umm-border, var(--umm-dk-border, #e2e8f0));
    border-radius: var(--umm-radius, 8px);
    padding: 12px 14px;
    background: var(--umm-surface-alt, var(--umm-dk-surface-2, #f8fafc));
}
.umm-pay-preview-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
}
.umm-pay-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.umm-pay-preview-list li {
    --umm-pay-type-color: var(--umm-primary, #1e7cbf);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: baseline;
    font-size: 13px;
    padding-left: 8px;
    border-left: 3px solid var(--umm-pay-type-color);
}
.umm-pay-preview-period { font-size: 11px; color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280)); }
.umm-pay-preview-amt { font-weight: 600; white-space: nowrap; }
.umm-pay-preview-credit,
.umm-pay-preview-empty,
.umm-pay-preview-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    margin: 8px 0 0;
}
.umm-pay-preview-empty, .umm-pay-preview-loading { margin: 0; }
.umm-pay-preview-credit .dashicons,
.umm-pay-preview-loading .dashicons { font-size: 14px; width: 14px; height: 14px; }
.umm-detail-empty { margin: 8px 0 0; font-size: 13px; }

.umm-stripe-portal-error {
    color: var(--umm-color-error, var(--umm-dk-danger-ink, #c0392b));
    font-size: 13px;
    margin-left: 10px;
}

@media (max-width: 640px) {
    .umm-balance-banner-right { align-items: stretch; width: 100%; }
    .umm-balance-banner-right .umm-btn { width: 100%; justify-content: center; }
    .umm-pay-secondary-actions { justify-content: center; }

    .umm-pay-charge {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 6px;
    }
    .umm-pay-charge-meta { align-items: flex-end; }
    .umm-pay-charge-amount { grid-column: 1; font-size: 16px; }
    .umm-pay-charge-actions { grid-column: 2; justify-content: flex-end; }

    .umm-pay-enrol { grid-template-columns: minmax(0, 1fr) auto; }
    .umm-pay-enrol-dates { grid-column: 1 / -1; }

    .umm-pay-type-chip { flex: 1 1 100%; }
}

.umm-portal-fieldset-hint {
    font-size: 12px;
    color: var(--umm-text-muted, var(--umm-dk-muted, #6b7280));
    margin: -4px 0 10px;
}

/* Why a payment failed, under its status badge (Plăți). */
.umm-pay-txn-reason { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--umm-portal-muted, var(--umm-dk-muted, #5f6368)); max-width: 260px; overflow-wrap: anywhere; }

/* =========================================================
   INNER TABS ON A PHONE: a grid, every tab in sight
   (Phase 3, the owner's review of 1.5.71 on a phone: "a lot of actions
   visible only with scroll"). A sideways-scrolling strip hid tabs past the
   screen's edge in ten sections — Relaxare eight of its games, Notițe three
   views, TV & Radio its search. Up to 680 px every strip is a grid: as many
   columns as fit (84 px at least, 3 for five or six tabs), each tab its icon
   over its name, the name on two lines when it needs them, a count in its
   corner. A toolbar's own tools (TV & Radio's search; Noutăți's sources,
   preferences and search) take the line under the tabs, whole.
   Written last: it outranks the strip rules above and the mapping in
   umm-ui.css (several say !important for the modules' own pages).
   ========================================================= */
@media (max-width: 680px) {
    .umm-member-portal .umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0;
        padding: 0 0 4px;
        overflow: visible;
    }

    .umm-member-portal .umm-portal-tab-content .umm-tvr-toolbar :is(.umm-toolbar-left, .umm-toolbar-right) {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .umm-member-portal .umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-right:not(:has(*)) {
        display: none;
    }

    .umm-member-portal :is(.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav, .umm-notes-portal-filter-bar, .umm-rp-tabstrip, .umm-mb-portal-tabs, .umm-wx-tabs, .umm-news-toolbar .umm-news-nav, .umm-member-documents-shortcode .umm-tabs, .umm-tk-filters, .umm-scanner-portal-tabs) {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
        gap: 6px;
        width: 100%;
        margin: 0;
        padding: 0 0 6px;
        overflow: visible;
        scroll-snap-type: none;
    }

    /* Five or six tabs: three a row, not four and a lonely one or two. */
    .umm-member-portal :is(.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav, .umm-notes-portal-filter-bar, .umm-rp-tabstrip, .umm-mb-portal-tabs, .umm-wx-tabs, .umm-news-toolbar .umm-news-nav, .umm-member-documents-shortcode .umm-tabs, .umm-tk-filters, .umm-scanner-portal-tabs):has(> :nth-child(5):last-child, > :nth-child(6):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .umm-member-portal :is(.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item, .umm-notes-portal-filter-bar .umm-pg-nav-item, .umm-rp-tabstrip .umm-rp-tab, .umm-mb-portal-tabs .umm-mb-nav-item, .umm-wx-tabs .umm-wx-tab, .umm-news-toolbar .umm-news-nav .umm-news-toolbar-btn, .umm-member-documents-shortcode .umm-tabs .umm-tab, .umm-tk-filters .umm-tk-filter-btn, .umm-scanner-portal-tabs .umm-ui-seg__item) {
        flex-direction: column !important;
        gap: 4px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 7px 6px !important;
        border-radius: 14px !important;
        font-size: calc(12.5px * var(--umm-scale, 1)) !important;
        line-height: 1.2 !important;
        text-align: center;
        white-space: normal !important;
    }

    .umm-member-portal :is(.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav .umm-tvr-nav-item, .umm-notes-portal-filter-bar .umm-pg-nav-item, .umm-rp-tabstrip .umm-rp-tab, .umm-mb-portal-tabs .umm-mb-nav-item, .umm-wx-tabs .umm-wx-tab, .umm-news-toolbar .umm-news-nav .umm-news-toolbar-btn, .umm-member-documents-shortcode .umm-tabs .umm-tab, .umm-tk-filters .umm-tk-filter-btn, .umm-scanner-portal-tabs .umm-ui-seg__item) .dashicons {
        width: calc(20px * var(--umm-scale, 1)) !important;
        height: calc(20px * var(--umm-scale, 1)) !important;
        font-size: calc(20px * var(--umm-scale, 1)) !important;
    }

    .umm-member-portal :is(.umm-portal-tab-content .umm-tvr-toolbar .umm-tvr-shortcode-nav, .umm-notes-portal-filter-bar, .umm-rp-tabstrip, .umm-mb-portal-tabs, .umm-news-toolbar .umm-news-nav, .umm-member-documents-shortcode .umm-tabs, .umm-scanner-portal-tabs) :is(.umm-nav-label, .umm-rp-tab-label, .tab-text) {
        display: block !important;
        max-width: 100%;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* A count rides in the tab's corner. */
    .umm-member-portal :is(.umm-notes-portal-filter-bar, .umm-member-documents-shortcode .umm-tabs) :is(.umm-notes-count, .tab-badge) {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 20px;
        margin: 0;
    }

    /* Relaxare's settings: a cell like the others, its gear alone. */
    .umm-member-portal .umm-rp-tabstrip .umm-rp-tab.umm-rp-tab-settings {
        width: auto !important;
        margin: 0 !important;
    }

    /* Noutăți: the views on their line, the sources, preferences and search
       on the next — one line each, the search taking what is left. */
    .umm-member-portal .umm-news-toolbar .umm-toolbar-right {
        flex-wrap: nowrap;
    }

    .umm-member-portal .umm-news-toolbar .umm-toolbar-right .umm-pg-search-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .umm-member-portal .umm-news-toolbar .umm-pg-search-input {
        width: 100%;
        max-width: none;
    }

    .umm-member-portal .umm-news-toolbar .umm-news-toolbar-sources :is(.umm-select-dropdown, .umm-select-toggle) {
        max-width: 160px;
    }

    /* TV & Radio's search: the whole line under the tabs, a box as tall as
       a finger. */
    .umm-member-portal .umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-right .umm-tvr-search-wrap {
        flex: 1 1 auto;
        width: 100%;
        min-height: 44px;
        border-radius: var(--umm-radius-pill);
    }

    .umm-member-portal .umm-portal-tab-content .umm-tvr-toolbar .umm-toolbar-right .umm-tvr-search {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    /* Notițe runs edge to edge: its grid keeps the margin its search has
       (!important: the grid rule above weighs five classes through :is()). */
    .umm-member-portal .umm-notes-portal-filter-bar {
        padding: 8px 12px 6px !important;
    }

    /* A bar of filters that narrow one list (data-umm-filter-menu: Notițe,
       Solicitări) is one choice here: umm-ui.js puts its menu in its place
       (umm-ui.css). !important and four classes' weight against the grid
       rule above (its :is() weighs as its heaviest). */
    .umm-member-portal .umm-portal-tab [data-umm-filter-menu][data-umm-fmenu-on] {
        display: none !important;
    }

    /* Notițe's runs edge to edge, with its search's margin. */
    .umm-member-portal #umm-tab-notes .umm-ui-fmenu {
        margin: 8px 12px 6px;
    }

    /* Relaxare's game bar: the game and whose turn on the first line, its
       level, turn, undo and new game on the next — none past the edge. */
    .umm-member-portal .umm-relax-wrap .umm-relax-toolbar {
        padding: 6px 12px;
    }

    .umm-member-portal .umm-relax-wrap .umm-toolbar-inner {
        flex-wrap: wrap;
        row-gap: 6px;
        overflow: visible;
    }

    .umm-member-portal .umm-relax-wrap .umm-toolbar-inner > .umm-toolbar-left {
        flex: 1 1 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .umm-member-portal .umm-relax-wrap .umm-toolbar-inner > .umm-toolbar-right {
        flex-wrap: wrap;
        margin-left: auto;
    }
}

/* =========================================================
   THE TOOLS ON A PHONE (§20): a search takes a whole line or the rest
   of one, no list's name cut, no margin a section adds to the page's
   ========================================================= */
@media (max-width: 680px) {
    /* Notițe: the search and the microphone on the first line, the two
       lists halving the next (beside the microphone both names were cut:
       "După actuali…", "Toate etichet…"). */
    .umm-member-portal .umm-personal-notes-wrap #umm-toolbar-all .umm-pg-search-wrap {
        order: 0;
        flex: 1 1 calc(100% - 60px);
    }

    .umm-member-portal .umm-personal-notes-wrap #umm-toolbar-all > .umm-toolbar-right {
        order: 1;
    }

    .umm-member-portal .umm-personal-notes-wrap #umm-toolbar-all .umm-select-dropdown {
        order: 2;
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    /* Avantaje: edge to edge like every section (the toolbar and its row
       each added 20 + 12 px a side); the search a whole line (it had 58 px,
       room for its icon), the category, my location and reset under it. */
    .umm-member-portal .umm-mb-wrap--portal .umm-mb-toolbar {
        padding: 0;
    }

    .umm-member-portal .umm-mb-wrap--portal .umm-mb-toolbar > .umm-toolbar-inner {
        padding: 6px 12px 8px;
    }

    .umm-member-portal .umm-mb-wrap--portal #umm-toolbar-map > .umm-toolbar-right {
        flex-wrap: wrap;
    }

    .umm-member-portal .umm-mb-wrap--portal #umm-toolbar-map > .umm-toolbar-right > .umm-mb-search-wrap,
    .umm-member-portal .umm-mb-wrap--portal #umm-toolbar-list > .umm-toolbar-left > .umm-mb-search-wrap {
        order: -1;
        flex: 1 1 100%;
    }

    .umm-member-portal .umm-mb-wrap--portal #umm-toolbar-list > .umm-toolbar-left > .umm-mb-portal-tabs {
        order: -2;
        flex: 1 1 100%;
    }

    .umm-member-portal .umm-mb-wrap--portal .umm-toolbar-inner .umm-mb-dd {
        flex: 1 1 0;
        min-width: 0;
    }

    .umm-member-portal .umm-mb-wrap--portal .umm-toolbar-inner .umm-mb-dd-toggle {
        width: 100%;
        justify-content: space-between;
    }

    /* Portofel: the search takes the line beside its list (it stopped at
       237 px, the list fell to the next line); the row of its own title,
       hidden in the portal, takes no room when nothing else is shown on it
       (an empty count drew a faint pill). */
    .umm-member-portal .umm-wallet--portal .umm-wallet-count:empty {
        display: none;
    }

    .umm-member-portal .umm-wallet--portal .umm-wallet-toolbar__left:not(:has(> :not([hidden], .umm-wallet-title, .umm-has-fab, .umm-wallet-count:empty))) {
        display: none;
    }

    .umm-member-portal .umm-wallet--portal .umm-wallet-toolbar__right {
        flex-wrap: nowrap;
    }

    .umm-member-portal .umm-wallet--portal .umm-wallet-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .umm-member-portal .umm-wallet--portal .umm-wallet-search input {
        width: 100%;
        min-width: 0;
    }

    /* Meteo: the place search takes the line beside its two buttons (it
       stopped at 150 px). */
    .umm-member-portal .umm-wx-header .umm-wx-header-actions {
        flex: 1 1 100%;
        min-width: 0;
    }

    .umm-member-portal .umm-wx-header .umm-wx-geo-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .umm-member-portal .umm-wx-header .umm-wx-geo-search input {
        width: 100%;
        max-width: none;
    }

    .umm-member-portal .umm-wx-header .umm-wx-header-actions > .umm-wx-btn {
        flex: none;
    }

    /* Noutăți: its search as tall as the list and the gear beside it (the
       toolbar's own phone rule, later than the shared one, held it at 34). */
    .umm-member-portal .umm-news-toolbar .umm-pg-search-wrap {
        min-height: 44px;
    }

    /* TV & Radio: the channels line up with the tabs and the search above
       them (the list added 20 px a side to the page's margin). */
    .umm-member-portal .umm-tvr-shortcode-wrap .umm-view.umm-view-scroll {
        padding-left: 0;
        padding-right: 0;
    }

    /* Convertor: the number typed is as tall as a finger, like the lists
       beside it. */
    .umm-member-portal .umm-uc-value {
        min-height: 44px;
    }
}

/* Avantaje's three numbers say what they count, on every screen (their
   names were in a title, which a finger never shows). */
.umm-member-portal .umm-mb-wrap--portal .umm-toolbar-chip__label {
    font-weight: 500;
}

/* Profil → Editare: the member form's sections are groups under a heading
   inside the section's card, not a second card with the officers' dark
   outline and a pill on its edge (form-enhanced.css, member-form-universal
   .css: their look for the officers' member form). */
.umm-member-portal .umm-profile-form .umm-form-section {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    animation: none;
}

.umm-member-portal .umm-profile-form .umm-form-section:hover {
    box-shadow: none;
    transform: none;
}

.umm-member-portal .umm-profile-form .umm-form-section h4 {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--umm-border);
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    color: var(--umm-text-muted);
    font-size: calc(12.5px * var(--umm-scale));
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: normal;
}

.umm-member-portal .umm-profile-form .umm-form-section:first-child h4 {
    padding-top: 0;
    border-top: 0;
}

.umm-member-portal .umm-profile-form .umm-form-section h4::before {
    content: none;
}

.umm-member-portal .umm-profile-form .umm-form-section .umm-form-grid,
.umm-member-portal .umm-profile-form .umm-form-section h4 + .umm-form-grid,
.umm-member-portal .umm-profile-form .umm-form-section > .umm-form-grid:first-child {
    padding: 10px 0 8px;
}

/* A finger's 44 px on the inner tabs' controls (§20; spec 57 now opens
   every inner tab): Avantaje's "Detalii ofertă", the conferences' and the
   streams' buttons and filters (Mesaje), Table's dice, the radar's play. */
@media (pointer: coarse) {
    .umm-member-portal .umm-mb-card-link,
    .umm-member-portal :is(.umm-vc-btn-icon, .umm-ls-btn-icon, .umm-vc-sidebar-btn, .umm-ls-sidebar-btn, .umm-vc-filter-btn, .umm-ls-filter-btn),
    .umm-member-portal #btn-backgammon-roll,
    .umm-member-portal .umm-wx-radar-play {
        min-height: 44px;
    }

    .umm-member-portal :is(.umm-vc-btn-icon, .umm-ls-btn-icon, .umm-vc-sidebar-btn, .umm-ls-sidebar-btn),
    .umm-member-portal #btn-backgammon-roll,
    .umm-member-portal .umm-wx-radar-play {
        min-width: 44px;
        flex: none;
    }

    .umm-member-portal .umm-mb-card-link {
        display: inline-flex;
        align-items: center;
    }
}
