.users-table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d1d5db;
    text-align: left;
}

.users-table th {
    font-weight: 600;
    background: #f3f4f6;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-dialog {
    width: min(92vw, 480px);
    border: 0;
    border-radius: 12px;
    padding: 22px;
}

.user-dialog::backdrop {
    background: rgb(0 0 0 / 45%);
}

.user-dialog h2 {
    margin-top: 0;
}

.user-form {
    display: grid;
    gap: 16px;
}

.user-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.user-form input,
.user-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    font: inherit;
}

.user-password-row {
    display: flex;
    gap: 6px;
}

.user-password-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.user-password-toggle {
    flex: 0 0 auto;
    padding: 8px 10px;
    font: inherit;
    cursor: pointer;
}

.user-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .users-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .user-dialog-actions {
        flex-direction: column-reverse;
    }

    .user-dialog-actions button {
        width: 100%;
    }
}
