:root {
    --bg: #111827;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #d4a017;
    --danger: #dc2626;
    --success: #15803d;
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: var(--text);
}
.topbar {
    background: var(--bg);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; margin-right: 14px; }
.brand { font-weight: 700; }
.container { max-width: 1280px; margin: 24px auto; padding: 0 16px 32px; }
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 18px;
    margin-bottom: 18px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { font-size: 28px; font-weight: 700; margin-top: 8px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box;
}
textarea { min-height: 90px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f9fafb; }
.btn {
    display: inline-block; padding: 10px 14px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer;
    background: #111827; color: #fff; font-weight: 600;
}
.btn.secondary { background: #4b5563; }
.btn.gold { background: var(--accent); color: #111827; }
.btn.green { background: var(--success); }
.btn.red { background: var(--danger); }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.badge.gray { background: #6b7280; }
.badge.orange { background: #ea580c; }
.badge.blue { background: #2563eb; }
.badge.green { background: #15803d; }
.badge.red { background: #dc2626; }
.badge.purple { background: #7c3aed; }
.badge.teal { background: #0f766e; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.login-box { max-width: 420px; margin: 60px auto; }
.small { color: var(--muted); font-size: 13px; }
.inline-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.inline-grid.wide-grid { grid-template-columns: 2fr .8fr .9fr 1fr 1.1fr 1fr 1fr; }
.section-title { margin: 0 0 12px; }
.compact-form { display: grid; gap: 8px; min-width: 220px; }
@media (max-width: 900px) {
    .inline-grid,
    .inline-grid.wide-grid { grid-template-columns: 1fr; }
}
