/* What is left of the Blazor project template's stylesheet, and it is now only one thing: the
   Bootstrap that the Identity pages and the error page are written in.

   Those pages are the reason this file still exists. /Account/* and /Error carry
   [ExcludeFromInteractiveRouting] or are reached without a circuit, so they render statically, in
   Bootstrap markup, always in light: there is no circuit for MudBlazor's dark palette to be
   switched on over, and nothing below can reach a page the application draws itself. So a literal
   colour in this file is correct rather than an oversight, which is the opposite of the rule
   everywhere else, and each rule below says which page needs it.

   Nothing here may use an element or a bare-type selector that the themed application also
   matches. A rule in this file beats MudBlazor's: App.razor links bootstrap, then MudBlazor, then
   this, so at equal specificity this one wins. That is exactly how the template's
   "html, body { font-family: 'Helvetica Neue', Helvetica, Arial }" quietly overrode the system
   font stack RosterTheme sets, on every screen in the application, for as long as it sat here.
   It has gone, and MudBlazor's own "body { font-family: var(--mud-typography-default-family) }"
   is what paints the text now.

   Four other rules have gone with it. ".content" was this application's rather than Bootstrap's
   and moved into MainLayout.razor.css, next to the element it styles. "h1:focus { outline: none }"
   took the focus ring off a heading for a template pattern this application does not use, so it
   only ever cost somebody navigating by keyboard the one thing telling them where they were.
   ".blazor-error-boundary", and the encoded warning triangle inside it, styled a component
   nothing renders: there is no ErrorBoundary anywhere in this solution, so the rule had never
   matched an element.

   The left navigation's rules went in the task before this one. There was a block here restating
   white text and white hover states for the menu, because MudBlazor painted MudNavMenu with the
   light theme's near-black and the sidebar behind it was the template's dark gradient. Both
   halves of that have gone. The menu sits in a MudDrawer, which MudBlazor paints from
   --mud-palette-drawer-background and --mud-palette-drawer-text, so it takes the right colours in
   light and in dark from the theme and nothing needs restating. */

/* Links, on the Bootstrap pages and on the disconnection banner, which are the only places a bare
   anchor is rendered. Every link the application itself draws is a MudNavLink, a MudLink or a
   MudButton with an Href, and each of those carries a class, which outranks this element selector
   however late this file loads. So this reaches the sign-in and account pages, the error page, and
   the "Reload" in the yellow band at the foot of the window, and nothing else.

   Kept rather than deleted for the band's sake as much as the Identity pages'. The band is
   deliberately outside the theme and always lightyellow, and this blue on it is 5.45:1 where
   Bootstrap's own link colour, which is what would apply instead, is 4.42:1 and under the
   threshold. */
a, .btn-link {
    color: #006bb7;
}

/* The submit button on every Identity form: Log in, Register, Change password and the rest. */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* The focus ring for those forms. Bootstrap's own is a wide translucent halo; this is the
   template's tighter two-stop ring, and it is the only focus indicator those pages have. */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Blazor's own validation classes, which only EditForm writes. Every form in the application
   proper is a MudForm and colours its own fields from the palette, so these reach the Identity
   pages alone. */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

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

.validation-message {
    color: #e50000;
}

/* "Remember me" on the sign-in page. Bootstrap's default border is too faint to find on white. */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* The floating labels the Identity forms are built from. Bootstrap shows the placeholder and the
   label in the same place, so the placeholder is pushed to the end until the field has focus. */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Subtle outline cards for modernized dashboard and import components. */
.modern-card {
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-surface);
}

.kpi-metric-card {
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    padding: 16px;
    background-color: var(--mud-palette-surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.drawer-collapsible-panel {
    border-top: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-background-grey);
}

/* Roster grid layout and responsive cell sizing. */
.roster-grid-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
}

.roster-grid-table {
    border-collapse: collapse;
    width: 100%;
    min-width: max-content;
}

.roster-grid-role-header {
    position: sticky;
    left: 0;
    background: var(--mud-palette-surface);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid var(--mud-palette-lines-default);
    min-width: 170px;
    z-index: 2;
}

.roster-grid-role-cell {
    position: sticky;
    left: 0;
    background: var(--mud-palette-surface);
    padding: 6px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    white-space: nowrap;
    z-index: 1;
    min-width: 170px;
}

.roster-grid-col-header {
    text-align: center;
    font-weight: 600;
    padding: 6px 10px;
    min-width: 145px;
    border-bottom: 2px solid var(--mud-palette-lines-default);
}

.roster-grid-date-header {
    text-align: center;
    padding: 6px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-grey);
}

.roster-grid-team-header {
    background: var(--mud-palette-background-grey);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.roster-grid-dept-header {
    background: var(--mud-palette-background-grey);
    font-weight: 700;
    padding: 6px 12px;
    border-top: 2px solid var(--mud-palette-primary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.roster-grid-cell {
    padding: 6px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    position: relative;
}

.roster-grid-cell-open-required {
    background: var(--mud-palette-warning-hover);
}

.roster-grid-cell-muted {
    text-align: center;
    color: var(--mud-palette-text-disabled);
}

.roster-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.roster-mobile-row:last-child {
    border-bottom: none;
}

@media (max-width: 959px) {
    .roster-grid-role-header,
    .roster-grid-role-cell {
        min-width: 138px;
        padding: 5px 8px;
        font-size: 0.85rem;
    }

    .roster-grid-col-header {
        min-width: 130px;
        padding: 5px 8px;
    }

    .roster-grid-cell {
        padding: 5px 8px;
    }
}

