.performance-selector{display:flex;align-items:flex-end;gap:12px;margin-bottom:20px}
.performance-selector label{display:grid;gap:8px;font-size:14px;font-weight:700;flex:1;max-width:480px}
.performance-selector select,.performance-selector button,.performance-search input,.page-admin-activity .admin-activity-filterbar select,.performance-more{border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);padding:12px;font:inherit;min-height:44px}
.performance-selector button{cursor:pointer;display:grid;place-items:center}
.performance-selector svg{width:20px}
.performance-panel{border:1px solid var(--line);border-radius:22px;background:var(--card);padding:24px;margin-bottom:22px;min-width:0}
.performance-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.performance-heading h2{font-size:26px;letter-spacing:-.04em;margin:0}
.performance-heading p{color:var(--muted);margin:6px 0 0;font-size:15px}
.performance-heading>a{font-size:14px;font-weight:800;color:var(--blue)}
.performance-heading>span{color:var(--muted);font-size:14px}
.performance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.performance-metrics>div{border:1px solid var(--line);border-radius:18px;padding:18px;min-width:0}
.performance-metrics span,.performance-metrics strong,.performance-metrics small{display:block}
.performance-metrics span{font-size:14px;font-weight:800;color:var(--muted)}
.performance-metrics strong{font-size:36px;letter-spacing:-.04em;margin:12px 0}
.performance-metrics small{font-size:13px;line-height:1.5;color:var(--muted)}
.performance-chart{border:1px solid var(--line);border-radius:18px;padding:18px;margin-top:22px}
.performance-chart-heading{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.performance-chart-heading span{color:var(--muted)}
.performance-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;margin-top:18px}
.performance-bar-cell{display:flex;align-items:center;flex-direction:column;gap:8px;color:var(--muted);font-size:13px}
.performance-bar-track{height:140px;width:65%;max-width:90px;background:var(--page);border-radius:10px 10px 4px 4px;display:flex;align-items:flex-end;overflow:hidden}
.performance-bar-track>div{width:100%;background:var(--blue);border-radius:8px 8px 0 0}
.performance-note{color:var(--muted);font-size:13px;line-height:1.6;margin:18px 0 0}
.performance-history{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.performance-search{display:grid;gap:8px;color:var(--muted);font-weight:700;font-size:14px;margin-bottom:16px}
.performance-search input{width:100%;background:var(--page);font-size:15px}
.page-admin-activity .admin-activity-filterbar{display:grid;grid-template-columns:1fr 1fr;margin-bottom:16px;gap:10px}
.page-admin-activity .admin-activity-filterbar select{width:100%;font-size:13px;min-width:0}
.performance-history .admin-activity-list{box-shadow:none;border:0;border-radius:0;background:transparent}
.performance-history .admin-activity-entry{border-bottom:1px solid var(--line)}
.performance-history .admin-activity-row{padding:16px 0;gap:10px}
.performance-history .admin-activity-main strong{font-size:13px}
.performance-history .admin-activity-main b{font-size:14px}
.performance-history .admin-activity-main small{font-size:12px;white-space:normal}
.performance-history .admin-activity-side{max-width:110px}
.performance-history .admin-activity-outcome{font-size:10px;max-width:110px}
.performance-history .admin-transcript-available{font-size:10px}
.performance-history .admin-activity-delete{margin-left:4px;padding:8px!important}
.performance-history .admin-activity-delete svg{width:16px;height:16px}
.performance-more{margin-top:18px;cursor:pointer;color:var(--blue);font-size:14px;font-weight:700;width:100%}
.performance-more[hidden]{display:none}
.performance-followup{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}
.performance-followup strong,.performance-followup small{display:block;overflow-wrap:anywhere}
.performance-followup strong{font-size:15px;margin:5px 0}
.performance-followup small,.performance-followup p,.performance-empty{font-size:13px;color:var(--muted);line-height:1.5}
.performance-followup p{margin:6px 0}
.page-admin-activity .admin-activity-content{max-width:1600px}

@media(max-width:1200px){.performance-history{grid-template-columns:1fr}
.performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:600px){.performance-panel{padding:16px;border-radius:18px}
.performance-heading h2{font-size:23px}
.performance-metrics{gap:8px}
.performance-metrics>div{padding:12px}
.performance-metrics strong{font-size:28px}
.performance-metrics span,.performance-metrics small{font-size:12px}
.performance-bars{gap:7px}
.performance-chart{padding:12px}
.performance-bar-track{width:85%;height:120px}
.performance-heading{margin-bottom:18px}
.performance-history .admin-activity-row{grid-template-columns:minmax(0,1fr) auto}
.performance-history .admin-activity-icon,.performance-history .admin-activity-row>svg{display:none}
.performance-selector label{font-size:13px}
.performance-history{gap:0}
}


.performance-export-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.performance-export-button,.performance-detail-export{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;background:var(--blue,#147fe0);color:#fff;padding:10px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.performance-export-button svg{width:16px;height:16px}.performance-detail-export:disabled{opacity:.45;cursor:not-allowed}.performance-message-time{color:var(--muted);margin-left:12px;font-size:12px}.performance-export-dialog{background:var(--card,#fff);color:var(--text,#14243b);width:min(100%,470px);max-height:90dvh;overflow:auto;border-radius:18px;padding:22px;display:grid;gap:14px;box-shadow:0 25px 90px #0006}.performance-export-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.performance-export-header h2{margin:0;font-size:23px}.performance-export-header button{border:0;background:transparent;color:inherit;font-size:23px;cursor:pointer}.performance-export-dialog>p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.performance-export-dialog>label:not(.performance-export-check){display:grid;gap:6px;font-size:13px;font-weight:700}.performance-export-dialog select{padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--page);color:var(--text);font:inherit}.performance-export-check{display:flex;align-items:start;gap:9px;font-size:13px}.performance-export-check input{margin-top:3px}.performance-export-submit{background:var(--blue,#147fe0);color:#fff;border:0;border-radius:11px;padding:13px;font:inherit;font-weight:700;cursor:pointer}.performance-export-submit:disabled{opacity:.5}@media(max-width:600px){.performance-export-dialog{padding:17px}.performance-detail-export{font-size:11px;padding:8px}}

.performance-period-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.performance-period-toolbar button,.performance-period-toolbar select{border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--text);min-height:42px;padding:9px 12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.performance-period-toolbar button:disabled{opacity:.35;cursor:not-allowed}
.performance-period-toolbar button svg{height:18px;width:18px;vertical-align:middle}
#performancePeriodLabel{text-align:center;font-weight:800;min-width:220px}
.performance-bar-cell.is-today .performance-bar-track{outline:2px solid var(--blue);outline-offset:2px}
.performance-bar-cell.is-today small{font-weight:800;color:var(--blue)}
.performance-bar-cell.is-future{opacity:.4}
.performance-bars.performance-bars-month{grid-template-columns:repeat(var(--month-columns,31),minmax(20px,1fr));gap:5px;overflow-x:auto;padding:3px 0 9px}
.performance-bars-month .performance-bar-track{height:115px;width:85%;min-width:12px}
.performance-bars-month .performance-bar-cell{gap:5px;font-size:11px}
@media(max-width:650px){#performancePeriodLabel{min-width:165px;font-size:13px}.performance-period-toolbar{gap:6px}.performance-period-toolbar button,.performance-period-toolbar select{padding:8px}}

/* Single-row responsive reporting controls */
.page-admin-activity .performance-header-compact{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;margin-bottom:15px}
.page-admin-activity .performance-title-group{flex:1 1 190px;min-width:175px}
.page-admin-activity .performance-title-group h2{font-size:25px;line-height:1.12;letter-spacing:-.04em;margin:0}
.page-admin-activity .performance-title-group p{font-size:12px;line-height:1.45;color:var(--muted);margin:6px 0 0}
.page-admin-activity .performance-header-compact .performance-period-toolbar{display:flex;flex:0 1 auto;align-items:center;justify-content:center;flex-wrap:nowrap;gap:5px;margin:0}
.page-admin-activity .performance-header-compact #performancePeriodLabel{min-width:0;white-space:nowrap;font-size:14px;font-weight:800}
.page-admin-activity .performance-header-compact .performance-period-toolbar button,.page-admin-activity .performance-header-compact .performance-period-toolbar select{min-height:36px;padding:7px 9px;font-size:12px;border-radius:9px}
.page-admin-activity .performance-header-compact .performance-period-toolbar button svg{width:16px;height:16px}
.page-admin-activity .performance-analytics-link{white-space:nowrap;font-size:13px;font-weight:800;color:var(--blue);text-decoration:none;margin-left:auto}
@media(max-width:1250px){.page-admin-activity .performance-header-compact .performance-period-toolbar{order:3;flex:1 1 100%;justify-content:flex-start}.page-admin-activity .performance-analytics-link{order:2}}
@media(max-width:620px){.page-admin-activity .performance-header-compact{gap:10px}.page-admin-activity .performance-header-compact .performance-period-toolbar{flex-wrap:wrap;justify-content:flex-start}.page-admin-activity .performance-header-compact #performancePeriodLabel{font-size:12px}.page-admin-activity .performance-title-group h2{font-size:22px}}
