/* =============================================================================
   HelpRex Agent - navegacao e Configuracoes (folha 44 ADM-P0-NAV, plano 3.3,
   D.0.6, D.0.11, D.0.12 e D.4 passos 2, 3, 5, 6, 7 e 9).

   Contrato visual: prototipo aprovado "Navegacao e Configuracoes" de 24/09
   (docs/design-reference/claude-design-2026-09-24/, telas 01 a 10) com os ajustes
   de PROTOTIPOS-APROVADOS.md; o que ele nao desenha segue o desenho de 17/09
   (hx.css). hx.css nao e tocado (D.0.11): a emenda vive aqui.

   Tipografia do CSS novo (D.0.12): minimo de 11,5 px e peso ate 600. Onde o
   prototipo desenhou 9,5 ou 10,5 px (rotulos de grupo, "Depende de permissao",
   atalho Ctrl K), o valor sobe para o piso. Os contadores continuam com o
   .hx-rail-item-count de hx.css.

   Nenhuma regra daqui poe transform, filter, contain ou will-change em ancestral
   do conteudo das paginas: os modais da Importacao sao position:fixed.
   ============================================================================= */

/* ----- barra lateral: rodape (Enviar feedback, Buscar, Notificacoes) e menu da conta ----- */
.hx-app { --hx-rail-width: 64px; }
.hx-app[data-navigation-expanded="true"] { --hx-rail-width: 206px; }
.hx-app > .hx-rail { width: var(--hx-rail-width); overflow: visible; }
.hx-app > .hx-main { min-width: 0; }
.hx-rail-tooltip {
    position: fixed;
    z-index: 90;
    max-width: 240px;
    padding: 6px 8px;
    border: 1px solid var(--hx-line2);
    border-radius: 6px;
    background: var(--hx-ink);
    color: var(--hx-surface);
    box-shadow: 0 8px 24px rgba(35, 31, 28, .18);
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
}
.hx-app[data-navigation-expanded="false"] .hx-rail-head { justify-content: center; padding-inline: 0; }
.hx-app[data-navigation-expanded="false"] .hx-rail-brand,
.hx-app[data-navigation-expanded="false"] .hx-rail-item-label,
.hx-app[data-navigation-expanded="false"] .hx-rail-kbd,
.hx-app[data-navigation-expanded="false"] .hx-rail-user { display: none; }
.hx-app[data-navigation-expanded="false"] .hx-rail-body { padding-inline: 6px; }
.hx-app[data-navigation-expanded="false"] .hx-rail-section {
    height: 8px;
    padding: 0;
    color: transparent;
    overflow: hidden;
}
.hx-app[data-navigation-expanded="false"] .hx-rail-divider { margin: 8px 7px 6px; }
.hx-app[data-navigation-expanded="false"] .hx-rail-item {
    position: relative;
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}
.hx-app[data-navigation-expanded="false"] .hx-rail-item-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    padding-inline: 3px;
    text-align: center;
}
.hx-app[data-navigation-expanded="false"] .hx-rail-tools { padding-inline: 6px; }
.hx-app[data-navigation-expanded="false"] .hx-rail-foot {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 8px 6px;
}
.hx-app[data-navigation-expanded="false"] .hx-rail-foot-actions { gap: 4px; }
.hx-app[data-navigation-expanded="false"] .hx-rail-foot .lang-menu {
    right: auto;
    left: 28px;
    bottom: 0;
}
.hx-rail-account { flex: none; }
.hx-rail-account .hx-rail-avatar-wrap {
    display: block;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.hx-rail-account .hx-rail-avatar-wrap:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 3px; }
.hx-rail-foot .hx-rail-account .lang-menu {
    right: auto;
    left: 0;
    bottom: 34px;
    max-width: calc(100vw - 48px);
}
.hx-app[data-navigation-expanded="false"] .hx-rail-foot .hx-rail-account .lang-menu { left: 28px; bottom: 0; }
.hx-rail-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; padding: 0; }
.hx-app[data-navigation-expanded="true"] .hx-rail-toggle svg { transform: rotate(180deg); }
.hx-rail-tools { flex: none; border-top: 1px solid var(--hx-rail-line); padding: 8px 8px 6px; }
.hx-rail-tools .hx-rail-item:hover,
.hx-rail-body .hx-rail-item:not(.is-active):not(.is-unavailable):hover { background: var(--hx-rail-line); color: var(--hx-rail-strong); }
.hx-rail-kbd {
    flex: none;
    font-family: var(--hx-mono);
    font-size: 11.5px;
    line-height: 1.2;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid var(--hx-rail-chip);
    background: transparent;
    color: var(--hx-rail-text);
    white-space: nowrap;
}
.hx-rail-notify-count { background: var(--hx-accent); color: var(--hx-accent-ink); }
.hx-rail-foot a.lang-item { text-decoration: none; }
.hx-rail-foot a.lang-item:hover { text-decoration: none; opacity: 1; }

/* ----- moldura de Configuracoes: menu interno + pagina ----- */
.hx-main > .hx-settings { flex: 1; min-height: 0; }
.hx-settings { display: flex; min-width: 0; min-height: 0; }

.hx-settings-nav {
    width: 232px;
    flex: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--hx-surface);
    border-right: 1px solid var(--hx-line);
}
.hx-settings-nav-head { flex: none; display: grid; gap: 8px; padding: 10px 12px 6px; }
.hx-settings-nav-title {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--hx-ink);
    text-decoration: none;
}
.hx-settings-nav-title:hover { background: var(--hx-sunken); color: var(--hx-ink); text-decoration: none; opacity: 1; }
.hx-settings-nav-title.is-home { background: var(--hx-brand-wash); color: var(--hx-brand-ink); }
.hx-settings-nav-search {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--hx-line2);
    border-radius: 6px;
    background: var(--hx-surface);
    font-family: inherit;
    font-size: 13px;
    white-space: nowrap;
    color: var(--hx-ink3);
    text-align: left;
    cursor: pointer;
}
.hx-settings-nav-search:hover { border-color: var(--hx-line2); }
.hx-settings-nav-search svg { flex: none; color: var(--hx-mute); }
.hx-settings-nav-search-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-settings-nav-search .hx-kbd { font-family: inherit; font-size: 11px; padding: 0 4px; }
.hx-kbd {
    flex: none;
    font-family: var(--hx-mono);
    font-size: 11.5px;
    line-height: 1.2;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid var(--hx-line);
    background: var(--hx-surface);
    color: var(--hx-ink3);
    white-space: nowrap;
}

.hx-settings-nav-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 16px; }
.hx-settings-nav-divider { height: 1px; background: var(--hx-line); margin: 10px 6px 4px; }
.hx-settings-group + .hx-settings-group { margin-top: 4px; }
.hx-settings-group-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 8px 6px 2px;
    border-radius: 5px;
    list-style: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--hx-faint);
}
.hx-settings-group-head::-webkit-details-marker { display: none; }
.hx-settings-group-head::marker { content: ""; }
.hx-settings-group-head:hover { color: var(--hx-ink); background: var(--hx-paper); }
.hx-settings-group.is-current > .hx-settings-group-head { color: var(--hx-ink); }
.hx-settings-group-chevron { flex: none; color: var(--hx-faint); transition: transform .12s ease; }
.hx-settings-group[open] > .hx-settings-group-head .hx-settings-group-chevron { transform: rotate(90deg); }
.hx-settings-group-items { list-style: none; margin: 0; padding: 2px 0 2px; }
.hx-settings-group-items > li { margin: 0; padding: 0; }

.hx-settings-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 30px;
    padding: 4px 8px;
    margin-bottom: 1px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--hx-ink2);
    text-decoration: none;
}
a.hx-settings-item:hover { background: var(--hx-sunken); color: var(--hx-ink2); text-decoration: none; opacity: 1; }
.hx-settings-item.is-current {
    background: var(--hx-brand-wash);
    font-weight: 500;
    color: var(--hx-brand-ink);
}
a.hx-settings-item.is-current:hover { background: var(--hx-brand-wash); color: var(--hx-brand-ink); }
.hx-settings-item-label { flex: 1; min-width: 0; }
.hx-settings-item.is-locked { cursor: not-allowed; padding-top: 5px; padding-bottom: 5px; }
.hx-settings-item.is-locked .hx-settings-item-name { display: block; color: var(--hx-mute); font-weight: 400; }
.hx-settings-item-note { display: block; margin-top: 1px; font-size: 11.5px; color: var(--hx-faint); font-weight: 400; }
.hx-settings-lock { flex: none; color: var(--hx-faint); }
.hx-settings-ro {
    flex: none;
    font-family: var(--hx-mono);
    font-size: 11.5px;
    line-height: 1.3;
    padding: 0 4px;
    border: 1px solid var(--hx-line);
    border-radius: 3px;
    color: var(--hx-ink3);
    font-weight: 400;
}

.hx-settings-page { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--hx-paper); }
.hx-settings-page > .hx-topbar { padding: 0 24px; background: var(--hx-surface); }
.hx-settings-page > .hx-topbar-tabs { padding: 0 24px; background: var(--hx-surface); }
.hx-settings-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hx-settings-crumb a { color: var(--hx-ink3); text-decoration: none; }
.hx-settings-crumb a:hover { color: var(--hx-brand-deep); text-decoration: underline; opacity: 1; }
.hx-settings-crumb [aria-current="page"] { color: var(--hx-ink3); }
.hx-settings-crumb-sep { color: var(--hx-faint); }

.hx-settings-tab {
    flex: none;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hx-mute);
    white-space: nowrap;
    text-decoration: none;
}
.hx-settings-tab:hover { color: var(--hx-ink); text-decoration: none; opacity: 1; }
.hx-settings-tab.is-active { font-weight: 600; color: var(--hx-ink); border-bottom-color: var(--hx-accent); }

.hx-settings-nav-toggle {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: -6px;
    border: 1px solid var(--hx-line);
    border-radius: 6px;
    background: var(--hx-surface);
    color: var(--hx-ink3);
    cursor: pointer;
}
.hx-settings-nav-toggle:hover { border-color: var(--hx-line2); color: var(--hx-ink); }

/* O corpo que rola: a barra e as abas ficam fora dele (D.0.10). */
.hx-settings-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 24px 32px; }
.hx-settings-body:focus { outline: none; }
.hx-settings-body.is-hx-shell { padding: 0; display: flex; flex-direction: column; }
.hx-settings-lead { margin: 0 0 16px; max-width: 720px; }
.hx-settings-body.is-hx-shell > .hx-settings-lead { padding: 16px 24px 0; margin: 0; }
.hx-settings-readonly {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 620px;
    margin: 0 0 16px;
    padding: 9px 12px;
    border: 1px solid var(--hx-line);
    border-radius: 7px;
    background: var(--hx-sunken);
    font-size: 12.5px;
    color: var(--hx-ink2);
}
.hx-settings-readonly svg { flex: none; color: var(--hx-ink3); }
.hx-settings-body.is-hx-shell > .hx-settings-readonly { margin: 16px 24px 0; }

/* Contencoes de largura (D.0.6). Rolar dentro de tabela ou cartao e permitido. */
.hx-settings-body .card { overflow-x: auto; }
[data-settings-page="Import-Index"] .two-col { grid-template-columns: minmax(0, 1fr); }
[data-settings-page="Import-Job"] table,
[data-settings-page="Import-StatusMappings"] table { display: block; max-width: 100%; overflow-x: auto; }

@media (max-width: 1439px) {
    .hx-settings-nav { width: 208px; }
    .hx-settings-body { padding: 16px 16px 28px; }
    .hx-settings-page > .hx-topbar,
    .hx-settings-page > .hx-topbar-tabs { padding: 0 16px; }
    .hx-settings-body.is-hx-shell > .hx-settings-lead { padding: 16px 16px 0; }
    .hx-settings-body.is-hx-shell > .hx-settings-readonly { margin: 16px 16px 0; }
}
@media (min-width: 761px) and (max-width: 1439px) {
    [data-settings-page="Settings-BusinessHours"] :is(.days-header, .day-row) {
        grid-template-columns: 110px 160px minmax(220px, 1fr) 170px;
    }
}

/* Gaveta abaixo de 1280 px (C3.1): o menu sai do fluxo e abre por cima, pelo botao da barra. */
@media (max-width: 1279px) {
    .hx-settings-nav-toggle { display: inline-flex; }
    .hx-settings-nav {
        display: none;
        position: fixed;
        top: 0;
        bottom: 0;
        left: var(--hx-rail-width);
        z-index: 25;
        width: 260px;
        box-shadow: 0 18px 48px rgba(35, 31, 28, .18);
    }
    .hx-settings-nav.is-open { display: flex; }
    /* Acesso negado dentro da moldura (08b): sem barra nao ha botao da gaveta, e o menu fica no fluxo. */
    .hx-settings-nav[data-settings-nav-denied="true"] { display: flex; position: static; width: 184px; box-shadow: none; }
}

/* ----- visao geral de Configuracoes (mockup aprovado 10/10): painel de atencao + indice em 4 colunas ----- */
.hx-settings-home { max-width: none; }
.hx-settings-home { display: flex; flex-direction: column; gap: 16px; }
.hx-settings-attention-count { padding: 0 8px; border: 1px solid var(--hx-amber-line); border-radius: 10px; background: var(--hx-amber-bg); font-size: 12px; font-weight: 600; line-height: 20px; color: var(--hx-amber-ink); }
.hx-settings-attention-count[hidden], .hx-settings-attention-table[hidden], .hx-settings-attention .hx-panel-empty[hidden] { display: none; }
.hx-settings-attention-table td { height: 40px; }
.hx-settings-attention-table td.hx-settings-attention-dot { width: 26px; padding-right: 0; }
.hx-settings-attention-table td.hx-settings-attention-area { width: 240px; font-weight: 500; white-space: nowrap; }
.hx-settings-attention-table td.is-actions { width: 220px; }
.hx-settings-attention-area strong { font-weight: 500; }
.hx-settings-attention-table td.is-actions a { font-weight: 400; }
.hx-settings-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-settings-card { padding: 12px 16px 8px; }
.hx-settings-card.is-platform { background: #FBF9F6; border-style: dashed; border-color: var(--hx-line2); }
.hx-legacy .hx-settings-card-title,
.hx-settings-card-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: normal; color: var(--hx-ink); }
.hx-settings-card-items { list-style: none; margin: 0; padding: 0; }
.hx-settings-card-items > li { margin: 0; padding: 0; border-top: 1px solid var(--hx-row-line); }
.hx-settings-card-link { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 13px; line-height: 1.35; color: var(--hx-ink); text-decoration: none; }
a.hx-settings-card-link:hover { color: var(--hx-brand-deep); text-decoration: none; opacity: 1; }
a.hx-settings-card-link:hover .hx-settings-card-label { text-decoration: underline; }
.hx-settings-card-link.is-locked { color: var(--hx-mute); cursor: not-allowed; }
.hx-settings-card-link.is-not-applicable { color: var(--hx-mute); }
.hx-settings-card-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-settings-row-state { flex: none; font-size: 12px; color: var(--hx-ink3); white-space: nowrap; }
.hx-settings-row-state[hidden] { display: none; }
.hx-settings-row-state.is-warn { color: var(--hx-amber-ink); }
.hx-settings-row-state.is-unavailable { color: var(--hx-red-ink); }
@media (max-width: 1439px) {
    .hx-settings-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .hx-settings-home-grid { grid-template-columns: minmax(0, 1fr); }
    .hx-settings-attention-table td.hx-settings-attention-area { width: auto; }
    .hx-settings-attention-table td.is-actions { width: 1%; }
}

/* ----- Meu perfil (prototipo 07; conteudo segue a producao) ----- */
.hx-myprofile { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.hx-myprofile .card-head h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--hx-ink); }
.hx-myprofile-data { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.hx-myprofile-data dt { font-size: 12.5px; color: var(--hx-ink3); }
.hx-myprofile-data dd { margin: 0; font-size: 13px; color: var(--hx-ink2); overflow-wrap: anywhere; }
.hx-myprofile-languages { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.hx-myprofile-language { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 1px solid var(--hx-line); border-radius: 7px; background: var(--hx-surface); }
.hx-myprofile-language label { margin: 0; font-size: 13px; color: var(--hx-ink); cursor: pointer; }
.hx-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- acesso negado (prototipo 08b): um unico h1 no estado ----- */
.hx-state.is-denied.hx-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 24px;
}
.hx-denied-box { max-width: 460px; text-align: center; }
.hx-denied .hx-state-icon { color: var(--hx-ink3); }
.hx-legacy h1.hx-state-title,
.hx-denied h1.hx-state-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--hx-ink);
}
.hx-state.is-denied.hx-denied .hx-state-text { max-width: none; margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--hx-ink3); }
.hx-denied-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hx-denied-actions a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}
.hx-denied-actions a:hover { text-decoration: none; opacity: 1; }
.hx-denied-primary { background: var(--hx-ink); color: var(--hx-paper); font-weight: 600; border: 1px solid var(--hx-ink); }
.hx-denied-primary:hover { background: var(--hx-ink2); color: var(--hx-paper); }
.hx-denied-secondary { background: var(--hx-surface); color: var(--hx-ink); border: 1px solid var(--hx-line2); }
.hx-denied-secondary:hover { border-color: var(--hx-ink); color: var(--hx-ink); }

/* ----- paleta Ctrl+K (prototipo 09) ----- */
.hx-cmd {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 92px;
}
.hx-cmd[hidden] { display: none; }
.hx-cmd-backdrop { position: absolute; inset: 0; background: rgba(35, 31, 28, .42); }
.hx-cmd-dialog {
    position: relative;
    width: 640px;
    max-width: calc(100% - 48px);
    background: var(--hx-surface);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(35, 31, 28, .28);
    overflow: hidden;
    animation: hx-fade .14s ease-out;
}
.hx-cmd-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    margin: 0;
}
.hx-cmd-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--hx-line); color: var(--hx-ink3); }
.hx-cmd-field svg { flex: none; }
.hx-cmd :is(input, select, textarea) {
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: inherit;
    line-height: normal;
    color: inherit;
    transition: none;
    -webkit-appearance: none;
    appearance: none;
}
.hx-cmd :is(input, select, textarea):focus { box-shadow: none; outline: none; }
.hx-cmd .hx-cmd-input { flex: 1; min-width: 0; font-size: 15px; color: var(--hx-ink); }
.hx-cmd .hx-cmd-input::placeholder { color: var(--hx-faint); }
.hx-cmd .hx-cmd-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hx-cmd-esc {
    flex: none;
    font-family: var(--hx-mono);
    font-size: 11.5px;
    line-height: 1.2;
    padding: 1px 5px;
    border: 1px solid var(--hx-line);
    border-radius: 4px;
    background: none;
    color: var(--hx-ink3);
    cursor: pointer;
}
.hx-cmd-results { max-height: 430px; overflow-y: auto; padding: 4px 0 8px; }
.hx-cmd-section-label {
    padding: 12px 16px 6px;
    font-family: var(--hx-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hx-ink3);
}
.hx-cmd-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    width: 100%;
    min-height: 48px;
    padding: 7px 16px;
    text-align: left;
    text-decoration: none;
    color: var(--hx-ink);
}
a.hx-cmd-row:hover, .hx-cmd-row.is-active { background: var(--hx-sunken); box-shadow: inset 2px 0 0 var(--hx-accent); text-decoration: none; opacity: 1; }
.hx-cmd-row-title { display: block; font-size: 13px; font-weight: 500; color: var(--hx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-cmd-row.is-active .hx-cmd-row-title { font-weight: 600; }
.hx-cmd-row-sub { display: block; font-size: 12px; color: var(--hx-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-cmd-status { padding: 22px 18px; font-size: 13px; color: var(--hx-ink3); }
.hx-cmd-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-top: 1px solid var(--hx-line);
    background: var(--hx-paper);
    font-size: 11.5px;
    color: var(--hx-ink3);
}
.hx-cmd-foot-note { margin-left: auto; }

/* ----- sino (P6): painel de notificacoes ----- */
.hx-notify {
    position: fixed;
    left: 214px;
    bottom: 60px;
    z-index: 30;
    width: 372px;
    max-width: calc(100vw - 230px);
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(35, 31, 28, .20);
    overflow: hidden;
    animation: hx-fade .14s ease-out;
}
.hx-notify[hidden] { display: none; }
.hx-notify-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #EFEAE3; }
.hx-notify-title { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--hx-ink); }
.hx-notify-list { max-height: 420px; overflow-y: auto; font-size: 13px; color: var(--hx-ink3); }
.hx-notify-list:not(:has(.hx-notify-item)) { padding: 16px 14px; }
.hx-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #F3EFE9;
    background: var(--hx-surface);
    text-decoration: none;
    color: var(--hx-ink);
}
.hx-notify-item:hover { background: var(--hx-paper); text-decoration: none; opacity: 1; }
.hx-notify-dot { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 999px; border: 1px solid var(--hx-line2); }
.hx-notify-item.is-unread .hx-notify-dot { border: none; background: var(--hx-accent); }
.hx-notify-body { flex: 1; min-width: 0; }
.hx-notify-kind { display: block; font-size: 13px; font-weight: 400; color: var(--hx-ink); }
.hx-notify-item.is-unread .hx-notify-kind { font-weight: 600; }
.hx-notify-ticket { display: block; margin-top: 2px; font-size: 12px; color: var(--hx-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* TOPO-03: respiro das HxShell de primeiro nivel que deixaram de desenhar a linha de apoio. */
.hx-settings-body.is-hx-shell:is(
    [data-settings-page="TicketForms-Index"],
    [data-settings-page="SlaAdministration-Index"],
    [data-settings-page="KnowledgeBase-Categories"],
    [data-settings-page="KnowledgeBase-Analytics"],
    [data-settings-page="ApiKeys-Index"],
    [data-settings-page="EventHooks-Index"]
):not(:has(> .hx-settings-readonly)) {
    padding-top: 16px;
}
.hx-settings-body.is-hx-shell:is(
    [data-settings-page="TicketForms-Index"],
    [data-settings-page="SlaAdministration-Index"],
    [data-settings-page="KnowledgeBase-Categories"],
    [data-settings-page="KnowledgeBase-Analytics"],
    [data-settings-page="ApiKeys-Index"],
    [data-settings-page="EventHooks-Index"]
):has(> .hx-settings-readonly) {
    row-gap: 16px;
}
