:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: #f4f5f7;
    color: #1a1a1a;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #1f2937;
    color: #fff;
}

.topbar-business {
    font-weight: 600;
}

.topbar-nav {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.topbar-nav a, .topbar-switch {
    color: #d1d5db;
    text-decoration: none;
}

.topbar-nav a:hover, .topbar-switch:hover {
    color: #fff;
}

.topbar-logout button {
    background: none;
    border: 1px solid #4b5563;
    color: #d1d5db;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}

.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

h1 {
    margin-top: 0;
}

.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-card-centered {
    margin: 4rem auto;
}

.form-card label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.checkbox-row {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
}

input, select, button {
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

button {
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    width: fit-content;
}

button:hover {
    background: #1d4ed8;
}

.business-choice {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
}

.role-tag {
    color: #6b7280;
    font-size: 0.85rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #fff;
}

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

.inline-form {
    display: inline;
}

.error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.status {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

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

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-sub {
    color: #6b7280;
    font-size: 0.8rem;
}

.activation-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.activation-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}
