.module-navigation-toggle{display:none}
.module-mode{background:var(--crm-page);color:#172735}
.module-mode .sidebar{display:none}
.module-mode.navigation-open .sidebar{display:flex;width:210px;z-index:12;box-shadow:5px 0 18px #0b2c5940;top:35px;overflow:auto}
.module-mode .main-area{margin:0;padding:0;max-width:none}
.module-mode .topbar{height:35px;min-height:35px;padding:0 10px;margin:0;display:flex;gap:12px;background:#f0f4fa;border-bottom:1px solid #9fb7d2}
.module-mode .topbar h2{font-size:13px;margin:0}.module-mode .topbar .eyebrow{display:none}
.module-mode .topbar .user-menu{margin-left:auto;font-size:12px}.module-mode .avatar{width:22px;height:22px;background:#d4e7f7;color:#23527a}
.module-mode .module-navigation-toggle{display:block;padding:3px 9px;border:1px solid #9fb7d2;border-radius:2px;background:#fff;color:#234568;font-size:12px}
#moduleView{padding:0;max-width:none;height:calc(100dvh - 35px);display:grid;grid-template-rows:38px minmax(0,1fr) 32px;background:var(--crm-page);font-family:Tahoma,'Microsoft YaHei',sans-serif}
.workbench-search{display:flex;align-items:center;gap:8px;padding:5px 12px;background:var(--crm-brand-band);color:white;font-size:12px;min-width:0}
.workbench-search>input{flex:1;min-width:80px;height:25px;padding:2px 7px;border:1px solid #9faeb8;background:#fff;font-size:12px}
.workbench-search select{max-width:150px;min-width:85px;height:25px;border:1px solid #9faeb8;background:#fff;font-size:12px}
.workbench-search button{padding:3px 9px;border:1px solid #82b7d8;border-radius:2px;color:#fff;background:#0c76a8;white-space:nowrap;font-size:12px}
.module-workbench{display:grid;grid-template-columns:186px minmax(0,1fr) 183px;gap:10px;min-height:0}
.classification-pane,.workbench-right{min-height:0;background:var(--crm-page);overflow:auto}
.classification-pane{border-right:1px solid #b8d6ec;padding-bottom:10px}
.workbench-pane-heading{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#123d5b;background:var(--crm-section-band);border-bottom:1px solid #8ec5e6;font-size:13px}
.workbench-pane-heading button{border:0;background:transparent;color:#26862c;font-size:22px;line-height:1}
.all-information{display:block;width:calc(100% - 14px);margin:8px 7px;padding:7px 3px;background:#c7e7f5;border:1px solid transparent;text-align:center;color:#17476a;font-weight:bold;font-size:12px}
.all-information.active{background:#9dcce1;border-color:#94c2d9}
.classification-group{margin:7px;border:0;font-size:12px}
.classification-group>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:6px 8px;background:#9dcce1;font-weight:bold;cursor:pointer;min-height:29px}
.classification-group>summary::-webkit-details-marker{display:none}
.classification-group[open]>summary>span{transform:rotate(180deg)}
.classification-options{background:#fff;border:1px solid #93c7e3;padding:3px 2px;overflow:auto;max-height:52vh}
.classification-item{display:flex;gap:3px;align-items:center;width:100%;min-height:25px;padding:3px 6px;border:0;background:transparent;color:#213d50;text-align:left;white-space:nowrap;font-size:12px}
.classification-item span{overflow:hidden;text-overflow:ellipsis}.classification-item small{font-size:11px;color:#567283}
.classification-item:hover{background:#edf6fd}.classification-item.active{background:#bedcf3;color:#153b70;outline:1px solid #94bcd8}
.department-branch{margin-left:9px}.department-branch:first-child{margin-left:0}
.department-branch>summary{display:flex;align-items:center;cursor:pointer}.department-branch>summary::before{content:'⊟';color:#6686a1;font-size:12px}.department-branch:not([open])>summary::before{content:'⊞'}
.department-branch>summary::-webkit-details-marker{display:none}.department-branch>div{border-left:1px dotted #b7c9d4;margin-left:4px;padding-left:4px}
.classification-item.department-choice{padding-left:3px}.classification-item.department-choice span::before{content:'▣ ';color:#d4aa60}
.classification-item.employee-choice span::before{content:'♟ ';color:#507f9f}
.tree-branch{margin-left:8px}.tree-branch:first-child{margin-left:0}.tree-branch>summary{display:flex;align-items:center;cursor:pointer;list-style:none}.tree-branch>summary::-webkit-details-marker{display:none}.tree-branch>summary>.tree-expander{margin-left:auto;padding:0 5px;color:#6686a1;font-size:12px}.tree-branch:not([open])>summary>.tree-expander{transform:rotate(-90deg)}.tree-branch>div{border-left:1px dotted #b7c9d4;margin-left:5px;padding-left:5px}.classification-item.tree-choice span::before{content:'▰ ';color:#d3aa61}.classification-item.tree-leaf{padding-left:14px}.classification-item.tree-leaf span::before{content:'▤ ';color:#5c88a4}
.date-shortcuts{display:flex;gap:2px;padding:4px 2px}.date-shortcuts button,.calendar-today button,.calendar-range>button{flex:1;border:1px solid #a9c8dc;background:#eef7fd;color:#235d84;padding:4px 2px;font-size:11px;cursor:pointer}.date-shortcuts button:hover,.calendar-today button:hover,.calendar-range>button:hover{background:#d8edf9}.calendar-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 5px;color:#23577b}.calendar-heading button{border:0;background:transparent;color:#286995;font-size:18px;line-height:1;cursor:pointer}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;padding:0 3px}.calendar-weekdays{color:#7b8e9d;font-size:10px;text-align:center}.calendar-grid{margin-top:2px}.calendar-day{border:0;background:transparent;min-height:22px;color:#2c4a60;font-size:11px;cursor:pointer}.calendar-day:hover{background:#e5f3fb}.calendar-day.outside-month{color:#b7c3cc}.calendar-day.selected{background:#3989b5;color:#fff;font-weight:bold}.calendar-day.in-range:not(.selected){background:#d9edf8}.calendar-today{display:flex;align-items:center;gap:5px;padding:5px 3px;font-size:10px;color:#6e8290}.calendar-today button{flex:0 0 42px;padding:3px}.calendar-range{display:grid;grid-template-columns:1fr 1fr auto;gap:3px;padding:4px 2px;border-top:1px solid #d5e4ed}.calendar-range label{display:grid;gap:2px;font-size:10px;color:#60798a}.calendar-range input{min-width:0;width:100%;height:23px;border:1px solid #b5cad8;font-size:10px}.calendar-range>button{align-self:end;flex:0 0 auto;padding:3px 5px}
.pane-note{margin:10px;color:#6b8193;font-size:11px;line-height:1.6}
.record-browser{display:grid;grid-template-rows:54px 29px minmax(0,1fr) 28px 34px;min-width:0;min-height:0;margin:12px 0 10px;padding:0 14px;background:#fff;border:1px solid #b6d4e6;box-shadow:0 2px 8px #4c687a29}
.record-browser h3{display:flex;align-items:center;justify-content:center;margin:0;font-family:SimSun,'Microsoft YaHei',serif;font-size:21px;font-weight:600;letter-spacing:2px;color:#172a39}
.browser-tools{display:flex;align-items:center;gap:0}.browser-tools>button{height:27px;padding:1px 5px;border:0;background:#e4f3ff;color:#12558c;font-size:13px}.browser-tools button:hover:not(:disabled){background:#c5e6fc}.browser-tools button:disabled{color:#8195a7;cursor:default}
#moduleSelectionHint{margin-left:auto;color:#7d8e9a;font-size:11px;white-space:nowrap}
.workbench-grid.table-wrap{min-height:0;overflow:auto;border:1px solid #98a7b1;border-radius:0}
#moduleTable{min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;color:#152c3d;font-size:12px}
#moduleTable th{height:26px;padding:3px 5px;background:var(--crm-table-heading);color:#142e45;font-size:12px;font-weight:normal;border-right:1px solid #96adbf;border-bottom:1px solid #8294a1;position:sticky;top:0;z-index:1;overflow:hidden;text-overflow:ellipsis}
#moduleTable td{height:25px;max-height:25px;padding:2px 5px;color:#192c3b;font-size:12px;border-bottom:1px dotted #c9d5dd;overflow:hidden;text-overflow:ellipsis;border-radius:0}
#moduleTable tbody tr:nth-child(even){background:#f0f7fc}#moduleTable tbody tr:nth-child(odd){background:#fff}
#moduleTable tbody tr:hover{background:#e2eef9}#moduleTable tbody tr.selected{background:#c9cdd1;outline:1px dotted #7a8a97;outline-offset:-1px}
#moduleTable tbody tr:focus-visible{outline:2px solid #4a83b5;outline-offset:-2px}
#moduleTable td.row-number{background:var(--crm-table-heading);text-align:right;border-right:1px solid #96adbf;color:#2b4a66;font-size:11px}#moduleTable .memo-mark{text-align:center;padding:0}
.alphabet-filter{display:flex;align-items:center;justify-content:center;gap:1px;min-width:0;overflow:auto}
.alphabet-filter button{border:0;background:transparent;padding:2px 5px;color:#2d4088;text-decoration:underline;font:12px Georgia,serif;flex-shrink:0}.alphabet-filter button.active{background:#d5e8fa;color:#0b3570;font-weight:bold}
.workbench-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border-top:1px solid #d9e5ee;font-size:11px;color:#526d82}
.workbench-pagination>div{display:flex;align-items:center;gap:4px;white-space:nowrap}.workbench-pagination button{height:24px;min-width:24px;border:1px solid #b3c8da;background:#eef6fd;color:#20507a;border-radius:2px}.workbench-pagination button:disabled{opacity:.4;cursor:default}
.workbench-pagination input{width:40px;height:24px;border:1px solid #b3c8da;text-align:center;font-size:11px}.workbench-pagination select{height:24px;border:1px solid #b3c8da;font-size:11px;background:#fff;color:#334f65}
.workbench-right{display:grid;grid-template-rows:minmax(0,45.6%) minmax(0,1fr);border-left:1px solid #b8d6ec;overflow:hidden}
.shortcut-pane,.statistics-pane{display:grid;grid-template-rows:30px minmax(0,1fr);min-height:0;min-width:0;overflow:hidden}
#moduleShortcuts,#moduleCharts{min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
#moduleCharts{padding-bottom:10px}
.workbench-link{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;padding:5px 15px;border:0;background:transparent;text-align:left;color:#286895;font-size:13px;min-height:29px}.workbench-link:hover{background:#cee7fa}.workbench-link>span:first-child{min-width:0;overflow-wrap:anywhere}.workbench-link>span:last-child{color:#7952a5;font-size:12px}
.workbench-link[aria-disabled=true]{cursor:help}.workbench-link[aria-disabled=true]>span:last-child{color:#9e9aa7}.workbench-link.primary-shortcut{margin:14px 0 40px}
.module-tabs{display:flex;align-items:stretch;overflow-x:auto;border-top:1px solid #91b3d2;background:#cde5f9;gap:1px;padding:2px 4px 0}.module-tabs button{white-space:nowrap;padding:3px 14px;border:1px solid #9ebbd3;border-bottom:0;background:#d9eafb;color:#2c527a;font-size:12px}.module-tabs button.active{background:#fff;color:#113d71;border-top:2px solid #397caf;font-weight:bold}
.statistics-dialog{width:min(740px,calc(100vw - 28px));padding:17px;max-height:85vh;border:1px solid #92b2cc;border-radius:3px;background:#f9fcff}.statistics-dialog h3{font-size:16px;color:#234e76}.statistics-dialog>p{font-size:12px;color:#657d91;line-height:1.6}#statisticsChart{max-height:65vh;overflow:auto}#statisticsChart svg{width:100%;min-width:450px;display:block}
@media(max-width:1050px){.module-workbench{grid-template-columns:155px minmax(0,1fr) 153px;gap:7px}.record-browser{padding:0 8px}.workbench-link{padding:5px 9px;font-size:12px}#moduleSelectionHint{display:none}.workbench-pagination{flex-wrap:wrap;justify-content:center;align-content:center;gap:3px}.record-browser{grid-template-rows:46px 29px minmax(0,1fr) 28px 52px}.alphabet-filter{justify-content:flex-start}}
@media(max-width:700px){#moduleView{height:auto;min-height:calc(100dvh - 35px);grid-template-rows:auto auto 34px}.workbench-search{flex-wrap:wrap}.workbench-search>input{flex-basis:50%}.module-workbench{grid-template-columns:125px minmax(0,1fr);gap:5px}.record-browser{height:68vh;margin:7px 4px 5px 0}.workbench-right{grid-column:1/-1;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);height:230px;max-height:230px;border-top:1px solid #b8d6ec}.workbench-link.primary-shortcut{margin:6px 0}.classification-options{max-height:48vh}.workbench-pagination>div{gap:2px}.workbench-pagination select{max-width:70px}.module-mode .topbar .avatar{display:none}.module-mode .topbar .user-menu{font-size:10px}.module-mode .topbar h2{font-size:11px}.module-mode .module-navigation-toggle{font-size:11px;padding:3px 6px}.record-browser h3{font-size:17px}}
@media print{body.module-mode .topbar,.classification-pane,.workbench-right,.module-tabs,.workbench-search,.browser-tools,.alphabet-filter,.workbench-pagination,.toast{display:none!important}#moduleView{display:block;height:auto;background:white}.module-workbench{display:block}.record-browser{display:block;margin:0;padding:0;border:0;box-shadow:none}.record-browser h3{padding:15px}.workbench-grid.table-wrap{overflow:visible;border:0}#moduleTable{width:100%!important;table-layout:auto}#moduleTable th{position:static}#moduleTable td{font-size:9px;white-space:normal;overflow:visible}#moduleTable tbody tr.selected{outline:0;background:inherit}}
