/* Widok „Wyniki” w przykładowym panelu salonu Mirt. Tokeny w demo-crm.css. */
.wy-top{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:48px;align-items:start}
.wy-pipe{margin-top:56px}
.wy-bottom{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:48px;align-items:start;margin-top:56px}

/* wykres */
.chart-box{padding-top:16px;min-width:0}
.chart{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.chart text{font:400 13px var(--font);fill:var(--ink-2);font-variant-numeric:tabular-nums}
.chart .yl{text-anchor:end}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .base{stroke:var(--ink-3);stroke-width:1}
.chart .area{fill:var(--myrtle-t);opacity:.7}
.chart .real{fill:none;stroke:var(--myrtle);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart .pace{stroke:var(--ink-3);stroke-width:1.5;stroke-dasharray:6 5}
.chart .fc{stroke:var(--myrtle);stroke-width:2;stroke-dasharray:1.5 5;stroke-linecap:round}
.chart .today{stroke:var(--line-2);stroke-width:1}
.chart .now{fill:var(--myrtle);stroke:var(--surface);stroke-width:2}
.chart .lab{font-weight:500;fill:var(--ink);paint-order:stroke;stroke:var(--page);stroke-width:5px;stroke-linejoin:round}
.chart .lab--g{fill:var(--ink-2)}
.chart .lab--n{fill:var(--myrtle);font-weight:600}
.chart .hover{opacity:0;transition:opacity .15s}
.chart .hover.on{opacity:1}
.chart .hv{stroke:var(--ink);stroke-width:1}
.chart .hvd{fill:var(--surface);stroke:var(--myrtle);stroke-width:2}
.chart .hit{fill:transparent;cursor:crosshair}
.chart-read{min-height:24px;margin-top:8px;font-size:14px;color:var(--ink-2)}
.chart-read b{color:var(--ink);font-weight:500}
.chart-key{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:8px;font-size:14px;color:var(--ink-2)}
.chart-key li,.goal__dl dt{display:flex;align-items:center;gap:8px}
.k{display:inline-block;flex:none;width:16px;height:0;border-top:2.5px solid var(--myrtle)}
.k--p{border-top:1.5px dashed var(--ink-3)}
.k--fl{border-top:2.5px dotted var(--myrtle)}
.k--f{width:12px;height:12px;border:0;border-radius:3px;background:var(--sage)}
.k--e{width:12px;height:12px;border:0;border-radius:3px;background:var(--myrtle)}
.chart-key .k--e{width:16px;height:0;border-radius:0;background:none;border-top:2.5px solid var(--myrtle)}
.k--g{width:2px;height:14px;border:0;background:var(--ink);margin:0 5px}

/* cel */
.goal{padding-top:24px}
.goal__pct{display:flex;align-items:baseline;gap:12px;color:var(--ink-2)}
.goal__pct b{font-size:48px;font-weight:500;letter-spacing:-.03em;line-height:1;color:var(--ink)}
.gbar{position:relative;height:16px;margin:24px 0 8px;border-radius:3px;background:var(--tint)}
.gbar i{position:absolute;top:0;bottom:0;left:0;display:block;border-radius:3px;transform-origin:left;animation:growx .9s var(--ease) both}
.gbar__f{background:var(--sage)}
.gbar__e{background:var(--myrtle);animation-delay:.1s}
.gbar__g{width:2px;top:-6px!important;bottom:-6px!important;margin-left:-1px;border-radius:0!important;background:var(--ink);animation:none!important}
.goal__dl{margin:24px 0 0;border-top:1px solid var(--line)}
.goal__dl div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.goal__dl dt{color:var(--ink-2)}
.goal__dl dd{margin:0;font-weight:500;white-space:nowrap}
.goal__need{margin-top:16px;font-size:14px;color:var(--ink-2);max-width:42ch}
.goal__need b{color:var(--ink);font-weight:500}

/* większe zlecenia */
.pipe-sum{margin:16px 0 24px;color:var(--ink-2);max-width:72ch}
.pipe-sum b{color:var(--ink);font-weight:500;white-space:nowrap}
.pipe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pcol{min-width:0;padding:12px;border-radius:var(--r);background:var(--tint)}
.pcol h3{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}
.pcol__n{min-width:24px;height:24px;padding:0 6px;border-radius:6px;background:var(--surface);color:var(--ink-2);font-size:13px;font-weight:500;line-height:24px;text-align:center}
.pcol__s{margin:2px 0 12px;font-size:14px;color:var(--ink-2)}
.pcol__e{padding:16px 0;color:var(--ink-2);font-size:14px;text-align:center;border:1px dashed var(--line-2);border-radius:var(--r-s)}
.deal{padding:12px;margin-bottom:8px;border-radius:var(--r-s);background:var(--surface);box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(22,32,28,.05);animation:dealin .35s var(--ease) both;outline-offset:2px}
.deal:last-child{margin-bottom:0}
@keyframes dealin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.deal h4{margin:0;font-size:15px;font-weight:500;line-height:1.3}
.deal p{margin-top:4px;font-size:14px;line-height:1.4;color:var(--ink-2)}
.deal footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.deal strong{font-weight:600;white-space:nowrap}
.deal__go{min-height:36px;padding:0 12px;font-size:14px}
.deal__go::after{content:'';width:6px;height:6px;margin-left:2px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
.deal__ok{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--myrtle);font-weight:500}
.deal__ok svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pcol--won{background:var(--myrtle-t)}

/* straty */
.loss li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px 0;border-bottom:1px solid var(--line)}
.loss b{font-weight:500}
.loss strong{font-weight:500;text-align:right;white-space:nowrap}
.lbar{grid-column:1/-1;display:block;height:6px;border-radius:2px;background:var(--tint);overflow:hidden}
.lbar i{display:block;height:100%;background:#C98A96;transform-origin:left;animation:growx .7s var(--ease) both}
.loss p{grid-column:1/-1;font-size:14px;color:var(--ink-2)}
.loss-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:16px 0 0;border-top:1px solid var(--ink);margin-top:-1px}
.loss-total span{color:var(--ink-2)}
.loss-total b{font-size:24px;font-weight:500;letter-spacing:-.02em;color:var(--cherry);white-space:nowrap}

/* zespół */
.team-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.team{width:100%;min-width:320px;border-collapse:collapse}
.team th,.team td{padding:12px 12px 12px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-weight:400}
.team thead th{padding-top:12px;font-size:14px;color:var(--ink-2)}
.team .num{text-align:right}
.team tbody tr:last-child>*{border-bottom:0}
.team td.num:first-of-type{font-weight:500}
.who{display:flex;align-items:center;gap:12px}
.who>i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--tint);box-shadow:inset 0 0 0 1px var(--line);color:var(--myrtle);font-style:normal;font-weight:600;font-size:14px}
.who small{display:block;color:var(--ink-2);font-size:13px}
.occ{display:flex;align-items:center;gap:8px}
.occ>span{width:56px;height:6px;border-radius:2px;background:var(--tint);overflow:hidden;flex:none}
.occ>span i{display:block;height:100%;background:var(--myrtle)}

@media (max-width:1100px){
  .wy-top,.wy-bottom{grid-template-columns:1fr;gap:40px}
  .pipe{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){.wy-pipe,.wy-bottom{margin-top:40px}.deal__go{min-height:44px}}
@media (max-width:600px){
  .pipe{grid-template-columns:1fr}
  .team .hide-s{display:none}
  .team{min-width:0}
  .occ>span{width:36px}
  .goal__pct b{font-size:40px}
}
