*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f7fb;color:#102343}.app{display:flex;min-height:100vh}.sidebar{width:225px;background:#092541;color:white;padding:16px 10px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{display:flex;gap:10px;align-items:center;padding:10px 8px 20px;font-size:13px}.brand img{width:34px;height:34px;object-fit:contain}.sidebar a{display:flex;gap:12px;color:#eaf2f9;text-decoration:none;padding:11px 12px;border-radius:7px;margin:3px 0;font-size:14px}.sidebar a:hover,.sidebar a.active{background:#ef1728;color:white}main{margin-left:225px;width:calc(100% - 225px)}header{height:64px;background:white;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:4}header>a,header a{color:#ef1728;text-decoration:none;margin-left:10px}.content{padding:22px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:white;border:1px solid #e2e8f0;border-radius:10px;padding:17px;box-shadow:0 2px 8px #18324b0a}.metric small{color:#718096}.metric b{display:block;font-size:23px;color:#0b56c7;margin:7px 0}.btn{border:0;border-radius:6px;padding:10px 14px;cursor:pointer;text-decoration:none;display:inline-block}.btn-red{background:#ef1728;color:white}.btn-blue{background:#0967d8;color:white}.btn-green{background:#10a25a;color:white}.btn-light{background:#eef3f8;color:#17324d}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:15px;flex-wrap:wrap}.input,select,textarea{border:1px solid #d5deea;border-radius:6px;padding:10px;background:white;max-width:100%}table{width:100%;border-collapse:collapse;background:white}th,td{padding:11px;border-bottom:1px solid #e5eaf0;text-align:left;font-size:13px}th{background:#f8fafc;color:#53657a}.badge{padding:4px 8px;border-radius:20px;font-size:11px}.green{background:#dcfce7;color:#16803d}.red{background:#fee2e2;color:#b91c1c}.orange{background:#ffedd5;color:#9a3412}.pos{display:grid;grid-template-columns:1.65fr .75fr;gap:18px}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.product{background:white;border:1px solid #dce5ef;border-radius:8px;padding:10px;text-align:center;cursor:pointer}.product img{width:70px;height:90px;object-fit:contain}.product b{display:block;font-size:12px}.price{color:#075dcc;font-weight:700}.stock{color:#16803d;font-size:11px}.cart{background:white;border-radius:10px;border:1px solid #dce5ef;padding:15px;position:sticky;top:85px;height:max-content}.cart-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f5}.total{font-size:22px;font-weight:800;color:#075dcc}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tab{padding:8px 13px;border-radius:6px;color:white;background:#1269d3;font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid label{font-size:12px;font-weight:700}.form-grid input,.form-grid textarea,.form-grid select{width:100%;margin-top:5px}.thumb{width:40px;height:48px;object-fit:contain}.alert{padding:12px;border-radius:7px;margin-bottom:15px;background:#e8f2ff;color:#064da7}.danger{background:#fee2e2;color:#991b1b}@media(max-width:900px){.sidebar{width:70px}.sidebar .brand b,.sidebar a:not(:first-child){font-size:0}.sidebar a span{font-size:18px}main{margin-left:70px;width:calc(100% - 70px)}.grid{grid-template-columns:repeat(2,1fr)}.pos{grid-template-columns:1fr}.products{grid-template-columns:repeat(3,1fr)}}@media(max-width:550px){.content{padding:10px}.grid,.form-grid{grid-template-columns:1fr}.products{grid-template-columns:repeat(2,1fr)}header{padding:0 10px}}
.product{font:inherit;text-align:left;cursor:pointer}.cat{border:0;cursor:pointer}.cat.active{outline:3px solid rgba(30,64,175,.22);transform:translateY(-1px)}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:1000;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.payment-modal{width:min(460px,100%);background:#fff;border-radius:16px;padding:20px;box-shadow:0 25px 70px rgba(0,0,0,.3)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal-head h3{margin:0}.modal-x{border:0;background:#eef2f7;border-radius:8px;font-size:25px;width:38px;height:38px;cursor:pointer}.payment-modal label{display:block;font-weight:700;margin:12px 0}.payment-modal label .input{display:block;width:100%;margin-top:6px}.pay-summary{display:flex;justify-content:space-between;padding:12px 0;font-size:17px}.payment-status{margin:8px 0 12px;padding:10px;border-radius:8px;display:none}.payment-status.show{display:block;background:#eff6ff;color:#1e40af}.muted{color:#64748b;font-size:13px}

.payment-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.payment-three{grid-template-columns:repeat(3,1fr)}.payment-choice,.payment-sub{border:2px solid #d9e2ec;border-radius:12px;background:#fff;min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-weight:700}.payment-sub{min-height:56px;font-size:12px}.payment-choice.selected,.payment-sub.selected{border-color:#198d40;background:#eaf8ed}.payment-choice img{width:115px;height:42px;object-fit:contain}.cash-icon{font-size:30px;color:#157c44}.qr-display{text-align:center;border:1px dashed #cad3dc;padding:16px;border-radius:12px}.qr-display img{width:min(100%,300px);height:auto}.payment-modal{max-height:90vh;overflow-y:auto}
