/* This is just css copied from another PBS app -- feel free to change */

#blazor-error-ui {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 0px;
    overflow: hidden;
    padding: 0px;
}

body {
    overflow: hidden;
    line-height: 1.5;
}

/*
    MudBlazor sets every element's padding to 0.
    This seems wrong for ordered lists. Use browser default padding instead
*/
ol {
    padding: revert;
}

/* === Referencing bootstrap defaults for these === */
p, ol {
    margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
}
/* =================================================*/

.has-external-links a {
    text-decoration: underline;
}
.has-external-links a:link {
    color: #136166;
}
.has-external-links a:visited {
    color: #136166;
}
.has-external-links a:hover {
    color: #114346;
}
.has-external-links a:active {
    color: #114346;
}

/* loading */

.loading-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* mud blazor */

.mud-navmenu .mud-nav-item .mud-nav-link-text {
    line-height: 20px;
}
.mud-navmenu .mud-nav-group .mud-nav-link-text {
    line-height: 20px;
}

.nav-group .mud-nav-link {
    padding-left: 16px !important;
}

.mud-tab {
    text-transform: none !important;
}

.mud-tabs-panels {
    height: 100% !important;
}

.mud-button {
    text-transform: none !important;
}

.mud-chip > .mud-chip-content {
    margin-bottom: 1px !important;
}

.mud-table-head {
    /* Added by Chris */
    background-color: var(--mud-palette-tertiary);
}

.mud-table-root .mud-table-head .mud-table-cell {
    /* Added by Chris */
    font-weight: 600;
}

.mud-table-container {
    overflow-y: inherit !important;
}

.mud-table-sort-label .mud-table-sort-label-icon {
    display: none;
}

    .mud-table-sort-label .mud-table-sort-label-icon.mud-direction-asc {
        display: block;
    }

    .mud-table-sort-label .mud-table-sort-label-icon.mud-direction-desc {
        display: block;
    }

.mud-picker-datepicker-toolbar {
    height: 80px !important;
}

    .mud-picker-datepicker-toolbar .mud-button-year {
        display: none !important;
    }

.timeline-authentication {
    margin-left: -32px;
    min-width: 240px;
    padding-top: 0;
}

.timeline-authentication-edit {
    min-width: 320px;
}

.timeline-authentication::before {
    top: 12px;
    height: 72px;
}

.timeline-authentication-edit::before {
    top: 12px;
    height: 96px;
}

/* page content navigation */

.page-content-navigation h6 {
    display: none;
}

.page-content-navigation .page-content-navigation-navlink .mud-nav-link {
    border-left: none;
    border-right: 2px solid var(--mud-palette-action-disabled-background);
    color: var(--mud-palette-text-secondary);
}

.page-content-navigation .page-content-navigation-navlink .mud-nav-link .mud-nav-link-text {
    text-align: right;
    font-size: 16px;
    font-weight: 500;
}

/* custom css */

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* so truncate works correctly inside nested stuff */
.truncate-text-container {
    min-width: 0; 
}

.fake-menu-item {
    cursor: auto;
}

.fake-menu-item:hover {
    background-color: var(--mud-palette-white);
}

.mud-table-pagination-actions {
    user-select: none !important;
}

.mud-table-cell-custom-group {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text) !important;
}

.text-primary {
    color: var(--mud-palette-text-primary);
}

.text-secondary {
    color: var(--mud-palette-text-secondary);
}

.text-disabled {
    color: var(--mud-palette-text-disabled);
}

.m-child-6 > *:not(:last-child) {
    margin-right: 36px;
}

.checkbox-spacing .mud-icon-button {
    margin-left: -12px;
}

.required:after {
    content: "*";
    color: var(--mud-palette-error);
}

.capitalise-first-letter:first-letter {
    text-transform: capitalize;
}

.auth-delete {
    float: right;
    margin-top: 24px;
}

.checkbox-text .mud-typography-body1 {
    font-size: 0.8rem;
}

.width-100 {
    width: 100%;
}

.space-between-centre {
    justify-content: space-between;
    align-items: center;
}

.form-item:not(:last-child) {
    margin-bottom: 24px;
}

.banner {
    position: absolute;
    z-index: 1000;
    width: -webkit-fill-available;
}

.banner .mud-alert-message {
    width: 100%;
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.mud-table-container-table-fixed > table {
    table-layout: fixed;
}

.schedule-sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    /*border-bottom: 1px solid var(--mud-palette-table-lines); */
}

.break-word {
    overflow-wrap: break-word;
}

/* Marker class to remove placeholder text during generatePDFFromHTML.js
   Required because placeholder text appears as user-entered text due to missing styling */
.remove-placeholder-in-pdf-export {
}
