:root{font-family:system-ui,-apple-system,Arial,sans-serif;color:#222;background:#f4f5f7}*{box-sizing:border-box}body{margin:0;padding-bottom:70px}main{max-width:900px;margin:auto;padding:16px}.login{max-width:480px;text-align:center;padding-top:12vh}.login h1{color:#a91525}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0}.cards button{min-height:95px}button,.btn{border:1px solid #ddd;background:#fff;border-radius:12px;padding:12px;font:inherit;font-weight:650;cursor:pointer;color:#222;text-decoration:none;display:inline-block}button.primary,.btn.primary{background:#a91525;border-color:#a91525;color:#fff}button.danger{background:#fff0f0;color:#a91525}button:disabled{opacity:.5}input,select,textarea{font:inherit;width:100%;border:1px solid #ddd;border-radius:10px;padding:12px;background:#fff;min-width:0}input[type=checkbox]{width:auto}label{font-size:13px;font-weight:650;display:block;margin:10px 0 5px}.panel{background:white;border:1px solid #e3e3e3;border-radius:16px;padding:17px;margin:15px 0;box-shadow:0 2px 10px #00000006}.panel h2,.panel h3{margin:0 0 12px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.muted{color:#777;font-size:13px}.error{background:#ffe7e7;color:#8b1a1a;border-radius:10px;padding:12px}.success{background:#e7f6ec;color:#14683b;padding:12px;border-radius:10px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.full{grid-column:1/-1}header{background:#a91525;color:#fff;padding:15px;display:flex;justify-content:space-between;gap:12px;align-items:center}header a{color:white}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.product{border:1px solid #ddd;border-radius:13px;overflow:hidden;background:#fff;cursor:pointer;text-align:center;padding-bottom:9px}.product img{width:100%;aspect-ratio:1;object-fit:cover;background:#eee}.product strong{display:block;font-size:13px;padding:6px}.product small{display:block;color:#14683b}.product.selected{border:2px solid #15844b}.tabs{display:flex;gap:6px;overflow:auto;padding:10px;background:#fff;position:sticky;top:0;z-index:2}.tabs a{white-space:nowrap;font-size:13px;text-decoration:none;color:#8c1828;padding:9px;background:#f6eded;border-radius:9px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{border-bottom:1px solid #e9e9e9;padding:9px;text-align:left}td input{padding:7px;min-width:72px}h1{font-size:23px}h2{font-size:19px}h3{font-size:16px}.pill{background:#eee;padding:4px 9px;border-radius:20px;font-size:12px}.hidden{display:none!important}dialog{border:0;border-radius:18px;width:min(92vw,420px);padding:22px;box-shadow:0 10px 40px #0003}dialog::backdrop{background:#0008}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions>*{flex:1}hr{border:0;border-top:1px solid #eee;margin:16px 0}.money{font-weight:800;color:#a91525}pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(min-width:750px){.products{grid-template-columns:repeat(5,1fr)}}

/* Identitas resmi Kedai Bungsu */
.login-logo{display:block;width:128px;height:128px;object-fit:contain;margin:0 auto 12px}
.login{padding-top:7vh}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand strong{line-height:1.35}
.header-logo{width:46px;height:46px;object-fit:contain;flex:none}
@media(max-width:420px){.header-logo{width:40px;height:40px}.brand strong{font-size:14px}.brand small{font-size:12px}}

/* V1.1: kartu hasil kasir kontras dan navigasi bawah ala aplikasi mobile */
.drawer-result{background:linear-gradient(125deg,#9d071b 0%,#db1829 60%,#f34c24 100%);border:2px solid #ffcf62;border-radius:20px;padding:20px 16px;margin:20px 0;box-shadow:0 8px 24px rgba(166,17,38,.25);color:#fff;text-align:center;display:flex;flex-direction:column;gap:7px}
.drawer-result-label{font-weight:850;letter-spacing:.055em;font-size:13px;color:#fff3d1}
.drawer-result strong{font-size:clamp(29px,8vw,46px);line-height:1.2;color:#fff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-shadow:0 2px 3px rgba(0,0,0,.2)}
.drawer-result small{font-size:12px;color:#fff3df}
body{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;align-items:stretch;justify-content:space-around;gap:2px;background:#fff;border-top:1px solid #e5d9db;box-shadow:0 -4px 22px #00000013;padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px));max-width:100vw}
.bottom-nav a{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:#777;padding:5px 2px;border-radius:12px;font-size:11px;font-weight:750}
.bottom-nav a.active{color:#b20c25;background:#fff0f1}
.bottom-nav .nav-icon{font-size:23px;line-height:1}
@media(min-width:900px){.bottom-nav{max-width:900px;margin:auto;border-left:1px solid #eee;border-right:1px solid #eee;border-radius:18px 18px 0 0}}

/* V1.3: kategori supplier, kartu sentuh, dan rekonsiliasi kas */
.supplier-section{border:1px solid #e8dadd;background:#fff;border-radius:16px;margin:18px 0;padding:12px}
.supplier-heading{font-size:17px;margin:0 0 12px;padding:8px 10px;border-radius:9px;background:#fff0f1;color:#a91525}
.product{appearance:none;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;font-weight:normal;padding:0 0 10px;border:2px solid #e7e7e7;touch-action:manipulation}
.product img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;pointer-events:none}
.product strong,.product small{pointer-events:none;overflow-wrap:anywhere}
.product.selected{border-color:#16834b;background:#edfff3}
.product:focus-visible{outline:3px solid #b40c23;outline-offset:2px}
.stock-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.stock-choices button{background:#fff3f3;border:1px solid #c96d78;color:#8d1120;min-height:66px}
.money-display{font-variant-numeric:tabular-nums;font-weight:700;font-size:17px}
.cash-audit{border:1px solid #e2e2e2;border-radius:14px;padding:14px;margin:16px 0;background:#fafafa}
.cash-difference{font-size:17px;font-weight:800;padding:12px;border-radius:10px;margin:12px 0;background:#ededed}
.cash-difference.is-minus{color:#9d071b;background:#ffe5e7}
.cash-difference.is-plus{color:#14683b;background:#e1f7e9}
.cash-difference.is-match{color:#14683b;background:#e1f7e9}

/* V1.4 */
.btn.status-open{background:#b11227;color:#fff;border-color:#b11227;min-width:88px;text-align:center}
.btn.status-done{background:#16864a;color:#fff;border-color:#16864a;min-width:88px;text-align:center}
.purchase-grand{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#a91428;color:white;padding:17px;border-radius:15px;margin:20px 0;font-size:14px;font-weight:800}
.purchase-grand strong{font-size:clamp(19px,5vw,27px);white-space:nowrap}
.result-green,.balance-top{display:flex;flex-direction:column;gap:6px;background:linear-gradient(115deg,#0d7d43,#159c5c);color:white;padding:19px;border-radius:17px;margin:16px 0;box-shadow:0 6px 18px #09703a25}
.result-green strong,.balance-top strong{font-size:clamp(25px,6vw,35px);font-variant-numeric:tabular-nums}
.balance-top small{font-size:12px;line-height:1.5;color:#f0fff5}
@media(max-width:480px){.purchase-grand{align-items:flex-start;flex-direction:column}}

/* V1.6 */
.btn.status-done{background:#16864a;color:white;border-color:#16864a}
