/* Restaurant Management App — Acnoo-style. Orange. Namespaced .ra */
* { box-sizing: border-box; }
.ra {
    --bg: #f4f5f8; --panel: #ffffff; --panel2: #f6f7fb; --line: #e7e9f1;
    --ink: #1b1f2a; --muted: #6b7280; --brand: #f97316; --brand-ink: #ea580c; --accent: #6366f1;
    --ok: #16a34a; --warn: #d97706; --danger: #ef4444; --side: #ffffff;
    --shadow: 0 14px 34px -22px rgba(30,40,80,.35);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--ink);
    min-height: calc(100vh - 44px); background: var(--bg);
    display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "side top" "side main";
}
:root[data-demo-theme="dark"] .ra {
    --bg: #0e111b; --panel: #161b28; --panel2: #1b2130; --line: #29303f; --ink: #e8ecf5; --muted: #97a1b5; --side: #141926;
}
.ra h1, .ra h2, .ra h3, .ra p { margin: 0; }

/* ── Sidebar ─────────────────────────────────────────────── */
.ra-side { grid-area: side; background: var(--side); border-right: 1px solid var(--line); padding: 1rem .8rem; overflow-y: auto; }
.ra-logo { display: flex; align-items: center; gap: .55rem; padding: .3rem .5rem 1rem; font-weight: 800; font-size: 1.15rem; }
.ra-logo .mk { width: 2rem; height: 2rem; border-radius: .5rem; background: linear-gradient(135deg, var(--brand), #fb923c); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.ra-menu { display: flex; flex-direction: column; gap: 2px; }
.ra-mi { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: .7rem; color: var(--muted); font-size: .9rem; font-weight: 600; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; }
.ra-mi .ic { width: 1.1rem; text-align: center; }
.ra-mi .ch { margin-left: auto; opacity: .5; font-size: .7rem; }
.ra-mi:hover { background: var(--panel2); color: var(--ink); }
.ra-mi.active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(249,115,22,.6); }
.ra-mi.active .ch { opacity: .9; }

/* ── Topbar ──────────────────────────────────────────────── */
.ra-top { grid-area: top; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.4rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.ra-burger { display: none; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.ra-pill { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .45rem .8rem; font: 700 .82rem inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.ra-pill.bill { background: #fff5eb; color: var(--brand-ink); border-color: #fed7aa; }
.ra-pill.table { background: #eef2ff; color: var(--accent); border-color: #c7d2fe; }
.ra-top .sp { flex: 1; }
.ra-top .bell { position: relative; font-size: 1.15rem; cursor: pointer; }
.ra-top .bell b { position: absolute; top: -.4rem; right: -.4rem; background: var(--danger); color: #fff; font-size: .6rem; border-radius: 999px; padding: 0 .3rem; }
.ra-user { display: flex; align-items: center; gap: .5rem; }
.ra-user .av { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: linear-gradient(135deg,#f97316,#6366f1); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ra-user b { display: block; font-size: .85rem; } .ra-user small { color: var(--muted); font-size: .72rem; }

/* ── Main ────────────────────────────────────────────────── */
.ra-main { grid-area: main; padding: 1.4rem; overflow-x: hidden; }
.ra-view[hidden] { display: none !important; }
.ra-crumb { color: var(--muted); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.ra-crumb b { color: var(--ink); }

.ra-btn { border: 0; cursor: pointer; border-radius: .6rem; padding: .55rem 1rem; font: 700 .84rem inherit; background: var(--brand); color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.ra-btn:hover { background: var(--brand-ink); }
.ra-btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.ra-btn.danger { background: var(--danger); }

/* KPIs */
.ra-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.3rem; }
.ra-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); display: flex; justify-content: space-between; gap: 1rem; }
.ra-kpi .lab { color: var(--muted); font-size: .84rem; }
.ra-kpi .val { font-size: 1.9rem; font-weight: 800; margin: .1rem 0 .5rem; letter-spacing: -.02em; }
.ra-kpi .dl { font-size: .78rem; font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; }
.ra-kpi .dl.up { color: var(--ok); } .ra-kpi .dl.down { color: var(--danger); }
.ra-kpi .dl small { color: var(--muted); font-weight: 500; }
.ra-kpi .ico { width: 2.7rem; height: 2.7rem; border-radius: .7rem; display: grid; place-items: center; font-size: 1.2rem; flex: none; }

/* Chart / donut row */
.ra-row2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.1rem; margin-bottom: 1.3rem; }
.ra-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); }
.ra-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.ra-card-hd h3 { font-size: 1.1rem; font-weight: 800; }
.ra-sel { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: .4rem .7rem; font: 600 .8rem inherit; color: var(--ink); }
.ra-legend { display: flex; gap: 1.2rem; justify-content: center; font-size: .82rem; font-weight: 700; margin: .3rem 0 .5rem; }
.ra-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ra-legend i { width: .7rem; height: .7rem; border-radius: 3px; }
.ra-chart-wrap { position: relative; }
#ra-money { width: 100%; height: 260px; display: block; }
.ra-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; padding: .5rem .7rem; font-size: .76rem; box-shadow: var(--shadow); display: none; z-index: 3; }
.ra-tip b { display: block; margin-bottom: .25rem; }
.ra-donut-wrap { display: flex; flex-direction: column; align-items: center; }
#ra-donut { width: 210px; height: 210px; }

/* Lists (top items / today orders) */
.ra-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ra-list-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.ra-list-hd h3 { font-size: 1.1rem; font-weight: 800; }
.ra-viewall { color: var(--brand); font-weight: 700; font-size: .84rem; cursor: pointer; }
.ra-ti { display: flex; align-items: center; gap: .8rem; padding: .6rem .5rem; border-radius: .7rem; }
.ra-ti:hover { background: var(--panel2); }
.ra-ti .th { width: 2.6rem; height: 2.6rem; border-radius: .6rem; background: var(--panel2); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.ra-ti .nm { flex: 1; min-width: 0; } .ra-ti .nm b { display: block; font-size: .9rem; } .ra-ti .nm small { color: var(--muted); font-size: .76rem; }
.ra-ti .pr { font-weight: 800; }
.ra-oh { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: .5rem .5rem; color: var(--muted); font-size: .76rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.ra-or { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.ra-or:last-child { border-bottom: 0; }
.ra-or .cu { display: flex; align-items: center; gap: .6rem; }
.ra-or .cu .bdg { width: 2.2rem; height: 2.2rem; border-radius: .5rem; background: #7c3aed; color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.ra-or .cu b { display: block; font-size: .85rem; } .ra-or .cu small { color: var(--muted); font-size: .74rem; }

/* ── POS ─────────────────────────────────────────────────── */
.ra-pos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.ra-pos-search { display: flex; gap: .6rem; margin-bottom: .9rem; }
.ra-pos-search input { flex: 1; border: 1px solid var(--line); border-radius: .7rem; padding: .6rem .9rem; font: inherit; font-size: .88rem; background: var(--panel); color: var(--ink); }
.ra-pos-search .add { width: 2.7rem; border: 1px solid var(--line); background: #fff5eb; color: var(--brand); border-radius: .7rem; font-size: 1.2rem; cursor: pointer; }
.ra-cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; margin-bottom: .9rem; }
.ra-cats::-webkit-scrollbar { display: none; }
.ra-cat { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: .6rem; padding: .55rem 1.1rem; font: 700 .84rem inherit; cursor: pointer; white-space: nowrap; }
.ra-cat.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; max-height: 66vh; overflow-y: auto; padding: 2px; }
.ra-item { border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); padding: .6rem; cursor: pointer; position: relative; transition: border-color .12s, box-shadow .12s; }
.ra-item:hover { border-color: var(--brand); box-shadow: 0 8px 20px -12px rgba(249,115,22,.5); }
.ra-item .th { width: 100%; aspect-ratio: 1; border-radius: .6rem; background: var(--panel2); display: grid; place-items: center; font-size: 2.4rem; margin-bottom: .5rem; }
.ra-item .nm { font-size: .84rem; font-weight: 600; min-height: 2.3em; }
.ra-item .pr { font-weight: 800; margin-top: .2rem; } .ra-item .pr s { color: var(--muted); font-weight: 500; font-size: .78rem; margin-left: .3rem; }
.ra-item .off { position: absolute; top: .4rem; right: .4rem; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; border-radius: .4rem; padding: .1rem .4rem; }

/* Cart / order side */
.ra-order { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; }
.ra-otabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .9rem; }
.ra-otabs::-webkit-scrollbar { display: none; }
.ra-otab { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); font: 700 .82rem inherit; padding: .45rem .7rem; border-radius: .5rem; cursor: pointer; white-space: nowrap; }
.ra-otab.active { color: var(--brand); border: 1px solid var(--brand); }
.ra-osel { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .9rem; }
.ra-osel select { border: 1px solid var(--line); border-radius: .6rem; padding: .5rem .6rem; font: inherit; font-size: .82rem; background: var(--panel2); color: var(--ink); }
.ra-osel .full { grid-column: 1 / -1; }
.ra-cart-hd, .ra-cart-row { display: grid; grid-template-columns: 1fr 84px 60px 60px 32px; gap: .5rem; align-items: center; }
.ra-cart-hd { color: var(--muted); font-size: .72rem; font-weight: 700; padding: .5rem .2rem; border-bottom: 1px solid var(--line); }
.ra-cart-body { overflow-y: auto; max-height: 40vh; }
.ra-cart-row { padding: .6rem .2rem; border-bottom: 1px solid var(--line); font-size: .82rem; }
.ra-cart-row .in b { display: block; } .ra-cart-row .in small { color: var(--muted); font-size: .72rem; }
.ra-qty { display: inline-flex; align-items: center; gap: .3rem; }
.ra-qty button { width: 1.5rem; height: 1.5rem; border: 1px solid var(--line); background: var(--panel); border-radius: .4rem; cursor: pointer; color: var(--ink); }
.ra-qty button.plus { color: var(--brand); border-color: #fed7aa; }
.ra-del { border: 0; background: transparent; color: var(--danger); cursor: pointer; }
.ra-pay { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; font-size: .82rem; }
.ra-pay .lab { color: var(--muted); align-self: center; }
.ra-pay input, .ra-pay select { border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .5rem; font: inherit; font-size: .8rem; background: var(--panel2); color: var(--ink); width: 100%; }
.ra-pay .amt { text-align: right; font-weight: 800; }
.ra-pay .grn { color: var(--ok); font-weight: 700; }
.ra-pay-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.ra-checkout { grid-column: 1 / -1; margin-top: .5rem; display: flex; align-items: center; justify-content: space-between; background: var(--brand); color: #fff; border: 0; border-radius: .6rem; padding: .7rem 1rem; font: 800 .9rem inherit; cursor: pointer; }
.ra-checkout .n { background: rgba(0,0,0,.15); border-radius: .4rem; padding: 0 .5rem; }

/* ── Item modal ──────────────────────────────────────────── */
.ra-modal-scrim { position: fixed; inset: 0; background: rgba(15,18,28,.5); z-index: 130; display: none; align-items: center; justify-content: center; padding: 1rem; }
.ra-modal-scrim.on { display: flex; }
.ra-modal { background: var(--panel); border-radius: 1rem; width: 460px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.ra-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.ra-modal-hd b { font-size: 1.05rem; }
.ra-modal-x { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.ra-modal-body { padding: 1.1rem 1.3rem; overflow-y: auto; }
.ra-mi-top { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.ra-mi-top .th { width: 3rem; height: 3rem; border-radius: .6rem; background: var(--panel2); display: grid; place-items: center; font-size: 1.6rem; }
.ra-mi-top b { font-size: 1.05rem; } .ra-mi-top small { color: var(--muted); }
.ra-modal p.prep { font-size: .84rem; margin-bottom: .3rem; } .ra-modal p.prep b { color: var(--ink); }
.ra-modal p.desc { color: var(--muted); font-size: .84rem; margin-bottom: 1rem; }
.ra-modal p.desc a { color: var(--brand); font-weight: 700; }
.ra-sec-t { font-weight: 800; font-size: .95rem; margin: 1rem 0 .6rem; display: flex; align-items: center; gap: .4rem; }
.ra-opt { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .8rem; margin-bottom: .5rem; cursor: pointer; }
.ra-opt input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; }
.ra-opt .nm { flex: 1; } .ra-opt .pr { font-weight: 700; color: var(--muted); }
.ra-modal-foot { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.ra-mqty { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: .6rem; padding: .35rem .5rem; }
.ra-mqty button { width: 1.6rem; height: 1.6rem; border: 0; background: var(--panel2); border-radius: .4rem; cursor: pointer; font-size: 1rem; color: var(--ink); }
.ra-modal-foot .ra-btn { flex: 1; justify-content: center; padding: .7rem; }

/* ── Data tables (Orders / Table) ────────────────────────── */
.ra-toolbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ra-toolbar .sp { flex: 1; }
.ra-toolbar input { border: 1px solid var(--line); border-radius: .6rem; padding: .5rem .8rem; font: inherit; font-size: .84rem; background: var(--panel); color: var(--ink); }
.ra-twrap { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; }
.ra-tscroll { overflow-x: auto; }
.ra-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ra-table th { text-align: left; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .9rem 1rem; background: var(--panel2); }
.ra-table td { padding: .85rem 1rem; border-top: 1px solid var(--line); font-size: .86rem; }
.ra-badge { border-radius: 999px; padding: .2rem .7rem; font-size: .74rem; font-weight: 700; }
.ra-badge.pending { background: #fff2e0; color: #b45309; }
.ra-badge.active { background: #e7f8ef; color: #16a34a; }
.ra-badge.inactive { background: #fde8e8; color: #dc2626; }
.ra-actions { display: inline-flex; gap: .35rem; }
.ra-actions button { width: 1.9rem; height: 1.9rem; border: 0; border-radius: .45rem; background: var(--panel2); color: var(--muted); cursor: pointer; }
.ra-tfoot { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; flex-wrap: wrap; gap: .7rem; }
.ra-pages { display: inline-flex; gap: .3rem; }
.ra-pages button { min-width: 2rem; height: 2rem; border: 1px solid var(--line); background: var(--panel); border-radius: .45rem; cursor: pointer; color: var(--ink); font-weight: 600; }
.ra-pages button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Add Purchase ────────────────────────────────────────── */
.ra-purchase-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.ra-fld label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.ra-fld .row { display: flex; gap: .5rem; }
.ra-fld select, .ra-fld input { flex: 1; border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .8rem; font: inherit; font-size: .86rem; background: var(--panel); color: var(--ink); }
.ra-fld .plus { width: 2.7rem; border: 0; background: var(--brand); color: #fff; border-radius: .6rem; font-size: 1.2rem; cursor: pointer; }
.ra-sum { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; max-width: 380px; margin-left: auto; }
.ra-sum .k { color: var(--muted); } .ra-sum .v { text-align: right; font-weight: 700; }
.ra-sum .tot { font-weight: 800; } .ra-sum input { width: 90px; border: 1px solid var(--line); border-radius: .4rem; padding: .3rem .5rem; font: inherit; font-size: .8rem; }
.ra-purchase-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.ra-purchase-actions .ra-btn { min-width: 150px; justify-content: center; }

.ra-footer { grid-area: main; }
.ra-copy { color: var(--muted); font-size: .8rem; padding: 1.5rem .3rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ── Generic data-driven views ─────────────────────────── */
.ra-gen-h { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
#ra-view-generic .ra-kpis { margin-top: 1.1rem; }
.ra-table th.ta-r, .ra-table td.ta-r { text-align: right; }
.ra-tbl-empty { padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .86rem; }

.ra-badge.b-active, .ra-badge.b-current, .ra-badge.b-paid, .ra-badge.b-success, .ra-badge.b-ready { background: #e7f8ef; color: #16a34a; }
.ra-badge.b-pending, .ra-badge.b-partial, .ra-badge.b-scheduled, .ra-badge.b-on-hold, .ra-badge.b-out-of-stock { background: #fff2e0; color: #b45309; }
.ra-badge.b-overdue, .ra-badge.b-expired, .ra-badge.b-failed, .ra-badge.b-inactive { background: #fde8e8; color: #dc2626; }
.ra-badge.b-draft, .ra-badge.b-on-leave { background: var(--panel2); color: var(--muted); }

.ra-barlist { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.1rem; }
.ra-bar { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: .8rem; font-size: .82rem; }
.ra-bar .track { height: .7rem; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.ra-bar .fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.ra-bar b { text-align: right; }

.ra-setgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ra-setcard { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); cursor: pointer; }
.ra-setcard:hover { border-color: var(--brand); }
.ra-setcard.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--panel)); }
.ra-setcard .ic { width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--panel2); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .7rem; }
.ra-setcard b { display: flex; justify-content: space-between; font-size: .95rem; }
.ra-setcard b span { color: var(--muted); }
.ra-setcard p { color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: .3rem; }

/* ── Responsive ─────────────────────────────────────────── */
.ra-scrim { position: fixed; inset: 0; background: rgba(15,18,28,.4); z-index: 25; display: none; }
@media (max-width: 1080px) {
    .ra-row2 { grid-template-columns: 1fr; }
    .ra-row3 { grid-template-columns: 1fr; }
    .ra-pos { grid-template-columns: 1fr; }
    .ra-purchase-top { grid-template-columns: 1fr; }
    .ra-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ra { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
    .ra-side { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
    .ra.side-open .ra-side { transform: none; }
    .ra.side-open .ra-scrim { display: block; }
    .ra-burger { display: inline-block; }
    .ra-main { padding: 1rem; }
}
@media (max-width: 1080px) {
    .ra-setgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ra-kpis { grid-template-columns: 1fr; }
    .ra-user b, .ra-user small { display: none; }
    .ra-pill span { display: none; }
    .ra-setgrid { grid-template-columns: 1fr; }
}
