html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

#mainContent {
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Navbar styles */
.navbar-header {
    justify-content: space-between;
    width: 100%;
    min-height: 80px;
}

.navbar-header:hover a {
    text-decoration: none !important;
}

.breadcrumb-nav {
    background-color: #F4F4F4;
    padding: 8px 0;
}

ul.breadcrumb {
    margin-top: 0;
    margin-bottom: 0;
}

/* Site logo and title */
.siteLogo {
    width: 18.75rem; /* 300px */
    margin-right: 1.25rem; /* 20px */
}

.siteTitle {
    flex-basis: 0;
    color: var(--portalThemeColor6) !important;
}

/* Wrapper body */
.wrapper-body {
    min-height: revert;
}

/* Footer styles */
.footer {
    margin-top: auto;
}

.footerSubheading {
    font-size: 1.4rem;
    color: var(--portalThemeColor7);
}

.footerIcon {
    border-radius: 50%;
    height: 2.125rem; /* 34px */
    width: 2.125rem; /* 34px */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--portalThemeColor7);
}

.footerIcon > i {
    color: var(--portalThemeColor6);
}

.footerLink:hover,
.footerLink:focus {
    color: var(--portalThemeColor5);
}

.footerLink, .footerLabel {
    color: var(--portalThemeColor7) !important;
}

/* Home page and generic styling */
h3 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.167;
    margin-top: 2rem;
}

.aboutPortal h3:first-of-type {
    margin-top: 0;
}

.aboutPortal p,
.aboutPortal li {
    font-size: 1rem;
    color: var(--portalThemeColor6);
}

.aboutPortal a {
    font-size: 1rem;
    color: var(--portalThemeColor3);
}

#loadingOverlay {
    justify-content: center;
    display: flex;
}

.modal.show {
    display: flex !important;
    align-items: center;
}

/* Card styles */
.card {
    border-radius: 0.3rem;
    cursor: pointer;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
}

.card:hover, .card:focus {
    text-decoration: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: underline;
}

.card-text {
    font-size: 1rem;
}

.card-arrow,
.card-success {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-arrow {
    border: 1px solid var(--portalThemeColor2);
    height: 32px;
    width: 32px;
}

.card-success {
    border: 2px solid green;
    height: 30px;
    width: 30px;
}

.card-success i {
    color: green;
    font-size: 16px
}

.card:hover, .card:focus {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.08);
}

.card:hover .card-arrow,
.card:focus .card-arrow {
    background-color: var(--portalThemeColor2);
}

a.card:not(.btn):hover,
a.card:not(.btn):focus {
    text-decoration: none !important;
}

/* Media queries */
@media (min-width: 75rem) { /* 1200px */
    .headerImage {
        display: block;
        height: 10rem; /* 160px */
    }
    .navbar, .navbar-header {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 74.9375rem) { /* 1199px */
    .headerImage {
        display: none;
    }
}

/* Entity list styling */
.view-grid tr {
    vertical-align: middle;
}

.entitylist .view-empty {
    text-align: center;
}

.entitylist .view-select {
    float: right !important; /* Ensure all view selectors float right */
}

/* Make buttons inline */
.view-grid .dropdown.action>.btn {
    display: none;
}
.view-grid .dropdown.action .dropdown-menu {
    display: flex;
    gap: 5px;
    position: static !important;
    border: 0;
    background: transparent;
    text-align: center;
    max-width: 95px;
    min-width: 95px;
    width: 95px;
}
.view-grid .dropdown.action .dropdown-menu li {
    display: inline-block;
    text-align: center;
}
.view-grid .dropdown.action .dropdown-menu li a {
    font-size: 0;
    padding: 2px;
    margin: 0;
}
.view-grid .dropdown.action .dropdown-menu li a>span {
    font-size: 18px;
}
.view-grid .dropdown.action .dropdown-menu li a:hover {
    color: #008C95;
    background: transparent;
}

/* Entity form styling */
.crmEntityFormView {
    border: none;
}

.crmEntityFormView .tab-title {
    border: none;
    margin-bottom: 20px;
}

.crmEntityFormView .entity-form .cell:first-child {
    padding-left: 5px;
    padding-right: 5px;
}

/* Form styling */
.css-1l0r181 { /* Flex form + BPF */
    gap: 1.25rem; /* 20px */
    margin-top: 0.625rem; /* 10px */
}

.css-7kn5sz { /* Form */
    padding: 0 !important;
}

h3, h3.MuiTypography-h3 { /* Form Title */
    font-family: 'Roboto', sans-serif;
    color: var(--portalThemeColor6);
    margin-bottom: 0.75rem; /* 12px */
    padding: 0;
}

@media (min-width: 771px) {
    .css-7kn5sz > .css-0:first-child h5.MuiTypography-h5 { /* First section header of page */
        margin-top: 0;
    }
}

h5.MuiTypography-h5 { /* Section header */
    font-family: 'Roboto', sans-serif;
    color: var(--portalThemeColor6);
    margin-top: 2rem;
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

h5.MuiTypography-h5 + span p, /* Section description */
h5.MuiTypography-h5 + span a {
    font-size: 1rem;
}

h5.MuiTypography-h5 + span > p:last-child {
    margin-bottom: 0 !important;
}

.css-zxbdg4 { /* Section box */
    display: flex;
    flex-direction: column;
}

h6, h6.MuiTypography-h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--vic-blue) !important;
    margin-top: 0.656rem !important; /* 10.5px */
    margin-bottom: 0.656rem !important; /* 10.5px */
}

.MuiTypography-subtitle1 { /* Field label */
    font-family: 'Roboto', sans-serif !important;
    padding-right: 0.188rem; /* 3px */
}

.MuiAlertTitle-root, /* Alert header */
.MuiTypography-body2, /* Alert content */
.MuiTypography-body2 p,
.MuiTypography-body2 a,
.MuiTypography-body2 li {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem !important;
}

.MuiTypography-body2 a {
    color: var(--portalThemeColor3);
    text-decoration: underline;
}

.MuiTypography-body2 a:hover,
.MuiTypography-body2 a:focus
.MuiTypography-body2 a:focus {
    color: var(--portalThemeColor9);
    text-decoration: underline;
}

.css-cn1sex { /* Alert box */
    padding: 0.75rem 0 !important; /* 12px */
}

.MuiAlert-root {
    padding: 1.25rem 0.938rem 0.313rem 0.938rem !important; /* 20px 15px 5px 15px */
}

.MuiAlert-icon {
    padding-top: 0.375rem; /* 6px */
}

.css-mmk6yv { /* Question flexbox */
    gap: 0.375rem !important; /* 6px */
}

.MuiFormHelperText-root { /* Question description */
    margin-top: 0.625rem !important; /* 10px */
}

.css-1724h50 ul { /* Question description bullets */
    padding-left: 1.125rem; /* 18px */
    margin-bottom: 0;
}

.css-1upilqn { /* Checkbox question */
    margin-bottom: 0 !important;
}

.css-9bumqw { /* Check-box label span */
    margin-left: 0.625rem !important; /* 10px */
}

.css-9bumqw .css-1158an5 { /* Label for checkbox */
    font-weight: 400 !important;
}

.MuiInputBase-input, .PrivateSwitchBase-input, .MuiInputBase-root {
    background-color: white !important;
}

/* Form Submission Confirmation */
.css-196mib3 { /* Submission flexbox */
    gap: 1.25rem; /* 20px */
}

.css-167p8it { /* Icon */
    margin-top: 1.875rem; /* 30px */
}