/* Club Fitness Barbastro: black, white and the club yellow; Poppins for text and Antonio for titles, as on
   clubfitnessbarbastro.com. Fonts are served from this app (OFL), so no page load calls a third party. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Antonio"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("fonts/antonio.woff2") format("woff2"); }

:root {
    --brand: #ffd200;
    --brand-ink: #0b0b0b;
    --side: #121212;
    --side-ink: #d0d0d0;
    --side-active: #2a2a2a;
    --bg: #f4f4f2;
    --card: #ffffff;
    --ink: #1a1a1a;
    --muted: #69727d;
    --line: #e2e2e2;
    --title-font: "Antonio", "Arial Narrow", Impact, sans-serif;
    --text-font: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;

    /* Radzen components in the club colours: yellow actions with black text, black secondary. */
    --rz-text-font-family: var(--text-font);
    --rz-primary: #ffd200;
    --rz-primary-light: #ffdd33;
    --rz-primary-lighter: rgba(255, 210, 0, .2);
    --rz-primary-dark: #e6bd00;
    --rz-primary-darker: #cca800;
    --rz-on-primary: #0b0b0b;
    --rz-on-primary-light: #0b0b0b;
    --rz-on-primary-lighter: #0b0b0b;
    --rz-on-primary-dark: #0b0b0b;
    --rz-on-primary-darker: #0b0b0b;
    --rz-secondary: #1a1a1a;
    --rz-on-secondary: #ffffff;
    --rz-outline-color: #b38f00;
    --ok: #2e7d32;
    --warn: #b26a00;
    --danger: #c62828;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text-font); font-size: 15px; }
h1 { font-family: var(--title-font); font-weight: 700; font-size: 2rem; letter-spacing: .3px; text-transform: uppercase; margin: 0 0 1rem; }
h2 { font-family: var(--title-font); font-weight: 600; font-size: 1.35rem; letter-spacing: .3px; margin: 1.5rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
a { color: var(--brand-ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.loading { display: grid; place-items: center; min-height: 60vh; gap: 1rem; }

/* Shell */
.shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: 56px 1fr; min-height: 100vh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; padding: 0 1rem; background: var(--brand-ink); color: #fff; border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-family: var(--title-font); font-weight: 700; font-size: 1.15rem; line-height: 1; background: var(--brand); color: var(--brand-ink); border-radius: 3px; padding: .15rem .35rem; }
.brand-account { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.brand-account img { width: 72px; height: auto; }
.brand-account strong { font-family: var(--title-font); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; display: block; }
.brand-account small { color: var(--muted); }
.club-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-flag { background: var(--brand); color: var(--brand-ink); font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 3px; letter-spacing: .5px; white-space: nowrap; }
.user { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.user-name { font-weight: 600; }
.user-role { font-size: .8rem; opacity: .8; }
.user form, .loading form { margin: 0; }
.logout, .menu-toggle, .link-button { background: none; border: 0; cursor: pointer; color: inherit; padding: .3rem; display: flex; }
.link-button { color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.menu-toggle { display: none; }
.sidebar { background: var(--side); color: var(--side-ink); padding: .8rem 0; display: flex; flex-direction: column; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .62rem 1.2rem; color: var(--side-ink); text-decoration: none; }
.nav-item:hover { background: var(--side-active); }
.nav-item.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 var(--brand); }
.nav-item.active .rzi { color: var(--brand); }
.nav-item.disabled { opacity: .45; cursor: not-allowed; }
.nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: #7a7a7a; padding: 1rem 1.2rem .3rem; }
.content { padding: 1.4rem 1.6rem 3rem; min-width: 0; }

/* Common */
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head .spacer { flex: 1; }
.count { color: var(--muted); font-weight: 400; }
.filters, .inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.hint { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.hint .rzi, .notice .rzi { vertical-align: middle; font-size: 1.1rem; }
.empty, .muted { color: var(--muted); font-size: .88rem; }
.error { color: var(--danger); }
.notice { display: flex; gap: .7rem; background: #fff8e1; border: 1px solid #ffe08a; padding: .9rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--activity); margin-right: .3rem; vertical-align: middle; }
.negative { color: var(--danger); font-weight: 600; }
.positive { color: var(--ok); font-weight: 600; }
.plain { padding-left: 1.2rem; }
.sub-filter { margin-bottom: .6rem; }
.clickable-rows tr { cursor: pointer; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; }
.stat-value { font-family: var(--title-font); font-size: 2.1rem; font-weight: 700; }
.stat-label { color: var(--muted); }
.session-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.session-list li { display: grid; grid-template-columns: 11rem 1fr auto auto; gap: .8rem; padding: .55rem .9rem; border-left: 4px solid var(--activity); border-bottom: 1px solid var(--line); align-items: center; }
.session-list li:last-child { border-bottom: 0; }
.session-list .what { font-weight: 600; }
.session-list .where { color: var(--muted); }

/* Credits */
.balances { display: flex; flex-wrap: wrap; gap: .6rem; }
.balance { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; display: flex; flex-direction: column; min-width: 8.5rem; }
.balance-units { font-size: 1.4rem; font-weight: 700; }
.balance-type { font-weight: 600; }
.balance-expiry { color: var(--muted); font-size: .78rem; }
.member-balance { display: flex; gap: .6rem; align-items: baseline; margin-bottom: 1rem; }
.member-balance > span { font-weight: 600; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; font-size: .82rem; }

/* Week schedule */
.week-nav { display: flex; align-items: center; gap: .4rem; }
.week-label { font-weight: 600; margin-left: .4rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: .6rem; overflow-x: auto; }
.day { background: #eceff2; border-radius: 8px; padding: .5rem; min-height: 8rem; }
.day.today { background: #fff6cc; }
.day h3 { margin: .1rem 0 .5rem; font-size: .86rem; text-transform: capitalize; }
.session-card { background: var(--card); border-left: 5px solid var(--activity); border-radius: 6px; padding: .45rem .55rem; margin-bottom: .45rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: .84rem; }
.session-card.clickable { cursor: pointer; }
.session-card.clickable:hover { box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.session-card .time { color: var(--muted); font-size: .78rem; }
.session-card .title { font-weight: 700; }
.session-card .meta { color: var(--muted); font-size: .78rem; }
.session-card .occupancy { font-weight: 600; margin-top: .15rem; }
.session-card.full .occupancy { color: var(--danger); }
.session-card.booked { outline: 2px solid var(--ok); }
.member-action { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.badge-booked { color: var(--ok); font-weight: 700; font-size: .78rem; }
.badge-waiting { color: var(--warn); font-weight: 700; font-size: .78rem; }
.attendance { display: inline-flex; gap: .25rem; margin-left: auto; }
.attendance .rz-button.selected-attended { background: var(--ok); color: #fff; }
.attendance .rz-button.selected-noshow { background: var(--danger); color: #fff; }

/* Dialogs */
.dialog-body { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 14rem 1fr; gap: .55rem .9rem; align-items: center; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.roster { list-style: none; padding: 0; margin: .4rem 0; }
.roster li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Account */
.account-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at 80% 0%, #2a2a2a 0%, #0b0b0b 55%); }
.account-card { background: #fff; border-radius: 12px; padding: 2rem; width: min(560px, 100%); box-shadow: 0 10px 30px rgba(0,0,0,.45); border-top: 5px solid var(--brand); }
.account-list { display: grid; gap: .5rem; }
.account-list form { margin: 0; }
.account-button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fafbfc; border-radius: 8px; padding: .7rem .9rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font: inherit; }
.account-button:hover { border-color: var(--brand); background: #fffbea; }
.account-name { font-weight: 600; }
.account-roles { color: var(--muted); font-size: .85rem; }

/* Phone */
@media (max-width: 800px) {
    .shell { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; }
    .club-name, .user-role { display: none; }
    .sidebar { display: none; position: fixed; top: 56px; bottom: 0; left: 0; width: 240px; z-index: 20; }
    .shell.menu-open .sidebar { display: flex; }
    .content { padding: 1rem; }
    .week { grid-template-columns: 1fr; }
    .day.past { display: none; }
    .session-list li { grid-template-columns: 7.5rem 1fr auto; gap: .5rem; }
    .session-list .where { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar { gap: .5rem; padding: 0 .6rem; }
    .brand img { height: 20px; }
    .user { min-width: 0; gap: .3rem; }
    .user-name { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.demo-flag .short { display: none; }
@media (max-width: 480px) {
    .demo-flag .long { display: none; }
    .demo-flag .short { display: inline; }
}

/* Flexible schedule */
.availability { background: #e8f5e9; border: 1px dashed #81c784; border-radius: 6px; padding: .3rem .5rem; margin-bottom: .45rem; font-size: .8rem; display: flex; flex-direction: column; }
.step { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 .6rem; }
.step-number { background: var(--brand); color: var(--brand-ink); border-radius: 50%; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; font-weight: 700; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.activity-option { text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--activity); border-radius: 8px; padding: .6rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; font: inherit; }
.activity-option.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.activity-option .title { font-weight: 700; }
.day-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.day-chips .chip { cursor: pointer; text-transform: capitalize; font: inherit; font-size: .82rem; }
.day-chips .chip.selected { background: var(--brand); border-color: var(--brand); font-weight: 700; }
.slots { display: grid; gap: .8rem; }
.slot-group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.slot-group h4 { width: 100%; margin: .2rem 0; }

/* Access control */
.desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.desk-input { display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .9rem; }
.decision { border-radius: 10px; padding: 1.2rem 1.4rem; color: #fff; display: flex; flex-direction: column; gap: .3rem; }
.decision.granted { background: var(--ok); }
.decision.warned { background: var(--warn); }
.decision.rejected { background: var(--danger); }
.decision-title { font-weight: 800; letter-spacing: 1px; font-size: 1.1rem; }
.decision-name { font-size: 1.5rem; font-weight: 700; }
.decision .avatar { border: 3px solid rgba(255,255,255,.85); }

/* Profile photos and the door entry pop-up */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e2e2e2; display: inline-block; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--brand-ink); color: var(--brand); font-family: var(--title-font); font-weight: 700; }
.photo-panel { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.photo-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; max-width: 32rem; }
.photo-actions .hint { margin: 0; }
.photo-pick { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.entry-popups { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: .5rem;
  width: min(560px, calc(100vw - 2rem)); }
.entry-popup { display: flex; gap: .9rem; align-items: center; background: #fff; border-radius: 12px; padding: .7rem .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  border-left: 8px solid var(--ok); animation: entry-in .25s ease-out; }
.entry-popup.warned { border-left-color: var(--warn); }
.entry-popup.rejected { border-left-color: var(--danger); }
.entry-text { flex: 1; min-width: 0; }
.entry-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.entry-head strong { font-size: 1.1rem; }
.entry-decision { font-weight: 700; font-size: .8rem; text-transform: uppercase; color: var(--ok); }
.entry-popup.warned .entry-decision { color: var(--warn); }
.entry-popup.rejected .entry-decision { color: var(--danger); }
.entry-message { font-size: .9rem; overflow-wrap: anywhere; }
.entry-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .8rem; }
.entry-close { background: none; border: 0; cursor: pointer; color: var(--muted); align-self: flex-start; padding: .2rem; }
.entry-mute { align-self: center; background: rgba(11,11,11,.8); color: #fff; border: 0; border-radius: 999px; padding: .25rem .8rem; font: inherit; font-size: .78rem; cursor: pointer; }
.entry-unmute { position: fixed; right: 1rem; bottom: 1rem; z-index: 1000; background: var(--brand-ink); color: var(--brand); border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; cursor: pointer; display: grid; place-items: center; }
@keyframes entry-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.secret { background: #fff; padding: .1rem .4rem; border-radius: 4px; word-break: break-all; }
.pass { background: var(--side); color: #fff; border-radius: 14px; padding: 1.4rem; max-width: 420px; display: flex; flex-direction: column; gap: .4rem; border-top: 6px solid var(--brand); }
.pass-club { color: var(--brand); font-weight: 700; }
.pass-qr { background: #fff; padding: 12px; border-radius: 10px; align-self: center; margin: .6rem 0 .2rem; line-height: 0; }
.pass-qr img { width: min(240px, 62vw); height: auto; image-rendering: pixelated; }
.pass-refresh { height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.pass-bar { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.pass-fixed { margin-top: .4rem; font-size: .9rem; color: #d0d0d0; }
.pass-fixed strong { font-family: Consolas, monospace; letter-spacing: .15rem; color: #fff; }
.pass-name { font-size: 1.3rem; font-weight: 700; }
.pass-code { font-family: Consolas, monospace; font-size: 2.2rem; letter-spacing: .25rem; background: #fff; color: var(--ink); border-radius: 8px; padding: .4rem .8rem; text-align: center; }
.pass-inline { font-size: 1.05rem; letter-spacing: .1rem; }

/* Finance */
.invoice-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.invoice-lines { width: 100%; border-collapse: collapse; background: var(--card); font-size: .88rem; margin-bottom: .8rem; }
.invoice-lines th, .invoice-lines td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: middle; }
.invoice-lines th { color: var(--muted); font-weight: 600; }
.invoice-lines .num { text-align: right; white-space: nowrap; }
.invoice-lines tfoot td { border-bottom: 0; }
.invoice-lines tr.grand td { font-weight: 700; border-top: 2px solid var(--ink); }
.funnel { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.funnel button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font: inherit; font-size: .88rem; }
.funnel button.active { border-color: var(--accent, #1565c0); background: #e3f2fd; }
.funnel b { margin-left: .35rem; }
.done { text-decoration: line-through; color: var(--muted); }
.overdue { color: #c62828; font-weight: 600; }
.pos { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 1rem; align-items: start; }
.pos-cart { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; position: sticky; top: 1rem; }
.pos-customer { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.pos-sums { margin-top: .8rem; }
.pos-total, .pay-total strong { font-size: 1.4rem; font-weight: 700; }
.pos-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.pos-tile { display: flex; flex-direction: column; gap: .25rem; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: .7rem; cursor: pointer; font: inherit; min-height: 5.5rem; }
.pos-tile:hover { border-color: var(--accent, #1565c0); }
.pos-tile-name { font-weight: 600; font-size: .9rem; }
.pos-tile-price { margin-top: auto; }
.grow { flex: 1; }
.notice.ok { background: #e8f5e9; border-color: #a5d6a7; }
@media (max-width: 900px) { .pos { grid-template-columns: 1fr; } .pos-cart { position: static; } }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.shop-card h3 { margin: 0; font-size: 1.02rem; }
.shop-card p { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; }
.pre-line { white-space: pre-line; }
.question-edit { border: 1px solid var(--line); border-radius: 6px; padding: .6rem; margin-bottom: .5rem; background: var(--card); }
.question-edit .inline-form { margin-bottom: .4rem; }
.answers { padding-left: 1.4rem; }
.answers li { margin-bottom: .9rem; }
.answers li > * { display: block; margin-top: .35rem; }
.answers li > span:first-child { margin-top: 0; }
.composer, .post { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; max-width: 46rem; }
.composer .inline-form { margin: .6rem 0 0; }
.post.pinned { border-color: #ffb300; }
.post-head { display: flex; gap: .6rem; align-items: flex-start; }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e3f2fd; color: #1565c0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.post > p { margin: .7rem 0; }
.post-foot { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
.post-foot .rzi, .post .muted .rzi { font-size: 1rem; vertical-align: middle; }
.like { border: none; background: none; cursor: pointer; font: inherit; color: var(--muted); padding: 0; }
.like.liked { color: #d81b60; }
.comments { list-style: none; padding: 0; margin: .6rem 0; }
.comments li { padding: .4rem .6rem; background: #f6f7f9; border-radius: 6px; margin-bottom: .4rem; font-size: .92rem; }
.poll { list-style: none; padding: 0; margin: .4rem 0; }
.poll li { position: relative; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .7rem; margin-bottom: .35rem; cursor: pointer; overflow: hidden; }
.poll li.voted { border-color: #1565c0; font-weight: 600; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: #e3f2fd; z-index: 0; }
.poll-label, .poll li .muted { position: relative; z-index: 1; }

/* Accounts: sign-in, own password and the admin access list. */
.account-card h1 { margin-top: .4rem; }
.sign-in-block { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.sign-in-block h2, .dev-accounts summary { font-size: 1.02rem; margin: 0 0 .6rem; font-weight: 600; cursor: default; }
.dev-accounts summary { cursor: pointer; }
.dev-accounts h3 { font-size: .95rem; margin: .8rem 0 .4rem; }
.sign-in-form { display: grid; gap: .6rem; margin-bottom: .6rem; }
.sign-in-form label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.sign-in-form input { font: inherit; font-weight: 400; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 6px; }
.sign-in-form input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.primary-button, .secondary-button { font: inherit; font-weight: 600; padding: .6rem 1rem; border-radius: 6px; cursor: pointer; border: 1px solid var(--brand); }
.primary-button { background: var(--brand); color: var(--brand-ink); }
.secondary-button { background: #fff; color: var(--brand-ink); }
.primary-button:hover, .secondary-button:hover { filter: brightness(.96); }
.success { color: var(--ok); }
.account-facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .8rem 0 1rem; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.account-events { list-style: none; padding: 0; margin: 0; font-size: .88rem; display: grid; gap: .3rem; }
.account-events span { color: var(--muted); margin-right: .4rem; }
.dialog-actions.left { justify-content: flex-start; }
.user-name-link { color: inherit; text-decoration: none; }
.user-name-link:hover { text-decoration: underline; }

/* Virtuagym link import (Accesos) */
.text-link { display: inline-flex; align-items: center; gap: .25rem; color: inherit; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.import-file { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
.import-file input[type=file] { max-width: 100%; }
.import-summary { margin: .6rem 0; }
.import-filter { margin: .6rem 0; }
.checkbox { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; }
.import-grid td, .import-grid .rz-cell-data.rz-text-truncate { white-space: normal; overflow-wrap: anywhere; }
.training-facts { margin-top: 1rem; }

/* Long tab rows (client file) scroll inside themselves on narrow screens instead of widening the page. */
.rz-tabview-nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; max-width: 100%; }
.rz-tabview-nav li { flex-shrink: 0; }

/* Virtuagym member import */
.import-summary { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.import-count { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; font-weight: 600; background: #eee; }
.import-count.create { background: #e3f2e5; color: #1b5e20; }
.import-count.update, .import-count.link { background: #fff4c2; color: #6b5300; }
.import-count.review { background: #fde4e1; color: #8e1c12; }
.import-count.invalid { background: #ececec; color: #555; }

/* Read-only trial alongside Virtuagym */
.shell.trial { grid-template-rows: 56px auto 1fr; }
.trial-banner { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: center; background: #fff4c2; color: #4d3b00; border-bottom: 1px solid #f0d36b;
  padding: .45rem 1rem; font-size: .9rem; position: sticky; top: 59px; z-index: 9; }
.trial-note { background: #fff4c2; color: #4d3b00; border-radius: 6px; padding: .5rem .8rem; font-size: .88rem; }

/* Shown by Blazor when the live connection of a screen fails: without it, the page just stops answering. */
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; padding: 12px 16px; background: #b00020; color: #fff; text-align: center; }
#blazor-error-ui .reload { color: #fff; font-weight: 600; text-decoration: underline; margin-left: 8px; }
