Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
/*
* Tailwind CSS v4 entry point.
*
* The cascade is arranged to render exactly as the Tailwind v3 build did.
* v3 emitted one flat stylesheet, so a component rule with a more specific
* selector (for example the container-aware table-cell rules below) beat a
* plain utility. v4 uses native cascade layers, where any utility beats any
* rule in an earlier layer regardless of specificity. To keep the v3 contract
* the former `@layer components` rules and the former unlayered rules live in
* the utilities layer, before and after the generated utilities respectively.
*/
@layer theme, base, components, utilities;
@import 'tailwindcss/theme.css' layer(theme);
@import './tailwind-palette.css';
@import 'tailwindcss/preflight.css' layer(base);
@plugin '@tailwindcss/typography';
@source '../index.html';
@source './**/*.{js,ts,jsx,tsx}';
/* v3 class-strategy dark mode, including its selector specificity. */
@custom-variant dark (&:is(.dark *));
/* v3 applied hover styles on touch devices too; v4 limits them to
hover-capable pointers unless the variant is redefined. */
@custom-variant hover (&:hover);
/*
* v3 spacing between children: the margin goes on every visible child after
* the first and overrides that child's own margin utilities. v4 instead puts
* a zero-specificity margin on every child but the last, which lets a child's
* own margin win and moves the gap when the last child is not rendered. The
* v4 rules are neutralised after the generated utilities below.
*/
@utility space-y-* {
& > :not([hidden]) ~ :not([hidden]) {
margin-top: --spacing(--value(number));
margin-bottom: 0;
}
}
@utility space-x-* {
& > :not([hidden]) ~ :not([hidden]) {
margin-right: 0;
margin-left: --spacing(--value(number));
}
}
/* v3 dividers follow the same rule: the border sits on every visible child
after the first and overrides that child's own border width and color. */
@utility divide-y {
& > :not([hidden]) ~ :not([hidden]) {
border-top-width: 1px;
border-bottom-width: 0;
}
}
@utility divide-y-0 {
& > :not([hidden]) ~ :not([hidden]) {
border-top-width: 0;
border-bottom-width: 0;
}
}
@utility divide-x {
& > :not([hidden]) ~ :not([hidden]) {
border-right-width: 0;
border-left-width: 1px;
}
}
@utility divide-* {
& > :not([hidden]) ~ :not([hidden]) {
border-color: --value(--color-*);
border-color: --alpha(--value(--color-*) / calc(--modifier(integer) * 1%));
}
}
/* Pulse helpers, declared as utilities so responsive and state variants
(for example xl:pb-0 next to pb-safe-or-14) override them as in v3. */
@utility pb-safe {
padding-bottom: env(safe-area-inset-bottom, 0px);
}
@utility pb-safe-or-14 {
padding-bottom: max(3.5rem, env(safe-area-inset-bottom, 3.5rem));
}
/* The shared select classes drop the native arrow (appearance-none) so the
control matches the text inputs, which left every FormSelect looking like
a text field. Draw a small caret in the reserved right padding instead, in
the muted text colour so it follows the theme. */
@utility form-select-arrow {
background-image:
linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
background-position:
calc(100% - 15px) calc(50% + 1px),
calc(100% - 10px) calc(50% + 1px);
background-size: 5px 5px;
background-repeat: no-repeat;
/* Forced-colors mode drops background images, so hand the arrow back to
the browser there. */
@media (forced-colors: active) {
appearance: auto !important;
background-image: none;
}
}
@utility scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
/* The page backdrop as a background, for wells inside a surface card (code
blocks, previews, segmented-control tracks) that should read as the page
behind the card. It is a utility rather than a theme colour on purpose: a
colour named `base` also gave `text-base` a colour and painted text in the
page colour, and without that colour the old class rendered nothing. */
@utility bg-page {
background-color: var(--color-bg-base);
}
@utility animate-slideDown {
animation: slideDown 0.3s ease-out;
}
@utility animate-slide-in-card {
animation: slide-in-card 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@utility animate-fade-in {
animation: fade-in 0.6s ease-out forwards;
}
@utility animate-slide-up {
animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@utility animate-enter {
animation: enter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@theme {
--breakpoint-*: initial;
--breakpoint-xs: 400px;
--breakpoint-sm: 640px;
--breakpoint-md: 768px;
--breakpoint-lg: 1024px;
--breakpoint-xl: 1280px;
--breakpoint-2xl: 1536px;
/* v3 font stacks; v4.3 swapped system-ui for a named-font stack. */
--font-sans:
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--font-mono:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
monospace;
/* v3 line heights are absolute, so text that only changes font-size (for
example text-[11px]) inherits the parent's line box unchanged. v4's
defaults are ratios, which would rescale it. */
--text-xs--line-height: 1rem;
--text-sm--line-height: 1.25rem;
--text-base--line-height: 1.5rem;
--text-lg--line-height: 1.75rem;
--text-xl--line-height: 1.75rem;
--text-2xl--line-height: 2rem;
--text-3xl--line-height: 2.25rem;
--text-4xl--line-height: 2.5rem;
/* v3 defaults: a bare ring is 3px and a ring without an explicit color
is translucent blue-500. */
--default-ring-width: 3px;
--default-ring-color: rgb(59 130 246 / 0.5);
--animate-spin-slow: spin 2s linear infinite;
--animate-fadeIn: fadeIn 0.2s ease-in;
--animate-slideInRight: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slideInRight {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(0);
}
}
}
/* Semantic design system colors, resolved at runtime from the CSS variables
defined in the base layer below. */
@theme inline {
--color-surface: var(--color-bg-surface);
--color-surface-hover: var(--color-bg-surface-hover);
--color-surface-alt: var(--color-bg-surface-alt);
--color-border: var(--color-border-base);
--color-border-subtle: var(--color-border-subtle);
--color-base-content: var(--color-text-base);
--color-muted: var(--color-text-muted);
}
@layer base {
/*
* Tailwind v3 preflight behaviour that v4 changed: borders default to
* gray-200 rather than currentcolor, placeholders use gray-400, and buttons
* show the pointer cursor.
*/
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}
input::placeholder,
textarea::placeholder {
color: var(--color-gray-400);
}
button,
[role='button'] {
cursor: pointer;
}
:disabled {
cursor: default;
}
/* v3 preflight reset margins and padding element by element and left table
cells and options with their browser padding; v4 zeroes every element. */
th,
td {
padding: 1px;
}
option,
optgroup {
padding: revert;
}
:root {
color-scheme: light;
/*
Layout tokens.
Goal: keep top-level navigation spatially stable while giving dense operational views room to breathe.
*/
--pulse-shell-max-width: min(97vw, 1920px);
--pulse-shell-padding-inline: clamp(0.75rem, 1.2vw, 1.5rem);
--pulse-panel-padding: clamp(0.75rem, 1.4vw, 1.25rem);
/* Semantic Colors - Light Mode */
--color-bg-base: var(--color-slate-100);
--color-bg-surface: var(--color-white);
--color-bg-surface-hover: var(--color-slate-50);
--color-bg-surface-alt: var(--color-slate-100);
--color-border-subtle: var(--color-slate-100);
--color-border-base: var(--color-slate-200);
--color-text-base: var(--color-slate-900);
--color-text-muted: var(--color-slate-600);
--color-summary-row-bg: rgba(14, 165, 233, 0.05);
--color-summary-row-bg-hover: rgba(14, 165, 233, 0.08);
--color-summary-row-border: rgba(14, 165, 233, 0.16);
--color-summary-row-accent: rgba(14, 165, 233, 0.42);
/* Shared product-table subgroup band. It should read as body segmentation, not table chrome. */
--color-grouped-table-row-bg: rgba(226, 232, 240, 0.72);
--color-grouped-table-row-bg-hover: rgba(203, 213, 225, 0.82);
--color-grouped-table-row-border: rgba(203, 213, 225, 0.9);
}
.dark {
color-scheme: dark;
/* Semantic Colors - Dark Mode */
--color-bg-base: var(--color-slate-900);
--color-bg-surface: var(--color-slate-800);
--color-bg-surface-hover: var(--color-slate-700);
--color-bg-surface-alt: var(--color-slate-800);
/* Fallback */
--color-border-subtle: var(--color-slate-800);
--color-border-base: var(--color-slate-700);
--color-text-base: var(--color-slate-100);
--color-text-muted: var(--color-slate-300);
--color-summary-row-bg: rgba(56, 189, 248, 0.08);
--color-summary-row-bg-hover: rgba(56, 189, 248, 0.12);
--color-summary-row-border: rgba(56, 189, 248, 0.18);
--color-summary-row-accent: rgba(56, 189, 248, 0.5);
--color-grouped-table-row-bg: rgba(51, 65, 85, 0.58);
--color-grouped-table-row-bg-hover: rgba(51, 65, 85, 0.82);
--color-grouped-table-row-border: rgba(71, 85, 105, 0.85);
}
body {
background-color: var(--color-bg-base);
color: var(--color-text-base);
/* Ensure body scrollbar follows our styling */
overflow-y: auto;
overflow-x: hidden;
}
/* Form elements: inherit surface background so they don't show white in dark mode */
select,
input:not([type='checkbox']):not([type='radio']):not([type='range']),
textarea {
background-color: var(--color-bg-surface);
color: var(--color-text-base);
}
/* Browser autofill paints its own pale credential background unless the
theme surface is restored explicitly. Keep legitimate autofill readable
without letting it break the active color scheme. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-text-fill-color: var(--color-text-base);
caret-color: var(--color-text-base);
-webkit-box-shadow: 0 0 0 1000px var(--color-bg-surface) inset;
box-shadow: 0 0 0 1000px var(--color-bg-surface) inset;
}
input:autofill,
textarea:autofill,
select:autofill {
color: var(--color-text-base);
caret-color: var(--color-text-base);
box-shadow: 0 0 0 1000px var(--color-bg-surface) inset;
}
/* The document root never scrolls: the app shell is h-screen with
overflow hidden and .app-scroll-shell owns vertical scrolling.
Forcing a root scrollbar here would reserve a dead gutter at the
right viewport edge and shift every fixed right-anchored element
off the true screen edge. */
}
@layer utilities {
/* Former v3 component rules: emitted before the generated utilities. */
.touch-scroll {
-webkit-overflow-scrolling: touch;
}
/* Settings uses the same compact mobile rhythm as the platform overviews:
the route shell owns the inter-section spacing so panel implementations do
not each recreate a phone breakpoint. Desktop keeps the authored spacing. */
@media (max-width: 39.999rem) {
[data-settings-content-body] > .space-y-6 > :not([hidden]) ~ :not([hidden]) {
margin-top: 0.75rem;
}
}
.table-scroll-shell {
container-type: inline-size;
contain: paint;
/* Tables own horizontal overflow only; vertical gestures belong to the page. */
overflow-y: hidden;
overscroll-behavior-x: contain;
/* Newer Chromium renders elastic stretch on nested scrollers. `chain` keeps
vertical propagation to the app shell without the table-local effect. */
overscroll-behavior-y: auto;
overscroll-behavior-y: chain;
}
/* Canonical platform tables already collapse to their prioritized phone
columns. Remove their nested scrollport entirely at that stage so Android
Chrome cannot stretch the table instead of handing the gesture to the app. */
@media (max-width: 39.999rem) {
.table-scroll-shell.table-scroll-shell-phone-page {
overflow: clip;
}
}
/*
Platform tables live inside a resizable application pane, so viewport
breakpoints do not describe the space the table actually owns. Reinterpret
the existing responsive table-cell priorities against the scroll shell's
inline size. This keeps the most useful base columns visible first, then
progressively restores context and diagnostic columns without either
squeezing ten columns into a tablet pane or reaching for a scrollbar.
*/
.table-scroll-shell :is(th, td).hidden.sm\:table-cell,
.table-scroll-shell :is(th, td).hidden.md\:table-cell,
.table-scroll-shell :is(th, td).hidden.lg\:table-cell,
.table-scroll-shell :is(th, td).hidden.xl\:table-cell,
.table-scroll-shell :is(th, td).hidden.\32xl\:table-cell {
display: none;
}
@container (min-width: 34rem) {
.table-scroll-shell :is(th, td).hidden.sm\:table-cell {
display: table-cell;
}
}
@container (min-width: 72rem) {
.table-scroll-shell :is(th, td).hidden.md\:table-cell {
display: table-cell;
}
}
@container (min-width: 76rem) {
.table-scroll-shell :is(th, td).hidden.lg\:table-cell {
display: table-cell;
}
}
@container (min-width: 88rem) {
.table-scroll-shell :is(th, td).hidden.xl\:table-cell {
display: table-cell;
}
}
@container (min-width: 104rem) {
.table-scroll-shell :is(th, td).hidden.\32xl\:table-cell {
display: table-cell;
}
}
/*
Alert history has a persistent navigation rail, so its useful table width
can be much narrower than the viewport. Exact time stays with the six core
fields whenever the desktop table is active. Duration is secondary context
at 800px, while type and node remain reserved for a 1024px table shell.
Hidden tracks are collapsed and also given zero width, so the table is
always 100% of the card. Chromium removes collapsed columns, but WebKit
(Safari) keeps their width in a fixed-layout table: the earlier approach of
widening the table by the hidden tracks' share made the History table
scroll sideways in Safari from an 800px to a 1024px card. `display: none`
on a column is no better: Chromium then lays it out as an auto column that
shares the free width with message.
The base density (an unmeasured card under 800px) sizes every visible
track as a percentage summing to 100%. From an 800px card the columns
whose content has a fixed size take exactly the pixels it needs: time
("08:27 AM" in a 14px monospace), severity, duration, status
("acknowledged" needs 119px with its cell padding), the type label (from
1024px; "Container Health" needs 119px, and from 1280px it takes 128px for
wider Linux fonts) and the three actions on one line
(177px). Resource and node hold names that truncate, so they keep a plain
share of the card, at least their header at the narrowest card (a max()
of a length and a percentage would be laid out as an auto column).
Message, the column that says what happened, has no width so it takes all
the rest. Percentages for every track gave the fixed columns most of each
extra pixel: at a 982px card message held 182px while status and actions
held 364px for a badge and three buttons.
App.architecture.test.ts holds those minimums and message's 18% floor at
the narrowest card of each density. Below 800px the three
actions stack, which makes those rows taller than the rest.
Below an 80rem card, resource and message wrap inside their cells
instead of ending in an ellipsis after one line. Message then occupies two
lines (`min-h-[2lh]`) so its length never changes a row's height, which
the single estimated row height of the shared windowing hook
(`usePlatformWindowedItems`) needs once a history passes 140 rows; a
message past two lines ends in an ellipsis and keeps its full text on the
title. From an 80rem card both cells return to a one-line clamp.
*/
.table-scroll-shell col.alert-history-context-track,
.table-scroll-shell col.alert-history-full-detail-track {
visibility: collapse;
}
.table-scroll-shell :is(th, td).alert-history-context-column,
.table-scroll-shell :is(th, td).alert-history-full-detail-column {
visibility: collapse;
}
.table-scroll-shell table.alert-history-responsive-table {
--alert-history-timestamp-width: 14%;
--alert-history-resource-width: 15.6%;
--alert-history-type-width: 0%;
--alert-history-severity-width: 14.4%;
--alert-history-message-width: 21.3%;
--alert-history-duration-width: 0%;
--alert-history-status-width: 18%;
--alert-history-node-width: 0%;
--alert-history-actions-width: 16.7%;
width: 100%;
}
.table-scroll-shell col.alert-history-timestamp-track {
width: var(--alert-history-timestamp-width);
}
.table-scroll-shell col.alert-history-resource-track {
width: var(--alert-history-resource-width);
}
.table-scroll-shell col.alert-history-type-track {
width: var(--alert-history-type-width);
}
.table-scroll-shell col.alert-history-severity-track {
width: var(--alert-history-severity-width);
}
.table-scroll-shell col.alert-history-message-track {
width: var(--alert-history-message-width);
}
.table-scroll-shell col.alert-history-duration-track {
width: var(--alert-history-duration-width);
}
.table-scroll-shell col.alert-history-status-track {
width: var(--alert-history-status-width);
}
.table-scroll-shell col.alert-history-node-track {
width: var(--alert-history-node-width);
}
.table-scroll-shell col.alert-history-actions-track {
width: var(--alert-history-actions-width);
}
/*
These secondary fields are useful in a roomy drawer or settings pane, but
they must not displace identity, health, readiness, or row actions. Their
shared 800px reveal point is based on the table shell rather than viewport.
*/
.table-scroll-shell :is(th, td).agent-doctor-target-column {
display: none;
}
.table-scroll-shell :is(th, td).k8s-deployment-detail-column {
display: none;
}
.table-scroll-shell :is(th, td).swarm-service-detail-column {
display: none;
}
.table-scroll-shell :is(th, td).ai-cost-detail-column {
display: none;
}
.table-scroll-shell :is(th, td).report-schedule-detail-column,
.table-scroll-shell :is(th, td).storage-dataset-referenced-column {
display: none;
}
/*
A primary address is one of the first machine identifiers operators reach
for. When they explicitly enable it, reveal the column at a common wide
desktop pane instead of holding it until the generic extra-wide threshold.
The compact identity subtitle remains available below this point.
*/
.table-scroll-shell :is(th, td).hidden.xl\:table-cell.agent-machine-address-column {
display: none;
}
.k8s-deployment-ready-total {
display: inline;
}
/* The Deployments Desired column returns with the 72rem tier (hidden
md:table-cell), so Ready drops its own /desired total there and never
before: one of the two always carries the desired count. */
@container (min-width: 72rem) {
.k8s-deployment-ready-total {
display: none;
}
}
@container (min-width: 50rem) {
.table-scroll-shell col.alert-history-context-track {
visibility: visible;
}
.table-scroll-shell :is(th, td).alert-history-context-column {
visibility: visible;
}
.table-scroll-shell table.alert-history-responsive-table {
--alert-history-timestamp-width: 84px;
--alert-history-resource-width: 16%;
--alert-history-type-width: 0px;
--alert-history-severity-width: 86px;
--alert-history-message-width: auto;
--alert-history-duration-width: 91px;
--alert-history-status-width: 108px;
--alert-history-node-width: 0px;
--alert-history-actions-width: 100px;
width: 100%;
}
.table-scroll-shell :is(th, td).agent-doctor-target-column {
display: table-cell;
}
.table-scroll-shell :is(th, td).k8s-deployment-detail-column {
display: table-cell;
}
.table-scroll-shell :is(th, td).swarm-service-detail-column {
display: table-cell;
}
.table-scroll-shell :is(th, td).ai-cost-detail-column {
display: table-cell;
}
.table-scroll-shell :is(th, td).report-schedule-detail-column,
.table-scroll-shell :is(th, td).storage-dataset-referenced-column {
display: table-cell;
}
}
@container (min-width: 64rem) {
.table-scroll-shell col.alert-history-full-detail-track {
visibility: visible;
}
.table-scroll-shell :is(th, td).alert-history-full-detail-column {
visibility: visible;
}
.table-scroll-shell table.alert-history-responsive-table {
--alert-history-timestamp-width: 84px;
--alert-history-resource-width: 13%;
--alert-history-type-width: 120px;
--alert-history-severity-width: 86px;
--alert-history-message-width: auto;
--alert-history-duration-width: 91px;
--alert-history-status-width: 108px;
--alert-history-node-width: 6.7%;
--alert-history-actions-width: 100px;
width: 100%;
}
}
@container (min-width: 80rem) {
.table-scroll-shell table.alert-history-responsive-table {
--alert-history-timestamp-width: 84px;
--alert-history-resource-width: 14%;
--alert-history-type-width: 128px;
--alert-history-severity-width: 86px;
--alert-history-message-width: auto;
--alert-history-duration-width: 91px;
--alert-history-status-width: 108px;
--alert-history-node-width: 8.5%;
--alert-history-actions-width: 100px;
width: 100%;
}
.table-scroll-shell :is(th, td).hidden.xl\:table-cell.agent-machine-address-column {
display: table-cell;
}
}
.app-scroll-shell {
scrollbar-gutter: stable;
}
.view-options-grid {
container-type: inline-size;
grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 11rem));
justify-content: start;
}
.view-options-grid > * {
width: 100%;
min-width: 0;
}
.view-options-grid > * > :last-child,
.view-options-grid > * [role='group'] {
width: 100%;
min-width: 0;
}
.view-options-grid > * [role='group'] {
display: flex;
}
.view-options-grid > * [role='group'] > button {
min-width: 0;
flex: 1 1 0%;
}
.view-options-grid > *:has(> :last-child > button[aria-expanded='true']) {
grid-column: 1 / -1;
width: 100cqw;
}
.column-picker-inline-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
}
@media (min-width: 641px) {
.view-options-grid
> *:has(> :last-child > button[aria-expanded='true'])
> :last-child
> button {
width: 11rem;
}
}
@media (max-width: 640px) {
.view-options-grid {
grid-template-columns: minmax(0, 1fr);
}
}
.pulse-shell {
width: 100%;
max-width: var(--pulse-shell-max-width);
margin-inline: auto;
padding-inline: var(--pulse-shell-padding-inline);
transition: padding-inline 0.3s ease;
}
@media (max-width: 640px) {
.pulse-shell {
max-width: 100%;
padding-inline: 0.25rem;
}
.pulse-shell--full-width {
--pulse-shell-padding-inline: 0.25rem;
}
}
/* Full-width mode - removes max-width constraint for large monitors */
.pulse-shell--full-width {
--pulse-shell-max-width: 100%;
--pulse-shell-padding-inline: clamp(1rem, 2vw, 3rem);
}
.pulse-panel {
padding: var(--pulse-panel-padding);
}
@media (max-width: 640px) {
.pulse-panel {
padding: 0.25rem;
}
/* Phone layouts use an explicit compact operating mode. Controls remain
above the WCAG 2.2 minimum while table geometry and repeated chrome are
reduced enough to expose materially more live infrastructure at once. */
.pulse-panel [data-page-header] + * {
margin-top: 0.5rem !important;
}
.pulse-wide-data-surface.space-y-3 > :not([hidden]) ~ :not([hidden]),
.pulse-wide-data-surface.space-y-4 > :not([hidden]) ~ :not([hidden]) {
margin-top: 0.375rem;
}
.filter-bar {
margin-bottom: 0.375rem;
padding: 0.25rem;
}
.filter-bar > div {
gap: 0.25rem;
}
.filter-bar > div > div:first-child {
gap: 0.25rem;
}
.filter-bar input {
min-height: 2.25rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
font-size: 0.75rem;
}
.filter-bar > div > div:first-child button {
height: 2.25rem;
min-height: 2.25rem;
}
.pulse-wide-data-surface .table-scroll-shell > .table-fixed tbody td,
.pulse-wide-data-surface .table-scroll-shell > .table-fixed tbody .workload-row > td {
padding-top: 0;
padding-bottom: 0;
}
.pulse-wide-data-surface .table-scroll-shell > .table-fixed th {
padding-top: 0.1875rem;
padding-bottom: 0.1875rem;
line-height: 1rem;
}
.pulse-wide-data-surface .host-row > td:first-child > div,
.pulse-wide-data-surface .workload-row [data-workload-col='name'] > div {
gap: 0.25rem;
}
.pulse-wide-data-surface .grouped-table-row > td > div {
column-gap: 0.375rem;
row-gap: 0.25rem;
}
.pulse-wide-data-surface .grouped-table-row {
height: 1.75rem;
}
.pulse-footer {
display: flex;
min-height: 2rem;
flex-wrap: wrap;
align-items: center;
justify-content: center;
column-gap: 0.5rem;
}
.pulse-footer > div {
display: contents;
}
}
/* Upward box-shadow shield for sticky chart panels.
Fills the transparent space-y-3 margin above the element so
scrolling text doesn't peek through when the element is stuck. */
.sticky-shield {
box-shadow: 0 -0.75rem 0 0 white;
}
.dark .sticky-shield {
box-shadow: 0 -0.75rem 0 0 #1f2937;
}
/* Card styles */
.card {
@apply bg-surface border border-border shadow-xs rounded-md;
}
.table-row {
@apply border-b border-border hover:bg-surface-hover;
}
.workload-row {
min-height: 32px;
}
.workload-row[data-workload-alert-accent='critical'] > td:first-child,
.host-row[data-workload-alert-accent='critical'] > td:first-child {
box-shadow: inset 4px 0 0 0 #ef4444;
}
.workload-row[data-workload-alert-accent='warning'] > td:first-child,
.host-row[data-workload-alert-accent='warning'] > td:first-child {
box-shadow: inset 4px 0 0 0 #eab308;
}
.workload-row[data-workload-alert-accent='acknowledged'] > td:first-child,
.host-row[data-workload-alert-accent='acknowledged'] > td:first-child {
box-shadow: inset 4px 0 0 0 #9ca3af;
}
tr.grouped-table-row > td,
tr.grouped-table-row > th {
background-color: var(--color-grouped-table-row-bg);
box-shadow:
inset 0 1px 0 var(--color-grouped-table-row-border),
inset 0 -1px 0 var(--color-grouped-table-row-border);
}
tr.grouped-table-row:hover > td,
tr.grouped-table-row:hover > th {
background-color: var(--color-grouped-table-row-bg-hover);
}
tr[data-summary-row-active='true'] > td,
tr[data-summary-row-active='true'] > th {
background-color: var(--color-summary-row-bg);
box-shadow:
inset 0 1px 0 var(--color-summary-row-border),
inset 0 -1px 0 var(--color-summary-row-border);
}
tr[data-summary-row-active='true']:hover > td,
tr[data-summary-row-active='true']:hover > th {
background-color: var(--color-summary-row-bg-hover);
}
tr[data-summary-row-active='true'] > td:first-child,
tr[data-summary-row-active='true'] > th:first-child {
box-shadow:
inset 3px 0 0 var(--color-summary-row-accent),
inset 0 1px 0 var(--color-summary-row-border),
inset 0 -1px 0 var(--color-summary-row-border);
}
tr[data-summary-row-active='true'] > td:last-child,
tr[data-summary-row-active='true'] > th:last-child {
box-shadow:
inset -1px 0 0 var(--color-summary-row-border),
inset 0 1px 0 var(--color-summary-row-border),
inset 0 -1px 0 var(--color-summary-row-border);
}
tr[data-summary-row-active='true'] > td:first-child:last-child,
tr[data-summary-row-active='true'] > th:first-child:last-child {
box-shadow:
inset 3px 0 0 var(--color-summary-row-accent),
inset -1px 0 0 var(--color-summary-row-border),
inset 0 1px 0 var(--color-summary-row-border),
inset 0 -1px 0 var(--color-summary-row-border);
}
/* Form input — reusable base for text inputs, textareas, selects */
.form-input,
.form-select {
@apply w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-base-content focus:outline-hidden focus:border-blue-500 focus:ring-2 focus:ring-blue-500 transition-colors disabled:opacity-50 disabled:cursor-not-allowed;
}
.form-select {
@apply pr-8 appearance-none;
}
/* Progress bars */
.progress-fill-frame {
transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
will-change: width;
}
.progress-fill {
@apply h-full;
transition:
width 320ms cubic-bezier(0.22, 1, 0.36, 1),
background-color 180ms ease-out;
}
.metric-fill-geometry {
transition:
x 320ms cubic-bezier(0.22, 1, 0.36, 1),
width 320ms cubic-bezier(0.22, 1, 0.36, 1),
fill 180ms ease-out;
will-change: x, width, fill;
}
.metric-fill-divider {
transition:
x1 320ms cubic-bezier(0.22, 1, 0.36, 1),
x2 320ms cubic-bezier(0.22, 1, 0.36, 1);
will-change: x1, x2;
}
.animated-number {
font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
.progress-fill-frame,
.progress-fill,
.metric-fill-geometry,
.metric-fill-divider {
transition: none;
will-change: auto;
}
}
/* Custom scrollbar - subtle styling */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: var(--color-gray-300) var(--color-gray-100);
}
.dark .custom-scrollbar {
scrollbar-color: var(--color-gray-700) var(--color-gray-800);
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background-color: var(--color-slate-100);
}
.dark .custom-scrollbar::-webkit-scrollbar-track {
background-color: var(--color-slate-800);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
border-radius: 9999px;
background-color: var(--color-slate-300);
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
background-color: var(--color-slate-700);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background-color: var(--color-slate-400);
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
background-color: var(--color-slate-600);
}
.view-options-grid > * [role='group'] > button {
box-sizing: border-box;
height: 1.75rem;
min-height: 1.75rem;
padding-top: 0;
padding-bottom: 0;
}
.view-options-grid > * > :last-child:not([role='group']) > button {
box-sizing: border-box;
width: 100%;
height: 2rem;
min-height: 2rem;
}
@media (max-width: 640px) {
.view-options-grid > * [role='group'] > button {
height: 2.5rem;
min-height: 2.5rem;
}
.view-options-grid > * > :last-child:not([role='group']) > button {
height: 2.75rem;
min-height: 2.75rem;
}
}
@tailwind utilities source(none);
/* Neutralise v4's own zero-specificity space-x, space-y and divide rules;
the v3 forms are declared with @utility at the top of this file. These
reset to the preflight values, and any utility on the child still wins. */
:where([class*='space-y-'] > :not(:last-child)) {
margin-block: 0;
}
:where([class*='space-x-'] > :not(:last-child)) {
margin-inline: 0;
}
:where([class*='divide-'] > :not(:last-child)) {
border-width: 0;
border-style: solid;
border-color: var(--color-gray-200);
}
/* Former unlayered rules: emitted after the generated utilities. */
/*
* Respect the operating-system motion preference across the whole product.
* Keep animations technically present for components that depend on their
* completion state, but finish them immediately and prevent repeated motion.
* This also covers Tailwind animation/transition utilities and future shared
* primitives instead of requiring every call site to remember an override.
*/
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-delay: 0ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
transition-delay: 0ms !important;
}
}
/* Update banner animation */
@keyframes slideDown {
from {
transform: translateY(-100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Notification animations */
@keyframes slide-in-card {
from {
opacity: 0;
transform: translateX(100%) scale(0.95);
filter: blur(4px);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
filter: blur(0);
}
}
/* Global scrollbar styling */
* {
scrollbar-width: thin;
scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
/* gray-400 with transparency */
}
.dark * {
scrollbar-color: rgba(55, 65, 81, 0.5) transparent;
/* gray-700 with transparency */
}
/* Make scrollbars even more subtle on hover */
*:hover {
scrollbar-color: rgba(156, 163, 175, 0.7) rgba(243, 244, 246, 0.5);
/* Slightly more visible on hover */
}
.dark *:hover {
scrollbar-color: rgba(75, 85, 99, 0.7) rgba(31, 41, 55, 0.3);
/* dark mode hover */
}
*::-webkit-scrollbar {
width: 6px;
height: 6px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: rgba(156, 163, 175, 0.5);
border-radius: 10px;
}
.dark *::-webkit-scrollbar-thumb {
background-color: rgba(55, 65, 81, 0.5);
}
*::-webkit-scrollbar-thumb:hover {
background-color: rgba(156, 163, 175, 0.8);
}
.dark *::-webkit-scrollbar-thumb:hover {
background-color: rgba(75, 85, 99, 0.8);
}
/* Dark mode transitions - Only apply to elements that actually change colors */
body,
.card,
.table-row,
.bg-white,
.bg-slate-50,
.bg-slate-100,
.bg-slate-200,
.bg-slate-300,
.bg-slate-700,
.bg-slate-800,
.bg-slate-900,
.text-slate-500,
.text-slate-600,
.text-slate-700,
.text-slate-800,
.text-slate-900,
.border-slate-200,
.border-slate-300,
.border-slate-600,
.border-slate-700,
.dark\:bg-slate-700,
.dark\:bg-slate-800,
.dark\:bg-slate-900,
.dark\:text-slate-100,
.dark\:text-slate-200,
.dark\:text-slate-300,
.dark\:text-slate-400,
.dark\:border-slate-600,
.dark\:border-slate-700 {
transition:
background-color 150ms ease-in-out,
color 150ms ease-in-out,
border-color 150ms ease-in-out;
}
/* Pulse brand motion - visible, calm live-state rhythm. */
@keyframes pulse-brand-logo {
0%,
100% {
transform: scale(1);
}
46% {
transform: scale(1.035);
}
66% {
transform: scale(1.012);
}
}
@keyframes pulse-brand-wave {
0% {
opacity: 0.34;
transform: translateY(-50%) scale(0.9);
}
68%,
100% {
opacity: 0;
transform: translateY(-50%) scale(2);
}
}
@keyframes pulse-brand-bg {
0%,
100% {
opacity: 1;
transform: scale(1);
}
46% {
opacity: 0.96;
transform: scale(1.025);
}
}
@keyframes pulse-brand-ring {
0% {
opacity: 0.9;
transform: scale(0.96);
stroke-width: 14;
}
56% {
opacity: 0.22;
transform: scale(1.32);
stroke-width: 5;
}
74% {
opacity: 0;
transform: scale(1.36);
stroke-width: 4;
}
75% {
opacity: 0;
transform: scale(0.96);
stroke-width: 14;
}
100% {
opacity: 0.9;
transform: scale(0.96);
stroke-width: 14;
}
}
@keyframes pulse-brand-center {
0%,
100% {
transform: scale(1);
}
46% {
transform: scale(0.86);
}
64% {
transform: scale(1.05);
}
}
.pulse-brand-lockup {
--pulse-brand-wave-color: rgba(37, 99, 235, 0.34);
position: relative;
}
.dark .pulse-brand-lockup {
--pulse-brand-wave-color: rgba(96, 165, 250, 0.4);
}
.pulse-brand-lockup::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 20px;
height: 20px;
border: 1px solid var(--pulse-brand-wave-color);
border-radius: 9999px;
opacity: 0;
pointer-events: none;
transform: translateY(-50%) scale(0.9);
}
.pulse-brand-logo,
.pulse-brand-logo .pulse-bg,
.pulse-brand-logo .pulse-ring,
.pulse-brand-logo .pulse-center {
transform-origin: center;
transform-box: fill-box;
}
.animate-pulse-brand {
--pulse-brand-cycle: 3.4s;
}
.animate-pulse-brand::before {
animation: pulse-brand-wave var(--pulse-brand-cycle) ease-in-out infinite;
}
.animate-pulse-brand .pulse-brand-logo {
animation: pulse-brand-logo var(--pulse-brand-cycle) ease-in-out infinite;
will-change: transform;
}
.animate-pulse-brand .pulse-bg {
animation: pulse-brand-bg var(--pulse-brand-cycle) ease-in-out infinite;
will-change: opacity, transform;
}
.animate-pulse-brand .pulse-ring {
animation: pulse-brand-ring var(--pulse-brand-cycle) ease-in-out infinite;
will-change: opacity, stroke-width, transform;
}
.animate-pulse-brand .pulse-center {
animation: pulse-brand-center var(--pulse-brand-cycle) ease-in-out infinite;
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.animate-pulse-brand,
.animate-pulse-brand::before,
.animate-pulse-brand .pulse-brand-logo,
.animate-pulse-brand .pulse-bg,
.animate-pulse-brand .pulse-ring,
.animate-pulse-brand .pulse-center {
animation: none;
}
}
/* Stable table layout */
.table-fixed {
table-layout: fixed;
}
/* Prevent text from affecting column widths */
.table-fixed td,
.table-fixed th {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/*
* Dense platform tables should spend their width on operational values, not
* oversized heading chrome. Keep headings readable without making every row
* taller, then let unusually long labels provide a container-aware compact
* form below the first table-column reveal breakpoint.
*/
.table-scroll-shell > .table-fixed.platform-table th {
padding-right: 0.375rem;
padding-left: 0.375rem;
font-size: 11px;
letter-spacing: 0.025em;
}
/*
* Docker's single-line rows are the canonical operator density. Every
* platform summary row uses the same 32px scan rhythm; inline drawers remain
* content-sized. Secondary context belongs in another column, a tooltip, or
* the expanded detail row rather than making the overview row taller.
*/
.table-scroll-shell > .table-fixed.platform-table > tbody > tr:not([data-inline-detail-for]) {
height: 2rem;
}
.platform-table-label-compact {
display: inline;
}
.platform-table-label-full {
display: none;
}
/*
* Table columns and inline status labels can opt into the same container-led
* phone priority contract. Keeping these rules beside the canonical mobile
* widths means a header can never disappear at a different breakpoint from
* its body cells, and nested panels respond to their own usable width rather
* than the browser viewport.
*/
.platform-table-phone-only,
.platform-table-phone-only-inline {
display: none;
}
@container (min-width: 34rem) {
.platform-table-label-compact {
display: none;
}
.platform-table-label-full {
display: inline;
}
}
@container (max-width: 33.999rem) {
.table-scroll-shell > .table-fixed.platform-table th {
padding-right: 0.25rem;
padding-left: 0.25rem;
font-size: 10px;
letter-spacing: 0;
}
/*
* Proxmox Overview is the phone-density reference: identity receives a
* stable 30% anchor and the remaining operational tracks share the rest.
* Keeping that anchor at the shared table boundary prevents each provider
* from silently choosing a different mobile table geometry.
*/
.table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column {
width: 30%;
}
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-30 {
width: 30%;
}
/*
* A host table whose rows scope the workloads below keeps the details
* chevron on phones, so its identity cell carries the toggle and status
* dot before the name; like the Proxmox node column
* (PROXMOX_HOST_PHONE_IDENTITY_WIDTH_PERCENT) it needs more than the 30%
* anchor to show a typical host name.
*/
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-38 {
width: 38%;
}
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-25 {
width: 25%;
}
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-20 {
width: 20%;
}
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-15 {
width: 15%;
}
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-10 {
width: 10%;
}
.table-scroll-shell > .table-fixed.platform-table :is(th, td).platform-table-phone-hidden,
.platform-table-phone-hidden-inline {
display: none;
}
.table-scroll-shell > .table-fixed.platform-table :is(th, td).platform-table-phone-only {
display: table-cell;
}
.platform-table-phone-only-inline {
display: inline-flex;
}
}
/* Between the phone projection and the md viewport breakpoint, tables that
size their columns with md:w-[...] classes have no widths at all, while the
phone-hidden columns are already back. Every visible column then took an
equal share, so a seven-column Kubernetes table left its name column 83px
with the chevron and status dot inside it. Keep the phone identity anchor
until the md widths apply. Tables sized by a weighted colgroup keep their
own widths, because column widths win over header widths. */
@media (width < 768px) {
@container (min-width: 34rem) {
.table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column {
width: 30%;
}
/* A table whose columns need unequal room in this band (short counts
beside a long name) declares each width through the header's
bandWidth, which the shell applies only here. */
.table-scroll-shell > .table-fixed.platform-table th[style*='--platform-table-band-width'] {
width: var(--platform-table-band-width);
}
/* A header whose full label is longer than its band column keeps the
compact label it already shows on phones (compactInBand). */
.platform-table-label-compact.platform-table-label-band-compact {
display: inline;
}
.platform-table-label-full.platform-table-label-band-compact {
display: none;
}
}
}
/* At the narrowest supported phone width, spend the extra identity space once
at the shared boundary. Source tables still choose which lower-priority
field disappears; the shell only guarantees that the surviving identity
remains a single readable scan target. */
@container (max-width: 22.499rem) {
.table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column {
width: 40%;
}
.table-scroll-shell > .table-fixed.platform-table :is(th, td).platform-table-narrow-hidden {
display: none;
}
}
/* Rebalance the TrueNAS app inventory whenever another priority tier appears.
Hidden fixed-table tracks otherwise keep their desktop percentage and leave
a large unused strip while visible operational columns become unreadable. */
@container (min-width: 34rem) and (max-width: 63.999rem) {
.table-scroll-shell > .table-fixed th.truenas-app-name-column {
width: 28%;
}
.table-scroll-shell > .table-fixed th.truenas-app-cpu-column {
width: 15%;
}
.table-scroll-shell > .table-fixed th.truenas-app-memory-column,
.table-scroll-shell > .table-fixed th.truenas-app-containers-column {
width: 20%;
}
.table-scroll-shell > .table-fixed th.truenas-app-updates-column {
width: 17%;
}
}
@container (min-width: 64rem) and (max-width: 75.999rem) {
.table-scroll-shell > .table-fixed th.truenas-app-name-column {
width: 19%;
}
.table-scroll-shell > .table-fixed th.truenas-app-version-column,
.table-scroll-shell > .table-fixed th.truenas-app-updates-column {
width: 11%;
}
.table-scroll-shell > .table-fixed th.truenas-app-cpu-column {
width: 10%;
}
.table-scroll-shell > .table-fixed th.truenas-app-memory-column,
.table-scroll-shell > .table-fixed th.truenas-app-containers-column {
width: 14%;
}
.table-scroll-shell > .table-fixed th.truenas-app-ports-column {
width: 21%;
}
}
/* Keep name column single line to avoid wrapping while giving it more space */
.table-fixed td:first-child {
white-space: nowrap;
}
/* Hide scrollbars but keep functionality */
/*
Height of the mobile bottom navigation bar. MobileNavBar overwrites this at
runtime with its measured height, which already includes the safe-area inset
via pb-safe - consumers must NOT add env(safe-area-inset-bottom) on top.
The declared value is only a pre-measurement fallback, and it deliberately
UNDER-estimates. Reserving more than the bar's real height leaves a band
between an overlay's backdrop and the bar that is neither dimmed nor
click-blocked, which is the defect this variable exists to prevent; reserving
slightly less is harmless because the opaque bar paints over it.
*/
:root {
--pulse-mobile-nav-height: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}
/* Login page animations */
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slide-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse-slow {
0%,
100% {
opacity: 0.25;
}
50% {
opacity: 0.75;
}
}
@media (prefers-reduced-motion: reduce) {
.animate-fade-in,
.animate-slide-up {
animation: none;
}
}
.delay-100 {
animation-delay: 100ms;
}
.delay-200 {
animation-delay: 200ms;
}
.delay-300 {
animation-delay: 300ms;
}
/* Staggered Entry Animation */
@keyframes enter {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ---------------------------------------------------------------------------
Workload table manual column sizing
Default (no pinned widths): none of this applies and the responsive weights
keep the table inside its container, as they always have. Once an operator
drags a column edge the table opts into its pinned pixel widths, which means
it may exceed the shell — `.table-scroll-shell` already scrolls, so the
trade the operator asked for is simply allowed to happen.
--------------------------------------------------------------------------- */
/* The table publishes an explicit pixel width while manual sizing is on (see
`sumWorkloadColumnWidths`). `width: auto` would drop the table out of
`table-layout: fixed` and let a narrow column snap back to its content
minimum, so only the floor is expressed here. */
.table-scroll-shell > table.workload-table--manual-widths {
min-width: 100%;
}
.workload-col-resizer {
position: absolute;
top: 0;
right: -3px;
z-index: 1;
display: block;
width: 7px;
height: 100%;
cursor: col-resize;
/* Keeps the hit target from selecting header text mid-drag. */
user-select: none;
touch-action: none;
background-clip: content-box;
background-color: transparent;
border-right: 2px solid transparent;
transition: border-color 0.12s ease-in-out;
}
.workload-col-resizer:hover,
.workload-col-resizer:focus-visible {
border-right-color: var(--color-border-strong, currentColor);
outline: none;
}
.workload-col-resizer:focus-visible {
border-right-width: 3px;
}
@media (prefers-reduced-motion: reduce) {
.workload-col-resizer {
transition: none;
}
}
/* Phone update states must remain readable inside the existing, non-scrolling
* Docker table. Wrap the badge rather than clipping it or hiding its label. */
@container (max-width: 33.999rem) {
.docker-container-update-cell {
padding-inline: 0.125rem;
}
.docker-container-update-cell > :is(span, div),
.docker-container-update-cell button {
max-width: 100%;
white-space: normal;
overflow-wrap: anywhere;
overflow: visible;
text-overflow: clip;
}
.docker-container-update-cell > span,
.docker-container-update-cell button {
flex-wrap: wrap;
justify-content: center;
gap: 0.125rem;
padding-inline: 0.125rem;
font-size: 10px;
}
.docker-container-update-cell svg {
flex-shrink: 0;
}
}
}