.report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.report-filters label{display:grid;gap:6px;font-size:12px;min-width:130px;flex:1}
.report-period{display:flex;align-items:end;gap:8px;flex:1;min-width:240px}
.report-filters select,.report-filters input,.report-link input{font:inherit;color:var(--text);background:var(--bg);
  border:1px solid var(--line);border-radius:8px;padding:10px;min-height:44px;width:100%;min-width:0}
.report-content{display:grid;gap:20px}
.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}
.report-kpi{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:16px;display:grid;gap:8px}
.report-kpi span{font-size:12px;color:var(--text2)}.report-kpi strong{font-size:22px;font-weight:600}
.report-section{border:1px solid var(--line);border-radius:14px;background:var(--bg);padding:16px;min-width:0}
.report-section h2{margin:0 0 16px;font-size:17px}
.report-table{overflow:auto}.report-table table{width:100%;border-collapse:separate;border-spacing:0 8px;font-size:13px}
.report-table th,.report-table td{text-align:right;padding:10px 12px;white-space:nowrap}
.report-table tbody td{border-block:1px solid var(--line);background:var(--bg)}
.report-table tbody td:first-child{border-left:1px solid var(--line);border-radius:9px 0 0 9px}
.report-table tbody td:last-child{border-right:1px solid var(--line);border-radius:0 9px 9px 0}
.report-table tbody tr:hover td{border-block-color:var(--text2)}
.report-table tbody tr:hover td:first-child{border-left-color:var(--text2)}
.report-table tbody tr:hover td:last-child{border-right-color:var(--text2)}
.report-sort{font:inherit;color:inherit;border:0;border-radius:0;background:none;box-shadow:none;padding:4px 0;cursor:pointer;white-space:nowrap;text-align:inherit}
.report-sort:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.report-sort:focus-visible{outline:2px solid var(--text);outline-offset:4px}
.report-table th[aria-sort=ascending] .report-sort::after{content:' ↑'}
.report-table th[aria-sort=descending] .report-sort::after{content:' ↓'}
.report-table th:not([aria-sort=none]) .report-sort{color:var(--text)}
.report-table :is(th,td):first-child{text-align:left;white-space:normal;min-width:180px}
.report-table th{font-size:12px;color:var(--text2);font-weight:500}
.report-name{display:block;color:var(--text);border:0;background:none;font:inherit;padding:0;cursor:pointer;text-align:left}
.report-sub{font-size:11px;color:var(--text2);margin-top:4px}
.report-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}
.report-channel{text-align:left;font:inherit;border:1px solid var(--line);border-radius:10px;background:var(--bg);
  color:var(--text);padding:14px;cursor:pointer;display:grid;gap:10px}
.report-channel strong{font-size:22px}.report-channel small{color:var(--text2);font-size:12px}
.report-chart{--plot-height:170px;position:relative;height:190px;min-width:0;margin:10px 0 0;padding-left:48px}
.report-chart__plot{position:relative;min-width:0}
.report-chart__scale{position:absolute;left:0;top:0;width:42px;height:var(--plot-height);color:var(--text2);font-size:11px;font-variant-numeric:tabular-nums}
.report-chart__scale span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.report-chart svg{display:block;width:100%;height:var(--plot-height);overflow:visible;color:var(--text)}
.report-chart__grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.report-chart__line{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.report-chart__area{fill:var(--hover)}
.report-chart__axis{stroke:var(--line);stroke-width:1}
.report-chart__cursor{stroke:var(--text2);stroke-width:1;stroke-dasharray:3 4}
.report-chart__tip{position:absolute;top:0;left:50%;transform:translateX(-50%);padding:6px 10px;
  border-radius:8px;background:var(--text);color:var(--bg);font-size:12px;white-space:nowrap;pointer-events:none}
.report-chart__ends{display:flex;justify-content:space-between;color:var(--text2);font-size:11px}
.report-foot{color:var(--text2);font-size:12px;display:flex;gap:12px;flex-wrap:wrap}
.report-error{color:var(--danger);font-size:13px;min-height:18px}
.report-modal{padding:0;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:16px;
  width:860px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.report-modal::backdrop{background:#14141488;backdrop-filter:blur(4px)}
.report-modal header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;
  position:sticky;top:0;background:var(--bg);border-bottom:1px solid var(--line);z-index:1}
.report-modal h2{font-size:18px;margin:0;overflow-wrap:anywhere}.report-modal__body{padding:16px;display:grid;gap:16px}
.report-link{display:grid;gap:12px}.report-link label{display:grid;gap:6px;font-size:13px}
.report-link output{overflow-wrap:anywhere;font-family:var(--mono);padding:12px;border:1px solid var(--line);border-radius:8px}
[data-report-body][aria-busy=true]{opacity:.55}
@media(max-width:600px){
  .report-section{padding:14px}.report-kpis{grid-template-columns:1fr 1fr}
  .report-kpi:last-child:nth-child(odd){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}
  .report-filters{gap:8px}.report-filters label{min-width:150px}
  .report-period{flex-basis:100%}
  .report-filters input,.report-filters select,.report-link input{font-size:16px}
}
@media(prefers-reduced-motion:no-preference){
  .report-chart__line{stroke-dasharray:1;stroke-dashoffset:0;animation:report-draw .24s ease-out}
  @keyframes report-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
}
.report-tabs{display:flex;max-width:100%;overflow:auto;margin-bottom:16px}
.report-tabs button{white-space:nowrap;flex:1 0 auto}
@media(max-width:600px){.report-tabs button{font-size:12px;padding:12px 8px}}
.report-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.report-stage>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.report-stage small{font-size:11px;color:var(--text2)}
.report-stage__track{height:6px;border-radius:3px;background:var(--hover);overflow:hidden;margin:8px 0 4px}
.report-stage__track span{display:block;height:100%;background:var(--text);border-radius:3px}

/* Personal reports: neutral palette, compact cards, real values only. */
.personal-dashboard{--chart-0:var(--text);--chart-1:#777b80;--chart-2:#a2a5a8;--chart-3:#bfc1c2;--chart-4:#5c6267}
.personal-title,.personal-trend-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.personal-title .btn{width:32px;padding:0;margin-left:auto}
.personal-dashboard .report-kpis{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}
.personal-dashboard .report-kpi{padding:10px;min-width:0;gap:5px;border-radius:10px}
.personal-dashboard .report-kpi strong{font-size:clamp(19px,1.5vw,25px);font-variant-numeric:tabular-nums;white-space:nowrap}
.personal-dashboard .report-kpi span{min-height:28px}
.personal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.personal-panel{min-width:0;overflow:hidden}
.personal-dashboard .personal-panel h2{font-size:13px;font-weight:600;margin:0 0 12px}
.personal-trend{grid-column:span 2}
.personal-trend-tabs{display:flex;gap:4px;flex-wrap:wrap}
.personal-trend-tabs .btn{height:28px;min-height:28px;padding:3px 8px;font-size:11px}
.personal-trend-tabs .btn[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
.personal-trend-total{display:flex;align-items:baseline;gap:10px;margin-top:12px;font-size:12px}
.personal-trend-total strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}
.personal-trend .report-chart{--plot-height:140px;height:160px;margin-top:8px}
.personal-trend .report-chart svg{height:140px;overflow:hidden}
.personal-trend-bar{fill:var(--text2);opacity:.18;transform-box:fill-box;transform-origin:bottom}
.personal-no-data{min-height:180px;display:grid;place-items:center;font-size:12px}
.personal-donut-layout{display:flex;align-items:center;gap:12px;min-height:170px}
.personal-donut{width:132px;min-width:110px;max-width:44%;position:relative;flex-shrink:0}
.personal-donut svg{width:100%;display:block}
.personal-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.personal-donut-center strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}
.personal-donut-center small{font-size:10px;color:var(--text2)}
.personal-legend{display:grid;gap:5px;min-width:0;flex:1}
.personal-legend button{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:7px;color:var(--text);background:none;border:0;font:inherit;font-size:11px;padding:4px 0;text-align:left;cursor:pointer;min-width:0}
.personal-legend button:focus-visible{outline:1px solid var(--text);outline-offset:3px;border-radius:4px}
.personal-legend i{width:7px;height:7px;border-radius:50%}
.personal-legend b{font-weight:600;font-variant-numeric:tabular-nums}
.personal-bars{display:grid;gap:8px;padding-right:2px}
.personal-bars>div>div:first-child{display:flex;gap:10px;justify-content:space-between;align-items:baseline;font-size:12px}
.personal-bars b{font-weight:500;white-space:nowrap}
.personal-bar-track{height:5px;margin-top:6px;border-radius:4px;background:var(--hover);overflow:hidden}
.personal-bar-track span{height:100%;display:block;border-radius:4px;background:var(--text2);transform-origin:left}
.personal-details{margin:0;display:grid;gap:11px;font-size:12px}
.personal-details>div{display:flex;justify-content:space-between;gap:12px}
.personal-details dt{color:var(--text2)}.personal-details dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.personal-panel>.report-sub{margin:12px 0 0;line-height:1.45}
.personal-rental-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.personal-rental-group{min-width:0}.personal-rental-group h3{font-size:12px;font-weight:600;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin:0 0 8px}
.personal-rental-group h3 span{font-weight:400;color:var(--text2)}
.personal-rental-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:8px 10px;margin:6px 0;border:1px solid var(--line);border-radius:9px;font-size:12px;align-items:center}
.personal-rental-row>a{color:var(--text);overflow-wrap:anywhere}.personal-rental-row>span{color:var(--text2)}
.personal-rental-row>strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.personal-rental-row>.btn{height:28px;min-height:28px;font-size:11px;padding:3px 7px;white-space:nowrap;text-align:center}
.personal-rental-group summary{cursor:pointer;font-size:12px;padding:6px 0}.personal-rental-group>p{font-size:12px}
@media(max-width:700px){.personal-rental-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1200px){.personal-dashboard .report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-trend{grid-column:1/-1}}
@media(max-width:600px){.personal-dashboard .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.personal-grid{grid-template-columns:minmax(0,1fr);gap:8px}.personal-dashboard .report-kpi{padding:12px}.personal-trend-head{align-items:flex-start;flex-direction:column}.personal-trend-tabs{width:100%}.personal-trend-tabs .btn{flex:1}.personal-donut-layout{min-height:135px}.personal-donut{width:124px;max-width:38%}}
@media(prefers-reduced-motion:no-preference){
 .personal-dashboard .report-kpi,.personal-panel{animation:personal-enter .25s both ease-out;animation-delay:var(--card-delay,90ms)}
 .personal-panel:nth-child(3n){animation-delay:160ms}
 .personal-donut [data-donut-slice]{animation:personal-ring var(--duration) ease-out both;animation-delay:var(--delay);transition:opacity .15s}
 .personal-bar-track span,.personal-trend-bar{animation:personal-grow .25s ease-out both}
 .personal-trend .report-chart__line{animation-duration:.25s}
 @keyframes personal-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
 @keyframes personal-ring{from{stroke-dasharray:0 100}to{stroke-dasharray:var(--slice) calc(100 - var(--slice))}}
 @keyframes personal-grow{from{transform:scale(.01)}to{transform:scale(1)}}
}

.photo-settings [data-photo-limit]{box-sizing:border-box;width:100%;min-width:0;height:32px;padding:4px 8px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:13px}
.photo-settings>.card{margin:0}

.report-filters .report-employee-filter{display:flex;align-items:center;gap:8px;flex:0 1 310px;min-width:0}
.report-employee-filter select{flex:1;min-width:0}
.report-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.report-employee-card{display:grid;gap:12px;min-width:0;padding:14px;text-align:left;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:12px;cursor:pointer}
.report-employee-card:hover{background:var(--hover)}
.report-employee-card:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.report-employee-name{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.report-employee-name strong{font-size:14px}.report-employee-name>span{font-size:12px;color:var(--text2)}
.report-employee-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.report-employee-metrics>span{display:grid;gap:5px;min-width:0}
.report-employee-metrics small{font-size:12px;color:var(--text2);line-height:1.3}
.report-employee-metrics b{font-size:18px;font-variant-numeric:tabular-nums;font-weight:600}
@media(max-width:900px){.report-team-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.report-filters .report-employee-filter{flex-basis:100%;min-width:0}.report-employee-card{padding:12px}}
