/*
 * sso-admin.css
 * Shared admin UI components (.sso-*). Global element defaults live in sso-base.css.
 */

/* ---------- Layout ---------- */
.sso-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; max-width: 1300px; }
.sso-header .sso-summary { flex: 1; }
.sso-avatar { width: 48px; height: 48px; border-radius: 50%; background: #dbeaf5; color: #1b6a9c; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: bold; flex: none; }
.sso-name { font-size: 18px; }
.sso-meta { font-size: 12px; color: #777; }

.sso-pill { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: #e3f3e6; color: #2e7d32; }
.sso-pill.inactive { background: #fdeaea; color: #b3261e; }

.sso-card { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 18px 16px; margin-bottom: 16px; background: #fff; max-width: 1300px; }
.sso-card > h2, .sso-page .sso-card > h2 { font-size: 16px; font-weight: 400; margin: 0 0 12px; }

.sso-savebar { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e3e3e3; margin-top: 16px; padding-top: 12px; }

/* ---------- Form grid ---------- */
.sso-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.sso-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sso-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sso-grid + .sso-grid { margin-top: 12px; }

.sso-field label { display: block; font-size: 12px; color: #666; margin-bottom: 3px; }
.sso-field.wide { grid-column: 1 / -1; }

/* ---------- Tables ---------- */
table.sso-table { width: 100%; margin: 0; border: none; border-collapse: collapse; }
table.sso-table th, table.sso-table td { border: none; border-bottom: 1px solid #ececec; padding: 8px 10px; vertical-align: middle; }
table.sso-table td[colspan] { overflow-wrap: anywhere; }
table.sso-table th { background: #f6f7f8; color: #666; font-weight: 600; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid #d9d9d9; white-space: nowrap; }
table.sso-table th a:not(.sso-btn) { color: #666; }
table.sso-table tbody tr:hover td { background: #f5faff; }
table.sso-table td:last-child:not([colspan]) { white-space: nowrap; }
table.sso-table tfoot th { background: transparent; color: #333; font-size: 14px; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; border-bottom: none; }
table.sso-table a:not(.sso-btn):not(.sso-count-link) { color: #1b6a9c; }
table.sso-table a.sso-danger:not(.sso-btn) { color: #b3261e; }
table.sso-table.small-table th, table.sso-table.small-table td { font-size: 12px; padding: 4px 8px; }

/* ---------- Segmented toggle (RadioButtonList, RepeatLayout="Flow") ---------- */
.sso-seg { display: inline-flex; border: 1px solid #bbb; border-radius: 3px; overflow: hidden; }
.sso-seg input { display: none; }
.sso-seg label { margin: 0; padding: 1px 9px; font-size: 11px; color: #666; cursor: pointer; background: #fff; }
.sso-seg input:checked + label { background: #2086bf; color: #fff; }

/* ---------- Buttons ---------- */
.sso-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 32px; min-width: 96px; padding: 0 16px; border: 1px solid #bbb; border-radius: 3px; background: #fff; color: #333; text-align: center; text-decoration: none; cursor: pointer; font-size: 14px; line-height: 1; vertical-align: middle; gap: 6px; }
.sso-btn:hover { background: #f3f3f3; }
.sso-btn-primary { background: #2086bf; border-color: #2086bf; color: #fff; }
.sso-btn-primary:hover { background: #1b74a6; }

/* ---------- Dialogs (native <dialog>, see js/sso-dialog.js) ---------- */
dialog.sso-dialog { border: none; border-radius: 6px; padding: 0; background: #fff; color: #333; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); max-width: 95vw; max-height: 95vh; }
dialog.sso-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog.sso-dialog-sm { width: 600px; min-height: 300px; }
dialog.sso-dialog-full { width: 85vw; height: 85vh; }
dialog.sso-dialog-frame .container, dialog.sso-dialog-full .container { width: 100%; height: 100%; padding-top: 28px; }
.sso-dialog-close { position: absolute; top: 4px; right: 8px; border: none; background: transparent; font-size: 24px; line-height: 1; color: #666; cursor: pointer; }
.sso-dialog-close:hover { color: #000; }
.sso-dialog-body { width: 60%; margin: 64px auto 0 auto; text-align: center; }
.sso-dialog-actions { display: flex; justify-content: center; gap: 48px; margin-top: 48px; }

/* ---------- Page wrapper and generic form controls (no Metro dependency) ---------- */
.sso-page { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; padding: 20px; background: #fff; }
.sso-page h1 { font-size: 26px; font-weight: 300; margin: 0 0 12px; }
.sso-page h2 { font-size: 20px; font-weight: 300; margin: 0 0 12px; }
.sso-page h3 { font-size: 16px; font-weight: 400; margin: 0 0 12px; }
.sso-page hr { border: 0; border-top: 1px solid #e3e3e3; margin: 14px 0; }
.sso-page .sso-center { text-align: center; }
.sso-page .sso-hint { font-size: 12px; color: #888; font-style: italic; }
.sso-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sso-grid.one { grid-template-columns: minmax(0, 1fr); }

.sso-input { display: inline-block; vertical-align: middle; width: auto; min-width: 120px; box-sizing: border-box; height: 32px; padding: 0 8px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #333; font: inherit; }
textarea.sso-input { height: auto; padding: 6px 8px; min-height: 90px; resize: vertical; }
.sso-input:focus { outline: none; border-color: #2086bf; box-shadow: 0 0 0 2px rgba(32, 134, 191, 0.2); }
.sso-input:disabled { background: #f1f1f1; color: #777; }
.sso-input.narrow { width: 400px; max-width: 100%; display: inline-block; }

/* ---------- Phase 3 additions ---------- */
.sso-btn-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.sso-btn-danger:hover { background: #a93226; }
.sso-btn i { margin-right: 2px; }
.sso-left { text-align: left; }
.sso-right { text-align: right; }
.sso-center { text-align: center; }

/* label + control row */
.sso-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sso-row > label { width: 128px; flex: none; padding-top: 6px; font-size: 13px; color: #555; }
.sso-row > .sso-control { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sso-row > .sso-control > .sso-input:not([style*="width"]):not([width]) { max-width: 400px; }
.sso-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.sso-check input { margin: 0; }
.sso-hidden { display: none !important; }

/* Full width inside the form grid / field layouts; fixed sensible width in label rows */
.sso-grid .sso-input, .sso-field .sso-input { display: block; width: 100%; }
.sso-row > .sso-control > .sso-input { width: 320px; max-width: 100%; }
textarea.sso-input { display: block; width: 100%; }

.sso-btn-warning { background: #d9822b; border-color: #d9822b; color: #fff; }
.sso-btn-warning:hover { background: #c47220; }
.sso-ok { color: #2e7d32; }
.sso-bad { color: #b3261e; }
.sso-inline { display: flex; align-items: center; gap: 10px; }
.sso-inline .sso-input { flex: 1; min-width: 0; }

/* ---------- Sign-in style forms and panels ---------- */
.sso-panel { padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
.sso-panel hr { border: 0; height: 0; border-top: 1px solid #e3e3e3; margin: 12px 0; background: none; }
.sso-float-right { float: right; }
.sso-white { color: #fff; }
.sso-field-group { margin-bottom: 16px; }
.sso-field-group > label { display: block; font-size: 12px; color: #666; margin-bottom: 3px; }
.sso-input-wrap { position: relative; }
.sso-input-wrap .sso-input { display: block; width: 100%; padding-right: 34px; }
.sso-helper { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; color: #888; cursor: pointer; }
.sso-helper:hover { color: #333; }

/* Font Awesome (SVG + JS) replaces <i class="fas ..."> with an inline <svg class="svg-inline--fa">. */

/* Small buttons for table action columns */
.sso-btn-sm { height: 28px; min-width: 0; padding: 0 10px; font-size: 12px; }
table.sso-table .sso-btn + .sso-btn { margin-left: 6px; }

/* Dropdown action menu (see js/sso-forms.js) */
.sso-menu { position: relative; display: inline-block; }
.sso-menu-list { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 30; min-width: 170px; padding: 4px 0; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); text-align: left; white-space: nowrap; }
.sso-menu.open .sso-menu-list { display: block; }
table.sso-table .sso-menu-list a:not(.sso-btn) { display: block; padding: 7px 14px; color: #333; font-size: 13px; text-decoration: none; }
table.sso-table .sso-menu-list a:not(.sso-btn):hover { background: #f1f6fb; }
table.sso-table .sso-menu-list a.sso-menu-danger:not(.sso-btn) { color: #b3261e; }
.sso-menu-list svg { width: 16px; margin-right: 6px; }
.sso-menu-sep { height: 1px; margin: 4px 0; background: #e6e6e6; }

/* Tables whose last column holds actions: same fixed width everywhere so the columns line up across tables. */
table.sso-actions-table th:last-child,
table.sso-actions-table td:last-child:not([colspan]) { width: 250px; }

/* Controls in table footers (add rows) share one height with the small row buttons. */
table.sso-table .sso-btn { height: 28px; min-width: 88px; padding: 0 10px; font-size: 12px; }
/* Buttons in an Action column: one fixed size, so Delete / Actions / Manage ... line up across tables. */
table.sso-actions-table td:last-child .sso-btn { box-sizing: border-box; width: 110px; min-width: 110px; padding: 0 10px; white-space: nowrap; }
table.sso-table tfoot .sso-input { height: 28px; font-size: 13px; }

/* Key/value tables (label column + controls), e.g. EditBillingGroup */
table.sso-form-table td { border-bottom: none; padding: 6px 10px; }
table.sso-form-table tr:hover td { background: transparent; }
table.sso-form-table td:first-child { width: 200px; }
table.sso-form-table td.sso-subhead { padding-top: 14px; font-weight: 600; text-align: left; border-bottom: 1px solid #ececec; }

.sso-nowrap { white-space: nowrap; }

/* Counts: a clickable pill (links to a page) and a plain badge (information only) */
.sso-count-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; padding: 2px 10px; border-radius: 999px; border: 1px solid #9cc8e4; background: #e9f4fb; color: #1b6a9c; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.sso-count-link::after { content: "\203A"; font-size: 15px; line-height: 1; }
.sso-count-link:hover { background: #1b6a9c; border-color: #1b6a9c; color: #fff; }
.sso-count-link.zero { background: transparent; border-color: #cfcfcf; color: #777; }
.sso-count-link.zero:hover { background: #1b6a9c; border-color: #1b6a9c; color: #fff; }
.sso-count { display: inline-block; min-width: 30px; padding: 2px 10px; border-radius: 999px; border: 1px solid #e3e3e3; background: #f3f4f6; color: #333; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; }

/* ---------- Dashboard (Overview) ---------- */
.sso-dash { max-width: 1300px; margin: 0 auto; padding: 16px 16px 0; }
.sso-dash-status { display: flex; flex-wrap: wrap; margin-bottom: 16px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; font-size: 13px; overflow: hidden; }
.sso-dash-status a { display: flex; align-items: center; gap: 7px; padding: 10px 18px; color: #555; text-decoration: none; }
.sso-dash-status a:hover { background: #fafbfc; }
.sso-dash-status a + a { border-left: 1px solid #ececec; }
.sso-dash-status b { font-weight: 600; color: #222; }
.sso-dash-status i, .sso-dash-status svg { width: 9px; height: 9px; font-size: 9px; }
@media (max-width: 700px) { .sso-dash-status a + a { border-left: none; } .sso-dash-status a { flex: 1 1 50%; } }
.sso-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
.sso-dash-stat { position: relative; display: block; padding: 14px 16px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }
a.sso-dash-stat[href] { cursor: pointer; }
a.sso-dash-stat[href]:hover { border-color: #9cc8e4; box-shadow: 0 1px 6px rgba(32, 134, 191, 0.15); }
a.sso-dash-stat[href]::after { content: "\203A"; position: absolute; top: 10px; right: 14px; font-size: 20px; line-height: 1; color: #999; }
.sso-dash-label { display: block; font-size: 12px; color: #666; }
.sso-dash-num { display: block; margin: 4px 0 2px; font-size: 28px; font-weight: 500; line-height: 1.2; color: #222; }
.sso-dash-sub { display: block; font-size: 12px; color: #666; }
.sso-dash-sub b { font-weight: 600; color: #333; }
.sso-dash-bar { display: block; height: 8px; margin: 6px 0; border: 1px solid #e3e3e3; border-radius: 4px; background: #f3f4f6; overflow: hidden; }
.sso-dash-bar > span { display: block; height: 100%; background: #2086bf; }
.sso-dash-bar-high > span { background: #d9822b; }
.sso-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .sso-dash-grid { grid-template-columns: minmax(0, 1fr); } }
.sso-dash-grid .sso-card { margin-bottom: 0; max-width: none; }
.sso-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sso-card-head > h2 { margin: 0; font-size: 16px; font-weight: 400; }
.sso-dash-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid #ececec; font-size: 13px; }
.sso-dash-item:first-of-type { border-top: none; }
.sso-dash-item > i, .sso-dash-item > svg { width: 18px; margin-top: 2px; text-align: center; flex: none; }
.sso-dash-item > div { flex: 1; min-width: 0; }
.sso-dash-detail { font-size: 12px; color: #777; overflow-wrap: anywhere; }
.sso-dash-action { font-size: 12px; white-space: nowrap; }
.sso-dash-usage { display: grid; grid-template-columns: minmax(110px, 1.3fr) 2fr 64px; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid #ececec; font-size: 13px; }
.sso-dash-usage:first-of-type { border-top: none; }
.sso-dash-usage .sso-dash-bar { margin: 0; }
.sso-dash-figure { text-align: right; color: #666; font-size: 12px; white-space: nowrap; }
.sso-dash-feed { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid #ececec; font-size: 13px; }
.sso-dash-feed:first-of-type { border-top: none; }
.sso-dash-feed time { min-width: 76px; color: #888; flex: none; }
.sso-dash-kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid #ececec; font-size: 13px; }
.sso-dash-kv:first-of-type { border-top: none; }
.sso-dash-kv > span:first-child { color: #666; min-width: 0; overflow-wrap: anywhere; padding-right: 12px; }
.sso-dash-subhead { margin: 14px 0 2px; font-size: 12px; color: #888; }
.sso-dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 600px) { .sso-dash-cols { grid-template-columns: minmax(0, 1fr); } }
.sso-dash-legend { display: flex; gap: 14px; margin-top: 6px; font-size: 11px; color: #777; }
.sso-dash-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.sso-dash-rank { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 6px 0; color: #333; font-size: 13px; text-decoration: none; }
.sso-dash-rank:hover > span:first-child { color: #1b6a9c; text-decoration: underline; }
.sso-dash-rank > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sso-dash-rank > b { font-weight: 600; text-align: right; }
.sso-dash-rank .sso-dash-bar { margin: 0; }
.sso-dash-rank .sso-dash-bar > span { background: #9aa3ae; }
.sso-dash-rank .sso-dash-bar-hot > span { background: #c0392b; }
.sso-dash-note { margin-top: 10px; font-size: 12px; color: #888; }
.sso-dash-empty { display: block; padding: 6px 0; font-size: 13px; color: #888; }

/* Status colours (text, icons) and status pills */
.sso-tone-ok { color: #2e7d32; }
.sso-tone-warn { color: #b26a00; }
.sso-tone-bad { color: #b3261e; }
.sso-tone-info { color: #1b6a9c; }
.sso-pill-ok { background: #e3f3e6; color: #2e7d32; }
.sso-pill-warn { background: #fff1d6; color: #8a5500; }
.sso-pill-bad { background: #fdeaea; color: #b3261e; }

/* Page headers and the System hub tiles */
.sso-dash-head { margin: 0 0 16px; }
.sso-dash-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 300; }
.sso-dash-head p { margin: 0; font-size: 13px; color: #777; }
.sso-dash-head p.sso-dash-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.sso-dash-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid #d5d9de; border-radius: 12px; background: #fff; color: #555; font-size: 12px; }
.sso-dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #2e7d32; }
.sso-dash-dot.busy { background: #b26a00; }
.sso-dash-dot.idle { background: #aaa; }
.sso-dash-live a { color: #1b6a9c; text-decoration: none; }
.sso-dash-live a:hover { text-decoration: underline; }
.sso-hub-section { margin: 24px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #888; }
.sso-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sso-hub-tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }
.sso-hub-tile:hover { border-color: #9cc8e4; box-shadow: 0 1px 6px rgba(32, 134, 191, 0.15); }
.sso-hub-tile::after { content: "\203A"; position: absolute; top: 50%; right: 16px; margin-top: -12px; font-size: 22px; line-height: 1; color: #aaa; }
.sso-hub-tile:hover::after { color: #1b6a9c; }
.sso-hub-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e9f4fb; color: #1b6a9c; font-size: 18px; }
.sso-hub-text { display: block; min-width: 0; padding-right: 20px; }
.sso-hub-title { display: block; font-size: 15px; font-weight: 600; color: #222; }
.sso-hub-desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: #666; }
.sso-hub-feature { padding: 20px 22px; border-color: #9cc8e4; background: #f4fafe; }
.sso-hub-feature .sso-hub-icon { width: 52px; height: 52px; background: #2086bf; color: #fff; font-size: 22px; }
.sso-hub-feature .sso-hub-title { font-size: 17px; }
.sso-hub-feature .sso-hub-desc { font-size: 13px; }


/* ASP.NET adds an inline "display:inline-block" to a LinkButton that has a Width attribute, which would
   drop the flex layout (icon gap, centring). The important flag keeps buttons consistent either way. */
.sso-btn { display: inline-flex !important; }

/* Breadcrumbs: links, then the current page. Separators come from CSS, so markup is just the items. */
.sso-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.sso-breadcrumb > * + *::before { content: "\203A"; display: inline-block; margin: 0 9px; color: #b0b0b0; font-size: 17px; line-height: 1; }
.sso-breadcrumb a { color: #1b6a9c; text-decoration: none; }
.sso-breadcrumb a:hover { text-decoration: underline; }
.sso-breadcrumb [aria-current="page"] { font-weight: 600; color: #222; }
.sso-breadcrumb .sso-input { height: 28px; font-size: 13px; }

/* Billing management header (BillingManagement.master): fixed under the 48px SSO banner, 112px tall */
.bm-header { position: fixed; top: 48px; left: 0; right: 0; z-index: 10; box-sizing: border-box; background: #fff; border-bottom: 1px solid #d9d9d9; }
.bm-crumb { box-sizing: border-box; height: 30px; padding: 8px 24px 0; }
.bm-crumb .sso-breadcrumb { margin: 0; font-size: 12px; line-height: 18px; }
.bm-crumb .sso-breadcrumb > * + *::before { margin: 0 7px; font-size: 15px; }
.bm-name { box-sizing: border-box; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 24px; }
.bm-name h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: #222; }
.bm-name small { font-size: 12px; color: #888; }
.bm-switch { margin-left: auto; font-size: 12px; }
.bm-tabs { display: flex; box-sizing: border-box; height: 42px; padding: 0 14px; overflow-x: auto; }
.bm-tabs a { display: flex; align-items: center; gap: 7px; box-sizing: border-box; padding: 0 14px; border-bottom: 2px solid transparent; font-size: 13px; color: #666; white-space: nowrap; }
.bm-tabs a:hover { color: #222; }
.bm-tabs a.selected-tab { border-bottom-color: #2086bf; color: #1b6a9c; font-weight: 600; }

/* List page search panel (Users, Groups): search row, optional extras, and an "add" row */
.sso-search-panel { margin-bottom: 10px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.sso-search-main { display: flex; align-items: center; gap: 8px; }
.sso-search-main .sso-input { flex: 1; max-width: 520px; }
.sso-search-main .sso-input.sso-input-fixed { flex: none; max-width: none; }
.sso-search-take { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: #555; white-space: nowrap; }
.sso-add-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e3e3; }
.sso-add-row .sso-input { flex: 1; max-width: 520px; }
.sso-add-label { min-width: 64px; font-size: 12px; color: #666; }

/* Alignment classes on table cells, including header cells (the header rule above would otherwise win) */
table.sso-table th.sso-left, table.sso-table td.sso-left { text-align: left; }
table.sso-table th.sso-center, table.sso-table td.sso-center { text-align: center; }
table.sso-table th.sso-right, table.sso-table td.sso-right { text-align: right; }

/* In a table cell the pill/badge is a block of its own: centred horizontally by auto margins and vertically by the cell
   (as an inline element it would sit on the text baseline and look slightly raised). */
table.sso-table td > .sso-count-link { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
table.sso-table td > .sso-count { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

