/* _content/Pdk.Web.Blazor.Communication/DigitalInbox/MessageList/PdkDigitalInboxMessagesList.razor.rz.scp.css */

/* List Item Styling */
.digitalinbox-list[b-393oqpumy8]  .digitalinbox-list-item,
.digitalinbox-list-item[b-393oqpumy8] {
    display: flex;
    padding: 16px;
    max-width: 100%;
    min-width: 0; /* Add this to allow the flex item to shrink */

    /* Transparent border to prevent UI jitters when showing borders on focus */
    border: 2px solid transparent;
    box-sizing: border-box;

    border-radius: 16px;
    background: var(--sejl-color-surface-raised-default, #FFF);
}

.digitalinbox-list-item:hover[b-393oqpumy8] {
    background: var(--sejl-color-surface-raised-hover, rgba(116, 154, 188, 0.16));
}

.digitalinbox-list-item:active[b-393oqpumy8] {
    background: var(--sejl-color-surface-raised-pressed, rgba(83, 125, 164, 0.24));
}

.digitalinbox-list-item:focus[b-393oqpumy8] {
    border: 2px solid var(--sejl-color-border-focus, #132D4F);
    background: var(--sejl-color-surface-raised-default, #FFF);

    /* shadow-raised */
    box-shadow: 0 2px 4px 0 rgba(19, 45, 79, 0.08);
}


/* Mobile-layout */
@media screen and (max-width: 768px) {
    .digitalinbox-list[b-393oqpumy8]  .desktop-only {
        display: none;
    }
}

/* Desktop-layout */
@media (min-width: 769px) {
    .digitalinbox-list[b-393oqpumy8]  .mobile-only {
        display: none;
    }
}
/* _content/Pdk.Web.Blazor.Communication/DigitalInbox/MessageThread/Components/AttachmentButton.razor.rz.scp.css */
.message-block-attachment-block[b-nnacccr5ac] {
    display: flex;
    height: 48px;
    padding: 8px var(--sejl-spacing-150, 12px) 8px 4px;
    align-items: center;
    gap: var(--sejl-spacing-150, 12px);
    min-width: 0;
    max-width: 100%;

    border-radius: 12px;
    background: var(--sejl-color-background-neutral-default, rgba(116, 154, 188, 0.16));
}

.message-block-attachment-block-icon[b-nnacccr5ac] {
    display: flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--sejl-border-radius-sm, 8px);
    background: var(--sejl-color-background-neutral-default, rgba(116, 154, 188, 0.16));
}

.message-block-attachment-block[b-nnacccr5ac]  .message-block-attachment-block-filename {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.message-block-attachment-block[b-nnacccr5ac]  .ensure-scalable {
    min-width: 0;
    max-width: 100%;
}
/* _content/Pdk.Web.Blazor.Communication/DigitalInbox/MessageThread/Components/MessageThreadReplyBuilder.razor.rz.scp.css */
.message-thread-reply-builder[b-p94njpp3hf] {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: space-between;

}

.message-thread-reply-form[b-p94njpp3hf] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 2;
    background: #FFF;
    border-radius: 12px;
    border: 1px solid transparent;
    outline: 1px solid #A5BDD4;
    padding: 0;
    /* The 1px margin compensates for the 1px border that becomes visible on focus,
       preventing layout shift when focus/hover styles change the border color. */
    margin: 1px;
    box-sizing: content-box;
}

.message-thread-reply-form:hover[b-p94njpp3hf] {
    outline-color: #CEE0F6;
}

.message-thread-reply-form:focus[b-p94njpp3hf],
.message-thread-reply-form:focus-within[b-p94njpp3hf] {
    border-color: #132D4F;
    outline-color: #132D4F;
}

.message-thread-reply-form.has-error[b-p94njpp3hf] {
    border-color: red;
}

.message-thread-reply-form:not(.has-text)[b-p94njpp3hf]  .message-thread-reply-form-submit-btn {
    visibility: hidden;
}

.message-thread-reply-form[b-p94njpp3hf]  .message-thread-reply-form-submit-btn {
    margin: 4px;
}

/* Mobile-layout */
@media screen and (max-width: 768px) {
    .message-thread-reply-builder[b-p94njpp3hf]  .textarea-resizer {
        --max-rows: 6;
    }
}

/* Desktop-layout */
@media (min-width: 769px) {
    .message-thread-reply-builder[b-p94njpp3hf] {
        gap: 12px;
    }

    .message-thread-reply-builder[b-p94njpp3hf]  .textarea-resizer {
        --max-rows: 12;
    }

    .message-thread-reply-form[b-p94njpp3hf]  .message-thread-reply-form-submit-btn {
        margin: 8px;
    }
}

/* _content/Pdk.Web.Blazor.Communication/DigitalInbox/MessageThread/PdkDigitalInboxMessageThread.razor.rz.scp.css */
.container[b-qkpzyxqu8e] {
    height: 100%;
    padding-bottom: 0;
}

.container[b-qkpzyxqu8e]  .response-time-tip {
    text-align: center;
    margin-top: 16px;
}

.container[b-qkpzyxqu8e]  .message-not-allowed-panel {
    text-align: center;
    padding: 24px;
}

.message-block.is-written-by-user[b-qkpzyxqu8e] {
    display: grid;
    margin-left: auto;
    max-width: 90%;
}

.message-block.is-written-by-pdk[b-qkpzyxqu8e] {
    display: grid;
    margin-right: auto;
    max-width: 90%;
}

.is-written-by-pdk[b-qkpzyxqu8e]  .message-block-body {
    background: var(--sejl-color-neutral-100, #E9EEF5);
    color: var(--sejl-color-text-primary, #233041);
    border-radius: 0 12px 12px 12px;
    padding: 16px;
}

.is-written-by-user[b-qkpzyxqu8e]  .message-block-body {
    background: var(--sejl-color-blue-700, #1674DF);
    color: var(--sejl-color-neutral-0, #FFF);
    border-radius: 12px 0 12px 12px;
    padding: 16px;
}

.is-written-by-user[b-qkpzyxqu8e]  .message-block-body * {
    color: var(--sejl-color-neutral-0, #FFF);
}

.is-written-by-user[b-qkpzyxqu8e]  .message-block-body a {
    color: var(--sejl-color-neutral-0, #FFF);
    text-decoration-color: var(--sejl-color-neutral-0, #FFF);
}


/* Desktop-layout */
@media (min-width: 769px) {
    .message-block[b-qkpzyxqu8e] {
        max-width: 80%;
    }
}

/* General Typography styling*/

.container[b-qkpzyxqu8e]  .pdk-digital-inbox-message-thread {
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
}
.reply-panel[b-qkpzyxqu8e] {
    margin: 24px;
    display: flex;
    justify-content: center;
}

.container[b-qkpzyxqu8e]  .reply-error-modal {
    position: absolute;
    left: 50%;
    transform: translateY(-100%) translateX(-50%);
    margin-top: 16px;
    margin-left: 24px;
    margin-right: 24px;
}

/* Mobile-layout */
@media screen and (max-width: 768px) {
    .reply-panel[b-qkpzyxqu8e] {
        margin: 16px;
    }

    .container[b-qkpzyxqu8e]  .pdk-digital-inbox-message-thread {
        padding-top: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .container[b-qkpzyxqu8e]  .reply-error-modal {
        margin-left: 16px;
        margin-right: 16px;
    }
}
