.accounts-page {
    --accounts-border: #d9e0e7;
    --accounts-muted: #667382;
    --accounts-surface: #ffffff;
    --accounts-subtle: #f6f8fa;
    --accounts-blue-subtle: #edf6ff;
    --accounts-blue-border: #9cc8ee;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #17212b;
}

.accounts-page .accounts-page-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.accounts-page .accounts-page-header h4 {
    margin: 0 0 .2rem;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.accounts-page .accounts-summary,
.accounts-page .accounts-muted,
.accounts-page .selected-account-summary span {
    color: var(--accounts-muted);
}

.accounts-page .accounts-loading {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 8rem;
}

.accounts-page .accounts-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: nowrap;
    margin-bottom: .75rem;
}

.accounts-page .accounts-search {
    position: relative;
    flex: 1 1 24rem;
    max-width: 32rem;
}

.accounts-page .accounts-search > i {
    position: absolute;
    left: .85rem;
    top: 50%;
    z-index: 2;
    color: var(--accounts-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.accounts-page .accounts-search .form-control {
    min-height: 2.4rem;
    padding-left: 2.45rem;
    border-color: #c8d0d9;
    border-radius: .4rem;
}

.accounts-page .accounts-status-filter {
    flex: 0 0 11.5rem;
    min-height: 2.4rem;
    border-color: #c8d0d9;
    border-radius: .4rem;
}

.accounts-page .accounts-search .form-control:focus,
.accounts-page .accounts-status-filter:focus {
    border-color: #6eafe2;
    box-shadow: 0 0 0 .2rem rgba(0, 101, 179, .13);
}

.accounts-page .account-actions {
    display: flex;
    gap: .5rem;
    margin-left: auto;
}

.accounts-page .account-actions .btn {
    min-width: 10rem;
    justify-content: center;
    border-radius: .4rem;
    white-space: nowrap;
}

.accounts-page .create-eab-button {
    min-width: 11rem;
    min-height: 2.4rem;
    justify-content: center;
    border-radius: .4rem;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(23, 33, 43, .12);
}

.accounts-page .account-actions .btn:not(:disabled) {
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(23, 33, 43, .12);
}

.accounts-page .account-actions .btn:disabled {
    color: #929ba5;
    background: #edf0f3;
    border-color: #d3d9df;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
}

.accounts-page .accounts-grid-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: clamp(18rem, calc(100vh - 23.5rem), 42rem);
    overflow: auto;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    contain: inline-size;
    background: var(--accounts-surface);
}

.accounts-page .fluent-data-grid {
    font-size: inherit;
}

.accounts-page .fluent-data-grid td {
    cursor: pointer;
}

.accounts-page .fluent-data-grid tr[row-type='sticky-header'] > th {
    top: 0;
    z-index: 5;
    background: #fff;
    box-shadow: 0 1px 0 var(--accounts-border);
}

.accounts-page .account-row-selected > td,
.accounts-page .account-row-selected:hover > td {
    background: var(--accounts-blue-subtle) !important;
}

.accounts-page .account-row-selected > td:first-child {
    box-shadow: inset 3px 0 #0875c1;
}

.accounts-page .account-identity {
    min-width: 0;
}

.accounts-page .account-identity strong,
.accounts-page .account-identity code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-page .account-identity strong {
    font-weight: 600;
}

.accounts-page .account-identity code {
    margin-top: .1rem;
    color: var(--accounts-muted);
    font-size: .8rem;
}

.accounts-page .domain-list {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    overflow: hidden;
}

.accounts-page .domain-badge,
.accounts-page .domain-count,
.accounts-page .eab-indicator,
.accounts-page .status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    white-space: nowrap;
}

.accounts-page .domain-badge {
    max-width: 17rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accounts-page .domain-count {
    color: var(--accounts-muted);
}

.accounts-page .eab-indicator {
    color: #075b96;
}

.accounts-page .status-active {
    color: #176b3a;
}

.accounts-page .status-inactive {
    color: #59636e;
}

.accounts-page .accounts-paginator {
    display: flex;
    justify-content: flex-end;
    padding-top: .75rem;
}

.accounts-page .accounts-paginator > * {
    width: 100%;
}

.accounts-page .accounts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 13rem;
    color: var(--accounts-muted);
    text-align: center;
    background: var(--accounts-surface);
    border: 1px solid var(--accounts-border);
    border-top: 0;
    border-radius: 0 0 .6rem .6rem;
}

.accounts-page .accounts-empty > i {
    margin-bottom: .25rem;
    font-size: 1.65rem;
}

.accounts-page .accounts-empty strong {
    color: #17212b;
}

.accounts-page .alert {
    border-radius: .5rem;
}

@media (max-width: 767.98px) {
    .accounts-page .accounts-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .accounts-page .accounts-search,
    .accounts-page .accounts-status-filter,
    .accounts-page .create-eab-button {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
        width: 100%;
    }

    .accounts-page .account-actions {
        display: flex;
        margin-left: 0;
        width: 100%;
    }

    .accounts-page .account-actions .btn {
        flex: 1 1 0;
    }

    .accounts-page .accounts-paginator {
        justify-content: center;
    }
}
