body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #1f2933;
}

header {
    background: #111827;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
}

main {
    padding: 24px;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}

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

.metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.metric strong {
    display: block;
    font-size: 24px;
    margin-top: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f9fafb;
    font-weight: 600;
}

input, select, button {
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

button {
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.small {
    color: #6b7280;
    font-size: 13px;
}

.nowrap {
    white-space: nowrap;
}
