/* Shell styles only. Table typography, zoom, widths, and business controls are untouched. */
/* Group headers are explicit disclosure controls; editing remains a separate mode. */
#wb-sidebar .wb-group>.wb-group-title{display:flex;align-items:center;gap:6px;width:100%;min-height:36px;margin:0 0 4px;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:#33465e;font-family:inherit;font-size:13px;font-weight:650;line-height:24px;letter-spacing:.02em;text-align:left;cursor:pointer}
#wb-sidebar .wb-group>.wb-group-title:hover{background:#e9eff8}
#wb-sidebar .wb-group-label{min-width:0;flex:1;overflow-wrap:anywhere}
#wb-sidebar .wb-group-chevron{width:16px;height:16px;color:#58718e;transform:rotate(90deg)}
#wb-sidebar .wb-group-collapsed .wb-group-chevron{transform:rotate(0)}
#wb-sidebar .wb-group-marker{flex:none;width:6px;height:6px;border-radius:50%;background:#316ed5}
#wb-sidebar.wb-editing .wb-group-title{cursor:grab}
@media(min-width:901px){#wb-sidebar .wb-group-collapsed{margin-bottom:12px}}
@media(max-width:900px){#wb-sidebar .wb-group>.wb-group-title{min-height:44px}}
@media(prefers-reduced-motion:no-preference){#wb-sidebar .wb-group-chevron{transition:transform .15s ease}}
/* Explicit navigation actions: collapse belongs to the sidebar, expand stays reachable. */
#wb-sidebar .wb-collapse-nav{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:none;width:100%;min-height:36px;padding:6px 12px;margin:0;border:1px solid #d5dfec;border-radius:8px;background:#fff;color:#33465e;font:inherit;font-size:13px;line-height:22px;cursor:pointer}
#wb-sidebar .wb-collapse-nav:hover{background:#e9eff8;color:#245cba}
#wb-top .wb-expand-nav{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:0;padding:6px 8px;font:inherit;font-size:13px;white-space:nowrap;border:1px solid #d5dfec;background:#f4f7fb;color:#33465e}
#wb-top .wb-expand-nav[hidden]{display:none!important}
#wb-top .wb-expand-nav:hover{background:#e1edff;color:#245cba}
@media(max-width:900px){#wb-sidebar .wb-collapse-nav{min-height:44px}#wb-top .wb-expand-nav{min-height:44px}}
/* Navigation polish: scoped IDs prevent business-page styles from flattening gutters. */
#wb-sidebar.wb-sidebar{--wb-nav-bg:#f4f7fb;--wb-nav-text:#33465e;--wb-nav-muted:#5c6b80;--wb-nav-hover:#e9eff8;--wb-nav-selected:#e1edff;--wb-nav-accent:#316ed5;--wb-nav-icon:#58718e;--wb-nav-active-text:#245cba;background:var(--wb-nav-bg);color:var(--wb-nav-text);padding:20px 14px 16px;gap:22px;border-right:1px solid #dce5f0;scrollbar-width:thin;scrollbar-color:#b4c4d8 transparent}
#wb-sidebar .wb-search-label{position:relative;flex:none;margin:0}
#wb-sidebar .wb-search-label>svg{position:absolute;left:11px;top:11px;width:17px;height:17px;color:var(--wb-nav-muted);pointer-events:none}
#wb-sidebar .wb-search{height:40px;min-height:40px;margin:0;padding:8px 10px 8px 36px;background:#2b394d;border:1px solid #455974;border-radius:8px;color:#fff;font-size:13px;line-height:22px}
#wb-sidebar .wb-search::placeholder{color:#b9c8db}
#wb-sidebar .wb-search:focus{border-color:var(--wb-nav-accent)}
#wb-sidebar .wb-group{margin:0 0 22px}
#wb-sidebar .wb-group:last-child{margin-bottom:0}
#wb-sidebar .wb-group-title{padding:0 12px 10px;color:var(--wb-nav-muted);font-size:12px;font-weight:500;letter-spacing:.06em;line-height:20px}
#wb-sidebar .wb-link{position:relative;min-height:44px;margin:4px 0;padding:10px 12px;gap:12px;border-radius:8px;color:var(--wb-nav-text);font-size:14px;line-height:24px;background:transparent;box-shadow:none}
#wb-sidebar .wb-link>svg,#wb-sidebar .wb-nav-settings>svg{width:20px;height:20px;stroke-width:1.8;color:var(--wb-nav-icon)}
#wb-sidebar .wb-link:hover{background:var(--wb-nav-hover);color:var(--wb-nav-text)}
#wb-sidebar .wb-link[aria-current=page]{background:var(--wb-nav-selected);color:var(--wb-nav-active-text);font-weight:600;box-shadow:none}
#wb-sidebar .wb-link[aria-current=page]>svg{color:var(--wb-nav-active-text)}
#wb-sidebar .wb-link[aria-current=page]::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--wb-nav-accent)}
#wb-sidebar .wb-actions{flex:none;padding-top:14px;border-top:1px solid #dce5f0;gap:10px}
#wb-sidebar .wb-secondary{min-height:40px;background:#fff;border:1px solid #d5dfec;border-radius:8px;color:var(--wb-nav-text)}
#wb-sidebar .wb-nav-settings{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:8px 12px;text-align:left}
#wb-sidebar .wb-secondary:hover{background:var(--wb-nav-hover);color:var(--wb-nav-text)}
#wb-sidebar .wb-nav-settings[aria-pressed=true]{background:var(--wb-nav-selected);border-color:var(--wb-nav-accent);color:var(--wb-nav-active-text)}
#wb-sidebar.wb-editing .wb-link,#wb-sidebar.wb-editing .wb-group-title{outline-color:#587baa}
#wb-sidebar .wb-hint{font-size:12px;color:var(--wb-nav-muted)}
#wb-sidebar .wb-link:focus-visible,#wb-sidebar button:focus-visible,#wb-sidebar input:focus-visible,#wb-sidebar .wb-group-title:focus-visible{outline:2px solid var(--wb-nav-accent);outline-offset:2px}
@media(max-width:900px){#wb-sidebar .wb-search,#wb-sidebar .wb-secondary{min-height:44px}#wb-sidebar .wb-search-label>svg{top:13px}#wb-sidebar.wb-sidebar{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
body.wb-ready{--wb-top:52px;--wb-side:0px;margin:0!important;padding-top:var(--wb-top)!important;padding-left:var(--wb-side)!important;box-sizing:border-box;min-width:0}
body.wb-ready.wb-nav-open{--wb-side:176px}
.wb-top,.wb-sidebar,.wb-shade{box-sizing:border-box;font-family:"Microsoft YaHei","微软雅黑","PingFang SC",Arial,sans-serif}
.wb-top *,.wb-sidebar *{box-sizing:border-box}
.wb-top{position:fixed;inset:0 0 auto;height:52px;z-index:45;display:flex;align-items:center;gap:14px;padding:0 16px;background:#fff;border-bottom:1px solid #dce4ef;color:#23364f;font-size:14px;line-height:1.5}
.wb-top .wb-brand{font-size:17px;font-weight:700;color:#23364f;text-decoration:none;white-space:nowrap}
.wb-top .wb-current{font-size:14px;color:#47627f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-top .wb-divider{color:#abb7c5}.wb-top .wb-user{margin-left:auto;font-size:12px;white-space:nowrap;color:#526477}
.wb-top .wb-icon-button{display:grid;place-items:center;flex:none;height:36px;min-height:36px;width:36px;min-width:36px;border:1px solid #dce4ef;border-radius:6px;background:#fff;color:#47627f;padding:7px;cursor:pointer}
.wb-top .wb-icon-button:hover{background:#edf4ff}
.wb-top svg,.wb-sidebar svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wb-sidebar{position:fixed;inset:52px auto 0 0;width:176px;z-index:44;background:#232d3c;color:#e1e8f2;padding:18px 12px 14px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-100%);visibility:hidden}
@media(min-width:901px){#wb-sidebar.wb-sidebar{padding-left:10px;padding-right:10px}}
.wb-nav-open .wb-sidebar{transform:none;visibility:visible}
.wb-sidebar .wb-search-label{display:block;font-size:12px;line-height:1.5;color:#c2cfdf;margin:0}
.wb-sidebar .wb-search{display:block;width:100%;height:34px;min-height:34px;background:#303e51;border:1px solid #52637a;color:#fff;border-radius:6px;padding:6px 9px;font-size:13px;margin-top:6px}
.wb-sidebar .wb-search::placeholder{color:#c0cad8}
.wb-sidebar .wb-list{display:block;height:auto;padding:0;margin:0;overflow:visible}
.wb-sidebar .wb-group{display:block;margin:0 0 16px;padding:0;border:0}
.wb-sidebar .wb-group-title{display:block;color:#b7c6d9;font-size:12px;line-height:1.5;font-weight:500;padding:5px 12px 8px;cursor:default}
.wb-sidebar .wb-link{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:42px;border:0;border-radius:6px;margin:2px 0;color:#e1e8f2;font-size:14px;line-height:1.5;text-decoration:none;background:transparent;white-space:normal}
.wb-sidebar .wb-link:hover{background:#33445b;color:#fff;text-decoration:none}
.wb-sidebar .wb-link[aria-current=page]{background:#2478cb;color:#fff;box-shadow:inset 3px 0 #90c6ff;font-weight:600}
.wb-sidebar .wb-label{min-width:0;overflow-wrap:anywhere}
.wb-sidebar .wb-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px;border-top:1px solid #47576d;padding-top:14px}
.wb-sidebar .wb-secondary{width:100%;background:#303e51;color:#e1e8f2;border:1px solid #63758e;border-radius:6px;padding:7px 10px;min-height:36px;font-size:13px;line-height:1.5;cursor:pointer}
.wb-sidebar .wb-secondary:hover{background:#40546e;color:white}
.wb-sidebar .wb-hint{font-size:11px;line-height:1.6;color:#b7c6d9;margin:0;padding:0 2px;white-space:normal}
.wb-sidebar .wb-hint:empty{display:none}
.wb-top :focus-visible,.wb-sidebar :focus-visible{outline:2px solid #91c4ff;outline-offset:2px}
.wb-sidebar .wb-name-input{width:100%;min-width:0;height:30px;min-height:30px;font:inherit;padding:3px 4px;color:#1d3552;background:#fff;border:1px solid #91c4ff;border-radius:3px}
.wb-editing .wb-link,.wb-editing .wb-group-title{outline:1px dashed #87a9d4;outline-offset:-1px;cursor:grab}
.wb-sidebar [hidden],.wb-top[hidden],.wb-sidebar[hidden]{display:none!important}
.wb-shade{display:none}
/* Only compensate outer frames; never use transforms on business containers (fixed dialogs). */
body.wb-ready #root>.w-screen{width:100%;height:calc(100dvh - 52px)}
body.wb-ready .sales-statistics-page{min-height:calc(100dvh - 52px)}
body.wb-ready[data-wb-module=teaching]>.topbar,body.wb-ready[data-wb-module=teaching]>.module-nav{display:none!important}
body.wb-ready[data-wb-module=teaching] main#main{margin-left:0;max-width:none}
body.wb-ready[data-wb-module=teaching] .workspace-top>.tabs{display:none}
body.wb-ready[data-wb-module=teaching] .workspace-top{min-height:30px;justify-content:flex-end}
body.wb-ready[data-wb-module=personnel]>.topbar{display:none}
body.wb-ready .deals-lab-banner{top:52px;left:var(--wb-side);right:0;width:auto}
body.wb-ready .deals-lab-banner>a{display:none}
body.wb-ready[data-wb-module=refunds]{padding-top:calc(52px + var(--deals-lab-banner-height,30px))!important}
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen{top:calc(52px + var(--deals-lab-banner-height,30px))!important;left:var(--wb-side)!important;right:0!important;bottom:0!important;width:calc(100% - var(--wb-side))!important;height:calc(100dvh - 52px - var(--deals-lab-banner-height,30px))!important;z-index:10}
body.wb-ready .wb-columns-only .layout-name-settings{display:none}
body.wb-ready:has(:fullscreen)>.wb-top,body.wb-ready:has(:fullscreen)>.wb-sidebar{display:none}
@media(max-width:900px){
 body.wb-ready,body.wb-ready.wb-nav-open{--wb-side:0px}
 .wb-sidebar{width:232px;z-index:61}
 .wb-top{padding:0 8px;gap:8px;z-index:60}
 .wb-top .wb-icon-button{height:44px;min-height:44px;width:44px;min-width:44px}
 .wb-top .wb-brand{font-size:15px}
 .wb-top .wb-current{font-size:12px}.wb-top .wb-user{display:none}
 .wb-nav-open .wb-shade{display:block;position:fixed;inset:52px 0 0;z-index:59;width:100%;height:auto;min-height:0;padding:0;margin:0;background:#17233666;border:0;border-radius:0}
 .wb-sidebar .wb-link,.wb-sidebar .wb-secondary{min-height:44px}
}
@media(prefers-reduced-motion:no-preference){.wb-top button,.wb-sidebar a,.wb-sidebar button{transition:background .15s ease}}
@media print{.wb-top,.wb-sidebar,.wb-shade{display:none!important}body.wb-ready{padding:0!important}}
/* Personnel settings are a child section, not an eighth primary module. */
.wb-ready .wb-personnel-sections{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:8px;background:#fff;border:1px solid #dbe3ee;border-radius:8px}
.wb-ready .wb-personnel-sections a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:6px;color:#475569;text-decoration:none;font-size:14px}
.wb-ready .wb-personnel-sections a[aria-current="page"]{background:#e8f0fc;color:#1d4ed8;font-weight:600}
.wb-ready .wb-personnel-sections a:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

/* Compact controls only. Table cell sizes and saved zoom remain unchanged. */
.sales-business-header .sales-header-identity{display:none!important}
body.borui-summary-tools-ready .sales-business-header{display:none!important}
.borui-summary-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-right:14px}
.monthly-report-metrics:has(.borui-summary-tools){flex-wrap:wrap;row-gap:6px}
.borui-summary-tools select{min-width:0!important}
.borui-summary-tools .sales-header-date{flex-wrap:wrap}
.borui-summary-tools [aria-label="选择统计月份"]{min-width:132px!important}
.borui-summary-tools .sheet-action-button{width:32px;height:32px}
.sheet-month-toolbar>.deal-refund-entry{order:4;margin-left:auto;white-space:nowrap}
.tabs .permission-config-link{display:inline-flex;align-items:center;padding:12px 14px;text-decoration:none;color:inherit;border-bottom:2px solid transparent;white-space:nowrap}
.tabs .permission-config-link:hover{color:#2563eb;border-color:#2563eb}
.channel-fields-heading h2{font-size:18px;margin:4px 0 8px}
.channel-fields-heading p{color:#64748b;margin:0 0 14px}
.channel-fields-add{display:flex;gap:8px;margin-bottom:12px}
.channel-fields-add input{width:min(420px,65%)}
.channel-fields-table{width:100%;border-collapse:collapse}
.channel-fields-table th,.channel-fields-table td{text-align:left;padding:8px;border-bottom:1px solid #e2e8f0}
.channel-fields-table td:nth-child(2){width:65%}
.channel-fields-table input{width:100%}
.borui-advanced-permissions>summary{cursor:pointer;padding:12px;font-weight:600}
.borui-advanced-permissions[open]>summary{margin-bottom:12px}
@media(max-width:900px){.channel-fields-table th,.channel-fields-table td{padding:6px}.channel-fields-table button{min-height:44px}.sheet-month-toolbar>.deal-refund-entry{margin-left:0}}

/* Clear compact brand header. */
.wb-top{gap:10px}
.wb-top .wb-brand{font-size:16px;letter-spacing:.02em}
.wb-top .wb-current{font-size:14px;font-weight:600;color:#334963}
.wb-top .wb-divider{font-size:13px;color:#c4cfdd;margin:0 -4px;flex:none}
.wb-top .wb-icon-button{border-color:transparent;background:transparent;border-radius:6px}
.wb-top .wb-icon-button:hover{background:#edf4ff}
@media(max-width:900px){.wb-top{gap:6px}.wb-top .wb-brand{font-size:15px}.wb-top .wb-current{font-size:13px}}

/* Open module tabs share the existing top bar without reducing table height. */
.wb-top .wb-current[hidden]{display:none!important}
.wb-page-tabs{display:flex;align-items:center;gap:4px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin;height:100%;padding:5px 0}
.wb-page-tab{display:flex;align-items:center;flex:none;border-radius:6px;color:#526477;white-space:nowrap}
.wb-page-tab:hover{background:#f2f5f9}
.wb-page-tab.is-active{background:#eaf2ff;color:#2563eb;box-shadow:inset 0 -2px #397af0}
.wb-page-link{display:flex;align-items:center;min-height:36px;padding:0 12px;color:inherit!important;text-decoration:none!important;font-size:14px}
.wb-page-tab.is-active .wb-page-link{font-weight:600}
.wb-page-close{display:grid;place-items:center;flex:none;border:0;background:transparent;color:#8493a5;font-size:18px;width:28px;min-width:28px;height:32px;min-height:32px;padding:0;margin-right:3px;border-radius:4px;cursor:pointer}
.wb-page-close:hover{background:#dfe7f2;color:#334963}
@media(max-width:900px){.wb-page-tabs{padding:3px 0}.wb-page-link{min-height:44px;padding:0 9px;font-size:13px}.wb-page-close{height:44px;min-height:44px;width:32px;min-width:32px}.wb-top .wb-brand{font-size:14px}}

/* Keep inactive documents mounted; only visibility changes on tab switches. */
body.wb-cache-away{overflow:hidden!important}
body.wb-cache-away> :not(.wb-top):not(.wb-sidebar):not(.wb-shade):not(.wb-cached-view){visibility:hidden!important;pointer-events:none!important}
.wb-cached-view{position:fixed;left:var(--wb-side,0px);top:52px;width:calc(100% - var(--wb-side,0px));height:calc(100dvh - 52px);border:0;background:white;z-index:43}
.wb-cached-view[hidden]{display:none!important}
body.wb-ready.wb-cached-document{--wb-top:0px;--wb-side:0px;padding:0!important}
body.wb-cached-document #root>.w-screen{height:100dvh}
body.wb-cached-document .sales-statistics-page{min-height:100dvh}
body.wb-cached-document .deals-lab-banner{top:0;left:0}
body.wb-cached-document[data-wb-module=refunds]{padding-top:var(--deals-lab-banner-height,30px)!important}
body.wb-cached-document[data-wb-module=deals] .history-workspace.fullscreen{top:var(--deals-lab-banner-height,30px)!important;height:calc(100dvh - var(--deals-lab-banner-height,30px))!important}
@media print{.wb-cached-view{position:static;width:100%;height:100vh}}

/* Module tab reorder affordances; URLs retain the browser's native drag-out behavior. */
.wb-page-tab{position:relative}
.wb-page-link[draggable=true]{cursor:grab;user-select:none;-webkit-user-drag:element}
.wb-page-link[draggable=true]:active{cursor:grabbing}
.wb-tab-dragging{opacity:.5}
.wb-tab-drop-before::before,.wb-tab-drop-after::after{content:'';position:absolute;top:5px;bottom:5px;width:3px;background:#397af0;border-radius:2px;pointer-events:none}
.wb-tab-drop-before::before{left:-3px}.wb-tab-drop-after::after{right:-3px}

/* Teacher list: remove duplicate heading and empty integration toolbar. */
body.wb-ready[data-wb-module=teaching]:has(#tab-teachers[aria-selected="true"]) #main > .intro,
body.wb-ready[data-wb-module=teaching]:has(#tab-teachers[aria-selected="true"]) .workspace > .workspace-top{display:none!important}

/* Compact table workspaces: reserve the screen for business rows. */

@media(min-width:701px){
body.wb-ready[data-wb-module=teaching] main#main{box-sizing:border-box;height:calc(100dvh - var(--wb-top,52px));padding:4px 6px 4px;display:flex;flex-direction:column;gap:4px;overflow:hidden}
body.wb-ready[data-wb-module=teaching] .workspace{flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=teaching] #data-panel{flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=teaching] .source-line{padding-top:6px;padding-bottom:6px;padding-left:10px}
body.wb-ready[data-wb-module=teaching] .toolbar{padding:8px 8px 6px;flex:none}
body.wb-ready[data-wb-module=teaching] .filter-fieldset{padding:6px 8px 2px}
body.wb-ready[data-wb-module=teaching] .table-heading{padding:0 8px 6px;flex:none}
body.wb-ready[data-wb-module=teaching] #table-wrap{flex:1;min-height:0;max-height:none;margin:0 8px}
body.wb-ready[data-wb-module=teaching] .pagination{padding:6px 8px;flex:none}
body.wb-ready[data-wb-module=teaching] .boundary-note{margin:0;line-height:16px;flex:none}
}


@media(min-width:901px){
body.wb-ready .sales-statistics-page{padding:4px 6px!important;min-height:calc(100dvh - var(--wb-top,52px))!important}
body.wb-ready[data-wb-module=teaching] #main>.intro{margin:0 0 4px}
body.wb-ready[data-wb-module=teaching] .workspace-top{height:30px;min-height:30px}
body.wb-ready .history-workspace>.ant-card>.ant-card-body{padding:4px!important}
body.wb-ready .history-workspace .sheet-month-toolbar{padding:4px 8px!important;margin:2px 0!important}
body.wb-ready[data-wb-module=trial]>header{height:44px;min-height:44px;padding:0 8px}
body.wb-ready[data-wb-module=trial]>.toolbar{padding:4px 8px;min-height:46px;box-sizing:border-box}
body.wb-ready[data-wb-module=trial]>main{padding:0 6px;box-sizing:border-box;height:calc(100dvh - var(--wb-top,52px) - 110px);display:flex;flex-direction:column;min-height:200px}
body.wb-ready[data-wb-module=trial]>main>#grid{flex:1;min-height:0;height:auto;max-height:none}
body.wb-ready[data-wb-module=trial]>main>.bottom{height:32px;min-height:32px;flex:none}
body.wb-ready[data-wb-module=trial]>main>.actionbar{padding:4px 0;flex:none;min-height:0}
body.wb-ready[data-wb-module=trial]>footer{padding:0 8px;font-size:11px;line-height:20px;min-height:20px}
}
/* Fill the deal workspace and retain one explicit new-record row. */
@media(min-width:901px){
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen{overflow:hidden!important}
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen>.ant-card{height:100%;min-height:0!important;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen>.ant-card>.ant-card-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:0!important}
body.wb-ready[data-wb-module=deals] .history-workspace .sheet-month-toolbar{flex:none}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport{flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport>div{flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport .ant-table-wrapper:has(.ant-table-body){flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport :is(.ant-spin,.ant-spin-container,.ant-table,.ant-table-container):has(.ant-table-body){flex:1;min-height:0;display:flex;flex-direction:column}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport .ant-table-header{flex:none}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport .ant-table-body{flex:1;min-height:0;height:auto!important;max-height:none!important;overflow:auto!important}
body.wb-ready[data-wb-module=deals] .history-empty-input-row{flex:none;height:28px;display:flex;align-items:center;padding:0 12px;color:#6482a5;font-size:12px}
body.wb-ready[data-wb-module=deals] .history-empty-input-row::before{content:'＋ 新增记录';}
}
/* Compact deal-table edges: no outer spacer above or below the table. */
@media(min-width:901px){
body.wb-ready[data-wb-module=deals] .history-workspace .sheet-month-toolbar{margin:0!important;padding:2px 4px!important;border-radius:0}
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen>.ant-card{margin:0!important;border:0!important;border-radius:0}
body.wb-ready[data-wb-module=deals] .history-zoom-viewport{margin:0!important;padding:0!important}
body.wb-ready[data-wb-module=deals] .history-empty-input-row{height:24px;padding:0 4px;border-bottom:0}
}
/* Match the teaching workspace's small outer breathing room. */
@media(min-width:901px){
body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen{box-sizing:border-box;padding:4px 6px 4px!important}
body.wb-ready[data-wb-module=deals] .history-workspace .sheet-month-toolbar{padding:4px 8px!important;margin:0 0 4px!important;border-radius:4px}
}
@media(min-width:901px){body.wb-ready[data-wb-module=deals] .history-workspace.fullscreen{padding-bottom:12px!important}}

/* Clear module labels without changing the toolbar height or table layout. */
#wb-top .wb-page-tab{color:#334155}
#wb-top .wb-page-link{font-weight:600}
#wb-top .wb-page-tab:hover{background:#f1f5f9;color:#1e293b}
#wb-top .wb-page-tab.is-active{background:#e3edff;color:#1d4ed8;box-shadow:inset 0 -3px #2563eb}
#wb-top .wb-page-tab.is-active .wb-page-link{font-weight:700}
#wb-top .wb-page-close{color:#64748b}
#wb-top .wb-page-close:hover{color:#1e293b;background:#dbe5f2}
#wb-top .wb-page-link:focus-visible,#wb-top .wb-page-close:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
@media(min-width:901px){#wb-top .wb-page-link{font-size:15px}}
@media(max-width:900px){#wb-top .wb-page-link{font-size:14px}}
