:root {
    --ink:#1d302d;
    --muted:#627571;
    --green:#087b60;
    --line:#dce6e2;
    --paper:#fff;
    --bg:#f3f6f4;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--bg);
    font-size:15px
}
* {
    box-sizing:border-box
}
.stats article,.pos-grid>*,.brand,.cart-row .line>* {min-width:0;overflow-wrap:anywhere}
.topbar {flex-wrap:wrap}
.cart-row .line>span {flex-shrink:0}
body {
    margin:0
}
a {
    color:var(--green);
    text-decoration:none
}
a:hover {
    text-decoration:underline
}
button,input,select,textarea {
    font:inherit
}
button,.button {
    border:1px solid var(--green);
    border-radius:9px;
    background:var(--green);
    color:white;
    padding:11px 16px;
    font-weight:650;
    cursor:pointer;
    display:inline-block;
    text-align:center;
    text-decoration:none
}
button:hover,.button:hover {
    filter:brightness(.94);
    text-decoration:none
}
button:disabled {
    opacity:.5;
    cursor:not-allowed
}
button.secondary,.button.secondary {
    background:#fff;
    color:var(--ink);
    border-color:var(--line)
}
:focus-visible {
    outline:3px solid #e0a838;
    outline-offset:3px
}
input,select,textarea {
    display:block;
    width:100%;
    padding:11px 12px;
    border:1px solid #becdc7;
    border-radius:8px;
    background:white;
    color:var(--ink);
    min-height:44px
}
textarea {
    min-height:100px;
    resize:vertical
}
.password-field {
    display:block;
    position:relative;
    margin-top:6px;
}
.password-field input {
    padding-right:54px;
}
.password-toggle {
    position:absolute;
    right:2px;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:40px;
    padding:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    color:var(--green);
    border:0;
}
label {
    display:block;
    font-weight:600;
    font-size:.9rem
}
label>input,label>select,label>textarea {
    margin-top:6px
}
small {
    display:block;
    font-size:.83rem;
    color:var(--muted);
    font-weight:400;
    line-height:1.5
}
h1 {
    font-size:1.9rem;
    letter-spacing:-.04em;
    margin:5px 0 10px
}
h2 {
    font-size:1.15rem;
    margin:0
}
p {
    line-height:1.6
}
hr {
    border:0;
    border-top:1px solid var(--line)
}
.topbar {
    background:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px max(24px,calc((100vw - 1440px)/2));
    border-bottom:1px solid var(--line);
    gap:20px
}
.brand {
    font-size:1.4rem;
    font-weight:800;
    letter-spacing:-.04em
}
.brand small {
    letter-spacing:0
}
.account {
    display:flex;
    align-items:center;
    gap:18px
}
.account>span {
    text-align:right;
    font-weight:600
}
.navigation {
    display:flex;
    gap:6px;
    padding:10px max(24px,calc((100vw - 1440px)/2));
    background:white;
    border-bottom:1px solid var(--line);
    overflow-x:auto
}
.navigation a {
    white-space:nowrap;
    padding:10px 15px;
    border-radius:7px;
    color:var(--muted);
    font-weight:600
}
.navigation a[aria-current] {
    background:#e5f3ed;
    color:var(--green)
}
.container {
    max-width:1488px;
    margin:auto;
    padding:28px 24px;
    min-height:70vh
}
.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px
}
.page-heading p {
    margin:0
}
.eyebrow {
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.78rem;
    font-weight:700;
    color:var(--green)
}
.muted {
    color:var(--muted);
    font-size:.9rem
}
.panel {
    background:white;
    padding:24px;
    border:1px solid var(--line);
    border-radius:14px
}
.filters {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:end;
    margin-bottom:22px
}
.filters label {
    min-width:160px;
    flex:1
}
.filters button {
    min-height:44px
}
.stats {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:24px
}
.stats article {
    background:white;
    padding:23px;
    border:1px solid var(--line);
    border-radius:12px
}
.stats strong {
    display:block;
    font-size:1.45rem;
    letter-spacing:-.04em;
    margin-top:8px
}
.table-wrap {
    overflow-x:auto;
    background:white;
    border:1px solid var(--line);
    border-radius:12px
}
table {
    width:100%;
    border-collapse:collapse;
    text-align:left
}
td,th {
    padding:16px 18px;
    border-bottom:1px solid var(--line);
    font-size:.92rem
}
th {
    font-size:.8rem;
    background:#edf3ef;
    color:var(--muted)
}
tbody tr:last-child td {
    border-bottom:0
}
.badge {
    padding:5px 9px;
    background:#e7f3ed;
    color:#12664c;
    border-radius:6px;
    font-size:.8rem
}
.badge.inactive {
    background:#eee;
    color:#666
}
.actions {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap
}
.actions button,.actions .button {
    padding:8px 11px
}
.pagination {
    display:flex;
    gap:20px;
    align-items:center;
    justify-content:flex-end;
    margin:20px 0;
    font-size:.9rem
}
.pagination span {
    margin-right:auto;
    color:var(--muted)
}
.empty {
    text-align:center;
    padding:40px;
    color:var(--muted)
}
.form-grid {
    display:grid;
    gap:20px
}
.edit-form {
    max-width:750px
}
.notice {
    background:#fff5d9;
    border:1px solid #e5cc84;
    padding:15px 18px;
    margin:0 0 22px;
    border-radius:9px;
    line-height:1.6
}
.notice.error {
    background:#fff0ed;
    border-color:#e9b2a8;
    color:#903721
}
.qris-image {
    display:block;
    width:100%;
    max-width:360px;
    height:auto;
    margin:16px auto;
}
.preview {
    width:140px;
    max-height:140px;
    object-fit:cover;
    border-radius:10px
}
.site-footer {
    max-width:1488px;
    margin:auto;
    padding:20px 24px;
    color:var(--muted);
    font-size:.8rem;
    border-top:1px solid var(--line)
}
.login-body {
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px;
    background:linear-gradient(rgba(243,246,244,.6),rgba(243,246,244,.6)),url('bg.jpg') center / cover no-repeat;
    background-color:var(--bg)
}
.login-card {
    background:white;
    border:1px solid var(--line);
    border-radius:20px;
    width:100%;
    max-width:355.3px;
    padding:40px;
    box-shadow:0 4px 12px rgba(18,54,40,.12),0 20px 48px rgba(18,54,40,.18)
}
.login-card .form-grid {
    margin-top:28px
}
.pos-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 370px;
    gap:24px;
    align-items:start
}
.products {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:14px
}
.product {
    padding:0;
    text-align:left;
    overflow:hidden;
    background:white;
    color:var(--ink);
    border:1px solid var(--line);
    border-radius:12px
}
.product img,.product .placeholder {
    width:100%;
    height:125px;
    object-fit:cover;
    background:#e6eee8;
    display:grid;
    place-items:center;
    font-size:2rem;
    color:var(--green)
}
.product .product-text {
    padding:14px;
    display:grid;
    gap:6px
}
.product strong {
    font-size:1rem
}
.product .price {
    color:var(--green);
    font-weight:700
}
.cart-panel {
    position:sticky;
    top:20px;
    display:grid;
    gap:15px
}
.cart-panel .page-heading {
    margin:0
}
.cart-row {
    padding:15px 0;
    border-bottom:1px solid var(--line)
}
.cart-row .line,.cart-total {
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center
}
.quantity {
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:10px
}
.quantity button {
    padding:5px 11px;
    min-width:36px;
    min-height:36px
}
.cart-total {
    margin:5px 0
}
.cart-total strong {
    font-size:1.15rem
}
.full {
    width:100%
}
.cart-panel .muted {
    margin:0
}
.cart-panel input {
    font-size:1.1rem
}
[hidden] {
    display:none!important
}
@media(max-width:1050px) {
    .stats {
        grid-template-columns:repeat(2,1fr)
    }
    .pos-grid {
        grid-template-columns:minmax(0,1fr) 330px
    }
    .products {
        grid-template-columns:repeat(auto-fill,minmax(130px,1fr))
    }
}
@media(max-width:760px) {
    .container {
        padding:20px 16px
    }
    .topbar {
        padding:16px
    }
    .navigation {
        padding:8px 12px
    }
    .brand {
        font-size:1.2rem
    }
    .brand small {
        font-size:.73rem
    }
    .account>span {
        display:none
    }
    .page-heading {
        align-items:start;
        flex-wrap:wrap;
        gap:12px
    }
    h1 {
        font-size:1.65rem
    }
    .pos-grid {
        grid-template-columns:1fr
    }
    .cart-panel {
        position:static
    }
    .products {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .product img,.product .placeholder {
        height:110px
    }
    .stats {
        gap:10px
    }
    .stats article {
        padding:16px
    }
    .stats strong {
        font-size:1.13rem
    }
    .filters label {
        min-width:130px
    }
    .login-card {
        padding:28px
    }
    .panel {
        padding:20px
    }
}
