/* EnSight 2022 R1 web clone — 客户区实测布局（中文界面）。
 * Reference: /data/dev/ansys2202r1-work/shots/ensight-main.png（1597x916 PrintWindow 含 8px 边框）
 *   → 客户区 abs (8,31)-(1588,907) = 1581x877；本页坐标一律为客户区坐标（abs − (8,31)）。
 *
 * 逐像素实测的纵向结构（客户区 px）：
 *   0..23     菜单栏（白底，中文墨迹 rows 5..17，文字色 #A0A0A0）
 *   24..63    工具栏（#F0F0F0；31px 图标 y28..58；左侧竖向夹点 x4..5；实线分隔 x563 + 白高光 x564；
 *             点线分隔 x568..569）
 *   64        1px #B9B9B9 全宽分隔线
 *   65..824   主体：左侧面板 x0..269（左右边框 #B9B9B9；间隙 x270..273）
 *             图形区 x274..1578：三层框 #E5E5E5/#F9F9F9/#000，主视口 #F3F3F3 x277..1363，
 *             右侧空白视口 #FFFFFF x1364..1575
 *   825       1px #FFFFFF
 *   826..876  底部工具条（#F0F0F0；20px 图标 y829..850；右侧 76x27 色板 x1505；分隔 x1494..1503）
 * 左面板内部（相对页面）：
 *   部件：66 线 / 67..83 标题 #DADADA / 84 线 / 85..86 底 / 87 线 / 88..107 列头渐变(20px) /
 *         108 列头底线 #ABABAB / 109..411 表体白 / 411..425 横向滚动条 / 426 线
 *   变量：427..431 底 / 432 线 / 433..449 标题 / 450 线 / 451..452 底 / 453 线 / 454..473 列头渐变 /
 *         474 列头底线 / 475..789 表体白 / 789..803 横向滚动条 / 804 线 / 805..824 页签
 * 颜色与结构均来自共享的 1581x877 参考截图裁切与逐行色值采样，chrome 细节（夹点/滚动条/色板）
 * 直接使用参考图 1:1 裁切 PNG（apps/ensight/assets/chrome/），避免二次绘制产生偏差。
 */
:root {
  --es-bg: #F0F0F0;
  --es-ink: #000000;
  --es-menu-ink: #A0A0A0;
  --es-line: #B9B9B9;
  --es-line-strong: #ABABAB;
  --es-hdr: #DADADA;
  --es-tab-active: #F9F9F9;
  --es-tab-idle: #F3F3F3;
  --es-view: #F3F3F3;
  --es-link: #0000FF;
  --es-font: "SimSun", "NSimSun", "Noto Serif CJK SC", "Noto Sans CJK SC", "Liberation Sans", Arial, sans-serif;
  --es-font-latin: "Liberation Sans", Arial, "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 1581px; height: 877px;
  overflow: hidden; background: var(--es-bg);
}
body {
  font-family: var(--es-font);
  font-size: 12px; color: var(--es-ink);
  user-select: none; -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; }
.win { position: relative; width: 1581px; height: 877px; overflow: hidden; background: var(--es-bg); }

/* ------------------------------------------------------------ 菜单栏 */
.menubar { position: absolute; left: 0; top: 0; width: 1581px; height: 24px; background: #FFFFFF; }
.menubar .m {
  position: absolute; top: 1px; height: 18px; line-height: 18px;
  font-size: 11.5px; color: var(--es-menu-ink); padding: 0 1px;
  cursor: default; white-space: nowrap;
}
.menubar .m:hover, .menubar .m.open { background: #E5F1FB; color: #000; }

/* 菜单弹层（复用共享 qt.css 的 .qtmenu，仅补快捷键列与中文字体） */
.qtmenu .mi { font-family: var(--es-font); font-size: 12px; display: flex; align-items: center; }
.qtmenu .mi .accel { margin-left: auto; padding-left: 26px; color: #6B6B6B; font-size: 11px; }

/* ------------------------------------------------------------ 工具栏 */
.toolbar { position: absolute; left: 0; top: 24px; width: 1581px; height: 40px; background: var(--es-bg); }
.toolbar .tb { position: absolute; top: 4px; height: 31px; cursor: default; }
.toolbar .tb:hover { background: #E5F1FB; outline: 1px solid #B9B9B9; }
.toolbar .tb img { display: block; }
.toolsep { position: absolute; left: 0; top: 64px; width: 1581px; height: 1px; background: var(--es-line); }
.tb-chrome { position: absolute; top: 24px; display: block; }

/* ------------------------------------------------------ 左侧面板容器 */
.leftpane {
  position: absolute; left: 0; top: 65px; width: 270px; height: 760px;
  background: var(--es-bg);
  border-left: 1px solid var(--es-line);
  border-right: 1px solid var(--es-line);
}
.leftpane > div, .leftpane > img { position: absolute; }
#partspanel, #varspanel { left: 0; top: 0; width: 268px; height: 0; }
#partspanel > *, #varspanel > * { position: absolute; }
.pane-gap { position: absolute; left: 270px; top: 65px; width: 4px; height: 760px; background: var(--es-bg); }

/* 横向分隔线 / 标题栏 / 底带 / 列头 / 表体 / 滚动条（坐标即页面坐标 − 65） */
.ln { left: 0; width: 268px; height: 1px; background: var(--es-line); }
.ln-strong { left: 0; width: 268px; height: 1px; background: var(--es-line-strong); }
.band { left: 0; width: 268px; background: var(--es-bg); }
.hdr { left: 0; width: 268px; height: 17px; background: var(--es-hdr); }
.hdr .t { position: absolute; left: 4px; top: 0; height: 17px; line-height: 17px; font-size: 12px; }
.hdrbtns { position: absolute; display: block; }
.colhdr {
  left: 0; width: 268px; height: 20px;
  background: linear-gradient(180deg,
    #FCFCFC 0%, #FCFCFC 5%, #FBFBFB 10%, #FAFAFA 15%, #FAFAFA 20%, #F9F9F9 25%,
    #F8F8F8 30%, #F8F8F8 35%, #F7F7F7 40%, #F6F6F6 45%, #F4F4F4 50%, #F3F3F3 55%,
    #F2F2F2 60%, #F2F2F2 65%, #F1F1F1 70%, #F0F0F0 75%, #F0F0F0 80%, #EFEFEF 85%,
    #EEEEEE 90%, #E8E8E8 95%, #E8E8E8 100%);
}
.colhdr .c { position: absolute; top: 0; height: 20px; line-height: 17px; font-size: 12px; }
.colhdr .v {
  position: absolute; top: 0; width: 1px; height: 20px;
  background: linear-gradient(180deg, #D4D4D4 0%, #CACACA 100%);
}
.body { left: 0; width: 268px; background: #FFFFFF; overflow: hidden; }
.body .row { position: absolute; left: 0; width: 268px; height: 18px; }
.body .row .cell { position: absolute; top: 0; height: 18px; line-height: 18px; font-size: 12px; }
.body .row .link { color: var(--es-link); font-family: var(--es-font-latin); }
.sbar { display: block; left: 0; }

/* ------------------------------------------------------------ 页签条 */
.tabstrip { left: 0; top: 740px; width: 268px; height: 20px; background: var(--es-bg); }
.tabstrip .tab {
  position: absolute; top: 0; height: 18px; font-size: 12px;
  background: var(--es-tab-idle); border-top: 1px solid #A0A0A0; border-bottom: 1px solid #E5E5E5;
  cursor: default; white-space: nowrap; overflow: hidden;
}
.tabstrip .tab.active {
  top: 0; height: 19px; background: var(--es-tab-active);
  border-top: 0; border-bottom: 0;
}
.tabstrip .tab.active + .tabshadow, .tabstrip .tabshadow {
  position: absolute; top: 19px; height: 1px; background: #E5E5E5;
}
.tabstrip .tab .tl { position: absolute; top: 0; height: 16px; line-height: 16px; }
.tabstrip .tab.active .tl { top: 1px; }
.tabstrip .tab:hover:not(.active) { background: #F7F7F7; }

/* ------------------------------------------------------------ 图形区 */
.viewport { position: absolute; left: 274px; top: 65px; width: 1305px; height: 759px; background: var(--es-view); }
.viewport > div { position: absolute; }
.vp-t1 { left: 0; top: 0; width: 1305px; height: 1px; background: #E5E5E5; }
.vp-t2 { left: 1px; top: 1px; width: 1303px; height: 1px; background: #F9F9F9; }
.vp-t3 { left: 2px; top: 2px; width: 1301px; height: 1px; background: #000000; }
.vp-b1 { left: 0; top: 758px; width: 1305px; height: 1px; background: #E5E5E5; }
.vp-b2 { left: 1px; top: 756px; width: 1303px; height: 2px; background: #F9F9F9; }
.vp-b3 { left: 2px; top: 755px; width: 1301px; height: 1px; background: #000000; }
.vp-l1 { left: 0; top: 1px; width: 1px; height: 757px; background: #E5E5E5; }
.vp-l2 { left: 1px; top: 2px; width: 1px; height: 754px; background: #F9F9F9; }
.vp-l3 { left: 2px; top: 3px; width: 1px; height: 752px; background: #000000; }
.vp-r1 { left: 1304px; top: 1px; width: 1px; height: 757px; background: #E5E5E5; }
.vp-r2 { left: 1303px; top: 2px; width: 1px; height: 754px; background: #F9F9F9; }
.vp-r3 { left: 1302px; top: 3px; width: 1px; height: 752px; background: #000000; }
.vp-main { left: 3px; top: 3px; width: 1087px; height: 752px; background: var(--es-view); overflow: hidden; }
.vp-side { left: 1090px; top: 3px; width: 212px; height: 752px; background: #FFFFFF; overflow: hidden; }
.vp-main canvas { position: absolute; left: 0; top: 0; display: block; }
.vp-main .axis { position: absolute; left: 61px; top: 567px; }
.axis-hint { position: absolute; left: 470px; top: 330px; color: #9C9C9C; font-size: 13px; letter-spacing: 1px; }
.rightedge { position: absolute; left: 1579px; top: 65px; width: 2px; height: 759px; background: #F3F3F3; }

/* ------------------------------------------------------------ 底部条 */
.prebottom { position: absolute; left: 274px; top: 824px; width: 1305px; height: 1px; background: #F3F3F3; }
.bottomline { position: absolute; left: 0; top: 825px; width: 1581px; height: 1px; background: #FFFFFF; }
.bottombar { position: absolute; left: 0; top: 826px; width: 1581px; height: 51px; background: var(--es-bg); }
.bottombar .bm { position: absolute; cursor: default; }
.bottombar .bm:hover { background: #E5F1FB; outline: 1px solid #B9B9B9; }
.bottombar .bm img { display: block; }

/* -------------------------------------------- 数值自检 / 查询结果窗口 */
.numwrap {
  position: absolute; left: 120px; top: 132px; width: 1340px; min-height: 120px;
  background: #1F1F1F; color: #E6E6E6; border: 1px solid #5A5A5A;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55); z-index: 50;
  font-family: var(--es-font-latin); font-size: 12px;
}
.numwrap[hidden] { display: none; }
.numtitle {
  height: 24px; line-height: 24px; padding: 0 8px; background: #2E2E2E;
  color: #F0F0F0; font-size: 12px; border-bottom: 1px solid #4A4A4A;
}
.numtitle .numclose { float: right; cursor: default; padding: 0 4px; }
.numtitle .numclose:hover { background: #C42B1C; }
.numbody { padding: 8px 10px; white-space: pre; font-family: "Liberation Mono", "DejaVu Sans Mono", monospace; font-size: 12px; line-height: 1.45; }
.numbody table { border-collapse: collapse; font-family: var(--es-font-latin); font-size: 12px; }
.numbody th { text-align: left; color: #9CC7FF; font-weight: 400; padding: 1px 14px 1px 0; border-bottom: 1px solid #4A4A4A; }
.numbody td { padding: 1px 14px 1px 0; }
.numbody td.pass { color: #7CE38B; }
.numbody td.fail { color: #FF8A80; }
.numfoot { padding: 6px 10px; border-top: 1px solid #4A4A4A; color: #D8D8D8; font-family: var(--es-font-latin); font-size: 12px; }

/* 轻量提示（工具按钮/菜单动作） */
.toast {
  position: absolute; left: 620px; top: 700px; padding: 5px 12px;
  background: #FFFFE1; color: #000; border: 1px solid #A0A0A0;
  box-shadow: 2px 2px 4px rgba(0,0,0,.25); font-size: 12px; z-index: 60;
}
.toast[hidden] { display: none; }