/* Truss web UI. MudBlazor supplies the components; this file covers the shell (navigation, login) and a
   few layout rules MudBlazor leaves to the app. Colors match Theme/TrussTheme.cs. */

:root {
    --truss-navy: #0a1931;
    --truss-blue: #0085FF;
    --truss-text: #292d32;
    --truss-muted: #4a5568;
    --truss-border: #dcdfe4;
    --truss-bg: #f3f5f7;
    /* Tables (Leasing, Market Database). DM Mono is loaded beside Poppins in App.razor. */
    --truss-mono: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    /* The fill of the input cells on the report templates' Input tabs (TRS.VL22's Input>>NOI and Input>>Capex). */
    --truss-input: #fff2cd;
    /* An amount's dollar sign: lighter than the number beside it. */
    --truss-currency: #8a94a3;
    /* A tab not shown: gray, with white text at a contrast of 4.8 to 1. */
    --truss-tab: #6b7480;
    --truss-table-outline: #c3c9d1;
}

html, body {
    font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--truss-bg);
    color: var(--truss-text);
    margin: 0;
}

/* ---- Application shell ------------------------------------------------- */

.truss-appbar-logo {
    height: 28px;
    margin-left: 8px;
}

.truss-drawer {
    background: var(--truss-navy);
}

.truss-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #d5dbe6;
}

.truss-nav-logo {
    flex: none;
    display: flex;
    justify-content: center;
    padding: 24px 24px 16px;
}

.truss-nav-logo img {
    width: 120px;
    display: block;
}

/* The modules' links take the height the logo and the foot leave, and scroll inside it if they ever need more, so the
   foot (the user's name, Settings, Log Out) is in view at any window height. Until 2026-11-25 the whole drawer
   scrolled: with every module its 989px did not fit an 800px window, and Log Out was below the window's edge. */
.truss-nav-links {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.truss-nav-menu .mud-nav-link {
    color: #d5dbe6;
    padding-left: 24px;
}

.truss-nav-menu .mud-nav-link .mud-icon-root {
    color: #d5dbe6;
}

.truss-nav-menu .mud-nav-link.active {
    color: #ffffff;
    background: rgba(0, 133, 255, 0.25);
    border-right: 3px solid var(--truss-blue);
}

.truss-nav-menu .mud-nav-link.active .mud-icon-root {
    color: #ffffff;
}

/* A group's own header is also a .mud-nav-link; its pages sit one step in. It opens no page, so it reads as a heading:
   white and a weight heavier than the links under it. */
.truss-nav-menu .truss-nav-group > .mud-nav-link {
    color: #ffffff;
    font-weight: 500;
}

/* Sets Admin, Truss staff's, apart from the modules. */
.truss-nav-menu .truss-nav-rule {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, 0.12);
}

.truss-nav-menu .truss-nav-group .mud-nav-link .mud-nav-link-expand-icon {
    color: #d5dbe6;
}

.truss-nav-menu .truss-nav-group .mud-collapse-container .mud-nav-link {
    padding-left: 40px;
}

/* Create Build step 1: the toggles on one row that wraps, then the search. A toggle group is as wide as its words
   (each item as wide as the group's longest, 12px each side), not a share of the row: until 2026-11-25 two groups
   filled 1,560px. */
.truss-template-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.truss-template-toggles > *,
.truss-asset-toggles > * {
    flex: 0 1 auto;
    min-width: 0;
}

.truss-template-toggles .mud-toggle-group,
.truss-asset-toggles .mud-toggle-group {
    width: auto;
}

/* MudBlazor's own rule for a small outlined item (three classes) pads it 3px. */
.truss-template-toggles .mud-toggle-group .mud-toggle-item.mud-toggle-item-size-small,
.truss-asset-toggles .mud-toggle-group .mud-toggle-item.mud-toggle-item-size-small {
    padding-left: 12px;
    padding-right: 12px;
}

.truss-asset-toggles {
    display: flex;
}

.truss-asset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}

/* The checked assets scroll inside a box of about eight rows. */
.truss-asset-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 8px;
    border: 1px solid var(--truss-border);
    border-radius: 4px;
}

/* The foot: what is the signed-in user's own. Settings and Log Out are rows like the links above them. */
.truss-nav-footer {
    flex: none;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.truss-nav-user {
    font-size: 12px;
    color: #959aa7;
    margin-bottom: 4px;
    padding: 0 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A row as a MudNavLink is: 24px in, its 24px icon, 12px, its text on a 24.5px line, 8px above and below. */
.truss-nav-logout {
    display: flex;
    align-items: center;
    /* A button centers what is in it unless told otherwise, flex or not. */
    justify-content: flex-start;
    width: 100%;
    background: none;
    border: none;
    color: #d5dbe6;
    font: inherit;
    font-size: 14px;
    line-height: 1.75;
    cursor: pointer;
    padding: 8px 16px 8px 24px;
}

.truss-nav-logout .mud-icon-root {
    margin-right: 12px;
}

.truss-nav-logout:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Demo mode, above the user: a red light that blinks like a recording light, still for a reader who asked for
   reduced motion (docs/decisions/26-09-27-20-25-31-web-ui-demo-mode.md). */
.truss-demo-indicator {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 24px;
    font-size: 12px;
    color: #ffffff;
}

.truss-demo-light {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 6px #ff3b30;
    animation: truss-demo-blink 1.2s ease-in-out infinite;
}

.truss-demo-label {
    display: block;
    font-weight: 600;
}

.truss-demo-times {
    display: block;
    color: #d5dbe6;
}

@keyframes truss-demo-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .truss-demo-light {
        animation: none;
    }
}

/* As wide as the window less the drawer: MudMainContent is offset by the drawer's width, and nothing here
   narrows it further. */
.truss-page {
    padding: 24px;
}

/* ---- Page head and page tabs -------------------------------------------- */

/* A page's title: 28px on a 36px line, weight 500, 16px above the first thing under it
   (docs/decisions/26-11-25-15-25-27-settings-sit-with-what-they-change-and-the-drawer-has-ten-links.md, rule 1). */
.truss-page .truss-page-title {
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 16px;
}

/* The tabs of a page with several parts (PageTabs: Leasing > Setup, Admin): text links on a rule, the part shown in
   blue with a blue underline. The title above them sits 8px closer, since the tabs carry the gap to the content. */
.truss-page .truss-page-title:has(+ .truss-page-tabs) {
    margin-bottom: 8px;
}

.truss-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--truss-border);
}

.truss-page-tab {
    padding: 8px 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--truss-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.truss-page-tab:hover {
    color: var(--truss-text);
}

/* The text is a darker blue than the underline: #0085FF on the page's gray is 3.4 to 1, this 5 to 1. */
.truss-page-tab.active {
    color: #0069d1;
    border-bottom-color: var(--truss-blue);
}

.truss-page-tab:focus-visible {
    outline: 2px solid var(--truss-blue);
    outline-offset: -2px;
}

/* The app bar exists for the drawer toggle on narrow screens only. On wide screens the drawer is always
   open, so the bar and the space MudBlazor reserves for it both go. */
@media (min-width: 960px) {
    .truss-appbar {
        display: none;
    }

    .truss-main {
        padding-top: 0 !important;
    }
}

@media (max-width: 959.98px) {
    .truss-page {
        padding: 16px;
    }
}

/* ---- Login ----------------------------------------------------------- */

.truss-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.truss-login-card {
    background: #ffffff;
    border: 1px solid var(--truss-border);
    border-radius: 8px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.truss-login-logo {
    width: 140px;
    display: block;
    margin: 0 auto 24px;
}

.truss-login-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px;
    text-align: center;
}

.truss-login-hint {
    color: var(--truss-muted);
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px;
}

.truss-login-error {
    background: #fdecea;
    color: #8a1c14;
    border: 1px solid #f5c2bd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.truss-login-form {
    display: flex;
    flex-direction: column;
}

.truss-login-label {
    font-size: 13px;
    color: var(--truss-muted);
    margin-bottom: 6px;
}

.truss-login-input {
    font: inherit;
    font-size: 16px;
    padding: 10px 12px;
    border: 1px solid var(--truss-border);
    border-radius: 6px;
    margin-bottom: 16px;
}

.truss-login-input:focus {
    outline: 2px solid var(--truss-blue);
    outline-offset: 0;
    border-color: var(--truss-blue);
}

.truss-login-code {
    letter-spacing: 0.3em;
    font-size: 22px;
    text-align: center;
}

.truss-login-button {
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: var(--truss-blue);
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
}

.truss-login-button:hover {
    background: #0072db;
}

/* One button per organization on the organization choice page. */
.truss-login-organizations {
    gap: 10px;
}

.truss-login-resend {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--truss-muted);
}

.truss-login-separator {
    margin: 0 6px;
}

.truss-login-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--truss-blue);
    cursor: pointer;
    text-decoration: none;
}

.truss-login-link:hover {
    text-decoration: underline;
}

/* ---- Create Build ---------------------------------------------------- */

.truss-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    color: var(--truss-muted);
}

.truss-template-table .mud-table-row,
.truss-file-table .mud-table-row {
    height: 37px;
}

.truss-template-row {
    cursor: pointer;
}

.truss-panel {
    border: 1px solid var(--truss-border);
}

/* A chosen template's options: a bordered box inside step 2's section, its name on a light bar. Until 2026-11-25 the
   bar was navy, the heaviest thing on the page. */
.truss-panel + .truss-panel {
    margin-top: 12px;
}

.truss-panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--truss-bg);
    border-bottom: 1px solid var(--truss-border);
    padding: 4px 8px 4px 16px;
    border-radius: 6px 6px 0 0;
}

.truss-panel-name {
    font-weight: 500;
}

.truss-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.truss-field-label {
    font-size: 13px;
    color: var(--truss-muted);
    margin-bottom: 4px;
}

.truss-required {
    color: #c62828;
    margin-left: 2px;
}

.truss-field-file {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.truss-field-filename {
    font-weight: 500;
    max-width: 480px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truss-field-meta {
    font-size: 12px;
    color: var(--truss-muted);
    margin-left: 8px;
}

/* Tenant options of the Lease Abstract and Lease Index (TenantsField): Select All, then a row per property with its
   tenants indented under it when shown, or the index's tenants. */
.truss-tenants {
    display: flex;
    flex-direction: column;
}

.truss-tenant-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
}

.truss-tenant-children {
    display: flex;
    flex-direction: column;
    padding-left: 48px;
}

.truss-tenant-flat {
    padding-left: 0;
}

/* Step 4's as-of month and build name, side by side; the month's helper text is under it, so the row aligns at the top. */
.truss-form-row.truss-build-name-row {
    align-items: flex-start;
    margin-top: 0;
}

/* A required file with none chosen says so beside its button, where the person acts; the list above Create build
   repeats it. */
.truss-field-required {
    color: #c62828;
}

.truss-problems {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--truss-muted);
    font-size: 13px;
}

.truss-file-dialog .mud-dialog-content {
    position: relative;
    min-height: 420px;
}

/* ---- Tables read a page at a time (My Builds, File Library, Archived) -- */

/* What a table shows while its first page is read: a progress bar over "Loading data...". */
.truss-table-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
    color: var(--truss-muted);
}

/* A date or a row's buttons on one line; the column widens and the name column gives way. */
.truss-nowrap {
    white-space: nowrap;
}

/* ---- My Builds ------------------------------------------------------- */

.truss-status {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.truss-status-completed { color: #2e7d32; }
.truss-status-partial { color: #8a6d00; }
.truss-status-error { color: #c62828; }
.truss-status-canceled { color: #8a6d00; }
.truss-status-inprogress { color: var(--truss-blue); }

.truss-row-highlight {
    background: rgba(0, 133, 255, 0.08);
}

/* MudBlazor's dense cells pad 16px left and 24px right, so the expander column ends at 60px
   and the status starts at 76px -- right of where the expanded details below it start. Tighten
   both leading cells so the status sits left of the details it labels.
   https://github.com/MudBlazor/MudBlazor/blob/v9.10.0/src/MudBlazor/Styles/components/_table.scss */
.truss-builds-table.truss-list-table .mud-table-root .mud-table-row > .mud-table-cell:first-child {
    padding-right: 0;
    padding-inline-end: 0;
}

.truss-builds-table .mud-table-cell:nth-child(2) {
    padding-left: 8px;
    padding-inline-start: 8px;
}

.truss-build-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

/* A completed build of a data-only template: the reason it has no Download, wrapped beside the buttons. */
.truss-build-no-file {
    white-space: normal;
    font-size: 13px;
    color: var(--truss-muted);
}

/* The parts start at the cell's top, each with its own 12px above it, so the thread line has no gap to cross. */
.truss-build-details {
    padding: 0 16px 12px 56px !important;
    background: var(--truss-bg);
}

/* ---- The thread line of an opened build ---- */
/* A 2px line from under the row's arrow down the left of the build's parts, turning in to the first line of each: its
   message, when it has one, and each template's name. The arrow's center is 26px from the table's edge (16px of cell
   padding and half the 20px icon) and the parts start at 56px, so the line is 30px left of them. */
.truss-builds-table {
    --truss-thread: #a9b2be;
}

/* In the row: from under the arrow to the row's foot, over the row's own rule. */
.truss-builds-table .mud-table-root .mud-table-row.truss-build-open > .mud-table-cell:first-child {
    position: relative;
}

.truss-builds-table .mud-table-root .mud-table-row.truss-build-open > .mud-table-cell:first-child::after {
    content: "";
    position: absolute;
    left: 25px;
    top: calc(50% + 12px);
    bottom: -1px;
    border-left: 2px solid var(--truss-thread);
}

.truss-build-branch {
    position: relative;
    padding-top: 12px;
}

/* The turn in to a part's first line. A template's name has its middle 23px under the part's top (measured in the
   preview browser, 2026-11-25), which is where the 2px turn's middle is. */
.truss-build-branch::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    left: -31px;
    top: 0;
    width: 23px;
    height: 24px;
    border-left: 2px solid var(--truss-thread);
    border-bottom: 2px solid var(--truss-thread);
    border-bottom-left-radius: 8px;
}

/* A message's first line, and its icon, have their middle 31px under the part's top. */
.truss-build-notice::before {
    height: 32px;
}

/* The line goes on past every part but the last, across the 13px between two parts (12px and the rule). */
.truss-build-branch:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -31px;
    top: 0;
    bottom: -13px;
    border-left: 2px solid var(--truss-thread);
}

/* A build's error, shown with its line breaks: a run whose templates failed names each on its own line under its
   message, with a blank line between messages. */
.truss-build-error {
    white-space: pre-line;
}

/* 12px and a rule between a build's parts. */
.truss-build-branch + .truss-build-branch {
    margin-top: 12px;
    border-top: 1px solid var(--truss-border);
}

.truss-build-template-head {
    margin-bottom: 4px;
}

/* A template's inputs: the labels are one column, 144px, in every template, so the values line up down the build.
   Until 2026-11-25 the column was as wide as each template's longest label. */
.truss-build-settings {
    display: grid;
    grid-template-columns: 144px 1fr;
    gap: 2px 16px;
    margin: 0;
    font-size: 13px;
}

.truss-build-settings dt {
    color: var(--truss-muted);
}

.truss-build-settings dd {
    margin: 0;
}

/* A template's files, under its name and above its inputs, a file to a line. */
.truss-build-files {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 4px 0 6px;
}

/* Rule 7. A file's name, in its own case, as a link that downloads it. */
.truss-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #0069d1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.truss-file-link:hover {
    text-decoration: underline;
}

.truss-file-link .mud-icon-root {
    font-size: 18px;
    flex: none;
}

/* ---- Market Database ------------------------------------------------- */

/* From 960px wide the page is the window's height less .truss-page's 24px above and below: the head and search box
   take what they need, and the filters and the table share the rest, each scrolling on its own. Every flex item on
   the way down has min-height: 0, or it would grow to its content and push the page past the window. Below 960px
   (the media query at the end) the page scrolls as a whole. */
.truss-market-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
}

/* Rule 1. A page's title with its one action at the right, 16px above the first thing under it. */
.truss-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.truss-page .truss-page-head > .truss-page-title {
    margin-bottom: 0;
}

.truss-page-head:has(+ .truss-description) {
    margin-bottom: 4px;
}

.truss-market-search {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* The search is as wide as a search needs, 440px, with the Include/Exclude Assets button beside it. A width, not a flex basis:
   below 960px the row is a column, where a basis would be the field's height. */
.truss-market-search .mud-input-control {
    flex: 0 1 auto;
    width: 440px;
    max-width: 100%;
}

.truss-market-summary {
    color: var(--truss-muted);
    font-size: 13px;
}

.truss-market-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* 224px, so the table gets 36px more than it had; a long filter value wraps (.truss-facet-value). */
.truss-market-sidebar {
    width: 224px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--truss-border);
    border-radius: 6px;
    padding: 12px;
    overflow-y: auto;
}

.truss-market-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* "Active leases only" is the size of the filters under it. MudBlazor's label is 16px. */
.truss-market-sidebar > .mud-input-control-boolean-input .mud-checkbox .mud-typography {
    font-size: 14px;
}

.truss-facet-group {
    margin-top: 12px;
}

.truss-facet {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.truss-facet .mud-checkbox {
    margin-right: 6px;
}

/* A value longer than the sidebar's line, such as "Mixed Use (Office/Retail)", wraps; until 2026-11-25 it was cut
   with an ellipsis. */
.truss-facet-value {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.truss-facet-all {
    font-weight: 500;
    border-bottom: 1px solid var(--truss-border);
    margin-bottom: 2px;
}

/* ---- Config ---------------------------------------------------------- */

.truss-market-data-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* MudBlazor's field grows to fill a flex row; the search keeps its width class. */
.truss-market-data-toolbar > .mud-input-control {
    flex: 0 1 auto;
}

.truss-market-data-count,
.truss-config-note {
    font-size: 13px;
    color: var(--truss-muted);
    white-space: nowrap;
    margin-left: 8px;
}

/* Settings' demo mode start date, start time and hours, side by side while they fit, each as wide as what it holds. */
.truss-demo-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.truss-demo-fields > * {
    flex: 0 1 auto;
}

.truss-facet-count {
    color: var(--truss-muted);
    font-variant-numeric: tabular-nums;
    margin-left: 8px;
}

.truss-market-results {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* MudTabs renders the tab bar, then .mud-tabs-panels holding only the active panel. */
.truss-market-tabs,
.truss-market-tabs > .mud-tabs-panels,
.truss-market-tabs .mud-tab-panel-active {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* The white box the tabs sit on (.truss-table-tabs): square at the first tab's corner. */
.truss-market-tabs > .mud-tabs-panels {
    background-color: #ffffff;
    border: 1px solid var(--truss-table-outline);
    border-radius: 0 6px 6px 6px;
}

.truss-market-results .truss-table-loading {
    padding: 16px;
}

/* The bar a later search shows over the rows. Always 4px tall, so the rows do not move when it appears. */
.truss-market-progress {
    flex: none;
    height: 4px;
}

.truss-market-none {
    flex: 1;
}

/* A table's scrollbars are 20px, twice the 10px Edge and Chrome draw for MudBlazor's scrollbar-width: thin, which its
   theme provider sets on every element (Steve, 2026-11-21: "Make scrollbars twice as thick as they are now", the
   tables' only; docs/decisions/26-11-21-07-29-01-table-headers-sit-at-the-bottom-units-are-tooltips-and-table-scrollbars-are-twice-as-thick.md).
   scrollbar-width takes no length, and while it or scrollbar-color is not auto, Chromium ignores ::-webkit-scrollbar
   (https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar), so the scroll box sets both to auto, and
   MudBlazor's ::-webkit-scrollbar-thumb colors apply. Firefox, which has no ::-webkit-scrollbar, then draws its default
   width, about twice its thin one. The Leasing tables' scroll box does the same (.truss-leasing-grid). */
.truss-table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: auto;
    scrollbar-color: auto;
}

.truss-table-scroll::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

/* Each column is the width its <col> gives it, and the table the sum of them (MarketDatabase.razor), as in Excel: text
   that does not fit is cut off, with its full value in the cell's title. The text is the Leasing tables' size,
   MudBlazor's body2 (14px), which MudSimpleTable gives their cells (Steve, 2026-11-20:
   docs/decisions/26-11-20-20-49-05-table-numbers-are-the-size-of-the-text-and-both-tables-are-one-size.md). */
.truss-market-table {
    table-layout: fixed;
    border-collapse: collapse;
    font-size: var(--mud-typography-body2-size);
}

/* The header and filter rows stay in view together: the thead sticks, and each header is relative so its resize handle
   sits at its edge. */
.truss-market-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Headers sit at the bottom of their row, as the Leasing tables' do (Steve, 2026-11-21). */
.truss-market-table th {
    position: relative;
    background: #ffffff;
    text-align: left;
    vertical-align: bottom;
    font-weight: 500;
    color: var(--truss-muted);
    padding: 0;
    border-bottom: 1px solid var(--truss-border);
    z-index: 1;
}

.truss-market-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: top;
}

.truss-market-table td,
.truss-market-table td > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truss-market-filters th {
    padding: 4px 6px;
}

/* A <button> centers what is in it even as a flex container, which centered Property, Market and Type over
   left-aligned cells; a header starts where its cells start. */
.truss-sort-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
}

.truss-sort-button:hover {
    color: var(--mud-palette-text-primary);
}

.truss-sort-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

.truss-market-table th.numeric .truss-sort-button {
    justify-content: flex-end;
}

.truss-sort-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truss-sort-icon {
    flex: none;
}

.truss-sort-order {
    flex: none;
    font-size: 11px;
}

/* The right edge of a header, dragged or double-clicked to resize its column (table-columns.js). The header is sticky,
   so it positions the handle. */
.truss-column-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}

/* Drawn only on hover and while dragging: the header's own gridline marks the edge at rest. */
.truss-column-resizer::after {
    content: "";
    position: absolute;
    top: 25%;
    right: 3px;
    width: 1px;
    height: 50%;
    background: transparent;
}

.truss-column-resizer:hover::after,
.truss-column-resizing .truss-column-resizer::after {
    top: 0;
    height: 100%;
    background: var(--mud-palette-primary);
}

body.truss-column-resizing {
    cursor: col-resize;
    user-select: none;
}

/* The gridlines between columns run from the rows up through the header, as in Excel (Steve, 2026-11-20). */
.truss-market-table th, .truss-market-table td {
    border-right: 1px solid #e6e9ed;
}

.truss-market-table th:last-child, .truss-market-table td:last-child {
    border-right: none;
}

.truss-market-table tbody tr:nth-child(even) td {
    background: #f6f7f9;
}

.truss-market-table .numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.truss-market-table .secondary {
    color: var(--truss-muted);
    font-size: 12px;
}

/* The count at the left and Download Excel at the right. */
.truss-market-footer {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--truss-border);
}

@media (max-width: 959.98px) {
    .truss-market-page {
        height: auto;
    }

    .truss-market-layout {
        flex-direction: column;
    }

    .truss-market-sidebar {
        width: 100%;
    }

    .truss-table-scroll {
        flex: none;
        max-height: 70vh;
    }

    .truss-market-search {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
}

/* ---- Connection lost --------------------------------------------------- */
/* Two dialogs declared in App.razor, shown when the Blazor circuit is gone: the reconnection modal while
   Blazor retries, and the error UI when an unhandled exception ended the circuit for good. Blazor drives
   both from JavaScript; everything here keys off the classes and inline styles it sets. Names and states:
   https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/signalr?view=aspnetcore-10.0#reflect-the-server-side-connection-state-in-the-ui

   MudBlazor 9.10.0 ships the Blazor template's own styles for both of these elements, so this is a fight
   over the cascade and every rule below is written to win it. Measured in a browser, not assumed:

     #components-reconnect-modal { z-index: 9999 !important;
                                   background-color: var(--mud-palette-background) !important }
     #components-reconnect-modal button { text-transform: uppercase; border-radius: ...;
                                          margin: 40px auto !important }
     #blazor-error-ui { position: fixed; bottom: 0; width: 100%; padding: .6rem ... }
     #blazor-error-ui .reload { color: inherit; text-decoration: underline }
     .dismiss { position: absolute; right: .75rem; top: .5rem }   <- not even scoped to the dialog

   Consequences, in order: the backdrop came out fully transparent, because the Mud palette variable is
   unset on the pages that use LoginLayout (no MudThemeProvider) and an unset var makes the whole
   declaration invalid; the buttons came out uppercase, square and 40px adrift; and a link marked
   "dismiss" was thrown to the top-right corner of the window. So: every rule is scoped to the element id
   to beat MudBlazor's id-scoped rules on source order (app.css is linked after MudBlazor.min.css), and
   !important appears exactly where MudBlazor used it. */

#components-reconnect-modal,
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: 0;

    /* Both !important only because MudBlazor's own rule for the reconnection modal is. 9999 is the value
       it forces there, kept for the other dialog so the two behave alike; either way it is above every
       MudBlazor layer (its highest is --mud-zindex-tooltip). */
    background-color: rgba(10, 25, 49, 0.55) !important;
    z-index: 9999 !important;
}

/* Shown while Blazor is retrying, and left up when it gives up. components-reconnect-hide is the class it
   sets once the connection is back, and is deliberately absent from this list. Blazor makes the error UI
   visible by setting display: block inline instead, which no stylesheet rule can undo, so the card below
   is centered in a way that does not care which of the two it is sitting in. */
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-paused,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

#components-reconnect-modal .truss-connection-card,
#blazor-error-ui .truss-connection-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 420px;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(10, 25, 49, 0.35);
    padding: 28px 32px;
    text-align: center;
}

#components-reconnect-modal .truss-connection-title,
#blazor-error-ui .truss-connection-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--truss-text);
}

#components-reconnect-modal .truss-connection-text,
#blazor-error-ui .truss-connection-text {
    color: var(--truss-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

#components-reconnect-modal .truss-connection-actions,
#blazor-error-ui .truss-connection-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#components-reconnect-modal .truss-connection-button,
#blazor-error-ui .truss-connection-button {
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #ffffff;
    background-color: var(--truss-blue);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;

    /* MudBlazor puts margin: 40px auto !important on every button in the reconnection modal. */
    margin: 0 !important;
}

#components-reconnect-modal .truss-connection-button:hover,
#blazor-error-ui .truss-connection-button:hover {
    background-color: #0072db;
}

#components-reconnect-modal .truss-connection-button:disabled {
    opacity: 0.6;
    cursor: default;
}

#components-reconnect-modal .truss-connection-link,
#blazor-error-ui .truss-connection-link {
    font-size: 13px;
    color: var(--truss-blue);
    text-decoration: none;
    cursor: pointer;
}

#components-reconnect-modal .truss-connection-link:hover,
#blazor-error-ui .truss-connection-link:hover {
    text-decoration: underline;
}

/* One card, three sets of words. Everything is hidden until the state class on the modal picks a set, so a
   state Blazor adds in some later version shows the card with no text rather than the wrong text. */
#components-reconnect-modal .truss-connection-when-retrying,
#components-reconnect-modal .truss-connection-when-failed,
#components-reconnect-modal .truss-connection-when-rejected {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .truss-connection-when-retrying,
#components-reconnect-modal.components-reconnect-retrying .truss-connection-when-retrying,
#components-reconnect-modal.components-reconnect-paused .truss-connection-when-retrying,
#components-reconnect-modal.components-reconnect-failed .truss-connection-when-failed,
#components-reconnect-modal.components-reconnect-rejected .truss-connection-when-rejected {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed .truss-connection-actions.truss-connection-when-failed,
#components-reconnect-modal.components-reconnect-rejected .truss-connection-actions.truss-connection-when-rejected {
    display: flex;
}

/* Admin > Audit Log: the filters wrap onto as many rows as the width needs. */
/* Admin > Audit Log: the filters are the list's toolbar, each 200px, wrapping onto as many rows as the width needs. */
.truss-list-toolbar.truss-audit-filters > * { flex: 0 1 176px; min-width: 0; }

/* Changes and Actions: text tabs with a blue underline, as a page's tabs are (.truss-page-tab). */
.truss-audit-tabs .mud-tabs-tabbar {
    border-bottom: 1px solid var(--truss-border);
}

/* A tab's 160px minimum width is an inline style MudTabs writes; the page passes MinimumTabWidth="0px". */
.truss-audit-tabs .mud-tab {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--truss-muted);
}

.truss-audit-tabs .mud-tab.mud-tab-active {
    color: #0069d1;
}

/* A record is one line (when, division, who, table, change, row) with what changed under it across the table's
   width, a field to a line, in the monospace font. The rule under a record is under its fields. */
.truss-audit-changes .mud-table-root .mud-table-body .mud-table-row > .truss-audit-record {
    border-bottom: 0;
    padding-bottom: 0;
    vertical-align: top;
}

/* Who is an address, kept whole, or a job and its run, which wraps at its spaces. */
.truss-audit-who-cell { overflow-wrap: break-word; }

.truss-audit-changes .mud-table-root .mud-table-body .truss-audit-fields > td {
    padding: 2px 16px 8px 16px;
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.truss-audit-field {
    font-family: var(--truss-mono);
    font-size: 13px;
    line-height: 20px;
    color: var(--truss-muted);
    white-space: normal;
    overflow-wrap: anywhere;
}

.truss-audit-field strong {
    font-weight: 500;
    color: var(--truss-text);
}

/* ---- Sections, tables in sections, fields ---------------------------------- */
/* The layout rules of docs/decisions/26-11-25-15-25-27-settings-sit-with-what-they-change-and-the-drawer-has-ten-links.md,
   written once here. The Leasing and Market Database data tables (.truss-leasing-table, .truss-market-table) keep
   their own look. */

/* Rule 2. A section: a MudPaper with Elevation 0, which is white with the theme's 6px corners; this adds its one
   border. Every part of a page is in one. Padded sections say pa-4 (16px); 16px apart (mb-4). */
.truss-section {
    border: 1px solid var(--truss-border);
}

/* Rule 1. A description, under a page's title or a section's heading: at most 640px wide. Under a page's title it
   sits 4px below it; the 16px to the content is the description's own (mb-4). */
.truss-description {
    max-width: 640px;
}

.truss-page .truss-page-title:has(+ .truss-description) {
    margin-bottom: 4px;
}

/* A section that is a list: its toolbar (a search, filters, a note), then its table from edge to edge. It has no
   padding of its own; the toolbar and the cells bring the 16px. */
.truss-list-section {
    margin-bottom: 16px;
    overflow: hidden;
}

.truss-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--truss-border);
}

.truss-list-toolbar > * {
    flex: 0 1 auto;
    min-width: 0;
}

.truss-list-toolbar .truss-config-note {
    margin-left: 0;
}

/* A section's heading with its action at the section's right. */
.truss-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

/* A checkbox or a switch that is a line of its own in a section starts at the section's text edge. MudBlazor draws
   the box 7px in (4px of padding and 3px inside the icon) and the switch's thumb 9px in. */
.truss-section > .mud-input-control-boolean-input .mud-checkbox > .mud-icon-button {
    margin-left: -7px;
}

.truss-section > .mud-input-control-boolean-input .mud-switch > .mud-switch-span {
    margin-left: -9px;
}

/* A checkbox's or a switch's label in a section is the size of the text around it. */
.truss-section .mud-checkbox .mud-typography,
.truss-section .mud-switch .mud-typography {
    font-size: 14px;
}

.truss-domain-unconfirmed {
    color: var(--truss-muted);
}

/* A subheading inside a section: 15px, weight 500, 16px from what is above it unless it is first. */
.truss-subheading {
    font-size: 15px;
    line-height: 24px;
    font-weight: 500;
    margin: 16px 0 4px;
}

/* Rule 3. A table in a section is flat: no shadow anywhere on a page. A MudSimpleTable is not a .mud-paper; it
   carries .mud-elevation-1 itself. */
.truss-page .mud-simple-table,
.truss-page .truss-section .mud-table {
    box-shadow: none;
}

/* MudBlazor's table container scrolls in both directions. An outlined field in a cell overflows it by 24px that
   holds nothing, which drew a vertical scrollbar on Brokers' assignments; only the width scrolls here. */
.truss-section .mud-simple-table > .mud-table-container {
    overflow-y: hidden;
}

/* A table with something after it in its section ends in a rule; one that ends its section runs to the section's
   foot. */
.truss-section.pa-4 > .mud-simple-table:not(:last-child) tbody tr:last-child > td {
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.truss-section.pa-4 > .mud-simple-table:last-child,
.truss-section.pa-4 > .mud-table:last-child {
    margin-bottom: -16px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* A table that is a section's own child runs from edge to edge of the section, so its first column's text, 16px in,
   starts where the section's heading starts. */
.truss-section.pa-4 > .mud-simple-table,
.truss-section.pa-4 > .mud-table {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
}

/* Rows are 40px: a text row and a row with a 32px control are the same height. The last column ends 16px from the
   section's edge, as the first starts 16px from it. */
.truss-section .mud-simple-table table tr > td,
.truss-section .mud-simple-table table tr > th {
    height: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.truss-section .mud-simple-table table tr > td:last-child,
.truss-section .mud-simple-table table tr > th:last-child {
    padding-right: 16px;
}

/* A row's buttons are at its right end. */
.truss-section .mud-simple-table table tr > td:last-child:has(> .mud-button-root) {
    text-align: right;
    white-space: nowrap;
}

/* A column of checkboxes is centered under its heading. MudBlazor's simple-table rule (one class, three elements)
   sets the alignment of every cell, so this names the table too. */
.mud-simple-table table tr > .truss-check-col,
.mud-table .mud-table-root tr > .truss-check-col {
    text-align: center;
    width: 168px;
    white-space: nowrap;
}

.truss-check-col .mud-input-control {
    align-items: center;
}

/* The last row of a table, when it holds the fields that add a row. */
.truss-section .mud-simple-table table tr.truss-table-add > td {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Rule 4. Fields are as wide as what goes in them, never as wide as the row. A row of fields and its button: 12px
   apart, wrapping at phone width, the button beside the last field. */
.truss-form-row, .truss-setup-row, .truss-setup-add {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.truss-form-row > *, .truss-setup-row > *, .truss-setup-add > * {
    flex: 0 1 auto;
    min-width: 0;
}

/* A row that opens its section needs no gap above it: the section's padding is there. */
.truss-section > .truss-form-row:first-child,
.truss-section > .truss-setup-row:first-child {
    margin-top: 0;
}

/* The widths. A MudSelect puts its Class on the input control inside its own div.mud-select, which is the box the
   row lays out, so the select takes the width and its control fills it. */
.truss-w-96, .mud-select:has(> .truss-w-96) { width: 96px; max-width: 100%; }
.truss-w-128, .mud-select:has(> .truss-w-128) { width: 128px; max-width: 100%; }
.truss-w-160, .mud-select:has(> .truss-w-160) { width: 160px; max-width: 100%; }
.truss-w-200, .mud-select:has(> .truss-w-200) { width: 200px; max-width: 100%; }
.truss-w-240, .mud-select:has(> .truss-w-240) { width: 240px; max-width: 100%; }
.truss-w-320, .mud-select:has(> .truss-w-320) { width: 320px; max-width: 100%; }
.truss-w-384, .mud-select:has(> .truss-w-384) { width: 384px; max-width: 100%; }

.mud-select > [class*="truss-w-"] {
    width: 100%;
}

/* A field in a section is the size of the text around it, 14px; MudBlazor's is 16px. Its label's own rule has three
   classes, so this one names them. */
.truss-section .mud-input,
.truss-section .mud-input > input.mud-input-root,
.truss-section .mud-select .mud-select-input,
.truss-section .mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 14px;
}

/* Rule 3 for a list read a page at a time (a MudTable): 40px rows, and a row's buttons at its right end, 16px from
   the section's edge. */
.truss-list-table .mud-table-root > .mud-table-body > .mud-table-row > .mud-table-cell {
    height: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* 16px each side of a cell. MudBlazor's dense cell has 24px on its right, which at 1280px left a file's name 294px
   and wrapped it. A column of dates is as wide as its dates (width: 1% and .truss-nowrap on the page). */
.truss-list-table .mud-table-root .mud-table-row > .mud-table-cell {
    padding-right: 16px;
}

.truss-list-table .mud-table-root .mud-table-row > .mud-table-cell.truss-row-actions {
    text-align: right;
    white-space: nowrap;
    padding-right: 16px;
}

/* Rule 6. A list with no rows is one line: no header row above it, the text at the section's text edge. MudTable
   puts NoRecordsContent in a centered cell with 12px above and below; the pager is left out by ListPager. */
.mud-table:has(.truss-list-empty) .mud-table-head {
    display: none;
}

/* MudBlazor paints the cell white, which squared the rounded corners of a section it ends. */
.mud-table:has(.truss-list-empty) .mud-table-root .mud-table-empty-row {
    text-align: left;
    padding: 0 16px;
    border-bottom: 0;
    background: transparent;
}

.mud-table:has(.truss-list-empty) .mud-table-empty-row > div {
    margin: 0 !important;
}

/* Rule 6. What a list with no rows says: one line, where its rows would be. */
.truss-empty {
    color: var(--truss-muted);
    font-size: 14px;
    line-height: 20px;
    padding: 10px 0;
}

/* ---- Leasing > Setup ------------------------------------------------------- */

/* A property: its name and buttons, its data line, its ids, and the row that adds an id, 8px apart; 16px and a rule
   between properties. */
.truss-setup-property { border-top: 1px solid var(--truss-border); padding-top: 16px; margin-top: 16px; }
.truss-setup-property:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.truss-setup-property .truss-setup-row { margin-top: 0; }
.truss-setup-property-data { margin-top: 8px; }
.truss-setup-keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

/* A chip has a 4px margin of its own, which set the first one in from the text above it. MudChip wraps the chip in
   a .mud-chip-container, so it is not this row's child. */
.truss-setup-keys .mud-chip.truss-setup-key { margin: 0; }
.truss-setup-inactive td { opacity: 0.55; }

/* Teams: each team's name in a 160px column with who is on it beside it. */
.truss-setup-team { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; margin-top: 0; padding: 6px 0; }
.truss-setup-team > * { min-width: 0; }

/* Deal labels and statuses: a list's rows, 8px apart; a label's code in a 120px column before its field. */
.truss-deal-label, .truss-status-option { margin-top: 8px; }
.truss-deal-label-code { width: 120px; flex: 0 0 120px; color: var(--truss-muted); font-size: 13px; }
.truss-band-name { width: 280px; flex: 0 1 280px; }

/* ---- Leasing > Dashboard and Deals --------------------------------------- */

/* From 960px wide the page is the window's height less .truss-page's 24px above and below, as the Market Database is:
   what is above the tabs keeps its height, and the tabs sit on the active tab's tables, one white area that fills the
   rest; only the tables scroll. Every flex item on the way down has min-height: 0, or it would grow to its content and
   push the page past the window. The tabs keep at least 300px, so above them would have to be taller than the window
   less that for the page to scroll. Summary's entries with no row take at most a third of the page and scroll. Below
   960px (the media query at the end) the page scrolls as a whole. */
.truss-leasing-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    overflow-y: auto;
}

/* MudSelect's root grows (.mud-input-control is flex: 1 1 auto), which in this column would take height from the tabs. */
.truss-leasing-page > * {
    flex: none;
}

/* MudBlazor shows the active tab panel with display: contents, so its tables are .mud-tabs-panels' own items. */
.truss-leasing-page > .truss-leasing-tabs,
.truss-leasing-tabs > .mud-tabs-panels {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.truss-leasing-page > .truss-leasing-tabs {
    min-height: 300px;
}

/* Scrolls only when the tables' least heights do not fit. The tables stand apart, each in its outline (Steve,
   2026-11-20: on Vacant and Expiring "the tables are hard to differentiate from one another"), with space between them
   and none around them (Todd, 2026-11-20: "There should be space between tables, but not around them"). */
/* The panel paints nothing: the page shows between the tables and under a short one, as it does between a page's
   sections, and each table's box is white. Until 2026-11-25 the panel was white to the window's foot (Steve: "white
   backgrounds around their sections ... and the white background below the table also looks strange"). */
.truss-leasing-tabs > .mud-tabs-panels {
    background: transparent;
    overflow-y: auto;
    gap: 16px;
}

/* A table's controls (New deal, Per SqFt), with its title when it has one: a row at the top of the table's box, above
   what scrolls, 8px in from the outline as the cells' text is (Steve, 2026-11-25: the New Deal button was "jammed up
   against the left side of the table"). The shown tab opens onto it. */
.truss-leasing-table-head {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px;
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.truss-leasing-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.truss-leasing-page > .truss-summary-unmatched-area {
    flex: 0 1 auto;
    max-height: 33%;
    overflow-y: auto;
}

/* A table fills the tab's height. Tables that share a tab (.truss-leasing-table-shared) split what a table of five rows
   or fewer (.truss-leasing-table-short) leaves equally, each keeping room for its header and a few rows; the tab
   scrolls when they do not fit. A table shorter than its share leaves the page showing below it. */
.truss-leasing-table {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--truss-table-outline);
    border-radius: 4px;
    background: var(--mud-palette-surface);
    overflow: hidden;
}

/* The first box under the tabs is square where the first tab stands on it. */
.truss-leasing-tabs > .mud-tabs-panels > .mud-tab-panel-active > .truss-leasing-table:first-child {
    border-top-left-radius: 0;
}

.truss-leasing-table-shared {
    min-height: 320px;
}

.truss-leasing-table-short {
    flex: none;
}

/* Tables side by side (LeasingSummaryLayout.SideBySideTables: Temporary Tenants' Now and By month; Todd, 2026-11-20:
   "put the two small Temporary Tenants tab's settings next to each other to save vertical space"): a row that shares
   the tab's height as one table does, as tall as its tables when they are short, each table as wide as its columns and
   its outline (LeasingTableView's --truss-table-width), at the row's top, scrolling within the row's height. */
.truss-leasing-table-row {
    flex: 1 1 0;
    min-height: 320px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.truss-leasing-table-row-short {
    flex: none;
    min-height: 0;
}

.truss-leasing-table-row > .truss-leasing-table {
    flex: 0 1 auto;
    width: calc(var(--truss-table-width) + 2px);
    min-width: 0;
    min-height: 0;
    max-height: 100%;
}

/* A table (LeasingTableView) scrolls in both directions inside MudSimpleTable's own container, the one box that
   scrolls, so its horizontal scrollbar is at the bottom of what is shown. MudBlazor's fixed header makes each th sticky
   at top: 0, which would stack the group, header and filter rows on one another; the whole thead sticks instead
   (all current browsers: https://caniuse.com/css-sticky). MudBlazor's rules:
   https://github.com/MudBlazor/MudBlazor/blob/v9.11.0/src/MudBlazor/Styles/components/_simpletable.scss */
.truss-leasing-grid {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Its scrollbars are 20px, as the Market Database's tables' are (.truss-table-scroll says why both properties are auto). */
.truss-leasing-grid.mud-simple-table.mud-table-sticky-header > .mud-table-container {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    scrollbar-width: auto;
    scrollbar-color: auto;
}

.truss-leasing-grid.mud-simple-table.mud-table-sticky-header > .mud-table-container::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

.truss-leasing-grid thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* The body's gridlines go on up through the group, header and filter rows. */
.truss-leasing-grid thead th {
    border-right: 1px solid var(--mud-palette-table-lines);
}

.truss-leasing-grid thead th:last-child {
    border-right: none;
}

/* A cell the person may edit, in the templates' input yellow, over the stripes and the hover. */
.truss-leasing-grid td.truss-leasing-editable {
    background-color: var(--truss-input);
}

/* Relative, not sticky: each header holds its column's resize handle (table-columns.js). */
.truss-leasing-grid.mud-simple-table.mud-table-sticky-header thead tr th {
    position: relative;
}

/* Each column is the width of its <col>, and the table the sum of them, set on the element around the table
   (LeasingTableView's --truss-table-width), as the Market Database's columns are: text that does not fit wraps, and a
   number or date that does not fit is cut off. */
.truss-leasing-grid.mud-simple-table table {
    table-layout: fixed;
    width: var(--truss-table-width, 100%);
}

.truss-leasing-grid.mud-simple-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

/* Half MudBlazor's dense side padding (16px), as Excel's cells are close to their text, so a column the width the
   layout gives it in Excel characters shows its numbers. */
.truss-leasing-grid.mud-simple-table.mud-table-dense * tr td,
.truss-leasing-grid.mud-simple-table.mud-table-dense * tr th {
    padding: 6px 8px;
}

@media (max-width: 959.98px) {
    .truss-leasing-page {
        height: auto;
        overflow-y: visible;
    }

    .truss-leasing-page > .truss-leasing-tabs,
    .truss-leasing-tabs > .mud-tabs-panels,
    .truss-leasing-table,
    .truss-leasing-table-shared,
    .truss-leasing-table-row {
        flex: none;
        min-height: 0;
    }

    .truss-leasing-table-row {
        flex-wrap: wrap;
    }

    .truss-leasing-tabs > .mud-tabs-panels {
        overflow-y: visible;
    }

    .truss-leasing-page > .truss-summary-unmatched-area {
        max-height: none;
    }

    .truss-leasing-grid.mud-simple-table.mud-table-sticky-header > .mud-table-container {
        max-height: 70vh;
    }
}

/* Headers sit at the bottom of their row (Steve, 2026-11-21:
   docs/decisions/26-11-21-07-29-01-table-headers-sit-at-the-bottom-units-are-tooltips-and-table-scrollbars-are-twice-as-thick.md).
   MudBlazor sets a simple table's header cells to its rows' vertical-align, middle, with a rule of one class and three
   elements (.mud-simple-table table * tr th), so this rule names the table's classes as well. */
.truss-leasing-grid.mud-simple-table th.truss-leasing-header {
    vertical-align: bottom;
}

/* A header's text is a button that sorts its column, with its unit's question mark (HeaderTooltip) beside it, at its
   last line; the text wraps in the room the mark leaves (HeaderText.LeasingColumn). The resize handle sits beside both,
   so a drag does not sort. */
.truss-leasing-header-line {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.truss-leasing-sort {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
    overflow-wrap: break-word;
}

.truss-leasing-sort:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* A header's question mark (HeaderTooltip): a 16px icon, centered on the header's last line, 22px tall (MudBlazor's
   subtitle2: 14px at a line height of 1.57). MudBlazor's small icon is 1.25rem. */
.truss-header-tooltip-root {
    flex: none;
    margin-bottom: 3px;
}

.truss-header-help {
    display: flex;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--truss-muted);
    cursor: pointer;
}

.truss-header-help .mud-icon-root {
    font-size: 16px;
}

.truss-header-help:hover {
    color: var(--mud-palette-primary);
}

.truss-header-help:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

/* A header's note wraps at a readable width, read from the left, where MudBlazor centers a tooltip's text on one line. */
.truss-header-tooltip {
    max-width: 280px;
    text-align: left;
}

.truss-leasing-filter {
    width: 100%;
    min-width: 4rem;
    font-size: 0.75rem;
    padding: 2px 4px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 2px;
}

/* ---- Table cells and tabs (Leasing tables, Market Database) --------------- */

/* Cells read as in Excel (docs/decisions/26-11-20-05-44-06-leasing-and-market-tables-read-and-filter-like-excel.md):
   numbers, amounts and dates right-aligned and unwrapped, in the monospace font with suites; an amount's dollar sign
   floats at the cell's left, lighter than its number. MudSimpleTable aligns its cells with a rule of one class and three
   elements, so the cells of a MudSimpleTable are named with its class as well. The monospace is the size of the text
   beside it: at 0.95em, as it was until 2026-11-20, its digits read about 8% shorter than Poppins's (Steve:
   docs/decisions/26-11-20-20-49-05-table-numbers-are-the-size-of-the-text-and-both-tables-are-one-size.md). */
.truss-mono, .mud-simple-table td.truss-mono {
    font-family: var(--truss-mono);
}

.truss-cell-number, .truss-cell-money, .truss-cell-date,
.mud-simple-table td.truss-cell-number, .mud-simple-table td.truss-cell-money, .mud-simple-table td.truss-cell-date {
    text-align: right;
    white-space: nowrap;
}

.truss-cell-currency {
    float: left;
    color: var(--truss-currency);
    margin-right: 0.75em;
}

/* A column's filter in a table's filter row (ColumnFilterMenu): a button that says what the column is filtered by,
   outlined in blue while it filters, and its menu. The popover is drawn at the page's level, so no table clips it. */
.truss-filter {
    position: relative;
}

.truss-filter-button {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 1px 4px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 2px;
    background: #ffffff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--truss-muted);
    text-align: left;
    cursor: pointer;
}

.truss-filter-button.truss-filter-on {
    border-color: var(--truss-blue);
    background: #eaf4ff;
    color: var(--truss-blue);
}

.truss-filter-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

.truss-filter-icon {
    flex: none;
}

.truss-filter-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truss-filter-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 280px;
    padding: 12px;
    font-size: 0.875rem;
}

.truss-filter-search, .truss-filter-number, .truss-filter-date, .truss-filter-comparison {
    font: inherit;
    padding: 4px 6px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    background: #ffffff;
}

.truss-filter-values {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
}

.truss-filter-value, .truss-filter-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.truss-filter-value input, .truss-filter-select-all input {
    flex: none;
    accent-color: var(--truss-blue);
}

.truss-filter-operands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.truss-filter-number {
    width: 110px;
}

.truss-filter-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.truss-filter-note {
    color: var(--truss-muted);
    font-size: 0.75rem;
}

/* A cell of a column of paragraphs: one line, cut off, then "... more", which shows the whole text and becomes "less". */
.truss-paragraph {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.truss-paragraph-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.truss-paragraph-more {
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--truss-blue);
    cursor: pointer;
}

.truss-paragraph-open {
    display: block;
}

.truss-paragraph-open .truss-paragraph-text {
    white-space: pre-wrap;
}

.truss-paragraph-open .truss-paragraph-more {
    margin-left: 4px;
}

/* The tabs over a page's tables: gray with white text and a shadow along their foot, as if beneath the table; the tab
   shown white with blue text. Each is outlined in the tables' color and they sit on what is under them (Todd,
   2026-11-20: "They need a border around them, and they shouldn't have a gap between them and the scrollable section
   below"): the bar is as tall as its tabs and overlaps that by 1px, so an inactive tab's foot lies on its top edge (a
   table's outline, a tab's toolbar, the Market Database's box) and the shown tab, white to its foot, opens onto it.
   MudBlazor's slider under the active tab is not drawn. MudBlazor 9.11.0's rules:
   https://github.com/MudBlazor/MudBlazor/blob/v9.11.0/src/MudBlazor/Styles/components/_tabs.scss */
.truss-table-tabs .mud-tabs-tabbar {
    background-color: transparent;
    margin-bottom: -1px;
    z-index: 1;
}

.truss-table-tabs .mud-tabs-tabbar-inner {
    min-height: 40px;
    gap: 2px;
    align-items: flex-end;
}

/* MudBlazor's scroll buttons are icon buttons of 48px (a 24px icon and 12px padding), which made the bar 8px taller than
   its tabs and left that gap under them. */
.truss-table-tabs .mud-tabs-scroll-button .mud-icon-button {
    padding: 8px;
}

.truss-table-tabs .mud-tabs-tabbar-wrapper {
    gap: 2px;
}

/* A tab is as wide as its name and 16px each side: MudTabs' 160px minimum is an inline style the pages remove with
   MinimumTabWidth="0px". The Dashboard's 12 tabs are 1,631px where they were 2,033px. */
.truss-table-tabs .mud-tab {
    padding-left: 16px;
    padding-right: 16px;
    min-height: 40px;
    border: 1px solid var(--truss-table-outline);
    border-radius: 6px 6px 0 0;
    background-color: var(--truss-tab);
    color: #ffffff;
    box-shadow: inset 0 -7px 6px -5px rgba(0, 0, 0, 0.5);
}

.truss-table-tabs .mud-tab:hover {
    background-color: #59616c;
}

.truss-table-tabs .mud-tab.mud-tab-active {
    background-color: #ffffff;
    border-bottom-color: #ffffff;
    color: var(--truss-blue);
    box-shadow: none;
}

.truss-table-tabs .mud-tab.mud-tab-active:hover {
    background-color: #ffffff;
}

.truss-table-tabs .mud-tab-slider {
    display: none;
}

/* An indicator's dot (LeasingCellMark): the colors of Excel's traffic-light icons, which the download draws. */
.truss-leasing-dot {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    margin-right: 0.35em;
    vertical-align: baseline;
}

.truss-leasing-dot-green { background: #00b050; }
.truss-leasing-dot-yellow { background: #ffc000; }
.truss-leasing-dot-red { background: #e00000; }

.truss-leasing-arrow {
    margin-left: 0.25em;
}

/* The deal and Project Management dialogs' fields (LeasingDealDialog, LeasingDealProjectDialog): columns at least 260px,
   room for the longest label ("Landlord leasing rep. on transaction") at the outline's size; a long text takes a row. */
.truss-deal-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 16px;
}

.truss-deal-fields > .truss-deal-field-wide {
    grid-column: 1 / -1;
}

/* The deal form (LeasingDealDialog) is laid out as Todd's draft of 2026-11-24: each section's fields three to a row in
   equal columns, a long text on a row of its own (the rule above). A column is a third of the dialog but never under
   260px, the room the longest label on an outline needs ("Work Letter Review with Construction"), so a narrower dialog
   has two columns, then one, and no label is cut (Codex's review, 2026-11-25; the 16px is the gap between columns). The
   suites chosen and their warning sit under the suite picker, in its cell. */
.truss-deal-dialog .truss-deal-fields {
    grid-template-columns: repeat(auto-fill, minmax(max(min(260px, 100%), calc((100% - 2 * 16px) / 3)), 1fr));
}

.truss-deal-suite-cell {
    min-width: 0;
}

/* Leasing > Dashboard's "Select Properties": as wide as the names chosen (field-sizing, https://caniuse.com/mdn-css_properties_field-sizing),
   at least room for its label, never wider than the page. */
/* MudSelect puts the class on its input control, inside its own div, which is the page's flex item. */
.truss-leasing-toolbar > .mud-select:has(> .truss-summary-properties) {
    max-width: 100%;
}

.truss-summary-properties {
    width: auto;
    min-width: 240px;
}

.truss-summary-properties input.mud-input-slot {
    field-sizing: content;
    min-width: 12ch;
}

/* Add a suite's list: a check before each suite already chosen, the others set in line with it. */
.truss-suite-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.truss-suite-unchosen {
    display: inline-block;
    width: 20px;
}

/* ---- Dashboard and Deals: the bar above the tables ------------------------- */

/* One row in a section: what the page shows (the properties, the time it was built), then its buttons. The tables
   under it fill the rest of the window, so the bar is as short as its 32px buttons allow. */
.truss-leasing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 16px;
    margin-bottom: 12px;
}

.truss-leasing-toolbar > * {
    flex: 0 1 auto;
    min-width: 0;
}

.truss-leasing-toolbar .truss-toolbar-end {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* The files the Dashboard was built from, under its bar: the table runs to the section's edges, a file to a 40px
   line while its names and dates fit. */
.truss-summary-files {
    margin-bottom: 12px;
    overflow: hidden;
}

.truss-summary-files .truss-summary-property > td:not(.truss-summary-problem):not(.truss-summary-sales-through) {
    white-space: nowrap;
}

/* 16px between columns (8px each side of a cell) where a section's table has 32px, so the five columns fit a 1280px
   window without a scrollbar; the first and last keep 16px to the section's edges. A narrower window wraps Trailing
   Sales Through. */
.truss-section.truss-summary-files .mud-simple-table table tr > td,
.truss-section.truss-summary-files .mud-simple-table table tr > th {
    padding-left: 8px;
    padding-right: 8px;
}

.truss-section.truss-summary-files .mud-simple-table table tr > td:first-child,
.truss-section.truss-summary-files .mud-simple-table table tr > th:first-child {
    padding-left: 16px;
}

.truss-section.truss-summary-files .mud-simple-table table tr > td:last-child,
.truss-section.truss-summary-files .mud-simple-table table tr > th:last-child {
    padding-right: 16px;
}

/* Programs: the pages a program's roles open, a link each, 16px apart. */
.truss-leasing-program-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

/* A broker's update notice: what Truss last heard and when the next update is due, with Nothing new beside it. Due
   or overdue, its border and text are the error color. */
.truss-deals-report {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 16px;
    margin-bottom: 12px;
}

.truss-deals-report.truss-deals-report-due {
    border-color: var(--mud-palette-error);
}

/* A Leasing table with no rows says so under its header. */
.truss-leasing-none {
    padding: 12px 16px;
    color: var(--truss-muted);
    font-size: 14px;
}
