﻿@font-face {
    font-family: 'TitilliumWeb-Bold';
    src: url('fonts/TitilliumWeb-Bold.woff') format('woff')
}
@font-face {
    font-family: 'TitilliumWeb-Light';
    src: url('fonts/TitilliumWeb-Light.woff') format('woff')
}
@font-face {
    font-family: 'TitilliumWeb-SemiBold';
    src: url('fonts/TitilliumWeb-SemiBold.woff') format('woff')
}
/*@font-face {
    font-family: 'TitilliumWeb-Regular';
    src: url('fonts/titilliumweb-regular.woff') format('woff')
}

*/
@font-face {
    font-family: 'TitilliumWeb-Regular';
    src: url('fonts/titilliumweb-regular.ttf') format('truetype')
}

@font-face {
    font-family: 'DMSans-Bold';
    src: url('fonts/DMSans-Bold.woff') format('woff')
}
@font-face {
    font-family: 'DMSans-Light';
    src: url('fonts/DMSans-Light.woff') format('woff')
}
@font-face {
    font-family: 'DMSans-Medium';
    src: url('fonts/DMSans-Medium.woff') format('woff')
}
@font-face {
    font-family: 'DMSans-Regular';
    src: url('fonts/DMSans-Regular.woff') format('woff')
}
@font-face {
    font-family: 'DMSans-SemiBold';
    src: url('fonts/DMSans-SemiBold.woff') format('woff')
}
.svg-filterdf0024 {
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(0deg) brightness(104%) contrast(97%);
/*    filter: invert(18%) sepia(85%) saturate(5075%) hue-rotate(340deg) brightness(94%) contrast(106%);
*/

}

/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
/*    display:flex;*/
}

html, body {
    height: 100%;
    font-family: TitilliumWeb-Regular, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #4C4C4C;
    overflow: clip;
}

h2, h3 {
    margin-block: 0 !important;
    color: #4C4C4C  !important;
    font-weight: 500 !important;
    /*line-height:1.5rem !important;*/
}

span, p {
   /*font-size: 1em;*/
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 18px !important;
}

::-webkit-scrollbar-thumb {
    background-color: #8B8B8B !important; /* your preferred color */
    border-radius: 12px !important;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #555 !important;
    }

/* Firefox */
* {
    scrollbar-width: 18px !important; /* or auto, none */
    scrollbar-color: #8B8B8B #f1f1f1 !important;
}

.svg-wrapper, .svgcircle {
    height: 120px;
    width: 120px;
}

.svg-wrapper {
    display: inline-block;
    transform: translateY(50px);
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
}

    .svg-wrapper img {
        display: block; /* Ensures no unexpected spacing */
    }

    .svg-wrapper.batteries .svg_marker
    {
        position:absolute;
        top:22px;
        right:43px;
    }
    .svg-wrapper.depots .svg_marker {
        position: absolute;
        top: 37px;
        right: 29px;
        height:49px;
    }

.svg_marker, .svg_markerped {
    height: 75px;
    pointer-events: none;
}

.svg_marker-ev, .svg_markerped-ev {
    height: 75px;
    cursor:pointer;
    pointer-events:auto !important;
}

.grey {
    color: #4c4c4c !important;
}

.searchcontainer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 300px;
    background-color:white;
}

#place-autocomplete-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin: 10px;
    padding: 5px;
    font-family: Roboto, sans-serif;
    font-size: large;
    font-weight: bold;
}

gmp-place-autocomplete {
    width: 100%;
    border-radius: 0;
}

#infowindow-content .title {
    font-weight: bold;
}

#map #infowindow-content {
    display: inline;
}

.text-with-square {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Space between square and text */
}

    .text-with-square::before {
        content: '';
        width: 20px; /* Square size */
        height: 20px;
        background-color: #FFBB00;
        display: inline-block;
    }

.rotatable {
    transition: transform 0.25s ease-in-out;
    cursor: pointer;
}

.rotated {
    transform: rotate(-180deg);
}

.collapsible {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

    .collapsible.expanded {
        max-height: 500px; 
    }

.disabled-text {
    color: #ccc !important;
}

.custom-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensure container takes the full height you want */
    width: 100%; /* Ensure container takes the full width you want */
}

.custom-loader {
    --d: 42px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    color: #DF0024;
    box-shadow: calc(1*var(--d)) calc(0*var(--d)) 0 0, calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px, calc(0*var(--d)) calc(1*var(--d)) 0 2px, calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px, calc(-1*var(--d)) calc(0*var(--d)) 0 4px, calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px, calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
    animation: s7 1s infinite steps(8);
}

@keyframes s7 {
    100% {
        transform: rotate(1turn)
    }
}

.centered-line-text {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
}

    .centered-line-text::before,
    .centered-line-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid black;
        margin: 0 10px; /* Adjust space between text and line */
    }

img.battmap {
    position: absolute;
    top: -3px;
    right: 5px;
}

.underlinedred {
    display: inline-block;
    position: relative;
}

    .underlinedred::after {
        content: '';
        position: absolute;
        left: -20px;
        right: -30px;
        bottom: -8px;
        height: 4px;
        background-color: red;
    }

.agdinput input {
    box-sizing: border-box;
    font-family: TitilliumWeb-Regular, Arial, sans-serif;
    font-size: 1rem;
    padding: 8px 8px;
    margin-top: 8px;
    margin-bottom: 12px;
    width: 100%;
    border: 1px solid #4C4C4C;
    border-radius: 1px;
    box-shadow: none;
    outline: none;
}

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

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

.pointer {
    cursor: pointer;
}

.tgslink {
    display: unset;
}

.burgermenu {
    margin-left:24px;
    height: 45px;
    position: absolute;
    left: 0;
    display: none;
}

/* Container to hold the layout */
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Title bar */
.title-bar {
    padding: 14px;
    flex-shrink: 0; /* Ensures it doesn't shrink */
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    height: 80px;
    background-color: #FFFFFF;
    align-items: center;
    display: flex
}

/* Content area below the title bar */
.content {
    height:0vh;
    display: flex;
    flex: 1; /* Fills the remaining height of the page */
}

/* Left column */
.left-column {
    width: 375px; /* Fixed width for the left column */
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    background-color: white;
    min-height: 0;
}

.left-column.relative {
    position: relative;
}

.left-item {
    display: flex;
}

.left-item:first-child {
/*    height: 130px;  Fixed height for the first item 
    margin-bottom:10px;  Space below the fixed-height item 
*/
}

.left-item:last-child {
/*    height: 50px; 
    border: 1px solid black;
    border-bottom: none;*/
}

.left-item:not(:first-child):not(:last-child) {

}

/* Right column */
.right-column {
    flex: 1; /* Dynamically adjusts to fill remaining space */
    display: flex;
    min-height: 0;
}

/* Flyout common styles */
.flyout-left, .flyout-right {
    position: fixed;
    top: 78px;
    width: 330px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
}

/* Left flyout starts off-screen on the left */
.flyout-left {
    left: -340px;
    transform: translateX(0);
}

/* Right flyout starts off-screen on the right */
.flyout-right {
    background-color: white;
    border: 1px solid #4C4C4C ;
    right: -330px;
    transform: translateX(0);
}

/* Flyout content */
.flyout-content {

    border-bottom-left-radius:10px;
}

/* Class to make the left flyout visible */
.flyout-left.open {
    transform: translateX(340px); /* Slides the left flyout into view */
}

/* Class to make the right flyout visible */
.flyout-right.open {
    transform: translateX(-330px); /* Slides the right flyout into view */
}

.editpen {
    display:none;
}

.menu-down-arrow-icon {
    content: url("/_content/TMDesk.Shared/assets/menu_arrow_down_outline.svg");
}

.menu-down-arrow-icon:hover {
    content: url("/_content/TMDesk.Shared/assets/menu_arrow_down_filled.svg");
}

.marker-label {
    position: absolute;
    bottom: -16px; /* Adjust to position label */
    left: 50%;
    text-transform: uppercase;
    transform: translateX(-50%);
    background-color: white;
    padding: 2px 6px 2px 6px;
    border-radius: 8px;
    font-family: 'TitilliumWeb-Regular';
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    /*box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);*/
}

.btn-primary {
    font-family: TitilliumWeb-Regular, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1rem;
    padding: 15px;
    margin: 5px 0;
    height: 50px;
    width: 100%;
    color: white;
    background-color: white;
    color: #df0024;
    border: 1px #df0024 solid;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #df0024;
        color: white;
    }

.btn-disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.footer {
    margin-top: auto;
    text-align: center; 
    padding: 10px;
}

.pagecontent {
    flex: 1;
    margin: 0 auto;
}

/* Container for the hover element */
.hover-container {
    position: relative;
    display: inline-block;
    margin: 50px;
    cursor: pointer;
}
.hover-popup {
    position: absolute;
    background: white;
    border: 1px solid black;
    padding: 1px;
    z-index: 1000;
    display: none;
    transform: translate(-50%, -100%);
}

    .hover-popup::after {
        content: '';
        position: absolute;
        top: 100%; /* Position below the tooltip */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px;
        border-color: white transparent transparent transparent; /* Arrow body color */
        z-index: 1; /* Above the border layer */
    }

    .hover-popup::before {
        content: '';
        position: absolute;
        top:100%; /* Position slightly lower than the arrow */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 11px; /* Slightly larger than the arrow */
        border-color: black transparent transparent transparent; /* Border color */
        z-index: 0; /* Below the arrow layer */
    }

.custom-circular-progress .rz-progressbar-circular-value {
    stroke: #4c4c4c !important;
}

.custom-switch.rz-state-empty .rz-switch-circle {
    background: #9a9999 !important;
}

.custom-switch.rz-switch-checked .rz-switch-circle {
    background: #4c4c4c !important;
}

.custom-switch .rz-switch-circle:before {
    background: #efefef !important;
    height: 22px !important;
    width: 22px !important;
    margin-top: -11px !important;
}

#pu-container
{
    display:flex;
    flex-direction:row;
    font-weight:bold;
}
    #pu-container img {
        height: 13px;
        flex:1;
    }

#pu-left, #pu-right {
    padding: 0 7px;
    margin-top: 7px;
}
#pu-left {
    flex: 8;
    display: flex;
    flex-direction: column;
    border-right:4px solid #4C4C4C ;
}
#pu-left div{
    flex:1;
    min-width:120px;
}
#pu_assetid {}
#pu_headname {}
#pu-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}
#pu_type {}
#pu_battery {}
#pu_lastseen {
    padding: 0 7px 1px 7px;
    text-align: center;
    background-color: #eee;
    font-size: 14px;
    border-radius: 5px;
    margin: 2px;
    color:#505050;
}
/* Responsive layout for small screens */
@media (max-width: 600px) {
    .pagecontent {
        margin-left: min(10px);
        margin-right: min(10px);
    }

    .content {
        flex-direction: column; /* Stack columns vertically */
    }

    .left-item:first-child {
    }

    .left-column,
    .right-column {
        width: 100%; /* Both columns take full width */
    }

    .left-column {
        order: 2; /* Move left column below the right column */
        height: 55%;
    }

    .right-column {
        order: 1; /* Move right column above the left column */
        flex-grow: 1;
        min-height: 200px;
    }

    .burgermenu {
        display: unset;
    }

    .tgslink {
        display: none;
    }

    .searchcontainer {
        display: none;
    }
}

