/* ANSYS Autodyn 2022 R1 web clone — classic Win32 chrome, 984x661 client area.
 * Palette sampled from the reference PrintWindow capture (autodyn-main.png):
 *   face #d4d0c8, highlight #ffffff, shadow #808080/#404040, menu #ffffff,
 *   graphics canvas #ffffff, message dock #bbbbbb, caption blue #0000ff (section headers).
 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #3f3f46; }
body { display: flex; align-items: flex-start; justify-content: flex-start; }
#app {
  position: relative;
  width: 984px; height: 661px;
  overflow: hidden;
  background: #d4d0c8;
  color: #000;
  font: 12px "Liberation Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: none;
  user-select: none;
}
.hidden { display: none !important; }

/* ---------------------------------------------------------------- menu bar */
.menubar {
  position: absolute; left: 0; top: 0; width: 984px; height: 21px;
  background: #ffffff;
  border-bottom: 1px solid #c8c4bc;
  display: flex; align-items: center;
  padding-left: 6px;
  z-index: 60;
}
.menubar .m {
  height: 21px; line-height: 21px;
  padding: 0 10px;
  font-size: 13px;
  color: #111;
  cursor: default;
  white-space: nowrap;
}
.menubar .m:hover, .menubar .m.open { background: #316ac5; color: #fff; }

/* ---------------------------------------------------------------- tool bar */
.toolwrap {
  position: absolute; left: 2px; top: 22px; width: 980px; height: 32px;
  background: #d4d0c8;
  border: 1px solid #d4d0c8;
  border-color: #ffffff #808080 #808080 #ffffff;
  z-index: 50;
}
.toolbar {
  position: absolute; left: 2px; top: 1px; right: 2px; height: 28px;
  display: flex; align-items: center; overflow: hidden;
}
.tbtn {
  flex: 0 0 auto;
  width: 29px; height: 27px;
  margin-right: 2px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d4d0c8;
  cursor: default;
}
.tbtn:hover { border-color: #ffffff #808080 #808080 #ffffff; }
.tbtn:active, .tbtn.on { border-color: #808080 #ffffff #ffffff #808080; background: #cbc7bf; }
.tbtn svg { display: block; }
.tsep {
  flex: 0 0 auto; width: 7px; height: 23px; margin: 0 2px;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
}

/* ---------------------------------------------------------------- main area */
.main { position: absolute; left: 0; top: 59px; width: 984px; height: 602px; }

/* left dock: fixed button column + wide blank panel (real Autodyn = MDI panel area) */
.leftdock {
  position: absolute; left: 0; top: 0; width: 348px; height: 601px;
  background: #d4d0c8;
  border-bottom: 1px solid #a0a0a0;
}
.btncol { position: absolute; left: 2px; top: 0; width: 77px; }
.secthead {
  height: 22px; line-height: 22px;
  padding-left: 14px;
  color: #0000ff; font-size: 14px; font-weight: bold;
}
.secthead.setup { height: 24px; line-height: 24px; margin-top: 7px; padding-left: 14px; }
.pbtn {
  display: block;
  width: 74px; height: 28px;
  margin-left: 2px;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #7a7a7a #7a7a7a #ffffff;
  font-size: 11px; color: #2e2e2e;
  text-align: center;
  padding: 0 1px 1px;
  line-height: 22px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
}
.pbtn:hover { background: #e2ded6; }
.pbtn:active, .pbtn.on { border-color: #808080 #ffffff #ffffff #808080; background: #c9c5bd; padding: 1px 0 0 2px; }
.runbox {
  position: absolute; left: 2px; top: 568px;
  width: 74px; height: 28px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  cursor: default;
}
.runbox:active { border-color: #808080 #ffffff #ffffff #808080; }
.runbox .tri {
  position: absolute; left: 12px; top: 8px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #8be08b;
}
.runbox:hover { background: #e2ded6; }

/* blank module panel to the right of the buttons: holds floating setup dialogs */
.detailpane {
  position: absolute; left: 80px; top: 0; width: 264px; height: 600px;
  background: #d4d0c8;
  border-left: 1px solid #a8a49c;
  overflow: hidden;
}

/* ---------------------------------------------------------------- graphics */
.gfx {
  position: absolute; left: 348px; top: 0; width: 633px; height: 517px;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  overflow: hidden;
}
#shockcanvas { position: absolute; left: 0; top: 0; width: 629px; height: 513px; display: block; }
.watermark {
  position: absolute; right: 18px; bottom: 12px;
  color: #b9b9b9; font-size: 13px; letter-spacing: 1px;
  pointer-events: none;
}
.watermark .a2 { margin-left: 5px; }

/* ---------------------------------------------------------------- bottom docks */
.statusbar {
  position: absolute; left: 348px; top: 521px; width: 633px; height: 19px;
  background: #d4d0c8;
}
.statuspane {
  position: absolute; left: 3px; top: 2px; right: 62px; height: 14px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font-size: 11px; line-height: 12px; color: #303030;
  padding: 0 4px; overflow: hidden; white-space: nowrap;
}
.statbtns { position: absolute; right: 4px; top: 2px; display: flex; gap: 1px; }
.sbtn {
  width: 17px; height: 14px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font: bold 10px/12px "Liberation Sans", Arial;
  color: #0000a0; text-align: center;
  cursor: default;
}
.sbtn:active { border-color: #808080 #ffffff #ffffff #808080; }

.messagebox {
  position: absolute; left: 348px; top: 543px; width: 633px; height: 36px;
  background: #bbbbbb;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}
.msgbody {
  position: absolute; left: 2px; top: 2px; right: 2px; bottom: 2px;
  font: 11px/13px "Courier New", "Liberation Mono", monospace;
  color: #1b1b1b;
  overflow: hidden;
  padding: 1px 4px;
  white-space: pre;
}
.hintbar {
  position: absolute; left: 348px; top: 582px; width: 633px; height: 17px;
  background: #ffffff;
  border-top: 1px solid #b8b4ac;
  font-size: 11px; color: #666; line-height: 16px; padding-left: 6px;
}

/* ---------------------------------------------------------------- menus */
.menupop {
  position: absolute;
  pointer-events: auto;
  min-width: 208px;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 4px rgba(0,0,0,.35);
  padding: 2px;
  z-index: 900;
}
.mi {
  height: 22px; line-height: 22px;
  padding: 0 22px 0 22px;
  display: flex; align-items: center;
  font-size: 12px; color: #111;
  cursor: default; white-space: nowrap;
  position: relative;
}
.mi:hover { background: #000080; color: #fff; }
.mi .accel { margin-left: auto; padding-left: 24px; font-size: 11px; color: #444; }
.mi:hover .accel { color: #fff; }
.mi.disabled { color: #808080; }
.mi.disabled:hover { background: transparent; color: #808080; }
.mi.checked::before { content: "\2713"; position: absolute; left: 6px; font-size: 11px; }
.mi .arrow { margin-left: auto; padding-left: 24px; }
.menupop .sep { height: 2px; margin: 3px 2px; border-top: 1px solid #808080; border-bottom: 1px solid #ffffff; }

/* ---------------------------------------------------------------- floating child windows */
.floatlayer { position: absolute; left: 0; top: 0; width: 984px; height: 661px; pointer-events: none; z-index: 800; }
.floatwin {
  position: absolute;
  pointer-events: auto;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 3px 3px 6px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
}
.fw-title {
  flex: 0 0 auto;
  height: 22px;
  background: linear-gradient(90deg, #0a246a 0%, #2a5c9e 55%, #7ba7d7 100%);
  color: #fff;
  font: bold 12px/20px "Liberation Sans", Arial;
  padding: 1px 3px 1px 6px;
  display: flex; align-items: center;
  cursor: default;
}
.fw-title .t { flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.fw-x {
  flex: 0 0 auto; width: 17px; height: 16px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  color: #000; font: bold 11px/14px "Liberation Sans", Arial;
  text-align: center; cursor: default;
}
.fw-x:hover { background: #e2ded6; }
.fw-body { flex: 1 1 auto; padding: 6px; overflow: auto; }
.fw-foot { flex: 0 0 auto; padding: 4px 6px 6px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

/* classic 95-style push button / inputs */
.btn95 {
  min-width: 68px; height: 23px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  font: 12px "Liberation Sans", Arial;
  color: #111; cursor: default; padding: 0 10px;
}
.btn95:active { border-color: #404040 #ffffff #ffffff #404040; }
.btn95:disabled { color: #808080; text-shadow: 1px 1px 0 #fff; }
input.txt95, select.txt95 {
  background: #fff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font: 12px "Liberation Sans", Arial;
  height: 20px; padding: 0 4px; color: #111;
}
.fw-body table { border-collapse: collapse; width: 100%; font-size: 11px; }
.fw-body th {
  text-align: left; font-weight: normal; color: #333;
  background: #c9c5bd;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 5px;
}
.fw-body td { border-bottom: 1px solid #bdb9b1; padding: 2px 5px; vertical-align: top; }
.fw-body tr.pass td.v { color: #006400; font-weight: bold; }
.fw-body tr.fail td.v { color: #a00000; font-weight: bold; }
.fw-body .sub { color: #555; font-size: 11px; }
.fw-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.fw-row label { width: 128px; color: #222; }
.fw-row input, .fw-row select { flex: 1 1 auto; min-width: 0; }
.legend { display: flex; gap: 12px; font-size: 11px; color: #333; margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; border: 1px solid #555; }

/* small dialogs docked in the left blank panel */
.dockwin {
  position: absolute; left: 6px; top: 6px; right: 6px;
  background: #d4d0c8;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 4px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
}
.dockwin .fw-title { height: 20px; font-size: 11px; line-height: 18px; }
.dockwin .fw-body { padding: 5px; font-size: 11px; }
.dockwin .fw-body table td { padding: 1px 3px; }
.dockwin .fw-foot { padding: 3px; }
.dockwin .btn95 { min-width: 48px; height: 20px; font-size: 11px; padding: 0 6px; }

.gfx-hud {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; color: #333;
  background: rgba(255,255,255,.82);
  border: 1px solid #b0aca4;
  padding: 2px 6px;
  pointer-events: none;
}
