/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3uhnm4ndma],
.components-reconnect-repeated-attempt-visible[b-3uhnm4ndma],
.components-reconnect-failed-visible[b-3uhnm4ndma],
.components-pause-visible[b-3uhnm4ndma],
.components-resume-failed-visible[b-3uhnm4ndma],
.components-rejoining-animation[b-3uhnm4ndma] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-retrying[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-failed[b-3uhnm4ndma],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3uhnm4ndma] {
    display: block;
}


#components-reconnect-modal[b-3uhnm4ndma] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0;
    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-3uhnm4ndma 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-3uhnm4ndma 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-3uhnm4ndma 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-3uhnm4ndma]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-3uhnm4ndma 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-3uhnm4ndma {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3uhnm4ndma {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3uhnm4ndma {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-3uhnm4ndma] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-3uhnm4ndma] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-3uhnm4ndma] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 0;
}

    #components-reconnect-modal button:hover[b-3uhnm4ndma] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-3uhnm4ndma] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-3uhnm4ndma] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-3uhnm4ndma] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-3uhnm4ndma 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-3uhnm4ndma] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-3uhnm4ndma {
    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/BannedMailDomains.razor.rz.scp.css */
/* /Components/Pages/MailAdmin.razor.rz.scp.css */
/* /Components/Pages/Mailboxes.razor.rz.scp.css */
.mail-viewer-page[b-d0lu6wq8ak] {
    --crm-dark: #090d16;
    --crm-header-bg: #0f172a;
    --crm-accent: #0284c7;
    --crm-accent-soft: rgba(2, 132, 199, 0.08);
    --crm-line: #cbd5e1;
    --crm-border: #e2e8f0;
    --crm-muted: #64748b;
    padding: 0;
}

.mail-viewer-header[b-d0lu6wq8ak] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mail-viewer-header h1[b-d0lu6wq8ak] {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 900;
    color: #020617;
    line-height: 1.2;
}

.mail-viewer-grid[b-d0lu6wq8ak] {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
}

.mailboxes-panel[b-d0lu6wq8ak],
.messages-panel[b-d0lu6wq8ak] {
    background: #fff;
    border: 1px solid var(--crm-line);
    border-radius: 0;
    overflow: hidden;
    min-height: 480px;
}

.panel-title[b-d0lu6wq8ak] {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    background: #020617;
}

.messages-title[b-d0lu6wq8ak] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mailbox-item[b-d0lu6wq8ak] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--crm-border);
    border-radius: 0;
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 150ms ease;
}

.mailbox-item:hover[b-d0lu6wq8ak] {
    background: #f8fafc;
}

.mailbox-item.active[b-d0lu6wq8ak] {
    background: #f1f5f9;
    box-shadow: inset 4px 0 0 #020617;
}

.mailbox-main[b-d0lu6wq8ak] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mailbox-address[b-d0lu6wq8ak] {
    font-weight: 800;
    font-size: 0.8125rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-display[b-d0lu6wq8ak] {
    color: var(--crm-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-counts[b-d0lu6wq8ak] {
    white-space: nowrap;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.apex-count-badge[b-d0lu6wq8ak] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 0;
}

.apex-unread-badge[b-d0lu6wq8ak] {
    background: #020617 !important;
    border-color: #020617 !important;
    color: #fff !important;
}

.apex-log-shell[b-d0lu6wq8ak] {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.apex-mail-header[b-d0lu6wq8ak] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 42px;
    padding: 0 1rem;
    font-weight: 800;
    color: #fff;
    background: #0f172a;
    border-bottom: 2px solid #0284c7;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.apex-mail-header.inbox[b-d0lu6wq8ak] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-header.outgoing[b-d0lu6wq8ak] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-header.status[b-d0lu6wq8ak] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
}

.apex-log-viewport[b-d0lu6wq8ak] {
    height: calc(100vh - 280px);
    min-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;
    background: #fff;
}

.apex-mail-row[b-d0lu6wq8ak] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--crm-border);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.apex-mail-row.inbox[b-d0lu6wq8ak] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-row.outgoing[b-d0lu6wq8ak] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-row.status[b-d0lu6wq8ak] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
    height: 84px;
    min-height: 84px;
    max-height: 84px;
}

.apex-mail-row:hover[b-d0lu6wq8ak] {
    background: #f8fafc;
    box-shadow: inset 3px 0 0 #0284c7;
}

.apex-mail-row.unread[b-d0lu6wq8ak] {
    font-weight: 800;
    background: #fafcff;
}

.apex-mail-cell[b-d0lu6wq8ak] {
    min-width: 0;
    display: flex;
    align-items: center;
    color: #0f172a;
    font-size: 0.8125rem;
    overflow: hidden;
}

.apex-actions-cell[b-d0lu6wq8ak] {
    justify-content: flex-end;
}

.apex-mobile-label[b-d0lu6wq8ak] {
    display: none;
}

.text-ellipsis[b-d0lu6wq8ak] {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-dot[b-d0lu6wq8ak] {
    color: #0284c7;
    font-size: 0.85rem;
    margin-right: 0.25rem;
    font-weight: 900;
}

.apex-message-open-btn[b-d0lu6wq8ak] {
    width: 52px;
    min-width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 140ms ease;
}

.apex-message-open-btn:hover[b-d0lu6wq8ak] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.apex-message-open-btn.danger[b-d0lu6wq8ak] {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.apex-message-open-btn.danger:hover[b-d0lu6wq8ak] {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.apex-log-placeholder[b-d0lu6wq8ak],
.apex-log-empty[b-d0lu6wq8ak] {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--crm-muted);
    font-size: 0.8125rem;
    background: #fff;
    border-bottom: 1px solid var(--crm-border);
}

.empty-state[b-d0lu6wq8ak] {
    padding: 3rem 1.5rem;
    color: var(--crm-muted);
    text-align: center;
    font-size: 0.875rem;
}

.apex-enum-badge[b-d0lu6wq8ak] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    border: 1px solid transparent;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.apex-enum-success[b-d0lu6wq8ak] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.apex-enum-error[b-d0lu6wq8ak] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.apex-enum-running[b-d0lu6wq8ak] {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.apex-enum-retry[b-d0lu6wq8ak],
.apex-enum-warning[b-d0lu6wq8ak] {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.apex-enum-neutral[b-d0lu6wq8ak] {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

/* Modal styling */
.mail-modal[b-d0lu6wq8ak] {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    overflow-y: auto;
}

.modal-dialog[b-d0lu6wq8ak] {
    width: 100%;
    max-width: 1040px;
    margin: auto;
}

.modal-content[b-d0lu6wq8ak] {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
}

.modal-header[b-d0lu6wq8ak] {
    background: #020617;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h5[b-d0lu6wq8ak] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.modal-header .btn-close[b-d0lu6wq8ak] {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-header .btn-close:hover[b-d0lu6wq8ak] {
    color: #fff;
}

.modal-body[b-d0lu6wq8ak] {
    background: #f8fafc;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-footer[b-d0lu6wq8ak] {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.message-detail-grid[b-d0lu6wq8ak] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.detail-section[b-d0lu6wq8ak] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    background: #fff;
}

.detail-section h6[b-d0lu6wq8ak] {
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #020617;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.detail-row[b-d0lu6wq8ak] {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.75rem;
}

.detail-row span[b-d0lu6wq8ak] {
    color: var(--crm-muted);
    font-weight: 600;
}

.detail-row strong[b-d0lu6wq8ak] {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    color: #0f172a;
}

.address-title[b-d0lu6wq8ak] {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--crm-muted);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-chip[b-d0lu6wq8ak],
.recipient-card[b-d0lu6wq8ak],
.attachment-item[b-d0lu6wq8ak],
.dkim-item[b-d0lu6wq8ak],
.attempt-card[b-d0lu6wq8ak] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.validation-pills[b-d0lu6wq8ak] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.validation-pill[b-d0lu6wq8ak] {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.validation-pill.ok[b-d0lu6wq8ak] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.validation-pill.fail[b-d0lu6wq8ak] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.validation-pill.none[b-d0lu6wq8ak] {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.recipient-grid[b-d0lu6wq8ak],
.attempt-grid[b-d0lu6wq8ak] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mail-body-text[b-d0lu6wq8ak] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    min-height: 120px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mail-body-html-frame[b-d0lu6wq8ak] {
    width: 100%;
    height: min(60vh, 560px);
    min-height: 300px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
}

.attachments-list[b-d0lu6wq8ak] {
    display: grid;
    gap: 0.5rem;
}

.attachment-item[b-d0lu6wq8ak] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apex-attachment-download-btn[b-d0lu6wq8ak] {
    min-width: 80px;
    height: 28px;
    padding: 0 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 140ms ease;
}

.apex-attachment-download-btn:hover:not(:disabled)[b-d0lu6wq8ak] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.raw-message-box[b-d0lu6wq8ak] {
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 0;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 65vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .mail-viewer-grid[b-d0lu6wq8ak] {
        grid-template-columns: 1fr;
    }
    .message-detail-grid[b-d0lu6wq8ak],
    .recipient-grid[b-d0lu6wq8ak],
    .attempt-grid[b-d0lu6wq8ak] {
        grid-template-columns: 1fr;
    }
    .detail-row[b-d0lu6wq8ak] {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/* OAuth sheet layout: compact rows and a single independently scrolling viewport. */
.panel-title[b-d0lu6wq8ak] { background: #f6f7fb; color: #0b2d5b; border-bottom: 1px solid #d7dce5; min-height: 36px; padding: 8px 12px; }
.messages-title span[b-d0lu6wq8ak] { color: #64748b; }
.apex-mail-header[b-d0lu6wq8ak] { position: sticky; top: 0; z-index: 2; background: #f6f7fb; color: #64748b; height: 36px; border-bottom: 1px solid #d7dce5; letter-spacing: .05em; padding: 0 12px; gap: 0; }
.apex-log-viewport[b-d0lu6wq8ak] { height: min(600px, 65dvh); min-height: 220px; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.apex-mail-row[b-d0lu6wq8ak], .apex-mail-row.status[b-d0lu6wq8ak] { height: 42px; min-height: 42px; max-height: 42px; padding: 4px 12px; gap: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.apex-mail-header.inbox[b-d0lu6wq8ak], .apex-mail-row.inbox[b-d0lu6wq8ak] { grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px; min-width: 760px; }
.apex-mail-header.outgoing[b-d0lu6wq8ak], .apex-mail-row.outgoing[b-d0lu6wq8ak] { grid-template-columns: 140px 180px minmax(240px, 1fr) 200px 90px 160px 60px; min-width: 1100px; }
.apex-mail-header.status[b-d0lu6wq8ak], .apex-mail-row.status[b-d0lu6wq8ak] { grid-template-columns: 110px 140px 180px minmax(240px, 1fr) 170px 140px 220px 60px; min-width: 1300px; }
.apex-mail-header > div[b-d0lu6wq8ak], .apex-mail-cell[b-d0lu6wq8ak] { min-width: 0; padding: 0 8px; border-right: 1px solid #d7dce5; }
.apex-mobile-label[b-d0lu6wq8ak] { display: none; }
.mail-viewer-header h1[b-d0lu6wq8ak] { color: #0b2d5b; }
/* /Components/Pages/MailCompose.razor.rz.scp.css */
.crm-mail-editor .ql-container[b-lx8z6xqjuh] {
    border: none !important;
    min-height: 380px;
}

.crm-mail-editor .ql-toolbar[b-lx8z6xqjuh] {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc;
}
/* /Components/Pages/OutgoingMailStatus.razor.rz.scp.css */
.mail-viewer-page[b-1jco1044h9] {
    --crm-dark: #090d16;
    --crm-header-bg: #0f172a;
    --crm-accent: #0284c7;
    --crm-accent-soft: rgba(2, 132, 199, 0.08);
    --crm-line: #cbd5e1;
    --crm-border: #e2e8f0;
    --crm-muted: #64748b;
    padding: 0;
}

.mail-viewer-header[b-1jco1044h9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mail-viewer-header h1[b-1jco1044h9] {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 900;
    color: #020617;
    line-height: 1.2;
}

.mail-viewer-grid[b-1jco1044h9] {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
}

.mailboxes-panel[b-1jco1044h9],
.messages-panel[b-1jco1044h9] {
    background: #fff;
    border: 1px solid var(--crm-line);
    border-radius: 0;
    overflow: hidden;
    min-height: 480px;
}

.panel-title[b-1jco1044h9] {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    background: #020617;
}

.messages-title[b-1jco1044h9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mailbox-item[b-1jco1044h9] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--crm-border);
    border-radius: 0;
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 150ms ease;
}

.mailbox-item:hover[b-1jco1044h9] {
    background: #f8fafc;
}

.mailbox-item.active[b-1jco1044h9] {
    background: #f1f5f9;
    box-shadow: inset 4px 0 0 #020617;
}

.mailbox-main[b-1jco1044h9] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mailbox-address[b-1jco1044h9] {
    font-weight: 800;
    font-size: 0.8125rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-display[b-1jco1044h9] {
    color: var(--crm-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-counts[b-1jco1044h9] {
    white-space: nowrap;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.apex-count-badge[b-1jco1044h9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 0;
}

.apex-unread-badge[b-1jco1044h9] {
    background: #020617 !important;
    border-color: #020617 !important;
    color: #fff !important;
}

.apex-log-shell[b-1jco1044h9] {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.apex-mail-header[b-1jco1044h9] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 42px;
    padding: 0 1rem;
    font-weight: 800;
    color: #fff;
    background: #0f172a;
    border-bottom: 2px solid #0284c7;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.apex-mail-header.inbox[b-1jco1044h9] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-header.outgoing[b-1jco1044h9] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-header.status[b-1jco1044h9] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
}

.apex-log-viewport[b-1jco1044h9] {
    height: calc(100vh - 280px);
    min-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;
    background: #fff;
}

.apex-mail-row[b-1jco1044h9] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--crm-border);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.apex-mail-row.inbox[b-1jco1044h9] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-row.outgoing[b-1jco1044h9] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-row.status[b-1jco1044h9] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
    height: 84px;
    min-height: 84px;
    max-height: 84px;
}

.apex-mail-row:hover[b-1jco1044h9] {
    background: #f8fafc;
    box-shadow: inset 3px 0 0 #0284c7;
}

.apex-mail-row.unread[b-1jco1044h9] {
    font-weight: 800;
    background: #fafcff;
}

.apex-mail-cell[b-1jco1044h9] {
    min-width: 0;
    display: flex;
    align-items: center;
    color: #0f172a;
    font-size: 0.8125rem;
    overflow: hidden;
}

.apex-actions-cell[b-1jco1044h9] {
    justify-content: flex-end;
}

.apex-mobile-label[b-1jco1044h9] {
    display: none;
}

.text-ellipsis[b-1jco1044h9] {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-dot[b-1jco1044h9] {
    color: #0284c7;
    font-size: 0.85rem;
    margin-right: 0.25rem;
    font-weight: 900;
}

.apex-message-open-btn[b-1jco1044h9] {
    width: 52px;
    min-width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 140ms ease;
}

.apex-message-open-btn:hover[b-1jco1044h9] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.apex-message-open-btn.danger[b-1jco1044h9] {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.apex-message-open-btn.danger:hover[b-1jco1044h9] {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.apex-log-placeholder[b-1jco1044h9],
.apex-log-empty[b-1jco1044h9] {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--crm-muted);
    font-size: 0.8125rem;
    background: #fff;
    border-bottom: 1px solid var(--crm-border);
}

.empty-state[b-1jco1044h9] {
    padding: 3rem 1.5rem;
    color: var(--crm-muted);
    text-align: center;
    font-size: 0.875rem;
}

.apex-enum-badge[b-1jco1044h9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    border: 1px solid transparent;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.apex-enum-success[b-1jco1044h9] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.apex-enum-error[b-1jco1044h9] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.apex-enum-running[b-1jco1044h9] {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.apex-enum-retry[b-1jco1044h9],
.apex-enum-warning[b-1jco1044h9] {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.apex-enum-neutral[b-1jco1044h9] {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

/* Modal styling */
.mail-modal[b-1jco1044h9] {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    overflow-y: auto;
}

.modal-dialog[b-1jco1044h9] {
    width: 100%;
    max-width: 1040px;
    margin: auto;
}

.modal-content[b-1jco1044h9] {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
}

.modal-header[b-1jco1044h9] {
    background: #020617;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h5[b-1jco1044h9] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.modal-header .btn-close[b-1jco1044h9] {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-header .btn-close:hover[b-1jco1044h9] {
    color: #fff;
}

.modal-body[b-1jco1044h9] {
    background: #f8fafc;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-footer[b-1jco1044h9] {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.message-detail-grid[b-1jco1044h9] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.detail-section[b-1jco1044h9] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    background: #fff;
}

.detail-section h6[b-1jco1044h9] {
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #020617;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.detail-row[b-1jco1044h9] {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.75rem;
}

.detail-row span[b-1jco1044h9] {
    color: var(--crm-muted);
    font-weight: 600;
}

.detail-row strong[b-1jco1044h9] {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    color: #0f172a;
}

.address-title[b-1jco1044h9] {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--crm-muted);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-chip[b-1jco1044h9],
.recipient-card[b-1jco1044h9],
.attachment-item[b-1jco1044h9],
.dkim-item[b-1jco1044h9],
.attempt-card[b-1jco1044h9] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.validation-pills[b-1jco1044h9] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.validation-pill[b-1jco1044h9] {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.validation-pill.ok[b-1jco1044h9] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.validation-pill.fail[b-1jco1044h9] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.validation-pill.none[b-1jco1044h9] {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.recipient-grid[b-1jco1044h9],
.attempt-grid[b-1jco1044h9] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mail-body-text[b-1jco1044h9] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    min-height: 120px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mail-body-html-frame[b-1jco1044h9] {
    width: 100%;
    height: min(60vh, 560px);
    min-height: 300px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
}

.attachments-list[b-1jco1044h9] {
    display: grid;
    gap: 0.5rem;
}

.attachment-item[b-1jco1044h9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apex-attachment-download-btn[b-1jco1044h9] {
    min-width: 80px;
    height: 28px;
    padding: 0 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 140ms ease;
}

.apex-attachment-download-btn:hover:not(:disabled)[b-1jco1044h9] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.raw-message-box[b-1jco1044h9] {
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 0;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 65vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .mail-viewer-grid[b-1jco1044h9] {
        grid-template-columns: 1fr;
    }
    .message-detail-grid[b-1jco1044h9],
    .recipient-grid[b-1jco1044h9],
    .attempt-grid[b-1jco1044h9] {
        grid-template-columns: 1fr;
    }
    .detail-row[b-1jco1044h9] {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/* OAuth sheet layout: compact rows and a single independently scrolling viewport. */
.panel-title[b-1jco1044h9] { background: #f6f7fb; color: #0b2d5b; border-bottom: 1px solid #d7dce5; min-height: 36px; padding: 8px 12px; }
.messages-title span[b-1jco1044h9] { color: #64748b; }
.apex-mail-header[b-1jco1044h9] { position: sticky; top: 0; z-index: 2; background: #f6f7fb; color: #64748b; height: 36px; border-bottom: 1px solid #d7dce5; letter-spacing: .05em; padding: 0 12px; gap: 0; }
.apex-log-viewport[b-1jco1044h9] { height: min(600px, 65dvh); min-height: 220px; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.apex-mail-row[b-1jco1044h9], .apex-mail-row.status[b-1jco1044h9] { height: 42px; min-height: 42px; max-height: 42px; padding: 4px 12px; gap: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.apex-mail-header.inbox[b-1jco1044h9], .apex-mail-row.inbox[b-1jco1044h9] { grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px; min-width: 760px; }
.apex-mail-header.outgoing[b-1jco1044h9], .apex-mail-row.outgoing[b-1jco1044h9] { grid-template-columns: 140px 180px minmax(240px, 1fr) 200px 90px 160px 60px; min-width: 1100px; }
.apex-mail-header.status[b-1jco1044h9], .apex-mail-row.status[b-1jco1044h9] { grid-template-columns: 110px 140px 180px minmax(240px, 1fr) 170px 140px 220px 60px; min-width: 1300px; }
.apex-mail-header > div[b-1jco1044h9], .apex-mail-cell[b-1jco1044h9] { min-width: 0; padding: 0 8px; border-right: 1px solid #d7dce5; }
.apex-mobile-label[b-1jco1044h9] { display: none; }
.mail-viewer-header h1[b-1jco1044h9] { color: #0b2d5b; }
/* /Components/Pages/SentMailboxes.razor.rz.scp.css */
.mail-viewer-page[b-9gaeftk2oq] {
    --crm-dark: #090d16;
    --crm-header-bg: #0f172a;
    --crm-accent: #0284c7;
    --crm-accent-soft: rgba(2, 132, 199, 0.08);
    --crm-line: #cbd5e1;
    --crm-border: #e2e8f0;
    --crm-muted: #64748b;
    padding: 0;
}

.mail-viewer-header[b-9gaeftk2oq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mail-viewer-header h1[b-9gaeftk2oq] {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 900;
    color: #020617;
    line-height: 1.2;
}

.mail-viewer-grid[b-9gaeftk2oq] {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
}

.mailboxes-panel[b-9gaeftk2oq],
.messages-panel[b-9gaeftk2oq] {
    background: #fff;
    border: 1px solid var(--crm-line);
    border-radius: 0;
    overflow: hidden;
    min-height: 480px;
}

.panel-title[b-9gaeftk2oq] {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    background: #020617;
}

.messages-title[b-9gaeftk2oq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mailbox-item[b-9gaeftk2oq] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--crm-border);
    border-radius: 0;
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 150ms ease;
}

.mailbox-item:hover[b-9gaeftk2oq] {
    background: #f8fafc;
}

.mailbox-item.active[b-9gaeftk2oq] {
    background: #f1f5f9;
    box-shadow: inset 4px 0 0 #020617;
}

.mailbox-main[b-9gaeftk2oq] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mailbox-address[b-9gaeftk2oq] {
    font-weight: 800;
    font-size: 0.8125rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-display[b-9gaeftk2oq] {
    color: var(--crm-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-counts[b-9gaeftk2oq] {
    white-space: nowrap;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.apex-count-badge[b-9gaeftk2oq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 0;
}

.apex-unread-badge[b-9gaeftk2oq] {
    background: #020617 !important;
    border-color: #020617 !important;
    color: #fff !important;
}

.apex-log-shell[b-9gaeftk2oq] {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.apex-mail-header[b-9gaeftk2oq] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 42px;
    padding: 0 1rem;
    font-weight: 800;
    color: #fff;
    background: #0f172a;
    border-bottom: 2px solid #0284c7;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.apex-mail-header.inbox[b-9gaeftk2oq] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-header.outgoing[b-9gaeftk2oq] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-header.status[b-9gaeftk2oq] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
}

.apex-log-viewport[b-9gaeftk2oq] {
    height: calc(100vh - 280px);
    min-height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;
    background: #fff;
}

.apex-mail-row[b-9gaeftk2oq] {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--crm-border);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.apex-mail-row.inbox[b-9gaeftk2oq] {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px;
}

.apex-mail-row.outgoing[b-9gaeftk2oq] {
    grid-template-columns: 140px minmax(180px, 0.9fr) minmax(240px, 1.3fr) minmax(200px, 1fr) 90px minmax(160px, 1fr) 60px;
}

.apex-mail-row.status[b-9gaeftk2oq] {
    grid-template-columns: 110px 140px minmax(180px, 0.9fr) minmax(240px, 1.2fr) 170px 140px minmax(220px, 1.2fr) 60px;
    height: 84px;
    min-height: 84px;
    max-height: 84px;
}

.apex-mail-row:hover[b-9gaeftk2oq] {
    background: #f8fafc;
    box-shadow: inset 3px 0 0 #0284c7;
}

.apex-mail-row.unread[b-9gaeftk2oq] {
    font-weight: 800;
    background: #fafcff;
}

.apex-mail-cell[b-9gaeftk2oq] {
    min-width: 0;
    display: flex;
    align-items: center;
    color: #0f172a;
    font-size: 0.8125rem;
    overflow: hidden;
}

.apex-actions-cell[b-9gaeftk2oq] {
    justify-content: flex-end;
}

.apex-mobile-label[b-9gaeftk2oq] {
    display: none;
}

.text-ellipsis[b-9gaeftk2oq] {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-dot[b-9gaeftk2oq] {
    color: #0284c7;
    font-size: 0.85rem;
    margin-right: 0.25rem;
    font-weight: 900;
}

.apex-message-open-btn[b-9gaeftk2oq] {
    width: 52px;
    min-width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 140ms ease;
}

.apex-message-open-btn:hover[b-9gaeftk2oq] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.apex-message-open-btn.danger[b-9gaeftk2oq] {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.apex-message-open-btn.danger:hover[b-9gaeftk2oq] {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.apex-log-placeholder[b-9gaeftk2oq],
.apex-log-empty[b-9gaeftk2oq] {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--crm-muted);
    font-size: 0.8125rem;
    background: #fff;
    border-bottom: 1px solid var(--crm-border);
}

.empty-state[b-9gaeftk2oq] {
    padding: 3rem 1.5rem;
    color: var(--crm-muted);
    text-align: center;
    font-size: 0.875rem;
}

.apex-enum-badge[b-9gaeftk2oq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    border: 1px solid transparent;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.apex-enum-success[b-9gaeftk2oq] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.apex-enum-error[b-9gaeftk2oq] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.apex-enum-running[b-9gaeftk2oq] {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.apex-enum-retry[b-9gaeftk2oq],
.apex-enum-warning[b-9gaeftk2oq] {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.apex-enum-neutral[b-9gaeftk2oq] {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

/* Modal styling */
.mail-modal[b-9gaeftk2oq] {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    overflow-y: auto;
}

.modal-dialog[b-9gaeftk2oq] {
    width: 100%;
    max-width: 1040px;
    margin: auto;
}

.modal-content[b-9gaeftk2oq] {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
}

.modal-header[b-9gaeftk2oq] {
    background: #020617;
    color: #fff;
    border-bottom: 2px solid #0284c7;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h5[b-9gaeftk2oq] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.modal-header .btn-close[b-9gaeftk2oq] {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-header .btn-close:hover[b-9gaeftk2oq] {
    color: #fff;
}

.modal-body[b-9gaeftk2oq] {
    background: #f8fafc;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-footer[b-9gaeftk2oq] {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.message-detail-grid[b-9gaeftk2oq] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.detail-section[b-9gaeftk2oq] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    background: #fff;
}

.detail-section h6[b-9gaeftk2oq] {
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #020617;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.detail-row[b-9gaeftk2oq] {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.75rem;
}

.detail-row span[b-9gaeftk2oq] {
    color: var(--crm-muted);
    font-weight: 600;
}

.detail-row strong[b-9gaeftk2oq] {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    color: #0f172a;
}

.address-title[b-9gaeftk2oq] {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--crm-muted);
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-chip[b-9gaeftk2oq],
.recipient-card[b-9gaeftk2oq],
.attachment-item[b-9gaeftk2oq],
.dkim-item[b-9gaeftk2oq],
.attempt-card[b-9gaeftk2oq] {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.validation-pills[b-9gaeftk2oq] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.validation-pill[b-9gaeftk2oq] {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.validation-pill.ok[b-9gaeftk2oq] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.validation-pill.fail[b-9gaeftk2oq] {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.validation-pill.none[b-9gaeftk2oq] {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.recipient-grid[b-9gaeftk2oq],
.attempt-grid[b-9gaeftk2oq] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mail-body-text[b-9gaeftk2oq] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1rem;
    min-height: 120px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mail-body-html-frame[b-9gaeftk2oq] {
    width: 100%;
    height: min(60vh, 560px);
    min-height: 300px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
}

.attachments-list[b-9gaeftk2oq] {
    display: grid;
    gap: 0.5rem;
}

.attachment-item[b-9gaeftk2oq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apex-attachment-download-btn[b-9gaeftk2oq] {
    min-width: 80px;
    height: 28px;
    padding: 0 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 140ms ease;
}

.apex-attachment-download-btn:hover:not(:disabled)[b-9gaeftk2oq] {
    background: #020617;
    color: #fff;
    border-color: #020617;
}

.raw-message-box[b-9gaeftk2oq] {
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 0;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 65vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .mail-viewer-grid[b-9gaeftk2oq] {
        grid-template-columns: 1fr;
    }
    .message-detail-grid[b-9gaeftk2oq],
    .recipient-grid[b-9gaeftk2oq],
    .attempt-grid[b-9gaeftk2oq] {
        grid-template-columns: 1fr;
    }
    .detail-row[b-9gaeftk2oq] {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/* OAuth sheet layout: compact rows and a single independently scrolling viewport. */
.panel-title[b-9gaeftk2oq] { background: #f6f7fb; color: #0b2d5b; border-bottom: 1px solid #d7dce5; min-height: 36px; padding: 8px 12px; }
.messages-title span[b-9gaeftk2oq] { color: #64748b; }
.apex-mail-header[b-9gaeftk2oq] { position: sticky; top: 0; z-index: 2; background: #f6f7fb; color: #64748b; height: 36px; border-bottom: 1px solid #d7dce5; letter-spacing: .05em; padding: 0 12px; gap: 0; }
.apex-log-viewport[b-9gaeftk2oq] { height: min(600px, 65dvh); min-height: 220px; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.apex-mail-row[b-9gaeftk2oq], .apex-mail-row.status[b-9gaeftk2oq] { height: 42px; min-height: 42px; max-height: 42px; padding: 4px 12px; gap: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.apex-mail-header.inbox[b-9gaeftk2oq], .apex-mail-row.inbox[b-9gaeftk2oq] { grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) 140px 110px 60px; min-width: 760px; }
.apex-mail-header.outgoing[b-9gaeftk2oq], .apex-mail-row.outgoing[b-9gaeftk2oq] { grid-template-columns: 140px 180px minmax(240px, 1fr) 200px 90px 160px 60px; min-width: 1100px; }
.apex-mail-header.status[b-9gaeftk2oq], .apex-mail-row.status[b-9gaeftk2oq] { grid-template-columns: 110px 140px 180px minmax(240px, 1fr) 170px 140px 220px 60px; min-width: 1300px; }
.apex-mail-header > div[b-9gaeftk2oq], .apex-mail-cell[b-9gaeftk2oq] { min-width: 0; padding: 0 8px; border-right: 1px solid #d7dce5; }
.apex-mobile-label[b-9gaeftk2oq] { display: none; }
.mail-viewer-header h1[b-9gaeftk2oq] { color: #0b2d5b; }
