/* Personel page: small ranked tables and the person card. */
.people-message{font-size:13px;color:var(--ui-muted);margin:0 0 12px}
.people-message:empty{display:none}
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;align-items:start}
.people-card{background:var(--ui-card);border:1px solid var(--ui-line);border-radius:12px;padding:14px 14px 8px;min-width:0}
.people-card-wide{grid-column:1/-1}
.people-card>header{margin:0 0 8px}
.people-card h3{font-size:14px;font-weight:650;margin:0}
.people-card h3 span{font-size:11px;font-weight:500;color:var(--ui-muted);margin-left:4px}
.people-card header p{font-size:11px;color:var(--ui-muted);margin:3px 0 0;line-height:1.4}
.people-card ol{list-style:none;margin:0;padding:0;max-height:290px;overflow-y:auto}
.people-card li+li{border-top:1px solid var(--ui-line)}
.people-card li button{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;padding:7px 2px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.people-card li button i{position:absolute;left:30px;bottom:2px;height:2px;border-radius:2px;background:var(--ui-accent);opacity:.35;max-width:calc(100% - 30px)}
.people-card li button:hover .people-name{color:var(--ui-accent)}
.people-rank{color:var(--ui-muted);font-size:11px;font-variant-numeric:tabular-nums}
.people-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.people-value{font-weight:650;font-variant-numeric:tabular-nums}
.people-card li:first-child .people-rank{color:var(--ui-accent);font-weight:700}
.people-troy{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.people-troy :is(th,td){padding:7px 8px;border-bottom:1px solid var(--ui-line);text-align:right;background:transparent!important}
.people-troy thead th{font-size:10px;color:var(--ui-muted);font-weight:500}
.people-troy :is(th,td):first-child{text-align:left}
.people-troy tbody tr:last-child :is(th,td){border-bottom:0}
.people-troy button{border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;text-align:left}
.people-troy button:hover{color:var(--ui-accent)}
.people-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px}
.people-metric span{display:block;font-size:11px;color:var(--ui-muted)}
.people-metric strong{display:block;font-size:17px;font-weight:650;margin:3px 0 2px;font-variant-numeric:tabular-nums}
.people-metric small{font-size:10px;color:var(--ui-muted)}
.people-troy-line{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px;font-size:12px;color:var(--ui-muted)}
.people-troy-line strong{color:var(--ui-text);margin-left:4px}
.people-chart-switch{display:flex;flex-wrap:wrap;margin:0 0 10px}
.people-chart-switch button{font-size:11px!important;padding:6px 9px!important}
#people-history-chart svg{display:block;width:100%;height:auto}
.people-bar rect{fill:var(--ui-accent);opacity:.55}
.people-bar.is-current rect{opacity:1}
.people-bar:hover rect{opacity:.85}
.people-chart-value{font-size:10px;font-weight:650;fill:var(--ui-text)}
.people-chart-label{font-size:10px;fill:var(--ui-muted)}
.people-bar.is-current .people-chart-label{fill:var(--ui-text);font-weight:700}
.people-chart-missing{font-size:11px;fill:var(--ui-muted)}
.people-chart-base{stroke:var(--ui-line)}
.people-history-scroll{overflow-x:auto;margin-top:12px}
.people-history{min-width:620px}
.people-empty{font-size:12px;color:var(--ui-muted)}
@media(max-width:600px){.people-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.people-grid{grid-template-columns:1fr}}
.people-card li.is-low{opacity:.55}
.people-history td[colspan]{text-align:left!important;color:var(--ui-muted)}
.people-actions{display:flex;align-items:center;gap:12px}
.people-actions small{font-size:11px;color:var(--ui-muted);font-weight:400}
.people-card-actions{float:right;margin:-4px 0 0 12px}
.people-chart-caption{font-size:12px;font-weight:600;margin:0 0 8px}
/* Wide person card: everything visible without scrolling on a laptop screen. */
.report-drawer.report-drawer-wide{width:min(1180px,100vw)}
.report-drawer-wide .report-drawer-body{padding:18px 24px}
.report-drawer-wide .report-drawer-body h2{font-size:20px;margin-bottom:2px}
.report-drawer-wide .report-drawer-meta{margin-bottom:10px}
.report-drawer-wide .report-drawer-body section{padding:12px 0}
.report-drawer-wide .report-drawer-body h3{margin-bottom:8px}
.people-metrics-wide{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px 12px}
.people-metrics-wide .people-metric strong{font-size:16px}
.people-charts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px}
.people-chart{margin:0;min-width:0}
.people-chart figcaption{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:650;margin-bottom:2px}
.people-chart svg{display:block;width:100%;height:auto}
.people-chart .people-chart-value{font-size:9px}
.people-chart .people-chart-label{font-size:9px}
.people-chart-legend{display:inline-flex;gap:10px;font-size:10px;font-weight:500;color:var(--ui-muted);align-items:center}
.people-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.people-bar rect.people-mark-sales,.people-swatch-sales{fill:#7a63d8;background:#7a63d8}
.people-bar rect.people-mark-second,.people-swatch-second{fill:#c4701f;background:#c4701f}
[data-theme=dark] :is(.people-bar rect.people-mark-sales,.people-swatch-sales){fill:#9480ea;background:#9480ea}
[data-theme=dark] :is(.people-bar rect.people-mark-second,.people-swatch-second){fill:#c97d35;background:#c97d35}
.people-bar rect{opacity:.55}
.people-bar.is-current rect{opacity:1}
.people-bonus{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(auto-fit,minmax(110px,1fr));gap:12px;align-items:end}
.people-bonus>div span{display:block;font-size:11px;color:var(--ui-muted)}
.people-bonus>div strong{display:block;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;margin-top:3px}
.people-bonus-net{padding:12px 14px;border-radius:10px;background:var(--ui-accent-soft)}
.people-bonus-net strong{font-size:22px!important}
.people-bonus-net small{display:block;font-size:10px;color:var(--ui-muted);margin-top:4px}
@media(max-width:900px){.people-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.people-bonus{grid-template-columns:repeat(2,minmax(0,1fr))}.people-bonus-net{grid-column:1/-1}}
@media(max-width:600px){.people-charts{grid-template-columns:1fr}}
.report-drawer-wide .people-metrics-wide{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px 12px}
.report-drawer-wide .people-troy-line{margin-top:8px}
.report-drawer-wide .people-metric small{font-size:9px}
@media(max-width:1000px){.report-drawer-wide .people-metrics-wide{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Store average on the person charts: dashed ink line; bars below it are lighter. */
.people-avg-line{fill:none;stroke:var(--ui-text);stroke-width:1.2;stroke-dasharray:3 2.5;opacity:.75;pointer-events:none}
.people-avg-dot{fill:var(--ui-text);opacity:.75;pointer-events:none}
.people-bar rect.people-hit{fill:transparent;opacity:1}
.people-bar:hover rect.people-hit{fill:var(--ui-hover)}
.people-bar rect.people-mark-sales.is-below{opacity:.35}
.people-bar.is-current rect.people-mark-sales.is-below{opacity:.6}
.people-avg-key{width:14px!important;height:0!important;border-top:1.5px dashed var(--ui-text);border-radius:0!important;background:none!important;vertical-align:3px!important;opacity:.75}
.people-chart-legend b{font-size:9px;margin-left:3px}
.people-chart-legend b.is-below{color:#b4433d}
.people-chart-legend b.is-above{color:#2f7d4f}
/* Above / below the store average in the small tables. */
.people-card-avg{float:right;font-size:11px;font-weight:500;color:var(--ui-muted);margin-top:2px}
.people-card li.is-above :is(.people-name,.people-value),.people-troy td.is-above{color:#2f7d4f}
.people-card li.is-below :is(.people-name,.people-value),.people-troy td.is-below{color:#b4433d}
[data-theme=dark] .people-card li.is-above :is(.people-name,.people-value),[data-theme=dark] .people-troy td.is-above{color:#7fcf9c}
[data-theme=dark] .people-card li.is-below :is(.people-name,.people-value),[data-theme=dark] .people-troy td.is-below{color:#f0928a}
/* "Dikkat" tips above the tables. */
.people-tips ul{list-style:none;margin:0;padding:0}
.people-tips li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;padding:8px 0;font-size:12px}
.people-tips li+li{border-top:1px solid var(--ui-line)}
.people-tips li>button{border:0;background:transparent;padding:0;font:inherit;font-weight:650;color:var(--ui-text);cursor:pointer;min-width:190px;text-align:left}
.people-tips li>button:hover{color:var(--ui-accent)}
.people-tips li>span b{font-weight:600;color:#b4433d}
[data-theme=dark] .people-tips li>span b{color:#f0928a}
.people-tips li>span small{color:var(--ui-muted);font-size:11px}
.people-card.people-tips li>button{display:block;width:auto;padding:0;white-space:nowrap}
.people-bonus>div small{display:block;font-size:10px;color:var(--ui-muted);margin-top:2px}
