/* The Baseline - basis-styling bovenop Bootstrap 5 */

:root {
    --baseline-sidebar-width: 272px;
    --baseline-sidebar-width-collapsed: 80px;
    --sidebar-item-radius: 0.625rem;
    --sidebar-accent: #2563eb;
    --sidebar-bg: #f8fafc;
    --sidebar-border: rgba(15, 23, 42, 0.08);
    --sidebar-muted: #64748b;
}

[data-bs-theme="dark"] {
    --sidebar-bg: #0f172a;
    --sidebar-border: rgba(148, 163, 184, 0.12);
    --sidebar-muted: #94a3b8;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 0.25rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.5rem;
}

.app-sidebar {
    width: var(--baseline-sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    transition: width 0.22s ease;
}

.app-offcanvas {
    width: min(var(--baseline-sidebar-width), 88vw);
    background-color: var(--sidebar-bg);
}

.sidebar-header {
    padding: 0.875rem 0.75rem 0.75rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-header-inner {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.sidebar-body {
    padding: 0.75rem 0.75rem 1rem;
}

.sidebar-offcanvas-header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    color: var(--bs-body-color);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-width: 0;
}

.sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease, width 0.22s ease;
}

.site-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.site-logo-lg {
    width: 4.5rem;
    height: 4.5rem;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-section + .sidebar-section {
    margin-top: 1.25rem;
}

.sidebar-section-label {
    padding: 0 0.75rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.sidebar-nav-list,
.sidebar-submenu {
    gap: 0.125rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: var(--sidebar-item-radius);
    background: transparent;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-nav-link:hover:not(.disabled),
.sidebar-nav-link:focus-visible:not(.disabled) {
    background: rgba(37, 99, 235, 0.08);
    color: var(--bs-body-color);
}

.sidebar-nav-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--sidebar-accent);
    box-shadow: inset 3px 0 0 var(--sidebar-accent);
}

.sidebar-nav-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sidebar-nav-icon-wrap {
    width: 1.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav-icon {
    font-size: 1.125rem;
    color: var(--sidebar-muted);
    transition: color 0.15s ease;
}

.sidebar-nav-link:hover .sidebar-nav-icon,
.sidebar-nav-link.active .sidebar-nav-icon {
    color: var(--sidebar-accent);
}

.sidebar-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease, width 0.22s ease;
}

.sidebar-nav-chevron {
    font-size: 0.75rem;
    color: var(--sidebar-muted);
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.sidebar-nav-toggle[aria-expanded="true"] .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar-nav-sublink {
    padding-left: 0.5rem;
    font-size: 0.875rem;
}

.sidebar-submenu {
    margin: 0.125rem 0 0.25rem;
    padding-left: 0.375rem;
    border-left: 1px solid var(--sidebar-border);
    margin-left: 1.5rem;
}

.sidebar-collapse-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.4375rem;
    background: transparent;
    color: var(--sidebar-muted);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-collapse-btn:hover {
    color: var(--sidebar-accent);
    background: rgba(37, 99, 235, 0.08);
}

.sidebar-collapse-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.sidebar-collapse-btn .bi {
    font-size: 0.875rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

html.sidebar-collapsed .app-sidebar {
    width: var(--baseline-sidebar-width-collapsed);
}

html.sidebar-collapsed .sidebar-brand-text,
html.sidebar-collapsed .sidebar-section-label,
html.sidebar-collapsed .sidebar-nav-label,
html.sidebar-collapsed .sidebar-nav-chevron {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

html.sidebar-collapsed .sidebar-nav-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

html.sidebar-collapsed .sidebar-nav-link.active {
    box-shadow: none;
}

html.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

html.sidebar-collapsed .sidebar-nav-group .collapse {
    display: none !important;
}

html.sidebar-collapsed .sidebar-collapse-btn .bi {
    transform: rotate(180deg);
}

html.sidebar-collapsed .sidebar-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

html.sidebar-collapsed .sidebar-header,
html.sidebar-collapsed .sidebar-body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

html.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    flex: 0 0 auto;
}

.app-main {
    background-color: var(--bs-tertiary-bg);
    min-width: 0;
}

.page-header h1 {
    letter-spacing: -0.02em;
}

.score-card {
    transition: box-shadow 0.15s ease;
}

.score-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.score-card .score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
}

.score-card .score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.score-card .score-unit {
    font-size: 1rem;
    font-weight: 500;
}

.score-info-btn {
    line-height: 1;
    text-decoration: none;
}

.score-info-btn .bi {
    font-size: 0.9rem;
}

.popover.score-popover {
    max-width: min(28rem, 92vw);
}

/* Status badges for compliance checks */
.status-badge-pass { --bs-badge-color: var(--bs-success); }
.status-badge-warning { --bs-badge-color: var(--bs-warning); }
.status-badge-fail { --bs-badge-color: var(--bs-danger); }

/* Responsive tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Focus visibility for keyboard navigation */
.nav-link:focus-visible,
.sidebar-nav-link:focus-visible,
.btn:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .score-card .score-value {
        font-size: 1.5rem;
    }
}

/* Module score charts — fixed height so wide cards do not stretch graphs */
.module-chart-wrap {
    position: relative;
    height: 9rem;
}

.module-chart-wrap--tall {
    height: 18rem;
}

.module-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Gedeelde datatabellen (Intune, beleid, RBAC, risico, enz.) */
.baseline-data-card {
    border: 1px solid var(--sidebar-border) !important;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--bs-body-bg);
}

.baseline-data-card-header {
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.05) 0%,
        transparent 100%
    );
    border-bottom: 1px solid var(--sidebar-border);
}

.baseline-data-table-wrap {
    -webkit-overflow-scrolling: touch;
}

.baseline-data-table {
    --baseline-table-font-size: 0.8125rem;
    --baseline-table-header-size: 0.6875rem;
    font-size: var(--baseline-table-font-size);
    border-collapse: separate;
    border-spacing: 0;
}

.baseline-data-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.baseline-data-table thead tr {
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(37, 99, 235, 0.04) 100%
    );
    box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.18);
}

[data-bs-theme="dark"] .baseline-data-table thead tr {
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.22) 0%,
        rgba(15, 23, 42, 0.92) 100%
    );
    box-shadow: inset 0 -2px 0 rgba(96, 165, 250, 0.25);
}

.baseline-data-table thead th {
    padding: 0.5rem 0.65rem;
    vertical-align: middle;
    font-size: var(--baseline-table-header-size);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
    border-bottom: 0;
    white-space: nowrap;
}

.baseline-data-table tbody td {
    padding: 0.5rem 0.65rem;
    vertical-align: middle;
    border-color: var(--sidebar-border);
    line-height: 1.4;
}

.baseline-data-table tbody tr {
    transition: background-color 0.12s ease;
}

.baseline-data-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

[data-bs-theme="dark"] .baseline-data-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.12);
}

.baseline-data-table code {
    font-size: 0.75rem;
}

.baseline-data-table .badge {
    font-size: 0.6875rem;
    font-weight: 600;
}

.baseline-data-table--compact {
    --baseline-table-font-size: 0.75rem;
}

.baseline-data-table--compact thead th,
.baseline-data-table--compact tbody td {
    padding: 0.4rem 0.55rem;
}

/* Intune-apparaten: compactere rijen en kolombreedtes */
.intune-devices-table {
    --baseline-table-font-size: 0.75rem;
}

.intune-devices-table tbody td {
    padding: 0.28rem 0.45rem;
    line-height: 1.35;
}

.intune-devices-table thead th {
    padding: 0.45rem 0.45rem;
}

.intune-devices-table thead th.device-sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.intune-devices-table thead th.device-sortable:hover,
.intune-devices-table thead th.device-sortable:focus-visible {
    color: var(--sidebar-accent);
    background-color: rgba(37, 99, 235, 0.06);
}

.intune-devices-table thead th.sorted {
    color: var(--sidebar-accent);
}

.intune-devices-table .device-th-label {
    display: inline;
}

.intune-devices-table .sort-indicator {
    margin-left: 0.2rem;
    font-size: 0.625rem;
    opacity: 0.45;
    vertical-align: middle;
}

.intune-devices-table thead th.sorted .sort-indicator {
    opacity: 1;
}

.intune-devices-table .device-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2em 0.45em;
}

.intune-devices-table .device-col-device_name {
    width: 8rem;
    max-width: 8rem;
}

.intune-devices-table .device-col-device_name .device-name-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.intune-devices-table .device-col-last_logged_in_user {
    min-width: 9.5rem;
    max-width: 11rem;
}

.intune-devices-table .device-col-bitlocker {
    width: 2.25rem;
    white-space: nowrap;
}

.intune-devices-table .device-col-actions {
    width: 3.75rem;
    white-space: nowrap;
}

.intune-devices-table .device-col-select {
    width: 2rem;
}

.intune-devices-table .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    line-height: 1;
}

.intune-devices-table .btn-icon .bi {
    font-size: 0.8rem;
}

.bitlocker-key-copy-box .form-control {
    font-size: 0.8125rem;
    resize: none;
}

.group-picker-current {
    color: var(--bs-body-color);
    font-weight: 500;
}

.group-picker-results {
    max-height: 14rem;
    overflow-y: auto;
    margin-top: 0.35rem;
    border: 1px solid var(--sidebar-border);
    border-radius: 0.625rem;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.08);
}

.group-picker-results .list-group-item-action {
    border: 0;
    padding: 0.45rem 0.75rem;
}

.group-picker-results .list-group-item-action:hover,
.group-picker-results .list-group-item-action:focus-visible {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--sidebar-accent);
}

.group-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.group-picker-chip-remove {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.group-picker-chip-remove:hover {
    opacity: 1;
}

[data-bs-theme="dark"] .group-picker-results {
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
}

.navbar-tenant-switch {
    min-width: 14rem;
    max-width: min(22rem, calc(100vw - 8rem));
    position: relative;
    overflow: visible;
}

.navbar .d-flex.align-items-center {
    overflow: visible;
}

.tenant-picker {
    position: relative;
}

.tenant-picker-input-wrap {
    position: relative;
}

.tenant-picker--navbar .tenant-picker-search {
    min-width: 14rem;
}

.tenant-picker-results {
    position: absolute;
    z-index: 1060;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    max-height: calc(2.5rem * 10 + 0.5rem);
    overflow-y: auto;
    margin: 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: 0.625rem;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.12);
}

.tenant-picker-results .list-group-item-action {
    border: 0;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-picker-results .list-group-item-action:hover,
.tenant-picker-results .list-group-item-action:focus-visible {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--sidebar-accent);
}

.platform-table-search-wrap {
    width: min(20rem, 100%);
}

[data-bs-theme="dark"] .tenant-picker-results {
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
}

.school-ip-current-card {
    border-color: var(--sidebar-border) !important;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.06) 0%,
        rgba(37, 99, 235, 0.02) 100%
    );
}

.ca-policy-state-toggle {
    display: inline-flex;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .ca-policy-state-toggle {
    border-color: rgba(148, 163, 184, 0.24);
    background-color: rgba(15, 23, 42, 0.35);
}

.ca-policy-state-toggle .ca-policy-btn {
    border: 0;
    border-radius: 0;
    padding: 0.42rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    background: transparent;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ca-policy-state-toggle .ca-policy-btn + .ca-policy-btn {
    border-left: 1px solid rgba(15, 23, 42, 0.1);
}

[data-bs-theme="dark"] .ca-policy-state-toggle .ca-policy-btn + .ca-policy-btn {
    border-left-color: rgba(148, 163, 184, 0.18);
}

.ca-policy-btn--report {
    color: #b45309;
}

.ca-policy-btn--on {
    color: #15803d;
}

.ca-policy-btn--off {
    color: #64748b;
}

[data-bs-theme="dark"] .ca-policy-btn--report {
    color: #fbbf24;
}

[data-bs-theme="dark"] .ca-policy-btn--on {
    color: #4ade80;
}

[data-bs-theme="dark"] .ca-policy-btn--off {
    color: #94a3b8;
}

.ca-policy-btn--report:hover:not(.active),
.ca-policy-btn--report:focus-visible:not(.active) {
    background-color: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.ca-policy-btn--on:hover:not(.active),
.ca-policy-btn--on:focus-visible:not(.active) {
    background-color: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.ca-policy-btn--off:hover:not(.active),
.ca-policy-btn--off:focus-visible:not(.active) {
    background-color: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.ca-policy-btn--report.active {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ca-policy-btn--on.active {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ca-policy-btn--off.active {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ca-policy-state-toggle .ca-policy-btn:focus-visible {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.ca-sign-in-row--highlight {
    background-color: rgba(37, 99, 235, 0.08) !important;
}

.ca-policy-name-btn {
    color: var(--bs-body-color);
    max-width: 100%;
}

.ca-policy-name-btn:hover,
.ca-policy-name-btn:focus-visible {
    color: var(--sidebar-accent);
    text-decoration: underline !important;
}

.ca-policy-detail-rows dt {
    margin-bottom: 0.35rem;
}

.ca-policy-detail-rows dd {
    margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .score-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}

#toast-container {
    z-index: 1090;
    max-width: min(100vw - 1.5rem, 420px);
}

#toast-container .toast {
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.18);
}

/* Officiële provider-knoppen (Microsoft / Google branding) */
.auth-provider-buttons {
    max-width: 100%;
}

.auth-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 40px;
    padding: 0 0.75rem;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #8c8c8c;
    color: #5e5e5e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-provider-btn:hover,
.auth-provider-btn:focus-visible {
    background-color: #f3f3f3;
    color: #5e5e5e;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-provider-btn:active {
    background-color: #ebebeb;
}

.auth-provider-btn--google {
    border-color: #747775;
    color: #1f1f1f;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.auth-provider-btn--google:hover,
.auth-provider-btn--google:focus-visible {
    color: #1f1f1f;
    background-color: #f7f8f8;
}

.auth-provider-btn__logo {
    flex-shrink: 0;
}

.auth-provider-btn__label {
    white-space: nowrap;
}

[data-bs-theme="dark"] .auth-provider-btn {
    background-color: #fff;
    color: #5e5e5e;
}

[data-bs-theme="dark"] .auth-provider-btn--google {
    color: #1f1f1f;
}

.auth-shell {
    max-width: 460px;
}

.auth-shell--wide {
    max-width: 820px;
}

/* Google Workspace onboarding wizard (compact layout) */
.google-onboarding {
    font-size: 0.8125rem;
    line-height: 1.45;
}

.google-onboarding .google-onboarding-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.google-onboarding .google-onboarding-lead {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.google-onboarding .google-onboarding-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.google-onboarding .form-text {
    font-size: 0.75rem;
}

.google-onboarding .google-onboarding-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-tertiary-bg);
    padding: 0.625rem 0.75rem;
}

.google-onboarding .google-onboarding-scopes {
    font-size: 0.6875rem;
    line-height: 1.35;
}

.google-onboarding-accordion {
    --bs-accordion-btn-padding-x: 0.75rem;
    --bs-accordion-btn-padding-y: 0.5rem;
    --bs-accordion-body-padding-x: 0.75rem;
    --bs-accordion-body-padding-y: 0.625rem;
    --bs-accordion-active-color: var(--bs-body-color);
    --bs-accordion-active-bg: var(--bs-tertiary-bg);
    font-size: 0.8125rem;
}

.google-onboarding-accordion .accordion-item {
    border-color: var(--bs-border-color);
}

.google-onboarding-accordion .accordion-button {
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.25rem;
    box-shadow: none;
}

.google-onboarding-accordion .accordion-button:not(.collapsed) {
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.google-onboarding-accordion .accordion-button .badge {
    font-size: 0.625rem;
    font-weight: 600;
}

.google-onboarding-steps,
.google-onboarding-rights {
    color: var(--bs-secondary-color);
}

.google-onboarding-steps li + li,
.google-onboarding-rights li + li {
    margin-top: 0.35rem;
}

.google-onboarding-scope-group ul li + li {
    margin-top: 0.2rem;
}

.google-onboarding code {
    font-size: 0.6875rem;
}

.google-onboarding .alert {
    font-size: 0.8125rem;
}

/* Google Workspace — OU-boom */
.google-ou-tree-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    overflow: hidden;
}

.google-ou-tree-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.google-ou-tree-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-ou-tree-toolbar .btn {
    font-size: 0.75rem;
}

.google-ou-tree-wrapper {
    max-height: min(70vh, 640px);
    overflow: auto;
    padding: 0.5rem 0.65rem;
}

.google-ou-tree-wrapper-compact {
    max-height: min(50vh, 420px);
}

.google-ou-tree-wrapper-select {
    max-height: min(45vh, 380px);
}

.google-ou-name {
    font-size: 0.875rem;
}

.google-ou-desc {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-left: 0.25rem;
}

.google-ou-tree-item + .google-ou-tree-item {
    margin-top: 0.125rem;
}

.google-ou-tree-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--bs-border-radius-sm);
    transition: background-color 0.12s ease;
}

.google-ou-tree-row:hover {
    background: var(--bs-tertiary-bg);
}

.google-ou-tree-row-selected {
    background: var(--bs-primary-bg-subtle);
    box-shadow: inset 3px 0 0 var(--bs-primary);
}

.google-ou-tree-selectable {
    cursor: pointer;
}

.google-ou-tree-toggle {
    flex: 0 0 auto;
    width: 2.75rem;
    color: var(--bs-body-color);
    text-decoration: none;
    line-height: 1;
}

.google-ou-tree-toggle:hover,
.google-ou-tree-toggle:focus {
    color: var(--bs-primary);
}

.google-ou-tree-toggle[aria-expanded="true"] .google-ou-tree-chevron {
    transform: rotate(90deg);
}

.google-ou-tree-chevron {
    transition: transform 0.15s ease;
    vertical-align: -0.125em;
}

.google-ou-tree-child-count {
    font-size: 0.625rem;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 0.125rem;
}

.google-ou-tree-toggle-spacer {
    flex: 0 0 2.75rem;
    width: 2.75rem;
}

.google-ou-tree-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

.google-ou-tree-select-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.google-ou-tree-radio {
    flex: 0 0 auto;
    margin-top: 0;
}

.google-ou-tree-select-text {
    min-width: 0;
}

.google-ou-tree-categories {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.google-ou-tree-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
}

.google-ou-tree-readonly,
.google-ou-tree-meta {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
}

.google-ou-inherited {
    white-space: nowrap;
}

.google-ou-tree-children {
    margin: 0.125rem 0 0.25rem 1.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--bs-border-color-translucent);
}

.google-ou-selector .google-ou-tree-panel {
    border-color: var(--bs-border-color-translucent);
}

.google-chromeos-row {
    cursor: pointer;
}

.google-account-row {
    cursor: pointer;
}
