/* ibots: the old IBOTS.Net window look (Windows forms: grey surface, group boxes, small Sans Serif)
   in the Flyking colours (flyking.in: dark blue #0054a3, logo blue #0093dd, logo red #da251d).
   Bootstrap 5.3 underneath; this file only adds the old app's look. See verify/look/brand-colours.md */
:root {
  --fk-blue: #0054a3; --fk-blue-dark: #003f7d; --fk-sky: #0093dd; --fk-red: #da251d; --fk-red-dark: #bd0808;
  --win-face: #f0f0f0; --win-border: #a0a0a0; --win-dark: #696969; --win-input: #7a7a7a;
  --win-select: #0067c0; --win-hover: #e1ecf7; --win-hover-border: #0093dd;
  --win-font: "Microsoft Sans Serif", Tahoma, "Segoe UI", Arial, sans-serif;
  --bs-body-font-family: var(--win-font);
  --bs-link-color: var(--fk-blue); --bs-link-hover-color: var(--fk-blue-dark);
}
html, body { height: 100%; }
body.ibots { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: #ababab;
  font: 11px/1.25 var(--win-font); color: #000; }

/* ---- menu bar (frmMain.MenuStrip) ---------------------------------------------------------- */
.menubar { display: flex; align-items: stretch; background: var(--fk-blue); color: #fff; border-bottom: 3px solid var(--fk-sky);
  font-size: 12px; position: relative; z-index: 1000; user-select: none; }
.menubar .brand { display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px; color: #fff; text-decoration: none; font-weight: bold; }
.menubar .brand img { height: 22px; background: #fff; border-radius: 2px; padding: 1px 3px; }
.menubar .tag { background: var(--fk-red); color: #fff; font-size: 10px; font-weight: bold; padding: 1px 5px; border-radius: 2px; letter-spacing: .03em; }
.menubar > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menubar li { position: relative; }
.menubar .top { display: block; padding: 5px 9px; color: #fff; cursor: default; text-decoration: none; white-space: nowrap; }
.menubar li.open > .top, .menubar .top:hover, .menubar .top:focus { background: var(--fk-blue-dark); outline: none; }
.menubar ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; color: #000; list-style: none;
  margin: 0; padding: 2px; border: 1px solid #979797; box-shadow: 2px 3px 6px rgba(0,0,0,.25);
  background-image: linear-gradient(to right, #f1f1f1 26px, #e2e3e3 26px, #e2e3e3 27px, #fff 27px); }
.menubar ul ul ul { left: 100%; top: -3px; }
.menubar li.open > ul { display: block; }
.menubar ul ul a, .menubar ul ul span.item { display: block; padding: 3px 28px 3px 34px; color: #000; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.menubar ul ul a:hover, .menubar ul ul a:focus, .menubar ul ul li.open > span.item { background: #cce8ff; border-color: #99d1ff; outline: none; }
.menubar ul ul span.item.off { color: #8d8d8d; }
.menubar ul ul span.item.off:hover { background: transparent; border-color: transparent; }
.menubar ul ul li.sub > span.item::after { content: "\25B6"; position: absolute; right: 8px; font-size: 8px; top: 7px; }
.menubar ul ul li.sep { height: 1px; margin: 3px 2px 3px 30px; background: #d7d7d7; }
.menubar .exit { margin-left: auto; }
.menubar .exit button { background: none; border: 0; color: #fff; padding: 5px 12px; font: inherit; }
.menubar .exit button:hover { background: var(--fk-blue-dark); }
.menu-toggle { display: none; }

/* ---- work area and status bar (MDI client, StatusStrip) ------------------------------------ */
.workspace { flex: 1 1 auto; padding: 14px; overflow: auto; }
.statusbar { display: flex; background: var(--win-face); border-top: 1px solid #fff; box-shadow: 0 -1px 0 var(--win-border);
  font-size: 11px; padding: 2px 4px; gap: 4px; flex-wrap: wrap; }
.statusbar span { padding: 1px 10px; border-right: 1px solid #c8c8c8; }
.statusbar span:last-child { border-right: 0; margin-left: auto; }
.statusbar .notice a { color: var(--fk-red-dark); font-weight: bold; }

/* ---- a window (an MDI child form) --------------------------------------------------------- */
.win { display: inline-block; vertical-align: top; background: var(--win-face); border: 1px solid #5a7aa3; box-shadow: 3px 3px 10px rgba(0,0,0,.35);
  margin: 0 12px 14px 0; max-width: 100%; }
.win-title { display: flex; align-items: center; height: 26px; padding: 0 0 0 8px; color: #fff; font: bold 12px "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(to right, var(--fk-blue), var(--fk-sky)); }
.win-title .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title a.x { color: #fff; text-decoration: none; width: 40px; height: 26px; display: flex; align-items: center; justify-content: center; font: 16px Arial, sans-serif; }
.win-title a.x:hover { background: #e81123; }
.win-client { padding: 0; overflow: auto; }
.workspace.has-max { padding: 0; }
.workspace { position: relative; }
.win.moved { position: absolute; margin: 0; z-index: 5; }
.win:not(.max):not(.fixed) .win-title { cursor: move; touch-action: none; }
.win-title.dragging { opacity: .92; }
.win.sizable:not(.max) { resize: both; overflow: hidden; min-width: 220px; min-height: 80px; }
.win.sizable:not(.max) .win-client { overflow: auto; }
@media (max-width: 760px) { html:not(.in-mdi-wide) .win.moved { position: static; } html:not(.in-mdi-wide) .win .win-title { cursor: default; } }
.win.max { display: block; margin: 0 0 14px; box-shadow: none; border-left: 0; border-right: 0; }
.win-title a.mx { font-size: 15px; }
.win-title a.mx:hover { background: rgba(255,255,255,.25); }
.win.max .w-host, .w-host { transition: none; }

/* ---- controls placed where the old form had them (winform.py) ----------------------------- */
.w-body { position: relative; font: 11px var(--win-font); }
.w-body > *, .w-group > * { position: absolute; }
.w-group { border: 1px solid #dcdcdc; border-radius: 3px; box-shadow: inset 1px 1px 0 #fff; }
.w-group .w-caption { position: absolute; left: 6px; top: -7px; background: var(--win-face); padding: 0 2px; color: var(--fk-blue); white-space: nowrap; }
.w-rule { border-top: 1px solid #c9c9c9; border-bottom: 1px solid #fff; height: 0 !important; margin-top: 6px; }
.w-label { white-space: nowrap; line-height: 13px; color: #000; }
.w-input, .w-body select, .w-body textarea { font: 11px var(--win-font); color: #000; background: #fff; border: 1px solid var(--win-input);
  border-radius: 0; padding: 1px 3px; margin: 0; box-sizing: border-box; }
.w-body select { padding: 1px 1px; }
.w-input:focus, .w-body select:focus { outline: none; border-color: #0078d7; box-shadow: 0 0 0 1px #00a8e0 inset; }
.w-input[readonly], .w-input:disabled, .w-body select:disabled { background: var(--win-face); color: #333; }
.w-input.w-error, .w-check.w-error { border-color: var(--fk-red-dark); box-shadow: 0 0 0 1px var(--fk-red-dark); background: #fff4f4; }
.w-multi { resize: none; }
.w-checklist { height: 100%; box-sizing: border-box; overflow-y: auto; background: #fff; border: 1px solid var(--win-input); padding: 1px 2px; }
.w-checklist label { display: flex; align-items: center; gap: 4px; white-space: nowrap; line-height: 16px; }
.w-checklist input { margin: 0; width: 13px; height: 13px; }
.w-check { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.w-check input { margin: 0; width: 13px; height: 13px; }
.w-button { display: inline-flex; align-items: center; justify-content: center; font: 11px var(--win-font); color: #000; text-decoration: none;
  background: #e1e1e1; border: 1px solid #adadad; border-radius: 0; padding: 0 4px; box-sizing: border-box; cursor: default; }
.w-button:hover, .w-button:focus { background: var(--win-hover); border-color: var(--win-hover-border); color: #000; outline: none; }
.w-button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.w-button:active { background: #cce4f7; border-color: #005499; }
.w-button:disabled { color: #a0a0a0; background: #ccc; border-color: #bfbfbf; }
.w-button.default { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
.w-host { overflow: auto; background: #fff; border: 1px solid #828790; }
.w-raw { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.w-raw > select, .w-raw > input:not([type=radio]):not([type=checkbox]) { width: 100%; height: 100%; }
.w-raw > textarea, .w-raw > .w-checklist { width: 100%; height: 100%; align-self: stretch; resize: none; box-sizing: border-box; }
.w-raw > .w-checklist label { display: flex; }
.w-raw label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.w-raw input[type=radio] { margin: 0; }
.w-host.w-button { background: none; border: 0; overflow: visible; }
.w-plain { position: absolute; overflow: visible; white-space: nowrap; }  /* a label or button the screen's script fills */
.w-heading { color: var(--fk-blue); font: bold 12px Tahoma, sans-serif; white-space: nowrap; }

/* ---- tabs (TabControl / TabPage) ----------------------------------------------------------- */
.w-tabs > .w-tabhead { position: absolute; left: 2px; top: 0; height: 22px; display: flex; align-items: flex-end; }
.w-tab { font: 11px var(--win-font); color: #000; background: #f0f0f0; border: 1px solid #d9d9d9; border-bottom: 0; padding: 2px 7px; margin-right: -1px;
  height: 20px; border-radius: 0; cursor: default; }
.w-tab:hover { background: var(--win-hover); }
.w-tab.on { background: #fff; height: 22px; position: relative; z-index: 2; border-color: #c4c4c4; }
.w-tab:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.w-tabpage { position: absolute; background: #fff; border: 1px solid #c4c4c4; }
.w-tabpage > * { position: absolute; }
.w-tabpage[hidden] { display: none; }

/* ---- grids and lists (DataGridView, ListView "Details") ------------------------------------ */
table.w-grid { width: 100%; border-collapse: collapse; font: 11px var(--win-font); background: #fff; }
.w-grid th { position: sticky; top: 0; z-index: 1; background: linear-gradient(#fff, #f1f2f4); border-right: 1px solid #e5e5e5; border-bottom: 1px solid #d5d5d5;
  font-weight: normal; padding: 3px 5px; text-align: left; white-space: nowrap; }
.w-grid td { border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; padding: 2px 5px; white-space: nowrap; }
.w-grid tbody tr:hover td { background: #e5f3ff; cursor: default; }
.w-grid tbody tr.sel td { background: var(--win-select); color: #fff; }
.w-grid tbody tr.sel td a { color: #fff; }
.w-grid td a { color: inherit; text-decoration: none; display: block; }
.w-grid .w-tickcol { width: 46px; text-align: center; }
.w-grid .num { text-align: right; }
.w-grid .w-empty { color: #777; padding: 8px; }
.w-grid tr.hidden { display: none; }
.w-editgrid td { padding: 1px 2px; }
.w-red { color: #d40000; }
.w-grid tbody tr.red td { background: #d40000; color: #fff; }
.help-panel { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); width: min(760px, 96vw); max-height: 70vh; overflow: auto;
  background: var(--win-face); border: 1px solid #5a7aa3; box-shadow: 0 6px 24px rgba(0,0,0,.35); z-index: 30; }
.help-panel .help-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; color: #fff; font: bold 12px "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(to right, var(--fk-blue), var(--fk-sky)); position: sticky; top: 0; z-index: 2; }
.help-panel .help-head button { background: none; border: 0; color: #fff; font-size: 14px; cursor: pointer; }
.help-panel tbody tr { cursor: pointer; }
.scan-msg { font-weight: bold; color: var(--fk-blue); white-space: nowrap; }
.scan-msg.bad { color: var(--fk-red-dark); }
.print-status { position: fixed; right: 16px; bottom: 34px; max-width: 520px; padding: 8px 12px; background: #fff; border: 1px solid #9aa;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); font: 12px var(--win-font); z-index: 20; }
.print-status.ok { border-color: #1e7a3c; color: #1e7a3c; } .print-status.bad { border-color: var(--fk-red-dark); color: var(--fk-red-dark); }
.w-cell { width: 100%; min-width: 90px; font: 11px var(--win-font); border: 1px solid transparent; padding: 1px 3px; background: transparent; }
.w-cell:focus { border-color: #0078d7; background: #fff; outline: none; }
.w-cell.up { text-transform: uppercase; }
.w-grid tbody tr.sel td .w-cell { color: #fff; }

/* ---- tree (TreeView) ----------------------------------------------------------------------- */
.w-tree { list-style: none; margin: 0; padding: 2px 0 2px 2px; font: 11px var(--win-font); }
.w-tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dotted #a0a0a0; margin-left: 6px; }
.w-tree li { white-space: nowrap; line-height: 17px; }
.w-tree .pm { display: inline-block; width: 9px; height: 9px; border: 1px solid #919191; font: 9px/7px monospace; text-align: center;
  margin-right: 4px; color: #333; background: #fff; vertical-align: -1px; text-decoration: none; }
.w-tree .pm.none { border-color: transparent; background: transparent; }
.w-tree a.n { color: #000; text-decoration: none; padding: 0 2px; }
.w-tree a.n:hover { background: #e5f3ff; }
.w-tree a.n.sel { background: var(--win-select); color: #fff; }

/* ---- message box (MsgBox) ------------------------------------------------------------------ */
.msgbox .modal-content { border-radius: 0; border: 1px solid #5a7aa3; font: 12px var(--win-font); }
.msgbox .modal-header { padding: 4px 8px; background: linear-gradient(to right, var(--fk-blue), var(--fk-sky)); color: #fff; border-radius: 0; }
.msgbox .modal-title { font: bold 12px "Segoe UI", Tahoma, sans-serif; }
.msgbox .modal-body { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; }
.msgbox .icon { font: bold 20px Arial; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.msgbox .icon.info { background: #1c74c4; }
.msgbox .icon.error { background: var(--fk-red); }
.msgbox .modal-footer { background: var(--win-face); padding: 6px 10px; border-top: 1px solid #dfdfdf; }
.msgbox .w-button { position: static; width: 75px; height: 23px; }

/* ---- empty work area and the log-in window ---------------------------------------------------- */
.home-mark { text-align: center; color: #3c3c3c; margin-top: 12vh; font-size: 13px; }
.home-mark img { width: 220px; opacity: .9; background: #fff; padding: 10px 16px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.home-mark p { margin-top: 14px; }
.login-banner { display: flex; align-items: center; justify-content: center; gap: 18px; height: 100%; background: #fff;
  border: 1px solid #c9d6e6; color: var(--fk-blue); font: bold 26px "Segoe UI", Tahoma, sans-serif; }
.login-banner img { height: 90px; }
.w-raw > .login-banner { flex: 1 1 auto; align-self: stretch; }
.win.fixed .win-client { overflow: hidden; }
.login-banner small { display: block; font: 12px "Segoe UI", Tahoma, sans-serif; color: var(--fk-red); letter-spacing: .05em; text-transform: uppercase; }
body.ibots:not(:has(.menubar)) .workspace { display: flex; align-items: center; justify-content: center; }

/* ---- old print pages and simple pages inside a window ---------------------------------------- */
.win .page { padding: 12px 14px; font-size: 13px; font-family: "Segoe UI", Tahoma, sans-serif; }
.win .page h1 { font-size: 16px; color: var(--fk-blue); }
.win .page .card { border-radius: 0; margin-bottom: 12px; }
.win .page .card { padding: 10px 12px; background: var(--win-face); border: 1px solid #dcdcdc; }
.win .page form.pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.win .page label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.win .page label.radio { flex-direction: row; align-items: center; gap: 4px; }
.win .page input:not([type=radio]), .win .page select { font: 12px var(--win-font); border: 1px solid var(--win-input); padding: 2px 4px; min-height: 22px; background: #fff; }
.win .page .btn { font: 12px var(--win-font); color: #000; background: #e1e1e1; border: 1px solid #adadad; border-radius: 0; padding: 3px 14px; }
.win .page .btn:hover { background: var(--win-hover); border-color: var(--win-hover-border); }
.win .page .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.win .page .status { font-size: 12px; color: #444; }
.win .page .status.ok { color: #1e7a3c; } .win .page .status.bad { color: var(--fk-red-dark); }
.win .page .error { color: var(--fk-red-dark); font-weight: bold; }
.win .page dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 0 0 10px; }
.win .page dl.facts dt { font-size: 11px; color: #555; font-weight: normal; }
.win .page dl.facts dd { margin: 0; font-weight: bold; }
.win .page .table-wrap { overflow-x: auto; background: #fff; }
.win .page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.win .page th { background: linear-gradient(#fff, #f1f2f4); border-bottom: 1px solid #d5d5d5; font-weight: normal; padding: 3px 6px; text-align: left; }
.win .page td { border-bottom: 1px solid #f0f0f0; padding: 2px 6px; }
.report { background: #fff; padding: 10px 14px; font: 12px var(--win-font); }
.report h2 { font: bold 14px Tahoma, sans-serif; color: var(--fk-blue); text-align: center; margin: 4px 0 10px; }
.report table { width: 100%; border-collapse: collapse; }
.report th { border-bottom: 1px solid #000; text-align: left; padding: 3px 4px; }
.report td { border-bottom: 1px dotted #bbb; padding: 3px 4px; vertical-align: top; }
@media print { .menubar, .statusbar, .noprint { display: none !important; } body.ibots { background: #fff; } .win { box-shadow: none; border: 0; } }

/* ---- phones: the same controls, one under the other ----------------------------------------- */
@media (max-width: 760px) {
  html:not(.in-mdi-wide) body.ibots { font-size: 14px; }
  html:not(.in-mdi-wide) .menu-toggle { display: block; background: none; border: 0; color: #fff; font-size: 20px; padding: 2px 12px; }
  html:not(.in-mdi-wide) .menubar { flex-wrap: wrap; }
  html:not(.in-mdi-wide) .menubar > ul { display: none; width: 100%; flex-direction: column; }
  html:not(.in-mdi-wide) .menubar.show > ul { display: flex; }
  html:not(.in-mdi-wide) .menubar ul ul, html:not(.in-mdi-wide) .menubar ul ul ul { position: static; box-shadow: none; border: 0; background: #fff; min-width: 0; padding-left: 10px; }
  html:not(.in-mdi-wide) .menubar ul ul a, html:not(.in-mdi-wide) .menubar ul ul span.item { padding: 8px 10px; font-size: 14px; }
  html:not(.in-mdi-wide) .menubar .top { padding: 9px 12px; font-size: 14px; }
  html:not(.in-mdi-wide) .menubar .exit { margin-left: 0; }
  html:not(.in-mdi-wide) .workspace { padding: 6px; }
  html:not(.in-mdi-wide) .win { display: block; margin: 0 0 10px; width: auto !important; }
  html:not(.in-mdi-wide) .w-body { width: auto !important; height: auto !important; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  html:not(.in-mdi-wide) .w-body > *, html:not(.in-mdi-wide) .w-group > * { position: static !important; width: auto !important; height: auto !important; }
  html:not(.in-mdi-wide) .w-group { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 8px; margin-top: 8px; position: relative !important; }
  html:not(.in-mdi-wide) .w-group .w-caption { position: absolute !important; }
  html:not(.in-mdi-wide) .w-tabs { position: static !important; width: auto !important; height: auto !important; }
  html:not(.in-mdi-wide) .w-tabs > .w-tabhead { position: static; height: auto; flex-wrap: wrap; gap: 2px; }
  html:not(.in-mdi-wide) .w-tab, html:not(.in-mdi-wide) .w-tab.on { height: auto; padding: 8px 10px; font-size: 14px; border-bottom: 1px solid #d9d9d9; }
  html:not(.in-mdi-wide) .w-tabpage { position: static !important; width: auto !important; height: auto !important; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
  html:not(.in-mdi-wide) .w-tabpage > * { position: static !important; width: auto !important; height: auto !important; }
  html:not(.in-mdi-wide) .w-input, html:not(.in-mdi-wide) .w-body select { font-size: 16px; min-height: 36px; width: 100% !important; }
  html:not(.in-mdi-wide) .w-label { white-space: normal; margin-top: 4px; font-size: 13px; }
  html:not(.in-mdi-wide) .w-button { min-height: 40px; font-size: 15px; }
  html:not(.in-mdi-wide) .w-host { max-height: 60vh; }
  html:not(.in-mdi-wide) .w-check { font-size: 15px; min-height: 30px; }
  html:not(.in-mdi-wide) .w-check input { width: 18px; height: 18px; }
  html:not(.in-mdi-wide) .w-grid { font-size: 13px; }
  html:not(.in-mdi-wide) .w-grid td, html:not(.in-mdi-wide) .w-grid th { padding: 6px 6px; }
  html:not(.in-mdi-wide) .statusbar { font-size: 12px; }
}

/* POD Update: list date and the POD image upload, below the list */
.pod-up { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11px; }
.pod-up .w-input { position: static; width: auto; height: 20px; font-size: 11px; }
.pod-up input[type=file] { font-size: 11px; max-width: 210px; }
.pod-up .pod-sep { margin-left: 10px; }
.pod-up #pod-current, .pod-up #pod-msg { flex-basis: 100%; }

/* pick lists that open a document (tracking: Manifest / Delivery) */
.help-panel tr.pick { cursor: pointer; }
.help-panel tr.pick:hover td { background: var(--win-select); color: #fff; }
.help-note { font-size: 11px; padding: 4px 6px; color: #555; }
.w-greyed { background: #f0f0f0; color: #6d6d6d; }

/* the scan outbox: "3 waiting", offline, scans to do again */
.outbox-status { margin: 2px 4px 4px; padding: 3px 6px; border: 1px solid #c8b560; background: #fff8d8; color: #4a3d00; font-size: 12px; }
.outbox-status.bad { border-color: #c0392b; background: #fdecea; color: #8a1c12; font-weight: bold; }
.outbox-status .w-button { margin-left: 8px; padding: 0 6px; font-size: 11px; }
/* Tracking: lines taken back (archive), shown apart below the window */
.corrections { height: 100%; overflow: auto; border: 1px solid #b33; background: #fff; }
.corrections .corr-head { padding: 2px 6px; background: #8a1c1c; color: #fff; font: bold 11px "Segoe UI", Tahoma, sans-serif; }
.refused { margin: 6px 0; }
.refused .grid-wrap { max-height: 220px; overflow: auto; }
.pod-opts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; margin: 0; padding: 2px 0 0; border: 0; font-size: 11px; }
.pod-opts .pod-legend { font-weight: bold; }
.pod-opts label { display: inline-flex; align-items: center; gap: 3px; }

/* ---- the desktop (mdi.js): screens in windows on the home page, a window bar above the status bar ------------- */
html.in-mdi .menubar, html.in-mdi .statusbar { display: none; }
html.in-mdi body.ibots { min-height: 0; height: 100vh; }
html.in-mdi .workspace { padding: 0; }
html.in-mdi .workspace > .win { border: 0; box-shadow: none; margin: 0; }
html.in-mdi .workspace > .win > .win-title { display: none; }
html.mdi-desk .workspace { position: relative; overflow: hidden; padding: 0; }
html.mdi-desk .home-mark { margin: 0; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.mdi-win { position: absolute; display: flex; flex-direction: column; background: var(--win-face); border: 1px solid #5a7aa3;
  box-shadow: 3px 3px 10px rgba(0,0,0,.35); min-width: 260px; min-height: 120px; }
.mdi-win.max { inset: 0; box-shadow: none; border: 0; }
.mdi-win[hidden] { display: none; }
.mdi-title { display: flex; align-items: center; height: 26px; flex: 0 0 26px; padding-left: 8px; color: #fff; background: #7a96bb;
  font: bold 12px "Segoe UI", Tahoma, sans-serif; cursor: move; touch-action: none; user-select: none; }
.mdi-win.active .mdi-title { background: linear-gradient(90deg, var(--fk-blue), var(--fk-sky)); }
.mdi-win.max .mdi-title { cursor: default; }
.mdi-title .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdi-title button { width: 40px; height: 26px; border: 0; background: none; color: #fff; font: 15px Arial, sans-serif; cursor: pointer; }
.mdi-title button:hover { background: rgba(255,255,255,.25); }
.mdi-title button.cl:hover { background: #e81123; }
.mdi-frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--win-face); }
.mdi-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #8a8a8a 50%, #8a8a8a 60%, transparent 60%, transparent 75%, #8a8a8a 75%, #8a8a8a 85%, transparent 85%); }
.mdi-win.max .mdi-grip { display: none; }
html.mdi-dragging .mdi-frame { pointer-events: none; }
html.mdi-dragging { cursor: move; }
.mdi-bar { display: flex; gap: 3px; padding: 2px 4px; background: #d6dbe3; border-top: 1px solid #fff; overflow-x: auto; flex: 0 0 auto; }
.mdi-bar[hidden] { display: none; }
.mdi-task { flex: 0 1 180px; min-width: 90px; height: 22px; padding: 0 8px; border: 1px solid #9aa7b8; background: #f3f5f8; font: 11px var(--win-font);
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mdi-task.on { background: #fff; border-color: var(--fk-sky); box-shadow: inset 0 -2px 0 var(--fk-sky); font-weight: bold; }
.mdi-task.min { color: #555; font-style: italic; }
@media (max-width: 760px) { html:not(.in-mdi-wide) .mdi-win:not(.max) { inset: 0 !important; width: auto !important; height: auto !important; } html:not(.in-mdi-wide) .mdi-grip { display: none; } }
.mdi-lost { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; padding: 18px; background: #fff8e1; border-top: 3px solid var(--fk-red);
  font: 13px "Segoe UI", Tahoma, sans-serif; overflow: auto; }
.mdi-lost .w-button { position: static; height: 26px; padding: 0 10px; margin: 4px 4px 4px 0; }

/* ---- searchable drop-downs (combo.js): a box to type in, the list narrowed to what is typed ------------------- */
select.combo-native { display: none !important; }
input.combo-box { padding-right: 16px; cursor: text;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23444'/%3E%3C/svg%3E") no-repeat right 5px center; }
input.combo-box:disabled { background-color: var(--win-face); }
.combo-list { position: fixed; z-index: 3000; margin: 0; padding: 1px 0; list-style: none; overflow-y: auto; background: #fff;
  border: 1px solid #7a7a7a; box-shadow: 2px 3px 8px rgba(0,0,0,.25); font: 11px var(--win-font); }
.combo-list li { padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.combo-list li.on { background: var(--win-select); color: #fff; }
.combo-list li.none { color: #777; font-style: italic; }
@media (max-width: 760px) { html:not(.in-mdi-wide) .combo-list { font-size: 15px; } html:not(.in-mdi-wide) .combo-list li { padding: 8px 10px; } }
