﻿.e-dialog .e-dlg-header-content {
    background: var(--foo-blue-gradient);
    display: flex !important;
    align-items: center !important;
}

/* Header text area takes remaining space, close button stays right */
.e-dialog .e-dlg-header {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center !important;
    order: 1;
}

/* All header text and icons white */
.e-dialog .e-dlg-header,
.e-dialog .e-dlg-header * {
    color: white !important;
}

/* Help icon — pushed to far right of header, sits just left of X */
.e-dialog .editor-help-btn {
    text-decoration: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.e-dialog .editor-help-btn .material-symbols-outlined {
    font-size: 22px !important;
}

/* Close button — always far right via order, vertically centered */
.e-dialog .e-dlg-closeicon-btn {
    order: 2;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    color: white !important;
    background: transparent !important;
    border: none !important;
}

.e-icon-dlg-close {
    color: white !important;
    font-size: 22px !important;
    position: static !important;
}

.e-icon-dlg-close:hover,
.e-icon-dlg-close:active,
.e-dialog .e-btn.e-dlg-closeicon-btn:active {
    color: grey !important;
}
.e-dialog {
      border: 0px;
    border-radius: 6px;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

/* Opt-in auto-height: dialog shrinks/grows to fit content.
   Apply via CustomCssClass="sf-dialog-auto-height" on any BaseEditor.
   Roll out to other dialogs once validated on UserEditor. */
.sf-dialog-auto-height.e-dialog {
    height: auto !important;
    min-height: 0 !important;
}

.sf-dialog-auto-height .e-dlg-content {
    height: auto !important;
    max-height: 70vh;
    overflow-y: auto;
    flex: 0 1 auto;
}

.confirm-danger .e-dlg-header-content {
    background: var(--foo-danger);
}
