*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{color:#202020;background:#f5f5f5;font-family:Tahoma,Arial,sans-serif}button,input,textarea,select{font-family:inherit}.app{direction:rtl;flex-direction:column;min-height:100vh;display:flex}.header{z-index:20;background:#000;border-bottom:4px solid #c9a227;justify-content:center;align-items:center;height:130px;display:flex;position:sticky;top:0}.header-logo{object-fit:contain;height:120px}.container{flex:1;width:100%;max-width:700px;margin:0 auto;padding:14px 10px 30px}.customer-info{background:#fff;border:1px solid #e5e5e5;border-radius:12px;margin-bottom:20px;padding:16px}.customer-label{color:#9b7919;margin-bottom:6px;font-size:16px;display:block}.customer-info h1{margin:0;font-size:22px;line-height:1.7}.customer-info p{color:#777;margin:5px 0 0;font-size:20px}.price-notes{color:#555;border-top:1px solid #eee;margin-top:13px;padding-top:11px;font-size:14px;line-height:1.8}.price-notes>div{align-items:center;gap:7px;display:flex}.price-note-dot{background:#c9a227;border-radius:50%;flex:0 0 5px;width:5px;height:5px}.section-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.section-header h2{margin:0;font-size:20px}.section-header span{color:#777;font-size:13px}.products-grid{flex-direction:column;gap:8px;display:flex}.product-card{background:#fff;border:1px solid #e2e2e2;border-radius:10px;flex-direction:row;align-items:center;width:100%;min-height:110px;display:flex;overflow:hidden}.product-image{background:#fff;flex:0 0 150px;justify-content:center;align-items:center;width:150px;height:150px;display:flex;overflow:hidden}.product-image img{object-fit:contain;width:85%;height:85%;display:block}.product-image-placeholder{color:#aaa;font-size:11px}.product-content{flex:1;min-width:0;padding:12px}.product-code{color:#222;text-align:right;direction:ltr;margin-bottom:5px;font-size:15px;font-weight:700}.product-name{margin:0;font-size:15px;line-height:1.8}.product-price{white-space:nowrap;text-align:left;direction:rtl;border-top:1px solid #eee;margin-top:8px;padding-top:8px;font-size:15px;font-weight:700}.product-price span{color:#777;font-size:11px;font-weight:400}.empty-state{text-align:center;color:#777;background:#fff;border:1px dashed #d5d5d5;border-radius:10px;padding:35px 15px;font-size:13px}.state-card{text-align:center;color:#777;background:#fff;border:1px solid #e5e5e5;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;min-height:180px;display:flex}.state-card h2{color:#222;margin:12px 0 5px;font-size:19px}.state-card p{margin:0;font-size:13px}.loading-spinner{border:3px solid #ddd;border-top-color:#111;border-radius:50%;width:30px;height:30px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.state-icon{background:#eee;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.invoice{background:#fff;border:1px solid #ddd;border-radius:10px;padding:15px;overflow:hidden}.invoice-header{text-align:center;border-bottom:1px solid #eee;margin-bottom:15px;padding-bottom:15px}.invoice-header h2{margin:0 0 12px;font-size:20px}.invoice-info{flex-direction:column;align-items:center;gap:6px;font-size:12px;display:flex}.invoice-info>div{align-items:center;gap:5px;display:flex}.invoice-info span{color:#777}.invoice-info strong{font-weight:700}.invoice-items{-webkit-overflow-scrolling:touch;width:100%;margin-bottom:18px;overflow-x:auto}.invoice-items table{border-collapse:collapse;width:100%;min-width:610px;font-size:11px}.invoice-items th,.invoice-items td{text-align:center;vertical-align:middle;border:1px solid #ddd;padding:7px 5px}.invoice-items th{white-space:nowrap;background:#f5f5f5;font-weight:700}.invoice-product-name{min-width:130px;line-height:1.6;text-align:right!important}.invoice-summary{width:100%;margin:0}.invoice-summary-row{justify-content:space-between;align-items:center;gap:15px;padding:7px 0;font-size:13px;display:flex}.invoice-summary-row span{color:#666}.invoice-summary-row strong{white-space:nowrap}.invoice-payable{border-top:1px solid #999;margin-top:5px;padding-top:10px;font-size:15px}.invoice-notes{background:#f7f7f7;border-radius:7px;margin-top:18px;padding:11px;font-size:12px;line-height:1.8}.invoice-notes strong{margin-bottom:4px;display:block}.invoice-notes p{white-space:pre-wrap;margin:0}.footer{color:#aaa;text-align:center;background:#111;border-top:2px solid #c9a227;padding:18px 12px;font-size:11px;line-height:1.9}.footer-address{max-width:500px;margin:0 auto 5px}.footer-phone{color:#c9a227;direction:rtl}@media (width<=479px){.header{height:130px}.header-logo{height:120px}.container{padding:12px 9px 25px}.customer-info{padding:15px}.customer-label{font-size:16px}.customer-info h1{font-size:21px}.customer-info p{font-size:20px}.price-notes{font-size:14px}.section-header h2{font-size:20px}.section-header span{font-size:12px}.products-grid{gap:8px}.product-card{min-height:95px}.product-image{background:#fff;flex-basis:150px;width:150px;height:150px}.product-image img{width:85%;height:85%}.product-content{padding:10px}.product-code,.product-name{font-size:14px}.product-price{text-align:left;font-size:14px}}@media (width>=480px){.container{padding-left:14px;padding-right:14px}.product-card{min-height:110px}.product-image{background:#fff;flex-basis:150px;width:150px;height:150px}.product-image img{width:85%;height:85%}.product-content{padding:11px}.product-code,.product-name{font-size:15px}.product-price{text-align:left;font-size:15px}}@media (width>=768px){.header{height:130px}.header-logo{height:120px}.container{max-width:900px;padding:22px 20px 45px}.customer-info h1{font-size:22px}.price-notes{font-size:14px}.products-grid{gap:10px}.product-card{min-height:150px}.-imaproductge{background:#fff;flex-basis:150px;width:150px;height:150px}.product-image img{width:85%;height:85%}.product-code,.product-name{font-size:16px}.product-price{text-align:left;font-size:16px}}@media (width>=1000px){.container{max-width:1100px}}@media print{body{background:#fff}.header,.footer{display:none}.container{max-width:none;padding:0}.invoice{border:none;padding:0}}
