* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #1d2733;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #0f5e9c;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: #17324d;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 24px;
}

.topbar a {
    color: #ffffff;
    margin-left: 16px;
}

.role {
    color: #cdd9e5;
    font-size: 13px;
    margin-left: 12px;
}

.container {
    margin: 32px auto;
    max-width: 920px;
    padding: 0 20px;
}

.container.wide {
    max-width: 1320px;
}

.panel,
.login-card {
    background: #ffffff;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    padding: 24px;
}

.login-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    width: min(420px, calc(100% - 32px));
}

h1 {
    font-size: 24px;
    margin: 0 0 8px;
}

.muted {
    color: #5d6b78;
    margin-top: 0;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input {
    border: 1px solid #b8c4d0;
    border-radius: 4px;
    font-size: 15px;
    height: 38px;
    padding: 8px 10px;
    width: 100%;
}

select {
    border: 1px solid #b8c4d0;
    border-radius: 4px;
    font-size: 15px;
    height: 38px;
    padding: 8px 10px;
    width: 100%;
}

button,
.button {
    background: #0f5e9c;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    height: 38px;
    line-height: 38px;
    padding: 0 16px;
}

form > label,
form > input,
form > select,
.login-card button {
    margin-top: 12px;
}

.filters {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr auto;
    margin-top: 20px;
}

.filters.compact {
    border-top: 1px solid #e1e7ed;
    margin-bottom: 18px;
    padding-top: 18px;
}

.report-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.table-wrap {
    overflow: auto;
}

table {
    border-collapse: collapse;
    min-width: 1400px;
    width: 100%;
}

th,
td {
    border: 1px solid #cfd8e3;
    font-size: 13px;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eaf0f6;
    font-weight: bold;
    white-space: nowrap;
}

.alert {
    border-radius: 4px;
    margin: 16px 0;
    padding: 10px 12px;
}

.alert.error {
    background: #fdecec;
    border: 1px solid #f0b7b7;
    color: #8c1f1f;
}

.alert.success {
    background: #eaf7ee;
    border: 1px solid #a8d8b4;
    color: #1f6b32;
}

@media (max-width: 760px) {
    .filters,
    .report-head {
        display: block;
    }

    .filters > *,
    .report-head .button {
        margin-top: 12px;
    }
}
