:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#17211b;background:#f5f7f5}*{box-sizing:border-box}body{margin:0}.top{position:sticky;top:0;z-index:5;background:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 12px #00000012}.top small{display:block;color:#718076;font-size:12px;margin-top:3px}.logout{color:#c0392b;text-decoration:none;font-weight:700}.container{max-width:720px;margin:auto;padding:16px}.hero{background:#0c8f52;color:#fff;border-radius:22px;padding:22px;margin-bottom:14px}.hero span{opacity:.8}.hero strong{display:block;font-size:25px;margin-top:5px}.pos-card,.panel{background:#fff;border-radius:20px;padding:18px;margin-bottom:18px;box-shadow:0 5px 20px #0000000b}.panel{display:grid;gap:10px}label{font-size:13px;font-weight:700;color:#506058;display:block;margin:8px 0 5px}input,select{width:100%;padding:14px;border:1px solid #dce4de;border-radius:12px;background:#fff;font-size:16px}input:focus,select:focus{outline:2px solid #9bd9b8;border-color:#0c8f52}.mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.mode-btn,.quick button{border:0;border-radius:12px;padding:13px;background:#edf2ee;font-weight:800}.mode-btn.active{background:#d5f4e2;color:#087b45}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.quick button{background:#f1f5f2}.btn{border:0;background:#e9efeb;color:#17211b;padding:13px 16px;border-radius:12px;font-weight:800;cursor:pointer}.primary{background:#0c8f52;color:#fff}.wide{width:100%;margin-top:18px}.submit{width:100%;display:flex;justify-content:space-between;font-size:16px;margin-top:12px}.hidden{display:none}.info,.alert,.success{padding:12px;border-radius:12px;margin:12px 0}.info{background:#eef7f1}.alert{background:#fdecea;color:#a93226}.success{background:#e4f7eb;color:#08733f}.muted{color:#718076}.hint{font-size:12px;color:#718076;line-height:1.7;margin-top:18px}.login{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(145deg,#e8f8ee,#f8fbf8)}.login-card{background:#fff;width:min(420px,100%);padding:28px;border-radius:28px;box-shadow:0 12px 40px #00000012}.brand{font-size:42px}.login-card h1{margin:6px 0}.admin-nav{display:flex;gap:8px;overflow:auto;padding:10px 16px;background:#fff;border-bottom:1px solid #e8eee9}.admin-nav a{white-space:nowrap;text-decoration:none;color:#17643e;background:#edf6f0;padding:9px 12px;border-radius:10px;font-size:13px;font-weight:700}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.stats div{background:#fff;padding:16px;border-radius:16px}.stats small{display:block;color:#718076}.stats b{font-size:20px;display:block;margin-top:5px}.inline{grid-template-columns:1.2fr 1fr auto;align-items:center}.table-wrap{overflow:auto;background:#fff;border-radius:16px;margin:12px 0}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px;border-bottom:1px solid #edf0ed;white-space:nowrap}.row{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:13px 14px;border-bottom:1px solid #edf0ed}.row small{display:block;color:#7b877f;margin-top:3px}h2{font-size:18px;margin-top:24px}.filters{grid-template-columns:1fr 1fr auto auto;align-items:end}@media(max-width:520px){.inline,.filters{grid-template-columns:1fr}.quick{grid-template-columns:repeat(2,1fr)}.top{padding:12px}.container{padding:12px}}@media print{.top,.admin-nav,.filters button{display:none}.container{max-width:none}.panel{box-shadow:none}}

/* =====================================================
   KASIR MOBILE
===================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.product-btn {
    border: 2px solid #e2e9e4;
    background: #fff;
    border-radius: 16px;
    padding: 13px 6px;
    min-height: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    font-size: 14px;
}

.product-btn.active {
    border-color: #0c8f52;
    background: #e8f8ef;
    color: #08733f;
}

.product-btn small {
    color: #718076;
    font-size: 11px;
}

.fuel-icon {
    font-size: 23px;
}


/* NOMINAL */

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.nominal-btn {
    border: 2px solid #e4eae6;
    background: #f8faf8;

    border-radius: 14px;

    padding: 16px 8px;

    font-size: 16px;
    font-weight: 850;
}

.nominal-btn.active {
    border-color: #0c8f52;
    background: #e3f7eb;
    color: #08733f;
}


/* FULL */

.full-card {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #f3f7f4;

    padding: 10px;

    border-radius: 15px;

    margin: 12px 0;
}

.full-btn {
    border: 0;

    background: #17211b;
    color: #fff;

    border-radius: 12px;

    padding: 14px 20px;

    font-weight: 900;
    font-size: 16px;
}

.full-btn.active {
    background: #0c8f52;
}

.full-card small {
    display: block;

    color: #718076;

    font-size: 12px;

    margin-top: 3px;
}


/* =====================================================
   HISTORI
===================================================== */

.history {
    margin-top: 25px;
}

.section-title h2 {
    margin-bottom: 3px;
}

.section-title small {
    color: #718076;
}

.history-wrapper {
    overflow-x: auto;

    background: #fff;

    border-radius: 16px;

    box-shadow: 0 4px 16px #00000008;
}

.history-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    font-size: 12px;
}

.history-table th {
    text-align: left;

    padding: 12px 9px;

    background: #f5f8f5;

    color: #718076;

    font-size: 11px;

    white-space: nowrap;
}

.history-table td {
    padding: 12px 9px;

    border-bottom: 1px solid #edf0ed;

    white-space: nowrap;
}

.history-table tbody tr:last-child td {
    border-bottom: 0;
}

.history-table tbody tr:hover {
    background: #fafcfb;
}

.nota-btn {
    border: 0;

    background: #e8f7ee;

    color: #087b45;

    border-radius: 9px;

    padding: 8px 10px;

    cursor: pointer;

    font-weight: 800;
}

.empty {
    text-align: center;

    padding: 30px;

    color: #718076;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;

    padding: 15px;
}

.pagination a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: #edf6f0;

    color: #087b45;

    text-decoration: none;

    border-radius: 10px;

    font-size: 21px;

    font-weight: 900;
}


/* =====================================================
   NOTA
===================================================== */

.receipt-link {
    border: 0;

    background: transparent;

    color: #087b45;

    font-weight: 800;

    text-decoration: underline;

    cursor: pointer;

    margin-top: 5px;
}

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.55);

    display: grid;

    place-items: center;

    padding: 15px;

    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-box {
    background: #fff;

    width: min(390px, 100%);

    max-height: 90vh;

    overflow: auto;

    border-radius: 20px;

    padding: 16px;
}

.modal-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;
}

.modal-head button {
    border: 0;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #edf0ed;

    font-size: 22px;

    cursor: pointer;
}

.receipt {
    background: #fff;

    color: #111;

    border: 1px dashed #aaa;

    padding: 20px;

    font-family: monospace;

    font-size: 13px;

    line-height: 1.7;
}

.receipt-brand {
    text-align: center;

    font-size: 18px;

    font-weight: 900;
}

.receipt-center {
    text-align: center;
}

.receipt-line {
    border-top: 1px dashed #777;

    margin: 9px 0;
}

.receipt-total {
    border-top: 1px dashed #777;
    border-bottom: 1px dashed #777;

    padding: 9px 0;

    margin: 9px 0;

    font-size: 17px;

    font-weight: 900;
}

.modal-actions {
    display: flex;

    gap: 8px;

    margin-top: 12px;
}

.modal-actions .btn {
    flex: 1;
}


/* =====================================================
   HP
===================================================== */

@media (max-width: 520px) {

    .product-grid {
        gap: 7px;
    }

    .product-btn {
        min-height: 88px;

        padding: 9px 4px;
    }

    .nominal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-wrapper {
        margin-left: -12px;
        margin-right: -12px;

        border-radius: 0;
    }

}
/* =====================================================
   STOK BBM
===================================================== */

.product-btn {
    position: relative;
}

.stock-badge {
    display: inline-block;

    margin-top: 3px;

    padding: 3px 7px;

    border-radius: 999px;

    background: #e8f7ee;

    color: #087b45;

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;
}

.product-btn.stok-rendah {
    border-color: #e8b34d;
}

.product-btn.stok-rendah .stock-badge {
    background: #fff3d9;

    color: #9a6200;
}

.product-btn.stok-habis {
    opacity: .55;

    cursor: not-allowed;

    background: #f1f1f1;
}

.product-btn.stok-habis .stock-badge {
    background: #eee;

    color: #777;
}


/* =====================================================
   SUMMARY PENJUALAN KASIR
===================================================== */

.kasir-summary {

    margin-top: 22px;

    margin-bottom: 24px;

    background: #fff;

    border-radius: 18px;

    padding: 16px;

    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

.summary-title {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 14px;
}

.summary-title h2 {

    margin: 0 0 3px;

    font-size: 17px;
}

.summary-title small {

    color: #718076;

    font-size: 11px;
}

.summary-date {

    background: #edf7f1;

    color: #087b45;

    border-radius: 9px;

    padding: 6px 9px;

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;
}


/* GRID */

.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


/* CARD */

.summary-card {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 13px 10px;

    background: #f7faf8;

    border-radius: 14px;

    min-width: 0;
}

.summary-icon {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: grid;

    place-items: center;

    background: #e4f5eb;

    border-radius: 11px;

    font-size: 18px;
}

.summary-card small {

    display: block;

    color: #718076;

    font-size: 10px;

    margin-bottom: 2px;
}

.summary-card strong {

    display: block;

    color: #123d29;

    font-size: 14px;

    line-height: 1.2;

    word-break: break-word;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .kasir-summary {

        padding: 13px;

        border-radius: 16px;

    }

    .summary-grid {

        grid-template-columns: 1fr;

        gap: 8px;

    }

    .summary-card {

        padding: 11px;

    }

    .summary-icon {

        width: 36px;

        height: 36px;

        flex-basis: 36px;

    }

    .summary-card strong {

        font-size: 15px;

    }

}
/* =====================================================
   PENJUALAN PER PRODUK
===================================================== */

.product-sales-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 12px;
    margin-bottom: 24px;
}


.product-sales-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;

    box-shadow:
        0 4px 18px rgba(0,0,0,.05);

    border: 1px solid #edf1ee;
}


.product-sales-header {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 17px;
}


.product-sales-icon {
    width: 43px;
    height: 43px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf7ef;

    font-size: 21px;
}


.product-sales-header b {
    display: block;

    font-size: 15px;
}


.product-sales-header small {
    display: block;

    color: #718076;

    font-size: 11px;

    margin-top: 3px;
}


/* LITER */

.product-liter {
    padding: 12px 0;

    border-top: 1px solid #edf1ee;
    border-bottom: 1px solid #edf1ee;
}


.product-liter small {
    display: block;

    color: #718076;

    font-size: 11px;

    margin-bottom: 3px;
}


.product-liter strong {
    font-size: 25px;

    line-height: 1.2;
}


.product-liter strong span {
    font-size: 13px;

    font-weight: 600;

    color: #718076;
}


/* DETAIL */

.product-sales-detail {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    padding-top: 12px;
}


.product-sales-detail small {
    display: block;

    color: #718076;

    font-size: 10px;

    margin-bottom: 3px;
}


.product-sales-detail b {
    display: block;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 600px) {

    .product-sales-grid {
        grid-template-columns: 1fr;
    }

    .product-sales-card {
        padding: 15px;
    }

}