:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:#21323A;background:#F7F9F9;font-synthesis:none;--accent:#008F61;--muted:#425B66;--border:#E2E8EA;--cash:#008F61;--card:#3b8e86;--bank:#c18b2f;--direct:#8e78b6}*{box-sizing:border-box}body{margin:0}main{max-width:1600px;padding:30px 40px;margin:auto}header,.heading,.section-heading,.person,.dvs-title{display:flex;align-items:center;justify-content:space-between;gap:16px}header{padding-bottom:26px;border-bottom:1px solid var(--border)}.brand{font-weight:850;font-size:28px;color:var(--accent);display:flex;align-items:center;gap:20px}.brand span{font-size:12px;letter-spacing:.13em;color:var(--muted);font-weight:650}.period{display:flex;align-items:center;gap:14px;font-size:14px;color:var(--muted)}.pilot{border:1px solid #E2E8EA;color:#425B66;padding:6px 10px;border-radius:6px;font-size:12px}.heading{padding:26px 0}.eyebrow{font-size:12px;letter-spacing:.1em;font-weight:650;color:var(--muted);margin:0 0 8px}h1{font-size:36px;line-height:1.15;letter-spacing:-.035em;margin:0}.heading>p{font-size:22px;font-weight:650;margin:0}.heading>p span{color:var(--muted);font-weight:400}.totals{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 8px;background:#EDF8F4;color:#21323A;border-radius:14px}.total{padding:0 25px;border-right:1px solid #E2E8EA}.total:last-child{border:0}.total>span{display:block;font-size:14px;color:#425B66;margin-bottom:8px}.total strong{font-size:24px;line-height:1.2;letter-spacing:0;font-weight:500}.total small{display:block;font-size:12px;margin-top:7px;color:#425B66}.section-heading{margin:27px 0 15px}.section-heading h2{font-size:16px;font-weight:650;margin:0}.section-heading h2 span{font-size:13px;font-weight:400;color:var(--muted);margin-left:12px}.section-heading>span{font-size:13px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 4px 14px #193b2805}.person{padding:20px 22px 16px;justify-content:flex-start}.avatar{width:40px;height:40px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:#EDF8F4;color:var(--accent);font-weight:650;font-size:18px}.person h3{font-size:21px;margin:0;letter-spacing:-.02em}.shifts{margin-left:auto;display:flex;align-items:baseline;gap:5px;background:#F7F9F9;padding:7px 10px;border-radius:7px;white-space:nowrap}.shifts strong{font-size:16px;font-weight:500}.shifts span{font-size:12px;color:var(--muted)}.sales{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:12px 22px 20px}.label{display:block;font-size:14px;color:var(--muted)}.sales strong{display:block;line-height:1.3;letter-spacing:0;font-weight:500;margin-top:8px}.osago{font-size:26px}.mk strong{color:#21323A;font-size:24px}.mk strong>span{font-size:16px;margin-left:2px}.track{height:4px;border-radius:2px;background:#EDF8F4;margin-top:10px;overflow:hidden}.track span{display:block;height:100%;background:var(--accent)}.mk small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.dvs{margin:0 22px;padding:16px 0;border-top:1px solid #E2E8EA}.dvs-title{margin-bottom:12px}h4{font-size:14px;margin:0;font-weight:650}.dvs-title h4 span{color:var(--muted);font-weight:400;margin-left:5px}.count{font-size:16px;font-weight:500}.count span{font-size:12px;color:var(--muted);font-weight:400}.dvs-values{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dvs-values strong{display:block;font-size:17px;font-weight:500;letter-spacing:0;margin-top:6px;white-space:nowrap}.payments{padding:16px 22px 20px;background:#F7F9F9;border-top:1px solid #E2E8EA}.payments h4{display:flex;justify-content:space-between}.payments h4>span{color:var(--muted);font-weight:400}.stack{display:flex;height:8px;gap:2px;margin:14px 0 12px;border-radius:5px;overflow:hidden}.stack span{height:100%}.stack span[style="width:0%"]{display:none}.cash{background:var(--cash)}.card .card{background:var(--card)}.stack .card,.legend .card{background:var(--card);border:0;border-radius:0;box-shadow:none}.bank{background:var(--bank)}.direct{background:var(--direct)}.legend{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.legend .label{font-size:12px;display:flex;align-items:center;gap:5px;white-space:nowrap}.legend i{width:6px;height:6px;border-radius:50%;display:inline-block}.legend strong{display:block;margin-top:7px;font-size:16px;letter-spacing:0;font-weight:500}.legend small{font-size:12px;font-weight:400;margin-left:2px}strong{font-variant-numeric:tabular-nums}details{margin-top:24px;background:white;border:1px solid var(--border);border-radius:12px;padding:0 22px}summary{cursor:pointer;min-height:58px;padding:19px 0;font-size:14px;font-weight:650;line-height:1.5}summary:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.notes{display:grid;grid-template-columns:1fr 1fr;gap:38px;border-top:1px solid var(--border);padding:20px 0 8px;font-size:14px;line-height:1.65;color:var(--muted)}.notes h3{font-size:16px;color:#21323A;margin:0}.notes p{margin:10px 0}.sources{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px;padding:16px 0 22px}.sources span{color:var(--muted)}a{color:var(--accent);text-underline-offset:3px}footer{display:flex;justify-content:space-between;gap:20px;margin-top:26px;font-size:12px;color:var(--muted)}@media(max-width:999px){main{padding:24px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.total{padding:0 18px}}@media(max-width:650px){main{padding:20px 14px}header{align-items:flex-start}.brand{gap:10px}.brand span{max-width:78px;font-size:11px}.period{flex-direction:column;align-items:flex-end;gap:6px;font-size:12px}.heading{padding:23px 0}.heading>p{font-size:16px}h1{font-size:29px}.totals{grid-template-columns:1fr 1fr;gap:22px 0;padding:20px 4px}.total:nth-child(2){border:0}.total strong{font-size:24px}.total>span{font-size:13px}.cards{grid-template-columns:1fr}.section-heading{align-items:flex-start}.section-heading h2 span{display:block;margin:6px 0 0}.section-heading>span{max-width:105px;text-align:right;font-size:12px}.notes{grid-template-columns:1fr;gap:18px}.dvs-values strong{font-size:17px}footer{flex-direction:column;gap:8px}}@media(min-width:651px) and (max-width:780px){.person,.sales,.payments{padding-left:16px;padding-right:16px}.dvs{margin:0 16px}.dvs-values strong{font-size:17px}.person h3{font-size:19px}.avatar{width:34px;height:34px}.person{gap:9px}.shifts{padding:6px}.legend strong{font-size:16px}}@media(prefers-reduced-motion:no-preference){a{transition:color .15s}summary{transition:color .15s}summary:hover{color:var(--accent)}}

@media(min-width:1000px){main{padding-left:24px;padding-right:24px}.cards{gap:16px}.person,.sales,.payments{padding-left:16px;padding-right:16px}.dvs{margin-left:16px;margin-right:16px}.person{gap:8px}.person h3{font-size:19px}.avatar{width:32px;height:36px}.shifts{padding:6px;gap:4px}.sales{gap:14px}.dvs-values{gap:10px}.dvs-values strong{font-size:17px}.legend{gap:4px}}
@media(min-width:1000px) and (max-width:1200px){.person h3{font-size:17px}.avatar{display:none}.label{font-size:12px}.dvs-values strong{font-size:17px}.legend strong{font-size:16px}.legend .label{font-size:12px;gap:3px}.osago{font-size:26px}.mk strong{font-size:24px}}

/* Спокойная типографика: графитовые цифры, фирменный зелёный в акцентах. */
.total strong{color:#21323A}
.salary{margin:0 16px 8px;padding:12px 0 16px;border-bottom:1px solid var(--border)}.salary>div,.renewal>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.salary strong,.renewal strong{font-size:18px;font-weight:500;white-space:nowrap}.salary small,.renewal small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}.salary .label,.renewal .label{font-size:12px}.renewal{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.freshness{font-size:13px;color:var(--muted);margin:0 0 18px}.period-picker{font-size:12px;color:var(--muted);display:grid;gap:5px}select{font:inherit;font-size:14px;color:#21323A;background:white;border:1px solid var(--border);border-radius:8px;padding:10px 32px 10px 12px;min-height:42px}select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.load-error{font-size:13px;color:#8a541a;background:#fff5e7;padding:12px;border-radius:8px}.sales strong.mk{font-size:24px}@media(max-width:650px){.heading{gap:12px;align-items:flex-start}.period-picker select{max-width:150px;font-size:12px;padding-right:18px}h1{font-size:26px}.salary{margin-left:22px;margin-right:22px}}@media(min-width:1000px) and (max-width:1200px){.salary>div{display:block}.salary strong{display:block;margin-top:5px}.renewal>div{gap:5px}.renewal .label{max-width:110px}}

/* Фирменная итоговая плашка и спокойные средние значения. */
.heading{padding-top:0}.totals{background:#008F61;color:#fff}.totals .total strong,.totals .total>span,.totals .total small{color:#fff}.totals .total{border-color:#ffffff40}.date-range{color:var(--muted);font-size:14px;margin:0 0 7px}.per-shift{margin:0 16px;padding:0 0 18px}.per-shift h4{font-size:12px;color:var(--muted);font-weight:500;margin-bottom:10px}.shift-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.shift-grid .label{font-size:12px}.shift-grid strong{display:block;margin-top:5px;font-size:15px;font-weight:500}@media(max-width:650px){.per-shift{margin:0 22px}}

.payment-pending{font-size:12px;color:var(--muted);margin:14px 0;line-height:1.5}

.payment-cutoff{font-size:12px;color:var(--muted);margin:7px 0 0}

/* Пять клиентских каналов — компактные строки без тесных подписей. */
:root{--acquiring:#638078}.acquiring{background:var(--acquiring)}.legend{grid-template-columns:minmax(0,1fr);gap:8px}.legend>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.legend strong{margin-top:0;font-size:14px}.legend .label{font-size:12px}

/* Пять категорий в одном горизонтальном ряду. */
.legend{grid-template-columns:1fr .9fr 1.8fr .7fr 1.3fr;gap:4px}.legend>div{display:block;min-width:0}.legend .label{font-size:12px;gap:3px}.legend i{flex-shrink:0;width:5px;height:5px}.legend strong{margin-top:7px;font-size:15px}.legend small{margin-left:1px}@media(min-width:1000px) and (max-width:1200px){.legend{gap:2px}.legend .label{font-size:11px;gap:2px}.legend strong{font-size:14px}.legend i{width:4px;height:4px}}

/* Ширина по полному названию; процент центрируется именно под текстом. */
.legend{display:flex;justify-content:space-between;align-items:start;gap:4px}.legend>div{display:grid;grid-template-columns:5px max-content;column-gap:3px;row-gap:7px;flex:0 0 auto;min-width:max-content}.legend .label{display:contents}.legend i{grid-column:1;grid-row:1;align-self:center}.legend .channel-name{grid-column:2;grid-row:1;white-space:nowrap;font-size:12px;color:var(--muted)}.legend strong{grid-column:2;grid-row:2;margin:0;text-align:center;justify-self:center;white-space:nowrap}.legend small{margin-left:1px}@media(min-width:1000px) and (max-width:1200px){.payments{padding-left:10px;padding-right:10px}.legend{gap:3px}.legend>div{grid-template-columns:4px max-content;column-gap:2px}.legend .channel-name{font-size:11px}}

/* Отдельный смысловой блок средних за смену. */
.per-shift{border-top:1px solid var(--border);padding-top:18px;margin-top:4px;padding-bottom:20px}
