:root {
    font-size: var(--rz-root-font-size);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);

}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

input {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    /*background-color: var(--rz-body-background-color);*/
    line-height: var(--rz-body-line-height);
}
div.map-info-window {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    color: #eef8fb;
    resize: both;
    overflow: hidden;
    width: min(720px, 76vw);
    height: min(520px, calc(100vh - 160px));
    min-width: 320px;
    min-height: 300px;
    max-width: 80vw;
    max-height: calc(100vh - 120px);
    padding: 0;
    background: #20383f;
    border: 1px solid rgba(142, 184, 197, 0.34);
    border-radius: 6px;
    contain: layout size;
}

div.map-info-window,
div.map-info-window * {
    box-sizing: border-box;
}

/* Keep iframe / video ratio */
.map-info-window iframe,
.map-info-window video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: fill;
}

.gm-style .gm-style-iw-c {
    padding: 0;
    color: #eef8fb;
    background: #20383f;
    border: 1px solid rgba(142, 184, 197, 0.34);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
}

.gm-style .gm-style-iw-d {
    max-height: none !important;
    max-width: none !important;
    overflow: visible !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #20383f;
}

.gm-style .gm-ui-hover-effect {
    filter: invert(1);
}

.ics-map-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #20383f;
}

.ics-map-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(142, 184, 197, 0.24);
    background: #18343c;
}

.ics-map-info-head > div:first-child {
    min-width: 0;
}

.ics-map-info-head strong,
.ics-map-info-head small {
    display: block;
    max-width: 560px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ics-map-info-head strong {
    margin-top: 0.2rem;
    color: #eef8fb;
    font-size: 0.95rem;
}

.ics-map-info-head small {
    color: rgba(232, 246, 250, 0.62);
    font-size: 0.72rem;
}

.ics-map-info-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    color: #0e2a31;
    background: #57dce7;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ics-map-info-actions {
    display: flex;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.ics-map-info-action {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    color: #eef8fb;
    background: #315965;
    line-height: 1;
}

.ics-map-info-action:hover {
    background: #3d6d7a;
}

.ics-map-person-head {
    align-items: center;
}

.ics-map-person-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ics-map-person-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    background: #dce4e8;
}

.ics-map-info-media {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    background: #111d22;
    overflow: hidden;
}

.ics-map-info-media > * {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.ics-map-media-frame,
.ics-map-media-video,
.ics-map-media-image {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: fill;
}

.ics-map-info-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    z-index: 3;
    background:
        linear-gradient(135deg, transparent 0 50%, rgba(232, 246, 250, 0.32) 50% 58%, transparent 58%),
        linear-gradient(135deg, transparent 0 66%, rgba(232, 246, 250, 0.42) 66% 74%, transparent 74%);
}

.ics-map-media-state {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: rgba(232, 246, 250, 0.76);
    background: #111d22;
}

.ics-ptz-pad {
    position: absolute;
    left: 0.55rem;
    top: 2.35rem;
    z-index: 90;
    display: none;
    grid-template-columns: repeat(3, 28px);
    gap: 0.25rem;
    padding: 0.35rem;
    border: 1px solid rgba(142, 184, 197, 0.28);
    border-radius: 6px;
    background: rgba(18, 42, 49, 0.76);
    backdrop-filter: blur(4px);
}

.ics-ptz-pad.is-open {
    display: grid;
}

.ics-ptz-toggle {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    z-index: 91;
    opacity: 0.82;
}

.ics-ptz-pad .rz-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
}

.ics-ptz-pad .rz-button:nth-child(1) {
    grid-column: 2;
}

.ics-ptz-pad .rz-button:nth-child(2) {
    grid-column: 1;
}

.ics-ptz-pad .rz-button:nth-child(3) {
    grid-column: 2;
}

.ics-ptz-pad .rz-button:nth-child(4) {
    grid-column: 3;
}

.ics-ptz-pad .rz-button:nth-child(5) {
    grid-column: 2;
}

/* Custom CSS for the sidebar */
.aside-drawer {
    position: fixed;
    top: 0;
    right: -68px; /* Hide by default */
    height: 100%;
    z-index: 1050;
    transition: right 0.3s;
}

.aside-drawer.open {
    right: 0; /* Show sidebar */
}

.cctv-text-block {
    /*text-shadow: 1px 1px 4px black;*/
    position: absolute;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Black background with opacity */
    color: white;
    padding: 5px 0;
    text-align: center;
}

.my-ripple {
    display: block;
    animation: rippleEffect 1.5s infinite linear;
    border-radius: 50%; /* optional, for circular images */
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
}

@keyframes rippleEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other elements */
}

.hidden {
    display: none;
}


.loader {
    width: 48px;
    height: 48px;
    margin: auto;
    position: relative;
}
.loader:before {
    content: '';
    width: 48px;
    height: 5px;
    background: #000;
    opacity: 0.25;
    position: absolute;
    top: 60px;
    left: 0;
    border-radius: 50%;
    animation: shadow 0.5s linear infinite;
}
.loader:after {
    content: '';
    width: 100%;
    height: 100%;
    background: #0216a0;
    animation: bxSpin 0.5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
}
@keyframes bxSpin {
    17% {
        border-bottom-right-radius: 3px;
    }
    25% {
        transform: translateY(9px) rotate(22.5deg);
    }
    50% {
        transform: translateY(18px) scale(1, .9) rotate(45deg);
        border-bottom-right-radius: 40px;
    }
    75% {
        transform: translateY(9px) rotate(67.5deg);
    }
    100% {
        transform: translateY(0) rotate(90deg);
    }
}

@keyframes shadow {
    0%, 100% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.2, 1);
    }
}

.my-reconnect-modal > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div
{
    display: none;
}

.components-reconnect-show > div
{
    display: none;
}
.components-reconnect-show > .show
{
    display: block;
}

.components-reconnect-failed > div
{
    display: none;
}
.components-reconnect-failed > .failed
{
    display: block;
}

.components-reconnect-rejected >div
{
    display: none;
}
.components-reconnect-rejected > .rejected
{
    display: block;
}

.ics-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    pointer-events: none;
}

.ics-reconnect-card {
    min-width: min(360px, calc(100vw - 2rem));
    padding: .8rem 1rem;
    color: #fff;
    background: rgba(25, 43, 49, .94);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.ics-reconnect-card strong,
.ics-reconnect-card span {
    display: block;
}

.ics-reconnect-card span {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
}

/* Management / CRUD surface. Scoped away from Home by MainLayout. */
.ics-crud-shell {
    min-height: 100%;
    padding: .75rem;
    background: transparent;
    color: var(--rz-text-color);
    overflow: auto;
}

.ics-crud-shell > .rz-stack {
    min-height: 100%;
    gap: .85rem;
}

.ics-crud-shell .rz-card,
.ics-crud-shell .rz-fieldset,
.ics-crud-shell .rz-data-grid,
.ics-crud-shell .rz-datatable {
    border: 1px solid rgba(167, 206, 215, .14);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(4, 16, 20, .16);
}

.ics-crud-shell .rz-fieldset {
    background: transparent;
    color: #eef7f9;
}

.ics-crud-shell .rz-fieldset-legend {
    color: rgba(238, 247, 249, .78);
}

.ics-crud-shell .rz-data-grid,
.ics-crud-shell .rz-datatable {
    overflow: hidden;
    background: #31454c;
    color: #eef7f9;
}

.ics-crud-shell .rz-data-grid-data,
.ics-crud-shell .rz-datatable-data {
    overflow-x: auto;
}

.ics-crud-shell .rz-grid-table,
.ics-crud-shell .rz-datatable-table {
    min-width: 760px;
}

.ics-crud-shell .rz-data-grid thead th,
.ics-crud-shell .rz-datatable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #20363e;
    color: #f7fbfc;
    border-color: rgba(255, 255, 255, .08);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ics-crud-shell .rz-data-grid tbody tr,
.ics-crud-shell .rz-datatable tbody tr {
    transition: background-color .16s ease, box-shadow .16s ease;
    background: #344951;
}

.ics-crud-shell .rz-data-grid tbody tr:hover,
.ics-crud-shell .rz-datatable tbody tr:hover {
    background: #415961;
}

.ics-crud-shell .rz-cell-data {
    line-height: 1.35;
}

.ics-crud-shell .rz-paginator {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #263b42;
    color: #eef7f9;
}

.ics-crud-shell .rz-button {
    border-radius: 7px;
    font-weight: 650;
    letter-spacing: 0;
    box-shadow: none;
}

.ics-crud-shell .rz-button.rz-variant-flat {
    border: 1px solid transparent;
}

.ics-crud-shell .rz-button.rz-button-md:has(.rz-button-icon):not(:has(.rz-button-text)),
.ics-crud-shell .rz-button.rz-button-sm:has(.rz-button-icon):not(:has(.rz-button-text)) {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
}

.ics-crud-shell .rz-button:not(.rz-variant-text):not(.rz-variant-flat) {
    box-shadow: 0 6px 14px rgba(32, 52, 59, .12);
}

.ics-crud-shell .rz-textbox,
.ics-crud-shell .rz-numeric,
.ics-crud-shell .rz-dropdown,
.ics-crud-shell .rz-datepicker,
.ics-crud-shell .rz-textarea,
.ics-crud-shell .rz-multiselect,
.ics-crud-shell .rz-password {
    border-radius: 7px;
}

.ics-crud-shell .rz-textbox:focus,
.ics-crud-shell .rz-textarea:focus,
.ics-crud-shell .rz-dropdown:focus-within,
.ics-crud-shell .rz-datepicker:focus-within,
.ics-crud-shell .rz-multiselect:focus-within {
    box-shadow: 0 0 0 3px rgba(44, 194, 196, .18);
}

.ics-crud-shell .rz-form-field,
.ics-crud-shell .rz-fieldset {
    max-width: 100%;
}

.ics-crud-shell .rz-stack {
    max-width: 100%;
}

.ics-crud-shell .rz-stack[style*="width"] {
    max-width: 100%;
}

.rz-dialog {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(14, 27, 33, .32);
}

.rz-dialog-titlebar {
    min-height: 52px;
    background: #203841;
    color: #f7fbfc;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rz-dialog-title {
    font-weight: 700;
    letter-spacing: 0;
}

.rz-dialog-content {
    background: #263b42;
    color: #eef7f9;
}

.rz-dialog-content .rz-template-form,
.rz-dialog-content form {
    width: 100%;
}

.rz-dialog-content .rz-row {
    margin-inline: 0;
}

.rz-dialog-content .rz-column {
    min-width: 0;
}

.rz-dialog-content .rz-form-field,
.rz-dialog-content .rz-textbox,
.rz-dialog-content .rz-numeric,
.rz-dialog-content .rz-dropdown,
.rz-dialog-content .rz-datepicker,
.rz-dialog-content .rz-textarea,
.rz-dialog-content .rz-multiselect,
.rz-dialog-content .rz-password {
    max-width: 100%;
}

.rz-dialog-content .rz-button {
    border-radius: 7px;
    font-weight: 650;
}

@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .ics-crud-shell {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding: .35rem;
        overflow: auto;
    }

    .ics-crud-shell .rz-card,
    .ics-crud-shell .rz-fieldset,
    .ics-crud-shell .rz-data-grid,
    .ics-crud-shell .rz-datatable {
        border-radius: 7px;
        box-shadow: 0 6px 16px rgba(22, 38, 45, .08);
    }

    .ics-crud-shell .rz-grid-table,
    .ics-crud-shell .rz-datatable-table {
        min-width: 620px;
    }

    .ics-crud-shell .rz-button {
        min-height: 40px;
    }

    .ics-crud-shell .rz-stack[orientation="horizontal"],
    .ics-crud-shell .rz-display-flex {
        flex-wrap: wrap;
    }

    .rz-dialog {
        left: .5rem !important;
        right: .5rem !important;
        top: .5rem !important;
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: calc(100dvh - 1rem);
        transform: none !important;
    }

    .rz-dialog-content {
        max-height: calc(100dvh - 4.5rem);
        overflow: auto;
        padding: .75rem !important;
    }

    .rz-dialog-content .rz-row {
        display: block;
    }

    .rz-dialog-content .rz-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-inline: 0 !important;
        margin-bottom: .75rem;
    }

    .rz-dialog-content .rz-form-field,
    .rz-dialog-content .rz-textbox,
    .rz-dialog-content .rz-numeric,
    .rz-dialog-content .rz-dropdown,
    .rz-dialog-content .rz-datepicker,
    .rz-dialog-content .rz-textarea,
    .rz-dialog-content .rz-multiselect,
    .rz-dialog-content .rz-password {
        width: 100% !important;
    }
}



/*!* Custom styles for the reconnect modal *!*/
/*#components-reconnect-modal {*/
/*    position: fixed;*/
/*    */
/*    transform: translate(-50%, -50%);*/
/*    width: 100%; !* Adjust as needed *!*/
/*    height: 100%;*/
/*    padding: 20px;*/
/*    box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
/*    background-color: #fff;*/
/*    z-index: 1050;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    border-radius: 10px;*/
/*}*/

/*#components-reconnect-modal h5 {*/
/*    margin-top: 0;*/
/*    color: #333;*/
/*    font-size: 24px; !* Larger text *!*/
/*}*/

/*#components-reconnect-modal button {*/
/*    padding: 10px 20px;*/
/*    font-size: 18px;*/
/*    margin-top: 20px; !* Space above the button *!*/
/*    background-color: #007bff;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 5px;*/
/*    cursor: pointer;*/
/*}*/

/*#components-reconnect-modal button:hover {*/
/*    background-color: #0056b3;*/
/*}*/


/*#components-reconnect-modal > h5 {*/
/*    display: none !important;*/
/*}*/

/*#components-reconnect-modal > button {*/
/*    display: none !important;*/
/*}*/



/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/

/*html, body {*/
/*    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
/*}*/

/*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;*/
/*}*/

/*.content {*/
/*    padding-top: 0.8rem;*/
/*    padding-bottom: 0.8rem;*/
/*}*/

/*.valid.modified:not([type=checkbox]) {*/
/*    outline: 1px solid #26b050;*/
/*}*/

/*.invalid {*/
/*    outline: 1px solid red;*/
/*}*/

/*.validation-message {*/
/*    color: red;*/
/*}*/

/*#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."*/
/*    }*/


/* The popup bubble styling. */
.popup-bubble {
    /* Position the bubble centred-above its parent. */
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%);
    /* Style the bubble. */
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    font-family: sans-serif;
    overflow-y: auto;
    max-height: 60px;
    box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.5);
}

/* The parent of the bubble. A zero-height div at the top of the tip. */
.popup-bubble-anchor {
    /* Position the div a fixed distance above the tip. */
    position: absolute;
    width: 100%;
    bottom: 8px;
    left: 0;
}

/* This element draws the tip. */
.popup-bubble-anchor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Center the tip horizontally. */
    transform: translate(-50%, 0);
    /* The tip is a https://css-tricks.com/snippets/css/css-triangle/ */
    width: 0;
    height: 0;
    /* The tip is 8px high, and 12px wide. */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

/* JavaScript will position this div at the bottom of the popup tip. */
.popup-container {
    cursor: auto;
    height: 0;
    position: absolute;
    /* The max width of the info window. */
    width: 200px;
}

/* Compass container styling */
.compass-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Rotate buttons */
.compass-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
}

.compass-button:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Compass needle (SVG icon) */
.compass-needle {
    width: 24px;
    height: 24px;
    transform-origin: center;
    transition: transform 0.3s;
}


.rz-row > .rz-col-2.ics-col-5 {
    max-width: calc((100% - 4 * var(--rz-gap)) / 5);
    flex-basis: calc((100% - 4 * var(--rz-gap)) / 5);
}

/*.gm-style-iw.gm-style-iw-c {*/
/*    resize: both;*/
/*}*/

.timeline-container {
    width: 100%;
    height: 100px;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    background: #222;
    border-top: 2px solid #444;
    padding: 10px;
}

#timelineBar {
    height: 40px;
    position: relative;
    width: 2000px; /* Adjust dynamically with JS */
}

.timeline-event {
    position: absolute;
    height: 100%;
    background-color: yellow;
    border-radius: 4px;
    cursor: pointer;
}

.timeline-event:hover {
    background-color: orange;
}


#timeline {
    height: 100%;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid rgba(135, 169, 184, 0.45);
    border-radius: 6px;
    background: linear-gradient(180deg, #213940 0%, #1d3138 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#timeline .vis-timeline {
    border: 0;
    background: transparent;
    color: #d8e6ec;
    font-size: 0.78rem;
}

#timeline .vis-panel.vis-center,
#timeline .vis-panel.vis-left,
#timeline .vis-panel.vis-right {
    border-color: rgba(150, 182, 195, 0.18);
}

#timeline .vis-time-axis .vis-grid.vis-minor {
    border-color: rgba(197, 220, 228, 0.18);
}

#timeline .vis-time-axis .vis-grid.vis-major {
    border-color: rgba(197, 220, 228, 0.36);
}

#timeline .vis-time-axis .vis-text {
    color: rgba(225, 239, 243, 0.72);
    padding-top: 0.45rem;
}

#timeline .vis-current-time {
    background-color: rgba(255, 255, 255, 0.25);
}

.playback-debug-time {
    color: rgba(230, 242, 246, 0.86);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

#timeline .vis-item.none {
    height: 18px;
    top: 34px !important;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #b7c9ff 0%, #dce5ff 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26), 0 4px 12px rgba(6, 14, 20, 0.28);
}

#timeline .vis-item.highlight-range {
    top: 24px !important;
    height: 38px;
    border: 1px solid rgba(107, 231, 255, 0.78);
    border-radius: 4px;
    background: rgba(102, 178, 207, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#timeline .vis-item.timeline-thumbnail {
    top: 64px !important;
    width: 196px;
    height: 110px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: 0 6px 16px rgba(4, 12, 18, 0.3);
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 5;
}

#timeline .vis-item.timeline-thumbnail.vis-selected {
    border: 0;
    background: transparent;
}

#timeline .vis-item.timeline-thumbnail .vis-item-content {
    padding: 0;
    margin: 0;
}

#timeline .vis-item.timeline-thumbnail img {
    display: block;
    width: 196px;
    height: 110px;
    object-fit: cover;
    opacity: 0.82;
    filter: saturate(0.95) contrast(1.02);
}

#timeline .vis-custom-time {
    cursor: ew-resize;
    z-index: 5000;
}

#timeline .vis-custom-time::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--timeline-marker-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.24);
}

#timeline .vis-custom-time::after {
    position: absolute;
    top: 5px;
    left: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    color: #0d1b20;
    background: var(--timeline-marker-color);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    transform: translateX(-50%);
}

#timeline .vis-custom-time.start-indicator {
    --timeline-marker-color: #63d986;
    color: #63d986;
    border-left: 2px solid #63d986;
}

#timeline .vis-custom-time.start-indicator::after {
    content: "START";
}

#timeline .vis-custom-time.end-indicator {
    --timeline-marker-color: #ffd35b;
    color: #ffd35b;
    border-left: 2px solid #ffd35b;
}

#timeline .vis-custom-time.end-indicator::after {
    content: "END";
}

#timeline .vis-custom-time.playback-indicator {
    --timeline-marker-color: #ff5b67;
    color: #ff5b67;
    border-left: 3px solid #ff5b67;
}

#timeline .vis-custom-time.playback-indicator::after {
    content: "PLAY";
}

.autocomplete-icon {
    display: none;
}
.clear-icon {
    display: none;
}

.stream-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.h-90 {
    height: 90% !important;
}

.server-status-loading {
    padding: 1rem;
    color: #d8e6ec;
}

.server-status-page {
    padding: 0.75rem;
    color: #eef8fb;
}

.server-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-status-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.server-status-subtitle,
.server-status-note {
    color: rgba(232, 246, 250, 0.68);
    font-size: 0.78rem;
}

.server-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.server-status-card,
.server-status-section {
    border: 1px solid rgba(142, 184, 197, 0.28);
    border-radius: 6px;
    background: #20383f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-status-card {
    min-height: 118px;
    padding: 0.9rem;
}

.server-status-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.server-status-label {
    color: rgba(232, 246, 250, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-status-value {
    margin-top: 0.25rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.server-status-network-rate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.server-status-network-rate div {
    min-width: 0;
    padding: 0.55rem;
    border-radius: 5px;
    background: #284750;
}

.server-status-network-rate span,
.server-network-interface-row span,
.server-network-legend {
    color: rgba(232, 246, 250, 0.66);
    font-size: 0.72rem;
}

.server-status-network-rate strong,
.server-network-interface-row strong {
    display: block;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.server-status-meter,
.server-status-mini-meter {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.server-status-meter {
    height: 9px;
    margin-top: 0.9rem;
}

.server-status-meter span,
.server-status-mini-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #55d1ff 0%, #66e08a 55%, #ffc857 100%);
}

.server-status-section {
    margin-top: 0.9rem;
    padding: 0.85rem;
}

.server-status-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0.9rem;
}

.server-status-detail-panel {
    min-height: 160px;
}

.server-status-empty {
    color: rgba(232, 246, 250, 0.68);
    font-size: 0.84rem;
}

.server-cpu-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
}

.server-cpu-core-row {
    display: grid;
    grid-template-columns: 62px minmax(70px, 1fr) 58px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.55rem;
    border-radius: 5px;
    background: #284750;
    font-size: 0.78rem;
    min-width: 0;
}

.server-cpu-core-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.server-cpu-core-row .server-status-mini-meter {
    display: block;
    width: 100%;
    min-width: 0;
    margin-right: 0;
}

.server-memory-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 0.55rem;
}

.server-memory-detail-grid div {
    padding: 0.55rem 0.6rem;
    border-radius: 5px;
    background: #284750;
}

.server-memory-detail-grid span {
    display: block;
    color: rgba(232, 246, 250, 0.66);
    font-size: 0.72rem;
}

.server-memory-detail-grid strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.92rem;
}

.server-network-interface-grid {
    display: grid;
    gap: 0.5rem;
}

.server-network-interface-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.5fr) minmax(90px, 1fr) minmax(90px, 1fr);
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: 5px;
    background: #284750;
    min-width: 0;
}

.server-network-chart-shell {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: stretch;
}

.server-network-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    padding: 0.55rem 0 0.55rem 0;
    color: rgba(232, 246, 250, 0.64);
    font-size: 0.68rem;
    text-align: right;
    white-space: nowrap;
}

.server-network-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 154px;
    padding: 0.65rem 0.65rem 2rem;
    border-radius: 6px;
    background:
        linear-gradient(to top, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
        #18343c;
    overflow: hidden;
}

.server-network-sample {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    flex: 1 1 4px;
    height: 100%;
    min-width: 3px;
    position: relative;
}

.server-network-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
}

.server-network-down {
    background: #56d3ff;
}

.server-network-up {
    background: #ffc857;
}

.server-network-time-label {
    position: absolute;
    left: 50%;
    bottom: -1.35rem;
    transform: translateX(-50%);
    color: rgba(232, 246, 250, 0.68);
    font-size: 0.62rem;
    line-height: 1;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.server-network-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.server-network-legend i {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.25rem;
    border-radius: 2px;
    vertical-align: -0.08rem;
}

.server-network-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.server-network-summary-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 5px;
    background: #284750;
    min-width: 0;
}

.server-network-summary-card strong {
    color: #eef8fb;
    font-size: 0.82rem;
}

.server-network-summary-card div {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.server-network-summary-card span,
.server-network-summary-card small {
    color: rgba(232, 246, 250, 0.62);
    font-size: 0.68rem;
}

.server-network-summary-card b {
    overflow: hidden;
    color: rgba(238, 248, 251, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-status-section-title {
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.server-status-disk-table {
    display: grid;
    gap: 1px;
    overflow-x: auto;
    border-radius: 5px;
    background: rgba(142, 184, 197, 0.2);
}

.server-status-disk-row {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.4fr 1fr 1.2fr;
    min-width: 760px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    background: #284750;
    font-size: 0.82rem;
}

.server-status-disk-head {
    color: rgba(232, 246, 250, 0.7);
    background: #18343c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.server-status-mini-meter {
    display: inline-block;
    width: 82px;
    height: 7px;
    margin-right: 0.45rem;
    vertical-align: middle;
}

.server-recording-settings {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.server-recording-settings label {
    display: grid;
    gap: 0.35rem;
    color: rgba(232, 246, 250, 0.74);
    font-size: 0.78rem;
    font-weight: 700;
}

.server-recording-toggle {
    grid-template-columns: auto 1fr;
    align-items: center;
    align-self: center;
    min-height: 40px;
}

.server-recording-storage-roots {
    grid-column: 1 / -1;
}

.server-capacity-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.server-capacity-summary div {
    padding: 0.7rem;
    border-radius: 6px;
    background: #284750;
}

.server-capacity-summary span {
    display: block;
    color: rgba(232, 246, 250, 0.68);
    font-size: 0.74rem;
}

.server-capacity-summary strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.2rem;
}

.server-status-disk-row.server-capacity-row {
    grid-template-columns: 0.9fr 0.7fr 0.8fr 1.2fr 1fr;
}

.server-status-disk-row.server-storage-row {
    grid-template-columns: minmax(240px, 2fr) 0.7fr 0.8fr 0.8fr 0.8fr;
}

@media (max-width: 1200px) {
    .server-status-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .server-status-detail-grid,
    .server-recording-settings,
    .server-capacity-summary {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .server-memory-detail-grid {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }
}

@media (max-width: 720px) {
    .server-status-grid {
        grid-template-columns: 1fr;
    }

    .server-status-detail-grid,
    .server-recording-settings,
    .server-capacity-summary {
        grid-template-columns: 1fr;
    }
}

.h-80 {
    height: 80% !important;
}

.h-70 {
    height: 70% !important;
}

.h-60 {
    height: 60% !important;
}

.h-40 {
    height: 40% !important;
}

.h-30 {
    height: 30% !important;
}

.h-20 {
    height: 20% !important;
}

.h-10 {
    height: 10% !important;
}

/*.jitsi-hidden {*/
/*    position: absolute;*/
/*    left: -10000px;*/
/*    top: 0;*/
/*    width: 1px;*/
/*    height: 1px;*/
/*    overflow: hidden;*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*}*/

.jitsi-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.01;
    pointer-events: none;
    left: -10000px;
    top: -10000px;
}


/*.map-panel {*/
/*    position: absolute;*/
/*    background: #fff;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0 8px 24px rgba(0,0,0,.25);*/
/*    border: 1px solid rgba(0,0,0,.12);*/
/*    overflow: hidden;*/
/*    resize: both;           !* <— user resizes *!*/
/*    min-width: 220px;*/
/*    min-height: 160px;*/
/*}*/

/*.map-panel__header {*/
/*    cursor: move;           !* <— user drags by header *!*/
/*    padding: 8px 10px;*/
/*    font: 600 13px/1.2 system-ui;*/
/*    background: rgba(0,0,0,.05);*/
/*    user-select: none;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    gap: 8px;*/
/*}*/

/*.map-panel__body {*/
/*    padding: 8px;*/
/*}*/

/*.map-panel iframe {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    aspect-ratio: 9 / 16;   !* or 16/9 *!*/
/*    border: 0;*/
/*    display: block;*/
/*}*/
