.user-main {
    height: calc(100% - var(--title-h));
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.user-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-search {
    width: 280px;
    min-width: 160px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
}

.user-search:focus {
    outline: none;
    border-color: var(--blue);
}

.user-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.user-status {
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--blue-softer);
    color: var(--text-2);
    flex-shrink: 0;
}

.user-status.is-ok {
    background: #e6f4ea;
    color: var(--ok);
}

.user-status.is-error {
    background: #fde7e9;
    color: var(--danger);
}

.user-panel {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.user-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

.user-table th,
.user-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--pane);
    color: var(--text-2);
    font-weight: 600;
}

.user-table th:nth-child(1),
.user-table td:nth-child(1) {
    width: 15%;
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
    width: 17%;
}

.user-table th:nth-child(3),
.user-table td:nth-child(3) {
    width: 17%;
}

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 20%;
}

.user-table th:nth-child(5),
.user-table td:nth-child(5) {
    width: 18%;
}

.user-table th:nth-child(6),
.user-table td:nth-child(6) {
    width: 12%;
}

.user-table tbody tr:hover {
    background: var(--blue-softer);
}

.user-td-session {
    color: var(--muted);
    font-family: "Consolas", "Menlo", monospace;
}

.is-placeholder {
    color: var(--muted);
}

.link-btn {
    border: 0;
    background: none;
    padding: 0 6px;
    font-family: inherit;
    font-size: 13px;
    color: var(--blue);
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

.link-btn.is-danger {
    color: var(--danger);
}

.user-empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.user-modal-card {
    width: min(420px, 100%);
}

.user-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.user-field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.user-field input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
}

.user-field input:focus {
    outline: none;
    border-color: var(--blue);
}

.user-field input:disabled {
    background: var(--pane);
    color: var(--muted);
    cursor: not-allowed;
}

.user-modal-status {
    margin: 0;
    font-size: 12px;
    color: var(--danger);
}

.user-modal-status.is-ok {
    color: var(--ok);
}

@media (max-width: 900px) {

    .user-table th:nth-child(4),
    .user-table td:nth-child(4) {
        display: none;
    }

    .user-search {
        width: 180px;
    }
}
