* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f6f7fb;
    color: #1f2937;
}
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}
.topbar {
    background: #0f172a;
    color: #fff;
    padding: 14px 0;
}
.brand {
    font-weight: 700;
    font-size: 18px;
}
.nav {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
h1, h2 {
    margin-top: 24px;
}
.card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    max-width: 480px;
}
.card.wide {
    max-width: 100%;
}
.card label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}
input[type="text"], input[type="password"], input[type="email"], select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
label input, label select {
    margin-top: 6px;
}
button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}
button.danger {
    background: #dc2626;
}
.link {
    display: inline-block;
    margin-top: 10px;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    word-break: break-all;
}
.pre {
    margin: 0;
    white-space: pre-wrap;
}
.alert {
    margin: 16px 0;
    padding: 10px 12px;
    border-radius: 6px;
}
.alert.success {
    background: #dcfce7;
    color: #166534;
}
.alert.error {
    background: #fee2e2;
    color: #991b1b;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.stat {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.stat-block {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}
.stat-block h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}
.stat-block h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}
.stat-group {
    margin-bottom: 16px;
}
.stat-group h2 {
    margin-top: 0;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
}
.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}
.table-wrap {
    overflow: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.table th, .table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
.table th {
    background: #f1f5f9;
    text-align: left;
}
.inline {
    display: inline-block;
    margin-right: 6px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.report-list {
    list-style: none;
    padding: 0;
}
.report-list li {
    margin-bottom: 8px;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
}
.list {
    padding-left: 18px;
}
