* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Vistas desativadas (sem entrada no menu) */
.prisma-view-removed {
    display: none !important;
}

html {
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

body {
    display: flex;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: auto;
    overflow-y: auto;
    background: linear-gradient(rgba(14, 23, 43, 0.75), rgba(14, 23, 43, 0.75)), url('bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* LEFT SIDEBAR */
.sidebar {
    width: 250px;
    background-color: rgba(23, 35, 66, 0.85);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header {
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-icon {
    margin-right: 15px;
    font-size: 20px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #aeb6c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.menu-item:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.menu-item.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 3px solid #3da8f5;
}

.menu-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
    color: #7b88a0;
}

.menu-item.active i {
    color: #fff;
}

.menu-group {
    margin-top: 10px;
}

.menu-group-title {
    padding: 5px 20px;
    font-size: 12px;
    color: #7b88a0;
    text-transform: uppercase;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.upgrade-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, #ff5e7e, #b14ced);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}
.upgrade-btn:hover {
    opacity: 0.9;
}

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

/* TOP NAVBAR */
.topbar {
    position: relative;
    /* Acima do conteÃÂºdo da pÃÂ¡gina, abaixo de modais/overlays (Ã¢ÂÂ¥9000) */
    z-index: 5000;
    min-height: 55px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 16px;
    padding-right: 72px;
    background: rgba(23, 35, 66, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: visible;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

/* SÃÂ³ ocupa a largura dos links visÃÂ­veis Ã¢ÂÂ MantÃÂ©m ÃÂÃÂ«MaisÃÂÃÂ» colado ao ÃÂºltimo item (ex.: ConfiguraÃÂ§ÃÂµes). */
.topbar-nav-inline-wrap {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Menus absolutos (ex.: InventÃÂ¡rio) nÃÂ£o podem ser cortados pelo clip da nav */
.topbar-nav-inline-wrap.topbar-nav--dropdown-open {
    overflow: visible;
}

.topbar-nav-inline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

.topbar-nav-inline.topbar-nav--dropdown-open {
    overflow: visible;
}

.topbar-nav-inline .nav-link--overflowable,
.topbar-nav-inline .topbar-nav-dropdown {
    flex-shrink: 0;
}

.topbar-nav-dropdown {
    position: relative;
}

.topbar-inventario-trigger,
.topbar-clientes-trigger,
.topbar-vendas-trigger,
.topbar-config-trigger {
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.topbar-item-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 5010;
    min-width: 260px;
    padding: 8px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.topbar-nav-dropdown--open .topbar-item-dropdown {
    display: block;
}

.topbar-dropdown-link {
    display: block;
    padding: 10px 18px;
    color: #525c69;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.topbar-dropdown-link:hover,
.topbar-dropdown-link:focus-visible {
    background: #f5f7f9;
    outline: none;
}

.topbar-config-menu {
    min-width: 332px;
    padding: 8px 0;
}

.topbar-config-link {
    padding: 11px 18px;
    color: #444f5d;
    font-size: 15px;
}

.topbar-config-link--trail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar-config-separator {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: #e9edf2;
}

.topbar-dropdown-link--locked {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    color: #a8b0ba;
    pointer-events: none;
    user-select: none;
}

.topbar-dropdown-link--locked i {
    font-size: 11px;
    opacity: 0.85;
}

.topbar-dropdown-trail {
    color: #c5ccd4;
    font-size: 12px;
    flex-shrink: 0;
}

/* Submenu lateral (Partes signatÃÂ¡rias / Fornecedores) Ã¢ÂÂ mesmo padrÃÂ£o das referÃÂªncias */
.topbar-dropdown-flyout {
    position: relative;
}

.topbar-dropdown-flyout-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    color: #525c69;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.topbar-dropdown-flyout-trigger:hover,
.topbar-dropdown-flyout-trigger:focus-visible {
    background: #f5f7f9;
    outline: none;
}

.topbar-dropdown-flyout:hover .topbar-dropdown-flyout-trigger,
.topbar-dropdown-flyout:focus-within .topbar-dropdown-flyout-trigger {
    background: #f5f7f9;
}

.topbar-dropdown-flyout-panel {
    display: none;
    position: absolute;
    left: calc(100% + 4px);
    top: 0;
    z-index: 5020;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Ponte invisÃÂ­vel para nÃÂ£o perder o hover entre coluna e flyout */
.topbar-dropdown-flyout-panel::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 14px;
    height: 100%;
    min-height: 40px;
}

/* Seta apontando para o item pai (efeito Ã¢ÂÂbalÃÂ£oÃ¢ÂÂ) */
.topbar-dropdown-flyout-panel::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 14px;
    margin-right: -1px;
    border: 7px solid transparent;
    border-right-color: #fff;
    filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.06));
    pointer-events: none;
}

@media (hover: hover) {
    .topbar-dropdown-flyout:hover .topbar-dropdown-flyout-panel,
    .topbar-dropdown-flyout:focus-within .topbar-dropdown-flyout-panel {
        display: block;
    }
}

@media (hover: none) {
    .topbar-dropdown-flyout--open .topbar-dropdown-flyout-panel {
        display: block;
    }
}

.topbar-dropdown-sublink {
    display: block;
    padding: 10px 18px;
    color: #525c69;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.topbar-dropdown-sublink:hover,
.topbar-dropdown-sublink:focus-visible {
    background: #f5f7f9;
    outline: none;
}

.topbar-nav-dropdown--open .topbar-inventario-trigger,
.topbar-nav-dropdown--open .topbar-clientes-trigger,
.topbar-nav-dropdown--open .topbar-vendas-trigger {
    background: rgba(61, 168, 245, 0.22);
    border-color: rgba(130, 200, 255, 0.45);
    color: #fff;
}

/* Com vista InventÃÂ¡rio ativa, ao abrir o menu voltar ao destaque ÃÂÃÂ«abertoÃÂÃÂ», nÃÂ£o ao pill sÃÂ³lido */
.topbar-nav-dropdown--open .topbar-inventario-trigger.topbar-inventario-trigger--active {
    background: rgba(61, 168, 245, 0.22);
    border-color: rgba(130, 200, 255, 0.45);
    color: #fff;
    font-weight: 600;
}

.topbar-nav-dropdown--open .topbar-clientes-trigger.topbar-clientes-trigger--active {
    background: rgba(61, 168, 245, 0.22);
    border-color: rgba(130, 200, 255, 0.45);
    color: #fff;
    font-weight: 600;
}

.topbar-nav .topbar-clientes-trigger.topbar-clientes-trigger--active {
    background-color: #2568b8;
    color: #fff;
    font-weight: 600;
    border: 1px solid #7eb8ea;
    border-radius: 10px;
}

.topbar-nav .topbar-vendas-trigger.topbar-vendas-trigger--active {
    background-color: #2568b8;
    color: #fff;
    font-weight: 600;
    border: 1px solid #7eb8ea;
    border-radius: 10px;
}

.topbar-inventario-chevron,
.topbar-clientes-chevron,
.topbar-vendas-chevron {
    transition: transform 0.2s ease;
}

.topbar-nav-dropdown--open .topbar-inventario-chevron,
.topbar-nav-dropdown--open .topbar-clientes-chevron,
.topbar-nav-dropdown--open .topbar-vendas-chevron {
    transform: rotate(180deg);
}

.nav-link--persistent {
    flex-shrink: 0;
}

.topbar-nav-more {
    position: relative;
    flex-shrink: 0;
    z-index: 5001;
}

.topbar-nav-more.topbar-nav--dropdown-open {
    overflow: visible;
}

.nav-more-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 14px;
    color: #aeb6c7;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-more-trigger:hover,
.nav-more-trigger:focus-visible {
    color: #fff;
    outline: none;
}

.topbar-nav-more:hover .nav-more-trigger,
.topbar-nav-more:focus-within .nav-more-trigger,
.topbar-nav-more--open .nav-more-trigger {
    color: #fff;
}

.topbar-nav-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5002;
    min-width: min(320px, 92vw);
    max-width: 92vw;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    padding: 6px 0;
    background: #2a3348;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* Submenu branco do InventÃÂ¡rio nÃÂ£o pode ser cortado por este painel */
.topbar-nav-more-dropdown.topbar-nav--dropdown-open {
    overflow: visible;
    max-height: none;
}

/* Painel sÃÂ³ quando hÃÂ¡ itens no overflow; sobrepÃÂµe o conteÃÂºdo abaixo */
.topbar-nav-more--has-items:hover .topbar-nav-more-dropdown,
.topbar-nav-more--has-items:focus-within .topbar-nav-more-dropdown,
.topbar-nav-more--has-items.topbar-nav-more--open .topbar-nav-more-dropdown {
    display: flex;
}

.topbar-nav-more-dropdown .nav-link {
    border-radius: 0;
    padding: 10px 16px;
    white-space: normal;
    line-height: 1.35;
}

.topbar-nav-more-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-link {
    color: #aeb6c7;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: 0.2s;
}

.nav-link:hover {
    color: #fff;
}

/* Item principal do topbar selecionado (estilo ÃÂÃÂ«pillÃÂÃÂ» azul mÃÂ©dio + borda clara) */
.topbar-nav .nav-link.active {
    background-color: #2568b8;
    color: #fff;
    font-weight: 600;
    border: 1px solid #7eb8ea;
    border-radius: 10px;
}

.topbar-nav .topbar-inventario-trigger.topbar-inventario-trigger--active {
    background-color: #2568b8;
    color: #fff;
    font-weight: 600;
    border: 1px solid #7eb8ea;
    border-radius: 10px;
}

.topbar-nav .topbar-config-trigger.topbar-config-trigger--active {
    background-color: #2568b8;
    color: #fff;
    font-weight: 600;
    border: 1px solid #7eb8ea;
    border-radius: 10px;
}

.prisma-user-modal.prisma-new-deal-modal--sheet {
    max-width: 560px;
    width: min(560px, calc(100vw - 120px));
}

.prisma-user-modal-card {
    min-height: 100%;
}

.prisma-user-modal-white {
    padding: 24px 28px 12px;
    overflow-y: auto;
}

.prisma-user-modal-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.prisma-user-modal-fields .prisma-field-row {
    margin: 0;
}

.prisma-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #828b95;
    line-height: 1.4;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    flex-shrink: 1;
    min-width: 0;
}

/* Topbar estreita: some com itens da direita por etapas para nÃÂ£o colidir com a nav */
@media (max-width: 1420px) {
    .topbar-right .search-box {
        display: none !important;
    }
}

@media (max-width: 1240px) {
    .topbar-right .invite-link,
    .topbar-right .buy-btn {
        display: none !important;
    }
}

@media (max-width: 1080px) {
    .topbar-right > a.nav-link {
        display: none !important;
    }

    .topbar {
        padding-left: 10px;
        padding-right: 48px;
        gap: 8px;
    }

    .topbar-right {
        gap: 8px;
    }
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    width: 200px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    margin-left: 5px;
    width: 100%;
}

.invite-link {
    color: #2fc6f6;
    font-size: 14px;
    text-decoration: none;
}

.buy-btn {
    background-color: #51b942;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aeb6c7;
}

#topbarBrasiliaClock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2c86de 0%, #1e6fcb 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(198, 228, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#topbarBrasiliaClock::after {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eaf3ff;
    background: rgba(0, 0, 0, 0.18);
}

.topbar-clock-menu {
    position: fixed;
    width: 292px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #f2f4f8;
    border-radius: 16px;
    border: 1px solid #d9e1ec;
    box-shadow: 0 18px 48px rgba(19, 35, 68, 0.28);
    padding: 10px;
    z-index: 5600;
    display: none;
}

.topbar-clock-menu.is-open {
    display: block;
}

.topbar-clock-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
}

.topbar-clock-menu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #d7dde8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.topbar-clock-menu-user {
    min-width: 0;
}

.topbar-clock-menu-email {
    color: #2f3745;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-clock-menu-role {
    margin-top: 3px;
    display: inline-block;
    color: #2a7fd2;
    background: rgba(42, 127, 210, 0.12);
    border: 1px solid rgba(42, 127, 210, 0.22);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
}

.topbar-clock-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.topbar-clock-menu-action {
    border: 1px solid #c3d4ea;
    background: #edf4ff;
    border-radius: 10px;
    min-height: 58px;
    cursor: pointer;
    color: #4a5567;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
}

.topbar-clock-menu-action i {
    font-size: 14px;
}

.topbar-clock-menu-row {
    margin-top: 8px;
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    color: #4c5768;
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.topbar-clock-menu-row > i:first-child,
.topbar-clock-menu-row-left > i:first-child {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #5e6a7d;
    flex: 0 0 16px;
}

.topbar-clock-menu-row > span {
    flex: 1;
    text-align: left;
}

.topbar-clock-menu-row i:last-child {
    color: #98a4b7;
    font-size: 11px;
    width: 12px;
    text-align: center;
    flex: 0 0 12px;
}

.topbar-clock-menu-row--cta {
    justify-content: space-between;
}

.topbar-clock-menu-row-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4c5768;
    font-size: 13px;
}

.topbar-clock-menu-mini-btn {
    border: none;
    border-radius: 8px;
    background: #1d74d4;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
}

.topbar-clock-menu-footer {
    margin-top: 10px;
    border-top: 1px solid #dbe3ef;
    padding-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.topbar-clock-menu-footer button {
    border: none;
    background: transparent;
    color: #9aa6b8;
    font-size: 13px;
    cursor: pointer;
}

.topbar-clock-menu button:hover {
    filter: brightness(0.98);
}

.topbar-clock-account-panel {
    position: fixed;
    top: 6px;
    right: 8px;
    width: min(848px, calc(100vw - 16px));
    height: min(910px, calc(100vh - 12px));
    overflow: auto;
    background: linear-gradient(180deg, #1b2f98 0%, #12358f 100%);
    border: 1px solid rgba(170, 198, 255, 0.55);
    border-radius: 10px;
    box-shadow: 0 30px 72px rgba(4, 12, 36, 0.66);
    z-index: 5590;
    display: none;
}

.topbar-clock-account-panel.is-open {
    display: block;
}

.main-wrapper.clock-account-focus::after {
    content: none;
}

.topbar-clock-account-panel__topbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    color: #fff;
    background: linear-gradient(180deg, #2f3ea8 0%, #283695 100%);
    border-bottom: 1px solid rgba(169, 191, 255, 0.28);
}

.topbar-clock-account-panel__spacer {
    min-height: 1px;
}

.topbar-clock-account-panel__close {
    position: absolute;
    left: -34px;
    top: 6px;
    border: 1px solid rgba(139, 220, 255, 0.7);
    background: linear-gradient(180deg, #2faee9 0%, #1f97d7 100%);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(7, 39, 90, 0.36);
}

.topbar-clock-account-panel__top-actions {
    display: inline-flex;
    gap: 8px;
}

.topbar-clock-account-panel__top-actions button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 10px;
    padding: 4px 9px;
}

.topbar-clock-account-panel__tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 36px;
    padding: 5px 12px 6px;
    border-bottom: 1px solid rgba(166, 189, 255, 0.3);
    overflow-x: auto;
    white-space: nowrap;
}

.topbar-clock-account-panel__tabs button {
    border: none;
    background: transparent;
    color: #d8e1ff;
    font-size: 11px;
    padding: 0 1px;
    flex: 0 0 auto;
}

.topbar-clock-account-panel__tabs button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    padding: 4px 9px;
}

.topbar-clock-account-panel__body {
    display: grid;
    grid-template-columns: 274px 1fr;
    gap: 8px;
    padding: 10px;
}

.topbar-clock-account-panel__left,
.topbar-clock-account-panel__right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topbar-clock-card {
    background: #ffffff;
    border: 1px solid #d5dde8;
    border-radius: 11px;
    padding: 10px 12px;
}

.topbar-clock-card h4 {
    margin: 0 0 7px;
    color: #3a4554;
    font-size: 34px;
    font-weight: 300;
}

.topbar-clock-card p {
    margin: 0 0 7px;
    color: #49566b;
    font-size: 12px;
    line-height: 1.35;
}

.topbar-clock-card p strong {
    color: #627086;
    font-weight: 600;
}

.topbar-clock-card a {
    color: #2f77d3;
}

.topbar-clock-card button {
    border: 1px solid #b9c4d4;
    border-radius: 999px;
    background: #fff;
    color: #6a778c;
    font-size: 10px;
    padding: 6px 14px;
}

.topbar-clock-card--profile {
    position: relative;
    text-align: center;
    height: 217px;
    padding: 8px 10px 10px;
    overflow: hidden;
}

.topbar-clock-card__profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.topbar-clock-card__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 9px;
    color: #fff;
    background: #37b7ef;
    letter-spacing: 0.02em;
}

.topbar-clock-card__online {
    font-size: 10px;
    color: #8a95a6;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.topbar-clock-card__online::before {
    color: #8dbd2f;
}

.topbar-clock-card__seen {
    margin-top: 2px;
    text-align: right;
    font-size: 10px;
    color: #b9c0cb;
    padding-right: 2px;
}

.topbar-clock-card__ribbon {
    position: absolute;
    left: 12px;
    top: 28px;
    width: 28px;
    height: 14px;
    border-radius: 2px 2px 0 0;
    background: #2d8fe6;
    color: #fff;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-clock-card__ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 6px solid #2d8fe6;
}

.topbar-clock-card__avatar {
    width: 166px;
    height: 166px;
    margin: 6px auto 0;
    border-radius: 999px;
    background: #bcc5cf;
    color: #fff;
    font-size: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-clock-card--devices {
    height: 46px;
    padding: 5px 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.topbar-clock-card__device-col {
    font-size: 10px;
    color: #7a8699;
    line-height: 1.15;
}

.topbar-clock-card__device-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b2b9c4;
    font-size: 13px;
}

.topbar-clock-app-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.topbar-clock-app-grid span {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    border: 1px solid #cfd6e0;
    color: #a7b1bf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.topbar-clock-card--apps h4 {
    font-size: 31px;
    margin-bottom: 7px;
}

.topbar-clock-card--apps {
    height: 140px;
    padding: 10px 10px 8px;
}

.topbar-clock-card--apps .topbar-clock-app-grid {
    margin-top: 6px;
}

.topbar-clock-card--apps h4::after {
    content: '';
    display: block;
    margin-top: 6px;
    border-top: 1px solid #e4e8ee;
}

.topbar-clock-card--contact {
    padding: 10px 14px 8px;
}

.topbar-clock-card__contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e8ee;
}

.topbar-clock-card--contact h4 {
    margin: 0;
    font-size: 32px;
}

.topbar-clock-card__edit-link {
    border: none;
    background: transparent;
    color: #9ea8b7;
    font-size: 12px;
    padding: 0;
    text-transform: lowercase;
}

.topbar-clock-card__contact-rows {
    padding-top: 8px;
}

.topbar-clock-contact-row {
    margin-bottom: 8px;
}

.topbar-clock-contact-label {
    color: #9aa4b4;
    font-size: 11px;
    margin-bottom: 2px;
}

.topbar-clock-contact-value {
    color: #5a667a;
    font-size: 14px;
    line-height: 1.2;
}

.topbar-clock-contact-value a {
    color: #2f77d3;
    text-decoration: none;
}

.topbar-clock-card__contact-footer {
    margin-top: 4px;
    display: inline-flex;
    gap: 12px;
}

.topbar-clock-card__contact-footer a {
    font-size: 12px;
    color: #6f7f95;
    text-decoration: underline;
}

.topbar-clock-card--info {
    padding: 10px 14px 12px;
}

.topbar-clock-card--info h4 {
    margin: 0;
    font-size: 34px;
}

.topbar-clock-card--info h4::after {
    content: '';
    display: block;
    margin-top: 8px;
    border-top: 1px solid #e4e8ee;
}

.topbar-clock-card__info-body {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    align-items: start;
}

.topbar-clock-card__info-icon {
    width: 74px;
    height: 74px;
    border: 1px solid #61c4f4;
    border-radius: 999px;
    color: #37b7ef;
    background: #f9fdff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.topbar-clock-card__info-text p {
    margin: 2px 0 10px;
    font-size: 12px;
    color: #657186;
    line-height: 1.35;
}

.topbar-clock-card__info-text button {
    border: 1px solid #b9c4d4;
    border-radius: 999px;
    background: #fff;
    color: #6a778c;
    font-size: 10px;
    padding: 6px 14px;
}

.topbar-clock-card--about .topbar-clock-card__info-icon {
    font-size: 31px;
}

.topbar-clock-card--likes .topbar-clock-card__info-icon {
    font-size: 34px;
}

.topbar-clock-security-panel__head {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: end;
    padding: 8px 16px 6px;
    color: #2f3a4f;
    background: #e8edf3;
}

.topbar-clock-security-panel {
    background: #e8edf3;
    border-color: #d4dce7;
    box-shadow: 0 18px 40px rgba(20, 31, 53, 0.22);
}

.topbar-clock-security-panel .topbar-clock-account-panel__topbar {
    background: transparent;
    border-bottom: none;
}

.topbar-clock-security-panel .topbar-clock-account-panel__close {
    background: #2c8fdf;
    border-color: rgba(43, 143, 223, 0.55);
}

.topbar-clock-security-panel__head h2,
.topbar-clock-security-panel__head h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1;
    color: #2f3848;
    white-space: nowrap;
}

.topbar-clock-security-panel__head h2 {
    font-weight: 500;
}

.topbar-clock-security-panel__head h3 {
    font-weight: 600;
}

.topbar-clock-security-panel__body {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px;
    padding: 0 12px 12px;
    background: #e8edf3;
}

.topbar-clock-security-panel__menu {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.topbar-clock-security-panel__menu button {
    border: none;
    background: transparent;
    color: #5f6c80;
    text-align: left;
    font-size: 13px;
    line-height: 1;
    padding: 0 10px;
    height: 29px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.topbar-clock-security-panel__menu button.is-active {
    background: #1f81df;
    color: #fff;
    font-weight: 600;
    width: fit-content;
    min-width: 84px;
    padding: 0 12px;
    border-radius: 999px;
}

.topbar-clock-security-panel__menu button span {
    margin-left: 2px;
    font-size: 9px;
    line-height: 1;
    color: #43b9ed;
    background: rgba(67, 185, 237, 0.14);
    border-radius: 999px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
}

.topbar-clock-security-panel__content {
    background: #f5f7fa;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    padding: 10px;
}

.topbar-clock-security-panel__intro {
    margin: 0 0 10px;
    font-size: 12px;
    color: #58677d;
}

.security-row {
    min-height: 46px;
    border: 1px solid #dde3ec;
    border-radius: 9px;
    background: #fff;
    display: grid;
    grid-template-columns: 20px 1fr auto 12px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #4f5a6b;
    font-size: 13px;
    margin-bottom: 8px;
}

.security-row em {
    color: #8f9cb0;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.security-row i:last-child {
    color: #a3aebe;
    font-size: 10px;
    transform: translateY(1px);
}

.security-row em .fa-exclamation-triangle {
    color: #ff5f57;
    font-size: 11px;
}

.security-row em .fa-check-circle {
    color: #38bb6d;
    font-size: 11px;
}

.security-cta {
    border: 1px solid #c8dae9;
    border-radius: 10px;
    background: #d6e7f7;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 11px 12px;
    margin-bottom: 8px;
}

.security-cta > i {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: linear-gradient(180deg, #74ce88 0%, #58bf6e 100%);
    color: #fff;
    font-size: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.security-cta strong {
    display: block;
    margin: 0 0 5px;
    color: #3f4d64;
    font-size: 13px;
}

.security-cta p {
    margin: 0 0 9px;
    color: #4e5f77;
    font-size: 12px;
    line-height: 1.35;
}

.security-cta button {
    border: none;
    border-radius: 8px;
    background: #1f80df;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
}

.topbar-clock-security-panel__footer-link {
    margin-top: 12px;
    text-align: center;
    color: #2f77d3;
    font-size: 14px;
    text-decoration: underline;
}

.topbar-clock-security-panel__footer-note {
    margin-top: 4px;
    text-align: center;
    color: #9aa6b7;
    font-size: 12px;
}

@media (max-width: 980px) {
    .topbar-clock-account-panel__body {
        grid-template-columns: 1fr;
    }
}

.user-profile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    background-image: url('https://i.pravatar.cc/100');
    background-size: cover;
    cursor: pointer;
}

/* CONTENT AREA */
.content-area {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    padding-right: 88px; /* right sidebar 60px + folga p/ zoom e barra de rolagem */
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-area:has(.cc-conversations-view:not([hidden])) {
    overflow: hidden;
}

/* --- Sales Center (hub de vendas) --- */
.sales-center-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f5f7f8;
    margin: -20px -20px -20px -20px;
    padding: 0;
    overflow: auto;
}

.sales-center-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e6eaee;
    flex-shrink: 0;
}

.sales-center-title {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    color: #3a4452;
}

.sales-center-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sales-center-pill {
    border: 1px solid #cdd5df;
    background: #fff;
    color: #525c69;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.sales-center-pill:hover {
    border-color: #9aa7b8;
    background: #f8fafc;
}

.sales-center-body {
    padding: 20px 24px 40px 24px;
    max-width: 1180px;
}

.sales-center-subhead {
    margin: 28px 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sales-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.sales-center-grid--settings {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.sales-center-tile {
    position: relative;
    min-height: 128px;
    border: none;
    border-radius: 6px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sales-center-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.sales-center-tile--wide {
    grid-column: 1 / -1;
    min-height: 72px;
    flex-direction: row;
    justify-content: center;
}

.sales-center-tile-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: #3a4452;
}

.sales-center-tile--teal .sales-center-tile-label,
.sales-center-tile--red .sales-center-tile-label,
.sales-center-tile--pink .sales-center-tile-label,
.sales-center-tile--orange .sales-center-tile-label,
.sales-center-tile--sky .sales-center-tile-label,
.sales-center-tile--lime .sales-center-tile-label,
.sales-center-tile--blue .sales-center-tile-label {
    color: #fff;
}

.sales-center-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.sales-center-tile--white .sales-center-tile-icon {
    color: #fff;
}

.sales-center-tile-icon--shop {
    background: linear-gradient(145deg, #f472b6, #e11d48);
}

.sales-center-tile-icon--calc {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.sales-center-tile-icon--form {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.sales-center-tile-icon--thumb {
    background: linear-gradient(145deg, #4ade80, #16a34a);
}

.sales-center-tile-icon--sms {
    background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}

.sales-center-tile-icon--doc {
    background: linear-gradient(145deg, #818cf8, #4f46e5);
}

.sales-center-tile--white {
    background: #fff;
}

.sales-center-tile--teal {
    background: linear-gradient(160deg, #14b8a6, #0d9488);
}

.sales-center-tile--red {
    background: linear-gradient(160deg, #f87171, #dc2626);
}

.sales-center-tile--pink {
    background: linear-gradient(160deg, #f472b6, #db2777);
}

.sales-center-tile--orange {
    background: linear-gradient(160deg, #fb923c, #ea580c);
}

.sales-center-tile--sky {
    background: linear-gradient(160deg, #7dd3fc, #0ea5e9);
}

.sales-center-tile--lime {
    background: linear-gradient(160deg, #bef264, #65a30d);
}

.sales-center-tile--blue {
    background: linear-gradient(160deg, #60a5fa, #2563eb);
}

.sales-center-tile-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.sales-center-tile-novo {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: #2563eb;
    padding: 3px 6px;
    border-radius: 3px;
}

.sales-center-tile--badge-novo {
    padding-top: 18px;
}

.prisma-main-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.prisma-main-view[hidden],
.prisma-main-view.prisma-main-view--hidden {
    display: none !important;
}

/* --- CatÃÂ¡logo de produtos --- */
.prisma-catalog-view {
    gap: 0;
}

/* --- Contact Center (grelha de canais, estilo Bitrix) --- */
.contact-center-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #eef1f4;
    margin: -20px -20px -20px -20px;
    padding: 0;
    overflow: auto;
}

.contact-center-view:has(.cc-conversations-view:not([hidden])) {
    overflow: hidden;
    margin: -20px;
    margin-right: -88px;
}

.contact-center-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e6ea;
    flex-shrink: 0;
}

.contact-center-subnav-item {
    font-size: 13px;
    font-weight: 500;
    color: #525c69;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -12px;
    padding-bottom: 10px;
}

.contact-center-subnav-item:hover {
    color: #2066b0;
}

.contact-center-subnav-item.is-active {
    color: #2066b0;
    border-bottom-color: #2066b0;
}

.contact-center-subnav-more {
    margin-left: auto;
}

/* --- Telefonia (estilo semelhante ao Bitrix da referÃÂªncia) --- */
.telephony-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #eef1f4;
    margin: -20px -20px -20px -20px;
    padding: 0;
    overflow: auto;
}

.telephony-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    padding: 8px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e6ea;
    flex-shrink: 0;
}

.telephony-subnav-item {
    font-size: 12px;
    font-weight: 500;
    color: #525c69;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -8px;
}

.telephony-subnav-item:hover {
    color: #2066b0;
}

.telephony-subnav-item.is-active {
    color: #2066b0;
    border-bottom-color: #2066b0;
}

.telephony-subnav-more {
    margin-left: 0;
}

.telephony-inner {
    flex: 1;
    padding: 12px 10px 30px;
    width: 100%;
    box-sizing: border-box;
}

.telephony-panel {
    border-top: 1px solid #dde3e9;
    margin-top: 8px;
    padding-top: 8px;
}

.telephony-panel-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 300;
    color: #525c69;
}

.telephony-balance-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 10px;
}

.telephony-card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    min-height: 90px;
}

.telephony-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f6;
    font-size: 13px;
    color: #525c69;
}

.telephony-reload-btn {
    border: none;
    border-radius: 3px;
    background: #35b9ef;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    cursor: pointer;
}

.telephony-balance-value-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 14px 10px;
    color: #525c69;
}

.telephony-balance-caption {
    font-size: 10px;
    opacity: 0.75;
}

.telephony-balance-value {
    font-size: 48px;
    line-height: 1;
    font-weight: 300;
    color: #40464d;
}

.telephony-empty-number {
    height: calc(100% - 44px);
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #b0b8c2;
    font-size: 13px;
    line-height: 1.35;
    padding: 8px;
}

.telephony-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.telephony-action-card {
    width: 112px;
    min-height: 74px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #525c69;
    cursor: pointer;
}

.telephony-action-card:hover {
    border-color: #b6d9ef;
    background: #f8fcff;
}

.telephony-action-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.telephony-action-icon--cyan {
    background: #38c7e8;
}

.telephony-action-icon--teal {
    background: #3bb9a6;
}

.telephony-action-icon--green {
    background: #65c656;
}

.telephony-action-icon--amber {
    background: #f0ad19;
}

.telephony-action-icon--pink {
    background: #ea73a1;
}

.telephony-action-icon--blue {
    background: #4d83c7;
}

.telephony-action-label {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    color: #525c69;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telephony-integration-grid {
    display: flex;
    gap: 10px;
}

.telephony-integration-card {
    border: none;
    border-radius: 4px;
    color: #fff;
    min-height: 56px;
    min-width: 145px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
}

.telephony-integration-card--green {
    background: #93c90f;
}

.telephony-integration-card--cyan {
    background: #57c8dc;
}

.telephony-integration-small {
    font-size: 9px;
    opacity: 0.9;
}

.telephony-integration-big {
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.telephony-integration-link {
    margin-top: 4px;
    font-size: 12px;
}

.telephony-integration-bulb {
    font-size: 24px;
    line-height: 1;
}

/* --- E-mail: integraÃÂ§ÃÂ£o de caixa de correio --- */
.email-integration-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 72% 12%, rgba(88, 191, 255, 0.35), rgba(8, 23, 77, 0.88) 38%),
        radial-gradient(circle at 25% 72%, rgba(65, 149, 238, 0.34), rgba(3, 17, 66, 0.95) 56%),
        linear-gradient(160deg, #031152 0%, #08195a 42%, #041649 100%);
    margin: -20px -20px -20px -20px;
    padding: 8px 26px 24px;
    overflow: auto;
    color: #fff;
}

.email-integration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
}

.email-integration-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}

.email-integration-connect-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
}

.email-integration-connect-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.email-integration-center {
    margin: 40px auto 0;
    width: 100%;
    max-width: 770px;
}

.email-integration-subtitle {
    text-align: center;
    margin: 0 0 20px;
    font-size: 33px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.94);
}

.email-provider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 14px;
}

.email-provider-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    min-height: 78px;
    color: #3a4452;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(6, 12, 44, 0.24);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.email-provider-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(6, 12, 44, 0.35);
}

.email-provider-card--custom {
    flex-direction: column;
    gap: 4px;
}

.email-provider-card--custom small {
    font-size: 11px;
    opacity: 0.65;
}

/* --- Widget do site (landing estilo Bitrix) --- */
.site-widget-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: -20px -20px -20px -20px;
    overflow: auto;
    background: #e8ecf0;
}

.site-widget-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background:
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(120, 200, 255, 0.25), transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 100%, rgba(80, 140, 255, 0.2), transparent 45%),
        linear-gradient(180deg, #0a1f4a 0%, #061536 100%);
    color: #fff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-widget-topbar-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-widget-pin {
    font-size: 14px;
    opacity: 0.75;
}

.site-widget-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-widget-btn-create {
    border: none;
    border-radius: 4px;
    background: #7cb342;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-widget-btn-create:hover {
    filter: brightness(1.06);
}

.site-widget-btn-settings {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-widget-btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
}

.site-widget-shell {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    min-height: 0;
}

.site-widget-copy {
    flex: 1 1 360px;
    background: #fff;
    padding: 36px 40px 48px;
    box-sizing: border-box;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

.site-widget-intro {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.45;
    color: #5bc0de;
}

.site-widget-subtitle {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.site-widget-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 520px;
}

.site-widget-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #525c69;
}

.site-widget-check {
    position: absolute;
    left: 0;
    top: 2px;
    color: #7cb342;
    font-size: 14px;
}

.site-widget-visual {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #e8ecf0;
    box-sizing: border-box;
}

.site-widget-browser {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

.site-widget-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #f0f2f5;
    border-bottom: 1px solid #e2e6ea;
}

.site-widget-browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5ccd4;
}

.site-widget-browser-page {
    padding: 20px 18px 72px;
    min-height: 180px;
}

.site-widget-browser-line {
    height: 10px;
    border-radius: 4px;
    background: #e8ecf0;
    margin-bottom: 12px;
}

.site-widget-browser-line--short {
    width: 55%;
}

.site-widget-fab {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2fc6f6, #1fa8d4);
    box-shadow: 0 4px 16px rgba(31, 168, 212, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.site-widget-fab-glow {
    position: absolute;
    inset: -10px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, transparent 70%);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
}

.site-widget-fab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-size: 11px;
}

.site-widget-fab-inner i {
    opacity: 0.95;
}

@media (max-width: 900px) {
    .site-widget-shell {
        flex-direction: column;
    }
    .site-widget-copy {
        box-shadow: none;
    }
}

/* --- FormulÃÂ¡rios de CRM --- */
.crm-forms-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: -20px -20px -20px -20px;
    overflow: hidden;
    background: #fff;
}

.crm-forms-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 20px;
    background: linear-gradient(180deg, #153a7a 0%, #0d2a5c 100%);
    color: #fff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.crm-forms-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.crm-forms-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.crm-forms-pin {
    font-size: 13px;
    opacity: 0.8;
}

.crm-forms-btn-add {
    border: none;
    border-radius: 3px;
    background: #7cb342;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.crm-forms-btn-add:hover {
    filter: brightness(1.06);
}

.crm-forms-search {
    flex: 1 1 220px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 6px 12px;
}

.crm-forms-search-icon {
    opacity: 0.65;
    font-size: 13px;
}

.crm-forms-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.crm-forms-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.crm-forms-btn-settings {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-forms-btn-settings:hover {
    background: rgba(255, 255, 255, 0.18);
}

.crm-forms-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.crm-forms-table-head {
    display: grid;
    grid-template-columns: 36px 36px minmax(100px, 1.1fr) minmax(90px, 1fr) 100px 72px minmax(90px, 1fr) minmax(
            88px,
            0.9fr
        )
        minmax(88px, 0.9fr);
    align-items: center;
    gap: 4px 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e6ea;
    font-size: 12px;
    font-weight: 600;
    color: #525c69;
    background: #fff;
    flex-shrink: 0;
}

.crm-forms-th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-forms-th--check,
.crm-forms-th--gear {
    text-align: center;
    color: #a8b0bc;
}

.crm-forms-help {
    margin-left: 2px;
    opacity: 0.55;
    font-size: 11px;
    cursor: help;
}

.crm-forms-scroll {
    flex: 1;
    min-height: 200px;
    overflow: auto;
    position: relative;
}

.crm-forms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.crm-forms-table tbody:empty {
    display: none;
}

.crm-forms-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.crm-forms-empty {
    padding: 48px 24px 64px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.crm-forms-empty-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.crm-forms-empty-hint {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #868d95;
}

@media (max-width: 1100px) {
    .crm-forms-table-head {
        min-width: 900px;
    }
    .crm-forms-scroll {
        overflow-x: auto;
    }
}

/* --- CRM Pagamento --- */
.crm-payment-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: -20px;
    background: #eef3f8;
}

.crm-payment-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #d9e1ea;
    background: #f7f9fb;
}

.crm-payment-title {
    margin: 0;
    font-size: 26px;
    color: #3e4a59;
    font-weight: 500;
}

.crm-payment-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.crm-payment-pill {
    border: 1px solid #cfd7e1;
    background: #fff;
    color: #6a7584;
    border-radius: 4px;
    font-size: 12px;
    padding: 5px 9px;
    cursor: pointer;
}

.crm-payment-stage {
    position: relative;
    flex: 1;
    margin: 12px;
    border-radius: 6px;
    background: #f8fafc;
    overflow: hidden;
}

.crm-payment-hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 44px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.crm-payment-hero-title {
    margin: 0 0 16px;
    color: #57a9dc;
    font-size: 42px;
    font-weight: 300;
}

.crm-payment-hero-subtitle {
    margin: 0 0 20px;
    color: #6d7786;
    font-size: 16px;
    line-height: 1.45;
}

.crm-payment-video {
    position: relative;
    display: inline-block;
    border: 1px solid #dce5ef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(22, 41, 73, 0.12);
}

.crm-payment-video img {
    display: block;
    width: min(96vw, 520px);
    max-width: 520px;
    height: auto;
}

.crm-payment-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 0, 0, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.crm-payment-copy {
    margin: 24px auto 16px;
    max-width: 630px;
    color: #6f7987;
    font-size: 14px;
    line-height: 1.55;
}

.crm-payment-cta-copy {
    margin: 22px 0 16px;
    color: #6d7786;
    font-size: 18px;
}

.crm-payment-cta-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #bef44d 0%, #88c730 100%);
    color: #27411a;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
}

.crm-payment-info-link {
    margin-top: 22px;
    display: inline-block;
    color: #57a9dc;
    text-decoration: underline;
    font-size: 14px;
}

.crm-payment-cloud {
    position: absolute;
    border: 3px solid #d8edf8;
    background: transparent;
    border-radius: 999px;
    opacity: 0.9;
}

.crm-payment-cloud::before,
.crm-payment-cloud::after {
    content: '';
    position: absolute;
    border: inherit;
    background: inherit;
    border-radius: 999px;
}

.crm-payment-cloud--left {
    width: 190px;
    height: 88px;
    left: 70px;
    top: 280px;
}

.crm-payment-cloud--left::before {
    width: 72px;
    height: 72px;
    left: 20px;
    top: -36px;
}

.crm-payment-cloud--left::after {
    width: 90px;
    height: 90px;
    right: 16px;
    top: -42px;
}

.crm-payment-cloud--right {
    width: 102px;
    height: 48px;
    right: 102px;
    top: 124px;
}

.crm-payment-cloud--right::before {
    width: 44px;
    height: 44px;
    left: 10px;
    top: -22px;
}

.crm-payment-cloud--right::after {
    width: 48px;
    height: 48px;
    right: 8px;
    top: -24px;
}

.crm-payment-cloud--big {
    width: 250px;
    height: 120px;
    right: 56px;
    bottom: 148px;
    background: #d8edf8;
    border-color: #d8edf8;
}

.crm-payment-cloud--big::before {
    width: 92px;
    height: 92px;
    left: 28px;
    top: -44px;
}

.crm-payment-cloud--big::after {
    width: 108px;
    height: 108px;
    right: 20px;
    top: -54px;
}

/* --- Terminal de pagamento --- */
.terminal-payment-view {
    flex: 1;
    min-height: 0;
    margin: -20px;
    overflow: hidden;
}

.terminal-payment-scene {
    position: relative;
    height: 100%;
    min-height: 640px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 25% 70%, #2d5cad 0%, #0c2f77 30%, #0c1f62 54%, #070d3a 100%);
}

.terminal-payment-header {
    color: rgba(255, 255, 255, 0.95);
    font-size: 26px;
    font-weight: 500;
}

.terminal-payment-card {
    margin: 34px auto 0;
    position: relative;
    width: min(96%, 980px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.terminal-payment-panel {
    width: min(100%, 550px);
    min-height: 300px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    padding: 34px 34px 28px;
}

.terminal-payment-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    color: #d5733e;
}

.terminal-payment-subtitle {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.28;
    color: #2f3e52;
}

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

.terminal-payment-list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 20px;
    color: #627287;
    font-size: 14px;
}

.terminal-payment-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #40c5d9;
    position: absolute;
    left: 0;
    top: 7px;
}

.terminal-payment-connect-btn {
    margin: 16px auto 0;
    display: block;
    border: none;
    border-radius: 3px;
    background: linear-gradient(180deg, #c7f24a 0%, #9ad12a 100%);
    color: #344724;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 24px;
    cursor: pointer;
}

.terminal-payment-phone {
    width: 220px;
    margin-left: -18px;
    margin-top: -24px;
    border-radius: 24px;
    background: #f4f6f8;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.terminal-payment-phone-notch {
    width: 74px;
    height: 12px;
    border-radius: 999px;
    background: #e7eaee;
    margin: 2px auto 8px;
}

.terminal-payment-phone-content {
    border-radius: 16px;
    background: #fff;
    min-height: 344px;
    padding: 18px 16px;
}

.terminal-payment-phone-row {
    height: 8px;
    border-radius: 999px;
    background: #e8edf3;
    margin-bottom: 10px;
}

.terminal-payment-phone-row--short {
    width: 76%;
}

.terminal-payment-phone-row--small {
    width: 42%;
}

.terminal-payment-amount {
    margin: 18px 0 14px;
    color: #4e5a68;
    font-size: 20px;
    font-weight: 500;
}

.terminal-payment-qr {
    margin: 0 auto;
    width: 122px;
    height: 122px;
    border: 2px solid #d8dfe7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #2b3a4f;
    font-size: 54px;
}

.terminal-payment-footer {
    margin-top: auto;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* --- Faturas --- */
.invoices-kanban-view {
    flex: 1;
    min-height: 0;
    margin: -20px;
    overflow: hidden;
}

.invoices-kanban-shell {
    height: 100%;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: #fff;
}

.invoices-kanban-topbar {
    padding: 12px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoices-kanban-topbar-left,
.invoices-kanban-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoices-kanban-title {
    margin: 0 6px 0 0;
    font-size: 33px;
    font-weight: 500;
}

.invoices-kanban-create {
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
    padding: 8px 14px;
}

.invoices-kanban-ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 4px;
    background: rgba(15, 41, 95, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
}

.invoices-kanban-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: rgba(8, 25, 67, 0.45);
    padding: 6px 10px;
    min-width: 180px;
}

.invoices-kanban-search input {
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    width: 100%;
    font-size: 12px;
}

.invoices-kanban-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.invoices-kanban-subnav {
    margin: 0 14px 4px;
}

.invoices-board-root {
    flex: 1;
    min-height: 0;
    padding: 0 14px 14px;
}

/* --- Vendas recorrentes --- */
.recurring-sales-view {
    flex: 1;
    min-height: 0;
    margin: -20px;
    overflow: hidden;
}

.recurring-sales-shell {
    height: 100%;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 26% 74%, #2d5cad 0%, #0c2f77 30%, #0c1f62 54%, #070d3a 100%);
    color: #fff;
    padding: 10px 8px 10px;
    box-sizing: border-box;
}

.recurring-sales-head {
    margin-bottom: 8px;
}

.recurring-sales-title {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
}

.recurring-sales-table-wrap {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.recurring-sales-table {
    width: 100%;
    border-collapse: collapse;
    color: #2d3643;
    font-size: 12px;
}

.recurring-sales-table th,
.recurring-sales-table td {
    border-bottom: 1px solid #eef1f4;
    padding: 9px 10px;
    text-align: left;
    white-space: nowrap;
}

.recurring-sales-table th {
    background: #f7f9fb;
    color: #556170;
    font-size: 11px;
    font-weight: 600;
}

/* Ativo / ConfiguraÃÂ§ÃÂµes: forÃÂ§a alinhamento ÃÂ  esquerda (evita switches centrados na cÃÂ©lula). */
.recurring-sales-table thead th:nth-child(2),
.recurring-sales-table tbody td:nth-child(2),
.recurring-sales-table thead th:nth-child(3),
.recurring-sales-table tbody td:nth-child(3) {
    text-align: left;
    vertical-align: middle;
}

.recurring-sales-toggle {
    display: inline-block;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d5dce4;
    background: #eef2f6;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.recurring-sales-toggle::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d7dde5;
    position: absolute;
    left: 1px;
    top: 1px;
    transition: transform 0.12s ease;
}

.recurring-sales-toggle[aria-pressed='true'] {
    background: #6ad38f;
    border-color: #61c985;
}

.recurring-sales-toggle[aria-pressed='true']::after {
    transform: translateX(16px);
}

.recurring-sales-edit-btn {
    display: inline-block;
    border: 1px solid #d6dde6;
    background: #f8fafc;
    color: #4f5b68;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    vertical-align: middle;
}

.recurring-sales-badge {
    border: 1px solid #d8dee7;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    color: #5e6b7a;
}

.recurring-sales-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #eef1f4;
    padding: 8px 10px;
    color: #4d5a69;
    font-size: 11px;
}

.recurring-sales-foot-left,
.recurring-sales-foot-center,
.recurring-sales-foot-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.recurring-sales-foot-link {
    border: none;
    background: transparent;
    color: #4d5a69;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.contact-center-inner {
    flex: 1;
    padding: 24px 28px 48px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-center-head {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cc-channels-table-shell {
    margin-bottom: 20px;
}

.cc-tab-panel[hidden] {
    display: none !important;
}

/* Conversas Ã¢ÂÂ estilo Bitrix (lista + painel lateral) */
.cc-conversations-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-chats-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.cc-chats-list-panel {
    width: 360px;
    max-width: 42vw;
    min-width: 280px;
    flex-shrink: 0;
    min-height: 0;
    border-right: 1px solid #eef2f4;
    overflow: hidden;
}

.cc-chats-list-panel .chat-search-header,
.cc-chats-list-panel .cc-chats-toolbar,
.cc-chats-list-panel .cc-chats-list-status {
    flex-shrink: 0;
}

.cc-chats-list-panel .chat-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.cc-chats-list-panel .chat-list[hidden] {
    display: none !important;
}

.cc-chats-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.cc-chats-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px 10px;
    flex-wrap: wrap;
}

.cc-chats-filter-select {
    flex: 1;
    min-width: 120px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    background: #fff;
    color: #333;
}

.cc-chats-list-status {
    margin: 0;
    padding: 0 15px 8px;
    font-size: 11px;
    color: #80868e;
    min-height: 16px;
}

.cc-chats-list-status.is-ok {
    color: #2e7d32;
}

.cc-chats-list-status.is-err {
    color: #c62828;
}

.cc-chats-empty {
    padding: 32px 20px;
    text-align: center;
    color: #80868e;
}

.cc-chats-empty i {
    font-size: 36px;
    color: #c5cad0;
    margin-bottom: 12px;
    display: block;
}

.cc-chats-empty p {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #525c69;
}

.cc-chats-empty span {
    font-size: 12px;
}

.cc-chats-active-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(16px, 0, 0);
    pointer-events: none;
    transition:
        opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.cc-chats-active-panel.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.cc-chats-active-panel.is-switching .chat-messages-area {
    opacity: 0.4;
    transition: opacity 0.14s ease;
}

.cc-chats-active-panel[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .cc-chats-active-panel,
    .cc-chats-placeholder,
    .chat-modal,
    .chat-modal-overlay {
        transition: none !important;
    }
}

.cc-chats-active-panel .chat-room-header,
.cc-chats-active-panel .chat-input-area {
    flex-shrink: 0;
}

.cc-chats-active-panel .chat-messages-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.cc-chats-active-panel .chat-input-area input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.cc-chats-active-panel .chat-send-btn {
    border: none;
    cursor: pointer;
}

.cc-chats-active-panel .chat-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cc-chats-active-panel .chat-message-row--out {
    margin-left: auto;
    flex-direction: row-reverse;
}

.cc-chats-active-panel .chat-message-row--out .chat-message-bubble {
    background: #dcf8c6;
    border-top-left-radius: 8px;
    border-top-right-radius: 0;
}

.cc-chats-active-panel .chat-messages-empty {
    text-align: center;
    color: #80868e;
    font-size: 13px;
    margin: auto;
    padding: 24px;
}

.cc-conv-channel-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 1px solid #e8ecef;
    background: #f8fafb;
}

.cc-conv-channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.cc-conv-channel-tab {
    padding: 0 10px;
    height: 30px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cc-conv-channel-tab:hover:not(.is-active) {
    background: #f5f5f5;
}

.cc-conv-channel-tab.is-active {
    background: #2fc6f6;
    border-color: #2fc6f6;
    color: #fff;
    font-weight: 600;
}

.cc-conv-channel-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.cc-conv-new-channel-wrap {
    position: relative;
    flex-shrink: 0;
}

.cc-conv-new-channel-btn {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #2fc6f6;
    border-radius: 6px;
    background: #fff;
    color: #0b7ea4;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cc-conv-new-channel-btn:hover {
    background: #e8f9fe;
}

.cc-conv-new-channel-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
}

.cc-conv-new-channel-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.cc-conv-new-channel-item:hover:not(:disabled) {
    background: #f0f7fa;
}

.cc-conv-new-channel-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cc-conv-new-channel-empty {
    padding: 10px;
    font-size: 12px;
    color: #80868e;
}

.deal-panel-contact-channels {
    margin-bottom: 12px;
}

.deal-panel-contact-channels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.deal-panel-contact-channels-title {
    font-size: 12px;
    font-weight: 600;
    color: #525c69;
}

.deal-panel-contact-channels-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.deal-panel-contact-conv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-messages-loading,
.contact-center-messages-loading {
    text-align: center;
    color: #80868e;
    font-size: 13px;
    margin: auto;
    padding: 24px;
}

.chat-messages-loading i,
.contact-center-messages-loading i {
    margin-right: 8px;
    color: #2fc6f6;
}

.cc-conv-slide-actions .cc-conv-status-select {
    min-width: 120px;
}

.cc-chats-placeholder {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #e8f4fb 0%, #d6eef8 100%);
    color: #80868e;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.cc-chats-placeholder[hidden] {
    display: none !important;
}

.cc-chats-placeholder i {
    font-size: 48px;
    color: rgba(61, 168, 245, 0.45);
}

.cc-chats-placeholder p {
    margin: 0;
    font-size: 15px;
    color: #525c69;
}

.chat-list-item .chat-preview-channel {
    color: #a0a5aa;
}

.chat-list-item.active .chat-preview-channel {
    color: rgba(255, 255, 255, 0.75);
}

.cc-msg-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #3da8f5;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.chat-message-row--out .cc-msg-initial {
    background: #22c332;
}

.cc-conversations-modal .cc-chats-shell--modal {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.cc-conversations-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-conversations-modal-topbar {
    flex-shrink: 0;
}

.cc-conversations-modal.open {
    z-index: 6500;
}

#ccConversationsModalOverlay.open {
    z-index: 6450;
}

.cc-conv-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cc-conv-filter-select,
.cc-conv-status-select {
    min-width: 160px;
    width: auto;
    padding: 6px 10px;
    font-size: 13px;
}

.cc-conversations-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 16px;
    align-items: start;
}

@media (max-width: 1100px) {
    .cc-conversations-layout {
        grid-template-columns: 1fr;
    }
}

.cc-conversations-table-shell {
    min-height: 360px;
}

.cc-conversations-table tbody tr {
    cursor: pointer;
}

.cc-conversations-table tbody tr.is-active {
    background: #eef6ff;
}

.cc-conv-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.cc-conv-status-badge--open {
    background: #e8f5e9;
    color: #2e7d32;
}

.cc-conv-status-badge--pending {
    background: #fff8e1;
    color: #f57f17;
}

.cc-conv-status-badge--closed {
    background: #eceff1;
    color: #546e7a;
}

.cc-conversation-detail {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 360px;
    max-height: calc(100vh - 220px);
}

.cc-conversation-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f3;
}

.cc-conversation-detail-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cc-conversation-detail-meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #828b95;
}

.cc-conv-detail-messages {
    flex: 1;
    min-height: 200px;
    max-height: none;
    overflow-y: auto;
    padding: 12px 16px;
}

.cc-conv-preview-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #828b95;
    font-size: 12px;
}

.cc-col-actions {
    width: 280px;
    text-align: right;
}

.cc-channels-table .cc-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.cc-table-action {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    border: 1px solid #dfe3e6;
    background: #fff;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.cc-table-action:hover {
    background: #f4f8fc;
    border-color: #2066b0;
    color: #2066b0;
}

.cc-table-action--primary {
    background: #2066b0;
    border-color: #2066b0;
    color: #fff;
}

.cc-table-action--primary:hover {
    background: #185494;
    color: #fff;
}

.cc-table-action--danger {
    color: #c41e3a;
    border-color: #f0c2c8;
}

.cc-table-action--danger:hover {
    background: #fff5f5;
    border-color: #c41e3a;
    color: #c41e3a;
}

.cc-channel-name-cell strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.cc-channel-umnico-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8a9299;
    font-weight: normal;
}

.cc-channel-module-cell {
    font-size: 13px;
    color: #525c69;
}

.cc-channel-module-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2f5;
    color: #525c69;
}

.cc-channel-module-badge--wa {
    background: #e8f7ee;
    color: #1a7f37;
}

.cc-channel-module-badge--messenger {
    background: #e8f0ff;
    color: #185494;
}

.cc-inbox-panel {
    margin-top: 8px;
}

.cc-channel-edit-modal {
    max-width: 440px;
    max-height: min(90vh, 860px);
    overflow-y: auto;
}

.cc-module-section--modal {
    margin-top: 16px;
    padding-top: 0;
    border-top: none;
}

.cc-module-optional {
    font-weight: 400;
    font-size: 11px;
    color: #858d95;
}

.cc-module-section-actions--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.cc-channel-edit-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8ecef;
}

.cc-channel-btn-danger {
    color: #c41e3a;
    border-color: #f0c2c8;
}

.cc-channel-btn-danger:hover {
    background: #fff5f5;
}

.contact-center-intro strong {
    font-weight: 600;
}

.cc-connect-auth-grid {
    margin-bottom: 4px;
}

.cc-connect-auth-actions {
    margin-top: 4px;
}

.cc-connect-input {
    max-width: none;
}

.contact-center-connections-grid {
    margin-bottom: 24px;
}

.contact-connection-card {
    min-height: 140px;
    border: 1px solid transparent;
}

.contact-connection-card--selected {
    border-color: #2066b0;
    box-shadow: 0 0 0 2px rgba(32, 102, 176, 0.15);
}

.contact-connection-card--add {
    border: 2px dashed #cfd4d8;
    background: #fafbfc;
    box-shadow: none;
}

.contact-connection-card--add:hover {
    border-color: #2066b0;
    background: #f4f8fc;
}

.contact-connection-add-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2066b0;
    background: rgba(32, 102, 176, 0.1);
}

.contact-connection-name {
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.contact-connection-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #858d95;
}

.contact-connection-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.contact-connection-status--connected {
    background: #22c55e;
}

.contact-connection-status--disconnected {
    background: #ef4444;
}

.cc-connect-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#ccConnectModalOverlay.cc-connect-modal-overlay {
    z-index: 12150;
}

.cc-channel-edit-pages-list {
    margin: 8px 0 12px;
    max-height: 220px;
    overflow-y: auto;
}

.cc-page-connected {
    margin-top: 10px;
    padding: 14px 14px 12px;
    border: 1px solid #86efac;
    background: #f0fdf4;
    border-radius: 10px;
}

.cc-page-connected__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #166534;
    background: #bbf7d0;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.cc-page-connected__name {
    font-size: 16px;
    font-weight: 700;
    color: #14532d;
    line-height: 1.3;
}

.cc-page-connected__link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #15803d;
    word-break: break-all;
}

.cc-page-connected__pipeline {
    margin: 10px 0 0;
    font-size: 12px;
    color: #166534;
    font-weight: 600;
}

.cc-pipeline-summary {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
}

.cc-pipeline-summary.is-empty {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.cc-page-connected__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cc-page-picker__lead {
    margin: 10px 0 6px;
    font-size: 13px;
    color: #475569;
}

.cc-connect-integration-btn--current {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    cursor: default;
}

.cc-connect-integration-btn--busy {
    opacity: 0.72;
}

.cc-connect-modal-overlay[hidden] {
    display: none !important;
}

.cc-connect-modal {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 22px 24px 24px;
}

.cc-connect-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cc-connect-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cc-connect-modal-close {
    border: none;
    background: transparent;
    color: #858d95;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.cc-connect-modal-close:hover {
    color: #333;
    background: #f4f6f8;
}

.cc-connect-lead {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #525c69;
}

.cc-connect-account-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f0f7ff;
    border: 1px solid #c8ddf5;
    border-radius: 8px;
}

.cc-connect-account-bar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cc-connect-account-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5a6b7d;
}

.cc-connect-account-email {
    font-size: 14px;
    font-weight: 600;
    color: #1a3353;
    word-break: break-all;
}

.cc-connect-account-change {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #185494;
    background: #fff;
    border: 1px solid #b8cfe8;
    border-radius: 6px;
    cursor: pointer;
}

.cc-connect-account-change:hover {
    background: #e8f2fc;
}

.cc-connect-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.cc-connect-auth-alert--err {
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.cc-connect-auth-alert--err > i {
    margin-top: 2px;
    font-size: 16px;
    color: #c41e3a;
}

.cc-connect-auth-alert--ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.cc-connect-auth-alert-body strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.cc-connect-auth-alert-body p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.92;
}

.cc-connect-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cc-connect-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.cc-connect-type-btn:hover {
    border-color: #2066b0;
    background: #f4f8fc;
}

.cc-connect-back {
    border: none;
    background: transparent;
    color: #2066b0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 12px;
    font-family: inherit;
}

.cc-connect-integrations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-connect-integration-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dfe3e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.cc-connect-integration-btn:hover {
    border-color: #2066b0;
    background: #f4f8fc;
}

.cc-connect-integration-btn--disabled,
.cc-connect-integration-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f4f6f8;
}

.cc-connect-integration-btn--disabled:hover,
.cc-connect-integration-btn:disabled:hover {
    border-color: #dfe3e6;
    background: #f4f6f8;
}

.cc-connect-integration-btn .contact-connection-status {
    position: static;
    flex-shrink: 0;
}

.cc-connect-integration-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.cc-connect-integration-meta {
    font-size: 11px;
    color: #858d95;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-connect-empty {
    font-size: 13px;
    color: #525c69;
    line-height: 1.45;
    padding: 8px 0;
}

.contact-center-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-center-title-edit {
    font-size: 15px;
    color: #a8b0bc;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
}

.contact-center-title-edit:hover {
    color: #2066b0;
    background: rgba(32, 102, 176, 0.08);
}

.contact-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.contact-center-grid--two {
    grid-template-columns: repeat(2, minmax(140px, 200px));
    justify-content: start;
    max-width: 440px;
    margin-bottom: 0;
}

/* ConfiguraÃÂ§ÃÂ£o Messenger (MessengerAPI Ã¢ÂÂ FastAPI + Next.js) */
.contact-center-messenger-config {
    margin-top: 20px;
    padding: 20px 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 2px 12px rgba(0, 0, 0, 0.04);
    max-width: 640px;
}

.contact-center-inbox .contact-center-messenger-config {
    margin-top: 0;
    margin-bottom: 20px;
    max-width: none;
}

.contact-center-messenger-config[hidden] {
    display: none !important;
}

.contact-center-messenger-config-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.contact-center-messenger-config-lead {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: #525c69;
}

.contact-center-messenger-config-lead code {
    font-size: 12px;
    background: #eef1f4;
    padding: 1px 6px;
    border-radius: 4px;
}

.contact-center-messenger-config-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-center-messenger-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-center-messenger-label {
    font-size: 12px;
    font-weight: 600;
    color: #525c69;
}

.contact-center-messenger-input {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #dfe3e6;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-center-messenger-input:focus {
    outline: none;
    border-color: #2066b0;
    box-shadow: 0 0 0 2px rgba(32, 102, 176, 0.15);
}

.contact-center-messenger-hint {
    font-size: 11px;
    color: #858d95;
    line-height: 1.35;
}

.contact-center-messenger-hint code {
    font-size: 11px;
    background: #f4f6f8;
    padding: 0 4px;
    border-radius: 3px;
}

.contact-center-messenger-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact-center-messenger-btn {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #cfd4d8;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
}

.contact-center-messenger-btn:hover {
    border-color: #2066b0;
    color: #2066b0;
}

.contact-center-messenger-btn--primary {
    background: #2066b0;
    border-color: #2066b0;
    color: #fff;
}

.contact-center-messenger-btn--primary:hover {
    background: #185494;
    border-color: #185494;
    color: #fff;
}

.contact-center-messenger-status {
    margin: 14px 0 0;
    font-size: 12px;
    color: #525c69;
    min-height: 1.2em;
}

.contact-center-messenger-status.is-ok {
    color: #1a7f37;
}

.contact-center-messenger-status.is-err {
    color: #c41e3a;
}

.contact-center-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-center-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-center-intro {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #525c69;
}

.cc-channel-workspace {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 16px;
    margin-top: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .cc-channel-workspace {
        grid-template-columns: 1fr;
    }
}

.cc-channel-settings {
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.cc-channel-settings-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.cc-channel-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cc-channel-btn-danger {
    color: #c41e3a;
    border-color: #f0c2c8;
}

.cc-channel-btn-danger:hover {
    background: #fff5f5;
}

.cc-module-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8ecef;
}

.cc-module-section-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.cc-module-info {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #525c69;
}

.cc-module-section-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-channel-main {
    min-width: 0;
}

.cc-channel-main .contact-center-inbox {
    margin-top: 0;
}

.contact-connection-card-sub {
    font-size: 11px;
    color: #858d95;
    margin-top: 4px;
    text-align: center;
    line-height: 1.3;
}

.contact-center-inbox {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.contact-center-inbox-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-center-inbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-center-channels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
}

.contact-center-channel-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #333;
    font-size: 12px;
}

.contact-center-channel-pill--messenger {
    background: #e7f0ff;
    color: #0866ff;
}

.contact-center-channel-pill--whatsapp {
    background: #e8f8ef;
    color: #128c7e;
}

.contact-center-inbox-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 12px;
    min-height: 420px;
}

@media (max-width: 900px) {
    .contact-center-inbox-layout {
        grid-template-columns: 1fr;
    }
}

.contact-center-conv-list-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.contact-center-inbox-subtitle {
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.contact-center-conv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 380px;
    overflow-y: auto;
}

.contact-center-conv-empty {
    padding: 16px 12px;
    font-size: 13px;
    color: #666;
}

.contact-center-conv-item.is-active .contact-center-conv-btn {
    background: #e7f0ff;
}

.contact-center-conv-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.contact-center-conv-btn:hover {
    background: #f3f4f6;
}

.contact-center-conv-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #111;
}

.contact-center-conv-preview {
    display: block;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.contact-center-conv-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.contact-center-chat-wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.contact-center-chat-head {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.contact-center-chat-head #ccChatTitle {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.contact-center-chat-contact {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.contact-center-messages {
    flex: 1;
    min-height: 280px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
    background: #f9fafb;
}

.contact-center-messages-empty {
    color: #888;
    font-size: 13px;
    text-align: center;
    margin: 24px 0;
}

.contact-center-msg {
    max-width: 78%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.contact-center-msg--in {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-right: auto;
}

.contact-center-msg--out {
    background: #0866ff;
    color: #fff;
    margin-left: auto;
}

.contact-center-msg-time {
    display: block;
    font-size: 10px;
    opacity: 0.75;
    margin-top: 4px;
}

.contact-center-send-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.contact-center-message-input {
    flex: 1;
    resize: vertical;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
}

.contact-center-attach-btn,
.chat-input-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}

.contact-center-attach-btn:hover:not(:disabled),
.chat-input-attach-btn:hover:not(:disabled) {
    color: #0866ff;
    border-color: #93c5fd;
    background: #eff6ff;
}

.contact-center-attach-btn:disabled,
.chat-input-attach-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cc-conv-drop-active {
    outline: 2px dashed #0866ff;
    outline-offset: -4px;
}

.cc-conv-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 102, 255, 0.12);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.cc-conv-drop-overlay[hidden] {
    display: none !important;
}

.cc-conv-drop-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0866ff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(8, 102, 255, 0.15);
}

.cc-conv-drop-overlay__inner i {
    font-size: 28px;
}

/* Composer de anexos Ã¢ÂÂ estilo WhatsApp Web */
body.cc-attach-composer-open {
    overflow: hidden;
}

.cc-attach-composer {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.cc-attach-composer[hidden] {
    display: none !important;
}

.cc-attach-composer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 33, 0.92);
}

.cc-attach-composer__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    height: 100%;
    color: #e9edef;
}

.cc-attach-composer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #202c33;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.cc-attach-composer__title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.cc-attach-composer__icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #aebac1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cc-attach-composer__icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e9edef;
}

.cc-attach-composer__preview {
    position: relative;
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b141a;
    overflow: hidden;
    padding: 16px;
}

.cc-attach-composer__preview--drag {
    outline: 2px dashed #00a884;
    outline-offset: -8px;
}

.cc-attach-composer__img,
.cc-attach-composer__video {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 4px;
}

.cc-attach-composer__doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #8696a0;
    text-align: center;
    padding: 24px;
}

.cc-attach-composer__doc i {
    font-size: 64px;
    color: #53bdeb;
}

.cc-attach-composer__doc-name {
    font-size: 14px;
    color: #e9edef;
    word-break: break-all;
    max-width: 320px;
}

.cc-attach-composer__drop-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(174, 186, 193, 0.65);
    pointer-events: none;
}

.cc-attach-composer__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    background: #111b21;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.cc-attach-composer__thumb {
    position: relative;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #202c33;
    cursor: pointer;
    flex-shrink: 0;
}

.cc-attach-composer__thumb.is-active {
    border-color: #00a884;
}

.cc-attach-composer__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc-attach-composer__thumb-doc {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #53bdeb;
    font-size: 22px;
}

.cc-attach-composer__thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.cc-attach-composer__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 16px;
    background: #202c33;
    flex-shrink: 0;
}

.cc-attach-composer__caption {
    flex: 1;
    border: none;
    border-radius: 8px;
    background: #2a3942;
    color: #e9edef;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
}

.cc-attach-composer__caption::placeholder {
    color: #8696a0;
}

.cc-attach-composer__send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #00a884;
    color: #111b21;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cc-attach-composer__send:hover:not(:disabled) {
    background: #06cf9c;
}

.cc-attach-composer__send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.contact-center-grid--partners {
    margin-bottom: 0;
}

.contact-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 128px;
    padding: 14px 8px;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 2px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.contact-service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.contact-service-card-label {
    font-size: 11px;
    line-height: 1.28;
    text-align: center;
    color: #525c69;
    font-weight: 500;
}

.contact-service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.contact-service-card-icon--mail {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.contact-service-card-icon--phone {
    background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}

.contact-service-card-icon--track {
    background: linear-gradient(145deg, #10b981, #059669);
}

.contact-service-card-icon--crm {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.contact-service-card-icon--widget {
    background: linear-gradient(145deg, #fb923c, #ea580c);
}

.contact-service-card-icon--form {
    background: linear-gradient(145deg, #14b8a6, #0d9488);
}

/* Bate-papo: precisa de contraste no card branco; no ativo (laranja) usa cÃÂ­rculo claro */
.contact-service-card-icon--live {
    background: linear-gradient(145deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.contact-service-card-icon--wa {
    background: linear-gradient(145deg, #25d366, #128c7e);
}

.contact-service-card-icon--messenger {
    background: linear-gradient(145deg, #0084ff, #0063cc);
}

.contact-service-card-icon--viber {
    background: linear-gradient(145deg, #7360f2, #5b4bdb);
}

.contact-service-card-icon--telegram {
    background: linear-gradient(145deg, #229ed9, #1c8cc8);
}

.contact-service-card-icon--apple {
    background: linear-gradient(145deg, #34c759, #28a745);
}

.contact-service-card-icon--facebook {
    background: linear-gradient(145deg, #1877f2, #0d5fbf);
}

.contact-service-card-icon--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888);
}

.contact-service-card-icon--bitrix {
    background: linear-gradient(145deg, #2fc6f6, #1fa8d4);
}

.contact-service-card-icon--market {
    background: linear-gradient(145deg, #eab308, #ca8a04);
}

.contact-service-card-icon--bot {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.contact-service-card-icon--voice {
    background: linear-gradient(145deg, #92400e, #78350f);
}

.contact-service-card--active {
    background: linear-gradient(165deg, #ff9f43 0%, #ff8c42 55%, #ff7b35 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.45);
}

.contact-service-card--active .contact-service-card-label {
    color: #fff;
}

.contact-service-card--active .contact-service-card-icon--live,
.contact-service-card--active .contact-service-card-icon--wa,
.contact-service-card--active .contact-service-card-icon--messenger {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.contact-service-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.contact-service-card--badge {
    padding-top: 20px;
}

.contact-service-card-new-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: #3b82f6;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.45);
    white-space: nowrap;
}

.contact-center-partners {
    margin-top: 8px;
}

.contact-center-partners-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.contact-service-card--partner {
    min-height: 118px;
}

@media (max-width: 720px) {
    .contact-center-subnav-more {
        margin-left: 0;
    }
}

/* --- Gerenciamento do inventÃÂ¡rio (vista completa) --- */
.prisma-inventory-manage-view {
    gap: 16px;
}

/* --- Abas Clientes / entidades (mesmo invÃÂ³lucro que InventÃÂ¡rio: hero escuro + faixa + painel branco) --- */
.prisma-entity-tab-view {
    gap: 16px;
}

.prisma-entity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.prisma-entity-head-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.prisma-entity-head-pin {
    font-size: 14px;
    color: #aeb6c7;
    margin-left: 6px;
    cursor: pointer;
    font-weight: 400;
}

.prisma-entity-create-btn.btn-create {
    background-color: #2fc062;
    border-radius: 4px;
    padding: 8px 18px;
    flex-shrink: 0;
}

.prisma-entity-filter-strip.catalog-filter-strip {
    max-width: min(960px, 100%);
}

.prisma-entity-search-field.catalog-search-field {
    flex: 1;
    min-width: 160px;
}

.prisma-entity-strip-gear {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(15, 26, 48, 0.78);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.prisma-entity-strip-gear:hover {
    background: rgba(15, 26, 48, 0.95);
    color: #fff;
}

.prisma-entity-white-panel.inventory-white-panel {
    flex: 1;
    min-height: 0;
}

.prisma-entity-panel-toolbar--extensions {
    justify-content: flex-end;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 12px;
}

.prisma-entity-toolbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.prisma-entity-extensions-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #525c69;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.prisma-entity-extensions-btn:hover {
    background: #f5f7f9;
    border-color: #cdd6e0;
}

.prisma-entity-table-shell .prisma-entity-empty.catalog-empty-state {
    inset: 48px 0 0 0;
}

.prisma-entity-table-shell.has-rows .prisma-entity-empty {
    display: none;
}

.inventory-manage-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.inventory-manage-hero-title {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
}

.inventory-impl-request-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.inventory-impl-request-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.85);
}

.inventory-subnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.inventory-subnav-item {
    font: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.inventory-subnav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.inventory-subnav-item.is-active {
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #5eb0f4;
    border-radius: 4px 4px 0 0;
}

.inventory-subnav-item i {
    font-size: 9px;
    opacity: 0.85;
}

.inventory-white-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.inventory-panel-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e8ecf0;
}

.inventory-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
}

.inventory-section-pin {
    font-size: 13px;
    color: #aeb6c7;
    margin-left: 6px;
    font-weight: 400;
    cursor: pointer;
    vertical-align: middle;
}

.inventory-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.inventory-btn-create.btn-create {
    background-color: #2fc062;
    border-radius: 4px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.inventory-search-wrap {
    flex: 1;
    min-width: 180px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f5f7f9;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
}

.inventory-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #525c69;
    outline: none;
}

.inventory-search-input::placeholder {
    color: #959ca8;
}

.inventory-search-icon {
    color: #959ca8;
    font-size: 14px;
}

.inventory-gear-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #e8ecf0;
    color: #6a737d;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.inventory-gear-btn:hover {
    background: #dde2e8;
    color: #525c69;
}

.inventory-table-shell {
    position: relative;
    flex: 1;
    min-height: 320px;
    background: #fff;
}

.inventory-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.inventory-data-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 13px;
}

.inventory-data-table thead {
    background: #f5f7f9;
    border-bottom: 1px solid #e3e6eb;
}

.inventory-data-table th {
    text-align: left;
    font-weight: 600;
    color: #828b95;
    padding: 11px 12px;
    white-space: nowrap;
}

.inventory-data-table th.inventory-col-narrow {
    width: 42px;
    text-align: center;
}

.inventory-data-table th.inventory-th-sorted {
    background: #e3f2fd;
    color: #2067b0;
}

.inventory-data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef0f3;
    color: #525c69;
}

.inventory-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inventory-empty-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 40px;
    pointer-events: none;
}

.inventory-empty-inner {
    max-width: 520px;
    text-align: center;
    pointer-events: auto;
}

.inventory-empty-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #525c69;
}

.inventory-empty-desc {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.5;
    color: #828b95;
}

.inventory-migrate-card {
    background: #e8f4fc;
    border: 1px solid rgba(59, 193, 244, 0.25);
    border-radius: 8px;
    padding: 22px 24px 20px;
    text-align: center;
}

.inventory-migrate-lead {
    margin: 0 0 10px;
    font-size: 14px;
    color: #3d4f5f;
    line-height: 1.45;
}

.inventory-migrate-brands {
    margin: 0 0 16px;
    font-size: 13px;
    color: #5a6a7a;
}

.inventory-brand {
    font-weight: 600;
    color: #3d4f5f;
}

.inventory-migrate-dot {
    opacity: 0.6;
}

.inventory-migrate-more {
    opacity: 0.85;
}

.inventory-migrate-cta {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: #3bc1f4;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.inventory-migrate-cta:hover {
    filter: brightness(1.05);
}

.inventory-migrate-cta:active {
    transform: translateY(1px);
}

.inventory-table-shell.has-rows .inventory-empty-layer {
    display: none;
}

.catalog-page-header.page-header {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 16px;
}

.catalog-page-title.page-title {
    font-weight: 600;
    font-size: 26px;
    color: #fff;
    margin-right: 12px;
}

.catalog-title-pin {
    font-size: 14px;
    color: #aeb6c7;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.catalog-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-btn-create.btn-create {
    background-color: #2fc062;
    border-radius: 4px;
    padding: 8px 18px;
}

.catalog-filter-strip {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    padding: 10px 14px;
    background: rgba(30, 48, 78, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: min(720px, 100%);
}

.catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 12px;
    background: rgba(37, 104, 184, 0.45);
    border-radius: 16px;
    font-size: 13px;
    color: #b8d4f5;
}

.catalog-filter-chip-label {
    white-space: nowrap;
}

.catalog-filter-chip-remove {
    font: inherit;
    line-height: 1;
    padding: 0 4px;
    border: none;
    background: transparent;
    color: #b8d4f5;
    cursor: pointer;
    opacity: 0.85;
}

.catalog-filter-chip-remove:hover {
    opacity: 1;
    color: #fff;
}

.catalog-filter-chip[hidden] {
    display: none !important;
}

/* Faixa secundÃÂ¡ria (ex.: Clientes Ã¢ÂÂ Fornecedores Ã¢ÂÂ Empresas Ã¢ÂÂ Recebidos / Planejado / Mais) */
.catalog-secondary-filter-strip {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Chips logo abaixo do tÃÂ­tulo (antes de + Criar / faixa de pesquisa) */
.catalog-secondary-filter-strip--under-title {
    margin-top: 6px;
    margin-bottom: 14px;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}

.catalog-phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 36, 58, 0.55);
    color: #e4eaf3;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.catalog-phase-pill:hover {
    background: rgba(30, 52, 82, 0.65);
    border-color: rgba(255, 255, 255, 0.22);
}

.catalog-phase-pill--active {
    border-color: rgba(76, 163, 255, 0.45);
    background: rgba(37, 88, 148, 0.45);
}

.catalog-phase-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa8ba;
    flex-shrink: 0;
}

.catalog-phase-pill--active .catalog-phase-pill-dot {
    background: #5cb3ff;
}

.catalog-phase-pill--more {
    margin-left: auto;
}

@media (max-width: 720px) {
    .catalog-phase-pill--more {
        margin-left: 0;
    }
}

#contactsMainView[data-contacts-scope="supplier"] .contacts-toolbar-default-only {
    display: none !important;
}

#contactsDataTable td.catalog-col-check,
#contactsDataTable td.catalog-col-gear {
    text-align: center;
    vertical-align: middle;
}

.contacts-cell-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.contacts-row-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e3e7ed, #cfd6df);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.contacts-cell-contact-text {
    min-width: 0;
}

.contacts-table-name-link {
    font-weight: 600;
    color: #2066b0;
    text-decoration: none;
}

.contacts-table-name-link:hover {
    text-decoration: underline;
}

.contacts-row-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #a8b0bc;
    line-height: 1.25;
}

.contacts-cell-muted {
    color: #a8b0bc;
}

.contacts-resp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contacts-resp-icon {
    color: #9aa6b7;
    font-size: 18px;
}

.contacts-row-menu-btn {
    border: none;
    background: none;
    padding: 4px 6px;
    color: #a8b0bc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
}

.contacts-row-menu-btn:hover {
    color: #525c69;
    background: #f0f2f5;
}

/* Contatos: tabela + barra de lista (estilo Kanban lista) */
#contactsMainView .contacts-list-stack {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #fff;
}

#contactsMainView .contacts-list-stack > .catalog-table-shell {
    flex: 1;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

#contactsDataTable td.catalog-col-check,
#contactsDataTable td.catalog-col-gear {
    text-align: center;
    vertical-align: middle;
}

#contactsMainView .contacts-list-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.contacts-total-qty-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    color: #3b8ad6;
    cursor: pointer;
    text-decoration: underline;
}

.contacts-total-qty-link:hover {
    color: #2066b0;
}

.catalog-search-clear {
    font-size: 20px;
    line-height: 1;
    padding: 2px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #8b95a8;
    cursor: pointer;
    flex-shrink: 0;
}

.catalog-search-clear:hover {
    color: #e8ecf2;
    background: rgba(255, 255, 255, 0.06);
}

.catalog-table th.catalog-col-star {
    width: 44px;
    text-align: center;
}

.catalog-table td.catalog-col-star {
    text-align: center;
}

.catalog-table th.catalog-col-spacer,
.catalog-table td.catalog-col-spacer {
    min-width: 80px;
    width: 36%;
    padding-left: 12px;
    padding-right: 12px;
    border-bottom-color: transparent;
}

.catalog-search-field {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(15, 26, 48, 0.6);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #e8ecf2;
    font-size: 14px;
    outline: none;
}

.catalog-search-input::placeholder {
    color: #8b95a8;
}

.catalog-search-icon {
    color: #8b95a8;
    font-size: 14px;
}

.catalog-table-shell {
    position: relative;
    flex: 1;
    min-height: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.catalog-table-scroll {
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.catalog-table thead {
    background: #f5f7f9;
    border-bottom: 1px solid #e3e6eb;
}

.catalog-table th {
    text-align: left;
    font-weight: 600;
    color: #828b95;
    padding: 12px 14px;
    white-space: nowrap;
}

.catalog-table th.catalog-col-check,
.catalog-table th.catalog-col-gear {
    width: 44px;
    text-align: center;
}

.catalog-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f3;
    color: #525c69;
}

.catalog-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-empty-state {
    position: absolute;
    inset: 56px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 24px;
}

.catalog-empty-state[hidden] {
    display: none !important;
}

.catalog-table-shell--simple .catalog-empty-state,
.catalog-empty-state--solo {
    position: relative;
    inset: auto;
    min-height: 320px;
    pointer-events: auto;
}

.catalog-empty-icon-wrap {
    position: relative;
    font-size: 56px;
    color: #c5cdd8;
    margin-bottom: 12px;
}

.catalog-empty-doc {
    opacity: 0.65;
}

.catalog-empty-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -55%);
    font-size: 28px;
    font-weight: 700;
    color: #d1d6dc;
    line-height: 1;
}

.catalog-empty-text {
    margin: 0;
    font-size: 15px;
    color: #a8b0bc;
}

.catalog-table-shell.has-rows .catalog-empty-state {
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 300;
    margin-right: 15px;
}

.btn-create {
    background-color: #51b942;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    position: relative;
    z-index: 120;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Barra + painel de filtro (dropdown animado abaixo da barra, estilo Bitrix) */
.kanban-filter-anchor {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 500px;
    align-self: flex-start;
    z-index: 80100;
    transition:
        max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
}

.kanban-filter-anchor--open {
    max-width: min(920px, calc(100vw - 32px));
    z-index: 80130;
}

.search-filter--trigger {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    background: transparent;
    border: none;
    padding: 0;
}

.kanban-filter-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 8px 14px;
    min-height: 38px;
    font: inherit;
    font-size: 14px;
    color: #525c69;
    background: #fff;
    border: 1px solid #c5cdd8;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        min-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s ease;
}

.kanban-filter-anchor--open .kanban-filter-trigger-btn {
    min-height: 42px;
    border-color: #2067b0;
    box-shadow: 0 3px 14px rgba(32, 103, 176, 0.18);
}

.kanban-filter-trigger-btn:hover {
    border-color: #a8b0bc;
}

.kanban-filter-anchor:not(.kanban-filter-anchor--open) .kanban-filter-trigger-btn--active {
    border-color: #2067b0;
    box-shadow: 0 0 0 1px rgba(32, 103, 176, 0.25);
}

.kanban-filter-trigger-label {
    flex: 1;
    min-width: 0;
    color: #525c69;
}

.kanban-filter-trigger-icon {
    color: #858fa4;
    font-size: 15px;
    flex-shrink: 0;
}

.kanban-card--filtered-out {
    display: none !important;
}

/* Overlay suave (clique fora fecha) */
.kanban-filter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80090;
    background: rgba(12, 18, 28, 0.28);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kanban-filter-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Painel desliza logo abaixo da barra */
.kanban-filter-dropdown-panel.kanban-filter-modal {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: 100%;
    min-width: min(100%, 920px);
    max-height: min(72vh, 620px);
    margin: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dce3eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-12px) scale(0.985);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s,
        box-shadow 0.32s ease;
    box-shadow: 0 8px 24px rgba(15, 18, 33, 0.08);
}

.kanban-filter-anchor--open .kanban-filter-dropdown-panel.kanban-filter-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 48px rgba(15, 18, 33, 0.22);
}

.kanban-filter-modal-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
}

.kanban-filter-modal-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #f5f7f9;
    border-right: 1px solid #e3e8ee;
    display: flex;
    flex-direction: column;
    padding: 16px 0 12px;
}

.kanban-filter-saved-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.kanban-filter-saved-list li {
    margin: 0;
}

.kanban-filter-saved-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    font-size: 14px;
    color: #2067b0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.kanban-filter-saved-item:hover {
    background: rgba(32, 103, 176, 0.08);
}

.kanban-filter-user-saved-block {
    border-top: 1px solid #e3e8ee;
    padding-top: 8px;
}

.kanban-filter-user-saved-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #858fa4;
    margin: 0;
    padding: 8px 16px 6px;
}

.kanban-filter-user-saved-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.kanban-filter-saved-item--user {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.kanban-filter-user-saved-remove {
    flex-shrink: 0;
    width: 34px;
    border: none;
    background: transparent;
    color: #c1c7d0;
    cursor: pointer;
    font-size: 12px;
}

.kanban-filter-user-saved-remove:hover {
    color: #e05555;
    background: rgba(224, 85, 85, 0.08);
}

.kanban-filter-saved-item--pinned {
    padding-right: 36px;
    position: relative;
}

.kanban-filter-saved-item--pinned::after {
    content: '\f08d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #858fa4;
}

.kanban-filter-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 0;
    border-top: 1px solid #e3e8ee;
    margin-top: auto;
}

.kanban-filter-save-link {
    flex: 1;
    text-align: left;
    font-size: 13px;
    color: #2067b0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
}

.kanban-filter-save-link i {
    margin-right: 6px;
    font-size: 11px;
}

.kanban-filter-sidebar-gear {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #858fa4;
    cursor: pointer;
    border-radius: 6px;
}

.kanban-filter-sidebar-gear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #525c69;
}

.kanban-filter-modal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 16px;
    overflow: hidden;
}

.kanban-filter-fields {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.kanban-filter-field-row {
    display: grid;
    grid-template-columns: 160px 1fr 36px;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.kanban-filter-field-row--split .kanban-filter-total-wrap {
    grid-column: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.kanban-filter-field-row--split .kanban-filter-field-more {
    grid-column: 3;
}

.kanban-filter-field-label {
    font-size: 13px;
    color: #525c69;
    margin: 0;
}

.kanban-filter-input,
.kanban-filter-select {
    font: inherit;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #cfd4dc;
    border-radius: 4px;
    color: #333;
    background: #fff;
    min-width: 0;
}

.kanban-filter-input:focus,
.kanban-filter-select:focus {
    outline: none;
    border-color: #2067b0;
    box-shadow: 0 0 0 2px rgba(32, 103, 176, 0.15);
}

.kanban-filter-input--grow {
    flex: 1;
}

.kanban-filter-select--narrow {
    flex: 0 0 auto;
    min-width: 130px;
    max-width: 42%;
}

.kanban-filter-field-more {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #a8b0bc;
    cursor: pointer;
    border-radius: 4px;
}

.kanban-filter-field-more:hover {
    background: #f5f7f9;
    color: #525c69;
}

.kanban-filter-modal-links {
    display: flex;
    gap: 20px;
    padding: 8px 0 16px;
}

.kanban-filter-link {
    font-size: 13px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: #858fa4;
}

.kanban-filter-link--primary {
    color: #2067b0;
}

.kanban-filter-modal-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #eef2f4;
}

.kanban-filter-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2067b0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.kanban-filter-btn-search:hover {
    background: #185899;
}

.kanban-filter-btn-reset {
    font-size: 14px;
    color: #2067b0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
}

.kanban-filter-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #858fa4;
    cursor: pointer;
    border-radius: 6px;
    z-index: 2;
}

.kanban-filter-modal-close:hover {
    background: #f0f2f5;
    color: #333;
}

body.kanban-filter-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .kanban-filter-anchor--open {
        max-width: calc(100vw - 24px);
    }
}

.status-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #aeb6c7;
}

.status-filters span {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
}

/* WHITE BOARD (Contacts List) */
.white-board {
    background-color: #fff;
    border-radius: 12px;
    color: #333;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 500px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 15px 10px;
    font-size: 13px;
    color: #80868e;
    border-bottom: 2px solid #eef2f4;
    font-weight: 600;
}

.data-table td {
    padding: 15px 10px;
    font-size: 14px;
    border-bottom: 1px solid #eef2f4;
    vertical-align: middle;
}

.contact-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d1d5d8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    color: #2067b0;
    font-weight: 600;
    cursor: pointer;
}
.contact-name:hover {
    text-decoration: underline;
}

.contact-type {
    font-size: 12px;
    color: #80868e;
}

.activity-none {
    color: #80868e;
    font-size: 13px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 13px;
}
.user-badge i {
    color: #80868e;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    font-size: 12px;
    color: #80868e;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eef2f4;
}

.action-btn {
    background: transparent;
    border: 1px solid #d1d5d8;
    padding: 6px 12px;
    border-radius: 4px;
    color: #535c69;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.action-btn:hover {
    background: #f8f9fa;
}

.action-select {
    padding: 6px;
    border: 1px solid #d1d5d8;
    border-radius: 4px;
    color: #535c69;
    font-size: 12px;
}

/* SIDEBAR COLLAPSED STATE */
.sidebar {
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 65px;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .menu-icon {
    margin-right: 0;
}

.sidebar.collapsed .menu-item {
    font-size: 0;
    justify-content: center !important;
    padding: 15px 0;
}

.sidebar.collapsed .menu-item i {
    font-size: 18px;
    margin-right: 0;
}

.sidebar.collapsed .menu-item span {
    font-size: 0;
}

.sidebar.collapsed .menu-item > span > i {
    font-size: 18px;
}

.sidebar.collapsed .colab-text {
    display: none;
}

.sidebar.collapsed .upgrade-btn {
    font-size: 0;
    padding: 10px 0;
}

.sidebar.collapsed .upgrade-btn i {
    font-size: 18px;
    margin-right: 0;
}

/* Submenu collapse functionality */
.submenu-hidden {
    height: 0 !important;
    opacity: 0;
    padding: 0 !important;
}

/* OVERLAY Ã¢ÂÂ acima do topbar (z-index 5000), abaixo de modais globais (Ã¢ÂÂ¥9000) e toast */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 5900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* SLIDING PANEL (Open Contact) Ã¢ÂÂ fixed + vw: evita largura Ã¢ÂÂespremidaÃ¢ÂÂ por % do main-wrapper */
.contact-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: calc(100vw - 250px - 100px);
    max-width: calc(100vw - 250px - 100px);
    height: 100vh;
    height: 100dvh;
    background-color: #f5f7f9;
    z-index: 6000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    color: #333;
    border-top-left-radius: 15px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.contact-panel.open {
    right: 60px;
}

/* Ficha de contato (lista): reutiliza o painel lateral sem funil de negÃÂ³cio */
.contact-panel.contact-panel--client-mode .panel-pipeline {
    display: none;
}

body:has(.sidebar.collapsed) .contact-panel {
    width: calc(100vw - 65px - 100px);
    max-width: calc(100vw - 65px - 100px);
}

.close-panel-btn {
    position: absolute;
    top: 15px;
    left: -40px;
    width: 40px;
    height: 40px;
    background-color: #2fc6f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.panel-header {
    background-color: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #eef2f4;
}

.panel-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: #b0b4b8;
    font-size: 16px;
    cursor: pointer;
}

.panel-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #a0a5aa;
}

.panel-header-actions i {
    cursor: pointer;
    font-size: 18px;
}

.deal-panel-move-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5d8;
    background: #fff;
    color: #525c69;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.deal-panel-busca-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2fc6f6;
    background: #e8f8fe;
    color: #0b6e99;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.deal-panel-busca-btn:hover:not(:disabled) {
    background: #d3f1fb;
    border-color: #1aadde;
}

.deal-panel-busca-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.deal-panel-automations-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f0b429;
    background: #fff8e8;
    color: #8a5b00;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.deal-panel-automations-btn:hover:not(:disabled) {
    background: #ffefc7;
    border-color: #d9a017;
}

.deal-panel-automations-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.deal-panel-automations-btn--pause {
    border-color: #7aa2c7;
    background: #eef5fb;
    color: #2f5f86;
}

.deal-panel-automations-btn--resume {
    border-color: #5fad7a;
    background: #eef9f1;
    color: #2a6b40;
}

.deal-panel-automations-btn--stop {
    border-color: #d98a8a;
    background: #fdf0f0;
    color: #8a2f2f;
}

.deal-panel-upcoming {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    background: #fafbfc;
}

.deal-panel-upcoming-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.deal-panel-upcoming-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.deal-panel-upcoming-cancel {
    border: 1px solid #d98a8a;
    background: #fff;
    color: #8a2f2f;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.deal-panel-upcoming-cancel:hover:not(:disabled) {
    background: #fdf0f0;
}

.deal-panel-upcoming-cancel:disabled {
    opacity: 0.6;
    cursor: wait;
}

.deal-panel-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deal-panel-upcoming-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.deal-panel-upcoming-item--scheduled {
    border-color: #f0c36a;
    background: #fff8e8;
}

.deal-panel-upcoming-item--due {
    border-color: #7aa2c7;
    background: #eef5fb;
}

.deal-panel-upcoming-item--paused {
    border-color: #b0b8c4;
    background: #f3f4f6;
}

.deal-panel-upcoming-item--unscheduled {
    border-color: #e5e7eb;
    background: #fff;
}

.deal-panel-upcoming-item-main {
    min-width: 0;
}

.deal-panel-upcoming-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.deal-panel-upcoming-item-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.deal-panel-upcoming-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.deal-panel-upcoming-badge--scheduled {
    background: #f0b429;
    color: #5c3d00;
}

.deal-panel-upcoming-badge--due {
    background: #3b82f6;
    color: #fff;
}

.deal-panel-upcoming-badge--paused {
    background: #94a3b8;
    color: #fff;
}

.deal-panel-upcoming-badge--unscheduled {
    background: #e2e8f0;
    color: #475569;
}

.deal-panel-upcoming-item-cancel {
    border: none;
    background: transparent;
    color: #8a2f2f;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
}

.deal-panel-upcoming-item-cancel:hover {
    text-decoration: underline;
}

.deal-panel-move-btn:hover {
    border-color: #2fc6f6;
    color: #2fc6f6;
}

.deal-panel-move-overlay .deal-panel-move-modal {
    max-width: 420px;
}

#dealPanelMovePipeline {
    font-size: 12px;
}

.deal-panel-move-lead {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6a737d;
    line-height: 1.45;
}

.deal-panel-move-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.contact-panel.contact-panel--client-mode .deal-panel-header-actions {
    display: none;
}

.dropdown-btn {
    border: 1px solid #d1d5d8;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    color: #535c69;
    font-size: 13px;
    cursor: pointer;
}

.panel-tabs {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #80868e;
}

.panel-tab {
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
}

.panel-tab.active {
    color: #2067b0;
    font-weight: 600;
}

.panel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2067b0;
}

.panel-content {
    display: flex;
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.panel-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #d1d5d8;
    padding-right: 20px;
}

.info-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f4;
    padding: 15px;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #80868e;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.edit-link {
    color: #a0a5aa;
    text-transform: lowercase;
    cursor: pointer;
}

.field-group {
    margin-bottom: 15px;
}

.field-label {
    font-size: 12px;
    color: #80868e;
    margin-bottom: 5px;
}

.field-value {
    font-size: 14px;
    color: #333;
}

.field-value a {
    color: #2067b0;
    text-decoration: none;
}

.deal-panel-field-editable,
.deal-panel-custom-field-editable {
    cursor: default;
    border-radius: 4px;
}
.deal-panel-field-editable:hover,
.deal-panel-custom-field-editable:hover {
    background: transparent;
}
.deal-panel-field-empty {
    color: #d1d5db !important;
    font-weight: 400;
}
.deal-panel-inline-select {
    cursor: pointer;
}
.deal-panel-custom-field--editing {
    padding: 0;
    background: transparent;
}
.deal-panel-custom-field-inline-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #333;
    border: 1px solid #2067b0;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0;
    background: #fff;
}
.deal-panel-custom-field-row .field-label .deal-panel-custom-field-inline-input {
    font-size: 12px;
}

.deal-panel-client-field-group {
    position: relative;
}
.deal-panel-client-picker {
    margin-top: 10px;
}
.deal-panel-client-picker-inner {
    border: 1px solid #dfe3e9;
    border-radius: 2px;
    background: #fff;
    padding: 12px 14px 14px;
    box-shadow: 0 1px 4px rgba(15, 20, 35, 0.06);
}
.deal-panel-client-picker-section-head {
    margin-bottom: 8px;
}
.deal-panel-client-picker-field {
    margin-bottom: 0;
}
.deal-panel-client-picker-field--company {
    margin-top: 14px;
}
.deal-panel-client-picker-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eef2f4;
    border-radius: 2px;
    background: #fff;
}
.deal-panel-client-picker-result {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #f0f2f4;
    background: #fff;
    text-align: left;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}
.deal-panel-client-picker-result:hover,
.deal-panel-client-picker-result:focus-visible {
    background: #f5f7fa;
    outline: none;
}
.deal-panel-client-picker-results li:last-child .deal-panel-client-picker-result {
    border-bottom: none;
}
.deal-panel-client-picker-add-participant {
    margin-top: 8px;
}

.deal-panel-sheet-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px 16px;
    background: #fff;
    border-top: 1px solid #cdd4de;
    box-shadow: 0 -4px 16px rgba(15, 20, 35, 0.06);
    z-index: 2;
}
.deal-panel-sheet-footer[hidden] {
    display: none !important;
}
.contact-panel.contact-panel--sheet-editing .panel-content {
    padding-bottom: 8px;
    min-height: 0;
}

.deal-panel-ficha-card {
    margin-top: 0;
}
.deal-panel-ficha-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.deal-panel-ficha-grid {
    display: grid;
    gap: 10px 14px;
}
.deal-panel-ficha-grid--2 {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
    .deal-panel-ficha-grid--2 {
        grid-template-columns: 1fr;
    }
}
.deal-panel-ficha-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.deal-panel-ficha-section-title {
    margin: 10px 0 2px;
    padding-top: 10px;
    border-top: 1px solid #eef2f4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #80868e;
}
.deal-panel-ficha-section-title:first-child,
.deal-panel-ficha-section-title--first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.deal-panel-ficha-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 0 4px;
}
.deal-panel-ficha-label--inline {
    margin-left: 8px;
}
.deal-panel-ficha-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.deal-panel-ficha-row--check label.deal-panel-ficha-check,
label.deal-panel-ficha-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    margin: 0;
}
.deal-panel-ficha-row--pausa {
    gap: 6px;
}
.deal-panel-ficha-pausa-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.deal-panel-ficha-pausa-controls .deal-panel-ficha-input {
    flex: 1;
    min-width: 0;
}
.deal-panel-ficha-vinculo {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #dde2e6;
}
.deal-panel-ficha-vinculo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #2fc6f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}
.deal-panel-ficha-vinculo-btn:hover {
    text-decoration: underline;
}
.deal-panel-ficha-vinculo .deal-panel-client-picker {
    margin-top: 10px;
}
.deal-panel-negocio-card .field-value {
    font-size: 14px;
}
.deal-panel-extra-card .deal-panel-custom-fields-root:empty::before {
    content: 'Nenhum campo adicional nesta ficha.';
    display: block;
    font-size: 13px;
    color: #a0a5aa;
    padding: 4px 0 8px;
}
.deal-panel-ficha-label {
    font-size: 12px;
    font-weight: 600;
    color: #6a737f;
}
.deal-panel-ficha-display {
    display: block;
    width: 100%;
    padding: 7px 2px;
    font-size: 14px;
    color: #333;
    line-height: 1.45;
    min-height: 22px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
}
.deal-panel-ficha-display--empty {
    color: #d1d5db;
    font-weight: 400;
}
.deal-panel-ficha-display--hidden {
    display: none !important;
}
.deal-panel-ficha-row:not(.deal-panel-ficha-row--editing) .deal-panel-ficha-input--hidden,
.deal-panel-ficha-row:not(.deal-panel-ficha-row--editing) .deal-panel-ficha-pausa-controls {
    display: none !important;
}
.deal-panel-ficha-row--editing .deal-panel-ficha-display {
    display: none !important;
}
.deal-panel-ficha-row--editing .deal-panel-ficha-pausa-controls {
    display: flex !important;
}
.deal-panel-ficha-checks:not(.deal-panel-ficha-checks--editing) {
    pointer-events: none;
    opacity: 0.92;
}
.deal-panel-ficha-checks:not(.deal-panel-ficha-checks--editing) input {
    pointer-events: none;
}
.deal-panel-ficha-checks.deal-panel-ficha-checks--editing {
    pointer-events: auto;
    opacity: 1;
}
.deal-panel-ficha-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cdd4de;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}
.deal-panel-ficha-input:focus {
    outline: none;
    border-color: #2fc6f6;
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.15);
}
.deal-panel-ficha-textarea {
    resize: vertical;
    min-height: 56px;
    font-family: inherit;
}
.deal-panel-ficha-hint--block {
    margin-top: 0;
}
.deal-panel-ficha-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: #a0a5aa;
    line-height: 1.4;
}
.deal-panel-ficha-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.deal-panel-ficha-badge--ativo {
    background: #e8f7ee;
    color: #1a8a4a;
}
.deal-panel-ficha-badge--inativo {
    background: #f5f5f5;
    color: #888;
}
.deal-panel-ficha-badge--idle {
    background: #eef2f4;
    color: #6a737f;
}
.deal-panel-ficha-badge--on {
    background: #e3f5fc;
    color: #2fc6f6;
}
.deal-panel-ficha-clear-btn {
    flex-shrink: 0;
    border: none;
    background: #fee;
    color: #c0392b;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.deal-panel-ficha-clear-btn:hover {
    background: #fdd;
}
.contact-panel--client-mode .deal-panel-ficha-card {
    display: none;
}

.deal-panel-negocio-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.deal-panel-negocio-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f4;
}
.deal-panel-negocio-total-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: right;
}
.deal-panel-negocio-dates {
    margin-top: 0;
}
.deal-panel-negocio-readonly {
    font-size: 14px;
    color: #333;
    min-height: 20px;
}
.deal-panel-extra-card .deal-panel-field-actions {
    margin-top: 12px;
}

/* Painel negÃÂ³cio Ã¢ÂÂ Ã¢ÂÂCriar campoÃ¢ÂÂ: lista de tipos (estilo referÃÂªncia Bitrix) */
.deal-panel-field-actions {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    color: #a0a5aa;
    font-size: 13px;
    margin-top: 20px;
    flex-wrap: wrap;
}
/* Enquanto o editor de novo campo estÃÂ¡ aberto na secÃÂ§ÃÂ£o, esconde o rodapÃÂ© da secÃÂ§ÃÂ£o (evita duplicar com o rodapÃÂ© do editor). */
.deal-panel-field-actions.deal-panel-section-field-actions--suppressed {
    display: none !important;
}
.deal-panel-field-action-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.deal-panel-field-action-link:hover,
.deal-panel-field-action-link:focus-visible {
    color: #2067b0;
    text-decoration: underline;
    outline: none;
}
.deal-panel-create-field-anchor {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}
.deal-panel-create-field-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 40px));
    max-height: min(420px, 55vh);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    box-shadow: 0 -6px 28px rgba(15, 20, 35, 0.14), 0 4px 16px rgba(15, 20, 35, 0.08);
    z-index: 6100;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
}
.deal-panel-create-field-popover[hidden] {
    display: none !important;
}
.deal-panel-create-field-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.deal-panel-create-field-list > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f3f6;
}
.deal-panel-create-field-list > li:last-child {
    border-bottom: none;
}
.deal-panel-create-field-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.deal-panel-create-field-option:hover,
.deal-panel-create-field-option:focus-visible {
    background: #f5f7f9;
    outline: none;
}
.deal-panel-create-field-option-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.deal-panel-create-field-option-desc {
    display: block;
    font-size: 12px;
    color: #717a84;
    line-height: 1.45;
    font-weight: 400;
}
.deal-panel-create-field-option--title-only {
    padding-top: 14px;
    padding-bottom: 14px;
}
.deal-panel-create-field-option--title-only .deal-panel-create-field-option-title {
    margin-bottom: 0;
}

.contact-panel--client-mode .deal-panel-deal-extras-only {
    display: none !important;
}
.contact-panel--client-mode .deal-panel-extras-only-section {
    display: none !important;
}
.deal-panel-deal-extras-only {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.deal-panel-responsible-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.deal-panel-responsible-name {
    font-size: 14px;
    color: #333;
    word-break: break-word;
}
.deal-panel-responsible-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.deal-panel-responsible-change {
    border: none;
    background: none;
    color: #2067b0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.deal-panel-responsible-change:hover,
.deal-panel-responsible-change:focus-visible {
    text-decoration: underline;
    outline: none;
}
.deal-panel-responsible-avatar {
    font-size: 32px;
    color: #9aa6b7;
    flex-shrink: 0;
}
.deal-panel-products-dropzone {
    border: 1px dashed #c5cdd8;
    border-radius: 6px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fbfcfd;
}
.deal-panel-products-add {
    border: none;
    background: none;
    color: #2067b0;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}
.deal-panel-products-add:hover,
.deal-panel-products-add:focus-visible {
    text-decoration: underline;
    outline: none;
}
.deal-panel-layout-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 4px 0 8px;
    font-size: 13px;
}
.deal-panel-layout-toolbar-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #2067b0;
    cursor: pointer;
}
.deal-panel-layout-toolbar-link:hover,
.deal-panel-layout-toolbar-link:focus-visible {
    text-decoration: underline;
    outline: none;
}
.deal-panel-layout-toolbar-link--icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #535c69;
}
.deal-panel-layout-toolbar-link--icon i {
    color: #80868e;
    font-size: 13px;
}
.deal-panel-sales-intel {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a9efc 0%, #2fc6f6 55%, #26b8e8 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(26, 158, 252, 0.35);
}
.deal-panel-sales-intel[hidden] {
    display: none !important;
}
.deal-panel-sales-intel-visual {
    position: relative;
    width: 88px;
    height: 56px;
    flex-shrink: 0;
    opacity: 0.95;
}
.deal-panel-sales-intel-device {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
.deal-panel-sales-intel-device--tablet {
    left: auto;
    right: 0;
    bottom: 0;
    top: auto;
    font-size: 30px;
}
.deal-panel-sales-intel-copy {
    flex: 1;
    min-width: 0;
}
.deal-panel-sales-intel-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.95;
}
.deal-panel-sales-intel-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}
.deal-panel-sales-intel-desc {
    margin: 0 0 14px;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.45;
}
.deal-panel-sales-intel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}
.deal-panel-sales-intel-btn-primary {
    background: #fff;
    color: #2067b0;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
}
.deal-panel-sales-intel-btn-primary:hover,
.deal-panel-sales-intel-btn-primary:focus-visible {
    filter: brightness(0.97);
    outline: none;
}
.deal-panel-sales-intel-btn-ghost {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
}
.deal-panel-sales-intel-btn-ghost:hover,
.deal-panel-sales-intel-btn-ghost:focus-visible {
    opacity: 0.92;
    outline: none;
}

/* FormulÃÂ¡rio novo campo tipo Texto (apÃÂ³s escolher no popover; data-field-type=serie) */
.deal-panel-serie-field-editor {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f4;
}
.deal-panel-serie-field-editor[hidden] {
    display: none !important;
}
.deal-panel-serie-field-group {
    margin-bottom: 14px;
}
.deal-panel-serie-label {
    display: block;
    font-size: 12px;
    color: #80868e;
    margin-bottom: 6px;
}
.deal-panel-serie-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #d5dde6;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}
.deal-panel-serie-input:focus {
    outline: none;
    border-color: #2fc6f6;
    box-shadow: 0 0 0 1px rgba(47, 198, 246, 0.25);
}
.deal-panel-serie-row--required {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 12px 0 14px;
}
.deal-panel-serie-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
}
.deal-panel-serie-check--block {
    display: flex;
    margin: 10px 0;
}
.deal-panel-serie-check input {
    width: 15px;
    height: 15px;
    accent-color: #2fc6f6;
    flex-shrink: 0;
}
.deal-panel-serie-select {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #d5dde6;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    font-family: inherit;
}
.deal-panel-serie-help {
    color: #a0a5aa;
    cursor: help;
    font-size: 13px;
}
.deal-panel-serie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 14px;
    align-items: center;
}
.deal-panel-serie-btn-save {
    background: #6bd9f7;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.deal-panel-serie-btn-save:hover,
.deal-panel-serie-btn-save:focus-visible {
    filter: brightness(0.97);
    outline: none;
}
.deal-panel-serie-btn-cancel {
    background: #fff;
    border: 1px solid #cdd5df;
    color: #535c69;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.deal-panel-serie-btn-cancel:hover,
.deal-panel-serie-btn-cancel:focus-visible {
    border-color: #aeb6bf;
    outline: none;
}
.deal-panel-serie-field-footer {
    margin-top: 4px;
}

/* FormulÃÂ¡rio novo campo tipo Lista (mesmo padrÃÂ£o visual do tipo Texto) */
.deal-panel-lista-items-block {
    margin-bottom: 14px;
}
.deal-panel-lista-items-host {
    margin-bottom: 6px;
}
.deal-panel-lista-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.deal-panel-lista-item-row .deal-panel-lista-item-input {
    flex: 1;
    min-width: 0;
}
.deal-panel-lista-item-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #a8b0b9;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
}
.deal-panel-lista-item-remove:hover,
.deal-panel-lista-item-remove:focus-visible {
    color: #535c69;
    background: #f5f7f9;
    outline: none;
}
.deal-panel-lista-add-item {
    margin-top: 2px;
    padding-left: 0;
}
.deal-panel-lista-kind-select {
    width: 100%;
    max-width: 100%;
}

/* Reserve um Recurso Ã¢ÂÂ criar campo */
.deal-panel-recurso-field-editor .deal-panel-recurso-pick-link-wrap {
    margin-bottom: 14px;
}
.deal-panel-recurso-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f4;
}
.deal-panel-recurso-resources-host {
    margin-bottom: 6px;
}
.deal-panel-recurso-add-line {
    margin-top: 2px;
    padding-left: 0;
}
.deal-panel-recurso-collab-box {
    background: #fff;
    border: 1px solid #d5dde6;
    border-radius: 4px;
    padding: 12px 14px;
}
.deal-panel-recurso-servicos-wrap {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e3e9ef;
}
.deal-panel-recurso-servicos-wrap[hidden] {
    display: none !important;
}
.deal-panel-recurso-small-add {
    margin-top: 4px;
    padding-left: 0;
    font-size: 13px;
}
.deal-panel-recurso-duration-select {
    max-width: 220px;
}

.panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
}

.activity-box {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f4;
    padding: 15px;
}

.activity-tabs {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #535c69;
    margin-bottom: 15px;
    border-bottom: 1px solid #eef2f4;
    padding-bottom: 10px;
}

.activity-tab {
    cursor: pointer;
}
.activity-tab.active {
    color: #2067b0;
    font-weight: 600;
}

.activity-input-area {
    border: 1px solid #eef2f4;
    border-radius: 4px;
    padding: 10px;
}

.activity-input-area input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
}

.chat-input {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eef2f4;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #80868e;
    font-size: 13px;
    cursor: text;
}

.chat-input i {
    color: #2fc6f6;
    font-size: 16px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
    background-color: #eef2f4;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f4;
    padding: 15px;
}

.timeline-icon {
    position: absolute;
    left: -38px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2fc6f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 2;
}

.timeline-icon.green {
    background-color: #22c332;
}
.timeline-icon.gray {
    background-color: #d1d5d8;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 600;
    color: #333;
}

.timeline-time {
    color: #80868e;
}

.timeline-content {
    font-size: 14px;
    color: #535c69;
}

.timeline-date-badge {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.timeline-date-badge span {
    background: #eef2f4;
    color: #80868e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-highlight {
    background-color: #fffdf2;
}

.deal-panel-automation-status {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e3e8ec;
    background: #f8fafb;
}

.deal-panel-automation-status-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.deal-panel-automation-status-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.deal-panel-automation-status-message {
    font-size: 12px;
    line-height: 1.45;
    color: #535c69;
    word-break: break-word;
}

.deal-panel-automation-status-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #a0a5aa;
}

.deal-panel-automation-status--waiting {
    border-color: #f6e8a0;
    background: #fffdf2;
}

.deal-panel-automation-status--waiting .deal-panel-automation-status-icon {
    color: #d97706;
}

.deal-panel-automation-status--running {
    border-color: #b8e6f8;
    background: #f0fbff;
}

.deal-panel-automation-status--running .deal-panel-automation-status-icon {
    color: #2fc6f6;
}

.deal-panel-automation-status--failed,
.deal-panel-automation-status--stuck {
    border-color: #f5c2c2;
    background: #fff5f5;
}

.deal-panel-automation-status--failed .deal-panel-automation-status-icon,
.deal-panel-automation-status--stuck .deal-panel-automation-status-icon {
    color: #e85d5d;
}

.deal-panel-timeline-conversation {
    margin-bottom: 18px;
}

.deal-panel-conv-card {
    border: 1px solid #d6eff8;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fdff 0%, #ffffff 100%);
    padding: 14px 16px;
    box-shadow: 0 1px 0 rgba(47, 198, 246, 0.08);
}

.deal-panel-conv-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.deal-panel-conv-card-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2fc6f6;
}

.deal-panel-conv-card-kicker i {
    margin-right: 6px;
}

.deal-panel-conv-card-channel {
    font-size: 11px;
    color: #80868e;
}

.deal-panel-conv-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #535c69;
    margin-bottom: 6px;
}

.deal-panel-conv-card-time {
    font-size: 11px;
    font-weight: 400;
    color: #a0a5aa;
}

.deal-panel-conv-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
    word-break: break-word;
}

.deal-panel-conv-card-open {
    margin-top: 12px;
    border: none;
    border-radius: 999px;
    background: #2fc6f6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

.deal-panel-conv-card-open:hover {
    background: #1eb6e6;
}

.deal-panel-timeline-feed {
    margin-top: 4px;
}

.deal-panel-timeline-automation {
    background: #eef2f4;
    color: #535c69;
}

.deal-panel-timeline-automation--pending {
    background: #fff7ed;
    color: #d97706;
}

.deal-panel-timeline-automation--running {
    background: #ecfeff;
    color: #0891b2;
}

.deal-panel-timeline-automation--done {
    background: #ecfdf5;
    color: #059669;
}

.deal-panel-timeline-automation--failed {
    background: #fef2f2;
    color: #dc2626;
}

.deal-panel-timeline-automation--cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.deal-panel-timeline-automation-body {
    margin-top: 5px;
}

.deal-panel-timeline-automation-meta {
    font-size: 12px;
    color: #828b95;
}

.deal-panel-timeline-automation-error {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    padding: 8px 10px;
}

.deal-panel-timeline-automation-detail {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #535c69;
    background: #f5f7f9;
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-word;
    white-space: pre-wrap;
}

/* RIGHT SIDEBAR */
.right-sidebar {
    position: absolute;
    right: 0;
    top: 55px; /* height of topbar */
    bottom: 0;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    background-color: rgba(14, 23, 43, 0.4);
    border-left: 1px solid rgba(255,255,255,0.05);
    z-index: 250;
}

.right-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: #aeb6c7;
    position: relative;
    transition: 0.2s;
    font-size: 14px;
    border: none;
    padding: 0;
    font-family: inherit;
}

button.right-icon {
    appearance: none;
}

.right-icon:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.right-divider {
    width: 20px;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 5px 0 15px 0;
}

.right-icon.avatar-icon {
    background: transparent;
    padding: 0;
}

.right-icon.avatar-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.right-icon.avatar-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f1361b;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 1px 4px;
    font-weight: bold;
    border: 2px solid rgba(23, 35, 66, 0.8);
}

.right-icon.colored-icon {
    color: #fff;
    opacity: 0.9;
}
.right-icon.colored-icon:hover {
    opacity: 1;
}

/* CHAT MODAL OVERLAY Ã¢ÂÂ acima do topbar (5000), alinhado a .panel-overlay (5900) */
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 23, 43, 0.8);
    z-index: 5900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    will-change: opacity;
}

.chat-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* CHAT MODAL Ã¢ÂÂ acima do overlay do chat; alinhado a .contact-panel (6000) */
.chat-modal {
    position: fixed;
    top: 0;
    right: 60px;
    width: calc(100dvw - 100px);
    max-width: calc(100% - 60px);
    height: 100vh;
    height: 100dvh;
    background-color: #fff;
    z-index: 6000;
    border-radius: 0;
    border-top-left-radius: 15px;
    display: flex;
    flex-direction: column;
    transform: translate3d(110%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s;
    box-shadow: -5px 0 40px rgba(0,0,0,0.5);
    overflow: visible; /* so close btn can protrude */
    will-change: transform;
}

.chat-modal.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

/* Modal Conversas: encolhe ÃÂ  esquerda para o X (40px) ficar visÃÂ­vel */
.chat-modal.cc-conversations-modal {
    width: calc(100dvw - 140px);
    max-width: calc(100% - 100px);
}

.chat-modal.cc-conversations-modal.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

.cc-conversations-modal > .chat-close-btn {
    left: -40px;
    width: 40px;
    height: 40px;
    top: 15px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: #2fc6f6;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.cc-msg-attachment {
    display: block;
    margin-top: 6px;
    max-width: 100%;
}

/* Largura fixa para imagens no chat Ã¢ÂÂ evita balÃÂµes de tamanhos diferentes */
:root {
    --cc-chat-media-width: 280px;
    --cc-chat-media-bubble-width: 310px;
}

.cc-msg-attachment--image {
    border: none;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
    display: block;
    width: var(--cc-chat-media-width);
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.cc-msg-attachment--image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
}

.chat-message-bubble--has-image,
.chat-message-bubble--has-video {
    width: var(--cc-chat-media-bubble-width);
    max-width: 100%;
    box-sizing: border-box;
}

.chat-message-bubble--has-image .chat-message-text,
.chat-message-bubble--has-video .chat-message-text {
    display: block;
    width: 100%;
}

.chat-message-bubble--has-image .cc-msg-attachment--image,
.chat-message-bubble--has-video .cc-msg-attachment--video {
    width: 100%;
    max-width: var(--cc-chat-media-width);
    margin-top: 0;
}

.contact-center-msg--has-media {
    width: var(--cc-chat-media-bubble-width);
    max-width: 78%;
    box-sizing: border-box;
}

.contact-center-msg--has-media .contact-center-msg-body {
    width: 100%;
}

.contact-center-msg--has-media .cc-msg-attachment--image,
.contact-center-msg--has-media .cc-msg-attachment--video {
    width: 100%;
    max-width: var(--cc-chat-media-width);
    margin-top: 0;
}

.cc-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 22, 38, 0.88);
}

.cc-media-lightbox[hidden] {
    display: none !important;
}

.cc-media-lightbox__img {
    max-width: min(92vw, 960px);
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

body.cc-media-lightbox-open {
    overflow: hidden;
}

.cc-audio-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: min(320px, 100%);
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #e7f8ff;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(15, 90, 140, 0.08);
    line-height: 1;
    overflow: visible;
}

.chat-message-text .cc-audio-msg,
.contact-center-msg-body .cc-audio-msg {
    line-height: 1;
}

.chat-message-row--out .cc-audio-msg,
.contact-center-msg--out .cc-audio-msg {
    background: #d9fdd3;
    box-shadow: inset 0 0 0 1px rgba(40, 120, 60, 0.1);
}

.chat-message-bubble--has-audio .chat-message-text,
.contact-center-msg--has-media .contact-center-msg-body:has(.cc-audio-msg) {
    padding-bottom: 2px;
}

.cc-audio-msg__play {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #128c7e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cc-audio-msg__play i {
    display: block;
    line-height: 1;
    font-size: 14px;
    padding-left: 2px;
}

.chat-message-row--out .cc-audio-msg__play,
.contact-center-msg--out .cc-audio-msg__play {
    background: #25d366;
}

.cc-audio-msg__play:hover {
    transform: scale(1.04);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.cc-audio-msg__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cc-audio-msg__track {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 28px;
}

.cc-audio-msg__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    height: 100%;
}

.cc-audio-msg__bars span {
    flex: 1 1 0;
    min-width: 2px;
    max-width: 4px;
    height: var(--h, 40%);
    border-radius: 2px;
    background: rgba(18, 140, 126, 0.35);
    transition: height 0.12s ease;
}

.chat-message-row--out .cc-audio-msg__bars span,
.contact-center-msg--out .cc-audio-msg__bars span {
    background: rgba(37, 211, 102, 0.45);
}

.cc-audio-msg.is-playing .cc-audio-msg__bars span:nth-child(odd) {
    animation: ccAudioBar 0.55s ease-in-out infinite alternate;
}

.cc-audio-msg.is-playing .cc-audio-msg__bars span:nth-child(even) {
    animation: ccAudioBar 0.55s ease-in-out infinite alternate-reverse;
}

@keyframes ccAudioBar {
    from { height: 25%; }
    to { height: 90%; }
}

.cc-audio-msg__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cc-audio-msg__progress > i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #128c7e;
}

.chat-message-row--out .cc-audio-msg__progress > i,
.contact-center-msg--out .cc-audio-msg__progress > i {
    background: #1faa59;
}

.cc-audio-msg__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-audio-msg__time,
.cc-audio-msg__dur {
    font-size: 11px;
    line-height: 1.2;
    color: #667781;
    font-variant-numeric: tabular-nums;
}

.cc-audio-msg__el {
    display: none;
}

.cc-audio-transcription {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    border-left: 3px solid #3da8f5;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    font-style: italic;
}

.chat-message-row--out .cc-audio-transcription {
    background: rgba(255, 255, 255, 0.5);
    border-left-color: #5cb85c;
}

.cc-audio-transcription--solo {
    margin-top: 0;
}

.cc-msg-attachment--video {
    display: block;
    width: var(--cc-chat-media-width);
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.cc-msg-attachment--audio {
    display: block;
    width: min(280px, 100%);
    margin-top: 4px;
}

.cc-msg-attachment--file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2fc6f6;
    text-decoration: none;
    font-size: 13px;
}

.cc-msg-attachment--file:hover {
    text-decoration: underline;
}

.cc-msg-attachment-placeholder {
    color: #80868e;
    font-size: 13px;
}

.chat-close-btn {
    position: absolute;
    top: 15px;
    left: -35px;
    width: 35px;
    height: 35px;
    background-color: #3da8f5;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    z-index: 320;
}

/* Chat Topbar */
.chat-topbar {
    display: flex;
    background-color: #1a264a;
    color: #aeb6c7;
    height: 45px;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    gap: 20px;
    border-top-left-radius: 15px;
}

.chat-tab {
    cursor: pointer;
    padding: 14px 0;
    border-bottom: 2px solid transparent;
}
.chat-tab:hover {
    color: #fff;
}
.chat-tab.active {
    color: #fff;
    font-weight: 600;
    border-bottom-color: #3da8f5;
}

/* Chat Body Layout */
.chat-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Panel */
.chat-left-panel {
    width: 320px;
    background: #fff;
    border-right: 1px solid #eef2f4;
    display: flex;
    flex-direction: column;
}

.chat-search-header {
    display: flex;
    padding: 15px;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #eef2f4;
}

.chat-search-box {
    flex: 1;
    background: #f5f7f9;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    color: #a0a5aa;
    font-size: 13px;
}
.chat-search-box input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 8px;
    width: 100%;
    color: #333;
}

.chat-compose-btn {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background: #eef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2fc6f6;
    cursor: pointer;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list-item {
    display: flex;
    padding: 12px 15px;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f9fafb;
    position: relative;
}
.chat-list-item:hover {
    background: #f5f7f9;
}
.chat-list-item.active {
    background: #1cb0f6;
    color: #fff;
}

.chat-avatar-wrap {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}
.chat-avatar-wrap.small {
    width: 35px;
    height: 35px;
}
.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.chat-avatar-wrap > .chat-avatar {
    width: 100%;
    height: 100%;
}
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chat-avatar.small {
    width: 35px;
    height: 35px;
    font-size: 16px;
}
.chat-avatar.has-photo {
    background: #e8eef2;
}
.chat-avatar.green-bg { background-color: #22c332; }
.chat-avatar.blue-bg { background-color: #3da8f5; }
.chat-avatar.cyan-bg { background-color: #2fc6f6; }
.chat-avatar-channel-badge {
    position: absolute;
    right: -2px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    border: 2px solid #fff;
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}
.chat-avatar-wrap.small .chat-avatar-channel-badge {
    width: 13px;
    height: 13px;
    font-size: 7px;
    right: -2px;
    bottom: -1px;
    border-width: 1.5px;
}
.chat-avatar-channel-badge.messenger {
    background: #0084ff;
}
.chat-list-item.active .chat-avatar-channel-badge {
    border-color: #1cb0f6;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.chat-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-item:not(.active) .chat-name {
    color: #333;
}
.chat-preview {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-item:not(.active) .chat-preview {
    color: #80868e;
}
.chat-time {
    font-size: 11px;
    color: #a0a5aa;
    margin-top: 3px;
}
.chat-list-item.active .chat-time {
    color: rgba(255,255,255,0.7);
}

/* Right Panel */
.chat-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #d6eef8; /* light blue background */
    position: relative;
}

.chat-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eef2f4;
}

.chat-room-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-room-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.chat-room-sub {
    font-size: 12px;
    color: #a0a5aa;
}

.chat-room-actions {
    display: flex;
    gap: 15px;
    color: #a0a5aa;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chat-date-divider {
    text-align: center;
    margin: 15px 0;
}
.chat-date-divider span {
    background: rgba(160, 165, 170, 0.4);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.chat-message-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 80%;
}

.chat-message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-bubble {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-top-left-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.chat-message-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.chat-message-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.chat-message-embed {
    border-left: 3px solid #2fc6f6;
    padding-left: 10px;
    margin-top: 10px;
}
.embed-title {
    color: #2fc6f6;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}
.embed-desc {
    color: #80868e;
    font-size: 12px;
}

.chat-message-time {
    text-align: right;
    font-size: 10px;
    color: #a0a5aa;
    margin-top: 10px;
}

.chat-input-area {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eef2f4;
}

.chat-input-icon {
    color: #a0a5aa;
    font-size: 18px;
    cursor: pointer;
}
.chat-input-icon:hover { color: #535c69; }

.chat-input-attach-btn {
    border: none;
    background: transparent;
    width: auto;
    height: auto;
    padding: 4px;
}

.chat-input-area input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-send-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #2fc6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* KANBAN SUBNAV & BOARD */
.kanban-toolbar-overlay {
    position: relative;
    z-index: 40;
    min-width: 0;
}
.kanban-header {
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
}
.kanban-header .header-buttons {
    flex-wrap: wrap;
    position: relative;
    z-index: 120;
}
.kanban-header .kanban-filter-anchor {
    flex: 1 1 200px;
    min-width: 0;
}
.kanban-header .page-title {
    color: #fff;
}
.header-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}
.pipeline-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.btn-pipeline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2fc6f6;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.btn-pipeline i.fa-filter {
    font-size: 14px;
    opacity: 0.95;
}
.pipeline-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    max-width: min(360px, calc(100dvw - 48px));
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15, 18, 33, 0.18);
    z-index: 200;
    overflow: hidden;
    padding: 6px 0;
}
.pipeline-dd-list {
    max-height: 420px;
    overflow-y: auto;
}
.pipeline-dd-group {
    padding: 10px 14px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #80868e;
}
.pipeline-dd-group:not(:first-child) {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #eef2f4;
}
.pipeline-dd-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 14px 8px 18px;
    font-size: 12px;
    color: #2067b0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pipeline-dd-item:hover,
.pipeline-dd-item:focus-visible {
    background: #f5f7f9;
    outline: none;
}
.pipeline-dd-item.active {
    font-weight: 700;
}
.pipeline-dd-sep {
    height: 1px;
    margin: 6px 0;
    background: #e8ecef;
}
.pipeline-dd-action {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: #525c69;
    cursor: pointer;
    font-family: inherit;
}
.pipeline-dd-action:hover,
.pipeline-dd-action:focus-visible {
    background: #f5f7f9;
    outline: none;
}
.kanban-subnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 15px 20px;
    margin-bottom: 5px;
    min-width: 0;
}
.subnav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 20px;
}
.subnav-tab {
    padding: 6px 15px;
    color: #aeb6c7;
    cursor: pointer;
    border-radius: 18px;
    font-size: 13px;
}
.subnav-tab.active {
    background: #fff;
    color: #333;
    font-weight: 600;
}
.subnav-tab[data-kanban-subview] {
    user-select: none;
}
.subnav-counts {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    color: #aeb6c7;
    font-size: 13px;
}
.kanban-board-host {
    position: relative;
    min-width: 0;
}
.kanban-board {
    --kanban-ribbon-tip: 18px;
    display: flex;
    gap: 0;
    padding: 0 16px 8px;
    min-height: 280px;
    max-height: calc(100dvh - 180px);
    height: calc(100vh - 160px);
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}
/* Pills esq./dir.: rolagem horizontal ao pairar Ã¢ÂÂ ver script.js */
.kanban-hscroll-nudge {
    position: absolute;
    z-index: 25;
    border: none;
    margin: 0;
    padding: 0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
.kanban-hscroll-nudge--left {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    min-height: 76px;
    padding: 10px 0;
    border-radius: 999px;
    background: rgba(18, 22, 28, 0.52);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    color: #fff;
}
.kanban-hscroll-nudge--right {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    min-height: 76px;
    padding: 10px 0;
    border-radius: 999px;
    background: rgba(18, 22, 28, 0.52);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    color: #fff;
}
.kanban-hscroll-nudge--left:hover:not(.kanban-hscroll-nudge--concealed),
.kanban-hscroll-nudge--right:hover:not(.kanban-hscroll-nudge--concealed) {
    background: rgba(18, 22, 28, 0.68);
}
.kanban-hscroll-nudge__icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
}
.kanban-hscroll-nudge__icon--right {
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}
.kanban-hscroll-nudge__icon--left {
    border-width: 5px 7px 5px 0;
    border-color: transparent #fff transparent transparent;
    margin-right: 2px;
}
.kanban-hscroll-nudge.kanban-hscroll-nudge--concealed {
    display: none !important;
}
#kanbanView:not(.kanban-subview-kanban) #kanbanBoardHost .kanban-hscroll-nudge {
    display: none !important;
}
#kanbanView:not(.kanban-subview-atividades) #activitiesBoardHost .kanban-hscroll-nudge {
    display: none !important;
}
#invoicesMainView:not(.invoices-subview-kanban) #invoicesBoardHost .kanban-hscroll-nudge,
#quotesMainView:not(.quotes-subview-kanban) #quotesBoardHost .kanban-hscroll-nudge {
    display: none !important;
}
.kanban-list-view {
    background: #fff;
    border-radius: 8px;
    margin: 0 4px 0;
    min-height: 280px;
    max-height: calc(100dvh - 180px);
    height: calc(100vh - 160px);
    overflow: hidden;
    border: 1px solid #dfe6ee;
}
.kanban-list-shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.kanban-list-scroll {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
}
.kanban-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.kanban-list-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}
.kanban-list-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 11px;
    color: #8b95a5;
    border-bottom: 1px solid #e4ebf2;
    font-weight: 500;
    white-space: nowrap;
}
.kanban-list-table td {
    padding: 8px 10px;
    font-size: 12px;
    color: #444f5f;
    border-bottom: 1px solid #eef2f4;
    white-space: nowrap;
    vertical-align: middle;
}
.kanban-list-empty {
    color: #98a2b3;
    font-style: italic;
}
.kanban-list-col-check {
    width: 32px;
    text-align: center;
}
.kanban-list-select-all {
    width: 14px;
    height: 14px;
    accent-color: #3b8ad6;
    cursor: pointer;
    vertical-align: middle;
}
.kanban-list-row-check {
    text-align: center;
    vertical-align: middle;
}
.kanban-list-row-check-input {
    width: 14px;
    height: 14px;
    accent-color: #3b8ad6;
    cursor: pointer;
    vertical-align: middle;
}
.kanban-list-deal-title {
    border: none;
    background: transparent;
    padding: 0;
    color: #2f6da3;
    font-size: 12px;
    line-height: 1.1;
    cursor: pointer;
    text-align: left;
}
.kanban-list-deal-title:hover,
.kanban-list-deal-title:focus-visible {
    text-decoration: underline;
    outline: none;
}
.kanban-list-deal-sub {
    color: #8f9bab;
    font-size: 10px;
    margin-top: 2px;
}
.kanban-list-stage-pill {
    display: inline-flex;
    align-items: center;
    height: 8px;
    min-width: 68px;
    border-radius: 2px;
    background: linear-gradient(90deg, #45c2ee, #b9e7f6);
}
.kanban-list-stage-label {
    margin-top: 3px;
    color: #90a0b5;
    font-size: 10px;
}
.kanban-list-meta {
    min-height: 27px;
    border-top: 1px solid #eef2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7f8b9b;
    font-size: 9px;
    letter-spacing: 0.01em;
    padding: 0 8px;
    text-transform: uppercase;
}
.kanban-list-meta-left,
.kanban-list-meta-center,
.kanban-list-meta-right {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}
.kanban-list-meta-left {
    flex: 1;
}
.kanban-list-meta-center {
    flex: 1;
    justify-content: center;
}
.kanban-list-meta-right {
    flex: 1;
    justify-content: flex-end;
}
.kanban-list-meta-right select {
    height: 21px;
    border: 1px solid #d9e0e8;
    border-radius: 2px;
    background: #fff;
    color: #667285;
    font-size: 10px;
    padding: 0 6px;
    min-width: 44px;
}
.kanban-list-actions {
    border-top: 1px solid #eef2f5;
    min-height: 29px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
}
.kanban-list-actions button {
    height: 21px;
    border: 1px solid #e0e6ee;
    background: #f9fbfd;
    color: #9aa5b4;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.kanban-list-actions .kanban-list-action-ghost {
    border: none;
    background: transparent;
    color: #a2acb8;
    padding: 0 4px;
}
.kanban-list-actions .kanban-list-action-box {
    min-width: 122px;
    justify-content: center;
}
.kanban-list-actions .kanban-list-action-box:last-of-type {
    min-width: 102px;
}
.kanban-list-actions button:disabled {
    opacity: 1;
}
.kanban-list-actions label {
    color: #7b8798;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}
.kanban-list-actions label input {
    width: 11px;
    height: 11px;
    accent-color: #8aa7c8;
}
.kanban-list-actions i {
    font-size: 9px;
}
.kanban-list-meta strong {
    font-weight: 700;
    color: #586577;
}
.kanban-list-meta.kanban-list-bar--active,
.kanban-list-actions.kanban-list-bar--active {
    background: #f0f6fc;
    border-top-color: #c5daf0;
}
.kanban-list-meta.kanban-list-bar--active {
    color: #4a5a6b;
}
.kanban-list-actions.kanban-list-bar--active .kanban-list-action-ghost {
    color: #5a6b7d;
}
.kanban-list-actions.kanban-list-bar--active .kanban-list-action-box,
.kanban-list-actions.kanban-list-bar--active .kanban-list-action-select {
    border-color: #b8cce0;
    background: #fff;
    color: #4a5a6b;
}
.kanban-list-actions.kanban-list-bar--active .kanban-list-action-box:disabled,
.kanban-list-actions.kanban-list-bar--active .kanban-list-action-select:disabled {
    opacity: 0.55;
}
.kanban-list-action-select {
    height: 21px;
    border: 1px solid #e0e6ee;
    border-radius: 2px;
    background: #f9fbfd;
    color: #9aa5b4;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding: 0 6px;
    min-width: 132px;
    cursor: pointer;
}
.kanban-list-action-select:disabled {
    cursor: not-allowed;
}
.kanban-list-para-todos {
    margin-left: 4px;
}

/* Sub-aba de NegÃÂ³cios: nunca mostrar Kanban e Lista ao mesmo tempo */
#kanbanView.kanban-subview-kanban #kanbanBoardRoot {
    display: flex !important;
}
#kanbanView.kanban-subview-lista #kanbanBoardRoot,
#kanbanView.kanban-subview-atividades #kanbanBoardRoot,
#kanbanView.kanban-subview-calendario #kanbanBoardRoot {
    display: none !important;
}
#kanbanView.kanban-subview-lista #kanbanListView {
    display: block !important;
}
#kanbanView.kanban-subview-kanban #kanbanListView,
#kanbanView.kanban-subview-atividades #kanbanListView,
#kanbanView.kanban-subview-calendario #kanbanListView {
    display: none !important;
}
#kanbanView.kanban-subview-atividades #activitiesBoardRoot {
    display: flex !important;
}
#kanbanView.kanban-subview-kanban #activitiesBoardRoot,
#kanbanView.kanban-subview-lista #activitiesBoardRoot,
#kanbanView.kanban-subview-calendario #activitiesBoardRoot {
    display: none !important;
}
#kanbanView.kanban-subview-calendario #kanbanCalendarRoot {
    display: flex !important;
}
#kanbanView.kanban-subview-kanban #kanbanCalendarRoot,
#kanbanView.kanban-subview-lista #kanbanCalendarRoot,
#kanbanView.kanban-subview-atividades #kanbanCalendarRoot {
    display: none !important;
}
.kanban-subnav-recurring {
    display: none !important;
}
#kanbanView.kanban-subview-atividades .kanban-subnav-recurring {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

/* Quadro Atividades: mesmo board que Kanban + rail lateral na 1ÃÂÃÂª coluna */
#activitiesBoardRoot.activities-board {
    padding: 0 8px 8px;
}
#activitiesBoardRoot .kanban-col-header-pencil,
#activitiesBoardRoot .kanban-col-header-add-stage-btn {
    display: none !important;
}
#activitiesBoardRoot .activities-widgets-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
#activitiesBoardRoot .kanban-column {
    overflow: visible;
}
#activitiesBoardRoot .kanban-cards {
    flex: 1;
    min-height: 40px;
    overflow-y: auto;
    overflow-x: hidden;
}
.activities-widget {
    border-radius: 8px;
    padding: 12px;
    font-size: 11px;
}
.activities-widget--contact-center {
    background: rgba(55, 40, 80, 0.72);
    color: #e8eaf0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.activities-widget-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}
.activities-widget-sub {
    opacity: 0.85;
    font-size: 10px;
    margin-bottom: 10px;
}
.activities-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 6px;
    margin-bottom: 10px;
}
.activities-contact-grid span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    opacity: 0.95;
}
.activities-contact-grid i {
    width: 14px;
    text-align: center;
    opacity: 0.9;
}
.activities-widget-link {
    color: #7ecbff;
    font-size: 10px;
    text-decoration: none;
}
.activities-widget-link:hover {
    text-decoration: underline;
}
.activities-widget--crm-solutions {
    background: rgba(255, 255, 255, 0.96);
    color: #333;
    border: 1px solid #e2e8f0;
}
.activities-widget-title-dark {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
}
.activities-solution-list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 11px;
    color: #2067b0;
}
.activities-solution-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.activities-solution-list i {
    width: 16px;
    color: #2f6da3;
}
.activities-config-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #2ea6ff;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 0.03em;
}
.activities-config-btn:hover {
    filter: brightness(1.06);
}
.kanban-calendar-root {
    min-height: 280px;
    max-height: calc(100dvh - 180px);
    height: calc(100vh - 160px);
    margin: 0 16px 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    padding: 12px 16px 16px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.kanban-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #f9fbff;
    font-size: 14px;
}

.kanban-calendar-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kanban-calendar-title {
    font-size: 18px;
    font-weight: 600;
}

.kanban-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kanban-calendar-nav button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f9fbff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

.kanban-calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.kanban-calendar-header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kanban-calendar-mode {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: #e0e6f5;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.kanban-calendar-today-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    color: #ffffff;
    cursor: pointer;
}

.kanban-calendar-today-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.kanban-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    padding: 4px 2px 6px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccd4e6;
    font-size: 11px;
    text-transform: uppercase;
}

.kanban-calendar-weekday {
    text-align: left;
    padding-left: 4px;
}

.kanban-calendar-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(64px, 1fr);
    gap: 1px;
    padding-top: 4px;
    overflow: auto;
}

.kanban-calendar-cell {
    position: relative;
    padding: 4px 4px 4px 4px;
    background: rgba(8, 21, 52, 0.82);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-calendar-cell--outside {
    opacity: 0.45;
}

.kanban-calendar-cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
    color: #e3ecff;
}

.kanban-calendar-cell-number {
    font-weight: 500;
}

.kanban-calendar-cell-today {
    color: #0b98ff;
}

.kanban-calendar-events {
    flex: 1;
    overflow: hidden auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 2px;
}

.kanban-calendar-event {
    font-size: 11px;
    line-height: 1.25;
    border-radius: 4px;
    padding: 2px 4px;
    background: rgba(255, 212, 130, 0.22);
    border-left: 2px solid #ffd482;
    color: #fdf5e3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kanban-calendar-event--won {
    background: rgba(119, 221, 164, 0.22);
    border-left-color: #77dda4;
}

.kanban-calendar-event--lost {
    background: rgba(255, 152, 152, 0.22);
    border-left-color: #ff9898;
}
.kanban-board-empty-hint {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #aeb6c7;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}
.kanban-column {
    min-width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    border-right: 1px dashed rgba(255, 255, 255, 0.32);
    padding: 0 3px;
    overflow: visible;
}
.kanban-column--entering {
    animation: kanban-col-enter 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform, opacity;
}
@keyframes kanban-col-enter {
    from {
        opacity: 0;
        transform: translateX(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.kanban-column:last-child {
    border-right: none;
}

/*
 * Faixa por etapa: borda esquerda sempre reta (sem entalhe).
 * Ponta sÃÂ³ ÃÂ  direita, desenhada dentro da largura da coluna (sem margin negativa).
 */
.kanban-col-header {
    --tip: var(--kanban-ribbon-tip);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 12px 7px 11px;
    margin-bottom: 4px;
    margin-right: 0;
    color: #fff;
    font-weight: 500;
    font-size: 11.5px;
    line-height: 1.3;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.kanban-col-header:has(.kanban-col-description) {
    min-height: 48px;
    align-items: flex-start;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Primeira, meio e ÃÂºltima: esquerda reta + ponta direita contida na coluna */
.kanban-col-header--first,
.kanban-col-header--middle,
.kanban-col-header--last {
    clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
    padding-right: calc(var(--tip) + 6px);
}

.kanban-col-header--first {
    border-radius: 3px 0 0 3px;
}

.kanban-col-header--middle {
    border-radius: 0;
}

.kanban-col-header--last {
    padding-left: 11px;
    border-radius: 0;
}

/* Uma ÃÂºnica etapa: cartÃÂ£o arredondado */
.kanban-col-header--single {
    clip-path: none;
    border-radius: 5px;
    padding: 8px 12px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.38));
}

.kanban-col-header-inner {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kanban-col-title-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.kanban-col-description {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    opacity: 0.88;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-col-title {
    font-weight: 500;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-count {
    font-weight: 400;
    opacity: 0.93;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* LÃÂ¡pis + bola Ã¢ÂÂ+Ã¢ÂÂ: sÃÂ³ no hover do retÃÂ¢ngulo da etapa */
.kanban-col-header-hover-tools {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.kanban-col-header:hover .kanban-col-header-hover-tools,
.kanban-col-header:focus-within .kanban-col-header-hover-tools,
.kanban-col-header-hover-tools--has-selection {
    opacity: 1;
    pointer-events: auto;
}

.kanban-col-header-select-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    line-height: 1;
}

.kanban-col-header-select-all-input {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #fff;
}

.kanban-col-header-pencil {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    opacity: 0.92;
    cursor: pointer;
}

.kanban-col-header-add-stage-btn {
    font: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.kanban-col-header-add-stage-btn:focus {
    outline: none;
}

.kanban-col-header-add-stage-btn:focus-visible .kanban-col-header-plus-ball {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.kanban-col-header-plus-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: inherit;
    font-size: 10px;
    transition: background 0.15s ease, transform 0.12s ease;
}

.kanban-col-header-add-stage-btn:hover .kanban-col-header-plus-ball {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.kanban-col-header-plus-ball i {
    font-size: 9px;
    font-weight: 300;
    opacity: 0.98;
}

/* Renomear etapa no prÃÂ³prio Kanban (+ nova etapa ou lÃÂ¡pis) */
.kanban-col-header--title-editing .kanban-col-header-hover-tools {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.kanban-col-header-inner--editing {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: stretch;
    overflow: visible;
}

.kanban-col-title-input-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 3px 0 0 3px;
    padding: 2px 6px 2px 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.kanban-col-title-input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: #1a1d21;
    font: inherit;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    outline: none;
}

.kanban-col-title-input::placeholder {
    color: #9aa3ad;
    font-weight: 400;
}

.kanban-col-header-edit-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 5px;
    margin-left: 2px;
    background: #2fc569;
    border-radius: 0 3px 3px 0;
    align-self: stretch;
}

.kanban-col-title-save,
.kanban-col-title-cancel {
    font: inherit;
    margin: 0;
    padding: 2px 4px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanban-col-title-save:hover,
.kanban-col-title-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.kanban-col-title-save i,
.kanban-col-title-cancel i {
    font-size: 11px;
}

.kanban-col-amount {
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
    margin: 8px 0;
}
.kanban-add-deal {
    text-align: center;
    padding: 6px;
    color: #aeb6c7;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 10px;
}
.kanban-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}
.kanban-card {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: element;
}
.kanban-card:active {
    cursor: grabbing;
}
.kanban-card.selected {
    background-color: #dff6ff;
    border-color: #3bc8f5;
}

.kanban-card.kanban-card--paused-awaiting {
    background: #fde8e8 !important;
    border-color: #e05353 !important;
    border-left: 4px solid #c62828 !important;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.18);
}

.kanban-card.kanban-card--paused-awaiting.selected {
    background: #fcdada !important;
    border-color: #c62828 !important;
}

.kanban-card.kanban-card--paused-awaiting .card-pause-hint {
    margin: 6px 0 2px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #7f1d1d;
    background: rgba(198, 40, 40, 0.12);
}

.kanban-card.kanban-card--disparando {
    background: #e8f7fc !important;
    border-color: #3bc8f5 !important;
    border-left: 4px solid #2a9fd8 !important;
    box-shadow: 0 2px 8px rgba(47, 198, 246, 0.2);
}

.kanban-card.kanban-card--disparando.selected {
    background: #d4f0fa !important;
    border-color: #2a9fd8 !important;
}

.kanban-card.kanban-card--disparando .card-disparando-hint {
    margin: 6px 0 2px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0b5f7a;
    background: rgba(47, 198, 246, 0.18);
}

.deal-panel-ficha-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.deal-panel-ficha-badge--pausado {
    background: #fee2e2;
    color: #991b1b;
}

/* Fantasma no lugar de origem durante o arraste (mais Ã¢ÂÂapagadoÃ¢ÂÂ / transparente) */
.kanban-card.kanban-card--drag-ghost {
    opacity: 0.28;
    box-shadow: none;
    border: 1px dashed rgba(59, 200, 245, 0.65);
    background: rgba(255, 255, 255, 0.65);
    filter: grayscale(0.2);
    /* NÃÂ£o usar pointer-events: none aqui Ã¢ÂÂ no dragstart isso cancela o arraste no Chrome/Edge */
    transition: none;
}

/* Container do preview nativo (fica fora da tela atÃÂ© o fim do arraste) */
.kanban-drag-preview-host {
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: 10000;
    pointer-events: none;
}

/* CÃÂ³pia que segue o cursor: cor mais forte, opacidade alta mas nÃÂ£o 100% */
/* Largura/altura vÃÂªm inline do JS (clone no body nÃÂ£o herda a coluna do Kanban) */
.kanban-card.kanban-drag-floater {
    opacity: 0.9;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    border: 2px solid #3bc8f5;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.kanban-drag-preview-wrap {
    position: relative;
}

.kanban-drag-count-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #3bc8f5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Fantasma na etapa de destino (sÃÂ³ enquanto o cursor estÃÂ¡ na lista de outra coluna) */
.kanban-drop-placeholder {
    border-radius: 6px;
    border: 2px dashed rgba(81, 185, 66, 0.9);
    background: rgba(255, 255, 255, 0.42);
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    opacity: 0.88;
    transition: none;
}

.kanban-drop-placeholder-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #51b942;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 1px solid #d1d5d8;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 9px;
    background: #fff;
    pointer-events: none;
}
.kanban-card.selected .card-checkbox {
    background: #2fc6f6;
    border-color: #2fc6f6;
    color: #fff;
}
.card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    padding-right: 20px; /* space for checkbox */
}
.card-title-text {
    cursor: pointer;
    color: #2067b0;
}
.card-calls {
    float: right;
    font-weight: normal;
    font-size: 11px;
    color: #a0a5aa;
    background: #f5f7f9;
    padding: 2px 6px;
    border-radius: 10px;
}
.card-price {
    color: #535c69;
    font-size: 13px;
    margin-bottom: 5px;
}
.card-date {
    color: #a0a5aa;
    font-size: 11px;
    margin-bottom: 15px;
}
.card-icons {
    display: flex;
    gap: 10px;
    color: #d1d5d8;
    margin-bottom: 10px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef2f4;
    padding-top: 10px;
}
.add-activity {
    color: #a0a5aa;
    font-size: 12px;
    cursor: pointer;
}
.card-meta {
    color: #a0a5aa;
    font-size: 11px;
}

/* ===================== */
/* Painel lateral de automaÃÂ§ÃÂ£o (/automacao) */
/* ===================== */
.contact-panel.automation-panel {
    z-index: 6001;
}

.contact-panel.automation-panel.no-animate {
    transition: none !important;
}

.automation-panel__header .panel-title-area {
    margin-bottom: 0;
}

.automation-panel__header .panel-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.automation-new-rule-btn {
    border: none;
    background: #2fc6f6;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.automation-new-rule-btn:hover {
    background: #1fb5e4;
}

.automation-panel__content.panel-content {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.automation-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 0;
    background: #f5f7f9;
}

.automation-stages {
    border-right: 1px solid #e5e9ee;
    background: #fff;
    overflow: auto;
    padding: 12px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.automation-stages-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a94a6;
    padding: 4px 8px 8px;
}

.automation-stages-empty {
    margin: 0;
    padding: 12px 8px;
    font-size: 13px;
    color: #8a94a6;
}

.automation-stage-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    padding: 10px 10px;
    cursor: pointer;
    color: #333;
}

.automation-stage-item:hover {
    background: #f3f6f8;
}

.automation-stage-item.is-active {
    background: #eaf8fd;
    border-color: #b6e7f7;
}

.automation-stage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.automation-stage-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.automation-stage-item-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.automation-stage-item-desc {
    font-size: 11px;
    color: #8a94a6;
    line-height: 1.35;
}

.automation-stage-item-count {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef2f4;
    color: #5c6670;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.automation-stage-item.is-active .automation-stage-item-count {
    background: #2fc6f6;
    color: #fff;
}

.automation-rules-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.automation-rules-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e5e9ee;
    background: #fff;
}

.automation-rules-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
}

.automation-rules-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.automation-rules-count {
    font-size: 12px;
    font-weight: 700;
    color: #5c6670;
    background: #eef2f4;
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.automation-panel .automation-board {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 24px;
}

.automation-rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
}

.automation-rule-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 12px;
    padding: 14px 14px;
    cursor: pointer;
}

.automation-rule-card:hover {
    border-color: #b6e7f7;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.automation-rule-card.is-disabled {
    opacity: 0.65;
}

.automation-rule-card-main {
    min-width: 0;
    flex: 1;
}

.automation-rule-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.automation-rule-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.3;
}

.automation-rule-card-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.automation-rule-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.automation-rule-card-edit {
    border: 1px solid #d8dee4;
    background: #fff;
    color: #2067b0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.automation-rule-card-edit:hover {
    background: #f3f6f8;
}

.automation-rule-card-delete {
    border: 1px solid #f0d4d4;
    background: #fff;
    color: #c62828;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.automation-rule-card-delete:hover {
    background: #fff5f5;
}

.automation-rules-empty {
    max-width: 480px;
    margin: 24px auto;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.automation-rules-empty-cta {
    margin-top: 12px;
    border: none;
    background: #2fc6f6;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.automation-rules-empty-cta:hover {
    background: #1fb5e4;
}

@media (max-width: 900px) {
    .automation-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .automation-stages {
        border-right: none;
        border-bottom: 1px solid #e5e9ee;
        max-height: 180px;
    }
}

.automation-mini-when {
    font-size: 11px;
    color: #80868e;
}

.automation-mini-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 4px;
}

.automation-mini-badge--msg {
    background: rgba(47, 198, 246, 0.15);
    color: #1a9ec4;
}

.automation-mini-badge--stage {
    background: rgba(157, 207, 0, 0.18);
    color: #6a8f00;
}

.automation-mini-badge--ai {
    background: rgba(199, 125, 255, 0.15);
    color: #9b4fd4;
}

.automation-drop-placeholder {
    border: 2px dashed rgba(47, 198, 246, 0.55);
    border-radius: 12px;
    background: rgba(47, 198, 246, 0.08);
}

/* legado Ã¢ÂÂ oculto */
.automation-modal-overlay,
.automation-modal-close,
.automation-title-row,
.automation-tabs,
.automation-header,
.automation-top {
    display: none !important;
}
.automation-col-body {
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Cards no mesmo estilo das fichas do CRM */
.automation-card.kanban-card {
    cursor: grab;
}
.automation-card.kanban-card:active {
    cursor: grabbing;
}
.automation-mini-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.automation-mini-when {
    font-size: 11px;
    color: #7b88a0;
    text-transform: lowercase;
}
.automation-mini-x {
    font-size: 12px;
    color: #a0a5aa;
    opacity: 0.8;
}
.automation-mini-title {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}
.automation-mini-sub {
    font-size: 12px;
    color: #535c69;
    margin-bottom: 10px;
}
.automation-mini-footer {
    font-size: 11px;
    color: #a0a5aa;
    text-align: right;
}

.automation-card--drag-ghost {
    opacity: 0.35;
    border-style: dashed !important;
}

.automation-drop-placeholder {
    border-radius: 10px;
    border: 2px dashed rgba(47, 198, 246, 0.55);
    background: rgba(255,255,255,0.18);
}
.automation-empty {
    text-align: center;
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.78);
    padding: 26px 0;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
}

/* Modal de ediÃÂ§ÃÂ£o/criaÃÂ§ÃÂ£o de automaÃÂ§ÃÂ£o (igual print) */
.automation-rule-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 7000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.automation-rule-overlay.open {
    opacity: 1;
    visibility: visible;
}

.automation-rule-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 720px;
    max-width: calc(100vw - 140px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    z-index: 7010;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.automation-rule-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.automation-rule-modal-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f4;
    background: #f7fafc;
}
.automation-rule-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.automation-rule-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #80868e;
}
.automation-rule-modal-close:hover {
    background: #eef2f4;
}

.automation-rule-modal-body {
    padding: 16px 18px 18px 18px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.automation-rule-block {
    border: 1px solid #e8eef3;
    border-radius: 12px;
    background: #fbfcfd;
    padding: 14px 14px 12px;
}

.automation-rule-block-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7785;
}

.automation-rule-field {
    margin-bottom: 12px;
}

.automation-rule-field:last-child {
    margin-bottom: 0;
}

.automation-rule-label {
    display: block;
    width: auto;
    color: #6b7785;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.automation-rule-readonly {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e4ebf1;
    background: #f3f6f8;
    color: #333;
    font-size: 13px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.automation-rule-hint {
    margin: 8px 0 0;
    color: #80868e;
    font-size: 12px;
}

.automation-rule-details-empty {
    margin: 0;
    color: #80868e;
    font-size: 13px;
}

.automation-rule-field textarea,
.automation-rule-textarea {
    width: 100%;
    min-height: 110px;
    border-radius: 8px;
    border: 1px solid #dfe7ee;
    padding: 12px;
    font-size: 13px;
    outline: none;
    margin-top: 0;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.automation-rule-textarea--tall {
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
}
.automation-rule-field textarea:focus,
.automation-rule-textarea:focus {
    border-color: rgba(47, 198, 246, 0.9);
    box-shadow: 0 0 0 3px rgba(47, 198, 246, 0.15);
}

.automation-rule-field .automation-rule-select,
.automation-rule-field .automation-rule-input {
    width: 100%;
    margin-top: 0;
    border-radius: 8px;
    border: 1px solid #dfe7ee;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.automation-rule-field .automation-rule-select:focus,
.automation-rule-field .automation-rule-input:focus {
    border-color: rgba(47, 198, 246, 0.9);
    box-shadow: 0 0 0 3px rgba(47, 198, 246, 0.15);
}

.automation-rule-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #535c69;
    font-size: 13px;
}

.automation-rule-modal-footer {
    padding: 16px 18px 18px 18px;
    border-top: 1px solid #eef2f4;
    display: flex;
    gap: 14px;
    justify-content: center;
    background: #fff;
}

/* Pipeline Manager */
.pipeline-manager-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    z-index: 2070;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.pipeline-manager-overlay.open {
    opacity: 1;
    visibility: visible;
}
.pipeline-manager-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 980px;
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 120px);
    background: #f5f7f9;
    border-radius: 14px;
    z-index: 2080;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pipeline-manager-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.pipeline-manager-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eef2f4;
}
.pipeline-manager-title {
    font-size: 15px;
    font-weight: 800;
    color: #333;
}
.pipeline-manager-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #80868e;
}
.pipeline-manager-close:hover {
    background: #eef2f4;
}
.pipeline-manager-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.pipeline-manager-left {
    width: 240px;
    background: #fff;
    border-right: 1px solid #eef2f4;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pipeline-manager-left-title {
    font-size: 12px;
    font-weight: 800;
    color: #535c69;
}
.pipeline-manager-left-hint {
    font-size: 11px;
    color: #80868e;
    margin: 0 0 8px;
    line-height: 1.35;
}
.pipeline-manager-pipeline-list {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pipeline-manager-group {
    padding: 10px 10px 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #80868e;
}
.pipeline-manager-group:not(:first-child) {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef2f4;
}
.pipeline-item {
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    color: #333;
    font-size: 12px;
    display: grid;
    grid-template-columns: 22px 1fr 14px;
    gap: 6px;
    align-items: center;
}
.pipeline-item-grip {
    color: #a0a5aa;
    cursor: grab;
    text-align: center;
    user-select: none;
    line-height: 1;
}
.pipeline-item-grip:active {
    cursor: grabbing;
}
.pipeline-item-chevron {
    font-size: 10px;
    color: #a0a5aa;
    justify-self: end;
}
.pipeline-item-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pipeline-item--dragging {
    opacity: 0.45;
}
.pipeline-item--drag-over {
    border-color: rgba(47, 198, 246, 0.55);
    background: rgba(47, 198, 246, 0.1);
}
.pipeline-item:hover {
    background: #f5f7f9;
}
.pipeline-item.active {
    background: rgba(47, 198, 246, 0.15);
    border-color: rgba(47, 198, 246, 0.35);
}
.pipeline-manager-add {
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px dashed #d1d5d8;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    color: #535c69;
}
.pipeline-manager-right {
    flex: 1;
    padding: 14px;
    overflow: auto;
}
.pipeline-manager-right-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.pipeline-manager-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pipeline-manager-danger {
    background: #fff;
    color: #d64545;
    border: 1px solid #f0c7c7;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pipeline-manager-danger:hover {
    background: #fff5f5;
    border-color: #e8a8a8;
}
.pipeline-manager-danger:disabled {
    cursor: wait;
    opacity: 0.7;
}
.pipeline-manager-name-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pipeline-manager-name-label {
    font-size: 11px;
    font-weight: 600;
    color: #80868e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pipeline-manager-name-input {
    width: 100%;
    max-width: 420px;
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    outline: none;
    background: #fff;
}
.pipeline-manager-name-input:focus {
    border-color: #2fc6f6;
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.15);
}
.pipeline-manager-right-title {
    font-size: 14px;
    font-weight: 800;
    color: #333;
}
.pipeline-manager-primary {
    background: #51b942;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
    transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.pipeline-manager-primary:hover {
    transform: translateY(-1px);
}
.pipeline-manager-primary:disabled,
.pipeline-manager-primary.is-saving {
    cursor: wait;
    opacity: 0.78;
    background: #6abf5e;
}
.pipeline-manager-stage-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stage-row {
    background: #fff;
    border: 1px solid #eef2f4;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 22px 1fr 110px 34px;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.28s ease, transform 0.28s ease;
    will-change: max-height, opacity, transform;
}
.stage-row--collapsing {
    pointer-events: none;
    transform: scale(0.98);
}
.stage-row--entering {
    pointer-events: none;
    animation: stage-row-enter 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes stage-row-enter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.stage-handle {
    color: #a0a5aa;
    text-align: center;
    cursor: grab;
}
.stage-name {
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}
.stage-color {
    border: 1px solid #dfe7ee;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 13px;
    height: 34px;
    background: #fff;
}
.stage-remove {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dfe7ee;
    background: #fff;
    cursor: pointer;
    color: #80868e;
}
.stage-remove:hover {
    background: #f5f7f9;
}
.pipeline-manager-add-stage {
    margin-top: 10px;
    width: 180px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed #d1d5d8;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
    color: #535c69;
}
.automation-rule-btn-save {
    background: #b7e200;
    border: none;
    color: #2b3a00;
    font-weight: 800;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
}
.automation-rule-btn-cancel {
    background: transparent;
    border: none;
    color: #535c69;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* Kanban Action Bar Ã¢ÂÂ sobrepÃÂµe a linha do cabeÃÂ§alho (nÃÂ£o ocupa fluxo nem empurra o Kanban) */
.kanban-action-bar {
    display: flex;
    background: #fff;
    padding: 10px 20px;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    font-size: 11px;
    color: #535c69;
    border-radius: 4px;
    min-width: 0;
}
.kanban-toolbar-overlay--selection-active .kanban-action-bar {
    z-index: 80200;
}
.kanban-toolbar-overlay--selection-active .kanban-header .page-title,
.kanban-toolbar-overlay--selection-active .kanban-header .header-buttons,
.kanban-toolbar-overlay--selection-active .kanban-header .kanban-filter-anchor {
    visibility: hidden;
    pointer-events: none;
}
.kanban-action-bar .selection-count {
    border-right: 1px solid #eef2f4;
    padding-right: 15px;
    font-weight: normal;
    color: #a0a5aa;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.kanban-action-bar .selection-count span {
    color: #333;
    font-weight: 600;
    margin-left: 5px;
}
.kanban-action-bar .action-bar-items {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.kanban-action-bar .action-bar-items span,
.kanban-action-bar .action-bar-items .kanban-action-btn {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.kanban-action-bar .action-bar-items span:hover,
.kanban-action-bar .action-bar-items .kanban-action-btn:hover {
    color: #333;
}
.kanban-action-bar .action-bar-items .kanban-action-stub {
    cursor: default;
    opacity: 0.45;
}
.kanban-action-bar .action-bar-items .kanban-action-stub:hover {
    color: inherit;
}

.kanban-bulk-stage-menu {
    position: fixed;
    z-index: 90000;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 16px));
    max-height: min(360px, calc(100vh - 16px));
    overflow: auto;
    background: #fff;
    border: 1px solid #eef2f4;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}
.kanban-bulk-stage-menu-title {
    padding: 6px 14px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #a0a5aa;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.kanban-bulk-stage-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    color: #535c69;
    cursor: pointer;
}
.kanban-bulk-stage-menu-item:hover,
.kanban-bulk-stage-menu-item:focus-visible {
    background: #f5f7f8;
    color: #333;
    outline: none;
}

.kanban-bulk-delete-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}
.kanban-bulk-delete-overlay[hidden] {
    display: none !important;
}
.kanban-bulk-delete-dialog {
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    padding: 22px 24px 18px;
}
.kanban-bulk-delete-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.kanban-bulk-delete-progress {
    font-size: 22px;
    font-weight: 600;
    color: #535c69;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.kanban-bulk-delete-bar {
    height: 8px;
    border-radius: 4px;
    background: #eef2f4;
    overflow: hidden;
    margin-bottom: 10px;
}
.kanban-bulk-delete-bar-fill {
    height: 100%;
    width: 0;
    background: #2fc6f6;
    transition: width 0.15s ease;
}
.kanban-bulk-delete-status {
    font-size: 13px;
    color: #a0a5aa;
    min-height: 1.2em;
    margin-bottom: 14px;
}
.kanban-bulk-delete-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    border: 1px solid #d5dbe0;
    background: #fff;
    color: #535c69;
    border-radius: 4px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.kanban-bulk-delete-cancel:hover:not(:disabled) {
    background: #f5f7f8;
}
.kanban-bulk-delete-cancel:disabled {
    opacity: 0.6;
    cursor: default;
}

/* PIPELINE STEP BAR */
.panel-pipeline {
    display: flex;
    margin: 15px 20px 0 20px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    height: 30px;
}

#dealPanelPipeline.panel-pipeline {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    min-height: 30px;
    padding: 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

#dealPanelPipeline.panel-pipeline::-webkit-scrollbar {
    height: 6px;
}

#dealPanelPipeline.panel-pipeline::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.panel-pipeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 20px 0;
    padding: 8px 12px;
    background: #eef2f4;
    border-radius: 10px;
    font-size: 12px;
}

.panel-pipeline-meta-label {
    font-weight: 600;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-pipeline-meta-pos {
    flex-shrink: 0;
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    color: #535c69;
    position: relative;
    cursor: pointer;
}

#dealPanelPipeline .pipeline-step {
    flex: 0 0 auto;
    min-width: 72px;
    max-width: 148px;
    padding: 0 22px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dealPanelPipeline.panel-pipeline--many .pipeline-step {
    min-width: 88px;
    max-width: 120px;
    font-size: 11px;
    padding: 0 18px 0 8px;
}
.pipeline-step::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 10px solid #f8f9fa;
    z-index: 2;
}
.pipeline-step::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 12px solid #fff;
    z-index: 1;
}
.pipeline-step.end::after, .pipeline-step.end::before {
    display: none;
}
.pipeline-step.blue { background: #3bc8f5; color: #fff; }
.pipeline-step.blue::after { border-left-color: #3bc8f5; }
.pipeline-step.cyan { background: #2fc6f6; color: #fff; }
.pipeline-step.cyan::after { border-left-color: #2fc6f6; }
.pipeline-step.light-gray { background: #eef2f4; color: #a0a5aa; }
.pipeline-step.light-gray::after { border-left-color: #eef2f4; }
.pipeline-step.yellow { background: #ffbe00; color: #333; }
.pipeline-step.yellow::after { border-left-color: #ffbe00; }
.pipeline-step.active {
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}

/* Painel do negÃÂ³cio (#dealPanelPipeline): sÃÂ³ a etapa atual usa cor do Kanban; resto neutro. */
.panel-pipeline .pipeline-step.pipeline-step--muted {
    background: #eef2f4;
    color: #a0a5aa;
}
.panel-pipeline .pipeline-step.pipeline-step--muted::after {
    border-left-color: #eef2f4;
}
.panel-pipeline .pipeline-step.pipeline-step--current-stage {
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background-color: var(--deal-pipe-bg, #2fc6f6);
    color: var(--deal-pipe-fg, #fff);
}
.panel-pipeline .pipeline-step.pipeline-step--current-stage::after {
    border-left-color: var(--deal-pipe-bg, #2fc6f6);
}

/* Auth + API (Supabase) */
.prisma-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(14, 23, 43, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.prisma-auth-modal {
    width: 100%;
    max-width: 400px;
    padding: 28px;
    border-radius: 12px;
    background: rgba(23, 35, 66, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.prisma-auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.prisma-auth-hint {
    font-size: 13px;
    color: #aeb6c7;
    margin-bottom: 20px;
    line-height: 1.4;
}
.prisma-auth-label {
    display: block;
    font-size: 12px;
    color: #aeb6c7;
    margin-bottom: 14px;
}
.prisma-auth-input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 14px;
}
.prisma-auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3da8f5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.prisma-auth-submit:hover {
    filter: brightness(1.05);
}
.prisma-auth-error {
    margin-top: 14px;
    font-size: 13px;
    color: #ff8a8a;
    min-height: 1.2em;
}
.prisma-org-select {
    margin-right: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 12px;
    max-width: 200px;
}
.prisma-logout-btn {
    margin-right: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #aeb6c7;
    font-size: 12px;
    cursor: pointer;
}
.prisma-logout-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Modal novo negÃÂ³cio */
/* Toast global (ex.: negÃÂ³cio gravado no Supabase) Ã¢ÂÂ texto selecionÃÂ¡vel e botÃÂ£o Copiar em erros */
.prisma-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 12000;
    max-width: min(560px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #2d7a32;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease;
    pointer-events: auto;
}

.prisma-toast.prisma-toast--visible {
    transform: translateX(-50%) translateY(0);
}

.prisma-toast.prisma-toast--error {
    background: #c0392b;
}

.prisma-toast__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prisma-toast__text {
    margin: 0;
    line-height: 1.45;
    user-select: text;
    cursor: text;
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-user-select: text;
}

.prisma-toast__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.prisma-toast__btn {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.prisma-toast__btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.prisma-toast__close {
    min-width: 32px;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.prisma-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(14, 23, 43, 0.72);
    backdrop-filter: blur(4px);
    padding: 16px;
}
/* Novo negÃÂ³cio Ã¢ÂÂ overlay em tela cheia (cobre sidebar e conteÃÂºdo) */
.prisma-modal-overlay--deal {
    position: fixed;
    inset: 0;
    width: auto;
    z-index: 9500;
    align-items: stretch;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    pointer-events: auto;
}

.prisma-new-deal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.prisma-new-deal-modal {
    width: 100%;
    max-width: 1040px;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #dfe3eb;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    color: #525c69;
}

.prisma-new-deal-modal.prisma-new-deal-modal--sheet {
    position: absolute;
    top: 0;
    right: -100%;
    width: calc(100% - 100px);
    max-width: calc(100vw - 100px);
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 15px 0 0 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    background: #f5f7f9;
    color: #333;
    z-index: 1;
    transition: right 0.3s ease-in-out;
}

body:has(.sidebar.collapsed) .prisma-new-deal-modal.prisma-new-deal-modal--sheet {
    max-width: calc(100vw - 100px);
}

.prisma-modal-overlay--deal.prisma-new-deal-overlay-open .prisma-new-deal-modal--sheet {
    right: 60px;
}

.prisma-new-contact-photo-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #525c69;
    background: #eef1f4;
    border: 1px solid #cdd5df;
    border-radius: 4px;
    cursor: pointer;
}

.prisma-new-contact-photo-btn:hover {
    background: #e4e8ed;
}

.prisma-new-contact-photo-note {
    margin: 6px 0 0;
    font-size: 11px;
    color: #868d95;
    line-height: 1.35;
}

/* Novo contato: rolagem na coluna branca (formulÃÂ¡rio) */
#newContactModal .prisma-new-deal-card {
    overflow: hidden;
}

#newContactModal .prisma-new-deal-main {
    min-height: 0;
}

#newContactModal .prisma-new-deal-white {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

#newContactModal .prisma-new-contact-white-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 16px 16px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

#newContactModal .prisma-new-deal-side {
    min-height: 0;
    overflow-y: auto;
}

/* Nova empresa: coluna branca com rolagem vertical (barra lateral) */
#newCompanyModal .prisma-new-deal-card {
    overflow: hidden;
}

#newCompanyModal .prisma-new-deal-main {
    min-height: 0;
}

#newCompanyModal .prisma-new-deal-white {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

#newCompanyModal .prisma-new-contact-white-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 10px 16px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

#newCompanyModal .prisma-new-contact-white-scroll::-webkit-scrollbar {
    width: 10px;
}

#newCompanyModal .prisma-new-contact-white-scroll::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 5px;
}

#newCompanyModal .prisma-new-contact-white-scroll::-webkit-scrollbar-thumb {
    background: #c5cbd4;
    border-radius: 5px;
    border: 2px solid #f0f2f5;
}

#newCompanyModal .prisma-new-contact-white-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8b0bc;
}

#newCompanyModal .prisma-new-deal-side {
    min-height: 0;
    overflow-y: auto;
}

.prisma-company-major-divider {
    border: 0;
    height: 4px;
    margin: 22px 0 18px;
    background: #dfe3e9;
    border-radius: 2px;
}

.prisma-company-more-head {
    margin-top: 4px;
    margin-bottom: 12px;
}

.prisma-company-more-fields {
    padding-bottom: 4px;
}

.prisma-company-check-row {
    margin: 4px 0 8px;
}

.prisma-company-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.prisma-company-check input {
    width: 16px;
    height: 16px;
    accent-color: #2fc6f6;
    cursor: pointer;
}

.prisma-company-responsible-card {
    position: relative;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    background: #fafbfc;
    padding: 12px 14px 12px 12px;
    min-height: 56px;
}

.prisma-company-responsible-change {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #2067b0;
    cursor: pointer;
    padding: 2px 4px;
}

.prisma-company-responsible-change:hover {
    text-decoration: underline;
}

.prisma-company-responsible-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 72px;
}

.prisma-company-responsible-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8ecf1;
    color: #858fa4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.prisma-company-responsible-email {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.prisma-company-comment-block {
    margin-bottom: 8px;
}

.prisma-company-comment-block .prisma-deal-section-foot {
    margin-top: 12px;
}

.prisma-company-rt-wrap {
    border: 1px solid #dfe3e9;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.prisma-company-rt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}

.prisma-company-rt-btn {
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
    color: #525c69;
    cursor: pointer;
    line-height: 1;
}

.prisma-company-rt-btn:hover {
    background: #e8ecf1;
    color: #333;
}

.prisma-company-rt-sep {
    width: 1px;
    height: 18px;
    background: #dce1e8;
    margin: 0 4px;
}

.prisma-company-rt-textarea {
    display: block;
    width: 100%;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.45;
    box-sizing: border-box;
}

.prisma-company-rt-textarea:focus {
    outline: none;
}

.prisma-contact-form-divider {
    border: 0;
    border-top: 1px solid #eef1f4;
    margin: 18px 0 0;
}

.prisma-contact-extra-section {
    margin-top: 14px;
}

.prisma-contact-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.prisma-contact-section-head .prisma-field-label {
    margin: 0;
}

.prisma-contact-section-head-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prisma-contact-drag-handle {
    color: #c5cbd4;
    font-size: 14px;
    cursor: grab;
}

.prisma-contact-section-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.prisma-contact-section-head-actions .prisma-deal-section-cancel {
    margin: 0;
    padding: 2px 4px;
}

.prisma-contact-info-box {
    border: 1px dashed #c5cbd4;
    border-radius: 4px;
    padding: 12px 14px;
    background: #fafbfc;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.prisma-field-row--search-end {
    position: relative;
    display: flex;
    align-items: center;
}

.prisma-field-row--search-end .prisma-field-input {
    width: 100%;
    padding-right: 32px;
}

.prisma-field-row--search-end .prisma-field-search-end {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8b0bc;
    font-size: 14px;
    pointer-events: none;
}

.prisma-new-deal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.prisma-new-deal-card {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: auto;
    align-items: stretch;
    background: #dfe3eb;
}

.prisma-new-deal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #dfe3eb;
}

.prisma-new-deal-top {
    flex-shrink: 0;
    padding: 18px 18px 0;
}

.prisma-new-deal-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.prisma-new-deal-heading {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.02em;
}

.prisma-new-deal-title-link {
    border: none;
    background: none;
    padding: 4px;
    color: #a8b0bc;
    cursor: pointer;
    font-size: 15px;
}

.prisma-new-deal-title-link:hover {
    color: #2fc6f6;
}

.prisma-new-deal-pipeline-btn {
    border: none;
    background: none;
    padding: 4px 2px;
    font-size: 12px;
    color: #2fc6f6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.prisma-new-deal-pipeline-btn:hover {
    text-decoration: underline;
}

/* Etapas em chevron (funil) */
.prisma-deal-pipeline-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.prisma-deal-pipeline-step {
    position: relative;
    flex: 0 0 auto;
    margin-left: -11px;
    padding: 12px 36px 12px 40px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #525c69;
    background: #ccd4df;
    white-space: nowrap;
    clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
    transition: background 0.15s ease, color 0.15s ease;
}

.prisma-deal-pipeline-step:first-child {
    margin-left: 0;
    padding-left: 18px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
    border-radius: 4px 0 0 4px;
}

.prisma-deal-pipeline-step:last-child {
    clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
    border-radius: 0 4px 4px 0;
    padding-right: 18px;
}

.prisma-deal-pipeline-step:only-child {
    clip-path: none;
    border-radius: 4px;
    padding-left: 18px;
    padding-right: 18px;
}

.prisma-deal-pipeline-step:hover:not(.prisma-deal-pipeline-step--active) {
    background: #bdc7d5;
}

.prisma-deal-pipeline-step--active {
    background: #fff;
    color: #333;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Barra de etapas compacta (referÃÂªncia: Criar fatura) */
.prisma-deal-progress-shell {
    margin: 0 0 10px;
}

.prisma-deal-pipeline-strip--invoice-style {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    background: #e8ecf1;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.prisma-deal-pipeline-strip--invoice-style .prisma-deal-pipeline-step {
    flex: 1 1 auto;
    min-width: 72px;
    margin-left: 0 !important;
    clip-path: none !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    background: transparent;
    color: #868d95;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.prisma-deal-pipeline-strip--invoice-style .prisma-deal-pipeline-step:first-child,
.prisma-deal-pipeline-strip--invoice-style .prisma-deal-pipeline-step:last-child {
    border-radius: 8px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.prisma-deal-pipeline-strip--invoice-style .prisma-deal-pipeline-step:hover:not(.prisma-deal-pipeline-step--active) {
    background: rgba(255, 255, 255, 0.55);
    color: #525c69;
}

.prisma-deal-pipeline-strip--invoice-style .prisma-deal-pipeline-step--active {
    background: #fff;
    color: #333;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    z-index: 1;
}

/* Abas principais (Geral, Produtos, Ã¢ÂÂ¦) */
.prisma-deal-main-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 0;
}

.prisma-deal-main-tab {
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #858fa4;
    background: transparent;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}

.prisma-deal-main-tab:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.45);
}

.prisma-deal-main-tab--active {
    background: #fff;
    color: #333;
    font-weight: 600;
}

/* FormulÃÂ¡rio + painel lateral */
.prisma-new-deal-columns {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 0 16px 12px;
    gap: 12px;
    background: #dfe3eb;
}

.prisma-new-deal-rail {
    flex: 0 0 44px;
    background: #2fc6f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 14px;
    gap: 6px;
}

.prisma-rail-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0;
    transition: background 0.15s ease;
}

.prisma-rail-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.prisma-rail-btn--close {
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.28);
}

.prisma-new-deal-white {
    flex: 1 1 52%;
    min-width: 0;
    padding: 18px 20px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Modal Criar fatura / Novo orÃÂ§amento: formulÃÂ¡rio rolÃÂ¡vel na coluna branca */
#newInvoiceModal .prisma-new-deal-card,
#newQuoteModal .prisma-new-deal-card {
    overflow: hidden;
}

#newInvoiceModal .prisma-new-deal-main,
#newQuoteModal .prisma-new-deal-main {
    min-height: 0;
    overflow: hidden;
}

#newInvoiceModal .prisma-new-deal-columns,
#newQuoteModal .prisma-new-deal-columns {
    flex: 1;
    min-height: 0;
}

#newInvoiceModal .prisma-invoice-form-white,
#newQuoteModal .prisma-invoice-form-white {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

#newInvoiceModal .prisma-invoice-form-scroll,
#newQuoteModal .prisma-invoice-form-scroll {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

#newInvoiceModal .prisma-new-deal-side,
#newQuoteModal .prisma-new-deal-side {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
}

.prisma-invoice-section-sub {
    font-size: 13px;
    color: #525c69;
    margin: -4px 0 14px;
    line-height: 1.4;
}

.prisma-field-row--products-box {
    align-items: stretch;
}

.prisma-field-row--products-box .prisma-invoice-products-drop {
    flex: 1;
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f9fc;
    border: 1px dashed #7eb8e5;
    border-radius: 4px;
}

.prisma-invoice-add-link {
    border: none;
    background: none;
    color: #2fc6f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
}

.prisma-invoice-add-link:hover {
    text-decoration: underline;
}

.prisma-field-row--invoice-beneficiary .prisma-field-input {
    padding-right: 78px;
}

.prisma-field-row--invoice-beneficiary .prisma-field-inline-icon--right {
    right: 46px;
}

.prisma-deal-section-foot--tight {
    margin-top: 10px;
}

.prisma-invoice-layout-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 20px 0 4px;
    margin-top: 6px;
    border-top: 1px solid #eef1f4;
}

.prisma-invoice-layout-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: #2fc6f6;
    cursor: pointer;
}

.prisma-invoice-layout-link:hover {
    text-decoration: underline;
}

.prisma-invoice-layout-link--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #525c69;
}

.prisma-invoice-layout-link--with-icon i {
    color: #858fa4;
    font-size: 14px;
}

.prisma-quote-attach-btn {
    border: none;
    background: none;
    padding: 4px 0;
    font-size: 13px;
    color: #2fc6f6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prisma-quote-attach-btn:hover {
    text-decoration: underline;
}

.prisma-field-readonly {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    font-size: 14px;
    color: #525c69;
    background: #f3f5f7;
    line-height: 1.35;
}

.prisma-field-block--checkbox-row {
    margin-bottom: 0;
}

.prisma-field-row--checkbox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 10px;
}

.prisma-field-row--checkbox input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #2fc6f6;
    cursor: pointer;
}

.prisma-field-checkbox-label {
    flex: 1;
    min-width: 140px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.prisma-field-gear--checkbox-trail {
    margin-left: auto;
}

.prisma-field-row--quote-responsible {
    position: relative;
    display: flex;
    align-items: stretch;
}

.prisma-field-row--quote-responsible .prisma-field-inline-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prisma-field-row--quote-responsible .prisma-deal-responsible-placeholder {
    flex: 1;
    min-width: 0;
    padding: 9px 10px 9px 32px;
    font-size: 14px;
    color: #a8b0bc;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

.prisma-quote-alterar-btn {
    flex: 0 0 auto;
    align-self: center;
    border: none;
    background: none;
    color: #2fc6f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0 12px;
    margin-right: 0;
}

.prisma-quote-alterar-btn:hover {
    text-decoration: underline;
}

#newQuoteModal .prisma-deal-rte-textarea {
    min-height: 100px;
}

.prisma-new-deal-side {
    flex: 1 1 48%;
    min-width: 260px;
    padding: 16px 18px 14px;
    background: #e8ecf1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.prisma-deal-side-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #dce1e8;
    padding-bottom: 8px;
}

.prisma-deal-side-tabs--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prisma-deal-tab {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 13px;
    color: #858fa4;
    cursor: pointer;
    border-radius: 2px;
}

.prisma-deal-tab:hover {
    color: #2fc6f6;
    background: rgba(47, 198, 246, 0.08);
}

.prisma-deal-tab--active {
    color: #2fc6f6;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(47, 198, 246, 0.45);
    border-radius: 4px;
}

.prisma-deal-side-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prisma-deal-side-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cdd4de;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.prisma-deal-side-textarea::placeholder {
    color: #a8b0bc;
}

.prisma-deal-side-textarea:focus {
    outline: none;
    border-color: #2fc6f6;
    box-shadow: 0 0 0 1px rgba(47, 198, 246, 0.25);
}

.prisma-deal-side-editor-foot {
    display: flex;
    justify-content: flex-end;
}

.prisma-deal-side-actions-btn {
    border: 1px solid #dfe3e9;
    background: #fff;
    color: #858fa4;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
    cursor: pointer;
}

.prisma-deal-side-actions-btn:hover {
    border-color: #2fc6f6;
    color: #2fc6f6;
}

.prisma-deal-side-timeline {
    flex: 1;
    min-height: 120px;
    padding-top: 8px;
}

.prisma-deal-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef1f4;
    border-radius: 2px;
    background: #fff;
}

.prisma-deal-timeline-dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.prisma-deal-timeline-dot--plus {
    background: rgba(81, 185, 66, 0.2);
    color: #3a9d4a;
}

.prisma-deal-timeline-text {
    font-size: 13px;
    color: #858fa4;
    line-height: 1.4;
}

.prisma-deal-timeline-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.prisma-deal-timeline-pill--todo {
    background: rgba(81, 185, 66, 0.25);
    color: #2d7a32;
}

.prisma-deal-timeline-pill--today {
    background: rgba(47, 198, 246, 0.2);
    color: #1a8cbd;
    margin-top: 8px;
}

.prisma-deal-timeline-add {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #cdd4de;
    border-radius: 4px;
    margin-bottom: 8px;
}

.prisma-deal-timeline-add-inner {
    font-size: 13px;
    color: #333;
}

.prisma-deal-timeline-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: #dce2ea;
    border-radius: 4px;
    font-size: 13px;
    color: #525c69;
    line-height: 1.4;
}

.prisma-deal-timeline-msg .fa-info-circle {
    color: #2fc6f6;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .prisma-new-deal-columns {
        flex-direction: column;
    }
    .prisma-new-deal-white {
        border-bottom: none;
    }
    .contact-panel.automation-panel {
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
    }
    .contact-panel {
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
    }
    .prisma-modal-overlay--deal {
        left: 0;
    }
    body:has(.sidebar.collapsed) .prisma-modal-overlay--deal {
        left: 0;
    }
    .prisma-new-deal-modal.prisma-new-deal-modal--sheet {
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
    }
}

.prisma-new-deal-title {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.prisma-deal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prisma-deal-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prisma-deal-section-title-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #858fa4;
    text-transform: uppercase;
}

.prisma-deal-section-edit {
    border: none;
    background: none;
    padding: 2px;
    color: #a8b0bc;
    cursor: pointer;
    font-size: 12px;
}

.prisma-deal-section-edit:hover {
    color: #2fc6f6;
}

.prisma-deal-section-cancel {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: #858fa4;
    cursor: pointer;
    text-decoration: none;
}

.prisma-deal-section-cancel:hover {
    color: #2fc6f6;
    text-decoration: underline;
}

.prisma-deal-section-head--subsequent {
    margin-top: 4px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
}

.prisma-deal-fields--tight-top {
    gap: 12px;
}

.prisma-deal-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prisma-field-block {
    display: block;
    margin: 0;
}

.prisma-field-label {
    display: block;
    font-size: 12px;
    color: #858fa4;
    margin-bottom: 5px;
}

.prisma-field-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #dfe3e9;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
}

.prisma-field-row:focus-within {
    border-color: #2fc6f6;
    box-shadow: 0 0 0 1px rgba(47, 198, 246, 0.25);
}

.prisma-field-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 9px 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.prisma-field-input::placeholder {
    color: #a8b0bc;
}

.prisma-field-input:focus {
    outline: none;
}

.prisma-field-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23858fa4' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.prisma-field-date::-webkit-calendar-picker-indicator {
    opacity: 0.65;
    cursor: pointer;
}

.prisma-field-gear {
    flex: 0 0 36px;
    border: none;
    border-left: 1px solid #eef1f4;
    background: #fff;
    color: #a8b0bc;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.prisma-field-block--split .prisma-field-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .prisma-field-block--split .prisma-field-split {
        grid-template-columns: 1fr;
    }
}

.prisma-field-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #525c69;
    margin-top: 4px;
    margin-bottom: -4px;
}

.prisma-field-row--icon-left {
    position: relative;
}

.prisma-field-row--icon-left .prisma-field-inline-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8b0bc;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.prisma-field-row--icon-left .prisma-field-inline-icon--right {
    left: auto;
    right: 10px;
}

.prisma-field-row--icon-left .prisma-field-input,
.prisma-field-row--icon-left .prisma-field-select {
    padding-left: 32px;
}

.prisma-field-row--icon-left .prisma-field-select {
    padding-right: 32px;
    background-position: right 28px center;
}

.prisma-field-row--icon-left .prisma-field-input.prisma-deal-rte-textarea {
    padding-left: 10px;
}

.prisma-field-row--responsible .prisma-deal-responsible-placeholder {
    flex: 1;
    min-width: 0;
    padding: 9px 10px 9px 32px;
    font-size: 14px;
    color: #a8b0bc;
    line-height: 1.35;
    user-select: none;
}

.prisma-deal-rte-wrap {
    border: 1px solid #dfe3e9;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
}

.prisma-deal-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}

.prisma-deal-rte-tool {
    border: none;
    background: transparent;
    color: #525c69;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0;
}

.prisma-deal-rte-tool:hover {
    background: #eef1f4;
    color: #333;
}

.prisma-deal-rte-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    resize: vertical;
    min-height: 88px;
    padding: 9px 10px;
}

.prisma-deal-rte-textarea:focus {
    outline: none;
}

.prisma-link-add {
    align-self: flex-start;
    margin: -6px 0 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    color: #2fc6f6;
    cursor: pointer;
    text-decoration: none;
}

.prisma-link-add:hover {
    text-decoration: underline;
}

.prisma-deal-section-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
}

.prisma-deal-section-foot-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prisma-link-muted {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #858fa4;
    cursor: pointer;
}

.prisma-link-muted:hover {
    color: #2fc6f6;
}

.prisma-deal-foot-sep {
    color: #dfe3e9;
    font-size: 12px;
    user-select: none;
}

.prisma-link-danger {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #e74c3c;
    cursor: pointer;
}

.prisma-link-danger:hover {
    text-decoration: underline;
}

.prisma-new-deal-error {
    font-size: 13px;
    color: #e74c3c;
    margin: 12px 0 0;
    min-height: 0;
    user-select: text;
    cursor: text;
    white-space: pre-wrap;
    word-break: break-word;
}

.prisma-new-deal-retry {
    margin: 8px 0 0;
}

.prisma-new-deal-retry-btn {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
}

.prisma-new-deal-retry-btn:hover {
    background: #f1f5f9;
}

.prisma-new-deal-footer-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px 16px;
    margin: 0;
    background: #fff;
    border-top: 1px solid #cdd4de;
    flex-shrink: 0;
}

.prisma-new-deal-save {
    padding: 10px 32px;
    border: none;
    border-radius: 4px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.35);
}

.prisma-new-deal-save:hover:not(:disabled) {
    background: #15803d;
    filter: none;
}

.prisma-new-deal-save:disabled {
    background: #dfe3e9;
    color: #858fa4;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.prisma-new-deal-foot-cancel {
    border: none;
    background: none;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #858fa4;
    cursor: pointer;
}

.prisma-new-deal-foot-cancel:hover {
    color: #525c69;
}

.prisma-company-phone-row .prisma-company-cc {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
    color: #525c69;
    background: #fafbfc;
    border-right: 1px solid #eef1f4;
    white-space: nowrap;
}

.prisma-field-row .prisma-field-select--category {
    flex: 0 0 124px;
    max-width: 42%;
    border-left: 1px solid #eef1f4;
}

.cc-timeline-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 12px 16px;
    text-align: center;
}

.cc-timeline-action-text {
    display: inline-block;
    max-width: 85%;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-muted, #eef1f4);
    color: var(--text-muted, #5c6670);
    font-size: 12px;
    line-height: 1.35;
}

.cc-timeline-action-time {
    font-size: 11px;
    color: var(--text-muted, #8a939c);
}

.cc-conv-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cc-conv-header-actions .cc-conv-close-btn,
.cc-conv-header-actions .cc-conv-transfer-btn,
.cc-conv-header-actions .cc-conv-deal-btn {
    border: 1px solid var(--border-subtle, #d8dee4);
    background: #fff;
    color: var(--text-primary, #1f2933);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.cc-conv-header-actions .cc-conv-deal-btn {
    min-width: 34px;
    padding-left: 8px;
    padding-right: 8px;
}

.cc-conv-header-actions .cc-conv-close-btn:hover,
.cc-conv-header-actions .cc-conv-transfer-btn:hover,
.cc-conv-header-actions .cc-conv-deal-btn:hover {
    background: var(--surface-muted, #f3f5f7);
}

/* Ficha aberta a partir da conversa Ã¢ÂÂ acima do modal/painel do Contact Center */
.panel-overlay.open.panel-overlay--over-conversation {
    z-index: 6600;
}

.contact-panel.open.contact-panel--over-conversation {
    z-index: 6700;
}

.cc-conv-stage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

.cc-conv-stage-tab {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--border-subtle, #d8dee4);
    background: #fff;
    color: var(--text-muted, #5c6670);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.cc-conv-stage-tab.is-active {
    background: #1f2933;
    border-color: #1f2933;
    color: #fff;
}

.cc-conv-accept-bar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-subtle, #e5e9ef);
    background: #f8fafc;
}

.cc-conv-accept-lead {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted, #5c6670);
    text-align: center;
}

.cc-conv-accept-btn {
    border: 0;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
}

.cc-conv-accept-btn:hover {
    background: #0d9488;
}

.cc-conv-people {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    max-width: 100%;
}

.cc-conv-people-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted, #8a939c);
    margin-right: 6px;
    flex-shrink: 0;
}

.cc-conv-owner-row,
.cc-conv-participants-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cc-conv-owner-label {
    display: inline;
    margin-top: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #1f2933);
}

.cc-conv-owner-label.is-empty {
    font-weight: 500;
    color: var(--text-muted, #8a939c);
}

.cc-conv-participants-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.cc-conv-participant-empty {
    font-size: 12px;
    color: var(--text-muted, #8a939c);
}

.cc-conv-participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 180px;
    padding: 2px 6px 2px 8px;
    border-radius: 999px;
    background: #eef2f6;
    border: 1px solid var(--border-subtle, #d8dee4);
    font-size: 12px;
    color: var(--text-primary, #1f2933);
}

.cc-conv-participant-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-conv-participant-remove {
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

.cc-conv-participant-remove:hover {
    color: #b91c1c;
}

.cc-conv-add-participant-btn {
    border: 1px dashed var(--border-subtle, #d8dee4);
    background: #fff;
    color: var(--text-primary, #1f2933);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.cc-conv-add-participant-btn:hover {
    border-color: #9aa5b1;
    background: #f8fafc;
}

.cc-conv-read-bar {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--border-subtle, #e5e7eb);
    background: var(--surface-muted, #f9fafb);
}

.cc-conv-read-bar--unread {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.cc-conv-read-bar--read {
    color: var(--text-muted, #6b7280);
}

.cc-conv-viewed-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px auto 8px;
    padding: 6px 14px;
    max-width: fit-content;
    border-radius: 999px;
    background: var(--surface-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);
    font-size: 12px;
}

.cc-conv-viewed-footer-icon {
    color: #16a34a;
    font-weight: 700;
}

.chat-message-row--unread .chat-message-bubble {
    box-shadow: none;
}

.chat-message-row--unread .cc-msg-unread-badge {
    display: none;
}

.cc-msg-read-status {
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    letter-spacing: -1px;
}

.cc-conv-transfer-modal .cc-conv-transfer-user-select {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 16px;
}

.cc-conv-transfer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.cc-conv-transfer-lead {
    margin: 0 0 12px;
    color: var(--text-muted, #5c6670);
    font-size: 14px;
}

/* Login */
body.login-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #0f2744 0%, #1a4a7a 45%, #f0a030 120%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0a030, #e87820);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.login-brand h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1a2b3c;
}

.login-brand p {
    margin: 0;
    color: #6b7785;
    font-size: 14px;
}

.login-field {
    display: block;
    margin-bottom: 16px;
}

.login-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3d4a57;
}

.login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    font-size: 15px;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 44px;
}

.login-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7785;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.login-password-toggle:hover {
    color: #1a2b3c;
    background: rgba(15, 39, 68, 0.06);
}

.login-footnote {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.login-field input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

@keyframes loginAutofillStart {}

.login-field input:-webkit-autofill {
    animation-name: loginAutofillStart;
    animation-duration: 0.001s;
}

.login-pending {
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #2b6cb0;
}

body.login-page:not(.login-page-ready) .login-form {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

.login-submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #2b6cb0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.login-submit:hover:not(:disabled) {
    background: #245a94;
}

.login-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.login-hint {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: #6b7785;
}

/* Desenvolvedor Ã¢ÂÂ console em tempo real */
.dev-console-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    background: #0f1419;
    color: #d4d4d4;
}

.dev-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #2a3441;
    background: #151b23;
    flex-shrink: 0;
}

.dev-console-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #e8edf2;
}

.dev-console-title i {
    margin-right: 8px;
    color: #3bc8f5;
}

.dev-console-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8b9aab;
}

.dev-console-toolbar {
    display: flex;
    gap: 8px;
}

.dev-console-btn {
    padding: 8px 14px;
    border: 1px solid #3a4a5c;
    border-radius: 6px;
    background: #1e2836;
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.dev-console-btn:hover {
    background: #263244;
}

.dev-console-btn.is-active {
    border-color: #3bc8f5;
    color: #3bc8f5;
}

.dev-console-btn--danger:hover {
    border-color: #e85d5d;
    color: #ff8a8a;
}

.dev-console-shell {
    flex: 1;
    min-height: 0;
    padding: 0 12px 12px;
}
    flex-shrink: 0;
    padding: 10px 20px 8px;
    border-bottom: 1px solid #2a3441;
    background: #121820;
}

.dev-console-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.dev-console-chip {
    padding: 5px 10px;
    border: 1px solid #3a4a5c;
    border-radius: 999px;
    background: #1a2330;
    color: #b8c5d4;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.dev-console-chip:hover {
    background: #243044;
}

.dev-console-chip.is-active {
    border-color: #3bc8f5;
    color: #3bc8f5;
    background: #152535;
}

.dev-console-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dev-console-search {
    flex: 1;
    min-width: 180px;
    padding: 7px 10px;
    border: 1px solid #3a4a5c;
    border-radius: 6px;
    background: #0c0c0c;
    color: #d4d4d4;
    font-size: 12px;
}

.dev-console-meta {
    margin: 8px 0 0;
    font-size: 11px;
    color: #7d8fa3;
}

.dev-console-output {
    height: 100%;
    overflow: auto;
    padding: 14px 16px;
    border-radius: 8px;
    background: #0c0c0c;
    border: 1px solid #2a3441;
    font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.dev-console-line {
    margin: 0 0 2px;
}

.dev-console-line--error {
    color: #f48771;
}

.dev-console-line--warn {
    color: #dcdcaa;
}

.dev-console-line--info {
    color: #9cdcfe;
}

.dev-console-line--log {
    color: #d4d4d4;
}

.vps-integrations-panel {
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #2a3441;
    background: #121820;
}

.vps-integrations-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #e8edf2;
}

.vps-integrations-hint,
.vps-integrations-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: #8b9aab;
}

.vps-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 14px;
    margin-bottom: 10px;
}

.vps-integrations-field span {
    display: block;
    font-size: 11px;
    color: #8b9aab;
    margin-bottom: 4px;
}

.vps-integrations-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.vps-integrations-status {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9cdcfe;
}

.vps-integrations-status--error {
    color: #f48771;
}

.dev-heartbeat-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #2a3441;
    background: #0d1117;
    flex-shrink: 0;
}

.dev-hb-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #3a4555;
    color: #8b9aab;
    background: #151b23;
}

.dev-hb-pill--ok {
    border-color: #2d6a4f;
    color: #95d5b2;
    background: #1b3328;
}

.dev-hb-pill--err {
    border-color: #8b3a3a;
    color: #f48771;
    background: #2a1515;
}

.dev-hb-pill--wait {
    border-color: #4a5568;
    color: #aab4c0;
}

.dev-hb-checked-at {
    margin-left: auto;
    font-size: 11px;
    color: #6b7785;
}

/* Agent debug panel (Desenvolvedor) */
.agents-debug-panel {
    margin: 16px 20px 0;
    padding: 16px;
    border: 1px solid #2a3441;
    border-radius: 8px;
    background: #12171e;
}

.agents-debug-title {
    font-size: 15px;
    margin: 0;
    color: #e2e8f0;
}

.agents-debug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.agents-debug-hint {
    font-size: 12px;
    color: #8b9aab;
    margin: 0 0 12px;
}

.agents-debug-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.agents-debug-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #8b9aab;
}

.agents-debug-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 12px;
    min-height: 280px;
}

@media (max-width: 900px) {
    .agents-debug-layout {
        grid-template-columns: 1fr;
    }
}

.agents-debug-runs {
    border: 1px solid #2a3441;
    border-radius: 6px;
    overflow: auto;
    max-height: 420px;
    background: #0d1117;
}

.agents-debug-run-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #1e2630;
    background: transparent;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 12px;
}

.agents-debug-run-item:hover,
.agents-debug-run-item.is-selected {
    background: #1a2330;
}

.agents-debug-run-id {
    font-weight: 700;
    color: #7dd3fc;
}

.agents-debug-run-meta {
    color: #94a3b8;
}

.agents-debug-run-time {
    font-size: 11px;
    color: #64748b;
}

.agents-debug-run-error {
    color: #f87171;
    font-size: 11px;
}

.agents-debug-detail {
    border: 1px solid #2a3441;
    border-radius: 6px;
    padding: 12px;
    overflow: auto;
    max-height: 420px;
    background: #0d1117;
}

.agents-debug-placeholder {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.agents-debug-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.agents-debug-status--ok {
    background: #14532d;
    color: #86efac;
}

.agents-debug-status--err {
    background: #450a0a;
    color: #fca5a5;
}

.agents-debug-status--warn {
    background: #422006;
    color: #fcd34d;
}

.agents-debug-status--run {
    background: #1e3a5f;
    color: #93c5fd;
}

.agents-debug-status--skip {
    background: #1f2937;
    color: #9ca3af;
}

.agents-debug-steps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.agents-debug-step {
    border: 1px solid #243044;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    background: #111820;
}

.agents-debug-step-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.agents-debug-step-key {
    font-weight: 600;
    color: #e2e8f0;
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.agents-debug-step-ms {
    font-size: 11px;
    color: #64748b;
    margin-left: auto;
}

.agents-debug-json {
    font-size: 11px;
    line-height: 1.4;
    overflow: auto;
    max-height: 240px;
    margin: 8px 0 0;
    padding: 8px;
    background: #0a0e14;
    border-radius: 4px;
    color: #a5f3fc;
}

.agents-debug-session {
    margin: 8px 0;
    font-size: 12px;
    color: #94a3b8;
}

.agents-debug-detail-head h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #f1f5f9;
}

/* ÂÂ Radar de clientes (pagamento) ÂÂ */
.prisma-radar-view .prisma-radar-lead {
    width: 100%;
    margin: 4px 0 12px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.45;
    max-width: 44rem;
}

.prisma-radar-filter-strip {
    width: 100%;
}

.prisma-radar-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.prisma-radar-stat {
    flex: 1 1 140px;
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.prisma-radar-stat--urgent {
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.08);
}

.prisma-radar-stat__value {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.prisma-radar-stat__label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.prisma-radar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.prisma-radar-tab {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prisma-radar-tab:hover {
    border-color: rgba(148, 163, 184, 0.5);
    color: #f1f5f9;
}

.prisma-radar-tab.is-active {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.55);
    color: #fff;
}

.prisma-radar-tab__count {
    min-width: 1.4em;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.prisma-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.prisma-radar-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

.prisma-radar-card--attention {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.prisma-radar-card--urgent-mid {
    border-color: rgba(249, 115, 22, 0.5);
}

.prisma-radar-card--urgent-high {
    border-color: rgba(239, 68, 68, 0.55);
}

.prisma-radar-card__reason {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    font-size: 12px;
    line-height: 1.35;
}

.prisma-radar-card__reason strong {
    color: #fecaca;
    font-size: 12px;
}

.prisma-radar-card__reason span {
    color: #fca5a5;
}

.prisma-radar-card__top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prisma-radar-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
}

.prisma-radar-card__etapa {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    vertical-align: middle;
}

.prisma-radar-card__meta {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.prisma-radar-card__silence {
    color: #fdba74;
    font-weight: 600;
}

.prisma-radar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prisma-radar-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

.prisma-radar-badge--pix {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.prisma-radar-badge--pay {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.prisma-radar-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.prisma-radar-card__actions .btn-create {
    padding: 6px 10px;
    font-size: 12px;
}

.prisma-radar-open {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.prisma-radar-open:hover {
    background: rgba(255, 255, 255, 0.06);
}

.prisma-radar-panel[hidden] {
    display: none !important;
}

.prisma-radar-panel .catalog-empty-state--solo {
    margin-top: 24px;
}
