/* Admin-only presentation; all calculations still use the accepted source data. */
#employee-plans-progress{overflow:visible}
#employee-plans-view-state{padding:0 18px 16px;margin:0}
#employee-plans-view-state.error{color:#b11130}
html[data-theme=dark] #employee-plans-view-state.error{color:#ff9bae}
.plan-result-list{display:grid;gap:16px;padding:0 18px 18px}
.plan-result-card{padding:20px;border:1px solid var(--theme-border,#d7deea);border-radius:16px;background:var(--theme-surface,#fff)}
.plan-result-card header h4{margin:0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.plan-result-card header p{margin:4px 0 16px;font-size:13px;color:var(--theme-muted,#526580)}
.plan-result-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.plan-result-metric{padding:16px;background:var(--theme-surface-2,#f5f7fa);border-radius:12px;min-width:0}
.plan-result-metric h5{margin:0 0 14px;font-size:15px}
.plan-result-metric dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.plan-result-metric dt{font-size:12px;color:var(--theme-muted,#526580);margin-bottom:6px}
.plan-result-metric dd{margin:0;font-weight:700;font-size:21px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-theme=light] .plan-result-fact dd{color:#b11130}
html[data-theme=dark] .plan-result-fact dd{color:#ff8397}
.plan-result-completion{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:16px 0 8px}
.plan-result-track{display:block;width:100%;height:8px}
.plan-result-track-rest{fill:var(--theme-track,#dce3ed)}
.plan-result-track-fill{fill:#ce1637}
#employee-plans-editor{margin-top:18px}
#employee-plans-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px;cursor:pointer;list-style:none}
#employee-plans-editor>summary::-webkit-details-marker{display:none}
#employee-plans-editor>summary strong{font-size:19px;display:block}
#employee-plans-editor>summary small{display:block;color:var(--theme-muted,#526580);font-size:13px;font-weight:400;line-height:1.5;margin-top:6px}
#employee-plans-editor .editor-toggle{font-size:24px;transition:transform .15s}
#employee-plans-editor[open] .editor-toggle{transform:rotate(180deg)}
.employee-plans-editor-body{border-top:1px solid var(--theme-border,#d7deea);padding:18px}
.employee-plans-editor-body>.panel-description{margin-top:0}
.employee-plans-editor-body>#employee-plans-refresh{margin-bottom:12px}
#employee-plans-goal{width:auto;max-width:100%}
#report-location-picker .multi-location-popover{max-height:none;overflow:visible;width:min(360px,calc(100vw - 36px))}
#report-location-options{max-height:min(300px,45vh);overflow-y:auto;overscroll-behavior:contain}
.location-picker-actions{display:flex;gap:8px;border-top:1px solid var(--theme-border,#d7deea);margin-top:8px;padding-top:12px}
#report-location-picker .location-picker-actions .btn{width:auto;margin:0;flex:1;padding:10px;font-size:12px;white-space:normal}
#report-location-save-state:empty{display:none}
.report-location-link{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:transparent;padding:5px 0;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer;width:100%}
.report-location-link span{color:#b11130;font-size:22px}
.report-location-link:hover{text-decoration:underline;text-underline-offset:4px}
.report-location-link:focus-visible,#employee-plans-editor>summary:focus-visible{outline:2px solid #b11130;outline-offset:3px;border-radius:4px}
.location-share-summary{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.location-share-summary strong{padding:10px 14px;background:var(--theme-surface-2,#f5f7fa);border:1px solid var(--theme-border,#d7deea);border-radius:10px;font-size:15px}
html[data-theme=light] #reports-section .alpha-col,html[data-theme=light] .panel-expanded .alpha-col,html[data-theme=light] #report-dialog .alpha-col,html[data-theme=light] #report-dialog .is-alpha td{color:#ae1030!important;background:#fff0f3;font-weight:700}
html[data-theme=dark] #reports-section .alpha-col,html[data-theme=dark] .panel-expanded .alpha-col,html[data-theme=dark] #report-dialog .alpha-col,html[data-theme=dark] #report-dialog .is-alpha td{color:#ff9bae!important;background:#351d28;font-weight:700}
@media(max-width:900px){.plan-result-metrics{grid-template-columns:1fr}}
@media(max-width:540px){
 .plan-result-list{padding:0 12px 12px;gap:12px}.plan-result-card{padding:14px}.plan-result-metric{padding:14px}.plan-result-metric dd{font-size:19px}.plan-result-metric dl{gap:8px}
 #employee-plans-section>.panel>.panel-header{flex-wrap:wrap;gap:12px}#employee-plans-section>.panel>.panel-header>div:first-child{flex-basis:100%}
 #employee-plans-editor>summary{padding:18px}.employee-plans-editor-body{padding:12px}.location-share-summary{gap:8px}.location-share-summary strong{font-size:13px;padding:9px 10px}
 #report-dialog .report-location-brands{min-width:0;width:100%}
 #report-dialog .report-location-brands thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #report-dialog .report-location-brands tbody{display:grid;gap:12px}
 #report-dialog .report-location-brands tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--theme-border,#d7deea);border-radius:12px;overflow:hidden}
 #report-dialog .report-location-brands td{min-width:0;padding:10px 12px;text-align:center;border:0}
 #report-dialog .report-location-brands td:first-child{grid-column:1/-1;text-align:left;border-bottom:1px solid var(--theme-border,#d7deea)}
 #report-dialog .report-location-brands td:nth-child(n+2)::before{display:block;font-size:12px;color:var(--theme-muted,#526580);font-weight:400;margin-bottom:5px}
 #report-dialog .report-location-brands td:nth-child(2)::before{content:'Всего'}#report-dialog .report-location-brands td:nth-child(3)::before{content:'Альфа'}#report-dialog .report-location-brands td:nth-child(4)::before{content:'Другие'}
 #report-dialog .report-location-brands td:last-child{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--theme-border,#d7deea);font-weight:700}
 #report-dialog .report-location-brands td:last-child::before{content:'Доля Альфы';margin:0}
}
