
:root {
    --navy: #071d43;
    --blue: #0766bb;
    --cyan: #08bce8;
    --ink: #0b234b;
    --muted: #5f6f83;
    --border: #e0e9f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f8fc;
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
}

h1, h2, h3 {
    font-family: Manrope, Arial, sans-serif;
    letter-spacing: -.035em;
}

a {
    text-decoration: none;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 256px;
    flex-shrink: 0;
    background: linear-gradient(165deg, #071d43, #082c5b);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
}

.sidebar-top {
    background: white;
    border-radius: 12px;
    padding: 15px 12px;
    text-align: center;
}

.brand {
    width: 185px;
    max-width: 100%;
    height: auto;
}

.side-caption {
    color: #5f6f83;
    font-size: 9px;
    letter-spacing: .16em;
    margin-top: 4px;
    font-weight: 700;
}

.sidebar nav {
    padding-top: 35px;
}

.nav-label {
    color: #70c7e8;
    font-size: 10px;
    letter-spacing: .17em;
    font-weight: 800;
    margin: 17px 12px 11px;
}

.side-link {
    display: block;
    color: #f3f8ff;
    border-radius: 9px;
    padding: 13px 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.side-link:hover {
    background: #164779;
}

.side-link.muted {
    color: #9caec6;
    cursor: default;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 25px 10px 0;
    color: #a8c8e8;
    font-size: 12px;
    font-style: italic;
    line-height: 1.7;
}

.main-area {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 76px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
}

.topbar-title {
    font-weight: 800;
}

.dot {
    color: var(--cyan);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.username {
    color: var(--muted);
    font-size: 13px;
}

.text-button {
    background: none;
    border: 0;
    color: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.content {
    max-width: 1350px;
    margin: auto;
    padding: 38px 36px 55px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.eyebrow {
    color: #0787cb;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .16em;
    margin-bottom: 12px;
}

.page-heading h1 {
    font-size: 32px;
    margin: 0 0 7px;
}

.subheading {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.btn {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: white;
    padding: 13px 19px;
    border-radius: 9px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background: #004c95;
}

.outline-btn {
    border: 1px solid var(--border);
    background: white;
    border-radius: 9px;
    padding: 12px 16px;
    color: var(--blue);
    font-weight: 800;
}

.org-pill {
    display: inline-block;
    background: #e5f6fb;
    color: #0d6a9c;
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 22px;
}

.org-pill span {
    color: #68879c;
    font-weight: 500;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 23px;
    box-shadow: 0 4px 18px #07275208;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.metric-value {
    font: 800 clamp(19px, 2.2vw, 29px) Manrope, sans-serif;
    color: var(--navy);
    margin: 15px 0 8px;
    overflow-wrap: anywhere;
}

.metric-foot {
    font-size: 11px;
    color: #8191a4;
}

.feature-card {
    margin-top: 18px;
    border-radius: 17px;
    background: linear-gradient(115deg, #071d43, #0766bb);
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
}

.feature-card h2 {
    margin: 0 0 7px;
}

.feature-card .eyebrow {
    color: #66e4ff;
}

.feature-card .subheading {
    color: #c9e5f6;
}

.feature-value {
    font: 800 clamp(24px, 3vw, 42px) Manrope, sans-serif;
    white-space: nowrap;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 22px;
    box-shadow: 0 4px 18px #07275208;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-heading h2, .panel h2 {
    margin: 0;
    font-size: 18px;
}

.panel-heading span {
    color: var(--muted);
    font-size: 12px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    color: #63778f;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

td, th {
    padding: 13px 10px;
    border-bottom: 1px solid #eaf0f6;
}

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

.right {
    text-align: right;
}

.footnote {
    font-size: 12px;
    color: #8b98a8;
    margin-top: 25px;
}

.notice {
    background: #e9f9f3;
    border: 1px solid #a8e0c7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    color: #146747;
}

.notice.error {
    background: #fff2f2;
    border-color: #f3caca;
    color: #8b2424;
}

.upload-panel {
    max-width: 750px;
    background: white;
    border: 2px dashed #bdd6ed;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 4px 18px #07275208;
}

.upload-icon {
    background: #e5f6fb;
    border-radius: 14px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 30px;
    font-weight: 800;
}

.upload-panel h2 {
    margin: 18px 0 7px;
}

.upload-panel form {
    margin-top: 25px;
}

label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    margin: 18px 0 8px;
}

select,
input[type=file],
input[type=text],
input[type=password] {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #c9d8e8;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    font: inherit;
}

input:focus, select:focus {
    outline: 2px solid #a3eafa;
}

.upload-help {
    font-size: 12px;
    color: var(--muted);
    margin: 14px 0 22px;
}

.instructions {
    max-width: 750px;
}

.instructions p {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Login page */

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 10% 20%, #e6f7ff, transparent 40%),
        radial-gradient(circle at 95% 90%, #dceeff, transparent 40%),
        #f6faff;
    padding: 24px;
}

.login-card {
    width: min(440px, 100%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px;
    box-shadow: 0 20px 65px #07275214;
}

.login-logo {
    width: 230px;
    max-width: 100%;
    display: block;
    margin-bottom: 25px;
}

.login-card h1 {
    margin: 0 0 8px;
}

.login-card form {
    margin-top: 25px;
}

.full {
    width: 100%;
    margin-top: 25px;
}

.login-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em 0.45em;
    margin: 28px 0 0;
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.8;
    text-align: center;
}

.login-foot span:nth-child(1) {
    color: #0a7fd0;
}

.login-foot span:nth-child(2) {
    color: #0bb6e4;
}
.login-foot span:nth-child(3) {
    color: #075c9d;
}

.login-foot span:nth-child(4) {
    color: #09234f;
}

/* Center only the four login branding elements */

.login-card .login-logo {
    margin-left: auto;
    margin-right: auto;
}

.login-card > .eyebrow,
.login-card > h1,
.login-card > .subheading {
    text-align: center;
}

/* Responsive layout */

@media (max-width: 950px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        width: 210px;
    }

    .topbar {
        padding: 0 20px;
    }

    .content {
        padding: 25px 20px;
    }
}

@media (max-width: 640px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        width: auto;
        padding: 12px;
    }

    .sidebar-top {
        max-width: 200px;
    }

    .sidebar nav {
        padding-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-label, .sidebar-bottom {
        display: none;
    }

    .side-link {
        padding: 9px;
    }

    .topbar {
        height: 62px;
    }

    .topbar-title {
        font-size: 12px;
    }

    .username {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .metric-card {
        padding: 14px;
    }

    .feature-card {
        display: block;
    }

    .feature-value {
        margin-top: 16px;
    }

    .upload-panel {
        padding: 20px;
    }
}
