* { box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    background: #F1F1F2;
    color: #1f2430;
}
.topbar {
    background: #FFFFFF;
    color: #262425;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #e5e7eb;
}
.topbar nav a {
    color: #262425;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}
.topbar nav a:hover { color: #B10505; }
.container { max-width: 1000px; margin: 24px auto; padding: 0 20px; }
.flash {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; color: #374151; }
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
th { background: #f9fafb; color: #6b7280; font-weight: 600; }
.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #B10505;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn.secondary { background: #6b7280; }
.btn.danger { background: #dc2626; }
.actions a, .actions button { margin-right: 6px; }
form.card, .card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    max-width: 500px;
}
label { display: block; margin-top: 6px; font-size: 13px; color: #374151; font-weight: 600; }
input, select, textarea {
    width: 100%;
    padding: 6px 10px;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.cards-row { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card {
    background: white;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    min-width: 180px;
}
.stat-card .value { font-size: 26px; font-weight: 700; color: #2563eb; }
.stat-card .label { font-size: 13px; color: #6b7280; margin-top: 4px; }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.low { background: #fee2e2; color: #991b1b; }
.badge.ok { background: #dcfce7; color: #166534; }
