@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('fonts/Lato-Regular.ttf');
@import url('ContactCenterPage.css');

html {
    --primaryMandatorColor: #f1800e;
    --secundaryMandatorColor: #122538;
    --tertiaryMandatorColor: #f1800e;
    --sideBarColor: var(--secundaryMandatorColor);
    --activeNavBorderColor: var(--primaryMandatorColor);
    --activeNavBackgroundColor: #1A2E42;
    --navBarSubElementColor: #596E85;
    --navBarItemHoverColor: #29425C;
    --customBackgroundColor: #f5f5f5;
    --loadingSpinner: url("../Images/Logo/epcanIcon.png");
}

.BEW {
    --primaryMandatorColor: #A1D884;
    --secundaryMandatorColor: #004E42;
    --tertiaryMandatorColor: #A1D884;
    --navBarSubElementColor: #8a949f;
    --sideBarImgRef: url("../Images/Logo/bewLogo.svg");
    --activeNavBackgroundColor: #004E42;
    --loginLogo: url("../Images/Logo/bewLogo.svg");
    --navBarItemHoverColor: #A1D884;
    --loadingSpinner: url("../Images/Logo/bewIcon.svg");
}

.EPCS {
    --sideBarImgRef: url("../Images/Logo/logo_mit_schriftzug_weiss.png");
    --loginLogo: url("../Images/Logo/ncwlogo-removebg-preview.png");
}

.SWA {
    --primaryMandatorColor: #52646D;
    --secundaryMandatorColor: #95C236;
    --tertiaryMandatorColor: #95C236;
    --sideBarColor: #52646D;
    --navBarSubElementColor: #95C236;
    --activeNavBackgroundColor: #52646D;
    --loadingSpinner: url("../images/logo/lokalwerkeIcon.png");
    --sideBarImgRef: url("../images/logo/lokalwerke-logo-weiss.svg");
    --loginLogo: url("../images/logo/lokalwerke-logo.svg");
}

.SWG {
}

html, body {
    font-family: 'Lato', sans-serif !important;
}
body {
    --dxbl-body-bg: rgb(255, 255, 255) !important; /* override devexpress because it sometimes dont load on first load with drawer */
}
div.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    top: 90px;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.logoFooterLogo {
    cursor: pointer;
}

.content{
    padding-top:1.1rem;
}

.messageInfoContainer {
    position: absolute;
    left: 40%;
}

.might-overflow {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.bg-primary {
    background-color: lightsteelblue !important;
}

.chartSelection {
    overflow: auto;
}

.inlineComboBox {
    width: 100%;
}

.commandButtonInner {
    width: 140px;
    right: 25px;
    z-index: 10;
    position: absolute;
    margin-top: -25px;
    margin-right: 5px;
    white-space: pre;
}

.commandButtonMg150 {
    margin-right: 150px;
}

.commandButtonMap {
    width: 200px;
    right: 25px;
    z-index: 10;
    position: absolute;
    margin-top: -50px;
    margin-right: 35px;
    white-space: pre;
}

.selectButtonMap {
    display: inline !important;
    position: absolute;
    right: 20px;
    margin-top: -35px;
    height: 22px;
    padding-top: 5px;
    cursor: pointer;
    margin-top: 8px;
}

.remove-margine > div {
    margin-top: unset !important;
    align-self: start !important
}

.dxbl-toolbar-btn.dxbl-btn {
    min-width: 125px;
    margin: 2px 0px 2px 0px;
}

.dxbs-gridview > .card {
    border: none;
}

.dxGridCount {
    left: 48%;
    width: 100px;
    position: relative;
    margin-top: 5px;
    font-size: smaller;
}

.dxGridContainer {
    width: calc(100vw - 350px);
    height: 73vh;
}

    .dxGridContainer dxbl-grid {
        max-height: 100%;
    }

.logofooterbox {
    background-color: transparent;
    position: fixed;
    float: right;
    right: 6%;
    bottom: 0;
    z-index: 9;
    max-width: 150px;
}

.layoutGroupLight div.dxbl-group > .dxbl-group-header {
    background-color: var(--customBackgroundColor);
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid ghostwhite;
    padding-left: 20px;
    font-weight: bold;
}

.gm-ui-hover-effect {
    /* google map infobox hover remove close button */
    display: none !important;
}

.grid-20 {
    margin-top: 20px;
}

.dxbl-btn, .dxbl-text-edit > input, .dxbl-text-edit > textarea {
    font-size: 10.5pt;
}

.dxbl-group > .dxbl-group-header {
    background-color: var(--customBackgroundColor);
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid ghostwhite;
    padding-left: 20px;
    font-weight: bold;
}

.dxbl-scroll-viewer-hor-scroll-bar .dxbl-scroll-viewer-scroll-thumb {
    height: 8px !important;
}

.dxbl-scroll-viewer-vert-scroll-bar .dxbl-scroll-viewer-scroll-thumb {
    width: 8px !important;
}

.dxbl-grid-header {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-grid-fixed-cell {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-window-dialog {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-group {
    border: none;
}

.toolbarItemDanger {
    color: red !important;
}

.link-textbox {
    padding-left: 5px;
    padding-top: 3px;
    font-size: inherit;
    height: 2rem;
    color: blue;
    background-color: #F9F9F9;
}

.link-item {
    color: blue !important;
    cursor: pointer;
}

    .link-item:hover {
        color: #0056b3;
        text-decoration: underline;
    }

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.project-plan-header {
    margin-top: 0.9rem !important;
}

.column-chooser-button-label {
    display: none !important;
}

th, td .dxbl-text-edit.dxbl-readonly {
    max-width: 120px;
}

.dxbl-checkbox-checked {
    color: royalblue;
}
    .dxbl-checkbox-checked.dxbl-readonly .dxbl-checkbox-check-element  {
        background-color: royalblue !important;
    }

.dxbl-modal-dialog {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-modal-body {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-modal-content {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup-fixed-width {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-dropdown-dialog {
    background-color: var(--customBackgroundColor) !important;
}

.dxbs-empty-data-row td {
    display: none;
}

.group-dotted-right {
    border-right: 1px dotted lightgray;
}

.dxbl-fl .dxbl-fl-gd, .dxbl-fl .dxbl-fl-gt {
    margin-top: 1rem !important;
    margin-bottom: -0.8rem !important;
}

.dxbl-col {
    margin-top: 0.3rem !important;
}

.dxbs-fl .dxbs-fl-cpt {
    font-weight: normal;
}

.dx-legend-outside .dx-chart-legend.dx-legend-horizontal.dx-bottom, .dx-legend-outside .dx-chart-legend.dx-legend-vertical.dx-center.dx-bottom {
    margin-top: 0rem;
    position: relative;
    top: 10px;
}

.dx-dropdowneditor-input-wrapper {
    display: flex;
    align-items: center;
}

.invalid {
    outline: 1px solid red;
}

.form-control[readonly] {
    background-color: #F9F9F9;
}

.validation-message {
    color: red;
}

.toastMessage {
    background-color: var(--secundaryMandatorColor) !important;
    cursor: pointer;
}

.mapToggle {
    display: inline-flex !important;
    margin-left: 20px;
    cursor: pointer;
}

.mappopup-md {
    width: 50% !important;
    max-width: 50% !important;
    height: 50%;
    position: absolute !important;
    top: 0 !important;
}

.mappopup-lg {
    width: 80% !important;
    max-width: 80% !important;
    height: 80%;
}

.mappopup-ticket {
    width: 800px !important;
    max-width: 800px !important;
    height: 800px;
    min-height: 800px;
}

    .mappopup-ticket .dxbl-modal-title {
        left: 45%;
        position: relative;
    }

    .mappopup-ticket .dxbl-popup-header {
        margin-bottom: 10px;
    }

.datagridpopup-lg {
    width: 60% !important;
    max-width: 60% !important;
}

    .datagridpopup-lg .dxbl-checkbox {
        justify-content: left !important;
    }

.datagridpopup-md {
    width: 50% !important;
    max-width: 50%;
}

.datagridpopup-sm {
    width: 40% !important;
    max-width: 40%;
}

#blazor-error-ui {
    display: none;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 767px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 1.0rem !important;
        padding-right: 1.5rem !important;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.DescriptionFlyout {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-checkbox-checked .dxbl-image {
    color: var(--customBackgroundColor) !important;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: #E9E9E9 !important;
    color: #122538;
    position: fixed;
    top: 0;
    height: 9vh;
    z-index: 99;
    width: 100vw;
    flex: 1;
    flex-wrap: nowrap;
}


/*Hier Styles für Tablet platzieren*/
@media screen and (min-width: 768px) and (max-width: 1080px) {
    .NavStripeBase {
        top: 7px !important;
    }

    .mobileNav, .whiteStripe {
        height: 65px !important;
    }

    .header {
        top: 65px;
        height: 90px;
        padding-right: 15px !important;
    }

    .form-inline, .profilePic {
        right: 36px !important;
    }

    .desktopContent {
        top: 155px !important;
        height: calc(100vh - 155px) !important;
        background-color: var(--customBackgroundColor);
        width: 100vw;
    }

    .main > div {
        padding-left: 1.0rem !important;
        padding-right: 1rem !important;
    }

    .navbar-toggler {
        font-size: 1.8rem;
    }

    .sidebarPlaceHolder {
        width: 16px !important;
        min-width: 0px !important;
    }

    .pageTitle {
        margin: 0px !important;
        width: 63vw;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .profileImg {
        width: 50px !important;
        height: 50px !important;
    }

    .profileContainer {
        width: 50px !important;
        height: 50px !important;
    }

    .signalRCallIcon {
        width: 50px !important;
        height: 50px !important;
    }
}

.sort-combobox {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

/* Hier Styles für Mobile platzieren */
@media (max-width: 767px) {
    .header {
        top: 50px;
        height: 85px;
        padding-right: 15px!important;
    }

    .pageTitle {
        overflow: hidden;
        margin-left: 12px;
        font-size: 20px !important;
        width: 73vw;
        text-overflow: ellipsis;
    }

    .form-inline, .profilePic {
        right: 12px !important;
    }

    .dropDownProject {
        width: 100vw !important;
    } 

    .locationSwitch {
        display: none;
    }

    .sidebarPlaceHolder {
        display: none;
    }

    .myProfile {
        display: none;
    }

    .content {
        margin-top: 85px;

    }

    .profileContainer {
        height: 40px !important;
        width: 40px !important;
    }

    .profileImg {
        height: 40px !important;
        width: 40px !important;
    }

    .signalRCallIcon {
        height: 40px !important;
        width: 40px !important;
    }

    .content {
        background-color: var(--customBackgroundColor);
        overflow: hidden !important;
        min-height: calc(100vh - 85px);
    }

    .company, .solve {
        margin: 0px;
    }

    .title-div {
        overflow: hidden;
    }

}

@media (max-width: 340px) {
    .pageTitle {
        font-size: 21px;
    }

    .profileContainer {
        height: 35px !important;
        width: 35px !important;
    }

    .profileImg {
        height: 35px !important;
        width: 35px !important;
    }

    .signalRCallIcon {
        height: 35px !important;
        width: 35px !important;
    }
}

/* Ende Mobile */

/*.pageTitle {
    margin-left: 15px;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 0px;
}*/

.pageTitle {
    margin-left: 15px;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 0px;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 50vw;
}

profilePic {
    top: 1.5vh;
}

.myProfile {
    padding-left: 10px;
}

.sidebarPlaceHolder {
    min-width: 250px;
    width: 15vw;
}

.sidebarPlaceHolderSmall {
    min-width: 80px;
}

.quikSearchFlyout {
    background-color: var(--customBackgroundColor) !important;
}

.flyout {
    background-color: var(--customBackgroundColor) !important;
    white-space: pre-wrap;
}

.quiksearchButton {
    background: none;
    border: none;
    margin: 0px 5px;
    padding: 12px;
    flex-shrink: 0;
}

    .quiksearchButton:focus {
        border: none;
        background: none;
    }

    .quiksearchButton:hover {
        border: none;
        background: none;
    }

.dxbl-grid-column-chooser-dialog {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-grid-table > thead {
    background-color: var(--customBackgroundColor) !important;
}

.dxbl-grid-table > tfoot {
    background-color: var(--customBackgroundColor) !important;
}


.profileImg {
    height: 4.5vh;
    width: 4.5vh;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.profileContainer:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.profileContainer {
    height: 4.5vh;
    width: 4.5vh;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.signalRCallIcon {
    height: 4.5vh;
    width: 4.5vh;
    margin-left: 10px;
    margin-right: 5px;
}


    .loadingSpinnerContainer {
        width: 40px;
        height: 40px;
    }

    .loadingSpinner {
        background-image: var(--loadingSpinner);
        width: 40px;
        height: 40px;
        background-repeat: no-repeat;
        background-size: contain;
        animation-duration: 1.75s !important;
    }


    .errorBtn {
        background-color: #004D9F;
        padding: 4px 8px;
        border-radius: 4px;
        border-color: #004D9F;
        position: fixed;
        bottom: -4px;
        right: 20px;
        font-size: 9pt;
        z-index: 101;
    }

    @media only screen and (max-width: 600px) {
        .errorBtn {
            background-color: #004D9F;
            padding: 4px 8px;
            border-radius: 4px;
            border-color: #004D9F;
            position: fixed;
            bottom: -4px;
            right: 50px;
            font-size: 9pt;
        }
    }

    .dxbl-window-header {
        background-color: var(--customBackgroundColor) !important;
    }

    .dxbl-window-body {
        background-color: var(--customBackgroundColor) !important;
    }

    .dxbl-window-footer {
        background-color: var(--customBackgroundColor) !important;
    }

    .dxbl-text {
        white-space: normal;
    }


    /* Fehlermeldung */
    .overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 1;
    }

    .popup {
        background: #fff;
        padding: 50px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        line-height: 1;
    }

    .primaryButton {
        background-color: var(--primaryMandatorColor) !important;
        border-color: var(--primaryMandatorColor) !important;
        color: white;
        width: 100%;
        height: 45px;
        border-radius: 7px;
    }

    .secondaryButton {
        background-color: #264462 !important;
        border-color: #264462 !important;
        color: white;
        width: 100%;
        height: 45px;
        border-radius: 7px;
    }

    .notificationSidebar {
        padding-left: 10px !important;
        padding-right: 20px !important;
    }

    /*Download Button*/
    @media only screen and (max-width: 767px) {
        .oi-data-transfer-download {
            display: none !important;
        }
    }
    /* PopUp Design */
    .dxbl-modal-back {
        backdrop-filter: blur(5px);
        background-color: transparent !important;
        opacity: 1 !important;
    }

    /* Toolbar */
    .dxbl-grid {
        margin-top: 20px;
    }

    .search-container {
        position: relative;
        display: flex;
        align-items: center;
        padding-left: 20px;
    }

    @media (max-width: 607px) {
        .search-container {
            width: 520px;
        }
    }

    .search-icon {
        position: absolute;
        right: 10px;
        pointer-events: none;
        font-size: 20px;
        color: #000;
        margin-top: 8px;
    }

    .NewTicketBtn {
        border-radius: 10px;
        background-color: var(--primaryMandatorColor) !important;
        border-color: var(--primaryMandatorColor) !important;
        padding: 5px 20px;
        color: #fff;
        font-size: 14px;
        margin-left: 10px;
    }

        .NewTicketBtn:hover {
            background-color: var(--primaryMandatorColor) !important;
            border-color: var(--primaryMandatorColor) !important;
            color: #fff;
        }

    .DxToolbar {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    /* ChatBox Styles */
    .chat-memo {
        flex: 1;
        width: 100%;
        height: auto;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        transition: box-shadow 0.2s ease;
        max-height: 136px;
    }

        .chat-memo:focus {
            border-color: #aaa;
            outline: none;
        }

    .auto-expand {
        resize: none;
        overflow: hidden;
        min-height: 20px;
    }

.public-activated {
    color: green !important;
}

.publicbtn {
    cursor: pointer;
    gap: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

    /* @ PopUp */
    .purpleBack {
        background-color: mediumpurple !important;
    }

    .redBack {
        background-color: red !important;
    }

    .sidebar-info {
        background-color: var(--customBackgroundColor);
        border: 1px solid lightgray;
        width: 100%;
    }




    /* Layout für Card Ansicht */
    .ticket-cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0px 10px;
    }

    .ticket-group {
        margin-bottom: 1rem;
        border: 0.5px solid #CCCCCC;
        border-radius: 8px;
        overflow: hidden;
    }


    .damage-ticket-status {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .status-badge {
        padding: 5px 15px;
        font-size: 0.8em;
        font-weight: bold;
        color: white;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
    }

    .damage-ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .damage-ticket-title {
        font-size: 1.5em;
        font-weight: 600;
        color: #122538;
        font-variant-numeric: tabular-nums;
    }

    .damage-ticket-title-2 {
        font-size: 16px !important;
    }

    .operational-status {
        font-size: 0.9em;
        color: #555;
    }

    .damage-ticket-details {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding-top: 10px;
        border-top: 0.01px solid #e0e0e0;
    }

    .agent-name {
        font-size: 0.9em;
        color: #555;
        display: flex;
        flex-direction: column;
    }

    .priority {
        font-size: 0.9em;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 5px;
        border-radius: 5px;
    }

    .priority-pill.low {
        background-color: #3cd6a4;
    }

    .priority-pill.medium {
        background-color: #f9a12a;
    }

    .priority-pill.high {
        background-color: #f55442;
    }

    .damage-ticket-footer {
        margin-top: 10px;
        display: flex;
        justify-content: flex-start;
        font-size: 0.9em;
        color: #555;
    }

    .location {
        font-size: 0.9em;
        color: #555;
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .status-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        margin-left: 8px;
    }

        .status-indicator.online {
            background-color: #28a745; /* Grüner Punkt für online */
        }

        .status-indicator.offline {
            background-color: #dc3545; /* Roter Punkt für offline */
        }

    /*Filter Sidebar*/

    .filter-sidebar h3 {
        font-size: 1.5em;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .filter-section h4 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .filter-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

        .filter-item input {
            margin-right: 10px;
        }

    /* Sidebar Styling */
    .filter-sidebar {
        height: 100%;
        position: sticky;
        top: 0;
        overflow: hidden;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 120px);
        margin-right: 23%;
    }
    /*Sortierfunktion*/
    .sort-bar {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        margin-bottom: 20px;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 10px;
        margin-right: 23%
    }

    .sort-bar-left,
    .sort-bar-middle,
    .sort-bar-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sort-bar-right {
        margin-left: auto;
    }

    .sort-bar label {
        white-space: nowrap;
        margin: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .sort-select {
        padding: 5px 10px;
        font-size: 0.9em;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .search-button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.2em;
        color: #555;
    }

    .search-input-container {
        margin-top: 10px;
    }

    .search-input {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%;
    }

    .pagination-container-wrapper {
        background: white;
        border-top: 1px solid #eee;
        padding: 10px;
        margin-top: 20px;
    }

    .pagination {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .pagination-container {
        display: flex;
        gap: 5px;
        align-items: center;
        justify-content: center;
    }

    .pagination-button {
        padding: 6px 12px;
        border: 1px solid #ddd;
        background-color: white;
        cursor: pointer;
        min-width: 40px;
        border-radius: 4px;
    }

        .pagination-button:hover:not(:disabled) {
            background-color: #f0f0f0;
        }

        .pagination-button.active {
            background-color: #007bff;
            color: white;
            border-color: #0056b3;
        }

        .pagination-button:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

    .pagination-ellipsis {
        padding: 8px;
        color: #666;
    }

    .pagination-info {
        color: #666;
        font-size: 0.9em;
    }

    .sort-bar-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    /* Gruppierung */
    .ticket-group {
        margin-bottom: 1rem;
        border: 0.5px solid #CCCCCC;
        border-radius: 8px;
        overflow: hidden;
    }

    .ticket-group-header {
        display: flex;
        align-items: center;
        padding: 1rem;
        background-color: #f8f9fa;
        cursor: pointer;
        user-select: none;
    }

        .ticket-group-header h3 {
            margin: 0;
            font-weight: 600;
        }

    .ticket-count {
        margin-left: 0.5rem;
        color: #666;
    }

    .expand-icon {
        color: #666;
        margin-left: auto;
    }

    .sort-bar-middle {
        margin: 0 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /*Notizfeld Mehrzeilig*/
    .memo-field {
        transition: all 0.3s ease-in-out;
    }

    .more-lines-indicator {
        position: absolute;
        right: 8px;
        bottom: 4px;
        font-size: 0.75rem;
        color: var(--dxbl-btn-secondary-color);
        background-color: var(--dxbl-btn-secondary-background);
        padding: 2px 6px;
        border-radius: 4px;
        pointer-events: none;
    }

    .has-more {
        padding-bottom: 24px;
    }

    .memo-field:hover {
        background-color: var(--dxbl-btn-secondary-hover-background);
    }

    /* Base Layout Styles */
    .content-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        padding: 1rem;
        min-height: calc(100vh - 120px);
        padding-bottom: 60px;
    }

    /* View Switch Component */
    .view-switch-container {
        display: flex;
        gap: 1rem;
        padding: 0.75rem;
        background-color: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }

    .view-switch-buttons {
        display: flex;
        gap: 2px;
        margin-left: 1rem;
        background: #e6e6e6;
        padding: 2px;
        border-radius: 4px;
    }

    .view-switch-button {
        min-width: 100px;
        border: none !important;
        background: transparent !important;
        padding: 6px 12px !important;
        border-radius: 4px !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        justify-content: center;
    }

        .view-switch-button.active {
            background: white !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            color: #333 !important;
        }

        .view-switch-button:hover:not(.active) {
            background: rgba(255,255,255,0.5) !important;
        }

    .button-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: inherit;
    }

    .button-text {
        font-size: 14px;
        color: #333;
    }

    .view-switch-button .oi {
        color: #333;
        opacity: 1;
        font-size: 14px;
    }

    /* Sort Bar Styles */
    .sort-bar {
        background-color: #f8f9fa;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 4px;
        width: calc(100% - 2rem);
        max-width: 100%;
        overflow-x: hidden;
    }

    .sort-bar-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .sort-bar-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 200px;
        flex: 1 1 auto;
    }

    .sort-combobox {
        min-width: 120px;
        flex: 1;
    }

    /* Card View Styles */
    .damage-ticket-card {
        background-color: #fff;
        border: 0.5px solid #CCCCCC;
        border-radius: 10px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        cursor: pointer;
        transition: transform 0.1s ease-in-out;
        width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

        .damage-ticket-card:hover {
            transform: translateY(-2px);
        }

    .ticket-left-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ticket-right-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
        min-width: 28%;
        padding-left: 20px;
        border-left: 0.5px solid #CCCCCC;
    }

    .ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .ticket-title {
        font-size: 1.2em;
        font-weight: 500;
        color: #122538;
    }

    .ticket-number {
        font-size: 1.125rem;
        font-weight: 600;
        color: #111827;
    }

    .ticket-creation,
    .ticket-deadline,
    .ticket-contract-start {
        font-size: 0.9em;
        color: #a3a3a3;
    }

    .ticket-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-row {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        color: #4b5563;
        font-size: 0.875rem;
    }

    .info-label {
        font-weight: 500;
        color: #6b7280;
    }

    .ticket-location {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #4b5563;
        font-size: 0.875rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
    }

    .date-range {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Status and Priority Styles */
    .ticket-status-priority {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .damage-ticket-status {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Status Badges */
    .status-badge {
        padding: 5px 15px;
        font-size: 13px;
        font-weight: bold;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #122538;
    }

    .status-badge-open {
        background-color: #004D9F;
        color: white;
    }

    .status-badge-inprogress {
        background-color: #FEF3C7;
        color: #991B1B

    }

    .status-badge-closed {
        background-color: #D1FAE5;
        color: #065F46
    }

    .status-badge-waiting {
        background-color: #E6E6E6;
        color: black;
    }

    /* Status Icons */
    .status-icon {
        color: #575757;
    }

    .status-icon-inprogress {
        color: #DD9C3C;
    }

    .status-icon-closed {
        color: #63A85D;
    }

    .status-icon-waiting {
        color: #238CA8;
    }

    /* Status Circles (List View) */
    .status-circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .status-circle i {
            color: white;
            font-size: 12px;
        }

    .status-circle-open {
        background-color: #575757;
    }

    .status-circle-inprogress {
        background-color: #DD9C3C;
    }

    .status-circle-closed {
        background-color: #63A85D;
    }

    .status-circle-waiting {
        background-color: #238CA8;
    }

    /* Priority Badges */
    .priority-badge {
        padding: 5px 15px;
        font-size: 13px;
        font-weight: bold;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .priority-badge-low {
        background-color: #D1FAE5;
        color: #065F46;
    }

    .priority-badge-medium {
        background-color: #FEF3C7;
        color: #991B1B
    }

    .priority-badge-high {
        background-color: #FEE2E2;
        color: #991B1B;
    }

    .priority-badge-escalation {
        background-color: #944F97;
        color: white !important;
    }

    /* Priority Icons */
    .priority-icon {
        color: #004d9f;
    }

    .priority-icon-medium {
        color: #f1800e;
    }

    .priority-icon-high {
        color: #B60000;
    }

    .priority-icon-escalation {
        color: white;
    }

    /* Priority Circles (List View) */
    .priority-circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .priority-circle i {
            color: white;
            font-size: 12px;
        }

    .priority-circle-low {
        background-color: #004d9f;
    }

    .priority-circle-medium {
        background-color: #f1800e;
    }

    .priority-circle-high {
        background-color: #B60000;
    }

    .priority-circle-escalation {
        background-color: #EC00FF;
    }

    /* Info Badge */
    .info-badge {
        background-color: #C4D1DF;
        color: #122538;
        padding: 5px 20px;
        border-radius: 15px;
        font-size: 0.7em;
        white-space: nowrap;
        text-align: center;
    }

    /* List View Styles */
    .ticket-list-view {
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin: 1rem 0;
        overflow-x: auto;
        width: 100%;
    }

    .ticket-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 800px;
    }

        .ticket-table th {
            padding: 12px 16px;
            background: #f8f9fa;
            text-align: left;
            font-weight: 500;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
        }

        .ticket-table td {
            padding: 12px 16px;
            border-bottom: 1px solid #e5e7eb;
            vertical-align: middle;
        }

        .ticket-table tr {
            cursor: pointer;
        }

            .ticket-table tr:hover {
                background-color: rgba(0, 77, 159, 0.05);
            }

    /* Company and Agent Info */
    .company-info {
        display: block;
        margin-top: 0.5rem;
        color: #4b5563;
        font-size: 0.875rem;
    }

    .agent-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Drawer Panel Styles */
    .dxbl-drawer-panel {
        position: fixed !important;
        top: 9vh !important;
        right: 0 !important;
        height: 91vh !important;
        overflow-y: auto;
        z-index: 101 !important;
        max-width: 85vw !important;
    }

    .filter-sidebar {
        height: 100%;
        overflow-y: auto;
        padding: 1rem;
    }

    .filter-section {
        max-width: 100%;
    }

    .drawer-toggle-button {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        background-color: white;
        border-radius: 4px 0 0 4px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1050;
        display: none;
    }

     /* Pagination Styles */
    .pagination-container-wrapper {
        background: white;
        border-top: 1px solid #eee;
        padding: 1rem;
        margin-top: auto;
        width: 100%;
        z-index: 10;
    }

    .pagination {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Responsive Styles */
    @media (min-width: 577px) {
        .content-wrapper {
            margin-right: 23%;
            max-width: calc(100% - 23%);
        }

        .sort-bar-item {
            flex: 0 1 auto;
        }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .sort-bar-container {
            flex-wrap: wrap;
        }

        .sort-bar-item {
            flex: 1 1 calc(50% - 1rem);
            min-width: 150px;
        }

        .view-switch-buttons {
            flex: 1 1 100%;
            justify-content: flex-end;
            margin-top: 0.5rem;
        }
    }

    @media (max-width: 768px) {
        .drawer-toggle-button.shifted {
            right: 80% !important;
        }

        .drawer-toggle-button {
            display: block !important;
        }

        .dxbl-drawer-panel {
            width: 80% !important;
            z-index: 100 !important;
        }

        .sort-bar-container {
            flex-direction: column;
            align-items: stretch;
            gap: 0.75rem;
        }

        .sort-bar-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.25rem;
            min-width: 100%;
        }

        .view-switch-buttons {
            flex-direction: row;
            justify-content: space-between;
            margin-left: 0;
            width: 100%;
        }

        .view-switch-button {
            flex: 1;
        }

        .button-text {
            display: none;
        }
    }

        .ticket-content {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

    @media (max-width: 576px) {
        .content-wrapper {
            margin-right: 0;
            max-width: 100%;
            padding: 0.5rem;
        }

        .ticket-content {
            flex-direction: column;
        }

        .ticket-right-column {
            width: 100%;
            padding-left: 0;
            border-left: none;
            border-top: 0.5px solid #CCCCCC;
            padding-top: 15px;
            margin-top: 10px;
            align-items: flex-start;
        }

        .info-badge {
            width: 100%;
        }

        .damage-ticket-card {
            padding: 15px;
        }

        .sort-bar,
        .pagination-container-wrapper {
            padding: 0.5rem;
        }

        .content-wrapper {
            margin-right: 0;
            padding: 10px;
        }

        .sort-bar {
            margin-right: 0;
            display: block;
        }

        .pagination-container-wrapper {
            margin-right: 0;
            padding: 10px 5px;
        }
    }


    .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }


    .sort-bar {
        background-color: #f8f9fa;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 4px;
        width: 100%;
    }

    .pagination-container-wrapper {
        width: 100%;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid #eee;
    }

    .damage-ticket-card {
        width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    @media (min-width: 577px) {
        .content-wrapper {
            margin-right: 20%;
            width: calc(100% - 20%);
        }
    }

    @media (max-width: 576px) {
        .content-wrapper,
        .sort-bar,
        .ticket-list-view {
            margin-right: 0;
            width: 100%;
        }
    }

    .ticket-list-view {
        overflow-x: auto;
        width: 100%;
    }

    .ticket-table {
        width: 100%;
        min-width: 800px;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }

    .sort-bar {
        background-color: #f8f9fa;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 4px;
        width: 100%;
    }

    .pagination-container-wrapper {
        width: 100%;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid #eee;
    }

    .damage-ticket-card {
        width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .ticket-contract-start {
        font-size: 0.9em;
        color: #666;
    }

    .date-range {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: calc(100vh - 120px);
        width: 100%;
        padding: 1rem;
        padding-bottom: 60px;
    }

    @media (min-width: 577px) {
        .content-wrapper {
            margin-right: 23%;
            max-width: calc(100% - 23%);
        }
    }

    @media (max-width: 576px) {
        .content-wrapper {
            margin-right: 0;
            width: 100%;
            padding: 0.5rem;
        }
    }

    .pagination-container-wrapper {
        background: white;
        border-top: 1px solid #eee;
        padding: 1rem;
        margin-top: auto;
        width: 100%;
        z-index: 10;
    }

    .content {
        overflow-y: auto;
    }

    .headerMenuLinkIcons {
        max-height: 20px;
        max-width: 20px;
    }

/* Scrollbar Styling */
.ticket-container::-webkit-scrollbar {
    width: 12px;
}

.ticket-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 6px;
}

.ticket-container::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 6px;
    border: 3px solid #f1f1f1; 
    min-height: 40px; 
}

.ticket-container::-webkit-scrollbar-thumb:hover {
    background: #666; 
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    height: calc(100vh - 120px); 
    width: 100%;
    padding: 1rem;
}

.ticketDetailViewRight > div {
    margin-top: unset !important;
}

.no-data-box img{
    max-width:70px!important;
}

.dxbl-grid-toolbar-container {
    margin: 0px;
}

/* DamageTicketView FilterPopUp */
.flexbox {
    display:flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .dxbl-modal-content, .dxbl-modal-body {
        background-color: white !important;
        border-radius: 10px !important;
        border: none !important;
    }

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup-fixed-width {
        border-radius: 10px;
    }
}

.DamageTicketMobileFilterPopUpHeader,
.DamageTicketMobileFilterPopUpBody,
.DamageTicketMobileFilterPopUpFooter,
.ticketCreatePopUpBody,
.ticketCreatePopUpHeader
{
    background-color: white !important;
    border-bottom: none !important;
    padding-top: 10px !important;
}

.DamageTicketMobileFilterPopUpBody {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px !important;
    border-radius: 10px !important;
}

.DamageTicketMobileFilter {
    display: flex;
    flex-direction: column;
}

.DamageTicketFilterApplyBtn {
    width: 60%;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 10px;
}

.DamageTicketMobileFilterPopUpFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.DamageViewCheckbox {
    margin: 0px 10px 0px 0px;
}

.DamageTicketGridSize {
    max-height: Calc(100vh - 300px);
}

@media only screen and (min-width: 1081px) and (max-width: 1599px) {
    .DamageTicketGridSize {
        max-height: Calc(100vh - 220px);
        width: 100%;
    }
}


@media only screen and (min-width: 1081px) {
    .projectGridsWidth {
        width: calc(100vw - 290px) !important;
    }
}

@media only screen and (max-width: 767px) {
    .projectGridsWidth {
        width: calc(100vw - 20px) !important;
        height: calc(100vh - 290px)
    }
}


/*Allgemeine Styles Seite */
.PopUpHeader {
    background-color: #f6f5f5 !important;
    border-bottom: none !important;
    padding: 10px !important;
}

.PopUpBody {
    background-color: white !important;
}

.btn-style {
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 15px;
    white-space: nowrap;
}

.combobox {
    border-radius: 8px;
}



.client-point {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e11d48;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    display: block;
    pointer-events: auto;
}

.leaflet-marker-icon {
    user-select: none;
}

    .leaflet-marker-icon .client-point {
        cursor: grab;
    }

        .leaflet-marker-icon .client-point:active {
            cursor: grabbing;
        }

#map {
    height: 100%;
}

.sidebar {
    position: relative;
}

.customScheduler {
    height: calc(100% - 50px);
}

.filter-select .dxbl-tag {
    display: none !important;
}

.filter-select .dxbl-tag-content {
    display: none !important;
}

.filter-select .dxbl-tag-remove-button {
    display: none !important;
}

.filter-select .dx-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}