/* R21 guardian portal (/family) – SN. Every class of this file starts with "fam-". Owned by that slice only.
   Phone first (360 px), touch targets ≥ 44 px, logical properties for RTL, the app's colour tokens (dark mode follows the theme). */

/* ---------------------------------------------------------------- shell */
.fam-app { min-height: 100vh; min-height: 100dvh; background: var(--ground); color: var(--text); font-family: var(--font);
    padding-bottom: calc(72px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
.fam-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: env(safe-area-inset-top) 8px 0;
    background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.fam-top a, .fam-top button { color: #fff; }
.fam-brand { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); flex: none; margin-inline-start: 4px; }
.fam-top-title { flex: 1; min-width: 0; padding-inline: 6px; }
.fam-title { margin: 0; font-size: 1.08rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.fam-title small { display: block; font-size: .76rem; font-weight: 400; opacity: .8; }
.fam-top-btn, .fam-back { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    text-decoration: none; border: 0; background: transparent; cursor: pointer; flex: none; }
.fam-top-btn:hover, .fam-back:hover { background: rgba(255,255,255,.1); }
.fam-lang { font-weight: 700; font-size: .95rem; }
[dir="rtl"] .fam-back .icon { transform: scaleX(-1); }
.fam-badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
    color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.fam-badge.static { position: static; margin-inline-start: auto; }
.fam-main { max-width: 720px; margin: 0 auto; padding: 12px 16px 24px; box-sizing: border-box; }
.fam-main > * + * { margin-top: 12px; }

/* bottom tabs */
.fam-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: var(--surface);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.fam-tab { position: relative; flex: 1; max-width: 144px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-decoration: none; color: var(--muted); font-size: .72rem; border: 0; background: transparent; cursor: pointer; font-family: inherit; padding: 6px 2px; }
.fam-tab.active { color: var(--primary); font-weight: 600; }

/* "more" sheet */
.fam-sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.35); }
.fam-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 41; max-width: 720px; margin: 0 auto; max-height: 86vh; overflow-y: auto; background: var(--surface);
    border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: fam-up .18s ease-out; }
@keyframes fam-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.fam-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 4px auto 12px; }
.fam-sheet-who { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--row-line); }
.fam-sheet-who div { display: flex; flex-direction: column; min-width: 0; }
.fam-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent);
    color: var(--ink); font-weight: 700; }
.fam-menu { display: flex; flex-direction: column; padding: 6px 0; }
.fam-menu-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--row-line); }
.fam-menu-item .icon { color: var(--primary); }
.fam-signout { margin-top: 12px; }
.fam-signout .btn { width: 100%; justify-content: center; min-height: 48px; }

/* ---------------------------------------------------------------- building blocks */
.fam-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.fam-card.flush { padding: 0; overflow: hidden; }
.fam-card > h2, .fam-section-title { font-size: .95rem; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-more { margin-inline-start: auto; font-size: .82rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.fam-h3 { font-size: .85rem; font-weight: 600; margin: 12px 0 6px; color: var(--muted); }
.fam-empty { text-align: center; padding: 28px 16px; }
.fam-empty .icon { color: var(--muted); }
.fam-empty h2 { justify-content: center; font-size: 1.05rem; margin: 10px 0 6px; }
.fam-empty p { margin: 6px 0 12px; }
.fam-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.fam-actions.start { justify-content: flex-start; }
.fam-actions form { display: contents; }
.fam-btn-block { width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; margin-top: 10px; }
.fam-self-start { align-self: flex-start; margin-top: 6px; }
.fam-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%;
    background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.fam-icon-btn:disabled { opacity: .4; cursor: default; }
[dir="rtl"] .fam-icon-btn .icon, [dir="rtl"] .fam-week .icon { transform: scaleX(-1); }
.fam-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fam-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.fam-row-between { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.fam-toggle { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.fam-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; }
.fam-dl dt { color: var(--muted); font-size: .85rem; }
.fam-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* hero, figures, alerts */
.fam-hero { padding: 18px 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.fam-hero h2 { margin: 0 0 6px; font-size: 1.25rem; }
.fam-welcome { margin: 0; opacity: .92; font-size: .92rem; white-space: pre-wrap; }
.fam-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.fam-figures > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam-amount { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fam-amount.neg, .neg.fam-amount { color: var(--danger); }
.fam-amount.pos { color: var(--green-fg); }
.fam-ok { display: flex; align-items: center; gap: 6px; color: var(--green-fg); margin: 10px 0 0; }
.fam-alert { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-bg); color: var(--amber-fg); border-color: transparent; }
.fam-alert > .icon { flex: none; margin-top: 2px; }
.fam-alert p { margin: 4px 0; }
.fam-hold { display: flex; gap: 6px; align-items: center; color: var(--amber-fg); margin: 10px 0 0; }
.fam-result { display: flex; gap: 12px; align-items: flex-start; border-color: transparent; }
.fam-result > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fam-result.ok { background: var(--green-bg); color: var(--green-fg); }
.fam-result.wait { background: var(--blue-bg); color: var(--blue-fg); }
.fam-result.bad { background: var(--red-bg); color: var(--red-fg); }

/* children */
.fam-kids { display: flex; flex-direction: column; gap: 10px; }
.fam-kid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); }
.fam-kid.is-past { opacity: .7; }
.fam-kid-text { display: flex; flex-direction: column; min-width: 0; }
.fam-kid-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fam-chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--border);
    color: var(--primary); text-decoration: none; font-size: .85rem; }

/* lists */
.fam-list { list-style: none; margin: 0; padding: 0; }
.fam-list > li { padding: 10px 0; border-bottom: 1px solid var(--row-line); }
.fam-list > li:last-child { border-bottom: 0; }
.fam-appt { display: flex; gap: 12px; align-items: center; }
.fam-appt > div { display: flex; flex-direction: column; min-width: 0; }
.fam-date-badge { flex: none; width: 48px; height: 52px; border-radius: 10px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--blue-bg); color: var(--blue-fg); line-height: 1.1; }
.fam-date-badge strong { font-size: 1.15rem; }
.fam-date-badge small { font-size: .7rem; text-transform: uppercase; }
.fam-notice a { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.fam-notice.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-inline-end: 6px; vertical-align: middle; }
.fam-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fam-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px; text-align: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: .85rem; }
.fam-tile .icon { color: var(--primary); }

/* segmented control & chips */
.fam-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--gray-bg); overflow-x: auto; scrollbar-width: none; }
.fam-seg::-webkit-scrollbar { display: none; }
.fam-seg-btn { flex: 1 0 auto; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem;
    cursor: pointer; white-space: nowrap; }
.fam-seg-btn.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fam-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.fam-chips::-webkit-scrollbar { display: none; }
.fam-chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
    font-size: .85rem; cursor: pointer; }
.fam-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* invoices, receipts */
.fam-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fam-inv { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fam-inv.overdue { border-inline-start: 4px solid var(--danger); }
.fam-inv.picked { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.fam-pick { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px; flex: none; cursor: pointer; }
.fam-pick input { width: 20px; height: 20px; }
.fam-inv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fam-inv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-inv-head h2 { margin: 0; font-size: 1rem; }
.fam-inv-amt { display: flex; flex-direction: column; align-items: flex-end; text-align: end; font-variant-numeric: tabular-nums; }
.fam-paybar { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.fam-pay-total { font-size: 1.5rem; font-weight: 700; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.fam-radio { border: 0; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.fam-radio legend { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.fam-radio .check { min-height: 36px; display: flex; align-items: center; gap: 8px; }

/* plans & installments */
.fam-inst { list-style: none; margin: 8px 0 0; padding: 0; }
.fam-inst li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--row-line); font-size: .88rem; }
.fam-inst li:last-child { border-bottom: 0; }
.fam-inst li.done { color: var(--muted); }
.fam-inst li.late .fam-inst-date { color: var(--danger); font-weight: 600; }
.fam-inst-no { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-bg); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.fam-inst-amt { text-align: end; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.fam-option { border: 1px solid var(--border); border-radius: var(--radius); margin-top: 8px; padding: 0 12px 12px; }
.fam-option.on { border-color: var(--primary); }
.fam-option-head { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; padding: 10px 0; border: 0; background: transparent; color: var(--text);
    font: inherit; text-align: start; cursor: pointer; }
.fam-good { background: var(--green-bg); color: var(--green-fg); }

/* statement */
.fam-row-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fam-row-fields .field { flex: 1 1 140px; margin: 0; }
.fam-statement-head { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--gray-bg); font-size: .9rem; }
.fam-statement { list-style: none; margin: 0; padding: 0; }
.fam-statement li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--row-line); }
.fam-statement li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.fam-st-amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.fam-st-amt .neg { color: var(--danger); }
.fam-st-amt .pos { color: var(--green-fg); }

/* booking */
.fam-book { display: flex; flex-direction: column; gap: 10px; }
.fam-book-purpose { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; }
.fam-week { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.fam-day h3 { font-size: .85rem; margin: 6px 0; color: var(--muted); font-weight: 600; }
.fam-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.fam-slot { min-height: 48px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.fam-slot small { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fam-slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.fam-slot.on small { color: #fff; }
.fam-book-confirm { padding: 12px; border-radius: var(--radius); background: var(--blue-bg); }
.fam-book-confirm p { margin: 0 0 8px; }
.fam-appt-card { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fam-appt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fam-visit { display: flex; flex-direction: column; gap: 4px; }

/* admissions */
.fam-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.fam-wide { grid-column: 1 / -1; }
.fam-appl h2 { margin: 0; font-size: 1.05rem; }
.fam-steps { list-style: none; display: flex; margin: 12px 0; padding: 0; counter-reset: fam-step; }
.fam-steps li { flex: 1; position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 30px; counter-increment: fam-step; }
.fam-steps li::before { content: counter(fam-step); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%;
    background: var(--gray-bg); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
[dir="rtl"] .fam-steps li::before { transform: translateX(50%); }
.fam-steps li::after { content: ""; position: absolute; top: 11px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--gray-bg); }
.fam-steps li:last-child::after { display: none; }
.fam-steps li.done { color: var(--text); }
.fam-steps li.done::before { content: "✓"; background: var(--green-fg); color: #fff; }
.fam-steps li.done::after { background: var(--green-fg); }
.fam-steps li.now::before { background: var(--primary); color: #fff; }
.fam-steps li.now { color: var(--text); font-weight: 600; }
.fam-decision { padding: 10px 12px; border-radius: var(--radius-sm); margin: 8px 0; }
.fam-decision.ok { background: var(--green-bg); color: var(--green-fg); }
.fam-decision.bad { background: var(--red-bg); color: var(--red-fg); }
.fam-decision.wait { background: var(--amber-bg); color: var(--amber-fg); }
.fam-next { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.fam-docs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fam-docs li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.fam-docs li.done { color: var(--green-fg); }

/* results */
.fam-subject { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fam-subject.failed { border-inline-start: 4px solid var(--danger); }
.fam-subject-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 80px auto auto; gap: 10px; align-items: center; min-height: 52px; padding: 10px 14px;
    border: 0; background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.fam-subject-head:disabled { cursor: default; }
.fam-subject-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-bar { height: 6px; border-radius: 3px; background: var(--gray-bg); overflow: hidden; }
.fam-bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.fam-subject-more { padding: 0 14px 12px; border-top: 1px solid var(--row-line); }
.fam-comp { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .88rem; border-bottom: 1px dashed var(--row-line); }
.fam-skills { list-style: none; margin: 0 0 8px; padding: 0; }
.fam-skills li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--row-line); font-size: .88rem; }
.fam-level { padding: 2px 10px; border-radius: 12px; border: 1px solid var(--border); font-size: .78rem; white-space: nowrap; }
.fam-reportcard { overflow-x: auto; }

/* notifications */
.fam-notice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fam-notice-card.unread { border-inline-start: 4px solid var(--primary); }
.fam-notice-btn { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit;
    text-align: start; cursor: pointer; }
.fam-notice-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-bg); color: var(--blue-fg); display: inline-flex; align-items: center; justify-content: center; }
.fam-notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fam-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 6px; }

/* profile: opt-outs */
.fam-optgrid { display: flex; flex-direction: column; }
.fam-optrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 64px); align-items: center; gap: 4px; min-height: 48px; border-bottom: 1px solid var(--row-line); font-size: .88rem; }
.fam-optrow.head { min-height: 32px; font-size: .75rem; color: var(--muted); text-align: center; }
.fam-optrow.head span:first-child { text-align: start; }
.fam-optrow.all { font-weight: 600; }
.fam-switch { display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; }
.fam-switch input { width: 20px; height: 20px; }

/* invitation page (anonymous) */
.fam-invite { min-height: 100vh; min-height: 100dvh; background: var(--ground); color: var(--text); font-family: var(--font); }
.fam-invite-top { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; background: var(--ink); color: #fff; }
.fam-invite-top .spacer { flex: 1; }
.fam-lang-link { color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.fam-invite-card { max-width: 440px; margin: 20px auto; padding: 20px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-sizing: border-box; }
.fam-invite-card h1 { font-size: 1.3rem; margin: 0 0 8px; }
.fam-invite-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fam-invite-done .fam-dl { text-align: start; }
.fam-invite-icon { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.fam-invite-icon.ok { background: var(--green-bg); color: var(--green-fg); }
.fam-invite-icon.bad { background: var(--red-bg); color: var(--red-fg); }
.fam-big { min-height: 50px; font-size: 1rem; justify-content: center; }

@media (max-width: 480px) {
    .fam-form { grid-template-columns: 1fr; }
    .fam-subject-head { grid-template-columns: minmax(0, 1fr) 56px auto; }
    .fam-subject-head .chip { display: none; }
    .fam-optrow { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); }
    .fam-invite-card { margin: 0; border-radius: 0; border-inline: 0; min-height: calc(100dvh - 56px); }
}
@media (min-width: 760px) { .fam-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media print {
    .fam-top, .fam-tabs, .fam-sheet, .fam-sheet-backdrop, .fam-paybar, .fam-seg, .fam-chips { display: none !important; }
    .fam-app { padding: 0; background: #fff; }
    .fam-main { max-width: none; padding: 0; }
    .fam-card { border: 0; padding: 0; }
}
