/* Legacy's frame: nav, body and footer in one centred box (.wideContainer, 1565 px, margin auto, with .body-content's
   15 px gutters); the nav items form one centred group (ul.navbar-nav.mx-auto). */
.page-box {
    width: 100%;
    max-width: 1565px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-group {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.content {
    padding-top: 1.1rem;
}

/* Legacy's page title (Site.css h2): centred, 10 px above and 20 px below, with a rule under it. */
.page-heading {
    margin: 10px 0 20px;
}

.page-heading-rule {
    margin-bottom: 1rem;
}

/* Legacy's btn-amtr (Site.css): filled AMTR red for the main action, navy for the other, 15 px apart.
   The theme's primary stays blue for links, focus rings and progress bars. */
.mud-button-root.btn-amtr-red {
    background-color: #ED0000;
    color: #fff;
}

    .mud-button-root.btn-amtr-red:hover {
        background-color: #FF1A1A;
    }

.mud-button-root.btn-amtr-navy {
    background-color: #15294D;
    color: #fff;
}

    .mud-button-root.btn-amtr-navy:hover {
        background-color: #2F4367;
    }

h1:focus {
    outline: none;
}

/* The Account pages: the form, with legacy's picture beside it, centred as legacy's row justify-content-center. */
.account-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Legacy's "HAE Confidential" above the carrier guides. */
.hae-confidential {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: xx-large;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 1rem;
}

/* Legacy's underline on the claims link whose page is open. */
.nav-link-selected {
    border-bottom: 3px solid #ED0000;
}

/* Forms that post natively (the static Identity pages, where MudBlazor inputs cannot post, and the
   file downloads) use plain inputs styled with the AppTheme values (Bootstrap 5 .form-control). */
.plain-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
}

    .plain-form label {
        display: block;
        margin-bottom: 0.25rem;
    }

    /* InputText renders <input> without a type */
    .plain-form input:not([type=checkbox]), .plain-form textarea {
        width: 100%;
        padding: 0.375rem 0.75rem;
        font: inherit;
        color: #212529;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
    }

        .plain-form input:focus, .plain-form textarea:focus {
            outline: 0;
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

    .plain-form .plain-check {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .plain-form .plain-buttons {
        display: flex;
        gap: 15px;
    }

/* FreightBillStatus fits 1366 px without a horizontal scroll bar: tighter cells and a smaller font. Numbers, dates and
   codes never break; captions and the carrier wrap only between words; the reasons wrap in set widths. A set width is
   also the most such a column takes when the screen has room to spare. */
.freight-bill-status .mud-table-cell {
    padding: 4px 6px !important;
    font-size: 0.8125rem !important;
    vertical-align: top;
}

    /* Bordered="true" draws the dividers only in the body. */
    .freight-bill-status .mud-table-head .mud-table-cell:not(:last-child) {
        border-right: 1px solid var(--mud-palette-table-lines);
    }

    .freight-bill-status .fbs-code,
    .freight-bill-status td.fbs-num,
    .freight-bill-status td.fbs-date {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    /* Room for 12/31/2026 whatever the date, so the date columns line up. */
    .freight-bill-status .fbs-date {
        width: 10ch;
        min-width: 10ch;
    }

    .freight-bill-status td.fbs-num {
        text-align: right;
    }

    /* "anywhere" also breaks a long unbroken string (a URL in a carrier response); "break-word" would widen the column. */
    .freight-bill-status .fbs-note,
    .freight-bill-status .fbs-text {
        overflow-wrap: anywhere;
    }

    .freight-bill-status .fbs-carrier {
        width: 7.5rem;
    }

    .freight-bill-status .fbs-note {
        width: 9rem;
    }

    .freight-bill-status .fbs-text {
        width: 15rem;
    }

    /* The sort arrow shows once the column is sorted; clicking the caption sorts. */
    .freight-bill-status .sort-direction-icon:not(.mud-direction-asc):not(.mud-direction-desc),
    .freight-bill-status .mud-sort-index.invisible {
        display: none;
    }

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD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OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Power BI containers (PowerBiFrame), legacy Site.css #dashboardContainer and #reportContainer. */
.pbi-dashboard {
    margin: auto;
    height: 905px;
    width: 1565px;
    max-width: 1565px;
}

.pbi-report {
    margin: auto;
    height: 900px;
    width: 100%;
    max-width: 1520px;
}

    .pbi-dashboard iframe, .pbi-report iframe {
        border: none;
    }
