/* Ansys Mechanical APDL Product Launcher 2022 R1 — measured web replica.
 *
 * Reference: /data/dev/ansys2202r1-work/shots/apdl-launcher-clean.png
 *   PrintWindow capture 916x764; client area starts at (8,31) => 900x725.
 *   This page renders the CLIENT area only (OS title bar / 8px dark frame are
 *   non-client and are not reproduced), so the canvas is exactly 900x725.
 *
 * Vertical bands (client px, measured row by row on the reference):
 *    0.. 23   menu bar (black bg, white UI text)
 *   24..158   Simulation Environment frame (#696969 1px top/bottom, 2px sides)
 *  158..673   tab widget: 8px #696969 frame, tabs y163..207, page y211..665
 *  675..724   bottom command bar #282828 (Run / Cancel Run / Product Help)
 *
 * Palette taken from the capture: black #000 client, frame #696969,
 * control border #585858, edit border #808080, button face #585858 with
 * #656565 top/left highlight and #3B3B3B/#1D1D1D bottom/right shadow.
 * Fonts: labels/controls are Courier-style bold monospace (Windows ClearType
 * capture); menu bar is a UI sans face (Segoe UI lineage -> Noto Sans here).
 */
:root {
  --a-fg: #ffffff;
  --a-bg: #000000;
  --a-frame: #696969;
  --a-ctl-border: #585858;
  --a-edit-border: #808080;
  --a-btn-face: #585858;
  --a-btn-hi: #656565;
  --a-btn-sh: #3b3b3b;
  --a-btn-dk: #1d1d1d;
  --a-toolbar: #282828;
  --a-tab-sel: #808080;
  --a-disabled: #808080;
  --a-font-mono: "Liberation Mono", "Courier New", "Nimbus Mono PS", monospace;
  --a-font-ui: "Noto Sans", "Segoe UI", "DejaVu Sans", sans-serif;
  --a-fz: 11.7px;
  --a-fz-ui: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 900px; height: 725px; overflow: hidden; background: var(--a-bg); }
body {
  font-family: var(--a-font-mono);
  font-size: var(--a-fz);
  font-weight: 700;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  color: var(--a-fg);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; }
button { font-family: inherit; font-weight: inherit; color: inherit; }
.hidden { display: none !important; }
.apdlwin { position: relative; width: 900px; height: 725px; overflow: hidden; background: var(--a-bg); }

/* ===================================================================== menu bar */
.menubar { position: absolute; left: 0; top: 0; width: 900px; height: 24px; background: var(--a-bg); }
.menubar .m {
  position: absolute; top: 0; height: 24px; line-height: 24px; padding: 0 7px;
  font-family: var(--a-font-ui); font-size: var(--a-fz-ui); font-weight: 400; color: #fff;
  letter-spacing: 0; -webkit-text-stroke: 0;
  cursor: default; white-space: nowrap; background: transparent; border: 0;
}
.menubar .m:hover, .menubar .m.open { background: #2f4f6f; }
/* dropdown menus */
.cmenu.menu {
  position: absolute; z-index: 60; min-width: 150px; padding: 2px 0;
  background: #1b1b1b; border: 1px solid var(--a-frame); box-shadow: 2px 2px 0 rgba(0,0,0,.65);
  font-family: var(--a-font-mono); font-size: var(--a-fz); font-weight: 700; color: #fff;
}
.cmenu.menu .mi { position: relative; height: 20px; line-height: 20px; padding: 0 22px 0 20px; white-space: nowrap; cursor: default; }
.cmenu.menu .mi:hover { background: #2f4f6f; }
.cmenu.menu .mi.disabled { color: #6c6c6c; }
.cmenu.menu .mi.disabled:hover { background: transparent; }
.cmenu.menu .sep { height: 1px; margin: 3px 4px; background: #4a4a4a; }
.cmenu.menu .mi .acc { position: absolute; right: 8px; color: #bdbdbd; }

/* ======================================================= Simulation Environment box */
.gbox { position: absolute; left: 0; top: 24px; width: 900px; height: 135px; }
.gbox::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-top: 1px solid var(--a-frame); border-bottom: 1px solid var(--a-frame);
  border-left: 2px solid var(--a-frame); border-right: 2px solid var(--a-frame);
}
.gbox .lnc { position: absolute; left: 41px; top: 35px; width: 40px; height: 56px; }
.flabel { position: absolute; line-height: 1; color: #fff; white-space: nowrap; }
#lbl-env { left: 131px; top: 11px; }   /* ink top 34 (client) */
#lbl-lic { left: 131px; top: 58px; }   /* ink top 81 */

.combo {
  position: absolute; height: 23px; border: 2px solid var(--a-ctl-border); background: #000;
  cursor: default; color: #fff;
}
.combo .cval { position: absolute; left: 2px; top: 5px; line-height: 1; white-space: nowrap; }
.combo .carrow {
  position: absolute; right: -1px; top: -1px; width: 21px; height: 21px; background: #fff;
}
.combo .carrow::after {
  content: ""; position: absolute; left: 4px; top: 6px; width: 13px; height: 8px; background: #000;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.combo.env { left: 131px; top: 27px; width: 240px; }
.combo.lic { left: 131px; top: 74px; width: 400px; }
.combo .cmenu {
  position: absolute; left: -2px; top: 23px; z-index: 55; min-width: 100%; padding: 2px 0;
  background: #1b1b1b; border: 1px solid var(--a-frame); color: #fff; display: none;
}
.combo.open { border-color: #d0d0d0; }
.combo.open .cmenu { display: block; }
.combo .cmenu .oi { height: 20px; line-height: 20px; padding: 0 10px; white-space: nowrap; cursor: default; }
.combo .cmenu .oi:hover { background: #2f4f6f; }
.combo .cmenu .oi.sel { background: #35496b; }

.chk { position: absolute; display: flex; align-items: center; cursor: default; }
.chk .cbox {
  position: relative; width: 11px; height: 11px; border: 1px solid #fff; background: #000;
  flex: 0 0 11px;
}
.chk .cbox.on::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 5px; height: 5px; background: #fff;
}
.chk .clbl { position: relative; top: 3px; margin-left: 6px; line-height: 1; white-space: nowrap; }
#chk-legacy { left: 131px; top: 104px; }  /* box top 129 (client) */

/* ================================================================== tab widget */
.tabframe { position: absolute; left: 0; top: 158px; width: 900px; height: 516px; background: var(--a-frame); }
.tabframe::after {
  content: ""; position: absolute; left: 8px; top: 8px; width: 884px; height: 500px; background: #000;
}
.tabstrip {
  position: absolute; left: 9px; top: 5px; width: 450px; height: 45px; z-index: 3;
  border-top: 1px solid #fff; border-bottom: 1px solid #fff;
}
.tab {
  position: absolute; top: 0; height: 43px; padding: 0; margin: 0; border: 0;
  background: #000; color: #fff; text-align: center; cursor: default;
  font-family: var(--a-font-mono); font-size: var(--a-fz); font-weight: 700; line-height: 1;
  letter-spacing: 0;
}
.tab .l1, .tab .l2 { position: absolute; left: 0; right: 0; text-align: center; }
.tab .l1 { top: 11px; }
.tab .l2 { top: 27px; }
.tab.active { background: var(--a-tab-sel); }
#tab-file { left: 0; width: 151px; border-left: 1px solid #fff; border-right: 2px solid #fff; }
#tab-custom { left: 151px; width: 150px; border-right: 2px solid #fff; }
#tab-hpc { left: 301px; width: 149px; border-right: 1px solid #fff; }
.tab:not(.active):hover { background: #1c1c1c; }
/* 3px frame line that separates the tab strip from the page below */
.tabframe .rule { position: absolute; left: 9px; top: 50px; width: 882px; height: 3px; background: var(--a-frame); z-index: 2; }

/* ====================================================================== pages */
.page { position: absolute; left: 8px; top: 53px; width: 884px; height: 455px; z-index: 2; }
.finput {
  position: absolute; height: 20px; margin: 0; padding: 3px 3px 0;
  border: 2px solid var(--a-edit-border); background: #000; color: #fff;
  font-family: var(--a-font-mono); font-size: 11px; font-weight: 700; letter-spacing: -0.55px;
  line-height: 13px; outline: none;
}
.finput:focus { border-color: #d0d0d0; }
.qbtn {
  position: absolute; margin: 0; padding: 0; background: var(--a-btn-face); border: 0;
  color: #fff; font-family: var(--a-font-mono); font-size: var(--a-fz); font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 1px 1px 0 var(--a-btn-hi), inset -1px -1px 0 var(--a-btn-dk),
              inset -2px -2px 0 var(--a-btn-sh);
  cursor: default;
}
.qbtn .bl { position: relative; display: inline-block; }
.qbtn.browse .bl { top: 1px; }
.qbtn.big .bl { top: 2px; }
.qbtn:hover { background: #616161; }
.qbtn:active { background: #4d4d4d; box-shadow: inset 1px 1px 0 #3b3b3b, inset -1px -1px 0 #656565; }
.qbtn.browse { width: 80px; height: 23px; padding: 0; }
.qbtn.wd.browse { left: 634px; top: 200px; }
.qbtn.jn.browse { left: 634px; top: 234px; }
#lbl-wd { left: 170px; top: 208px; }
#lbl-jn { left: 170px; top: 242px; }
.finput.wd { left: 302px; top: 201px; width: 330px; }
.finput.jn { left: 298px; top: 235px; width: 330px; }
/* empty .dat list: the reference File Management page shows no frame at all
 * (the working directory has no .dat files).  It becomes visible only when
 * the user browses to a folder that does contain .dat jobs. */
.datlist { display: none; position: absolute; left: 170px; top: 8px; width: 543px; height: 180px;
  border: 1px solid var(--a-ctl-border); background: #000; overflow: hidden; }
.datlist.show { display: block; }
.datlist .drow { height: 18px; line-height: 18px; padding: 0 6px; white-space: nowrap; }
.datlist .drow:hover { background: #2f4f6f; }
.datlist .drow.sel { background: #35496b; }

/* Customization/Preferences page */
#lbl-memory { left: 170px; top: 40px; }
.finput.c1 { left: 302px; top: 38px; width: 180px; }
#lbl-lang { left: 170px; top: 78px; }
.combo.lang { left: 302px; top: 75px; width: 200px; }
#chk-customization { left: 170px; top: 110px; }
#chk-prime { left: 170px; top: 132px; }
#lbl-cmdline { left: 170px; top: 166px; }
.finput.c5 { left: 170px; top: 184px; width: 662px; }

/* High Performance Computing Setup page */
#lbl-mpi { left: 170px; top: 40px; }
.combo.h1 { left: 402px; top: 37px; width: 240px; }
#lbl-cpus { left: 170px; top: 78px; }
.finput.h2 { left: 402px; top: 75px; width: 80px; }
#chk-dmp { left: 170px; top: 108px; }
#lbl-gpu { left: 170px; top: 140px; }
.combo.h4 { left: 402px; top: 137px; width: 240px; }

/* =================================================================== bottom bar */
.toolbar { position: absolute; left: 0; top: 675px; width: 900px; height: 50px; background: var(--a-toolbar); }
.qbtn.big { top: 13px; width: 160px; height: 28px; padding: 0; }
.qbtn.run { left: 196px; }
.qbtn.cancel { left: 369px; }
.qbtn.help { left: 542px; }
.qbtn.cancel:disabled, .qbtn.cancel[disabled] {
  color: var(--a-disabled); background: var(--a-btn-face); cursor: default;
  box-shadow: inset 1px 1px 0 var(--a-btn-hi), inset -2px -2px 0 var(--a-btn-sh),
              inset -1px -1px 0 var(--a-btn-dk);
}
.qbtn.cancel:disabled:hover { background: var(--a-btn-face); }

/* ===================================================================== dialogs */
.dialog {
  position: absolute; z-index: 80; left: 120px; top: 210px; width: 660px; min-height: 200px;
  background: #000; border: 1px solid var(--a-frame);
  box-shadow: 4px 4px 0 rgba(0,0,0,.55);
}
.dlgtitle {
  position: relative; height: 24px; line-height: 24px; padding-left: 26px;
  background: #2b2b2b; border-bottom: 1px solid var(--a-frame);
  font-family: var(--a-font-ui); font-size: 12px; font-weight: 400; color: #fff;
}
.dlgtitle .dlgico { position: absolute; left: 6px; top: 4px; width: 16px; height: 16px; object-fit: contain; }
.dlgbody {
  position: relative; padding: 14px 16px; color: #fff; font-family: var(--a-font-mono);
  font-size: var(--a-fz); line-height: 17px; overflow: auto; max-height: 420px;
}
.dlgbody .hline { color: #bdbdbd; }
.dlgbody .ok { color: #ffffff; }
.dlgbody .bad { color: #ff9e9e; }
.dlgbody table.vt { border-collapse: collapse; font-size: var(--a-fz); }
.dlgbody table.vt td, .dlgbody table.vt th { padding: 0 10px 0 0; text-align: left; white-space: nowrap; }
.dlgbody table.vt th { color: #bdbdbd; font-weight: 700; }
.dlgbody .scroll { font-family: var(--a-font-mono); white-space: pre-wrap; }
.dlgfoot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 16px 14px; }
.dlgfoot .dbtn { position: relative; width: 96px; height: 26px; }
/* folder browser list inside the dialog */
.folders { margin-top: 8px; border: 1px solid var(--a-ctl-border); background: #0b0b0b; }
.folders .frow { height: 19px; line-height: 19px; padding: 0 8px; cursor: default; }
.folders .frow:hover { background: #2f4f6f; }
.folders .frow.sel { background: #35496b; }
.folders .frow .sub { color: #a8a8a8; margin-left: 8px; }

/* =========================================================== numeric self-check */
#apdl-numeric {
  position: absolute; z-index: 90; left: 70px; top: 120px; width: 760px;
  background: #000; border: 1px solid var(--a-frame);
  box-shadow: 4px 4px 0 rgba(0,0,0,.55);
  font-family: var(--a-font-mono); font-size: 11.5px; color: #fff;
}
#apdl-numeric .nhead {
  position: relative; height: 24px; line-height: 24px; padding-left: 8px;
  background: #2b2b2b; border-bottom: 1px solid var(--a-frame);
  font-family: var(--a-font-ui); font-size: 12px; font-weight: 400;
}
#apdl-numeric .nhead .nx { position: absolute; right: 8px; top: 0; cursor: default; color: #d8d8d8; }
#apdl-numeric .nbody { padding: 8px 10px; }
#apdl-numeric .nsrc { color: #a8a8a8; margin-bottom: 6px; }
#apdl-numeric table { border-collapse: collapse; width: 100%; }
#apdl-numeric th, #apdl-numeric td { text-align: left; padding: 1px 6px 1px 0; white-space: nowrap; }
#apdl-numeric th { color: #bdbdbd; border-bottom: 1px solid #4a4a4a; }
#apdl-numeric tr.pass td.v { color: #ffffff; }
#apdl-numeric tr.fail td.v { color: #ff9e9e; }
#apdl-numeric .nsum { margin-top: 6px; }
