.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* ---------------------------------------------------------------------------
   Shared list-page pattern (reference: SaidaPage)
   Structure: .fp-page > [.fp-card filters] + [.fp-actions buttons] + [.fp-card.fp-table-card table]
   --------------------------------------------------------------------------- */
.fp-page {
    padding: 16px 22px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fp-card {
    border-radius: 12px;
}

.fp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fp-table-card {
    overflow-x: auto;
}

    /* MudTable's built-in mobile "sort by" dropdown (auto-generated from the
       MudTableSortLabel headers once the Breakpoint is crossed) has no placeholder
       text, so it renders as an empty, unlabeled select above the row cards.
       Tap-to-sort isn't a pattern we want on mobile anyway — hide it. */
    .fp-table-card .mud-table-smalldevices-sortselect {
        display: none !important;
    }

    /* Compact grid: MudTable's default 16px cell padding + full-size icon buttons
       nearly double the row height */
    .fp-table-card .mud-table-cell {
        padding: 8px 12px;
        white-space: nowrap;
    }

        .fp-table-card .mud-table-cell.fp-wrap {
            white-space: normal;
        }

        .fp-table-card .mud-table-cell .mud-checkbox {
            margin: 0;
        }

.fp-num {
    text-align: right;
}

/* Mobile filter accordion (reference: SaidaPage) — collapsed one-line header
   with active-filter summary; expanded form gets LIMPAR/PESQUISAR at the bottom */
.fp-filter-card {
    padding: 0;
}

.fp-filter-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.fp-filter-title {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fp-filter-summary {
    color: var(--mud-palette-text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-filter-chev {
    color: var(--mud-palette-text-secondary);
}

.fp-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

    .fp-filter-actions .mud-button {
        flex: 1;
    }

/* Mobile list — "option A" compact cards grouped by day (reference: SaidaPage).
   Replaces MudTable's built-in stacked key/value rows below the Sm breakpoint;
   the MudTable itself stays mounted (hidden via inline style) so ServerData/paging
   keep working — this only changes presentation. */
.fp-mlist {
    padding: 4px 10px 0;
}

.fp-mlist-hdr {
    font-size: 0.68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    font-weight: 500;
    padding: 14px 4px 6px;
}

.fp-mlist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.fp-mlist-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-lines-default);
    flex: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .fp-mlist-check.on {
        background: var(--mud-palette-success);
        border-color: var(--mud-palette-success);
    }

.fp-mlist-mid {
    flex: 1;
    min-width: 0;
}

.fp-mlist-loc {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-mlist-tags {
    display: flex;
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.fp-mlist-tag {
    font-size: 0.66rem;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-table-striped, rgba(128,128,128,.08));
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}

.fp-mlist-val {
    text-align: right;
    flex: none;
}

    .fp-mlist-val b {
        font-size: 0.9rem;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        display: block;
    }

    .fp-mlist-val small {
        color: var(--mud-palette-text-secondary);
        font-size: 0.68rem;
    }

.fp-mlist-row.paid .fp-mlist-loc,
.fp-mlist-row.paid .fp-mlist-val b {
    opacity: .55;
}

.fp-mlist-del {
    flex: none;
    margin-left: -4px;
}

.fp-mlist-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 4px;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

    .fp-mlist-footer b {
        color: var(--mud-palette-primary);
        font-size: 0.95rem;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

.fp-mlist-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px 10px;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

/* Mobile action chips (option B, reference: SaidaPage) — replaces the stack of
   full-width action buttons with a single compact row; "Nova Saída"-style
   primary action gets the filled treatment, secondary actions stay outlined-neutral. */
.fp-action-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 4px;
}

.fp-action-chip {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 76px;
    cursor: pointer;
    color: var(--mud-palette-text-primary);
}

    .fp-action-chip span {
        font-size: 0.66rem;
        font-weight: 500;
        text-align: center;
        line-height: 1.25;
    }

    .fp-action-chip.pri {
        background: var(--mud-palette-primary);
        border-color: var(--mud-palette-primary);
        color: var(--mud-palette-primary-text);
    }

        .fp-action-chip.pri .mud-icon-root {
            color: var(--mud-palette-primary-text);
        }

/* ---------------------------------------------------------------------------
   Auth pages (login/register) — dark-committed card layout, shared by both
   --------------------------------------------------------------------------- */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #EAF1F9;
    background: radial-gradient(600px 400px at 12% 8%, rgba(21,148,133,.10), transparent 70%), radial-gradient(700px 500px at 88% 92%, rgba(30,107,214,.14), transparent 70%), #0B1420;
}

.login-card {
    width: 100%;
    max-width: 410px;
    background: #1B2A42;
    border: 1px solid #33476C;
    border-radius: 18px;
    padding: 40px 38px 32px;
    box-shadow: 0 24px 60px -18px rgba(0,0,0,.6);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.login-brand-chip {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21,148,133,.16);
}

    .login-brand-chip img {
        height: 30px;
        width: auto;
    }

.login-brand-name {
    font-size: 1.15rem;
    font-weight: 300;
    color: #EAF1F9;
}

    .login-brand-name b {
        font-weight: 700;
    }

.login-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.login-sub {
    color: #9FB1C8;
    font-size: .9rem;
    margin: 0 0 28px;
}

.login-field {
    display: block;
    margin-bottom: 18px;
}

.login-field-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #9FB1C8;
    margin-bottom: 7px;
}

.login-field-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11,20,32,.55);
    border: 1px solid #2A3C5D;
    border-radius: 10px;
    padding: 12px 14px;
    color: #6B7C93;
    transition: border-color .12s ease;
}

    .login-field-box:focus-within {
        border-color: #4C9AE8;
        color: #4C9AE8;
    }

    .login-field-box input {
        flex: 1;
        min-width: 0;
        background: none;
        border: none;
        outline: none;
        color: #EAF1F9;
        font: inherit;
        font-size: .95rem;
    }

        .login-field-box input::placeholder {
            color: #6B7C93;
        }

.login-icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-icon-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    background: #1E6BD6;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .login-btn:hover:not(:disabled) {
        background: #2A79E4;
    }

    .login-btn:disabled {
        opacity: .7;
        cursor: default;
    }

    .login-btn:focus-visible {
        outline: 2px solid #4C9AE8;
        outline-offset: 2px;
    }

.login-divider {
    height: 1px;
    background: #2A3C5D;
    margin: 26px 0 18px;
}

.login-signup {
    text-align: center;
    color: #9FB1C8;
    font-size: .88rem;
    margin: 0;
}

    .login-signup a {
        color: #4C9AE8;
        font-weight: 700;
        text-decoration: none;
    }