﻿:root {
    --surface-medium-emphasis: rgba(0, 0, 0, 0.6);
    --page-background-color: #F6F6F6;
}

.surface-medium-emphasis-text {
    color: var(--surface-medium-emphasis) !important;
}

.ck-content {
    background-color: transparent !important;
}

.ck-toolbar {
    background-color: transparent !important;
}


body, html, #app {
    height: 100%;
}

.login-background {
    background: linear-gradient(135deg, #f3f4f6 0%, #eaeaea 100%);
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

    .login-background .logo {
        width: 100%
    }

.gradient-background-top {
    height: 40px;
    width: calc(100% - 16px);
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 100;
}

.gradient-background-bottom {
    height: 40px;
    width: calc(100% - 16px);
    z-index: 100;
    position: absolute;
    bottom: 0px;
    left: 0
}

.picker-dialog .mud-dialog-actions,
.picker-dialog .mud-dialog-content,
.picker-dialog .mud-dialog-title {
    display: none !important;
}

.side-panel {
    top: var(--mud-appbar-height);
    position: fixed !important;
    height: calc(100vh - var(--mud-appbar-height)) !important;
}

    .side-panel.asset-side-panel {
        height: calc(100vh - var(--mud-appbar-height) - 62px) !important;
    }


.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

    .line-clamp.one-line {
        -webkit-line-clamp: 1;
    }

    .line-clamp.two-line {
        -webkit-line-clamp: 2;
    }

.break-word {
    overflow-wrap: break-word;
    word-break: break-word;
}

.mud-dialog-title {
    text-align: center;
}

.bold {
    font-weight: bold;
}

.border-grey {
    border: 1px solid #D3D3D3 !important;
}

.border-grey-dashed {
    border: 1px dashed rgba(0, 0, 0, 0.38) !important;
}

:disabled, .disabled, *[disabled] {
    cursor: not-allowed !important;
    pointer-events: unset !important;
}



.app-pdf-icon {
    fill: #a9281d !important;
}

.app-worddoc-icon {
    fill: #3a59b2 !important;
}

.app-excel-icon {
    fill: #3e6c47 !important;
}

.mud-avatar.mud-avatar-extra-large {
    width: 144px;
    height: 144px;
    font-size: 1.8rem;
}

.mud-list-item-icon {
    min-width: 36px !important;
}

.primary-text {
    color: var(--mud-palette-text-primary) !important;
}

.secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}

    .secondary-text[disabled] {
        opacity: 0.5;
    }

.appbar-text {
    color: var(--mud-palette-appbar-text) !important;
}

.mud-icon-size-xsmall {
    font-size: .75rem !important;
}

.page-header .page-title {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
    /*    display:flex;*/
    align-items: center;
}


.dynamic-detail-view .mud-input-label-inputcontrol {
    background-color: var(--mud-palette-background);
}

.mud-icon-root.mud-svg-icon .mud-svg-icon svg {
    fill: currentColor;
}

.mud-data-grid .mud-table-cell .column-header {
    display: inline-flex !important;
    opacity: .7 !important;
}

    .mud-data-grid .mud-table-cell .column-header .sortable-column-header {
        padding-right: 20px;
    }

.mud-data-grid .mud-table-cell {
    padding: 12px !important;
    border-bottom: none !important;
    height: 64px;
}

.mud-data-grid .grid-cell-nowrap-content p {
    white-space: nowrap;
}

.grid-cell-nowrap-content {
    white-space: nowrap;
}

.mud-data-grid .column-header p {
    white-space: nowrap;
}

.mud-data-grid .mud-table-cell .mud-table-cell-title p {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    padding-top: 2px;
}

.mud-tabs-toolbar {
    background-color: var(--mud-palette-background) !important;
}

.mud-icon-root.mud-svg-icon {
    fill-opacity: 1 !important;
}

svg path {
    stroke-opacity: 1 !important;
}

.dialog-content {
    overflow-y: auto;
    overflow-x: hidden;
}

    .dialog-content.height-small:not(.mud-dialog-fullscreen *) {
        max-height: calc(30vh - var(--mud-appbar-height));
    }

    .dialog-content.height-medium:not(.mud-dialog-fullscreen *) {
        max-height: calc(45vh - var(--mud-appbar-height));
    }

    .dialog-content.height-large:not(.mud-dialog-fullscreen *) {
        max-height: calc(60vh - var(--mud-appbar-height));
    }

    .dialog-content.height-full:not(.mud-dialog-fullscreen *) {
        max-height: calc(75vh - var(--mud-appbar-height));
    }

    .dialog-content .mud-grid-spacing-xs-3 {
        width: 100% !important;
        margin: 0 !important;
    }

.selected-outline {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

.mud-switch-base.mud-checked + .mud-switch-track {
    opacity: 1;
}

.mud-switch-button .mud-switch-thumb-small {
    background-color: #fff
}

.mud-switch-button .mud-switch-thumb-medium {
    background-color: #fff
}

.mud-switch-button .mud-switch-thumb-large {
    background-color: #fff
}

.radio-group > * > .mud-radio-group {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

    .radio-group > * > .mud-radio-group > .mud-radio-content-placement-end {
        margin-left: -8px;
        margin-inline-start: -8px;
        flex-grow: 1;
        max-width: 350px;
    }

@media (max-width: 960px) {
    .radio-group > * > .mud-radio-group {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .mud-select-input {
        padding: 6px !important;
    }

    .mud-table-root {
        table-layout: fixed !important;
    }

    .mud-xs-table .mud-table-cell:not(.gridview-column-actions) {
        flex-direction: column;
        align-items: flex-start;
    }

    .mud-xs-table .mud-table-cell:before {
        margin-bottom: 8px;
        font-weight: 400;
        color: var(--mud-palette-text-primary);
        opacity: 0.56;
    }

    .mud-data-grid .mud-table-cell:first-child {
        padding-top: 12px !important;
    }

    .mud-data-grid .mud-table-cell:last-child {
        padding-bottom: 12px !important;
    }

    .mud-data-grid .mud-table-cell {
        height: fit-content;
        padding: 8px 12px !important;
    }

    .page-title {
        font-size: 16px !important;
    }

    .page-header-chip {
        font-size: 10px !important;
    }

    .page-header-back-button > * > * > .mud-icon-size-small {
        font-size: 1rem !important;
    }
}

.transparent-background-container {
    background-color: transparent !important;
}

    .transparent-background-container div {
        background-color: transparent !important;
    }

.mud-xs-table .mud-table-cell {
    justify-content: unset !important;
}

    .mud-xs-table .mud-table-cell:not(.gridview-column-actions) {
        max-width: 98%;
        overflow-wrap: break-word;
        /*white-space: pre-line;*/
    }

        .mud-xs-table .mud-table-cell:not(.gridview-column-actions):before {
            width: 148px !important;
        }

    .mud-xs-table .mud-table-cell.gridview-column-actions:before {
        display: none !important;
    }

    .mud-xs-table .mud-table-cell.gridview-column-actions {
        display: flex !important;
        justify-content: flex-end !important;
    }

.flex-item-profile .mud-grid-item {
    max-height: fit-content;
    flex-basis: fit-content;
}

.department-treeview > * > .mud-icon-size-medium {
    font-size: .9rem !important;
}

.department-treeview .mud-menu > .mud-icon-button {
    padding: 4px !important;
}

.dialog.dialog-width-xs {
    max-width: 444px
}

.dialog.dialog-width-sm {
    max-width: 600px
}

.dialog.dialog-width-half-md {
    max-width: 700px;
}

.dialog.dialog-width-md {
    max-width: 960px;
}

.dialog.dialog-width-lg {
    max-width: 1280px
}

.dialog.dialog-width-xl {
    max-width: 1920px
}

.dialog.dialog-width-xxl {
    max-width: 2560px
}

.dialog.dialog-width-full {
    width: calc(100% - 64px)
}

.mud-tabs-toolbar-content {
    overflow-x: auto;
}

.mud-tabs-scroll-button {
    display: none;
}

/* Mud dialog fixed header START*/
/* See: https://github.com/MudBlazor/MudBlazor/issues/6704 */
.mud-dialog > .outline-none {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .mud-dialog > .outline-none > div:nth-of-type(4) {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

.mud-dialog .mud-dialog-content {
    overflow-y: auto;
}
/* Mud dialog fixed header END*/


/* ordered/unordered list fix START */

/* Hide native markers only for Quill items */
.htmlEditorContent ol > li[data-list],
.htmlEditorContent ul > li[data-list] {
    list-style: none;
}

.htmlEditorContent ol:has(> li[data-list]),
.htmlEditorContent ul:has(> li[data-list]) {
    margin-left: 1.25rem;
    padding-left: 0;
}

    .htmlEditorContent ol:has(> li[data-list]) > li[data-list],
    .htmlEditorContent ul:has(> li[data-list]) > li[data-list] {
        position: relative;
        padding-left: 1.4em;
    }

/* Reset the top-level counter for each Quill-ordered list */
.htmlEditorContent ol:has(> li[data-list="ordered"]) {
    counter-reset: l0;
}

    /* Level 0 */
    .htmlEditorContent
    ol:has(> li[data-list="ordered"]) > li[data-list="ordered"]:not([class*="ql-indent-"]) {
        counter-increment: l0;
        counter-reset: l1;
    }

        .htmlEditorContent
        ol:has(> li[data-list="ordered"]) > li[data-list="ordered"]:not([class*="ql-indent-"])::before {
            content: counter(l0) ". ";
            position: absolute;
            left: 0;
        }

    /* Level 1 */
    .htmlEditorContent
    ol:has(> li[data-list="ordered"]) > li[data-list="ordered"].ql-indent-1 {
        counter-increment: l1;
        counter-reset: l2;
        margin-left: 1.2rem;
    }

        .htmlEditorContent
        ol:has(> li[data-list="ordered"]) > li[data-list="ordered"].ql-indent-1::before {
            content: counter(l1, lower-alpha) ". ";
            position: absolute;
            left: 0;
        }

    /* Level 2 */
    .htmlEditorContent
    ol:has(> li[data-list="ordered"]) > li[data-list="ordered"].ql-indent-2 {
        counter-increment: l2;
        margin-left: 2.4rem;
    }

        .htmlEditorContent
        ol:has(> li[data-list="ordered"]) > li[data-list="ordered"].ql-indent-2::before {
            content: counter(l2, lower-roman) ". ";
            position: absolute;
            left: 0;
        }

/*  BULLETS */

/* Top-level bullets */
.htmlEditorContent * > li[data-list="bullet"]:not([class*="ql-indent-"])::before {
    content: "•  ";
    position: absolute;
    left: 0;
}

/* Indented bullets */
.htmlEditorContent * > li[data-list="bullet"].ql-indent-1 {
    margin-left: 1.2rem;
}

    .htmlEditorContent * > li[data-list="bullet"].ql-indent-1::before {
        content: "•  ";
        position: absolute;
        left: 0;
    }

.htmlEditorContent * > li[data-list="bullet"].ql-indent-2 {
    margin-left: 2.4rem;
}

    .htmlEditorContent * > li[data-list="bullet"].ql-indent-2::before {
        content: "•  ";
        position: absolute;
        left: 0;
    }

/* ordered/unordered list fix END */
