/* V10.40 – compact drill-down panels and scrolling fixes */
.v1039-dashboard .v1039-table-scroller{overscroll-behavior-y:auto!important}
.v1039-dashboard .v1039-team-panel .v1039-table-scroller{max-height:none!important;overflow-y:visible!important}
.v1039-dashboard .v1039-ranking-scroll{max-height:none!important;overscroll-behavior-y:auto!important}
.v1039-dashboard .v1040-staff-panel{border:1px solid #dbe7f5;border-radius:14px}
.v1040-staff-name{display:flex;align-items:center;gap:10px}
.v1040-staff-name strong{color:#163a60;font-weight:760;font-size:12px}
.v1040-staff-table{min-width:680px}
.v1040-staff-table .v1039-employee-avatar{width:30px;height:30px}
.v1040-back-bar,.v1040-detail-banner{display:flex;align-items:center;gap:14px;padding:10px 14px;background:#f4f9ff;border:1px solid #d9e9fc;border-radius:11px;color:#194c7b;flex-wrap:wrap}
.v1040-back-bar strong,.v1040-detail-banner strong{font-size:12px}
.v1040-back-button{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:34px;border-radius:9px;border:1px solid #bcd7f5;background:#fff;color:#105ca9;padding:6px 12px;font-size:12px;font-weight:750;cursor:pointer}
.v1040-back-button:hover{background:#e8f3ff}
.v1040-detail-banner small{display:block;color:#6e849e;font-size:11px;margin-top:3px}
.v1039-dashboard .v1040-clickable-metric{cursor:pointer;transition:box-shadow .17s,transform .17s,border-color .17s;position:relative}
.v1039-dashboard .v1040-clickable-metric:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(18,81,157,.13);border-color:#8abaf0}
.v1039-dashboard .v1040-clickable-metric:focus-visible{outline:3px solid #6cb4fa;outline-offset:3px}
.v1039-dashboard .v1040-metric-open{position:absolute;right:15px;bottom:13px;font-size:11px;font-weight:720;color:#2775c5;display:flex;align-items:center;gap:5px}
.v1039-dashboard .v1039-metric-primary .v1040-metric-open{color:#e4f3ff;right:25px;bottom:18px;z-index:2}
.v1039-dashboard .v1040-clickable-metric.v1039-metric-primary{padding-bottom:34px}
.v1039-dashboard .v1040-clickable-metric.v1039-metric-secondary{padding-bottom:29px}
.v1040-filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v1040-filter-bar .v1040-team-select{min-height:43px;min-width:155px;max-width:230px;border:1px solid #d7e4f3;background:#fff;border-radius:11px;padding:0 12px;font-size:12px;font-weight:630;color:#244566}
@media(max-width:780px){.v1040-filter-bar .v1040-team-select{min-width:100%;max-width:100%}.v1040-back-bar,.v1040-detail-banner{align-items:flex-start;flex-direction:column}}

.v1040-lead-dates{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:13px 16px;border:1px solid #e3ebf5;border-radius:12px;background:#fbfdff;margin:6px 0 13px}
.v1040-lead-dates label{font-size:11px;font-weight:720;color:#607b99;display:flex;flex-direction:column;gap:5px}
.v1040-lead-dates input{min-height:38px;border:1px solid #dce5f1;border-radius:10px;background:#fff;padding:0 10px;color:#183958;font-size:12px}
.v1040-date-arrow{margin:0 1px 10px;color:#7d92a9}
.v1040-date-clear{min-height:38px;border:1px solid #d7e4f3;background:#fff;color:#2563ab;border-radius:9px;padding:0 12px;font-size:11px;font-weight:740;cursor:pointer}
.v1040-date-clear:disabled{opacity:.5;cursor:default}
