*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;background:#f6f8fc;color:#182338}button,input,select{font:inherit}button{border:0;border-radius:9px;background:#3949ab;color:#fff;padding:11px 15px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-weight:600}button:hover{opacity:.9}button.secondary{background:#eef1f8;color:#35435c}.layout{display:flex;min-height:100vh}aside{background:#17223b;color:#fff;width:230px;padding:26px 18px;flex-shrink:0}.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:750;margin-bottom:42px}.brand small{font-size:11px;color:#aeb9d6}.nav{display:flex;align-items:center;gap:10px;padding:13px;border-radius:9px}.active{background:#344466}.muted{color:#78849a}.side-note{font-size:12px;margin-top:30px}main{padding:36px;flex:1;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:26px;margin:0 0 6px}header p{margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0}.stats article,.panel{background:#fff;border:1px solid #e6eaf1;border-radius:14px}.stats article{padding:20px}.stats span{display:block;font-size:13px;color:#77849a}.stats strong{display:block;font-size:29px;margin-top:10px}.panel{overflow:hidden}.toolbar{display:flex;justify-content:space-between;gap:10px;padding:18px}.search{display:flex;align-items:center;gap:9px;border:1px solid #e2e7ef;border-radius:9px;padding:0 12px;flex:1;max-width:420px}.search input{border:0;outline:0;padding:11px 0;width:100%}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th,td{padding:16px;border-top:1px solid #edf0f5;font-size:13px}th{color:#77849a;background:#fafbfe;font-weight:600}td small{display:block;color:#8792a3;margin-top:4px}.ok,.low{display:inline-block;padding:5px 10px;border-radius:6px;font-weight:700}.ok{background:#e6f7ed;color:#19864b}.low{background:#fff0ec;color:#c33d22}.actions{display:flex;gap:5px}.icon-btn{padding:7px;background:#f1f3f8;color:#485873}.danger{color:#ce3b3b}.empty{text-align:center;padding:35px;color:#8290a5}.error{padding:12px;margin:10px 18px;background:#fff0ef;color:#b3261e;border-radius:8px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1119;display:flex;justify-content:center;align-items:center;padding:20px}.modal{background:#fff;border-radius:16px;padding:25px;max-width:680px;width:100%;max-height:90vh;overflow:auto}.modal h2{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.form-grid input,.form-grid select{padding:10px;border:1px solid #dce2ec;border-radius:8px;min-width:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}@media(max-width:850px){aside{display:none}main{padding:18px}header{align-items:flex-start}h1{font-size:21px}.stats{grid-template-columns:1fr;gap:8px}.stats article{padding:13px}.stats strong{font-size:23px}.form-grid{grid-template-columns:1fr}}@media(max-width:440px){header{flex-direction:column}.toolbar{flex-direction:column}.search{max-width:none}}.nav{cursor:pointer}.pos-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:18px;margin-top:24px}.pos-panel{padding:22px;overflow:visible}.pos-panel h2{font-size:19px;margin:0 0 16px}.pos-scan-form{display:flex;gap:8px;margin-bottom:25px;flex-wrap:wrap}.pos-scan-form input{flex:1;min-width:170px;border:1px solid #dce2ec;border-radius:8px;padding:10px}.cart-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0f5;padding:14px 0;font-size:13px}.cart-line>div:first-child{flex:1}.cart-qty{display:flex;align-items:center;gap:8px}.cart-qty button{padding:5px 10px}.pos-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.pos-total strong{font-size:25px}.pos-methods{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:20px}.pos-methods label{display:flex;align-items:center;gap:6px}.pending-payment{border-top:1px solid #edf0f5;margin-top:18px;padding-top:12px}.vietqr{display:block;width:280px;max-width:100%;margin:12px auto}.confirm-received{display:flex;align-items:center;gap:8px;margin:15px 0}.cash-label{display:flex;flex-direction:column;gap:8px}.cash-label input{padding:10px;border:1px solid #dce2ec;border-radius:8px}.pos-actions{display:flex;flex-wrap:wrap;gap:10px}.pos-success{padding:12px;background:#e6f7ed;color:#19864b;border-radius:8px}.camera-box{margin-bottom:20px}.camera-box>button{margin-top:8px}@media(max-width:1050px){.pos-columns{grid-template-columns:1fr}}@media(max-width:768px){.layout{display:block}.layout aside{display:flex!important;position:static!important;width:100%!important;height:auto!important;flex-direction:column;gap:8px;padding:12px}.layout aside .nav{display:flex!important;cursor:pointer}.layout main{width:100%;min-width:0}}.camera-box{width:100%;max-width:100%;overflow:hidden}#freedom-camera-scanner{width:100%;max-width:100%}#freedom-camera-scanner video{width:100%!important;max-width:100%!important;height:auto!important;object-fit:cover}.finance-expense-section{display:grid;gap:16px;padding:24px;background:#f8faff;border:1px solid #e3e9f5;border-radius:14px}.finance-expense-section h2,.finance-history h2{margin:0;font-size:21px;color:#182338}.finance-expense-section>p{margin:0;line-height:1.6}.finance-expense-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;max-width:850px}.finance-expense-form label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;font-weight:650;color:#35435c}.finance-expense-form input,.finance-expense-form select,.finance-expense-form textarea{width:100%;min-width:0;padding:12px 14px;border:1px solid #d6deed;border-radius:10px;background:#fff;color:#182338;font:inherit;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s}.finance-expense-form input,.finance-expense-form select{min-height:46px}.finance-expense-form textarea{min-height:100px;resize:vertical}.finance-expense-form input:focus,.finance-expense-form select:focus,.finance-expense-form textarea:focus{border-color:#3949ab;box-shadow:0 0 0 3px #3949ab1f}.finance-expense-form label:has(textarea){grid-column:1 / -1}.finance-expense-form button{grid-column:1 / -1;justify-self:start;min-height:46px;padding:12px 24px;border-radius:10px}.finance-expense-form button:disabled{opacity:.55;cursor:not-allowed}.finance-history{display:grid;gap:16px;padding:24px;background:#fff;border:1px solid #e3e9f5;border-radius:14px}.finance-history>button{justify-self:start}.finance-history table{border-collapse:collapse;width:100%}.finance-history th{background:#eef2fb;color:#344466;font-weight:700}.finance-history td,.finance-history th{padding:14px 16px;border-bottom:1px solid #e9edf5}.finance-history tbody tr:nth-child(2n){background:#f8faff}@media(max-width:700px){.finance-expense-section,.finance-history{padding:16px}.finance-expense-form{grid-template-columns:1fr}.finance-expense-form label:has(textarea),.finance-expense-form button{grid-column:1}.finance-expense-form button{width:100%;justify-content:center}}.pos-page:has(.finance-expense-section){width:100%;max-width:1600px;margin:0 auto}.pos-page:has(.finance-expense-section)>header{margin-bottom:24px}.pos-page:has(.finance-expense-section)>.panel{padding:24px;overflow:visible;gap:26px!important;border-radius:18px;box-shadow:0 6px 24px #19285009}.pos-page:has(.finance-expense-section) .stats{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important}.pos-page:has(.finance-expense-section) .stats article{padding:20px;min-width:0;border-radius:14px;background:#fff;border:1px solid #e4eaf5;transition:box-shadow .2s,transform .2s}.pos-page:has(.finance-expense-section) .stats article:hover{transform:translateY(-2px);box-shadow:0 8px 22px #20306412}.pos-page:has(.finance-expense-section) .stats article span{font-size:13px;font-weight:600;color:#64748b}.pos-page:has(.finance-expense-section) .stats article strong{font-size:clamp(20px,1.8vw,27px);line-height:1.3;letter-spacing:-.5px;overflow-wrap:anywhere;color:#17233d}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]){padding:24px;border:1px solid #dfe6f3;border-radius:16px;background:#f8faff;gap:16px!important}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]) h2{font-size:21px;margin:0;color:#17233d}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]) p{margin:0;line-height:1.6}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"])>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;max-width:850px}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]) label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:650;color:#35435c;min-width:0}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]) input{width:100%;min-width:0;height:46px;padding:10px 14px;border:1px solid #d6deed;border-radius:10px;background:#fff;outline:none;font:inherit}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]) input:focus{border-color:#3949ab;box-shadow:0 0 0 3px #3949ab1f}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"])>button{justify-self:start;width:auto;min-height:46px;padding:12px 24px;border-radius:10px}.pos-page:has(.finance-expense-section) .panel>div:first-child>button{width:auto;justify-content:center}@media(max-width:700px){.pos-page:has(.finance-expense-section)>.panel{padding:14px;gap:18px!important}.pos-page:has(.finance-expense-section) .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.pos-page:has(.finance-expense-section) .stats article{padding:14px}.pos-page:has(.finance-expense-section) .stats article strong{font-size:18px}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"]){padding:16px}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"])>div{grid-template-columns:1fr}.pos-page:has(.finance-expense-section) form:has(input[placeholder="Ví dụ: 5000000"])>button{width:100%;justify-content:center}}@media(max-width:400px){.pos-page:has(.finance-expense-section) .stats{grid-template-columns:1fr!important}}.pending-orders-panel{margin-top:24px;padding:24px!important;border-radius:18px}.pending-orders-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:18px}.pending-orders-header h2{margin:0;font-size:22px;font-weight:750;color:#17233e}.pending-orders-header .secondary{padding:10px 16px;border-radius:10px;font-size:14px}.pending-order-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;margin-bottom:10px;background:#f8faff;border:1px solid #e4eaf5;border-radius:12px;transition:background .2s,border-color .2s}.pending-order-row:hover{background:#f0f4ff;border-color:#cbd6f5}.pending-order-row>div{display:flex;flex-direction:column;gap:5px}.pending-order-row strong:first-child{font-size:16px;color:#17233e}.pending-order-row .muted{font-size:13px;color:#71809a}.pending-order-row strong:last-child{font-size:19px;font-weight:750;color:#253d91}.pending-order-row button{flex-shrink:0;padding:11px 16px;border-radius:10px;font-size:14px;font-weight:650;white-space:nowrap}@media(max-width:600px){.pending-orders-panel{padding:16px!important}.pending-orders-header h2{font-size:19px}.pending-order-row{flex-direction:column;align-items:stretch;padding:16px;gap:14px}.pending-order-row button{width:100%}}
