.um-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 24px;
    color: var(--cmms-ink);
    font-family: var(--cmms-font);
}

.um-title {
    margin: 0 0 8px;
    font-size: 2.125rem;
    font-weight: 400;
    line-height: 1.235;
    letter-spacing: 0.00735em;
    color: rgba(0, 0, 0, 0.87);
}

.um-subtitle {
    margin: 0 0 24px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
}

.um-paper {
    background: var(--cmms-surface);
    border: 1px solid var(--cmms-line-soft);
    border-radius: var(--cmms-radius-card);
    padding: 24px;
    box-shadow: var(--cmms-shadow-card);
}

.um-paper-outlined {
    background: var(--cmms-surface);
    border: 1px solid var(--cmms-line-soft);
    border-radius: var(--cmms-radius-card);
    padding: 24px;
    margin-bottom: 16px;
}

.um-section-title {
    margin: 0 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.00714em;
    color: rgba(0, 0, 0, 0.87);
}

.um-section-subtitle {
    margin: 20px 0 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.um-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
}

.um-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.um-toolbar h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.um-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02857em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.um-btn svg {
    width: 18px;
    height: 18px;
}

.um-btn-primary {
    background: #3d6b7f;
    color: #fff;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.um-btn-primary:hover {
    background: #2c5364;
}

.um-btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.um-btn-text {
    background: transparent;
    color: rgba(0, 0, 0, 0.6);
}

.um-btn-danger {
    background: #f44336;
    color: #fff;
}

.um-search {
    position: relative;
    margin-bottom: 16px;
    max-width: 100%;
}

.um-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: rgba(0, 0, 0, 0.54);
}

.um-search input {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
    padding: 12px 12px 12px 44px;
    font: inherit;
    font-size: 1rem;
    background: transparent;
}

.um-search input:focus {
    outline: none;
    border-bottom: 2px solid #3d6b7f;
}

.um-progress {
    height: 4px;
    overflow: hidden;
    background: #eaf2f5;
    margin-bottom: 16px;
}

.um-progress span {
    display: block;
    height: 100%;
    width: 40%;
    background: #3d6b7f;
    animation: um-indeterminate 1.2s ease-in-out infinite;
}

@keyframes um-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.um-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--cmms-line-soft);
    border-radius: var(--cmms-radius-card);
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    background: var(--cmms-surface);
}

.um-table th,
.um-table td {
    border: 0;
    border-bottom: 1px solid var(--cmms-line-soft);
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

.um-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: var(--cmms-muted);
    background: #f7f9fb;
    border-bottom: 1px solid var(--cmms-line);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.um-table thead th.um-actions {
    cursor: default;
}

.um-table tbody td {
    color: var(--cmms-body);
    font-variant-numeric: tabular-nums;
}

.um-table tbody tr:nth-child(odd) {
    background: var(--cmms-surface);
}

.um-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.um-table tbody tr:hover {
    background: color-mix(in srgb, var(--cmms-primary) 6%, white);
}

.um-table tbody tr:last-child td {
    border-bottom: 0;
}

.um-actions {
    white-space: nowrap;
    width: 100px;
}

.um-icon-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.54);
    padding: 4px;
}

.um-icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.um-icon-btn.edit {
    color: var(--cmms-primary);
}

.um-icon-btn.danger {
    color: #c62828;
}

.um-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.um-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.um-chip-error {
    color: var(--cmms-error-deep);
    background: var(--cmms-error-soft);
}

.um-chip-warning {
    color: var(--cmms-warning-deep);
    background: var(--cmms-warning-soft);
}

.um-chip-info {
    color: var(--cmms-info-deep);
    background: var(--cmms-info-soft);
}

.um-chip-success {
    color: var(--cmms-success-deep);
    background: var(--cmms-success-soft);
}

.um-chip-default {
    color: var(--cmms-muted);
    background: #eeeeee;
}

.um-chip-primary {
    color: var(--cmms-primary-dark);
    background: var(--cmms-primary-tint);
}

.um-empty {
    text-align: center;
    padding: 24px;
    color: rgba(0, 0, 0, 0.6);
}

.um-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 52px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--cmms-muted);
    border-top: 1px solid var(--cmms-line-soft);
    background: #fbfcfd;
}

.um-pager select {
    min-width: 52px;
    border: 0;
    border-bottom: 1px solid var(--cmms-line-input);
    background: transparent;
    color: inherit;
    padding: 4px 4px 2px;
}

.um-pager-nav {
    display: inline-flex;
    align-items: center;
}

.um-pager select,
.um-pager button {
    font: inherit;
}

.um-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 16px;
}

.um-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.um-field label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
}

.um-field input,
.um-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    padding: 16.5px 14px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
}

.um-field input:focus,
.um-field select:focus {
    outline: none;
    border-color: #3d6b7f;
    border-width: 2px;
    padding: 15.5px 13px;
}

.um-field input:disabled {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.38);
}

.um-actions-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.um-header-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--cmms-surface);
    border: 1px solid var(--cmms-line-soft);
    border-radius: var(--cmms-radius-card);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--cmms-shadow-card);
}

.um-details-name {
    margin: 0 0 8px;
    font-size: 2.125rem;
    font-weight: 400;
    line-height: 1.235;
    color: var(--cmms-ink);
}

.um-details-user {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--cmms-muted);
}

.um-header-card .um-chip {
    margin-right: 8px;
}

.um-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d6b7f 0%, #2c5364 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.um-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--cmms-shadow-card);
    overflow: hidden;
}

.um-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 12px 24px;
    font: inherit;
    font-weight: 500;
    text-transform: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid transparent;
}

.um-tab-icon {
    width: 18px;
    height: 18px;
}

.um-tab.active {
    color: #3d6b7f;
    border-bottom-color: #3d6b7f;
}

.um-tab-body {
    background: transparent;
    padding: 16px 0 0;
}

.um-sysmod-card {
    overflow: hidden;
    border-radius: 12px;
    background: var(--cmms-surface);
    box-shadow: var(--cmms-shadow-card);
}

.um-sysmod-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(125deg, #1565c0 0%, #0d47a1 55%, #4527a0 100%);
    color: #fff;
}

.um-sysmod-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.um-sysmod-copy {
    margin-top: 4px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
}

.um-sysmod-hub {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}

.um-sysmod-body {
    padding: 24px;
    color: var(--cmms-muted);
}

.um-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.um-field-hint,
.um-scope-note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.6);
}

.um-chip-row button {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    margin-left: 4px;
    font-size: 14px;
    line-height: 1;
}

.um-inline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.um-inline .um-field {
    flex: 1;
}

.um-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.um-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 16px;
}

.um-dialog {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 4px;
    padding: 16px 24px 12px;
    box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14);
}

.um-dialog h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 800px) {
    .um-grid,
    .um-header-card {
        grid-template-columns: 1fr;
    }
}
