ser2netweb 3.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. ser2netweb/__init__.py +20 -0
  2. ser2netweb/__main__.py +6 -0
  3. ser2netweb/accounts.py +503 -0
  4. ser2netweb/cli.py +489 -0
  5. ser2netweb/clock.py +128 -0
  6. ser2netweb/config.py +4491 -0
  7. ser2netweb/console.py +181 -0
  8. ser2netweb/datalock.py +181 -0
  9. ser2netweb/engine/__init__.py +0 -0
  10. ser2netweb/engine/access.py +173 -0
  11. ser2netweb/engine/bindhint.py +115 -0
  12. ser2netweb/engine/bridge.py +1928 -0
  13. ser2netweb/engine/cluster.py +1140 -0
  14. ser2netweb/engine/modbus.py +530 -0
  15. ser2netweb/engine/modbus_gateway.py +1465 -0
  16. ser2netweb/engine/mqtt_pub.py +632 -0
  17. ser2netweb/engine/netguard.py +805 -0
  18. ser2netweb/engine/netinfo.py +199 -0
  19. ser2netweb/engine/portdiag.py +414 -0
  20. ser2netweb/engine/portlist.py +471 -0
  21. ser2netweb/engine/protocols/__init__.py +28 -0
  22. ser2netweb/engine/protocols/base.py +117 -0
  23. ser2netweb/engine/protocols/raw.py +12 -0
  24. ser2netweb/engine/protocols/rfc2217.py +586 -0
  25. ser2netweb/engine/protocols/telnet.py +172 -0
  26. ser2netweb/engine/serial_compat.py +598 -0
  27. ser2netweb/engine/serial_io.py +210 -0
  28. ser2netweb/engine/serial_link.py +414 -0
  29. ser2netweb/engine/sockopts.py +103 -0
  30. ser2netweb/engine/sparkplug.py +538 -0
  31. ser2netweb/engine/sparkplug_node.py +550 -0
  32. ser2netweb/engine/supervisor.py +533 -0
  33. ser2netweb/engine/tls.py +232 -0
  34. ser2netweb/envvars.py +57 -0
  35. ser2netweb/explain.py +117 -0
  36. ser2netweb/healthcheck.py +78 -0
  37. ser2netweb/i18n.py +110 -0
  38. ser2netweb/importer.py +550 -0
  39. ser2netweb/layout.py +118 -0
  40. ser2netweb/licences.py +86 -0
  41. ser2netweb/locale/tr.json +1569 -0
  42. ser2netweb/logsetup.py +253 -0
  43. ser2netweb/logtext.py +23 -0
  44. ser2netweb/notify.py +761 -0
  45. ser2netweb/optional.py +76 -0
  46. ser2netweb/reload.py +295 -0
  47. ser2netweb/runtime.py +762 -0
  48. ser2netweb/sdnotify.py +85 -0
  49. ser2netweb/ser2net_import.py +2001 -0
  50. ser2netweb/signins.py +98 -0
  51. ser2netweb/standalone.py +154 -0
  52. ser2netweb/state.py +1457 -0
  53. ser2netweb/storage.py +130 -0
  54. ser2netweb/textfold.py +51 -0
  55. ser2netweb/tlsreload.py +37 -0
  56. ser2netweb/watchdog.py +201 -0
  57. ser2netweb/web/__init__.py +0 -0
  58. ser2netweb/web/api.py +793 -0
  59. ser2netweb/web/auth.py +699 -0
  60. ser2netweb/web/certinfo.py +144 -0
  61. ser2netweb/web/httpguard.py +413 -0
  62. ser2netweb/web/ldap_auth.py +556 -0
  63. ser2netweb/web/oidc_auth.py +330 -0
  64. ser2netweb/web/proxy.py +398 -0
  65. ser2netweb/web/routes/__init__.py +78 -0
  66. ser2netweb/web/routes/cluster.py +669 -0
  67. ser2netweb/web/routes/common.py +359 -0
  68. ser2netweb/web/routes/console.py +451 -0
  69. ser2netweb/web/routes/forms.py +853 -0
  70. ser2netweb/web/routes/login.py +573 -0
  71. ser2netweb/web/routes/mappings.py +470 -0
  72. ser2netweb/web/routes/ops.py +374 -0
  73. ser2netweb/web/routes/settings.py +2135 -0
  74. ser2netweb/web/routes/system.py +308 -0
  75. ser2netweb/web/routes/totp.py +282 -0
  76. ser2netweb/web/selfsigned.py +129 -0
  77. ser2netweb/web/server.py +483 -0
  78. ser2netweb/web/static/app.css +327 -0
  79. ser2netweb/web/static/app.js +1102 -0
  80. ser2netweb/web/static/htmx.min.js +1 -0
  81. ser2netweb/web/static/points.js +218 -0
  82. ser2netweb/web/static/theme.js +7 -0
  83. ser2netweb/web/static/xterm-addon-fit.js +2 -0
  84. ser2netweb/web/static/xterm.css +218 -0
  85. ser2netweb/web/static/xterm.js +2 -0
  86. ser2netweb/web/templates/_cluster_body.html +109 -0
  87. ser2netweb/web/templates/_console.html +21 -0
  88. ser2netweb/web/templates/_footer.html +13 -0
  89. ser2netweb/web/templates/_login_notice.html +8 -0
  90. ser2netweb/web/templates/_macros.html +21 -0
  91. ser2netweb/web/templates/_mapping_form.html +477 -0
  92. ser2netweb/web/templates/_mapping_log.html +28 -0
  93. ser2netweb/web/templates/_mapping_traces.html +44 -0
  94. ser2netweb/web/templates/_mappings_body.html +149 -0
  95. ser2netweb/web/templates/_modbus_read.html +18 -0
  96. ser2netweb/web/templates/_ports_table.html +37 -0
  97. ser2netweb/web/templates/_serial_port_select.html +48 -0
  98. ser2netweb/web/templates/_shell.html +41 -0
  99. ser2netweb/web/templates/audit.html +55 -0
  100. ser2netweb/web/templates/base.html +77 -0
  101. ser2netweb/web/templates/dashboard.html +72 -0
  102. ser2netweb/web/templates/licenses.html +18 -0
  103. ser2netweb/web/templates/login.html +32 -0
  104. ser2netweb/web/templates/login_totp.html +23 -0
  105. ser2netweb/web/templates/settings.html +830 -0
  106. ser2netweb/web/templates/setup.html +43 -0
  107. ser2netweb/web/templates/totp.html +41 -0
  108. ser2netweb/web/totp.py +94 -0
  109. ser2netweb/winservice.py +1793 -0
  110. ser2netweb-3.0.0.dist-info/METADATA +120 -0
  111. ser2netweb-3.0.0.dist-info/RECORD +121 -0
  112. ser2netweb-3.0.0.dist-info/WHEEL +5 -0
  113. ser2netweb-3.0.0.dist-info/entry_points.txt +2 -0
  114. ser2netweb-3.0.0.dist-info/licenses/COMMERCIAL_LICENSE.md +94 -0
  115. ser2netweb-3.0.0.dist-info/licenses/LICENSE +662 -0
  116. ser2netweb-3.0.0.dist-info/licenses/NOTICE +20 -0
  117. ser2netweb-3.0.0.dist-info/licenses/THIRD-PARTY-NOTICES.md +105 -0
  118. ser2netweb-3.0.0.dist-info/licenses/tools/licenses/npm/htmx.org.txt +13 -0
  119. ser2netweb-3.0.0.dist-info/licenses/tools/licenses/npm/xterm-addon-fit.txt +19 -0
  120. ser2netweb-3.0.0.dist-info/licenses/tools/licenses/npm/xterm.txt +21 -0
  121. ser2netweb-3.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,327 @@
1
+ :root {
2
+ --bg: #0f1419;
3
+ --panel: #1a2027;
4
+ --panel2: #222b34;
5
+ --border: #2c3640;
6
+ --text: #e6edf3;
7
+ --muted: #8b98a5;
8
+ --accent: #2f81f7;
9
+ --accent-hover: #4a92f9;
10
+ --green: #2ea043;
11
+ --red: #f85149;
12
+ --amber: #d29922;
13
+ /* text in a status colour (badges, client chips, banners, short errors) and links:
14
+ per theme, each at least 4.5:1 on the panels and on its own tint (the WCAG AA
15
+ level for small text; tests/test_ui_contrast.py checks it) */
16
+ --ok: #4dd069;
17
+ --warn: #e3b341;
18
+ --err: #ff7b72;
19
+ --info: #6cb0ff;
20
+ --stopped: #a5b1bd;
21
+ --link: #4493f8;
22
+ --btn-primary: #1f6feb;
23
+ --btn-primary-hover: #2672e6;
24
+ --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
25
+ /* the browser draws its own controls (checkboxes, radio buttons, file pickers, number
26
+ spinners, scrollbars) in the theme's colours */
27
+ color-scheme: dark;
28
+ accent-color: var(--accent);
29
+ }
30
+ :root[data-theme="light"] {
31
+ --bg: #f6f8fa;
32
+ --panel: #ffffff;
33
+ --panel2: #eef1f4;
34
+ --border: #d0d7de;
35
+ --text: #1f2328;
36
+ --muted: #59636e;
37
+ --accent: #0969da;
38
+ --accent-hover: #0860ca;
39
+ --green: #1a7f37;
40
+ --red: #cf222e;
41
+ --amber: #9a6700;
42
+ --ok: #116329;
43
+ --warn: #7d4e00;
44
+ --err: #a40e26;
45
+ --info: #0550ae;
46
+ --stopped: var(--muted);
47
+ --link: var(--accent);
48
+ --btn-primary: var(--accent);
49
+ --btn-primary-hover: var(--accent-hover);
50
+ color-scheme: light;
51
+ }
52
+ * { box-sizing: border-box; }
53
+ body {
54
+ margin: 0;
55
+ font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
56
+ background: var(--bg);
57
+ color: var(--text);
58
+ font-size: 14px;
59
+ }
60
+ a { color: var(--link); text-decoration: none; }
61
+ a:hover { text-decoration: underline; }
62
+ /* mono text is mostly device paths, hosts and IDs: let an unbroken one wrap
63
+ rather than push its box (and the buttons next to it) out of the layout */
64
+ .mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
65
+ .muted { color: var(--muted); }
66
+ .nowrap { white-space: nowrap; }
67
+
68
+ .topbar {
69
+ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
70
+ gap: 8px 16px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--border);
71
+ }
72
+ .brand { font-weight: 700; font-size: 16px; letter-spacing: .3px; min-width: 0; max-width: 100%; }
73
+ .brand .node-name {
74
+ display: inline-block; max-width: min(22rem, 60vw); vertical-align: bottom; overflow: hidden;
75
+ text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--muted);
76
+ }
77
+ .topbar nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; min-width: 0; }
78
+ .topbar .who { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
79
+ main { max-width: 1180px; margin: 22px auto; padding: 0 20px; }
80
+
81
+ .panel {
82
+ background: var(--panel); border: 1px solid var(--border);
83
+ border-radius: 10px; padding: 18px; margin-bottom: 22px;
84
+ }
85
+ .panel-head {
86
+ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
87
+ gap: 8px 12px; margin-bottom: 14px;
88
+ }
89
+ .panel-head h2 { font-size: 15px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
90
+ h3 { margin: 0 0 4px; font-size: 14px; }
91
+
92
+ /* buttons */
93
+ .btn {
94
+ background: var(--panel2); color: var(--text); border: 1px solid var(--border);
95
+ border-radius: 7px; padding: 7px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
96
+ }
97
+ .btn:hover { border-color: var(--accent); }
98
+ .btn.primary { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
99
+ .btn.primary:hover { background: var(--btn-primary-hover); }
100
+ .btn.sm { padding: 4px 9px; font-size: 12px; }
101
+ .btn.danger:hover { border-color: var(--red); color: var(--err); }
102
+ button.link { background: none; border: none; color: var(--link); cursor: pointer; padding: 0; font-size: 14px; }
103
+ form.inline { display: inline; margin: 0; }
104
+
105
+ /* tables: long names, device paths and errors wrap inside their cell, and the row
106
+ buttons wrap inside theirs. A table that still can't fit (phones) scrolls inside
107
+ its .table-scroll wrapper instead of pushing the page out of the panel. */
108
+ .table-scroll { overflow-x: auto; }
109
+ table.grid { width: 100%; border-collapse: collapse; }
110
+ table.grid th, table.grid td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
111
+ table.grid td { overflow-wrap: anywhere; }
112
+ table.grid th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
113
+ table.grid tr:hover td { background: rgba(255,255,255,.02); }
114
+ table.list { min-width: 52rem; } /* mappings + cluster: narrower than this, scroll */
115
+ table.grid.th-wrap th { white-space: normal; } /* small tables: long (Turkish) headers wrap */
116
+ table.ports { min-width: 40rem; }
117
+ .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
118
+ /* a short list in a table cell (an import preview row's changes and notes) */
119
+ .cell-list { margin: 4px 0 0; padding-left: 1.1em; font-size: 12px; color: var(--muted); }
120
+ .cell-list .security { color: var(--warn); }
121
+ /* a preview row's warnings: a full-width line under it */
122
+ table.grid tr.has-notes td { border-bottom: 0; }
123
+ table.grid tr.notes-row td { padding-top: 0; }
124
+ /* row buttons come in two groups (run controls | log, monitor, copy, delete): one
125
+ line when the row has room, otherwise group under group — never a lone button */
126
+ .row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
127
+ .btn-group { display: flex; gap: 5px; }
128
+ /* header button groups (log / console / form) */
129
+ .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; }
130
+
131
+ /* state badges */
132
+ .state { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
133
+ .state-running { background: rgba(46,160,67,.18); color: var(--ok); }
134
+ .state-stopped { background: rgba(139,152,165,.18); color: var(--stopped); }
135
+ .state-reconnecting { background: rgba(210,153,34,.18); color: var(--warn); }
136
+ .state-device-missing { background: rgba(210,153,34,.18); color: var(--warn); }
137
+ .state-error { background: rgba(248,81,73,.18); color: var(--err); }
138
+ .tag { font-size: 10.5px; background: var(--panel2); color: var(--muted); padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
139
+ .tag-danger { color: var(--err); }
140
+ .tag-warn { color: var(--warn); }
141
+ /* at most 3 lines; the full message is in the title tooltip and the mapping log */
142
+ .err-small {
143
+ color: var(--err); font-size: 11px; margin-top: 3px; max-width: 16rem;
144
+ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
145
+ }
146
+ /* the same, for what to know about a port that works (a setting it did not take) */
147
+ .warn-small {
148
+ color: var(--warn); font-size: 11px; margin-top: 3px; max-width: 16rem;
149
+ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
150
+ }
151
+ .clients { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
152
+ .peer { background: rgba(46,160,67,.14); color: var(--ok); border-radius: 4px; padding: 1px 6px; font-size: 11px; }
153
+ .peer-prio { background: rgba(47,129,247,.18); color: var(--info); }
154
+ .logbox {
155
+ background: #0b0f14; border: 1px solid var(--border); border-radius: 7px;
156
+ padding: 12px 14px; margin: 0; max-height: 460px; overflow: auto;
157
+ font-family: var(--mono); font-size: 12px; line-height: 1.5; color: #cdd9e5;
158
+ white-space: pre-wrap; word-break: break-word; color-scheme: dark;
159
+ }
160
+ .dot { display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px; }
161
+ .dot.on { background: var(--green); }
162
+ .dot.off { background: var(--border); }
163
+
164
+ /* forms */
165
+ .mform, .authform { display: block; }
166
+ label { display: block; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
167
+ label.chk { display: flex; align-items: center; gap: 7px; color: var(--text); }
168
+ input[type=text], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea {
169
+ width: 100%; margin-top: 4px; padding: 8px 10px; background: var(--bg);
170
+ color: var(--text); border: 1px solid var(--border); border-radius: 7px; font-size: 13px;
171
+ }
172
+ /* WebKit/Blink draw a search box their own way unless told it is a text field */
173
+ input[type=search] { -webkit-appearance: textfield; appearance: textfield; }
174
+ input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
175
+ /* a checkbox, radio button or file picker shows no border colour: it gets an outline */
176
+ input[type=checkbox]:focus-visible, input[type=radio]:focus-visible, input[type=file]:focus-visible {
177
+ outline: 2px solid var(--accent); outline-offset: 2px;
178
+ }
179
+ input[type=checkbox] { width: auto; margin: 0; }
180
+ .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
181
+ .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
182
+ /* The HTML `hidden` attribute (set by applyShowWhen for data-show-when blocks)
183
+ must win over the display rules above; otherwise a hidden .grid2/.grid3 block
184
+ would stay visible (e.g. Remote host/port showing while mode = server). */
185
+ [hidden] { display: none !important; }
186
+ fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px 2px; margin: 0 0 16px;
187
+ min-width: 0; } /* (a fieldset is min-content wide by default: long text would widen it) */
188
+ label > .muted { overflow-wrap: anywhere; } /* e.g. the points JSON hint: no spaces in it */
189
+ legend { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 0 6px; }
190
+ .custom-input { margin-top: 6px; }
191
+ .form-head {
192
+ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
193
+ gap: 8px 12px; margin-bottom: 14px;
194
+ }
195
+ .form-head h3 { flex: 1 1 16rem; min-width: 0; margin: 0; overflow-wrap: anywhere; }
196
+ /* the mapping form's Device field: the select, and ↻ next to it (local forms) */
197
+ .port-row { display: flex; gap: 8px; align-items: flex-end; }
198
+ .port-row > label { flex: 1 1 auto; min-width: 0; }
199
+ .port-rescan { margin-bottom: 12px; }
200
+
201
+ /* banners */
202
+ .banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; overflow-wrap: anywhere; }
203
+ .banner.error { background: rgba(248,81,73,.14); border: 1px solid rgba(248,81,73,.4); color: var(--err); }
204
+ .banner.ok { background: rgba(46,160,67,.14); border: 1px solid rgba(46,160,67,.4); color: var(--ok); }
205
+ .banner.warn { background: rgba(210,153,34,.14); border: 1px solid rgba(210,153,34,.4); color: var(--warn); }
206
+ /* the sign-in notice an admin wrote: plain text, its line breaks kept */
207
+ .banner.notice { background: var(--panel2); border: 1px solid var(--border); color: var(--text); }
208
+ .banner.notice p { margin: 0; }
209
+ .banner.notice p + p { margin-top: 8px; }
210
+ .notice-text { white-space: pre-line; }
211
+
212
+ /* feedback area (app.js): what an action did, why a request failed. It floats at the
213
+ bottom of the window, so it is seen however far the page is scrolled; the opaque
214
+ .notice under the tinted banner keeps the page from showing through. */
215
+ .feedback {
216
+ position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20;
217
+ width: min(42rem, calc(100vw - 24px)); pointer-events: none;
218
+ }
219
+ .feedback .notice { background: var(--panel); border-radius: 8px; margin-top: 8px;
220
+ box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: auto; }
221
+ .feedback .banner { margin: 0; display: flex; align-items: flex-start; gap: 10px; }
222
+ .feedback .banner > span { flex: 1 1 auto; min-width: 0; }
223
+ .feedback .dismiss { color: inherit; font-size: 16px; line-height: 1; padding: 0 2px; }
224
+ /* a self-refreshing panel whose refreshes fail: dimmed, with a note, until one works */
225
+ .stale > * { opacity: .45; }
226
+ .stale::before {
227
+ content: attr(data-stale); display: inline-block; margin-bottom: 6px; padding: 1px 8px;
228
+ border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--warn);
229
+ background: rgba(210,153,34,.14);
230
+ }
231
+
232
+ /* auth pages */
233
+ .auth-wrap { max-width: 380px; margin: 8vh auto; }
234
+ .auth-wrap .panel { padding: 26px; }
235
+ .auth-wrap h1 { font-size: 18px; margin: 0 0 4px; }
236
+
237
+ /* small layout utilities (kept in CSS so the CSP needs no 'unsafe-inline' for styles) */
238
+ .w-full { width: 100%; }
239
+ .panel-narrow { max-width: 520px; }
240
+ .chk-pad { margin-top: 24px; }
241
+ .mb-sm { margin: 0 0 8px; }
242
+ .mt-sm { margin-top: 8px; }
243
+ /* the element xterm.open()s into must have a size and NO padding (padding offsets
244
+ xterm's absolutely-positioned layers and breaks cell alignment) */
245
+ .term { height: 380px; width: 100%; background: #0b0f14; border: 1px solid var(--border);
246
+ border-radius: 7px; overflow: hidden; padding: 0; color-scheme: dark; }
247
+ .term .xterm { height: 100%; }
248
+ .term .xterm-viewport { background-color: transparent !important; }
249
+
250
+ #form-panel:empty { display: none; }
251
+ #form-panel { background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; padding: 16px; margin-bottom: 16px; }
252
+
253
+ /* phones / narrow windows */
254
+ @media (max-width: 720px) {
255
+ .topbar { padding: 10px 12px; }
256
+ main { margin: 14px auto; padding: 0 12px; }
257
+ .panel { padding: 14px; }
258
+ #form-panel { padding: 12px; }
259
+ .grid2, .grid3 { grid-template-columns: 1fr; }
260
+ }
261
+
262
+ /* below the width the list tables need (52rem + page/panel padding), they become
263
+ stacked cards: the name on top, "LABEL value" lines, then the row's buttons —
264
+ nothing to scroll sideways for (tablets, phones) */
265
+ @media (max-width: 940px) {
266
+ table.stackable { min-width: 0; }
267
+ table.stackable thead { display: none; }
268
+ table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; }
269
+ table.stackable tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
270
+ table.stackable td { border: 0; padding: 3px 2px; }
271
+ table.stackable td.col-name { font-weight: 600; }
272
+ table.stackable td[data-label] { position: relative; padding-left: 6.5rem; }
273
+ table.stackable td[data-label]::before {
274
+ content: attr(data-label); position: absolute; left: 2px; top: 4px; width: 6rem;
275
+ color: var(--muted); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
276
+ font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
277
+ }
278
+ table.stackable .row-actions { justify-content: flex-start; margin-top: 4px; }
279
+ table.stackable tr.has-notes { border-bottom: 0; padding-bottom: 0; }
280
+ table.stackable tr.notes-row td { padding-top: 0; }
281
+ }
282
+
283
+ /* audit log page */
284
+ .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
285
+ .filters input[type=search] { flex: 1 1 16rem; min-width: 0; }
286
+ /* in the filter rows (audit log, dashboard toolbar) a field is as wide as its content and
287
+ sits on the row's line: the form fields' full width and top margin would put each
288
+ select on a line of its own */
289
+ .filters select, .toolbar select { width: auto; max-width: 100%; }
290
+ .filters > *, .toolbar > *, .filters > input, .toolbar > input { margin-top: 0; }
291
+ .pager { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
292
+
293
+ /* dashboard toolbar: search / filter / sort / bulk actions */
294
+ .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
295
+ .toolbar input[type=search] { flex: 1 1 14rem; min-width: 0; max-width: 24rem; }
296
+ .toolbar .bulk { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
297
+ .toolbar .bulk[hidden] { display: none; }
298
+ .toolbar label.chk { margin: 0; white-space: nowrap; }
299
+ .row-select { vertical-align: middle; margin: 0 4px 0 0; }
300
+ .row-actions.start { justify-content: flex-start; }
301
+ /* TR / EN switch in the top bar and on the sign-in pages */
302
+ .lang-switch { display: inline-flex; gap: 2px; font-size: 11px; }
303
+ .lang-switch a { padding: 1px 5px; border-radius: 4px; color: var(--muted); text-decoration: none; }
304
+ .lang-switch a.on { background: var(--panel2); color: var(--text); font-weight: 600; }
305
+ .auth-wrap .lang-switch { position: absolute; top: 12px; right: 16px; }
306
+ .or-line { text-align: center; margin: .8rem 0; }
307
+ /* a one-time token or key: one click selects all of it (a double click stops at a "-") */
308
+ .token-box { word-break: break-all; margin-top: .4rem; -webkit-user-select: all; user-select: all; }
309
+ /* the Modbus points editor (static/points.js): a wrapping box of fields per point, over the
310
+ points JSON box of the mapping form */
311
+ .points-editor { display: block; margin: -4px 0 12px; }
312
+ .points-editor .banner, .points-rows { display: block; margin-top: 8px; }
313
+ .point-row { display: flex; flex-wrap: wrap; gap: 0 10px; border: 1px solid var(--border);
314
+ border-radius: 7px; padding: 8px 10px 0; margin-bottom: 8px; }
315
+ .point-row label { flex: 1 1 6.5rem; min-width: 0; margin-bottom: 8px; }
316
+ .point-row label.wide { flex: 2 1 12rem; }
317
+ .point-row label.chk { flex: 0 0 auto; align-self: flex-end; margin-bottom: 16px; }
318
+ .point-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 10px;
319
+ align-items: center; justify-content: flex-end; margin-bottom: 8px; min-width: 0; }
320
+ .point-actions .muted { overflow-wrap: anywhere; }
321
+ /* every page's footer: licence and source code (_footer.html) */
322
+ .site-footer { max-width: 1180px; margin: 28px auto 18px; padding: 0 20px; color: var(--muted);
323
+ font-size: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
324
+ .site-footer > * { overflow-wrap: anywhere; }
325
+ /* the /licenses page: long licence texts, wrapped to the panel */
326
+ pre.licence-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono);
327
+ font-size: 12px; margin: 0; max-height: 32rem; overflow: auto; }