html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overscroll-behavior-y: contain;
}

a, .btn-link {
    color: #006bb7;
}

.bg-primary {
    background-color: #9d2235;
}

.text-primary {
    color: #9d2235;
}

.btn-primary {
    background: #9d2235;
    border: 2px solid #9d2235;
    color: #fff;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

h1.app-page-title {
    font-size: 2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
    margin-bottom: 0;
}

h1.app-page-title.smaller {
    font-size: 1.5rem;
}

.app-page-header-title-bar {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    margin-bottom: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

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

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.app-bar-header {
    height: 74px;
    min-height: 74px;
    display: flex;
    align-items: center;
    border-bottom-width: 1px;
    border-bottom-style: solid; /* use k-border-primary on the element*/
}

.app-page-background {
    /*    background: radial-gradient(20vw circle at 20%, at 0, #fff, rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0), #fff),rgba(var(--pfp-dark-primary-rgb), 0.1);*/
    /*    background: radial-gradient(20vw circle at 20% 0, #fff, rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0), #fff),rgba(var(--pfp-dark-primary-rgb), 0.1);*/
    background: radial-gradient(20vw circle at 20%, at 0, #fff, rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0), #fff),rgba(31, 7, 11, 0.1);
    background: radial-gradient(20vw circle at 20% 0, #fff, rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0), #fff),rgba(31, 7, 11, 0.1);
}

.my-10 {
    margin-top: .7rem !important;
    margin-bottom: .7rem !important
}

.py-02 {
    padding-top: .175rem !important;
    padding-bottom: .175rem !important;
}

.my-n10 {
    margin-top: -0.7rem !important;
    margin-bottom: -0.7rem !important;
}

.mx-n05 {
    margin-right: -0.35rem !important;
    margin-left: -0.35rem !important;
}

.flex-fill {
    flex: 1 1 auto !important;
}

.app-field {    
    min-width: 75px;
}

.app-field-label {
    font-size: 14px;
    color: #888;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-date-field {
    min-width: 150px;
    max-width: 150px;
}

.app-period-field {
    min-width: 175px;
    max-width: 175px;
}

.filter-button, .dialog-button {
    width: 75px;
}

.portfolio-selected-policy {
    display: flex;
    flex-direction: row;
    column-gap: 5px;
    align-items: center;
}

.portfolio-selected-policy-client {
    font-size: smaller;
}

.transactions-policy-dropdown > .k-list-item {
    border-bottom: 1px solid #ccc;
}

.portfolio-list-container {
    width: 100%;
}

.portfolio-list-container.with-border {
    margin-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.portfolio-list-container.as-row {
    display: flex;
    align-items: center;
}

div.portfolio-list-container:first-of-type {
    margin-top: 0;
}


.portfolio-list-policy-number {
}

.portfolio-list-policy-number.higher {
    height: 26px;
}

.portfolio-list-client-name {
    font-size: 12px;
    color: #888;
}

li.k-list-item.k-selected > div.portfolio-list-container > div.portfolio-list-policy-number > div.portfolio-list-client-name {
    color: #fff;
}

.portfolio-list-product-name {
    font-size: 12px;
    color: #888;
}

li.k-list-item.k-selected > div.portfolio-list-container > div.portfolio-list-product-name {
    color: #fff;
}

.portfolio-list-product-provider {
    font-size: 12px;
    color: #9d2235;
}

li.k-list-item.k-selected > div.portfolio-list-container > div.portfolio-list-product-provider {
    color: #fff;
}

.table-header-right-aligned {
    width: 100%;
    text-align: right;
}

.table-header-align-right {
    display: flex !important;
    justify-content: right;
}

.table-header-align-centre {
    display: flex !important;
    justify-content: center;
}

.app-justify-content-end {
    justify-content: end;
}

.app-bar-button {
    height: 51px;
    padding-left: 20px;
    padding-right: 20px;
    border-color: rgba(109,82,86,0.05);
    box-shadow: inset 0 0 0 1px rgba(109,82,86,0.5), 0 0 0 1rem rgba(255,255,255,0), 0 0 0.3rem rgba(101,101,101,0.05);
    color: #9d2235;
}

.app-bar-button:not(.default-cursor):hover {
    box-shadow: none;
    border: 1px solid black;
}

.app-bar-button > .k-button-icon {
    width: 1.5rem;
}

.app-bar-button > .k-button-text {
    padding-left: 10px;
    font-weight: bold;
}

.app-bar-button.default-cursor {
    cursor: default;
}

.page-nav-header {
    display: flex;
    flex-direction: row;
    height: 45px;
    align-items: center;
}

.page-nav-button {
    height: 100%;
    width: 85px;
}

.page-nav-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

a.page-nav-button {
    background-color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9d2235;
}

a.page-nav-button.active {
    background-color: #9d2235;
    color: #fff;
}

a.page-nav-button:first-of-type {
    border-top-left-radius: 5px;
}

a.page-nav-button:last-of-type {
    border-top-right-radius: 5px;
}

a.page-nav-button:hover:not(.active) {
    background-color: rgba(157, 34, 53, 0.1);
}

.nav-button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-button-inner-legend {
    font-size: small;
    margin-top: -2px;
}

.portfolio-groups-header-button {
    width: 75px;
}

div.k-dialog-actions > button.k-button {
    width: 75px;
    max-width: 75px;
}

div.k-dialog-title {
    align-items:center;
}

div.portfolio-groups-policy-listbox {
    gap: 1rem;
}

.full-width {
    width: 100%;
}

.no-text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-footer {
    margin-top: 1rem;
    background: rgba(31, 7, 11, 0.1);
    border-top-width: 1px;
    border-top-style: solid; /* use k-border-primary on the element*/
    font-size: 11px;
}

.app-footer > .container {
}

.app-footer-navbar {
    padding-top: 2.5rem;
}

.app-footer-navbar > a {
    text-decoration: underline;
    color: inherit;
}

.app-footer-text {
    padding-top: 2.1rem;
    padding-bottom: 2.1rem;
}

.general-notification {
    padding: 10px;
    z-index: 1000000;
    width: 95%;
}

.grid-toolbar-row {
    display: flex;
    flex-direction: row;
    align-content: end;
    padding: 0 7px;
}

.grid-single-column-row {
    display: flex;
    flex-direction: row;
}

button.k-button.grid-toolbar-icon-buton {
    border: none;
    background: none;
    padding: 0;
    width: 34px;
    height: 34px;
}

@media (min-width: 1200px) {
    div.container, div.container-lg, div.container-md, div.container-sm, div.container-xl {
        max-width: 1200px;
    }
}

.aligned-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-menu-button {
    height: 34px;
    width: 34px;
    padding: 0;
}

.filter-header-buttons, .group-header-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
}

.filter-header-button {
    cursor: pointer;
}

.group-header-button {
    cursor: pointer;
    width: 34px;
    text-align: center;
}


.portfolio-group-selector-row {
    display: flex;
    flex-direction: row;
    flex-flow: row nowrap;
    align-items: center;
}

.portfolio-group-dropdown > .k-input-inner, .policy-dropdown > .k-input-inner {
    width: 50px; /* Setting this so that the dropdown truncates the text properly */
}

.portfolio-group-selector-col {
    max-width: 41px;
    padding-left: 0;
}

.portfolio-group-selector-button {
    border: none;
    background: none;
    padding: 0;
    width: 29px;
    height: 29px;
}

.portfolio-group-selector-button:hover, .portfolio-group-selector-button:active {
    background: none;
    outline: none;
    border: none;
}

.notification-title {
    display: flex;
    flex-direction: row;
    flex-flow: nowrap;
    align-items: center;
    gap: 16px;
    padding: 8px;
    font-size:14px;
}

.notification-icon {
    min-width: 32px;
    min-height: 32px;
    text-align: center;
    align-content: center;
}

.notification-buttons {
    display: inline-flex;
    flex-flow: row nowrap;
    font-size: large;
    align-items: center;
}

.notification-button {
    padding: 0;
}

.notification-buttons > .divider {
    padding: 0 12px;
}

.app-switch-container {
    height: 60px;
    cursor:pointer;
}

.app-small-switch-col {
    max-width: 52px;
}

.app-switch.k-switch-off .k-switch-track {
    background-color: #ccc;
}

.fade-in-out {
    animation: fadeInOut 2s linear infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.25;
    }
}