body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}
header {
    background: #333;
    color: #fff;
    padding: 1rem;
}
nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    height: 100%;
    max-height: 35px;
    font-size: 16px;
}

button:hover,
.button:hover {
    background: #555;
}

.button-blue,
.button-primary {
    background: #2563eb;
    color: #fff;
}

.button-blue:hover,
.button-primary:hover {
    background: #1d4ed8;
}

.button-green {
    background: #16a34a;
    color: #fff;
}

.button-green:hover {
    background: #15803d;
}

.button-red,
.button-danger {
    background: #dc2626;
    color: #fff;
}

.button-red:hover,
.button-danger:hover {
    background: #b91c1c;
}

.button-sky {
    background: #199792;
    color: #fff;
}

.button-sky:hover {
    background: #14837f;
}

.button-secondary {
    background: #4b5563;
    color: #fff;
}

.button-secondary:hover {
    background: #374151;
}

.card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card h2 {
    margin-top: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-field input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.button-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #777;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.button-link:hover {
    background: #555;
}

.button-warning {
    background: #f97316;
    color: #fff;
}

.button-warning:hover {
    background: #ea580c;
}

.form-errors,
.field-errors {
    color: #b00020;
    font-size: 0.9rem;
}

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

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.data-table th {
    background: #f0f0f0;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions a {
    text-decoration: none;
}

.table-actions form {
    display: inline;
}

.member-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #1f2937;
}

.badge-owner {
    background: #bfdbfe;
    color: #1d4ed8;
}

.badge-accepted {
    background: #dcfce7;
    color: #166534;
}

.invitation-detail-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    max-width: 420px;
    width: 100%;
}

.invitation-detail-text {
    margin: 0 0 0.75rem 0;
    color: #374151;
    line-height: 1.5;
}

.invitation-link-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.invitation-link-text {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    color: #1f2937;
    word-break: break-all;
    flex: 1 1 260px;
}

.copy-invitation-link {
    background: #047857;
}

.copy-invitation-link:hover {
    background: #065f46;
}

.invitation-detail-feedback {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #047857;
}

.invitation-detail-feedback.error {
    color: #b91c1c;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.current-company {
    margin-bottom: 1rem;
}

.inline-form {
    margin-bottom: 1.5rem;
}

.inline-form .form-field {
    margin-bottom: 1rem;
}

.disabled-action {
    color: #777;
    font-size: 0.9rem;
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.members-toolbar {
    margin-top: 1.5rem;
}

.toggle-panel {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.members-table {
    margin-top: 1rem;
}

.company-users-table {
    margin-top: 1rem;
}

.company-user-groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #374151;
}

.icon-button:hover {
    background: #f3f4f6;
}

.group-selector {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    background: #fff;
}

.group-selector-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.group-selector-actions {
    display: flex;
    justify-content: flex-end;
}

.group-selector-actions button {
    min-width: 6rem;
}

.inline-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.inline-list li {
    background: #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.text-muted {
    color: #6b7280;
    font-size: 0.85rem;
}

.empty-groups {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none;
}

.table-actions .inline-form {
    margin-bottom: 0;
}

.role-form {
    margin: 0;
}

.role-form select {
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.registration-card {
    max-width: 520px;
    margin: 0 auto;
}

.form-description {
    margin-top: 0.5rem;
    color: #555;
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.styled-form .form-field label {
    font-weight: 600;
    color: #333;
}

.required-indicator {
    color: #d14343;
    margin-left: 0.25rem;
}

.input-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.field-help {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.alert {
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid #2563eb;
    background: #eef2ff;
    color: #1f2937;
}

.alert-success {
    border-left-color: #047857;
    background: #ecfdf5;
    color: #064e3b;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
}

.button-primary {
    background: #2563eb;
    color: #fff;
}

.button-primary:hover {
    background: #1d4ed8;
}

.button-secondary {
    background: #4b5563;
    color: #fff;
}

.button-secondary:hover {
    background: #374151;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    color: #4b5563;
}

.form-footer a {
    color: #2563eb;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.activation-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.activation-card p {
    margin-bottom: 2rem;
    color: #4b5563;
}
