/* 12.00.0 SUPPORT FOUNDATION — the life-buoy, the support sheet (back office), the Service Desk (console) and the Customer Hub.
   Spacing only through the --sp-* tokens; colours through the theme's tokens, so light, dark and Arabic (right to left) follow. */
.sup-lifebuoy { position: relative; display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; min-block-size: 44px; }
.sup-lifebuoy svg { display: block; }
.sup-dot { position: absolute; inset-block-start: var(--sp-1); inset-inline-end: var(--sp-1); inline-size: var(--sp-2); block-size: var(--sp-2); border-radius: var(--radius-pill); background: var(--danger); }
.sup-sheet .o-drawer__body { display: block; }
.sup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.sup-row { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-1); inline-size: 100%; text-align: start; padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface, transparent); color: inherit; font: inherit; cursor: pointer; }
.sup-row--static { cursor: default; }
.sup-row:hover:not(.sup-row--static) { border-color: var(--accent, var(--border)); }
.sup-row__t { font-weight: 600; }
.sup-row__m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sup-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.sup-msg { padding: var(--sp-3); border-radius: var(--radius-md); border: 1px solid var(--border); }
.sup-msg--internal { border-style: dashed; }
.sup-msg--system { border: 0; padding-block: var(--sp-1); padding-inline: 0; color: var(--text-muted, var(--muted)); }
.sup-msg__b { white-space: pre-wrap; overflow-wrap: anywhere; margin-block-start: var(--sp-1); }
.sup-ctx summary { cursor: pointer; }
.sup-rule { border: 0; border-block-start: 1px solid var(--border); margin-block: var(--sp-2); }
.sup-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.sup-tile { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--sp-1); }
.sup-tile b { font: var(--type-kpi); }
.sup-section { display: flex; flex-direction: column; gap: var(--sp-3); margin-block-start: var(--sp-6); }
.sup-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3); align-items: end; }
.sup-form label { display: flex; flex-direction: column; gap: var(--sp-1); }
.sup-checks { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sup-checks label { flex-direction: row; align-items: center; gap: var(--sp-1); }
.sup-health { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sup-dialog { max-inline-size: min(560px, 92vw); padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); }
.sup-dialog::backdrop { background: color-mix(in srgb, var(--text) 40%, transparent); }
/* the Customer Hub (support.html) */
.hub-main { max-inline-size: 960px; margin-inline: auto; padding: var(--sp-6) var(--sp-4) var(--sp-12); display: flex; flex-direction: column; gap: var(--sp-6); }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.hub-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); background: var(--surface); display: flex; flex-direction: column; gap: var(--sp-3); }
.hub-card h2 { margin: 0; }
.hub-signin { max-inline-size: 440px; margin-inline: auto; }
.hub-signin label { display: flex; flex-direction: column; gap: var(--sp-1); }
.hub-later { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hub-state-ok { color: var(--success-text); } .hub-state-degraded { color: var(--warning-text); } .hub-state-down { color: var(--danger-text); }
.sup-field { display: flex; flex-direction: column; gap: var(--sp-1); }
.sup-field textarea, .sup-field input, .sup-field select { inline-size: 100%; box-sizing: border-box; }
.hub-main [hidden], .sup-sheet [hidden] { display: none !important; }
.sup-row, .sup-tile, .hub-card { box-sizing: border-box; }
/* 12.01.0 REMOTE ASSIST — the identity of whoever is connected (its colour AND its words, never colour alone) and the POS
   simulator drawn from the till's sanitized stream. The two identity colours are Nabil's (17 Nov): the business's own support
   green, Orvia red — the same in every theme, as an identity, with white words on them. */
/* the identity colours are tokens (public/design/tokens.css: --ra-customer, --ra-orvia, --on-ra) */
.ra-id { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-inline-start-width: var(--sp-2); border-radius: var(--radius-md); }
.ra-id--customer { border-inline-start-color: var(--ra-customer); }
.ra-id--orvia { border-inline-start-color: var(--ra-orvia); }
.ra-id__label { font-weight: 700; padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); color: var(--on-ra); }
.ra-id--customer .ra-id__label { background: var(--ra-customer); }
.ra-id--orvia .ra-id__label { background: var(--ra-orvia); }
.ra-sim { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ra-sim h4 { margin: 0 0 var(--sp-2); }
.ra-sim__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); }
.ra-sim__note { margin: 0; }
.ra-sim__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); }
.ra-sim__till, .ra-sim__side { display: flex; flex-direction: column; gap: var(--sp-3); }
.ra-sim__screen { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-md); border: 1px dashed var(--border); }
.ra-sim__basket { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ra-lines { inline-size: 100%; border-collapse: collapse; }
.ra-lines td { padding-block: var(--sp-1); border-block-end: 1px solid var(--border); }
.ra-num { text-align: end; white-space: nowrap; }
.ra-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); margin: 0; }
.ra-dl dt { color: var(--text-muted, var(--muted)); }
.ra-dl dd { margin: 0; overflow-wrap: anywhere; }
.ra-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.ra-chip { display: inline-block; padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); border: 1px solid var(--border); }
.ra-chip--active { border-color: var(--success-text); color: var(--success-text); }
.ra-chip--requested { border-color: var(--warning-text); color: var(--warning-text); }
.ra-warn { color: var(--warning-text); }
.ra-errs { margin: 0; padding-inline-start: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); }
.ra-shot img { max-inline-size: 100%; block-size: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
/* the life-buoy outside the back office (the web till and the staff app): a dialog of its own, the same words */
.sup-lite-btn { position: relative; }
.sup-lite { max-inline-size: min(560px, 94vw); }
.sup-lite form { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; }
/* 12.02.0: support operations — the hub's search row, a differing row in a configuration compare, the chat's identity */
.hub-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.sup-diff { background: var(--warning-bg, var(--surface)); }
.sup-tiles .sup-tile .muted + .muted { font-size: var(--text-sm, inherit); }
