* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2430;
}

.topbar {
    background: #1f2a44;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.topbar .brand a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.topbar nav a {
    color: #cfd8ea;
    text-decoration: none;
    margin-right: 16px;
    font-size: 0.92rem;
}

.topbar nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

h2 {
    font-size: 1.15rem;
    margin-top: 24px;
}

.table-scroll {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

table.grid {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    font-size: 0.92rem;
}

table.grid th, table.grid td {
    border: 1px solid #e2e5eb;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
}

table.grid thead th {
    background: #eef1f6;
    position: sticky;
    top: 0;
}

table.grid td.row-title {
    font-weight: 600;
    background: #fafbfc;
}

table.grid td.row-total {
    font-weight: 600;
}

td.has-users {
    color: #1f5d3a;
    font-weight: 600;
}

td.no-users {
    color: #a7adb8;
}

form.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

select, input[type="text"], input[type="file"] {
    padding: 6px 10px;
    border: 1px solid #ccd2dc;
    border-radius: 6px;
    font-size: 0.95rem;
}

button {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: #2f5fdc;
    color: #fff;
    cursor: pointer;
    font-size: 0.92rem;
}

button:hover {
    background: #274ec0;
}

button.danger {
    background: #c0392b;
    padding: 4px 10px;
    font-size: 0.85rem;
}

button.danger:hover {
    background: #a5301f;
}

.hint {
    background: #fff;
    border: 1px dashed #ccd2dc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #4a5262;
}

.hint pre {
    background: #f1f3f7;
    padding: 8px 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.hint-text {
    color: #4a5262;
    font-size: 0.92rem;
}

p.success {
    background: #e5f5ea;
    color: #1f5d3a;
    padding: 10px 14px;
    border-radius: 6px;
}

p.error {
    background: #fbe7e5;
    color: #a5301f;
    padding: 10px 14px;
    border-radius: 6px;
}

.columns {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.columns section {
    flex: 1 1 320px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.footer {
    text-align: center;
    color: #8a90a0;
    font-size: 0.8rem;
    padding: 24px;
}
