/* Ansys Sherlock 2022 R1 (splash window) web clone — measured Win7 layout.
 * Reference capture: /data/dev/ansys2202r1-work/shots/sherlock-main.png (1024x768,
 * PrintWindow frame included, black desktop margins).
 *   window frame: title bar rows 0..30, 8 px black border left/right/bottom
 *   CLIENT area  = abs (8,31)-(1015,759) -> 1008x729 px
 * Every number below is a CLIENT pixel coordinate measured from that capture.
 *
 * Vertical structure (client px):
 *   0..21    menu bar, vertical "aero" gradient #f9fafb -> #d6d9df (measured per row);
 *            menu text ink rows 7..15
 *   22       #9297a1 rule (full width)
 *   23       #d6d9df (full width)
 *   24..25   #d6d9df left of the splitter; blue splash already starts at row 24
 *   26       #9297a1 tree-pane top border
 *   27..724  tree pane interior (pure white, empty hierarchy)
 *   725      #9297a1 tree-pane bottom border
 *   726..728 #d6d9df:
 *            - rows 726..727 keep the blue splash (brand bg ends at row 727)
 *            - row 728 is the frame colour across the whole client width
 * Horizontal structure (client px):
 *   0..2     #d6d9df frame     3  #9297a1 | 4..197 white tree pane | 198 #9297a1
 *   199..200 #d6d9df | 201 #9297a1 | 202 #ededf0 | 203..208 #d6d9df | 209 #edeef1
 *   210 #9297a1 (splitter) | 211..1006 blue splash (796 px) | 1007 #d6d9df frame
 *   Splash gradient is purely HORIZONTAL (verified: identical rgb for every y in
 *   55..755): (250,251,252) at client x 211, linear to (22,85,124) at x 990 and
 *   flat #16557c from there to x 1006 -> stop at 96.9 %.
 *   Brand lockup bitmap sits at client (719,89), 213x76 (white ink alpha-extracted
 *   from the reference capture, == apps/sherlock/assets/brand/sherlock-brand.png).
 * Fonts: classic Win32 app -> Segoe UI family metrics; the closest faces available
 *   in the headless renderer are Liberation Sans (Arial metrics) / Cantarell.
 */
:root {
  --sh-face: #f0f0f0;
  --sh-menu: #ffffff;
  --sh-rule: #9297a1;
  --sh-frame: #d6d9df;
  --sh-face-light: #ededf0;
  --sh-ink: #000;
  --sh-hover: #cce4f7;
  --sh-blue-near: #fafbfc;
  --sh-blue-far: #16557c;
  /* Segoe UI is the real Win7 face; the closest deterministic substitute available in
   * the headless renderer is Liberation Sans (Arial metrics) — validated by pixel diff
   * against the reference capture (Liberation Sans 12 px reproduces the menu ink
   * extents to +-1 px; Cantarell/Noto/Carlito were all measurably worse). */
  --sh-font: "Liberation Sans", "Arimo", Arial, sans-serif;
  --sh-font-ui: "Liberation Sans", "Arimo", Arial, sans-serif;
  --fz-menu: 12px;
  --fz-dialog: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 1008px; height: 729px;
  overflow: hidden; background: var(--sh-frame); color: var(--sh-ink);
  font-family: var(--sh-font); font-size: 12px;
  user-select: none; -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; display: block; }
.win {
  position: relative; width: 1008px; height: 729px; overflow: hidden;
  background: var(--sh-frame);
}

/* ------------------------------------------------------------- menu bar */
.menubar {
  position: absolute; left: 0; top: 0; width: 1008px; height: 22px;
  background: linear-gradient(to bottom,
    #f9fafb 0px, #f6f7f8 1px, #f8f8f8 2px, #fafafa 3px, #fbfbfb 4px,
    #fdfdfd 5px, #fbfbfb 6px, #f7f8f9 7px, #f4f5f6 8px, #f1f2f4 9px,
    #eeeff2 10px, #ebecee 11px, #e8e9ed 12px, #e4e6ea 13px, #e0e3e7 14px,
    #dde0e5 15px, #dadee2 16px, #d7dae0 17px, #d6d9df 18px, #d6d9df 22px);
}
.menubar .m {
  position: absolute; top: 0; height: 22px; line-height: 24px;
  padding: 0 4px; font-family: var(--sh-font-ui); font-size: var(--fz-menu);
  color: var(--sh-ink); white-space: nowrap; cursor: default;
}
.menubar .m:hover, .menubar .m.open { background: rgba(204, 228, 247, 0.85); }
.menuline { position: absolute; left: 0; top: 22px; width: 1008px; height: 1px; background: var(--sh-rule); }

/* ---------------------------------------------------------- tree pane */
.treebox {
  position: absolute; left: 3px; top: 26px; width: 196px; height: 700px;
  background: #fff; border: 1px solid var(--sh-rule); overflow: hidden;
}
.treebox .trow { position: absolute; left: 0; width: 194px; height: 17px; cursor: default; }
.treebox .trow .lbl { position: absolute; left: 20px; top: 1px; height: 16px; line-height: 16px; white-space: nowrap; }
.treebox .trow .tw { position: absolute; left: 8px; top: 4px; width: 9px; height: 9px; border: 1px solid #808080; }
.treebox .trow.sel .selbg { position: absolute; left: 0; top: 0; width: 194px; height: 17px; background: #cce4f7; }
.treebox .trow:hover { background: #eaf3fb; }

/* ---------------------------------------------------------- splitter */
.splitter {
  position: absolute; left: 199px; top: 24px; width: 12px; height: 704px;
  background: linear-gradient(to right,
    #d6d9df 0px, #d6d9df 2px, #9297a1 2px, #9297a1 3px, #ededf0 3px,
    #ededf0 4px, #d6d9df 4px, #d6d9df 10px, #edeef1 10px, #edeef1 11px,
    #9297a1 11px, #9297a1 12px);
  cursor: default;
}
/* collapse / expand chevrons: client (204..207, 57..62) and (204..207, 69..74) */
.splitter .sp-arrow { position: absolute; left: 5px; width: 0; height: 0; }
.splitter .sp-arrow.a1 {
  top: 33px; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-right: 4px solid #3c3c3c;
}
.splitter .sp-arrow.a2 {
  top: 45px; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-left: 4px solid #3c3c3c;
}
/* splitter grip: client (204..207, 366..382) */
.splitter .sp-grip {
  position: absolute; left: 5px; top: 342px; width: 4px; height: 17px;
  border: 1px solid #9297a1; border-radius: 2px; background: #cdd0d7;
}

/* --------------------------------------------------------- brand splash */
.brand {
  position: absolute; left: 211px; top: 24px; width: 796px; height: 704px;
  background: linear-gradient(to right,
    var(--sh-blue-near) 0%, var(--sh-blue-far) 96.9%, var(--sh-blue-far) 100%);
  overflow: hidden;
}
.brand .brand-logo { position: absolute; left: 508px; top: 65px; width: 213px; height: 76px; }

/* --------------------------------------------------------- menu popups */
.menupop {
  position: absolute; z-index: 200; min-width: 168px; background: #f0f0f0;
  border: 1px solid #9297a1; box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.35); padding: 2px;
  font-family: var(--sh-font-ui);
}
.menupop .mi { position: relative; height: 20px; line-height: 20px; padding: 0 22px 0 24px; font-size: 12px; white-space: nowrap; cursor: default; }
.menupop .mi:hover { background: #cce4f7; }
.menupop .mi.disabled { color: #909090; }
.menupop .mi.disabled:hover { background: transparent; color: #909090; }
.menupop .sep { height: 1px; margin: 3px 2px; background: #b8b8b8; }
.menupop .mi .accel { position: absolute; right: 8px; top: 0; color: #555; }
.menupop .mi .chk { position: absolute; left: 8px; top: 0; }

/* ------------------------------------------------------ numeric dialog */
.dim { position: absolute; left: 0; top: 0; width: 1008px; height: 729px; background: rgba(0,0,0,0.0); z-index: 300; }
.dialog {
  position: absolute; background: var(--sh-face); border: 1px solid #6b7078;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.35); font-family: var(--sh-font-ui); font-size: 12px;
}
.dialog .dlgtitle {
  position: relative; height: 22px; line-height: 22px; padding: 0 6px;
  background: linear-gradient(#f7f7f7, #e8e8e8); border-bottom: 1px solid #cfcfcf;
}
.dialog .dlgtitle .x {
  position: absolute; right: 2px; top: 2px; width: 19px; height: 17px; text-align: center;
  line-height: 16px; font-size: 12px; cursor: default;
}
.dialog .dlgtitle .x:hover { background: #f4b8b0; border: 1px solid #c94f45; }
.dialog .dlgbody { padding: 8px 10px; }
.dialog .dlgfoot { padding: 6px 10px 8px; border-top: 1px solid #dcdcdc; text-align: right; }
.winbtn {
  height: 23px; padding: 0 16px; margin-left: 6px; font-family: var(--sh-font-ui); font-size: 12px;
  background: #f0f0f0; border: 1px solid #9297a1; cursor: default;
}
.winbtn:hover { background: #e8f0fa; }
table.bench { border-collapse: collapse; width: 100%; font-size: 11px; }
table.bench th {
  background: #e4e4e4; border: 1px solid #b8b8b8; padding: 3px 6px;
  font-weight: 400; text-align: left; white-space: nowrap;
}
table.bench td { border: 1px solid #d8d8d8; padding: 2px 6px; background: #fff; white-space: nowrap; }
table.bench td.mono, table.bench th.num { font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; font-size: 10.5px; }
table.bench td.verdict-pass { color: #006000; font-weight: 700; }
table.bench td.verdict-fail { color: #a00000; font-weight: 700; }
.dlgbody .summary { margin-top: 8px; font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; font-size: 11.5px; }
.dlgbody .note { margin-top: 6px; color: #444; font-size: 11px; }
