/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Responsives Content-Padding statt des früheren festen pa-6 (Issue #253). Breakpoints folgen
   den MudBlazor-Konventionen (Sm = 600px, Lg = 1280px) statt eigener Magic Numbers. */
.nexdesk-main-content[b-4m03f1eeoa] {
    padding: 12px;
}

@media (min-width: 600px) {
    .nexdesk-main-content[b-4m03f1eeoa] {
        padding: 16px;
    }
}

@media (min-width: 1280px) {
    .nexdesk-main-content[b-4m03f1eeoa] {
        padding: 24px;
    }
}

/* Logo in der AppBar auf sehr kleinen Viewports etwas kompakter darstellen. */
@media (max-width: 599px) {
    .nexdesk-logo[b-4m03f1eeoa] {
        height: 22px !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-pmpqqy9r91],
.components-reconnect-repeated-attempt-visible[b-pmpqqy9r91],
.components-reconnect-failed-visible[b-pmpqqy9r91],
.components-pause-visible[b-pmpqqy9r91],
.components-resume-failed-visible[b-pmpqqy9r91],
.components-rejoining-animation[b-pmpqqy9r91] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-retrying[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-failed[b-pmpqqy9r91],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-pmpqqy9r91] {
    display: block;
}


#components-reconnect-modal[b-pmpqqy9r91] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-pmpqqy9r91 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-pmpqqy9r91 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-pmpqqy9r91 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-pmpqqy9r91]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-pmpqqy9r91 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-pmpqqy9r91 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-pmpqqy9r91 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-pmpqqy9r91 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-pmpqqy9r91] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-pmpqqy9r91] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-pmpqqy9r91] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-pmpqqy9r91] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-pmpqqy9r91] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-pmpqqy9r91] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-pmpqqy9r91] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-pmpqqy9r91 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-pmpqqy9r91] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-pmpqqy9r91 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Chat/ChannelList.razor.rz.scp.css */
.channel-folder-header[b-omicohupx7] {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px 6px 6px;
    cursor: pointer;
    margin-top: 6px;
}

.channel-folder-header:hover[b-omicohupx7] {
    background: rgba(0, 0, 0, 0.04);
}

.channel-folder-name[b-omicohupx7] {
    flex: 1;
}

.nexdesk-dark .channel-folder-header:hover[b-omicohupx7] {
    background: rgba(255, 255, 255, 0.06);
}
/* /Components/Pages/Chat/ChannelListItem.razor.rz.scp.css */
.channel-list-item[b-ah6uxozqok] {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.channel-list-item:hover[b-ah6uxozqok] {
    background: rgba(0, 0, 0, 0.04);
}

.channel-list-item.selected[b-ah6uxozqok] {
    background: rgba(25, 118, 210, 0.12);
}

.channel-list-item-name[b-ah6uxozqok] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-list-item-menu[b-ah6uxozqok] {
    opacity: 0;
}

.channel-list-item:hover .channel-list-item-menu[b-ah6uxozqok] {
    opacity: 1;
}

.nexdesk-dark .channel-list-item:hover[b-ah6uxozqok] {
    background: rgba(255, 255, 255, 0.06);
}

.nexdesk-dark .channel-list-item.selected[b-ah6uxozqok] {
    background: rgba(130, 177, 255, 0.18);
}
/* /Components/Pages/Chat/ChatPage.razor.rz.scp.css */
.chat-panel[b-stubqb3z67] {
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface, #fff);
    border-radius: var(--mud-default-borderradius, 4px);
    overflow: hidden;
}

.nexdesk-dark .chat-panel[b-stubqb3z67] {
    background: #2b2b2b;
}

.chat-mobile-back[b-stubqb3z67] {
    display: none;
}

/* Mobil (Handy-Breite): Immer nur ein Panel gleichzeitig anzeigen (WhatsApp-artig)
   statt der starren 3-Spalten-Ansicht, die auf schmalen Viewports die Mitte auf 0 Breite quetscht. */
@media (max-width: 900px) {
    .chat-layout[b-stubqb3z67] {
        gap: 0;
    }

    .chat-panel-list[b-stubqb3z67],
    .chat-panel-messages[b-stubqb3z67] {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .chat-panel-list.chat-hidden-mobile[b-stubqb3z67],
    .chat-panel-messages.chat-hidden-mobile[b-stubqb3z67] {
        display: none !important;
    }

    /* Verknüpfungs-Panel passt auf dem Handy nirgends sinnvoll hin — bewusst ausgeblendet. */
    .chat-panel-links[b-stubqb3z67] {
        display: none !important;
    }

    .chat-mobile-back[b-stubqb3z67] {
        display: inline-flex !important;
    }
}
/* /Components/Pages/Chat/MessageComposer.razor.rz.scp.css */
.chat-composer-wrap[b-88392uoj7x] {
    position: relative;
    flex: 1;
    border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, 0.42));
    border-radius: 4px;
    background: var(--mud-palette-surface, #fff);
}

.chat-ghost-overlay[b-88392uoj7x],
.chat-composer-textarea[b-88392uoj7x] {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: none;
}

.chat-ghost-overlay[b-88392uoj7x] {
    position: absolute;
    inset: 0;
    color: transparent;
    overflow: hidden;
    pointer-events: none;
}

.chat-ghost-overlay .ghost-suffix[b-88392uoj7x] {
    color: var(--mud-palette-text-disabled, #9e9e9e);
}

.chat-composer-textarea[b-88392uoj7x] {
    position: relative;
    background: transparent;
    resize: vertical;
    color: var(--mud-palette-text-primary, inherit);
    outline: none;
}

.chat-composer-textarea:disabled[b-88392uoj7x] {
    color: var(--mud-palette-text-disabled, #9e9e9e);
}
/* /Components/Pages/Chat/MessageList.razor.rz.scp.css */
.chat-message-row[b-ion5mthb50] {
    display: flex;
    margin-bottom: 10px;
}

.chat-message-row.own[b-ion5mthb50] {
    justify-content: flex-end;
}

.chat-message-row.other[b-ion5mthb50] {
    justify-content: flex-start;
}

.chat-bubble[b-ion5mthb50] {
    max-width: 72%;
    padding: 6px 12px 8px;
    border-radius: 12px;
    background: #f0f1f3;
}

.chat-bubble.own[b-ion5mthb50] {
    background: #d5e8fb;
    border-bottom-right-radius: 3px;
}

.chat-bubble.other[b-ion5mthb50] {
    background: #f0f1f3;
    border-bottom-left-radius: 3px;
}

.chat-bubble-meta[b-ion5mthb50] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 2px;
}

.chat-bubble-sender[b-ion5mthb50] {
    font-weight: 600;
}

.chat-bubble-delete[b-ion5mthb50] {
    margin-left: auto;
    padding: 0 !important;
    width: 20px;
    height: 20px;
}

/* Erwähnungs-Links (Ticket/Asset/KB) deutlich sichtbar hervorheben.
   ::deep, da der Inhalt via MarkupString (BodyHtml) roh eingefügt wird und
   dadurch nicht das CSS-Isolation-Scope-Attribut dieser Komponente trägt. */
.chat-message-body[b-ion5mthb50]  a {
    color: #1565c0;
    background: rgba(21, 101, 192, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}

.chat-message-body[b-ion5mthb50]  a:hover {
    background: rgba(21, 101, 192, 0.2);
    text-decoration: underline;
}

/* Personen-Erwähnungen (fett, ohne Link) ebenfalls als Chip absetzen */
.chat-message-body[b-ion5mthb50]  strong {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 6px;
    border-radius: 10px;
}

.nexdesk-dark .chat-bubble[b-ion5mthb50] {
    background: #383b40;
}

.nexdesk-dark .chat-bubble.own[b-ion5mthb50] {
    background: #2a4d6e;
}

.nexdesk-dark .chat-bubble.other[b-ion5mthb50] {
    background: #383b40;
}

.nexdesk-dark .chat-bubble-meta[b-ion5mthb50] {
    color: rgba(255, 255, 255, 0.6);
}

.nexdesk-dark .chat-message-body[b-ion5mthb50]  a {
    color: #82b1ff;
    background: rgba(130, 177, 255, 0.15);
}

.nexdesk-dark .chat-message-body[b-ion5mthb50]  a:hover {
    background: rgba(130, 177, 255, 0.3);
}

.nexdesk-dark .chat-message-body[b-ion5mthb50]  strong {
    background: rgba(255, 255, 255, 0.12);
}

/* Status-Verlauf des verknüpften Tickets: klar von echten Chat-Nachrichten abgesetzt,
   mittig, keine Sprechblase — signalisiert "Systemereignis", nicht "jemand hat geschrieben". */
.chat-status-row[b-ion5mthb50] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
}

.chat-status-time[b-ion5mthb50] {
    color: rgba(0, 0, 0, 0.4);
}

.nexdesk-dark .chat-status-row[b-ion5mthb50] {
    color: rgba(255, 255, 255, 0.55);
}

.nexdesk-dark .chat-status-time[b-ion5mthb50] {
    color: rgba(255, 255, 255, 0.4);
}
