﻿html, body {
    /*noinspection CssUnresolvedCustomProperty*/
    background-color: var(--mud-palette-surface);
    margin: 0 auto;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
    font-family: 'WorkSans-Regular', Helvetica, Arial, sans-serif;
}

#app {
    height: 100%;
    width: auto;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    /*noinspection CssUnresolvedCustomProperty*/
    outline: 1px solid var(--mud-palette-error);
}

.validation-message {
    color: red;
}

.h-100-6 {
    height: calc(100% - 24px) !important;
}

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyN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Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.no-click {
    pointer-events: none;
}

.animate__animated {
    animation-duration: 500ms !important;
}

.animate__animated__skip {
    animation-duration: 0ms !important;
}

/*Remove padding for gallery images otherwise buttons get covered*/
.photo-gallery .mud-grid-spacing-xs-3 > .mud-grid-item {
    padding: 0 !important;
}

.mud-dialog-width-sm {
    margin-left: 16px;
    margin-right: 16px;
    max-height: 100%;
}

.text-decoration-underline {
    text-decoration: underline;
}

.text-align-right {
    text-align: right;
}

.text-align-center {
    text-align: center;
}

.align-self-end {
    align-self: end;
}

.page {
    width: 100%;
}

.k-add-device-mud-card {
    width: 350px;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 30px;
}

.mud-data-grid-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*Sticky header in mud tables and grids with border on bottom*/
.mud-table-head {
    border-style: hidden;
}

.mud-table-head > .mud-table-row {
    position: sticky;
    top: 0;
    bottom: 0;
    outline: 1px solid #e0e0e0;
    z-index: 1;
}

.translations-table .mud-table-container {
    width: unset !important;
}

.text-overflow-ellipsis-column {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

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

.mud-surface-text {
    /*noinspection CssUnresolvedCustomProperty*/
    color: var(--mud-palette-surface) !important;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: none;
    /*noinspection CssUnresolvedCustomProperty*/
    color: var(--mud-palette-surface) !important;
}

a:hover {
    color: inherit;
}

.mud-nav-link {
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.mud-drawer {

}

.mud-nav-link .mud-nav-link-expand-icon {
    /*noinspection CssUnresolvedCustomProperty*/
    color: var(--mud-palette-surface) !important;
}

.admin-menu {
    top: 50px !important;
    height: calc(100vh - 50px) !important;
}

.translations-table .mud-table-container {
    overflow-x: scroll !important;
}

/*
    Measurements must be specific so the look of the ad is the same everywhere
    The aspect ratio is based off the look of the TV ad carousel
*/
.ad-content-container {
    width: 545px !important;
    height: 456px !important;
    border-radius: 8px !important;
}

/*
    Same height as ad content, with the added width for carousel navigation buttons
*/
.ad-content-carousel {
    height: 456px !important;
    width: 650px !important;
}

.ql-editor {
    padding: 0px !important;
    overflow: visible !important;
}

.ql-editor > p > img {
    max-height: 454px;
    max-width: none !important;
}

.ql-editor > video {
    max-height: 454px;
    max-width: none !important;
    object-fit: fill;
}

.ql-toolbar {
    margin-bottom: 15px !important;
    z-index: 100 !important;
}

.ql-toolbar .ql-picker-options {
    z-index: 101 !important;
}

.ql-picker.ql-expanded .ql-picker-options {
    display: block;
    z-index: 101 !important;
}

.ql-container.ql-snow {
    border-top: 1px solid #ccc !important;
}

/* Used after the text editor, so if an image overflows it is overlaid with a transparent white */
.quill-editor-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 545px;
    width: 80vh;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    z-index: 5; /* Ensure it covers the overflowing image */
}

/* Used below the text editor, so if an image / text overflows it is overlaid with a transparent white */

.transparent-container {
    position: relative;
    bottom: 1px;
    background-color: white;
    opacity: 0.85;
    z-index: 5; /* Ensure it covers the overflowing image */
}

.mud-tab {
    text-transform: none !important;
    font-weight: 600;
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell {
    /*noinspection CssUnresolvedCustomProperty*/
    background-color: var(--mud-palette-background-gray) !important;
}

.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 18px 14px;
}

.mud-dialog .mud-dialog-content {
    padding: 0 24px;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-inline-start: 40px;
}

.font-weight-bold {
    font-weight: bold;
}

@media (min-width: 1280px) {
    .mud-container-maxwidth-lg {
        max-width: 1450px;
    }
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell {
    /*noinspection CssUnresolvedCustomProperty*/
    border-right: 1px solid var(--mud-palette-table-lines) !important;
}

/*noinspection CssInvalidPseudoSelector*/
::deep .mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 4px 24px 4px 16px;
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: 800;
}

.mud-icon-button:hover, .mud-icon-button:focus-visible {
    background-color: transparent;
}

.mud-bg-gray {
    background-color: var(--mud-palette-background-gray)
}

/*
    Different animations for the carousel transitions
*/
.BounceIn {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 1s;
    animation-name: bounceIn;
    animation-fill-mode: forwards;
}

.BounceOut {
    animation-duration: 0.5s;
    animation-name: bounceOut;
    animation-fill-mode: forwards;
}

.BackDownIn {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 1s;
    animation-name: backInDown;
    animation-fill-mode: forwards;
}

.BackDownOut {
    animation-duration: 0.5s;
    animation-name: backOutDown;
    animation-fill-mode: forwards;
}

.RotateIn {
    opacity: 0;
    animation-delay: 1s;
    animation-duration: 0.5s;
    animation-name: rotateIn;
    animation-fill-mode: forwards;
}

.RotateOut {
    animation-duration: 0.5s;
    animation-name: rotateOut;
    animation-fill-mode: forwards;
}

.card-style {
    overflow: hidden;
}

.title-text {
    padding: 0px 0px 16px 30px
}

.card-title-style {
    padding: 8px 8px 8px 25px;
    font-size: 17px;
}

.card-link-text {
    font-size: 15px;
    padding-right: 40px;
}

.card-link-text:hover {
    cursor: pointer
}

.deviceSelection {
    width: 200px;
}

.language-tabs .mud-tab {
    min-width: 0px !important;
    font-size: 12px;
}

.sync-media-dialog {
    width: 80vw !important;
    height: 90vh !important;
    max-width: 100vw !important;
}

/*
    The following 2 styles fix the mudblazor issue where sometimes the bottom border of tabs becomes misaligned
*/
.mud-tab-slider.mud-tab-slider-horizontal {
    height: 0 !important;
}

.mud-tab.mud-tab-active {
    border-radius: 0px;
    border-style: solid;
    border-width: 0 0 2px 0;
}

.k-mud-table-outline {
    /*noinspection CssUnresolvedCustomProperty*/
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 8px;
}


.admin-card-header {
    min-height: 4rem;
    /*noinspection CssUnresolvedCustomProperty*/
    border: 1px solid var(--mud-palette-lines-default) !important;
}

/*noinspection CssInvalidPseudoSelector*/
.card-style .mud-table.mud-table-outlined {
    border: none;
}

.card-style {
    /*noinspection CssUnresolvedCustomProperty*/
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 10px;
}

.mud-table-pagination {
    overflow: visible !important;
}

/* TELERIK UI Changes*/
.k-column-title {
    white-space: normal; /* Allow wrapping */
    word-break: break-word; /* Break long words if needed */
    overflow-wrap: anywhere; /* Even more aggressive wrapping (modern browsers) */
}

.k-grid .k-grid-header .k-table-th {
    vertical-align: middle;
}

.k-button-icon {
    border: none !important;
    border-width: 0px;
}

.k-grid .k-table-td {
    font-size: .875rem;
}

.min-width-200 {
    min-width: 200px !important;
}

.k-grid .k-grid-sm .k-table-th, .k-grid-sm .k-table-th {
    /*noinspection CssUnresolvedCustomProperty*/
    padding-block: 0.35rem !important;
    /*noinspection CssUnresolvedCustomProperty*/
    padding-inline: 0.35rem !important;
}

.k-grid .k-table-th {
    font-size: 0.875rem;
    font-weight: bold;
}

.k-table-td .mud-input-control:not(.clickable) .mud-checkbox {
    pointer-events: none;
    cursor: default;
}

.grid-checkbox .mud-icon-button {
    padding: 0.15rem !important;
}

.database-value-background-highlight td {
    background-color: rgba(255, 255, 153) !important;
    border-bottom: 1px solid LightGray !important;
}

.database-value-background:hover td {
    background-color: rgba(240, 240, 153) !important;
}

.k-grid .k-master-row .k-grid-content-sticky {
    border-style: solid;
    /*noinspection CssUnresolvedCustomProperty*/
    border-color: var(--kendo-color-border, rgba(33, 37, 41, 0.13));
}

.k-grid-header .k-grid-header-sticky {
    border-width: 0;
    border-inline-start-width: 1px;
    border-style: solid;
    /*noinspection CssUnresolvedCustomProperty*/
    border-color: var(--kendo-color-border, rgba(33, 37, 41, 0.13));
}

.k-table-tbody .mud-checkbox > .mud-button-root {
    padding: 0px !important;
}

/*
    A class for 'disabling' a telerik grid.
    Doesn't target everything so you can still use custom toolbar inputs
*/
.telerik-grid-disabled .k-grid-aria-root,
.telerik-grid-disabled .k-pager,
.telerik-grid-disabled .k-toolbar-item {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.ad-carousel-drag-drop-area {
    border: 2px dashed gray;
    width: 200px;
    height: 60px;
    text-align: center;
    padding: 5px;
}

.ad-content-language-circle {
    display: inline-flex !important;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 2px;
    border: 1px solid gray;
    color: #042a2b;
    font-weight: 600;
    font-size: 12px;
}

.mud-add-device-group-dialog {
    width: 800px;
}

.mud-dialog-action-button {
    width: 180px;
}

.translations-iframe-container {
    height: 65%;
    max-height: 1080px;
}

.k-mud-time-picker {
    width: 300px;
}

.org-unit-select {
    max-width: 350px;
    min-width: 350px;
}

.media-stream-dialog-image {
    max-width: 300px;
    max-height: 300px;
}

.add-media-stream-dialog {
    width: 950px;
    height: 950px;
}

.ad-content-editor-dialog {
    height: 850px;
    width: 1200px
}

.add-new-device-dialog {
    width: 960px;
    height: 750px;
}

.merge-dialog {
    width: 440px;
}

.add-or-modify-schedule-dialog {
    height: 1100px;
    min-width: 1000px;
}

.stream-selection-dialog {
    height: 85vh;
    width: 700px;
}

.translation-export-select-dialog {
    height: 90vh;
}

.html-editor-dialog {
    height: 95%;
    width: 95%
}

.mxp-file-input-button {
    width: 200px !important
}

.mud-select-width-sm {
    width: 250px !important;
}

.mud-select-max-width-sm {
    max-width: 250px !important;
}

.mud-select-width-md {
    width: 350px !important;
}

.mud-select-width-lg {
    width: 450px !important;
}

.carousel-content-edit-button {
    width: 200px;
}

.mud-login-card {
    width: 350px;
}

.stream-dialog-preview-image {
    max-width: 300px;
    max-height: 300px;
}

.stream-datagrid-preview-image {
    max-width: 50px;
    max-height: 50px;
}

.preview-dialog-image {
    max-width: 288px;
    max-height: 408px;
}

.search-bar-textfield {
    max-width: 200px;
    min-width: 200px;
}

.app-config-cache-admin-card {
    height: 70vh;
}

.html-editor-text-filed {
    height: 625px;
    width: 1400px
}

.edit-translation-dialog-values-container {
    max-height: 500px;
    overflow-y: auto;
}

.k-mud-divider {
    height: 3px;
    background-color: var(--mud-palette-secondary);
}

.translation-export-language-select-container {
    height: 50vh;
}

.mxp-duration-picker {
    max-width: 400px
}

.admin-layout-appbar {
    height: 50px !important;
    background-color: var(--mud-palette-drawer-background);
}

.mud-tab-filled {
    background-color: rgba(255, 255, 153) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.mud-drop-item:has(> .mud-tile-management-drop-item) {
    width: 100%;
    height: 100%;
}

.mud-tile-management-drop-item {
    height: 100%;
    width: 100%;
}

.mxp-drop-container {
    background-color: rgb(248, 249, 250);
}

.drop-zone-tile {
    height: 200px;
}

.drop-zone-tile-button {
    position: absolute;
    top: 8px;
    right: 8px;
}

.dropzone-grid {
    display: grid;
    gap: 8px;
}
