/* One compact category bar; directories overlay content only while open. */
@media screen{
 body.wtm-enabled .wb-tabs-row{display:none!important}
 body.wtm-enabled #wbHeader{display:none!important}
 body.wtm-enabled[data-cloud-locked] #wtmBar{visibility:hidden}
 body.wtm-enabled:not(.ws-mobile) #wbShell{height:calc(100dvh - var(--site-filing-height,36px))}
 body.wtm-enabled:not(.ws-mobile):has(#localPreviewNotice) #wbShell{height:calc(100dvh - var(--site-filing-height,36px) - 25px)}
 body.wtm-enabled #wbHeader #ledgerView,body.wtm-enabled #wbHeader #advanceView{display:none!important}
 #wtmUtilities{flex:none;margin-top:-10px;color:#e6edf5;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif}
 #wtmUtilities summary{display:flex;align-items:center;gap:6px;padding:12px 8px;list-style:none;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
 #wtmUtilities summary::-webkit-details-marker{display:none}
 #wtmUtilities summary>svg{flex:none}
 #wtmUtilities summary>svg:last-child{margin-left:auto;width:12px;height:12px;transition:transform .15s}
 #wtmUtilities[open] summary{background:#214b74}
 #wtmUtilities[open] summary>svg:last-child{transform:rotate(180deg)}
 #wtmUtilities summary:hover{background:#214b74}
 #wtmUtilities .wtm-utility-items{display:grid;gap:3px;padding:5px 0 0 4px;margin:0 0 0 3px;border-left:1px solid #52718c}
 body.wtm-enabled #wtmUtilities .wtm-utility-items>button{width:100%;justify-content:flex-start;padding:8px 4px;border-radius:4px;white-space:normal;font:500 12px "Noto Sans SC","Microsoft YaHei",sans-serif;color:#e6edf5;background:transparent;box-shadow:none}
 body.wtm-enabled #wtmUtilities .wtm-utility-items>button:hover:not(:disabled){background:#214b74}
 #wtmUtilities .wtm-utility-items>button:disabled{opacity:.5;cursor:default}
 #wtmUtilities [hidden]{display:none!important}
 #wtmUtilities summary:focus-visible,#wtmUtilities button:focus-visible{outline:2px solid #9dc7f2;outline-offset:-2px}
 body.wtm-enabled .wb-navigation{min-height:0;overflow:hidden;gap:0;padding-bottom:8px}
 body.wtm-enabled .wtm-side-content{display:flex;flex-direction:column;gap:22px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;margin:0 -6px;padding:0 6px 12px}
 body.wtm-enabled .wb-navigation #cloudAccountBar{display:flex;flex-direction:column;align-items:stretch;flex:none;min-width:0;margin:0;padding:7px 0 0;border-left:0;border-top:1px solid #365472;color:#e6edf5}
 body.wtm-enabled .wb-navigation #cloudAccountBar[hidden]{display:none!important}
 body.wtm-enabled .wb-navigation #wtmAccountToggle{display:flex;align-items:center;gap:5px;width:100%;padding:7px 8px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#e6edf5}
 body.wtm-enabled .wb-navigation #wtmAccountToggle:hover,body.wtm-enabled .wb-navigation #wtmAccountToggle[aria-expanded="true"]{background:#214b74}
 body.wtm-enabled .wb-navigation #wtmAccountToggle>svg{flex:none;margin-left:auto;transform:rotate(180deg)}
 body.wtm-enabled .wb-navigation #wtmAccountToggle[aria-expanded="true"]>svg{transform:none}
 body.wtm-enabled .wb-navigation #cloudAccountBar .cloud-account-info{text-align:left;min-width:0}
 body.wtm-enabled .wb-navigation .cloud-account-info>span{display:block;font-size:11px;color:#adc2d7}
 body.wtm-enabled .wb-navigation .cloud-account-info strong{display:block;max-width:none;font-size:12px;font-weight:600;line-height:1.6;color:#e6edf5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #wtmAccountMenu{position:fixed;inset:auto;margin:0;width:176px;box-sizing:border-box;padding:5px;border:1px solid #b5c1cb;border-radius:8px;background:#faf8f2;box-shadow:0 8px 28px #142e4c33;color:#203b58}
 #wtmAccountMenu::backdrop{background:transparent}
 body.wtm-enabled .wb-navigation #wtmAccountMenu #cloudHeaderSignOut{display:block;width:100%;padding:11px 12px;border:0;border-radius:5px;background:transparent;color:#a3342a;font:600 13px "Noto Sans SC","Microsoft YaHei",sans-serif;text-align:left;box-shadow:none}
 body.wtm-enabled .wb-navigation #wtmAccountMenu #cloudHeaderSignOut:hover:not(:disabled){background:#f8e6e0}
 body.wtm-enabled .wb-navigation #wtmAccountMenu #cloudHeaderSignOut:disabled{opacity:.5;cursor:default}
 #wtmAccountToggle:focus-visible,#wtmAccountMenu #cloudHeaderSignOut:focus-visible{outline:2px solid #88b9e8;outline-offset:-2px}
 body.wtm-enabled #wtmBar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 8px;flex:none;padding:3px 0 8px;color:#20354b;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif}
 #wtmBar .wtm-groups{display:flex;align-items:center;gap:5px;min-width:0}
 #wtmBar .wtm-tools{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
 #wtmBar .wtm-create-actions{display:flex;align-items:center;gap:6px;flex:none;padding-left:9px;border-left:1px solid #bac4ca}
 #wtmBar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 7px;white-space:nowrap;background:transparent;border:1px solid transparent;border-radius:6px;color:#3b5061;font:600 13px "Noto Sans SC","Microsoft YaHei",sans-serif;cursor:pointer;box-shadow:none}
 #wtmBar button b{min-width:18px;padding:1px 4px;border-radius:4px;background:#d8dedf;color:#455f72;font-size:11px;text-align:center}
 #wtmBar button.wtm-selected{background:#f8f5ee;border-color:#b5c1c8;color:#164d86}
 #wtmBar button.wtm-selected b{background:#dbe7f3;color:#164d86}
 #wtmBar button[aria-expanded=true]{background:#e0eaf3;border-color:#6f96b8;color:#164d86}
 #wtmBar button:hover:not(:disabled){background:#f4f1e9;border-color:#adbcc6}
 #wtmBar button:disabled{opacity:.45;cursor:default}
 #wtmBar #wtmAll{border-color:#aebcc6;background:#f8f5ee;color:#183b61}
 #wtmBar .wtm-draft-count{font-size:11px;min-width:15px;text-align:center;color:#8b5700;background:#fff0cf;border:1px solid #ddc497;padding:1px 3px;border-radius:4px}
 #wtmBar [hidden],#wtmPopover [hidden]{display:none!important}
 #wtmBar .ws-display-controls{padding-left:8px;border-left:1px solid #bac4ca;color:#536b7c}
 #wtmBar #wbNewPurchase{border-color:#aabed4;background:#edf3fa;color:#245f9c}
 #wtmBar #newOrder{border-color:#2867c9;background:#2867c9;color:#fff}
 #wtmBar #newOrder:hover:not(:disabled){border-color:#1e56b2;background:#1e56b2}
 #wtmPopover{position:fixed;inset:auto;margin:0;padding:0;width:560px;max-width:calc(100vw - 24px);box-sizing:border-box;background:#f8f5ee;color:#20354b;border:1px solid #aabac5;border-radius:9px;box-shadow:0 12px 36px rgb(18 43 65 / 22%);font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;overflow:hidden}
 #wtmPopover:popover-open{display:flex;flex-direction:column}
 #wtmPopover::backdrop{background:transparent;pointer-events:none}
 #wtmPopover .wtm-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 10px;flex:none}
 #wtmPopover h2{margin:0 0 3px;font-size:16px;font-weight:700;line-height:1.5;color:#20354b}
 #wtmPopover .wtm-result-count{color:#536b7c;font-size:11px;line-height:1.6}
 #wtmPopover .wtm-dismiss{border:0;border-radius:5px;background:#e9e7e0;color:#506675;width:29px;height:29px;font-size:23px;cursor:pointer;box-shadow:none;flex:none}
 #wtmPopover .wtm-find{display:flex;align-items:center;gap:8px;margin:0 14px 9px;padding:0 10px;border:1px solid #91a9b9;border-radius:6px;background:#fffdf8;flex:none}
 #wtmPopover .wtm-find:focus-within{border-color:#2563b5;outline:2px solid rgb(37 99 181 / 13%)}
 #wtmPopover #wtmSearch{width:100%;min-width:0;padding:8px 0;height:37px;border:0;border-radius:0;background:transparent;color:#20354b;font:500 13px "Noto Sans SC","Microsoft YaHei",sans-serif;box-shadow:none;outline:0}
 #wtmPopover #wtmSearch::placeholder{color:#637584;opacity:1}
 #wtmPopover #wtmClear{border:0;background:transparent;color:#164d86;white-space:nowrap;cursor:pointer;font-size:12px;box-shadow:none}
 #wtmPopover .wtm-results{overflow:auto;min-height:0;padding:0 8px 6px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aebcc6 transparent}
 #wtmPopover .wtm-result{display:flex;align-items:stretch;border-bottom:1px solid #c9d2d7;margin:0 5px;background:transparent}
 #wtmPopover .wtm-result:last-child{border-bottom:0}
 #wtmPopover .wtm-current{background:#e1ebf4;border-radius:5px}
 #wtmPopover .wtm-result-main{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:4px;align-items:center;text-align:left;padding:10px 11px;border:0;border-radius:5px;background:transparent;color:#20354b;cursor:pointer;box-shadow:none}
 #wtmPopover .wtm-result-main:hover{background:#eaf0f4}
 #wtmPopover .wtm-result-title{font-size:14px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
 #wtmPopover .wtm-result-sub{grid-column:1;font-size:11px;line-height:1.6;color:#536b7c;overflow-wrap:anywhere}
 #wtmPopover .wtm-kind{color:#3f6584;font-weight:600}
 #wtmPopover .wtm-state{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:11px;white-space:nowrap}
 #wtmPopover .wtm-state b{color:#225e8d;font-weight:600}
 #wtmPopover .wtm-state em{font-style:normal;color:#8b5700;background:#fff0cc;border:1px solid #ddc497;border-radius:4px;padding:1px 5px}
 #wtmPopover .wtm-result-close{flex:none;border:0;background:transparent;padding:6px 11px;color:#71838f;font-size:20px;cursor:pointer;box-shadow:none}
 #wtmPopover .wtm-result-close:hover{background:#f8e7df;color:#9f392b}
 #wtmPopover .wtm-result-close:disabled{opacity:.4;cursor:default}
 #wtmPopover .wtm-foot{padding:9px 16px;color:#536b7c;background:#eeece5;border-top:1px solid #c4cdd1;font-size:11px;line-height:1.6;flex:none}
 #wtmPopover .wtm-empty{display:flex;flex-direction:column;gap:6px;padding:24px 12px;text-align:center;font-size:13px;color:#526675}
 #wtmPopover .wtm-empty span{font-size:12px}
 #wtmPopover .wtm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 #wtmBar button:focus-visible,#wtmPopover button:focus-visible{outline:2px solid #2674b9;outline-offset:-2px}
}
@media print{#wtmBar,#wtmPopover,#wtmAccountMenu{display:none!important}}
