/* Actual company overview and training views. All selectors remain opt-in. */
@layer ms-business-structure {
html.msv2 #dv2-root .ms-business-actions{width:min(100%,520px)!important;max-width:55%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
html.msv2 #dv2-root .ms-biz-button{color:var(--ms-ink)!important;background:var(--ms-surface)!important;border:1px solid var(--ms-border)!important;min-height:44px!important}
html.msv2 #dv2-root .ms-biz-view-toggle [aria-pressed="true"],
html.msv2 #dv2-root .ms-biz-training-toolbar button[type="submit"]{background:var(--ms-navy)!important;color:var(--ms-surface)!important;border-color:var(--ms-navy)!important}

html.msv2 #dv2-root[data-ms-structured] .ms-business-metrics,
html.msv2 #dv2-root[data-ms-structured] .ms-business-extra,
html.msv2 #dv2-root[data-ms-structured] .ms-business-tools{display:none!important}
html.msv2 #dv2-root[data-ms-business-view="training"] :is(.list-items,.ms-business-list-title,.emp-toolbar,.scu-list-help,.dv2-legend,.ms-business-columns){display:none!important}
html.msv2 #dv2-root[data-ms-business-view="employees"] .ms-biz-views{display:none!important}
html.msv2 #dv2-root[data-ms-business-view="training"] .ms-biz-roster,html.msv2 #dv2-root:not([data-ms-business-view="overview"]) .ms-biz-insights{display:none!important}
html.msv2 #dv2-root .ms-biz-insights{margin-top:24px}
html.msv2 #dv2-root .ms-biz-roster{min-width:0;max-width:100%}
html.msv2 #dv2-root[data-ms-business-view="overview"] #ms-biz-training,
html.msv2 #dv2-root[data-ms-business-view="training"] #ms-biz-overview{display:none!important}
html.msv2 #dv2-root .ms-biz-views{min-width:0;max-width:100%}
html.msv2 #dv2-root .ms-biz-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
html.msv2 #dv2-root .ms-biz-stat{display:flex;flex-direction:column;gap:8px;min-width:0;padding:20px;border:1px solid var(--ms-border);border-radius:12px;background:var(--ms-surface)!important;color:var(--ms-ink)!important;text-decoration:none!important}
html.msv2 #dv2-root .ms-biz-stat strong{font-size:30px;line-height:1.2;font-weight:550;color:var(--ms-ink)!important;font-variant-numeric:tabular-nums}
html.msv2 #dv2-root .ms-biz-stat span{font-size:12px;color:var(--ms-muted)}
html.msv2 #dv2-root :is(.ms-biz-panel,.ms-biz-training-person){border:1px solid var(--ms-border);border-radius:12px;background:var(--ms-surface);overflow:hidden;margin:0 0 16px}
html.msv2 #dv2-root .ms-biz-section-heading{padding:18px 20px;border-bottom:1px solid var(--ms-border)}
html.msv2 #dv2-root .ms-biz-section-heading h2{font-size:18px;margin:0 0 4px}
html.msv2 #dv2-root .ms-biz-section-heading p{margin:0;color:var(--ms-muted);font-size:12px}
html.msv2 #dv2-root .ms-biz-attention-person{padding:18px 20px;border-bottom:1px solid var(--ms-border)}
html.msv2 #dv2-root .ms-biz-attention-person:last-child{border-bottom:0}
html.msv2 #dv2-root .ms-biz-person-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;min-width:0}
html.msv2 #dv2-root .ms-biz-person-head h3{margin:0;font-size:15px!important;color:var(--ms-ink)!important}
html.msv2 #dv2-root .ms-biz-person-head small{display:block;color:var(--ms-muted);font-size:11px;margin-top:3px}
html.msv2 #dv2-root .ms-biz-button{display:inline-flex!important;justify-content:center;align-items:center;gap:7px;min-height:44px;min-width:0;padding:10px 14px;border:1px solid var(--ms-border);border-radius:8px;color:var(--ms-ink);background:var(--ms-surface);font-size:12px;font-weight:500;text-align:center;text-decoration:none;white-space:normal;line-height:1.4;cursor:pointer;box-sizing:border-box}
html.msv2 #dv2-root .ms-biz-button:hover{background:var(--ms-blue-soft)}
html.msv2 #dv2-root .ms-biz-task{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;min-width:0}
html.msv2 #dv2-root .ms-biz-task strong{font-size:13px;font-weight:500}
html.msv2 #dv2-root .ms-biz-task small{display:block;margin-top:3px;color:var(--ms-muted);font-size:11px}
html.msv2 #dv2-root .ms-biz-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:6px;background:var(--ms-soft);color:var(--ms-muted);font-size:11px;font-weight:500;line-height:1.4;text-align:center;max-width:100%}
html.msv2 #dv2-root [data-state="completed"]{color:var(--ms-green);background:var(--ms-green-soft)}
html.msv2 #dv2-root [data-state="in_progress"]{color:var(--ms-navy);background:var(--ms-blue-soft)}
html.msv2 #dv2-root :is([data-state="expiring"],[data-state="practice"],[data-state="not_started"],[data-state="not_activated"]){color:var(--ms-amber);background:var(--ms-amber-soft)}
html.msv2 #dv2-root :is([data-state="expired"],[data-state="access_expired"]){color:var(--ms-red);background:var(--ms-red-soft)}
html.msv2 #dv2-root .ms-biz-key-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--ms-border);border-radius:12px;background:var(--ms-blue-soft);padding:20px}
html.msv2 #dv2-root .ms-biz-key-banner strong{font-size:15px;font-weight:550}
html.msv2 #dv2-root .ms-biz-key-banner p{font-size:12px;margin:5px 0 0;color:var(--ms-muted)}
html.msv2 #dv2-root .ms-biz-empty{padding:20px;margin:0;font-size:13px;color:var(--ms-muted)}
html.msv2 #dv2-root .ms-biz-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--ms-border);font-size:12px;color:var(--ms-muted);flex-wrap:wrap}
html.msv2 #dv2-root .ms-biz-pager>span{margin-right:auto}
html.msv2 #dv2-root .ms-biz-training-toolbar{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(180px,230px) auto!important;gap:12px!important;align-items:end!important;width:100%!important;max-width:none!important;margin:0 0 14px!important;padding:0!important}
html.msv2 #dv2-root .ms-biz-training-toolbar label{display:flex!important;flex-direction:column!important;gap:7px;min-width:0!important;width:auto!important;float:none!important;margin:0!important;padding:0!important}
html.msv2 #dv2-root .ms-biz-training-toolbar button{min-height:44px!important;height:auto!important;margin:0!important;align-self:end!important}
html.msv2 #dv2-root .ms-biz-training-toolbar label>span{font-size:12px;color:var(--ms-muted)}
html.msv2 #dv2-root .ms-biz-training-toolbar :is(input,select){min-width:0;width:100%;height:44px;padding:0 12px;border:1px solid var(--ms-border);border-radius:8px;background:var(--ms-surface);color:var(--ms-ink);font-size:14px}
html.msv2 #dv2-root .ms-biz-view-toggle{display:flex;gap:8px;justify-content:flex-end;margin:0 0 14px}
html.msv2 #dv2-root .ms-biz-view-toggle [aria-pressed="true"]{background:var(--ms-navy);color:var(--ms-surface);border-color:var(--ms-navy)}
html.msv2 #dv2-root .ms-biz-training-person>.ms-biz-person-head{padding:16px 20px;border-bottom:1px solid var(--ms-border);margin:0}
html.msv2 #dv2-root .ms-biz-attention-person{padding:14px 20px}
html.msv2 #dv2-root .ms-biz-attention-person .ms-biz-person-head{margin-bottom:0}
html.msv2 #dv2-root .ms-biz-person-courses{font-size:12px!important;line-height:1.55!important;margin:5px 0 0!important;color:var(--ms-muted)!important;overflow-wrap:anywhere}
html.msv2 #dv2-root .ms-biz-attention-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none}
html.msv2 #dv2-root .ms-biz-attention-actions .ms-biz-button{max-width:none!important}
html.msv2 #dv2-root .ms-biz-training-person>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;list-style:none;cursor:pointer;min-height:92px;box-sizing:border-box}
html.msv2 #dv2-root .ms-biz-training-person>summary>div{min-width:0;flex:1}
html.msv2 #dv2-root .ms-biz-training-person>summary::-webkit-details-marker{display:none}
html.msv2 #dv2-root .ms-biz-training-person>summary:focus-visible{outline:2px solid var(--ms-navy);outline-offset:-3px;border-radius:10px}
html.msv2 #dv2-root .ms-biz-training-person[open] .ms-biz-course-count i{transform:rotate(180deg)}
html.msv2 #dv2-root .ms-biz-course-count{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none;color:var(--ms-ink);font-size:12px;font-weight:500}
html.msv2 #dv2-root .ms-biz-person-footer{display:flex;justify-content:flex-end;padding:12px 20px}
html.msv2 #dv2-root .ms-biz-course-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,170px) minmax(100px,170px);align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid var(--ms-border)}
html.msv2 #dv2-root .ms-biz-course-row:last-child{border-bottom:0}
html.msv2 #dv2-root .ms-biz-course-open{display:inline-flex;align-items:center;min-height:28px;color:var(--ms-ink)!important;font-size:13px;font-weight:500;text-decoration:none}
html.msv2 #dv2-root .ms-biz-course-open:hover{text-decoration:underline}
html.msv2 #dv2-root .ms-biz-course-open:focus-visible{outline:2px solid var(--ms-navy);outline-offset:3px;border-radius:3px}
html.msv2 #dv2-root .ms-biz-course-row strong{font-weight:500;font-size:13px}
html.msv2 #dv2-root .ms-biz-course-row small{display:block;font-size:11px;color:var(--ms-muted);margin-top:4px}
html.msv2 #dv2-root .ms-biz-course-row progress{display:block;accent-color:var(--ms-navy);width:min(100%,250px);height:6px;margin-top:8px}
html.msv2 #dv2-root .ms-biz-matrix-scroll{max-width:100%;overflow:auto;border:1px solid var(--ms-border);border-radius:12px;background:var(--ms-surface)}
html.msv2 #dv2-root table.ms-biz-matrix{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;margin:0;background:var(--ms-surface)}
html.msv2 #dv2-root .ms-biz-matrix :is(th,td){padding:12px;border-bottom:1px solid var(--ms-border);text-align:center;vertical-align:middle;font-size:12px;min-width:150px;max-width:200px;white-space:normal}
html.msv2 #dv2-root .ms-biz-matrix thead th{background:var(--ms-soft);font-weight:500;color:var(--ms-muted)}
html.msv2 #dv2-root .ms-biz-matrix tr>:first-child{position:sticky;left:0;z-index:1;background:var(--ms-surface);text-align:left;min-width:180px;border-right:1px solid var(--ms-border)}
html.msv2 #dv2-root .ms-biz-matrix thead tr>:first-child{background:var(--ms-soft);z-index:2}
html.msv2 #dv2-root .ms-biz-matrix td a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border-radius:7px;font-size:11px;text-decoration:none;white-space:normal}
html.msv2 #dv2-root .ms-biz-matrix .ms-biz-matrix-assign{font-size:22px;border:1px dashed var(--ms-border);color:var(--ms-muted);background:var(--ms-surface);min-width:44px}
/* Native table rules use !important; isolate the new matrix from those rules. */
html.msv2 #dv2-root table.ms-biz-matrix{table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;width:100%!important;background:var(--ms-surface)!important}
html.msv2 #dv2-root .ms-biz-matrix :is(th,td){height:auto!important;padding:10px 14px!important;min-width:150px!important;font-size:12px!important;line-height:1.5!important;vertical-align:middle!important;white-space:normal!important;border-bottom:1px solid var(--ms-border)!important}
html.msv2 #dv2-root .ms-biz-matrix thead th{padding-top:16px!important;padding-bottom:16px!important;color:var(--ms-muted)!important;background:var(--ms-soft)!important;font-weight:500!important}
html.msv2 #dv2-root .ms-biz-matrix tr>:first-child{min-width:180px!important;background:var(--ms-surface)!important}
html.msv2 #dv2-root .ms-biz-matrix thead tr>:first-child{background:var(--ms-soft)!important}
html.msv2 #dv2-root .ms-biz-matrix .ms-biz-matrix-person{border:0!important;padding-left:0!important;justify-content:flex-start!important;color:var(--ms-ink)!important;background:none!important;font-size:13px!important}
html.msv2 #dv2-root .ms-biz-matrix .ms-biz-matrix-assign{color:var(--ms-muted)!important;background:var(--ms-surface)!important}
html.msv2 #dv2-root :is(.ms-biz-badge,.ms-biz-matrix-status)[data-state="completed"]{color:var(--ms-green)!important;background:var(--ms-green-soft)!important}
html.msv2 #dv2-root :is(.ms-biz-badge,.ms-biz-matrix-status)[data-state="in_progress"]{color:var(--ms-navy)!important;background:var(--ms-blue-soft)!important}
html.msv2 #dv2-root :is(.ms-biz-badge,.ms-biz-matrix-status):is([data-state="expiring"],[data-state="practice"],[data-state="not_started"],[data-state="not_activated"]){color:var(--ms-amber)!important;background:var(--ms-amber-soft)!important}
html.msv2 #dv2-root :is(.ms-biz-badge,.ms-biz-matrix-status):is([data-state="expired"],[data-state="access_expired"]){color:var(--ms-red)!important;background:var(--ms-red-soft)!important}
html.msv2 #dv2-root :is(.ms-biz-button,.ms-biz-stat,.ms-biz-matrix-scroll,.ms-biz-matrix a):focus-visible{outline:2px solid var(--ms-navy);outline-offset:3px}
@media(max-width:700px){
 html.msv2 #dv2-root .ms-business-actions{width:100%!important;max-width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.msv2 #dv2-root .ms-business-actions>:first-child{grid-column:1/-1}

 html.msv2 #dv2-root .ms-biz-stats{grid-template-columns:minmax(0,1fr);gap:8px}
 html.msv2 #dv2-root .ms-biz-stat{flex-direction:row;align-items:center;gap:16px;padding:16px}
 html.msv2 #dv2-root .ms-biz-stat strong{font-size:25px;min-width:42px}
 html.msv2 #dv2-root .ms-biz-person-head{align-items:flex-start;gap:10px}
 html.msv2 #dv2-root .ms-biz-attention-actions{flex-direction:column;align-items:flex-end;gap:6px}
 html.msv2 #dv2-root .ms-biz-attention-actions .ms-biz-button{font-size:11px!important;padding:8px!important}
 html.msv2 #dv2-root .ms-biz-course-count{font-size:11px;gap:6px}
 html.msv2 #dv2-root .ms-biz-training-person>summary .ms-biz-person-courses{font-size:11px!important}
 html.msv2 #dv2-root .ms-biz-person-head .ms-biz-button{font-size:11px;max-width:45%;flex:none}
 html.msv2 #dv2-root .ms-biz-task{align-items:flex-start;flex-wrap:wrap;gap:8px}
 html.msv2 #dv2-root :is(.ms-biz-section-heading,.ms-biz-attention-person){padding:16px}
 html.msv2 #dv2-root .ms-biz-key-banner{align-items:flex-start;flex-direction:column;gap:14px;padding:16px}
 html.msv2 #dv2-root .ms-biz-training-toolbar{grid-template-columns:minmax(0,1fr)!important}
 html.msv2 #dv2-root .ms-biz-course-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 16px}
 html.msv2 #dv2-root .ms-biz-course-date{grid-column:1/-1}
 html.msv2 #dv2-root .ms-biz-training-person>.ms-biz-person-head{padding:14px 16px}
 html.msv2 #dv2-root .ms-biz-matrix tr>:first-child{min-width:145px!important;max-width:145px!important}
 html.msv2 #dv2-root .ms-biz-pager{padding:14px}
}

}

/* Training opens on assigned courses; empty roster entries have a separate filter. */
html.msv2 #dv2-root .ms-biz-training-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
html.msv2 #dv2-root .ms-biz-training-metric{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--ms-border);border-radius:10px;background:var(--ms-surface);text-decoration:none;color:var(--ms-ink);min-width:0}
html.msv2 #dv2-root .ms-biz-training-metric strong{font-size:24px}
html.msv2 #dv2-root .ms-biz-training-metric span{font-size:12px}
html.msv2 #dv2-root .ms-biz-training-metric[aria-current]{border-color:var(--ms-navy);background:var(--ms-soft)}
html.msv2 #dv2-root .ms-biz-training-person>summary{min-height:64px;padding:12px 16px}
html.msv2 #dv2-root .ms-biz-training-person .ms-biz-course-row{padding:12px 16px}
@media(max-width:520px){html.msv2 #dv2-root .ms-biz-training-summary{gap:6px}html.msv2 #dv2-root .ms-biz-training-metric{flex-direction:column;align-items:flex-start;gap:2px;padding:10px}}
@media(max-width:700px){
 html.msv2 #dv2-root#dv2-root#dv2-root#dv2-root[data-ms-business-view="training"] .ms-business-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%}
 html.msv2 #dv2-root#dv2-root#dv2-root#dv2-root[data-ms-business-view="training"] .ms-business-actions>*{width:100%!important}
 html.msv2 #dv2-root[data-ms-business-view="training"] .ms-biz-training-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
 html.msv2 #dv2-root[data-ms-business-view="training"] .ms-biz-training-toolbar .ms-biz-search{grid-column:1/-1}
}
/* OWNER-ATTENTION-DETAILS-20261116: reasons and dates remain beside the person, no search-page detour. */
html.msv2 .ms-biz-attention-reasons{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:5px;color:var(--ms-muted,#64748b);font-size:13px;line-height:1.5}
html.msv2 .ms-biz-attention-details{padding:0 20px 16px;display:grid;gap:10px}
html.msv2 .ms-biz-attention-details[hidden]{display:none!important}
html.msv2 .ms-biz-attention-course{padding:14px;border:1px solid var(--ms-border,#dbe4ed);border-radius:8px;background:var(--ms-soft,#f4f7fa)}
html.msv2 .ms-biz-attention-course-head{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
html.msv2 .ms-biz-attention-course-head h4{font-size:14px;font-weight:600;margin:0}
html.msv2 .ms-biz-attention-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 0}
html.msv2 .ms-biz-attention-dates dt{font-size:12px;color:var(--ms-muted,#64748b);font-weight:400}
html.msv2 .ms-biz-attention-dates dd{font-size:13px;font-weight:500;margin:4px 0 0}
html.msv2 .ms-biz-attention-next{margin:12px 0 0;font-size:13px;line-height:1.5}
@media(max-width:600px){html.msv2 .ms-biz-attention-dates{grid-template-columns:1fr}html.msv2 .ms-biz-attention-details{padding:0 12px 12px}}
