/* PolyFlow (Polyman) 2022 R1 web clone — measured Win7 classic layout.
 * Reference: /data/dev/ansys2202r1-work/shots/polyflow-main.png (800x600 window capture,
 * frame included).  Client area = abs (8,31)-(791,591) -> 784x561 px; every number below
 * is a CLIENT pixel coordinate measured from that reference crop.
 *
 * Vertical bands (client px):
 *   0..17   menu bar, white
 *   18      #f2f2f2
 *   19..47  toolbar #f0f0f0 (16 icon buttons, 4 etched separators)
 *   48      white rule over the right side; the left list box border sits on the same row
 *   48..535 left list box (white, #828790 border), 250 wide
 *   52..253 right log box (sunken), 526 wide, "Welcome to the POLYFLOW environment!"
 *   259..465 second info box (tab page of the Comments/Listing control)
 *   468..507 Save / Cancel band
 *   508..535 Comments / Listing tab strip
 *   536..560 status bar, "Welcome to Polyman !"
 * Fonts: classic Win32/Win7 app -> Segoe UI for chrome, Courier/Consolas metrics for the
 *   log; the closest faces available in the headless renderer are used.
 */
:root {
  --pf-f0: #f0f0f0;
  --pf-face: #f0f0f0;
  --pf-border: #828790;
  --pf-sunken: #696969;
  --pf-text: #000;
  --pf-menu: #ffffff;
  --pf-hover: #d9e8fb;
  --pf-selected: #cce4f7;
  --font-pf: "Open Sans Light", "Open Sans", "Segoe UI", "Tahoma", "Liberation Sans", Arial, sans-serif;
  --font-pf-mono: "FreeMono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  --fz-menu: 12.5px;
  --fz-status: 13px;
  --fz-btn: 12px;
  --fz-log: 11px;
  --fz-text: 12px;
  --fz-tab: 11.5px;
  --fw-pf: 400;
  --ls-pf: 0.1px;
}
html, body {
  margin: 0; padding: 0;
  width: 784px; height: 561px;
  overflow: hidden;
  background: #f0f0f0;
}
body {
  font-family: var(--font-pf);
  font-weight: var(--fw-pf);
  letter-spacing: var(--ls-pf);
  font-size: 12px;
  color: var(--pf-text);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; display: block; }
.pfwin { position: relative; width: 784px; height: 561px; overflow: hidden; background: #f0f0f0; }

/* ------------------------------------------------------------- menu bar */
.menubar { position: absolute; left: 0; top: 0; width: 784px; height: 18px; background: #fff; }
.menubar .m {
  position: absolute; top: 0; height: 18px; line-height: 17px;
  padding: 1px 6px 0; font-size: var(--fz-menu); color: #000; white-space: nowrap; cursor: default;
}
.menubar .m:hover, .menubar .m.open { background: var(--pf-hover); }
.menuline { position: absolute; left: 0; top: 18px; width: 784px; height: 1px; background: #f2f2f2; }

/* -------------------------------------------------------------- toolbar */
.toolbarline1 { position: absolute; left: 0; top: 20px; width: 784px; height: 1px; background: #a0a0a0; }
.toolbarline2 { position: absolute; left: 0; top: 21px; width: 784px; height: 1px; background: #fff; }
.toolbar { position: absolute; left: 0; top: 22px; width: 784px; height: 26px; background: var(--pf-f0); }
.toolbar .tb {
  position: absolute; top: 0; height: 26px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: 2px;
  cursor: default; overflow: visible;
}
.toolbar .tb:hover { background: #d5e8f7; border-color: #7eb4ea; }
.toolbar .tb:active { background: #cce4f7; }
.toolbar .tb img { position: absolute; left: 3px; }
.toolbar .tbsep { position: absolute; top: 2px; height: 18px; width: 2px; }
.toolrule { position: absolute; left: 0; top: 48px; width: 784px; height: 1px; background: #fff; }
.toolrule2 { position: absolute; left: 258px; top: 49px; width: 526px; height: 1px; background: #e3e3e3; }

/* --------------------------------------------------------- left list box */
.listwrap { position: absolute; left: 0; top: 48px; width: 250px; height: 488px; background: #fff; }
.listbox {
  position: absolute; left: 0; top: 0; width: 250px; height: 488px;
  background: #fff; border: 1px solid var(--pf-border);
  overflow: auto; outline: none;
  font-size: var(--fz-text);
}
.listbox .item {
  height: 17px; line-height: 17px; padding: 0 4px 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default;
}
.listbox .item:hover { background: #eaf3fb; }
.listbox .item.selected { background: var(--pf-selected); }
.listbox .item .kind { color: #4a4a4a; margin-left: 6px; }
.listbox .empty { color: #808080; padding: 6px; }

/* ------------------------------------------------------------- splitter */
.splitter { position: absolute; left: 250px; top: 49px; width: 8px; height: 487px; background: var(--pf-f0); }
.splitline { position: absolute; left: 254px; top: 49px; width: 1px; height: 487px; background: #fff; box-shadow: 1px 0 0 #e3e3e3; }

/* --------------------------------------------------------------- sunken box */
.sunken {
  position: absolute;
  background: #fff;
  border: 1px solid #a0a0a0;
  border-right-color: #696969;
  border-bottom-color: #838383;
  box-shadow:
    inset 1px 0 0 #696969, inset 2px 0 0 #ececec, inset 3px 0 0 #fefefe,
    inset 0 1px 0 #696969, inset 0 2px 0 #ececec, inset 0 3px 0 #fefefe,
    inset -1px 0 0 #a0a0a0, inset 0 -1px 0 #fefefe;
}
#logbox { left: 258px; top: 52px; width: 526px; height: 202px; }
/* box 2 is a tab page: light top/bottom edges only (see reference rows 258/259, 466) */
#infobox {
  left: 258px; top: 258px; width: 526px; height: 209px;
  border-top-color: #ececec; border-bottom-color: #fefefe;
  box-shadow:
    inset 1px 0 0 #696969, inset 2px 0 0 #ececec, inset 3px 0 0 #fefefe,
    inset 0 1px 0 #fefefe, inset -1px 0 0 #a0a0a0, inset 0 -1px 0 #fefefe;
}
.textpane {
  position: absolute; left: 4px; top: 4px; right: 25px; bottom: 4px;
  overflow: hidden; color: #000; white-space: pre-wrap; word-break: break-word;
}
.textpane.mono { font-family: var(--font-pf-mono); font-size: var(--fz-log); line-height: 15px; letter-spacing: 0; }
.textpane.sans { font-family: var(--font-pf); font-size: var(--fz-text); line-height: 16px; }
.vscroll {
  position: absolute; right: 1px; top: 3px; bottom: 3px; width: 22px;
  background: #f0f0f0; border-left: 1px solid #e0e0e0;
  display: flex; flex-direction: column;
}
.vscroll .sb-up, .vscroll .sb-down {
  position: relative; height: 15px; flex: 0 0 15px; background: #f0f0f0;
}
.vscroll .sb-up { border-bottom: 1px solid #dcdcdc; }
.vscroll .sb-down { border-top: 1px solid #dcdcdc; }
.vscroll .sb-up::after, .vscroll .sb-down::after {
  content: ""; position: absolute; left: 5px; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.vscroll .sb-up::after { top: 4px; border-bottom: 6px solid #8a8a8a; }
.vscroll .sb-down::after { top: 5px; border-top: 6px solid #8a8a8a; }
.vscroll .sb-track { position: relative; flex: 1; background: #f0f0f0; }
.vscroll .sb-thumb {
  position: absolute; left: 1px; right: 1px; top: 2px; bottom: 2px;
  background: #f0f0f0; border: 1px solid #dcdcdc; border-radius: 0;
}

/* --------------------------------------------------------- button band */
.btnband {
  position: absolute; left: 250px; top: 467px; width: 534px; height: 41px;
  background: var(--pf-f0); border-top: 1px solid #838383;
}
.colborder {
  position: absolute; width: 2px; z-index: 3;
  background: linear-gradient(90deg, #a0a0a0 0 1px, #696969 1px 2px);
}
.colborder.left { left: 258px; }
.colborder.right { left: 782px; }
.colborder.top467 { top: 467px; height: 45px; }
.winbtn {
  position: absolute; top: 6px; height: 28px; width: 86px; line-height: 26px;
  background: #fdfdfd; border: 1px solid #d0d0d0; border-bottom-color: #b0b0b0;
  border-radius: 2px;
  font-family: var(--font-pf); font-size: var(--fz-btn); color: #1a1a1a;
  cursor: default; padding: 0;
}
.winbtn:hover { background: #ecf6fc; border-color: #7eb4ea; }
.winbtn:active { background: #dcecf9; border-color: #569de5; }
.winbtn:focus { outline: none; }
#btn-save { left: 16px; }
#btn-cancel { left: 114px; }

/* ------------------------------------------------------------- tab strip */
.tabband { position: absolute; left: 250px; top: 508px; width: 534px; height: 28px; background: var(--pf-f0); }
.tabband .tabsline { position: absolute; left: 10px; top: 0; width: 521px; height: 1px; background: #e3e3e3; }
.tabband .tabsline2 { position: absolute; left: 10px; top: 1px; width: 521px; height: 1px; background: #fff; }
.tabband .tabtopdark {
  position: absolute; left: 80px; top: 2px; width: 451px; height: 2px;
  background: linear-gradient(#a0a0a0 0 1px, #696969 1px 2px);
}
.wintab {
  position: absolute; text-align: center; font-size: var(--fz-tab); color: #000;
  background: var(--pf-f0); cursor: default; white-space: nowrap;
}
#tab-comments {
  left: 4px; top: 2px; width: 76px; height: 26px; line-height: 27px;
  border-left: 1px solid #fff; border-bottom: 1px solid #696969;
  box-shadow: inset 1px 0 0 #e3e3e3, inset 0 -1px 0 #a0a0a0;
}
#tab-comments:hover { background: #e8f1fa; }
#tab-listing {
  left: 80px; top: 2px; width: 49px; height: 24px; line-height: 23px;
  border: 1px solid; border-color: #a0a0a0 #696969 #696969 #a0a0a0;
  background: var(--pf-f0);
  box-shadow: inset 0 1px 0 #696969, inset 0 -1px 0 #a0a0a0, inset 1px 0 0 #696969, inset -1px 0 0 #a0a0a0;
}
#tab-listing:hover { background: #e8f1fa; }

/* ------------------------------------------------------------- status bar */
.statusbar {
  position: absolute; left: 0; top: 536px; width: 784px; height: 25px;
  background: var(--pf-f0); border-top: 1px solid #d7d7d7;
}
.statusbar .msg {
  position: absolute; left: 2px; top: 1px; height: 23px; line-height: 23px;
  font-size: var(--fz-status); color: #000;
}
.statusbar .divider { position: absolute; left: 382px; top: 1px; width: 1px; height: 24px; background: #d7d7d7; }
.statusbar .grip {
  position: absolute; right: 5px; bottom: 3px; width: 8px; height: 8px;
  background-image: radial-gradient(#bfbfbf 1px, transparent 1.2px);
  background-size: 3px 3px; background-position: 0 0;
  opacity: .9;
}

/* --------------------------------------------------------------- dropdown */
.pfmenu {
  position: absolute; z-index: 8000; min-width: 150px;
  background: #fff; border: 1px solid #a0a0a0;
  box-shadow: 2px 2px 4px rgba(0,0,0,.28);
  padding: 2px 0; font-size: 12px;
  font-family: var(--font-pf);
}
.pfmenu .mi {
  display: flex; align-items: center; height: 22px; padding: 0 22px 0 8px;
  white-space: nowrap; cursor: default; position: relative;
}
.pfmenu .mi:hover { background: var(--pf-hover); }
.pfmenu .mi .sc { margin-left: auto; padding-left: 28px; color: #666; }
.pfmenu .sep { height: 1px; background: #e0e0e0; margin: 2px 0; }

/* --------------------------------------------------------------- dialogs */
.pf-dialog {
  position: absolute; z-index: 9000;
  background: #f0f0f0; border: 1px solid #6e6e6e;
  box-shadow: 3px 3px 10px rgba(0,0,0,.35);
  font-family: var(--font-pf); font-size: 12px; color: #000;
}
.pf-dialog .titlebar {
  height: 22px; display: flex; align-items: center;
  background: linear-gradient(#f7f7f7, #e8e8e8);
  border-bottom: 1px solid #cfcfcf; padding: 0 3px 0 7px;
}
.pf-dialog .titlebar .ttl { font-weight: 400; }
.pf-dialog .titlebar .x {
  margin-left: auto; width: 19px; height: 17px; display: grid; place-items: center;
  border: 1px solid transparent; font-family: var(--font-pf); font-size: 12px; line-height: 1;
  background: transparent; color: #333; cursor: default;
}
.pf-dialog .titlebar .x:hover { background: #f4b8b0; border-color: #c94f45; color: #000; }
.pf-dialog .body { padding: 8px 10px 6px; }
.pf-dialog .foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 6px 10px 8px; border-top: 1px solid #dcdcdc;
}
.pf-dialog .foot .winbtn { position: static; width: 84px; height: 25px; }
.pf-dialog table.bench { border-collapse: collapse; width: 100%; font-size: 12px; }
.pf-dialog table.bench th {
  background: #e4e4e4; border: 1px solid #c0c0c0; padding: 2px 6px;
  font-weight: 400; text-align: left; white-space: nowrap;
}
.pf-dialog table.bench td {
  border: 1px solid #d8d8d8; padding: 2px 6px; background: #fff;
  font-family: var(--font-pf-mono); font-size: 11px; white-space: nowrap;
}
.pf-dialog table.bench td.name { font-family: var(--font-pf); font-size: 12px; }
.pf-dialog table.bench tr.sel td { background: #dbeafa; }
.pf-dialog table.bench td.verdict-PASS { color: #0a6b0a; font-weight: 700; }
.pf-dialog table.bench td.verdict-FAIL { color: #b00000; font-weight: 700; }
.pf-dialog .summary { margin-top: 6px; font-size: 12px; }
.pf-dialog .summary b.pass { color: #0a6b0a; }
.pf-dialog .summary b.fail { color: #b00000; }
.pf-dialog .detail {
  margin-top: 6px; padding: 4px 6px; height: 74px; overflow: auto;
  background: #fff; border: 1px solid #a0a0a0;
  font-family: var(--font-pf-mono); font-size: 11px; line-height: 14px; white-space: pre-wrap;
}
.pf-dialog .formrow { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.pf-dialog .formrow label { width: 118px; }
.pf-dialog .formrow input[type="text"], .pf-dialog .formrow select {
  width: 110px; height: 20px; font-family: var(--font-pf-mono); font-size: 11px;
  border: 1px solid #a0a0a0; background: #fff; padding: 0 3px;
}
.pf-dialog canvas { display: block; background: #fff; border: 1px solid #a0a0a0; }
.pf-dialog .err { color: #b00000; }
.pf-dialog .logwin {
  margin-top: 6px; height: 120px; overflow: auto; background: #fff;
  border: 1px solid #a0a0a0; font-family: var(--font-pf-mono); font-size: 11px;
  line-height: 14px; white-space: pre-wrap; padding: 3px 5px;
}