html, body, .mud-layout, .mud-main-content {
    min-height: 100%!important;
}

body {
    height:100dvh!important;
}

.fill-container {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.text-truncate {
    overflow: hidden;
    text-overflow:ellipsis;
}

.w-100 { width:100%; }
.h-100 { height:100%; }

*:has(> .fill-container) {
    position:relative!important;
}

.mud-nav-link {
    white-space: nowrap;
}
.mud-appbar {
    z-index: 250;
}
#nav-drawer.nav-drawer-mini {
    z-index:300;
}
#nav-drawer.nav-drawer-temporary {
    z-index: unset;
}
.mud-breadcrumbs {
    padding-left: 0;
    padding-right: 0;
}

.mud-textfield-full .mud-input > textarea,
.mud-textfield-full .mud-input > input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: 100%;
}
.mud-textfield-full .mud-input>textarea.mud-input-root.mud-input-root-filled {
    mask-image: none;
    margin-top:0;
    margin-bottom: 0;
}

.mud-drawer-open-mini-none-left .mud-main-content.mud-drawer-hover {
    margin-left: var(--mud-drawer-width-mini-left)!important;
}

.mud-drawer-open-mini-none-left .mud-main-content.mud-drawer-forced {
    margin-left: var(--mud-drawer-width-left)
}


/*.mud-drawer-close-mini-none-left.mud-drawer-left-clipped-never .mud-appbar.mud-drawer-hover,
.mud-drawer-open-mini-none-left.mud-drawer-left-clipped-never .mud-appbar.mud-drawer-hover
{
    margin-left: var(--mud-drawer-width-mini-left)!important;
    width: calc(100% - var(--mud-drawer-width-mini-left))!important;
}*/
.mud-drawer-open-mini-none-left.mud-drawer-left-clipped-never .mud-appbar.mud-drawer-forced {
    margin-left: var(--mud-drawer-width-left);
    width: calc(100% - var(--mud-drawer-width-left));
}

.mud-nav-group > button > .mud-nav-link-expand-icon {
    transition: opacity .25s ease-in-out;
}
.mud-drawer-close-mini-none-left .mud-nav-group > button > .mud-nav-link-expand-icon {
    opacity: 0;
    transition: opacity .5s ease-out;
}

.locked-nav-group,
.locked-nav-group > button,
.locked-nav-group > button *
{
    pointer-events: none !important;
}

.locked-nav-group * {
    pointer-events: all;
}

.mud-chip, .unselectable {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mud-chip.selectable {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mud-chart .mud-chart-legend {
    padding:0!important;
}

.mud-chart-legend-item .mud-typography {
    font-size: .75em;
}

.mud-chart-legend-marker {
    width: 8px!important;
    height: 8px!important;
}

#components-reconnect-modal .components-reconnect-overlay.components-reconnect-visible::before {
    backdrop-filter: blur(10px);
}

.appbar-height {
    height: var(--mud-appbar-height);
}

.appbar-pad.mud-snackbar-location-top-right {
    margin-top: var(--mud-appbar-height);
}
.appbar-pad.mud-snackbar-location-bottom-right {
    margin-bottom: 2.5rem;
}

.mud-dialog .mud-dialog-actions {
    padding: 16px 24px!important;
}

.mud-dialog.borderless .mud-dialog-content {
    padding: 0;
}

.mud-dialog.borderless .mud-dialog-content .mud-simple-table table * tr>th:first-child,
.mud-dialog.borderless .mud-dialog-content .mud-simple-table table * tr>td:first-child {
    padding-left: 24px!important;
}

.mud-dialog.borderless .mud-dialog-content .mud-simple-table table * tr>td:last-child {
    padding-right: 24px!important;
}

.mud-card .mud-card-actions {
    padding: 16px!important;
    gap: 8px;
}

.url-style {
    font-family: monospace;
    font-size: .85em;
    letter-spacing: -.05em;
}

/* COLORS */
:root {
    --color-default: var(--mud-palette-primary);
    
    --rgb-timeline: 165, 232, 72;
    --color-timeline: rgb(var(--rgb-timeline));
    
    --rgb-multiview: 255, 140, 58;
    --color-multiview: rgb(var(--rgb-multiview));
    
    --rgb-ads: 49, 192, 255;
    --color-ads: rgb(49, 192, 255);
    --color-ads-darken: rgb(39, 153, 204);
    --color-ads-lighten: hsl(198, 100%, 70%);

    --rgb-weather: 226, 202, 27;
    --color-weather: rgb(var(--rgb-weather));
    
    --rgb-news: 238, 75, 143;
    --color-news: rgb(var(--rgb-news));
    --color-news-darken: rgb(187, 58, 112);
    --color-news-lighten: rgb(255, 79, 152);

    --rgb-cameras: 248, 88, 96;
    --color-cameras: rgb(var(--rgb-cameras));

    --rgb-locations: 119, 124, 255;
    --color-locations: rgb(var(--rgb-locations));
    --color-locations-darken: rgb(95, 99, 204);
    --color-locations-lighten: rgb(119, 124, 255);
    --color-channels: #46a56a;
    --color-system: #a37c65;
}

.color-default.mud-icon-root { color: var(--color-default) !important; opacity:.75; }

.text-timeline { color: var(--color-timeline) !important; opacity: .75; }
.text-timeline-color { color: var(--color-timeline) !important; }
.mud-chip.color-timeline { border-color: var(--color-timeline); background-color: rgba(var(--rgb-timeline), .25); }
.color-timeline.mud-icon-root { color: var(--color-timeline) !important; opacity:.75; }
.color-timeline .mud-nav-link .mud-icon-root { color: var(--color-timeline) !important; }
.color-timeline .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-timeline) !important; }

.text-multiview { color: var(--color-multiview) !important; opacity: .75; }
.text-multiview-color { color: var(--color-multiview) !important; }
.mud-chip.color-multiview { border-color: var(--color-multiview); background-color: rgba(var(--rgb-multiview), .25); }
.color-multiview.mud-icon-root { color: var(--color-multiview) !important; opacity:.75; }
.color-multiview .mud-nav-link .mud-icon-root { color: var(--color-multiview) !important; }
.color-multiview .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-multiview) !important; }

.text-ads { color: var(--color-ads) !important; opacity: .75; }
.color-ads .mud-icon-root { color: var(--color-ads) !important; }
.color-ads.mud-icon-root { color: var(--color-ads) !important; opacity:.75; }
.color-ads .mud-nav-link .mud-icon-root { color: var(--color-ads) !important; }
.color-ads .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-ads) !important; }
.mud-button-filled.text-ads { color: var(--mud-palette-primary-text)!important; background-color: var(--color-ads) }
.mud-button-filled:hover.text-ads,
.mud-button-filled:active.text-ads { background-color: var(--color-ads-darken) }

.color-weather.mud-icon-root { color: var(--color-weather) !important; opacity:.75; }
.color-weather .mud-nav-link .mud-icon-root { color: var(--color-weather) !important; }
.color-weather .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-weather) !important; }

.text-news { color: var(--color-news) !important; opacity: .75; }
.color-news .mud-icon-root { color: var(--color-news) !important; }
.color-news.mud-icon-root { color: var(--color-news) !important; opacity:.75; }
.color-news .mud-nav-link .mud-icon-root { color: var(--color-news) !important; }
.color-news .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-news) !important; }
.mud-button-filled.text-news { color: var(--mud-palette-primary-text)!important; background-color: var(--color-news) }
.mud-button-filled:hover.text-news,
.mud-button-filled:active.text-news { background-color: var(--color-news-darken) }

.text-cameras { color: var(--color-cameras) !important; }
.color-cameras.mud-icon-root { color: var(--color-cameras) !important; opacity:.75; }
.color-cameras .mud-nav-link .mud-icon-root { color: var(--color-cameras) !important; }
.color-cameras .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-cameras) !important; }

.text-locations { color: var(--color-locations) !important; }
.color-locations .mud-icon-root { color: var(--color-locations) !important; }
.color-locations.mud-icon-root { color: var(--color-locations) !important; opacity:.75; }
.color-locations .mud-nav-link .mud-icon-root { color: var(--color-locations) !important; }
.color-locations .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-locations) !important; }
.mud-button-filled.text-locations { color: var(--mud-palette-primary-text)!important; background-color: var(--color-locations) }
.mud-button-filled:hover.text-locations,
.mud-button-filled:active.text-locations { background-color: var(--color-locations-darken) }

.text-channels { color: var(--color-channels) !important; }
.color-channels.mud-icon-root { color: var(--color-channels) !important; opacity:.75; }
.color-channels .mud-nav-link .mud-icon-root { color: var(--color-channels) !important; }
.color-channels .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-channels) !important; }

.color-system.mud-icon-root { color: var(--color-system) !important; opacity:.75; }
.color-system .mud-nav-link .mud-icon-root { color: var(--color-system) !important; }
.color-system .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--color-system) !important; }


.tl-edit-dialog .mud-dialog-content,
.mv-edit-dialog .mud-dialog-content {
    overflow: hidden !important;
    display: flex;
    flex-direction:column;
}

.mv-edit-dialog .mud-dialog-content .mud-form {
}

.tl-edit-dialog .mud-dialog-content .mud-grid,
.mv-edit-dialog .mud-dialog-content .mud-grid {
    overflow: hidden;
    flex-direction:row;
    align-items:stretch;
    justify-content:stretch;
    flex-wrap: nowrap;
    flex-grow:1;
}
.tl-edit-dialog .mud-dialog-content
{
    padding-top:0!important;
    margin-bottom:-10px!important;

}

.tl-edit-dialog .mud-dialog-content .mud-grid {
    overflow: auto!important;
    margin-top: 0!important;
    padding-bottom: 10px!important;
    margin-bottom: 0!important;
}
@media (min-width: 1280px) {
    .tl-edit-dialog .mud-dialog-content .mud-grid {
        overflow-y: visible;
    }
}

.tl-edit-dialog .mud-dialog-content .mud-grid .mud-grid-item > .mud-paper,
.tl-edit-dialog .mud-dialog-content .mud-card-content {
    height: 100% !important;
}

.tl-edit-dialog .mud-dialog-content .mud-card-content {
    height: 100%;
    overflow-y: auto!important;
}

.tl-edit-dialog .mud-drop-zone .mud-paper h6 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mv-edit-dialog .mud-dialog-content .mud-grid .mud-grid-item > span.mv-container {
    overflow: hidden;
    display:flex;
    width: 100%;
    height: 100%;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    flex-wrap: nowrap;
    flex-grow:1;
    flex:1;
    container-type: size;
}

.mv-edit-dialog-box-list {
    overflow-y: scroll!important;
}

.mv-preview-frame {
    background-color: var(--mud-palette-dark);
    border-top-left-radius:inherit;
    border-top-right-radius:inherit;
    overflow:hidden;
    display:block;
    aspect-ratio:16/9;
    width: 100%;
    height: auto;
    max-height: 100%;
}

@container (min-aspect-ratio: 16/9) {
  .mv-preview-frame {
    height: 100%;
    width: auto;
  }
}

.mv-preview-frame > svg {
    object-fit:fill;
    object-position: center;
    aspect-ratio:16/9;
    width: 100%;
    height: 100%;
}

div.mud-card.multiview-grid-view-item > div.mud-card-header,
div.mud-card.camera-grid-view-item > div.mud-card-header {
    padding:0;
    overflow: hidden;
    display: flex;
    flex-direction:column;
    align-items:stretch;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

div.mud-card.multiview-grid-view-item > div.mud-card-content:has(~ div.mud-card-actions),
div.mud-card.camera-grid-view-item > div.mud-card-actions:has(~ div.mud-card-actions) {
    padding-bottom:0;
}

.op-player .op-media-element-container video {
    object-fit: fill;
}

.logo-center-screen {
    position: absolute;
    width: 100%;
    height: 100%;
}

.logo-large > img {
    width: 64px;
    height: 64px;
}
.logo-large h4 {
    font-size: 48px;
}

.flex-row-stretch-stretch, .flex-row-stretch-start, .flex-row-stretch-center, .flex-row-stretch-end,
.flex-row-start-stretch,   .flex-row-start-start,   .flex-row-start-center,   .flex-row-start-end,
.flex-row-center-stretch,  .flex-row-center-start,  .flex-row-center-center,  .flex-row-center-end,
.flex-row-end-stretch,     .flex-row-end-start,     .flex-row-end-center,     .flex-row-end-end {
    display: flex !important;
    flex-direction: row !important;
}
.flex-column-stretch-stretch, .flex-column-stretch-start, .flex-column-stretch-center, .flex-column-stretch-end,
.flex-column-start-stretch,   .flex-column-start-start,   .flex-column-start-center,   .flex-column-start-end,
.flex-column-center-stretch,  .flex-column-center-start,  .flex-column-center-center,  .flex-column-center-end,
.flex-column-end-stretch,     .flex-column-end-start,     .flex-column-end-center,     .flex-column-end-end {
    display: flex !important;
    flex-direction: column !important;
}

.flex-row-stretch-stretch, .flex-row-stretch-start, .flex-row-stretch-center, .flex-row-stretch-end,
.flex-column-stretch-stretch, .flex-column-stretch-start, .flex-column-stretch-center, .flex-column-stretch-end {
    align-items: stretch !important;
}
.flex-row-start-stretch,   .flex-row-start-start,   .flex-row-start-center,   .flex-row-start-end,
.flex-column-start-stretch,   .flex-column-start-start,   .flex-column-start-center,   .flex-column-start-end {
    align-items: start !important;
}

.flex-row-center-stretch,  .flex-row-center-start,  .flex-row-center-center,  .flex-row-center-end,
.flex-column-center-stretch,  .flex-column-center-start,  .flex-column-center-center,  .flex-column-center-end  {
    align-items: center !important;
}

.flex-row-end-stretch,     .flex-row-end-start,     .flex-row-end-center,     .flex-row-end-end,
.flex-column-end-stretch,     .flex-column-end-start,     .flex-column-end-center,     .flex-column-end-end {
    align-items: end !important;
}

.flex-row-stretch-stretch, .flex-row-start-stretch,  .flex-row-center-stretch,  .flex-row-end-stretch,
.flex-column-stretch-stretch, .flex-column-start-stretch,  .flex-column-center-stretch,  .flex-column-end-stretch {
    justify-content: stretch !important;
}

.flex-row-stretch-start, .flex-row-start-start,  .flex-row-center-start,  .flex-row-end-start,
.flex-column-stretch-start, .flex-column-start-start,  .flex-column-center-start,  .flex-column-end-start {
    justify-content: start !important;
}

.flex-row-stretch-center, .flex-row-start-center,  .flex-row-center-center,  .flex-row-end-center,
.flex-column-stretch-center, .flex-column-start-center,  .flex-column-center-center,  .flex-column-end-center {
    justify-content: center !important;
}

.flex-row-stretch-end, .flex-row-start-end,  .flex-row-center-end,  .flex-row-end-end,
.flex-column-stretch-end, .flex-column-start-end,  .flex-column-center-end,  .flex-column-end-end {
    justify-content: end !important;
}


.flex-row-center-start {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:start;
}
.flex-row-center-stretch {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:stretch;
}
.flex-row-center-center {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:stretch;
}
.flex-row-center-end {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:end;
}

.seamless-text {
    white-space: nowrap;
    text-wrap: nowrap;
    mask-image: linear-gradient(to right, #000000FF calc(100% - 10px), #00000000 100%);
    overflow:hidden;
}

.disabled {
    pointer-events: none;
    touch-action:none;
    opacity:.5;
}

.fixed-table table {
    table-layout:fixed;
}

.fixed-table table td,
.fixed-table table td .mud-tooltip-inline {
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    max-width: 100%;
}

.mud-table tr.selected {
    background-color: var(--mud-palette-primary-darken)!important;
}

.mud-table tr.selected td {
    color: var(--mud-palette-primary-text)!important;
    font-weight:500!important;
}

table {
    table-layout:fixed;
}

table td > * {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width:960px) {
    table {
        table-layout: auto;
    }
    
    table td > * {
        overflow: unset;
        max-width: unset;
        text-overflow: unset;
        white-space: unset;
    }
}

.mud-list-item-icon {
    min-width: 36px!important;
}