:root {
    --teal: #123f39;
    --green: #176454;
    --gold: #c8a66b;
    --ink: #1d322d;
    --muted: #75837f;
    --line: #e4e9e6;
    --bg: #f4f6f3;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--ink);
    font-size: 14px;
}
a {
    color: var(--green);
    text-decoration: none;
}
button, .button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    padding: 11px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease;
}
button:hover, .button:hover {
    filter: brightness(1.1);
}
button:disabled, .button:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 252px;
    background: #103d36;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 42px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #b6cfc6;
    margin-top: 4px;
}
.crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 55px;
    border: 1px solid #bfa576;
    color: #ddc395;
    font-family: Georgia, serif;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 77%, 50% 100%, 0 77%);
    background: #ffffff0b;
}
.nav-caption {
    font-size: 11px;
    color: #8caf9f;
    padding: 10px 12px;
}
nav a {
    display: flex;
    gap: 12px;
    color: #c3d6ce;
    padding: 14px 12px;
    border-radius: 9px;
    margin: 5px 0;
}
nav a span {
    width: 20px;
    color: #93b3a3;
    font-size: 19px;
}
.selected {
    background: #ffffff12;
    border-right: 3px solid var(--gold);
    color: white;
}
nav a:hover {
    background: #ffffff0b;
}
.sidebar-bottom {
    margin-top: auto;
    font-size: 11px;
    color: #a9c2b7;
    line-height: 2;
}
.sidebar-bottom small {
    color: #6f9c8b;
}
.dot {
    display: inline-block;
    background: #87b789;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 5px;
}
main {
    margin-right: 252px;
}
header {
    height: 90px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 38px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--muted);
    margin-bottom: 8px;
}
.user {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}
.user small, td small, a small, .list-row small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}
.avatar {
    background: #edf3ef;
    color: var(--green);
    height: 36px;
    width: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.ghost {
    background: transparent;
    color: var(--muted);
    padding: 7px;
}
.content {
    padding: 32px 38px 50px;
    max-width: 1600px;
    margin: auto;
}
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 28px;
}
.page-title h1 {
    font-size: 28px;
    margin: 6px 0 10px;
    font-weight: 650;
}
.muted {
    color: var(--muted);
    line-height: 1.8;
}
.page-title p {
    margin: 0;
    font-size: 12px;
}
.tag {
    font-size: 11px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    white-space: nowrap;
}
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    border-radius: 15px;
    background: linear-gradient(115deg, #225e4f, #103d36);
    color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
}
.hero .eyebrow {
    color: #d0ba8c;
}
.hero h2 {
    font-size: 25px;
    margin: 8px 0;
}
.hero p {
    color: #b8d0c4;
    font-size: 13px;
}
.hero-mark {
    font-size: 90px;
    font-weight: 800;
    font-family: Georgia, serif;
    color: #ffffff10;
    line-height: 1;
}
.hero-mark small {
    display: block;
    font-size: 17px;
    letter-spacing: 8px;
    text-align: center;
}
.light {
    background: #f6eee0;
    color: var(--teal);
    margin-top: 10px;
    font-size: 12px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 24px;
}
.stats article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 23px;
}
.stats span {
    font-size: 12px;
    color: var(--muted);
    display: block;
}
.stats strong {
    display: block;
    font-size: 27px;
    font-weight: 650;
    margin: 14px 0 8px;
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.stats small {
    color: #9aa69f;
    font-size: 10px;
}
.grid {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}
.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 22px;
    overflow: auto;
}
.grid > .panel {
    margin-bottom: 0;
}
.panel h2 {
    font-size: 16px;
    font-weight: 650;
    margin: 0 0 18px;
}
.panel h3 {
    font-size: 14px;
    margin: 20px 0;
}
.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.panel-title h2 {
    margin: 0;
}
.panel-title span, .panel-title a {
    font-size: 11px;
    color: var(--muted);
}
.budget-meter {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 25px;
    padding: 16px 0;
}
.ring {
    background: conic-gradient(var(--green) calc(var(--pct) * 1%), #edf1ec 0);
    height: 145px;
    width: 145px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
}
.ring:before {
    content: "";
    position: absolute;
    inset: 12px;
    background: white;
    border-radius: 50%;
}
.ring > * {
    z-index: 1;
}
.ring strong {
    font-size: 30px;
}
.ring span {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.legend {
    flex: 1;
    max-width: 245px;
}
.legend p {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend b {
    margin-right: auto;
    font-variant-numeric: tabular-nums;
}
.swatch {
    height: 8px;
    width: 8px;
    border-radius: 2px;
}
.teal {
    background: var(--green);
}
.gold {
    background: var(--gold);
}
.gray {
    background: #dce3d9;
}
.follow {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}
.follow:last-child {
    border: 0;
}
.follow strong {
    font-size: 25px;
    color: var(--green);
}
.follow small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 7px;
}
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.list-row:last-child {
    border: 0;
}
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 10px;
    background: #f2eee6;
    color: #92764a;
    white-space: nowrap;
}
.badge.approved, .badge.posted {
    background: #e8f3ed;
    color: #2e7657;
}
.badge.ordered {
    background: #eaf0f8;
    color: #446890;
}
.badge.cancelled {
    background: #fbecee;
    color: #a8505b;
}
.timeline {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 13px 0;
    font-size: 12px;
}
.timeline i {
    height: 7px;
    width: 7px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 6px;
}
.timeline small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
    direction: ltr;
    text-align: right;
}
.empty {
    text-align: center;
    color: #96a29a;
    padding: 40px !important;
    font-size: 12px;
}
.empty small {
    display: block;
    margin-top: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
th {
    background: #f6f8f5;
    text-align: right;
    color: #7c8a81;
    font-weight: 500;
    font-size: 11px;
}
td, th {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}
tfoot th {
    font-weight: 700;
    color: var(--ink);
}
td.numeric {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
form label {
    display: block;
    font-size: 12px;
    color: #5d7165;
    margin-bottom: 16px;
}
input, select, textarea {
    width: 100%;
    display: block;
    background: #fcfdfb;
    border: 1px solid #dce4dc;
    border-radius: 7px;
    padding: 11px;
    color: var(--ink);
    font: inherit;
    margin-top: 8px;
    min-width: 0;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #abcdb9;
    border-color: var(--green);
}
textarea {
    min-height: 85px;
    resize: vertical;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 20px;
}
.entry-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 30px;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-top: 15px;
}
.secondary {
    background: #edf2eb;
    color: var(--green);
}
.danger {
    background: #a75555;
}
.flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}
.success {
    background: #dfefe2;
    color: #246641;
}
.error {
    background: #fae7e5;
    color: #983e37;
}
.notice {
    background: #f9f4e9;
    color: #887044;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 2;
    margin: 15px 0;
}
summary {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
}
details[open] > summary {
    margin-bottom: 20px;
}
.inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.purchase-head {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}
.purchase-head h2 {
    margin-top: 18px;
}
.purchase-head small {
    color: var(--muted);
    font-size: 11px;
}
.steps {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    padding: 0 15px;
}
.steps span {
    color: var(--gold);
    font-weight: bold;
    font-size: 18px;
}
.steps b {
    display: inline-block;
    margin-right: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}
.pagination {
    margin-top: 20px;
}
footer {
    padding: 20px 38px;
    color: var(--muted);
    font-size: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
}
.login-body {
    min-height: 100vh;
    background: #f4f6f1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8vw;
    padding: 10vh 9vw;
}
.login-intro h1 {
    font-size: 38px;
    line-height: 1.6;
    font-weight: 650;
}
.login-intro p {
    color: var(--muted);
    line-height: 2.2;
    margin: 20px 0 35px;
}
.large {
    width: 70px;
    height: 80px;
    background: var(--teal);
    font-size: 23px;
    margin-bottom: 35px;
}
.login-card {
    padding: 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 20px 60px #2747360a;
}
.login-card h2 {
    font-size: 25px;
}
.login-card p {
    font-size: 12px;
    margin-bottom: 30px;
}
.login-card button {
    width: 100%;
    margin: 12px 0 25px;
}
.login-card small {
    font-size: 10px;
}
.login-intro .eyebrow {
    color: #af9567;
}
@media (max-width: 1100px) {
    .sidebar {
        width: 205px;
        padding: 25px 14px;
    }
    main {
        margin-right: 205px;
    }
    .content {
        padding: 25px;
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .budget-meter {
        flex-wrap: wrap;
    }
    .two {
        grid-template-columns: 1fr;
    }
    .entry-row {
        grid-template-columns: repeat(2, 1fr);
    }
    header {
        padding: 0 25px;
    }
    .hero-mark {
        font-size: 60px;
    }
    .login-body {
        gap: 5vw;
        padding: 6vw;
    }
}
@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 16px;
    }
    .brand {
        padding-bottom: 12px;
    }
    nav {
        display: flex;
        overflow: auto;
        gap: 8px;
    }
    nav a {
        white-space: nowrap;
        padding: 8px;
        font-size: 11px;
    }
    nav a span, .nav-caption, .sidebar-bottom {
        display: none;
    }
    main {
        margin: 0;
    }
    header {
        height: 75px;
        padding: 0 16px;
    }
    .content {
        padding: 20px 15px;
    }
    .page-title h1 {
        font-size: 23px;
    }
    .page-title .tag {
        display: none;
    }
    .hero {
        padding: 23px;
    }
    .hero h2 {
        font-size: 20px;
    }
    .hero-mark {
        display: none;
    }
    .stats {
        gap: 10px;
    }
    .stats article {
        padding: 16px;
    }
    .stats strong {
        font-size: 22px;
    }
    .panel {
        padding: 18px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        overflow: auto;
        gap: 15px;
    }
    .steps span {
        white-space: nowrap;
    }
    .purchase-head {
        display: block;
    }
    .login-body {
        display: block;
        padding: 30px 20px;
    }
    .login-intro {
        display: none;
    }
    .login-card {
        padding: 30px;
    }
    footer {
        display: block;
        line-height: 2;
    }
    .user form {
        display: none;
    }
}
@media print {
    .sidebar, header, footer, form, button, .page-title .tag {
        display: none !important;
    }
    main {
        margin: 0;
    }
    .content {
        padding: 0;
    }
    .panel, .stats article {
        break-inside: avoid;
        box-shadow: none;
    }
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
    body {
        background: white;
    }
}
