@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #060d1e;
    --green: #009b76;
    --ink: #1b2b43;
    --muted: #77869d;
    --line: #e3e8ef;
    --bg: #f5f7fa
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px 'DM Sans', Arial, sans-serif
}

a {
    color: var(--green);
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button,
.button {
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: white;
    padding: 13px 19px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap
}

button:hover,
.button:hover {
    filter: brightness(.94)
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #55d5ba;
    outline-offset: 3px
}

aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 265px;
    background: var(--navy);
    color: #c8d2e5;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    overflow-y: auto
}

.brand {
    display: flex;
    gap: 13px;
    align-items: center;
    color: white;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.6px
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .2px;
    color: #8fa4bd;
    margin-top: 5px
}

.logo {
    display: grid;
    place-items: center;
    background: #10bd91;
    color: #042a26;
    border-radius: 14px;
    width: 45px;
    height: 45px;
    flex-shrink: 0
}

.brand {
    padding: 0 7px
}

nav {
    margin-top: 30px;
    display: grid;
    gap: 4px
}

nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    color: #c3d0e4;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px
}

nav a span {
    font-size: 18px;
    color: #5be2be;
    width: 20px;
    text-align: center
}

nav a:hover,
nav a.active {
    background: #062b30;
    border-color: #075746;
    color: white
}

nav a.active {
    font-weight: 700
}

.sidebar-foot {
    margin-top: auto;
    padding: 30px 12px 0;
    font-size: 11px;
    color: #8d9db4
}

.sidebar-foot small {
    display: block;
    margin-top: 9px;
    color: #596d89
}

.workspace {
    margin-left: 265px
}

header {
    height: 77px;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    color: #506078
}

header>div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px
}

header form {
    display: inline
}

.role {
    color: var(--green)
}

.link {
    padding: 0;
    background: transparent
}

.danger {
    color: #e5556a
}

main {
    padding: 33px 35px;
    max-width: 1900px;
    margin: auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 5px 0 29px
}

h1 {
    font: 800 29px 'Manrope', Arial;
    margin: 0 0 7px;
    letter-spacing: -1px
}

h2 {
    font: 800 17px 'Manrope', Arial;
    margin: 0;
    letter-spacing: -.4px
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

.card {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
    overflow: hidden;
    margin-bottom: 24px
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    gap: 15px
}

.filters {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px 23px
}

.filters label {
    flex: 1;
    min-width: 135px
}

.filters button {
    height: 42px
}

.quiet {
    padding: 12px 0;
    font-size: 12px;
    color: var(--muted)
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #52637b
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d5deea;
    border-radius: 7px;
    background: white;
    color: var(--ink);
    padding: 11px 12px;
    min-width: 0
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #b7e9dc;
    border-color: var(--green)
}

input::placeholder,
textarea::placeholder {
    color: #a0abba
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px
}

.metrics article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px
}

.metrics article>span {
    font-size: 12px;
    color: #687a91
}

.metrics strong {
    display: block;
    font: 800 26px 'Manrope';
    letter-spacing: -1px;
    margin: 12px 0
}

.metrics small {
    font-size: 11px;
    color: var(--muted)
}

.metrics em {
    font: 400 12px 'DM Sans';
    letter-spacing: 0;
    color: var(--muted)
}

.metrics article:first-child {
    border-top: 3px solid var(--green)
}

.metrics a {
    font-size: 12px
}

.welcome {
    padding: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: linear-gradient(110deg, #ecfaf5, #fff)
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: 800;
    color: var(--green)
}

.welcome h2 {
    font-size: 22px;
    margin: 9px 0
}

.welcome p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 0
}

.secondary {
    background: #edf6f3;
    color: #007c60;
    border: 1px solid #cfe7df
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px
}

th {
    background: #f7f9fc;
    color: #6e8099;
    font-size: 11px;
    font-weight: 700;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

td {
    padding: 19px 22px;
    border-bottom: 1px solid var(--line);
    line-height: 1.5
}

tbody tr:last-child td {
    border-bottom: 0
}

td small {
    display: block;
    color: #8b9ab0;
    font-size: 11px;
    margin-top: 5px
}

.strong {
    font-weight: 700
}

.num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

tfoot {
    font-weight: 700;
    background: #f3f8f6
}

.badge {
    display: inline-block;
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    background: #edf0f5;
    color: #68798e;
    white-space: nowrap
}

.badge.posted {
    color: #008766;
    background: #e8faf3
}

.badge.pending {
    color: #a67419;
    background: #fff5da
}

.badge.rejected,
.badge.void {
    color: #bd5160;
    background: #fcecef
}

.empty {
    text-align: center;
    padding: 55px 20px;
    color: var(--muted)
}

.empty b {
    display: block;
    color: #54677d
}

.muted {
    color: var(--muted);
    line-height: 1.6
}

.small {
    font-size: 12px
}

.form-card {
    padding: 27px
}

.form-card h2 {
    margin-bottom: 18px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px
}

.section-rule {
    height: 1px;
    background: var(--line);
    margin: 28px 0
}

.wide {
    margin-top: 25px
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px
}

.form-footer span {
    font-size: 12px
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.stack h2 {
    margin-bottom: 0
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.report-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    gap: 15px;
    font-size: 13px
}

.report-row.total {
    border: 0;
    font-weight: 700;
    color: var(--green);
    padding-top: 20px
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 12px 0 27px
}

.detail-grid small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px
}

.detail-grid b {
    font-weight: 500
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0
}

.inline {
    display: flex;
    align-items: center;
    gap: 10px
}

.alert {
    padding: 15px 20px;
    border: 1px solid #dce6ec;
    border-radius: 9px;
    background: #edf3f8;
    margin-bottom: 22px;
    line-height: 1.6;
    font-size: 13px
}

.error {
    background: #fff0f1;
    color: #aa3548;
    border-color: #f4cbd1
}

.success {
    background: #ecfaf4;
    color: #057e5f;
    border-color: #c9ecdf
}

details {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 12px
}

footer {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #95a1b3;
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.auth {
    max-width: 440px;
    margin: 7vh auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px
}

.auth .brand {
    color: var(--ink);
    padding: 0;
    margin-bottom: 35px
}

.auth h1 {
    font-size: 25px
}

.auth form {
    margin-top: 25px
}

[hidden] {
    display: none !important
}

#journal-total {
    display: inline-block;
    padding: 14px;
    font-size: 12px
}

@media(min-width:1600px) {
    aside {
        width: 290px;
        padding: 32px 22px
    }

    .workspace {
        margin-left: 290px
    }

    main {
        padding: 40px
    }

    nav a {
        padding: 13px 16px;
        font-size: 14px
    }
}

@media(max-width:1150px) {
    aside {
        width: 220px
    }

    .workspace {
        margin-left: 220px
    }

    main {
        padding: 25px 22px
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr)
    }

    .form-grid {
        grid-template-columns: 1fr 1fr
    }

    .split {
        grid-template-columns: 1fr
    }

    .report-grid {
        grid-template-columns: 1fr
    }

    header {
        padding: 0 22px
    }

    .brand {
        font-size: 18px
    }

    .brand small {
        font-size: 9px
    }
}

@media(max-width:720px) {
    aside {
        position: static;
        width: auto;
        padding: 18px
    }

    aside nav {
        display: flex;
        overflow: auto;
        margin-top: 17px;
        gap: 5px
    }

    nav a {
        white-space: nowrap;
        padding: 8px 12px
    }

    nav a span {
        display: none
    }

    .sidebar-foot {
        display: none
    }

    .workspace {
        margin-left: 0
    }

    header {
        height: auto;
        min-height: 60px;
        padding: 15px;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 12px
    }

    main {
        padding: 22px 15px
    }

    .page-heading {
        align-items: flex-start
    }

    h1 {
        font-size: 24px
    }

    .page-heading p {
        font-size: 12px
    }

    .page-heading .button {
        font-size: 11px;
        padding: 12px
    }

    .metrics {
        gap: 10px
    }

    .metrics article {
        padding: 16px
    }

    .metrics strong {
        font-size: 21px
    }

    .welcome {
        display: block
    }

    .welcome .button {
        margin-top: 20px
    }

    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr
    }

    .form-footer {
        display: block
    }

    .form-footer button {
        margin-top: 15px
    }

    .card-title {
        padding: 18px;
        flex-wrap: wrap
    }

    .filters {
        padding: 16px
    }

    .filters label {
        min-width: 120px
    }

    .form-card {
        padding: 20px
    }

    footer {
        gap: 15px
    }

    .auth {
        margin: 30px 15px
    }

    .inline {
        flex-wrap: wrap
    }
}

.auth .auth-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #f0f5f4;
    border-radius: 10px;
    margin: 0 0 26px
}

.auth .auth-tabs a {
    flex: 1;
    justify-content: center;
    color: #62758a;
    padding: 10px;
    border: 0;
    font-size: 14px
}

.auth .auth-tabs a.selected {
    background: white;
    color: var(--green);
    box-shadow: 0 1px 4px #163c2814;
    font-weight: 700
}

.auth .auth-tabs a:hover {
    color: var(--green);
    background: #e6f4ee
}

@media print {

    aside,
    header,
    .page-heading .button,
    .no-print,
    footer,
    .filters {
        display: none !important
    }

    .workspace {
        margin: 0
    }

    main {
        padding: 0
    }

    .card {
        box-shadow: none;
        break-inside: avoid
    }

    .report-grid {
        display: block
    }

    .table-wrap {
        overflow: visible
    }

    body {
        background: white;
        font-size: 11px
    }

    a {
        color: inherit
    }

    .page-heading {
        margin-bottom: 20px
    }
}