﻿/*Logo */
:root {
    /*Globale variabelen*/
    --apex-color-1: #3f4262;
    /*Maps settings*/
    padding-top: var(--mud-appbar-height);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
}

    :root:after {
        /*Maps settings*/
        filter: blur(5px);
        overflow: auto;
    }

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #e1e3e7;
    --mud-palette-table-hover: #c2c6d1;
}

/* Dark mode override for html/body background */
html.mud-theme-dark,
body.mud-theme-dark {
    background-color: #0a0a0a;
    --mud-palette-table-hover: #2a2f3a;
}

/*mobile appbar padding*/
@media (max-width: 600px) {
    .mud-appbar .mud-toolbar-appbar {
        height: var(--mud-appbar-height);
    }

    .mud-drawer-fixed.mud-drawer-mini.mud-drawer-clipped-always, .mud-drawer-fixed.mud-drawer-persistent:not(.mud-drawer-clipped-never), .mud-drawer-fixed.mud-drawer-responsive.mud-drawer-clipped-always, .mud-drawer-fixed.mud-drawer-temporary.mud-drawer-clipped-always {
        top: var(--mud-appbar-height);
    }
}

/*mud main*/

.mud-main-content, .mud-tabs-toolbar-secondary, .flex-grow {
    height: 100%;
}

@media (min-width: 600px) {
    .mud-main-content, .mud-tabs-toolbar-secondary, .flex-grow {
        height: 100%;
    }

    .apex-appbar-logo {
        height: 40px;
        z-index: 10;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
}


/*Mobile Logo*/
@media (max-width: 600px) {
    .apex-appbar-logo {
        position: absolute;
        height: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
}

.apex-drawer-logo {
    transition-duration: 0.5s;
    filter: opacity(0.1) grayscale(0.5);
    align-self: center;
    width: 75px;
}

    .apex-drawer-logo:hover {
        transition-duration: 0.8s;
        filter: opacity(0.5);
        align-self: center;
    }

.apex-drawer-menu-logo {
    display: block;
    padding-top: 1em;
    padding-bottom: 2.5em;
    margin-left: auto;
    margin-right: auto;
    width: 65%;
    object-fit: contain;
}

.mud-app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
/*Scrollbar*/
::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
    z-index: 1 !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: #808080 !important;
    border-radius: 5px !important;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #808080 !important;
    }

/*Menu */
.apex-drawer-paper {
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 32px;
}

.apex-drawer {
    backdrop-filter: blur(15px);
}

    .apex-drawer::after {
        box-shadow: 0 0 0 10px var(--apex-color-1);
    }


.mud-toolbar-dense {
    padding-right: 6px;
}

/*Achtergrond voor de hele pagina*/
.apex-background {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
}

    .apex-background::before {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        content: "";
        position: fixed;
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: top;
        z-index: -1;
    }

    .apex-background::after {
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
        content: "";
        position: fixed;
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: top;
        /*    backdrop-filter: contrast(0.7) blur(9px);*/
        z-index: -1;
    }

/*Mini appbar maps*/
.mud-appbar {
    border-bottom: solid 1px #b1b8e5;
}

/* Maps overlay container */
.apex-toolbar-wrapper {
    position: fixed;
    bottom: 3%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1050;
    transition: left 300ms ease;
}

.apex-toolbar {
    background-color: var(--mud-palette-surface);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

.apex-layer-drawer {
    position: absolute;
    bottom: 110%;
    left: 0;
    background-color: var(--mud-palette-surface);
    padding: 1rem;
    border-radius: 12px 12px 12px 12px;
    width: 360px;
    max-width: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: drawerEnter ease-out;
    will-change: transform, opacity;
}

@keyframes drawerEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawerExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.search-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background-color: var(--mud-palette-surface);
    z-index: 1000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding-top: var(--mud-appbar-height, 56px);
    will-change: transform, opacity;
}

.slide-in {
    animation: slideInDrawer 300ms ease-out forwards;
}

.slide-out {
    animation: slideOutDrawer 300ms ease-in forwards;
}

@keyframes slideInDrawer {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutDrawer {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/*NavMenu */
.mud-drawer--open .mud-drawer-text-active {
    border-radius: var(--mud-default-borderradius);
    border: solid 1px var(--mud-palette-info-lighten);
    margin-right: 1rem;
    transition: border 0.3s ease, margin-right 0.6s ease;
}

.mud-drawer--open .mud-drawer-text:hover {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: margin-left 0.3s ease, margin-right 0.3s ease;
}


.mud-drawer--closed .mud-drawer-text-active .mud-icon-root {
    color: var(--mud-palette-info) !important;
}

.mud-drawer.mud-drawer-mini {
    transition: width 0ms;
}

.mud-main-content {
    transition: margin 0ms;
}


/* Toolbars op de Map*/

.apex-overlay-controls-components {
    background-color: var(--mud-palette-appbar-background);
    border-radius: var(--mud-default-borderradius);
    filter: drop-shadow(0px 20px 20px #484848);
}

/* in your site.css */
/*.drawer-open .apex-overlay-controls {
    left: calc(240px + 40px);*/ /* Adjusted for open drawer width */
/*}

.drawer-closed .apex-overlay-controls {
    left: calc(64px + 40px);*/ /* Adjusted for closed drawer width */
/*}*/


.apex-overlay-filters {
    position: fixed;
    bottom: 5%;
    transition: left 415ms cubic-bezier(0.65, 0.05, 0.36, 1);
    background-color: var(--mud-palette-appbar-background);
}

.apex-search-button-toolbar {
    animation: fadeIn 0.2s ease-in forwards;
    border: solid 1px #fe762c;
}

    .apex-search-button-toolbar:hover {
        color: #c61713;
        border: solid 1px #fe762c;
        transition: 0.3s;
    }

/*Maps zoekbutton*/
.apex-search-button {
    position: absolute;
    color: #fe762c;
    z-index: 100;
    left: 50%;
    background-color: var(--mud-palette-appbar-background);
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

    .apex-search-button:hover {
        position: absolute;
        z-index: 100;
        left: 50%;
        background-color: #fe762c;
        border: solid 1px #fe762c;
        color: var(--mud-palette-appbar-background);
        transition: 0.3s;
    }

/*Maps refresh*/
.apex-refresh-button {
    position: absolute;
    z-index: 100;
    top: 1%;
    left: 98%;
    background-color: var(--mud-palette-appbar-background);
}

    .apex-refresh-button:hover {
        position: absolute;
        z-index: 100;
        top: 1%;
        left: 98%;
        background-color: var(--mud-palette-appbar-background);
        border: solid 1px #c61713;
        color: #c61713;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}



/* Search Border */
.apex-map-search-border {
    border-radius: 16px;
    display: inline-block;
    overflow: hidden;
    position: relative;
}

    .apex-map-search-border:before {
        content: "";
        position: absolute;
        border-radius: inherit;
        border: 3px solid #fece40;
        inset: 16px;
        z-index: 40000000;
    }

.mud-grid::before {
    padding-right: 0px !important;
}

/*Minimap*/
.apex-minimap {
    border-radius: 5px;
    cursor: pointer;
    border: solid 1px var(--mud-palette-secondary-lighten);
}

    .apex-minimap:hover {
        border: 1px solid var(--mud-palette-secondary-darken);
    }


.apex-component-menu-margin {
    margin-top: 0em;
}

.apex-toolbar-radius {
    border-radius: var(--mud-default-borderradius) var(--mud-default-borderradius) 0px 0px;
}

@media (max-width: 600px) {
    .apex-toolbar-radius {
        border-radius: 0px 0px 0px 0px;
    }
}

.apex-toolbar-radius-all {
    border-radius: var(--mud-default-borderradius);
}


/*Filter Toolbar Styles*/
.apex-toolbar-noradius {
    border-radius: 0px 0px 0px 0px;
    padding: 6px;
    display: flex;
    justify-content: flex-end;
}

.apex-filter-toolbar-enter {
    animation: slideDown 0.5s forwards;
}

.apex-filter-toolbar-exit {
    animation: slideUp 0.5s forwards;
}

/*Filter Toolbar Animaties*/
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        visibility: hidden;
        opacity: 0;
    }

    to {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
}

/*Apex Content Paper component*/
.apex-content-paper-radius {
    border-radius: 1px 1px var(--mud-default-borderradius) var(--mud-default-borderradius);
}

@media (max-width: 600px) {
    .apex-content-paper-radius {
        border-radius: 0px 0px 0px 0px;
    }
}

.apex-full-height-container {
    overflow-y: auto;
    height: 100%;
}

@media (max-width: 600px) {
    .apex-full-height-container {
        overflow-y: auto;
        height: 100%;
        bottom: calc(0px+var(--mud-appbar-height));
    }
}

.task-container, .memo-container {
    flex: 1;
    overflow: auto;
    flex-shrink: 1;
}

.apex-clickable-card:hover {
    cursor: pointer;
    box-shadow: 0px 0px 5px 5px #ffffff0e;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #ef4c4a;
    background-color: var(--mud-palette-action-default-hover);
}

.mud-table-cell:hover {
    cursor: pointer;
}

.mud-button-text.mud-button-text-primary {
    color: var(--mud-palette-success);
}

/* Selected Row in MudTable */
.selected {
    background-color: #d1d6e3;
}

    .selected .mud-icon-button {
        color: var(--mud-palette-surface) !important;
    }

        .selected .mud-icon-button .mud-switch-button {
            color: var(--mud-palette-error) !important;
        }

    .selected .mud-button-outlined {
        border: 1px solid var(--mud-palette-surface);
    }

@media (max-width: 600px) {
    .selected {
        background-color: #d1d6e3;
    }

        .selected .mud-icon-button {
            color: var(--mud-palette-primary) !important;
        }

            .selected .mud-icon-button .mud-switch-button {
                color: var(--mud-palette-error) !important;
            }

        .selected .mud-typography {
            color: var(--mud-palette-primary) !important;
        }

        .selected .mud-button-outlined {
            border: 1px solid var(--mud-palette-primary);
        }
}

/* Selected Row in Dark Mode */
.mud-theme-dark .selected {
    background-color: #2a2f3a;
}

    .mud-theme-dark .selected .mud-icon-button {
        color: rgba(255,255,255, 0.9) !important;
    }

    .mud-theme-dark .selected .mud-typography {
        color: rgba(255,255,255, 0.95) !important;
    }

    .mud-theme-dark .selected .mud-button-outlined {
        border: 1px solid #444444;
    }

/*Mobile cardview table padding*/
@media (max-width: 600px) {
    .mud-xs-table .mud-table-cell {
        padding: 0px 10px;
    }

    .mud-table {
        border-radius: 0px;
    }
}

.apex-table-line {
    padding: 0px 0px;
    line-height: 0.7rem;
}

@media (max-width: 600px) {
    .apex-table-line {
        padding: 0px 0px;
    }
}

.apex-timeline-card {
    /*    background-color: var(--mud-palette-background);*/
    background-color: #3f42621f;
}

#turbomap {
    width: 100%;
    height: 100%;
    position: fixed !important;
    top: 0px;
    left: 0px;
}

.custom-popup {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    /*transition: opacity 0.5s ease-out, transform 0.5s ease-out;*/
}

    .custom-popup.visible {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

.scale-in-center {
    -webkit-animation: scale-in-center 0.15s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: scale-in-center 0.15s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

.apex-option-toolbar {
    /*    border-right: solid 1px var(--mud-palette-secondary-lighten);
    border-top: solid 1px var(--mud-palette-secondary-lighten);
    border-left: solid 1px var(--mud-palette-secondary-lighten);*/
}

.apex-content-paper-border {
    /*    border-right: solid 1px var(--mud-palette-secondary-lighten);
    border-bottom: solid 1px var(--mud-palette-secondary-lighten);
    border-left: solid 1px var(--mud-palette-secondary-lighten);*/
}

.mud-input.mud-input-text.mud-input-adorned-end.mud-shrink.mud-select-input {
    margin-top: 0 !important;
}


.mud-select.compact-mud-select .mud-input-slot {
    padding: 2px 2px;
}

/*Mud Select Input Text*/
.mud-input > input.mud-input-root {
    text-align: left;
    font-size: 0.7rem;
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    text-align: left;
    font-size: 0.7rem;
}



/*Table settings */
.mud-table-cell {
    line-height: 1.5;
    font-size: 0.7rem;
    border-bottom: 1px solid #d3d7df;
    padding: 0px;
}

.mud-table-cell .mud-select.compact-mud-select .mud-input-control .mud-input-slot {
    font-size: 0.7rem;
    padding: 2px 2px;
}

.mud-table thead th.mud-table-cell {
    background-color: #C2C6D1 !important;
    font-weight: bold;
    font-size: 0.75rem;
}

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: .7rem;
    line-height: 1;
    border-bottom: 1px solid #d3d7df;
}

/*.text-overflow {
    max-width: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .text-overflow:hover {
        text-overflow: revert !important;
    }*/

.text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 768px) {
    .text-overflow:hover {
        overflow: visible;
        text-overflow: clip;
    }
}

.parent-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Om de icons te centrereren */
.mud-button-root {
    /*    display: flex;*/
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

    .mud-button-root:hover {
        /*    display: flex;*/
        align-items: center;
        justify-content: center;
    }

.mud-icon-root {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mud-icon-root:hover {
        display: flex;
        align-items: center;
        justify-content: center;
    }


.apex-height-appbar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--mud-appbar-height));
    overflow-y: auto;
}

@media (max-width: 1280px) and (orientation: landscape) {
    .mud-main-content {
        overflow-y: auto;
    }
}


.mud-paper-outlined {
    border: 1px solid #d3d7df;
}


/* Container for the gradient and scrollable content */
.gradient-container {
    position: relative;
}

/* Scrollable content area with responsive max-height */
@media (max-width: 3840px) {
    .scroll-content {
        max-height: 68.5vh;
        overflow-y: auto;
        position: relative;
    }
}

@media (max-width: 1921px) {
    .scroll-content {
        max-height: 57vh;
        overflow-y: auto;
        position: relative;
    }
}

/* Gradient at the bottom of the container */
.bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255,1), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
    border-bottom-left-radius: var(--mud-default-borderradius);
    border-bottom-right-radius: var(--mud-default-borderradius);
}


.apex-dialog-width {
    min-width: 30vw;
}

@media (max-width: 1900px) {
    .apex-dialog-width {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .apex-dialog-width {
        width: 80%;
    }
}

.apex-qlik-dialog {
    min-width: 90vw;
    min-height: 90vh;
}

@media (max-width: 1900px) {
    .apex-qlik-dialog {
        width: 50%;
    }
}

/*qlikcomponents*/
.mud-dialog.mud-dialog-width-xxl {
    max-width: 90vw;
    height: 80vh;
}

.mud-dialog.mud-dialog-width-lg {
    height: 50vh;
}

/*mobile table height hack*/
.apex-table-mobile-height {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 178px);
    overflow:auto;
}

.apex-table-mobile-height-mobile-relations {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 225px);
    overflow: auto;
}

.apex-settings-menu {
    padding-bottom: 25px;
}

/*Mobile cardview table padding*/
@media (max-width: 600px) {
    .apex-settings-menu {
        padding-bottom: calc(var(--mud-appbar-height) + 25px );
    }
}

/* GlobalStyles.css */

/* ... existing styles ... */

/* Custom Marker Styles */
.custom-marker {
    position: absolute;
    width: 35px;
    height: 42px;
    transform: translate(-50%, -100%); /* Center the marker */
    cursor: pointer;
}

.custom-marker .marker-icon {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-marker .marker-icon img {
    width: 100%;
    height: 100%;
}

.custom-marker .marker-icon::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: sheen 1s forwards;
}

@keyframes sheen {
    from {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    to {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/*table rightmouse context menu*/
.context-menu {
    position: fixed;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    padding: 8px;
    display: none;
}

.context-menu.show {
    display: block;
}

.relative-container {
    position: relative;
}

@keyframes dropdown-fade-slide {
    0% {
        opacity: 0;
        transform: translateY(-5px) scaleY(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.dropdown-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1000;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    /* ✨ Add animation */
    animation: dropdown-fade-slide 160ms ease-out;
    transform-origin: top center;
}

/* Email Dialog Styling*/
.chip-scroll-wrapper {
    max-height: 70px; 
    overflow-y: auto;
    flex-wrap: wrap;
    display: flex;
    gap: 0.5rem;
}