﻿.bw {
    filter: grayscale(100%);
}
div.dashboard-Tables-scrollable {
    height: 27em;
    overflow-y: auto;
}
.bg-light {
    color: black !important;
}

.beStickyRight {
    position: fixed;
    z-index: 2000;
    top: 5%;
    left: 74%;
    transform: translateX(-50%);
    margin-left: 0;

    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Smooth Transition */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Padding für bessere Optik */
    padding: 8px 16px;
}

/* Hover-Zustand: Voll sichtbar */
.beStickyRight:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    transform: translateX(-50%) translateY(-2px);
}

/* Für 2K Auflösung (2560x1440) */
@media screen and (min-width: 2560px) {
    .beStickyRight {
        top: 4.3%;
        left: 80%;
    }
}

/* Optional: Animierter Indikator für Interaktivität */
.beStickyRight::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg,
    transparent,
    var(--company-Color),
    transparent
    );
    border-radius: 0 0 3px 3px;
    transition: opacity 0.3s ease;
}

/* Für Buttons innerhalb der ButtonBar */
.beStickyRight .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.beStickyRight:hover .btn {
    background: rgba(255, 255, 255, 0.3);
}

.beStickyRight .btn:hover {
    background: rgba(37, 165, 46, 0.3) !important;
    border-color: var(--company-Color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 165, 46, 0.3);
}

/* ============================================ */
/* DARK MODE SUPPORT */
/* ============================================ */

[data-bs-theme="dark"] .beStickyRight {
    /* Dunklerer Glassmorphism Effekt für Dark Mode */
    background: rgba(20, 20, 30, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .beStickyRight:hover {
    background: rgba(30, 30, 45, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6),
    0 0 20px 0 rgba(37, 165, 46, 0.1);
}

/* Dark Mode: Buttons innerhalb der ButtonBar */
[data-bs-theme="dark"] .beStickyRight .btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .beStickyRight:hover .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .beStickyRight .btn:hover {
    background: rgba(37, 165, 46, 0.25) !important;
    border-color: var(--company-Color);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(37, 165, 46, 0.4),
    0 0 12px rgba(37, 165, 46, 0.2);
}

/* Dark Mode: Indikator mit leichtem Glow */
[data-bs-theme="dark"] .beStickyRight::before {
    background: linear-gradient(90deg,
    transparent,
    rgba(37, 165, 46, 0.8),
    transparent
    );
    box-shadow: 0 0 8px var(--company-Color);
}

[data-bs-theme="dark"] .beStickyRight:hover::before {
    box-shadow: 0 0 12px var(--company-Color),
    0 0 20px rgba(37, 165, 46, 0.3);
}

#gantt {
    height: 700px;
}

.custom-task {
    display: block;
    overflow: visible;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    min-width: 16px;
    border-color: rgba(0, 0, 0, 0.25);
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin-top: -1em;
}

.custom-task-wrapper {
    padding: 0px;
    color: rgba(10, 10, 10, 1);
}

.custom-task-wrapper > * {
    display: block;
    overflow: visible;
    text-overflow: ellipsis;

}

.custom-task-title {
    font-weight: 600;
    font-size: 14px;
    text-align: center ;
}

.custom-task-row {

    font-size: 11px;
    text-align: center;
}
.custom-task-progress-tooltip {
    position: relative;
    margin-top: 2px;
    height: 13px;
    background: rgba(0, 0, 0, .4);
    border-radius: 15px;
    font-size: 10px;
    font-weight: bolder;
    text-align: center;

    color: white;
    min-width: 20px;
}
.custom-task-progress {
    position: absolute;
    margin-top:2px;
    height:13px;
    background: rgba(0, 0, 0, .4);
    border-radius: 15px;
    font-size: 10px;
    font-weight: bolder;
    text-align:center;
    vertical-align:text-top;
    color: white;
    min-width: 20px;

}

.options {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(191, 191, 191, 0.15);
    position: relative;
}

.caption {
    font-size: 18px;
    font-weight: 500;
}

.option {
    margin-top: 10px;
    margin-right: 40px;
    display: inline-block;
}

.option:last-child {
    margin-right: 0;
}

.custom-task-edit-tooltip {
    opacity: 0.9;
    color: black;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-color: rgba(0, 0, 0, 0.25);
    border-width: 1px;
    border-style: solid;
    padding: 10px 12px 12px 12px;
    border-radius: 20px;
}

.custom-task-edit-tooltip::before {
    border-top-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.custom-task-edit-tooltip::after {
    border-bottom-color: white;
}

.custom-tooltip-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 6px;
    padding-top: 6px;
    background-color: rgba(0, 0, 0, -0.25);
    color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 6px;
}

.custom-tooltip-row {
    font-size: 14px;
    text-align: center;
}

.dx-gantt-task-edit-progress {
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    cursor: pointer;
    border-style: solid;
    border-width: 0 6px 9px 6px;
    border-color: transparent transparent #269aff transparent;
    z-index: 10
}

.dx-gantt-task-edit-progress:before {
    content: "";
    width: 10px;
    height: 4px;
    background-color: white;
    position: absolute;
    bottom: -14px;
    left: -6px;
    border: 1px solid #269aff;
    border-top: none
}

.floating-ressource-wrapper {
    padding: 5px;
    min-height: 20px;
    min-width: 10px;
    display: inline-block;
    position: absolute;
    margin-top: -18px;
    margin-left: 0px;
}
.floating-ressource-wrapper > * {
    margin-left: 5px;
    display: block;
}

.floating-ressource {
    padding:3px;
    min-height: 20px;
    min-width: 10px;
    display: inline-block;
    border-color: rgba(0, 0, 0, 0.25);
    border-width: 0px;
    border-style: solid;
    position: relative;
    font-weight: bolder;
    border-radius:5px;
    text-align: center;
    vertical-align: central;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.dx-gantt .dx-gantt-taskWrapper .dx-gantt-task .dx-gantt-tPrg {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
}
.dx-gantt .dx-row {
    height: 40px;
}

.background-color-grey {
    background-color: #c0c0c0 !important;
}

.background-color-turquoise {
    background-color: #39afd1 !important;
}

.background-color-blue {
    background-color: #007bff !important;
    color: white !important;
}

.background-color-green{
    background-color: forestgreen !important;
    color: white !important;
} 

.devModus{
    background-color: aliceblue !important;
}

.testModus{
    background-color: beige !important;
}

.btn-primary {
    color: var(--text-Color);
    background-color: transparent;
    border-color: var(--company-Color);
    box-shadow: 0 0 0 0.0rem transparent;
}

.btn-primary:hover {
    color: white !important;
    background-color: var(--company-Color) !important;
    border-color: var(--text-Color);
}

/*Animation für die aktivierten Items */

.side-nav > li.side-nav-item.menuitem-active {

    transform: translateX(2px) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.side-nav > li.side-nav-item.menuitem-active .side-nav-link,
.side-nav > li.side-nav-item.menuitem-active > a {
    color: var(--company-Color) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Glühender Effekt nur für Hauptmenü-Items */
.side-nav > li.side-nav-item.menuitem-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--company-Color);
    box-shadow: 0 0 10px var(--company-Color);
    animation: menuGlow 2s ease-in-out infinite alternate;
}

/* Icon-Hervorhebung nur für Hauptmenü-Items */
.side-nav > li.side-nav-item.menuitem-active i {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)) !important;
    transition: all 0.3s ease !important;
    color: var(--company-Color) !important;
}

/* SUB-MENÜ Items - NUR diese sollen im Sub-Level aktiv sein */
.side-nav .side-nav-second-level > li.menuitem-active {
    background: none !important;
    border-left: none !important;
    box-shadow: none !important;
    transform: none !important;
    position: static !important;
}

/* Entfernen alle Pseudo-Elemente für Sub-Menü Container */
.side-nav .side-nav-second-level > li.menuitem-active::before {
    display: none !important;
}

/* NUR der Link im Sub-Menü soll aktiv sein */
.side-nav .side-nav-second-level > li.menuitem-active > a.side-nav-a-item {
    border-left: 3px solid var(--company-Color) !important;
    color:white !important;
    font-weight: 600 !important;
    margin: 2px 0 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 8px 30px 8px 20px !important;
    display: block !important;
}

/* Dritte und vierte Ebene */
.side-nav .side-nav-third-level > li.menuitem-active > a,
.side-nav .side-nav-forth-level > li.menuitem-active > a {
    border-left: 2px solid var(--company-Color) !important;
    color:white !important;
    font-weight: 600 !important;
    margin: 1px 0 !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 6px 20px 6px 20px !important;
    display: block !important;
}

/* Hover-Effekte für nicht-aktive Hauptmenü-Items */
.side-nav > li.side-nav-item:not(.menuitem-active):hover {
    transform: translateX(1px);
    
    border-left: 2px solid rgba(37, 165, 46, 0.5);
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
}

/* Ripple-Effekt nur für Hauptmenü-Items */
.side-nav > li.side-nav-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav > li.side-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    pointer-events: none;
}

.side-nav > li.side-nav-item:active::after {
    width: 200px;
    height: 200px;
}

@keyframes menuGlow {
    from { 
        box-shadow: 0 0 5px var(--company-Color);
    }
    to {
        box-shadow: 0 0 15px var(--company-Color), 0 0 20px var(--company-Color);
    }
}

.side-nav .side-nav-link {
    color: white!important;
}
.side-nav-title{
    color: var(--company-Color)!important;
}
.a{
    color: white!important;
}


.top-menu-bar {
    position: static;
    overflow-y: hidden;
}

.top-menu-bar form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.top-menu-bar form .form-control {
    border: none;
    height: calc(1.5em + 0.9rem + calc(var(--ct-border-width) * 2));
    padding-left: 40px;
    padding-right: 20px;
    background-color: var(--ct-light);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.top-menu-bar form span.search-icon {
    position: absolute;
    z-index: 4;
    font-size: 20px;
    line-height: 38px;
    left: 10px;
    top: 0;
    z-index: 5;
    color: var(--ct-secondary);
}

.top-menu-bar form .input-group-text {
    margin-left: 0;
    z-index: 4;
}

.top-menu-bar form .dropdown-menu {
    z-index: 1060;
}

.navigation-historie-container {
    display: flex;
}

.navigation-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    background: black;
    border: 1px solid rgba(var(--bs-success-rgb), 0.3);
    border-radius: 0.5rem;
    color: var(--bs-success);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    z-index: 1040; /* Niedriger als der Historie-Content */
}

.navigation-back-button:hover {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.2), rgba(var(--bs-info-rgb), 0.1));
    border-color: rgba(var(--bs-success-rgb), 0.4);
    color: var(--bs-success);
    text-decoration: none;
    transform: translateY(-1px) translateX(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.navigation-historie-collapsible {
    position: relative;
    margin-bottom: 1rem;
    z-index: 1040;
}

.navigation-historie-trigger {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: black;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--bs-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navigation-historie-trigger:hover {
    background: black;
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--bs-primary);
    text-decoration: none;
}

.navigation-historie-trigger .expand-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.navigation-historie-collapsible:hover .expand-icon {
    transform: rotate(180deg);
}

/* Ausfahrbarer Content */
.navigation-historie-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    min-width: 300px;
    max-width: 600px;
}

.navigation-historie-collapsible:hover .navigation-historie-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Smooth delay für bessere UX */
.navigation-historie-content {
    transition-delay: 0.1s;
    
}

.navigation-historie-collapsible:hover .navigation-historie-content {
    transition-delay: 0s;
}

/* Content Styling */
.navigation-historie-items {
    padding: 0.75rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.navigation-historie-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.1);
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.navigation-historie-item:last-child {
    border-bottom: none;
}

.navigation-historie-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    text-decoration: none;
}

.navigation-historie-item.current {
    background: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
    font-weight: 500;
}

.navigation-historie-item .item-icon {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    min-width: 16px;
}

.navigation-historie-item .item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navigation-historie-item .item-meta {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* Counter Badge */
.historie-count {
    background: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
    min-width: 1.2rem;
    text-align: center;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .navigation-historie-content {
        position: fixed;
        left: 1rem;
        right: 1rem;
        min-width: unset;
        max-width: unset;
    }

    .navigation-historie-trigger {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation für smooth appearance */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.infinity-btn {
    margin-top: 8px;
}

.navigation-historie-collapsible:hover .navigation-historie-content {
    animation: slideInDown 0.3s ease;
}
.custom-alert-text {
    font-size: 1.5rem;
    color: red;
}

.containernumber-btn {
    float: right !important;
    margin-right: 5px;
    text-align: right !important;
}

.additionalcosts-btn {
    float: left !important;
    margin-left: 5x;
    text-align: left !important;
}