:root {
    color-scheme: light;
    --bg: #f5f7f8;
    --surface: #ffffff;
    --text: #18222f;
    --muted: #657386;
    --line: #dce3ea;
    --brand: #126b61;
    --brand-dark: #0d514a;
    --accent: #c56b2c;
    --danger: #b42318;
    --danger-bg: #fff0ed;
    --ok-bg: #eaf7ef;
    --ok-text: #17633a;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    align-items: center;
    background: #17313b;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 112px;
    padding: 24px clamp(18px, 4vw, 48px);
}

.eyebrow {
    color: #a9c9c3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

h1,
h2 {
    letter-spacing: 0;
    margin: 0;
}

h1 {
    font-size: clamp(28px, 4vw, 42px);
}

h2 {
    font-size: 21px;
}

.topbar__meta {
    align-items: center;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar__meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #d9eeee;
    font-size: 13px;
    padding: 7px 11px;
}

.topbar__meta form {
    margin: 0;
}

.topbar__button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    min-height: 34px;
    padding: 6px 10px;
}

.login-page {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(24, 34, 47, 0.12);
    margin: 0 auto;
    max-width: 420px;
    padding: 28px;
    width: 100%;
}

.login-panel h1 {
    color: var(--text);
    font-size: 30px;
    margin-bottom: 20px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.layout {
    display: grid;
    gap: 22px;
    margin: 0 auto;
    max-width: 1280px;
    padding: 28px clamp(14px, 4vw, 36px) 48px;
}

a {
    color: #0d514a;
}

.tabs {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 10px clamp(14px, 4vw, 36px);
}

.tabs a {
    border-radius: 6px;
    color: #344457;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    text-decoration: none;
}

.tabs a:hover,
.tabs a.is-active {
    background: #e8f3f1;
    color: var(--brand-dark);
}

.panel,
.summary-grid>div,
.notice,
.alert {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    overflow: hidden;
}

.panel__header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
}

.panel__tools {
    align-items: center;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.panel__header span {
    color: var(--muted);
    font-size: 14px;
}

.form-grid,
.filters {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filters {
    align-items: end;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 180px 180px 260px 260px auto;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    min-height: 42px;
    padding: 9px 10px;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 107, 97, 0.14);
    outline: none;
}

.form-grid__wide {
    grid-column: span 3;
}

.form-grid__actions,
.filters__actions {
    align-items: end;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button,
.filters__actions a {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
}

button {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #ffffff;
    cursor: pointer;
}

button:hover {
    background: var(--brand-dark);
}

.filters__actions a {
    border: 1px solid var(--line);
    color: var(--text);
}

.button-link {
    background: transparent;
    border: 0;
    color: var(--danger);
    min-height: auto;
    padding: 0;
}

.button-link:hover {
    background: transparent;
    color: #7a1510;
}

.plain-link {
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.plain-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.row-actions {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-grid>div {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 18px;
}

.summary-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.summary-grid strong {
    color: var(--brand-dark);
    font-size: 30px;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafb;
    color: #455468;
    font-size: 12px;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    z-index: 1;
}

td {
    font-size: 13px;
}

tbody tr:nth-child(even) {
    background: #fbfcfd;
}

tbody tr:hover {
    background: #eef7f5;
}

td strong {
    color: var(--brand-dark);
}

.empty {
    color: var(--muted);
    padding: 26px;
    text-align: center;
}

.notice,
.alert {
    padding: 14px 16px;
}

.notice {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.alert {
    background: var(--danger-bg);
    color: var(--danger);
}

.alert p {
    margin: 0;
}

@media (max-width: 900px) {

    .topbar,
    .panel__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .form-grid,
    .filters,
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid__wide {
        grid-column: span 2;
    }
}
.password-reset-form {
    max-width: 420px;
    margin: 30px auto;
    padding: 25px;
}
.password-reset-form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 620px) {

    .form-grid,
    .filters,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-grid__wide {
        grid-column: auto;
    }
}