
body, html {
    font-family: 'EMOBI', 'Agency FB', Geneva, Verdana, sans-serif;
    font-size: medium;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-image: url(../img/fundo-core-base-opacity20.jpg);
    background-size: 100%;
    background-attachment: fixed;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    height: 100vh;
}


@font-face {
    font-family: EMOBI;
    font-display: fallback;
    src: url("Jura/Jura-VariableFont_wght.ttf");
}

/*-----------------------------------------------------------------------------*/

#divBase {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    /*-webkit-overflow-scrolling: touch;*/ /* Smooth scrolling and proper sticky support on iOS */
}

@media (min-width: 768px) {
    #divBase {
        margin-top: 50px;
    }
}

#divInfoPainelInicial {
    width: auto;
    padding: 10px;
    color: #fff;
    font-size: 0.8em;
}

    #divInfoPainelInicial .Tabela {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-content: start;
    }

    #divInfoPainelInicial .Linha {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #divInfoPainelInicial a {
        text-decoration: none;
    }

#ucTopoInicial_lgStatus,
#ucTopoInicial_lgStatus:hover {
    color: #fff !important;
}

.icon {
    font-size: 1.2rem;
    /*margin: 0 0 0 0.9rem;*/
}

.header {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    height: 50px !important;
    z-index: 1021; /* Número mais baixo de z-index para poder ficar acima de tudo */
    position: absolute;
    bottom: 0;
}

@media (min-width: 768px) {
    .header {
        bottom: inherit;
        top: 0;
    }
}

.header-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    align-items: center;
}

.logos {
    width: auto;
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: center;
    flex-grow: 0;
}

.modules {
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: center;
    justify-content: end;
    gap: 5px;
    flex-grow: 1;
    margin-right: 3.5em;
}

@media (min-width: 768px) {
    .modules {
        justify-content: start;
        gap: 0px;
    }
}

.logo-produto {
    margin-right: 0.25rem;
}

.logo-emobi {
    margin-left: 0.5rem;
    margin-right: 3.5rem;
}

.badge-produto {
    font-size: 1em;
}

.header-right {
    display: none;
}

@media (min-width: 768px) {
    .header-right {
        display: flex;
        flex-direction: row;
        height: 100%;
        flex-grow: 0;
        align-items: center;
        margin: 0 10px;
/*        margin: 0 3.5rem 0 1rem;*/
        font-size: 1.5em;
        color: #fff;
        line-height: 0;
    }
}

#sidebarMenu {
    height: 100%;
    position: fixed;
    left: 0;
    width: 250px;
    margin-top: 50px;
    transform: translateX(-250px);
    transition: transform 250ms ease-in-out;
    /*background: linear-gradient(180deg, #FC466B 0%, #3F5EFB 100%);*/
    /*background: linear-gradient(180deg, #F2F2F2 0%, #cec9c9 4%);*/
    /*background: linear-gradient(180deg, #004396 0%, #5895e0 100%);*/
    z-index: 10;
    overflow-y: auto;
    padding-bottom: 40px;
}

.slide-menu-top-area {
    flex: 0 0 40px;
}

.slide-menu-area {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
}

.slide-menu .slide-menu__backlink {
    text-transform: uppercase;
    margin-bottom: .5rem;
    text-align: left;
}

    .slide-menu .slide-menu__backlink:before {
        /*content: "⮜";*/
        margin-right: .5rem
    }

.slide-menu::-webkit-scrollbar-thumb,
.slide-menu div::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    /*background-color: #555;*/
    background-color: #FFF;
}

.slide-menu-bottom-area {
    flex: 0 0 6.5rem;
}

.sidebarMenuInner {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

    .sidebarMenuInner li {
        list-style: none;
        color: #fff;
        text-transform: uppercase;
        font-weight: bold;
        /*padding: 20px;*/
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

        .sidebarMenuInner li a {
            color: #fff;
            text-transform: uppercase;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
        }

        .sidebarMenuInner li div {
            width: 90%;
            height: 100%;
            padding: 20px;
            display: inline-flex;
        }

    .sidebarMenuInner .sub {
        text-align: left;
    }

.sidebarItem {
    font-size: 0.8em;
    position: relative;
}

    .sidebarItem a {
        color: #fff;
        text-transform: uppercase;
        font-weight: bold;
        cursor: pointer;
        text-decoration: none;
    }

    .sidebarItem div {
        width: 100%;
        height: 100%;
        padding: 5px 10px;
        display: inline-flex;
        justify-content: stretch;
        align-items: center;
    }

input[type="checkbox"]:checked ~ #sidebarMenu {
    transform: translateX(0);
}

input[type=checkbox].openSidebarMenu {
    transition: all 0.3s;
    box-sizing: border-box;
    display: none;
}

.sidebarIconToggle {
    transition: all 0.3s;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    z-index: 1021; /* Número mais baixo de z-index para poder ficar acima de tudo */
    height: 100%;
    width: 100%;
    bottom: 11.5px;
    left: 60px;
    height: 22px;
    width: 22px;
}

@media (min-width: 768px) {
    .sidebarIconToggle {
        top: 17px;
        bottom: inherit;
    }
}

.spinner {
    transition: all 0.3s;
    box-sizing: border-box;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #fff;
    /*background-color: #888;*/
}

.horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
}

.diagonal.part-1 {
    position: relative;
    transition: all 0.3s;
    box-sizing: border-box;
    float: left;
}

.diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    opacity: 0;
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(135deg);
    margin-top: 8px;
}

input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-top: -9px;
}

.menu-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}
/* Previous-----------------------------------------------------------------------------*/

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: #dc3545;
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
    }

    #blazor-error-ui .reload {
        color: white;
        font-weight: bold;
        margin-left: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODM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NGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Ocorreu um erro. Recarregue a página."
    }
/* Bonders »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»*/

.form-popup {
    display: none;
    position: fixed;
    top: 6rem;
    left: 30%;
    justify-content: center;
    border: 3px solid #f1f1f1;
}

.form-container {
    width: 800px;
    padding: 10px;
    background-color: white;
}

fieldset {
    border: 0;
}

input, select, button {
    font-size: 1em;
}

.grupo {
    display: flex;
    justify-content: space-between;
}


.campo {
    margin-bottom: 0.5em;
}

    .campo label {
        margin-bottom: 0.2em;
        color: #666;
        display: block;
    }


    .campo input[type="text"],
    .campo input[type="email"],
    .campo input[type="url"],
    .campo input[type="tel"],
    .campo input[type="password"],
    .campo select,
    .campo textarea {
        padding: 0.2em;
        border: 1px solid #CCC;
        display: block;
    }

        .campo select option {
            padding-right: 1em;
        }

        .campo input:focus,
        .campo select:focus,
        .campo textarea:focus {
            background: #f3f3f3;
            outline: none;
        }

.botao {
    font-size: 1.5em;
    background-color: #0D6EFD;
    border: 0;
    margin-bottom: 1em;
    color: #FFF;
    padding: 0.2em 0.6em;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

    .botao:hover {
        background: #FB0;
        box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
        text-shadow: none;
    }

.botao, select, label.checkbox {
    cursor: pointer;
}
/*
    ------------------------------------- IMPORTANTE! -------------------------------------------------

    Usando media queries com max-device-width é necessário ordenar sempra da maior para menor resolução

    ---------------------------------------------------------------------------------------------------
*/
/* Iphone 11 Max Pro */
@media screen and (max-device-width: 430px) {
    body, html {
        width: 100%;
        height: 100% !important;
    }

    .logo-produto {
        margin-right: 0.15rem;
    }

    .logo-emobi {
        margin-right: 0.5rem;
    }

    .sidebarIconToggle {
        left: inherit;
        right: 15px;
    }

    .texto-usuario-personificado {
        display: none;
    }

    #divTitulo {
        position: sticky;
        width: 100%;
        z-index: 5;
    }

    #divBase {
        position: relative;
        padding-top: 0;
        height: 100% !important;
        /*margin-top: 50px;*/
        overflow-y: auto !important;
    }

    #divPagina {
        /*position: sticky;*/
        overflow-y: visible; /* Changed from auto to allow position:fixed to work */
        padding-bottom: 10rem;
    }

    #sidebarMenu {
        width: 100%;
        transform: translateX(-100%);
    }

    .slide-menu {
        width: 100% !important;
    }

        .slide-menu .slide-menu__backlink:before {
            margin-left: .5rem;
            margin-right: .5rem;
        }

    .slide-menu-bottom-area {
        flex: 0 0 15rem;
    }
}
/* Iphone 7 */
@media screen and (max-device-width: 375px) {

    .slide-menu-bottom-area {
        flex: 0 0 12.5rem;
    }
}

/* Backgrounds de status de atendimentos ----------------------------------------------------------------*/

.bg-status-nl {
    color: #fff;
    background-color: var(--bs-primary);
}

.bg-status-tc {
    color: #fff;
    background-color: var(--bs-info);
}

.bg-status-ea, .bg-status-ag {
    color: #000;
    background-color: var(--bs-warning);
}

.bg-status-co {
    color: #fff;
    background-color: var(--bs-success);
}

.bg-status-ds, .bg-status-de {
    color: #fff;
    background-color: var(--bs-danger);
}

/* The agenda lead-picker DxComboBox dropdown is portaled out as
   .dxbl-popup-root(static) > .dxbl-popup-cell(absolute, z-index 1050) > … > .agenda-combo-dd.
   DevExpress positions popups at z-index 1050 — just under the Bootstrap modal (1055), so the
   dropdown renders behind the dialog. The positioned/stacking element is .dxbl-popup-cell, so
   raise THAT (not the static root or the relative inner dialog) above the modal. */
.dxbl-popup-cell:has(.agenda-combo-dd) {
    z-index: 100000 !important;
}

/* Same modal-overlap fix for the lead "Reservas" modal unit-picker combos (empreendimento /
   torre / unidade): the modal-overlay dialog sits above the default DevExpress popup z-index,
   so raise the portaled popup cell above it. */
.dxbl-popup-cell:has(.lead-res-combo-dd) {
    z-index: 100000 !important;
}

/* Desktop appointment form (DevExpress edit popup): drop the native field icons so every caption
   and editor aligns flush-left. On native rows (Subject/Start/End/Description/AllDay) the icon is a
   ~23px flex child .dxbl-sc-fl-item-icon sitting before the editor inside .dxbl-sc-fl-item-icon-
   container, which pushes that row's editor (and the AllDay caption) right of the icon-less custom
   rows (Tipo/Usuário/Lead). Hiding the icon collapses the editor back to the caption's left edge so
   all rows line up. The .dxbl-sc-fl-item* classes are scheduler-form-only, so nothing else is
   affected; the form is portaled to <body>, hence global CSS rather than component ::deep. */
.dxbl-sc-fl-item-icon {
    display: none;
}

/* With the icon hidden, the native rows' captions (label.dxbl-fl-cpt) keep a leftover 28px
   padding-left (added to clear the now-gone icon), pushing "Título"/"Início"/"Fim"/"Descrição" text
   right of the icon-less custom captions. Zero it so all caption text aligns flush-left. */
.dxbl-sc-fl-item-with-icon .dxbl-fl-cpt {
    padding-left: 0 !important;
}

/* The native "Dia inteiro" (all-day) checkbox is a space-between switch spanning the full row width,
   so the toggle floats to the far right away from its label. Pull it back beside the caption. */
.dxbl-sc-fl-item .dxbl-checkbox-space-between {
    justify-content: flex-start;
    width: auto;
    gap: 0.5rem;
}
/* Config/ActiveSessions: destaca a linha da sessão atual (usuário logado, origem
   BWS) nas duas grids — itálico + tom mais suave. Global (não ::deep) porque o
   <tr>/<td> é renderizado pelo DxGrid, fora do escopo de isolamento do
   componente. A classe é aplicada via CustomizeElement (e.CssClass). */
.current-session-row > td {
    font-style: italic !important;
    opacity: 0.7;
}


/* ---- Awaiting-reply: badge on the lead card/row + banner at the top of the board ----
   Shared by LeadCard and LeadRow, so it lives here rather than in two isolated stylesheets.
   State is derived from the lead's data (AwaitingReplyStatus), not from a live push. */
.awaiting-reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.awaiting-reply-badge.open {
    background: #e8f4ea;
    color: #1a7f37;
    border-color: #b7dfc2;
    animation: awaiting-reply-pulse 1.8s ease-in-out infinite;
}

.awaiting-reply-badge.expiring {
    background: #fff4e5;
    color: #b26a00;
    border-color: #ffd8a8;
    animation: awaiting-reply-pulse-warn 1.2s ease-in-out infinite;
}

.awaiting-reply-badge.expired {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e0e2e6;
    cursor: default;
}

@keyframes awaiting-reply-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, .35); }
    50%      { box-shadow: 0 0 0 4px rgba(26, 127, 55, 0); }
}

@keyframes awaiting-reply-pulse-warn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(178, 106, 0, .45); }
    50%      { box-shadow: 0 0 0 5px rgba(178, 106, 0, 0); }
}

.awaiting-reply-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
    padding: 12px 18px;
    border-radius: 10px;
    background: #e8f4ea;
    border: 1px solid #b7dfc2;
    border-left: 5px solid #1a7f37;
    color: #14532d;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}

.awaiting-reply-banner:hover { filter: brightness(.98); transform: translateY(-1px); }

.awaiting-reply-banner.urgent {
    background: #fff4e5;
    border-color: #ffd8a8;
    border-left-color: #b26a00;
    color: #7c4a00;
}

.awaiting-reply-banner-icon { font-size: 1.4rem; flex-shrink: 0; }

.awaiting-reply-banner-text { flex: 1 1 auto; line-height: 1.35; }

.awaiting-reply-banner-sub { font-size: .82rem; opacity: .9; }

.awaiting-reply-banner-expired { color: #b42318; font-weight: 600; }

.awaiting-reply-banner-cta {
    flex-shrink: 0;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .awaiting-reply-badge { animation: none; }
    .awaiting-reply-banner:hover { transform: none; }
}
