/* ══════════════════════════════════════════════════════════════════
   RadioOptionGroup (Components/RadioOptionGroup.razor) — GLOBAL STYLESHEET
   A "pick one of several" card: a bold title + radio rows
   (bold label + gray description, with optional badge / warning / link).
   Used by the Mobile App Settings page (/ta/tenant/mobile-settings).

   Note: a GLOBAL (non-scoped) file — avoids the CSS isolation issue where a new
   scoped file is not applied (encountered in TenantProfileEdit.razor.css).

   The actual MudRadio markup structure (MudBlazor 8):
   .mud-input-control.ro-group > .mud-input-control-input-container > .mud-radio-group
     > .ro-option > .mud-input-control.ro-radio > .mud-input-control-input-container
       > label.mud-radio > span.mud-icon-button (radio glyph) + p.mud-typography > .ro-body
   ══════════════════════════════════════════════════════════════════ */

/* ── Card ────────────────────────────────────────────────────────── */
.ro-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E4E7EB !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 20px;
    margin-bottom: 16px;
}

.ro-title {
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 24px;
    margin-bottom: 10px;
}

/* ── Radio group: remove MudInputControl's default margin ──────────── */
.ro-group.mud-input-control,
.ro-radio.mud-input-control {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.ro-group > .mud-input-control-input-container > .mud-radio-group {
    display: block;
}

/* ── Each option ─────────────────────────────────────────────────── */
.ro-option {
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding: 10px 12px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.ro-option:hover {
    background-color: #FAFBFC;
}

.ro-option--selected {
    border-left-color: #2486f7;
    background-color: #F5F9FF;
}

/* The MudRadio label: the radio on the left, the content on the right */
.ro-radio .mud-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

/* Shrink the radio circle for a compact look (it defaults to a 40px icon button) */
.ro-radio .mud-radio > .mud-icon-button {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    margin: 2px 0 0 0;
}

.ro-radio .mud-radio > .mud-icon-button .mud-svg-icon {
    width: 20px;
    height: 20px;
    font-size: 20px !important;
}

/* Content: remove the margin of the wrapping <p> */
.ro-radio .mud-radio > .mud-typography {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.ro-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ro-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ro-label {
    color: #212B36;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.ro-badge {
    background-color: #EAF3FF;
    color: #2486f7;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.ro-desc {
    display: block;
    color: #637381;
    font-size: 13px;
    line-height: 20px;
}

.ro-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #FFF7E6;
    color: #B76E00;
    font-size: 12.5px;
    line-height: 18px;
}

.ro-warning .mud-icon-root {
    flex: 0 0 auto;
    color: #F59E0B !important;
    font-size: 16px !important;
    margin-top: 1px;
}

.ro-link {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #2486f7 !important;
    text-decoration: none !important;
}

.ro-link:hover {
    text-decoration: underline !important;
}
