@font-face {
    font-family: 'kanit';
    src: url('../fonts/kanit/kanit-Light.ttf') format('truetype')
}

html, body {
    font-family: kanit;
    color: var(--color-dark);
    background-color: var(--color-content-background);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

div.form-control {
    background-color: #dddddd;
}

input.form-control:disabled {
    background-color: #dddddd;
}

.content {
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.spinner-center {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.revi-spinner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    padding-left: 240px;
    padding-right: 0px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.revi-spinner-background {
    background: #eeeeeeab;
}

.bold {
    font-weight: 600;
}

.multiline {
    white-space: pre-wrap !important;
}

.hide-text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.no-shadow {
    box-shadow: none !important;
}

.mud-dialog-container .revi-spinner {
    padding-left: 0px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.form-control:focus {
    box-shadow: none;
}

input[type="file"] {
    width: 100%;
}

/* Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .checkbox-container label {
        font-size: 1rem;
        padding-left: 1rem;
        cursor: pointer;
    }

.checkmark {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    height: 38px;
    width: 38px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.text-center .checkbox-container .checkmark {
    left: calc(50% - 19px);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #dddddd;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 14px;
    top: 6px;
    width: 9px;
    height: 18px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* Custom */
.content-page {
    height: calc(100vh - 4rem);
    background-color: var(--color-content-background);
    padding: 1rem;
    display: block;
    overflow-y: auto;
    margin: 0px;
}

.content-page-header {
    height: 5rem;
}

    .content-page-header .content-page-header-text {
        font-size: 1.2rem;
        font-weight: 600;
        height: 3rem;
        display: flex;
        justify-content: start;
        align-items: center;
    }

    .content-page-header .content-page-header-buttons {
        min-width: 770px;
    }

    .content-page-header .content-page-header-buttons, .revi-list .revi-list-header-buttons {
        text-align: end;
        margin-top: auto;
        margin-bottom: auto;
    }

        .content-page-header .content-page-header-buttons button:not(:first-child), .revi-list .revi-list-header-buttons button:not(:first-child) {
            margin-left: 1rem;
        }

        .content-page-header .content-page-header-buttons button.mud-icon-button, .revi-list .revi-list-header-buttons button.mud-icon-button {
            padding: 8px !important;
        }

.content-page-content {
    padding-top: 0rem;
    height: calc(100% - 5rem);
    overflow-y: auto;
}

.content-page-body {
    height: calc(100vh - 9rem);
    overflow-y: auto;
}

.seperator {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    height: 1px;
    background-color: var(--color-dark);
}

.adornment-top-right .mud-input-adornment {
    position: absolute;
    top: 18px;
    right: 14px;
}

    .adornment-top-right .mud-input-adornment .mud-icon-button {
        padding: 0.25rem;
    }

.standard-text {
    font-size: 1rem;
}

.revi-list {
    background-color: #ffffff;
    box-shadow: 1px 4px 5px -1px rgb(0,0,0, 0.2);
    border-radius: 5px;
    height: calc(100vh - 180px);
    overflow: auto;
}

    .revi-list .revi-list-filters {
        text-align: end;
    }

        .revi-list .revi-list-filters .revi-list-filter {
            display: inline-block;
            text-align: center;
            padding-left: 2rem;
            padding-right: 2rem;
        }

    .revi-list .list-header {
        position: sticky;
        top: 0;
        background-color: #ffffff;
        z-index: 2;
        padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    }

        .revi-list .list-header .mud-checkbox .mud-icon-button {
            padding: 0.5rem;
        }

    .revi-list.dense .list-header {
        padding: 0.5rem 0.75rem;
    }

    .revi-list .list-header .list-header-header {
        padding: 0rem 1rem;
    }

    .revi-list.dense .list-header .list-header-header {
        padding: 0rem;
    }

    .revi-list .list-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .revi-list.dense .list-content {
        padding-left: 0px;
        padding-right: 0px;
    }

    .revi-list.revi-list-tabs {
        height: calc(100vh - 17rem);
        box-shadow: none;
    }

    .revi-list.revi-list-half {
        height: calc(50vh - 100px);
        overflow: auto;
    }

    .revi-list.revi-list-quarter {
        height: calc(25vh - 100px);
        overflow: auto;
    }

    .revi-list.dense .alert-btn {
        padding: 0px;
    }

.accounts-list {
    width: 30rem;
}

    .accounts-list .revi-list.revi-list-half {
        height: calc(50vh - 7rem);
    }

.dialog-list {
    height: calc(80vh - 200px);
    max-height: 500px;
    overflow: auto;
    padding-top: 0px !important;
}

    .dialog-list .list-header {
        position: sticky;
        top: 0;
        background-color: #ffffff;
    }

        .dialog-list .list-header .list-header-content {
            padding: 8px 0px 16px 0px;
        }

.mud-tabs .revi-list .list-content {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    overflow-x: hidden;
}

.mud-tabs-panels.full-height {
    height: calc(100vh - 14.5rem);
    overflow: auto;
}

.accounting-report-message {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

    .accounting-report-message.question {
        background-color: var(--color-medium);
        color: white;
    }

    .accounting-report-message.answer {
        background-color: #bbbbbb;
    }

.case-container {
    height: calc(100% - 14rem);
    padding: 0rem 1rem;
    overflow-y: auto;
}

    .case-container.closed {
        max-height: calc(100vh - 10rem);
    }

    .case-container .case-message {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background-color: #cccccc;
    }

        .case-container .case-message .case-message-text {
            padding-top: 1rem;
        }

        .case-container .case-message .case-message-user, .case-container .case-message .case-message-date {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .case-container .case-message .case-message-date {
            text-align: end;
        }

        .case-container .case-message .case-message-status {
            margin-top: auto;
            text-align: end;
            font-size: 0.7rem;
        }

        .case-container .case-message .case-message-file {
            display: inline-block;
            padding: 5px;
            margin: 5px 5px 0px 0px;
            border-radius: 5px;
            border: 1px solid #555555;
            font-size: 0.7rem;
            cursor: pointer;
        }

            .case-container .case-message .case-message-file:hover {
                background-color: #555555;
                color: #cccccc;
            }

    .case-container .current-user {
        justify-content: flex-end !important;
    }

        .case-container .current-user .case-message {
            background-color: var(--color-medium);
            color: #dddddd;
        }

            .case-container .current-user .case-message .case-message-file {
                border: 1px solid #cccccc;
            }

                .case-container .current-user .case-message .case-message-file:hover {
                    background-color: #cccccc;
                    color: var(--color-medium);
                }

.new-case-message-container textarea {
    min-height: 100px;
}

.case-new-message {
    display: inline-block;
    float: inline-end;
    font-size: 0.75rem;
    background-color: var(--color-medium);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
}


.top-bar {
    background-color: var(--color-dark);
    color: #ffffff;
    height: 60px;
}

    .top-bar .top-bar-item {
        display: inline-block;
        padding: 10px 10px 10px 30px;
    }

        .top-bar .top-bar-item a {
            color: #ffffff;
            text-decoration: none;
        }

            .top-bar .top-bar-item a:hover {
                color: #ffffff;
                opacity: 0.8;
                cursor: pointer;
            }

.side-menu {
    height: calc(100vh - 60px);
    background-color: var(--color-medium);
    position: relative;
}

    .side-menu .menu-item {
        height: 50px;
        line-height: 50px;
        padding: 0px;
        border-bottom: 3px solid var(--color-light);
    }

        .side-menu .menu-item.menu-item-bottom {
            position: absolute;
            bottom: 3px;
            border-bottom: none;
            border-top: 3px solid var(--color-light);
        }

    .side-menu a {
        display: block;
        height: 100%;
        color: #ffffff;
        text-decoration: none;
        padding-left: 16px;
        background-color: var(--color-medium);
    }

        .side-menu a span {
            padding-left: 20px;
        }

        .side-menu a:hover {
            background-color: var(--color-light);
        }

.login-body {
    height: 100vh;
    width: 100vw;
    background-color: #eeeeee;
}

.login-container {
    padding: 20px 20px 20px 20px;
    width: 300px;
    box-shadow: 0 3px 15px 0 rgba(0,0,0,.1);
    position: absolute;
    top: calc(50vh - 100px);
    left: calc(50vw - 150px);
    background-color: #ffffff;
}

    .login-container input, .login-container input:focus {
        background-color: #eeeeee;
        border: none;
        border-radius: 0px;
        padding: 0.25rem 1rem !important;
        height: 2rem !important;
    }

    .login-container button {
        border-radius: 0px;
    }

.login-container-block {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #eeeeee;
    opacity: 0.6
}

.login-forgotten-password {
    font-size: 0.75rem;
    cursor: pointer;
    color: #555555;
    text-decoration: underline;
}

.pointer {
    cursor: pointer;
}

.header {
    font-size: 1.25rem;
}

.icon {
    color: var(--color-icon);
    cursor: pointer;
    font-size: 16px;
}

.icon-on {
    color: #2a8b32 !important;
}

.icon-pdf {
    color: #f2594b !important;
}

.icon-success {
    color: #008d13;
}

.icon-warning {
    color: #ffca00;
}

.icon-danger {
    color: #d10000;
}

.delete-container {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    display: inline-block
}

.revi-log-table {
    max-height: calc(100vh - 170px);
    overflow-x: hidden;
    overflow-y: auto;
}

.revi-log {
}

    .revi-log .revi-log-header {
        font-weight: bold;
        padding-bottom: 8px;
        font-size: 14px;
    }

    .revi-log .revi-log-content {
        font-style: italic;
        white-space: pre-wrap;
    }

.revi-file {
    border-radius: 5px;
    border: 1px solid #aaaaaa;
    background-color: #eeeeee;
    cursor: pointer;
    height: 100%;
}

    .revi-file:hover {
        border: 1px solid #aaaaaa;
        background-color: #dddddd;
    }

    .revi-file .revi-file-text {
        padding: 10px;
        overflow: hidden;
        margin-top: auto !important;
        margin-bottom: auto !important;
        white-space: nowrap;
        font-size: 12px;
        height: 40px;
        display: flex;
    }

    .revi-file .revi-file-icon {
        text-align: end;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

.revi-box {
    background-color: var(--color-tab-content);
    border: 1px solid var(--color-tab-header);
    border-radius: 5px;
    padding: 10px;
}

.revi-paper {
    background-color: #ffffff;
    box-shadow: 1px 4px 5px -1px rgb(0,0,0, 0.2);
    border-radius: 5px;
    padding: 1rem;
}

.revi-section {
    background-color: #eeeeee;
    border-radius: 5px;
    padding: 1rem;
}

.revi-paper.full-height {
    height: calc(100% - 4px);
}

.revi-statistics {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    position: relative;
}

    .revi-statistics.h-1 {
        height: calc((100vh - 11rem) * 0.25 - 12px);
        padding: 20px;
        min-height: 220px;
    }

    .revi-statistics.h-2 {
        height: calc((100vh - 11rem) * 0.5 - 12px);
        padding: 20px;
        min-height: 452px;
    }

    .revi-statistics.h-3 {
        height: calc((100vh - 11rem) * 0.75 - 12px);
        padding: 20px;
        min-height: 684px;
    }

    .revi-statistics .revi-statistics-header {
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center !important;
        font-size: 1.2rem;
    }

    .revi-statistics .revi-statistics-content {
        height: calc(100% - 100px);
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        font-size: 2.5rem;
    }

        .revi-statistics .revi-statistics-content.small-text {
            font-size: 1.5rem;
        }

    .revi-statistics .revi-statistics-footer {
        height: 50px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        font-size: 1.5rem;
    }

    .revi-statistics .revi-statistics-content.no-footer {
        height: calc(100% - 50px);
    }

        .revi-statistics .revi-statistics-content.no-footer.no-header {
            height: calc(100%);
        }


    .revi-statistics .revi-statistics-status-header {
        font-size: 1.2rem;
        padding-bottom: 0.5rem;
    }


    .revi-statistics .revi-statistics-status-box {
        border-radius: 5px;
        padding: 2px;
        border: 1px solid #eeeeee;
        height: 100%;
        max-height: 6rem;
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box.success {
        border-bottom: 5px solid var(--color-success-muted);
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box.warning {
        border-bottom: 5px solid var(--color-warning-muted);
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box.error {
        border-bottom: 5px solid var(--color-error-muted);
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box .revi-statistics-status-box-header {
        font-size: 1rem;
        height: 1.5rem;
        align-content: center;
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box .revi-statistics-status-box-content {
        font-size: 1.5rem;
        height: calc(100% - 1.5rem);
        align-content: center;
    }

    .revi-statistics .revi-statistics-warning {
        height: 20%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center !important;
        font-size: 1rem;
        color: #d72c2c
    }

    .revi-statistics .revi-statistics-link-icon {
        position: absolute;
        bottom: 10px;
        right: 10px;
        color: #767676;
    }

    .revi-statistics.h-2 .revi-statistics-warning {
        height: calc(20% - 0.5rem);
    }

    .revi-statistics .revi-statistics-content .revi-statistics-content-text {
        font-size: 1rem;
    }

.revi-statistics-histogram-vertical {
    height: 100%;
}

    .revi-statistics-histogram-vertical .revi-statistics-bar-container {
        padding-bottom: 3px;
        padding-top: 3px;
    }

    .revi-statistics-histogram-vertical .revi-statistics-bar {
        height: 100%;
    }

    .revi-statistics-histogram-vertical .revi-statistics-bar-name {
        overflow-x: hidden;
        white-space: nowrap;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

.revi-statistics-histogram-horizontal {
    height: calc(100% - 50px);
}

    .revi-statistics-histogram-horizontal .revi-statistics-bar-container {
        position: relative;
        padding-left: 2px;
        padding-right: 2px;
        height: calc(100% - 30px);
    }

    .revi-statistics-histogram-horizontal .revi-statistics-bar {
        position: absolute;
        bottom: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

        .revi-statistics-histogram-horizontal .revi-statistics-bar .revi-statistics-bar-text {
            color: #ffffff;
            font-weight: bold;
        }

    .revi-statistics-histogram-horizontal .revi-statistics-bar-name {
        overflow-x: hidden;
        text-align: center !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
        padding: 5px;
    }

.revi-statistics-bar {
    background-color: var(--color-light);
}

    .revi-statistics-bar.current {
        background-color: var(--color-medium);
    }

    .revi-statistics-bar.calculated {
        opacity: 0.6;
        background-color: var(--color-medium);
    }

/* BUTTONS */
.btn-modal {
    width: 100px;
    float: right;
}

.btn-large {
    height: 5rem !important;
}

.btn-standard {
    background-color: var(--color-medium);
    color: #ffffff;
}

    .btn-standard:hover, .btn-standard:active, .btn-standard:focus {
        background-color: var(--color-light);
        box-shadow: none !important;
        color: #ffffff;
    }

    .btn-standard:disabled {
        background-color: var(--color-medium);
        opacity: 0.4;
        box-shadow: none !important;
        color: #ffffff;
    }

.btn-cancel {
    background-color: var(--color-cancel);
    color: #ffffff;
}

    .btn-cancel:hover, .btn-close:active, .btn-close:focus {
        background-color: var(--color-cancel-alt);
        box-shadow: none !important;
        color: #ffffff;
    }

    .btn-cancel:disabled {
        background-color: var(--color-cancel);
        opacity: 0.4;
        box-shadow: none !important;
        color: #ffffff;
    }

.mud-alert.alert-btn {
    cursor: pointer;
    padding: 0.25rem;
}

    .mud-alert.alert-btn:hover {
        background-color: #ECECEC;
    }

    .mud-alert.alert-btn.mud-alert-filled-error:hover {
        background-color: #d95858;
    }

    .mud-alert.alert-btn .mud-checkbox .mud-button-root.mud-icon-button {
        padding: 0px !important;
        cursor: pointer;
    }

        .mud-alert.alert-btn .mud-checkbox .mud-button-root.mud-icon-button.mud-readonly:hover {
            background-color: #ECECEC !important;
        }

.mud-alert.highlight, .mud-alert.highlight:hover, .mud-alert.selected, .mud-alert.selected:hover {
    background-color: #bdd5c7;
}

.mud-alert.error, .mud-alert.error:hover {
    background-color: #e7bbbb;
}

.mud-alert.highlight .mud-typography {
    font-weight: 600;
}

/* TABLES */
.simple-table-container {
    overflow: auto;
}

.revi-table-container {
    max-height: calc(100vh - 200px);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 1px 4px 5px -1px rgb(0,0,0, 0.2);
}

.revi-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

    .revi-table.table-border {
        border: 1px solid var(--color-dark) !important;
    }

    .revi-table.mud-simple-table table * tr > td {
        border-bottom: none !important;
    }

    .revi-table tr.table-border {
        border-bottom: 1px solid var(--color-dark) !important;
    }

    .revi-table.row-border table * tr > th, .revi-table.row-border table * tr:not(:last-child) > td {
        border-bottom: 1px solid var(--color-dark) !important;
    }

    .revi-table .w-percent {
        width: 75px;
    }

    .revi-table .w-amount {
        width: 130px;
    }

.revi-invoice-line-table {
    max-height: calc(100vh - 400px);
    overflow-x: hidden;
    overflow-y: auto;
}

.receipt-file-image {
    max-height: calc(50vh - 7rem);
    background-color: #ffffff;
    border: none !important;
    position: relative;
    max-width: 800px;
}

    .receipt-file-image.receipt-file-image-pdf {
        width: 100%;
        min-height: calc(50vh - 7rem);
    }

    .receipt-file-image .receipt-file-image-reset-button {
        position: absolute;
        z-index: 999;
        top: 0;
        right: 0;
        height: 40px;
        width: 40px;
        border: none;
        background-color: var(--color-medium);
        color: #ffffff;
        border-bottom-left-radius: 10px;
        padding-left: 8px;
        padding-top: 4px;
    }

.receipt-table {
    max-height: calc(50vh - 8rem);
}

.revi-notifications {
    position: relative;
}

    .revi-notifications .revi-notifications-counter {
        position: absolute;
        top: 1rem;
        left: 0.5rem;
        background-color: #cb4343;
        border-radius: 50%;
        font-size: 0.75rem;
        width: 1.1rem;
        height: 1.1rem;
        text-align: center;
    }

.revi-notifications-items {
    position: absolute;
    top: 4.5rem;
    right: 0.5rem;
    z-index: 9999;
    background-color: #ffffff;
    color: var(--color-dark);
    width: 250px;
    text-align: left;
    border: 1px solid var(--color-dark);
    border-radius: 5px;
}

    .revi-notifications-items .revi-notifications-item {
        padding: 1rem;
        color: var(--color-dark);
        display: block;
    }

/* RECEIPTS*/
.receipt-line {
    padding-bottom: 0.25rem;
}

    .receipt-line .mud-alert-message {
        padding: 0px !important;
    }

    .receipt-line .mud-input-control {
        margin-top: 0px;
    }

        .receipt-line .mud-input-control .mud-input-slot {
            padding: 0.5rem !important;
            font-size: 0.875rem !important;
        }

/*TABS*/
.mud-tabs .panel-full-heigth {
    max-height: calc(100% - 48px);
    overflow-y: auto;
}


/*UPLOAD*/
.upload-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #aaaaaa;
    color: #aaaaaa;
    font-weight: 600;
    width: 100%;
    text-align: center;
    height: 3rem;
    min-height: 3rem;
    cursor: pointer;
    border-radius: 5px;
}

    td.upload-file label, td.upload-file .new-file, td.upload-file .file, .upload-file.small label {
        height: 38px;
    }

    .upload-file label, .upload-file input {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
        justify-content: center;
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .upload-file .new-file {
        cursor: default;
        border: 2px dashed #666666;
        color: #666666;
        flex-direction: row;
    }

    .upload-file .file {
        cursor: default;
    }

    .upload-file .icon {
        cursor: pointer;
        font-size: 1rem;
    }

    .upload-file input {
        opacity: 0;
        position: absolute;
        z-index: -1;
        width: 0%;
    }

    .upload-file.file-drag {
        border: 4px dashed var(--color-light);
        color: var(--color-light) !important;
    }

        .upload-file.file-drag .mud-icon-root {
            fill: var(--color-light);
        }

.upload-file-infomation {
}

    .upload-file-infomation:has(.upload-file-infomation-image-pdf) {
        height: calc(100% - 280px) !important;
    }

    .upload-file-infomation .upload-file-infomation-image img {
        max-width: 100%;
    }

.uploaded-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #aaaaaa;
    color: #aaaaaa;
    font-weight: 600;
    width: 100%;
    height: 3rem !important;
    border-radius: 5px;
}

    .uploaded-file:hover {
        background-color: #eeeeee;
        cursor: pointer;
    }

    .uploaded-file.selected {
        background-color: #aaaaaa;
    }

.accounting-report-message .uploaded-file {
    height: auto !important;
    min-height: 2rem !important;
    width: fit-content;
    display: flex;
    float: inline-end;
    white-space: pre-wrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 100%;
    background-color: #eeeeee;
    border: 2px solid #aaaaaa;
}

    .accounting-report-message .uploaded-file:hover {
        background-color: #dddddd;
        cursor: pointer;
    }

.attached-file {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid #dddddd;
    color: #666666;
    background-color: #ffffff;
    font-weight: 600;
    width: 100%;
    text-align: center;
    height: 38px;
    margin: 0px;
    padding: 5px;
    border-radius: 5px;
}

    .attached-file .file-name {
        font-size: 1rem;
        font-weight: 400;
        text-align: left;
        overflow: hidden;
        text-wrap: nowrap;
    }

    .attached-file .file-icon {
        text-align: right;
        cursor: pointer;
    }

.journal-line {
    padding: 0.5rem;
    border: 1px solid #eeeeee;
    border-radius: 5px;
}

/* Widths */
.w-icon {
    width: 60px;
}

.w-quantity-input {
    width: 75px;
}

.w-amount-input {
    width: 120px;
}

.w-amount-with-adornment-input {
    width: 150px;
}

.w-date-input {
    width: 175px;
}

.w-date-with-clear-input {
    width: 200px;
}

.w-selector-input {
    width: 200px;
}

.w-phone-input {
    width: 130px;
}

.revi-list .w-sm-list {
    width: 75px;
}

.revi-list .w-md-list {
    width: 100px;
}

.revi-list .w-lg-list {
    width: 150px;
}

.revi-list .w-xl-list {
    width: 200px;
}

.revi-list .w-amount-list {
    width: 125px;
}

.large-screen {
    display: initial;
}

/*Small screen*/
@media (max-width: 1199.9px) {
    .revi-statistics .revi-statistics-header {
        font-size: 1rem !important;
    }

    .revi-statistics .revi-statistics-content {
        font-size: 1.75rem !important;
    }

    .revi-statistics .revi-statistics-status-box-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box .revi-statistics-status-box-header, .revi-statistics .revi-statistics-content .revi-list {
        font-size: 0.75rem !important;
    }

    .revi-statistics .revi-statistics-content .revi-statistics-status-box .revi-statistics-status-box-content {
        font-size: 1.5rem !important;
    }

    .revi-statistics .mud-typography-body1 {
        font-size: .75rem !important;
    }

    .revi-statistics .mud-timeline-item-dot.mud-timeline-dot-size-large {
        width: 40px;
        height: 40px;
    }

    .content-page-header-buttons {
        min-width: auto !important;
    }

    .large-screen {
        display: none !important;
    }
}

/*Very large screen*/
@media (min-width: 1819.9px) {
    .col-xxxl-3 {
        width: 25% !important;
    }

    .col-xxxl-4 {
        width: 33.33333333% !important;
    }

    .col-xxxl-5 {
        width: 41.66666667% !important;
    }

    .col-xxxl-6 {
        width: 50% !important;
    }

    .col-xxxl-7 {
        width: 58.33333333% !important
    }

    .col-xxxl-8 {
        width: 66.66666667% !important
    }

    .col-xxxl-9 {
        width: 75% !important;
    }

    .col-xxxl-12 {
        width: 100% !important;
    }

    .receipt-edit .revi-list-half {
        height: calc(100vh - 12rem);
    }

    .receipt-edit .receipt-file-image {
        max-height: calc(50vh - 7rem);
    }

        .receipt-edit .receipt-file-image.receipt-file-image-pdf {
            min-height: calc(50vh - 1rem);
        }

        .receipt-edit .receipt-file-image.full-height {
            max-height: calc(100vh - 12.25rem);
        }

        .receipt-edit .receipt-file-image.receipt-file-image-pdf.full-height {
            min-height: calc(100vh - 12.25rem);
        }

    .receipt-edit .mud-button {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        min-width: 100px;
    }

    .receipt-edit .accounts-list {
        padding-top: 9px;
        width: 100% !important;
    }

        .receipt-edit .accounts-list .revi-list.revi-list-half {
            height: calc(50vh - 12rem);
        }
}

.split-receipt-container {
    flex-wrap: wrap;
    display: flex;
    justify-content: start
}

.split-receipt-page {
    height: 42rem;
    width: 32rem;
    position: relative;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid #cccccc;
    padding: 0.5rem;
}

    .split-receipt-page.split-receipt-page-deleted {
        background-color: #eeeeee;
    }

        .split-receipt-page.split-receipt-page-deleted img {
            opacity: 0.2;
        }

.split-receipt-page-delete-button {
    position: absolute;
    top: -8px;
    right: -8px;
}

.split-receipt-cut-container {
    position: relative;
    padding: 1rem 1.5rem 1rem 1.5rem;
    cursor: pointer;
}

    .split-receipt-cut-container:hover .split-receipt-cut-line {
        border-left: 3px dashed var(--mud-palette-primary-lighten);
    }

    .split-receipt-cut-container:hover .split-receipt-cut-button {
        color: var(--mud-palette-primary-lighten);
    }

    .split-receipt-cut-container.split-receipt-cut-container-selected .split-receipt-cut-line {
        border-left: 3px solid var(--mud-palette-primary);
    }

    .split-receipt-cut-container.split-receipt-cut-container-selected:hover .split-receipt-cut-line {
        border-left: 3px solid var(--mud-palette-primary-lighten);
    }

    .split-receipt-cut-container.split-receipt-cut-container-selected:hover .split-receipt-cut-button {
        color: var(--mud-palette-primary-lighten);
    }

    .split-receipt-cut-container.split-receipt-cut-container-selected .split-receipt-cut-button {
        color: var(--mud-palette-primary);
    }

    .split-receipt-cut-container:last-of-type {
        display: none;
    }

.split-receipt-cut-line {
    width: 0;
    border-left: 3px dashed #ddd;
}

.split-receipt-cut-button {
    transform: rotate(-90deg);
    position: absolute;
    top: calc(50% - 12px);
    right: 13px;
    color: #ddd;
    z-index: -1;
}

/* VARIABLES */
:root {
    --color-cancel: #c3575c;
    --color-cancel-alt: #953f43;
    --color-light: #5db3ca;
    --color-medium: #2d4e6a;
    --color-dark: #101d29;
    --color-content-background: #efeeeb;
    --color-icon: #525046;
    --color-icon-hover: #9b9786;
    --color-table-header: #cdc8b1;
    --color-table-footer: #ebe9e0;
    --color-table-body: #ffffff;
    --color-log-header: #cdc8b1;
    --color-log-content: #ffffff;
    --color-tab-header: #cccccc;
    --color-tab-header-alt: #bbbbbb;
    --color-tab-content: #eeeeee;
    --color-success-muted: #8bc78776;
    --color-warning-muted: #edee7776;
    --color-error-muted: #e4a6a67f;
}
