/* Account deactivation: the two buttons and the state line of the account page (Shared/Users/UserView.razor;
   mockup 013 A), and the "Stan" badge and the dimmed row of the users list (UserTableRow.razor; mockup 013 C).
   A plain stylesheet linked in Pages/_Layout.cshtml rather than scoped .razor.css: a scoped stylesheet of a
   new component reaches the styles bundle only on a full rebuild. */

.account-actions { display: flex; align-items: center; gap: 16px; }

.account-danger-button,
.account-neutral-button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 4px;
                          font-size: 13px; font-weight: 600; background: #fff; cursor: pointer; white-space: nowrap; }
.account-danger-button { color: #DA0552; border: 1px solid #DA0552; }
.account-danger-button:hover { background: #DA0552; color: #fff; }
.account-neutral-button { color: #382F8C; border: 1px solid #382F8C; }
.account-neutral-button:hover { background: #382F8C; color: #fff; }
.account-danger-button:focus-visible,
.account-neutral-button:focus-visible { outline: 2px solid #5B2E8E; outline-offset: 2px; }

.account-state-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 10px;
                       font-size: 11px; font-weight: 700; white-space: nowrap; }
.account-state-badge.is-active { background: #E7F4EF; color: #17684F; }
.account-state-badge.is-inactive { background: #FDE7EF; color: #A1033C; }
/* Beside the account's name in the top row. */
.account-name .account-state-badge { margin-left: 10px; vertical-align: 3px; }

.account-inactive-line { display: flex; align-items: center; gap: 10px; background: #FDF2F6; border-left: 3px solid #DA0552;
                         padding: 10px 14px; font-size: 12px; color: #5A1030; margin: 16px 24px 0; border-radius: 0 4px 4px 0; }
.account-inactive-line svg { flex: none; }

.user-row-inactive td { color: #9AA0AA; }

/* On a narrow screen the top row's fixed height cannot hold the name and the buttons side by side:
   it grows and the buttons go under the name. */
@media (max-width: 768px) {
    .account-top-row { height: auto; min-height: 65px; flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    /* The e-mail, role and structure line under the name wraps rather than running off the screen. */
    .account-top-row .font-12.d-flex { flex-wrap: wrap; }
    .account-actions { flex-wrap: wrap; gap: 10px; padding-left: 16px; }
    .account-inactive-line { margin: 12px 16px 0; }
}
