@font-face{font-family:"Vazirmatn";src:url("/fonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/fonts/Vazirmatn-SemiBold.woff2") format("woff2");font-weight:600 900;font-display:swap}
:root{--navy:#082542;--purple:#6745cf;--purple-2:#7d5be0;--blue:#2977e8;--green:#20a467;--orange:#ec8b22;--red:#e34658;--pink:#d94d94;--ink:#182238;--muted:#8e97a9;--line:#e4e8f0;--canvas:#f5f7fb;--panel:#fff;--shadow:0 7px 24px rgba(26,38,60,.045)}
html,body{margin:0;min-height:100%;direction:rtl;background:var(--canvas);color:var(--ink);font-family:"Vazirmatn",Tahoma,Arial,sans-serif;font-size:14px}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.ui-icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ui-page{display:flex;flex-direction:column;gap:14px}.page-titlebar{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-title{display:flex;align-items:center;gap:12px}.page-title-icon{width:48px;height:48px;display:grid;place-items:center;color:var(--purple);background:linear-gradient(145deg,#f2edff,#e7defd);border-radius:15px}.page-title-icon svg{width:22px;height:22px}.page-title h1{margin:0;color:#162137;font-size:23px;font-weight:900}.page-title p{margin:4px 0 0;color:#939bac;font-size:11px}.breadcrumbs{display:flex;align-items:center;gap:7px;margin-bottom:3px;color:#a0a7b5;font-size:9.5px}.breadcrumbs b{color:#5f45be;font-weight:700}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.btn{height:40px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#49546a;background:#fff;border:1px solid #dfe4ed;border-radius:10px;text-decoration:none;font-size:11.5px;font-weight:750;transition:.15s}.btn svg{width:15px;height:15px}.btn:hover{color:var(--purple);border-color:#d2c8ef;background:#fbfaff}.btn-primary{color:#fff;background:linear-gradient(135deg,#7857dc,#5d3dc0);border-color:transparent;box-shadow:0 8px 18px rgba(102,70,199,.18)}.btn-primary:hover{color:#fff;background:linear-gradient(135deg,#6f4ed3,#5534b6)}.btn-success{color:#147a4a;background:#ebf8f2;border-color:#d2eddf}.btn-danger{color:#c83a4c;background:#fff0f2;border-color:#f3d7dc}.btn-ghost{background:transparent;border-color:transparent}.btn-sm{height:32px;padding:0 9px;border-radius:8px;font-size:10.5px}.icon-btn{width:34px;height:34px;padding:0;display:grid;place-items:center;color:#667187;background:#fff;border:1px solid #dfe4ed;border-radius:9px}.icon-btn svg{width:15px;height:15px}.icon-btn.purple{color:#6745cf;background:#f7f3ff;border-color:#e3daf9}.icon-btn.blue{color:#2474db;background:#eff6ff;border-color:#d8e8fb}.icon-btn.red{color:#d64052;background:#fff1f3;border-color:#f2d8dd}
.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.kpi-card{min-height:112px;padding:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.kpi-card:after{content:"";width:86px;height:86px;position:absolute;left:-34px;bottom:-48px;border-radius:50%;background:rgba(91,67,175,.035)}.kpi-copy span{display:block;color:#737d90;font-size:10.5px}.kpi-copy strong{display:block;margin:7px 0 3px;color:#1e293f;font-size:22px;font-weight:900;letter-spacing:-.4px}.kpi-copy small{color:#a0a7b5;font-size:9.5px}.kpi-trend{margin-top:7px!important;color:#23a467!important;font-size:9.5px!important}.kpi-trend.down{color:#e24657!important}.kpi-icon{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border-radius:14px}.kpi-icon svg{width:21px;height:21px}.tone-purple{color:#6745cf;background:#efe9ff}.tone-blue{color:#2977e8;background:#eaf3ff}.tone-green{color:#1e9e62;background:#e8f8f0}.tone-orange{color:#e8871f;background:#fff2e2}.tone-red{color:#e34658;background:#ffecef}.tone-pink{color:#ce4188;background:#fcebf4}
.panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.panel-head{min-height:57px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e9ecf2}.panel-head h2{margin:0;color:#253046;font-size:14px;font-weight:850}.panel-head p{margin:3px 0 0;color:#9aa2b0;font-size:9.5px}.panel-head-tools{display:flex;align-items:center;gap:7px}.panel-body{padding:16px}.panel-link{color:#6041c5;text-decoration:none;font-size:10.5px;font-weight:750}
.filter-panel{padding:13px 14px;display:grid;grid-template-columns:1.7fr repeat(3,1fr) auto;gap:10px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.field label,.field-label{display:block;margin-bottom:5px;color:#747e91;font-size:9.8px;font-weight:700}.input,.select,.field input,.field select,.field textarea{width:100%;height:39px;padding:0 11px;color:#364158;background:#fff;border:1px solid #dce2eb;border-radius:9px;outline:0;font-size:11.5px}.field textarea{height:88px;padding-top:10px;resize:vertical}.input:focus,.select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#8e73df;box-shadow:0 0 0 3px rgba(105,72,207,.07)}.search-box{height:39px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #dce2eb;border-radius:9px}.search-box svg{width:15px;height:15px;color:#9ba3b3}.search-box input{width:100%;height:35px;border:0;outline:0;background:transparent;color:#364158;font-size:11.5px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid .wide{grid-column:1/-1}.switch-row{min-height:42px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8f9fc;border:1px solid #e8ebf1;border-radius:10px}.switch-copy strong{display:block;color:#344057;font-size:11px}.switch-copy span{display:block;margin-top:2px;color:#949cab;font-size:9.5px}.switch{width:38px;height:21px;position:relative;appearance:none;background:#ccd3df;border-radius:20px;transition:.15s}.switch:checked{background:#6745cf}.switch:after{content:"";width:17px;height:17px;position:absolute;top:2px;right:2px;background:#fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.15s}.switch:checked:after{right:19px}
.data-wrap{overflow:auto}.data-table{width:100%;min-width:900px;border-collapse:collapse}.data-table th{height:42px;padding:0 11px;color:#687286;background:#fafbfc;border-bottom:1px solid #e6e9f0;text-align:right;font-size:9.8px;font-weight:800;white-space:nowrap}.data-table td{height:51px;padding:8px 11px;color:#3c475d;border-bottom:1px solid #edf0f4;font-size:10.8px;vertical-align:middle}.data-table tbody tr:hover{background:#fbfaff}.data-table tbody tr:last-child td{border-bottom:0}.table-code{color:#5f42c5;font-weight:850;direction:ltr;display:inline-block}.money{direction:ltr;display:inline-block;font-weight:800}.table-user{display:flex;align-items:center;gap:8px}.mini-avatar{width:31px;height:31px;display:grid;place-items:center;color:#6547c8;background:#efeaff;border-radius:9px;font-size:10px;font-weight:850}.row-actions{display:flex;align-items:center;gap:5px}.badge{padding:4px 8px;display:inline-flex;align-items:center;gap:5px;border-radius:7px;font-size:9.5px;font-weight:750;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge-green{color:#14814f;background:#e9f8f0}.badge-blue{color:#246fd0;background:#eaf3ff}.badge-orange{color:#c67516;background:#fff1df}.badge-red{color:#cc3a4d;background:#ffecef}.badge-purple{color:#6545c8;background:#efe9ff}.badge-gray{color:#6f7888;background:#f0f2f5}.table-footer{min-height:50px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#959cab;font-size:9.8px;border-top:1px solid #e8ebf1}.pagination{display:flex;align-items:center;gap:5px}.pagination button{width:31px;height:31px;color:#5b667a;background:#fff;border:1px solid #dfe4ec;border-radius:8px}.pagination .active{color:#fff;background:#6745cf;border-color:#6745cf}
.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:13px}.content-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-box{min-height:270px;padding:16px}.chart-legend{display:flex;align-items:center;gap:14px;color:#7a8497;font-size:9.5px}.legend-item{display:flex;align-items:center;gap:5px}.legend-item i{width:8px;height:8px;border-radius:50%}.line-chart{width:100%;height:210px;margin-top:10px}.chart-gridline{stroke:#e8ebf1;stroke-width:1}.chart-label{fill:#8d96a7;font:9px Vazirmatn}.chart-line-green{fill:none;stroke:#23a566;stroke-width:3}.chart-line-blue{fill:none;stroke:#2977e8;stroke-width:3}.chart-line-red{fill:none;stroke:#e34658;stroke-width:2;stroke-dasharray:7 6}.chart-dot{stroke:#fff;stroke-width:3}.donut-wrap{min-height:245px;display:flex;align-items:center;justify-content:center;gap:28px}.donut{width:165px;height:165px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(#22a565 0 87%,#e8edf3 87%)}.donut:after{content:"";width:116px;height:116px;position:absolute;background:#fff;border-radius:50%}.donut-center{position:relative;z-index:2;text-align:center}.donut-center strong{display:block;font-size:26px;font-weight:900}.donut-center span{color:#8790a1;font-size:10px}.donut-legend{display:flex;flex-direction:column;gap:14px}.donut-legend div{display:grid;grid-template-columns:8px 1fr;gap:7px;color:#657084;font-size:10px}.donut-legend i{width:8px;height:8px;margin-top:3px;border-radius:50%}.donut-legend strong{display:block;margin-top:2px;color:#263148;font-size:14px}
.mini-bars{display:flex;flex-direction:column;gap:13px}.mini-bar-row{display:grid;grid-template-columns:90px 1fr 70px;gap:9px;align-items:center;color:#566176;font-size:10.5px}.bar-track{height:8px;overflow:hidden;background:#edf0f5;border-radius:10px}.bar-track span{height:100%;display:block;border-radius:10px;background:linear-gradient(90deg,#8b6ee4,#6040c6)}.mini-bar-row b{text-align:left;font-size:10.5px}
.alert-list{display:flex;flex-direction:column;gap:8px}.alert-item{min-height:58px;padding:9px 11px;display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:9px;border:1px solid #e7eaf0;border-radius:10px}.alert-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:10px}.alert-icon svg{width:17px;height:17px}.alert-item strong{display:block;color:#354057;font-size:10.5px}.alert-item p{margin:3px 0 0;color:#939baa;font-size:9.5px}.alert-item time{color:#a1a8b5;font-size:9px}.alert-warning{background:#fff9f1;border-color:#f6e7cf}.alert-warning .alert-icon{color:#df851d;background:#fff0dc}.alert-info{background:#f3f8ff;border-color:#deebfa}.alert-info .alert-icon{color:#2874d9;background:#e5f0ff}.alert-success{background:#f2fbf6;border-color:#dbf0e5}.alert-success .alert-icon{color:#1f9c61;background:#e2f6eb}
.rule-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.flow-step{min-height:105px;padding:13px;position:relative;background:#f9fafc;border:1px solid #e7eaf0;border-radius:12px}.flow-step:not(:last-child):after{content:"‹";position:absolute;left:-8px;top:41px;color:#9ea6b4;font-size:18px;z-index:2}.flow-number{width:25px;height:25px;display:grid;place-items:center;color:#fff;background:#6745cf;border-radius:8px;font-size:9px;font-weight:850}.flow-step strong{display:block;margin-top:8px;color:#344057;font-size:10.5px}.flow-step p{margin:4px 0 0;color:#8d96a7;font-size:9px;line-height:1.8}.notice{padding:11px 13px;display:flex;align-items:flex-start;gap:8px;color:#72501e;background:#fff8ed;border:1px solid #f0dfc4;border-radius:11px;font-size:10.5px;line-height:1.8}.notice svg{width:17px;height:17px;min-width:17px;margin-top:1px;color:#df851e}.notice.info{color:#315f91;background:#f1f7ff;border-color:#d9e8fa}.notice.success{color:#23714d;background:#effaf4;border-color:#d7eee2}.danger-strip{color:#b93445;background:#fff1f3;border-color:#f3d6db}
.tabs{padding:5px;display:flex;align-items:center;gap:4px;background:#eef1f6;border-radius:10px;width:max-content}.tab{height:32px;padding:0 11px;color:#697487;background:transparent;border:0;border-radius:8px;font-size:10.5px}.tab.active{color:#5e40bf;background:#fff;box-shadow:0 3px 10px rgba(35,45,63,.08);font-weight:800}.action-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.action-card{min-height:150px;padding:17px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);text-decoration:none;transition:.15s}.action-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,41,63,.075)}.action-card .kpi-icon{margin-bottom:11px}.action-card strong{color:#2b364c;font-size:13px}.action-card p{margin:5px 0 13px;color:#9199a9;font-size:9.8px;line-height:1.8}.action-card span{margin-top:auto;color:#6041c5;font-size:10px;font-weight:750}
.upload-zone{min-height:230px;padding:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:repeating-linear-gradient(-45deg,#fbfcfd,#fbfcfd 10px,#f8f9fb 10px,#f8f9fb 20px);border:2px dashed #d7dce6;border-radius:14px}.upload-icon{width:62px;height:62px;display:grid;place-items:center;color:#6745cf;background:#ede7ff;border-radius:18px}.upload-icon svg{width:27px;height:27px}.upload-zone h3{margin:14px 0 5px;color:#344057;font-size:13px}.upload-zone p{margin:0 0 14px;color:#929aaa;font-size:10px}.progress-ring{width:72px;height:72px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(#6745cf 0 72%,#e9ecf2 72%)}.progress-ring:after{content:"";width:56px;height:56px;position:absolute;background:#fff;border-radius:50%}.progress-ring b{position:relative;z-index:2;font-size:12px}
.customer-hero{padding:19px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#102b4a,#0a213b);border-radius:16px;color:#fff;box-shadow:0 12px 30px rgba(9,34,62,.15)}.customer-identity{display:flex;align-items:center;gap:13px}.customer-avatar-lg{width:62px;height:62px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#8162e4,#6040c4);border:3px solid rgba(255,255,255,.16);border-radius:17px;font-size:20px;font-weight:900}.customer-identity h1{margin:0;font-size:19px}.customer-identity p{margin:5px 0 0;color:#aab8c7;font-size:10px}.customer-tags{display:flex;gap:6px;margin-top:9px}.customer-tags span{padding:4px 7px;color:#dce6f0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:7px;font-size:9px}.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.hero-metric{min-width:100px;padding-right:18px;border-right:1px solid rgba(255,255,255,.12)}.hero-metric span{display:block;color:#a6b5c5;font-size:9.5px}.hero-metric strong{display:block;margin-top:4px;font-size:17px}
.scenario-panel{padding:15px;display:grid;grid-template-columns:1.15fr .9fr .9fr .9fr;gap:14px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.scenario-group{padding-left:14px;border-left:1px solid #e8ebf1}.scenario-group:last-child{border-left:0}.scenario-group h3{margin:0 0 10px;color:#465167;font-size:10.5px}.radio-list{display:flex;flex-direction:column;gap:9px}.radio-list label{display:flex;align-items:center;gap:7px;color:#566176;font-size:10px}.scenario-value{display:grid;grid-template-columns:1fr 1fr;gap:7px}.percent-box{height:39px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dce2eb;border-radius:9px}.percent-box input{width:60px;border:0;outline:0;color:#29354b;font-weight:850}.scenario-actions{margin-top:10px;display:flex;gap:7px}
.comparison-grid{display:grid;grid-template-columns:1.1fr .9fr 1.15fr;gap:13px}.comparison-table{width:100%;border-collapse:collapse}.comparison-table th,.comparison-table td{padding:8px;border-bottom:1px solid #edf0f4;font-size:9.5px;text-align:right}.comparison-table th{color:#737d90;background:#fafbfc}.up{color:#199357!important}.down{color:#dc3e50!important}
.empty-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state .kpi-icon{width:58px;height:58px;margin-bottom:12px}.empty-state h3{margin:0;color:#3b465c;font-size:13px}.empty-state p{max-width:380px;margin:6px 0 14px;color:#9199a9;font-size:10px;line-height:1.9}
.modal-preview{padding:16px;background:rgba(9,26,48,.06);border-radius:15px}.dialog{max-width:680px;margin:auto;background:#fff;border:1px solid #dfe4ec;border-radius:16px;box-shadow:0 18px 50px rgba(21,31,49,.16);overflow:hidden}.dialog-head{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8ebf1}.dialog-head h2{margin:0;font-size:14px}.dialog-body{padding:17px}.dialog-footer{padding:12px 17px;display:flex;justify-content:flex-end;gap:7px;background:#fafbfc;border-top:1px solid #e8ebf1}
#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;width:100%;padding:.7rem 1.2rem;background:#fff2c8;box-shadow:0 -1px 2px rgba(0,0,0,.2);z-index:1000}
@media(max-width:1400px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.comparison-grid{grid-template-columns:1fr 1fr}.comparison-grid>*:first-child{grid-column:1/-1}.action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.content-grid,.content-grid.equal{grid-template-columns:1fr}.filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-flow{grid-template-columns:repeat(2,1fr)}.flow-step:nth-child(2):after{display:none}.scenario-panel{grid-template-columns:repeat(2,1fr)}.scenario-group:nth-child(2){border-left:0}.hero-metrics{gap:8px}.hero-metric{min-width:80px;padding-right:9px}}
@media(max-width:760px){.page-titlebar{align-items:flex-start;flex-direction:column}.page-actions{width:100%;justify-content:flex-start}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-panel,.form-grid,.form-grid.cols-3,.action-cards,.comparison-grid,.scenario-panel{grid-template-columns:1fr}.comparison-grid>*:first-child{grid-column:auto}.scenario-group{padding:0 0 12px;border-left:0;border-bottom:1px solid #e8ebf1}.rule-flow{grid-template-columns:1fr}.flow-step:after{display:none}.donut-wrap{flex-direction:column}.customer-hero{align-items:flex-start;flex-direction:column}.hero-metrics{width:100%}.hero-metric{padding:0;border-right:0}.panel-head{align-items:flex-start;padding:12px 14px}.panel-head-tools{flex-wrap:wrap}.mini-bar-row{grid-template-columns:75px 1fr 55px}}
@media(max-width:460px){.kpi-grid{grid-template-columns:1fr}.kpi-card{min-height:96px}.btn{height:38px}.hero-metrics{grid-template-columns:1fr}.hero-metric{padding:7px 0;border-bottom:1px solid rgba(255,255,255,.1)}}

/* Sogol Sales UI V2.2 - HR visual system */
@font-face{font-family:"Vazirmatn";src:url("/fonts/Vazirmatn-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/fonts/Vazirmatn-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");font-weight:800 900;font-style:normal;font-display:swap}
:root{--navy:#12213a;--purple:#7557d7;--purple-2:#8a6de4;--blue:#2f6cf4;--green:#159c6c;--orange:#e98327;--red:#e44f5d;--pink:#d94d94;--ink:#172238;--muted:#8490a3;--line:#e3e9f2;--canvas:#f3f6fb;--panel:#fff;--shadow:0 8px 24px rgba(24,42,73,.055)}
html{font-family:"Vazirmatn",Tahoma,Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}body{font-size:14px;font-weight:500;background:var(--canvas)}button,input,select,textarea{font-family:inherit}.ui-icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.group-arrow,.user-arrow{width:14px!important;height:14px!important;min-width:14px!important;margin-right:auto!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;transition:transform .2s ease}.nav-group[open] .group-arrow{transform:rotate(90deg)}
.ui-page{max-width:1600px;margin:0 auto;gap:12px}.dashboard-hero{min-height:140px;padding:18px 20px;display:grid;grid-template-columns:minmax(310px,1.1fr) minmax(520px,1.7fr) minmax(190px,.65fr);align-items:center;gap:18px;position:relative;overflow:hidden;background:linear-gradient(100deg,#eef3ff 0%,#fff 42%,#effaf6 100%);border:1px solid #bdd4ff;border-radius:20px;box-shadow:0 9px 28px rgba(47,108,244,.06)}.dashboard-hero:before{content:"";width:180px;height:180px;position:absolute;top:-94px;left:34%;border-radius:50%;border:34px solid rgba(47,108,244,.035)}.dashboard-hero:after{content:"";width:110px;height:70px;position:absolute;bottom:-28px;right:210px;opacity:.28;background-image:radial-gradient(#7da4f7 1.2px,transparent 1.2px);background-size:10px 10px}.hero-copy,.hero-periods,.hero-status{position:relative;z-index:1}.hero-live{display:flex;align-items:center;gap:7px;color:#118a60;font-size:10.5px;font-weight:800}.hero-live i{width:8px;height:8px;border:2px solid #bdebd8;border-radius:50%;background:#24b27d;box-shadow:0 0 0 4px rgba(36,178,125,.09)}.hero-copy h1{margin:8px 0 3px;color:#13213a;font-size:24px;font-weight:900;letter-spacing:-.6px}.hero-copy p{margin:0;color:#8490a3;font-size:10px}.hero-periods{padding:12px;background:rgba(255,255,255,.82);border:1px solid #d5e1f6;border-radius:16px;box-shadow:0 7px 22px rgba(24,42,73,.045)}.hero-period-head{display:flex;align-items:center;gap:8px;margin-bottom:9px;color:#59667a;font-size:10px}.hero-period-head>span{margin-left:auto;font-weight:750}.hero-period-head label{height:36px;padding:0 9px;display:flex;align-items:center;gap:6px;border:1px solid #dbe3ef;border-radius:10px;background:#fff}.hero-period-head label svg{width:15px;height:15px;color:#2f6cf4}.hero-period-head select{min-width:62px;border:0;outline:0;background:transparent;color:#172238;font-weight:800}.hero-period-head button{height:36px;padding:0 10px;display:flex;align-items:center;gap:5px;color:#2f6cf4;background:#edf3ff;border:1px solid #cbdafd;border-radius:10px;font-size:10.5px;font-weight:800}.hero-period-head button svg{width:14px;height:14px}.month-tabs{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}.month-tabs button{height:34px;padding:0 4px;color:#7c8799;background:#f4f7fb;border:0;border-radius:9px;font-size:10px;font-weight:700;white-space:nowrap}.month-tabs button.active{color:#fff;background:linear-gradient(145deg,#6fa1ff,#2f6cf4);box-shadow:0 7px 16px rgba(47,108,244,.25)}.hero-status{min-height:78px;padding:12px;display:flex;align-items:center;gap:10px;color:#0e8b60;background:rgba(21,156,108,.07);border:1px solid #48b78f;border-radius:16px}.hero-status-icon{width:40px;height:40px;display:grid;place-items:center;color:#159c6c;background:#e8f8f1;border-radius:12px}.hero-status-icon svg{width:20px;height:20px}.hero-status small{display:block;color:#5d8978;font-size:9px}.hero-status strong{display:block;margin-top:3px;font-size:11.5px}.dashboard-commandbar{min-height:56px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 18px rgba(24,42,73,.035)}.commandbar-title{display:block;color:#28354b;font-size:12px;font-weight:800}.dashboard-commandbar small{display:block;margin-top:2px;color:#8c96a7;font-size:9px}
.page-titlebar{min-height:104px;padding:16px 18px;position:relative;overflow:hidden;background:linear-gradient(105deg,#eef3ff,#fff 55%,#effaf6);border:1px solid #d7e3f6;border-radius:18px;box-shadow:0 7px 24px rgba(24,42,73,.045)}.page-titlebar:after{content:"";width:130px;height:130px;position:absolute;left:12%;top:-70px;border:25px solid rgba(47,108,244,.035);border-radius:50%}.page-title{position:relative;z-index:1}.page-title-icon{width:50px;height:50px;color:#2f6cf4;background:linear-gradient(145deg,#edf3ff,#fff);border:1px solid #cbdafd;border-radius:15px;box-shadow:0 8px 18px rgba(47,108,244,.10)}.page-title-icon svg{width:23px;height:23px}.page-title h1{border:0!important;outline:0!important;box-shadow:none!important;color:#172238;font-size:22px;font-weight:900}.page-title p{font-size:10px}.breadcrumbs{font-size:9.5px}.breadcrumbs b{color:#2f6cf4}.page-actions{position:relative;z-index:1}.btn{height:41px;padding:0 14px;border-color:#dbe3ef;border-radius:11px;color:#4e5d73;background:#fff;font-size:11.5px;font-weight:750;box-shadow:0 2px 8px rgba(24,42,73,.03)}.btn:hover{color:#2f6cf4;border-color:#cbdafd;background:#f7faff;transform:translateY(-1px)}.btn-primary{color:#fff;background:linear-gradient(145deg,#6595ff,#2f6cf4);border-color:#2f6cf4;box-shadow:0 9px 20px rgba(47,108,244,.23)}.btn-primary:hover{color:#fff;background:linear-gradient(145deg,#5a8cf5,#245bd7)}.btn-success{color:#128357;background:#e8f8f1;border-color:#bdebd8}.btn-danger{color:#d44351;background:#fff0f1;border-color:#f5c7cc}.icon-btn{border-radius:10px}.icon-btn.purple{color:#7557d7;background:#f1edff;border-color:#d9cffc}.icon-btn.blue{color:#2f6cf4;background:#edf3ff;border-color:#cbdafd}
.kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.kpi-card{--card-accent:#2f6cf4;--card-soft:#edf3ff;--card-start:#6fa1ff;--card-end:#2f6cf4;--card-shadow:rgba(47,108,244,.28);min-height:126px;padding:15px 15px;align-items:center;border-color:var(--line);border-radius:16px;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.kpi-card:before{content:"";position:absolute;top:14px;right:0;bottom:14px;width:3px;border-radius:3px 0 0 3px;background:var(--card-accent)}.kpi-card:after{width:105px;height:105px;left:-42px;bottom:auto;top:-47px;background:var(--card-soft);opacity:.65}.kpi-card:nth-child(2){--card-accent:#159c6c;--card-soft:#e8f8f1;--card-start:#45d4a0;--card-end:#159c6c;--card-shadow:rgba(21,156,108,.28)}.kpi-card:nth-child(3){--card-accent:#e98327;--card-soft:#fff2e5;--card-start:#ffad65;--card-end:#ee7b1f;--card-shadow:rgba(233,131,39,.28)}.kpi-card:nth-child(4){--card-accent:#7557d7;--card-soft:#f1edff;--card-start:#a58af5;--card-end:#7557d7;--card-shadow:rgba(117,87,215,.27)}.kpi-card:nth-child(5){--card-accent:#e44f5d;--card-soft:#fff0f1;--card-start:#ff8d96;--card-end:#e44f5d;--card-shadow:rgba(228,79,93,.28)}.kpi-card:hover{z-index:1;border-color:color-mix(in srgb,var(--card-accent) 35%,#e3e9f2);box-shadow:0 16px 36px rgba(24,42,73,.09);transform:translateY(-2px)}.kpi-copy{position:relative;z-index:1;min-width:0;flex:1}.kpi-copy span{color:#4e5d73;font-size:11.5px;font-weight:700}.kpi-copy strong{margin:4px 0 2px;color:#172238;font-size:27px;line-height:1.35;font-weight:900}.kpi-copy small{color:#8490a3;font-size:9.5px}.kpi-trend{margin-top:6px!important;color:#159c6c!important;font-size:9.5px!important}.kpi-icon{width:50px;height:50px;min-width:50px;position:relative;z-index:1;color:#fff!important;background:linear-gradient(145deg,var(--card-start),var(--card-end))!important;border:0;border-radius:15px 15px 15px 6px;box-shadow:0 9px 20px var(--card-shadow),inset 0 1px 0 rgba(255,255,255,.3);transform:rotate(-2deg)}.kpi-icon:before{content:"";position:absolute;inset:5px;border:1px solid rgba(255,255,255,.23);border-radius:10px 10px 10px 4px}.kpi-icon svg{position:relative;z-index:1;width:23px;height:23px}.kpi-card:hover .kpi-icon{transform:translateY(-2px) rotate(0deg) scale(1.03)}
.panel{border-color:var(--line);border-radius:16px;box-shadow:var(--shadow);transition:box-shadow .2s ease}.panel:hover{box-shadow:0 14px 34px rgba(24,42,73,.075)}.panel-head{min-height:62px;padding:0 17px}.panel-head h2{color:#172238;font-size:14.5px;font-weight:850}.panel-head p{color:#8490a3;font-size:9.8px}.panel-body{padding:17px}.panel-link{color:#2f6cf4;font-size:10.5px}.filter-panel{padding:14px;border-radius:15px;box-shadow:var(--shadow)}.field label,.field-label{font-size:10.5px}.input,.select,.field input,.field select,.field textarea,.search-box{height:42px;border-color:#dbe3ef;border-radius:11px;font-size:12px}.field textarea{height:92px}.input:focus,.select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#8eb2fb;box-shadow:0 0 0 3px rgba(47,108,244,.09)}.data-table th{height:44px;font-size:10.5px}.data-table td{height:53px;font-size:11.5px}.data-table tbody tr:hover{background:#f8fbff}.table-code{color:#2f6cf4}.badge{font-size:10px}.badge-green{color:#128357;background:#e8f8f1}.badge-blue{color:#2764da;background:#edf3ff}.badge-purple{color:#7052d0;background:#f1edff}.tabs{background:#eef3f9}.tab.active{color:#2f6cf4}.pagination .active{background:#2f6cf4;border-color:#2f6cf4}.bar-track span{background:linear-gradient(90deg,#75a2ff,#2f6cf4)}.switch:checked{background:#2f6cf4}.flow-number{background:#2f6cf4}.chart-line-blue{stroke:#2f6cf4}.customer-avatar-lg{background:linear-gradient(145deg,#6595ff,#2f6cf4)}
@media(max-width:1500px){.dashboard-hero{grid-template-columns:minmax(280px,1fr) minmax(440px,1.5fr) minmax(170px,.62fr)}.month-tabs button{font-size:9px}.kpi-copy strong{font-size:24px}}
@media(max-width:1320px){.dashboard-hero{grid-template-columns:1fr 1.45fr}.hero-status{grid-column:1/-1;min-height:58px}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-hero{grid-template-columns:1fr}.hero-periods,.hero-status{grid-column:auto}.month-tabs{grid-template-columns:repeat(6,1fr)}.dashboard-commandbar{align-items:flex-start}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-titlebar{align-items:flex-start;flex-direction:column}}
@media(max-width:580px){.dashboard-hero{padding:15px}.hero-copy h1{font-size:19px}.hero-periods{display:none}.dashboard-commandbar{align-items:stretch;flex-direction:column}.dashboard-commandbar .page-actions{width:100%}.dashboard-commandbar .btn{flex:1}.kpi-grid{grid-template-columns:1fr}.kpi-card{min-height:112px}}

/* V2.2 readability pass - one step larger without changing the layout scale */
body{font-size:15px}.hero-live{font-size:11.5px}.hero-copy h1{font-size:26px}.hero-copy p{font-size:11px}.hero-period-head{font-size:11px}.hero-period-head button{font-size:11.5px}.month-tabs button{font-size:11px}.hero-status small{font-size:10px}.hero-status strong{font-size:12.5px}.commandbar-title{font-size:13px}.dashboard-commandbar small{font-size:10px}
.page-title h1{font-size:24px}.page-title p{font-size:11.5px}.breadcrumbs{font-size:10.5px}.btn{font-size:12.5px}.btn-sm{font-size:11.5px}.kpi-copy span{font-size:12.5px}.kpi-copy strong{font-size:29px}.kpi-copy small{font-size:10.5px}.kpi-trend{font-size:10.5px!important}
.panel-head h2{font-size:16px}.panel-head p{font-size:10.8px}.panel-link{font-size:11.5px}.field label,.field-label{font-size:11.5px}.input,.select,.field input,.field select,.field textarea,.search-box input{font-size:13px}.switch-copy strong{font-size:12px}.switch-copy span{font-size:10.5px}.data-table th{font-size:11.5px}.data-table td{font-size:12.5px}.badge{font-size:11px}.table-footer{font-size:10.8px}.chart-legend{font-size:10.5px}.chart-label{font-size:10.5px}.donut-center span{font-size:11px}.donut-legend div{font-size:11px}.mini-bar-row{font-size:11.5px}.mini-bar-row b{font-size:11.5px}
.alert-item strong{font-size:11.8px}.alert-item p{font-size:10.5px}.alert-item time{font-size:10px}.flow-step strong{font-size:11.8px}.flow-step p{font-size:10px}.notice{font-size:11.5px}.tab{font-size:11.5px}.action-card strong{font-size:14px}.action-card p{font-size:10.8px}.action-card span{font-size:11px}.upload-zone h3{font-size:14px}.upload-zone p{font-size:11px}.customer-identity h1{font-size:21px}.customer-identity p{font-size:11px}.customer-tags span{font-size:10px}.hero-metric span{font-size:10.5px}.scenario-group h3{font-size:11.5px}.radio-list label{font-size:11px}.comparison-table th,.comparison-table td{font-size:10.5px}.empty-state h3{font-size:14px}.empty-state p{font-size:11px}.dialog-head h2{font-size:15px}
@media(max-width:1500px){.month-tabs button{font-size:10px}.kpi-copy strong{font-size:27px}}
@media(max-width:580px){.hero-copy h1{font-size:21px}.page-title h1{font-size:21px}.kpi-copy strong{font-size:27px}}

/* V2.3 clearly enlarged typography - forced above scoped legacy rules */
html body{font-size:16px!important;line-height:1.75}.hero-live{font-size:12.5px!important}.hero-copy h1{font-size:28px!important}.hero-copy p{font-size:12px!important}.hero-period-head{font-size:12px!important}.hero-period-head button{font-size:12.5px!important}.month-tabs button{font-size:12px!important}.hero-status small{font-size:11px!important}.hero-status strong{font-size:13.5px!important}.commandbar-title{font-size:14px!important}.dashboard-commandbar small{font-size:11px!important}
.page-title h1{font-size:26px!important}.page-title p{font-size:12.5px!important}.breadcrumbs{font-size:11.5px!important}.btn{font-size:13.5px!important}.btn-sm{font-size:12.5px!important}.kpi-copy span{font-size:13.5px!important}.kpi-copy strong{font-size:31px!important}.kpi-copy small{font-size:11.5px!important}.kpi-trend{font-size:11.5px!important}
.panel-head h2{font-size:17px!important}.panel-head p{font-size:12px!important}.panel-link{font-size:12.5px!important}.field label,.field-label{font-size:12.5px!important}.input,.select,.field input,.field select,.field textarea,.search-box input{font-size:14px!important}.switch-copy strong{font-size:13px!important}.switch-copy span{font-size:11.5px!important}.data-table th{font-size:12.5px!important}.data-table td{font-size:13.5px!important}.badge{font-size:12px!important}.table-footer{font-size:11.8px!important}.chart-legend{font-size:11.5px!important}.chart-label{font-size:11.5px!important}.donut-center span{font-size:12px!important}.donut-legend div{font-size:12px!important}.mini-bar-row,.mini-bar-row b{font-size:12.5px!important}
.alert-item strong{font-size:13px!important}.alert-item p{font-size:11.5px!important}.alert-item time{font-size:11px!important}.flow-step strong{font-size:13px!important}.flow-step p{font-size:11px!important}.notice{font-size:12.5px!important}.tab{font-size:12.5px!important}.action-card strong{font-size:15px!important}.action-card p{font-size:12px!important}.action-card span{font-size:12px!important}.upload-zone h3{font-size:15px!important}.upload-zone p{font-size:12px!important}.comparison-table th,.comparison-table td{font-size:11.5px!important}.empty-state h3{font-size:15px!important}.empty-state p{font-size:12px!important}
@media(max-width:580px){.hero-copy h1{font-size:23px!important}.page-title h1{font-size:23px!important}.kpi-copy strong{font-size:29px!important}}

/* V2.4 dashboard refinements */
.dashboard-hero{min-height:104px!important;padding:18px 20px!important;display:flex!important;align-items:center!important;grid-template-columns:none!important}
.dashboard-hero .hero-copy{width:100%!important;position:relative!important;z-index:1!important}
.hero-copy h1{width:auto!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;text-decoration:none!important}
.hero-periods,.hero-status{display:none!important}
.kpi-copy strong{font-size:29px!important}
@media(max-width:1500px){.kpi-copy strong{font-size:27px!important}}
@media(max-width:580px){.kpi-copy strong{font-size:26px!important}}

/* V2.5 reference-inspired sales dashboard; dark navy sidebar remains unchanged */
.sales-dashboard-v25{max-width:1720px!important;gap:12px!important}
.sales-dashboard-heading{min-height:66px;padding:4px 2px;display:flex;align-items:center;gap:13px;background:transparent}
.sales-title-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;color:#6b3df0;background:linear-gradient(145deg,#f4efff,#fff);border:1px solid #e1d7ff;border-radius:15px;box-shadow:0 7px 18px rgba(107,61,240,.09)}
.sales-title-icon svg{width:25px;height:25px}
.sales-dashboard-heading h1{margin:0;color:#141b2e;font-size:27px;font-weight:900;letter-spacing:-.65px}
.sales-dashboard-heading p{margin:3px 0 0;color:#8490a3;font-size:12.5px;font-weight:550}
.sales-filterbar{min-height:58px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e5e8f0;border-radius:15px;box-shadow:0 5px 18px rgba(24,42,73,.035)}
.sales-filter-actions,.sales-filter-tools{display:flex;align-items:center;gap:8px}
.today-filter,.quick-select,.filter-only,.round-tool{height:42px;display:flex;align-items:center;justify-content:center;color:#526078;background:#fff;border:1px solid #dfe4ed;border-radius:11px;font-family:Vazirmatn,sans-serif;font-size:12.5px;font-weight:750}
.today-filter{min-width:124px;gap:9px;color:#fff;background:linear-gradient(135deg,#7540f5,#6131df);border-color:#6131df;box-shadow:0 8px 17px rgba(101,50,228,.22)}
.quick-select{min-width:142px;padding:0 12px;justify-content:flex-start;gap:9px;cursor:pointer}.quick-select span{flex:1}.quick-select svg:last-child{width:13px;height:13px;transform:rotate(90deg)}
.today-filter svg,.quick-select svg{width:18px;height:18px}.filter-only,.round-tool{width:42px;padding:0}.filter-only svg,.round-tool svg{width:19px;height:19px}
.round-tool{border:0;background:transparent}.round-tool:hover,.filter-only:hover,.quick-select:hover{color:#6740dc;background:#f7f4ff;border-color:#d9cefa}
.notice-tool{position:relative}.notice-tool b{width:17px;height:17px;display:grid;place-items:center;position:absolute;top:0;right:-1px;color:#fff;background:#ef4055;border:2px solid #fff;border-radius:50%;font-size:8px}
.sales-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.sales-kpi{--accent:#2f6cf4;--soft:#ecf3ff;min-width:0;min-height:130px;padding:15px 14px;display:flex;align-items:flex-start;gap:11px;position:relative;overflow:hidden;background:linear-gradient(145deg,#fff 56%,color-mix(in srgb,var(--soft) 45%,#fff));border:1px solid #e4e8ef;border-radius:16px;box-shadow:0 7px 23px rgba(24,42,73,.055);transition:transform .18s ease,box-shadow .18s ease}
.sales-kpi:after{content:"";width:88px;height:88px;position:absolute;left:-34px;bottom:-45px;border-radius:50%;background:var(--soft);opacity:.65}.sales-kpi:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(24,42,73,.09)}
.sales-kpi.green{--accent:#20a867;--soft:#e7f8ef}.sales-kpi.purple{--accent:#7445df;--soft:#f0eaff}.sales-kpi.orange{--accent:#ee8a22;--soft:#fff1e1}.sales-kpi.cyan{--accent:#23a3b8;--soft:#e6f8fb}.sales-kpi.violet{--accent:#6044b7;--soft:#eeeafd}
.sales-kpi-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;position:relative;z-index:1;color:var(--accent);background:var(--soft);border:1px solid color-mix(in srgb,var(--accent) 15%,#fff);border-radius:50%}
.sales-kpi-icon svg{width:23px;height:23px}.sales-kpi-copy{min-width:0;position:relative;z-index:1;flex:1}.sales-kpi-copy>span{display:block;color:var(--accent);font-size:13px;font-weight:850;white-space:nowrap}.sales-kpi-copy>strong{display:block;margin:4px 0 0;color:#182238;font-size:20px!important;line-height:1.45;font-weight:900;letter-spacing:-.35px;white-space:nowrap}.sales-kpi-copy>small{display:block;color:#7f8999;font-size:11px}.sales-kpi-copy>em{display:flex;align-items:center;gap:5px;margin-top:6px;color:#18a35e;font-size:11.5px;font-style:normal;font-weight:800;white-space:nowrap}.sales-kpi-copy>em b{color:#697487;font-weight:650}.sales-kpi-copy>em.down{color:#e34454}
.sales-dashboard-grid{display:grid;grid-template-columns:minmax(390px,.9fr) minmax(0,1.45fr);gap:12px;align-items:stretch}
.sales-panel{min-width:0;background:#fff;border:1px solid #e4e8ef;border-radius:16px;box-shadow:0 7px 23px rgba(24,42,73,.05);overflow:hidden}
.sales-panel-head{min-height:58px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0f5}.sales-panel-head.compact{min-height:52px}.sales-panel-head>div{display:flex;align-items:center;gap:8px}.sales-panel-head svg{width:19px;height:19px;color:#6d45dc}.sales-panel-head h2{margin:0;color:#192338;font-size:16px;font-weight:900}.sales-panel-head>span{color:#8a94a4;font-size:11.5px}.sales-panel-head>a{color:#6841dc;text-decoration:none;font-size:11.5px;font-weight:750}
.live-alerts-panel{display:flex;flex-direction:column}.live-alerts-panel .sales-panel-head svg{color:#ef4055}.live-alert-list{padding:13px;display:flex;flex:1;flex-direction:column;gap:11px}
.live-alert{--alert:#e44455;--alert-soft:#fff1f3;min-height:92px;padding:12px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:11px;background:linear-gradient(105deg,#fff,var(--alert-soft));border:1px solid color-mix(in srgb,var(--alert) 30%,#fff);border-right:3px solid var(--alert);border-radius:13px}.live-alert.warning{--alert:#ed921e;--alert-soft:#fff8ed}.live-alert.info{--alert:#3978e8;--alert-soft:#f1f6ff}
.live-alert-icon{width:46px;height:46px;display:grid;place-items:center;color:#fff;background:var(--alert);border-radius:50%;box-shadow:0 7px 15px color-mix(in srgb,var(--alert) 22%,transparent)}.live-alert-icon svg{width:22px;height:22px}.live-alert strong{display:block;color:var(--alert);font-size:14px;font-weight:900}.live-alert p{margin:4px 0 0;color:#687387;font-size:11.5px;line-height:1.75}.live-alert>a{min-width:82px;height:33px;padding:0 11px;display:flex;align-items:center;justify-content:center;color:var(--alert);background:#fff;border:1px solid color-mix(in srgb,var(--alert) 30%,#fff);border-radius:9px;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap}.all-alerts-link{min-height:47px;padding:0 17px;display:flex;align-items:center;gap:6px;color:#6841dc;border-top:1px solid #edf0f5;text-decoration:none;font-size:12px;font-weight:800}.all-alerts-link svg{width:15px;height:15px}
.sales-analysis-stack{min-width:0;display:flex;flex-direction:column;gap:12px}
.seller-list{padding:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.seller-card{min-width:0;padding:9px;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;align-items:center;gap:8px;background:#fbfcfe;border:1px solid #e8ebf1;border-radius:12px}.seller-avatar{width:42px;height:42px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#6fa1ff,#2f6cf4);border:3px solid #fff;border-radius:50%;box-shadow:0 3px 10px rgba(24,42,73,.14);font-size:11px;font-weight:900}.seller-avatar.av-green{background:linear-gradient(145deg,#48d6a3,#159c6c)}.seller-avatar.av-orange{background:linear-gradient(145deg,#ffb05f,#e98327)}.seller-avatar.av-purple{background:linear-gradient(145deg,#a487f3,#6745cf)}.seller-card div{min-width:0}.seller-card strong,.seller-card small,.seller-card b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seller-card strong{color:#263148;font-size:12px}.seller-card small{margin-top:1px;color:#8c96a6;font-size:9.5px}.seller-card b{margin-top:3px;color:#2f6cf4;font-size:10.5px}.seller-card em{width:21px;height:21px;display:grid;place-items:center;align-self:start;color:#d69b15;background:#fff7d9;border-radius:50%;font-size:10px;font-style:normal;font-weight:900}
.festival-table-wrap{padding:3px 11px 10px;overflow-x:auto}.festival-table{width:100%;border-collapse:collapse}.festival-table th{height:35px;color:#8993a4;border-bottom:1px solid #e8ebf1;font-size:10.5px;text-align:right;white-space:nowrap}.festival-table td{height:36px;color:#465268;border-bottom:1px solid #f0f2f6;font-size:11.5px;white-space:nowrap}.festival-table tbody tr:last-child td{border-bottom:0}.festival-table td:last-child{min-width:130px}.festival-table td:last-child i{width:78px;height:6px;margin-right:7px;display:inline-block;vertical-align:middle;overflow:hidden;background:#edf0f5;border-radius:20px}.festival-table td:last-child i b{height:100%;display:block;background:#22a565;border-radius:20px}.progress-value{display:inline-block;min-width:32px;color:#16a15d;font-weight:850}.progress-value.orange{color:#e68b1d}.progress-value.orange+i b{background:#ef9a2c!important}
.chart-unit{height:31px;padding:0 9px;display:flex;align-items:center;gap:7px;color:#697487;background:#fff;border:1px solid #e1e5ed;border-radius:8px;font-size:10.5px}.chart-unit svg{width:12px;height:12px;transform:rotate(90deg)}
.daily-chart-body{min-height:270px;padding:13px 14px 10px;display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:15px}.daily-bars{height:230px;padding:22px 10px 27px;display:grid;grid-template-columns:repeat(10,minmax(26px,1fr));align-items:end;gap:7px;position:relative;border-bottom:1px solid #dfe4ec;background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#edf0f5 45px)}.daily-bar{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}.daily-bar>b{width:28px;min-height:20px;order:2;background:linear-gradient(180deg,#6637ef,#a184f5);border-radius:9px 9px 3px 3px;box-shadow:0 6px 11px rgba(100,55,235,.19)}.daily-bar>strong{order:1;margin-bottom:4px;color:#455168;font-size:9.5px;white-space:nowrap}.daily-bar>small{position:absolute;bottom:-23px;color:#7e899a;font-size:8.5px;white-space:nowrap}.average-line{height:1px;position:absolute;left:8px;right:8px;bottom:108px;z-index:2;border-top:1px dashed #76809a}.average-line b{position:absolute;top:-22px;right:0;color:#737e91;background:#fff;font-size:8.5px;font-weight:700}.chart-summary{padding:12px;display:flex;flex-direction:column;justify-content:center;background:#fafbfe;border:1px solid #edf0f5;border-radius:12px}.chart-summary span{color:#7c8799;font-size:10px}.chart-summary strong{margin-top:2px;color:#202b41;font-size:15px;white-space:nowrap}.chart-summary small{color:#8d96a6;font-size:9px}.chart-summary i{height:1px;margin:11px 0;background:#e4e8ef}.chart-summary em{margin-top:11px;color:#16a15d;font-size:10px;font-style:normal;font-weight:800}
@media(max-width:1550px){.sales-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-kpi{min-height:112px}.sales-kpi-copy>strong{font-size:19px!important}.sales-dashboard-grid{grid-template-columns:minmax(360px,.8fr) minmax(0,1.35fr)}.seller-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1120px){.sales-dashboard-grid{grid-template-columns:1fr}.live-alerts-panel{order:1}.sales-analysis-stack{order:2}.daily-chart-body{grid-template-columns:1fr 150px}}
@media(max-width:760px){.sales-dashboard-heading h1{font-size:23px}.sales-filterbar{align-items:stretch;flex-direction:column}.sales-filter-actions{display:grid;grid-template-columns:1fr 1fr}.sales-filter-tools{display:none}.today-filter,.quick-select{min-width:0}.sales-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-list{grid-template-columns:1fr}.live-alert{grid-template-columns:42px 1fr}.live-alert>a{grid-column:2}.daily-chart-body{grid-template-columns:1fr}.chart-summary{display:none}.daily-bars{overflow-x:auto}.festival-table{min-width:620px}}
@media(max-width:480px){.sales-kpi-grid{grid-template-columns:1fr}.sales-filter-actions{grid-template-columns:1fr}.sales-kpi-copy>strong{font-size:20px!important}.live-alert{grid-template-columns:1fr}.live-alert-icon{display:none}.live-alert>a{grid-column:auto}.seller-list{grid-template-columns:1fr}}

/* V2.6 tighter KPI row, balanced analysis columns and unified header */
.sales-dashboard-v25{gap:10px!important}
.sales-dashboard-header{min-height:70px;padding:0 0 9px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:transparent;border:0;border-bottom:1px solid #e1e6ef;box-shadow:none}
.sales-dashboard-heading{min-width:285px;min-height:auto;padding:0;flex:0 0 auto}
.sales-title-icon{width:40px;height:40px;flex-basis:40px;background:transparent;border:0;border-radius:0;box-shadow:none}
.sales-title-icon svg{width:25px;height:25px}
.sales-dashboard-heading h1{font-size:25px}.sales-dashboard-heading p{font-size:11.5px}
.sales-dashboard-header .sales-filterbar{min-height:auto;padding:0;flex:1;background:transparent;border:0;border-radius:0;box-shadow:none}
.sales-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px}
.sales-kpi{min-height:101px!important;padding:10px 9px;gap:7px;border-radius:13px}
.sales-kpi:after{width:68px;height:68px;left:-29px;bottom:-38px}
.sales-kpi-icon{width:38px;height:38px;flex-basis:38px}.sales-kpi-icon svg{width:19px;height:19px}
.sales-kpi-copy>span{font-size:11.5px}.sales-kpi-copy>strong{margin-top:2px;font-size:clamp(13px,.85vw,16.5px)!important;letter-spacing:-.45px}.sales-kpi-copy>small{font-size:9.5px}.sales-kpi-copy>em{margin-top:3px;gap:3px;font-size:9.5px}.sales-kpi-copy>em b{font-size:9.5px}
.sales-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
.live-alerts-panel{min-width:0}.sales-analysis-stack{min-width:0;gap:10px}
.live-alert-list{padding:11px;gap:9px}.live-alert{min-height:82px;padding:10px;grid-template-columns:43px minmax(0,1fr) auto}.live-alert-icon{width:41px;height:41px}.live-alert-icon svg{width:19px;height:19px}.live-alert strong{font-size:13px}.live-alert p{font-size:10.5px}.live-alert>a{min-width:76px;height:31px;font-size:10.5px}
.seller-list{padding:8px;gap:6px}.seller-card{padding:7px;grid-template-columns:36px minmax(0,1fr) 19px;gap:6px}.seller-avatar{width:36px;height:36px}.seller-card strong{font-size:11px}.seller-card small{font-size:9px}.seller-card b{font-size:9.5px}
.festival-table th{height:31px;font-size:9.5px}.festival-table td{height:32px;font-size:10.5px}.festival-table td:last-child{min-width:115px}.festival-table td:last-child i{width:65px}
.daily-chart-body{min-height:230px;padding:9px 11px 8px;grid-template-columns:minmax(0,1fr) 145px;gap:10px}.daily-bars{height:195px;padding:18px 7px 25px;gap:5px}.daily-bar>b{width:23px}.daily-bar>strong{font-size:8.5px}.daily-bar>small{font-size:7.8px}.average-line{bottom:92px}.chart-summary{padding:9px}.chart-summary strong{font-size:13px}.chart-summary em{font-size:9px}
@media(max-width:1279px){.sales-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sales-kpi-copy>strong{font-size:17px!important}}
@media(max-width:1120px){.sales-dashboard-grid{grid-template-columns:1fr!important}.sales-dashboard-header{align-items:stretch;flex-direction:column;gap:8px}.sales-dashboard-header .sales-filterbar{width:100%}}
@media(max-width:760px){.sales-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sales-dashboard-heading{min-width:0}.sales-dashboard-header{padding-bottom:10px}}
@media(max-width:480px){.sales-kpi-grid{grid-template-columns:1fr!important}}

/* =========================================================
   SOGOL SALES DASHBOARD - V2.7 FINAL VISUAL FIX
   ========================================================= */

/* 1) حذف قطعی کادر/Outline دور عنوان */
.sales-dashboard-header,
.sales-dashboard-heading,
.sales-dashboard-heading > div,
.sales-dashboard-heading h1,
.sales-dashboard-heading h1:focus,
.sales-dashboard-heading h1:focus-visible,
.sales-dashboard-heading h1:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sales-dashboard-heading h1 {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-decoration: none !important;
}

/* آیکون عنوان: ساده، مدرن و بدون کادر اضافی */
.sales-title-icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    display: grid !important;
    place-items: center !important;
    color: #5f45d6 !important;
    background: #f1edff !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 2) آیکون‌های داشبورد مدرن‌تر و یکدست */
.sales-title-icon svg,
.sales-kpi-icon svg,
.sales-panel-head svg,
.live-alert-icon svg,
.today-filter svg,
.quick-select svg,
.filter-only svg,
.round-tool svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.sales-title-icon svg {
    width: 21px !important;
    height: 21px !important;
}

.sales-kpi-icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    display: grid !important;
    place-items: center !important;
    color: var(--accent) !important;
    background: color-mix(in srgb,var(--soft) 78%,#fff) !important;
    border: 1px solid color-mix(in srgb,var(--accent) 12%,#fff) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    transform: none !important;
}

.sales-kpi-icon:before {
    display: none !important;
}

.sales-kpi-icon svg {
    width: 21px !important;
    height: 21px !important;
}

.sales-kpi:hover .sales-kpi-icon {
    transform: translateY(-1px) !important;
}

/* 3) خواناتر شدن متن «↑ ۱۳٪ نسبت به دیروز» */
.sales-kpi-copy > em {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 5px !important;
    color: #159c6c !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    font-style: normal !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

.sales-kpi-copy > em b {
    color: #667286 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
}

.sales-kpi-copy > em.down {
    color: #e34454 !important;
}

/* کمی فضای بیشتر برای اینکه بزرگ شدن نوشته به کارت فشار نیاورد */
.sales-kpi {
    min-height: 108px !important;
    padding: 11px 10px !important;
    gap: 8px !important;
}

/* 4) منوی راست: آیکون‌های خطی شیک‌تر */
.app-sidebar .side-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
}

.app-sidebar .side-icon svg {
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@media (max-width: 760px) {
    .sales-kpi-copy > em {
        font-size: 12px !important;
    }

    .sales-kpi-copy > em b {
        font-size: 11.5px !important;
    }
}

/* =========================================================
   SOGOL SALES INVOICE OPS V1
   same visual language as current sales dashboard
   ========================================================= */
.invoice-ops-page{max-width:1720px!important;gap:12px!important}
.invoice-ops-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.invoice-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.invoice-date-control,.invoice-entry-actions{display:flex;align-items:center;gap:7px}
.invoice-date-box{height:44px;min-width:175px;padding:5px 11px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dfe4ed;border-radius:12px;box-shadow:0 3px 12px rgba(24,42,73,.035)}
.invoice-date-box svg{width:19px;height:19px;color:#6640df}
.invoice-date-box div{display:flex;flex-direction:column;gap:1px}
.invoice-date-box span{color:#98a2b2;font-size:9.8px;font-weight:650}
.invoice-date-box strong{color:#27324a;font-size:12.5px;font-weight:850;direction:ltr}
.invoice-day-nav{width:36px;height:44px;border:1px solid #dfe4ed;border-radius:10px;background:#fff;color:#637087;font-family:inherit;font-size:24px;line-height:1;cursor:pointer}
.invoice-day-nav:hover{color:#6038da;border-color:#cdbfff;background:#f8f5ff}
.invoice-refresh{height:44px;padding:0 13px;display:flex;align-items:center;gap:7px;border:1px solid #dfe4ed;border-radius:11px;background:#fff;color:#4e5b72;font-family:inherit;font-size:11.5px;font-weight:800;cursor:pointer}
.invoice-refresh svg{width:17px;height:17px}.invoice-refresh:hover{border-color:#cdbfff;color:#633bdc}.invoice-refresh:disabled{opacity:.55;cursor:wait}
.invoice-action-btn{height:44px;padding:0 15px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;font-family:inherit;font-size:12px;font-weight:850;text-decoration:none;cursor:pointer}
.invoice-action-btn svg{width:18px;height:18px}
.invoice-action-btn.import{color:#5c3dd0;background:#fff;border:1px solid #cfc3fa}
.invoice-action-btn.import:hover{background:#f8f5ff}
.invoice-action-btn.manual{color:#fff;background:linear-gradient(135deg,#7540f5,#6131df);border:1px solid #6131df;box-shadow:0 8px 17px rgba(101,50,228,.20)}
.invoice-action-btn.manual:hover{transform:translateY(-1px)}
.invoice-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.invoice-kpi-grid .sales-kpi{min-width:0}
.invoice-kpi-grid .sales-kpi-copy strong{font-size:22px!important;letter-spacing:-.4px;direction:ltr;text-align:right}
.invoice-kpi-grid .sales-kpi-copy small{font-size:10px;color:#98a2b2}
.invoice-filterbar{min-height:66px;padding:9px 10px;display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(145px,.65fr)) auto;gap:9px;align-items:end;background:#fff;border:1px solid #e4e8ef;border-radius:15px;box-shadow:0 5px 18px rgba(24,42,73,.035)}
.invoice-search{height:43px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid #dfe4ed;border-radius:11px;background:#fff}
.invoice-search svg{width:17px;height:17px;color:#8994a6}.invoice-search input{width:100%;border:0;outline:0;background:transparent;font-family:inherit;font-size:12px;color:#27324a}
.invoice-filter{display:flex;flex-direction:column;gap:4px}.invoice-filter>span{font-size:9.5px;color:#8a95a7;font-weight:700}.invoice-filter select{height:43px;padding:0 10px;border:1px solid #dfe4ed;border-radius:11px;background:#fff;color:#4e5b72;font-family:inherit;font-size:11.5px;font-weight:700;outline:0}
.invoice-clear-filters{height:43px;padding:0 12px;border:1px solid #e1e5ec;border-radius:11px;background:#f8f9fb;color:#768197;font-family:inherit;font-size:10.8px;font-weight:750;cursor:pointer}
.invoice-list-panel{overflow:hidden}
.invoice-list-head{min-height:64px}.invoice-list-head h2{font-size:15px!important}.invoice-list-head p{font-size:10.5px!important}
.invoice-head-note{display:flex;align-items:center;gap:7px;color:#7c8799;font-size:10.5px;font-weight:650}.inline-edit-dot{width:8px;height:8px;border-radius:50%;background:#7250df;box-shadow:0 0 0 4px #f0ebff}
.invoice-table-wrap{overflow:auto}
.invoice-table{min-width:1320px}
.invoice-table th{position:sticky;top:0;z-index:2;white-space:nowrap;background:#f9fafc!important}
.invoice-table td{vertical-align:middle!important}
.invoice-no-cell,.invoice-customer-cell{display:flex;flex-direction:column;gap:3px}.invoice-no-cell strong{color:#5132c3;font-size:12.5px}.invoice-no-cell small,.invoice-customer-cell small{color:#9aa4b3;font-size:9.5px}.invoice-customer-cell strong{color:#25314a;font-size:12px}
.money-cell,.final-money{direction:ltr;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.final-money{color:#172238;font-weight:900}.weight-cell{direction:ltr;white-space:nowrap}
.inline-discount-edit{width:88px;height:34px;display:flex;align-items:center;overflow:hidden;border:1px solid #d9dfee;border-radius:9px;background:#fff}.inline-discount-edit input{width:58px;height:100%;padding:0 7px;border:0;outline:0;background:transparent;font-family:inherit;font-size:11.5px;font-weight:800;color:#5036b9;direction:ltr}.inline-discount-edit span{width:29px;height:100%;display:grid;place-items:center;color:#6846d4;background:#f5f1ff;font-size:11px;font-weight:900}
.discount-amount{display:block;margin-top:4px;color:#99a3b2;font-size:9px;white-space:nowrap;direction:ltr;text-align:right}
.inline-secondary-select{min-width:118px;height:34px;padding:0 8px;border-radius:9px;font-family:inherit;font-size:10.8px;font-weight:850;outline:0;cursor:pointer}
.sec-cash{color:#087b54;border:1px solid #b9e7d7;background:#eefaf5}.sec-noncash{color:#2561bd;border:1px solid #c7daf7;background:#f1f6ff}.sec-none{color:#707b8d;border:1px solid #dfe4eb;background:#f6f7f9}.sec-unspecified{color:#b16a13;border:1px solid #f0d6ab;background:#fff8e9}
.invoice-badge{min-height:27px;padding:4px 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:9.7px;font-weight:850;white-space:nowrap}.invoice-badge.tax{color:#2561bd;background:#eef5ff;border:1px solid #cfdef7}.invoice-badge.festival{color:#0b7f58;background:#ebf9f3;border:1px solid #c5eadb}.invoice-badge.decision{color:#b46914;background:#fff7e8;border:1px solid #f0d5a4}.invoice-badge.neutral{color:#778194;background:#f4f6f8;border:1px solid #e1e5ea}
.needs-decision-row{background:linear-gradient(90deg,rgba(255,246,226,.38),transparent 35%)}
.inline-saving{color:#6b4bd8;font-size:9.5px;font-weight:800;white-space:nowrap}
.invoice-loading{min-height:190px;display:grid;place-items:center;color:#788397;font-size:12px}.invoice-empty{padding:38px 20px!important}.invoice-empty svg{width:34px;height:34px;color:#6b48d8}
.invoice-message{min-height:42px;padding:8px 12px;display:flex;align-items:center;gap:8px;border-radius:11px;font-size:11.5px;font-weight:750}.invoice-message svg{width:17px;height:17px}.invoice-message.success{color:#0b7d57;background:#edf9f4;border:1px solid #caebdd}.invoice-message.error{color:#bd3546;background:#fff0f2;border:1px solid #f1cbd1}
.invoice-modal-backdrop{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;padding:20px;background:rgba(10,20,38,.46);backdrop-filter:blur(4px)}
.invoice-mini-dialog{width:min(520px,calc(100vw - 32px));overflow:hidden;background:#fff;border:1px solid #e2e6ee;border-radius:18px;box-shadow:0 26px 80px rgba(11,23,43,.24)}
.invoice-mini-dialog>header{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4}.invoice-mini-dialog h3{margin:0;color:#172238;font-size:16px}.invoice-mini-dialog p{margin:3px 0 0;color:#8b96a7;font-size:10px}.invoice-mini-dialog header button{width:32px;height:32px;border:0;border-radius:9px;background:#f4f6f8;color:#667286;font-size:20px;cursor:pointer}.invoice-mini-dialog-body{padding:16px}
@media(max-width:1500px){.invoice-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.invoice-filterbar{grid-template-columns:minmax(240px,1fr) repeat(3,minmax(135px,.55fr)) auto}}
@media(max-width:1050px){.invoice-ops-header{align-items:flex-start;flex-direction:column}.invoice-header-actions{width:100%;justify-content:space-between}.invoice-filterbar{grid-template-columns:1fr 1fr}.invoice-search{grid-column:1/-1}}
@media(max-width:720px){.invoice-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.invoice-header-actions{align-items:stretch;flex-direction:column}.invoice-date-control,.invoice-entry-actions{width:100%;flex-wrap:wrap}.invoice-entry-actions .invoice-action-btn{flex:1}.invoice-filterbar{grid-template-columns:1fr}.invoice-search{grid-column:auto}}
/* =========================
   Bigger typography - invoices/dashboard
   ========================= */

html {
    font-size: 15.5px;
}

body,
button,
input,
select,
textarea {
    font-size: 0.97rem;
}

.page-title h1 {
    font-size: 2rem;
}

.page-title p,
.breadcrumbs,
.panel-head p,
.table-footer,
.notice,
.field label {
    font-size: 0.92rem;
}

.btn,
.btn.btn-primary,
.btn.btn-success,
.btn.btn-sm {
    font-size: 0.95rem;
}

.kpi-card .kpi-copy span {
    font-size: 0.9rem;
}

.kpi-card .kpi-copy strong {
    font-size: 1.45rem;
}

.kpi-card .kpi-copy small {
    font-size: 0.88rem;
}

.data-table thead th {
    font-size: 0.92rem;
}

.data-table tbody td {
    font-size: 0.96rem;
}

.search-box input,
.field input,
.field select,
.field textarea {
    font-size: 0.96rem;
}

.app-sidebar,
.app-sidebar .nav-link,
.app-sidebar .submenu a,
.sidebar-update,
.app-footer {
    font-size: 0.95rem;
}

.topbar-title strong {
    font-size: 1.35rem;
}

.topbar-title span,
.topbar-eyebrow,
.simple-date,
.top-icon {
    font-size: 0.95rem;
}

/* =========================================================
   SOGOL GLOBAL FONT BOOST V1
   افزایش فونت کل سیستم
   ========================================================= */

html{
    font-size:16.5px!important;
}

body,
.app-shell,
main,
.ui-page{
    font-size:15px!important;
}

/* منوی راست */
.app-sidebar,
.sidebar,
.side-nav,
.nav-link,
.sidebar-link,
.sidebar-menu a,
.sidebar-submenu a,
.app-sidebar a,
.app-sidebar button{
    font-size:14px!important;
}

.sidebar-brand,
.sidebar-user strong,
.sidebar-user-name{
    font-size:15px!important;
}

.sidebar-user small,
.sidebar-update,
.sidebar-footer,
.app-sidebar small{
    font-size:11.5px!important;
}

/* هدر بالا */
.topbar,
.app-topbar,
.main-header{
    font-size:14px!important;
}

.topbar strong,
.app-topbar strong,
.topbar-title strong{
    font-size:17px!important;
}

.topbar span,
.app-topbar span,
.topbar-title span,
.topbar-eyebrow{
    font-size:12px!important;
}

/* عنوان صفحات */
.page-title h1,
.sales-dashboard-heading h1,
.page-titlebar h1{
    font-size:28px!important;
    line-height:1.35!important;
}

.page-title p,
.sales-dashboard-heading p,
.page-titlebar p,
.breadcrumbs{
    font-size:13px!important;
}

/* دکمه‌ها */
button,
.btn,
a.btn,
.invoice-action-btn,
.invoice-refresh,
.invoice-day-nav{
    font-size:13px!important;
}

/* فرم‌ها */
label,
.field label,
.invoice-filter>span{
    font-size:12px!important;
}

input,
select,
textarea,
.search-box input,
.invoice-search input,
.invoice-filter select{
    font-size:13px!important;
}

/* کارت‌ها */
.kpi-card .kpi-copy span,
.sales-kpi-copy span,
.metric-card span{
    font-size:13px!important;
}

.kpi-card .kpi-copy strong,
.sales-kpi-copy strong,
.metric-card strong{
    font-size:24px!important;
    line-height:1.3!important;
}

.kpi-card .kpi-copy small,
.sales-kpi-copy small,
.metric-card small{
    font-size:11px!important;
}

/* پنل‌ها */
.panel-head h2,
.invoice-list-head h2{
    font-size:17px!important;
}

.panel-head p,
.invoice-list-head p,
.invoice-head-note{
    font-size:11.5px!important;
}

/* جدول‌ها */
.data-table thead th,
.invoice-table thead th,
table thead th{
    font-size:12.5px!important;
}

.data-table tbody td,
.invoice-table tbody td,
table tbody td{
    font-size:13px!important;
}

.invoice-no-cell strong,
.invoice-customer-cell strong,
.table-code{
    font-size:13.5px!important;
}

.invoice-no-cell small,
.invoice-customer-cell small,
.discount-amount,
table small{
    font-size:10.5px!important;
}

/* بج‌ها و وضعیت‌ها */
.badge,
.invoice-badge,
.status-badge,
.inline-secondary-select{
    font-size:11px!important;
}

/* پیام‌ها و هشدارها */
.notice,
.invoice-message,
.empty-state,
.table-footer,
.pagination{
    font-size:12px!important;
}

/* مودال‌ها */
.dialog,
.modal,
.invoice-mini-dialog{
    font-size:14px!important;
}

.dialog h2,
.modal h2,
.invoice-mini-dialog h3{
    font-size:18px!important;
}

.dialog p,
.modal p,
.invoice-mini-dialog p{
    font-size:12px!important;
}

/* =========================================================
   SOGOL GLOBAL FONT BOOST V2
   افزایش محسوس‌تر فونت کل سیستم
   ========================================================= */

html{
    font-size:18px!important;
}

body,
.app-shell,
main,
.ui-page,
.content-area,
.page-content{
    font-size:16.5px!important;
}

/* منوی راست */
.app-sidebar,
.sidebar,
.side-nav,
.sidebar-menu,
.sidebar-submenu{
    font-size:15.5px!important;
}

.app-sidebar a,
.app-sidebar button,
.sidebar a,
.sidebar button,
.nav-link,
.sidebar-link,
.sidebar-menu a,
.sidebar-submenu a{
    font-size:15px!important;
    line-height:1.55!important;
}

.sidebar-brand,
.sidebar-user strong,
.sidebar-user-name{
    font-size:16.5px!important;
}

.sidebar-user small,
.sidebar-update,
.sidebar-footer,
.app-sidebar small{
    font-size:12.5px!important;
}

/* هدر بالا */
.topbar,
.app-topbar,
.main-header{
    font-size:15px!important;
}

.topbar strong,
.app-topbar strong,
.topbar-title strong{
    font-size:18.5px!important;
}

.topbar span,
.app-topbar span,
.topbar-title span,
.topbar-eyebrow,
.simple-date{
    font-size:13px!important;
}

/* عنوان صفحات */
.page-title h1,
.sales-dashboard-heading h1,
.page-titlebar h1{
    font-size:31px!important;
    line-height:1.3!important;
}

.page-title p,
.sales-dashboard-heading p,
.page-titlebar p,
.breadcrumbs{
    font-size:14px!important;
}

/* دکمه‌ها */
button,
.btn,
a.btn,
.invoice-action-btn,
.invoice-refresh,
.invoice-day-nav{
    font-size:14px!important;
    font-weight:750!important;
}

/* فرم‌ها */
label,
.field label,
.invoice-filter>span{
    font-size:13px!important;
}

input,
select,
textarea,
.search-box input,
.invoice-search input,
.invoice-filter select{
    font-size:14px!important;
}

/* کارت‌ها */
.kpi-card .kpi-copy span,
.sales-kpi-copy span,
.metric-card span,
.kpi-copy span{
    font-size:14px!important;
}

.kpi-card .kpi-copy strong,
.sales-kpi-copy strong,
.metric-card strong,
.kpi-copy strong{
    font-size:27px!important;
    line-height:1.25!important;
}

.kpi-card .kpi-copy small,
.sales-kpi-copy small,
.metric-card small,
.kpi-copy small{
    font-size:12px!important;
}

/* پنل‌ها */
.panel-head h2,
.invoice-list-head h2{
    font-size:18.5px!important;
}

.panel-head p,
.invoice-list-head p,
.invoice-head-note{
    font-size:12.5px!important;
}

/* جدول‌ها */
.data-table thead th,
.invoice-table thead th,
table thead th{
    font-size:14px!important;
    font-weight:800!important;
}

.data-table tbody td,
.invoice-table tbody td,
table tbody td{
    font-size:14.5px!important;
    line-height:1.55!important;
}

.invoice-no-cell strong,
.invoice-customer-cell strong,
.table-code{
    font-size:14.5px!important;
}

.invoice-no-cell small,
.invoice-customer-cell small,
.discount-amount,
table small{
    font-size:11.5px!important;
}

/* وضعیت‌ها */
.badge,
.invoice-badge,
.status-badge,
.inline-secondary-select{
    font-size:12px!important;
}

/* هشدارها */
.notice,
.invoice-message,
.empty-state,
.table-footer,
.pagination{
    font-size:13px!important;
}

/* مودال‌ها */
.dialog,
.modal,
.invoice-mini-dialog{
    font-size:15px!important;
}

.dialog h2,
.modal h2,
.invoice-mini-dialog h3{
    font-size:20px!important;
}

.dialog p,
.modal p,
.invoice-mini-dialog p{
    font-size:13px!important;
}

/* کنترل‌های تاریخ صفحه فاکتورها */
.invoice-date-box span{
    font-size:12px!important;
}

.invoice-date-box strong{
    font-size:15px!important;
}

/* =========================================================
   SOGOL GLOBAL FONT FORCE V3
   Force larger typography across the whole application
   ========================================================= */

body * {
    font-size: 15.5px !important;
}

/* Main page titles */
body h1,
body .page-title h1,
body .page-titlebar h1,
body .sales-dashboard-heading h1 {
    font-size: 30px !important;
    line-height: 1.35 !important;
}

/* Section titles */
body h2,
body .panel-head h2,
body .invoice-list-head h2 {
    font-size: 19px !important;
    line-height: 1.4 !important;
}

body h3 {
    font-size: 17px !important;
}

/* KPI / card numbers */
body .kpi-card .kpi-copy strong,
body .sales-kpi-copy strong,
body .metric-card strong,
body .kpi-copy strong {
    font-size: 27px !important;
    line-height: 1.25 !important;
}

/* Sidebar main items */
body .app-sidebar a,
body .app-sidebar button,
body .sidebar a,
body .sidebar button,
body .nav-link,
body .sidebar-link {
    font-size: 15px !important;
}

/* Sidebar subitems */
body .sidebar-submenu a,
body .app-sidebar .submenu a,
body .app-sidebar small,
body .sidebar small {
    font-size: 13px !important;
}

/* Inputs / buttons */
body input,
body select,
body textarea,
body button,
body .btn,
body a.btn {
    font-size: 14.5px !important;
}

/* Tables */
body table thead th,
body .data-table thead th,
body .invoice-table thead th {
    font-size: 13.5px !important;
}

body table tbody td,
body .data-table tbody td,
body .invoice-table tbody td {
    font-size: 14px !important;
}

/* Helper text */
body small,
body .breadcrumbs,
body .panel-head p,
body .page-title p,
body .page-titlebar p,
body .sales-dashboard-heading p {
    font-size: 12.5px !important;
}

/* Status pills */
body .badge,
body .invoice-badge,
body .status-badge {
    font-size: 12px !important;
}

/* Keep icons from inheriting text sizing */
body svg {
    font-size: initial !important;
}

/* =========================================================
   SOGOL MANUAL INVOICE MODAL V1
   ========================================================= */
.manual-invoice-dialog{
    width:min(1180px,calc(100vw - 42px));
    max-height:calc(100vh - 42px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border:1px solid #e2e6ee;
    border-radius:20px;
    box-shadow:0 30px 100px rgba(10,22,42,.28)
}
.manual-dialog-head{
    min-height:78px;
    padding:14px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    border-bottom:1px solid #edf0f4;
    background:linear-gradient(180deg,#fff,#fcfcfe)
}
.manual-dialog-title{display:flex;align-items:center;gap:12px}
.manual-dialog-icon{
    width:45px;height:45px;border-radius:13px;
    display:grid;place-items:center;
    color:#6a3ce4;background:#f1ecff
}
.manual-dialog-icon svg{width:22px;height:22px}
.manual-dialog-title h2{margin:0;color:#1e2940;font-size:18px;font-weight:900}
.manual-dialog-title p{margin:3px 0 0;color:#8a95a7;font-size:10.5px}
.manual-dialog-close{
    width:36px;height:36px;border:0;border-radius:10px;
    background:#f4f6f8;color:#68758a;
    font-family:inherit;font-size:23px;cursor:pointer
}
.manual-dialog-close:hover{background:#eceff4;color:#29364d}
.manual-dialog-body{padding:14px 16px 16px;overflow:auto}
.manual-form-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:11px
}
.manual-field{position:relative;display:flex;flex-direction:column;gap:5px}
.manual-field.customer-field{grid-column:span 2}
.manual-field label{color:#596579;font-size:10.5px;font-weight:800}
.manual-field label b{color:#e24d5f}
.manual-field>input,.manual-field>select,.manual-input-icon{
    min-height:43px;border:1px solid #dfe4ed;border-radius:11px;
    background:#fff
}
.manual-field>input,.manual-field>select{
    width:100%;padding:0 11px;outline:0;color:#26324a;
    font-family:inherit;font-size:12px
}
.manual-field>input:focus,.manual-field>select:focus,.manual-input-icon:focus-within{
    border-color:#a992ef;box-shadow:0 0 0 3px rgba(111,74,221,.08)
}
.manual-input-icon{padding:0 11px;display:flex;align-items:center;gap:8px}
.manual-input-icon svg{width:17px;height:17px;color:#8792a4}
.manual-input-icon input{
    flex:1;min-width:0;border:0;outline:0;background:transparent;
    font-family:inherit;font-size:12px;color:#26324a
}
.manual-readonly-value{
    min-height:43px;padding:0 11px;display:flex;align-items:center;gap:8px;
    border:1px solid #e1e5ec;border-radius:11px;background:#f9fafc;color:#48566d
}
.manual-readonly-value svg{width:17px;height:17px;color:#7960db}
.manual-readonly-value strong{font-size:12px}.manual-readonly-value small{margin-right:auto;color:#909aad;font-size:9.5px}
.manual-readonly-value.rate{background:#f8f5ff;border-color:#e4dcff}
.manual-readonly-value.taxable{background:#f1f6ff;border-color:#d5e3f7;color:#285fac}
.manual-customer-results{
    position:absolute;top:70px;right:0;left:0;z-index:30;
    max-height:275px;overflow:auto;padding:5px;
    border:1px solid #dfe4ed;border-radius:12px;background:#fff;
    box-shadow:0 14px 35px rgba(29,42,70,.14)
}
.manual-customer-results>button{
    width:100%;min-height:48px;padding:7px 9px;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    border:0;border-bottom:1px solid #f0f2f5;background:#fff;
    color:#26324a;font-family:inherit;text-align:right;cursor:pointer
}
.manual-customer-results>button:last-child{border-bottom:0}
.manual-customer-results>button:hover{background:#f8f6ff}
.manual-customer-results strong{display:block;font-size:11.5px}.manual-customer-results small{color:#909aac;font-size:9px}
.customer-result-flags{display:flex;align-items:center;gap:4px}
.manual-selected-customer{
    min-height:43px;padding:6px 10px;display:flex;align-items:center;justify-content:space-between;
    border:1px solid #cfc3f7;border-radius:11px;background:#f9f7ff
}
.manual-selected-customer strong{display:block;color:#37246f;font-size:11.5px}
.manual-selected-customer small{color:#8d80af;font-size:9px}
.manual-selected-customer button{
    padding:5px 8px;border:1px solid #d7cef4;border-radius:8px;background:#fff;
    color:#6440cc;font-family:inherit;font-size:9px;cursor:pointer
}
.manual-preview-grid{
    margin-top:13px;display:grid;grid-template-columns:.9fr 1.4fr;gap:12px
}
.manual-customer-status,.manual-price-preview{
    min-height:225px;overflow:hidden;border:1px solid #e2e6ee;border-radius:14px;background:#fff
}
.manual-customer-status>header,.manual-price-preview>header{
    min-height:55px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid #eef1f5;background:#fbfcfd
}
.manual-customer-status h3,.manual-price-preview h3{margin:0;color:#26324a;font-size:13px}
.manual-customer-status p,.manual-price-preview p{margin:3px 0 0;color:#929cac;font-size:9px}
.manual-status-cards{
    padding:11px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px
}
.manual-status-cards>div{
    min-height:74px;padding:8px;border:1px solid #e7eaf0;border-radius:10px;background:#fafbfc;
    display:flex;flex-direction:column;align-items:center;justify-content:center
}
.manual-status-cards span{color:#8d97a8;font-size:9px}
.manual-status-cards strong{margin-top:3px;color:#25324a;font-size:16px;direction:ltr}
.manual-status-cards small{color:#a0a8b5;font-size:8.5px}
.manual-festival-message{
    margin:0 11px 11px;padding:9px 10px;display:flex;align-items:center;gap:8px;
    border-radius:10px;font-size:9.8px;font-weight:750
}
.manual-festival-message svg{width:16px;height:16px;flex:0 0 auto}
.manual-festival-message.eligible{color:#087a55;background:#edf9f4;border:1px solid #c9ebdc}
.manual-festival-message.boundary{color:#b66b14;background:#fff7e9;border:1px solid #f1d6a7}
.manual-festival-message.cross-target,.manual-festival-message.before-target{color:#2c60aa;background:#f0f6ff;border:1px solid #d4e2f8}
.manual-festival-message.capacity-full,.manual-festival-message.no-target{color:#707b8d;background:#f5f6f8;border:1px solid #e2e5ea}
.manual-calc-flow{
    padding:11px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px
}
.manual-calc-flow>div{
    min-height:118px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;
    justify-content:center;text-align:center;border:1px solid #e6e9ee;border-radius:10px;background:#fafbfc
}
.manual-calc-flow span{color:#8d97a8;font-size:8.7px}.manual-calc-flow strong{margin-top:6px;color:#26324a;font-size:10.5px;direction:ltr}.manual-calc-flow small{margin-top:4px;color:#9ba4b2;font-size:8px}
.manual-calc-flow .minus{background:#fff9f9}.manual-calc-flow .minus strong{color:#c24958}
.manual-calc-flow .plus{background:#f3f8ff}.manual-calc-flow .plus strong{color:#2761b5}
.manual-calc-flow .final{
    color:#fff;border-color:#6840da;background:linear-gradient(145deg,#7548ed,#5e34cf);
    box-shadow:0 8px 18px rgba(101,57,211,.18)
}
.manual-calc-flow .final span,.manual-calc-flow .final strong,.manual-calc-flow .final small{color:#fff}
.manual-calc-flow .final strong{font-size:12px;font-weight:900}
.manual-preview-placeholder{
    min-height:165px;padding:20px;display:grid;place-items:center;text-align:center;
    color:#929cac;font-size:10.5px;line-height:1.8
}
.manual-dialog-footer{
    min-height:67px;padding:10px 16px;display:flex;align-items:center;justify-content:flex-end;gap:8px;
    border-top:1px solid #edf0f4;background:#fbfcfd
}
.manual-dialog-footer .btn{min-width:105px}
.manual-dialog-footer .manual-save-next{
    min-width:135px;background:linear-gradient(135deg,#7540f5,#6030d8);box-shadow:0 7px 16px rgba(102,50,220,.18)
}
@media(max-width:950px){
    .manual-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .manual-field.customer-field{grid-column:span 2}
    .manual-preview-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
    .manual-invoice-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px)}
    .manual-form-grid{grid-template-columns:1fr}
    .manual-field.customer-field{grid-column:auto}
    .manual-calc-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
    .manual-dialog-footer{flex-wrap:wrap}
    .manual-dialog-footer .btn{flex:1}
}

/* =========================================================
   SOGOL PRODUCT CATEGORY INLINE V1
   ========================================================= */
.product-catalog-page{display:flex;flex-direction:column;gap:12px}
.product-catalog-header{align-items:center}
.product-catalog-kpis{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px
}
.product-catalog-kpis>article{
    min-height:94px;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #e4e8ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(25,39,70,.04)
}
.product-catalog-kpis span{
    display:block;color:#8994a6;font-size:10px;font-weight:800
}
.product-catalog-kpis strong{
    display:inline-block;margin-top:4px;color:#26324a;font-size:23px;font-weight:950
}
.product-catalog-kpis small{margin-right:5px;color:#a0a8b5;font-size:9px}
.product-kpi-icon{
    width:43px;height:43px;border-radius:12px;display:grid;place-items:center
}
.product-kpi-icon svg{width:21px;height:21px}
.product-kpi-icon.blue{background:#edf4ff;color:#3677d6}
.product-kpi-icon.violet{background:#f2edff;color:#7248dd}
.product-kpi-icon.green{background:#edf9f4;color:#159267}

.product-filter-bar{
    padding:10px;
    display:grid;
    grid-template-columns:minmax(280px,1fr) 260px auto;
    align-items:end;
    gap:8px;
    border:1px solid #e2e6ed;
    border-radius:13px;
    background:#fff
}
.product-search-box{
    min-height:43px;padding:0 11px;display:flex;align-items:center;gap:8px;
    border:1px solid #dfe4ec;border-radius:10px;background:#fff
}
.product-search-box:focus-within{border-color:#a991ef;box-shadow:0 0 0 3px rgba(111,74,221,.07)}
.product-search-box svg{width:17px;height:17px;color:#8a95a6}
.product-search-box input{
    flex:1;min-width:0;border:0;outline:0;background:transparent;
    color:#29364c;font-family:inherit;font-size:11.5px
}
.product-category-filter{display:flex;flex-direction:column;gap:4px}
.product-category-filter span{color:#7c8799;font-size:9px;font-weight:800}
.product-category-filter select{
    min-height:43px;padding:0 10px;border:1px solid #dfe4ec;border-radius:10px;
    background:#fff;color:#344158;font-family:inherit;font-size:11px
}
.product-clear-filter{min-height:43px}

.product-table-panel{
    overflow:hidden;
    border:1px solid #e1e5ec;
    border-radius:14px;
    background:#fff
}
.product-table-head{
    min-height:62px;padding:11px 14px;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    border-bottom:1px solid #edf0f4;background:#fbfcfd
}
.product-table-head h2{margin:0;color:#27334a;font-size:14px}
.product-table-head p{margin:3px 0 0;color:#949ead;font-size:9.5px}
.product-table-head>span{
    padding:5px 9px;border-radius:8px;background:#f2effd;color:#6b46cf;
    font-size:9.5px;font-weight:850
}
.product-table-wrap{overflow:auto}
.product-catalog-table{width:100%;border-collapse:collapse;min-width:850px}
.product-catalog-table th{
    padding:10px 12px;background:#fafbfc;border-bottom:1px solid #e8ebf0;
    color:#7d889a;font-size:9.5px;font-weight:900;text-align:right;white-space:nowrap
}
.product-catalog-table td{
    padding:9px 12px;border-bottom:1px solid #eef1f4;color:#465369;
    font-size:10.5px;vertical-align:middle
}
.product-catalog-table tbody tr:last-child td{border-bottom:0}
.product-catalog-table tbody tr:hover{background:#fcfbff}
.product-catalog-table tbody tr.saving{opacity:.72}
.product-code{
    direction:ltr;display:inline-block;padding:4px 7px;
    border-radius:7px;background:#f4f6f9;color:#42516a;font-weight:850
}
.product-name{color:#29364d;font-size:11px}
.product-inline-category{
    width:min(260px,100%);min-height:36px;padding:0 9px;
    border:1px solid #ded9ef;border-radius:9px;background:#faf8ff;
    color:#523a93;font-family:inherit;font-size:10.5px;font-weight:750
}
.product-inline-category:focus{
    outline:0;border-color:#9579e9;box-shadow:0 0 0 3px rgba(111,74,221,.08)
}
.product-use-count{
    display:inline-block;padding:4px 7px;border-radius:7px;
    background:#edf7f3;color:#25765a;font-size:9.5px;font-weight:800
}
.product-use-count.zero{background:#f4f5f7;color:#8c96a5}
.product-save-state{
    display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:7px;
    font-size:9px;font-weight:800
}
.product-save-state.saved{background:#eef8f3;color:#21805d}
.product-save-state.saving{background:#fff6e8;color:#aa6916}
.product-empty-state{
    min-height:220px;display:grid;place-items:center;color:#929dac;font-size:11px
}
.product-history-note{
    padding:9px 11px;display:flex;align-items:center;gap:7px;
    border:1px solid #dce6f4;border-radius:10px;background:#f6f9fd;
    color:#617086;font-size:9.5px
}
.product-history-note svg{width:16px;height:16px;color:#4676b8;flex:0 0 auto}
@media(max-width:850px){
    .product-catalog-kpis{grid-template-columns:1fr}
    .product-filter-bar{grid-template-columns:1fr}
}

/* =========================================================
   SOGOL TXT INVOICE IMPORT V1
   ========================================================= */
.txt-import-page{display:flex;flex-direction:column;gap:11px}
.txt-import-header{align-items:center}
.txt-import-toolbar{
    padding:10px;display:flex;align-items:center;gap:9px;
    border:1px solid #e1e5ec;border-radius:13px;background:#fff
}
.txt-import-date{
    min-width:205px;min-height:55px;padding:8px 11px;display:flex;align-items:center;gap:9px;
    border:1px solid #e0e5ed;border-radius:11px;background:#fafbfc
}
.txt-import-date svg{width:18px;height:18px;color:#7650db}
.txt-import-date span{display:block;color:#909aac;font-size:9px}
.txt-import-date strong{display:block;margin-top:2px;color:#354258;font-size:11px;direction:ltr}
.txt-file-picker{
    flex:1;min-height:55px;padding:8px 12px;display:flex;align-items:center;gap:10px;
    border:1px dashed #a990ed;border-radius:11px;background:#faf8ff;color:#5940a1;
    cursor:pointer;position:relative
}
.txt-file-picker:hover{background:#f6f2ff}
.txt-file-picker.disabled{opacity:.65;pointer-events:none}
.txt-file-picker>svg{width:21px;height:21px}
.txt-file-picker strong{display:block;font-size:11px}.txt-file-picker small{display:block;margin-top:2px;color:#9385b8;font-size:9px}
.txt-file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

.txt-import-note{
    padding:9px 11px;display:flex;align-items:center;gap:8px;
    border:1px solid #d8e4f4;border-radius:10px;background:#f6f9fd;
    color:#627088;font-size:9.5px
}
.txt-import-note svg{width:16px;height:16px;color:#4977b8;flex:0 0 auto}

.txt-import-kpis{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px
}
.txt-import-kpis article{
    min-height:78px;padding:10px 12px;border:1px solid #e3e7ed;border-radius:12px;background:#fff
}
.txt-import-kpis span{display:block;color:#909aaa;font-size:9px;font-weight:800}
.txt-import-kpis strong{display:block;margin-top:5px;color:#2f3b52;font-size:17px;font-weight:950;direction:ltr}
.txt-import-kpis small{color:#9ea7b4;font-size:8.5px}
.txt-import-kpis article.ok{background:#f7fcf9;border-color:#d8ece3}
.txt-import-kpis article.ok strong{color:#16805b}
.txt-import-kpis article.warn{background:#fffaf3;border-color:#f0dfc4}
.txt-import-kpis article.warn strong{color:#b36b16}

.txt-bulk-secondary{
    padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;
    border:1px solid #e3def2;border-radius:11px;background:#faf8ff
}
.txt-bulk-secondary strong{display:block;color:#4d3a85;font-size:10.5px}
.txt-bulk-secondary small{display:block;margin-top:2px;color:#9084ac;font-size:8.5px}
.txt-bulk-secondary select{
    width:220px;min-height:38px;padding:0 9px;border:1px solid #d9d0ef;border-radius:9px;
    background:#fff;color:#4e3c7e;font-family:inherit;font-size:10px
}

.txt-preview-panel{
    overflow:hidden;border:1px solid #e0e5eb;border-radius:13px;background:#fff
}
.txt-preview-head{
    min-height:58px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid #edf0f4;background:#fbfcfd
}
.txt-preview-head h2{margin:0;color:#27344b;font-size:13px}
.txt-preview-head p{margin:3px 0 0;color:#939dac;font-size:9px}
.txt-preview-head>span{padding:4px 8px;border-radius:7px;background:#f1edfc;color:#6946ca;font-size:9px;font-weight:850}
.txt-preview-table-wrap{overflow:auto}
.txt-preview-table{width:100%;min-width:1150px;border-collapse:collapse}
.txt-preview-table th{
    padding:9px 10px;background:#fafbfc;border-bottom:1px solid #e7ebf0;
    color:#7f8999;font-size:9px;font-weight:900;text-align:right;white-space:nowrap
}
.txt-preview-table td{
    padding:9px 10px;border-bottom:1px solid #eef1f4;color:#465369;
    font-size:9.8px;vertical-align:middle
}
.txt-preview-table tbody tr:hover:not(.txt-detail-row){background:#fcfbff}
.txt-preview-table tr.has-error{background:#fffafa}
.txt-preview-table td strong{display:block;color:#2c394f;font-size:10px}
.txt-preview-table td small{display:block;margin-top:2px;color:#98a1af;font-size:8.3px}
.txt-file-name{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txt-desc{direction:ltr;display:inline-block}
.txt-error-text{color:#c65a64!important}
.txt-secondary-select{
    width:135px;min-height:34px;padding:0 7px;border:1px solid #ded9ef;border-radius:8px;
    background:#faf9ff;color:#513b8d;font-family:inherit;font-size:9px
}
.txt-badge{
    display:inline-flex;padding:4px 7px;border-radius:7px;font-size:8.5px;font-weight:850;white-space:nowrap
}
.txt-badge.ok{background:#edf8f3;color:#197c59}
.txt-badge.warning{background:#fff5e7;color:#ae6918}
.txt-badge.error{background:#fff0f1;color:#b84351}
.customer-excel-error-cell{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.customer-excel-remove{border:0;border-radius:6px;background:#b84351;color:#fff;padding:3px 7px;font:inherit;font-size:8px;cursor:pointer}
.customer-excel-remove:hover{background:#963442}

.txt-detail-row td{padding:0!important;background:#f8fafc!important}
.txt-detail-error{padding:12px;color:#b44552;font-size:9.5px}
.txt-article-grid{padding:10px 12px}
.txt-article-head,.txt-article-line{
    display:grid;grid-template-columns:45px 150px 1.3fr 1fr 100px 120px 140px;gap:7px;align-items:center
}
.txt-article-head{
    padding:7px 8px;border-radius:7px;background:#eef2f6;color:#738094;font-size:8.5px;font-weight:900
}
.txt-article-line{
    padding:7px 8px;border-bottom:1px solid #e8ecf1;color:#4a5669;font-size:8.8px
}
.txt-article-line:last-child{border-bottom:0}
.txt-article-line.unknown{background:#fff4f4;color:#ad4853}

.txt-import-footer{
    padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:15px;
    border:1px solid #e5dfef;border-radius:11px;background:#faf8ff
}
.txt-import-footer strong{display:block;color:#59448f;font-size:10.5px}
.txt-import-footer span{display:block;margin-top:2px;color:#9488ae;font-size:8.8px}
.txt-import-footer .btn{min-width:130px}

.txt-empty{
    min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
    border:1px dashed #d8dce5;border-radius:14px;background:#fff
}
.txt-empty-icon{
    width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:#f1ecff;color:#7249da
}
.txt-empty-icon svg{width:26px;height:26px}
.txt-empty h2{margin:12px 0 4px;color:#354157;font-size:14px}
.txt-empty p{margin:0;color:#98a1af;font-size:9.5px}

@media(max-width:1000px){
    .txt-import-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .txt-import-toolbar{flex-wrap:wrap}
    .txt-file-picker{min-width:100%}
}
@media(max-width:650px){
    .txt-import-kpis{grid-template-columns:1fr}
    .txt-bulk-secondary{align-items:stretch;flex-direction:column}
    .txt-bulk-secondary select{width:100%}
}

/* =========================================================
   SOGOL PRODUCT EXCEL BUTTON V4
   ========================================================= */
.product-header-actions{display:flex;align-items:center;gap:8px}
.product-excel-button{position:relative;overflow:hidden;cursor:pointer}
.product-excel-button input{
    position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer
}
.product-catalog-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr))
}
.product-kpi-icon.orange{background:#fff5e8;color:#b66d18}
.product-filter-bar-v4{
    grid-template-columns:minmax(280px,1fr) 230px 180px auto
}
.product-excel-dialog{
    width:min(1260px,calc(100vw - 36px));
    max-height:calc(100vh - 36px);
    display:flex;flex-direction:column;overflow:hidden;
    border:1px solid #e1e5ec;border-radius:18px;background:#fff;
    box-shadow:0 28px 90px rgba(15,28,52,.28)
}
.product-excel-head{
    min-height:68px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid #edf0f4;background:#fcfcfd
}
.product-excel-head h2{margin:0;color:#26334a;font-size:15px}
.product-excel-head p{margin:3px 0 0;color:#929cac;font-size:9px}
.product-excel-head button{
    width:34px;height:34px;border:0;border-radius:9px;background:#f2f4f7;
    color:#667287;font-family:inherit;font-size:21px;cursor:pointer
}
.product-excel-body{padding:12px 14px;overflow:auto}
.product-excel-kpis{
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px
}
.product-excel-kpis article{
    min-height:70px;padding:9px 10px;border:1px solid #e5e8ee;border-radius:10px;background:#fafbfc
}
.product-excel-kpis span{display:block;color:#909aaa;font-size:8.5px;font-weight:800}
.product-excel-kpis strong{display:block;margin-top:5px;color:#2c394f;font-size:17px;font-weight:950}
.product-excel-kpis article.active{background:#f3fbf7;border-color:#d6ebdf}
.product-excel-kpis article.active strong{color:#16815b}
.product-excel-kpis article.inactive{background:#fff9ef;border-color:#ecddc4}
.product-excel-kpis article.inactive strong{color:#a76b1d}
.product-excel-kpis article.new{background:#f5f2ff;border-color:#e0d8f8}
.product-excel-kpis article.new strong{color:#6943cf}
.product-excel-kpis article.invalid{background:#fff2f3;border-color:#f0d5d8}
.product-excel-kpis article.invalid strong{color:#bd4654}
.product-excel-options{
    margin-top:10px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;
    border:1px solid #ddd7ef;border-radius:10px;background:#faf8ff
}
.product-excel-options strong{display:block;color:#4f3b88;font-size:10px}
.product-excel-options small{display:block;margin-top:2px;color:#9387ad;font-size:8.5px}
.product-excel-options select{
    min-width:260px;min-height:38px;padding:0 9px;border:1px solid #d7cdef;border-radius:8px;
    background:#fff;color:#513d85;font-family:inherit;font-size:9.5px
}
.product-excel-table-wrap{
    margin-top:10px;max-height:430px;overflow:auto;border:1px solid #e3e6ec;border-radius:10px
}
.product-excel-table{width:100%;min-width:1050px;border-collapse:collapse}
.product-excel-table th{
    position:sticky;top:0;z-index:2;padding:8px 9px;background:#f7f9fb;
    border-bottom:1px solid #e2e6ec;color:#798597;font-size:8.5px;font-weight:900;text-align:right
}
.product-excel-table td{
    padding:7px 9px;border-bottom:1px solid #edf0f3;color:#465367;font-size:9px
}
.product-excel-table tr.inactive{background:#fffbf4}
.product-excel-table tr.invalid{background:#fff7f7}
.product-excel-action{
    display:inline-flex;padding:4px 7px;border-radius:7px;font-size:8px;font-weight:850;white-space:nowrap
}
.product-excel-action.create{background:#eee9ff;color:#6540c6}
.product-excel-action.update{background:#edf7f3;color:#237759}
.product-excel-action.skip{background:#fff2dc;color:#9f691f}
.product-excel-action.error{background:#ffecee;color:#b44350}
.product-excel-footer{
    min-height:67px;padding:10px 14px;display:flex;align-items:center;justify-content:flex-end;gap:8px;
    border-top:1px solid #edf0f4;background:#fbfcfd
}
.product-excel-footer>div{margin-left:auto}
.product-excel-footer strong{display:block;color:#4b586d;font-size:9.5px}
.product-excel-footer span{display:block;margin-top:2px;color:#929cab;font-size:8.3px}
.product-excel-footer .btn{min-width:115px}
@media(max-width:1050px){
    .product-catalog-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .product-filter-bar-v4{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
    .product-header-actions{flex-wrap:wrap}
    .product-catalog-kpis{grid-template-columns:1fr}
    .product-filter-bar-v4{grid-template-columns:1fr}
    .product-excel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .product-excel-options{align-items:stretch;flex-direction:column}
    .product-excel-options select{width:100%;min-width:0}
}

/* =========================================================
   SOGOL CUSTOMER EXCEL REGION CITY V1
   ========================================================= */
.customer-catalog-page{display:flex;flex-direction:column;gap:11px}
.customer-catalog-header{align-items:center}
.customer-header-actions{display:flex;align-items:center;gap:8px}
.customer-excel-button{position:relative;overflow:hidden;cursor:pointer}
.customer-excel-button input{
    position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer
}

.customer-kpi-grid{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
.customer-kpi-grid article{
    min-height:82px;padding:11px 13px;
    border:1px solid #e3e7ed;border-radius:12px;background:#fff
}
.customer-kpi-grid span{display:block;color:#8f99aa;font-size:9px;font-weight:800}
.customer-kpi-grid strong{display:block;margin-top:5px;color:#2f3c52;font-size:19px;font-weight:950}
.customer-kpi-grid small{color:#9ba5b3;font-size:8.5px}
.customer-kpi-grid article.tehran{background:#f4f7ff;border-color:#dce5f7}
.customer-kpi-grid article.tehran strong{color:#3d68b6}
.customer-kpi-grid article.county{background:#f3faf6;border-color:#d8ebdf}
.customer-kpi-grid article.county strong{color:#23815e}
.customer-kpi-grid article.unassigned{background:#fff8ef;border-color:#efdfc5}
.customer-kpi-grid article.unassigned strong{color:#a96a19}

.customer-filterbar{
    padding:9px;display:grid;
    grid-template-columns:minmax(250px,1fr) 180px 220px 150px auto;
    align-items:end;gap:8px;
    border:1px solid #e1e5ec;border-radius:12px;background:#fff
}
.customer-table-panel{
    overflow:hidden;border:1px solid #e1e5ec;border-radius:13px;background:#fff
}
.customer-table-wrap{overflow:auto}
.customer-catalog-table{
    width:100%;min-width:1050px;border-collapse:collapse
}
.customer-catalog-table th{
    padding:9px 10px;background:#fafbfc;border-bottom:1px solid #e7ebf0;
    color:#7e899a;font-size:9px;font-weight:900;text-align:right;white-space:nowrap
}
.customer-catalog-table td{
    padding:8px 10px;border-bottom:1px solid #eef1f4;
    color:#465369;font-size:9.8px;vertical-align:middle
}
.customer-catalog-table tr:hover{background:#fcfbff}
.customer-catalog-table tr.saving{opacity:.68}
.customer-name{color:#29364d;font-size:10.5px}
.customer-inline-select{
    width:190px;min-height:35px;padding:0 8px;
    border:1px solid #dde2e9;border-radius:8px;background:#fff;
    color:#455269;font-family:inherit;font-size:9.5px
}
.customer-inline-select.region{
    width:145px;background:#faf8ff;border-color:#ded6f2;color:#594195
}
.customer-invoice-count{
    display:inline-flex;min-width:31px;height:27px;align-items:center;justify-content:center;
    border-radius:7px;background:#f1f4f8;color:#5a677b;font-size:9px;font-weight:850
}
.customer-import-note{
    padding:9px 11px;display:flex;align-items:center;gap:7px;
    border:1px solid #dce6f4;border-radius:10px;background:#f6f9fd;
    color:#647289;font-size:9.5px
}
.customer-import-note svg{width:16px;height:16px;color:#4776b7;flex:0 0 auto}

.customer-excel-dialog{
    width:min(1180px,calc(100vw - 36px));
    max-height:calc(100vh - 36px);
    display:flex;flex-direction:column;overflow:hidden;
    border:1px solid #e1e5ec;border-radius:18px;background:#fff;
    box-shadow:0 28px 90px rgba(15,28,52,.28)
}
.customer-excel-kpis{
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px
}
.customer-excel-kpis article{
    min-height:68px;padding:9px 10px;
    border:1px solid #e5e8ee;border-radius:10px;background:#fafbfc
}
.customer-excel-kpis span{display:block;color:#909aaa;font-size:8.3px;font-weight:800}
.customer-excel-kpis strong{display:block;margin-top:5px;color:#2c394f;font-size:16px;font-weight:950}
.customer-excel-kpis article.tehran{background:#f3f6ff;border-color:#dce4f7}
.customer-excel-kpis article.tehran strong{color:#416ab2}
.customer-excel-kpis article.county{background:#f2faf6;border-color:#d6eadf}
.customer-excel-kpis article.county strong{color:#23805e}
.customer-excel-kpis article.duplicate{background:#fff8eb;border-color:#efdfc0}
.customer-excel-kpis article.duplicate strong{color:#aa6b18}
.customer-excel-kpis article.invalid{background:#fff2f3;border-color:#f0d5d8}
.customer-excel-kpis article.invalid strong{color:#bd4654}

.customer-excel-summary{
    margin-top:9px;padding:8px 10px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;
    border:1px solid #e7e2f3;border-radius:9px;background:#faf9fd;color:#6d6481;font-size:9px
}
.customer-excel-summary b{color:#463675}
.customer-excel-table-wrap{
    margin-top:9px;max-height:430px;overflow:auto;
    border:1px solid #e3e6ec;border-radius:10px
}
.customer-excel-table{width:100%;min-width:850px;border-collapse:collapse}
.customer-excel-table th{
    position:sticky;top:0;z-index:2;padding:8px 9px;background:#f7f9fb;
    border-bottom:1px solid #e2e6ec;color:#798597;font-size:8.5px;font-weight:900;text-align:right
}
.customer-excel-table td{
    padding:7px 9px;border-bottom:1px solid #edf0f3;color:#465367;font-size:9px
}
.customer-excel-table tr.duplicate{background:#fffaf2}
.customer-excel-table tr.invalid{background:#fff6f7}
.customer-region-badge{
    display:inline-flex;padding:4px 7px;border-radius:7px;font-size:8.5px;font-weight:850
}
.customer-region-badge.tehran-karaj{background:#eef3ff;color:#4165a8}
.customer-region-badge.county{background:#edf8f3;color:#24785b}

@media(max-width:1050px){
    .customer-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .customer-filterbar{grid-template-columns:1fr 1fr}
    .customer-excel-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
    .customer-header-actions{flex-wrap:wrap}
    .customer-kpi-grid{grid-template-columns:1fr}
    .customer-filterbar{grid-template-columns:1fr}
    .customer-excel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* =========================================================
   SOGOL PRICING TAX UI V3
   ========================================================= */
.pricing-settings-page{display:flex;flex-direction:column;gap:12px}
.pricing-settings-card{
    overflow:hidden;border:1px solid #e1e5ec;border-radius:15px;background:#fff;
    box-shadow:0 5px 18px rgba(26,39,68,.04)
}
.pricing-settings-card>header{
    padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;
    border-bottom:1px solid #edf0f4;background:#fbfcfd
}
.pricing-settings-card h2{margin:0;color:#26334a;font-size:15px}
.pricing-settings-card header p{margin:4px 0 0;color:#8f99a9;font-size:9.5px}
.pricing-settings-card header>span{
    padding:5px 10px;border-radius:8px;background:#f0ecff;color:#6844cb;font-size:9.5px;font-weight:850
}
.pricing-settings-grid{
    padding:22px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px
}
.pricing-settings-grid>label{
    padding:15px;border:1px solid #e4e7ed;border-radius:12px;background:#fafbfc
}
.pricing-settings-grid>label>span{display:block;color:#536077;font-size:11px;font-weight:900}
.pricing-settings-grid>label>small{display:block;margin-top:7px;color:#98a1af;font-size:8.8px}
.pricing-rate-input{
    margin-top:9px;min-height:52px;padding:0 12px;display:flex;align-items:center;gap:8px;
    border:1px solid #d9d0f2;border-radius:11px;background:#fff
}
.pricing-rate-input.tax{border-color:#cfe0f3;background:#fbfdff}
.pricing-rate-input input{
    flex:1;min-width:0;border:0;outline:0;background:transparent;
    color:#34245e;font-family:inherit;font-size:20px;font-weight:950;direction:ltr
}
.pricing-rate-input.tax input{color:#285eaa}
.pricing-rate-input b{color:#7354c8;font-size:16px}
.pricing-settings-card>footer{
    padding:12px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;
    border-top:1px solid #edf0f4;background:#fbfcfd
}
.pricing-settings-card footer strong{display:block;color:#4d596e;font-size:9.5px}
.pricing-settings-card footer span{display:block;margin-top:3px;color:#929cab;font-size:8.7px}

.customer-pricing-table{min-width:1240px}
.customer-initial-rate{
    width:90px;min-height:34px;padding:0 7px;display:flex;align-items:center;gap:4px;
    border:1px solid #ded6f2;border-radius:8px;background:#faf8ff
}
.customer-initial-rate input{
    width:60px;border:0;outline:0;background:transparent;color:#563e94;
    font-family:inherit;font-size:10px;font-weight:850;direction:ltr
}
.customer-initial-rate span{color:#765bc0;font-size:9px}
.customer-rate-hint{display:block;margin-top:3px;color:#9aa3b1;font-size:7.8px}
.customer-tax-switch{
    display:inline-flex;align-items:center;gap:6px;cursor:pointer;user-select:none
}
.customer-tax-switch input{display:none}
.customer-tax-switch .switch-track{
    width:32px;height:18px;padding:2px;display:flex;align-items:center;
    border-radius:18px;background:#cfd5df;transition:.18s ease
}
.customer-tax-switch .switch-track i{
    width:14px;height:14px;border-radius:50%;background:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.16);transition:.18s ease
}
.customer-tax-switch.taxable .switch-track{background:#4f84cc}
.customer-tax-switch.taxable .switch-track i{transform:translateX(-14px)}
.customer-tax-switch b{font-size:8.8px;color:#7d8899}
.customer-tax-switch.taxable b{color:#3569ad}

.txt-import-header-actions{display:flex;align-items:center;gap:7px}
.txt-pricing-preview{min-width:1380px}
.txt-rate-edit{
    width:78px;min-height:33px;padding:0 6px;display:flex;align-items:center;gap:3px;
    border:1px solid #ded7ef;border-radius:8px;background:#faf9ff
}
.txt-rate-edit.tax{background:#f6faff;border-color:#d4e1f0}
.txt-rate-edit input{
    width:52px;border:0;outline:0;background:transparent;color:#58408f;
    font-family:inherit;font-size:9px;font-weight:850;direction:ltr
}
.txt-rate-edit.tax input{color:#3769a7}
.txt-rate-edit span{font-size:8px;color:#7c66b3}

/* =========================================================
   SOGOL IRAN GEO MASTER V1
   ========================================================= */
.customer-geo-filterbar{
    grid-template-columns:minmax(250px,1fr) 180px 190px 140px auto
}
.customer-geo-table{min-width:1370px}
.customer-inline-select.province{width:165px}
.customer-inline-select.city{width:180px}

.iran-location-page{display:flex;flex-direction:column;gap:11px}
.iran-location-kpis{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px
}
.iran-location-kpis article{
    min-height:78px;padding:12px 14px;border:1px solid #e3e7ed;
    border-radius:12px;background:#fff
}
.iran-location-kpis span{
    display:block;color:#8e98a8;font-size:9px;font-weight:800
}
.iran-location-kpis strong{
    display:block;margin-top:6px;color:#334157;font-size:18px;font-weight:950
}
.iran-location-grid{
    display:grid;grid-template-columns:240px minmax(0,1fr);gap:10px
}
.iran-province-list,.iran-city-list{
    overflow:hidden;border:1px solid #e1e5ec;border-radius:13px;background:#fff
}
.iran-province-list>header,.iran-city-list>header{
    min-height:48px;padding:10px 12px;display:flex;align-items:center;
    justify-content:space-between;gap:10px;border-bottom:1px solid #edf0f4;
    background:#fafbfc
}
.iran-province-list>header strong,.iran-city-list>header strong{
    color:#344157;font-size:10.5px
}
.iran-province-list>header span,.iran-city-list>header span{
    color:#959eab;font-size:8.5px
}
.iran-province-list{
    max-height:630px;overflow-y:auto
}
.iran-province-list button{
    width:100%;padding:9px 11px;display:flex;align-items:center;
    justify-content:space-between;border:0;border-bottom:1px solid #f0f2f5;
    background:#fff;color:#556176;font-family:inherit;font-size:9.5px;
    cursor:pointer;text-align:right
}
.iran-province-list button:hover{background:#faf9ff}
.iran-province-list button.active{
    background:#f2eeff;color:#5a3cad;font-weight:900
}
.iran-province-list button b{
    min-width:28px;padding:3px 5px;border-radius:6px;background:#f1f3f7;
    color:#7f8998;font-size:8px;text-align:center
}
.iran-province-list button.active b{
    background:#e4dcff;color:#5f43aa
}
.iran-city-list>header>div:first-child{min-width:130px}
.iran-city-list .product-search-box{max-width:320px}
.iran-city-tags{
    padding:12px;display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;
    max-height:570px;overflow:auto
}
.iran-city-tags span{
    padding:7px 8px;border:1px solid #e7eaf0;border-radius:8px;
    background:#fbfcfd;color:#5f6a7c;font-size:8.8px;text-align:center
}
@media(max-width:1050px){
    .customer-geo-filterbar{grid-template-columns:1fr 1fr}
    .iran-city-tags{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
    .iran-location-grid{grid-template-columns:1fr}
    .iran-province-list{max-height:260px}
    .iran-city-tags{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* =========================================================
   SOGOL ORDER WORKFLOW COMBINED V1
   ========================================================= */
.order-import-topbar{display:flex;align-items:stretch;gap:10px;margin-bottom:10px}.order-date-shared{min-width:340px;padding:10px 12px;border:1px solid #e2e6ed;border-radius:12px;background:#fff}.order-date-shared label{display:flex;align-items:center;gap:9px}.order-date-shared label>span{min-width:125px;color:#596579;font-size:9.5px;font-weight:850}.order-date-shared input{width:145px;min-height:36px;padding:0 9px;border:1px solid #dce1e8;border-radius:8px;font-family:inherit}.order-date-shared small{display:block;margin-top:5px;color:#949dac;font-size:8.3px}.order-import-topbar .txt-file-picker{flex:1}.txt-import-controls{display:grid!important;grid-template-columns:minmax(230px,1fr) 220px 220px!important;gap:10px!important;align-items:end!important}.txt-region-filter{display:flex;flex-direction:column;gap:4px}.txt-region-filter>span{color:#8d97a6;font-size:8.5px;font-weight:800}.txt-region-filter select{min-height:36px;padding:0 9px;border:1px solid #dfe3e9;border-radius:8px;background:#fff;font-family:inherit}.txt-subline{display:block;margin-top:3px;color:#939cab;font-size:8px}.txt-subline.error{color:#c94c5c}.customer-region-badge{display:inline-flex;padding:4px 7px;border-radius:7px;background:#eef3ff;color:#4967aa;font-size:8.4px;font-weight:850}.customer-region-badge.county{background:#f2edff;color:#6c49b8}.order-date-cell{min-width:150px}.row-date-override{display:flex;align-items:center;gap:4px;margin-top:5px;color:#8994a5;font-size:8px}.order-date-cell>input{width:125px;min-height:31px;padding:0 7px;border:1px solid #dfe3e9;border-radius:7px;font-family:inherit}.link-button{border:0;background:none;color:#6748bd;font-family:inherit;font-size:8px;cursor:pointer}.order-final-footer{position:sticky;bottom:8px;z-index:3;box-shadow:0 7px 22px rgba(35,30,64,.09)}.icon-btn.red{color:#bf4355;background:#fff1f3;border-color:#f2d7dc}.order-preview-table{min-width:1450px}.order-edit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;border:1px solid #e2e6ed;border-radius:13px;background:#fff;margin-bottom:10px}.order-edit-summary label{display:flex;flex-direction:column;gap:5px}.order-edit-summary label>span{font-size:9px;color:#687487;font-weight:800}.order-edit-summary label>small{font-size:8px;color:#969fac}.order-edit-summary input,.order-edit-summary select{min-height:36px;padding:0 9px;border:1px solid #dfe3e9;border-radius:8px;background:#fff;font-family:inherit}.order-edit-lines,.order-audit-panel,.permission-table-panel{border:1px solid #e2e6ed;border-radius:13px;background:#fff;overflow:hidden;margin-bottom:10px}.order-edit-lines>header,.order-audit-panel>header,.permission-table-panel>header{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4;background:#fafbfc}.order-edit-lines h2,.order-audit-panel h2,.permission-table-panel h2{margin:0;font-size:11px;color:#39465a}.order-edit-lines p,.permission-table-panel p{margin:2px 0 0;font-size:8px;color:#969fac}.order-edit-lines table,.permission-table-panel table{width:100%;border-collapse:collapse}.order-edit-lines th,.permission-table-panel th{padding:8px;background:#f8f9fb;color:#788395;font-size:8.5px;text-align:right}.order-edit-lines td,.permission-table-panel td{padding:7px 8px;border-top:1px solid #eef0f3;font-size:8.8px}.order-edit-lines select,.order-edit-lines input{min-height:33px;padding:0 7px;border:1px solid #dfe3e8;border-radius:7px;font-family:inherit}.order-edit-lines select{min-width:300px}.order-edit-totals{padding:10px 12px;display:flex;align-items:center;justify-content:flex-end;gap:18px;border-top:1px solid #edf0f4;background:#fafbfc}.order-edit-totals span{display:block;color:#939cab;font-size:8px}.order-edit-totals strong{display:block;margin-top:2px;color:#3c485b;font-size:10px}.order-audit-list{padding:6px 12px}.order-audit-list article{padding:7px 3px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f2f5}.order-audit-list article:last-child{border-bottom:0}.order-audit-list strong{display:block;font-size:9px;color:#4d596c}.order-audit-list small,.order-audit-list time{font-size:8px;color:#959eac}.order-audit-empty{padding:20px;text-align:center;color:#959eac;font-size:9px}.permission-table-panel td:first-child strong{display:block;color:#455166}.permission-table-panel td:first-child small{display:block;margin-top:2px;color:#969fac;font-size:8px}.permission-table-panel input[type=checkbox]{width:16px;height:16px;accent-color:#6e4dd1}@media(max-width:1000px){.order-import-topbar{flex-wrap:wrap}.order-date-shared{min-width:100%}.txt-import-controls{grid-template-columns:1fr 1fr!important}.order-edit-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.txt-import-controls{grid-template-columns:1fr!important}.order-edit-summary{grid-template-columns:1fr}}

/* SOGOL_APP_WIDE_NUMBER_FORMAT_V1
   App-wide numeric presentation:
   weight=2 decimals, percent=1 decimal, other numeric fields=integer. */
input[type="number"],
input[inputmode="decimal"],
input[inputmode="numeric"]{
    font-variant-numeric:tabular-nums;
}

input[type="number"][step="0.1"]{
    min-width:105px;
}

input[type="number"][step="0.01"],
.app-number-weight{
    min-width:145px;
}

input[type="number"][step="1"],
.app-number-integer{
    min-width:175px;
}

.percent-box{
    min-width:145px;
}

.percent-box input{
    width:100px !important;
    min-width:100px !important;
    text-align:center;
}

.pricing-rate-input input{
    width:120px !important;
    min-width:110px !important;
}

.customer-initial-rate input{
    width:110px !important;
    min-width:100px !important;
}

.inline-discount-edit input{
    width:100px !important;
    min-width:96px !important;
}

.manual-field .app-number-integer{
    min-width:210px;
}

.manual-field .app-number-weight{
    min-width:165px;
}

.edit-lines-table th:nth-child(3),
.edit-lines-table td:nth-child(3){
    width:175px !important;
    min-width:175px;
}

.edit-lines-table th:nth-child(4),
.edit-lines-table td:nth-child(4){
    width:225px !important;
    min-width:225px;
}

.edit-lines-table td:nth-child(3) input{
    min-width:150px;
}

.edit-lines-table td:nth-child(4) input{
    min-width:195px;
}
/* SOGOL_PERCENT_INPUT_V53
   Unified compact percent editing across SogolSales. */
input[type="number"][step="0.1"]{
    width:64px;
    min-width:64px;
    height:30px;
    padding:0 4px;
    border:0;
    border-bottom:1px solid #d5deea;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    text-align:center;
    font-variant-numeric:tabular-nums;
    font-weight:950;
}

input[type="number"][step="0.1"]:focus{
    outline:0;
    border-bottom-color:#6f86aa;
    background:#f7f9fc;
    box-shadow:none;
}
