/* BITRIX24 EXACT THEME & UX - MUY BIELA ECOSSISTEMA */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --bg-deep-space: #171738;
  --bg-cosmic-purple: #242054;
  --sidebar-dark: #121327;
  --sidebar-active: #2b2c4d;
  --header-glass: rgba(22, 24, 48, 0.85);
  --tab-active-bg: rgba(85, 92, 148, 0.6);
  --btn-green: #00b460;
  --btn-green-hover: #009951;
  --text-main: #ffffff;
  --text-muted: #8b92b2;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-text: #1c1d1a;
  
  /* Cores oficiais das colunas do Bitrix24 */
  --col-blue-1: #209cee;
  --col-blue-2: #13b5ea;
  --col-cyan: #46c1c9;
  --col-green: #2fc697;
  --col-orange: #f5a623;
  --col-red: #e85342;
  --col-muybiela: #770003;
  --col-sage: #9FB7A1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: radial-gradient(circle at 75% 35%, #2a2b66 0%, #1a1b38 45%, #0f1026 100%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  font-size: 13px;
}

/* 1. LAYOUT GERAL */
.b24-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* 2. SIDEBAR ESQUERDA COMPACTA */
.b24-sidebar {
  width: 52px;
  background: var(--sidebar-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-top, .sidebar-menu-icons, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sidebar-menu-icons {
  margin-top: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-menu-icons::-webkit-scrollbar { display: none; }

.sidebar-divider {
  width: 32px;
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

.sidebar-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #9aa2c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.sidebar-btn:hover {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar-btn.active {
  background: #3b3e6e;
  color: #fff;
}

.hamburger-btn { font-size: 18px; color: #b7bfe3; }
.text-success { color: #25d366 !important; }
.text-danger { color: #ea4335 !important; }
.text-primary { color: #1a73e8 !important; }

.badge-container .badge-pill {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ea4335;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  height: 14px;
  min-width: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-bottom: 6px;
}

.rocket-btn {
  background: linear-gradient(135deg, #f72585, #7209b7);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 0 10px rgba(247, 37, 133, 0.5);
}

/* GAVETA EXPANSÍVEL (MENU OVERLAY) */
.sidebar-expanded-drawer {
  position: absolute;
  top: 0;
  left: 52px;
  width: 250px;
  height: 100vh;
  background: rgba(18, 19, 39, 0.98);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-subtle);
  box-shadow: 8px 0 24px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  padding: 12px 0;
  z-index: 105;
}

.sidebar-expanded-drawer.open {
  display: flex;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #c0c6e8;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  color: #b1b8db;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.drawer-item.active {
  background: #2b2e59;
  color: #fff;
  font-weight: 600;
}

.drawer-item .item-cog, .drawer-item .arrow-down {
  margin-left: auto;
  font-size: 11px;
  color: #8b92b2;
}

.drawer-footer-banner {
  margin: 12px 14px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f72585, #7209b7);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

/* 3. CONTEÚDO PRINCIPAL */
.b24-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* HEADER TOPO */
.b24-top-nav {
  height: 48px;
  background: var(--header-glass);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: #bcc3e5;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

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

.nav-tab.active {
  background: var(--tab-active-bg);
  color: #fff;
  font-weight: 600;
}

/* SUBPASTAS DE CLIENTES DROPDOWN (IDÊNTICO AO BITRIX24) */
.clients-nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.clients-dropdown-menu {
  position: absolute;
  top: 105%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 150;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.clients-dropdown-menu.show {
  display: flex;
}

.clients-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.clients-dropdown-item:hover {
  background: #f4f6fa;
  color: #111;
}

.clients-dropdown-item.active {
  color: #209cee;
  font-weight: 600;
}

.clients-dropdown-item.has-arrow {
  color: #444;
}

.clients-dropdown-item.has-arrow i {
  font-size: 11px;
  color: #bbb;
}

/* PAINEL DE CONTATOS / CLIENTES */
.b24-contacts-container {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
}

.contacts-white-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
}

.contacts-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contacts-total-label {
  font-size: 14px;
  color: #444;
}

.contacts-total-label strong {
  color: #209cee;
  font-size: 16px;
}

.contacts-tag-badge {
  background: #f0f8ff;
  border: 1px solid #d0e7ff;
  color: #0066cc;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contacts-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts-input {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 260px;
  outline: none;
}
.contacts-input:focus { border-color: #209cee; }

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

.b24-contacts-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #edf0f5;
  color: #666;
  font-weight: 600;
  background: #fafbfc;
}

.b24-contacts-table td {
  padding: 12px;
  border-bottom: 1px solid #f2f4f8;
  color: #333;
}

.b24-contacts-table tr:hover {
  background: #f9fbfd;
}

.contact-type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
}

.contact-type-badge.lojista {
  background: #fef3c7;
  color: #92400e;
}

.contact-type-badge.instrutora {
  background: #fce7f3;
  color: #9d174d;
}

.contacts-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 13px;
  color: #666;
}

.pagination-buttons {
  display: flex;
  gap: 6px;
}

.btn-pag {
  padding: 5px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.btn-pag:hover { background: #f0f2f5; }

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-logo-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 10px auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-brand-logo-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.sidebar-brand-u-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
}

.header-brand-u-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 2px;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
}

.search-global-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa2c8;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.header-icon-btn, .header-btn-text {
  background: transparent;
  border: none;
  color: #bcc3e5;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
}

.header-icon-btn:hover, .header-btn-text:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.header-btn-green {
  background: var(--btn-green);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
}
.header-btn-green:hover { background: var(--btn-green-hover); }

.user-timer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(32, 156, 238, 0.25);
  border: 1px solid rgba(32, 156, 238, 0.4);
  padding: 3px 6px 3px 10px;
  border-radius: 18px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.play-icon { font-size: 10px; color: #209cee; }

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3b4371;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 4. BARRA DE COMANDO DO CRM */
.b24-command-bar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.command-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.pin-icon {
  font-size: 13px;
  color: #7b84aa;
  cursor: pointer;
}

/* BOTÃO VERDE DE CRIAR */
.btn-create-group {
  display: flex;
  align-items: center;
  background: var(--btn-green);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 180, 96, 0.35);
}

.btn-create-main {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-create-dropdown {
  background: rgba(0,0,0,0.12);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
}

.btn-create-main:hover, .btn-create-dropdown:hover {
  background: rgba(0,0,0,0.18);
}

/* SELETOR DE FUNIL / PIPELINE */
.pipeline-selector-wrap {
  position: relative;
}

.pipeline-selector-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.pipeline-selector-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.caret-icon { font-size: 10px; opacity: 0.8; }

.pipeline-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 280px;
  background: #1b1d3d;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 120;
}

.pipeline-dropdown-menu.show { display: flex; }

.pipeline-dropdown-menu .dropdown-item {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5cbe8;
  font-size: 13px;
  cursor: pointer;
}

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

.pipeline-dropdown-menu .dropdown-item.active {
  color: #209cee;
  font-weight: 600;
}

.check-mark { font-size: 11px; visibility: hidden; }
.dropdown-item.active .check-mark { visibility: visible; }

/* BARRA DE FILTRO MULTI-TAG COM PESQUISA */
.search-filter-pill-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 3px 8px;
  gap: 6px;
  width: 320px;
}

.filter-pill-tag {
  background: rgba(43, 46, 89, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e2e6fa;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-tag { font-size: 11px; cursor: pointer; opacity: 0.7; }
.remove-tag:hover { opacity: 1; }

.search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  flex: 1;
  outline: none;
}
.search-input::placeholder { color: #8c93b6; }

.search-glass-btn, .search-clear-btn {
  background: transparent;
  border: none;
  color: #8c93b6;
  cursor: pointer;
  font-size: 12px;
}

.command-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #bcc3e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.action-icon-circle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* 5. BARRA DE MODOS DE VISUALIZAÇÃO & CONTADORES */
.b24-view-bar {
  padding: 4px 18px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.view-modes-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.12);
}

.view-tab {
  background: transparent;
  border: none;
  color: #a8b0d4;
  padding: 4px 14px;
  font-size: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-tab:hover { color: #fff; }

.view-tab.active {
  background: #39406b;
  color: #fff;
  font-weight: 600;
}

.view-counters {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #9ea7cf;
}

.counter-badge {
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.counter-badge strong { color: #fff; margin-right: 4px; }

.view-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-automation, .btn-extensions {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c0c7eb;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-automation:hover, .btn-extensions:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* 6. QUADRO KANBAN CONTAINER & CHEVRONS */
.b24-kanban-board-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 18px 16px 18px;
  position: relative;
}

/* LINHA DE CABEÇALHOS CHEVRON */
.kanban-headers-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 68px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* COLUNA CABEÇALHO COM CHEVRON ARROW */
.kanban-col-header-box {
  flex: 1;
  min-width: 220px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chevron-arrow {
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  position: relative;
  /* Efeito Chevron usando clip-path */
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 10px 50%);
  padding-left: 18px;
  padding-right: 18px;
  transition: opacity 0.2s;
}

.kanban-col-header-box:first-child .chevron-arrow {
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
  padding-left: 14px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.chevron-arrow:hover { opacity: 0.92; }

.stage-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 6px;
}

.stage-count-badge {
  font-size: 11px;
  opacity: 0.85;
}

/* SUBHEADER (VALOR E BOTÃO DE CRIAR RÁPIDO) */
.col-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  height: 32px;
}

.col-total-value {
  font-size: 13px;
  font-weight: 700;
  color: #aeb6df;
}

.btn-add-deal-inline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c4ccf2;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-add-deal-inline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* BOTÃO CIRCULAR "+" ENTRE DUAS COLUNAS */
.inline-add-col-btn {
  position: absolute;
  right: -12px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.7;
  transition: all 0.2s;
}

.inline-add-col-btn:hover {
  opacity: 1;
  transform: scale(1.15);
  background: var(--btn-green);
  border-color: #fff;
}

/* CORPO DO KANBAN (CONTAINERS DE CARDS) */
.kanban-columns-body {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-y: auto;
  position: relative;
  z-index: 5;
}

.kanban-col-cards-dropzone {
  flex: 1;
  min-width: 220px;
  max-width: 270px;
  border-right: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.kanban-col-cards-dropzone.drag-over {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--btn-green);
  border-radius: 8px;
}

/* CARDS DO KANBAN */
.b24-deal-card {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: grab;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid var(--col-blue-1);
}

.b24-deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-origin-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.origin-whatsapp { background: #dcf8c6; color: #075e54; }
.origin-instagram_comment { background: #fee2e2; color: #991b1b; }

.card-time { font-size: 11px; color: #888; }

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.card-contact {
  font-size: 12px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.card-value {
  font-size: 13px;
  font-weight: 700;
  color: #008744;
}

.card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3D4A3E;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 7. ESTADO VAZIO ARTÍSTICO 3D */
.b24-empty-state-art {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  text-align: center;
}

.crystal-flower-art {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, rgba(123, 44, 191, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(20px);
  position: absolute;
}

.empty-icon-card {
  width: 64px;
  height: 78px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.empty-state-text {
  font-size: 18px;
  font-weight: 600;
  color: #e5e9fc;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* 8. MODAIS */
.b24-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.b24-modal-overlay.show { display: flex; }

.b24-modal-box {
  background: #1e213d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

.b24-modal-box.modal-lg { width: 560px; }

.modal-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h3 { font-size: 16px; color: #fff; }

.modal-close-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
}
.modal-close-btn:hover { color: #fff; }

.modal-body { padding: 18px; }

.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #bcc3e5;
  margin-bottom: 6px;
}
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }

.modal-input, .rule-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}
.modal-input:focus, .rule-select:focus {
  border-color: #209cee;
}

.color-picker-palette {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.color-opt {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.color-opt.active {
  border-color: #fff;
  transform: scale(1.15);
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.btn-save {
  background: var(--btn-green);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.btn-save:hover { background: var(--btn-green-hover); }

/* ALERT BOX INFO */
.alert-box-info {
  background: rgba(32, 156, 238, 0.15);
  border-left: 4px solid #209cee;
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #dbe4ff;
  line-height: 1.4;
}

.auto-rule-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.rule-header, .rule-body {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

/* 9. GAVETA LATERAL DESLIZANTE (TELA FOCADA DE ATENDIMENTO) */
.b24-slideover-drawer {
  position: fixed;
  top: 0;
  right: -900px;
  width: 860px;
  max-width: 95vw;
  height: 100vh;
  background: #171833;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  z-index: 150;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.b24-slideover-drawer.open {
  right: 0;
}

.slideover-header {
  padding: 14px 20px;
  background: rgba(22, 24, 48, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slideover-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slideover-title-group h2 {
  font-size: 16px;
  color: #fff;
}

.badge-origin {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #25d366;
  color: #fff;
}

.slideover-close-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
}
.slideover-close-btn:hover { color: #fff; }

.slideover-body-split {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* LADO ESQUERDO DA GAVETA (DADOS) */
.slideover-left-pane {
  width: 340px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #bcc3e5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.data-label { color: #8c93b6; }
.data-val { color: #fff; font-weight: 600; }
.highlight-val { color: #00b460; font-size: 14px; }

/* CONTEXTO DO POST DO INSTAGRAM */
.post-preview-card {
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 6px;
}
.post-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}
.post-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.post-caption { font-size: 11px; color: #ddd; line-height: 1.3; }
.post-link { font-size: 11px; color: #13b5ea; text-decoration: none; font-weight: 600; margin-top: 4px; }
.post-link:hover { text-decoration: underline; }

.btn-convert-deal {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-convert-deal:hover { opacity: 0.92; }
.convert-hint { font-size: 11px; color: #eab308; margin-top: 6px; text-align: center; }

/* LADO DIREITO DA GAVETA (CHAT FOCADO) */
.slideover-right-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #15162d;
}

.chat-header-bar {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #bcc3e5;
}

.status-indicator {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}
.status-indicator.online { background: rgba(37, 211, 102, 0.2); color: #25d366; }

.chat-messages-container {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.bubble-client {
  align-self: flex-start;
  background: #2a2c4e;
  color: #fff;
  border-bottom-left-radius: 2px;
}

.bubble-bia {
  align-self: flex-end;
  background: #770003;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bubble-operator {
  align-self: flex-end;
  background: #00b460;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bubble-time {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  text-align: right;
  margin-top: 4px;
}

.chat-input-bar {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  resize: none;
  height: 42px;
  outline: none;
}
.chat-textarea:focus { border-color: #209cee; }

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--btn-green);
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-send-btn:hover { background: var(--btn-green-hover); }

/* ========================================================
   MODO LISTA (TABELA ESTRUTURADA)
   ======================================================== */
.b24-list-container {
  flex: 1;
  padding: 4px 18px 16px 18px;
  overflow-y: auto;
}

.list-white-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  color: #333;
}

.b24-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.b24-list-table th {
  background: #fafafa;
  color: #555;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #eaeaea;
  font-size: 12px;
}

.b24-list-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
}

.b24-list-table tr:hover td {
  background: #f7f9fc;
}

.table-stage-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.list-empty-msg {
  padding: 40px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* ========================================================
   MODO ATIVIDADES (URGÊNCIA DE PRAZOS)
   ======================================================== */
.b24-activities-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 18px 16px 18px;
  overflow-x: auto;
}

.activities-headers-row {
  display: flex;
  gap: 6px;
  height: 34px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.activity-col-header {
  flex: 1;
  min-width: 220px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 700;
  color: #fff;
  font-size: 12px;
}

.activities-body-row {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-y: auto;
}

.activity-dropzone {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-center-widget {
  background: rgba(43, 46, 89, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 12px;
  color: #e2e6fa;
  margin-top: 10px;
}

.cc-header {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
}

.cc-sub {
  display: block;
  font-size: 10px;
  color: #9aa2c8;
  font-weight: normal;
  margin-bottom: 8px;
}

.cc-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}

.cc-footer-link {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  color: #13b5ea;
  text-decoration: underline;
  cursor: pointer;
}

/* ========================================================
   MODO CALENDÁRIO (AGENDA MENSAL)
   ======================================================== */
.b24-calendar-container {
  flex: 1;
  padding: 4px 18px 16px 18px;
  overflow-y: auto;
}

.calendar-white-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #222;
}

.calendar-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

.calendar-month-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-view-type {
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.calendar-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-arrow-btn, .cal-today-btn {
  background: #f0f2f5;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.calendar-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #777;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 90px;
  gap: 1px;
  background: #e5e5e5;
  border: 1px solid #e5e5e5;
  margin-top: 4px;
}

.cal-day-cell {
  background: #fff;
  padding: 6px;
  position: relative;
  font-size: 12px;
  color: #444;
}

.cal-day-cell.other-month {
  color: #aaa;
  background: #fcfcfc;
}

.cal-day-cell.today .day-number {
  background: #13b5ea;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ========================================================
   EDIÇÃO INLINE DO CHEVRON (LÁPIS, BALDE, LIXEIRA, CANCELAR)
   ======================================================== */
.chevron-pencil-btn {
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
}
.chevron-pencil-btn:hover {
  opacity: 1;
}

.chevron-inline-edit-box {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.chevron-inline-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  background: transparent;
}

.chevron-tool-btn {
  background: transparent;
  border: none;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}
.chevron-tool-btn:hover { color: #111; }
.chevron-tool-btn.btn-delete:hover { color: #e85342; }

/* ========================================================
   TELA COMPLETA DE AUTOMAÇÃO DE VENDAS
   ======================================================== */
.b24-automation-fullscreen {
  position: fixed;
  top: 0;
  left: 52px;
  width: calc(100vw - 52px);
  height: 100vh;
  background: radial-gradient(circle at 75% 35%, #2a2b66 0%, #1a1b38 45%, #0f1026 100%);
  z-index: 180;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auto-top-bar {
  height: 52px;
  background: rgba(22, 24, 48, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.auto-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #209cee;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auto-close-btn:hover { background: #13b5ea; }

.auto-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auto-title-wrap h2 { font-size: 18px; color: #fff; }

.auto-nav-tabs {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}
.auto-tab {
  background: transparent;
  border: none;
  color: #bcc3e5;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.auto-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.auto-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-command-subbar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auto-sub-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auto-sub-left h3 { font-size: 16px; color: #fff; }

.auto-plan-banner {
  margin: 0 18px 12px 18px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  color: #ffd166;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-body-container {
  flex: 1;
  display: flex;
  padding: 0 18px 18px 18px;
  overflow: hidden;
}

.auto-columns-wrapper {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.auto-col-box {
  width: 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-col-chevron {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%, 8px 50%);
  padding-left: 14px;
}
.auto-col-box:first-child .auto-col-chevron {
  clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
  border-radius: 4px 0 0 4px;
}

.auto-btn-add-robot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #c0c6e8;
  border-radius: 4px;
  padding: 4px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}
.auto-btn-add-robot:hover { background: rgba(255,255,255,0.15); color: #fff; }

.auto-robot-card {
  background: #ffffff;
  color: #222;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.robot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #13b5ea;
  font-weight: 600;
  font-size: 11px;
}

.robot-card-title {
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.robot-card-to {
  color: #666;
  font-size: 11px;
}

.robot-card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #888;
}
.robot-card-footer a { color: #13b5ea; text-decoration: none; }

.auto-right-panel {
  width: 220px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-builder-link {
  color: #13b5ea;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.workflow-builder-link:hover { text-decoration: underline; }

.workflow-group-actions {
  color: #8c93b6;
  font-size: 12px;
  cursor: pointer;
}

/* ========================================================
   TELA DE PIPELINES E TÚNEIS DE VENDAS
   ======================================================== */
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

.dropdown-item.config-item {
  color: #13b5ea !important;
  font-weight: 600;
}
.dropdown-item.config-item:hover {
  background: rgba(19, 181, 234, 0.15) !important;
}

.b24-pipeline-settings-fullscreen {
  position: fixed;
  top: 0;
  left: 52px;
  width: calc(100vw - 52px);
  height: 100vh;
  background: radial-gradient(circle at 75% 35%, #2a2b66 0%, #1a1b38 45%, #0f1026 100%);
  z-index: 190;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pipe-top-bar {
  height: 52px;
  background: rgba(22, 24, 48, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.pipe-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #209cee;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipe-close-btn:hover { background: #13b5ea; }

.pipe-top-bar h2 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.pipe-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipe-body-scroll {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
}

.pipe-white-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pipe-row-item {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 24px;
  gap: 24px;
  position: relative;
}

.pipe-left-info {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipe-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.pipe-drag-dots { color: #aaa; cursor: grab; font-size: 14px; }
.pipe-pencil { color: #888; cursor: pointer; font-size: 12px; margin-left: 4px; padding: 2px 4px; border-radius: 3px; }
.pipe-pencil:hover { color: #209cee; background: rgba(32, 156, 238, 0.1); }
.pipe-trash { color: #888; cursor: pointer; font-size: 12px; margin-left: 4px; padding: 2px 4px; border-radius: 3px; }
.pipe-trash:hover { color: #e85342; background: rgba(232, 83, 66, 0.1); }
.pipe-gear { color: #888; cursor: pointer; font-size: 12px; }

.pipe-title-input {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  border: 1px solid #209cee;
  border-radius: 4px;
  padding: 3px 8px;
  outline: none;
  background: #fff;
  width: 170px;
}

.pipe-link {
  font-size: 12px;
  color: #13b5ea;
  text-decoration: none;
  cursor: pointer;
}
.pipe-link:hover { text-decoration: underline; }

.pipe-right-stages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stages-preview-columns {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.stages-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stages-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
}

.mini-chevrons-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mini-chevron {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s;
}

.mini-chevron:hover {
  transform: translateY(-1px);
}

.mini-chevron-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: inherit;
}

.tunnel-preview-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-left: 20px;
}

.tunnel-badge {
  background: #f0f2f5;
  border: 1px dashed #aaa;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.5px;
}

.tunnel-dotted-arrow {
  flex: 1;
  border-bottom: 2px dashed #ccc;
  height: 1px;
}

.btn-add-pipe-bottom {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.btn-add-pipe-bottom:hover { color: #111; }

/* REGRAS RESPONSIVAS GERAIS (DESKTOP, TABLET E CELULAR) */
@media (max-width: 1024px) {
  .b24-command-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    padding: 12px 14px;
  }
  .command-left {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  .search-filter-pill-bar {
    width: 100%;
  }
  .b24-view-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .view-right-actions {
    width: 100%;
    justify-content: space-between;
  }
  .pipe-row-item {
    flex-direction: column;
    gap: 16px;
  }
  .pipe-left-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .b24-sidebar-left {
    display: none;
  }
  .b24-main-viewport {
    width: 100vw;
  }
  .header-search-box {
    max-width: 180px;
  }
  .b24-slideover-drawer {
    width: 100vw;
  }
  .slideover-container {
    flex-direction: column;
  }
  .slideover-left-pane {
    width: 100%;
    max-height: 45vh;
  }
  .slideover-right-pane {
    width: 100%;
  }
  .pipe-top-bar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pipe-top-bar h2 {
    font-size: 16px;
  }
  .pipe-white-card {
    padding: 14px;
  }
  .mini-chevrons-strip {
    gap: 4px;
  }
  .mini-chevron {
    font-size: 10px;
    padding: 0 8px;
    height: 24px;
  }
}
