@import url('./icons.css');

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--dxds-color-border-success-default-rest);
}

.invalid {
    outline: 1px solid var(--dxds-color-border-danger-default-rest);
}

.validation-message {
    color: var(--dxds-color-content-danger-default-rest);
}

.button-link {
    text-decoration: unset;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.title.title-secondary {
    padding: 0.313rem 0 0;
    color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
    font-size: var(--dxds-font-size-headline-lg);
    font-weight: var(--dxds-font-weight-headline-default);
    letter-spacing: var(--dxds-letter-spacing-headline-lg);
    line-height: var(--dxds-line-height-headline-lg);
}

.title-content-text {
    font-size: var(--dxds-font-size-base-lg);
    font-weight: var(--dxds-font-weight-base-default);
    letter-spacing: var(--dxds-letter-spacing-base-lg);
    line-height: var(--dxds-line-height-base-lg);
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

/* 1. Regra para imagens RECÉM-COLADAS (sem tamanho definido manualmente) */
.dxbl-html-editor .ql-editor img:not([width]):not([style*="width"]) {
    max-width: 20%;
    height: auto;
}

/* 2. Regra visual que vale para TODAS as imagens sempre (as bordas bonitas) */
.dxbl-html-editor .ql-editor img {
    border-radius: 6px;
    border: 1px solid #DDE2E5;
    margin-top: 8px;
}

/* Zera o espaçamento verde do DevExpress no menu lateral do Chat (ConversaDetalhes) */
.drawer-detalhes {
    --dxbl-drawer-panel-body-padding-x: 0px !important;
    --dxbl-drawer-panel-body-padding-y: 0px !important;
}

/* 3. Comportamento para celular */
@media (max-width: 576px) {
    .dxbl-html-editor .ql-editor img:not([width]):not([style*="width"]) {
        max-width: 100%; 
    }
}

/* Remove cabeçalho e bordas de ListBox usadas em chats e popups */
.chat-list-box,
.chat-list-box table {
    border: none !important;
}

.chat-list-box tr.dxbl-list-box-table-header-row {
    display: none !important;
}
