/* Segoe UI (Windows 10 captions/menus) where this machine has none: Microsoft's metric-compatible Selawik (SIL OFL 1.1,
   web/fonts/Selawik-OFL.txt) under the same family name; a real Segoe UI wins (local() first). /api/gdi-advances reads
   the same files. */
@font-face { font-family: "Segoe UI"; font-weight: 400; src: local("Segoe UI"), local("SegoeUI"), url("fonts/selawk.woff2") format("woff2"), url("fonts/selawk.ttf") format("truetype"); }
@font-face { font-family: "Segoe UI"; font-weight: 600; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), url("fonts/selawksb.woff2") format("woff2"), url("fonts/selawksb.ttf") format("truetype"); }
@font-face { font-family: "Segoe UI"; font-weight: 700; src: local("Segoe UI Bold"), local("SegoeUI-Bold"), url("fonts/selawkb.woff2") format("woff2"), url("fonts/selawkb.ttf") format("truetype"); }
@font-face { font-family: "Segoe UI"; font-weight: 300; src: local("Segoe UI Light"), local("SegoeUI-Light"), url("fonts/selawkl.woff2") format("woff2"), url("fonts/selawkl.ttf") format("truetype"); }

/* hpx classic form renderer: Magic xpa on Windows 7/10 look (as in the HausPerfekt manuals' screenshots).
   Colours of forms and controls come from the Magic colour table; these are only the Windows defaults. */

/* MDI child frame, Windows 7 basic theme as in the cockpit original (Telefonie.pdf p8, measured round 15): the shot's
   column 0 is the MDI client's #696969 edge, the window sits at client x 0 and is 1368 px wide = 1352 client + 2 x 8:
   outline #343434 at the top / #000 at the sides and bottom, inner line white left/top and cyan right (#3fcef2) /
   bottom (#28cfe4), 6 px light-blue frame; caption 29 px + 2 lines, client at y 31; red close box. */
.hpx-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #dbe4ef;
  border: 1px solid #000;
  border-top-color: #343434;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 1px 0 0 #fff, inset -1px 0 0 #3fcef2, inset 0 -1px 0 #28cfe4, 2px 2px 6px rgba(0, 0, 0, 0.25);
  padding: 0 7px 7px;
  font: 11px "Microsoft Sans Serif", Tahoma, Arial, sans-serif;
}
.hpx-win.hpx-active, .hpx-win:has(.hpx-subform-task.hpx-active) { background: #bad2ea; box-shadow: inset 1px 0 0 #fff, inset -1px 0 0 #3fcef2, inset 0 -1px 0 #28cfe4, 2px 2px 8px rgba(0, 0, 0, 0.35); }
.hpx-win.hpx-win-frameless, .hpx-win.hpx-win-frameless.hpx-active { border: none; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
.hpx-win.hpx-win-frameless > .hpx-titlebar { display: none; }
.hpx-win.hpx-maximised { left: 0 !important; top: 0 !important; right: 0; bottom: 0; }
.hpx-win.hpx-maximised .hpx-winbody { flex: 1; }
/* maximised MDI child: no own caption or frame (the frame shows "... - [title]", the boxes sit in the menu bar) */
#mdi > .hpx-win.hpx-maximised { border: none; border-radius: 0; padding: 0; box-shadow: none; }
#mdi > .hpx-win.hpx-maximised > .hpx-titlebar { display: none; }
.hpx-mdi-childbtns { display: flex; margin-left: auto; align-self: center; gap: 2px; padding-right: 2px; }
.hpx-mdi-childbtns .hpx-tbtn { width: 18px; height: 16px; font: 11px/14px "Segoe UI", Tahoma, Arial, sans-serif; background: #f0f0f0; color: #000; border: 1px solid #adadad; border-radius: 0; text-shadow: none; }
.hpx-win.hpx-minimised .hpx-winbody,
.hpx-win.hpx-minimised .hpx-winstatus { display: none; }
.hpx-win.hpx-minimised { width: 180px; }

.hpx-modal-overlay { position: absolute; inset: 0; background: transparent; }
/* A child window larger than the MDI work area: the MDI client scrolls (Windows MDI shows scroll bars). The work area
   element belongs to the shell (.mdi); this only lets it scroll while it holds form windows. */
.mdi:has(> .hpx-win) { overflow: auto; }

.hpx-titlebar {
  display: flex;
  align-items: center;
  height: 30px;
  flex: none;
  padding: 0 0 0 8px;
  margin: 0 -7px 0 -7px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px 0 0 #6edaf3;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#e3ebf4, #dbe4ef);
  color: #000;
  font: 12px "Segoe UI", Tahoma, Arial, sans-serif;
  cursor: default;
  user-select: none;
}
/* active caption gradient measured on Telefonie p8: #99b4d1 at the top to #b9d1ea at the client edge */
.hpx-win.hpx-active > .hpx-titlebar, .hpx-win:has(.hpx-subform-task.hpx-active) > .hpx-titlebar { background: linear-gradient(#99b4d1, #b9d1ea); }
.hpx-titlebar-thin { height: 6px; }
/* BorderStyle 1 (thin) window, measured Genossenschaft p28 (Adressen): 4 px frame per side, client at y 25, close box
   31 x 17 px at window y 5, right edge 4 px inside the outer right edge */
.hpx-win.hpx-win-thin { padding: 0 3px 3px; }
.hpx-win.hpx-win-thin > .hpx-titlebar { height: 24px; margin: 0 -3px; }
.hpx-win.hpx-win-thin > .hpx-titlebar > .hpx-titlebtns { margin: 4px 3px 0 0; }
.hpx-win.hpx-win-thin > .hpx-titlebar .hpx-tbtn { height: 17px; }
.hpx-win.hpx-win-thin > .hpx-titlebar .hpx-close { width: 31px; line-height: 14px; }
.hpx-titlebar-thin .hpx-title, .hpx-titlebar-thin .hpx-titlebtns { display: none; }
.hpx-title-icon { width: 16px; height: 16px; flex: none; margin-right: 6px; }
.hpx-titlebar-thin .hpx-title-icon { display: none; }
.hpx-title { flex: 1; white-space: pre; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
/* caption buttons, Telefonie p8 (Win7): close box 32 x 18 px at window y 10..27, right edge 10 px inside the outer right edge (round 15) */
.hpx-titlebtns { flex: none; display: flex; gap: 0; align-self: flex-start; margin: 9px 9px 0 0; }
.hpx-tbtn {
  width: 26px; height: 18px; padding: 0;
  font: 11px/16px "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(#e9eff6, #c9d8ea); color: #000; border: 1px solid #8a9fb8;
}
.hpx-tbtn:hover { background: #e5f1fb; border-color: #3c7fb1; }
.hpx-close {
  width: 32px; border-radius: 3px; border-color: #431422; box-sizing: border-box;
  background: linear-gradient(#e9a99b 0%, #d5715c 45%, #c4442b 55%, #d0644a 100%);
  color: #fff; font: bold 16px/15px Arial, sans-serif; text-shadow: 0 0 1px #535666, 0 0 1px #535666;
}
.hpx-close:disabled { opacity: .45; pointer-events: none; }
.hpx-close:hover { background: linear-gradient(#f5b6a8, #e8412a); color: #fff; border-color: #8c3b2b; }

.hpx-winbody { position: relative; overflow: auto; }
.hpx-winstatus {
  white-space: pre-wrap; max-height: 160px; overflow: auto;
  padding: 1px 4px; border-top: 1px solid #a0a0a0; cursor: pointer;
}

.hpx-client { position: relative; overflow: hidden; background: #f0f0f0; font-kerning: none; font-variant-ligatures: none; }  /* GDI neither kerns nor ligates */
.hpx-client input, .hpx-client textarea, .hpx-client select, .hpx-client button { font-kerning: none; font-variant-ligatures: none; }

.hpx-ctl { position: absolute; box-sizing: border-box; }
.hpx-ctl.hpx-clipped-away { visibility: hidden; pointer-events: none; }
/* diagnostics never change a window's look: they go to the frame's status-bar error pane (form.js frameError) */
.hpx-winstatus { display: none !important; }
.hpx-missing { color: #c00; background: repeating-linear-gradient(45deg, #fee, #fee 4px, #fdd 4px, #fdd 8px); font-size: 11px; overflow: hidden; }
.hpx-tab-hidden { display: none !important; }
.hpx-disabled { color: #6d6d6d; }

/* static text */
.hpx-static { display: flex; flex-direction: column; overflow: hidden; white-space: pre; }
.hpx-static.hpx-multiline { white-space: pre-wrap; }
.hpx-frame-etched { box-shadow: inset 1px 1px 0 #a0a0a0, inset -1px -1px 0 #fff, inset 2px 2px 0 #fff, inset -2px -2px 0 #a0a0a0; }
.hpx-frame-bump { box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #a0a0a0, inset 2px 2px 0 #a0a0a0, inset -2px -2px 0 #fff; }
.hpx-frame-raised { box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #696969; }
.hpx-frame-sunken { box-shadow: inset 1px 1px 0 #a0a0a0, inset -1px -1px 0 #fff; }

/* group box */
/* Windows group box: the caption sits at the control's top, the frame line runs through its middle. */
/* group frame (measured, Indexmiete p6 / Corona p6): white rectangle, #a0a0a0 one 1 px right/down; top line at half the
   caption font's height, at the very top without a caption */
.hpx-group::before { content: ''; position: absolute; left: 0; right: 1px; bottom: 1px; top: var(--hpx-group-top, 0.55em); border: 1px solid #fff; box-shadow: 1px 1px 0 #a0a0a0, inset 1px 1px 0 #a0a0a0; pointer-events: none; }
/* caption (measured, FiBu Gesamtmenü EA p4): text cell at control x + 6, no padding (the frame gap is the text cell),
   baseline at control y + GDI ascent (line-height normal, as labels; 1.1 drew it 1-2 px high) */
.hpx-group-caption { position: absolute; top: 0; left: 6px; padding: 0; background: var(--hpx-form-bg, transparent); line-height: normal; white-space: pre; z-index: 1; }
/* right caption (measured host r38, Objekt anzeigen E_Satz p4 'Info' and 'Objekt Allgemein' vs ?run=194): the frame
   line stops 3 px before the text and resumes 3 px after it, the text cell's outer right edge at control right - 6 */
.hpx-group-caption-right { left: auto; right: 6px; padding: 0 3px; }
.hpx-group-caption:empty { display: none; }

/* edit (Windows 7 field: 1px #abadb3 frame, white) */
.hpx-edit-input {
  /* text origin 1 px inside the frame, no margin (Windows edit; measured: caret of the framed "Befehl:" edit at the
     control's x + 1, Indexmiete.pdf p6) */
  box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0 1px 0 0;
  font: inherit; background: #fff; color: #000;
  border: 1px solid #abadb3; border-radius: 0; resize: none; outline: none;
}
.hpx-edit-input:focus { border-color: #3399ff; }
/* borderless edit: no inner margin (cockpit p8: greeting text starts at the control's x; Prg_893 "316" fills its 18 px) */
.hpx-edit-input.hpx-noborder { border: none; background: transparent; padding: 0; }
.hpx-edit-input.hpx-edit-3d { padding: 0 1px; border: none; background: #fff !important; box-shadow: inset 1px 1px 0 #a0a0a0, inset -1px -1px 0 #fff; }
/* framed single-line edit: Windows puts the text cell 1 px below the client top (XP Prg_343 "800202", 18 px box:
   baseline row at box top + 13; Chrome centred it at + 12). Borderless edits already sit on their labels' baseline. */
input.hpx-edit-input:not(.hpx-noborder), input.hpx-cell-input:not(.hpx-cell-combo-input):not(.hpx-cell-checkbox-input) { padding-top: 1px; }
.hpx-edit-input[readonly] { cursor: default; }
.hpx-edit-input:disabled { background: #f0f0f0; color: #6d6d6d; border-color: #c0c0c0; }

/* push button */
/* Flat Windows 10 button, sampled from Telefonie.pdf p8 (the cockpit): face #e1e1e1, frame #adadad, black text. */
/* Win10 themed push buttons leave a 1 px margin inside the control rectangle (cockpit: control x 780 -> frame at +1 px). */
.hpx-button {
  box-sizing: border-box; width: calc(100% - 2px); height: calc(100% - 2px); margin: 1px; padding: 0 2px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font: inherit; color: #000;
  background: #e1e1e1;
  border: 1px solid #adadad; border-radius: 0; white-space: nowrap; overflow: hidden;
}
.hpx-button:hover { background: #e5f1fb; border-color: #0078d7; }
.hpx-button:active { background: #cce4f7; border-color: #005499; }
.hpx-button:focus, .hpx-button.hpx-default { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
.hpx-button:focus-visible, .hpx-button:focus { outline: 1px dotted #000; outline-offset: -3px; }  /* p8: dots right inside the 2 px frame */
.hpx-button:disabled { color: #838383; background: #f4f4f4; border-color: #adb2b5; }
.hpx-button-img { max-height: 100%; }

/* checkbox / radio */
.hpx-check, .hpx-radio { display: flex; align-items: center; gap: 3px; height: 100%; white-space: nowrap; }
.hpx-check input, .hpx-radio input { margin: 0; width: 13px; height: 13px; flex: none; }
/* Windows 10 check box (13 px square, #333 frame, white face, #333 tick), not the browser's own rounded box. */
.hpx-check input {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; border: 1px solid #333; background: #fff no-repeat center;
  border-radius: 0;
}
.hpx-check input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cpath d='M1 4l2.5 2.5L8 1' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E"); }
.hpx-check input:hover:not(:disabled) { border-color: #0078d7; }
.hpx-check input:disabled { border-color: #bcbcbc; background-color: #fff; }
.hpx-check input:disabled:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cpath d='M1 4l2.5 2.5L8 1' fill='none' stroke='%23bcbcbc' stroke-width='1.6'/%3E%3C/svg%3E"); }
.hpx-check input:focus { outline: none; }
/* Windows 10 radio button (13 px circle, #333 ring, white face, #333 dot when set), not the browser's blue-filled one. */
.hpx-radio input {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; border: 1px solid #333; border-radius: 50%; background: #fff no-repeat center;
}
.hpx-radio input:checked { background-image: radial-gradient(circle, #333 0 3px, transparent 3.5px); }
.hpx-radio input:hover:not(:disabled) { border-color: #0078d7; }
.hpx-radio input:disabled { border-color: #bcbcbc; }
.hpx-radio input:disabled:checked { background-image: radial-gradient(circle, #bcbcbc 0 3px, transparent 3.5px); }
.hpx-radio input:focus { outline: none; }
.hpx-radio-group { display: flex; flex-direction: column; justify-content: space-around; }
.hpx-radio { height: auto; }

/* combo / listbox */
/* Windows 10 drop-down list (Magic COMBOBOX = CBS_DROPDOWNLIST): drawn like a push button (#e1e1e1 face, #adadad
   frame) with a thin chevron in a 17 px arrow area - not the browser's own select arrow. */
.hpx-combo {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 100%; height: 100%; font: inherit; margin: 0;
  padding: 0 18px 0 3px; color: #000; border: 1px solid #adadad; border-radius: 0;
  background: #e1e1e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0L4.5 4.5 9 0' fill='none' stroke='%23333'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.hpx-combo:hover:not(:disabled) { background-color: #e5f1fb; border-color: #0078d7; }
.hpx-combo:focus { outline: none; border-color: #0078d7; }
.hpx-combo:disabled { color: #838383; background-color: #f4f4f4; border-color: #adb2b5; }
.hpx-listbox { width: 100%; height: 100%; font: inherit; margin: 0; border: 1px solid #abadb3; background: #fff; box-sizing: border-box; }

/* rich edit */
.hpx-richedit { box-sizing: border-box; width: 100%; height: 100%; overflow: auto; background: #fff; border: 1px solid #abadb3; padding: 1px 3px; white-space: pre-wrap; outline: none; }

/* tree */
.hpx-tree { background: #fff; border: 1px solid #abadb3; overflow: auto; }
.hpx-tree-list { list-style: none; margin: 0; padding: 2px 0; }
.hpx-tree-list li { padding: 0 4px; white-space: nowrap; line-height: 16px; }

/* image */
.hpx-image img { width: 100%; height: 100%; display: block; }
.hpx-image-frame { box-sizing: border-box; border: 1px solid; border-color: #fff #a0a0a0 #a0a0a0 #fff; overflow: hidden; }

/* table (Magic table on Windows 7: flat header, no column grid, alternating row colour from the table) */
.hpx-table { background: #fff; border: 1px solid #abadb3; overflow: hidden; }
/* Windows 7 list frame (Telefonie p8, all cockpit grids): 1 px #abadb3 + a 1 px white inner line over the row bands */
.hpx-table::after { content: ''; position: absolute; inset: 0; border: 1px solid #fff; pointer-events: none; z-index: 1; }
.hpx-table:focus { outline: none; }
.hpx-table-vscroll { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 17px; z-index: 2; background: #f0f0f0; flex-direction: column; }
.hpx-has-vscroll > .hpx-table-vscroll { display: flex; }
.hpx-sb-up, .hpx-sb-down { flex: none; height: 17px; background: #f0f0f0 no-repeat center; }
.hpx-sb-up { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4'%3E%3Cpath d='M0 4L3.5 0L7 4z' fill='%23606060'/%3E%3C/svg%3E"); }
.hpx-sb-down { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4'%3E%3Cpath d='M0 0L3.5 4L7 0z' fill='%23606060'/%3E%3C/svg%3E"); }
.hpx-sb-track { flex: 1; position: relative; }
.hpx-sb-thumb { position: absolute; left: 2px; right: 2px; background: #cdcdcd; }
.hpx-table-head { display: flex; background: #fff; box-sizing: border-box; padding-bottom: 1px; }
.hpx-table-title {
  box-sizing: border-box; flex: none; padding: 2px 3px 0; overflow: hidden; white-space: pre;  /* cap top 9 px under the border (p8) */
  display: flex; align-items: center; color: inherit;
  border-right: 1px solid #e3e3e3;
}
.hpx-table-row { display: flex; box-sizing: border-box; }
.hpx-row-lines .hpx-table-row { border-bottom: 1px solid #e3e3e3; }
/* a cell: its cell controls at their own place inside the row (form.js drawTable) */
.hpx-table-cell { position: relative; box-sizing: border-box; flex: none; overflow: hidden; height: 100%; }
.hpx-col-lines .hpx-table-cell { border-right: 1px solid #e3e3e3; }
/* Windows edit: text at the top of the box (Telefonie.pdf p8: cap top 2 px under the cell box top) */
.hpx-cell-ctl { position: absolute; box-sizing: border-box; padding: 0; overflow: hidden; white-space: pre; display: flex; align-items: flex-start; line-height: 1.15; }
.hpx-cell-ctl.hpx-cell-multi { white-space: pre-wrap; align-items: flex-start; overflow-wrap: anywhere; }
.hpx-cell-ctl[style*="text-align: right"] { justify-content: flex-end; }
.hpx-cell-ctl[style*="text-align: center"] { justify-content: center; }
.hpx-cell-image, .hpx-cell-push_button { padding: 0; justify-content: center; align-items: center; }
.hpx-cell-img { max-width: 100%; max-height: 100%; }
/* edit cell of a row in modify/create mode: exactly the cell control's box, text at the same place (1 px border + 1 px) */
.hpx-cell-ctl:has(> .hpx-cell-input) { padding: 0; }
.hpx-cell-input { box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0; border: 1px solid #000; background: #fff; color: #000; outline: none; font: inherit; resize: none; overflow: hidden; }
/* combo / check box cells keep their Windows look (the drop-down list button face; a 13 px check box at the left) */
.hpx-cell-input.hpx-cell-combo-input { padding: 0 18px 0 3px; border: 1px solid #adadad; color: #000;
  background: #e1e1e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0L4.5 4.5 9 0' fill='none' stroke='%23333'/%3E%3C/svg%3E") no-repeat right 4px center; }
.hpx-cell-ctl.hpx-check { align-items: center; padding: 0; }
.hpx-cell-checkbox-input, .hpx-cell-input.hpx-cell-checkbox-input { width: 13px; height: 13px; flex: none; margin: 0; padding: 0; border: 1px solid #333; background-color: #fff; }
/* current row: colour 147 "InactiveRowHighlight" while the table has no focus, the table's RowHighlightColor with focus */
.hpx-table:not(.hpx-hl-noinactive) .hpx-table-row.hpx-row-current { background: var(--hpx-row-in-bg, #f0f0f0) !important; color: var(--hpx-row-in-fg, #6d6d6d); }
.hpx-table:focus-within .hpx-table-row.hpx-row-current { background: var(--hpx-row-hi-bg, #0055aa) !important; color: var(--hpx-row-hi-fg, #fff); }
.hpx-table:not(.hpx-hl-noinactive) .hpx-row-current .hpx-cell-ctl, .hpx-table:focus-within .hpx-row-current .hpx-cell-ctl { color: inherit !important; }

/* tab */
.hpx-tab { display: flex; flex-direction: column; }
.hpx-tab-strip { display: flex; height: 23px; flex: none; padding-left: 2px; position: relative; z-index: 1; }
/* Tab in the Windows 10 look we follow everywhere (flat buttons of the cockpit, Telefonie p8; tab measured DSGVO 2016 p5
   / Corona p6): frame #d9d9d9, unselected fill #f0f0f0 and 2 px lower ending on the page line, selected white, 2 px
   wider each side and 24 rows over the page line. Outer width = GDI text width + 12 px (Indexmiete p6). Caption in the
   theme's text colour (black), not the control's. (Win7 gradient #f2f2f2->#cfcfcf / #898c95 frame was Indexmiete p6.) */
.hpx-tab-title {
  white-space: pre; box-sizing: border-box; flex: none; width: calc(var(--hpx-gdi-w, auto) + 12px);
  height: 21px; margin-top: 2px; padding: 2px 5px 0; cursor: default; color: #000;
  border: 1px solid #d9d9d9; border-bottom: none;
  background: #f0f0f0; position: relative;
}
.hpx-tab-title.active { margin: 0 -2px; padding: 2px 7px 0; height: 24px; width: calc(var(--hpx-gdi-w, auto) + 16px); z-index: 1; background: #fff; }
.hpx-tab-page { flex: 1; border: 1px solid #d9d9d9; background: transparent; }

/* subform */
.hpx-subform { overflow: hidden; }
.hpx-subform-border { border: 1px solid #828790; }
.hpx-subform > .hpx-client { position: absolute; left: 0; top: 0; }
/* A live subform task (runtime embeds its window in the SUBFORM control): no frame, no padding - the embedded form
   fills exactly the control's rectangle (the cockpit grids lost their right border to the window padding). */
.hpx-win.hpx-subform-task { padding: 0; box-sizing: border-box; background: transparent; overflow: hidden; }
.hpx-win.hpx-subform-task > .hpx-winbody { overflow: hidden; }

/* browser control: the page fills the control */
.hpx-browser { background: #fff; }
.hpx-browser-frame { display: block; width: 100%; height: 100%; border: 0; }

/* lines: one svg per LINE control, positioned on its bounding box */
.hpx-line { position: absolute; pointer-events: none; overflow: visible; }

/* image button (ButtonStyle 2): the image fills the control, no button chrome; hypertext button (3): link text */
.hpx-button-image { box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0; border: none; background: transparent; display: block; overflow: hidden; }
.hpx-button-image .hpx-button-img { width: 100%; height: 100%; display: block; max-height: none; }
.hpx-button-link { width: 100%; height: 100%; margin: 0; padding: 0; border: none; background: transparent; font: inherit; color: #00f; text-decoration: underline; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }

/* child window (WindowType 3): the subtask form drawn inside the parent form at its X/Y */
.hpx-childwin { position: absolute; overflow: hidden; }
.hpx-childwin > .hpx-client { position: absolute; left: 0; top: 0; background: var(--hpx-form-bg, #f0f0f0); }

/* message box (Magic verify / error) */
.hpx-mb-overlay { position: fixed; display: flex; align-items: center; justify-content: center; background: transparent; }
.hpx-mb { position: relative; min-width: 260px; max-width: 520px; }
.hpx-mb-body { display: flex; gap: 12px; align-items: center; padding: 14px 16px 8px 10px; background: #C0D8FE; color: #000091; margin: 0 -4px; font: 13px Arial, Helvetica, sans-serif; }
.hpx-mb-text { white-space: pre-wrap; text-align: center; line-height: 24px; flex: 1; }
.hpx-mb-icon { flex: none; width: 32px; height: 32px; }
.hpx-mb-buttons { display: flex; justify-content: center; gap: 22px; padding: 6px 6px 10px; background: #C0D8FE; margin: 0 -4px; }
.hpx-mb-button { width: 90px; height: 21px; font: 11px Arial, Helvetica, sans-serif; }
.hpx-fd-name { height: 21px; width: 260px; }

/* unknown control type / .NET / ActiveX: visible, labelled, never hidden */
.hpx-unknown {
  border: 1px dashed #c00; color: #c00; font: 11px Tahoma, Arial, sans-serif;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: rgba(255, 220, 220, 0.4);
}
.hpx-object { border-color: #777; color: #444; background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 6px, #ebebeb 6px, #ebebeb 12px); }

.hpx-dyn { }
.hpx-vis-hidden { display: none !important; }
/* a check box cell outside the edited row is drawn like an enabled one (it is not disabled, just not in edit) */
.hpx-check .hpx-cell-checkbox-input:disabled { border-color: #333; }
.hpx-check .hpx-cell-checkbox-input:disabled:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cpath d='M1 4l2.5 2.5L8 1' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* print output window (host r38, hpx's stand-in for the Windows printer driver): the spool page in an iframe */
.hpx-mb.hpx-print-box { width: min(96vw, 1260px); max-width: none; }   /* an A4 landscape spool page (29.7 cm + its 1 cm margins) fits */
.hpx-print-body { display: block; padding: 6px; }
.hpx-print-frame { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid #a0a0a0; background: #fff; }
/* r61: the combo box's own drop-down list (form.js openComboList; Windows drop-down list) */
.hpx-combo-list { position: absolute; z-index: 100000; box-sizing: border-box; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #646464; color: #000; }
.hpx-combo-item { padding: 1px 3px; white-space: pre; cursor: default; }
.hpx-combo-item:hover { background: #e5f1fb; }
.hpx-combo-item.hpx-combo-item-selected { background: #0078d7; color: #fff; }
