
@media print {

    /* Force a new page *before* this element */
    .page-break-before {
        break-before: page;
        page-break-before: always; /* legacy */
    }

    /* Force a new page *after* this element */
    .page-break-after {
        break-after: page;
        page-break-after: always; /* legacy */
    }

    /* Avoid breaking inside this element */
    .no-page-break {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .no-print {
        display: none !important;
    }
}

.image-with-loader {
    background-image: url(/resources/loading.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 66%;
}

/* Missing images fix */
img.broken:before {
    background-image: url(/resources/missing-file.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 64px;
    display: block;
    background-color: #fff;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 64px;
    min-height: 64px;
}

.e-avatar-xsmall img.broken:before {
    background-size: 16px;
    min-width: 24px;
    min-height: 24px;
}


/* Close button */
.close-button {
    top: 8px;
    right: 8px;
    display: inline-block;
    background-color: #0002;
    padding: 4px;
    border-radius: 4px;
    min-width: 24px;
    min-height: 24px;
    align-content: center;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    color: white;
    position: absolute;
    z-index: 1;
}

.close-button:hover {
    background-color: #f002;
}

/* Grid */
.e-grid td.e-active {
    background-color: var(--selection-background);
}

/* Used to restrict the grid content to the view area, thus introducing a vertical scrollbar
.e-gridcontent {
    height: calc(100vh - 34px) !important;
}*/
.e-grid .e-gridcontent, .e-grid .e-gridheader {
    overflow: auto !important;
    width: fit-content;
}

.master-detail-grid .e-grid {
    border-radius: 0px;
    border-width: 0px;
}

.master-detail-grid .e-grid .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
    box-shadow: none;
}

.master-detail-grid .e-grid .e-tableborder {
    border-right: 0px none !important;
}

.e-grid.e-default .e-headercell, .e-grid.e-default .e-detailheadercell {
    border-right: 1px solid #e5e7eb;
}

.content .sf-grid > div.e-gridcontent td:not(.e-active) {
    border-right: 1px solid hsl(0 0% 98% / 1);
}

/*.e-grid.sf-grid .e-gridcontent {
    direction: rtl;
    overflow-x: hidden;
}

.e-grid.sf-grid .e-gridcontent > .e-content {
    overflow-y: scroll;
    overflow-x: hidden !important;
    scrollbar-width: thin;
}*/
.e-control.e-tooltip {
    font-size: inherit;
}

.e-grid .e-virtualtable {
    direction: ltr;
    position: relative !important;
    /*margin-left: -10px;*/
}

.non-details-overlapping-tooltip {
    max-width: calc(100vw - var(--detail-view-width) - 64px) !important;
}

/* Grid */
.content .sf-grid div.e-headercontent th.e-headercell:first-child,
.content .sf-grid > div.e-gridcontent td.e-rowcell:first-child {
    padding-left: 24px;
}

.e-table
{
    height: 55px;
}


.e-grid .e-gridheader {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 1;
}

.e-grid .e-emptyrow td {
    padding-left: 24px;
    text-align: center;
    padding-top: 32px;
    color: #bbb;
}

.e-grid .e-gridheader tr:first-child th {
    /*padding-left: 32px;*/
}

.e-data-form .e-button-left .e-btn, .e-data-form .e-button-right .e-btn, .e-data-form .e-button-center .e-btn, .e-data-form .e-button-stretch .e-btn {
    border-radius: 4px;
    padding: 4px 12px;
}

.validation-error-popup {
    display: none;
}

.validation-error-popup:has(.validation-message) {
    display: inline-block;
    position: relative;
    height: 0px;
    color: white;
    z-index: 10;
    top: 4px;
    bottom: 4px;
}


.validation-error-popup .validation-message {
    background-color: #c10000;
    color: white;
    border-radius: 4px 0px 0px 4px;
    padding: 2px 8px 2px 8px;
    font-style: normal;
    position: relative;
    left: -100%;
    top: 24px;
    cursor: default;
}

.vertically-scrollable {
    overflow-y: auto;
}

.e-grid .e-filtered::before {
    color: var(--color-primary-accent) !important;
    content: "\e735" !important;
    display: inline-block;
    transform: rotate(-90deg);
    margin-bottom: 6px;
}

.preserve-newline {
    white-space: break-spaces;
}

div .alert {
    border-radius: 0px;
}

/* Highlight */

@keyframes highlight {
    100% { color: var(--color-primary-accent); }
}

.highlighted {
    animation: highlight 0.35s forwards;
}

article .e-grid {
    border-style: none;
}

.label-icon {
    margin-right: 0.75rem;
    width: 12px;
    text-align: center;
}

/* Children alignment */
.horizontally-centered {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

/* Column headers */
.e-icons.e-columnmenu {
    display: inline-block;
    position: absolute;
    right: 20px;
    bottom: 10px;
    transform: rotate(90deg);
}

.e-sortfilterdiv.e-icons {
    position: absolute;
    left: 0px;
    bottom: 0px;
    display: inline-block;
    height: 20px;
    margin: 0px !important;
    width: 20px;
}

.e-headercelldiv {
    margin: 0px !important;
    padding: 0px !important;
}

.e-headercell {
    vertical-align: bottom;
    padding-bottom: 20px !important;
}

.e-sortfilterdiv.e-icon-descending:before, .e-sortfilterdiv.e-icon-ascending:before {
    color: var(--color-primary-accent) !important;
}

/* Add custom-header-align class to the grid (or parent) to 
    enable per-header alignment as per Syncfusion default behaviour */
*:not(.custom-header-align) .e-headercelldiv {
    text-align: center !important;
}

/* Min margin for the modal dialog */
.e-popup.e-popup-open.e-dialog {
    margin: 24px;
}

/* Loading */
.loading .e-icons:before {
    display: inline-block;
    content: "\f110" !important;
    color: #0004;
    animation: spinner 2s linear infinite;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Top screen title */
.upper-title {
    display: flex;
    color: #ffffff;
    height: 56px;
    padding-left: 32px;
    padding-right: 64px;
    font-size: 1.4rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(90deg, var(--color-secondary-accent), color-mix(in srgb, var(--color-secondary-accent), white 10%));
    text-shadow: 0px 0px 2px black;
}

/* Grid layout */
.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}