/* =====================================================================
   Session guard: "someone signed in to your account, is it you?" dialog
   (ClientApp/Shell/SessionGuard.ts). Tokens only - works in every theme, RTL/LTR.
   ===================================================================== */

@media screen {

.erp-sg {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(16, 24, 40, .45);
    font-family: var(--erp-font);
}

.erp-sg__box {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: var(--erp-radius-lg, 14px);
    background: var(--erp-surface, #fff);
    color: var(--erp-text);
    border: 1px solid var(--erp-border);
    box-shadow: var(--erp-shadow-lg);
    text-align: center;
}

.erp-sg__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--erp-warning-bg);
    color: var(--erp-warning);
    font-size: 24px;
}

.erp-sg__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--erp-text);
}

.erp-sg__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--erp-text-muted);
}

.erp-sg__info {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: var(--erp-radius, 10px);
    background: var(--erp-bg);
    border: 1px solid var(--erp-border);
    text-align: start;
}

.erp-sg__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
}
.erp-sg__row > span { color: var(--erp-text-muted); }
.erp-sg__row > b { font-weight: 600; color: var(--erp-text); overflow-wrap: anywhere; }

.erp-sg__actions {
    display: flex;
    gap: 10px;
}

.erp-sg__btn {
    flex: 1 1 0;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--erp-radius-sm, 6px);
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--erp-transition), border-color var(--erp-transition);
}
.erp-sg__btn:focus-visible { outline: none; box-shadow: var(--erp-focus); }
.erp-sg__btn:disabled { opacity: .6; cursor: default; }

.erp-sg__btn--yes {
    background: var(--erp-primary);
    color: var(--erp-on-primary, #fff);
}
.erp-sg__btn--yes:hover:not(:disabled) { background: var(--erp-primary-hover); }

.erp-sg__btn--no {
    background: var(--erp-surface, #fff);
    color: var(--erp-danger);
    border-color: var(--erp-danger-border, var(--erp-danger));
}
.erp-sg__btn--no:hover:not(:disabled) { background: var(--erp-danger-bg); }

@media (max-width: 420px) {
    .erp-sg__actions { flex-direction: column; }
}

}
