/* A single workspace frame for business pages and underlying management tools. */
body.zhx-shell { --zhx-sidebar-width: 225px; --zhx-header-height: 64px; font-size: 14px; line-height: 1.65; }
.zhx-shell .zhx-workspace-nav { position: fixed; z-index: 1040; inset: 0 auto 0 0; width: var(--zhx-sidebar-width); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--zhx-line); padding: 0 16px 20px; }
.zhx-workspace-brand { display: flex; align-items: center; gap: 11px; height: 88px; padding: 0 10px; color: var(--zhx-ink); text-decoration: none; font-size: 17px; letter-spacing: .03em; }
.zhx-workspace-brand:hover { color: var(--zhx-ink); text-decoration: none; }
.zhx-workspace-caption { color: #8a8399; font-size: 11px; padding: 17px 12px 8px; margin: 0; letter-spacing: .07em; }
.zhx-workspace-nav nav { display: grid; gap: 7px; }
.zhx-workspace-link { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 11px; color: #655e75; text-decoration: none; font-size: 14px; font-weight: 500; }
.zhx-workspace-link:hover { color: var(--zhx-brand); background: #f7f5fe; text-decoration: none; }
.zhx-workspace-link.is-active { color: var(--zhx-brand); background: #eee8ff; font-weight: 650; }
.zhx-workspace-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #eeeaf4; color: #6f657e; font-size: 11px; }
.zhx-workspace-foot span, .zhx-workspace-foot small { display: block; }
.zhx-workspace-foot small { color: #9a91a6; margin-top: 4px; }
.zhx-shell #page.drawers { margin-left: var(--zhx-sidebar-width); width: calc(100% - var(--zhx-sidebar-width)); padding-inline: 0 !important; }
.zhx-shell .navbar.fixed-top { left: var(--zhx-sidebar-width); right: 0; width: auto; height: var(--zhx-header-height); padding-inline: 28px; background: #fff; }
.zhx-shell .navbar .navbar-brand, .zhx-shell .navbar .primary-navigation { display: none !important; }
.zhx-shell .navbar .editmode-switch-form { font-size: 12px; }
.zhx-shell .zhx-workspace-context { display: flex; align-items: center; gap: 10px; color: #9c94a8; font-size: 12px; margin-right: auto; min-width: 0; }
.zhx-workspace-context a { color: #746b83; white-space: nowrap; }
.zhx-workspace-context a:last-child { color: #3e354f; font-weight: 650; }
body.zhx-shell #page.drawers .main-inner { margin-top: 0; padding: 28px 32px 32px; max-width: 1240px; max-inline-size: 1240px; }
.zhx-shell #page-header { padding: 0 0 20px; margin: 0; }
.zhx-shell #page-header h1 { font-size: 26px; line-height: 1.35; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.zhx-shell #page-header .breadcrumb { font-size: 12px; margin-bottom: 10px; }
.zhx-shell #region-main { border-radius: 14px; padding: 24px; box-shadow: none; }
.zhx-shell #region-main h2 { font-size: 21px; font-weight: 650; line-height: 1.45; }
.zhx-shell #region-main h3 { font-size: 17px; line-height: 1.5; font-weight: 650; }
.zhx-shell #region-main h4 { font-size: 15px; line-height: 1.5; }
.zhx-shell .btn { min-height: 38px; font-size: 13px; padding: .55rem .9rem; border-radius: 8px; }
.zhx-shell .btn-sm { min-height: 32px; padding: .35rem .65rem; font-size: 12px; }
.zhx-shell .btn-icon { width: 32px; height: 32px; min-height: 32px; padding: .25rem; }
.zhx-shell .btn-icon .icon { font-size: 13px; }
.zhx-shell .zhx-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.zhx-shell .zhx-context-label { color: #80758f; font-weight: 400; font-size: 13px; margin: 0 0 12px; }
.zhx-shell .mform { font-size: 14px; min-width: 0; }
.zhx-shell .mform .fitem.row { margin-inline: 0; }
.zhx-shell .mform div.fitem.row { flex-direction: column; gap: 6px; margin-bottom: 18px; }
.zhx-shell .mform div.fitem.row > .col-form-label,
.zhx-shell .mform div.fitem.row > .fitemtitle,
.zhx-shell .mform div.fitem.row > .felement { flex: 0 0 auto; width: 100%; max-width: 100%; padding-inline: 0; }
.zhx-shell .mform .fitemtitle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #51475f; }
.zhx-shell .mform .fitemtitle > label { margin-bottom: 0; }
.zhx-shell .mform .fitemtitle > .float-sm-end { float: none !important; }
.zhx-shell .mform .col-form-label { padding-top: 0; font-size: 13px; font-weight: 600; color: #51475f; gap: 6px; align-items: center; }
.zhx-shell .mform .col-form-label .form-label-addon { margin-left: 0 !important; }
.zhx-shell .mform .col-form-label .text-danger > .icon { font-size: 10px; width: 12px; margin: 0; }
.zhx-shell .mform .femptylabel > .col-form-label { display: none !important; }
.zhx-shell .mform :is(input.form-control,textarea.form-control,.form-select,.custom-select) { font-size: 14px; border-radius: 8px; min-height: 40px; width: 100%; max-width: 100%; padding: 9px 12px; }
.zhx-shell .mform .fitem:has(> .felement[data-fieldtype="static"]):not(:has(label)) { margin-top: -8px; }
.zhx-shell .mform .form-static { font-size: 12px; color: #877d93; line-height: 1.7; }
.zhx-shell .mform .felement[data-fieldtype="static"] { font-size: 13px; color: #756a84; }
.zhx-shell .mform .fcontainer { padding-top: 14px; }
.zhx-shell .mform .ftoggler { gap: 9px; }
.zhx-shell .mform .ftoggler > .btn { margin-right: 0 !important; background: #f4f1fb; border-radius: 7px; }
.zhx-shell .mform .ftoggler > h3 { font-size: 17px !important; font-weight: 650; }
.zhx-shell .mform .ftoggler .icon { color: #807092; }
.zhx-shell .mform .fcontainer > .fitem:last-child { margin-bottom: 0; }
.zhx-shell .mform .form-control-feedback { font-size: 12px; }
.zhx-shell .mform textarea { min-height: 112px; }
.zhx-shell .mform .form-check-input { width: 16px; height: 16px; min-width: 16px; flex-shrink: 0; }
.zhx-shell .mform .input-group > input.form-control { width: 1%; min-width: 0; flex: 1 1 auto; }
.zhx-shell .mform .input-group > .btn.search-icon { width: 42px; flex: 0 0 42px; }
.zhx-shell .mform [data-fieldtype="date_time_selector"] select,
.zhx-shell .mform [data-fieldtype="date_selector"] select { width: auto; padding: 7px 28px 7px 10px; }
.zhx-shell .mform [data-fieldtype="group"] .form-control { width: auto; }
.zhx-shell .tox-tinymce { width: 100% !important; max-width: 100%; border-radius: 9px; border-color: #e4dfec; }
.zhx-shell .filemanager .fp-content { border-radius: 9px; background: #fbfaff; }
.zhx-shell .filemanager .fp-restrictions { color: #91869c; font-size: 11px; text-align: left; }
.zhx-shell .filemanager .fp-toolbar { margin-bottom: 5px; }
.zhx-shell .mform .filemanager { width: 100%; }
.zhx-shell .mform #fgroup_id_buttonar { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid #e9e4f0; }
.zhx-shell .mform #fgroup_id_buttonar .felement { gap: 8px; }
.zhx-shell .alert { font-size: 13px; border-radius: 10px; }
.zhx-shell #page-footer { margin-left: 0; }
.zhx-shell .zhx-table-scroll :is(td,th) { font-size: 12px; padding: 12px 14px; }
.zhx-shell .zhx-wide-table { min-inline-size: max(100%, calc(var(--zhx-table-columns, 5) * 80px)); }
.zhx-shell .zhx-wide-table :is(th,td) { min-inline-size: 64px; }
.zhx-shell .zhx-wide-table th { white-space: nowrap; }
#page-local-zhixing-admin.zhx-shell .zhx-admin-nav { display: none; }
.zhx-shell #sticky-footer { left: var(--zhx-sidebar-width); width: calc(100% - var(--zhx-sidebar-width)); }
.zhx-shell #sticky-footer .sticky-footer-content-wrapper { margin-inline: 0; }
.zhx-shell #sticky-footer .sticky-footer-content { max-width: 1240px; padding-inline: 32px; }
.zhx-shell .secondary-navigation { margin: 0 0 18px; }
.zhx-shell .secondary-navigation .navigation { border-bottom: 1px solid #e9e4ef; }
.zhx-shell .secondary-navigation .nav-link { font-size: 13px; padding: 10px 14px; }
.zhx-shell .form-setting { padding: 16px 0; border-bottom: 1px solid #f0edf5; }
.zhx-shell .form-setting .form-label { color: #51475f; font-weight: 600; }
.zhx-shell .form-setting .form-shortname { font-size: 11px; color: #9b91a6; }
.zhx-shell .form-setting .form-description { font-size: 12px; color: #877d93; line-height: 1.7; }
.zhx-shell .form-item.row { flex-direction: column; margin: 0; padding-block: 16px; border-bottom: 1px solid #f0edf5; gap: 8px; }
.zhx-shell .form-item.row > :is(.form-label,.form-setting) { width: 100%; max-width: 100%; padding: 0; flex: 0 0 auto; text-align: left !important; border: 0; }
.zhx-shell .form-item .form-label { font-size: 13px; font-weight: 600; color: #51475f; }
.zhx-shell .form-item .form-shortname { font-size: 11px; font-weight: 400; color: #9b91a6 !important; }
.zhx-shell .form-item .form-setting > .defaultsnext { display: block; }
.zhx-shell .form-item .form-setting :is(input.form-control,select.form-select,textarea.form-control) { max-width: 640px; min-height: 40px; font-size: 14px; }
.zhx-shell .form-item .form-defaultinfo { display: block; font-size: 11px; margin: 6px 0 0; color: #93899e !important; }
.zhx-shell .form-item .form-text { font-size: 12px; color: #877d93; line-height: 1.7; }
.zhx-shell .zhx-settings-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: start; gap: 22px; }
.zhx-shell.zhx-course-settings #region-main { background: transparent; border: 0; padding: 0; overflow: visible; }
.zhx-shell .zhx-settings-grid .mform > fieldset { margin: 0 0 16px; border: 1px solid #e6e0ee; border-radius: 13px; padding: 20px 22px; background: #fff; }
.zhx-shell .zhx-settings-grid .mform > fieldset .form-control,
.zhx-shell .zhx-settings-grid #id_fullname, .zhx-shell .zhx-settings-grid #id_label,
.zhx-shell .zhx-settings-grid #id_shortname { width: 100%; max-width: 100%; }
.zhx-shell .zhx-settings-grid .mform > fieldset > .d-flex { margin-bottom: 0 !important; }
.zhx-shell .zhx-settings-grid .mform #fgroup_id_buttonar { background: #fff; padding: 16px 20px; border: 1px solid #e6e0ee; border-radius: 12px; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -4px 16px #33204405; }
.zhx-settings-aside { position: sticky; top: 88px; display: grid; gap: 14px; }
.zhx-settings-tip { border: 1px solid #e6e0ee; background: #fff; border-radius: 13px; padding: 20px; }
.zhx-settings-tip h2 { font-size: 14px !important; margin-bottom: 12px; }
.zhx-settings-tip p { font-size: 12px; color: #897d96; margin: 0; line-height: 1.85; }
.zhx-settings-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.zhx-settings-steps li { counter-increment: step; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: #776984; font-size: 12px; }
.zhx-settings-steps li::before { content: counter(step); display: grid; place-items: center; height: 24px; border-radius: 50%; background: #f0eafa; color: #856aac; font-size: 11px; }
.zhx-settings-steps strong { display: block; color: #4c405f; font-size: 13px; margin-bottom: 3px; }
.zhx-workspace-toggle { display: none; }
.zhx-workspace-scrim[hidden] { display: none; }
@media (max-width: 1100px) {
 .zhx-shell .zhx-settings-grid { grid-template-columns: minmax(0,1fr); }
 .zhx-settings-aside { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
 body.zhx-shell { --zhx-sidebar-width: 225px; }
 .zhx-shell #page.drawers { margin-left: 0; width: 100%; }
 .zhx-shell #sticky-footer { left: 0; width: 100%; }
 .zhx-shell #sticky-footer .sticky-footer-content { padding-inline: 14px; }
 .zhx-shell .navbar.fixed-top { left: 0; height: 60px; padding-inline: 14px; }
 .zhx-shell .navbar .zhx-workspace-context { font-size: 11px; gap: 6px; }
 .zhx-shell .navbar .zhx-workspace-context a:first-child, .zhx-shell .navbar .zhx-workspace-context > span { display: none; }
 .zhx-shell .navbar .usernavigation { margin-left: auto !important; }
 .zhx-shell .navbar .zhx-workspace-toggle { display: inline-flex; align-items: center; justify-content: center; border: 0; color: #625575; background: transparent; margin-right: 8px; width: 36px; height: 40px; padding: 8px; }
 .zhx-shell .zhx-workspace-nav { transform: translateX(-100%); visibility: hidden; transition: transform .2s,visibility .2s; z-index: 1060; }
 .zhx-shell.zhx-nav-open .zhx-workspace-nav { transform: none; visibility: visible; }
 .zhx-shell.zhx-nav-open .zhx-workspace-scrim { position: fixed; z-index: 1055; inset: 0; background: #1d123a55; border: 0; width: 100%; height: 100%; }
 body.zhx-shell #page.drawers .main-inner { padding: 22px 14px 24px; }
 .zhx-shell #page-header { padding-bottom: 16px; }
 .zhx-shell #page-header h1 { font-size: 23px; }
 .zhx-shell #region-main { padding: 18px 16px; }
 .zhx-shell .mform :is(input.form-control,textarea.form-control,.form-select,.custom-select) { font-size: 16px; }
 .zhx-shell .mform .btn { min-height: 42px; }
 .zhx-shell .mform .ftoggler > h3 { font-size: 16px !important; }
 .zhx-shell .zhx-settings-grid { gap: 16px; }
 .zhx-shell .zhx-settings-grid .mform > fieldset { padding: 18px 16px; }
 .zhx-settings-aside { grid-template-columns: minmax(0,1fr); }
 .zhx-shell .zhx-settings-grid .mform #fgroup_id_buttonar { padding: 12px 14px; }
 .zhx-shell .zhx-settings-grid .mform #fgroup_id_buttonar .felement { display: flex; flex-wrap: wrap; }
 .zhx-shell .zhx-settings-grid .mform #fgroup_id_buttonar button[type=submit] { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .zhx-shell .zhx-workspace-nav { transition: none; } }

.zhx-shell .navbar button[data-target="theme_boost-drawers-primary"] { display: none !important; }
.zhx-shell #page-header .header-actions-container { gap: 8px; }
.zhx-shell .mform [data-fieldtype="editor"] > div { width: 100%; min-width: 0; }
.zhx-shell .mform .fp-pathbar { font-size: 12px; }

.zhx-settings-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.zhx-shell .zhx-settings-intro .zhx-context-label, .zhx-shell .zhx-settings-intro .zhx-toolbar { margin: 0; }
.zhx-shell .zhx-settings-grid .mform > fieldset .form-control { max-inline-size: 100%; }
/* The file picker and confirmation dialogs are part of the same workspace. */
.zhx-shell .moodle-dialogue-base .moodle-dialogue-wrap, .zhx-shell .modal-content { border: 1px solid #e4ddec; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 70px #21153422; }
.zhx-shell .moodle-dialogue-base .moodle-dialogue-hd { padding: 18px 22px; border-bottom: 1px solid #eee8f4; }
.zhx-shell .moodle-dialogue-base .moodle-dialogue-hd :is(h3,h5) { font-size: 18px; line-height: 1.4; font-weight: 650; margin: 0; }
.zhx-shell .file-picker .fp-repo .nav-link { padding: 10px 12px; font-size: 13px; border-radius: 8px; }
.zhx-shell .file-picker .fp-repo.active .nav-link { background: var(--zhx-brand); color: white; }
.zhx-shell .file-picker .fp-repo .fp-repo-icon { visibility: hidden; width: 0; }
.zhx-shell .file-picker .fp-repo .nav-link::before { content: '▱'; font-size: 18px; margin-right: 8px; font-weight: 600; vertical-align: -1px; }
.zhx-shell .file-picker .fp-upload-form { padding: 20px 16px; }
.zhx-shell .file-picker .fp-upload-form .col-form-label { font-size: 12px; color: #746680; }
@media (max-width: 767.98px) {
 .zhx-shell .moodle-dialogue-base .moodle-dialogue-wrap { max-width: calc(100vw - 20px); }
 .zhx-shell .file-picker .fp-repo-area { float: none; width: 100%; max-height: 130px; overflow-y: auto; }
 .zhx-shell .file-picker .fp-repo-items { margin-left: 0; width: 100%; }
}
.zhx-shell .file-picker .fp-repo[aria-selected="true"] .nav-link { background: var(--zhx-brand); color: #fff; }
@media (max-width: 767.98px) {
 .zhx-shell.zhx-nav-open .zhx-workspace-scrim { left: var(--zhx-sidebar-width); right: 0; width: calc(100% - var(--zhx-sidebar-width)); }
 .zhx-shell .navbar .zhx-workspace-context a:first-child { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--zhx-ink); }
 .zhx-shell .navbar .zhx-workspace-context a:first-child::before { content: ''; width: 24px; height: 24px; background: url('ui/brand.svg') center/contain no-repeat; }
 .zhx-shell .navbar .zhx-workspace-context a:last-child { display: none; }
}
