html {
    scroll-behavior: smooth;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

/* Analytics dashboards' date-window filter row (Window: presets, From, To, Clear Filters) - plain CSS
   flexbox instead of MudStack, because MudStack's own flex-item sizing left the date pickers' invisible
   flex cells much wider than their visible rendered input (a Style="width:..." on MudDatePicker only
   constrains something inside it, not the flex item itself), producing a large unexplained gap between
   From and To. flex:0 0 Npx here forces the actual flex cell to the stated width, not just its content. */
.le-filter-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.le-filter-topbar-label {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    flex: 0 0 auto;
}

.le-filter-topbar-presets {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.le-filter-topbar-date {
    flex: 0 0 160px;
    width: 160px;
}

.le-filter-topbar-spacer {
    flex: 1 1 auto;
}

/* Every MudTable's own built-in pager (MudTablePager) rendered stock MudBlazor grey - themed once here,
   app-wide, instead of per-table: a faint orange toolbar background with a top divider, navy bold "X-Y
   of Z" text, and the nav/first/last icon buttons in the app's own orange. Real class names confirmed
   against the installed MudBlazor 9.9.0 package CSS, not guessed. */
.mud-table-pagination-toolbar {
    background: rgba(232, 93, 0, 0.05);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.mud-table-pagination-caption {
    color: var(--mud-palette-secondary) !important;
    font-weight: 700;
}

.mud-table-pagination-actions .mud-icon-button {
    color: var(--mud-palette-primary) !important;
}

/* Every Dashboard's ".quick-search-card" is a column flex container (search box, then results) sized
   to match its taller sibling panel via height:100% — but MudBlazor's own .mud-input-control always
   sets flex:1 1 auto (meant for inline row layouts), with no column/row scoping. Inside a column flex
   parent that makes the search box itself stretch to fill the leftover vertical space, pushing the
   results list down to the bottom of the card instead of leaving it directly under the box. Any empty
   space belongs below the results, not between the box and them. */
.quick-search-card .mud-input-control {
    flex: none;
}

/* MudProgressCircular defaults to --mud-palette-text-secondary (a muted gray) when no Color prop is
   set, which every loading spinner in this app relies on (none pass an explicit Color) — switched to
   the brand orange globally here rather than adding Color="Color.Primary" to ~135 individual spinners. */
.mud-progress-circular {
    color: var(--mud-palette-primary);
}

/* Every Dashboard/Search page's own copy of .module-badge/.module-badge-icon/.module-badge-text used a
   pale 12%-opacity orange with orange text — Detail pages already use solid orange with navy text/icon,
   and per explicit direction the rest of the app should match that, not the other way around. Overriding
   here with !important rather than editing ~30 pages' own unscoped <style> blocks (each of which still
   declares the old color, just now losing the cascade on this one property) — a real cleanup would strip
   those local declarations instead, but this gets every page visually correct today without a 30-file
   pass. Detail pages' own identical local rules are unaffected (same values, this just reaffirms them). */
.module-badge {
    /* The header buttons (.module-badge-create / -left / -actions) are absolutely placed, so every header bar
       must be their positioning parent - several pages' own .module-badge rule omitted this, which left the
       button anchored to the page instead of the bar. */
    position: sticky !important;
    top: var(--mud-appbar-height, 64px);
    z-index: 6;
    background: var(--mud-palette-secondary) !important;

    /* The centered icon + title layout. Every page used to carry its own copy of these in an unscoped
       <style> block, so a page without one (State Well Search) got an unstyled, left-aligned header. */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0 !important;
}

/* The "Edit Shape" button shown in a record's map card when it has no shape yet (Tract/Unit/Well Detail's
   own "No map data available" placeholder) - was a plain small/default-colored icon button, easy to miss
   next to the "no map data" caption. Bigger and orange so it reads as the obvious next action. */
.map-edit-shape-btn {
    width: 56px;
    height: 56px;
}

.map-edit-shape-btn .mud-icon-root {
    font-size: 2.2rem;
}

/* MapShapePromptDialog's two choice cards (Link to Abstract/Section vs. Map Manually) - a clickable
   bordered card each, the recommended one (linking) visually lifted with an orange border/tint and a
   small corner badge so it reads as the obviously better default without disabling the other choice. */
.map-shape-prompt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    position: relative;
    height: 100%;
    padding: 24px 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.map-shape-prompt-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 4px 16px -6px rgba(26, 31, 43, 0.2);
    transform: translateY(-2px);
}

.map-shape-prompt-recommended {
    border: 1.5px solid var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.05);
}

.map-shape-prompt-icon {
    margin-bottom: 4px;
}

.map-shape-prompt-title {
    font-weight: 700;
}

.map-shape-prompt-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--mud-palette-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: 10px;
}

/* The body of a multi-line hover box (MudTooltip TooltipContent): a fixed-width box that wraps its text instead of one long line. */
/* The prediction label in the intersect dialogs: a filled orange pill, bigger and bolder than the review labels. */
.wi-likely {
    background: #ff8c00;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1px 12px;
    border-radius: 12px;
}

.tool-tip-box {
    width: 280px;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    padding: 4px 2px;
}

.module-badge-icon,
.module-badge-text {
    color: var(--mud-palette-primary) !important;
}

.module-badge-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;

    /* A long record title (a full grantor->grantee description, etc.) used to just keep growing and run underneath
       the absolutely-positioned header buttons on either side (.module-badge-actions/-create/-tools) instead of
       stopping short of them - min-width:0 is required for a flex child to actually shrink below its own content's
       width, which is what lets the ellipsis take over instead of overflowing. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 65%;
}

/* The Dashboard header's "Create X" button — plain text/icon, no border and no fill, just navy
   "+ Create X" sitting in the top-right corner of the badge. Position values match what Tracts/Owners
   already had locally (harmless duplication for those two); every other Dashboard picking up this
   button for the first time needs no local CSS of its own now. */
.module-badge-create {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mud-palette-primary) !important;
    border: none !important;
    background: transparent !important;
}

.module-badge-create:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* A Tools dropdown in a Detail header, placed just left of the Edit button (which sits at right: 8px). */
.module-badge-tools {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%);
}

/* Every Detail page's own header toolbar (Remarks/Documents icon buttons) and its "Edit X" button were
   hardcoded Color="Color.Secondary" (navy) per page, back when .module-badge's background was still
   orange and navy read fine against it. Now that .module-badge flipped to a navy background, those same
   navy icons/text went near-invisible against it (confirmed live - only the orange count badge showed,
   no icon underneath). Overridden once here with !important, same approach as .module-badge-create/-left/
   -actions above, rather than touching Color= on all 15 Detail pages individually. */
.module-badge-toolbar .mud-icon-button,
.module-badge-edit,
.module-badge-tools {
    color: var(--mud-palette-primary) !important;
}


/* For a Dashboard with more than one create action (Units & Wells) — same right-side placement as a
   single .module-badge-create button, but as a flex row of them instead of one absolutely-positioned
   element, so the buttons sit side by side rather than stacking on top of each other. */
.module-badge-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.module-badge-actions .mud-button-root {
    color: var(--mud-palette-primary) !important;
    border: none !important;
    background: transparent !important;
}

.module-badge-actions .mud-button-root:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.validation-message {
    color: #e50000;
}

/* MudDivider's default line color is nearly invisible against this app's light backgrounds. */
.mud-divider {
    border-color: var(--mud-palette-primary) !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

body {
    font-family: 'Inter', sans-serif;
}

/* App shell (AppLayout / ProjectLayout) */

.le-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-surface) !important;
}

/* Three-column grid (left auto / center auto / two equal 1fr flanking tracks) so the project label sits at the
   bar's true visual center no matter how wide the logo or the right-hand group (search + avatar) end up being -
   plain flexbox can't center a middle item against two asymmetric siblings the way an equal-fr grid can.
   Scoped to its own class, NOT .le-appbar itself - .le-appbar is shared by AdminLayout/AppLayout/ProjectLayout for
   plain cosmetic styling (border/background) and their bars don't have this 3-child shape, so grid-ing .le-appbar
   directly mis-centers their own content (confirmed live: Admin's UserMenu drifted to the middle of the bar). */
.le-appbar-grid .mud-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
}

/* Grid items stretch to fill their cell by default, which made the whole 1fr-wide left column clickable
   (not just the logo image) since the link sits in that column. Shrink it back to its own content width. */
.le-appbar-logo {
    justify-self: start;
}

.le-appbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.le-drawer {
    border-right: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-background);
    transition: width .2s ease-in-out !important;
}

.le-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.le-main {
    background-color: var(--mud-palette-background);
}

.le-nav {
    padding-top: 12px;
}

.le-nav-bottom {
    margin-top: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.le-nav .mud-nav-link {
    border-radius: 8px;
    margin: 2px 12px;
    color: var(--mud-palette-secondary) !important;
    white-space: nowrap;
    overflow: hidden;
    /* justify-content and margin can't be smoothly interpolated by the browser — instead of
       snapping the moment the drawer starts collapsing (a jarring jump across a still-wide box),
       delay the snap until the width shrink is nearly done, so it lands while the box is already
       close to its final narrow size. */
    transition: justify-content 0s ease-in-out .18s, margin .2s ease-in-out;
}

.le-nav .mud-nav-link .mud-icon-root {
    color: var(--mud-palette-secondary) !important;
}

.le-nav .mud-nav-link.active {
    background: rgba(232, 93, 0, 0.1);
    color: var(--mud-palette-primary) !important;
}

.le-nav .mud-nav-link.active .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

.le-nav .mud-nav-link:not(.active):hover {
    background: rgba(232, 93, 0, 0.08);
    color: var(--mud-palette-primary) !important;
}

.le-nav .mud-nav-link:not(.active):hover .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

.le-sticky-header {
    position: sticky;
    top: calc(var(--mud-appbar-height, 64px) + var(--le-badge-h, 0px) + var(--le-sticky-extra, 0px) + .5rem);
    z-index: 3;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: 0 4px 16px -8px rgba(26, 31, 43, 0.12);
    overflow: hidden;
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.le-panel-body {
    padding: 14px 16px;
}

/* Flat label-left/value-right info-card row, one per field, with a hairline divider between rows —
   the "Tract Info"/"Lease Info" card convention. Was previously only defined inside TractDetail.razor's
   own unscoped <style> block (as .tract-field), so Lease Detail's own info card never had access to it
   and grew its own heavier, stacked/grouped layout instead — moved here once, renamed generically,
   so every Detail page's info card can share the exact same look. */
.detail-field {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    font-size: 0.8125rem;
    line-height: 1.3;
}

.detail-field:last-of-type {
    border-bottom: none;
}

.detail-field-label {
    color: var(--mud-palette-text-secondary);
    flex-shrink: 0;
}

.detail-field > span:last-child {
    font-weight: 600;
    /* min-width:0 + overflow-wrap:anywhere let a long unbroken value (well and lease names run together with
       semicolons) wrap inside its own column instead of bleeding into the next one. */
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.detail-field-block {
    display: block;
}

/* A full-width row inside an info card, set off by a MudDivider above and below (Well Detail's unit). */
.detail-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding: 4px 0;
    font-size: 0.8125rem;
}

.detail-band-main,
.detail-band-side {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.detail-band-value {
    font-weight: 600;
}

.detail-audit {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* Shared by every Detail page's bespoke (non-shared-grid) sub-tab tables — Unit Detail's Tracts/
   Leases/Mineral Owner Interests/Acq/Div/Wells panels use this directly. Lease Detail's .lease-sub-table
   and Owner Detail's .owner-sub-table are the same styling duplicated into each page's own unscoped
   <style> block rather than shared here — left as-is rather than touched incidentally, but any new
   sub-tab table should use this one instead of adding a fourth copy. */
.detail-sub-table {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
}

.detail-sub-table thead th {
    background-color: rgba(232, 93, 0, 0.28) !important;
    color: var(--mud-palette-secondary) !important;
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

.detail-sub-table th,
.detail-sub-table td {
    padding: 2px 8px !important;
    line-height: 1.2 !important;
    font-size: 0.75rem;
}

/* Short Legal / Legal Description can run to several paragraphs — clamp to ~5 lines with an optional
   "more" toggle rather than letting the field push the rest of the card down indefinitely. Was
   previously only defined inside TractDetail.razor's own unscoped <style> block. */
.legal-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.legal-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Legal Link tab (Tract and Lease both) — the list table and the attach-dialog's search/selection
   panels. Previously duplicated between TractLegalLinkPanel.razor and AttachLegalLinkDialog.razor's own
   unscoped <style> blocks; moved here once Lease Detail needed the exact same look for its own Legal
   Link tab, rather than duplicating a third time. */
.ll-table-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
}

.ll-table-card thead th {
    background-color: rgba(232, 93, 0, 0.28) !important;
    color: var(--mud-palette-secondary) !important;
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

.ll-table-card th,
.ll-table-card td {
    padding: 4px 10px !important;
    line-height: 1.3 !important;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* The tinted round icon at the head of each Import Style step. */
.is-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background-color: rgba(232, 93, 0, 0.12);
}

/* Import Style's "What to copy" cards: a click toggles the part; a chosen one is outlined and tinted in the primary colour. */
.is-part-card {
    cursor: pointer;
    height: 100%;
    transition: border-color 0.15s, background-color 0.15s;
}

.is-part-card:hover {
    border-color: var(--mud-palette-primary);
}

.is-part-card.is-part-on {
    border-color: var(--mud-palette-primary);
    background-color: rgba(232, 93, 0, 0.06);
}

/* Project Data manager: fixed column widths and wrapping text so the table fits the dialog instead of scrolling sideways. */
.pd-table table {
    table-layout: fixed;
    width: 100%;
}

.pd-table th,
.pd-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.pd-table td:last-child {
    white-space: nowrap;
}

.ll-table-card .wrap-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 320px;
    white-space: normal;
}

/* Groups the whole search side of the attach dialog into one bounded card instead of loose floating
   fields, matching the "sub-record card" language used elsewhere (Custom Attributes, Acq/Div, etc.). */
.ll-search-panel {
    border-left: 4px solid var(--mud-palette-secondary) !important;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
}

/* Highlights just the actual search criteria (free-text/Section/Township/Range or the Texas abstract
   search) so it stands out from the County picker above it — not applied to the whole .ll-search-panel
   since County selection itself isn't "search criteria" the same way. Same left-border-accent card
   shape used everywhere else in this app for a grouped sub-section (.custom-attr-card,
   .ll-search-panel itself, OwnerFormDialog/EditTractDialog/DocumentDialog/FlagDialog all use the
   identical border-left + light-tint treatment) — just recolored orange instead of navy, at a light
   tint rather than the strong 0.28 orange reserved for "this card has a value" states elsewhere. */
.ll-search-criteria {
    border-left: 4px solid var(--mud-palette-primary) !important;
    border-radius: 4px;
    background: rgba(232, 93, 0, 0.08);
    padding: 10px 12px;
}

/* The Outlined variant's fill is transparent by default, so the card's own orange tint was bleeding
   straight through into the input boxes themselves — forced back to a plain white/surface fill so the
   fields read as clean input boxes sitting on top of the tinted card, not tinted themselves. */
.ll-search-criteria .mud-input-outlined {
    background-color: var(--mud-palette-surface) !important;
}

.ll-results-table td {
    padding: 4px 8px !important;
    font-size: 0.8125rem;
}

.ll-result-added {
    opacity: 0.6;
}

.ll-result-row {
    cursor: pointer;
}

.ll-result-row:hover {
    background: var(--mud-palette-action-default-hover);
}

.ll-selected-card {
    border-left: 4px solid var(--mud-palette-secondary) !important;
    border-radius: 4px;
}

/* The navy title-bar convention every Detail-page sub-panel/tab uses above its own table
   (`<div class="le-sticky-header"><div class="section-header-bar">Title</div>...`). Was previously
   only defined per-page inside TractDetail.razor/OwnerDetail.razor's own unscoped <style> blocks, so
   any panel mounted under a page that never defined it (every Lease Detail tab) rendered this as
   plain unstyled text instead — moved here once so every module gets it regardless of which page's
   own inline styles happen to be mounted. */
.section-header-bar {
    background-color: var(--mud-palette-secondary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    padding: 3px 12px;
    line-height: 1.4;
}

/* A .section-header-bar that's also a flex row with a button in it (e.g. a "+ Link X" action inline with the
   title) - the button needs an explicit white text color or it inherits MudButton's own (invisible against navy)
   default. Shared here, not scoped to one component's <style>, since more than one page/panel uses this shape
   (bit us before on Dataset Detail's own Linked Records bar vs. the reusable LinkedDatasetsPanel). */
.section-header-bar.le-bar-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header-bar.le-bar-with-button .mud-button-root {
    color: #fff !important;
}

.section-header-body {
    padding: 4px 12px;
}

/* Project Configuration's own tab headers (User Access, List Data, States & Counties, Custom Attributes,
   Prospects, System Config, External Data) and, since 2026-10-10, the Maps dashboard's Maps/Templates/Layer
   Packages panel headers - a thin full-width orange banner, title text only, not the navy pill
   (.le-panel-body-title) used for section titles elsewhere in the app, so the content area visually echoes
   the active tab's own orange highlight in .le-tabs above it ("what tab am I on"). Its Add/whatever button
   sits in its own left-aligned row below the banner (standard .le-btn styling), not inside it - see
   feedback_subtab_buttons_left_aligned. */
.le-config-tab-bar {
    background: var(--mud-palette-secondary);
    color: var(--mud-palette-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    padding: 3px 14px;
    margin: 0 0 10px;
    border-radius: 6px;
    text-align: center;
}

/* Integrated flush into the top of its card (not a pill floating inset) when the bar is the first thing in
   one of the two card shells it actually appears in - negative-margins out to the card's own edge and
   matches its radius on the top corners only, so it reads as part of the card rather than a chip sitting
   inside it. .le-panel's own 1.25rem padding vs. .le-sticky-header/.le-panel-body's 14px/16px are genuinely
   different card conventions, so each gets its own rule rather than one guessed number. Bare .le-config-tab-bar
   usages with no card ancestor (Project Configuration's Spatial Analysis/Map Windows/etc. tabs, which sit
   directly in the tab panel with no surrounding card) are untouched by these - nothing to integrate into. */
.le-panel > .le-config-tab-bar {
    margin: -1.25rem -1.25rem 14px;
    border-radius: 12px 12px 0 0;
}

.le-sticky-header .le-panel-body > .le-config-tab-bar:first-child {
    margin: -14px -16px 14px;
    border-radius: 0;
}

/* Detail pages' own info cards (.detail-card, duplicated per page with padding: 10px 14px, overriding
   .le-panel's own 1.25rem) need their own negative-margin to match - the generic .le-panel rule above
   assumed the full 1.25rem and over-pulled the banner past the card's real top edge, up into whatever
   sits above the card (confirmed live: it bled into the page's own module-badge header). Same tied
   specificity as the generic rule, so this must come after it in the cascade to win. */
.detail-card > .le-config-tab-bar {
    margin: -10px -14px 14px;
    border-radius: 12px 12px 0 0;
}

/* A "Quick Search" card's Add/Search actions, pulled up into the .le-config-tab-bar banner itself instead
   of sitting in their own row underneath it - Add on the left (icon + "Add" only, no module name - the
   card's own title already says what module it is), Search on the right (icon + "Search" only), both
   bigger and bold, so the centered title text in between has room and nothing collides. .le-quick-search-bar
   adds position:relative so the two absolutely-positioned corners don't disturb the title's own centering. */
.le-config-tab-bar.le-quick-search-bar {
    position: relative;
}

.le-quick-search-add,
.le-quick-search-search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.le-quick-search-add {
    left: 14px;
}

.le-quick-search-search {
    right: 14px;
}

.le-quick-search-add .mud-button-root,
.le-quick-search-search .mud-button-root {
    color: var(--mud-palette-primary) !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
}

.le-quick-search-add .mud-button-root:hover,
.le-quick-search-search .mud-button-root:hover {
    background: rgba(232, 93, 0, 0.18) !important;
    outline: 1.5px solid var(--mud-palette-primary);
    outline-offset: -1.5px;
}

.le-panel-body-title {
    display: block;
    color: #fff;
    background: var(--mud-palette-secondary);
    font-weight: 700;
    padding: 6px 12px;
    margin: 0 0 10px;
    border-radius: 6px;
}

.le-breadcrumbs {
    margin: 0 0 .5rem 0;
    padding: 0;
    min-height: 0;
}

.le-breadcrumbs .mud-breadcrumb-item:last-child,
.le-breadcrumbs li:last-child {
    color: var(--mud-palette-primary) !important;
}

.le-breadcrumbs .mud-breadcrumb-item:last-child *,
.le-breadcrumbs li:last-child * {
    color: var(--mud-palette-primary) !important;
}

.le-appbar-project-name {
    color: var(--mud-palette-primary) !important;
    font-weight: 700;
}

.le-btn-icon-nav .mud-icon-root {
    color: var(--mud-palette-secondary);
}

.le-btn-icon-nav:hover .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* The drawer's flex layout stretches direct children full-width by default, which stretched the
   toggle button's circular ripple/hover overlay into an oval. This wrapper opts back out of that
   stretch so the button stays a normal fixed-size circle regardless of the drawer's own layout. */
.le-drawer-toggle-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    padding: 4px 12px 0 12px;
}

.le-drawer-toggle-row + .le-nav {
    padding-top: 0;
}

.le-drawer-project-name {
    color: var(--mud-palette-primary) !important;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-drawer-collapsed .le-drawer-project-name {
    display: none;
}

.le-pinned .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* Collapsed (mini) rail: no boxy pill background behind bare icons — just a centered icon. */
.le-drawer-collapsed .le-nav .mud-nav-link,
.le-drawer-collapsed .le-nav .mud-nav-link.active {
    background: none !important;
    margin: 2px 0 !important;
    justify-content: center;
}

.le-drawer-collapsed .le-drawer-toggle-row {
    justify-content: center !important;
    padding: 4px 0 0 0;
}

.le-drawer-collapsed .le-drawer-toggle {
    visibility: hidden;
}

.le-drawer-toggle {
    flex: none !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
}


.le-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* A static (non-collapsing) section header + its checkbox body, inside a list of grouped checkboxes/items -
   Extract Data's record-type groups. The two together read as one block: a darker navy-washed header (orange
   icon, navy text) sitting flush on top of a lighter navy-washed body, both sharing the same navy left accent
   bar so the whole group looks contained, not just its header. */
.le-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    margin: 6px 0 0;
    background: rgba(0, 0, 128, 0.14);
    border: 1px solid rgba(0, 0, 128, 0.2);
    border-bottom: none;
    border-left: 4px solid var(--mud-palette-secondary);
    border-radius: 0 6px 0 0;
}

.le-group-header:first-child {
    margin-top: 0;
}

.le-group-header .mud-icon-root {
    color: var(--mud-palette-primary);
}

.le-group-body {
    background: rgba(0, 0, 128, 0.05);
    border: 1px solid rgba(0, 0, 128, 0.2);
    border-top: none;
    border-left: 4px solid var(--mud-palette-secondary);
    border-radius: 0 0 6px 0;
    padding: 4px 10px 6px;
    margin: 0 0 6px;
}

.le-group-header-title {
    color: var(--mud-palette-secondary);
    font-weight: 700;
}

.le-group-header-count {
    margin-left: auto;
    white-space: nowrap;
}

/* Extract Data's filter row (Prospect/County/State) - the dropdown arrow MudSelect renders defaults to a dim grey; navy matches
   the rest of the app's form-field accent color instead. A light navy wash gives the bar itself some definition instead of
   reading as plain white space next to the rest of the page's same-color surfaces. */
.le-filter-selects.le-panel {
    background: rgba(0, 0, 128, 0.08);
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
}

.le-filter-selects .mud-icon-root {
    color: var(--mud-palette-secondary);
}

/* Admin shell — the sidebars share the same light theme/active-state colors as everywhere else;
   only this header band signals "you're in admin", confined to the drawer's top, not its body. */

.le-admin-drawer-heading {
    background: var(--mud-palette-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mud-palette-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 24px 24px;
    margin-bottom: 8px;
}

/* Utility buttons (sign out, change project, create X...) — navy by default, orange on hover */

.le-btn.mud-button-outlined {
    border-color: var(--mud-palette-secondary) !important;
    color: var(--mud-palette-secondary) !important;
}

.le-btn.mud-button-outlined:hover {
    border-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary) !important;
    background: rgba(232, 93, 0, 0.08) !important;
}

.le-btn.mud-button-filled {
    background-color: var(--mud-palette-secondary) !important;
    color: #fff !important;
}

.le-btn.mud-button-filled:hover {
    background-color: var(--mud-palette-primary) !important;
}

.le-btn.mud-disabled {
    border-color: var(--mud-palette-lines-default) !important;
    color: var(--mud-palette-text-disabled) !important;
    background: transparent !important;
}

/* Account menu (icon + first name, navy default / orange hover) */

.le-user-menu-icon .mud-icon-root {
    color: var(--mud-palette-secondary);
}

.le-user-menu-icon:hover .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

.le-user-menu-name {
    color: var(--mud-palette-secondary);
    line-height: 1;
}

/* Every dropdown menu (Tools, Search, Export, Layers, the account and record-link menus): navy text and icons, orange on hover. */

/* A menu item wrapped in a MudTooltip sits in an inline-block root, which laid the items side by side; stack them. */
.mud-menu-list .mud-tooltip-root {
    display: block;
    width: 100%;
}

.mud-menu-list .mud-menu-item,
.mud-menu-list .mud-list-item {
    color: var(--mud-palette-secondary) !important;
}

.mud-menu-list .mud-menu-item .mud-icon-root,
.mud-menu-list .mud-list-item .mud-icon-root {
    color: var(--mud-palette-secondary) !important;
}

.mud-menu-list .mud-menu-item:hover,
.mud-menu-list .mud-list-item:hover {
    background-color: rgba(232, 93, 0, 0.08) !important;
    color: var(--mud-palette-primary) !important;
}

/* Well Detail's "Refresh from Enverus" while the lookup runs: the same sync icon, spun and turned orange in place, so the item's width and
   the other items' alignment (they all rely on MudMenuItem's Icon param reserving a fixed-width gutter) don't shift. */
@keyframes le-menu-item-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mud-menu-list .le-menu-item-spin .mud-icon-root {
    color: var(--mud-palette-primary) !important;
    animation: le-menu-item-spin 1s linear infinite;
    transform-origin: 50% 50%;
}

.mud-menu-list .mud-menu-item:hover .mud-icon-root,
.mud-menu-list .mud-list-item:hover .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* Module sub-section tabs (e.g. Project Configuration) — navy tab bar, orange active tab + underline */

.le-tabs .mud-tabs-tabbar {
    background-color: var(--mud-palette-secondary) !important;
    border-radius: 8px 8px 0 0;
}

/* Without this, the layer settings dialog visibly resized every time a tab with less content (Snapping, Filter) was
   picked after one with more (Symbology) - a jarring shrink/grow on every tab click. A fixed minimum keeps the
   dialog's own size stable across tabs; a short tab's content just leaves blank space below it instead of pulling
   the whole dialog in around it. */
.le-tabs .mud-tabs-panels {
    min-height: 520px;
}

/* A backstop for when there are more tabs than fit (e.g. a layer's settings dialog): MudBlazor's own scroll arrows depend on a width
   measurement that doesn't always fire correctly inside a dialog, silently clipping the last tab(s) with no way to reach them. Plain
   horizontal scroll always works regardless. */
.le-tabs .mud-tabs-tabbar-inner {
    overflow-x: auto;
    scrollbar-width: thin;
}

/* MudBlazor's scroll-arrow icon defaults to a dark grey, invisible against this navy tab bar. */
.le-tabs .mud-tabs-scroll-button .mud-icon-root {
    color: #fff !important;
}

.le-tabs .mud-tab {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 22px;
    min-height: 44px;
    font-size: 0.8125rem;
    /* The real fix for equal-width tabs is MinimumTabWidth="0px" on the component (its 160px default was the cause); this override is
       just a defensive backstop. */
    width: auto !important;
}

.le-tabs .mud-tab:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.le-tabs .mud-tab.mud-tab-active {
    color: var(--mud-palette-primary) !important;
}

.le-tabs .mud-tab-slider {
    background: var(--mud-palette-primary) !important;
}

/* Dialog chrome — every dialog in the app gets a navy header bar with white title text, per
   the app's standard popup format. Applied at the MudBlazor class level (not a wrapper class) so it
   covers every dialog, present and future, without each one having to opt in. */

.mud-dialog-title {
    background-color: var(--mud-palette-secondary) !important;
    color: #fff !important;
}

.mud-dialog-title .mud-typography {
    color: #fff !important;
}

.mud-dialog-title .mud-button-close .mud-icon-root {
    color: #fff !important;
}

/* ConfirmActionDialog (Components/Shared) - a styled replacement for MudBlazor's plain ShowMessageBoxAsync,
   icon badge + message laid out side by side instead of a bare line of text. */
.le-confirm-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 4px 16px;
    min-width: 280px;
}

.le-confirm-icon-badge {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.le-confirm-icon-badge .mud-icon-root {
    width: 28px;
    height: 28px;
}

.le-confirm-icon-badge-warning {
    background: rgba(255, 152, 0, 0.14);
    color: var(--mud-palette-warning);
}

.le-confirm-icon-badge-error {
    background: rgba(211, 47, 47, 0.14);
    color: var(--mud-palette-error);
}

.le-confirm-icon-badge-info {
    background: rgba(33, 150, 243, 0.14);
    color: var(--mud-palette-info);
}

.le-confirm-message {
    padding-top: 10px;
    line-height: 1.5;
}

/* MudBlazor's default tooltip text is only 12px, which reads as unreadably small on hover —
   including MudChart's tooltips, which reuse this same class and render in a portal outside
   whatever component triggered them, so there's no way to scope this to just charts. */
.mud-tooltip {
    font-size: 14px;
}

/* MudChart's on-bar/on-slice value labels (ShowValues) render at a small native default for bars
   specifically (pie slice values are already bigger by default) — bumped explicitly. Unlike the
   axis-label classes, this is one number floating above a single bar/slice with no packed neighbors
   to collide with, so a bigger font here doesn't risk the same overlap issue. */
.mud-chart-value-label {
    font-size: 18px !important;
}

/* Bottom axis category labels (county/status names etc.) appear to auto-shrink when a chart has many
   closely-packed labels, which is why the Timeline's widely-spaced dates looked bigger than the bar
   charts' labels even though both use this same class with no font-size in MudBlazor's own
   stylesheet. Forcing a consistent size here is safe now (unlike an earlier attempt on a 50+-label
   chart) because Tracts is capped to 10 + "Other" and every bar chart already uses 45°/-45° rotation,
   both of which free up plenty of room per label. */
.mud-chart-axis-label,
.mud-charts-xaxis {
    font-size: 14px !important;
}

/* Shared by every Documents attach/upload dialog (the generic DocumentDialog plus Billing's own
   bespoke-read/shared-write dialogs) — moved here once a third dialog needed the same upload UX,
   per the "shared CSS belongs in app.css" rule. */
.doc-attach-panel {
    background: rgba(var(--mud-palette-primary-rgb), 0.06);
    border: 1px solid var(--mud-palette-primary) !important;
    border-radius: 8px;
}

.doc-attach-title {
    color: var(--mud-palette-secondary);
    font-weight: 700;
}

.doc-card {
    border-left: 4px solid var(--mud-palette-secondary) !important;
    border-radius: 4px;
}

.doc-card-deleted {
    background: rgba(var(--mud-palette-error-rgb), 0.07);
    border-left-color: var(--mud-palette-error) !important;
}

.doc-name {
    color: var(--mud-palette-secondary);
    font-weight: 700;
}

.doc-type-chip {
    flex-shrink: 0;
}

.doc-type-desc {
    color: var(--mud-palette-text-secondary);
    font-size: 0.85em;
}

.doc-date {
    color: var(--mud-palette-secondary);
    font-weight: 700;
    white-space: nowrap;
}

.doc-description {
    margin-top: 2px;
}

/* Document card: icon | name + description + meta | date + actions, so the eye reads left to right in one
   pass and the actions (Download first) are always in the same place at the right. */
.doc-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.doc-icon-cell {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 128, 0.07);
}

.doc-main {
    flex: 1 1 auto;
    min-width: 0;
}

.doc-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.doc-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* No white-space: nowrap here (unlike .doc-date) — this holds a filename + timestamp + user name that
   can run long, and sits in a flex row (SpaceBetween, sometimes next to an icon button) that won't
   shrink it, so nowrap forced the whole row wider than the dialog and left it horizontally scrolling
   with the trailing text clipped. overflow-wrap covers a single long unbroken token (an underscore-only
   filename won't naturally break) that plain wrapping alone wouldn't catch. */
.doc-meta {
    color: var(--mud-palette-text-secondary);
    opacity: 0.75;
    overflow-wrap: anywhere;
}

.doc-edit-panel {
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
    border: 1px solid var(--mud-palette-primary) !important;
    border-radius: 8px;
}

/* A real, always-present, invisible <input type="file"> overlaying the visible box — plain
   browsers already support both click-to-open and native drag-and-drop directly onto a file
   input for free, no library-specific drag/drop feature needed. MudFileUpload's own DragAndDrop
   feature (tried first) turned out to conflict with its CustomContent in this MudBlazor version —
   a known category of upstream bug, not something worth continuing to fight with CSS. */
.doc-dropzone {
    position: relative;
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--mud-palette-primary);
    border-radius: 8px;
    background: rgba(var(--mud-palette-primary-rgb), 0.04);
}

.doc-dropzone:hover,
.doc-dropzone:focus-within {
    background: rgba(var(--mud-palette-primary-rgb), 0.12);
}

.doc-dropzone-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    pointer-events: none;
}

.doc-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


/* Custom attribute rows inside every Edit/Create dialog (Tract, Owner, Lease, Unit, Well, Flag, Land
   Assignment, Runsheet, County Record, Acq/Div, Title Opinion): one compact line per attribute —
   name | value | note | clear. Navy left accent plus a bottom rule and zebra banding keep neighbouring
   rows visually distinct; a row holding a value gets the same orange tint used elsewhere in the app. */
.custom-attr-row {
    border-left: 4px solid var(--mud-palette-secondary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 4px 8px;
    background: transparent;
}

.custom-attr-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.custom-attr-row-filled,
.custom-attr-row-filled:nth-child(even) {
    background: rgba(232, 93, 0, 0.28);
}

.custom-attr-row .mud-input-outlined {
    background-color: var(--mud-palette-surface) !important;
    border-radius: var(--mud-default-borderradius);
}

.custom-attr-name {
    color: var(--mud-palette-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.custom-attr-desc {
    line-height: 1.2;
}

/* Dialog field density. MudBlazor's Margin.Dense still gives every input control its own vertical margin
   (4px top/bottom, 8px top when it has a floating label) on top of the grid gap, which is what made
   stacked dialog fields look far apart. Dropped here to a 4px top margin (room for the floating label
   that straddles the field's top border) and none below, for every input in every dialog. */
.mud-dialog .mud-input-control.mud-input-control-margin-dense,
.mud-dialog .mud-input-control.mud-input-control-margin-dense.mud-input-outlined-with-label {
    margin: 4px 0 0 0;
}

/* Totals footer row for sub-tab tables — same look as MineralInterestGrid's own .mig-totals-row (bold,
   light orange tint, navy rule above), shared here so any sub-tab table can use it. */
.mud-simple-table .sub-table-totals-row td {
    font-weight: 700 !important;
    background-color: rgba(232, 93, 0, 0.1) !important;
    border-top: 2px solid var(--mud-palette-secondary) !important;
}

/* Filter bar at the top of a module Dashboard (State/County/Prospect etc. selects) — shared by every
   Dashboard that has one, not per page. */
.dashboard-filter-card {
    padding-top: 8px;
    padding-bottom: 0;
}

/* Left-side action group in a Dashboard's header badge (e.g. "Search Leases") — mirror image of
   .module-badge-create on the right: absolutely placed so the centered title stays centered, buttons
   flat/transparent in the badge's navy text color. Holds more than one button where a module needs it
   (Units & Wells: Search Units / Search Wells; Owners: Search Owners / Relationship Graph). */
.module-badge-left {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.module-badge-left .mud-button-root {
    color: var(--mud-palette-primary) !important;
    border: none !important;
    background: transparent !important;
}

.module-badge-left .mud-button-root:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Below MudBlazor's md breakpoint (960px) the header badge has no room for its side buttons next to the
   centered title — they ran into it. Hidden here; every action they offer (search, create) is also on the
   Dashboard's own Quick Search card, so nothing becomes unreachable. */
@media (max-width: 959.95px) {
    .module-badge-left,
    .module-badge-create,
    .module-badge-actions {
        display: none !important;
    }
}

/* Custom Attributes list on a Detail page's info card — can run to any length, so cap the visible area and
   let it scroll rather than pushing the rest of the page layout around. Shared by every module's Detail. */
.custom-attr-list {
    max-height: 190px;
    overflow-y: auto;
}

/* Expanded map dialog (Components/Shared/Map/MapDialog.razor — every module's map opens this one): a tight
   header, no content padding, and the map absolutely filling everything under it, with the Map/Aerial
   toggle floating in the map's top-right corner. Scoped via :has(marker) so no other dialog is touched. */
.mud-dialog:has(.le-map-dialog-marker) .mud-dialog-title {
    position: relative;
    padding: 6px 16px;
}

/* MudBlazor pins the close button 8px from the top, which sat low once the header got shorter - centered on
   the header instead. */
.mud-dialog:has(.le-map-dialog-marker) .mud-dialog-title .mud-button-close {
    top: 50%;
    transform: translateY(-50%);
}

.mud-dialog:has(.le-map-dialog-marker) .mud-dialog-content {
    position: relative;
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
}

.le-map-dialog-marker {
    position: absolute;
    inset: 0;
}

.le-map-dialog-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* The saved map viewer's own floating toolbar (back / name / settings), mirroring .le-map-dialog-toggle's look
   but pinned to the opposite corner so it never collides with the Map/Aerial + Layers toggle. */
/* The map's search box, top centre: a layer selector and the text box in one bar, results dropping under it. */
.le-map-search {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: min(560px, 46vw);
}

.le-map-search-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.le-map-search-layer {
    flex: 0 0 auto;
    margin-top: 0;
}

.le-map-search-layer-button {
    text-transform: none;
    font-weight: 500;
    min-width: 0;
    padding: 4px 4px 4px 8px;
    white-space: nowrap;
}

.le-map-search-text-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.le-map-search-text {
    flex: 1 1 auto;
    margin-top: 0;
}

.le-map-search-results {
    margin-top: 4px;
    max-height: 55vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
}

/* Search dropdowns (map search, global search): a zero-height sticky anchor, so the progress strip overlays the dropdown's top
   edge and its appearing never moves the results. -pending is the short empty body shown while a first search has no rows yet. */
.le-search-busy {
    position: sticky;
    top: 0;
    height: 0;
    z-index: 2;
}

.le-search-pending {
    height: 28px;
}

.le-map-search-group {
    padding: 6px 12px 2px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-primary);
}

.le-map-search-item {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.875rem;
}

.le-map-search-item:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.le-map-toolbar-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    max-width: calc(100% - 140px);
}

.le-map-toolbar-left .le-map-toolbar-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The Saved Map viewer's layer TOC / style editor (Components/Pages/Maps/MapLayerToc.razor): a floating window along the left
   of the map, opened by the Layers button (.le-map-toc-toggle) under the back button so the map keeps the whole page. */
.le-map-toc-toggle {
    position: absolute;
    top: 56px;
    left: 10px;
    z-index: 5;
    padding: 0;
    line-height: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* A small button padding around a bigger icon, so the panel hugs the icon instead of floating it in whitespace. */
.le-map-toc-toggle .mud-icon-button {
    padding: 4px;
}

.le-map-toc-toggle .mud-icon-root {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
}

/* Shown only while a file is actually being dragged over the map (wireShapefileDrop, mapInterop.js) - the
   whole map is the drop target, so this is a hint that appears on demand rather than a permanent fixture. */
.le-map-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(245, 124, 0, 0.12);
    border: 3px dashed #e65100;
    border-radius: 4px;
    color: #e65100;
    font-size: 1.1rem;
    font-weight: 600;
}

/* The Bookmarks button, under the Layers one. */
.le-map-bm-toggle {
    position: absolute;
    top: 102px;
    left: 10px;
    z-index: 5;
    padding: 0;
    line-height: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.le-map-bm-toggle .mud-icon-button {
    padding: 4px;
}

.le-map-bm-toggle .mud-icon-root {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
}

/* The Layers and Bookmarks windows in one column under the buttons. The column itself lets clicks through to the map. */
.le-map-float-stack {
    position: absolute;
    top: 104px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
    z-index: 5;
}

.le-map-float-stack > .le-map-toc-float {
    pointer-events: auto;
    flex: 0 1 auto;
    min-height: 0;
}

.le-map-toc-float {
    position: relative;
    width: max-content;
    min-width: 300px;
    max-width: min(560px, calc(100% - 20px));
    max-height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.le-map-toc-float .le-map-toc-row-name {
    /* The window widens to fit a layer's name (up to its maximum width); a longer name wraps instead of being cut off. */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.le-map-toc-float > .le-map-toc {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.le-map-toc {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.le-map-toc-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* The Layers window's header icons: a little bigger, centred on the title's line and evenly spaced. */
.le-map-toc-header {
    align-items: center;
    gap: 2px;
}

.le-map-toc-header .mud-icon-button {
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.le-map-toc-header .mud-icon-button .mud-icon-root {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

/* The add button in the Bookmarks window: always orange and a little bigger than the header's other icons. */
.le-map-toc-header .le-bm-add.mud-icon-button,
.le-map-toc-header .le-bm-add .mud-icon-button {
    color: var(--mud-palette-primary);
}

.le-map-toc-header .le-bm-add.mud-icon-button .mud-icon-root,
.le-map-toc-header .le-bm-add .mud-icon-button .mud-icon-root {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.75rem;
}

/* The lock in the Bookmarks window sits at the far right of its header. */
.le-bm-lock {
    margin-left: auto;
}

/* Locked bookmarks: one line of pills along the bottom of the map (scrolls sideways when there are many). Hollow orange outline, like the map card pills. */
.le-bm-strip {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 340px);
    padding: 6px 10px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.le-bm-strip-icon {
    flex: 0 0 auto;
    color: var(--mud-palette-secondary);
}

.le-bm-strip-pills {
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.le-bm-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    cursor: pointer;
    padding: 3px 12px;
    font: inherit;
    font-size: 0.8125rem;
    border-radius: 16px;
    border: 1px solid var(--mud-palette-secondary);
    color: var(--mud-palette-secondary);
    background: #fff;
}

.le-bm-pill-active {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.le-bm-pill:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.le-toc-bm-menu {
    display: inline-flex;
    align-items: center;
}

/* The bookmark list, opened from the header icon. */
.le-toc-bm-popover {
    min-width: 300px;
    max-width: 420px;
}

.le-toc-bm-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 4px;
}

.le-map-toc-title {
    font-weight: 600;
    flex: 1 1 auto;
}

.le-map-toc-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* MapLayerToc's "This Record" section - the caller's own ad-hoc ExtraLayers (a record's shape, its legal/abstract
   area, deed plot...), simple name + switch rows above the real catalog tree. */
.le-toc-extra-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.le-toc-extra-title {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 4px;
}

.le-toc-extra-row .le-map-toc-row-name {
    margin-left: 4px;
}

.le-map-toc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.le-map-toc-row {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
}

/* The Bookmarks window (MapBookmarksPanel.razor). */
.le-bm-group {
    margin: 8px 0 2px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--mud-palette-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}

.le-bm-group:first-child {
    margin-top: 0;
}

.le-bm-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
}

.le-bm-row:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

.le-bm-icon {
    color: var(--mud-palette-secondary);
}

.le-bm-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
}

.le-bm-state {
    color: var(--mud-palette-text-secondary);
}

.le-map-toc-row-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.le-map-toc-swatch-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 8px;
}

.le-map-toc-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* The layer's swatch in the list (clickable - opens the style editor): a fixed box holding a shape that matches the
   layer's geometry - a filled square for polygons, a bar for lines, a dot for points. The shape is sized in percent so the
   same three classes serve the 22px list swatch and the 44px editor preview. */
.le-map-toc-row-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0 4px;
}

.le-map-toc-row-swatch-click {
    cursor: pointer;
}

/* The shape inside a swatch never takes the pointer itself, so the whole 22px box is the click target (a line is only a
   1-4px sliver, which otherwise made just that sliver behave differently from the box around it). */
.le-map-toc-row-swatch > * {
    pointer-events: none;
}

.le-map-toc-shape-polygon {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    box-sizing: border-box;
}

/* A point layer/category row set to PointShape "icon": the swatch is the real (possibly recolored) symbol instead of
   a plain CSS shape, sized to fill whatever box it's placed in (the 18px TOC swatch or the 16px legend row swatch). */
.le-map-toc-shape-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.le-toc-legend-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.le-map-toc-shape-line {
    width: 100%;
    height: 0;
}

.le-map-toc-shape-point {
    width: 60%;
    height: 60%;
    border-radius: 50%;
}

/* A categorized layer's swatch: up to 4 of its colours in a small grid (MapLayerToc.CategorySwatchGrid sets the columns/rows) instead of
   the usual one-shape swatch, so it reads as "several colours" at a glance. */
.le-toc-category-swatch {
    display: grid;
    gap: 1px;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
}

/* A categorized layer's expanded legend: the field name, then one row per value (its swatch + label), "Other" first. */
.le-toc-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.le-toc-legend-row .le-map-toc-shape {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Colour-by-number's swatch: a small bar of the real gradient, in the row (18px) and wider in the expanded legend. */
.le-toc-gradient-swatch {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.le-toc-gradient-swatch-wide {
    width: 100%;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--mud-palette-lines-default);
}

.le-toc-legend-field {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-top: 6px;
}

.le-map-toc-row {
    cursor: grab;
}

/* The layer style editor form (MapLayerToc.razor's "editing" view) - dense, sectioned, and each color field
   paired with its own live swatch so a colour reads as a colour, not a hex string to parse. */
.le-map-toc-style-form .mud-input-control,
.le-map-toc-style-form .mud-select {
    margin-bottom: 2px;
}

.le-map-toc-style-form .mud-slider {
    margin: 2px 0 10px;
}

.le-map-toc-style-form .mud-typography-caption {
    display: block;
    margin-top: 2px;
    margin-bottom: 2px;
    color: var(--mud-palette-text-secondary);
}

.le-map-toc-section {
    margin-top: 14px !important;
    padding-top: 10px;
    border-top: 1px solid var(--mud-palette-lines-default);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    color: var(--mud-palette-text-primary) !important;
}

.le-map-toc-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.le-map-toc-color-row .mud-input-control {
    flex: 1 1 auto;
}

.le-map-toc-field-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: 0 0 auto;
    border: 1px solid var(--mud-palette-lines-default);
}

/* The shape editor's tool buttons (Components/Shared/Map/MapEditDialog.razor): a vertical toolbar pinned to the
   map's right edge, vertically centred — the right side is otherwise empty (Layers is left, search is top-centre,
   so a top-centre toolbar collided with search once MapSurface got one everywhere). Grouped icon buttons
   (modify / draw / snap / reset) with dividers between groups, like a real GIS toolbar. */
.le-map-dialog-tools {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 5;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.le-map-toolbar-divider {
    width: 36px;
    margin: 4px 0;
    opacity: 0.4;
}

.le-map-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.le-map-tool-label {
    margin-top: -4px;
    margin-bottom: 2px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mud-palette-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.le-map-tool-label.le-map-tool-label-active {
    color: var(--mud-palette-primary);
}

.le-map-tool-btn {
    border-radius: 8px;
    padding: 8px;
}

.le-map-tool-btn .mud-icon-root {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 2.25rem;
}

/* The compact map card's Edit Shape button (MapView.razor, .le-map-expand-wrap): the default Medium icon glyph
   left too much white "paper" around it once the fullscreen button beside it was removed. The button itself
   (icon + its own padding) is pinned to its original ~34px footprint so only the glyph inside grows. */
.le-map-expand-wrap .mud-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
}

.le-map-expand-wrap .mud-icon-root {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.75rem;
}


/* Quick Search rows cut long text (Tract / Title Opinion short legal, Flag name/type/description) to one
   line with an ellipsis; hovering a row shows the full detail in a small popup (MudTooltip) beside it, so
   nothing on the page moves. */
.qs-popup-tooltip {
    max-width: 440px;
}

.qs-popup {
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: normal;
}

.qs-popup-title {
    font-weight: 700;
}

.qs-popup-sub {
    opacity: 0.85;
    margin-bottom: 2px;
}

/* Each Quick Search row now sits inside its own tooltip wrapper, so every row is technically the "last
   child" of its wrapper and the per-page `.quick-search-row:last-child { border-bottom: none }` rule would
   strip every divider. Restore the divider between rows here. */
.mud-tooltip-root > .quick-search-row {
    border-bottom: 1px solid var(--mud-palette-divider) !important;
}

/* Grouped filter card (State Well Search): a bordered card with a header bar, a row of titled filter
   groups, and a footer for the Search/Clear buttons. Not sticky like .le-sticky-header — it is tall. */
.filter-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: 0 4px 16px -8px rgba(26, 31, 43, 0.12);
    overflow: hidden;
    margin-bottom: .75rem;
}

.filter-card-body {
    padding: 12px 16px 4px;
}

/* A data-source card (state outline + "TX - RRC") to the left of a filter card's groups. */
.filter-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.filter-card-groups {
    flex: 1 1 auto;
    min-width: 0;
}

.state-source-card {
    flex: 0 0 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: rgba(232, 93, 0, 0.06);
}

.state-source-card .mud-icon-root {
    width: 64px;
    height: 64px;
    color: var(--mud-palette-primary);
}

.state-source-label {
    color: var(--mud-palette-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 959.95px) {
    .filter-card-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .state-source-card {
        flex-direction: row;
        justify-content: center;
    }

    .state-source-card .mud-icon-root {
        width: 40px;
        height: 40px;
    }
}

.filter-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: rgba(26, 31, 43, 0.025);
}

.filter-group-title {
    color: var(--mud-palette-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mud-palette-primary);
    padding-bottom: 2px;
    margin-bottom: 4px;
}

/* A text filter with its "begins with / contains" picker beside it. */
.filter-match-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.filter-match-row > .filter-match-text {
    flex: 1 1 auto;
    min-width: 0;
}

.filter-match-row > .filter-match-select {
    flex: 0 0 118px;
}

/* A titled info card: header bar (.section-header-bar) over a body of .detail-field rows. Same border, radius and
   shadow as .filter-card, but stretches to the height of its grid row so cards side by side line up. */
.info-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: 0 4px 16px -8px rgba(26, 31, 43, 0.12);
    overflow: hidden;
    height: 100%;
}

.info-card-body {
    padding: 6px 12px 10px;
}

.info-card-subtitle {
    color: var(--mud-palette-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mud-palette-primary);
    padding-bottom: 2px;
    margin: 10px 0 4px;
}

/* Key facts strip across the top of a permit detail: label over value, wrapping. */
.permit-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 28px;
    padding: 8px 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: rgba(232, 93, 0, 0.06);
}

.permit-summary-item {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.permit-summary-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.permit-summary-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* The "Source" link at the left of the strip — the agency's mark, linking to the page the data came from. */
.permit-source {
    align-self: stretch;
    justify-content: center;
    text-decoration: none;
    padding-right: 20px;
    border-right: 1px solid var(--mud-palette-lines-default);
}

.permit-import {
    margin-left: auto;
    justify-content: center;
}

.permit-source-logo {
    height: 26px;
    width: auto;
}

.permit-source:hover .permit-source-logo {
    opacity: 0.85;
}

/* A MapView embedded in a page or tab (not the full-screen dialog): gives the floating Map/Aerial toggle
   (.le-map-dialog-toggle) something to be positioned against. */
.le-map-embed {
    position: relative;
}

/* A results row you can click to open its detail. */
.result-row-clickable {
    cursor: pointer;
}

/* Hover label on a MapView feature (MapLayerConfig.TooltipField). Layers that also set ClickableProperty get this
   swapped to .le-map-tooltip-inactive (mapInterop.js) when the hovered feature isn't clickable - e.g. a county with
   no search capability - so the label itself signals "not available", not just the cursor. Layers with no
   ClickableProperty always keep the default navy below. */
.le-map-tooltip {
    background: rgba(0, 0, 128, 0.92);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.le-map-tooltip-inactive {
    background: rgba(97, 97, 97, 0.92);
}

/* Result grids that grow with their rows up to a cap, with the header pinned while scrolling. */
.results-table .mud-table-container {
    max-height: 62vh;
    overflow: auto;
}

/* A file that could not be imported, in the Import Well result list. */
.doc-import-failed {
    color: var(--mud-palette-error);
}

/* The intersect dialogs (Unit Detail > Well Intersect, Well Detail > Unit Intersect) share one look: a card per well with its tags, stats and
   Link as buttons, and an allocation editor of one line per unit. */
.ix-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.wi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding-right: 4px;
}

.wi-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 6px 10px 8px;
    background: var(--mud-palette-surface);
    font-size: 0.8125rem;
}

/* A well ticked for Apply stands out from the ones that are not. */
/* The unit's own current shape, in a review list of Enverus candidates: the same left-border-accent
   "grouped sub-record" card language as .ll-search-panel etc., recolored navy so it visually outranks
   the plain orange candidate cards below it. */
.wi-card-current {
    border-left: 4px solid #000080 !important;
    background: rgba(0, 0, 128, 0.04);
}

.wi-card-selected {
    border-color: #000080;
    background: rgba(0, 0, 128, 0.04);
}

.wi-card:hover,
.wi-card-active {
    border-color: var(--mud-palette-secondary);
    box-shadow: 0 0 0 1px var(--mud-palette-secondary);
}

.wi-head {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wi-tags,
.wi-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-left: 34px;
}

.wi-stats {
    margin-top: 2px;
}

.wi-likely-text {
    color: #ff8c00;
    font-weight: 700;
}

.wi-tag {
    font-weight: 600;
}

.wi-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0 34px;
}

.wi-alloc {
    margin: 8px 0 0 34px;
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 4px;
}

.wi-alloc-line {
    display: grid;
    grid-template-columns: 30px 22px minmax(90px, 1fr) 80px 90px 130px;
    align-items: center;
    gap: 6px;
    padding: 1px 4px;
    border-left: 3px solid transparent;
}

.wi-alloc-line:hover {
    background: var(--mud-palette-action-default-hover);
}

.wi-alloc-current {
    border-left-color: #000080;
    background: rgba(0, 0, 128, 0.07);
    font-weight: 700;
}

.wi-alloc-ft {
    text-align: right;
}

.wi-alloc-was {
    text-align: right;
}

.wi-swatch {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.wi-swatch-current {
    border: 2px dashed #000080;
}

.wi-swatch-other {
    border: 2px solid #78909c;
    background: rgba(144, 164, 174, 0.35);
}

.wi-alloc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 0 58px;
}

/* On Well Detail's dialog the card has no apply checkbox, so its lines start at the card's own left edge. */
.wi-card-flush .wi-tags,
.wi-card-flush .wi-stats,
.wi-card-flush .wi-link,
.wi-card-flush .wi-alloc {
    margin-left: 0;
}

.wi-card-flush .wi-alloc-total {
    padding-left: 4px;
}

.wi-alloc-name {
    min-width: 0;
}

/* The small Called / Calc / Delta line above an intersect review table. */
.ix-footnote {
    margin-bottom: 6px;
    padding: 0 4px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

/* Project Configuration > Spatial Analysis: a setting's name with its info icon above its number box. */
.ss-field-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.ss-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mud-palette-secondary);
}

.ss-info {
    cursor: help;
}

/* A settings card: a blue banner with the centered white title, the settings in the body, the Save button in the footer. */
.ss-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
}

.ss-card-header {
    padding: 6px 14px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--mud-palette-secondary);
}

.ss-card-body {
    flex: 1;
    padding: 12px 14px;
}

.ss-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Fixed layout for the shared Lease and Mineral Interest grids. MudSimpleTable puts the class on an outer div, and
   table-layout only works on the <table> itself, so it is set here (global, not in the grids' scoped CSS). Columns
   with a width keep it; the ones without (Lessor/Lessee) take the rest and truncate. */
.lease-table-card > .mud-table-container > table {
    table-layout: fixed;
    width: 100%;
    min-width: 1400px;
}

.mig-table > .mud-table-container > table {
    table-layout: fixed;
    width: 100%;
}

/* A row action icon (e.g. a layer's map quick-view) that only shows up while the pointer is over its row, so it
   doesn't clutter a dense table when not needed. Used by AdminMapLayers and ArcGisScanDialog. */
.le-row-reveal {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

tr:hover .le-row-reveal {
    opacity: 1;
}

/* The layer editor's Scale tab (MapLayerToc.razor): two tall sliders - MudBlazor's own horizontal MudSlider turned upright by the
   wrapper, minimum at the bottom - beside a column of reference labels lined up with the same scale. */
.le-scale-heads {
    display: flex;
    justify-content: flex-start;
    padding-left: 72px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--mud-palette-text-primary);
}

.le-scale-heads span {
    width: 56px;
    text-align: center;
}

.le-scale-heads .le-scale-heads-gap {
    width: 14px;
}

/* The icon toolbar that switches the layer editor between its property panels. */
.le-map-toc-tools {
    display: flex;
    gap: 4px;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* The band between the two scale sliders: the stretch of zoom levels the layer is drawn at. */
.le-scale-window {
    position: relative;
    flex: 0 0 14px;
    height: 100%;
}

.le-scale-window-fill {
    position: absolute;
    left: 2px;
    right: 2px;
    background: var(--mud-palette-primary);
    border-radius: 3px;
}

.le-scale-body {
    display: flex;
    height: var(--le-scale-h);
    margin: 8px 0;
}

.le-scale-ticks {
    position: relative;
    flex: 0 0 130px;
}

/* In a narrow card the whole scale (distances, sliders, names) sits in the middle, and the readout under it is one centred line. */
.le-scale-stacked .le-scale-body {
    justify-content: center;
}

.le-scale-stacked .le-scale-heads {
    justify-content: center;
    padding-left: 72px;
    padding-right: 130px;
}

.le-scale-readout {
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}

/* The small orange "use current" under Farthest and under Closest. */
.le-scale-actions {
    font-weight: 400;
}

.le-scale-actions span {
    overflow: visible;
    display: flex;
    justify-content: center;
}

.le-scale-use.mud-button-root {
    flex: 0 0 auto;
    width: max-content;
    overflow: visible;
    white-space: nowrap;
    min-width: 0;
    padding: 0 2px;
    font-size: 0.68rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

/* The distances, left of the sliders: right-aligned, each with its tick line on the slider side. */
.le-scale-ticks-left {
    position: relative;
    flex: 0 0 72px;
}

.le-scale-ticks-left .le-scale-tick {
    left: auto;
    right: 4px;
}

.le-scale-ticks-left .le-scale-tick::before {
    display: none;
}

.le-scale-ticks-left .le-scale-tick::after {
    content: "";
    display: inline-block;
    width: 8px;
    border-top: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
    margin-left: 4px;
}

.le-scale-tick {
    position: absolute;
    left: 8px;
    transform: translateY(50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
}

.le-scale-tick::before {
    content: "";
    display: inline-block;
    width: 8px;
    border-top: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
    margin-right: 4px;
}

.le-scale-track {
    position: relative;
    flex: 0 0 56px;
    height: 100%;
}

.le-scale-rot {
    position: absolute;
    left: 6px;
    top: 100%;
    width: var(--le-scale-h);
    height: 40px;
    display: flex;
    align-items: center;
    transform-origin: 0 0;
    transform: rotate(-90deg);
}

/* The layer tree in the Saved Map viewer's Layers window (MapLayerToc.razor): rows are dragged onto each other. The drop line or
   highlight is drawn by leToc (mapInterop.js) while a row is dragged over another. */
.le-toc-tree {
    display: flex;
    flex-direction: column;
}

.le-toc-tree .le-toc-dragging {
    opacity: 0.4;
}

.le-toc-tree .le-toc-drop-before {
    box-shadow: inset 0 2px 0 0 var(--mud-palette-primary);
}

.le-toc-tree .le-toc-drop-after {
    box-shadow: inset 0 -2px 0 0 var(--mud-palette-primary);
}

.le-toc-tree .le-toc-drop-into {
    background: rgba(232, 93, 0, 0.18);
    box-shadow: inset 0 0 0 1px var(--mud-palette-primary);
}

.le-toc-end {
    height: 26px;
    cursor: default;
}

.le-toc-group-name {
    font-weight: 600;
}

/* The click popup panel (MapPopupPanel.razor): a card over the right of the map. Docked = top right, as tall as its content; dragged by its
   header it floats (mapInterop.js lePopup sets the size and place). */
.le-popup {
    position: absolute;
    z-index: 8;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: calc(100% - 20px);
    background: #fff;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.le-popup:not([data-mode]),
.le-popup[data-mode="docked"] {
    top: 10px;
    right: 10px;
    max-height: calc(100% - 20px);
}

.le-popup:not([data-mode]) {
    width: 380px;
}

.le-popup-header {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px 2px 6px;
    cursor: move;
    touch-action: none;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px 8px 0 0;
    background: color-mix(in srgb, var(--mud-palette-secondary) 10%, #fff);
    color: var(--mud-palette-secondary);
}

.le-popup-count {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.le-popup-layer {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}

.le-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 8px 12px;
}

.le-popup-title {
    font-weight: 700;
    color: var(--mud-palette-secondary);
    margin-bottom: 4px;
}

.le-popup-text {
    white-space: pre-line;
}

/* The list view's search box - only shown once there are enough features to be worth filtering. */
.le-popup-search {
    margin-bottom: 4px;
}

.le-popup-search .mud-input {
    font-size: 0.85rem;
}

/* The list view: features grouped under their layer, each a card with its title and a few lines. */
.le-popup-section {
    margin: 12px 0 0;
    background: rgba(238, 240, 248, 0.9);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding-bottom: 4px;
}

.le-popup-section:first-child {
    margin-top: 0;
}

.le-popup-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 12px;
    background: rgba(0, 0, 128, 0.12);
    border-bottom: 2px solid rgba(0, 0, 128, 0.35);
    border-radius: 7px 7px 0 0;
}

.le-popup-group-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}

.le-popup-group-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--mud-palette-secondary);
    border-radius: 10px;
    padding: 0 7px;
}

.le-popup-section .le-popup-card {
    margin: 6px 8px;
}

.le-popup-card {
    margin: 4px 0;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 4px solid var(--mud-palette-secondary);
    border-radius: 6px;
    background: #fff;
}

.le-popup-card-active {
    border-left-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, #fff);
}

/* A feature's full detail popped out beside the list (MudPopover, so it lives outside the panel). */
.le-popup-pop {
    width: 400px;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 10px;
}

/* Same card look it was opened from, just full-size - a blue accent (not the list card's orange) since this is
   the record's own full detail, not another selectable card. */
.le-popup-pop-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 6px 10px 14px;
    background: color-mix(in srgb, var(--mud-palette-secondary) 10%, #fff);
    border-left: 4px solid var(--mud-palette-secondary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.le-popup-pop-heads {
    flex: 1 1 auto;
    min-width: 0;
}

.le-popup-pop-title {
    margin-top: 1px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mud-palette-secondary);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.le-popup-pop-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 4px 6px 8px;
}

.le-popup-card:hover {
    border-left-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, #fff);
}

.le-popup-card-title {
    font-weight: 700;
    color: var(--mud-palette-secondary);
    overflow-wrap: anywhere;
}

/* The Link field icon (map layer Popup tab) next to a popup's title - list card, popped-out detail, and the single-feature detail view
   all share it. Opens the configured field's URL in a new tab. */
.le-popup-link-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--mud-palette-primary);
    cursor: pointer;
}

.le-popup-link-icon:hover {
    color: var(--mud-palette-secondary);
}

.le-popup-link-icon .mud-icon-root {
    display: block;
}

/* Supplemental links (2026-10-14): as many named/described links as a layer's data allows, appended under their
   own heading at the bottom of the single-feature popup detail - distinct from the one quick Link icon next to
   the title above, which stays an icon regardless of how many of these are configured. */
.le-popup-supplemental-links {
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 8px;
}

.le-popup-supplemental-link {
    color: var(--mud-palette-primary);
    font-weight: 600;
    text-decoration: none;
}

.le-popup-supplemental-link:hover {
    text-decoration: underline;
}

.le-popup-table td {
    padding: 4px 10px;
    font-size: 0.82rem;
    vertical-align: top;
    word-break: break-word;
    border-bottom: 0;
}

/* Small color dot tying a row (a well, a monthly production row) back to the lease it belongs to - same
   color as that lease's line on the Texas permit Production tab's "All Leases" chart (ChartPalette.Bar). */
.le-lease-swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.le-popup-table tr:nth-child(even) td {
    background: color-mix(in srgb, var(--mud-palette-secondary) 5%, transparent);
}

.le-popup-table td:first-child {
    width: 38%;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.le-popup-table td:last-child {
    font-weight: 500;
    color: var(--mud-palette-secondary);
}

.le-popup-resize-w {
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 2;
}

.le-popup-resize-se {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 2;
}

.le-popup[data-mode="floating"] .le-popup-resize-se {
    display: block;
}

/* The hover popup (mapInterop.js wireHover) and the same card as previewed in a layer's Hover tab. */
.le-map-hover {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    max-width: 320px;
    background: #fff;
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    font-size: 0.8rem;
}

.le-map-hover .le-map-hover-text {
    white-space: pre-line;
}

.le-map-hover .le-map-hover-text + .le-map-hover-text {
    border-top: 1px dashed var(--mud-palette-lines-default);
    margin-top: 4px;
    padding-top: 4px;
}

.le-map-hover .le-map-hover-title {
    font-weight: 700;
    color: var(--mud-palette-secondary);
    margin-bottom: 2px;
}

.le-map-hover .le-map-hover-section + .le-map-hover-section {
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-top: 4px;
    padding-top: 4px;
}

.le-map-hover.le-hover-preview {
    position: static;
    display: inline-block;
}

/* A layer on the map that is not being shown (removed from the catalog, deactivated, no access, not answering): greyed, with a warning icon and the reason. */
.le-toc-tree .le-toc-unavailable .le-map-toc-row-name,
.le-toc-tree .le-toc-unavailable .le-map-toc-row-swatch {
    opacity: 0.5;
}

/* A layer that's configured fine but isn't drawing from the current view (outside its own draw range) — lighter than
   .le-toc-unavailable (that's a real problem; this is just "zoom to see it"), and the row stays fully usable. */
.le-toc-tree .le-toc-out-of-range .le-map-toc-row-name,
.le-toc-tree .le-toc-out-of-range .le-map-toc-row-swatch {
    opacity: 0.65;
}

.le-toc-tree .le-toc-name-removed {
    text-decoration: line-through;
    color: var(--mud-palette-error);
}

.le-toc-issue-icon {
    flex: 0 0 auto;
    margin: 0 2px;
}

/* The "not rendering at this zoom" eye icon's anchor, left of the visibility checkbox - zero width, so it never
   pushes the checkbox (or anything after it) over, whether or not the icon inside is actually shown. The icon itself
   is positioned off to the left of this point, into the row's existing indent gutter, not reserved flex space. */
.le-toc-range-slot {
    flex: 0 0 auto;
    position: relative;
    width: 0;
}

/* A passive status note, not an action, so it stays light grey and separate from the row's actionable icons
   (zoom, filter, popup, hover, labels), which are orange. */
.le-toc-range-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mud-palette-text-disabled);
}

/* Rows inside a group that is switched off (checkboxes too) go faint. */
.le-toc-tree .le-toc-off {
    opacity: 0.35;
}

/* Orange pointer beside a layer's menu while its hover popup is on, next to the "abc" for labels. */
.le-toc-hover-on {
    color: var(--mud-palette-primary);
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    margin: 0 2px;
}

/* The little orange marks on a layer row are buttons for whoever may edit the map: click one to switch that off. */
.le-toc-ind.mud-icon-button {
    padding: 2px;
    color: var(--mud-palette-primary);
}

.le-toc-ind.mud-icon-button:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.le-toc-ind .mud-icon-root {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.le-toc-abc-click {
    cursor: pointer;
    border-radius: 4px;
    padding: 0 3px;
}

.le-toc-abc-click:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

/* A layer with its actions locked: the marks stay but are dimmed and cannot be clicked. */
.le-toc-locked {
    opacity: 0.4;
    cursor: default;
}

/* Orange "abc" beside a layer's menu while its labels are on. */
.le-toc-abc {
    color: var(--mud-palette-primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0 2px;
}

/* The map-service (cloud) icon is a light blue so it does not call attention to itself. */
.le-toc-cloud {
    color: color-mix(in srgb, var(--mud-palette-secondary) 45%, white);
}

/* The Layers window's header icons (map, new group, add layer): navy, orange on hover. */
.le-map-toc-header .mud-icon-button {
    color: var(--mud-palette-secondary);
}

.le-map-toc-header .mud-icon-button:hover {
    color: var(--mud-palette-primary);
    background-color: transparent;
}

/* Groups and what is inside them read as a block: the group row has a soft tint that deepens with each level, and the layers inside
   have a fainter one. */
.le-toc-tree .le-toc-group-row {
    background: color-mix(in srgb, var(--mud-palette-secondary) calc(14% + var(--toc-depth, 0) * 4%), transparent);
    border-radius: 4px;
}

.le-toc-tree .le-toc-in-group {
    background: color-mix(in srgb, var(--mud-palette-secondary) calc(6% + var(--toc-depth, 1) * 2%), transparent);
    border-radius: 4px;
}

/* The preview in a group's Appearance tab: a header row and a row inside it, coloured as they will be in the Layers window. */
.le-group-preview {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: 4px;
}

.le-group-preview-row {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 2px 8px;
    border-radius: 4px;
}

.le-group-preview-bar {
    width: 40%;
    height: 8px;
    border-radius: 4px;
    background: var(--mud-palette-lines-inputs);
}

/* The style cards in the layer settings dialog (MapLayerSettingsDialog.razor). */
.le-style-card {
    background: color-mix(in srgb, var(--mud-palette-secondary) 4%, #ffffff);
}

/* The Labels tab's Label text box (MapLayerSettingsDialog.razor): fills whatever height its paper has instead of
   staying a fixed 6 lines tall, which left a lot of dead space below it once the paper grew to match its taller
   sibling (Fields). Two stylesheet-only attempts at this (percentage heights through the nested divs MudTextField
   renders, then a flex:1 1 auto chain) both failed - the actual height is set directly by leMap.fillTextareaHeight
   (mapInterop.js, called from OnAfterRenderAsync) instead, since a real inline style always wins over an external
   stylesheet rule that has no !important of its own. This class just lets .mud-input-control stretch to fill this
   wrapping div in the first place (MudBlazor already sets flex:1 1 auto on it by default, for exactly this).  */
.le-fill-textarea {
    height: 100%;
}

.le-fill-textarea textarea.mud-input-root {
    resize: none;
}

.le-style-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
    margin-bottom: 8px;
}

/* MudMenu's wrapper shrinks to fit its content, which left the swatch (width: 100%) with no width at all - make the wrapper and its
   activator fill the card. */
.le-swatch-menu,
.le-swatch-menu > div {
    display: block;
    width: 100%;
}

/* The small swatch (ColorSwatchPicker Compact): just the colour, no room taken. */
.le-swatch-menu.le-swatch-compact,
.le-swatch-menu.le-swatch-compact > div {
    display: inline-block;
    width: auto;
}

.le-swatch-compact .le-swatch-box {
    min-width: 0;
    width: 44px;
    height: 28px;
    border-radius: 6px;
}

/* ColorSwatchPicker's popover (the MudColorPicker popup): a minimum width only, not a fixed one - an earlier fixed
   260px clipped MudColorPicker's own content (it needs more; the hex input row forced a horizontal scrollbar to
   appear instead of the picker just being wide enough). min-width still stops the popover being noticeably
   narrower when opened from a small compact swatch than from a big one, without ever constraining it smaller than
   MudColorPicker actually needs. */
.le-swatch-popover {
    min-width: 300px;
}

/* MudColorPicker's own "HEX" caption under the hex input - redundant once the field itself reads "HEX" via its
   placeholder/the box right above it already says what it's for. */
.le-swatch-popover .mud-picker-color-inputfield .mud-input-label {
    display: none;
}

/* The app's own orange/blue quick-pick dots, above the picker. */
.le-swatch-quick {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.le-swatch-quick-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--mud-palette-lines-default);
}

.le-swatch-quick-dot:hover {
    box-shadow: 0 0 0 2px var(--mud-palette-primary);
}

/* A big swatch that opens a colour picker (ColorSwatchPicker.razor) and shows what the colour looks like on the map. */
.le-swatch-box {
    min-width: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.le-swatch-box:hover {
    border-color: var(--mud-palette-primary);
}

/* A gradient stop's swatch (MapLayerSettingsDialog) draws the real accurate shape (le-category-row-swatch, same as
   a category row's) instead of a flat colour filling the box - that shape is smaller than the 44x28 box, so the
   box's own border/hover ring showed around it as a stray faint outline and orange hover ring the category rows
   don't have (they have no ColorSwatchPicker wrapper at all). Still fully clickable (cursor:pointer, above) - just
   no box chrome of its own behind the shape. */
.le-swatch-box:has(.le-category-row-swatch) {
    border-color: transparent;
}

.le-swatch-box:has(.le-category-row-swatch):hover {
    border-color: transparent;
}

.le-swatch-checker {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #d9d9d9 25%, transparent 25%, transparent 75%, #d9d9d9 75%),
                      linear-gradient(45deg, #d9d9d9 25%, transparent 25%, transparent 75%, #d9d9d9 75%);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
}

.le-swatch-color {
    position: absolute;
    inset: 0;
}

.le-swatch-line {
    width: 80%;
    height: 0;
}

.le-swatch-dot {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* A template that is hidden for this project or client: dimmed, but still clickable so it can be shown again. */
.le-template-hidden {
    opacity: 0.6;
}

/* A menu row that is a switch (a layer's Labels / Popup / Hover in its menu): the row is the click target, the switch only shows the state. */
.le-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 150px;
}

.le-menu-switch {
    pointer-events: none;
    margin: 0 -8px 0 0;
}

/* A destructive item in a menu (Remove layer / Remove group): red, set apart by a divider above it. */
.le-menu-danger,
.le-menu-danger .mud-icon-root {
    color: var(--mud-palette-error);
}

.le-swatch-svg {
    display: block;
}

/* A style card section that is switched off (the Fill / Outline switch): dimmed and not clickable, its values kept for when it is back on. */
.le-card-off {
    opacity: 0.45;
    pointer-events: none;
}

/* The single-symbol style card (MapLayerSettingsDialog.razor, Symbology tab): Fill/Fill Pattern/Outline/Points used
   to be 4 separate MudPaper boxes of mismatched height, each inventing its own swatch look (a blocky checkered
   square for Fill, a thin SVG line for Outline/hatch, impossible to read as a colour). They're one card now, each
   section separated by a rule instead of a card boundary so they read as one coherent control, not four misaligned
   ones; every section's swatch is the same full ColorSwatchPicker (.le-swatch-box - already bordered and
   hover-highlighted) showing a plain solid colour, with its own label so it's unambiguous what clicking it changes. */
.le-style-swatch-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.le-style-inline-select {
    flex: 1 1 160px;
}

/* Pixel/degree value fields (width, spacing, rotation, dash length/gap) laid out as compact numeric steppers side
   by side, instead of a full-width slider each - these are exact values someone is setting to a specific number,
   not something that benefits from drag-to-feel the way Transparency's 0-100% blend does. */
.le-style-field-row {
    display: flex;
    gap: 10px;
}

.le-style-field-row .mud-input-control {
    flex: 1 1 0;
    min-width: 0;
}

/* The Labels tab (MapLayerSettingsDialog.razor): the chips that add a field to the label, and the preview of the label as it will look. */
.le-label-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 96px;
    overflow-y: auto;
    padding: 4px 0;
}

/* The Labels tab's text settings: three aligned columns (a select or switch, a slider, the small extras), one setting per row. */
.le-label-grid {
    display: grid;
    grid-template-columns: 200px 220px 1fr;
    gap: 6px 28px;
    align-items: center;
}

/* The Labels tab's text settings: the font, then halo / bold / italic / colour on one line, then the sliders side by side. */
.le-label-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-label-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
}

/* A thin orange rule separating Preview/Font/Halo within the Labels tab's Preview card (MapLayerSettingsDialog.razor) -
   three sections sharing one card read better with a visible break between them than margin alone. */
.le-section-divider {
    height: 2px;
    background: var(--mud-palette-primary);
    opacity: 0.5;
}

/* The Labels tab's Font dropdown (MapLayerSettingsDialog.razor): the popover otherwise matches the select box's own
   width, which wrapped "Times New Roman" onto two lines once that box was widened to fill its row rather than kept
   at a fixed width - letting the popover size to its own content instead. */
.le-font-select-popover {
    width: max-content;
    min-width: 180px;
}

/* The Labels tab's position picker (MapLayerSettingsDialog.razor): a plus-shaped 3x3 grid, only the center and the
   four edges populated (the corners stay empty divs, just to hold the grid shape) - replaces the old Label
   position/Point label position dropdown with something that reads at a glance instead of a text list of five
   compass-ish words. */
.le-position-picker {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
    gap: 4px;
}

.le-label-swatches .le-swatch-menu.le-swatch-compact,
.le-label-swatches .le-swatch-menu.le-swatch-compact > div {
    display: inline-block;
    width: 56px;
    flex: 0 0 auto;
}

.le-label-swatches .le-swatch-compact .le-swatch-box {
    width: 56px;
    height: 30px;
}

/* The older two-column form of it, no longer used by the Labels tab. */
/* The Labels tab's text settings in two columns: font, halo and the sliders on the left, bold / italic and the colour on the right. */
.le-label-cols {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 12px 24px;
    align-items: start;
}

.le-label-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* The list of fields to click into the label: as tall as it needs, then it scrolls. */
.le-label-fields.le-label-fields-tall {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.le-label-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* A colour swatch that fills what is left of its cell. */
.le-label-fill {
    flex: 1 1 auto;
    min-width: 0;
}

.le-label-inline .le-swatch-menu.le-swatch-compact,
.le-label-inline .le-swatch-menu.le-swatch-compact > div {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.le-label-inline .le-swatch-compact .le-swatch-box {
    width: 100%;
    height: 32px;
}

/* The field list beside the label / hover text box: a narrow column that scrolls. */
/* One row of the Filter tab: field, test, value(s), remove. */
.le-filter-row {
    display: grid;
    grid-template-columns: 220px 150px 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.le-filter-value {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.le-filter-value > * {
    flex: 1 1 0;
    min-width: 0;
}

/* A checklist item's checkbox with something beside it (ExportItemMarker, the export items' filter icon and count). */
.le-check-row {
    display: flex;
    align-items: center;
    min-width: 0;
}

.le-check-row > .mud-input-control-boolean-input {
    flex: 0 1 auto;
    min-width: 0;
}

.le-export-marker-count {
    margin-left: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

/* One item in an export source's items dialog (ExportItemsDialog): the same tinted header band and navy left edge as the checklist groups behind it
   (.le-group-header / .le-group-body), with the name and the item's filter inside. */
.le-export-item {
    margin-bottom: 14px;
}

.le-export-item-header {
    padding: 6px 12px;
    margin-top: 0;
}

.le-export-item-header .le-group-header-count {
    display: flex;
    align-items: center;
}

.le-export-item-body {
    padding: 14px 16px 12px;
    margin-bottom: 0;
    background: rgba(0, 0, 128, 0.035);
}

.le-export-item-filter {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 128, 0.15);
}

/* The filter editor inside an export item: each condition is its own white row, the editor's own title stays small-caps navy. */
.le-filter-compact .le-filter-row {
    background: #fff;
    border: 1px solid rgba(0, 0, 128, 0.18);
    border-radius: 6px;
    padding: 8px 10px;
}

/* "Add another": an empty dashed placeholder where the next item goes. */
.le-export-add {
    width: 100%;
    border-style: dashed !important;
    padding: 8px 0;
}
/* The Symbology tab's Categories rows: a swatch, the value, remove. Grows with the list - the dialog itself scrolls,
   so a second, inner scrollbar here was redundant (and kicked in well before the list was actually long). */
.le-category-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.le-category-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The real, pattern-accurate shape at the start of a category row (and the "Other" bucket row) - what used to be a
   separate read-only "Legend" list below the rows is gone; this is that same accurate rendering (ShapeClass/
   ShapeStyle, the same helpers MapLayerToc's own legend uses), moved inline next to the row it describes instead of
   duplicated in a second list. Not clickable - the row's Tune button is the only way to change its look (it opens
   CategorySymbologyDialog, which has the real colour swatch). Bigger than the old flat 20px indicator since this
   one has to actually show hatch/stipple texture, not just a flat colour. */
.le-category-row-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

/* Clicking the swatch itself opens the category's Fill/Outline/Points popup - replaces the separate Tune icon
   button that used to sit beside it (user call, 2026-10-13: "make the swatch clickable and remove the icon"). */
.le-category-row-swatch-clickable {
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 120ms;
}

.le-category-row-swatch-clickable:hover {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.le-category-row > .mud-autocomplete {
    max-width: 320px;
}

/* The Symbology tab's Categories legend: a plain read-only chart of swatch + value, "Other" first, below the editable rows. */
.le-category-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.le-category-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.le-category-legend-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* The raw values folded into a named group, shown quietly next to its legend label. */
.le-category-legend-group {
    margin-left: 4px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
}

/* Colour-by-number's legend: a continuous bar (the real CSS gradient, positioned by each stop's actual value) with the low/high values below it. */
.le-gradient-bar {
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-lines-default);
    max-width: 320px;
}

.le-gradient-bar-labels {
    display: flex;
    justify-content: space-between;
    max-width: 320px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

.le-category-row-wrap {
    display: flex;
    flex-direction: column;
}

.le-category-row-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 2px 0 6px 44px;
    padding: 8px 12px;
    background: var(--mud-palette-background-grey);
    border-radius: 6px;
}

/* The Categories tab's catch-all "Other / everything else" controls (Show, Custom style, swatch, Tune) - a real
   fieldset/legend so the group's own label sits notched into the top border line, the same look an Outlined
   field's floating label has, instead of loose buttons floating beside the Field input above. */
.le-category-other-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px 8px;
    background: var(--mud-palette-background-grey);
    border: 1px solid var(--mud-palette-primary);
    border-radius: 6px;
    min-width: 0;
}

/* MudBlazor's .mud-input-control always carries flex:1 1 auto (the same rule .quick-search-card suppresses above) -
   without this the Label field stretches to fill the row, shoving Show/Custom style/swatch/Tune out to the far
   right instead of hugging it. */
.le-category-other-group .mud-input-control {
    flex: none;
}

/* .le-category-row-extra's 44px left margin lines it up under a normal row's own swatch - the "Other" fieldset
   has no leading swatch in its first line, so that indent would just look like a stray gap here. */
.le-category-other-group .le-category-row-extra {
    margin-left: 0;
}

.le-category-other-group-legend {
    padding: 0 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mud-palette-primary);
}

.le-category-extra-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.le-category-extra-slider {
    width: 100px;
}

/* A sub-group of several .le-category-extra-field pairs (the Fill Pattern block) that needs to break onto its own
   line within the row's extra panel instead of being crammed onto the same line as Fill transparency/Outline - a
   dashed top rule separates it from whatever sits above it. Its own fields still wrap left-to-right like the rest
   of the panel (flex-direction: column here was the bug - it forced one field per line with blank space to the
   right instead of letting them flow and fill the available width). */
.le-category-extra-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    flex: 1 1 100%;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed var(--mud-palette-lines-default);
}

.le-category-extra-section .mud-select {
    width: 180px;
    flex: none;
}

/* Labels tab > the Base label / per-category toggle strip. One editor (Label text/Fields/settings/preview, all
   below) is retargeted by whichever chip is selected - there is no separate copy of the editor per category, so
   this is the only "Label by Category" UI: a row of chips, not a list that pushes the page down. A category chip
   gets a filled dot suffix (●) once HasLabelOverride is true for it, so you can tell at a glance which categories
   already have a customized label without opening each one. */
.le-label-target-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.le-label-target-caption {
    color: var(--mud-palette-text-secondary);
    margin-right: 2px;
}

/* The dot a category chip shows when it has its own label override - always orange, regardless of the chip's own
   selected/unselected text color, so it reads as a status marker rather than blending into the chip label. */
.le-label-override-dot {
    color: var(--mud-palette-primary) !important;
    font-weight: 700;
}

/* A category chip's own symbology color, so the chip reads as "this is the orange one" at a glance instead of
   every chip looking the same until clicked - the whole reason this screen is easy to pick the wrong category on.
   The chip's own left border, not a nested swatch span - MudChip's internal content layout (Size.Small's compact
   flex row) kept collapsing a nested swatch down to a sliver (border only, no width) regardless of explicit
   sizing/flex-shrink, so the color lives on the chip element itself instead of fighting that layout. The actual
   color comes from the Style attribute per chip (border-left-color), this rule is just the width/style. */
.le-label-target-chip {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.le-label-fields.le-label-fields-side {
    flex: 0 0 280px;
    align-content: flex-start;
    max-height: 92px;
    padding: 0;
}

/* The field list beside a text box in a layer's settings: tall, so a long list is mostly visible without scrolling. */
.le-label-fields.le-label-fields-roomy {
    flex: 0 0 300px;
    align-content: flex-start;
    max-height: 56vh;
    padding: 0;
}

/* The Labels tab's one live preview (MapLayerSettingsDialog.razor): for a point/polygon/unknown layer, a dot stands
   in for the marker/shape and the label is positioned around it exactly as OffsetPreviewLabelStyle computes it, so
   the placement/offset controls have a visible result instead of a bare pixel number; for a line layer (no
   placement setting) it just centers the resolved text. position:relative so .le-point-offset-dot/-label (absolute)
   anchor to this box and not to some ancestor further up the dialog. */
.le-label-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 8px;
    background: #f3f0e8;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}

.le-point-offset-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    transform: translate(-50%, -50%);
}

.le-point-offset-label {
    position: absolute;
    white-space: nowrap;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    pointer-events: none;
}

/* MapSymbolPickerDialog's icon grid: a plain click-to-select tile per symbol, matching the Add Layer/Insert Package
   dialog's own checkbox-style click highlight convention. */
.le-symbol-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.le-symbol-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.le-symbol-picker-item:hover {
    border-color: var(--mud-palette-primary);
}

.le-symbol-picker-item img {
    width: 32px;
    height: 32px;
}

.le-symbol-picker-item span {
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.le-symbol-picker-selected {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
}

/* The Fill Pattern card's live preview canvas (MapLayerSettingsDialog.razor, leMap.previewHatch). Sized by its own
   width/height attributes (240x100), not stretched by CSS, so the pattern tile never renders distorted. */
/* The single-symbol style card's one live preview (MapLayerSettingsDialog.razor): combined Fill+Pattern+Outline,
   drawn first in the card so it is the card's focal point, not something found after scrolling past several
   sliders - every Fill/Pattern/Outline control below redraws it on the same render (OnAfterRenderAsync), so its
   effect is immediate instead of requiring the sliders to be understood in the abstract. */
.le-hatch-preview {
    display: block;
    flex: none;
    width: 70px;
    height: 70px;
    background: transparent;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

/* The Search tab (MapLayerSettingsDialog.razor): a checklist of the fields to search, the field chips that add to the result text, and the result line as the map's search box shows it. */
/* Each box gets its own cell: a long field name wraps inside it instead of running into the next column. */
.le-search-picker > * { min-width: 0; margin: 0 !important; align-items: flex-start; }
.le-search-picker .mud-typography { overflow-wrap: anywhere; white-space: normal; line-height: 1.25; }

.le-search-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    max-height: 168px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 2px 8px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-label-fields.le-search-chipbox {
    margin-top: 2px;
    padding: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-search-preview {
    width: min(560px, 100%);
    padding: 6px 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.le-search-heading {
    margin-bottom: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

.le-search-note {
    color: var(--mud-palette-primary);
}

/* RichTemplateBox.razor (the Popup tab's Title/Body): a toolbar over a contentEditable box styled like a MudTextField Outlined
   variant, so it reads as "a text field" even though it isn't one. */
.le-rich-box {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}

.le-rich-box:focus-within {
    border-color: var(--mud-palette-primary);
}

.le-rich-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    background: color-mix(in srgb, var(--mud-palette-secondary) 4%, #ffffff);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* Comma/percent toggle buttons - no dedicated Material icon for either in this MudBlazor version, so a plain bold
   glyph sized to match the icon buttons around it. */
.le-rich-toolbar-glyph.mud-button-root {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
}

.le-rich-editable {
    min-height: 40px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
    outline: none;
}

.le-rich-editable-tall {
    min-height: 220px;
}

.le-rich-editable:empty::before {
    content: attr(data-placeholder);
    color: var(--mud-palette-text-secondary);
}

/* The Maps page (ProjectMap.razor, MapCard.razor): a grid of cards, each with a picture, a name, a short description and when it last changed. */
.le-map-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* A supplement grid (Templates, Layer Packages): smaller cards, more per row, so it stays secondary to the main Maps grid. */
.le-map-card-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.le-map-card.le-map-card-compact .le-map-card-title {
    font-size: 0.85rem;
}

.le-map-card.le-map-card-compact .le-map-card-description {
    -webkit-line-clamp: 1;
    min-height: 0;
    font-size: 0.75rem;
}

.le-map-card.le-map-card-compact .le-map-card-body {
    padding: 8px 10px 10px;
    gap: 2px;
}

.le-map-card.le-map-card-compact .le-map-card-meta {
    font-size: 0.68rem;
}

/* The Maps page's search/sort toolbar, boxed the same as the panels below it instead of floating loose on the page background. */
.le-maps-toolbar {
    padding: 10px 16px;
}

/* The Maps page's top row: the main Maps grid (large cards) on the left, a narrow stacked list on the right (Layer Packages). */
.le-maps-toprow {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.le-maps-main {
    flex: 3 1 0;
    min-width: 0;
}

.le-maps-side {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 340px;
}

.le-map-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* A flat, wide card for the side list: a small snapshot on the left, everything else to its right. */
.le-map-card.le-map-card-horizontal {
    flex-direction: row;
}

.le-map-card.le-map-card-horizontal .le-map-card-image {
    width: 28%;
    flex: 0 0 28%;
    aspect-ratio: auto;
}

.le-map-card.le-map-card-horizontal .le-map-card-body {
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
    padding: 6px 34px 6px 10px;
}

.le-map-card.le-map-card-horizontal .le-map-card-title {
    font-size: 0.88rem;
}

.le-map-card.le-map-card-horizontal .le-map-card-description {
    -webkit-line-clamp: 1;
    min-height: 0;
    font-size: 0.76rem;
}

.le-map-card.le-map-card-horizontal .le-map-card-meta {
    padding-top: 2px;
    font-size: 0.68rem;
}

/* The edit icon + overflow menu for a horizontal card, top-right of the whole card (not the thumbnail). */
.le-map-card-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* AddMapContentDialog's picker cards: a highlighted border/tint plus a checkmark badge when chosen, click-to-toggle
   instead of click-to-open. */
.le-map-card.le-map-card-selected {
    border-color: var(--mud-palette-primary);
    background: rgba(232, 93, 0, 0.06);
    box-shadow: 0 0 0 2px rgba(232, 93, 0, 0.22);
}

.le-map-card-selected-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    line-height: 0;
    color: var(--mud-palette-primary);
    background: #fff;
    border-radius: 999px;
}

/* The deed plotter (DeedPlotter.razor): a full-height map on the left, a narrow long panel on the right whose only
   call-entry UI is one freeform textarea (live-parsed, one call per line - "N56.1600E 570.57") - no separate list of
   call rows to keep in sync with it. */
.le-deedplot-layout {
    display: flex;
    height: calc(100vh - 120px);
    gap: 0;
}

.le-deedplot-map {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.le-deedplot-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

/* Every icon button on the deed plotter's map (toolbar, Calls panel header, the References panel) navy by default,
   orange on hover - the same convention as the Layers window's own header icons (.le-map-toc-header). */
.le-deedplot-toolbar .mud-icon-button,
.le-deedplot-calls .mud-icon-button,
.le-deedplot-reference-panel .mud-icon-button {
    color: var(--mud-palette-secondary);
}

.le-deedplot-toolbar .mud-icon-button:hover,
.le-deedplot-calls .mud-icon-button:hover,
.le-deedplot-reference-panel .mud-icon-button:hover {
    color: var(--mud-palette-primary);
    background-color: transparent;
}

/* Wraps just the map canvas (not the toolbar above it), so MapView's Height="100%" fills the space left under the
   toolbar rather than the toolbar's own height being counted too. */
.le-deedplot-map-canvas {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.le-deedplot-calls {
    flex: 0 0 340px;
    width: 340px;
    padding: 8px 4px 8px 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Point of Beginning / Closure - the two figures worth a glance without reading the calls, so they sit above the
   textarea as a bigger, bolder pair instead of small caption lines lost among everything else. */
.le-deedplot-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
}

.le-deedplot-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.le-deedplot-stat-pob {
    position: relative;
}

/* Guide/Start-over moved off the "Calls" header row and down onto the Point of Beginning card itself, top-right
   corner, sized up and in the app's orange (Color.Primary) to match the POB value's own color instead of the
   plain small gray icon buttons they were before. */
.le-deedplot-pob-actions {
    position: absolute;
    top: -4px;
    right: -6px;
    display: flex;
    gap: 2px;
}

.le-deedplot-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
}

.le-deedplot-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

.le-deedplot-stat-value.le-deedplot-stat-muted {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.le-deedplot-stat-value.le-deedplot-stat-warn {
    color: #e65100;
}

.le-deedplot-stat-value.le-deedplot-stat-alert {
    color: #e50000;
}

/* MudBlazor's .mud-input-control already carries flex:1 1 auto (the same rule .quick-search-card suppresses above) -
   inside .le-deedplot-calls's column flex, that alone stretches the field to fill the leftover height; the rest of
   this cascades that height down to the actual <textarea> element, which otherwise sizes off its rows count. */
.le-deedplot-textarea .mud-input-control-input-container,
.le-deedplot-textarea .mud-input {
    height: 100%;
}

.le-deedplot-textarea textarea {
    height: 100% !important;
    resize: none;
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.8125rem;
}

/* The reference point/line management panel: a plain toggled box docked to the map canvas's top-left (a real MudMenu
   dropdown was tried and rejected - it closed on every outside click, which fights actually using the map while it's
   open) - lists every reference point/line in the project, row hover highlights that feature on the map
   (MapView.SetHighlightAsync), row actions edit/delete it. Its own Add Point/Add Line buttons live in its header, not
   the main toolbar, since they add to this list. Sized to its content (no bottom/height set) up to max-height, so it
   opens small and grows downward as items are added rather than always spanning the full map height. */
.le-deedplot-reference-panel {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 260px;
    max-height: calc(100% - 16px);
    background: #fff;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.le-deedplot-reference-panel-header {
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex: none;
}

.le-deedplot-reference-panel-list {
    overflow-y: auto;
    flex: 1 1 auto;
}

.le-deedplot-reference-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.le-deedplot-reference-row:hover {
    background: var(--mud-palette-background-gray);
}

.le-deedplot-reference-row-icon {
    color: #1565c0;
    flex: none;
}

.le-deedplot-reference-row-text {
    flex: 1 1 auto;
    min-width: 0;
}

.le-deedplot-reference-row-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-deedplot-reference-row-note {
    font-size: 0.7rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-up grid of horizontal cards for AddMapContentDialog's results. */
.le-map-card-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

/* Add Layer or Package: the dialog keeps one height while it loads (a spinner, then the cards) and keeps room for its scrollbar, so the
   scrollbar coming and going no longer re-flows the cards (the dialog used to "dance" as it opened). */
.mud-dialog-content:has(.le-add-content-body) {
    scrollbar-gutter: stable;
}

.le-add-content-body {
    min-height: 60vh;
}

/* A catalog group's name (LandEx, North Dakota DNR, Other) above its own row of cards - a step down from the
   Layer Packages/Layers section titles (.le-panel-body-title), but no longer the barely-there caption it was. */
.le-map-picker-group-title {
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
}

.le-map-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 40, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.le-map-card:hover {
    transform: translateY(-3px);
    border-color: var(--mud-palette-primary);
    box-shadow: 0 10px 24px rgba(0, 0, 40, 0.14);
}

.le-map-card.le-map-card-muted {
    opacity: 0.55;
}

.le-map-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f0e8;
}

.le-map-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.le-map-card:hover .le-map-card-image img {
    transform: scale(1.04);
}

.le-map-card-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 1.5px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mud-palette-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* A horizontal card's type chip and "Added" pill sit side by side in this row instead of each taking its own
   line - .le-map-card-body is a column flex, so two bare sibling spans would otherwise stack vertically. */
.le-map-card-chip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* A horizontal card's pill: same hollow orange look, but part of the body's normal flow at the bottom instead of
   floating over the (narrow) thumbnail. */
.le-map-card-chip-inline {
    padding: 1px 9px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mud-palette-primary);
    background: transparent;
    border: 1.5px solid var(--mud-palette-primary);
    border-radius: 999px;
}

/* Marks a card already on the map - info only, never disables the card (there are legitimate reasons to add
   the same layer twice), so it's a distinct color from the orange type chip rather than a muted/greyed style.
   Margins zeroed here - the horizontal card's .le-map-card-chip-row wrapper handles spacing now; the grid-
   variant usage below still overrides margin to 0 anyway, so this never regressed that one. */
.le-map-card-already-added-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 9px 1px 7px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mud-palette-success);
    background: transparent;
    border: 1.5px solid var(--mud-palette-success);
    border-radius: 999px;
}

.le-map-card-already-added-pill .mud-icon-root {
    font-size: 0.9rem;
}

/* The non-horizontal (grid) card variant: floats over the thumbnail like the type chip does, bottom-left so it
   never collides with the top-left type chip or the top-right selected checkmark badge. */
.le-map-card-image > .le-map-card-already-added-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.le-map-card-menu {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.le-map-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    padding: 12px 14px 14px;
}

.le-map-card-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.02rem;
    font-weight: 700;
    color: #000080;
}

.le-map-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--mud-palette-text-secondary);
}

.le-map-card-meta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.le-map-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    cursor: default;
}

.le-map-picture-preview {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f0e8;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
}

.le-map-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Administration: the grouped menu, the overview page and the Map Windows page. */
.le-nav-section {
    padding: 16px 20px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.le-admin-section {
    margin-top: 24px;
}

.le-admin-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #000080;
}

.le-admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.le-admin-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 40, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.le-admin-card:hover {
    transform: translateY(-2px);
    border-color: var(--mud-palette-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 40, 0.12);
}

.le-admin-card-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--mud-palette-primary);
    background: rgba(232, 93, 0, 0.1);
    border-radius: 12px;
}

.le-admin-card-title {
    font-weight: 700;
    color: #000080;
}

.le-admin-card-description {
    margin-top: 2px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--mud-palette-text-secondary);
}

.le-window-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 22px 26px;
    color: #fff;
    background: linear-gradient(120deg, #000080 0%, #1a2a9c 62%, #e65c00 150%);
    border-radius: 16px;
}

.le-window-hero-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
}

.le-window-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.le-window-hero-text {
    max-width: 920px;
    margin-top: 4px;
    line-height: 1.5;
    opacity: 0.93;
}

/* Stays at the top while the page scrolls, so what is being set (the system, a client or a project) is always in view. */
.le-window-controls {
    position: sticky;
    top: calc(var(--mud-appbar-height, 64px) + .5rem);
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    box-shadow: 0 6px 18px -8px rgba(26, 31, 43, 0.18);
}

.le-window-control-label {
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.le-window-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(720px, 1fr));
    gap: 18px;
}

.le-window-card {
    overflow: hidden;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 40, 0.06);
}

.le-window-card-default {
    grid-column: 1 / -1;
    border-left: 5px solid var(--mud-palette-primary);
}

.le-window-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0, 0, 128, 0.035);
}

.le-window-card-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--mud-palette-primary);
    background: rgba(232, 93, 0, 0.12);
    border-radius: 10px;
}

.le-window-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000080;
}

.le-window-card-sub {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.le-window-slots {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.le-window-slot {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.le-window-slot + .le-window-slot {
    border-left: 1px solid var(--mud-palette-lines-default);
}

.le-window-slot-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000080;
}

.le-window-slot-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.le-window-thumb {
    flex: none;
    width: 112px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f0e8;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-window-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New Mexico State Well Data's document thumbnail grid (DocumentGroup.razor) - enlarged versions of OCD's
   own tiny per-document preview images, so a user can "kinda see what type of document it is" without
   opening each one. */
.le-doc-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: 4px 0 8px;
}

.le-doc-thumb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.le-doc-thumb-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f3f0e8;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.le-doc-thumb-card:hover .le-doc-thumb-box {
    border-color: var(--mud-palette-secondary);
}

.le-doc-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.le-doc-thumb-name {
    font-size: 0.7rem;
    color: var(--mud-palette-primary);
    margin-top: 4px;
    word-break: break-word;
    line-height: 1.2;
}

.le-doc-thumb-meta {
    font-size: 0.65rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.2;
}

.le-window-slot-info {
    min-width: 0;
}

.le-window-slot-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
}

.le-window-source {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    background: rgba(0, 0, 80, 0.06);
    border-radius: 999px;
}

.le-window-source.le-window-source-own {
    color: #fff;
    background: var(--mud-palette-primary);
}

.le-window-slot-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.le-window-slot-actions .mud-input-control {
    min-width: 0;
    flex: 1 1 180px;
}

@media (max-width: 900px) {
    .le-window-slots {
        grid-template-columns: 1fr;
    }

    .le-window-slot + .le-window-slot {
        border-left: 0;
    }
}

/* A tinted section on the Map Windows page: the default windows and the module windows each sit in their own panel. */
.le-window-section {
    margin-top: 20px;
    padding: 18px 20px 20px;
    background: rgba(0, 0, 128, 0.035);
    border: 1px solid rgba(0, 0, 128, 0.08);
    border-radius: 18px;
}

.le-window-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000080;
}

.le-window-section-text {
    margin: 2px 0 14px;
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
}

.le-window-grid.le-window-grid-single {
    grid-template-columns: 1fr;
}

/* Admin page header: one look for every admin page (icon, title, one line of description, optional stats on the right). */
.le-admin-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 16px;
    padding: 16px 22px;
    color: #fff;
    background: linear-gradient(120deg, #000080 0%, #1a2a9c 62%, #e65c00 150%);
    border-radius: 16px;
}

.le-admin-hero-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
}

.le-admin-hero-body {
    flex: 1 1 auto;
    min-width: 0;
}

.le-admin-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.le-admin-hero-text {
    max-width: 820px;
    margin-top: 2px;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.92;
}

.le-admin-hero-stats {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.le-admin-hero-stat {
    min-width: 84px;
    padding: 6px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.le-admin-hero-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.le-admin-hero-stat-label {
    font-size: 0.72rem;
    opacity: 0.9;
}

/* The search and action row under an admin page header: stays in view while the list scrolls. */
.le-admin-toolbar {
    position: sticky;
    top: calc(var(--mud-appbar-height, 64px) + .5rem);
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 40, 0.06);
}

.le-admin-toolbar .le-admin-toolbar-grow {
    flex: 1 1 260px;
}

/* A failed row in an admin log. */
.le-log-failed td {
    background: rgba(211, 47, 47, 0.07);
}

.le-log-slow {
    color: #e65c00;
    font-weight: 700;
}

.le-clickable-row {
    cursor: pointer;
}

/* Collapsible sections on an admin page. */
.le-admin-panels .mud-expand-panel {
    margin-bottom: 12px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px !important;
}

.le-admin-panel-title {
    font-weight: 800;
    color: #000080;
}

.le-admin-panel-hint {
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}

/* The Enverus dataset catalog: compact category cards holding dataset chips. */
.le-enverus-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 12px;
}

.le-enverus-cat {
    padding: 10px 14px 12px;
    background: rgba(0, 0, 128, 0.03);
    border-radius: 12px;
}

.le-enverus-cat-title {
    margin-bottom: 4px;
    font-weight: 800;
    color: #000080;
}

.le-enverus-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.le-enverus-sub-label {
    margin-right: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

/* Enverus dataset list: a row per dataset with a readable name, a one-line description and the technical details on the right. */
.le-enverus-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-enverus-row:hover {
    background: rgba(0, 0, 128, 0.05);
}

.le-enverus-row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.le-enverus-row-title {
    font-weight: 700;
    color: #000080;
}

.le-enverus-row-text {
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
}

.le-enverus-row-meta {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.le-enverus-slug {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* Enverus dataset categories as cards; the picked one lists its datasets underneath. */
.le-enverus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.le-enverus-card {
    padding: 12px 14px;
    cursor: pointer;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 4px solid #e65c00;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 40, 0.06);
}

.le-enverus-card:hover {
    background: rgba(0, 0, 128, 0.04);
}

.le-enverus-card-on {
    background: rgba(0, 0, 128, 0.07);
    border-color: #000080;
    border-left-color: #000080;
}

.le-enverus-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.le-enverus-card-name {
    font-weight: 800;
    color: #000080;
}

.le-enverus-card-count {
    min-width: 28px;
    padding: 1px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: #000080;
    border-radius: 10px;
}

.le-enverus-card-subs {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.le-enverus-list {
    margin-top: 6px;
}

.le-enverus-list-title {
    padding-bottom: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #000080;
    border-bottom: 2px solid #e65c00;
}

/* Shown only when the app is running in the Development environment (local dev), never on a deployed site - a
   quick visual cue so dev and prod (landex2) don't get mixed up while configuring things. Pinned to the very top
   (fixed) so it's always visible. MudAppBar is itself position:fixed;top:0 (MudBlazor's .mud-appbar-fixed-top) -
   a plain body padding-top does nothing to a fixed-position descendant, which is why that was tried first and
   still left the banner overlapping the real header. The 3 rules below shift every piece of MudBlazor's own
   fixed-layout math (the appbar's fixed top, .mud-main-content's padding-top, and the clipped drawer's top/height,
   all normally anchored to y:0 or var(--mud-appbar-height)) down by the banner's own height so nothing overlaps it. */
.le-dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    background: #c62828;
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 2px 0;
    pointer-events: none;
}

body.le-dev-env .mud-appbar-fixed-top {
    top: 17px;
}

body.le-dev-env .mud-main-content {
    padding-top: calc(var(--mud-appbar-height) + 17px) !important;
}

body.le-dev-env .mud-drawer-clipped-always {
    top: calc(var(--mud-appbar-height) + 17px) !important;
    height: calc(100% - var(--mud-appbar-height) - 17px) !important;
}

/* AddProjectUserDialog's employee search results - same primary/secondary row language as GlobalSearchBar's
   own result dropdown (its scoped <style> block), adapted for a plain dialog list: no backdrop/overlay, a light
   divider between rows instead of a group header since there's nothing to group by here. */
.le-user-search-results {
    max-height: 50vh;
    overflow-y: auto;
}

.le-user-search-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.le-user-search-item:last-child {
    border-bottom: none;
}

.le-user-search-item:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.le-user-search-item-primary {
    color: var(--mud-palette-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.le-user-search-item-secondary {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

/* The attribute table (Components/Pages/Maps/AttributeTable.razor) - its own standalone browser window, so this
   has no shared card chrome to match, just a dense, scrollable, sticky-header grid. */
/* Inside the Attribute Table panel (a floating le-popup, not a full-screen dialog any more) only the table itself
   scrolls - the search box and row count stay put above it. */
.le-attr-table-panel .le-popup-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.le-attr-table-wrap {
    flex: 1 1 auto;
    min-height: 120px;
    overflow: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-attr-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
    white-space: nowrap;
}

.le-attr-table th {
    position: sticky;
    top: 0;
    /* Solid, not a themed variable - sticky headers sit directly over scrolled-past rows, so anything less than
       fully opaque lets that row's text show through underneath the header text. */
    background: #fff;
    color: var(--mud-palette-secondary);
    text-align: left;
    padding: 8px 12px;
    font-weight: 700;
    border-bottom: 2px solid var(--mud-palette-lines-default);
    z-index: 1;
}

.le-attr-table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.le-attr-table tbody tr:nth-child(even) td {
    background: var(--mud-palette-background-grey);
}

.le-attr-table tbody tr:hover td {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

/* The per-row "zoom to" button column - no header label, just narrow and centered. */
.le-attr-table-action-col {
    width: 36px;
    min-width: 36px;
    text-align: center !important;
    padding: 0 !important;
}
/* The Markup (drawing) toolbar: a floating panel built on .le-popup (dragged by its header). Tool buttons, the markup layer picker, then the controls for the look of the tool or the picked drawing. */
.le-markup-body {
    padding: 4px 10px 8px;
}

.le-markup-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 3px 0;
}

/* The tool buttons: one tinted strip. */
.le-markup-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    padding: 2px 8px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-secondary) 8%, #fff);
}

/* Each part of the panel (layer, look, drawings) is its own card with a small title, so the parts read as separate things. */
/* Each part of the panel (layer, look, drawings) is its own card with a small title, so the parts read as separate things; the orange bar runs the full height. */
.le-markup-section {
    margin-top: 8px;
    padding: 6px 10px 8px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 4px solid var(--mud-palette-primary);
    border-radius: 8px;
    background: #fff;
}

/* The look controls (new drawings / the picked drawing) are tinted, so they stand out from the layer picker and the list. */
.le-markup-section-look {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, #fff);
}

.le-markup-section-title {
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}
.le-markup-sep {
    width: 1px;
    align-self: stretch;
    margin: 2px 4px;
    background: var(--mud-palette-lines-default);
}

.le-markup-grow {
    flex: 1 1 auto;
}

.le-markup-layer,
.le-markup-name {
    min-width: 170px;
    max-width: 240px;
    margin-top: 0;
}

.le-markup-opacity {
    flex: 1 1 150px;
    min-width: 150px;
}

.le-markup-style .le-markup-text {
    min-width: 200px;
    flex: 1 1 220px;
    margin-top: 0;
}

.le-markup-style .le-markup-select {
    min-width: 120px;
    max-width: 150px;
    margin-top: 0;
}

.le-markup-style .le-markup-num {
    width: 72px;
    margin-top: 0;
}

.le-markup-field {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.le-markup-slider {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
}
/* The drawings list in the Markup panel: one row per drawing (on/off, kind, name, zoom, delete); the picked one is tinted. */
.le-markup-list {
    max-height: 180px;
    overflow-y: auto;
}

.le-markup-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    border-radius: 6px;
    cursor: pointer;
}

.le-markup-item:hover {
    background: var(--mud-palette-action-default-hover);
}

.le-markup-item-active {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.le-markup-item-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.le-markup-item-off {
    opacity: 0.5;
}

.le-markup-item-edit {
    flex: 1 1 auto;
    min-width: 0;
}

.le-markup-item-actions {
    display: flex;
    flex: 0 0 auto;
}
/* The markup layer pills (Markup panel): one per layer, the picked one filled orange; a layer that is switched off is dimmed. */
.le-markup-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.le-markup-pill {
    padding: 4px 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    background: #fff;
    color: var(--mud-palette-secondary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.le-markup-pill:hover {
    border-color: var(--mud-palette-primary);
}

.le-markup-pill-active,
.le-markup-pill-active:hover {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary);
    color: #fff;
}

.le-markup-pill-off {
    opacity: 0.55;
}

/* The Print / Export window: settings on the left, the sheet of paper on the right with the live map in its frame. */
.le-print {
    display: flex;
    gap: 16px;
    height: calc(100vh - 150px);
    min-height: 380px;
}

.le-print-side {
    flex: 0 0 330px;
    overflow-y: auto;
    padding-right: 6px;
}

.le-print-area {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #d6dae2;
}

.le-print-paper {
    position: relative;
    flex: 0 0 auto;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.le-print-canvas {
    position: absolute;
    left: 0;
    top: 0;
}

.le-print-frame {
    position: absolute;
    overflow: hidden;
}

.le-print-busy {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.le-print-section {
    margin-bottom: 6px;
    padding: 4px 10px 6px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 4px solid var(--mud-palette-primary);
    border-radius: 8px;
    background: #fff;
}

.le-print-section-look {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, #fff);
}

.le-print-section-title {
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}
/* Print window: condensed settings (two to a row where it fits), and the export buttons centred in the dialog footer. */
.le-print-side {
    flex-basis: 350px;
}

.le-print-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
}

.le-print-pair .mud-switch {
    margin: 0;
}

.le-print-switch {
    margin-left: 0;
    margin-top: 2px;
    margin-bottom: 0;
}

.le-print-side .mud-input-outlined.mud-input-margin-dense .mud-input-slot {
    padding-top: 9px;
    padding-bottom: 9px;
}

.le-print-side .mud-input-control {
    margin-top: 0;
}

.le-print-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.le-print-actions .justify-self-end {
    justify-self: end;
}
/* The pair rows must be able to shrink (no sideways scrolling), and the map border is drawn above the live map in the preview. */
.le-print-pair > * {
    min-width: 0;
}

.le-print-side {
    overflow-x: hidden;
}

.le-print-scale {
    font-weight: 600;
    color: var(--mud-palette-secondary);
}

.le-print-frame-border {
    position: absolute;
    z-index: 3;
    box-sizing: border-box;
    border-style: solid;
    border-color: #000080;
    pointer-events: none;
}

/* The field picker for an export item (ExportFieldsDialog): a drag-to-reorder list of the source's fields. */
.le-field-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.le-field-search {
    flex: 1 1 200px;
    margin-top: 0;
}

.le-field-count {
    display: block;
    margin: 4px 2px 6px;
    color: var(--mud-palette-text-secondary);
}

.le-field-list {
    max-height: 52vh;
    overflow-y: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.le-field-zone {
    min-height: 40px;
}

.le-field-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 8px 0 4px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: #fff;
}

.le-field-row:last-child {
    border-bottom: 0;
}

.le-field-row-off .le-field-name {
    opacity: 0.55;
}

.le-field-grip {
    cursor: grab;
    color: var(--mud-palette-text-secondary);
}

.le-field-name {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-field-chip {
    height: 18px;
    font-size: 0.65rem;
}

.le-field-lock {
    color: var(--mud-palette-secondary);
}

.le-field-alias {
    display: flex;
    flex: 0 0 240px;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: 240px;
}

.le-field-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 4px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.le-field-head-include {
    flex: 0 0 64px;
    box-sizing: border-box;
    padding-left: 2px;
    white-space: nowrap;
}

.le-field-head-name {
    flex: 1 1 auto;
}

.le-field-head-alias {
    flex: 0 0 240px;
    width: 240px;
    padding-left: 12px;
}

.le-field-alias-same {
    flex: 1 1 auto;
    text-align: left;
    padding-left: 12px;
    font-size: 0.8rem;
    color: var(--mud-palette-text-disabled);
}

.le-field-row-renamed {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, #fff);
}

.le-field-alias-text {
    flex: 1 1 auto;
    text-align: left;
    padding-left: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

.le-field-can-drop {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, #fff);
}
/* The loading overlay over a map while its layers are built and drawn (MapSurface). It fades in after a short delay so a quick rebuild never flashes it. */
.le-map-loading {
    position: absolute;
    inset: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: le-map-loading-in 200ms ease 400ms forwards;
}

@keyframes le-map-loading-in {
    to { opacity: 1; }
}

/* Client / project logos: scaled to fit, never cropped, so square and wide logos both work. */
.le-logo-img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.le-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    padding: 6px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 8px;
}

/* The print preview's scale and north arrow, drawn above the live map; clicks pass through to the map. */
.le-print-overlay {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

/* Click-to-sort column headers on the search pages: the arrow shows faintly on hover and solid on the sorted column. */
.le-sort-head {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.le-sort-head .le-sort-arrow {
    font-size: 1rem;
    opacity: 0;
}

.le-sort-head:hover .le-sort-arrow {
    opacity: 0.45;
}

.le-sort-head .le-sort-arrow.le-sort-active {
    opacity: 1;
}

/* Add Mineral Interest: a tinted body with each group raised on its own white card, coloured edge and heading. */
.mi-body {
    background-color: #eef0f7;
    border-radius: 8px;
    padding: 16px;
}

.mi-section {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 128, 0.18);
    border-left: 5px solid var(--mud-palette-primary);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 60, 0.12);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.mi-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
    margin-bottom: 10px;
}

.is-part-card.is-part-off {
    opacity: 0.5;
    cursor: not-allowed;
}

.is-part-card.is-part-off:hover {
    border-color: var(--mud-palette-lines-inputs);
}

/* Colorado orders tables (well detail Orders tab and the Orders search). Fixed layout so the narrow columns hold
   their widths; the Field, Formation and Description cells wrap at word breaks instead of spilling into the next column (Formation values can be
   a long list like "CODL, NB-CD, NBRR"). */
.co-orders-table > .mud-table-container > table {
    table-layout: fixed;
    width: 100%;
}

.co-orders-table td {
    white-space: normal !important;
    overflow-wrap: break-word;
}

/* Order link, Cause #, Order # and Date are short fixed-shape values: never wrap them mid-word. */
.co-orders-table td:nth-child(-n+4) {
    white-space: nowrap !important;
}


/* County-records document popups (DeedDocumentCard / DeedActionCard): title and chips, a facts grid, party cards, the legal description, action cards. */
.deed-doc { display: flex; flex-direction: column; gap: 16px; }
.deed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deed-title { font-size: 1.6rem; font-weight: 700; color: var(--mud-palette-secondary); line-height: 1.2; }
.deed-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.deed-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.deed-chip-type { color: var(--mud-palette-primary); border-color: var(--mud-palette-primary); background: transparent; }
.deed-chip-ok { color: #1B6E3A; background: #E5F4EA; border-color: #B9DEC5; }
.deed-chip-plain { color: var(--mud-palette-secondary); background: #EEF0F8; border-color: #C9CDE3; }

.deed-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7194; margin-bottom: 2px; }
.deed-value { font-size: 1rem; color: var(--mud-palette-secondary); font-weight: 600; word-break: break-word; }

.deed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.deed-fact { background: #EEF0F8; border: 1px solid #DDE0EF; border-radius: 10px; padding: 10px 14px; }

.deed-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.deed-party { border: 1px solid #C9CDE3; border-left-width: 5px; border-radius: 10px; padding: 10px 14px; background: #fff; }
.deed-party-grantor { border-left-color: var(--mud-palette-secondary); }
.deed-party-grantee { border-left-color: var(--mud-palette-primary); }
.deed-party-other { border-left-color: #9AA0C4; }

.deed-legal { border: 1px dashed #C9CDE3; border-radius: 10px; padding: 10px 14px; }
.deed-legal-line { color: #333; font-size: .95rem; line-height: 1.45; }

.deed-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 4px; }
.deed-action { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #C9CDE3; border-radius: 12px; background: #fff;
    cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.deed-action:hover { border-color: var(--mud-palette-primary); box-shadow: 0 4px 14px rgba(0, 0, 128, .14); transform: translateY(-1px); }
.deed-action:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.deed-action-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
    background: #EEF0F8; color: var(--mud-palette-secondary); }
.deed-action-title { font-weight: 700; color: var(--mud-palette-secondary); font-size: 1rem; }
.deed-action-sub { font-size: .8rem; color: #6B7194; }
.deed-action-primary { background: var(--mud-palette-secondary); border-color: var(--mud-palette-secondary); }
.deed-action-primary .deed-action-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.deed-action-primary .deed-action-title { color: #fff; }
.deed-action-primary .deed-action-sub { color: rgba(255, 255, 255, .75); }
.deed-action-primary:hover { border-color: var(--mud-palette-primary); }
.deed-action-disabled { opacity: .55; cursor: default; pointer-events: none; }

/* Mineral interest dialog: Interest type cards in a 3-column grid (All spans two rows; oil and gas stacked). */
.mi-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mi-type-grid > div > .is-part-card { height: 100%; }
.mi-type-grid > div:first-child .mud-paper > div { height: 100%; align-items: center; }

/* Sub-tab sections (shared look): a small uppercase label with a count instead of a full navy bar, and a quiet
   one-line empty state instead of a blue alert box. Use inside any panel that has more than one list. */
.le-sub-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
    margin: 14px 0 6px;
}

.le-sub-title:first-child { margin-top: 4px; }

.le-sub-title .le-sub-count { color: var(--mud-palette-text-secondary); font-weight: 600; }

.le-empty {
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    background: rgba(238, 240, 248, 0.6);
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 6px;
}

.detail-sub-table td { font-variant-numeric: tabular-nums; }

/* What the map's loading spinner is working on (the layer being built, then the layers still downloading). */
.le-map-loading-note {
    max-width: 70%;
    font-size: 0.8125rem;
    font-style: italic;
    font-weight: 400;
    color: var(--mud-palette-primary);
    text-align: center;
}
