/* Lists and editors each have one primary job and one page heading. */
body { background:#f5f7fa; }
.main-content { padding:28px 32px 36px; }
.topbar { margin-bottom:24px; }
.topbar h1 { font-size:26px;line-height:1.4;font-weight:650; }
#page-kicker,.module-page-header,.learning-hero,.exam-hero,.people-hero,.operations-hero,.points-hero,.analytics-hero,.workspace-section-banner { display:none!important; }
.module-page,.learning-workspace,.exam-workspace,.people-workspace,.operations-workspace,.points-workspace,.analytics-workspace { gap:20px; }
.workspace-section-nav { display:flex!important;flex-wrap:wrap;gap:6px!important;padding:0 0 14px!important;margin:0 0 24px!important;border:0!important;border-bottom:1px solid #dfe5ec!important;background:transparent!important;box-shadow:none!important;border-radius:0!important; }
.workspace-section-nav button { flex:0 0 auto;min-height:40px;padding:10px 16px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:#637084!important; }
.workspace-section-nav button.is-active { background:#e8effa!important;color:#235ba3!important;font-weight:650; }
.workspace-section-nav button small { display:none; }
.p1-surface-heading,.p1-surface-details,.p1-surface-list,.p1-surface-phase { display:none!important; }
.p1-surface-stats { display:none!important; }
#p1-exam-surface .p1-surface-stats { display:grid!important; }
.p1-surface-body { display:block!important;margin:0!important; }
.p1-surface-panel { padding:20px!important;box-shadow:none!important; }
.p1-surface-actions { display:flex!important;gap:12px;flex-wrap:wrap; }
.p1-surface-actions button { min-width:140px; }
.panel .eyebrow,.sidebar-note,.footer-note { display:none; }
.panel,.pc-panel,.oc-panel,.ec-panel,.lc-panel { border:1px solid #e0e6ed!important;border-radius:10px!important;box-shadow:none!important; }
.panel-heading h2,.pc-panel h2,.oc-panel h2,.ec-panel h2 { font-size:19px!important; }
.panel-heading { margin-bottom:20px; }
.learning-card-actions { gap:8px;flex-wrap:wrap;padding-top:14px; }
.learning-card-actions button { padding:8px 12px; }
body[data-workspace-module=LEARNING] #learning-admin-panel button { display:none; }
body[data-workspace-section=materials] #learning-admin-panel :is(#learning-add-material,#learning-add-category),body[data-workspace-module=LEARNING][data-workspace-section=courses] #learning-admin-panel #learning-add-course,body[data-workspace-module=LEARNING][data-workspace-section=training] #learning-admin-panel #learning-add-training,body[data-workspace-section=paths] #learning-admin-panel :is(#learning-add-map,#learning-assign-map,#learning-new-employee) { display:inline-flex; }
body[data-workspace-module=OPERATIONS] #operations-admin-actions button { display:none; }
body[data-workspace-section=news] #operations-admin-actions #operations-add-news,body[data-workspace-section=surveys] #operations-admin-actions #operations-add-survey,body[data-workspace-section=certificates] #operations-admin-actions button { display:inline-flex; }
body[data-workspace-section=rules] #points-add-adjustment,body[data-workspace-section=ledger] #points-add-rule { display:none; }
/* Keep the module shell out of the editor, rather than displaying an overlay. */
body.workspace-editor-active .main-content > :not(#workspace-editor-page) { display:none!important; }
#workspace-editor-page { width:100%;max-width:1080px;margin:0 auto;min-width:0;color:#25364b; }
#workspace-editor-page[hidden] { display:none!important; }
.editor-page-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px; }
.editor-page-heading h1 { font-size:27px;line-height:1.4;margin:6px 0 0; }
.editor-page-heading p { color:#778397;font-size:13px;margin:0; }
[data-page-back] { background:#fff;color:#4a5e77;border:1px solid #d8e0e9;border-radius:7px;padding:11px 16px;cursor:pointer;white-space:nowrap; }
[data-page-message]:empty { display:none; }
[data-page-message] { padding:24px;background:white;border:1px solid #e0e6ed;border-radius:10px; }
[data-page-content] { min-width:0; }
#workspace-editor-page .workspace-page-form { display:block;position:static;inset:auto;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0;padding:28px;background:#fff;color:#25364b;border:1px solid #e0e6ed;border-radius:10px;overflow:visible;box-shadow:none; }
#workspace-editor-page :is(.panel-heading,.pc-heading,.oc-heading,.ec-heading,.course-editor-header) .eyebrow { display:none; }
#workspace-editor-page :is(.pc-grid,.oc-grid,.ec-grid,.learning-form-fields,.people-form-grid) { gap:24px; }
#workspace-editor-page :is(input,select,textarea) { max-width:100%;box-sizing:border-box;font-size:14px; }
#workspace-editor-page label { line-height:1.6;min-width:0; }
#workspace-editor-page label > :is(input,select,textarea) { margin-top:5px; }
#workspace-editor-page :is(.full-width,.pc-wide,.oc-wide,.ec-wide) { grid-column:1/-1; }
#workspace-editor-page :is(.panel-heading,.pc-heading,.oc-heading,.ec-heading) { align-items:center; }
#workspace-editor-page .primary-action { background:#245fab;color:#fff;border-color:#245fab; }
#workspace-editor-page button { cursor:pointer; }
#workspace-editor-page button:disabled { cursor:default; }
#workspace-editor-page :is(table,pre) { max-width:100%; }
#workspace-editor-page .form-hint { color:#778397;font-size:13px; }
@media(min-width:1100px) { .main-content { max-width:1500px; } }
@media(max-width:720px) {
 .main-content { padding:20px 16px 92px; }
 .topbar h1 { font-size:23px; }
 .workspace-section-nav { flex-wrap:nowrap;overflow-x:auto; }
 .workspace-section-nav button { white-space:nowrap; }
 .editor-page-heading { align-items:flex-start;gap:12px; }
 .editor-page-heading h1 { font-size:23px; }
 .editor-page-heading p { max-width:200px; }
 [data-page-back] { padding:9px 10px;font-size:13px; }
 #workspace-editor-page .workspace-page-form { padding:20px 16px; }
 #workspace-editor-page :is(.pc-grid,.oc-grid,.ec-grid,.learning-form-fields,.people-form-grid,.learning-form-grid) { grid-template-columns:minmax(0,1fr);gap:18px; }
 #workspace-editor-page :is(.pc-checks,.oc-checks,.ec-checks) { grid-template-columns:1fr; }
 #workspace-editor-page .panel-heading { flex-wrap:wrap; }
}

.workspace-section-nav.is-hidden,.workspace-section-nav button.is-hidden { display:none!important; }
/* Override the older stacked workspace presentation at its own specificity. */
#module-page > .module-page-header { display:none!important; }
.main-content.module-mode > .topbar { display:flex!important;min-height:40px;margin-bottom:24px!important;padding:0!important;background:transparent!important; }
.main-content.module-mode > .topbar > div:first-child { display:block!important; }
body.workspace-editor-active .main-content.module-mode > .topbar { display:none!important; }
.p1-surface-actions { justify-content:flex-start!important; }
#workspace-editor-page .eyebrow { display:none!important; }
#workspace-editor-page :is(input,select,textarea) { background:#fff;color:#25364b;border:1px solid #ccd6e2;border-radius:7px;padding:11px 12px;font:inherit;font-size:14px; }
#workspace-editor-page :is(input,select,textarea):disabled { background:#f3f5f8;color:#778397; }
#workspace-editor-page :is(input,select,textarea):focus { outline:2px solid #b8d1f3;outline-offset:1px;border-color:#3673bc; }
#workspace-editor-page label { font-size:14px;color:#4c5d72; }
#workspace-editor-page .people-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#workspace-editor-page :is(.people-create-heading,.learning-create-heading,.points-create-heading) > div:first-child { display:none; }
#workspace-editor-page :is(.people-create-heading,.learning-create-heading,.points-create-heading) { justify-content:flex-end;margin-bottom:18px; }
#workspace-editor-page :is(#learning-create-panel,#points-create-panel) > .panel-heading > div { display:none; }
#workspace-editor-page :is(#learning-create-panel,#points-create-panel) > .panel-heading { justify-content:flex-end; }
#workspace-editor-page :is(.people-form-grid,.learning-form-grid,.points-form-grid) { margin-top:22px;margin-bottom:24px; }
#workspace-editor-page input:is([type=checkbox],[type=radio]) { width:auto;min-height:0; }
#workspace-editor-page :is(.form-hint,.new-employee-help) { font-size:13px;line-height:1.7;color:#7b8799; }
@media(max-width:720px) { #workspace-editor-page .people-form-grid { grid-template-columns:1fr; } }
.main-content.module-mode > .topbar { justify-content:space-between!important; }
#workspace-editor-page .training-detail-grid { gap:20px; }
#workspace-editor-page :is(.training-detail-card,.training-basic-editor,.material-editor-form) { padding:20px;border:1px solid #e4e9ef;border-radius:8px;margin-top:18px; }
#workspace-editor-page .people-create-heading { margin-bottom:0; }
#learning-admin-panel > .panel-heading { display:none; }
#learning-admin-panel .phase1-inline-actions { margin:0; }
#learning-admin-panel { padding:16px 20px!important; }
#workspace-editor-page :is(input,textarea,select) { scroll-margin-top:24px; }
#workspace-editor-page :is(#points-rule-value-title,#points-rule-cycle-title,#exam-question-form-title) { display:none; }
#workspace-editor-page :is(.points-rule-value-context,.points-rule-value-buttons) { margin:20px 0; }

/* Keep names and account details readable before the role/status badges on phones. */
@media(max-width:720px) {
 .people-workspace .person-row { display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:10px;padding:14px 12px; }
 .people-workspace .person-row > .person-avatar { grid-column:1;grid-row:1; }
 .people-workspace .person-row > .person-main { grid-column:2/-1;grid-row:1;min-width:0;gap:5px; }
 .people-workspace .person-main strong { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.5; }
 .people-workspace .person-main span { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.6; }
 .people-workspace .person-row > .person-role { grid-column:2;grid-row:2;justify-self:start;margin:0; }
 .people-workspace .person-row > .people-status { grid-column:3;grid-row:2;justify-self:end;margin:0; }
 .people-workspace .person-row > .person-actions { grid-column:2/-1;grid-row:3;margin:0;justify-content:flex-start;flex-wrap:wrap;gap:6px;min-width:0; }
 .people-workspace .person-actions button { min-height:32px;padding:6px 8px;background:#fff;color:#355978;border:1px solid #d7e0eb;font-size:11px; }
}
