@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --report-ink: #1b3038;
    --report-muted: #63777d;
    --report-line: #d8e4e1;
    --report-paper: #ffffff;
    --report-canvas: #f2f7f5;
    --report-teal: #087e79;
    --report-teal-dark: #06645f;
    --report-mint: #e8f3f0;
    --report-yellow: #f5cf4b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px 24px 64px;
    background: linear-gradient(135deg, #f9fbfa, var(--report-canvas));
    color: var(--report-ink);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    color: var(--report-ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.3;
}

h1 {
    font-size: 28px;
    margin: 0 0 18px;
}

h2 {
    font-size: 21px;
    margin: 24px 0 14px;
}

h3 {
    font-size: 17px;
}

a {
    color: var(--report-teal-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--report-teal);
}

button,
input[type="submit"],
input[type="button"] {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #08736e;
    border-radius: 5px;
    background: var(--report-teal);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    border-color: #055e59;
    background: #066d68;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(1px);
}

input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #bdceca;
    border-radius: 4px;
    background: #fff;
    color: var(--report-ink);
    font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--report-teal);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(8, 126, 121, 0.3);
    outline-offset: 2px;
}

label {
    color: #435a61;
    font-weight: 600;
}

table {
    width: 100%;
    margin: 14px 0 20px;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--report-line);
    border-radius: 6px;
    background: var(--report-paper);
    font-size: 14px;
}

th,
td {
    padding: 10px 12px;
    border: 0 !important;
    border-bottom: 1px solid #e6eeeb !important;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f0f6f4;
    color: #4d6268;
    font-size: 12px;
    font-weight: 700;
}

tbody tr:last-child td {
    border-bottom: 0 !important;
}

tbody tr:hover td {
    background-color: #f8fbfa;
}

form {
    margin: 12px 0;
}

form p {
    margin: 8px 0;
}

.errors,
.alert-danger {
    padding: 10px 13px;
    border: 1px solid #e5bfb5;
    border-left: 4px solid #bd4d36;
    border-radius: 4px;
    background: #fff7f4;
    color: #813b2b;
}

.report-home {
    width: min(1060px, 100%);
    margin: 0 auto;
    padding: 18px 0 38px;
}

.report-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 0 2px 21px;
    border-bottom: 1px solid var(--report-line);
}

.report-home-eyebrow {
    margin: 0 0 7px;
    color: var(--report-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.report-home h1 {
    margin: 0;
    font-size: 30px;
}

.report-home-user {
    margin: 0;
    color: var(--report-muted);
    font-size: 13px;
}

.report-home-user strong {
    color: var(--report-ink);
    font-weight: 600;
}

.report-home-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 42px;
}

.report-home-section {
    min-width: 0;
}

.report-home-section h2 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--report-line);
    color: var(--report-muted);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.report-home-nav {
    display: grid;
}

.report-home-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 10px 2px;
    border-bottom: 1px solid #e4ece9;
    color: var(--report-ink);
    font-weight: 600;
    text-decoration: none;
}

.report-home-nav a::after {
    color: #829894;
    content: '\2192';
    font-size: 18px;
    font-weight: 400;
    transition: color 140ms ease, transform 140ms ease;
}

.report-home-nav a:hover {
    color: var(--report-teal-dark);
}

.report-home-nav a:hover::after {
    color: var(--report-teal);
    transform: translateX(3px);
}

.report-home-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.report-home-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--report-line);
    border-radius: 5px;
    background: #fff;
    color: var(--report-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.report-home-footer a:hover {
    border-color: #d7aaa0;
    color: #9b4333;
}

.view-home {
    width: min(1180px, 100%);
    margin: 0 auto 20px;
}

.view-home a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid var(--report-line);
    border-radius: 5px;
    background: #fff;
    color: var(--report-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.view-home a:hover {
    border-color: #a8cbc4;
    color: var(--report-teal-dark);
}

.login-shell {
    width: min(430px, 100%);
    margin: 8vh auto 0;
}

.login-brand {
    margin: 0 0 7px;
    color: var(--report-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-shell h1 {
    margin-bottom: 22px;
}

.login-panel {
    padding: 24px;
    border: 1px solid var(--report-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 43, 53, 0.06);
}

.login-panel form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.login-panel label {
    margin-top: 8px;
}

.login-panel input:not([type="submit"]) {
    width: 100%;
}

.login-panel button {
    width: 100%;
    margin-top: 14px;
}

@media (max-width: 680px) {
    body {
        padding: 20px 14px 52px;
    }

    .report-home-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 21px;
    }

    .report-home h1 {
        font-size: 25px;
    }

    .report-home-sections {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .login-shell {
        margin-top: 5vh;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}