/* KeyPointS — User Type Link / Role Configuration mobile presentation.
   Scoped CSS only. Does not resize Telerik grid internals or change business logic. */
.kps-utlc-page,
.kps-utrc-page,
.kps-utlc-role-window-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

    .kps-utlc-page *,
    .kps-utrc-page *,
    .kps-utlc-role-window-content * {
        box-sizing: border-box;
    }

.kps-utlc-add {
    display: grid;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px 0 16px;
}

.kps-utlc-label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.kps-utlc-lookup,
.kps-utlc-add-action {
    min-width: 0;
}

    .kps-utlc-lookup .k-input,
    .kps-utlc-lookup .k-picker,
    .kps-utlc-lookup .k-combobox {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

.kps-utlc-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

.kps-utlc-mobile-list,
.kps-utrc-role-list {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.kps-utlc-entity-card {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Nested Role Config is deliberately a one-column mobile layout.
   No row may shrink a role name to make space for the switch. */
.kps-utrc-page,
.kps-utrc-mobile,
.kps-utrc-role-list {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.kps-utrc-mobile-heading {
    font-size: 15px;
    font-weight: 700;
    color: #243347;
    padding: 4px 0 12px;
}

.kps-utrc-role-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.kps-utrc-role-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    box-sizing: border-box;
    overflow-wrap: normal;
    word-break: normal;
}

.kps-utrc-role-info {
    flex: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.kps-utrc-role-name {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    color: #25364b;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.kps-utrc-role-note {
    width: 100%;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
}

.kps-utrc-role-control {
    display: flex;
    flex: none;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kps-utrc-role-state {
    color: #64748b;
    font-size: 12px;
}

.kps-utrc-role-control .k-switch {
    flex: 0 0 auto;
}

.kps-utlc-empty,
.kps-utrc-empty {
    padding: 16px;
    color: #64748b;
    font-size: 13px;
}

.kps-utlc-role-window-content {
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 767.98px) {
    .kps-utlc-add {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0 16px;
    }

    .kps-utlc-add-action .k-button {
        min-height: 42px;
        min-width: 104px;
    }

    .kps-utlc-card-actions .k-button {
        min-height: 40px;
    }

    .kps-utrc-role-card {
        padding: 12px;
    }

    .kps-utlc-page .kps-security-config-link-add-wrapper,
    .kps-utrc-page .kps-security-config-role-link {
        max-width: 100%;
        min-width: 0;
    }
}
