@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100;400;500;900&display=swap');


:root {
    --brand: #546A2A;
    --accent: #715232;
    --bg: #FFFFFF;
    --text: #222;
    --muted: #777;
    --error: #b42318;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0; font-family: 'Jost', sans-serif; background: var(--bg); color: var(--text);
}
h1, h2 {
    font-weight: 900;
}
h3, h4 {
    font-weight: 500;
}
a {
    color: var(--brand);
}

.topbar {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
    padding: .8rem 1.5rem; background: var(--brand); color: #fff;
}
.topbar nav {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.topbar a, .topbar .link {
    color: #fff; text-decoration: none;
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem;
}
.page-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.card {
    background: #fff; border-radius: 8px; padding: 1.2rem; margin-bottom: 1rem; box-shadow: 0 1px 3px #0002;
}
.narrow {
    max-width: 420px; margin: 3rem auto;
}
.narrow h1 {
    margin-top: 0; text-align: center;
}
.narrow button {
    width: 100%; margin-top: .5rem;
}
.grid-2 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem;
}

.kpis {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1rem;
}
.kpi {
    background: #fff; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px #0002;
}
.kpi span {
    display: block; color: var(--muted); font-size: .9rem;
}
.kpi strong {
    font-size: 1.4rem;
}

table {
    width: 100%; border-collapse: collapse; background: #fff; display: block; overflow-x: auto;
}
th, td {
    padding: .6rem; text-align: left; border-bottom: 1px solid #eee; white-space: nowrap;
}
tr.inactive td {
    color: var(--muted); text-decoration: line-through;
}
.form label {
    display: block; margin-bottom: 1rem;
}
.form input, .form select, .form textarea, .filters input, .filters select {
    display: block; width: 100%; padding: .5rem; margin-top: .3rem; border: 1px solid #ccc; border-radius: 4px; font: inherit;
}
.filters {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem;
}
.filters input, .filters select {
    width: auto; margin: 0;
}
.check {
    display: inline-flex !important; gap: .4rem; align-items: center;
}
.check input {
    width: auto; display: inline; margin: 0;
}
fieldset {
    border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem;
}

button, .button {
    background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: .55rem 1rem;
    font: inherit; cursor: pointer; text-decoration: none; display: inline-block;
}
button.link {
    background: none; color: var(--brand); padding: 0; text-decoration: underline;
}
button.danger {
    color: var(--error);
}
.inline {
    display: inline;
}
.actions {
    display: flex; gap: 1rem; align-items: center;
}

.flash {
    padding: .8rem 1rem; border-radius: 4px; background: #e7f5ec;
}
.flash.error {
    background: #fdecea; color: var(--error);
}
small.error {
    color: var(--error);
}
.badge {
    background: var(--error); color: #fff; border-radius: 4px; padding: 0 .3rem; font-size: .8rem;
}
.status {
    padding: .1rem .5rem; border-radius: 4px; background: #eee;
}
.status.pending {
    background: #fff4d6;
}
.status.preparing {
    background: #e3eefc;
}
.status.shipped {
    background: #ece3fc;
}
.status.delivered {
    background: #e7f5ec;
}
.totals {
    text-align: right; line-height: 1.8;
}