@import"https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap";:root{font-family:Cairo,system-ui,-apple-system,sans-serif;color:#2a1a12}body{margin:0;background:#f2fbf6}.center-screen{display:flex;align-items:center;justify-content:center;height:100vh}.signin-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f2fbf6;padding:24px}.signin-card{width:100%;max-width:380px;background:#fff;border-radius:20px;padding:36px 32px;box-shadow:0 12px 32px #0000000f;text-align:center}.signin-brand{font-size:26px;font-weight:800;color:#e8890c}.signin-sub{font-size:11px;letter-spacing:.12em;color:#8a8a8a;margin:6px 0 24px}.signin-field{display:flex;flex-direction:column;gap:6px;text-align:start;font-size:13px;font-weight:600;color:#4a3a2f;margin-bottom:14px}.signin-field input{padding:12px 14px;border-radius:12px;border:1.5px solid #e7e2da;font-size:14px;font-family:inherit}.signin-field input:focus{outline:none;border-color:#e8890c}.signin-btn{width:100%;padding:13px;border-radius:12px;border:none;background:#e8890c;color:#fff;font-weight:700;font-size:15px;margin-top:4px;cursor:pointer}.signin-btn:disabled{opacity:.5}.signin-offline-btn{width:100%;padding:11px;border-radius:12px;border:1.5px solid #e7e2da;background:#fff;color:#4a3a2f;font-weight:600;font-size:13px;margin-top:8px;cursor:pointer;font-family:inherit}.signin-offline-btn:disabled{opacity:.5}.signin-offline-btn:hover{border-color:#e8890c;color:#e8890c}.signin-advanced-toggle{margin-top:14px;background:none;border:none;color:#a08a78;font-size:12px;text-decoration:underline;cursor:pointer}.signin-advanced{margin-top:12px;padding-top:12px;border-top:1px dashed #eee}.signin-footer{margin-top:20px;font-size:11px;color:#b0a89e}.error{color:#c0392b;font-size:13px;margin:6px 0}.hint{font-size:11px;color:#999;word-break:break-all}.pos-screen{display:flex;flex-direction:column;height:100vh}.pos-header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #eee;background:#fff}.pos-header h1{font-size:17px;font-weight:800;margin:0 8px 0 0;display:inline;color:#2a1a12}.badge{font-size:11px;padding:3px 10px;border-radius:999px;margin-inline-start:6px;font-weight:600}.badge.online{background:#d4f4dd;color:#1e7e34}.badge.offline{background:#f8d7da;color:#a71d2a}.badge.pending{background:#fff3cd;color:#856404}.signed-out-badge{background:#f8d7da;color:#a71d2a;border:none;cursor:pointer;font-family:inherit;font-weight:600}.signed-out-badge:hover{background:#f5c6cb}.pos-header-actions button{margin-inline-start:8px;padding:8px 14px;border-radius:10px;border:1px solid #e7e2da;background:#fff;font-family:inherit;font-size:13px;cursor:pointer}.pos-header-actions button:hover{border-color:#e8890c;color:#e8890c}.logout-btn:hover{border-color:#c0392b!important;color:#c0392b!important}.toast{position:fixed;bottom:16px;inset-inline:16px;background:#2a1a12;color:#fff;padding:10px 14px;border-radius:10px;text-align:center;z-index:50;cursor:pointer}.pos-body{display:grid;grid-template-columns:1fr 360px;gap:18px;padding:18px;flex:1;overflow:hidden}.pos-catalog{overflow-y:auto}.pos-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.pos-toolbar input{flex:1;min-width:180px;padding:10px 14px;border-radius:10px;border:1.5px solid #e7e2da;font-family:inherit}.chip{padding:7px 14px;border-radius:999px;border:1.5px solid #e7e2da;background:#fff;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit}.chip.active{background:#e8890c;color:#fff;border-color:#e8890c}.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.pos-tile{padding:14px;border-radius:16px;border:1px solid #eee;background:#fff;text-align:start;cursor:pointer;transition:transform .1s,border-color .1s;font-family:inherit}.pos-tile:hover{transform:translateY(-2px);border-color:#e8890c80}.pos-tile-img{width:48px;height:48px;border-radius:12px;object-fit:cover;margin-bottom:8px}.pos-tile-img-placeholder{display:flex;align-items:center;justify-content:center;font-size:24px;background:#fff2e0}.pos-tile-name{font-size:13px;font-weight:700;color:#2a1a12}.pos-tile-price{font-size:12px;color:#e8890c;font-weight:700;margin-top:4px}.pos-empty{grid-column:1 / -1;text-align:center;color:#999;padding:32px}.pos-cart{background:#fff;border:1px solid #eee;border-radius:18px;padding:18px;display:flex;flex-direction:column}.pos-cart h2{font-size:15px;margin:0 0 12px}.pos-cart input{padding:10px 14px;border-radius:10px;border:1.5px solid #e7e2da;margin-bottom:12px;font-family:inherit}.cart-lines{list-style:none;margin:0;padding:0;flex:1;overflow-y:auto}.cart-lines li{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #f2f2f2;font-size:13px}.cart-line-qty button{width:24px;height:24px;border-radius:7px;border:1px solid #e7e2da;background:#fff;margin:0 4px;cursor:pointer}.cart-empty{text-align:center;color:#999;padding:28px 0}.cart-total{display:flex;justify-content:space-between;font-weight:800;font-size:19px;padding:14px 0;border-top:1px solid #eee}.charge-btn{padding:15px;border-radius:12px;border:none;background:#e8890c;color:#fff;font-weight:700;font-size:15px;cursor:pointer;font-family:inherit}.charge-btn:disabled{opacity:.5}.clear-btn{margin-top:8px;padding:10px;border-radius:10px;border:none;background:transparent;color:#c0392b;cursor:pointer;font-family:inherit}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#fff;border-radius:18px;padding:22px;width:340px}.pay-option{display:block;width:100%;text-align:start;padding:13px;border-radius:12px;border:1.5px solid #e7e2da;margin-bottom:8px;background:#fff;cursor:pointer;font-family:inherit}.pay-option.active{border-color:#e8890c;background:#fff6ea}.photo-attach-label{display:block;font-size:12.5px;color:#6b6255;margin-top:14px;margin-bottom:6px}.photo-attach-label input{display:block;width:100%;margin-top:6px;font-size:12.5px}.photo-attach-preview{display:flex;align-items:center;gap:10px;margin-top:8px}.photo-attach-preview img{width:56px;height:56px;object-fit:cover;border-radius:10px;border:1.5px solid #e7e2da}.photo-attach-preview button{border:none;background:none;color:#c0392b;font-size:12.5px;cursor:pointer;padding:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.modal-actions button{padding:10px 16px;border-radius:10px;border:1px solid #e7e2da;background:#fff;cursor:pointer;font-family:inherit}.modal-actions button:last-child{background:#e8890c;color:#fff;border:none}.orders-tab{padding:22px;overflow-y:auto;background:#f2fbf6;height:100%}.orders-tab-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.orders-tab-header h2{font-size:22px;font-weight:800;margin:0}.orders-tab-sub{margin:4px 0 0;color:#8a8a8a;font-size:13px}.sync-now-btn{padding:10px 16px;border-radius:10px;border:1px solid #e7e2da;background:#fff;cursor:pointer;font-family:inherit;font-weight:600}.orders-tab-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.orders-filter{padding:8px 14px;border-radius:999px;border:none;background:#fff;font-size:12px;font-weight:600;color:#6b6257;cursor:pointer;font-family:inherit}.orders-filter.active{background:#2a1a12;color:#fff}.orders-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;border-radius:14px;overflow:hidden}.orders-table th{text-align:start;padding:12px 14px;font-size:12px;color:#8a8a8a;font-weight:600;border-bottom:1px solid #eee}.orders-table td{padding:12px 14px;border-bottom:1px solid #f2f2f2}.order-number-cell{font-family:Courier New,monospace;font-size:12px;color:#6b6257}.order-total-cell{font-weight:700}.orders-empty{text-align:center;color:#999;padding:32px!important}.channel-pill{display:inline-block;padding:3px 10px;border-radius:999px;background:#2a1a12;color:#fff;font-size:11px;font-weight:600}.pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:11px;font-weight:700}.pill-pending{background:#fff3cd;color:#856404}.pill-failed{background:#f8d7da;color:#a71d2a}.pill-success{background:#d4f4dd;color:#1e7e34}.link-btn{background:none;border:none;color:#e8890c;cursor:pointer;font-family:inherit;font-size:12px;font-weight:600}.link-btn:hover{text-decoration:underline}.invoice-modal{width:100%;max-width:420px}.receipt-container{width:100%;background:#fff;border-radius:24px;padding:24px;box-shadow:0 25px 50px -12px #00000040;border:2px solid rgba(232,137,12,.2);color:#3d1a0a}.receipt-header{text-align:center;margin-bottom:24px}.receipt-logo{font-size:28px;font-weight:900;color:#3d1a0a;margin:0;letter-spacing:-1px}.receipt-success-icon{width:48px;height:48px;background:#dcfce7;color:#22c55e;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:12px auto;font-size:24px}.receipt-title{font-size:24px;font-weight:800;margin:8px 0}.receipt-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.receipt-badge{background:#3d1a0a0d;color:#3d1a0a;padding:4px 12px;border-radius:99px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:6px}.receipt-badge.primary{background:#e8890c1a;color:#e8890c;text-transform:uppercase;font-size:10px;letter-spacing:1px}.receipt-section{background:#3d1a0a0d;border:1px solid rgba(61,26,10,.1);border-radius:12px;padding:12px;margin-bottom:12px;text-align:left}.receipt-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.receipt-label{color:#3d1a0a80;font-weight:700;font-size:12px;display:block;margin-bottom:2px}.receipt-value{font-weight:700;font-size:12px;word-break:break-word}.receipt-section-title{font-weight:700;font-size:12px;margin:0 0 8px;color:#3d1a0a}.receipt-item-row{display:flex;justify-content:space-between;border-bottom:1px solid rgba(61,26,10,.05);padding-bottom:6px;margin-bottom:6px}.receipt-item-row:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}.receipt-item-name{font-weight:700;font-size:12px;margin:0}.receipt-item-price{font-weight:800;font-size:12px}.receipt-totals{border-top:1px solid rgba(61,26,10,.1);padding-top:12px;margin-top:12px;font-size:12px}.receipt-grand-total{display:flex;justify-content:space-between;font-size:18px;font-weight:800}.receipt-total-val{color:#e8890c;font-weight:900}.receipt-payment-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}@media print{body *{visibility:hidden}#receipt-print,#receipt-print *{visibility:visible}#receipt-print{position:fixed;top:0;left:0;width:100%;box-shadow:none;border:none}}
