/* The web Manager's own styles, beside MudBlazor's. */

/* A figure on the live status page. */
.av-stat-number { font-size: 1.75rem; font-weight: 600; line-height: 1.2; }

/* The footer under a table: the range, the pages, the page size. */
.av-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.av-pager .mud-select { max-width: 9rem; }

/* The facts of a chosen row: a label and its value in two columns. */
.av-facts { display: grid; grid-template-columns: 8rem 1fr; gap: 0.25rem 0.75rem; margin: 0; }
.av-facts dt { color: var(--mud-palette-text-secondary); }
.av-facts dd { margin: 0; overflow-wrap: anywhere; }

/* A log: a dark block of fixed-width lines, newest at the bottom. */
.av-log { background: #0f1720; color: #d7dde5; font: 12px/1.5 Consolas, "Cascadia Mono", monospace; border-radius: 8px; padding: 12px; overflow: auto; max-height: 65vh; white-space: pre; }
.av-log .av-log-warn { color: #ffd479; }
.av-log .av-log-error { color: #ff8a80; }

/* Wide tables scroll inside their card instead of stretching the page. */
.av-scroll { overflow-x: auto; }

/* Fixed-width text (a MAC address, a code, a fingerprint, a link) and quiet text. */
.av-mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.8125rem; }
.av-muted { color: var(--mud-palette-text-secondary); }

/* A person's photo, or the initials in its place, at the top of the person's card. */
.av-person-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.av-photo { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.av-photo-empty { background: var(--mud-palette-background-gray); color: var(--mud-palette-text-secondary); display: grid; place-items: center; font-size: 1.75rem; font-weight: 600; }

/* The History section: one line for each change. */
.av-history { font-size: 0.8125rem; }
.av-history-line { padding: 0.3rem 0; border-bottom: 1px dashed var(--mud-palette-lines-default); }

/* The new pairing code: the QR picture and the typed code beside it. */
.av-code-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.av-qr { width: 156px; height: 156px; image-rendering: pixelated; flex-shrink: 0; }
.av-code { font: 600 1.25rem/1.3 Consolas, "Cascadia Mono", monospace; letter-spacing: 0.08em; margin: 0.4rem 0; overflow-wrap: anywhere; }
.av-link { overflow-wrap: anywhere; user-select: all; }

/* The menu (WebManagerTheme and ThemeAccents): the logos at its top and foot, the chosen item in turquoise. The layout's outer element holds the --av-* colors. */
.av-drawer { display: flex; flex-direction: column; min-height: 100%; }
.av-drawer-top { display: flex; align-items: center; justify-content: center; min-height: var(--mud-appbar-height); padding: 0 16px; }
.av-drawer-top img, .av-drawer-foot img { display: block; max-width: 100%; height: auto; }
.av-drawer-foot { display: flex; flex-direction: column; align-items: center; margin-top: auto; padding: 24px 16px 16px; }
/* The server's version above the bottom logo: small and quiet, in the palette's secondary text color (4.5:1 in both themes). */
.av-drawer-foot .av-version { margin-bottom: 8px; font-size: 0.75rem; color: var(--mud-palette-text-secondary); }
/* A section's title is larger than its items and has room above it; the items of a section sit closer together than MudBlazor's 8px above and below. */
.av-drawer .av-nav-section { display: block; padding: 0 16px; margin: 20px 0 4px; font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.av-drawer .av-nav-section:first-child { margin-top: 12px; }
.av-drawer .mud-navmenu .mud-nav-link { padding-top: 3px; padding-bottom: 3px; }
.av-theme .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled),
.av-theme .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):hover,
.av-theme .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):focus-visible,
.av-theme .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):active { background-color: var(--av-nav-selected-bg); color: var(--av-nav-selected-text); font-weight: 500; }
.av-theme .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon { color: var(--av-nav-selected-text); }

/* The status chips (online, offline, repeater): pale in light, deep in dark, with text that reads on each. */
.av-theme .mud-chip.mud-chip-filled.av-chip-ok { background-color: var(--av-ok-bg); color: var(--av-ok-text); }
.av-theme .mud-chip.mud-chip-filled.av-chip-off { background-color: var(--av-off-bg); color: var(--av-off-text); }
.av-theme .mud-chip.mud-chip-filled.av-chip-rep { background-color: var(--av-rep-bg); color: var(--av-rep-text); }

/* Alert processing (A22-8): the press timing flow, the segmented choices, the press tabs and their dots, the channel cards, the summary and the field buttons. */
.av-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; margin: 6px 0 4px; }
.av-flow-step { flex: 1; min-width: 120px; background: var(--mud-palette-background-gray); border-radius: 6px; padding: 8px; font-size: 0.8125rem; color: var(--mud-palette-text-secondary); }
.av-flow-step b { display: block; color: var(--mud-palette-text-primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 2px; }
.av-flow-arrow { display: flex; align-items: center; color: var(--mud-palette-primary); }
.av-seg { display: inline-flex; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; overflow: hidden; }
.av-seg button { background: none; border: none; border-right: 1px solid var(--mud-palette-lines-inputs); color: var(--mud-palette-text-primary); padding: 7px 14px; cursor: pointer; font: inherit; }
.av-seg button:last-child { border-right: none; }
.av-seg button[aria-checked="true"] { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.av-seg button:disabled { opacity: 0.5; cursor: default; }
.av-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--mud-palette-lines-default); margin: 4px 0 12px; }
.av-tabs button { background: none; border: none; border-bottom: 2px solid transparent; color: var(--mud-palette-text-secondary); padding: 8px 16px; cursor: pointer; font: inherit; }
.av-tabs button[aria-selected="true"] { color: var(--mud-palette-text-primary); border-bottom-color: var(--mud-palette-primary); font-weight: 500; }
.av-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: middle; background: var(--mud-palette-gray-default); }
.av-dot-alert { background: var(--mud-palette-success); }
.av-dot-test { background: var(--mud-palette-warning); }
.av-dot-error { background: var(--mud-palette-error); }
.av-chan { border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; padding: 6px 12px; margin-bottom: 10px; }
.av-chan-head { display: flex; align-items: center; justify-content: space-between; }
.av-summary { background: var(--mud-palette-background-gray); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; font-size: 0.875rem; }
.av-summary ul { margin: 4px 0 0; padding-left: 18px; }
.av-summary li.av-off { color: var(--mud-palette-warning); }
.av-fields { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.av-fields button { font-size: 0.6875rem; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 10px; padding: 1px 7px; color: var(--mud-palette-text-secondary); background: none; cursor: pointer; font-family: inherit; }
.av-fields button:hover { border-color: var(--mud-palette-primary); color: var(--mud-palette-text-primary); }
.av-line-number { width: 1.5rem; text-align: right; color: var(--mud-palette-text-secondary); font-size: 0.75rem; }

/* Diagnostics (A22-9): the status line, a block of raw text, a gateway that is offline and the button a person follows. */
.av-status { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.av-status span { display: block; font-size: 0.75rem; color: var(--mud-palette-text-secondary); }
.av-status b { font-weight: 500; }
.av-pre { background: var(--mud-palette-background-gray); border-radius: 6px; padding: 10px 12px; margin: 0; font: 12px/1.5 Consolas, "Cascadia Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; }
.av-row-offline td { color: var(--mud-palette-error); }
.av-highlight { background: var(--av-ok-bg); color: var(--av-ok-text); font-weight: 600; border-radius: 3px; padding: 0 3px; }
.av-table-scroll { overflow: auto; max-height: 60vh; }
