:root {
    --ink: #1b2744;
    --line: #d9e0ec;
    --accent: #16315f;
    --bg: #f4f6fa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: #16315f; }

header {
    background: #fff;
    border-bottom: 3px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

header nav { display: flex; gap: 16px; align-items: center; }

header form { margin: 0; }

main { padding: 24px; }

h1 { margin-top: 0; }

.toolbar, .filters, .summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-bottom: 16px;
}

label.inline { font-size: 13px; font-weight: 600; }

select, input[type="text"], input[type="email"], input[type="date"], input[type="file"], textarea {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

button, .button {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

button.secondary, .button.secondary { background: #5c6b82; }
button.danger { background: #8d1d1d; }

.messages { list-style: none; padding: 0; }
.messages li { padding: 10px 12px; margin-bottom: 8px; border-radius: 4px; background: #e7eefc; }
.messages li.success { background: #e8f6ee; }
.messages li.warning { background: #fff6df; }
.messages li.error { background: #fde8e8; }

table.detail { border-collapse: collapse; width: 100%; background: #fff; }
table.detail th, table.detail td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.detail th { width: 280px; background: #f7f9fc; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 16px; }

.badge-warn { color: #8d1d1d; font-weight: 700; }
.badge-new { color: #0b5f2a; font-weight: 700; }

.login-card {
    max-width: 420px;
    margin: 48px auto;
    background: #fff;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.dataTables_wrapper { background: #fff; padding: 12px; border: 1px solid var(--line); }
