/* Turck OrderFlow Server - Turck Vilant house style, as the Turck OrderFlow app: Turck yellow and black, zinc
   greys, square corners, bold uppercase labels. */
:root {
  --yellow: #ffcc00;
  --yellow-hover: #ffd633;
  --yellow-strong: #e6b800;
  --yellow-soft: #fffae6;
  --black: #09090b;
  --ink: #18181b;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --zinc-50: #fafafa;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --green: #16a34a;
  --green-ink: #166534;
  --green-soft: #f0fdf4;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --amber-ink: #9a3412;
  --amber-soft: #ffedd5;
  --topbar-height: 64px;
  /* Names the page code uses. */
  --danger: var(--red);
  --ok: var(--green);
  --muted: var(--zinc-500);
  --line: var(--zinc-200);
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--zinc-100); color: var(--ink); line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: var(--yellow-strong); text-decoration-thickness: 2px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--zinc-100); padding: 1px 5px; }
svg { flex-shrink: 0; }

/* Top bar: menu button and black brand block on a Turck-yellow bar; the pages are in the menu. */
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: stretch; min-height: var(--topbar-height);
  background: var(--yellow); border-bottom: 1px solid #0000001a;
}
header.top .brand { display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--black); color: #fff; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow); color: var(--black); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.brand-name b { color: var(--yellow); font-weight: 800; }
.brand-customer { max-width: 220px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--yellow); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.menu-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border: 0; border-right: 1px solid #ffffff26; background: var(--black); color: #fff; cursor: pointer;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.menu-button:hover, .menu-button[aria-expanded="true"] { background: var(--zinc-700); }
.menu-button[aria-expanded="true"] { color: var(--yellow); }
.current-page { display: flex; align-items: center; gap: 10px; padding: 0 22px; min-width: 0; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
/* The pages under each other, under the menu button. */
nav.page-menu {
  position: absolute; left: 0; top: 100%; z-index: 30; display: flex; flex-direction: column; width: 320px; max-width: 100vw; max-height: calc(100vh - var(--topbar-height)); overflow-y: auto;
  background: #fff; border: 2px solid var(--black); border-top: 6px solid var(--black); box-shadow: 0 16px 40px #00000040;
}
nav.page-menu a {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 20px; border-top: 1px solid var(--zinc-200); color: var(--black); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
nav.page-menu a:first-child { border-top: 0; }
nav.page-menu a svg { opacity: .75; }
nav.page-menu a:hover, nav.page-menu a:focus-visible { background: var(--yellow-soft); box-shadow: inset 5px 0 var(--yellow); outline: none; }
nav.page-menu a[aria-current="page"] { background: var(--yellow); box-shadow: inset 5px 0 var(--black); }
nav.page-menu a[aria-current="page"] svg { opacity: 1; }
header.top .account { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 0 20px; flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 3px 3px 3px 12px; background: #fff; border: 2px solid var(--black); white-space: nowrap; font-weight: 700; }
.user-chip strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.user-chip button.btn { min-height: 34px; padding: 4px 10px; border: 0; background: var(--black); color: #fff; font-size: 11px; }
.user-chip button.btn:hover { background: var(--zinc-700); }
.turck-logo { display: block; height: 40px; width: auto; }
/* PTL Configurator: the HMIs, as in the Demo Shop. */
.hmi-menu { position: relative; }
.hmi-menu:empty { display: none; }
button.btn.hmi-button { min-height: 40px; border-color: var(--black); background: var(--black); color: #fff; font-size: 12px; }
button.btn.hmi-button:hover { background: var(--zinc-700); }
.hmi-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: flex; flex-direction: column; min-width: 260px; max-height: 60vh; overflow-y: auto; background: #fff; border: 2px solid var(--black); border-top: 6px solid var(--black); box-shadow: 0 16px 40px #00000040; }
.hmi-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border: 0; border-top: 1px solid var(--zinc-200); background: #fff; text-align: left; cursor: pointer; }
.hmi-list button:first-child { border-top: 0; }
.hmi-list button:hover { background: var(--yellow-soft); box-shadow: inset 5px 0 var(--yellow); }
.hmi-list strong { font-size: 14px; }
.hmi-list small { color: var(--zinc-500); font-size: 12px; }

main { max-width: 1400px; margin: 0 auto; padding: 28px 28px 60px; }
.page-heading { margin-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--zinc-500); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--yellow); flex-shrink: 0; }
h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: anywhere; }

/* Panels: a black title bar with a yellow mark, as the OrderFlow station settings. */
.panel { background: #fff; border: 2px solid var(--zinc-200); padding: 0 20px 20px; margin-bottom: 20px; }
.panel > h2:first-child, .panel > .row:first-child:has(> h2) {
  display: flex; align-items: center; gap: 12px; margin: 0 -20px 18px; padding: 12px 20px; min-height: 52px;
  background: var(--black); color: #fff;
}
.panel > h2:first-child, .panel > .row:first-child > h2 { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel > h2:first-child::before, .panel > .row:first-child > h2::before { content: ""; display: inline-block; width: 6px; height: 18px; margin-right: 12px; background: var(--yellow); vertical-align: -3px; }
.panel > h2:first-child::before { margin-right: 0; }
.panel > .row:first-child > h2 { margin: 0; }
.panel > .row:first-child .muted { color: var(--zinc-400); }
.panel > .row:first-child button.btn { border-color: var(--zinc-600); background: transparent; color: #fff; }
.panel > .row:first-child button.btn:hover { border-color: var(--yellow); }
.panel > .row:first-child button.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.panel > .row:first-child input, .panel > .row:first-child select { border-color: var(--zinc-600); }
.panel > .row:first-child .badge { margin-left: auto; }
.panel h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.panel h3 { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel p { margin: 0 0 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 12px; }
.grow { flex: 1; }
.muted { color: var(--zinc-500); }
.small { font-size: 13px; }
ul { margin: 8px 0 12px; padding-left: 20px; }
li { margin: 4px 0; }

/* Fields */
input, select, textarea {
  min-width: 0; min-height: 42px; padding: 8px 12px; border: 2px solid var(--zinc-300); border-radius: 0; background: #fff; color: var(--ink); font-size: 15px;
}
input:hover, select:hover, textarea:hover { border-color: var(--zinc-400); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input:disabled, select:disabled { background: var(--zinc-100); color: var(--zinc-500); }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--black); }
textarea { width: 100%; min-height: 240px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
label.field input, label.field select, label.field textarea { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
label.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: end; }

/* Buttons: square, bold, uppercase. Primary = Turck yellow. */
button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 2px solid var(--zinc-300); border-radius: 0; background: #fff; color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: background .15s, border-color .15s;
}
button.btn:hover { border-color: var(--ink); }
button.btn:active { transform: translateY(1px); }
button.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
button.btn.primary:hover { background: var(--yellow-hover); border-color: var(--black); }
button.btn.danger { color: var(--red); }
button.btn.danger:hover { border-color: var(--red); background: var(--red-soft); }
button.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
button.link {
  padding: 2px 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--yellow-strong); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
button.link:hover { text-decoration-color: var(--black); }

/* Tables: black header row, as the OrderFlow station order list. */
.table-wrap { overflow-x: auto; border: 2px solid var(--zinc-200); }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; background: var(--black); color: #fff; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
td { padding: 10px 14px; border-top: 1px solid var(--zinc-200); text-align: left; vertical-align: middle; }
tbody tr:hover td { background: var(--zinc-50); }
tr.clickable { cursor: pointer; }
tr.selected td { background: var(--yellow-soft); }
tr.selected td:first-child { box-shadow: inset 6px 0 var(--yellow); }
td .row { flex-wrap: nowrap; gap: 14px; }

/* Order statuses, as in the OrderFlow station. */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; background: var(--zinc-100); color: var(--zinc-600);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.OPEN { background: var(--blue-soft); color: var(--blue); }
.badge.IN_PROGRESS, .badge.PARTIALLY_COMPLETED { background: var(--amber-soft); color: var(--amber-ink); }
.badge.COMPLETED { background: var(--green-soft); color: var(--green-ink); }
.badge.CANCELLED { background: var(--zinc-100); color: var(--zinc-500); }
.badge.ERROR { background: var(--red-soft); color: #991b1b; }
td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.panel > .row:first-child label.check.pause { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* Messages */
.notice { margin-bottom: 18px; padding: 14px 16px; border-left: 6px solid var(--zinc-400); background: #fff; line-height: 1.55; }
.notice.error { background: var(--red-soft); border-color: var(--red); color: #991b1b; }
.notice.ok { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.notice p { margin: 0 0 8px; }
.key { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: #fff; padding: 10px 12px; border: 2px dashed var(--zinc-300); color: var(--ink); font-weight: 400; }
pre.code { background: var(--black); color: var(--zinc-100); padding: 14px 16px; overflow-x: auto; font-size: 13px; }
pre.code.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Login: as the OrderFlow station login dialog. */
.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--black); }
.login .panel { display: flex; flex-direction: column; gap: 16px; width: min(440px, 100%); margin: 0; padding: 0 28px 26px; border: 0; border-top: 10px solid var(--yellow); box-shadow: 0 24px 60px #00000059; }
.login .dialog-head { display: flex; align-items: center; gap: 14px; padding-top: 22px; }
.login .dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--black); color: var(--yellow); flex-shrink: 0; }
.login .dialog-head .eyebrow { margin-bottom: 4px; }
.login .dialog-head h2 { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.login .dialog-head h2 b { color: var(--yellow-strong); }
.login label.field input { font-weight: 400; text-transform: none; letter-spacing: 0; }
.login button.btn { min-height: 50px; font-size: 14px; }
.login .turck-logo { align-self: center; height: 36px; margin-top: 4px; }
.login .notice { margin: 0; }

.perm-group { border: 2px solid var(--zinc-200); padding: 12px 16px; margin: 10px 0; background: var(--zinc-50); }
.perm-group legend { padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .split.two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* Telegrams: the list scrolls in its own frame (the column headers stay on top), not the page.
   Wide screens: the page is exactly as high as the window, with the details of the chosen
   telegram next to the list, also scrolling by itself. */
main.telegram-page > .panel > .table-wrap { max-height: 60vh; overflow-y: auto; }
main.telegram-page > .panel > .table-wrap th { position: sticky; top: 0; z-index: 1; }
.panel > .row.telegram-toolbar { flex: 0 0 auto; height: auto; gap: 10px 16px; }
.telegram-toolbar > h2 { min-width: 180px; }
.telegram-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.telegram-controls select { min-height: 32px; height: 32px; padding: 3px 8px; font-size: 13px; width: 165px; max-width: 100%; }
.telegram-controls select:first-child { width: 190px; }
.telegram-toolbar .telegram-controls .btn { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.telegram-controls .pause { min-height: 32px; white-space: nowrap; }
.telegram-controls input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--yellow); }
.telegram-controls :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (min-width: 1100px) {
  main.telegram-page {
    max-width: 1800px; height: calc(100dvh - var(--topbar-height)); padding-bottom: 20px;
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 20px;
  }
  main.telegram-page > .page-heading, main.telegram-page > #notice { grid-column: 1 / -1; }
  main.telegram-page > .panel { display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }
  main.telegram-page > .panel > .table-wrap { flex: 1 1 auto; min-height: 0; max-height: none; }
  .telegram-detail { min-height: 0; overflow-y: auto; }
  .telegram-detail > .panel { margin-bottom: 0; }
}
/* Telegrams: days to keep; Integrations: the forwarding destinations. */
.row.retention { gap: 8px; margin: -4px 0 12px; }
.row.retention input.days { width: 90px; }
/* Endpoints (Integrations): a card per endpoint, with a tile per kind of messages sent there. */
.integration-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-nav .btn[aria-pressed="true"] { background: var(--yellow); border-color: var(--black); }
/* The sections of a long page (Put-to-light, Labels): one part at a time. */
.section-nav { margin-bottom: 16px; }
.integration-details > summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.integration-details[open] > summary { margin-bottom: 12px; }
.endpoint-summary { cursor: pointer; overflow-wrap: anywhere; }
.endpoint-summary > * { margin-right: 10px; }
.endpoint-summary .small { display: block; margin-top: 6px; }
.endpoint-body { border-top: 1px solid var(--zinc-200); margin-top: 14px; padding-top: 14px; }
.integration-details > summary:focus-visible, .endpoint-summary:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.row.add-endpoint { margin: 4px 0 16px; }
.row.add-endpoint input { flex: 1 1 320px; }
.endpoints { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.endpoints:empty { display: none; }
.endpoint { border: 2px solid var(--zinc-200); border-left: 6px solid var(--yellow); padding: 14px 18px; background: #fff; }
.endpoint-head { gap: 12px; margin-bottom: 10px; }
.endpoint-head .endpoint-name { flex: 1 1 200px; font-weight: 700; }
.endpoint-type { padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--black); }
.endpoint-type.mqtt { background: var(--zinc-700); }
.endpoint h4 { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.send-sections { display: grid; }
.send-section { border-top: 1px solid var(--zinc-200); padding: 14px 0; min-width: 0; }
.send-section.on .send-toggle strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.send-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.send-toggle input { margin-top: 3px; }
.send-toggle span { display: flex; flex-direction: column; }
.send-toggle small { color: var(--zinc-500); }
.section-choices { margin: 8px 0 0 28px; }
.section-choices .kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 16px; margin: 8px 0 16px; }
.section-choices .strong { font-weight: 800; margin-top: 6px; }
.endpoint-state { margin: 10px 0 0; }
/* Uploading a Turck OrderFlow version: the progress, with Cancel. */
.upload-progress { margin-top: 14px; }
.upload-bar { height: 18px; overflow: hidden; background: var(--zinc-200); border: 2px solid var(--black); }
.upload-bar i { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .2s linear; }
.upload-progress .row { margin-top: 6px; justify-content: space-between; }
.endpoint-http > .field:first-child { grid-column: 1 / -1; }
.forwards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.forwards:empty { display: none; }
.forward { border: 2px solid var(--zinc-200); border-left: 5px solid var(--yellow); padding: 12px 16px; }
.forward .strong { margin-top: 10px; font-weight: 800; }
.forward .kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 10px 0; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 0 0 16px; }
dl.facts dt { color: var(--zinc-500); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
dl.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
/* Dashboards: the editor, with the preview as a screen shows it (16:9, nothing to click). */
.dashboard-preview { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 12px; border: 2px solid var(--black); background: #000; pointer-events: none; }
textarea.dashboard-html { min-height: 420px; margin-bottom: 10px; }
table.history { width: auto; }
/* API documentation inside the website (public/docs.html): contents on the left, sticky. */
.panel.docs { padding-top: 18px; }
.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.docs-contents { position: sticky; top: calc(var(--topbar-height) + 16px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-contents a { padding: 6px 10px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.docs-contents a:hover { border-left-color: var(--yellow); background: var(--zinc-50); }
.docs-content { min-width: 0; line-height: 1.6; }
.docs-content section { padding-bottom: 8px; border-bottom: 1px solid var(--zinc-200); }
.docs-content section:last-child { border-bottom: 0; }
.docs-content [id] { scroll-margin-top: calc(var(--topbar-height) + 16px); }
.docs-content h2 { margin: 26px 0 10px; font-size: 20px; font-weight: 800; }
.docs-content section:first-child h2 { margin-top: 0; }
.docs-content h3 { margin: 22px 0 8px; font-size: 15px; letter-spacing: 0; text-transform: none; }
.docs-content code { padding: 1px 5px; background: var(--zinc-100); font: 13px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.docs-content pre { margin: 0 0 14px; padding: 14px 16px; overflow-x: auto; background: var(--black); color: var(--zinc-100); font: 13px/1.5 ui-monospace, Consolas, monospace; }
.docs-content pre code, .docs-content pre span { padding: 0; background: none; color: inherit; }
.docs-content table { margin-bottom: 14px; border: 2px solid var(--zinc-200); font-size: 14px; }
.docs-content td { vertical-align: top; }
.docs-content td:first-child { white-space: nowrap; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-contents { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs-content td:first-child { white-space: normal; }
}
/* New order: a row per line (product code, quantity). */
.order-line { margin-bottom: 8px; flex-wrap: nowrap; }
.order-line input:first-child { flex: 1 1 260px; }
.order-line input.quantity { width: 110px; }
table.history td { padding: 4px 16px 4px 0; border-top: 0; }
.shift-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr) minmax(110px, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.goal-note { font-weight: 400; letter-spacing: 0; text-transform: none; }
a.btn { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 2px solid var(--zinc-300); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
a.btn:hover { border-color: var(--ink); }
@media (max-width: 640px) { .shift-row { grid-template-columns: 1fr 1fr; } .shift-row > .field:first-child { grid-column: 1 / -1; } }

/* Narrower screens: the account and the PTL Configurator get their own row. */
@media (max-width: 1100px) {
  .current-page { display: none; }
  header.top { flex-wrap: wrap; }
  header.top .brand { flex: 1 1 auto; min-width: 0; }
  header.top .account { order: 3; width: 100%; justify-content: flex-end; padding: 8px 16px; border-top: 1px solid #0000001a; }
}
@media (max-width: 640px) {
  header.top { position: relative; }
  header.top .account { flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 12px; }
  button.btn.hmi-button { padding: 6px 10px; }
  header.top .account .turck-logo { display: none; }
  .menu-button { padding: 0 16px; }
  .menu-button span { display: none; }
  nav.page-menu { width: 100%; border-left: 0; border-right: 0; }
  .panel > .row:first-child > h2 { flex-basis: 100%; }
  .panel > .row:first-child input[type="search"] { flex: 1 1 100%; }
  header.top .brand { padding: 10px 16px; }
  .user-chip strong { max-width: 90px; }
  main { padding: 18px 16px 48px; }
  h1 { font-size: 26px; }
  .panel { padding: 0 14px 14px; }
  .panel > h2:first-child, .panel > .row:first-child:has(> h2) { margin: 0 -14px 14px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* E-mail: one block per address (Integrations, E-mail). */
.email-recipients { display: grid; gap: 10px; margin-bottom: 10px; }
.email-recipient { padding: 12px 14px; border: 1px solid var(--zinc-200); background: var(--zinc-50); }
.email-recipient .row { flex-wrap: wrap; }
.email-recipient input[type="email"] { min-width: 260px; }
.email-recipient .perm-list { margin-top: 10px; }

/* Dashboards: the columns of a screen (one block per column). */
.dashboard-columns { display: grid; gap: 10px; margin-bottom: 10px; }
.dashboard-column { padding: 12px 14px; border: 1px solid var(--zinc-200); background: var(--zinc-50); }
.dashboard-column .row { align-items: flex-end; }
/* The screensaver videos of a dashboard, in play order. */
.saver-videos { margin: 8px 0 12px; padding-left: 1.5rem; }
.saver-videos li { margin: 4px 0; }

/* Pick areas (Locations page): the locations of an area across the whole form; a warning in a table. */
.form-grid .field.wide { grid-column: 1 / -1; display: grid; gap: 6px; }
.bad { color: var(--red); font-weight: 600; }
