/* =================================================================================================
   Urbinfor360 — one stylesheet for the whole portal.
   Every colour comes from the theme of the session (MudThemeProvider → --mud-palette-*): no hex here.
   Sections: 1 tokens · 2 base · 3 shell · 4 components · 5 home · 6 legacy (app-*) · 7 motion
   ================================================================================================= */

/* 1. Tokens ------------------------------------------------------------------------------------- */
:root {
    color-scheme: light dark;
    --font-sans: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;

    --u-radius-xl: 22px;
    --u-radius-lg: 18px;
    --u-radius-md: 12px;
    --u-radius-sm: 8px;
    --u-radius-pill: 999px;

    --u-ease: cubic-bezier(.2, .8, .2, 1);
    --u-dur: 180ms;

    --u-line: var(--mud-palette-lines-default);
    --u-surface: var(--mud-palette-surface);
    --u-bg: var(--mud-palette-background);
    --u-text: var(--mud-palette-text-primary);
    --u-muted: var(--mud-palette-text-secondary);
    --u-brand: var(--mud-palette-primary);
    --u-brand-soft: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    --u-brand-softer: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    --u-brand-line: color-mix(in srgb, var(--mud-palette-primary) 32%, transparent);
    --u-hover: color-mix(in srgb, var(--mud-palette-text-primary) 5%, transparent);

    --u-shadow-color: color-mix(in srgb, var(--mud-palette-text-primary) 9%, transparent);
    --u-shadow-1: 0 1px 2px var(--u-shadow-color);
    --u-shadow-2: 0 1px 2px var(--u-shadow-color), 0 8px 24px -10px color-mix(in srgb, var(--mud-palette-text-primary) 18%, transparent);
    --u-shadow-3: 0 2px 4px var(--u-shadow-color), 0 22px 48px -16px color-mix(in srgb, var(--mud-palette-text-primary) 26%, transparent);

    --u-ok: var(--mud-palette-success);
    --u-warn: var(--mud-palette-warning);
    --u-bad: var(--mud-palette-error);
    --u-info: var(--mud-palette-info);
    --u-none: var(--mud-palette-text-disabled);

    --u-topbar-h: 60px;
    --u-bottomnav-h: 64px;
    --u-page-pad: 24px;
}

/* 2. Base --------------------------------------------------------------------------------------- */
/* The browser default: the rem of the portal are the usual ones. */
html { font-size: 16px; }

html, body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    height: 100%;
    overscroll-behavior: none;
    background: var(--u-bg);
}

code, pre, kbd, samp { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--u-line);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--u-brand); background-clip: content-box; }
* { scrollbar-color: var(--u-line) transparent; scrollbar-width: thin; }

:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; border-radius: 6px; }

.u-display { font-family: var(--font-display); letter-spacing: -.03em; }
.u-muted { color: var(--u-muted); }
.u-num { font-variant-numeric: tabular-nums; }
.u-eyebrow {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--u-muted);
}
.u-mono { font-family: var(--font-mono); font-size: .82rem; }
/* A field whose text is mono (MudBlazor 9 has no InputClass): the class goes on the field, this reaches its input. */
.u-monoinput input { font-family: var(--font-mono); }

/* 3. Shell -------------------------------------------------------------------------------------- */
.u-layout { min-height: 100dvh; background: var(--u-bg); }

.u-topbar.mud-appbar {
    background: color-mix(in srgb, var(--mud-palette-surface) 82%, transparent) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--u-line);
    box-shadow: none !important;
    color: var(--u-text) !important;
}
/* The logo (UiBrand) as in the image: the mark, "urbinfor360" and below it "PORTAL DE CLIENTES" (as text: inside the
   image it would be too small to read); only the mark on a phone. */
.u-topbar__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: var(--u-radius-sm); }
.u-topbar__mark { height: 40px; width: 40px; display: block; flex: 0 0 auto; }
.u-topbar__words { flex-direction: column; align-items: flex-start; gap: 3px; }
.u-topbar__text { height: 24px; width: auto; display: block; }
.u-topbar__subtitle {
    font-size: .56rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; line-height: 1;
    color: var(--u-muted); white-space: nowrap; padding-left: 1px;
}
.u-topbar__company {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--u-radius-pill);
    background: var(--u-brand-soft); border: 1px solid var(--u-brand-line); color: var(--u-text);
    font-size: .8rem; font-weight: 600; max-width: 280px; white-space: nowrap; overflow: hidden;
}
.u-marquee { container-type: inline-size; overflow: hidden; flex: 1 1 auto; min-width: 0; display: block; height: 1.3em; }
.u-marquee__text { display: inline-block; white-space: nowrap; animation: u-marquee 12s ease-in-out infinite; }
@keyframes u-marquee {
    0%, 15% { transform: translateX(0); }
    50%, 65% { transform: translateX(min(0px, calc(100cqw - 100%))); }
    100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .u-marquee__text { animation: none; } }
.u-env {
    font-size: .66rem; font-weight: 800; letter-spacing: .12em; padding: 3px 9px; border-radius: var(--u-radius-pill);
    color: var(--u-warn); background: color-mix(in srgb, var(--u-warn) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--u-warn) 35%, transparent);
}

.u-sidenav.mud-drawer {
    border-right: 1px solid var(--u-line) !important;
    box-shadow: var(--u-shadow-3) !important;
}
.u-sidenav__inner { display: flex; flex-direction: column; height: 100%; padding: 14px 12px; gap: 4px; }
.u-sidenav__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; text-decoration: none; color: inherit; }
.u-sidenav__mark { width: 32px; height: 32px; flex: 0 0 auto; display: block; }
.u-sidenav__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.u-sidenav__sub { font-size: .72rem; color: var(--u-muted); }
.u-sidenav__group { margin: 14px 10px 6px; }
.u-navitem {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--u-radius-md);
    color: var(--u-muted); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer;
    transition: background var(--u-dur) var(--u-ease), color var(--u-dur) var(--u-ease);
    position: relative; white-space: nowrap;
}
.u-navitem:hover { background: var(--u-hover); color: var(--u-text); }
.u-navitem.active { background: var(--u-brand-soft); color: var(--u-text); }
.u-navitem.active::before {
    content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--u-brand);
}
.u-navitem.active .mud-icon-root { color: var(--u-brand); }
.u-navitem__label { overflow: hidden; text-overflow: ellipsis; }
.u-sidenav--mini .u-navitem { justify-content: center; padding: 10px; }
.u-sidenav--mini .u-navitem__label,
.u-sidenav--mini .u-sidenav__group,
.u-sidenav--mini .u-sidenav__text { display: none; }
.u-sidenav--mini .u-sidenav__brand { justify-content: center; padding-left: 0; padding-right: 0; }
.u-sidenav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.u-sidenav__legal { display: flex; gap: 6px; padding: 6px 8px 0; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.u-sidenav__legal a { color: inherit; text-decoration: none; }
.u-sidenav__legal a:hover { color: var(--mud-palette-primary); text-decoration: underline; }

.u-main.mud-main-content { padding-top: var(--u-topbar-h); background: var(--u-bg); min-height: 100dvh; }
.u-page { max-width: 1440px; margin: 0 auto; padding: 28px var(--u-page-pad) 64px; }

.u-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: none;
    height: calc(var(--u-bottomnav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--mud-palette-surface) 90%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--u-line);
}
.u-bottomnav__items { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--u-bottomnav-h); }
.u-bottomnav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--u-muted); font-size: .68rem; font-weight: 600; text-decoration: none; cursor: pointer;
    background: none; border: 0; font-family: inherit;
}
.u-bottomnav__item.active { color: var(--u-brand); }
.u-bottomnav__item.active .u-bottomnav__icon { background: var(--u-brand-soft); }
.u-bottomnav__icon { padding: 3px 16px; border-radius: var(--u-radius-pill); display: grid; place-items: center; transition: background var(--u-dur) var(--u-ease); }

.u-userbtn {
    display: inline-flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; margin-left: 4px;
    border: 1px solid transparent; border-radius: var(--u-radius-pill); background: none; cursor: pointer;
    color: inherit; font-family: inherit; transition: background var(--u-dur) var(--u-ease), border-color var(--u-dur) var(--u-ease);
}
.u-userbtn:hover { background: var(--u-hover); border-color: var(--u-line); }
.u-userbtn__text { flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 180px; }
.u-userbtn__name { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.u-userbtn__role { font-size: .72rem; color: var(--u-muted); }
.u-usermenu { border-radius: var(--u-radius-lg) !important; min-width: 280px; box-shadow: var(--u-shadow-3) !important; }
.u-usermenu__head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.u-usermenu__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.u-usermenu__email { font-size: .8rem; color: var(--u-muted); overflow-wrap: break-word; }
.u-settings__mode { display: flex; align-items: center; gap: 12px; box-shadow: none; }
.u-settings__mode-text { flex: 1 1 auto; min-width: 0; }
.u-settings__mode-title { font-weight: 700; }
.u-settings__hint { font-size: .8rem; color: var(--u-muted); line-height: 1.5; }

@media (max-width: 959.98px) {
    .u-bottomnav { display: block; }
    .u-layout:has(.u-bottomnav) .u-main.mud-main-content { padding-bottom: calc(var(--u-bottomnav-h) + env(safe-area-inset-bottom)); }
    :root { --u-page-pad: 16px; }
    .u-page { padding-top: 18px; }
}

/* 4. Components --------------------------------------------------------------------------------- */
.u-card {
    position: relative; background: var(--u-surface); border: 1px solid var(--u-line);
    border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-1);
}
.u-card--pad { padding: 20px; }
.u-card--interactive {
    cursor: pointer;
    transition: transform var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease), border-color var(--u-dur) var(--u-ease);
}
.u-card--interactive:hover { transform: translateY(-3px); box-shadow: var(--u-shadow-3); border-color: var(--u-brand-line); }
.u-card--interactive:active { transform: translateY(-1px); }

.u-section { margin-top: 28px; }
.u-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.u-section__head--compact { margin: 14px 0 6px; }
.u-section__title { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.u-section__count {
    font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: var(--u-radius-pill);
    background: var(--u-hover); color: var(--u-muted);
}

.u-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.u-pagehead__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.u-pagehead__icon {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
    background: var(--u-brand-soft); box-shadow: inset 0 0 0 1px var(--u-brand-line); color: var(--u-brand);
}
.u-pagehead__title { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.1; }
.u-pagehead__sub { color: var(--u-muted); margin-top: 4px; font-size: .92rem; }
.u-pagehead__note { margin-left: 10px; font-size: .75rem; opacity: .6; }
.u-pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.u-stat {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; min-width: 168px; height: 100%;
    background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-lg);
    box-shadow: var(--u-shadow-1); text-align: left; font-family: inherit; color: inherit;
}
.u-stat--click { cursor: pointer; transition: transform var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease), border-color var(--u-dur) var(--u-ease); }
.u-stat--click:hover { transform: translateY(-2px); box-shadow: var(--u-shadow-2); border-color: var(--u-brand-line); }
.u-stat__top { display: flex; align-items: center; gap: 10px; }
.u-stat__icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.u-stat__label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-muted); line-height: 1.25; }
.u-stat__value { font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.u-stat__hint { font-size: .8rem; color: var(--u-muted); }

.u-tone--brand   { --u-tone: var(--u-brand); }
.u-tone--success { --u-tone: var(--u-ok); }
.u-tone--warning { --u-tone: var(--u-warn); }
.u-tone--error   { --u-tone: var(--u-bad); }
.u-tone--info    { --u-tone: var(--u-info); }
.u-tone--neutral { --u-tone: var(--u-muted); }
.u-stat__icon, .u-tonebox { background: color-mix(in srgb, var(--u-tone, var(--u-brand)) 13%, transparent); color: var(--u-tone, var(--u-brand)); }

.u-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--u-radius-pill);
    font-size: .74rem; font-weight: 700; white-space: nowrap; line-height: 1.5;
    color: color-mix(in srgb, var(--u-tone, var(--u-muted)) 85%, var(--u-text));
    background: color-mix(in srgb, var(--u-tone, var(--u-muted)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--u-tone, var(--u-muted)) 28%, transparent);
}
.u-pill .mud-icon-root { font-size: 1rem; }

.u-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--u-tone, var(--u-none)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-tone, var(--u-none)) 20%, transparent); }
.u-dot--sm { width: 7px; height: 7px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--u-tone, var(--u-none)) 18%, transparent); }
.u-dot--pulse { animation: u-pulse 1.4s ease-in-out infinite; }
@keyframes u-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.u-appicon {
    display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px;
    background: linear-gradient(145deg, var(--u-brand-soft), var(--u-brand-softer));
    box-shadow: inset 0 0 0 1px var(--u-brand-line); color: var(--u-brand);
}
/* The image of the API or of the site of the application (AppIcon): on white, as the sites draw them */
.u-appicon--image { background: #fff; box-shadow: inset 0 0 0 1px var(--u-line); overflow: hidden; }
.u-appicon--image img { width: 70%; height: 70%; object-fit: contain; display: block; }

.u-avatar {
    display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 800;
    font-family: var(--font-display); letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--u-brand), color-mix(in srgb, var(--u-brand) 55%, var(--mud-palette-secondary)));
    color: var(--mud-palette-primary-text);
}

.u-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; gap: 6px; }
.u-empty__icon {
    width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
    background: var(--u-brand-softer); box-shadow: inset 0 0 0 1px var(--u-brand-line); color: var(--u-brand);
}
.u-empty__title { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; }
.u-empty__text { color: var(--u-muted); font-size: .9rem; max-width: 46ch; line-height: 1.6; }

.u-info { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 10px 16px; font-size: .9rem; }
.u-info__label { color: var(--u-muted); }
.u-info__value { font-weight: 600; min-width: 0; overflow-wrap: break-word; }

.u-copy {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--u-radius-md);
    background: var(--u-hover); border: 1px solid var(--u-line);
}
.u-copy__body { min-width: 0; flex: 1 1 auto; }
.u-copy__label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-muted); }
.u-copy__value { font-family: var(--font-mono); font-size: .82rem; overflow-wrap: break-word; }

.u-check {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--u-radius-md);
    border: 1px solid var(--u-line); background: var(--u-surface);
}
.u-check__body { flex: 1 1 auto; min-width: 0; }
.u-check__name { font-weight: 700; }
.u-check__detail { font-size: .8rem; color: var(--u-muted); overflow-wrap: break-word; }

.u-banner {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--u-radius-md); font-weight: 600;
    background: color-mix(in srgb, var(--u-tone, var(--u-ok)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--u-tone, var(--u-ok)) 28%, transparent);
    color: color-mix(in srgb, var(--u-tone, var(--u-ok)) 70%, var(--u-text));
}

.u-dialog.mud-dialog { border-radius: var(--u-radius-xl); overflow: hidden; background: var(--u-surface); }
.u-dialog .mud-dialog-content { padding: 0 !important; }
.u-dialoghead {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 56px 18px 22px;
    background:
        radial-gradient(560px 180px at 0% 0%, var(--u-brand-soft), transparent 70%),
        var(--u-surface);
    border-bottom: 1px solid var(--u-line);
}
.u-dialoghead__title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.15; }
.u-dialoghead__sub { color: var(--u-muted); font-size: .85rem; margin-top: 2px; }
.u-dialoghead__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.u-dialoghead__close { position: absolute; top: 12px; right: 12px; }
/* The main actions of a popup (open, pin), beside the title; under it on a phone */
.u-dialoghead__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
@media (max-width: 600px) {
    .u-dialoghead { flex-wrap: wrap; }
    .u-dialoghead__actions { width: 100%; justify-content: flex-end; }
}

/* A link of a value (InfoRow): opens in a new page */
.u-link { color: var(--u-brand); font-weight: 600; text-decoration: none; overflow-wrap: break-word; }
.u-link:hover { text-decoration: underline; }

/* The detail of an application (HomeApplicationDialog): the description, the facts as tiles and the site as a card to open */
.u-appdesc { font-size: 1rem; line-height: 1.55; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--u-radius-lg);
    background: var(--u-hover); border-left: 3px solid var(--u-brand); }
.u-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.u-fact { padding: 12px 14px; border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); min-width: 0; }
.u-fact__label { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--u-muted); }
.u-fact__label .mud-icon-root { font-size: 1rem; color: var(--u-brand); }
.u-fact__value { font-weight: 700; font-size: 1rem; margin-top: 6px; overflow-wrap: break-word; }
.u-fact__sub { color: var(--u-muted); font-size: .8rem; margin-top: 2px; overflow-wrap: break-word; }
.u-linkcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--u-brand-line); border-radius: var(--u-radius-lg);
    background: var(--u-brand-softer); color: inherit; text-decoration: none; transition: background var(--u-dur) var(--u-ease); }
.u-linkcard:hover { background: var(--u-brand-soft); }
.u-linkcard > .mud-icon-root { color: var(--u-brand); }
.u-linkcard__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.u-linkcard__title { font-weight: 700; }
.u-linkcard__sub { color: var(--u-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-dialogbody { padding: 18px 22px 22px; }
.u-dialog .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--u-line); padding: 0 12px; }

.u-skel { border-radius: var(--u-radius-lg) !important; }

.u-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.u-pager__label { font-size: .82rem; color: var(--u-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 599.98px) { .u-pager { justify-content: center; } }

.u-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.u-mini__item { padding: 12px; border-radius: var(--u-radius-md); background: var(--u-hover); text-align: center; }
.u-mini__num { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.u-mini__label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-muted); }

.u-chiprow { display: flex; gap: 6px; flex-wrap: wrap; }
/* A tag of the tickets (TicketTagChip): the colour the support chose (--u-ttag-c), readable in light and dark */
.u-ttag {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--u-radius-pill); white-space: nowrap; max-width: 100%;
    font-size: .8rem; font-weight: 700; line-height: 1.4; color: color-mix(in srgb, var(--u-ttag-c) 70%, var(--u-text));
    background: color-mix(in srgb, var(--u-ttag-c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--u-ttag-c) 30%, transparent);
}
.u-ttag--sm { padding: 1px 8px; font-size: .72rem; gap: 5px; }
/* A long name breaks into lines inside its card */
.u-ttag__name { min-width: 0; white-space: normal; overflow-wrap: break-word; }
/* The support contract of the company of a ticket: green with its type, red without one. */
.u-tsupport {
    display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--u-radius-pill); white-space: nowrap;
    font-size: .72rem; font-weight: 700; line-height: 1.4; --u-tsupport-c: var(--mud-palette-success);
    color: color-mix(in srgb, var(--u-tsupport-c) 75%, var(--u-text)); background: color-mix(in srgb, var(--u-tsupport-c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--u-tsupport-c) 30%, transparent);
}
.u-tsupport .mud-icon-root { font-size: .9rem; }
.u-tsupport--none { --u-tsupport-c: var(--mud-palette-error); }
.u-tsupport--other { --u-tsupport-c: var(--u-brand); }
/* The board: only the icons of the contracts, everything on hover. */
.u-tcicons { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; color: var(--u-brand); cursor: default; }
.u-tcicons .mud-icon-root { font-size: 1.05rem; }
.u-tcicons .u-tcicons--support { color: var(--mud-palette-success); }
.u-tcicons .u-tcicons--none { color: var(--mud-palette-error); }
/* The filter of the contracts: a row per kind with its name. */
.u-tcfilter { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.u-tcfilter__kind { font-size: .8rem; font-weight: 700; color: var(--u-muted); }
.u-ttag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--u-ttag-c); flex: 0 0 auto; }
.u-ttag__x { border: 0; background: none; padding: 0; margin: 0 -4px 0 0; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: inherit; cursor: pointer; }
.u-ttag__x:hover { background: color-mix(in srgb, var(--u-ttag-c) 22%, transparent); }
.u-ttag__x:disabled { opacity: .5; cursor: not-allowed; }
.u-ttagfield { display: flex; flex-direction: column; gap: 8px; }
.u-ttagfield__item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-ttagfield__desc { color: var(--u-muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-ttagfield__new { display: inline-flex; align-items: center; gap: 6px; }
.u-ttagedit td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
/* The colours of a tag to choose (TicketTagsPage) */
.u-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.u-swatch {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--u-ttag-c);
    box-shadow: inset 0 0 0 2px var(--u-surface);
}
.u-swatch.active { border-color: var(--u-text); }
.u-swatch:hover { transform: scale(1.12); }
.u-swatch--other { position: relative; overflow: hidden; background: conic-gradient(#E53935, #FDD835, #43A047, #039BE5, #8E24AA, #E53935); }
.u-swatch--other input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.u-filterchip .u-ttag__dot { width: 9px; height: 9px; }
/* The roles of an access in a row: tags and "Alterar" (AccessRolesSelect) */
.u-roles { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.u-tag {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--u-radius-pill);
    font-size: .76rem; font-weight: 600; background: var(--u-hover); border: 1px solid var(--u-line); color: var(--u-text);
}

/* Easy to use: big buttons with names, big lines to touch, the help and the steps of a task */
.u-bigbtn.mud-button-root { min-height: 42px; padding-left: 18px; padding-right: 18px; font-size: .95rem; font-weight: 700; border-radius: var(--u-radius-md); text-transform: none; letter-spacing: 0; }

.u-list { display: flex; flex-direction: column; }
.u-row {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 72px;
    border-bottom: 1px solid var(--u-line); transition: background var(--u-dur) var(--u-ease);
}
.u-row:last-child { border-bottom: 0; }
.u-row--click { cursor: pointer; }
.u-row--click:hover, .u-row--click:focus-visible { background: var(--u-hover); }
.u-row--muted .u-row__title, .u-row--muted .u-row__sub { opacity: .55; }
.u-row__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; }
.u-row__body { flex: 1 1 auto; min-width: 0; }
.u-row__title { font-weight: 700; font-size: 1rem; overflow-wrap: break-word; }
.u-row__sub { color: var(--u-muted); font-size: .92rem; margin-top: 2px; overflow-wrap: break-word; }
.u-row__chevron { color: var(--u-muted); flex: 0 0 auto; }
.u-row__note { padding: 0 20px 14px 78px; margin-top: -8px; font-size: .88rem; color: var(--u-warn); border-bottom: 1px solid var(--u-line); }
.u-choice__item:disabled { opacity: .55; cursor: not-allowed; }

.u-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.u-tile { display: flex; align-items: center; gap: 16px; padding: 22px; color: inherit; text-decoration: none; min-height: 112px; }
.u-tile__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.u-tile__body { flex: 1 1 auto; min-width: 0; }
.u-tile__title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.u-tile__text { color: var(--u-muted); font-size: .92rem; margin-top: 4px; line-height: 1.45; }

.u-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 12px 8px 8px;
    border-radius: var(--u-radius-pill); color: var(--u-muted); font-weight: 700; text-decoration: none;
}
.u-back:hover { background: var(--u-hover); color: var(--u-text); }

.u-dialogactions {
    position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 22px 20px;
    border-top: 1px solid var(--u-line); background: var(--u-surface);
}
.u-dialogactions__buttons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.u-confirm__text { font-size: 1.05rem; line-height: 1.6; }
.u-form { display: flex; flex-direction: column; gap: 18px; }
.u-form .mud-input-helper-text { font-size: .85rem; }
.u-formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
/* A list of settings in a card: the name and a short hint on the left, a compact control on the right (one column on a phone). */
.u-setting {
    display: grid; grid-template-columns: minmax(180px, 2fr) minmax(0, 3fr); gap: 8px 28px; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--u-line);
}
.u-setting:first-child { padding-top: 2px; }
.u-setting:last-child { border-bottom: 0; padding-bottom: 2px; }
.u-setting__title { font-weight: 700; }
.u-setting__hint { font-size: .84rem; color: var(--u-muted); margin-top: 2px; line-height: 1.45; }
.u-setting__control { min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-setting__control > .mud-input-control { max-width: 340px; }
@media (max-width: 719.98px) {
    .u-setting { grid-template-columns: 1fr; }
    .u-setting__control { justify-content: flex-start; }
    .u-setting__control > .mud-input-control { max-width: none; }
    .u-setting__control > .u-toggle.mud-toggle-group { width: 100%; }
    .u-setting__control > .u-toggle .mud-toggle-item { flex: 1 1 0; padding: 7px 8px; }
}
/* The head of the page of an item (under its title): its icon, what it is and its state on the left, its actions on the right. */
.u-itemhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.u-itemhead__body { flex: 1 1 260px; min-width: 0; }
.u-itemhead__title { font-weight: 700; font-size: 1.02rem; overflow-wrap: break-word; }
.u-itemhead__sub { color: var(--u-muted); font-size: .88rem; margin-top: 2px; overflow-wrap: break-word; }
.u-itemhead__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.u-itemhead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.u-setting .u-filterchip { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.u-steps-list { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 12px; font-size: 1.02rem; line-height: 1.55; }
.u-steps-list li::marker { font-weight: 800; color: var(--u-brand); }

.u-wizard { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.u-wizard__step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--u-radius-pill); font-weight: 700; font-size: .88rem; color: var(--u-muted); background: var(--u-hover); }
.u-wizard__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--u-surface); border: 1px solid var(--u-line); font-size: .82rem; }
.u-wizard__step--now { color: var(--u-text); background: var(--u-brand-soft); box-shadow: inset 0 0 0 1px var(--u-brand-line); }
.u-wizard__step--now .u-wizard__num { background: var(--u-brand); color: var(--mud-palette-primary-text); border-color: var(--u-brand); }
.u-wizard__step--done .u-wizard__num { background: color-mix(in srgb, var(--u-ok) 18%, transparent); color: var(--u-ok); border-color: transparent; }

.u-choice { display: flex; flex-direction: column; gap: 10px; }
.u-choice__item.u-choice__item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--u-radius-md); cursor: pointer;
    border: 2px solid var(--u-line); background: var(--u-surface); text-align: left; font-family: inherit; color: inherit; width: 100%;
    justify-content: flex-start;
    transition: border-color var(--u-dur) var(--u-ease), background var(--u-dur) var(--u-ease);
}
.u-choice__item:hover { border-color: var(--u-brand-line); }
.u-choice__item.active { border-color: var(--u-brand); background: var(--u-brand-softer); }
.u-choice__item > div:not(.u-avatar):not(.u-appicon) { flex: 1 1 auto; min-width: 0; text-align: left; }
.u-choice__title { font-weight: 700; font-size: 1.02rem; }
.u-choice__text { color: var(--u-muted); font-size: .88rem; margin-top: 2px; }

/* The groups of a page with many tabs (Configuração): big choices on top, then only the tabs of the group */
.u-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.u-groups__item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; cursor: pointer; text-align: left;
    border: 2px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); color: inherit; font-family: inherit;
    transition: border-color var(--u-dur) var(--u-ease), background var(--u-dur) var(--u-ease);
}
.u-groups__item:hover { border-color: var(--u-brand-line); }
.u-groups__item.active { border-color: var(--u-brand); background: var(--u-brand-softer); }
.u-groups__item .mud-icon-root { color: var(--u-brand); font-size: 1.8rem; flex: 0 0 auto; }
.u-groups__title { display: block; font-weight: 800; font-size: 1.05rem; }
.u-groups__text { display: block; color: var(--u-muted); font-size: .86rem; margin-top: 2px; }

/* Chains (Configuração › Ligações): application ●━● API ●━● database; what is missing dashed, in the tone of a warning */
/* Many applications: compact rows (nodes of a fixed width, not stretched), so the lists stay short and line up. */
.u-chains { display: flex; flex-direction: column; gap: 8px; }
.u-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 6px 10px; border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); }
.u-chain--off { opacity: .6; }
.u-chain__node {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 52px; width: 300px; max-width: 100%; flex: 0 1 300px; padding: 6px 12px; text-align: left;
    border: 2px solid var(--u-line); border-radius: var(--u-radius-md); background: var(--u-surface); color: inherit; font-family: inherit;
}
button.u-chain__node { cursor: pointer; }
button.u-chain__node:hover:not(:disabled) { border-color: var(--u-brand); }
button.u-chain__node:disabled { cursor: default; }
.u-chain__node--ok { border-color: color-mix(in srgb, var(--u-ok) 45%, transparent); }
.u-chain__node--ok > .mud-icon-root { color: var(--u-ok); }
.u-chain__node--todo { border-style: dashed; border-color: color-mix(in srgb, var(--u-warn) 70%, transparent); background: color-mix(in srgb, var(--u-warn) 6%, var(--u-surface)); }
.u-chain__node--todo > .mud-icon-root, .u-chain__node--todo .u-chain__title { color: var(--u-warn); }
.u-chain__body { display: flex; flex-direction: column; min-width: 0; }
.u-chain__title { font-weight: 700; overflow-wrap: break-word; }
.u-chain__sub { font-size: .84rem; color: var(--u-muted); overflow-wrap: break-word; }
/* The link: a line with a dot at each end, solid when linked, dashed when not. */
.u-chain__link { position: relative; flex: 0 0 40px; height: 2px; border-top: 2px dashed color-mix(in srgb, var(--u-warn) 70%, transparent); }
.u-chain__link--on { border-top-style: solid; border-top-color: var(--u-ok); }
.u-chain__link::before, .u-chain__link::after {
    content: ''; position: absolute; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--u-warn);
}
.u-chain__link::before { left: -5px; }
.u-chain__link::after { right: -5px; }
.u-chain__link--on::before, .u-chain__link--on::after { background: var(--u-ok); }
/* The map of the licences of a client (ClientLicenceMap): five nodes, so narrower ones and shorter links. */
.u-chains--map .u-chain__node { width: 210px; flex: 0 1 210px; }
.u-chains--map .u-chain__link { flex: 0 0 24px; }
@media (max-width: 599.98px) {
    .u-chain { flex-direction: column; align-items: stretch; }
    .u-chain__node, .u-chains--map .u-chain__node { min-width: 0; width: 100%; flex: 0 0 auto; }
    .u-chain__link { flex: 0 0 24px; width: 2px; height: 24px; margin: 0 auto; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--u-warn) 70%, transparent); }
    .u-chain__link--on { border-left-style: solid; border-left-color: var(--u-ok); }
    .u-chain__link::before, .u-chain__link::after { left: -6px; top: auto; }
    .u-chain__link::before { top: -5px; }
    .u-chain__link::after { bottom: -5px; right: auto; }
}

/* Tabs inside a tab (Aplicações of the client: Licenças, Utilizadores, Mapa de acessos, Versões): a step smaller than the page's. */
.u-subtabs .mud-tab { min-height: 40px; font-size: .88rem; }

/* The map of the accesses of a client (ClientAccessFlow), explored and never drawn whole: people (one group node, or the person
   chosen) → applications → APIs → databases in columns, curved lines in an SVG under them (js/accessmap.js), the detail and the
   list of the people beside. The brand colour for the people, a softer line application → API, a faint one for API → database. */
.u-amapwrap { display: flex; flex-direction: column; gap: 12px; }
.u-amap__tools { flex-wrap: wrap; gap: 8px; }
.u-amap__searchbox { position: relative; flex: 1 1 320px; min-width: 220px; max-width: 560px; }
.u-amap__search { width: 100%; }
/* The results of the search, over the map (a few of each: never a long list). */
.u-amap__found {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; gap: 2px; padding: 6px;
    border: 1px solid var(--u-line); border-radius: var(--u-radius-md); background: var(--u-surface); box-shadow: var(--u-shadow-2, var(--u-shadow-1));
}
.u-amap__found button.u-amap__item { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* The trail of the exploration ("Visão geral › GPanifica › Ana"), each step goes back to it. */
.u-amap__trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; min-height: 32px; }
.u-amap__trailsep { color: var(--u-muted); }
.u-amap__trailstep { border: 0; background: none; padding: 2px 4px; font: inherit; color: var(--u-brand); font-weight: 700; cursor: pointer; border-radius: 6px; }
.u-amap__trailstep:hover { background: var(--u-hover); }
.u-amap__trailnow { font-weight: 800; }
.u-amap__work { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1199.98px) { .u-amap__work { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899.98px) and (min-width: 700px) { .u-amap__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .u-amap__lines { display: none; } }
.u-amap {
    /* No scroll inside (decided with the user): the map is as tall as its page of 10 per column. */
    position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--u-line); border-radius: var(--u-radius-lg);
    background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--u-text) 7%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--u-surface);
}
.u-amap__lines { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.u-amap__line { fill: none; stroke: var(--u-brand); stroke-width: 2.4; opacity: .8; }
.u-amap__line--warn { stroke: var(--u-warn); stroke-dasharray: 6 5; opacity: .95; }
.u-amap__line--mid { stroke: var(--u-brand); stroke-width: 1.8; opacity: .45; }
.u-amap__line--tech { stroke: var(--u-muted); stroke-width: 1.6; opacity: .45; }
.u-amap__line--hot { stroke-width: 4; opacity: 1; }
.u-amap__hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
/* The columns share the width there is (no sideways scroll): long names end in "…" and show whole under the mouse (title). */
.u-amap__cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.u-amap__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.u-amap__colhead {
    display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; font-size: .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--u-muted); font-variant-numeric: tabular-nums;
}
.u-amap__node {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; text-align: left; color: inherit; font-family: inherit;
    border: 1.5px solid var(--u-line); border-radius: var(--u-radius-md); background: var(--u-surface); box-shadow: var(--u-shadow-1);
    transition: border-color var(--u-dur) var(--u-ease), opacity var(--u-dur) var(--u-ease), background var(--u-dur) var(--u-ease), transform var(--u-dur) var(--u-ease);
}
button.u-amap__node { cursor: pointer; }
button.u-amap__node:hover { border-color: var(--u-brand); transform: translateY(-1px); }
.u-amap__node--sel { border-color: var(--u-brand); background: var(--u-brand-soft); box-shadow: 0 0 0 3px var(--u-brand-line); }
.u-amap__node--off { opacity: .55; }
.u-amap__node--warn { border-style: dashed; border-color: color-mix(in srgb, var(--u-warn) 75%, transparent); }
.u-amap__node--tech { box-shadow: none; background: color-mix(in srgb, var(--u-surface) 85%, transparent); }
/* The people as one node (how many they are): it opens the list beside. */
.u-amap__node--group { min-height: 64px; border-style: dashed; border-color: var(--u-brand-line); }
.u-amap__node--group .u-amap__icon { color: var(--u-brand); background: var(--u-brand-soft); }
.u-amap__more { color: var(--u-muted); flex: 0 0 auto; }
.u-amap__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: var(--u-muted); background: var(--u-hover); }
.u-amap__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.u-amap__title { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-amap__sub { font-size: .78rem; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-amap__count { font-size: .75rem; font-weight: 800; color: var(--u-muted); font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--u-hover); }
.u-amap__badge { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: var(--u-hover); color: var(--u-muted); }
.u-amap__badge--warn { background: color-mix(in srgb, var(--u-warn) 18%, transparent); color: var(--u-text); }
/* Each column its own numbered pages (MudPagination), under its nodes. */
.u-amap__pager { display: flex; justify-content: center; padding-top: 4px; }
.u-amap__pager .mud-pagination { flex-wrap: nowrap; }
.u-amap__pager .mud-pagination-item .mud-button-root { min-width: 28px; height: 28px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.u-amap__empty { padding: 8px 4px; }
.u-amap__note { position: relative; z-index: 1; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--u-radius-md); font-size: .85rem; font-weight: 600;
    background: var(--u-brand-soft); border: 1px solid var(--u-brand-line); }
.u-amap__panel {
    position: sticky; top: calc(var(--u-topbar-h) + 12px); display: flex; flex-direction: column; gap: 12px; padding: 16px;
    border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); box-shadow: var(--u-shadow-1);
}
/* The panel is narrow: a shorter label column, and names broken between words, not in the middle of one. */
.u-amap__panel .u-info { grid-template-columns: minmax(84px, 110px) 1fr; }
.u-amap__panel .u-info__value { overflow-wrap: break-word; }
.u-amap__panelhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.u-amap__panelhead h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
.u-amap__panelid { display: flex; gap: 12px; align-items: center; min-width: 0; }
.u-amap__eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--u-brand); }
.u-amap__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.u-amap__fact { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--u-line); border-radius: var(--u-radius-md); }
.u-amap__fact span { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.u-amap__fact b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.u-amap__fact b.u-amap__factsmall { font-size: .85rem; overflow-wrap: break-word; }
.u-amap__fact--warn { border-color: color-mix(in srgb, var(--u-warn) 60%, transparent); background: color-mix(in srgb, var(--u-warn) 7%, transparent); }
.u-amap__list { display: flex; flex-direction: column; gap: 2px; }
.u-amap__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.u-amap__item[role="button"] { cursor: pointer; }
.u-amap__item:hover { background: var(--u-hover); }
.u-amap__item--off { opacity: .55; }
.u-amap__cost { font-size: .8rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-amap__alert {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; text-align: left; cursor: pointer; color: inherit; font: inherit;
    border: 0; border-radius: var(--u-radius-md); background: color-mix(in srgb, var(--u-warn) 12%, transparent);
}
.u-amap__alert .mud-icon-root { color: var(--u-warn); }
.u-amap__alert:hover { background: color-mix(in srgb, var(--u-warn) 20%, transparent); }
.u-amap__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* The list of the people beside: one page (at most 100) in a box of its own, its rows virtualized; the page and its size under it. */
.u-amap__scroll { max-height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.u-amap__scroll .u-amap__item { min-height: 52px; }
.u-amap__loading { min-height: 4px; }
.u-amap__listfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.u-amap__size { max-width: 170px; }
.u-amap__hint { font-size: .8rem; color: var(--u-muted); }
@media (max-width: 699.98px) {
    .u-amap { max-height: none; overflow: visible; }
    .u-amap__cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .u-amap__lines { display: none; }
    .u-amap__panel { position: static; }
}
@media (prefers-reduced-motion: reduce) { .u-amap__node { transition: none; } button.u-amap__node:hover { transform: none; } }

/* The choice field (PickField / PickManyField): looks like a field that can be touched, never like a disabled one */
.u-pick { position: relative; min-width: 0; }
/* In a row of a form, the same margin on top as the fields of MudBlazor beside it. */
.u-formrow > .u-pick { margin-top: 8px; }
.u-pick__label {
    position: absolute; top: -9px; left: 12px; z-index: 1; padding: 0 5px; max-width: calc(100% - 24px);
    font-size: .78rem; font-weight: 600; color: var(--u-muted);
    /* Only the lower half covers the border of the box: on the page (not a card) the upper half shows the page, not a white square. */
    background: linear-gradient(to bottom, transparent 45%, var(--u-surface) 45%);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
/* A choice field as high as a dense MudTextField (a filter in a bar): Class="u-pick--dense". */
.u-pick--dense .u-pick__box { min-height: 40px; padding: 4px 12px; gap: 10px; }
.u-pick--dense .u-pick__sub { display: none; }
.u-pick--dense.u-pick--filled .u-pick__search { top: 9px; }
.u-pick--dense .u-pick__icon .u-appicon { width: 26px !important; height: 26px !important; border-radius: 8px; }
.u-pick--dense .u-pick__icon .u-appicon .mud-icon-root { font-size: 15px !important; }
.u-pick--dense .u-pick__clear { top: 2px; right: 38px; width: 36px; height: 36px; }
.u-pick__box {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; cursor: pointer;
    border: 1px solid var(--mud-palette-lines-inputs); border-radius: var(--mud-default-borderradius, 8px); background: var(--u-surface);
    font-family: inherit; font-size: 1rem; color: var(--u-text); text-align: left;
    transition: border-color var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease);
}
.u-pick__box:hover { border-color: var(--u-brand); }
.u-pick__box:focus-visible { outline: none; border-color: var(--u-brand); box-shadow: 0 0 0 2px var(--u-brand-line); }
.u-pick:focus-within .u-pick__label { color: var(--u-brand); }
.u-pick__lead { color: var(--u-muted); flex: 0 0 auto; }
.u-pick__icon { display: inline-flex; flex: 0 0 auto; }
.u-pick__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.u-pick__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-muted); }
.u-pick--filled .u-pick__text { color: var(--u-text); font-weight: 700; }
.u-pick__sub { font-size: .84rem; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-pick__search { color: var(--u-brand); flex: 0 0 auto; }
/* The ✕ sits before the magnifier: 44px to touch. */
.u-pick__clear {
    position: absolute; top: 6px; right: 44px; width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: none; color: var(--u-muted); cursor: pointer;
}
.u-pick__clear:hover, .u-pick__clear:focus-visible { background: var(--u-hover); color: var(--u-text); outline: none; }
.u-pick--filled .u-pick__box { padding-right: 96px; }
.u-pick--filled .u-pick__search { position: absolute; right: 14px; top: 16px; }
.u-pick--disabled .u-pick__box { cursor: default; opacity: .6; }
.u-pick--disabled .u-pick__box:hover { border-color: var(--mud-palette-lines-inputs); }

/* The popup: the search and the pages stay in view, the table scrolls between them. */
.u-pickdialog { display: flex; flex-direction: column; max-height: calc(100dvh - 210px); }
.u-pickdialog__search { flex: 0 0 auto; }
.u-pickdialog__table { flex: 1 1 auto; min-height: 0; overflow: auto; }
.u-pickdialog .u-pager { flex: 0 0 auto; margin-top: 12px; }
.mud-dialog-fullscreen .u-pickdialog { max-height: none; flex: 1 1 auto; min-height: 0; }
.u-picktable td { vertical-align: middle; }
.u-picktable__row td { height: 52px; }
.u-picktable__row.active td { background: var(--u-brand-softer); }
.u-picktable__row--cursor td { background: var(--u-hover); box-shadow: inset 0 2px 0 var(--u-brand-line), inset 0 -2px 0 var(--u-brand-line); }
.u-picktable__row--cursor td:first-child { box-shadow: inset 4px 0 0 var(--u-brand), inset 0 2px 0 var(--u-brand-line), inset 0 -2px 0 var(--u-brand-line); }
.u-pick__icon .u-appicon, .u-pick__icon .u-avatar { width: 32px !important; height: 32px !important; font-size: 13px !important; }
.u-chiprow .mud-chip-close-button { width: 32px; height: 32px; }
.u-picktable__icon { width: 58px; }
.u-picktable__noneicon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--u-hover); color: var(--u-muted); }
.u-picktable__row--none .u-picktable__text { font-style: italic; }
.u-picktable__text { font-weight: 700; font-size: 1rem; overflow-wrap: break-word; }
.u-picktable__sub { color: var(--u-muted); font-size: .88rem; margin-top: 2px; overflow-wrap: break-word; }
.u-picktable__check { width: 44px; text-align: right; }

/* The page of a client: simple tables (applications, databases, users); what is missing says so in its cell */
.u-fold { border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); box-shadow: var(--u-shadow-1); }
.u-fold--todo { border-color: color-mix(in srgb, var(--u-warn) 50%, transparent); }
.u-fold__head {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: none; border: 0;
    font-family: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--u-radius-lg); flex-wrap: wrap;
}
.u-fold__head:hover { background: var(--u-hover); }
.u-fold__title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.u-fold__sum { flex: 1 1 200px; color: var(--u-muted); overflow-wrap: break-word; }
.u-fold--todo .u-fold__sum { color: var(--u-warn); font-weight: 700; }
.u-fold__body { padding: 16px 18px 18px; }
/* Open: the head is a bar over the body (its own line, square bottom), so the body does not stick to it. */
.u-fold--open .u-fold__head { border-bottom: 1px solid var(--u-line); border-radius: var(--u-radius-lg) var(--u-radius-lg) 0 0; }
.u-tablewrap { overflow-x: auto; }
.u-table.mud-table { background: transparent; }
.u-table th { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); white-space: nowrap; }
.u-table td { font-size: .95rem; padding-top: 12px !important; padding-bottom: 12px !important; }
.u-table__row { cursor: pointer; }
/* A row that opens something says so under the mouse (the hover of the theme is too faint). */
.u-table__row:hover td { background: var(--u-hover); }
.u-table__row--off td { opacity: .55; }
.u-table__group td {
    background: var(--u-hover); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--u-muted);
    padding-top: 6px !important; padding-bottom: 6px !important;
}
.u-table__strong, .u-table td.u-table__strong { font-weight: 700; }
/* An icon (AppIcon, UserAvatar) and the text beside it in a cell, aligned. */
.u-cellicon { display: inline-flex; align-items: center; gap: 10px; }
.u-table__clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-table__cell--click:hover { text-decoration: underline; }
.u-table__todo { color: var(--u-warn); font-weight: 700; white-space: nowrap; }
/* A short note under a value of a cell (the Hub against the 360: "Mais 3 do que os pagos"). */
.u-table__hint { font-size: .8rem; font-weight: 600; margin-top: 2px; }

.u-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--u-line); }
.u-tabs .mud-tab { text-transform: none; font-weight: 700; font-size: 1rem; min-height: 52px; }

.u-parts { display: flex; flex-direction: column; gap: 14px; }
.u-part { border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); padding: 16px 18px; background: var(--u-surface); }
.u-part--todo { border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); background: color-mix(in srgb, var(--u-warn) 5%, var(--u-surface)); }
.u-part__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.u-part__num {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 800;
    background: var(--u-brand); color: var(--mud-palette-primary-text);
}
.u-part__title { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; flex: 1 1 auto; }
.u-part__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--u-line); flex-wrap: wrap; }
.u-part__item:first-of-type { border-top: 0; }
.u-part__icon { color: var(--u-muted); flex: 0 0 auto; }
.u-part__body { flex: 1 1 200px; min-width: 0; }
.u-part__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.u-part__value { font-weight: 600; overflow-wrap: break-word; }
.u-part__actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.u-password { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--u-radius-md); background: var(--u-brand-softer); border: 1px dashed var(--u-brand-line); }
.u-password__value { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; flex: 1 1 auto; overflow-wrap: break-word; }

@media (max-width: 599.98px) {
    .u-row { padding: 14px 14px; gap: 12px; }
    .u-dialogactions__buttons > * { flex: 1 1 auto; }
    .u-tiles { grid-template-columns: 1fr; }
}

/* 5. Home --------------------------------------------------------------------------------------- */
.u-hero {
    position: relative; overflow: hidden; border-radius: var(--u-radius-xl); padding: 28px 30px;
    border: 1px solid var(--u-brand-line);
    background:
        radial-gradient(900px 300px at 0% 0%, color-mix(in srgb, var(--u-brand) 20%, transparent), transparent 65%),
        radial-gradient(500px 260px at 100% 120%, color-mix(in srgb, var(--u-brand) 14%, transparent), transparent 70%),
        var(--u-surface);
    box-shadow: var(--u-shadow-2);
}
.u-hero::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    border: 1px solid var(--u-brand-line); opacity: .7; pointer-events: none;
}
.u-hero__top { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.u-hero__greeting { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -.04em; line-height: 1.05; }
.u-hero__sub { color: var(--u-muted); margin-top: 6px; font-size: .98rem; }
.u-hero__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.u-kpis { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }

.u-platform {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-top: 14px; cursor: pointer;
    border-radius: var(--u-radius-lg); border: 1px solid var(--u-line); background: var(--u-surface);
    transition: border-color var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease);
}
.u-platform:hover { border-color: var(--u-brand-line); box-shadow: var(--u-shadow-2); }
.u-platform__item { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }

.u-toolbar {
    position: sticky; top: calc(var(--u-topbar-h) + 8px); z-index: 5; margin-top: 22px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
    border-radius: var(--u-radius-lg); border: 1px solid var(--u-line);
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--u-shadow-1);
}
.u-toolbar__search { flex: 1 1 260px; min-width: 200px; max-width: 420px; }
.u-toolbar__select { flex: 0 1 260px; min-width: 180px; }
.u-toolbar__period { flex: 0 0 190px; }
/* Inside a popup: not sticky, no frame. */
.u-toolbar--plain { position: static; margin-top: 0; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.u-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.u-seg { display: inline-flex; padding: 3px; border-radius: var(--u-radius-pill); background: var(--u-hover); border: 1px solid var(--u-line); }
.u-seg__btn {
    border: 0; background: none; font-family: inherit; font-size: .82rem; font-weight: 700; color: var(--u-muted);
    padding: 6px 14px; border-radius: var(--u-radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: background var(--u-dur) var(--u-ease), color var(--u-dur) var(--u-ease);
}
.u-seg__btn.active { background: var(--u-surface); color: var(--u-text); box-shadow: var(--u-shadow-1); }
.u-seg__btn:hover:not(.active) { color: var(--u-text); background: color-mix(in srgb, var(--u-surface) 60%, transparent); }
/* A MudToggleGroup as a soft segmented control (Class="u-toggle" SelectedClass="u-toggle__on" Delimiters="false" Outlined="false"):
   a grey track, the chosen option a white pill with the brand text. */
.u-toggle.mud-toggle-group {
    display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--u-radius-pill);
    background: var(--u-hover); border: 1px solid var(--u-line); box-shadow: none;
}
.u-toggle .mud-toggle-item {
    border: 0 !important; border-radius: var(--u-radius-pill) !important; background: transparent !important; box-shadow: none;
    color: var(--u-muted) !important; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 7px 16px; min-height: 0;
    transition: background var(--u-dur) var(--u-ease), color var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease);
}
.u-toggle .mud-toggle-item:hover { color: var(--u-text) !important; background: color-mix(in srgb, var(--u-surface) 55%, transparent) !important; }
.u-toggle .mud-toggle-item.u-toggle__on { background: var(--u-surface) !important; color: var(--u-brand) !important; box-shadow: var(--u-shadow-1); }
.u-toggle .mud-toggle-item .mud-icon-root { font-size: 1.15rem; }
/* The map of the accesses of a client (ClientAccessFlow): numbered columns, cards with a bar in the colour of their state, soft lines
   (accessmap.js) that light up on the path of the card under the mouse and fade elsewhere. */
.u-flow {
    position: relative; padding: 22px 20px; border: 1px solid var(--u-line); border-radius: var(--u-radius-lg);
    background: var(--u-surface); box-shadow: var(--u-shadow-1);
}
.u-flow__cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.u-flow__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.u-flow__head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--u-muted);
}
.u-flow__step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--u-brand-soft); color: var(--u-brand); font-size: .72rem; }
.u-flow__node {
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px 8px 16px;
    border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-surface); box-shadow: var(--u-shadow-1);
    color: inherit; font-family: inherit; text-align: left; cursor: pointer;
    transition: opacity var(--u-dur) var(--u-ease), box-shadow var(--u-dur) var(--u-ease), border-color var(--u-dur) var(--u-ease);
}
.u-flow__node::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--u-tone, var(--u-ok)); }
.u-flow__node:hover { box-shadow: var(--u-shadow-2); border-color: var(--u-brand-line); }
.u-flow__node--hot { border-color: var(--u-brand); box-shadow: 0 0 0 3px var(--u-brand-line); }
.u-flow__node--dim { opacity: .28; }
.u-flow__node--off { background: var(--u-hover); }
.u-flow__node--off .u-flow__title { color: var(--u-muted); }
.u-flow__icon {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
    color: var(--u-tone, var(--u-brand)); background: color-mix(in srgb, var(--u-tone, var(--u-brand)) 12%, transparent);
}
.u-flow__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.u-flow__title { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flow__sub { font-size: .76rem; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flow__count {
    flex: 0 0 auto; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 9px;
    border-radius: var(--u-radius-pill); background: var(--u-hover); color: var(--u-text);
}
.u-flow .u-amap__line { stroke: var(--u-brand); stroke-width: 2; opacity: .45; transition: opacity var(--u-dur) var(--u-ease); }
.u-flow .u-amap__line.u-flow__line--off { stroke: var(--u-muted); stroke-dasharray: 5 5; opacity: .55; }
.u-flow .u-amap__line.u-flow__line--hot { opacity: 1; stroke-width: 3; }
.u-flow .u-amap__line.u-flow__line--dim { opacity: .06; }
@media (max-width: 899.98px) { .u-flow__cols { grid-template-columns: minmax(0, 1fr); } .u-flow .u-amap__lines { display: none; } }

/* A MudTable of the portal (Class="u-mtable"): a soft header in small capitals, airy rows, a light brand hover, the pager on its own line. */
.u-mtable.mud-table { border-radius: var(--u-radius-lg); overflow: hidden; background: var(--u-surface); border-color: var(--u-line); }
.u-mtable .mud-table-head .mud-table-cell {
    background: var(--u-hover); color: var(--u-muted); font-size: .72rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; padding: 12px 18px; border-bottom: 1px solid var(--u-line); white-space: nowrap;
}
.u-mtable .mud-table-body .mud-table-cell { padding: 14px 18px; border-bottom: 1px solid var(--u-line); }
.u-mtable .mud-table-body .mud-table-row:last-child .mud-table-cell { border-bottom: 0; }
.u-mtable.mud-table-hover .mud-table-body .mud-table-row:hover { background: var(--u-brand-softer); }
.u-mtable .mud-table-body .mud-table-row.u-table__row--off { opacity: .6; }
.u-mtable .mud-table-pagination { border-top: 1px solid var(--u-line); }
.u-mtable .mud-table-loading .mud-progress-linear { height: 2px; }
.u-filterchip {
    border: 1px solid var(--u-line); background: var(--u-surface); font-family: inherit; font-size: .92rem; font-weight: 600; min-height: 44px;
    color: var(--u-muted); padding: 8px 16px; border-radius: var(--u-radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.u-filterchip.active { color: var(--u-text); border-color: var(--u-brand-line); background: var(--u-brand-soft); }
.u-filterchip:hover { color: var(--u-text); border-color: var(--u-brand); }
.u-filterchip:disabled { opacity: .6; cursor: not-allowed; }
.u-filterchip:disabled:hover { color: var(--u-muted); border-color: var(--u-line); }
.u-filterchip.active:disabled:hover { color: var(--u-text); border-color: var(--u-brand-line); }

.u-appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.u-appcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; height: 100%; }
.u-appcard__head { display: flex; align-items: flex-start; gap: 12px; }
.u-appcard__titles { min-width: 0; flex: 1 1 auto; }
.u-appcard__name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.2; }
.u-appcard__desc { color: var(--u-muted); font-size: .82rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-appcard__status { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.u-appcard__dots { display: inline-flex; gap: 10px; margin-left: auto; color: var(--u-muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.u-appcard__dots span { display: inline-flex; align-items: center; gap: 5px; }
.u-appcard__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--u-line); font-size: .8rem; color: var(--u-muted); }
.u-seats { display: flex; flex-direction: column; gap: 6px; }
.u-seats__label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--u-muted); }
.u-seats__label b { color: var(--u-text); }

.u-companyhead { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.u-companyhead__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }

.u-people { display: flex; flex-direction: column; }
.u-person {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer;
    border-bottom: 1px solid var(--u-line); transition: background var(--u-dur) var(--u-ease);
}
.u-person:last-child { border-bottom: 0; }
.u-person:hover { background: var(--u-hover); }
.u-person__body { flex: 1 1 auto; min-width: 0; }
.u-person__name { font-weight: 700; }
.u-person__email { color: var(--u-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.u-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.u-shortcut { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.u-shortcut__name { font-weight: 700; }
.u-shortcut__desc { font-size: .78rem; color: var(--u-muted); line-height: 1.35; }

@media (max-width: 599.98px) {
    .u-hero { padding: 22px 18px; border-radius: var(--u-radius-lg); }
    .u-kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-left: -2px; }
    .u-kpis > * { scroll-snap-align: start; flex: 0 0 72%; }
    .u-appgrid { grid-template-columns: 1fr; }
    .u-toolbar { top: calc(var(--u-topbar-h) + 4px); }
    .u-info { grid-template-columns: 1fr; gap: 2px 0; }
    .u-info__value { margin-bottom: 8px; }
}

/* 6. Legacy (pages written before the redesign) ------------------------------------------------- */
.app-glass {
    background: color-mix(in srgb, var(--mud-palette-surface) 82%, transparent);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--u-line);
}
.app-glass-strong {
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--u-line);
}
.app-hero {
    position: relative;
    background:
        radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--mud-palette-primary) 22%, transparent), transparent 45%),
        var(--mud-palette-background);
}
.app-elevation-1 { box-shadow: var(--u-shadow-1); }
.app-elevation-2 { box-shadow: var(--u-shadow-2); }
.app-elevation-3 { box-shadow: var(--u-shadow-3); }
.app-elevation-4 { box-shadow: var(--u-shadow-3); }
.app-radius-sm { border-radius: var(--u-radius-sm); }
.app-radius-md { border-radius: var(--u-radius-md); }
.app-radius-lg { border-radius: var(--u-radius-lg); }
.app-chip-brand {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--mud-palette-primary);
    background: var(--u-brand-soft); border: 1px solid var(--u-brand-line); border-radius: 999px;
}
/* The pages before the redesign scrolled inside this box; the main content scrolls now. */
.app-page-scroll { min-height: calc(100dvh - var(--u-topbar-h)); }

.blazor-error-boundary {
    background: color-mix(in srgb, var(--mud-palette-error) 15%, var(--mud-palette-surface));
    color: var(--mud-palette-error-text);
    padding: 1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--mud-palette-error) 40%, transparent);
    border-radius: var(--u-radius-md);
    font-family: var(--font-sans);
}
.blazor-error-boundary::after { content: "Ocorreu um erro. Recarregue a página ou contacte o suporte."; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--mud-palette-success); }
.invalid { outline: 1px solid var(--mud-palette-error); }
.validation-message { color: var(--mud-palette-error); }

/* 7. Motion ------------------------------------------------------------------------------------- */
.u-fadein { animation: u-fadein .32s var(--u-ease) both; }
@keyframes u-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 8. Tickets ------------------------------------------------------------------------------------- */
.u-chat { display: flex; flex-direction: column; gap: 12px; }
.u-msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--u-hover); border: 1px solid var(--u-line); align-self: flex-start; }
.u-msg--mine { align-self: flex-end; background: var(--u-brand-soft); border-color: var(--u-brand-line); }
.u-msg--internal { background: color-mix(in srgb, var(--u-warn) 10%, transparent); border-style: dashed; border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); }
.u-msg__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: .82rem; color: var(--u-muted); margin-bottom: 4px; }
.u-msg__author { font-weight: 800; color: var(--u-text); }
.u-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.55; }
.u-reply { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--u-radius-lg); border: 1px solid var(--u-line); background: var(--u-surface); }
.u-reply__actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 599.98px) { .u-msg { max-width: 94%; } }

/* ---------------------------------------------------------------------------------------------------------------
   9. Equipments and devices
   --------------------------------------------------------------------------------------------------------------- */

/* A row of a list that can be written (a note of a device): the fields and the button that takes it away. */
.u-formrow--remove { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; }
@media (max-width: 600px) {
    .u-formrow--remove { grid-template-columns: minmax(0, 1fr) auto; }
    .u-formrow--remove > :nth-child(2) { grid-column: 1; grid-row: 2; }
}

/* ---------------------------------------------------------------------------------------------------------------
   10. Requests for information
   --------------------------------------------------------------------------------------------------------------- */

/* A text someone wrote (the message, the answer, the notes of the team), kept as it was written. */
.u-quote { padding: 14px 16px; border-radius: 14px; background: var(--u-hover); border: 1px solid var(--u-line); white-space: pre-wrap; line-height: 1.5; }
.u-quote--answer { background: var(--u-brand-softer); border-color: var(--u-brand-line); }
.u-quote--internal { border-style: dashed; }

.u-board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.u-board__col { display: flex; flex-direction: column; min-height: 420px; border-radius: var(--u-radius-lg); background: var(--u-hover); border: 1px solid var(--u-line); }
.u-board__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--u-muted); }
.u-board__zone { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px 10px; min-height: 80px; }
.u-board__zone.mud-drop-zone-drag-block { outline: 2px dashed var(--u-brand-line); outline-offset: -4px; border-radius: var(--u-radius-md); }
.u-board__card { padding: 10px 12px; border-radius: var(--u-radius-md); background: var(--u-surface); border: 1px solid var(--u-line); cursor: grab; display: flex; flex-direction: column; gap: 6px; }
.u-board__card:hover { border-color: var(--u-brand-line); }
.u-board__title { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.u-board__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .75rem; color: var(--u-muted); }
@media (max-width: 959.98px) { .u-board { grid-template-columns: repeat(6, 260px); } }

.u-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 60vh; }
.u-ticket__main { padding: 0 0 22px; border-right: 1px solid var(--u-line); min-width: 0; }
.u-ticket__side { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.u-ticket__main .mud-tabs-panels { padding: 18px 22px 0; }
@media (max-width: 959.98px) { .u-ticket { grid-template-columns: minmax(0, 1fr); } .u-ticket__main { border-right: 0; border-bottom: 1px solid var(--u-line); } }

.u-table__row--attention td:first-child { box-shadow: inset 3px 0 0 var(--u-brand); }
/* The colours of a ticket (TicketUi.ColorsOf): the urgency from the top left and the type from the bottom right, joined; the whole
   open ticket (TicketDialog) and its card on the board */
.u-tkcolors, .u-ticketdialog {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--u-tk-a) 18%, transparent) 0%, color-mix(in srgb, var(--u-tk-a) 5%, transparent) 45%,
                                color-mix(in srgb, var(--u-tk-b) 5%, transparent) 55%, color-mix(in srgb, var(--u-tk-b) 18%, transparent) 100%),
        var(--u-surface) !important;
}
.u-tkcolors { border-color: color-mix(in srgb, var(--u-tk-a) 30%, var(--u-line)); }
.u-ticketdialog .u-dialoghead, .u-ticketdialog .mud-tabs-tabbar, .u-ticketdialog .mud-tabs-toolbar { background: transparent; }
.u-tickethead { position: relative; }
.u-tickethead::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--u-tk-a), var(--u-tk-b)); z-index: 1; }
.u-tickethead .u-pagehead__icon { background: linear-gradient(135deg, var(--u-tk-a), var(--u-tk-b)); color: #fff; box-shadow: none; }
.u-board__card--attention { border-color: var(--u-brand-line); box-shadow: inset 3px 0 0 var(--u-brand); }
.u-ticket__side .u-fact { display: flex; flex-direction: column; gap: 2px; }
.u-ticket__side .u-fact__label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.u-ticket__side .u-fact__value { font-weight: 600; overflow-wrap: break-word; }
.u-ticket__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--u-line); }
/* The contracts of the company in the ticket: one compact line each, the name and the state. */
.u-tcontracts { display: flex; flex-direction: column; gap: 4px; }
.u-tcontract { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.u-tcontract__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.u-tcontract__state { margin-left: auto; white-space: nowrap; flex-shrink: 0; }

.u-gpu { position: absolute; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; z-index: 0; display: block; }
.u-gpu--on { opacity: 1; }
.u-pagehead { position: relative; }
.u-pagehead > :not(.u-gpu), .u-dialoghead > :not(.u-gpu) { position: relative; z-index: 1; }
.u-pagehead__gpu { top: -36px; left: 0; width: 100%; height: 190px; }
.u-dialoghead__gpu { inset: 0; width: 100%; height: 100%; }
.u-dialoghead > .u-dialoghead__close { position: absolute; z-index: 2; }

.u-chatbox { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.u-chatbox__scroll { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.u-chatbox__empty { margin: auto; color: var(--u-muted); font-weight: 600; }
.u-chatday { display: flex; align-items: center; gap: 12px; color: var(--u-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.u-chatday::before, .u-chatday::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--u-line); }
.u-chatmsg { display: flex; align-items: flex-start; gap: 10px; max-width: 75%; }
.u-chatmsg--mine { align-self: flex-end; flex-direction: row-reverse; }
.u-chatmsg__avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800;
    background: var(--u-hover); color: var(--u-muted); margin-top: 2px; }
.u-chatmsg--mine .u-chatmsg__avatar { background: var(--u-brand-soft); color: var(--u-brand); }
.u-chatmsg__bubble { padding: 8px 14px 10px; border-radius: 4px 14px 14px 14px; background: var(--u-hover); min-width: 0; }
.u-chatmsg--mine .u-chatmsg__bubble { border-radius: 14px 4px 14px 14px; background: var(--u-brand-soft); }
.u-chatmsg--internal .u-chatmsg__bubble { background: color-mix(in srgb, var(--u-warn) 12%, transparent); }
.u-chatmsg--pending { opacity: .6; }
.u-chatmsg__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.u-chatmsg--mine .u-chatmsg__head { flex-direction: row-reverse; }
.u-chatmsg__author { font-size: .78rem; font-weight: 800; }
.u-chatmsg__time { font-size: .72rem; color: var(--u-muted); }
.u-chatmsg__text { overflow-wrap: anywhere; line-height: 1.5; font-size: .95rem; }
/* Markdown of the chat (ChatMarkdown) */
.u-md > :first-child { margin-top: 0; }
.u-md > :last-child { margin-bottom: 0; }
.u-md p, .u-md ul, .u-md ol, .u-md blockquote, .u-md pre, .u-md table { margin: 0 0 .5em; }
.u-md h1, .u-md h2, .u-md h3, .u-md h4, .u-md h5, .u-md h6 { margin: .4em 0 .3em; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.u-md h1 { font-size: 1.15rem; }
.u-md h2 { font-size: 1.07rem; }
.u-md ul, .u-md ol { padding-left: 1.4em; }
.u-md li > p { margin: 0; }
.u-md ul.contains-task-list { list-style: none; padding-left: .2em; }
.u-md a { color: var(--u-brand); text-decoration: underline; }
.u-md code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--u-text) 8%, transparent); }
.u-md pre { padding: 8px 10px; border-radius: 8px; overflow-x: auto; background: color-mix(in srgb, var(--u-text) 8%, transparent); }
.u-md pre code { padding: 0; background: none; white-space: pre; }

/* A block of code of a page of documentation (Desenvolvimento › Integração). */
.u-code { margin: 8px 0 12px; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.45;
          background: color-mix(in srgb, var(--u-text) 8%, transparent); white-space: pre; }
.u-md blockquote { padding-left: 10px; border-left: 3px solid var(--u-brand-line); color: var(--u-muted); }
.u-md table { border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.u-md th, .u-md td { border: 1px solid var(--u-line); padding: 3px 8px; text-align: left; }
.u-md hr { border: 0; border-top: 1px solid var(--u-line); margin: .6em 0; }
.u-chatmsg__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.u-chatfile { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 5px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: .8rem;
    background: var(--u-surface); border: 1px solid var(--u-line); color: var(--u-text); }
.u-chatfile:hover { border-color: var(--u-brand-line); }
.u-chatfile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.u-chatfile__size { color: var(--u-muted); flex: 0 0 auto; }
.u-chatfile--preview { cursor: zoom-in; }
.u-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 24px 16px; background: rgba(0, 0, 0, .78); cursor: zoom-out; }
.u-lightbox img, .u-lightbox video { max-width: 100%; max-height: calc(100% - 64px); object-fit: contain; border-radius: 8px; cursor: default; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.u-lightbox audio { width: min(520px, 100%); cursor: default; }
.u-lightbox__doc { width: min(1100px, 100%); height: calc(100% - 64px); border: 0; border-radius: 8px; background: #fff; cursor: default; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.u-lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
    background: var(--u-surface); color: var(--u-text); cursor: default; }
.u-lightbox__name { font-size: .85rem; font-weight: 600; margin-right: 4px; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-composer { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 4px 4px; border: 1px solid var(--u-line); border-radius: 14px; background: var(--u-surface); }
.u-composer:focus-within { border-color: var(--u-brand-line); box-shadow: 0 0 0 3px var(--u-brand-softer); }
.u-composer--closed { flex-direction: row; align-items: center; padding: 12px 14px; color: var(--u-muted); background: var(--u-hover); font-size: .9rem; }
.u-composer .u-chiprow { padding: 4px 6px 0; }
.u-composer__row { display: flex; align-items: center; gap: 4px; }
.u-composer__input { flex: 1 1 auto; margin: 0 !important; }
.u-composer__input .mud-input { padding: 4px 2px; font-size: .95rem; }
.u-composer__input textarea { resize: none; }
/* The box of the chat: Enter sends, Shift+Enter breaks the line (tickets.js composer); grows up to about 6 lines */
.u-composer__text { min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: var(--u-text);
    font: inherit; font-size: .95rem; line-height: 1.45; padding: 8px 4px; max-height: 9.5em; overflow-y: auto; align-self: center; }
.u-composer__text::placeholder { color: var(--u-muted); }
.u-composer__problem { color: var(--mud-palette-error); font-size: .8rem; font-weight: 600; padding: 0 8px; }
.u-chatbox--internal .u-composer { border-style: dashed; border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); }
.u-worklog { display: grid; grid-template-columns: 170px 90px 90px minmax(160px, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 16px; }
.u-worklog > * { margin: 0 !important; }
@media (max-width: 959.98px) { .u-worklog { grid-template-columns: 1fr 1fr; } }
.u-ticket__side { gap: 14px; }
.u-sidestack { display: flex; flex-direction: column; gap: 14px; }
.u-sidestack > *, .u-sidestack .mud-input-control { margin: 0 !important; }
.u-tickettabs .mud-tab { padding: 0 18px; min-width: 0; text-transform: none; font-weight: 700; font-size: .95rem; }

.u-ticket { height: max(440px, calc(100vh - 240px)); }
.u-ticket__main { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
.u-ticket__side { overflow-y: auto; min-height: 0; }
.u-ticket__side > .mud-input-control { flex: 0 0 auto; margin: 0 !important; }
.u-tickettabs { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.u-tickettabs > .mud-tabs-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding-bottom: 16px !important; }
.u-tickettabs .mud-tab-panel-active { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 959.98px) { .u-ticket { height: auto; } .u-chatbox__scroll { max-height: 60vh; } }

.u-home { display: flex; flex-direction: column; gap: 20px; }
.u-home .u-pagehead { margin-bottom: 0; }
.u-home .u-pagehead__sub::first-letter { text-transform: uppercase; }
.u-home .u-section { margin-top: 0; }
.u-home__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.u-services--card { padding: 0; align-items: center; cursor: pointer; }
.u-hrow__time--late { color: var(--mud-palette-error); font-weight: 700; }
.u-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.u-metric { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--u-radius-lg); border: 1px solid var(--u-line);
    background: var(--u-surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.u-metric:hover { border-color: var(--u-brand-line); transform: translateY(-1px); }
.u-metric__label { font-size: .8rem; font-weight: 700; color: var(--u-muted); }
.u-metric__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.u-metric__hint { font-size: .75rem; color: var(--u-muted); }
.u-metric--hot { border-color: var(--u-brand-line); background: var(--u-brand-softer); }
.u-metric--hot .u-metric__value { color: var(--u-brand); }
.u-metric--warn .u-metric__value { color: var(--mud-palette-warning); }
.u-metric--alert .u-metric__value { color: var(--mud-palette-error); }
.u-home__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.u-home__side { display: flex; flex-direction: column; gap: 16px; }
/* minmax(0, …): a long title (nowrap) must not widen the column past the screen. */
@media (max-width: 959.98px) { .u-home__grid { grid-template-columns: minmax(0, 1fr); } }
.u-panel { border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); padding: 6px 0 8px; min-width: 0; }
.u-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 8px; font-weight: 800; font-size: .95rem; }
.u-panel__link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--u-brand); text-decoration: none; }
.u-panel__empty { padding: 18px 16px 14px; color: var(--u-muted); font-weight: 600; }
.u-hrow { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; color: inherit; text-decoration: none; border-top: 1px solid var(--u-line); }
.u-hrow:first-of-type { border-top: 0; }
.u-hrow:hover { background: var(--u-hover); }
.u-hrow--attention { box-shadow: inset 3px 0 0 var(--u-brand); }
.u-hrow__main { flex: 1 1 auto; min-width: 0; }
.u-hrow__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-hrow__sub { font-size: .8rem; color: var(--u-muted); }
.u-hrow__time { flex: 0 0 auto; font-size: .8rem; color: var(--u-muted); white-space: nowrap; }
.u-row__main { flex: 1 1 auto; min-width: 0; }
.u-row__title { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-row__sub { font-size: .78rem; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-row__time { flex: 0 0 auto; font-size: .76rem; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.u-row__time--late { color: var(--mud-palette-error); font-weight: 700; }
.u-services { display: flex; gap: 18px; padding: 2px 16px 8px; font-weight: 700; font-size: .9rem; }
.u-services span { display: inline-flex; align-items: center; gap: 6px; }
.u-launcher { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 6px 12px 8px; }
.u-launcher__app { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 14px 8px 12px; border-radius: var(--u-radius-lg); border: 0;
    background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: center; transition: background .15s; }
.u-launcher__app:hover { background: var(--u-hover); }
.u-launcher__icon { position: relative; display: inline-flex; }
.u-launcher__dot { position: absolute; right: -3px; bottom: -3px; padding: 2px; border-radius: 50%; background: var(--u-surface); display: inline-flex; }
.u-launcher__name { font-weight: 700; font-size: .85rem; line-height: 1.2; }
.u-launcher__sub { font-size: .72rem; color: var(--u-muted); }
/* The description of the catalogue (two lines at most) and the pin of the ones the company pinned */
.u-launcher__desc { font-size: .72rem; line-height: 1.25; color: var(--u-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.u-launcher__pin { position: absolute; left: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: var(--u-brand); color: var(--mud-palette-primary-text); box-shadow: 0 0 0 2px var(--u-surface); }
.u-launcher__pin .mud-icon-root { font-size: 12px; }
/* The grid to choose one (the application of a new ticket): smaller tiles, the chosen one marked. */
.u-launcher--pick { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); padding: 0; }
.u-launcher--pick .u-launcher__app { padding: 10px 6px 8px; box-shadow: inset 0 0 0 1px var(--mud-palette-lines-default); }
.u-launcher--pick .u-launcher__app.active { box-shadow: inset 0 0 0 2px var(--mud-palette-primary); background: var(--u-hover); }

/* ---------------------------------------------------------------------------------------------------------------
   11. Current accounts and charges
   --------------------------------------------------------------------------------------------------------------- */

/* Money: aligned on the right in the tables; overdue in red, in favour of the company in blue. */
.u-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-table th.u-money, .u-table td.u-money { text-align: right; }
.u-money--due { color: var(--mud-palette-error); font-weight: 700; }
.u-money--credit { color: var(--u-info); }
.u-balance { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
/* The facts of a document in the body of a popup (outside the side column of u-ticket): label over value. */
.u-ticket__facts .u-fact { display: flex; flex-direction: column; gap: 2px; }
.u-ticket__facts .u-fact__label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.u-ticket__facts .u-fact__value { font-weight: 600; overflow-wrap: break-word; }
/* The current account inside the page of the client: its own frame, the height of its content. */
.u-ticket.u-ticket--page { height: auto; min-height: 0; border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); background: var(--u-surface); }
.u-ticket--page .u-ticket__side { overflow: visible; }
/* Rounded corners also under the tabs, and the same room under the last table as around it. */
.u-ticket.u-ticket--page { overflow: hidden; margin-top: 8px; }
.u-ticket--page .u-ticket__main .mud-tabs-panels { padding: 20px 22px 22px; }
@media (max-width: 599.98px) { .u-ticket--page .u-ticket__main .mud-tabs-panels { padding: 16px 14px 18px; } .u-ticket--page .u-ticket__side { padding: 16px 14px; } }
/* A choice at the end of a toolbar (e.g. "Com movimentos | Todas as empresas" in Financeiro). */
.u-toolbar__end { margin-left: auto; }

/* ---------------------------------------------------------------------------------------------------------------
   12. Narrow screens
   --------------------------------------------------------------------------------------------------------------- */

/* Columns that are detail: on a phone the table keeps what matters (the name and the state). */
@media (max-width: 599.98px) { .u-table .u-hide-sm { display: none; } }

/* ------------------------------------------------------------------ Comunicação: o corpo de um email e a página de um envio */
.u-commbody__fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.u-commbody__preview { width: 100%; min-height: 360px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: #fff; }
.u-commpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .u-commpage { grid-template-columns: minmax(0, 1fr); } }
/* The public page of a policy as it would show (PolicyPage): the page brings its own colours. */
.u-policy__preview { display: block; width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; }
/* ------------------------------------------------------------------ Blog: a lista, o editor de um artigo e o tema */
.u-table__sub { font-weight: 400; font-size: .82rem; color: var(--u-muted); margin-top: 2px; }
.u-blog-pin { color: var(--u-brand); vertical-align: -3px; }
.u-blog-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; border: 1px solid var(--u-line); }

/* The actions of a post above its tabs. */
.u-blog-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.u-blog-titlefield input { font-size: 1.35rem; font-weight: 700; }

/* Editar: the palette, the post as it looks (the theme of the blog), the panel of the block chosen. */
.u-blog-editor { display: grid; grid-template-columns: 190px minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-top: 16px; }
.u-blog-palette { position: sticky; top: calc(var(--u-topbar-h) + 12px); display: flex; flex-direction: column; gap: 4px;
    background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-md); padding: 10px; }
.u-blog-palette__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--u-muted); padding: 2px 6px 6px; }
.u-blog-palette__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--u-radius-sm);
    background: transparent; color: var(--u-text); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; transition: background var(--u-dur) var(--u-ease); }
.u-blog-palette__item:hover, .u-blog-palette__item:focus-visible { background: var(--u-brand-soft); outline: none; }
.u-blog-canvas { min-width: 0; }
.u-blog-canvas__post { border: 1px solid var(--u-line); border-radius: var(--u-radius-md); padding: 12px 0; min-height: 240px; }
.u-blog-canvas__zone { display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.u-blog-block { position: relative; border: 2px solid transparent; border-radius: var(--u-radius-sm); margin: 0 8px; cursor: pointer; transition: border-color var(--u-dur) var(--u-ease); }
.u-blog-block:hover { border-color: var(--u-line); }
.u-blog-block--on, .u-blog-block--on:hover { border-color: var(--u-brand); }
.u-blog-block__bar { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-family: var(--mud-typography-default-family); font-size: .8rem; font-weight: 700;
    color: var(--u-muted); background: var(--u-surface); border-radius: 6px 6px 0 0; opacity: .0; transition: opacity var(--u-dur) var(--u-ease); }
.u-blog-block:hover .u-blog-block__bar, .u-blog-block--on .u-blog-block__bar, .u-blog-block:focus-within .u-blog-block__bar { opacity: 1; }
.u-blog-block__drag { cursor: grab; }
.u-blog-block__body { pointer-events: none; padding-bottom: 4px; }
.u-blog-block__body .ub-block { margin-top: .5rem; margin-bottom: .5rem; }
.u-blog-side { position: sticky; top: calc(var(--u-topbar-h) + 12px); max-height: calc(100vh - var(--u-topbar-h) - 24px); overflow: auto; }
.u-blog-inspector { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-md); padding: 14px; }
.u-blog-inspector__head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 1280px) { .u-blog-editor { grid-template-columns: 170px minmax(0, 1fr); } .u-blog-side { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 800px) {
    .u-blog-editor { grid-template-columns: minmax(0, 1fr); }
    .u-blog-palette { position: static; flex-direction: row; flex-wrap: wrap; }
    .u-blog-palette__title { width: 100%; }
    .u-blog-palette__item { width: auto; }
    .u-blog-block__bar { opacity: 1; }
}

/* Editar "Lado a lado": the palette in a row, the blocks, the panel of the block and the preview (sticky). */
.u-blog-editbar { display: flex; justify-content: flex-end; margin-top: 8px; }
.u-blog-editor.u-blog-editor--live { grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); grid-template-areas: "palette palette palette" "canvas side live"; }
.u-blog-editor--live .u-blog-palette { grid-area: palette; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
.u-blog-editor--live .u-blog-palette__title { width: auto; padding: 0 6px; }
.u-blog-editor--live .u-blog-palette__item { width: auto; }
.u-blog-editor--live .u-blog-canvas { grid-area: canvas; }
.u-blog-editor--live .u-blog-side { grid-area: side; }
.u-blog-live { grid-area: live; min-width: 0; position: sticky; top: calc(var(--u-topbar-h) + 12px); }
.u-blog-preview--live { padding: 8px; }
.u-blog-preview--live .u-blog-preview__frame { height: calc(100vh - var(--u-topbar-h) - 110px); min-height: 420px; }
@media (max-width: 1600px) {
    .u-blog-editor.u-blog-editor--live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "palette palette" "canvas live" "side live"; }
    .u-blog-editor--live .u-blog-side { position: static; max-height: none; }
}
@media (max-width: 900px) {
    .u-blog-editor.u-blog-editor--live { grid-template-columns: minmax(0, 1fr); grid-template-areas: "palette" "canvas" "side" "live"; }
    .u-blog-live { position: static; }
    .u-blog-preview--live .u-blog-preview__frame { height: 70vh; }
}

/* A text in Markdown with its bar. */
.u-blog-md__bar { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; }
.u-blog-md__label { font-size: .85rem; font-weight: 600; color: var(--u-muted); }

/* A colour: the swatches of the theme and of the blog, another one, the warning of contrast. */
.u-blog-color__label { font-size: .85rem; font-weight: 600; color: var(--u-muted); margin-bottom: 6px; }
.u-blog-color__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.u-blog-color__picker { max-width: 170px; }
.u-blog-color__warn { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; color: var(--u-warn); }
.u-blog-swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--u-line); cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; background: var(--u-surface); color: var(--u-muted); }
.u-blog-swatch--on { outline: 3px solid var(--u-brand); outline-offset: 2px; }
.u-blog-swatch__x { color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7)); opacity: 0; }
.u-blog-swatch:hover .u-blog-swatch__x, .u-blog-swatch:focus-visible .u-blog-swatch__x { opacity: 1; }

/* An image of a block. */
.u-blog-image { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.u-blog-image__pick { width: 110px; height: 90px; border: 2px dashed var(--u-line); border-radius: var(--u-radius-sm); background: var(--u-bg); color: var(--u-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: .78rem; cursor: pointer; overflow: hidden; padding: 0; }
.u-blog-image__pick img { width: 100%; height: 100%; object-fit: cover; }
.u-blog-image__pick:hover { border-color: var(--u-brand); }

/* The table of a block. */
.u-blog-table__bar { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.u-blog-table__wrap { overflow-x: auto; }
.u-blog-table__grid { border-collapse: collapse; width: 100%; }
.u-blog-table__grid th, .u-blog-table__grid td { padding: 2px; vertical-align: top; min-width: 110px; }
.u-blog-table__grid tbody th { min-width: 0; width: 34px; }
.u-blog-table__rowbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-muted); cursor: pointer; font: inherit; font-size: .8rem; }
.u-blog-table__row--on .u-blog-table__rowbtn { background: var(--u-brand); border-color: var(--u-brand); color: #fff; }
.u-blog-table__cell--on .mud-input-outlined-border { border-color: var(--u-brand) !important; }
.u-blog-table__head input { font-weight: 700; }
.u-blog-table__colors { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); }
.u-blog-table__title { font-weight: 700; }
.u-blog-faq { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); }

/* Pré-visualizar: the page in a frame, as wide as the device chosen. */
.u-blog-preview { display: flex; flex-direction: column; gap: 10px; background: var(--u-bg); border: 1px solid var(--u-line); border-radius: var(--u-radius-md); padding: 12px; min-width: 0; }
.u-blog-preview__widths { align-self: flex-start; flex-wrap: wrap; }
.u-blog-preview__stage { display: flex; justify-content: center; min-width: 0; }
.u-blog-preview__frame { display: block; width: 100%; height: 78vh; min-height: 480px; border: 1px solid var(--u-line); border-radius: 8px; background: #fff; transition: max-width var(--u-dur) var(--u-ease); }

/* Definições. */
.u-blog-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .u-blog-settings { grid-template-columns: minmax(0, 1fr); } }
.u-blog-serp { border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); padding: 12px 14px; background: var(--u-surface); }
.u-blog-serp__url { font-size: .8rem; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-blog-serp__title { font-size: 1.15rem; color: var(--u-info); margin: 2px 0; }
.u-blog-serp__text { font-size: .9rem; color: var(--u-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The images of a blog to choose and the sending of a new one. */
.u-blog-upload__file { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.u-blog-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.u-blog-media__item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--u-line); border-radius: var(--u-radius-sm); background: var(--u-surface);
    color: var(--u-text); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.u-blog-media__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--u-bg); }
.u-blog-media__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-blog-media__item:hover, .u-blog-media__item--on { border-color: var(--u-brand); }

/* The theme of a blog and its sample. */
.u-blog-theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.u-blog-theme__fields { display: flex; flex-direction: column; gap: 14px; }
.u-blog-theme__sample { width: 100%; height: 560px; border: 1px solid var(--u-line); border-radius: 8px; background: #fff; }
@media (max-width: 900px) { .u-blog-theme { grid-template-columns: minmax(0, 1fr); } }
/* The share of the databases of a release (Versões › Scripts da base de dados): done, to run, failed. */
.u-stackbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--u-line); margin: 2px 0 4px; }
.u-stackbar > i { display: block; }
.u-stackbar__ok { background: var(--u-ok); }
.u-stackbar__warn { background: var(--u-warn); }
.u-stackbar__bad { background: var(--u-bad); }

/* Client overview (ClientOverview): one row per application with its data path, and the databases below. */
.u-ov { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-1); overflow: hidden; }
.u-ov__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.u-ov__title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.u-ov__sub { padding: 9px 16px; background: var(--u-hover); border-bottom: 1px solid var(--u-line); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted); }
.u-ov__empty { padding: 14px 16px; color: var(--u-muted); border-bottom: 1px solid var(--u-line); }
.u-ov__row { display: grid; grid-template-columns: 210px 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.u-ov__name { display: grid; gap: 2px; min-width: 0; }
.u-ov__name b { font-family: var(--font-display); font-size: .95rem; }
.u-ov__name span { font-size: .8rem; color: var(--u-muted); }
.u-ov__ver { display: grid; gap: 4px; justify-items: start; }
.u-ov__v { font-family: var(--font-mono); font-weight: 600; font-size: .88rem; }
.u-ov__path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; min-width: 0; }
.u-ov__hop { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--u-line); border-radius: 7px; background: var(--u-surface); white-space: nowrap; color: var(--u-text); text-decoration: none; }
.u-ov__hop--api { border-color: var(--u-brand); }
.u-ov__hop--db { background: var(--u-hover); }
a.u-ov__hop--db:hover { border-color: var(--u-brand); }
.u-ov__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--u-none); flex: none; }
.u-ov__hop--ok .u-ov__dot { background: var(--u-ok); }
.u-ov__hop--warn .u-ov__dot { background: var(--u-warn); }
.u-ov__hop--bad .u-ov__dot { background: var(--u-bad); }
.u-ov__arrow { color: var(--u-muted); }
.u-ov__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.u-ov__dbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-bottom: 1px solid var(--u-line); }
.u-ov__db { padding: 14px 16px; border-right: 1px solid var(--u-line); display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; }
.u-ov__db:hover { background: var(--u-hover); }
.u-ov__dbhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-ov__dbhead b { font-family: var(--font-display); }
.u-ov__db dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .84rem; }
.u-ov__db dt { color: var(--u-muted); }
.u-ov__db dd { margin: 0; overflow-wrap: break-word; }
.u-ov__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; font-size: .8rem; color: var(--u-muted); }
.u-ov__legend b { color: var(--u-text); font-weight: 600; }
@media (max-width: 900px) {
    .u-ov__row { grid-template-columns: 1fr auto; }
    .u-ov__path { grid-column: 1 / -1; }
    .u-ov__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.u-ov__dist { padding: 14px 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--u-line); }
.u-stackbar--big { height: 14px; border-radius: 7px; margin: 0; }
.u-stackbar__test { background: var(--u-info); }
.u-stackbar__none { background: var(--u-none); }
.u-ov__legend--plain { padding: 0; font-size: .84rem; color: var(--u-text); }
.u-ov__legend--plain span { display: inline-flex; align-items: center; gap: 6px; }
.u-ov__key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.u-ov__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.u-ov__tabs button { border: 0; background: transparent; color: var(--u-muted); font: inherit; font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.u-ov__tabs button:hover { background: var(--u-hover); color: var(--u-text); }
.u-ov__tabs button.on { background: color-mix(in srgb, var(--u-brand) 14%, transparent); color: var(--u-brand); }
.u-ov__subnote { text-transform: none; letter-spacing: 0; font-weight: 500; }
.u-ov__log { list-style: none; margin: 0; padding: 0; }
.u-ov__log li { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 16px; border-bottom: 1px solid var(--u-line); font-size: .88rem; }
.u-ov__log small { display: block; color: var(--u-muted); font-size: .8rem; margin-top: 2px; }
.u-ov__when { color: var(--u-muted); font-size: .8rem; padding-top: 2px; }
.u-ov__ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--u-muted); }
.u-ov__ico--bad { background: var(--u-bad); }
.u-ov__ico--warn { background: var(--u-warn); }
.u-ov__ico--ok { background: var(--u-ok); }
.u-ov__ico--info { background: var(--u-info); }
@media (max-width: 900px) { .u-ov__log li { grid-template-columns: 22px minmax(0, 1fr); } .u-ov__log li > .u-ov__when { display: none; } .u-ov__log li > .u-ov__actions { grid-column: 2; justify-content: flex-start; } }
.u-ov__plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.u-ov__plan > div { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.u-ov__plan > div + div { border-left: 1px solid var(--u-line); }
.u-ov__h { font-family: var(--font-display); font-weight: 800; font-size: .92rem; }
.u-ov__checks { list-style: none; margin: 0; padding: 0; }
.u-ov__checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--u-line); font-size: .88rem; }
.u-ov__checks li:last-child { border-bottom: 0; }
.u-ov__checks small, .u-ov__steps small { display: block; color: var(--u-muted); font-size: .8rem; }
.u-ov__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.u-ov__steps li { position: relative; padding: 0 0 14px 34px; font-size: .88rem; counter-increment: s; }
.u-ov__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--u-brand) 14%, transparent); color: var(--u-brand); font-weight: 700; font-size: .72rem; display: grid; place-items: center; }
.u-ov__steps li::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 2px; width: 1px; background: var(--u-line); }
.u-ov__steps li:last-child::after { display: none; }
@media (max-width: 760px) { .u-ov__plan { grid-template-columns: 1fr; } .u-ov__plan > div + div { border-left: 0; border-top: 1px solid var(--u-line); } }
.u-fsteps { display: grid; }
.u-fstep { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--u-line); }
.u-fstep:last-child { border-bottom: 0; }
.u-fstep__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--u-brand) 14%, transparent); color: var(--u-brand); font-weight: 800; font-size: .8rem; }
.u-fstep__body { display: grid; gap: 8px; min-width: 0; }
.u-fstep__title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; padding-top: 2px; }
.u-ov__accs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.u-ov__acc { text-align: left; border: 1px solid var(--u-line); border-radius: 10px; padding: 12px 14px; background: var(--u-surface); color: var(--u-text); font: inherit; cursor: pointer; display: grid; gap: 4px; }
.u-ov__acc b { display: inline-flex; align-items: center; gap: 6px; }
.u-ov__acc span { color: var(--u-muted); font-size: .84rem; }
.u-ov__acc.on { border-color: var(--u-brand); background: color-mix(in srgb, var(--u-brand) 7%, transparent); }
.u-ov__acc:disabled { cursor: default; opacity: .7; }
