:root {
    --bg: white;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --primary: #376c99;
    --primaryHover: #158fc5;
    --radius: 14px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.title {
    text-align: center;
    font-size: 26px;
    margin: 8px 0 18px;
    letter-spacing: .2px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    outline: none;
}

select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

select:focus {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.btn {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    width: fit-content;
    align-items: center;
    text-decoration: auto;
}

.btn:hover {
    background: var(--primaryHover);
}

.btn:active {
    transform: translateY(1px);
}

.hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.tableWrap {
    margin-top: 16px;
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    /* allows horizontal scroll on small screens */
}

thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
    padding: 12px 12px;
    color: #111827;
}

tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 22px 12px;
}

/* badges for DA / NU */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.badgeYes {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.badgeNo {
    color: #7c2d12;
    background: #fff7ed;
    border-color: #fed7aa;
}

@media (max-width: 900px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}