* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #222;
    background: #f4f5f7;
}
a { color: #1a6fb5; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-bottom: 2px solid #4aa3df;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.topbar .brand { font-weight: bold; font-size: 18px; color: #1a6fb5; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.topbar nav a { padding: 4px 6px; border-radius: 3px; }
.topbar nav a.active { background: #eaf4fc; font-weight: bold; }
.topbar .user { font-size: 12px; color: #666; white-space: nowrap; }

.content { padding: 20px; max-width: 1200px; margin: 0 auto; }

h1 { font-size: 20px; margin-top: 0; }

table.grid { border-collapse: collapse; width: 100%; background: #fff; }
table.grid th, table.grid td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}
table.grid th { background: #f79320; color: #fff; }
table.grid tr:nth-child(even) { background: #fafafa; }
table.grid tr:hover { background: #eef7ff; }

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}
.card h2 { font-size: 15px; margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 8px; }

form.inline-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 12px;
    color: #555;
}
form.inline-form input, form.inline-form select, form.inline-form textarea {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-top: 3px;
    font-weight: normal;
    color: #222;
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 200px; }

button, .btn {
    background: #1a6fb5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}
button:hover, .btn:hover { background: #14588f; text-decoration: none; }
button.secondary, .btn.secondary { background: #888; }
button.danger, .btn.danger { background: #c0392b; }

.error { color: #c0392b; font-weight: bold; }
.ok { color: #2c8c4e; font-weight: bold; }
.muted { color: #888; font-size: 12px; }
.right { text-align: right; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 3px; background: #eee; font-size: 11px; margin-right: 4px; }

.tabs { display: flex; gap: 4px; margin-bottom: 0; border-bottom: 1px solid #ddd; }
.tabs a { padding: 8px 14px; background: #eee; border: 1px solid #ddd; border-bottom: none; border-radius: 4px 4px 0 0; }
.tabs a.active { background: #fff; font-weight: bold; }
.tab-panel { background: #fff; border: 1px solid #ddd; padding: 16px; }

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 30px;
    width: 300px;
}
.login-box h1 { text-align: center; color: #1a6fb5; }
.login-box label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: bold; color: #555; }
.login-box input { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 3px; }
.login-box button { width: 100%; margin-top: 10px; }
