@font-face{font-family:Vazirmatn;src:url('/Vazirmatn.ttf')}*{box-sizing:border-box}body{margin:0;background:#f7f8fb;color:#242136;font-family:var(--font,Vazirmatn),Tahoma,sans-serif;font-size:14px;line-height:1.8}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #e0dfe8;background:#fff;color:#524567;border-radius:10px;padding:9px 16px;transition:.15s}button:hover{border-color:#9b79d9;background:#faf7ff}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#7445c7;color:white;border-color:#7445c7;box-shadow:0 3px 8px #7445c71c}.primary:hover{background:#6535b6;color:white}.danger{color:#b84147;border-color:#efd3d3}.ghost{border-color:transparent;background:transparent}.full{width:100%}input,select,textarea{border:1px solid #dcdae6;border-radius:10px;padding:11px 12px;background:white;width:100%;color:#282238;outline:none;min-height:46px}input:focus,textarea:focus,select:focus{border-color:#9468da;box-shadow:0 0 0 3px #7445c712}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:#7445c7}label{display:block;font-size:13px;font-weight:600;margin:12px 0 5px}.check{display:flex;align-items:center;gap:10px;font-weight:400}h1,h2,h3,p{margin:0}h1{font-size:25px;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:16px}.muted{color:#898395;font-size:12px}.sub{color:#8c8698;font-size:13px;margin-top:4px}.ltr{direction:ltr;text-align:left}.shell{display:flex;min-height:100dvh}.sidebar{width:232px;flex-shrink:0;background:#fff;border-left:1px solid #eeedf3;position:fixed;right:0;top:0;bottom:0;padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 7px 28px}.brand img{width:49px;height:49px;border-radius:13px}.brand strong{font-size:17px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{text-align:right;border:0;background:none;padding:12px 15px;color:#797282;border-radius:11px}.sidebar nav button.active{background:#eee6fb;color:#6d3db6;font-weight:bold}.nav-icon{display:inline-flex;width:25px;font-size:18px}.profile{margin-top:auto;border-top:1px solid #efedf4;padding:20px 8px 0}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#efe7fa;border-radius:50%;width:35px;height:35px;color:#7544c7;margin-left:8px}.main{margin-right:232px;width:calc(100% - 232px);padding:34px 38px 30px;max-width:1800px}.pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:15px}.row{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.tag{display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:4px 10px;font-size:12px;background:#eee8f8;color:#7141b9;white-space:nowrap}.tag.green{background:#e6f5ee;color:#267b55}.tag.red{background:#fcebec;color:#b24a53}.tag.orange{background:#fff2de;color:#ab7427}.dot{display:inline-block;background:currentColor;width:6px;height:6px;border-radius:50%}.notice{background:#f1ecfa;border:1px solid #e4d8f6;border-radius:12px;padding:12px 17px;color:#6f558f;margin-bottom:22px;font-size:12px}.notice.warn{background:#fff8e9;border-color:#f0e3c4;color:#92703a}.notice.error{background:#fff0f0;border-color:#f3d0d0;color:#af4b50}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:25px}.stat{background:white;border:1px solid #eceaf2;border-radius:14px;padding:18px 23px;display:flex;align-items:center;justify-content:space-between}.stat strong{display:block;font-size:29px;line-height:1.5;margin-top:4px}.stat-icon{background:#f3eefb;color:#9368cd;width:48px;height:48px;display:grid;place-items:center;border-radius:13px;font-size:23px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search{position:relative;flex:1}.search input{padding-right:41px;background:#fff;height:49px}.search span{position:absolute;right:14px;top:8px;font-size:22px;color:#9890a4}.toolbar select{width:175px}.card{background:#fff;border:1px solid #e8e5ef;border-radius:15px;padding:23px}.tablebox{border:1px solid #e6e3ee;border-radius:14px;background:#fff;overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:right;font-size:13px}th{background:#f0f0f6;font-size:12px;color:#84798d;padding:15px 18px;font-weight:500}td{padding:16px 18px;border-bottom:1px solid #eeeaf3}tbody tr:nth-child(even){background:#f6f6f8}tbody tr:last-child td{border-bottom:none}tbody tr.selected{background:#f0e9fb}td.product-name{white-space:normal;min-width:185px;max-width:320px}td.number{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}td button{font-size:12px;padding:6px 12px}.empty{padding:50px 25px;text-align:center;color:#90869c}.empty strong{display:block;color:#63596e;font-size:17px;margin-bottom:8px}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px;align-items:start}.cardhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.product-title{padding:10px 12px;background:#f8f6fb;border-radius:9px;margin-bottom:16px;font-weight:600}.stockline{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#f2f3f7;border-radius:10px;margin:14px 0}.stockline strong{font-size:27px;line-height:1.5}.count-input{font-size:30px;text-align:center;direction:ltr;padding:13px;color:#543087}.diffline{display:flex;justify-content:space-between;align-items:center;border-radius:10px;background:#faf1f1;padding:10px 14px;color:#ae4c56;margin:15px 0}.diffline.equal{background:#edf7f0;color:#327451}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.value{background:#f4f3f8;padding:15px;border-radius:11px;text-align:center}.value.purple{background:#f0e7fc;color:#713ab8}.value strong{font-size:31px;display:block}.timeline{padding:14px 0;border-bottom:1px solid #eeeaf3}.timeline:last-child{border:0}.timeline .details{margin:9px 0;background:#f7f5fb;padding:10px 13px;border-radius:9px;font-size:12px}.timeline .row{justify-content:space-between}.small-button{font-size:12px;padding:6px 10px}a{color:#7845bd;text-decoration:none}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.settings-grid .card{min-width:0}footer{margin-top:28px;color:#a298af;font-size:11px;text-align:center}.mobile-head,.mobile-nav{display:none}.mobile-cards{display:none}.login-page{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 20% 10%,#eee4ff,transparent 55%),#f8f8fb}.login-card{width:min(100%,420px);background:white;border:1px solid #e7e1ee;border-radius:24px;padding:32px;box-shadow:0 15px 80px #5d3b7e09}.login-card img{display:block;width:82px;height:82px;border-radius:21px;margin:0 auto 20px}.login-card h1{text-align:center;font-size:23px}.login-card>p{text-align:center;font-size:12px;color:#93869f;margin:8px 0 23px}.login-card button{margin-top:23px;min-height:48px}.loading{text-align:center;padding:100px;color:#796a8d}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#302538;color:#fff;border-radius:12px;padding:12px 22px;z-index:200;display:none;max-width:90%;box-shadow:0 5px 35px #0002}#toast.show{display:block}dialog{border:1px solid #e2d9ef;border-radius:19px;padding:26px;width:min(94vw,600px);max-height:85dvh;overflow:auto;box-shadow:0 20px 100px #28113a22;color:#30243c;font-family:inherit}dialog::backdrop{background:#20102f50;backdrop-filter:blur(3px)}dialog h2{margin-bottom:15px}.modal-actions{display:flex;gap:10px;margin-top:20px}.badge-count{font-size:11px;background:#d8c8ef;padding:0 6px;border-radius:5px;margin-right:8px}.user-list{margin-top:20px}.user-item{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding:15px 2px}.report-card{margin-bottom:14px}.worker-shell .sidebar{display:none}.worker-shell .main{margin:0 auto;width:100%;max-width:620px;padding:25px 20px}.worker-shell .stats{display:none}.worker-shell .tablebox{display:none}.worker-shell .mobile-cards{display:grid;gap:11px}.worker-shell .mobile-head{display:flex}.worker-shell .pagehead{display:none}.worker-shell .workspace{display:block}.worker-shell .workspace>.card{margin-bottom:18px}.worker-shell .mobile-nav{display:flex}.worker-shell .toolbar select{display:none}.worker-shell .notice{margin-top:16px}.mobile-head{align-items:center;justify-content:space-between;margin-bottom:25px}.mobile-brand{display:flex;align-items:center;gap:12px}.mobile-brand img{width:51px;height:51px;border-radius:14px}.mobile-brand strong{font-size:19px}.mobile-nav{gap:8px;overflow:auto;margin:15px 0 22px;padding-bottom:3px}.mobile-nav button{white-space:nowrap;font-size:12px}.mobile-nav button.active{background:#eee5fa;color:#7544bd;border-color:#daceeb}.product-tile{text-align:right;padding:15px 16px;border:1px solid #e5dfed;border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center}.product-tile.selected{border-color:#9c75d3;background:#f6f0fc}.product-tile strong{font-size:14px;display:block}.product-tile .qty{font-size:21px;color:#756581}.cancel-select{margin-bottom:15px}.password-panel{max-width:480px}.mutedcode{font-family:monospace;font-size:12px;letter-spacing:1px;color:#93889d}.hint{font-size:12px;color:#96899e;margin:8px 0}.bottom-actions{display:flex;gap:10px;margin-top:16px}.right-title{margin-bottom:18px}.search-summary{font-size:12px;color:#9a8b9f;margin:9px 4px}.break{word-break:break-all}.busy{pointer-events:none;opacity:.6}
@media(max-width:1050px){.sidebar{width:202px}.main{margin-right:202px;width:calc(100% - 202px);padding:25px 22px}.workspace,.settings-grid{grid-template-columns:1fr}.pagehead{align-items:flex-start}.pagehead .row{flex-wrap:wrap}.stat{padding:15px}.stat-icon{display:none}}
@media(max-width:700px){body{background:#fbfbfd;font-size:14px}.sidebar{display:none}.main{width:100%;margin:0;padding:20px 17px}.mobile-head{display:flex}.mobile-nav{display:flex}.pagehead{display:none}.stats{gap:8px;margin:18px 0}.stat{padding:11px 12px;border-radius:12px}.stat strong{font-size:24px}.stat .muted{font-size:10px}.toolbar{flex-wrap:wrap;gap:9px}.toolbar .search{min-width:100%}.toolbar select{flex:1;width:120px;min-height:40px;padding:6px 10px;font-size:12px}.toolbar button{font-size:12px}.tablebox{display:none}.mobile-cards{display:grid;gap:10px}.card{padding:19px 17px;border-radius:14px}.workspace{display:block;margin-top:15px}.workspace .card{margin-bottom:15px}.settings-grid{display:block}.settings-grid>.card{margin-bottom:17px}.form-grid{grid-template-columns:1fr;gap:0}.notice{font-size:11px;padding:10px 12px;margin-bottom:16px}.count-input{min-height:75px;font-size:32px}.full.primary{min-height:51px;font-size:16px}.login-card{padding:27px 22px}.mobile-head .ghost{padding:5px 8px;font-size:12px}.worker-shell .main{padding:20px 17px}.worker-shell .notice{font-size:11px}.worker-shell .mobile-nav button{font-size:12px}.worker-shell .mobile-cards:has(.selected){display:none}.mobile-head .tag{font-size:10px;padding:4px 7px}.mobile-brand strong{font-size:17px}.selected-summary{margin-bottom:15px}.user-item{gap:10px}.user-item button{font-size:12px}.values .value{padding:10px}.values strong{font-size:28px}}

/* History and staff reports */
.report-controls{margin-bottom:20px}.report-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:14px;align-items:end}.report-filter-grid>div{min-width:0}.report-filter-grid label{margin-top:0}.report-submit{min-height:48px}.date-field{display:flex;gap:5px;align-items:center}.date-field input{text-align:center;min-width:0;direction:ltr}.calendar-trigger{display:grid;place-items:center;flex-shrink:0;padding:11px;min-height:46px}.report-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.report-presets button{font-size:12px;padding:5px 12px}.report-summary{margin-top:20px}.report-total{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;flex-wrap:wrap}.report-quantity{font-size:20px;font-weight:600;color:#5d3d90}.staff-card h2{margin-bottom:9px}.staff-table{overflow-x:auto;margin-top:18px}.staff-table td,.staff-table th{padding:15px 12px}.unit-totals{white-space:normal;min-width:150px}.staff-mobile{display:none}.report-history .cardhead{align-items:flex-start;gap:12px;flex-wrap:wrap}.history-values{display:flex;flex-wrap:wrap;gap:10px 25px;margin:16px 0}.history-values span{background:#f6f5f8;padding:8px 13px;border-radius:8px;font-size:12px}.history-values b{margin-right:8px}.report-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0}.report-pagination span{font-size:12px;color:#897c98}.report-actions{margin-top:18px}.report-actions .hint{max-width:700px}#date-picker{width:min(94vw,380px);padding:20px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;direction:rtl}.calendar-head h2{font-size:17px;margin:0}.calendar-head button{font-size:24px;line-height:1;padding:7px 14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;direction:rtl}.calendar-grid button{padding:7px 0;border-color:transparent;border-radius:9px}.calendar-grid .selected{background:#7445c7;color:#fff}.calendar-weekday{text-align:center;font-size:12px;color:#95899d;padding-bottom:8px}#date-picker .modal-actions{justify-content:center;gap:6px}#date-picker .modal-actions button{font-size:12px}
@media(max-width:1200px){.report-filter-grid{grid-template-columns:1fr 1fr}.report-submit{grid-column:1/-1;justify-self:start}}
@media(max-width:700px){.report-filter-grid{grid-template-columns:1fr 1fr;gap:14px 10px}.report-filter-grid label{font-size:11px}.date-field{gap:3px}.date-field input{font-size:12px;padding:10px 4px}.calendar-trigger{padding:9px 6px}.report-submit{justify-self:stretch}.report-summary{grid-template-columns:1fr;gap:10px}.report-summary .stat{padding:13px 16px}.report-summary .stat>div{display:flex;justify-content:space-between;align-items:center;width:100%}.report-summary .stat strong{margin:0}.report-summary .stat .muted{font-size:12px}.staff-table{display:none}.staff-mobile{display:block}.staff-mobile article{padding:17px 0;border-bottom:1px solid #eee}.staff-mobile article:last-child{border:0}.staff-metrics{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin:10px 0}.staff-metrics b{margin-right:5px}.staff-mobile article>p{font-size:13px}.report-history .tag{font-size:10px}.history-values{display:grid;gap:7px}.history-values span{display:flex;justify-content:space-between}.report-pagination{gap:12px}.report-controls .hint{font-size:11px}.report-quantity{font-size:17px}.report-presets{gap:5px}.report-presets button{font-size:11px;padding:4px 8px}}
