/* Settings > Roles & Permissions — Sahara red/blue on white */
.srp { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .srp { grid-template-columns: 1fr; } }

/* role list */
.srp-side { position: sticky; top: 8px; border: 1px solid #e3e8f0; border-radius: 12px; padding: 12px; background: #fff; }
.srp-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.srp-side-head h3 { margin: 0; font-size: 14px; color: #0f172a; }
.btn.srp-new { padding: 6px 10px; font-size: 12.5px; background: var(--sahara-red, #c6283d); }
.btn.srp-new:hover:not(:disabled) { background: #a81f33; }
.srp-list { display: flex; flex-direction: column; gap: 6px; }
.srp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; background: #fff; border: 1px solid #e3e8f0; border-left: 4px solid var(--sahara-blue-line, #c8daf8); border-radius: 8px; padding: 9px 10px; cursor: pointer; font: inherit; }
.srp-card:hover { border-color: var(--sahara-blue-line, #c8daf8); background: #fafcff; }
.srp-card.admin { border-left-color: var(--sahara-red, #c6283d); }
.srp-card.driver { border-left-color: #94a3b8; }
.srp-card.on { background: var(--sahara-blue-soft, #eef5ff); border-color: var(--sahara-blue, #1d4ed8); border-left-color: var(--sahara-blue, #1d4ed8); }
.srp-card.admin.on { border-left-color: var(--sahara-red, #c6283d); }
.srp-card-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.srp-card b { font-size: 13.5px; color: #0f172a; }
.srp-card.on b { color: #174ea6; }
.srp-card small { font-size: 11.5px; color: #64748b; }
.srp-tag { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--sahara-red, #c6283d); background: var(--sahara-red-soft, #fff0f2); border-radius: 999px; padding: 2px 7px; }
.srp-side-label { margin: 14px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.srp-empty { margin: 0; font-size: 12px; color: #94a3b8; }

/* role detail */
.srp-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.srp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--sahara-blue-soft, #eef5ff); }
.srp-title { margin: 0; color: #174ea6; font-size: 19px; }
.srp-desc { margin: 4px 0 0; color: #334155; font-size: 13px; max-width: 720px; }
.srp-meta { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.srp-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.srp-badge { font-size: 12px; font-weight: 600; color: var(--sahara-red, #c6283d); background: var(--sahara-red-soft, #fff0f2); border: 1px solid #f3c2ca; border-radius: 999px; padding: 5px 11px; }
.btn.srp-danger { color: var(--sahara-red, #c6283d); border-color: #f3c2ca; background: var(--sahara-red-soft, #fff0f2); }
.srp-msg { min-height: 1em; margin: 0; font-size: 13px; color: #475569; }
.srp-msg.ok { color: #16804a; }
.srp-msg.err { color: var(--sahara-red, #c6283d); }

/* access summary */
.srp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3e8f0; background: #fff; border-radius: 999px; padding: 5px 11px; font: 600 12px/1.2 inherit; color: #334155; cursor: pointer; }
.srp-chip:hover { border-color: var(--sahara-blue-line, #c8daf8); }
.srp-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.srp-chip.full .srp-dot { background: var(--sahara-blue, #1d4ed8); }
.srp-chip.some .srp-dot { background: linear-gradient(90deg, var(--sahara-blue, #1d4ed8) 50%, #cbd5e1 50%); }
.srp-chip.none { color: #94a3b8; }

/* matrix */
.srp-scroll { overflow: auto; max-height: calc(100vh - 300px); border: 1px solid #e3e8f0; border-radius: 12px; }
.srp-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.srp-matrix thead th { position: sticky; top: 0; z-index: 1; background: #fff; padding: 11px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; text-align: center; border-bottom: 2px solid var(--sahara-blue, #1d4ed8); width: 12%; }
.srp-matrix thead th.srp-feature { text-align: left; width: auto; padding-left: 16px; }
.srp-section th { background: var(--sahara-blue-soft, #eef5ff); text-align: left; padding: 9px 16px; font-weight: 700; color: #174ea6; scroll-margin-top: 44px; }
.srp-quick { float: right; display: inline-flex; gap: 6px; align-items: center; color: #94a3b8; font-weight: 400; }
.srp-link { background: none; border: 0; padding: 0; color: #174ea6; font: 600 12px/1 inherit; cursor: pointer; text-decoration: underline; }
.srp-matrix td { padding: 9px 8px; text-align: center; border-top: 1px solid #eef1f6; }
.srp-matrix td.srp-feature { text-align: left; padding-left: 16px; color: #1e293b; }
.srp-feature small { display: block; color: #64748b; font-size: 11.5px; margin-top: 2px; }
.srp-yes, .srp-no { display: inline-block; min-width: 34px; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; }
.srp-yes { color: #fff; background: var(--sahara-blue, #1d4ed8); }
.srp-no { color: #94a3b8; background: #f1f5f9; }
.srp-na { display: inline-block; width: 14px; height: 2px; background: #e2e8f0; vertical-align: middle; }
.srp-matrix tbody tr:not(.srp-section):hover td { background: #fafcff; }
/* switch-style checkbox */
.srp-toggle { appearance: none; -webkit-appearance: none; position: relative; width: 34px; height: 19px; margin: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .15s; vertical-align: middle; }
.srp-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: left .15s; }
.srp-toggle:checked { background: var(--sahara-blue, #1d4ed8); }
.srp-toggle:checked::after { left: 17px; }
.srp-toggle:focus-visible { outline: 2px solid var(--sahara-red, #c6283d); outline-offset: 2px; }

.srp-driver { border: 1px solid #e3e8f0; border-left: 4px solid #94a3b8; border-radius: 10px; padding: 6px 16px; }
.srp-driver p { margin: 10px 0; color: #334155; font-size: 13.5px; }
.srp-dialog { border: 0; border-top: 4px solid var(--sahara-blue, #1d4ed8); border-radius: 12px; padding: 20px 22px; width: min(440px, 92vw); box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.srp-dialog h2 { margin: 0 0 12px; font-size: 17px; color: #0f172a; }
.srp-dialog label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #334155; }
.srp-dialog input, .srp-dialog select, .srp-dialog textarea { font: inherit; font-weight: 400; padding: 8px 9px; border: 1px solid #cfd8e6; border-radius: 6px; }
.srp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.srp-hidden { display: none !important; }
