@font-face{font-family:Vazirmatn;src:url('./fonts/vazirmatn-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{font-family:Vazirmatn,Tahoma,sans-serif;color:#172b45;background:#f7f9fc;font-size:14px;--navy:#123b61;--teal:#078e91;--line:#e3ebf2}*{box-sizing:border-box}body{margin:0;font-family:Vazirmatn,Tahoma,sans-serif;font-size:1rem}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4ebcc1;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:1.6rem}h2{font-size:1.2rem}small{font-size:.78rem}input,select,textarea{width:100%;border:1px solid #d7e2ed;border-radius:12px;padding:12px;background:#fff;color:#172b45;min-height:46px}textarea{resize:vertical;min-height:90px}label{display:block;font-weight:700;margin:15px 0 8px}label input,label select,label textarea{display:block;margin-top:7px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary,.secondary{border:0;min-height:50px;border-radius:13px;padding:12px 18px;font-weight:800}.primary{background:linear-gradient(110deg,#08a9a4,#007b83);color:white;box-shadow:0 7px 18px #078e9126}.secondary{background:#fff;color:#123b61;border:1px solid #b8cfe1}.full{width:100%;margin-top:16px}.text-button{background:none;border:0;color:#087f8c;font-weight:700;padding:15px}.danger{color:#c4474e}.muted{color:#718096;line-height:2}.loading,.empty{text-align:center;color:#718096;padding:32px 12px}.large{padding:60px 12px}.large div{font-size:4rem;color:#0a9998}.large p{margin:12px 0 20px}.auth{max-width:460px;min-height:100dvh;background:#fff;margin:auto}.auth-brand{min-height:220px;background:linear-gradient(145deg,#123b61,#066981);color:#fff;text-align:center;padding:28px 20px 30px;position:relative;overflow:hidden}.auth-brand:before,.auth-brand:after{content:'';position:absolute;width:240px;height:240px;border:1px solid #ffffff20;border-radius:50%;top:-100px;right:-60px}.auth-brand:after{top:90px;right:auto;left:-130px}.brand-icon{font-size:32px;line-height:1}.brand-latin{font-size:25px;font-weight:800;letter-spacing:2px}.auth-brand h1{font-size:1.35rem;margin:4px}.auth-brand p{font-size:.85rem;opacity:.8}.brand-wave{position:absolute;bottom:-20px;left:-5%;width:110%;height:35px;background:#fff;border-radius:50% 50% 0 0}.auth-body{padding:18px 26px 30px}.auth-heading h2{font-size:1.5rem}.auth-heading p{color:#718096;margin-top:4px}.auth-body>.text-button{display:block;margin:5px auto}.shell{max-width:720px;margin:auto;min-height:100dvh;background:#f7f9fc}.topbar{display:flex;align-items:center;gap:11px;padding:18px 18px 8px}.topbar strong{display:block}.topbar small{display:block;color:#718096;margin-top:2px}.avatar{width:45px;height:45px;display:grid;place-items:center;border-radius:16px;background:#d5f0ef;color:#087f82;font-size:1.2rem;font-weight:800}.admin-link{margin-right:auto;border:0;background:#e2f2f3;color:#087f82;border-radius:10px;padding:9px}.icon-btn{border:0;background:white;border-radius:12px;width:44px;height:44px;font-size:1.5rem}.content{padding:12px 18px calc(120px + env(safe-area-inset-bottom))}.hero{min-height:137px;background:linear-gradient(120deg,#123b61,#087e8b);color:#fff;border-radius:20px;padding:21px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.hero span{font-size:.8rem;color:#a6e8e2}.hero h1{font-size:1.35rem;margin:6px 0}.hero p{font-size:.8rem;color:#dbf5f4}.hero-art{font-size:4.3rem;transform:rotate(-12deg);position:relative}.hero-art span{position:absolute;top:-4px;left:-10px;font-size:1.5rem;color:#ffc766}.search-wrap{margin:17px 0;position:relative}.search-wrap span{position:absolute;right:14px;top:5px;font-size:2rem;color:#688398}.search-wrap input{padding-right:44px;background:#fff}.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -18px;padding:0 18px 7px}.chips button,.admin-nav button{white-space:nowrap;border:1px solid #e1e9ef;background:white;border-radius:12px;padding:10px 14px;min-height:44px;color:#547083;font-weight:700}.chips .selected,.admin-nav .selected{background:#087e83;color:white;border-color:#087e83}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:18px 0 10px}.section-heading small,.page-title span{color:#879aaa}.section-heading h2 span{font-size:.8rem;color:#9badbb}.switch{display:flex;background:#edf2f7;border-radius:10px;padding:3px}.switch button{border:0;background:transparent;border-radius:8px;width:44px;height:44px;color:#688398}.switch button.on{background:white;color:#078e91;box-shadow:0 2px 8px #123b6115}.products{display:grid;gap:8px}.product{display:flex;align-items:center;gap:11px;background:white;border:1px solid #edf2f6;border-radius:15px;padding:9px;min-width:0}.product-img{width:72px;height:72px;object-fit:cover;border-radius:11px;flex:none}.placeholder{display:grid;place-items:center;background:#f4f8fa;font-size:2.4rem}.product-info{min-width:0;flex:1}.product-info h3{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-info p{font-size:.72rem;color:#8b9aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0}.product-info strong{font-size:.86rem}.unavailable{display:block;color:#d65a60}.add{width:44px;height:44px;flex:none;border:0;border-radius:12px;background:#0a9f85;color:white;font-size:1.6rem;line-height:1}.stepper{display:flex;align-items:center;gap:5px;flex:none;direction:ltr}.stepper button{border:1px solid #c8e7e2;color:#078e83;background:#fff;border-radius:50%;width:44px;height:44px;font-size:1.2rem}.grid{grid-template-columns:1fr 1fr}.grid .product{display:grid;grid-template-columns:1fr auto;align-content:start}.grid .product-img{width:100%;height:115px;grid-column:1/-1}.grid .product-info p{display:none}.grid .stepper{grid-column:1/-1}.bottom{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,720px);display:flex;justify-content:space-around;background:#fff;border-top:1px solid #e9eff4;padding:7px 5px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #123b6108}.bottom button{border:0;background:transparent;color:#8a9cab;font-size:.7rem;min-width:64px;min-height:47px}.bottom button span{display:block;font-size:1.45rem;line-height:1.2;position:relative}.bottom button.active{color:#008b8c;font-weight:800}.bottom i{font-style:normal;font-size:.65rem;background:#f16369;color:white;border-radius:50%;padding:1px 5px}.cart-bar{position:fixed;z-index:4;bottom:calc(70px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 36px),684px);background:#058b87;color:white;border:0;border-radius:15px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;text-align:right;box-shadow:0 5px 18px #005d6138}.cart-bar small{display:block}.cart-bar b{background:#fff;color:#087f83;border-radius:6px;padding:1px 6px}.page-title{margin:12px 0 20px}.page-title h1{margin-top:4px}.cart-list{display:grid;gap:8px}.summary,.order-detail,.panel,.order-number{background:#fff;border:1px solid #e7eef4;border-radius:16px;padding:16px;margin-top:14px}.summary div,.order-detail div{display:flex;justify-content:space-between;gap:10px;padding:8px 0}.notice{background:#e7f5fa;color:#176080;border-radius:14px;padding:15px;margin:18px 0;line-height:1.8}.order-card{width:100%;background:white;border:1px solid #e6edf3;border-radius:15px;margin-bottom:9px;padding:15px;text-align:right;display:flex;justify-content:space-between;color:inherit}.order-card small,.order-card strong{display:block;margin-top:7px}.badge{display:inline-block;background:#e5f7f2;color:#098868;border-radius:8px;padding:4px 9px;font-size:.75rem}.success{text-align:center;padding:12px}.success div{margin:0 auto 13px;border-radius:50%;background:#16a36a;color:#fff;width:65px;height:65px;display:grid;place-items:center;font-size:2.5rem}.success p{color:#718096;margin-top:8px}.order-number{text-align:center;background:#edf8fb}.order-number span,.order-number strong,.order-number small{display:block}.order-number strong{font-size:2rem;color:#1769aa}.subheading{margin:25px 0 15px}.timeline{padding-right:16px}.stage{border-right:2px solid #dbe4ed;display:flex;gap:15px;min-height:68px;padding-right:0}.stage i{font-style:normal;margin-right:-15px;background:#e8eef3;color:#9cb0c0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center}.stage.done{border-color:#16a36a}.stage.done i{background:#16a36a;color:#fff}.stage small{display:block;color:#8b9aaa}.admin-shell{max-width:1100px;margin:auto;padding:20px}.admin-head{display:flex;align-items:center;justify-content:space-between}.admin-head small{color:#078e91;letter-spacing:1px}.admin-head button,.line button,.actions button{border:1px solid #cce2e5;background:#fff;color:#087e83;border-radius:10px;min-height:40px;padding:8px 12px}.admin-nav{display:flex;gap:8px;overflow:auto;margin:20px 0}.admin-content h2{margin:25px 0 12px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats div{background:#fff;border:1px solid #e3edf3;border-radius:15px;padding:17px}.stats small,.stats strong{display:block}.stats small{color:#74899b}.stats strong{font-size:1.2rem;margin-top:7px}.line{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:13px;border-bottom:1px solid #edf1f5}.line small,.user-form small{display:block;color:#8293a0}.admin-order{background:#fff;border:1px solid #e4edf3;border-radius:15px;padding:15px;margin:10px 0}.admin-order>div:first-child{display:flex;justify-content:space-between}.admin-order p{color:#7b8d9d;margin:7px 0}.actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.panel h3{margin-bottom:10px}.check{display:flex;align-items:center;gap:8px}.check input{width:20px;min-height:20px;margin:0}.user-form select{margin:10px 0}#toast{visibility:hidden;position:fixed;z-index:20;top:16px;left:50%;transform:translate(-50%,-150%);background:#183b50;color:white;padding:12px 20px;border-radius:12px;box-shadow:0 5px 20px #0003;transition:transform .2s;max-width:90%;text-align:center}#toast.show{visibility:visible;transform:translate(-50%,0)}@media(min-width:700px){.content{padding-left:26px;padding-right:26px}.hero{min-height:165px}.products.list{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(4,1fr)}.auth{margin:30px auto;min-height:auto;border-radius:24px;overflow:hidden;box-shadow:0 20px 60px #123b6115}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.modal-backdrop{position:fixed;inset:0;background:#102c45a8;z-index:30;display:grid;place-items:center;padding:16px}.receipt{width:min(100%,480px);max-height:90vh;overflow:auto;background:white}.receipt-head{display:flex;justify-content:space-between;align-items:center}.receipt p{margin:10px 0}.receipt-head button{border:0;background:#eef4f6;border-radius:8px;padding:10px}@media print{body>*:not(.modal-backdrop){display:none!important}.modal-backdrop{position:static;background:white;display:block}.receipt{border:0;width:100%;max-height:none}.receipt button{display:none}}

.image-details{background:#fff;border-bottom:1px solid #edf1f5;padding:0 13px 10px}.image-details summary{cursor:pointer;color:#087e83;font-weight:700;min-height:36px;padding:8px 0}.image-details .image-form{padding-bottom:8px}.image-details .image-form label{margin-top:6px}

.weekly-chart{display:flex;direction:ltr;align-items:end;gap:8px;height:180px;padding:15px 12px;background:white;border:1px solid #e3edf3;border-radius:15px}.weekly-chart>div{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:4px}.weekly-chart span{width:min(80%,32px);min-height:3px;background:#11b6ae;border-radius:6px 6px 0 0}.weekly-chart span.negative{background:#e45a61}.weekly-chart small,.weekly-chart b{font-size:.65rem;color:#718096}.weekly-chart b{max-width:100%;overflow:hidden;text-overflow:ellipsis}

.admin-head-actions{display:flex;align-items:center;gap:8px}.sound-toggle{display:flex;align-items:center;gap:5px;font-size:.72rem;white-space:nowrap;margin:0}.sound-toggle input{width:18px;height:18px;min-height:18px;margin:0}@media(max-width:370px){.admin-head{align-items:flex-start;gap:6px}.admin-head-actions{flex-direction:column;align-items:end}.admin-head h1{font-size:1.3rem}}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0;color:#718096;font-size:.8rem}.pagination button{min-height:44px;border:1px solid #cce2e5;background:#fff;color:#087e83;border-radius:10px;padding:8px 14px}

.payment-choices{display:grid;gap:8px;margin-top:16px}.payment-choices button{width:100%}.payment-dialog p{color:#718096;line-height:1.8;margin-top:10px}

.password-field{display:flex;align-items:center;position:relative}.password-field input{padding-left:65px}.password-field button{position:absolute;left:5px;top:11px;min-height:38px;border:0;border-radius:9px;background:#eef7f7;color:#087e83;padding:6px 10px}.product-title{display:block;max-width:100%;padding:0;border:0;background:transparent;text-align:right;color:inherit}.product-dialog>.product-img{display:block;width:100%;height:170px;object-fit:cover;margin:16px 0}.product-dialog>.placeholder{font-size:5rem}.detail-quantity{margin-top:12px}

.report-print-content{margin-top:18px}.report-print-content h3{margin:18px 0 10px}.report-print-content p{line-height:1.9;margin:10px 0}.report-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:15px 0}.report-actions a,.report-actions button{color:#087e83;font-weight:700}.report-actions button{background:white;border:1px solid #cce2e5;border-radius:10px;min-height:44px;padding:8px 15px}

.search-form{display:flex;align-items:center;gap:8px}.search-form input{flex:1;min-width:0}.search-form button{white-space:nowrap}

.hero-art img{display:block;width:108px;height:108px;object-fit:cover;border-radius:38% 48% 42% 44%;box-shadow:0 10px 24px #032b3f40}@media(max-width:360px){.hero-art img{width:88px;height:88px}.hero{padding:16px}}

.icon{width:24px;height:24px;display:inline-block;vertical-align:middle}.bottom button span{display:flex;align-items:center;justify-content:center;min-height:28px}.bottom button span i{position:absolute;top:-4px;right:5px}.search-wrap span{top:11px}.search-wrap .icon{width:22px;height:22px}

.purchase-line{border:1px solid #e3edf3;border-radius:14px;padding:12px;margin:12px 0}.purchase-line-head{display:flex;justify-content:space-between;align-items:center}.purchase-line-head .text-button{padding:8px;color:#c4474e}

.brand-logo{display:block;width:56px;height:56px;object-fit:contain;margin:0 auto 5px;border-radius:14px;background:white;padding:4px}.settings-logo{display:block;width:80px;height:80px;object-fit:contain;border-radius:12px;background:#f2f6f8}.receipt-logo{display:block;width:64px;height:64px;object-fit:contain;margin:0 auto 10px}
.discount-price{color:#087f82}.product-info del{color:#8a98a8;font-size:.78em;margin-inline-start:6px}.discount-badge{color:#b04b00;background:#fff0d1;border-radius:8px;padding:2px 6px}
