* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
    background: #f5f6f8;
    color: #1c1e21;
    margin: 0;
}
header {
    background: #1c2b3a;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header a { color: #fff; text-decoration: none; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { color: #555; font-weight: 600; font-size: 13px; text-transform: uppercase; }
a.button, button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
button.secondary, a.button.secondary { background: #6b7280; }
button.danger, a.button.danger { background: #dc2626; }
input, select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}
label { font-size: 13px; color: #444; font-weight: 600; }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge.nacitane { background: #fef3c7; color: #92400e; }
.badge.analyzovane { background: #dbeafe; color: #1e40af; }
.badge.potvrdene { background: #dcfce7; color: #166534; }
.badge.exportovane, .badge.zapisane_do_odoo { background: #ede9fe; color: #5b21b6; }
.badge.chyba { background: #fee2e2; color: #991b1b; }
.badge.otvorena { background: #dbeafe; color: #1e40af; }
.badge.hotova { background: #dcfce7; color: #166534; }
.chyba-text { color: #dc2626; margin-bottom: 10px; }
.muted { color: #6b7280; font-size: 13px; }
