/* Minimal admin styling — no framework. Kept small so the whole SPA
   bundle stays under ~20 KB. */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    color: #111827;
    background: #f9fafb;
}
header {
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h1 { font-size: 18px; margin: 0; }
.userbar { display: flex; gap: 12px; align-items: center; font-size: 14px; }
main { padding: 24px; max-width: 1200px; margin: 0 auto; }

button {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
button:hover { background: #f3f4f6; }
button.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    padding: 10px 20px;
    font-size: 16px;
}
button.primary:hover { background: #1d4ed8; }

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.tabs button {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 20px;
    margin-bottom: -2px;
    background: none;
    color: #6b7280;
}
.tabs button.active {
    color: #1f2937;
    border-bottom-color: #2563eb;
    font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

table.rows {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
table.rows th, table.rows td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
table.rows th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
table.rows td.num, table.rows th.num { text-align: right; }
table.rows tr:last-child td { border-bottom: none; }
td.empty { text-align: center; color: #9ca3af; padding: 40px; }

code {
    font-family: "SFMono-Regular", Menlo, monospace;
    font-size: 13px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
}

.muted { color: #6b7280; font-size: 14px; }

.badge-legacy { color: #6b7280; }
.badge-new    { color: #059669; font-weight: 600; }

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0;
}
.loading { padding: 60px; text-align: center; color: #6b7280; }
