/* =========================================================
   ACTIVESOURCE — cores de marca
   ========================================================= */
:root {
    --as-dark: #14181d;
    --as-dark-2: #1b2026;
    --as-accent: #2e74b5;
    --as-accent-soft: #4a8fd0;
    --as-text: #39404b;
    --as-muted: #6b7280;
    /* Linha de baixo dos editores (Light) */
    --as-line: #aab0b9;
    --as-line-soft: #d3d7dd;
}

/* Tema escuro do Fluent */
body.dxbl-theme-dark {
    --as-line: rgba(255,255,255,.38);
    --as-line-soft: rgba(255,255,255,.20);
}

/* =========================================================
   HEADER (barra superior) — fundo preto, monograma + "ActiveSource"
   à esquerda. Igual em Light e Dark. Regras com especificidade acima
   das do XAF (.dxbl-theme-fluent .app .header).
   ========================================================= */
.dxbl-theme-fluent .app .header,
.app .header {
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: #f2f4f7;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

    /* Texto e botões do header a claro (hambúrguer, conta, tema, toolbar rápida) */
    .app .header .header-left-side,
    .app .header .header-right-side,
    .app .header .xaf-view-caption-lg,
    .app .header .view-caption-root {
        color: #f2f4f7;
    }

    .app .header .btn-header,
    .app .header > .header-right-side > dxbl-toolbar .dxbl-btn,
    .app .header .navigate-back-icon-container {
        --dxbl-btn-color: #d9dde3;
        --dxbl-btn-hover-color: #fff;
        --dxbl-btn-hover-bg: rgba(255,255,255,.10);
        --dxbl-btn-active-bg: rgba(255,255,255,.16);
        --dxbl-btn-active-color: #fff;
        color: #d9dde3;
    }

    .app .header .btn-header.btn-secondary:hover {
        color: #fff;
        background-color: rgba(255,255,255,.10);
        border-color: transparent;
    }

    .app .header .btn-header .xaf-image,
    .app .header > .header-right-side > dxbl-toolbar .dxbl-image,
    .app .header .navigate-back-icon-container .dxbl-image {
        color: #d9dde3;
    }

    /* Painéis que abrem a partir do header (conta, definições/tema) voltam às cores do tema:
       o texto claro do header não pode cascatear para dentro deles. */
    .app .header .account-main,
    .app .header .theme-settings .settings-bar {
        color: var(--dxds-color-content-neutral-default-rest, #161616);
    }

        .app .header .theme-settings .settings-bar .themes-menu,
        .app .header .theme-settings .settings-bar .nav-item,
        .app .header .theme-settings .settings-bar .theme-name,
        .app .header .theme-settings .settings-bar .dxbl-text-edit,
        .app .header .account-main .user-name,
        .app .header .account-main .dxbl-btn-caption {
            color: var(--dxds-color-content-neutral-default-rest, #161616);
        }

    /* Ícone do caption da vista a branco */
    .app .header .xaf-caption-icon {
        filter: brightness(0) invert(1);
        opacity: .85;
    }

/* Logótipo + nome (esquerda). O XAF renderiza <div class="header-logo"> vazio;
   preenche-se com o monograma (::before) e o nome (::after). */
.app .header .header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: auto;
    height: 32px;
    margin: 0 .75rem 0 .25rem !important;
    background: none;
    -webkit-mask: none;
    mask: none;
    white-space: nowrap;
}

    .app .header .header-logo::before {
        content: "";
        width: 34px;
        height: 24px;
        flex: none;
        background: url("../images/IconAS_white.png") center / contain no-repeat;
    }

    .app .header .header-logo::after {
        content: "ActiveSource";
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .02em;
        color: #fff;
        line-height: 1;
    }

/* Em ecrãs estreitos fica só o monograma */
@media (max-width: 640px) {
    .app .header .header-logo::after { content: none; }
}

/* Painel de navegação: separação subtil em relação ao header */
.app .sidebar {
    border-right: 1px solid var(--dxds-color-border-neutral-subdued-rest, #e4e7ec);
}

/* =========================================================
   MENU LATERAL (DxAccordion do XAF) — cores via variáveis do
   tema Fluent (--dxds-*) para funcionar em Light e Dark.
   ========================================================= */
.xaf-navmenu .xaf-nav-link,
.xaf-navmenu a {
    text-decoration: none !important;
}

.xaf-navmenu.dxbl-accordion {
    --dxbl-accordion-group-item-selected-color: var(--as-accent);
    --dxbl-accordion-group-item-active-color: var(--as-accent);
}

body.dxbl-theme-dark .xaf-navmenu.dxbl-accordion {
    --dxbl-accordion-group-item-selected-color: var(--as-accent-soft);
    --dxbl-accordion-group-item-active-color: var(--as-accent-soft);
}

    .xaf-navmenu.dxbl-accordion .dxbl-accordion-group-header .xaf-nav-link {
        font-weight: 600;
    }

    /* Item selecionado: barra azul à esquerda */
    .xaf-navmenu.dxbl-accordion .dxbl-accordion-item:not(.dxbl-accordion-group).dxbl-active > .dxbl-accordion-item-content {
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--as-accent);
    }

        .xaf-navmenu.dxbl-accordion .dxbl-accordion-item:not(.dxbl-accordion-group).dxbl-active > .dxbl-accordion-item-content .xaf-nav-link {
            color: var(--as-accent);
        }

        body.dxbl-theme-dark .xaf-navmenu.dxbl-accordion .dxbl-accordion-item:not(.dxbl-accordion-group).dxbl-active > .dxbl-accordion-item-content .xaf-nav-link {
            color: var(--as-accent-soft);
        }

/* Caixa de filtro do menu: só linha de baixo */
.xaf-navmenu .dxbl-navigation-filter.dxbl-text-edit {
    border-width: 0 0 1px 0;
    border-radius: 0;
    background: transparent;
}

/* =========================================================
   EDITORES (DetailViews) — só a linha de baixo nas caixas de
   texto, sem caixa nem cantos arredondados; o memo mantém caixa leve.
   Cores via variáveis do tema (Light/Dark). A página de login
   (#cs-logon) fica de fora: tem o seu próprio estilo de caixas.
   ========================================================= */
.dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *) {
    --dxbl-text-edit-border-radius: 0;
    --dxbl-text-edit-bg: transparent;
    --dxbl-text-edit-border-color: var(--dxds-color-border-neutral-subdued-rest, #d6dae0);
    border-width: 0 0 1px 0 !important;
    /* cor explícita: a linha de baixo do Fluent não segue a variável acima e no tema escuro
       ficava praticamente invisível (#3f3f3e sobre #252525) */
    border-bottom-color: var(--as-line) !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: border-color .12s, box-shadow .12s;
}

    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *) .dxbl-text-edit-input {
        padding-left: 2px;
        padding-right: 2px;
    }

    /* O Fluent desenha um sublinhado próprio (::after) no foco — fica só a nossa linha */
    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *)::after {
        content: none !important;
    }

    /* Foco: linha azul um pouco mais espessa, sem outline */
    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *):focus-within {
        border-bottom-color: var(--as-accent) !important;
        box-shadow: inset 0 -1px 0 var(--as-accent) !important;
        outline: none !important;
    }

    body.dxbl-theme-dark .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *):focus-within {
        border-bottom-color: var(--as-accent-soft) !important;
        box-shadow: inset 0 -1px 0 var(--as-accent-soft) !important;
    }

    /* Só leitura / desativado: linha tracejada, texto ligeiramente esbatido mas legível */
    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit.dxbl-disabled:not(.dxbl-memo-edit):not(#cs-logon *),
    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit[readonly]:not(.dxbl-memo-edit):not(#cs-logon *) {
        border-bottom-style: dashed !important;
        border-bottom-color: var(--as-line-soft) !important;
        --dxbl-text-edit-color: var(--dxds-color-content-neutral-subdued-rest, #39404b);
    }

    /* Botões internos (dropdown, calendário, limpar, lookup): sem fundo nem borda */
    .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *) .dxbl-btn {
        --dxbl-btn-bg: transparent;
        --dxbl-btn-border-color: transparent;
        --dxbl-btn-hover-bg: transparent;
        --dxbl-btn-color: var(--dxds-color-content-neutral-subdued-rest, #6b7280);
        --dxbl-btn-hover-color: var(--as-accent);
        background: transparent !important;
        border-color: transparent !important;
    }

    body.dxbl-theme-dark .dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit:not(.dxbl-memo-edit):not(#cs-logon *) .dxbl-btn {
        --dxbl-btn-hover-color: var(--as-accent-soft);
    }

/* Memo (descrição, notas): caixa leve */
.dxbl-fl .dxbl-fl-ctrl .dxbl-text-edit.dxbl-memo-edit {
    --dxbl-text-edit-border-color: var(--dxds-color-border-neutral-subdued-rest, #d6dae0);
    --dxbl-text-edit-border-radius: 5px;
}

/* Legendas dos campos */
.dxbl-fl .dxbl-fl-cpt {
    color: var(--dxds-color-content-neutral-subdued-rest, #39404b);
}

/* =========================================================
   GRELHAS (DxGrid) — cabeçalho e hover com cores do tema
   ========================================================= */
.dxbl-grid {
    --dxbl-grid-header-bg: #e4e5e7;
    --dxbl-grid-header-color: var(--dxds-color-content-neutral-default-rest, #1f242c);
    --dxbl-grid-header-font-weight: 600;
    --dxbl-grid-border-color: var(--dxds-color-border-neutral-subdued-rest, #e4e7ec);
}

body.dxbl-theme-dark .dxbl-grid {
    --dxbl-grid-header-bg: #3a3a3a;
}

/* Sem moldura nas laterais nem cantos arredondados: ficam só as linhas horizontais
   (as verticais são retiradas por código, no GridEstiloController). */
.dxbl-grid {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    border-radius: 0 !important;
}

    .dxbl-grid .dxbl-grid-table > thead > tr > th,
    .dxbl-grid .dxbl-grid-table > tbody > tr > td,
    .dxbl-grid .dxbl-grid-table > tfoot > tr > td {
        border-left-width: 0 !important;
        border-right-width: 0 !important;
    }

    .dxbl-grid .dxbl-grid-header-row > th.dxbl-grid-header {
        border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest, #b3b5b8);
    }

.dxbl-grid .dxbl-grid-table > tbody > tr:hover > td:not(.dxbl-grid-empty-cell) {
    background-color: var(--dxds-color-surface-neutral-default-hovered, #eef0f3);
}

/* =========================================================
   Splash screen
   ========================================================= */
.splash-fullscreen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60vw 60vw at 78% 108%, rgba(46,116,181,.22), transparent 62%),
        radial-gradient(50vw 50vw at -8% -12%, rgba(107,114,128,.30), transparent 60%),
        linear-gradient(160deg, #1b2026, #14181d 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-logo {
    width: min(460px, 70vw);
    height: auto;
    filter: drop-shadow(0 18px 44px rgba(0,0,0,.35));
    animation: splash-rise .7s cubic-bezier(.2,.8,.3,1) both;
}

.splash-tagline {
    margin-top: 22px;
    color: rgba(255,255,255,.55);
    font-size: clamp(11px, 1.1vw, 16px);
    font-weight: 600;
    letter-spacing: .4em;
    text-indent: .4em;
    text-transform: uppercase;
    text-align: center;
    animation: splash-rise .7s .12s cubic-bezier(.2,.8,.3,1) both;
}

.splash-spinner {
    margin-top: 38px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 12%, #4a8fd0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    animation: splash-spin 1s linear infinite;
}

.splash-progress {
    margin-top: 24px;
    width: min(205px, 40vw);
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
    position: relative;
}

    .splash-progress::after {
        content: "";
        position: absolute;
        inset: 0;
        width: 40%;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, #4a8fd0, transparent);
        animation: splash-shimmer 1.4s ease-in-out infinite;
    }

.splash-foot {
    position: absolute;
    bottom: 30px;
    color: rgba(255,255,255,.35);
    font-size: 11px;
    letter-spacing: .06em;
    text-align: center;
    padding: 0 16px;
}

@keyframes splash-spin { to { transform: rotate(360deg); } }
@keyframes splash-shimmer { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* =========================================================
   Home — dashboard
   ========================================================= */
.as-home {
    padding: 20px clamp(12px, 2vw, 28px) 32px;
    max-width: 1500px;
    margin: 0 auto;
    animation: splash-rise .5s cubic-bezier(.2,.8,.3,1) both;
}

.as-home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.as-home-title { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.as-home-sub { margin: 4px 0 0; opacity: .6; font-size: 13px; }
.as-home-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.as-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(58,157,79,.45);
    background: rgba(58,157,79,.10);
    font-size: 13.5px;
    cursor: pointer;
}

.as-timer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a9d4f;
    flex: none;
    animation: as-pulse 1.4s ease-in-out infinite;
}

@keyframes as-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.as-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.as-kpi {
    position: relative;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(128,128,128,.22);
    background: rgba(128,128,128,.06);
    cursor: pointer;
    text-align: left;
    color: inherit;
    overflow: hidden;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}

    .as-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.12); border-color: var(--kpi, var(--as-accent)); }
    .as-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kpi, var(--as-accent)); }

.as-kpi-value { font-size: 32px; font-weight: 750; line-height: 1; color: var(--kpi, inherit); }
.as-kpi-label { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .65; }
.as-kpi-hint { margin-top: 2px; font-size: 12px; opacity: .55; }

.as-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

.as-card {
    grid-column: span 6;
    border-radius: 14px;
    border: 1px solid rgba(128,128,128,.22);
    background: rgba(128,128,128,.04);
    padding: 16px 18px;
    min-width: 0;
}

    .as-card.as-span-4 { grid-column: span 4; }
    .as-card.as-span-8 { grid-column: span 8; }
    .as-card.as-span-12 { grid-column: span 12; }

.as-card-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }

.as-bar-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 36px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.as-bar-track { height: 10px; border-radius: 999px; background: rgba(128,128,128,.16); overflow: hidden; }
.as-bar-fill { height: 100%; border-radius: 999px; background: var(--bar, var(--as-accent)); min-width: 2px; transition: width .4s; }
.as-bar-count { text-align: right; font-weight: 700; }

.as-list { list-style: none; margin: 0; padding: 0; }

.as-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 6px;
    border-top: 1px solid rgba(128,128,128,.16);
    cursor: pointer;
    border-radius: 8px;
}

    .as-list-item:first-child { border-top: 0; }
    .as-list-item:hover { background: rgba(128,128,128,.10); }

.as-list-main { min-width: 0; }
.as-list-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-list-meta { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.as-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--pill, #6b7280); white-space: nowrap; }
.as-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pill, #6b7280); }
.as-empty { opacity: .55; font-size: 13px; padding: 10px 0; }
.as-late { color: #d64545; font-weight: 700; }

@media (max-width: 1100px) {
    .as-card, .as-card.as-span-4, .as-card.as-span-8 { grid-column: span 12; }
}

/* =========================================================
   PWA — aviso para ativar notificações
   ========================================================= */
.as-push-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    max-width: min(380px, calc(100vw - 32px));
    background: #1b2026;
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    font-size: 13px;
    line-height: 1.45;
    animation: splash-rise .4s both;
}

    .as-push-banner b { display: block; margin-bottom: 4px; font-size: 14px; }
    .as-push-banner .as-push-actions { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }
    .as-push-banner button { border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
    .as-push-banner .as-push-ok { background: #2e74b5; color: #fff; }
    .as-push-banner .as-push-no { background: transparent; color: rgba(255,255,255,.7); }

/* =========================================================
   Botões flutuantes (ditado por voz e anexos) — js/voz.js, js/anexos.js
   ========================================================= */
.as-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 8990;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-end;
}

.as-fab-btn {
    min-width: 52px;
    height: 52px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #1b2026;
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
    cursor: pointer;
    transition: transform .12s, background-color .12s;
}

    .as-fab-btn:hover { transform: translateY(-2px); background: #2e74b5; }
    .as-fab-btn.a-gravar { background: #d64545; animation: as-pulse-rec 1.4s ease-in-out infinite; }
    .as-fab-btn.a-processar { background: #6b7280; cursor: progress; }

body.dxbl-theme-dark .as-fab-btn { background: #2e74b5; }
body.dxbl-theme-dark .as-fab-btn.a-gravar { background: #d64545; }

.as-fab-tempo { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

.as-fab-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: splash-spin .8s linear infinite;
}

@keyframes as-pulse-rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,69,.55); } 50% { box-shadow: 0 0 0 12px rgba(214,69,69,0); } }

.as-voz-opcoes {
    position: fixed;
    right: 84px;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    z-index: 8990;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1b2026;
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
    cursor: pointer;
}

    .as-voz-opcoes input { accent-color: #2e74b5; }

.as-voz-opcoes { flex-direction: column; align-items: stretch; border-radius: 14px; max-width: min(340px, calc(100vw - 110px)); }
.as-voz-linha { display: flex; align-items: center; gap: 8px; }
.as-voz-dispositivo { width: 100%; height: 26px; border: 0; border-radius: 6px; padding: 0 6px; font-size: 12px; background: rgba(255,255,255,.12); color: #fff; }
    .as-voz-dispositivo option { color: #1b2026; }
.as-voz-opcoes { cursor: default; }
.as-voz-mic { font-size: 11px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-voz-nivel { display: block; height: 6px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
    .as-voz-nivel > i { display: block; height: 100%; width: 0; border-radius: 999px; background: #3a9d4f; transition: width .1s linear; }

.as-fab-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 9100;
    max-width: min(560px, calc(100vw - 120px));
    padding: 10px 18px;
    border-radius: 10px;
    background: #1b2026;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    animation: splash-rise .25s both;
}

    .as-fab-toast.ok { background: #2f7d40; }
    .as-fab-toast.erro { background: #b83a3a; }

.as-voz-resultado {
    position: fixed;
    right: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 9050;
    width: min(440px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 14px;
    background: #1b2026;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    font-size: 13px;
}

    .as-voz-resultado b { display: block; margin-bottom: 8px; font-size: 14px; }
    .as-voz-resultado textarea { width: 100%; height: 150px; border: 0; border-radius: 8px; padding: 10px; font: inherit; resize: vertical; background: rgba(255,255,255,.08); color: #fff; }
    .as-voz-resultado .as-push-actions { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }
    .as-voz-resultado button { border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
    .as-voz-resultado .as-push-ok { background: #2e74b5; color: #fff; }
    .as-voz-resultado .as-push-no { background: transparent; color: rgba(255,255,255,.7); }

/* Zona de largar ficheiros (página inteira) */
.as-drop {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20,24,29,.72);
    pointer-events: none;
}

    .as-drop.ativa { display: flex; }
    .as-drop > div { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 38px 54px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.65); color: #fff; font-size: 17px; font-weight: 600; }
    .as-drop svg { width: 46px; height: 46px; }

/* O aviso de notificações push sobe para não ficar por baixo dos botões flutuantes */
.as-push-banner { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* =========================================================
   Quadro Kanban dos tickets (Components/TicketKanban.razor)
   ========================================================= */
.as-kb { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; padding: 14px clamp(10px, 1.5vw, 22px) 0; }

.as-kb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.as-kb-spacer { flex: 1 1 auto; }
.as-kb-hora { font-size: 12px; opacity: .55; }
.as-kb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
    .as-kb-check input { accent-color: var(--as-accent); }

.as-kb-input {
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid var(--as-line);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    min-width: 150px;
    outline: none;
}

    .as-kb-input:focus { border-bottom-color: var(--as-accent); box-shadow: inset 0 -1px 0 var(--as-accent); }
    .as-kb-input option { color: #1b2026; }

.as-kb-erro { margin-bottom: 10px; padding: 8px 14px; border-radius: 10px; background: rgba(214,69,69,.12); border: 1px solid rgba(214,69,69,.4); font-size: 13px; }

.as-kb-board {
    flex: 1 1 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.as-kb-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 14px;
    border: 1px solid rgba(128,128,128,.22);
    border-top: 3px solid var(--col);
    background: rgba(128,128,128,.06);
    scroll-snap-align: start;
    transition: background-color .12s, box-shadow .12s;
}

    .as-kb-col.as-kb-over { background: rgba(46,116,181,.13); box-shadow: inset 0 0 0 2px var(--col); }

.as-kb-col-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px 8px; }
.as-kb-col-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.as-kb-count { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--col); }
.as-kb-col-note { margin-left: auto; font-size: 11px; opacity: .5; }

.as-kb-cards { flex: 1 1 auto; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.as-kb-vazio { padding: 18px 0; text-align: center; font-size: 12px; opacity: .45; }

.as-kb-card {
    position: relative;
    padding: 10px 12px 9px 15px;
    border-radius: 10px;
    border: 1px solid rgba(128,128,128,.25);
    background: var(--dxds-color-surface-neutral-default-rest, #fff);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    cursor: grab;
    transition: transform .1s, box-shadow .1s, opacity .1s;
}

body.dxbl-theme-dark .as-kb-card { background: #2f2f2f; }

    .as-kb-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 10px 0 0 10px; background: var(--prio); }
    .as-kb-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
    .as-kb-card:active { cursor: grabbing; }
    .as-kb-card.a-arrastar { opacity: .45; }

.as-kb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.as-kb-num { font-weight: 700; color: var(--as-accent); cursor: pointer; }
body.dxbl-theme-dark .as-kb-num { color: var(--as-accent-soft); }
.as-kb-prio { font-weight: 700; color: var(--prio); }
.as-kb-title { margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .as-kb-title:hover, .as-kb-num:hover { text-decoration: underline; }
.as-kb-cliente { margin-top: 3px; font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.as-kb-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; }
.as-kb-meta { opacity: .65; }
.as-kb-late { color: #d64545; font-weight: 700; }

.as-kb-avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; background: #6b7280; }
    .as-kb-avatar.eu { background: var(--as-accent); }

.as-kb-assumir { border: 1px dashed var(--as-line); background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font-size: 11px; cursor: pointer; }
    .as-kb-assumir:hover { border-color: var(--as-accent); color: var(--as-accent); }

/* "Mover para…": discreto no desktop (aparece ao passar o rato), sempre visível em ecrãs táteis */
.as-kb-mover { display: none; width: 100%; margin-top: 8px; height: 28px; border: 1px solid var(--as-line-soft); border-radius: 8px; background: transparent; color: inherit; font-size: 12px; }
    .as-kb-mover option { color: #1b2026; }
.as-kb-card:hover .as-kb-mover, .as-kb-card:focus-within .as-kb-mover { display: block; }

@media (hover: none), (max-width: 820px) {
    .as-kb { height: calc(100vh - 120px); }
    .as-kb-mover { display: block; }
    .as-kb-board { grid-auto-columns: minmax(82vw, 1fr); scroll-snap-type: x mandatory; }
    .as-kb-input { min-width: 0; flex: 1 1 140px; }
}

/* =========================================================
   Chat interno (Components/ChatPainel.razor)
   ========================================================= */
.as-fab-chat { position: relative; }
.as-fab-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
body.dxbl-theme-dark .as-fab-badge { box-shadow: 0 0 0 2px #252525; }

/* Paleta do chat — no espírito do Teams / Google Chat: as minhas mensagens num tom suave da cor de marca
   com texto escuro, as dos outros em cinzento neutro; a cor forte fica só para pormenores. */
.as-chat {
    --chat-fundo: #f7f8fa;
    --chat-minha: #dbe8f6;
    --chat-minha-texto: #1b2a3a;
    --chat-outra: #ffffff;
    --chat-outra-texto: #1f242c;
    --chat-outra-borda: #e3e6ea;
    --chat-meta: rgba(27,42,58,.55);
    --chat-visto: #2e74b5;
    --chat-chip: rgba(27,42,58,.07);
}

body.dxbl-theme-dark .as-chat {
    --chat-fundo: #1f2023;
    --chat-minha: #2a3f57;
    --chat-minha-texto: #e9eef5;
    --chat-outra: #2e3034;
    --chat-outra-texto: #e6e7e9;
    --chat-outra-borda: #3a3d42;
    --chat-meta: rgba(233,238,245,.55);
    --chat-visto: #7db7f0;
    --chat-chip: rgba(255,255,255,.08);
}

.as-chat { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; height: calc(100vh - 130px); min-height: 420px; margin: 10px clamp(8px, 1.2vw, 18px) 0; border: 1px solid rgba(128,128,128,.22); border-radius: 14px; overflow: hidden; }

.as-chat-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid rgba(128,128,128,.22); background: rgba(128,128,128,.05); }
.as-chat-lista-topo { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
    .as-chat-lista-topo .as-kb-input { flex: 1 1 auto; min-width: 0; }
.as-chat-conversas { flex: 1 1 auto; overflow-y: auto; }

.as-chat-icone { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
    .as-chat-icone:hover { background: rgba(128,128,128,.18); }

.as-chat-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; border-left: 3px solid transparent; }
    .as-chat-item:hover { background: rgba(128,128,128,.10); }
    .as-chat-item.ativa { background: rgba(46,116,181,.10); border-left-color: var(--as-accent); }
    body.dxbl-theme-dark .as-chat-item.ativa { background: rgba(125,183,240,.12); border-left-color: var(--as-accent-soft); }
.as-chat-item-corpo { min-width: 0; flex: 1 1 auto; }
.as-chat-item-linha { display: flex; align-items: center; gap: 8px; }
.as-chat-item-titulo { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.as-chat-item-hora { font-size: 11px; opacity: .55; flex: none; }
.as-chat-item-previa { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.as-chat-badge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--as-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.as-chat-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: #6b7280; }
    .as-chat-avatar.grupo { background: #1f9d8b; font-size: 16px; }

.as-chat-conversa { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.as-chat-cabecalho { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(128,128,128,.22); }
.as-chat-cab-texto { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.as-chat-titulo { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-chat-sub { font-size: 11.5px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-chat-ticket { flex: none; border: 1px solid var(--as-accent); color: var(--as-accent); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
body.dxbl-theme-dark .as-chat-ticket { border-color: var(--as-accent-soft); color: var(--as-accent-soft); }
.as-chat-voltar { display: none; }

.as-chat-mensagens { background: var(--chat-fundo); flex: 1 1 auto; overflow-y: auto; padding: 14px clamp(10px, 2vw, 26px); display: flex; flex-direction: column; gap: 4px; }
.as-chat-antigas { align-self: center; margin-bottom: 8px; border: 0; background: rgba(128,128,128,.15); color: inherit; border-radius: 999px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
.as-chat-dia { display: flex; justify-content: center; margin: 10px 0 6px; }
    .as-chat-dia span { font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--chat-chip); color: var(--chat-meta); }

.as-chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 640px); }
    .as-chat-msg.minha { align-self: flex-end; align-items: flex-end; }
.as-chat-autor { font-size: 11px; font-weight: 700; opacity: .65; margin: 6px 0 2px 10px; }
.as-chat-balao { position: relative; width: fit-content; max-width: 100%; padding: 7px 11px 5px; border-radius: 14px 14px 14px 4px; background: var(--chat-outra); color: var(--chat-outra-texto); border: 1px solid var(--chat-outra-borda); box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 13.5px; line-height: 1.4; min-width: 70px; }
    .as-chat-msg.minha .as-chat-balao { border-radius: 14px 14px 4px 14px; background: var(--chat-minha); color: var(--chat-minha-texto); border-color: transparent; }
    .as-chat-balao.eliminada { opacity: .55; }
.as-chat-texto { white-space: pre-wrap; overflow-wrap: anywhere; }
.as-chat-meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 2px; font-size: 10.5px; color: var(--chat-meta); }
.as-chat-lida { color: var(--chat-visto); font-weight: 700; }
.as-chat-apagar { display: none; border: 0; background: transparent; color: inherit; font-size: 10px; cursor: pointer; padding: 0 2px; }
    .as-chat-balao:hover .as-chat-apagar { display: inline; }
.as-chat-img { display: block; max-width: min(320px, 100%); max-height: 300px; border-radius: 10px; margin-bottom: 4px; }
.as-chat-ficheiro { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; border-radius: 10px; background: var(--chat-chip); color: inherit; text-decoration: none; }
    .as-chat-ficheiro:hover { text-decoration: none; filter: brightness(.96); }
.as-chat-ficheiro-nome { font-weight: 600; overflow-wrap: anywhere; }
.as-chat-ficheiro-tam { font-size: 11px; opacity: .7; white-space: nowrap; }
.as-chat-escreve { font-size: 12px; font-style: italic; opacity: .6; padding: 4px 8px; }

.as-chat-compor { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(128,128,128,.22); }
.as-chat-input { flex: 1 1 auto; resize: none; min-height: 38px; max-height: 160px; padding: 9px 14px; border-radius: 18px; border: 1px solid var(--as-line-soft); background: transparent; color: inherit; font: inherit; font-size: 13.5px; outline: none; }
    .as-chat-input:focus { border-color: var(--as-accent); }
.as-chat-enviar { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--as-accent); color: #fff; font-size: 16px; cursor: pointer; }
    .as-chat-enviar:disabled { opacity: .5; cursor: progress; }

.as-chat-adicionar { padding: 12px 16px; border-bottom: 1px solid rgba(128,128,128,.22); background: rgba(128,128,128,.06); display: flex; flex-direction: column; gap: 2px; max-height: 45%; overflow-y: auto; font-size: 13px; }
.as-chat-adicionar-botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.as-chat-conversa.a-largar { outline: 2px dashed var(--as-accent); outline-offset: -6px; background: rgba(46,116,181,.08); }
.as-chat-vazio { padding: 26px 16px; text-align: center; font-size: 13px; opacity: .6; line-height: 1.6; }
.as-chat-centro { margin: auto; }
.as-chat-nota { margin-top: 10px; font-size: 11.5px; opacity: .8; }
.as-chat-novo { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.as-chat-pessoa { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
    .as-chat-pessoa:hover { background: rgba(128,128,128,.12); }
    .as-chat-pessoa input { accent-color: var(--as-accent); }

@media (max-width: 820px) {
    .as-chat { grid-template-columns: 1fr; height: calc(100vh - 110px); margin: 0; border-radius: 0; border-width: 1px 0 0; }
    .as-chat .as-chat-conversa { display: none; }
    .as-chat.com-conversa .as-chat-lista { display: none; }
    .as-chat.com-conversa .as-chat-conversa { display: flex; }
    .as-chat-voltar { display: inline-flex; }
    .as-chat-msg { max-width: 88%; }
}

/* No ecrã do chat os botões flutuantes sobem para não taparem o botão de enviar */
body:has(.as-chat-pagina) .as-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* Chat: vídeo, áudio, progresso de envio e gravador de vídeo (js/chat-video.js) */
.as-chat-video { display: block; width: 360px; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: 4px; background: #000; }
.as-chat-audio { display: block; width: min(300px, 100%); margin-bottom: 4px; }

.as-chat-progresso { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9150; width: min(420px, calc(100vw - 40px)); padding: 10px 16px 12px; border-radius: 12px; background: #1b2026; color: #fff; font-size: 12.5px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
    .as-chat-progresso span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 7px; }
    .as-chat-progresso div { height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
    .as-chat-progresso i { display: block; height: 100%; width: 0; border-radius: 999px; background: #4a8fd0; transition: width .15s linear; }

.as-vid { position: fixed; inset: 0; z-index: 9300; display: flex; align-items: center; justify-content: center; background: rgba(10,12,15,.78); padding: 16px; }
.as-vid-caixa { width: min(720px, 100%); border-radius: 16px; background: #1b2026; color: #fff; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.as-vid-titulo { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.as-vid video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; margin-bottom: 12px; }
.as-vid-botoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    .as-vid-botoes button { border: 0; border-radius: 8px; padding: 9px 18px; font-weight: 700; font-size: 13px; cursor: pointer; }
    .as-vid-botoes .as-push-ok { background: #2e74b5; color: #fff; }
    .as-vid-botoes .as-push-no { background: transparent; color: rgba(255,255,255,.75); }
    .as-vid-botoes .as-vid-parar { background: #d64545; color: #fff; }

/* =========================================================
   Chat em janela flutuante (Components/ChatFlutuante.razor)
   ========================================================= */
.as-chatpop { position: fixed; right: 84px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 8980; container: chatpop / inline-size; width: var(--chatpop-w, 400px); height: var(--chatpop-h, 600px); min-width: 320px; min-height: 380px; max-width: calc(100vw - 100px); max-height: calc(100vh - 36px); display: none; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid rgba(128,128,128,.28); background: var(--dxds-color-surface-neutral-default-rest, #fff); box-shadow: 0 18px 50px rgba(0,0,0,.30); animation: splash-rise .2s both; }
body.dxbl-theme-dark .as-chatpop { background: #252525; }
    .as-chatpop.aberto { display: flex; }
.as-chatpop-topo { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 14px; background: #1b2026; color: #fff; }
    .as-chatpop-topo .as-chat-icone { color: #fff; width: 32px; height: 32px; font-size: 15px; }
.as-chatpop-titulo { flex: 1 1 auto; font-weight: 700; font-size: 13.5px; }

/* Maximizada: ocupa quase o ecrã todo; o botão do topo (ou duplo clique na barra) volta ao tamanho normal */
.as-chatpop.max { width: min(1280px, calc(100vw - 100px)); height: calc(100vh - 36px); }

/* Pegas de redimensionamento: a janela está ancorada em baixo à direita, por isso cresce para cima e para a esquerda */
.as-chatpop-redim { position: absolute; z-index: 3; }
    .as-chatpop-redim[data-dir="n"] { top: 0; left: 14px; right: 0; height: 6px; cursor: ns-resize; }
    .as-chatpop-redim[data-dir="w"] { top: 14px; left: 0; bottom: 0; width: 6px; cursor: ew-resize; }
    .as-chatpop-redim[data-dir="nw"] { top: 0; left: 0; width: 16px; height: 16px; cursor: nwse-resize; }
    .as-chatpop-redim[data-dir="nw"]::after { content: ""; position: absolute; top: 4px; left: 4px; width: 7px; height: 7px; border-top: 2px solid rgba(255,255,255,.55); border-left: 2px solid rgba(255,255,255,.55); border-radius: 2px 0 0 0; }
    .as-chatpop.max .as-chatpop-redim { display: none; }
body.as-chatpop-a-redimensionar { user-select: none; cursor: nwse-resize; }
    body.as-chatpop-a-redimensionar iframe, body.as-chatpop-a-redimensionar video { pointer-events: none; }
.as-chatpop-topo { cursor: default; user-select: none; }

/* dentro da janela: um painel de cada vez enquanto for estreita… */
.as-chat.compacto { grid-template-columns: 1fr; flex: 1 1 auto; min-height: 0; height: auto; margin: 0; border: 0; border-radius: 0; }
    .as-chat.compacto .as-chat-conversa { display: none; }
    .as-chat.compacto.com-conversa .as-chat-lista { display: none; }
    .as-chat.compacto.com-conversa .as-chat-conversa { display: flex; }
    .as-chat.compacto .as-chat-voltar { display: inline-flex; }
    .as-chat.compacto .as-chat-msg { max-width: 88%; }
    .as-chat.compacto .as-chat-video { width: 260px; }
    .as-chat.compacto .as-chat-input::placeholder { color: transparent; }

/* …e lista + conversa lado a lado quando é alargada ou maximizada */
@container chatpop (min-width: 680px) {
    .as-chat.compacto { grid-template-columns: minmax(230px, 320px) 1fr; }
        .as-chat.compacto .as-chat-lista,
        .as-chat.compacto.com-conversa .as-chat-lista { display: flex; }
        .as-chat.compacto .as-chat-conversa,
        .as-chat.compacto.com-conversa .as-chat-conversa { display: flex; }
        .as-chat.compacto .as-chat-voltar { display: none; }
        .as-chat.compacto .as-chat-msg { max-width: min(78%, 640px); }
        .as-chat.compacto .as-chat-video { width: 360px; }
        .as-chat.compacto .as-chat-input::placeholder { color: inherit; opacity: .5; }
}

/* no ecrã completo do chat a janela não faz falta */
body:has(.as-chat-pagina) .as-chatpop { display: none !important; }

@media (max-width: 820px) {
    .as-chatpop, .as-chatpop.max { inset: 0; width: auto; height: auto; min-width: 0; min-height: 0; max-width: none; max-height: none; border-radius: 0; border: 0; z-index: 9250; }
    .as-chatpop-redim { display: none; }
}
