/* سامانه فروش آروان شیمی 2.4 — نمای تفکیک‌شده مدیر فروش */

.manager-simple-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:14px;color:#fff;background:linear-gradient(135deg,#10243d,#176b87);border-radius:16px}
.manager-simple-head span{color:#bfe0e7;font-size:11px}.manager-simple-head h2{margin:5px 0;font-size:24px}.manager-simple-head p{margin:0;color:#d7e8ec;font-size:11px;line-height:1.8}.manager-simple-head>div:last-child{display:flex;gap:7px;flex:0 0 auto}.manager-simple-head button{color:var(--navy);background:#fff}.manager-simple-head button.secondary{color:#fff;background:#ffffff19;border-color:#ffffff4a}
.manager-rep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.manager-rep-grid.is-detailed{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}
.manager-rep-card{display:block;width:100%;padding:15px;text-align:right;color:var(--ink);background:#fff;border:1px solid #dfe7ea;border-radius:15px;box-shadow:0 5px 18px #10243d09;transition:.15s ease}.manager-rep-card:hover{transform:translateY(-2px);border-color:#8ebfc7;box-shadow:0 9px 25px #10243d14}.manager-rep-card.has-risk{border-right:5px solid var(--red)}.manager-rep-card.has-overdue{border-right:5px solid var(--amber)}
.rep-card-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px}.rep-avatar{display:grid;place-items:center;width:44px;height:44px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--teal));border-radius:13px;font-size:18px;font-weight:900}.rep-card-head b,.rep-card-head small{display:block}.rep-card-head b{font-size:15px}.rep-card-head small{margin-top:3px;color:var(--muted);font-size:9px}.rep-card-head em{padding:5px 8px;color:#416475;background:#eaf1f4;border-radius:12px;font-size:9px;font-style:normal;white-space:nowrap}.has-risk .rep-card-head em{color:#963731;background:#fae1de}.has-overdue .rep-card-head em{color:#8f6111;background:#fff0d5}
.rep-primary{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:13px 0 9px}.rep-primary article{display:grid;place-items:center;gap:2px;padding:8px 4px;background:#f4f7f8;border-radius:9px}.rep-primary b{color:var(--navy);font-size:18px}.rep-primary small{color:var(--muted);font-size:9px}.rep-secondary{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.rep-secondary span{padding:4px 7px;color:#48616d;background:#edf3f5;border-radius:12px;font-size:9px}.rep-secondary .danger{color:#923832;background:#fae2df}.manager-rep-card>strong{display:block;padding-top:9px;color:var(--blue);border-top:1px solid #edf1f2;font-size:10px}

.manager-employee-switcher{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px;padding:6px;background:#e8eef1;border-radius:13px}.manager-employee-switcher button{display:block;padding:9px;color:#526574;background:transparent;border-radius:9px;text-align:center}.manager-employee-switcher button b,.manager-employee-switcher button small{display:block}.manager-employee-switcher button small{margin-top:3px;font-size:9px}.manager-employee-switcher button.active{color:var(--navy);background:#fff;box-shadow:0 3px 9px #10243d13}

.employee-overview,.employee-report-sections{display:grid;grid-template-columns:1fr 1fr;gap:11px}.employee-overview>section,.employee-report-sections>section{padding:12px;background:#f8fafb;border:1px solid #e4eaed;border-radius:12px}.employee-overview h3,.employee-report-sections h3{margin:0 0 10px;font-size:13px}.employee-report-sections{grid-template-columns:1fr}.employee-report-sections .employee-report-list{max-height:32vh}
.overview-results{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.overview-results article{display:grid;place-items:center;padding:13px 6px;background:#e8f3ed;border-radius:10px}.overview-results article.bad{background:#fae6e3}.overview-results b{color:#276d4d;font-size:23px}.overview-results .bad b{color:#963731}.overview-results small{margin-top:3px;color:var(--muted);font-size:9px}
.employee-alert-list{display:grid;gap:7px;max-height:42vh;overflow:auto}.employee-alert-list button{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;width:100%;padding:10px;text-align:right;color:var(--ink);background:#fff7f6;border:1px solid #efcbc8;border-radius:10px}.employee-alert-list button>span{display:grid;place-items:center;width:28px;height:28px;color:#fff;background:var(--red);border-radius:50%;font-weight:900}.employee-alert-list b,.employee-alert-list p,.employee-alert-list small{display:block;margin:0}.employee-alert-list p{margin:4px 0;color:#69504e;font-size:10px;line-height:1.6}.employee-alert-list small{color:var(--muted);font-size:9px}
.employee-pipeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:55vh;overflow:auto}.employee-pipeline article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#f7fafb;border:1px solid #e3eaed;border-radius:10px}.employee-pipeline span{font-size:10px}.employee-pipeline b{display:grid;place-items:center;min-width:34px;height:34px;color:var(--blue);background:#e6f0f3;border-radius:50%;font-size:15px}.gold-list button{border-right:4px solid #d2a53c;background:#fffcf4}

@media(max-width:1050px){.manager-rep-grid,.manager-rep-grid.is-detailed{grid-template-columns:1fr}.manager-employee-switcher{grid-template-columns:1fr 1fr}.employee-pipeline{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.manager-simple-head{align-items:flex-start;flex-direction:column}.manager-simple-head>div:last-child{width:100%}.manager-simple-head button{flex:1}.employee-overview{grid-template-columns:1fr}.employee-pipeline{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.manager-employee-switcher{grid-template-columns:1fr}.rep-card-head{grid-template-columns:40px minmax(0,1fr)}.rep-card-head em{grid-column:1/-1}.rep-primary{grid-template-columns:1fr 1fr}.employee-pipeline{grid-template-columns:1fr}}
