/* User-Role Assignment dialog. Scoped to this component (default emulated encapsulation). Same look as the User Access Type page (user-access-type.component.css). */ .ura { display: flex; flex-direction: column; gap: 14px; } .ura-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; } .ura-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .ura-card { background: #FFFFFF; border: 1px solid #E3E3EC; border-radius: 12px; padding: 16px; } .ura-card__title { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: #1a1a1a; } .ura-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #888888; text-transform: uppercase; letter-spacing: 0.05em; } .ura-label--gap { margin-top: 14px; } .ura-muted { color: #888888; font-size: 12px; } .ura-select { width: 100%; } .ura-option { display: flex; flex-direction: column; line-height: 1.3; } /* Admin / Self Service switch */ .ura-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid #E3E3EC; border-radius: 10px; } .ura-switch__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: none; border-radius: 8px; background: transparent; color: #424242; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; } .ura-switch__btn:hover:not(:disabled) { background: #F3F3FF; } .ura-switch__btn.is-active { background: #52527A; color: #FFFFFF; } .ura-switch__btn:disabled:not(.is-active) { opacity: 0.45; cursor: default; } /* Person */ .ura-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .ura-avatar { width: 40px; height: 40px; border-radius: 50%; background: #52527A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; } .ura-person__info { display: flex; flex-direction: column; min-width: 0; } .ura-person__name { font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ura-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #F7F7FB; } .ura-stat { display: flex; align-items: baseline; gap: 6px; } .ura-stat__value { font-size: 20px; font-weight: 700; color: #414278; } .ura-stat__label { font-size: 12px; color: #666666; } .ura-note { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #E8EEFC; color: #2F4FB5; font-size: 12px; } /* Pending change */ .ura-pending { border-color: #F5D9A8; background: #FFFAF0; color: #8A5300; } .ura-pending__head { display: flex; gap: 12px; align-items: flex-start; } .ura-pending__head > .pi { font-size: 20px; margin-top: 2px; } .ura-pending__title { margin: 0 0 2px; font-weight: 600; font-size: 15px; } .ura-pending__text { margin: 0; font-size: 13px; } .ura-change__label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 600; } .ura-pending__note { margin: 12px 0 0; font-size: 13px; font-weight: 600; } /* Chips */ .ura-chips { display: flex; flex-wrap: wrap; gap: 6px; } .ura-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; } .ura-chip .pi { font-size: 10px; } .ura-chip--add { background: #E6F4EC; color: #137A4B; } .ura-chip--remove { background: #FDE8EA; color: #D11A2A; } /* Buttons */ .ura-btns { display: flex; gap: 8px; flex-wrap: wrap; } .ura-btns--full { margin-top: 14px; } .ura-btns--full > button { flex: 1; } /* Roles list */ .ura-main { min-width: 0; } .ura-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .ura-list__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ura-search { width: 200px; } .ura-count { display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 999px; background: #DEDEFF; color: #414278; font-size: 12px; font-weight: 600; line-height: 22px; vertical-align: middle; } .ura-list { border: 1px solid #E3E3EC; border-radius: 10px; max-height: 550px; overflow-y: auto; } .ura-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-bottom: 1px solid #F0F0F4; cursor: pointer; transition: background-color 0.15s; } .ura-row:last-child { border-bottom: none; } .ura-row:hover { background: #F7F7FB; } .ura-row.is-ticked { background: #F3F3FF; } .ura-row__name { flex: 1; min-width: 0; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ura-list--locked .ura-row { cursor: default; } .ura-list--locked .ura-row:hover { background: inherit; } .ura-list--locked .ura-row.is-ticked:hover { background: #F3F3FF; } .ura-list__empty { padding: 24px 16px; text-align: center; } /* Footer */ .ura-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #F0F0F4; } .ura-footer__summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } /* Badges (same look as the User, Role and User Access Type pages) */ .ura-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; } .ura-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .ura-badge--success { background: #E6F4EC; color: #137A4B; } .ura-badge--warning { background: #FFF2DB; color: #8A5300; } .ura-badge--neutral { background: #EEEEF2; color: #5B5B6B; } .ura-badge--info { background: #E8EEFC; color: #2F4FB5; } @media (max-width: 900px) { .ura-layout { grid-template-columns: 1fr; } .ura-search { width: 100%; } }