﻿








/* Correção issue #939: conteúdo FormattedText dentro da Timeline de chat */
.sapSuiteUiCommonsTimelineItem .sapMFT,
.sapSuiteUiCommonsTimelineItem .chatMessageContent,
.sapSuiteUiCommonsTimelineItemShellBody .sapMFT,
.sapSuiteUiCommonsTimelineItemShellBody .chatMessageContent {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
    /* Cores herdam do tema UI5 (sap_fiori_3, sap_fiori_3_dark, belize, hcb, custom).
       Se a CSS var não existir (tema sem suporte), cai para o fallback hex. */
    color: var(--sapTextColor, #1d1d1d) !important;
    background-color: transparent !important;
}

    .sapSuiteUiCommonsTimelineItem .sapMFT p,
    .sapSuiteUiCommonsTimelineItem .chatMessageContent p,
    .sapSuiteUiCommonsTimelineItem .sapMFT ol,
    .sapSuiteUiCommonsTimelineItem .chatMessageContent ol,
    .sapSuiteUiCommonsTimelineItem .sapMFT ul,
    .sapSuiteUiCommonsTimelineItem .chatMessageContent ul,
    .sapSuiteUiCommonsTimelineItem .sapMFT li,
    .sapSuiteUiCommonsTimelineItem .chatMessageContent li {
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

































































    .sapSuiteUiCommonsTimelineItem .sapMFT pre {
        background: var(--sapUiExtraLightBG, var(--sapBackgroundColor, #f5f5f5));
        border: 1px solid var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5));
        padding: 8px;
        border-radius: 4px;
        overflow-x: auto;
        font-family: monospace;
        font-size: 0.9em;
        white-space: pre-wrap;
        margin: 6px 0;
        max-width: 100%;
        color: var(--sapTextColor, #1d1d1d);
    }

    .sapSuiteUiCommonsTimelineItem .sapMFT code {
        background: var(--sapUiExtraLightBG, var(--sapBackgroundColor, #f0f0f0));
        border: 1px solid var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5));
        padding: 2px 4px;
        border-radius: 3px;
        font-family: monospace;
        word-break: break-word;
        overflow-wrap: anywhere;
        color: var(--sapTextColor, #1d1d1d);
    }

    .sapSuiteUiCommonsTimelineItem .sapMFT h2,
    .sapSuiteUiCommonsTimelineItem .sapMFT h3,
    .sapSuiteUiCommonsTimelineItem .sapMFT h4 {
        margin: 8px 0 4px 0;
        word-break: break-word;
        overflow-wrap: anywhere;
        color: var(--sapHeaderTextColor, var(--sapTextColor, #1d1d1d));
    }

    .sapSuiteUiCommonsTimelineItem .sapMFT table {
        border-collapse: collapse;
        width: 100%;
        table-layout: fixed;
        margin: 8px 0;
        font-size: 0.9em;
        overflow-x: auto;
        display: block;
    }

@media (min-width: 600px) {
    .sapSuiteUiCommonsTimelineItem .sapMFT table {
        display: table;
        overflow-x: visible;
    }
}

.sapSuiteUiCommonsTimelineItem .sapMFT td,
.sapSuiteUiCommonsTimelineItem .sapMFT th {
    border: 1px solid var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5));
    padding: 6px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
    color: var(--sapTextColor, #1d1d1d);
    box-shadow: inset -1px 0 0 0 var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5)), inset 0 -1px 0 0 var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5));
}

.sapSuiteUiCommonsTimelineItem .sapMFT th {
    background: var(--sapUiExtraLightBG, var(--sapBackgroundColor, #f8f9fa));
    font-weight: 600;
    color: var(--sapHeaderTextColor, var(--sapTextColor, #1d1d1d));
}

.sapSuiteUiCommonsTimelineItem .sapMFT a {
    /* Link herda a cor de link do tema — fica legível em dark, light, hcb. */
    color: var(--sapLinkColor, #0a6ed1);
    word-break: break-word;
}



/* Paridade visual do botão de download de PDF (linkifyMessage do formatter.js
   gera <a class="chatDownloadBtn" download> quando detecta /FileDownload/Report/ na URL).
   Sem esta regra o <a> aparece como link de texto padrão e o usuário não percebe
   que é um botão de download */
.chatMessageContent a.chatDownloadBtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 6px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    background-color: #0a6ed1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    word-break: break-word !important;
}

    .chatMessageContent a.chatDownloadBtn:hover,
    .chatMessageContent a.chatDownloadBtn:focus {
        background-color: #085caf !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

/* Estados de hover/foco para acessibilidade em todos os temas */
.sapSuiteUiCommonsTimelineItem .sapMFT a:hover,
.chatMessageContent a:hover {
    color: var(--sapLink_Hover_Color, var(--sapLinkColor, #0a6ed1));
    text-decoration: underline;
}

.sapSuiteUiCommonsTimelineItem .sapMFT a:focus,
.chatMessageContent a:focus {
    outline: 2px solid var(--sapFocusColor, #0a6ed1);
    outline-offset: 1px;
}

:root {
    --default-01: #000;
    --default-02: #fff;
    --default-03: #fff;
    --blue-01: #2f3c48;
    --blue-02: #0c1419f2;
    --orange-01: #ff9900;
}

@media (max-width:599px) {
    .size1 {
        font-size: 1rem;
    }

    .size2 {
        font-size: 2rem;
    }

    .size3 {
        font-size: 3rem;
    }

    .size4 {
        font-size: 4rem;
    }

    .size5 {
        font-size: 5rem;
    }

    /* Fix: logo customizada nao distorce em mobile */
    .Logo-B-One img,
    #logoDefault img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ========================================
   AI Chat Overlay Container
   ======================================== */
/* NAO REMOVER: z-index 1000 e' o valor de referencia usado pelo bloco abaixo
   para garantir que popups do UI5 sempre fiquem acima do chat overlay. */
.chatOverlayContainer {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

    .chatOverlayContainer * {
        pointer-events: auto !important;
    }

/* Fix para o botão FAB do agente IA */
#agentFabButton {
    position: fixed !important;
    z-index: 999 !important;
}

@media (min-width:599px) {

    .objectHeaderContainerSW > div > div > div > div {
        border-radius: 1px solid red;
        width: 98% !important;
    }

    .formJustifyContent-spaceBettowenSW > div > div {
        justify-content: space-between;
        display: flex;
    }

        .formJustifyContent-spaceBettowenSW > div > div > section:first-child {
            justify-content: left;
            display: flex;
        }

        .formJustifyContent-spaceBettowenSW > div > div > section:last-child {
            justify-content: right;
            display: flex;
        }
}

.sapSuiteUiCommonsTimeline {
    max-width: none !important;
}

.sapSuiteUiCommonsTimelineItem .chatMessageContent,
.sapSuiteUiCommonsTimelineItemShellBody,
.sapSuiteUiCommonsTimelineItemShell {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.sapUiFormTitleH6 {
    height: 0px !important;
}

.contractOnePositive {
    color: #00b894 !important;
}

.contractOneNegative {
    color: #d63031 !important;
}

.clickableCell {
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.2s;
}

    .clickableCell:hover {
        background-color: #f0f0f0;
    }

.tableRanges {
    background-color: #607D8B;
    border: #607D8B 1px solid;
}

.tableLevels {
    background-color: #90A4AE;
    border: #90A4AE 1px solid;
}

.tableApprovers {
    background-color: #B0BEC5;
    border: #B0BEC5 1px solid;
}

.responsiveTableLines {
    max-height: calc(100vh - 200px); /* Ajuste o valor 200px conforme necess�rio */
    overflow-y: auto;
}

.responsiveRfqTableLines {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

* > .respVerticalSplitter {
    height: 80vh !important;
}

.stickyTable {
    height: 33rem;
    overflow-y: auto;
}

.tableScrollContainer {
    overflow-y: auto;
}

.tableHorizontalScroll {
    padding-bottom: 2vh;
}

.generalBackground:before {
    content: "";
    position: inherit;
    z-index: -1;
    display: block;
    /*background-image: linear-gradient(var(--blue-01), var(--blue-02)), url("../img/bg-predio.jpg");*/
    background-image: url("../img/background_sap.jpg");
    background-size: cover;
    width: inherit;
    height: inherit;
    overflow: hidden;
}

.loginBG:before {
    content: "";
    position: inherit;
    z-index: -1;
    display: block;
    /*background-image: linear-gradient(var(--blue-01), var(--blue-02)), url("../img/bg-predio.jpg");*/
    background-image: url("../img/background_sap.jpg");
    background-size: cover;
    width: inherit;
    height: inherit;
    overflow: hidden;
}

.loginBG:belize {
    content: "";
    position: inherit;
    z-index: -1;
    display: block;
    /* background-image: linear-gradient(var(--blue-01), var(--blue-02)), url("../img/bg-predio.jpg"); */
    background-image: url("../img/belize.png");
    background-size: cover;
    width: 100%;
    height: inherit;
    overflow: hidden;
}

.bg-master-page {
    /* background-image:linear-gradient(var(--blue-01), var(--blue-02)), url("../img/bg-predio.jpg"); */
    background-image: url("../img/BK_Verde_Colorido_Right_Top.png");
}

.bg-transparent {
    background-color: rgba(255, 255, 255, 0);
}

.bg-white {
    background-color: GhostWhite;
}

.bg-black {
    background-color: Black;
}

.bg-grey {
    background-color: Grey;
}

.bg-golden {
    background-color: GoldenRod;
}

.img-logo-topo {
    margin-left: 1rem !important;
}

div {
    outline: none !important;
}

section {
    outline: none !important;
}

span {
    outline: none !important;
}

.sectionFill {
    min-height: 460px;
}

.custom-control-center-cost-round {
    padding: 1px 2px 1px 1px;
    background: #227093;
    border-radius: 3px;
    display: inline;
    line-height: 1.5em;
    margin-right: 2px;
    color: #FFF;
}

.Login-left {
    height: 20rem;
}

    .Login-left > div {
        width: 190px;
        height: 20rem;
        opacity: 1;
        background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(255, 166, 0, 0.5)), url("/img/Login-Left.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 15px 0px 0px 15px;
        box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
    }

.Login-left-black > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: Black;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-white > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: White;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-gold > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: gold;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-darkorange > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: darkorange;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-indianred > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: indianred;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-darkmagenta > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: darkmagenta;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-cornflowerblue > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: cornflowerblue;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-deepskyblue > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: deepskyblue;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-darkcyan > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: darkcyan;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-olivedrab > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: olivedrab;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-darkslategray > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: darkslategray;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-azure > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: azure;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-lightgray > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: lightgray;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-darkgray > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: darkgray;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.Login-left-dimgray > div {
    width: 190px;
    height: 20rem;
    opacity: 1;
    background-color: dimgray;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px 0px 0px 15px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.iv-custom-login {
    margin-top: 2rem;
    width: 300px;
    min-height: 100px;
    height: 100%;
    opacity: 0.82;
    background: #2f3c48;
    border-radius: 12px 12px 12px 12px;
    float: left;
}

.logoCompany {
    opacity: 1;
    margin-top: 1rem;
    margin-left: 2rem;
}

.logoCompanyTop {
    opacity: 1;
    margin-top: 1rem;
    margin-left: 2rem;
}

.logoCompanyMiddle {
    opacity: 1;
    margin-top: 6.5rem;
    margin-left: 2rem;
}

.logoCompanyBottom {
    opacity: 1;
    margin-top: 10rem;
    margin-left: 2rem;
}

.titleB1Lite {
    font-size: 30px !important;
    font-palette: dark;
    font-weight: bold;
    color: azure !important;
}

.marginTop40 {
    margin-top: 40%;
}

.marginTop10 {
    margin-top: 10%;
}

.tinyMaginBottomB1 {
    margin-bottom: 1rem;
}

.TelaLogin {
    margin-top: 30%;
    min-height: 100px;
    height: 100%;
    opacity: 0.82;
    background: #fff;
    border-radius: 15px;
    float: left;
}

.Login-Panel {
    background-color: #194745;
}

.marginLeftAuto {
    margin-left: auto;
}

.Logo-B-One {
    margin-left: 20.5%;
}

.btn-login {
    background-color: var(--orange-01) !important;
    border-radius: 0.25rem;
    font-weight: 600;
}

    .btn-login > span {
        color: white !important;
    }

.sapMSegBBtn {
    white-space: normal;
    overflow: visible;
    height: auto;
}

.iv-custom-company-list {
    width: 300px;
    min-height: 100px;
    height: auto;
    background: #fff;
    border-radius: 2px;
    margin-top: 10px;
    float: left;
    border-top: 6px solid var(--orange-01);
}

.v-custom-company-list {
    width: 300px;
    min-height: 100px;
    height: auto;
    opacity: 0.82;
    border-radius: 0 2px 2px 0;
    float: left;
    align-content: center;
}

.sapMListTblCell.cellBorderRight {
    border-right: 1px solid lightgray;
}

.sapMListTblCell.cellBorderLeft {
    border-left: 1px solid lightgray;
}

.sapMLIB .sapMListSelectedRow {
    background: #e8e8e8;
}

.sapMListTblCell.cellBorderRight {
    border-right: 1px solid lightgray;
}

.sapMListTblCell.cellBorderLeft {
    border-left: 1px solid lightgray;
}

.tinyBorder {
    border: solid 0.5px #CCC;
}

/* Força fonte verde independente de especificidade (ex.: dentro de célula de sapMTable,
   onde a classe utilitária sapUiPositiveText do UI5 costuma ser sobrescrita). */
.greenText {
    color: var(--sapPositiveTextColor, #2b7d2b) !important;
}

.maxImageLogoSize {
    max-width: 5rem;
    max-height: 5rem;
}

.size1 {
    font-size: 1.5rem;
}

.size2 {
    font-size: 2.5rem;
}

.size3 {
    font-size: 5rem;
}

.size4 {
    font-size: 7.5rem;
}

.size5 {
    font-size: 10rem;
}

.chatDialogMaximized {
    max-height: 90%;
    max-width: 90%;
    overflow: auto;
    height: 90%;
    width: 90%;
}

.chatDialogNormal {
    overflow: auto;
    height: 260px;
}

.testWidthContainerRed {
    border: 1px solid red;
}

.sapUiMarginRight {
    margin-top: 20px;
    margin-left: 20px;
}

.myBigText {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.myBiggerText {
    font-size: 3rem !important;
    font-weight: bold;
}

.boldText {
    font-weight: bold;
}

.boldText {
    font-weight: 700;
}

.map2BestHeaderBox {
    display: block;
    padding: 0.4rem 0.6rem;
    margin: 0.25rem 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.08) inset, 0 6px 18px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    line-height: 1.2;
    white-space: pre-line;
}

    .map2BestHeaderBox::before {
        content: "*";
        display: inline-block;
        margin-right: 0.35rem;
        transform: translateY(-1px);
        font-weight: 900;
    }

    .map2BestHeaderBox:hover {
        background: rgba(255, 215, 0, 0.18);
        border-color: rgba(255, 215, 0, 0.75);
    }


/* ========== Agent Chat Overlay ========== */
/* Estilos espec�ficos para o chat overlay - n�o afeta outras p�ginas */

#chatOverlayContainer .agentFab,
.agentFab,
.niaFab {
    position: fixed !important;
    /* posição inicial definida via JavaScript */
    right: 54px;
    bottom: 54px;
    z-index: 9999;
    cursor: grab;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

    .niaFab:hover,
    .agentFab:hover {
        transform: scale(1.1);
    }

#chatOverlayContainer,
.chatOverlayContainer {
    position: fixed !important;
    bottom: 10px;
    right: 24px;
    z-index: 10000;
    pointer-events: none;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 32px);
}

    #chatOverlayContainer > *,
    .chatOverlayContainer > * {
        pointer-events: auto;
    }

    /* Panel - usa posicionamento relativo para permitir footer absoluto */
    #chatOverlayContainer .chatOverlayPanel,
    .chatOverlayPanel {
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        animation: chatOverlaySlideUp 0.25s ease-out;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

        /* Header - primeira faixa da coluna do painel.
           Sem position:absolute nem height fixa: o HBox do fragmento declara
           height="56px" (inline, vence qualquer folha) e assistant-ai.css fixa
           min-height:56px. Fora do fluxo, a area de mensagens teria que repetir
           essa altura — e qualquer divergencia corta a primeira mensagem. */
        #chatOverlayContainer .chatOverlayHeader,
        .chatOverlayPanel > .chatOverlayHeader {
            background: linear-gradient(135deg, #0854a0, #1a73e8);
            padding: 10px 14px;
            color: #fff;
            box-sizing: border-box;
            z-index: 2;
        }

        /* Footer - ultima faixa da coluna do painel.
           min-height em vez de height: o footer empilha em coluna (ver
           .chatOverlayFooter em assistant-ai.css) e cresce quando a barra de consumo
           de tokens aparece. Com altura travada em 60px ela roubaria a linha do campo
           de mensagem.

           E' filho flex com flex-shrink:0, nao absoluto: crescendo fora do fluxo,
           ele cobre o fim da lista de mensagens. No fluxo, a reserva da area de
           mensagens acompanha a altura real do footer. */
        #chatOverlayContainer .chatOverlayFooter,
        .chatOverlayPanel > .chatOverlayFooter {
            position: relative;
            min-height: 60px;
            height: auto;
            padding: 8px 10px;
            border-top: 1px solid #e0e0e0;
            background: #fff;
            box-sizing: border-box;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: center;
        }



.chatOverlayHeader .sapMTitle {
    color: #fff !important;
}

.chatOverlayHeader .sapMBtn {
    color: #fff !important;
}

.chatOverlayHeader .sapUiIcon {
    color: #fff !important;
}

.chatOverlayAvatar {
    font-size: 1.4rem;
    color: #fff;
}

.chatOverlayInputField {
    min-width: 0;
    flex: 1;
}

.chatOverlayEmpty {
    text-align: center;
    color: #888;
    padding: 40px 16px;
    font-size: 0.9rem;
}

/* Tablet responsiveness (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    #chatOverlayContainer,
    .chatOverlayContainer {
        bottom: 16px;
        right: 16px;
        width: 360px;
        height: 480px;
        max-height: calc(100vh - 32px);
    }
}

/* Mobile responsiveness - Portrait (max-width: 480px) */
@media screen and (max-width: 480px) {
    #chatOverlayContainer,
    .chatOverlayContainer {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        #chatOverlayContainer .chatOverlayPanel,
        .chatOverlayPanel {
            border-radius: 0 !important;
        }

            #chatOverlayContainer .chatOverlayFooter,
            .chatOverlayPanel > .chatOverlayFooter {
                padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
                height: auto;
                min-height: 60px;
            }

    .chatBubbleMe,
    .chatBubble {
        max-width: 85%;
    }
}

/* Mobile responsiveness - Landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #chatOverlayContainer,
    .chatOverlayContainer {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
    }

        #chatOverlayContainer .chatOverlayPanel,
        .chatOverlayPanel {
            border-radius: 0 !important;
        }

            #chatOverlayContainer .chatOverlayHeader,
            .chatOverlayPanel > .chatOverlayHeader {
                min-height: 40px !important;
                height: 40px !important;
                padding: 6px 14px;
            }

            #chatOverlayContainer .chatOverlayFooter,
            .chatOverlayPanel > .chatOverlayFooter {
                height: auto;
                min-height: 50px;
                padding: 6px 12px;
            }
}

@keyframes chatOverlaySlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat bubbles */
.chatBubbleRowMe {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0;
    padding-right: 4px;
    box-sizing: border-box;
}

.chatBubbleRow {
    display: flex;
    justify-content: flex-start;
    margin: 4px 0;
    padding-left: 4px;
    box-sizing: border-box;
}

.chatBubbleMe {
    background: #0854a0;
    color: #fff;
    border-radius: 12px 12px 2px 12px;
    padding: 8px 12px;
    max-width: 80%;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.chatBubble {
    background: #fff;
    color: #333;
    border-radius: 12px 12px 12px 2px;
    padding: 8px 12px;
    max-width: 80%;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.chatBubbleSender {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0854a0;
    margin-bottom: 2px;
}



.chatBubbleTime {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.4);
    margin-top: 4px;
    text-align: right;
}

.chatBubbleMe .chatBubbleTime {
    color: rgba(255,255,255,0.7);
}

.sapSuiteUiCommonsProcessFlowNodeText {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.sapSuiteUiCommonsProcessFlowNode {
    min-height: 180px !important;
    height: auto !important;
}

/* Selecao de Parceiro de Negocio nos documentos de marketing */
.businessPartnerSelectDialog .sapMDialogSection,
.businessPartnerSelectDialog .sapMDialogScroll,
.businessPartnerSelectDialog .sapMDialogScrollCont,
.businessPartnerSelectDialog .sapMList,
.businessPartnerSelectDialog .sapMListUl {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

.businessPartnerSelectItem.sapMLIB {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.businessPartnerSelectItem .sapMLIBContent {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    flex: 1 1 0% !important;
    overflow: hidden !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
}

.businessPartnerSelectContent {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

.businessPartnerSelectTitle,
.businessPartnerSelectDescription,
.businessPartnerSelectCurrency,
.businessPartnerSelectTitle .sapMText,
.businessPartnerSelectDescription .sapMText,
.businessPartnerSelectCurrency .sapMObjStatusText {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.businessPartnerSelectTitle {
    font-weight: 600;
    line-height: 1.35;
}

.businessPartnerSelectDescription,
.businessPartnerSelectCurrency {
    margin-top: 0.25rem;
}




/* ============================================================
 * Tabela markdown (gerada pelo pipeline marked v13 no formatter.js
 * via renderer customizado). Borda, padding e largura consistentes
 * com as tabelas que ja existem em .chatMessageContent table.
 * ============================================================ */
.chatMarkdownTable {
    border-collapse: collapse !important;
    margin: 6px 0 !important;
    width: auto !important;
    max-width: 100% !important;
    table-layout: auto !important;
    font-size: 0.9em !important;
    color: var(--sapTextColor, #1d1d1d) !important;
}

    .chatMarkdownTable th,
    .chatMarkdownTable td {
        border: 1px solid var(--sapUiListBorderColor, var(--sapList_BorderColor, #e5e5e5)) !important;
        padding: 4px 8px !important;
        text-align: left !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .chatMarkdownTable th {
        background-color: var(--sapList_HeaderBackground, #f5f5f5) !important;
        font-weight: 600 !important;
    }



/* ============================================================
 * Drag-and-drop no DynamicAttachmentTable (issue: usuário arrastar
 * um arquivo da área de trabalho e soltar sobre a tabela de anexos).
 * A classe -dragover é alternada via JS (DynamicAttachmentTable.js)
 * enquanto um arquivo é arrastado sobre o controle.
 * ============================================================ */
.contractOne-attachment-table {
    position: relative;
    min-height: 16rem;
    transition: background-color 0.15s ease-in-out;
}

.contractOne-attachment-table-dragover {
    background-color: var(--sapSelectedColor, #0a6ed1);
    background-color: color-mix(in srgb, var(--sapSelectedColor, #0a6ed1) 8%, transparent);
    outline: 2px dashed var(--sapSelectedColor, #0a6ed1);
    outline-offset: -2px;
}

/* Listas de documentos de marketing: a tabela fica mais larga que o container quando colunas de campos de usuario sao exibidas.
   O toolbar sticky precisa acompanhar o scroll horizontal e manter a largura da area visivel. */
.b1StickyListScroll {
    container-type: inline-size;
}

.b1StickyListTable.sapMList {
    width: fit-content !important; /* sobrepoe o width:auto inline da Table */
    min-width: 100%;
}

.b1StickyListTable .sapMListHdr,
.b1StickyListTable .sapMListInfoTBarContainer {
    position: sticky;
    left: 0;
    width: 100cqw;
    box-sizing: border-box;
}

/* Rodape de coluna (totalizador): fica fixo na base da area de rolagem, alinhado a coluna do total.
   Fundo opaco para que as linhas nao aparecam por tras ao rolar. */
.b1StickyListTable tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--sapList_FooterBackground, var(--sapList_Background));
}

/* Listas de documentos de marketing: a area da tabela ocupa exatamente o espaco entre os filtros e o paginador
   (rodape da Page), sem rolagem externa. A section da Page tem altura definida (entre cabecalho e rodape);
   nela, o IconTabBar de tipos mantem a altura natural e o de status (b1FitListBody, que contem a tabela)
   toma o restante. Assim o totalizador sticky e a barra horizontal ficam sempre visiveis. */
.b1FitList > section {
    display: flex;
    flex-direction: column;
}

.b1FitList > section > .sapMITB {
    flex: none;
}

.b1FitList > section > .sapMITB.b1FitListBody {
    flex: 1 1 0;
    min-height: 20rem; /* janelas muito baixas rolam a pagina em vez de esconder a tabela */
    display: flex;
    flex-direction: column;
}

.b1FitList > section > .sapMITB.b1FitListBody > .sapMITBContainerContent {
    flex: 1 1 0;
    min-height: 0;
}

.b1FitList > section > .sapMITB.b1FitListBody > .sapMITBContainerContent > .sapMITBContent {
    position: absolute;
    inset: 0;
}

/* ---- Comparação de cotações por item (Map3) ---- */
.rfqCompare { --rfqCellHeight: 4rem; }
.rfqCompare.rfqDensityCompact { --rfqCellHeight: 3rem; }
.rfqCompare.rfqDensityCondensed { --rfqCellHeight: 2.25rem; }
.rfqCards .rfqCard {
    background: var(--sapTile_Background, #fff);
    border: 1px solid var(--sapList_BorderColor, #e5e5e5);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0.5rem 0.5rem 0;
    min-width: 9rem;
}
.rfqCardValue, .rfqStrong { font-weight: 600; }
.rfqMuted { color: var(--sapContent_LabelColor, #6a6d70); font-size: 0.75rem; }
.rfqCardItem {
    width: 26rem;
    max-width: 100%;
    border-left: 0.25rem solid var(--sapInformationBorderColor, #0a6ed1) !important;
    background: color-mix(in srgb, var(--sapInformationBorderColor, #0a6ed1) 12%, transparent) !important;
}
.rfqItemBanner { padding: 0.5rem 0.75rem; border-left: 0.25rem solid var(--sapInformationBorderColor, #0a6ed1); }
.rfqScroll { margin: 1rem; width: calc(100% - 2rem) !important; box-sizing: border-box; }
.rfqCardInfo { border-color: var(--sapInformationBorderColor, #0a6ed1) !important; justify-content: center; }
.rfqSummary .rfqSummaryCard {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 0.75rem 0.5rem 0;
    min-width: 14rem;
}
.rfqSummaryPrice { background: var(--sapSuccessBackground, #f1fdf6); }
.rfqSummaryDelivery, .rfqSummaryPayment { background: var(--sapInformationBackground, #e1f0fb); }
.rfqMatrix {
    border: 1px solid var(--sapList_BorderColor, #e5e5e5);
    border-radius: 0.5rem;
    background: var(--sapBaseColor, #fff);
}
.rfqMatrix .rfqCell {
    box-sizing: border-box;
    min-height: var(--rfqCellHeight);
    height: var(--rfqCellHeight);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--sapList_BorderColor, #e5e5e5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rfqMatrix .rfqCell { align-items: flex-start; }
.rfqMatrix .rfqCell.sapMHBox { flex-direction: row; align-items: center; }
.rfqMatrix .rfqCellHead { flex-direction: row; align-items: center; font-weight: 600; }
.rfqLabelCol {
    width: 14rem;
    flex: none;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--sapBaseColor, #fff);
}
.rfqSuppliers { flex: 1 1 auto; }
.rfqSupCol { flex: 1 1 17rem; min-width: 17rem; border-left: 1px solid var(--sapList_BorderColor, #e5e5e5); }
.rfqSupCol[data-selected="true"] { background: var(--sapSuccessBackground, #f1fdf6); }
.rfqFooterFields { margin: 1rem; box-sizing: border-box; max-width: calc(100% - 2rem); }
.rfqComments { flex: 0 1 30rem; min-width: 14rem; }
.rfqDate { flex: 1 1 20rem; min-width: 14rem; margin-bottom: 0.5rem; }

/* Menu lateral recolhido: destaca o titulo da secao (primeiro item do popup) dos itens de navegacao. */
.sapTntNLPopup.sapTntNL .sapTntNLI.sapTntNLIFirstLevel {
    background-color: var(--sapList_HeaderBackground);
}
.sapTntNLPopup.sapTntNL .sapTntNLI.sapTntNLIFirstLevel .sapMText {
    font-weight: bold;
    color: var(--sapList_HeaderTextColor);
}
