:root {
  --ink: #262a3a;
  --muted: #6b7283;
  --line: #e6e8ee;
  --surface: #fff;
  --canvas: #f6f7fa;
  --nav: #171928;
  --purple: #6357db;
  --purple-dark: #5549ca;
  --purple-soft: #eeecff;
  --green: #38a678;
  --orange: #ea7b4c;
  --red: #e65e5a;
  --blue: #4087d7;
  --sidebar: 248px;
  --shadow: 0 1px 2px rgba(34, 38, 56, .04);
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, .kanban-card { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.app-shell { min-height: 100vh; }

/* Shell and sidebar */
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar); background: var(--nav); color: #a9aec0; display: flex; flex-direction: column; padding: 0 13px; }
.brand { height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 10px; color: #fff; font-size: 15px; letter-spacing: -.2px; }
.brand b, .login-brand b { color: #9a90ff; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 800; background: linear-gradient(135deg, #7467ed, #9d62df); box-shadow: 0 5px 17px rgba(101, 87, 229, .33); }
.nav { flex: 1; overflow-y: auto; padding-top: 13px; scrollbar-width: thin; }
.nav-section { margin-bottom: 23px; }
.nav-group { font-size: 11px; letter-spacing: 1.3px; color: #7d8295; padding: 0 12px 9px; font-weight: 750; text-transform: uppercase; }
.nav-item { width: 100%; border: 0; background: transparent; color: #aeb2c0; padding: 11px 12px; display: flex; gap: 12px; align-items: center; border-radius: 8px; text-align: left; cursor: pointer; margin-bottom: 3px; font-size: 14px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-item.active { background: #6a5ee4; color: #fff; box-shadow: 0 5px 16px rgba(12, 14, 24, .5); }
.sidebar-bottom { border-top: 1px solid #2b2e3e; padding: 10px 0 13px; }
.profile { margin: 2px 0 7px; padding: 9px 5px; display: flex; align-items: center; gap: 9px; }
.profile > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.profile strong { color: #f4f4f7; font-size: 12px; }
.profile span:not(.avatar) { font-size: 11px; color: #858a9b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link { border-radius: 8px; transition: .15s ease; }
.profile-link > .icon { width: 15px; color: #777d91; }
.profile-link:hover, .profile-link.active { background: rgba(255,255,255,.05); }
.profile-link:hover > .icon, .profile-link.active > .icon { color: #9d93ef; }
.logout-form { margin: 0; }
.main { margin-left: var(--sidebar); min-width: 0; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid #e3e5eb; background: #fff; border-radius: 8px; display: inline-grid; place-items: center; color: #777d8d; cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--purple); border-color: #c8c3f5; }
.mobile-menu, .sidebar-overlay { display: none; }

/* Layout primitives */
.page { padding: 30px 31px 64px; max-width: 1680px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { display: block; font-size: 11px; font-weight: 750; letter-spacing: 1.3px; color: #8e94a4; margin-bottom: 7px; }
.page-heading h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.75px; margin: 0 0 6px; }
.page-heading p { margin: 0; color: #686f80; font-size: 14px; }
.page-actions { display: flex; gap: 9px; align-items: center; }
.content-stack { display: flex; flex-direction: column; gap: 20px; }
.panel, .data-panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); min-width: 0; }
.section-head { padding: 20px 21px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.section-head p { margin: 4px 0 0; font-size: 12px; color: #747b8c; }
.btn { min-height: 38px; border-radius: 8px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: .15s ease; }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--purple); color: #fff; box-shadow: 0 4px 11px rgba(99,87,219,.22); }
.btn.primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn.secondary { background: #fff; border-color: #dedfe6; color: #5f6576; }
.btn.secondary:hover { border-color: #bfc2cc; background: #fbfbfd; }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger-outline { color: #cf5552; background: #fff; border-color: #edcdcb; }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.btn.full { width: 100%; }
.link-btn, .text-button { border: 0; background: none; color: var(--purple); font-size: 12px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; padding: 3px; }
.link-btn .icon, .text-button .icon { width: 14px; height: 14px; }
.empty-state { color: #858b9b; font-size: 12px; text-align: center; padding: 25px 14px; }

/* Atoms */
.avatar { flex: 0 0 34px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; overflow: hidden; line-height: 1; text-align: center; color: #fff; font-size: 10px; font-weight: 750; border: 2px solid #fff; }
.avatar.small { flex-basis: 27px; width: 27px; min-width: 27px; height: 27px; min-height: 27px; font-size: 8px; }
.avatar.blue { background: #5488d2; } .avatar.coral { background: #df7767; } .avatar.purple { background: #8c66c3; } .avatar.green { background: #53a37c; } .avatar.yellow { background: #ca9445; }
.avatar.unassigned { background: #a4a9b4; }
.avatar-stack { display: inline-flex; align-items: center; gap: 0 !important; min-width: 27px; }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.avatar-stack .avatar-more { flex: 0 0 27px; width: 27px; min-width: 27px; height: 27px; min-height: 27px; background: #eef0f4; border-color: #fff; color: #646a78; font-size: 8px; }
.assignee-cell { display: flex; align-items: center; gap: 7px; min-width: 135px; }
.assignee-cell > small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #73798a; }
.stat-icon { width: 39px; height: 39px; border-radius: 10px; display: grid; place-items: center; }
.stat-icon.violet { background: #efedff; color: #695bdf; } .stat-icon.blue { background: #e8f2fd; color: #4d8ed3; } .stat-icon.orange { background: #fdf0e9; color: #e87f50; } .stat-icon.green { background: #e8f7f0; color: #3da776; }
.priority { width: fit-content; font-size: 10px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; white-space: nowrap; font-weight: 700; }
.priority i, .health i, .status i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.priority.baixa, .priority.normal { color: #33835f; background: #e8f6ef; } .priority.baixa i, .priority.normal i { background: #46a779; }
.priority.alta { color: #bf633c; background: #fdf0e9; } .priority.alta i { background: #e47b4b; }
.priority.critica { color: #c84b47; background: #fdeaea; } .priority.critica i { background: #e85b56; }
.status, .area-badge, .role-badge, .health, .stage-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 6px 9px; border-radius: 14px; white-space: nowrap; }
.status.active { color: #30815c; background: #e7f6ee; } .status.active i { background: #43a677; }
.status.neutral { color: #666c7a; background: #eef0f3; } .status.neutral i { background: #8b909c; }
.status.danger { color: #c34c49; background: #fde9e8; }
.stage-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.health.saudavel { color: #33835f; } .health.saudavel i { background: #43a677; }
.health.atencao { color: #bd693f; } .health.atencao i { background: #e28351; }
.health.critico { color: #c44e4a; } .health.critico i { background: #e75a56; }
.area-badge { background: #f0f1f4; color: #666c7a; }
.role-badge { background: var(--purple-soft); color: #5d50cd; }

/* Dashboard */
.stats-grid, .funnel-stats { display: grid; gap: 15px; margin-bottom: 20px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.funnel-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.kebab { color: #a4a8b3; letter-spacing: 2px; }
.stat-value { margin-top: 14px; font-size: 26px; font-weight: 750; letter-spacing: -.7px; }
.stat-value.money { font-size: 21px; }
.stat-label { font-size: 13px; color: #666d7e; margin-top: 2px; }
.stat-detail { display: flex; align-items: center; gap: 5px; border-top: 1px solid #eff0f3; margin-top: 13px; padding-top: 10px; font-size: 11px; color: #8b91a0; }
.stat-detail .icon { width: 14px; height: 14px; } .stat-detail.up { color: #34936a; } .stat-detail.down { color: #d46b52; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.lower { grid-template-columns: 1.35fr 1fr; }
.mini-funnel { display: flex; align-items: flex-end; gap: 9px; padding: 13px 20px 18px; }
.mini-stage { flex: 1; min-width: 72px; display: flex; align-items: center; flex-direction: column; }
.mini-stage > span { font-size: 18px; font-weight: 750; margin-bottom: 9px; } .mini-stage i { height: 6px; border-radius: 4px; display: block; } .mini-stage small { min-height: 28px; margin-top: 7px; color: #777d8b; font-size: 11px; line-height: 1.25; text-align: center; }
.stage-0 { background: #6b9bd7 !important; } .stage-1 { background: #56a9d2 !important; } .stage-2 { background: #55b2c3 !important; } .stage-3 { background: #4e9fc5 !important; } .stage-4 { background: #7b83d7 !important; } .stage-5 { background: #9d6dcc !important; } .stage-6 { background: #d2739f !important; } .stage-7 { background: #49aa79 !important; }
.summary-strip { border-top: 1px solid #eceef2; background: #fafbfc; border-radius: 0 0 10px 10px; display: grid; grid-template-columns: repeat(3,1fr); padding: 13px 19px; }
.summary-strip > div { display: flex; align-items: center; gap: 8px; color: #787e8e; font-size: 11px; border-right: 1px solid #e6e8ed; padding-right: 14px; margin-right: 14px; } .summary-strip > div:last-child { border: 0; } .summary-strip .icon { color: var(--purple); width: 16px; } .summary-strip b { color: #35394a; }
.agenda-list { padding: 0 14px 10px; }
.agenda-item { width: 100%; border-top: 1px solid #eef0f3; display: grid; grid-template-columns: 116px 1fr auto; align-items: center; padding: 14px 6px; }
.agenda-item:first-child { border-top: 0; } .agenda-item:hover { background: #fafaff; }
.time-dot { font-size: 10px; color: #8a8f9e; display: flex; align-items: center; gap: 6px; } .time-dot i { width: 7px; height: 7px; border-radius: 50%; background: #6658dd; } .time-dot.d1 i { background: #e68151; } .time-dot.d2 i { background: #4ca786; } .time-dot.d3 i { background: #5992d4; }
.agenda-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .agenda-content strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .agenda-content span { font-size: 11px; color: #898e9d; } .agenda-item > .icon { width: 15px; color: #b0b4bf; }
.simple-table { padding: 0 16px 11px; }
.simple-table > a { width: 100%; border-top: 1px solid #eceef2; padding: 13px 5px; display: grid; grid-template-columns: 76px 1fr auto 110px; align-items: center; gap: 10px; }
.simple-table > a:first-child { border-top: 0; } .simple-table > a:hover { background: #fafaff; } .simple-table > a > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .simple-table strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .simple-table small { font-size: 10px; color: #8b909f; }
.ticket-code { font-size: 10px; color: #747b8b; font-weight: 750; } .due { color: #c96850; font-size: 10px; display: flex; align-items: center; gap: 4px; } .due .icon { width: 13px; }
.sprint-widget { padding-bottom: 13px; } .sprint-progress { padding: 5px 20px 14px; } .sprint-progress > div:first-child { display: flex; justify-content: space-between; font-size: 12px; } .progress { margin: 9px 0 7px; height: 7px; background: #ececf2; border-radius: 4px; overflow: hidden; } .progress i { height: 100%; display: block; background: linear-gradient(90deg, #6658df, #897fed); } .sprint-progress small { color: #8c91a0; font-size: 10px; }
.sprint-numbers { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; padding: 12px 19px; } .sprint-numbers div { display: flex; flex-direction: column; border-right: 1px solid #e9ebef; padding-left: 12px; } .sprint-numbers div:last-child { border: 0; } .sprint-numbers b { font-size: 17px; } .sprint-numbers span { font-size: 10px; color: #8a8f9e; }
.release { margin: 13px 18px 0; padding: 10px; border-radius: 8px; background: #f6f4ff; display: flex; align-items: center; gap: 9px; } .release-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--purple); background: #fff; border-radius: 7px; } .release > div { flex: 1; display: flex; flex-direction: column; } .release strong { font-size: 11px; } .release span { font-size: 10px; color: #858a99; } .release-tag { color: var(--purple) !important; background: #e7e2ff; border-radius: 10px; padding: 4px 8px; font-weight: 700; }

/* Toolbars and boards */
.board-toolbar, .view-toolbar { min-height: 54px; padding: 11px 15px; border: 1px solid var(--line); background: #fff; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.board-toolbar > div, .filter-form { display: flex; align-items: center; gap: 14px; }
.filter-form { margin: 0; }
.filter-form select, .view-toolbar select { min-height: 36px; border: 1px solid #e2e4e9; border-radius: 7px; background: #fff; padding: 0 9px; color: #646b7b; font-size: 11px; }
.pipeline-toolbar { min-height: 0; padding: 0; align-items: stretch; flex-direction: column; gap: 0; }
.pipeline-toolbar > .pipeline-toolbar-main { min-height: 56px; padding: 10px 14px; justify-content: space-between; }
.pipeline-metrics { display: flex; align-items: center; gap: 14px; }
.pipeline-text-filter { margin-left: auto; }
.pipeline-filter-row { min-height: 49px; padding: 8px 14px; justify-content: flex-start; border-top: 1px solid #eceef2; background: #fbfbfd; border-radius: 0 0 9px 9px; }
.pipeline-filter-label { display: inline-flex; align-items: center; gap: 6px; color: #7b8190; font-size: 10px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; white-space: nowrap; } .pipeline-filter-label .icon { width: 14px; }
.pipeline-filter-menu { position: relative; }
.pipeline-filter-menu > summary { list-style: none; } .pipeline-filter-menu > summary::-webkit-details-marker { display: none; }
.pipeline-filter-button { min-height: 32px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dfe2e8; border-radius: 7px; color: #6e7483; background: #fff; font-size: 10px; cursor: pointer; user-select: none; }
.pipeline-filter-button:hover, .pipeline-filter-menu[open] .pipeline-filter-button { color: #5d51ce; border-color: #c9c4f2; background: #f9f8ff; }
.pipeline-filter-button.active { color: #574bc4; border-color: #c9c3f1; background: #efedff; }
.pipeline-filter-button strong { color: #3f4453; font-size: 10px; } .pipeline-filter-button.active strong { color: #574bc4; }
.pipeline-filter-button i { margin-left: 2px; color: #9a9eaa; font-size: 12px; font-style: normal; transition: transform .15s; } .pipeline-filter-menu[open] .pipeline-filter-button i { transform: rotate(180deg); }
.pipeline-filter-popover { position: absolute; z-index: 35; top: calc(100% + 7px); left: 0; width: 230px; max-height: 330px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; border: 1px solid #dfe2e9; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgba(35,39,56,.16); }
.pipeline-filter-popover a { min-height: 34px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-radius: 6px; color: #606777; font-size: 10px; }
.pipeline-filter-popover a:hover { color: #5146b8; background: #f5f3ff; } .pipeline-filter-popover a.selected { color: #5146b8; background: #eeecff; font-weight: 750; }
.pipeline-filter-popover a .icon { width: 14px; color: #6256d3; }
.pipeline-filter-popover a > span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.state-filter-menu .pipeline-filter-popover { width: 360px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.state-filter-menu .pipeline-filter-popover > a:first-child { grid-column: 1 / -1; }
.source-filter-menu .pipeline-filter-popover, .assignee-filter-menu .pipeline-filter-popover { width: 270px; }
.pipeline-filter-clear { color: #6a5ed0; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pipeline-filter-clear:hover { text-decoration: underline; }
.pipeline-origin-legend { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; color: #707686; font-size: 9px; }
.pipeline-origin-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pipeline-origin-legend .pipeline-origin-legend-label { color: #9196a2; font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.source-legend-dot { width: 8px; height: 8px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--lead-source); box-shadow: 0 0 0 2px var(--lead-source-soft); }
.source-color-0 { --lead-source: #7065d8; --lead-source-soft: #eeecff; }
.source-color-1 { --lead-source: #4f8fc9; --lead-source-soft: #eaf4fb; }
.source-color-2 { --lead-source: #3b9b92; --lead-source-soft: #e9f7f5; }
.source-color-3 { --lead-source: #d39638; --lead-source-soft: #fff5df; }
.source-color-4 { --lead-source: #d87364; --lead-source-soft: #feeeeb; }
.source-color-5 { --lead-source: #c66599; --lead-source-soft: #fbeaf3; }
.source-color-6 { --lead-source: #5a9d61; --lead-source-soft: #eaf6ec; }
.source-color-7 { --lead-source: #5c78c9; --lead-source-soft: #ebeffb; }
.source-color-8 { --lead-source: #8b919e; --lead-source-soft: #eef0f3; }
.metric-inline { color: #7c8292; font-size: 12px; padding-right: 16px; border-right: 1px solid #e5e7ec; } .metric-inline:last-child { border: 0; } .metric-inline b { color: #35394a; } .metric-inline.risk { color: #d16a52; display: flex; align-items: center; gap: 4px; }
.legend, .origin-legend { display: flex; gap: 6px !important; }
.inner-search { min-width: 220px; border: 1px solid #e2e4e9; border-radius: 7px; display: flex; align-items: center; padding: 0 9px; color: #9a9fac; background: #fff; }
.inner-search .icon { width: 15px; } .inner-search input { border: 0; outline: 0; padding: 9px; min-width: 0; width: 100%; font-size: 11px; color: var(--ink); background: transparent; }
.kanban { display: grid; gap: 12px; overflow-x: auto; padding: 0 1px 10px; align-items: start; scrollbar-color: #c9ccd5 transparent; }
.lead-board { grid-template-columns: repeat(8, minmax(235px, 1fr)); } .ticket-board { grid-template-columns: repeat(5, minmax(255px, 1fr)); } .dev-board { grid-template-columns: repeat(6, minmax(245px, 1fr)); } .quality-board { grid-template-columns: repeat(5, minmax(255px, 1fr)); }
.lead-board-shell { min-width: 0; position: relative; }
.lead-board-header-viewport { position: sticky; z-index: 18; top: 0; overflow: hidden; background: rgba(246,247,250,.96); box-shadow: 0 7px 10px -11px rgba(38,42,58,.65); backdrop-filter: blur(8px); }
.lead-board-header { width: max(100%, 1964px); display: grid; grid-template-columns: repeat(8, minmax(235px,1fr)); gap: 12px; }
.lead-board-header .column-head { background: rgba(246,247,250,.96); }
.lead-board { align-items: stretch; padding-left: 0; padding-right: 0; }
.lead-board .board-column { min-width: 0; display: flex; }
.lead-board .column-body { flex: 1; min-height: max(360px, calc(100vh - 260px)); }
.lead-origin-group { overflow: hidden; flex: 0 0 auto; border: 1px solid #dde0e6; border-left: 3px solid var(--lead-source); border-radius: 8px; background: #f7f8fa; }
.lead-origin-group > summary { min-height: 43px; padding: 8px 9px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #565d6d; background: linear-gradient(105deg,var(--lead-source-soft),#fafbfc 72%); cursor: pointer; user-select: none; }
.lead-origin-group > summary::-webkit-details-marker { display: none; }
.lead-origin-group > summary > span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.lead-origin-group > summary strong { overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.lead-origin-group-meta { flex: 0 0 auto; color: #8b909c; }
.lead-origin-group-meta b { min-width: 21px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; color: #5d6371; background: #fff; box-shadow: 0 0 0 1px #e1e3e8; font-size: 9px; }
.lead-origin-group-meta i { font-size: 12px; font-style: normal; transition: transform .15s ease; }
.lead-origin-group[open] .lead-origin-group-meta i { transform: rotate(180deg); }
.lead-origin-group[open] > summary { border-bottom: 1px solid #e1e3e8; }
.lead-origin-group-cards { padding: 8px; display: flex; flex-direction: column; gap: 9px; }
.board-column { min-width: 0; } .column-head { height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; } .column-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; } .column-head i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; } .column-head strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .column-head span { min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; background: #eaecf0; border-radius: 11px; color: #737989; font-size: 10px; }
.ticket-stage-0 { background: #7198d0 !important; } .ticket-stage-1 { background: #d7a047 !important; } .ticket-stage-2 { background: #8a75d7 !important; } .ticket-stage-3 { background: #df885b !important; } .ticket-stage-4 { background: #4aa77b !important; }
.dev-stage-0 { background: #8a909c !important; } .dev-stage-1 { background: #5e93d1 !important; } .dev-stage-2 { background: #8a70d6 !important; } .dev-stage-3 { background: #d59b49 !important; } .dev-stage-4 { background: #51a7b2 !important; } .dev-stage-5 { background: #4ea879 !important; }
.column-body { border-radius: 9px; min-height: 170px; background: #eceef2; padding: 9px; display: flex; flex-direction: column; gap: 9px; transition: .15s; }
.column-body.drag-over { background: #e2dfff; box-shadow: inset 0 0 0 2px #9b91ee; }
.kanban-card { position: relative; background: #fff; border: 1px solid #e2e4e9; border-radius: 9px; padding: 14px; box-shadow: 0 1px 2px rgba(41,44,59,.04); cursor: pointer; transition: .15s ease; }
.kanban-card:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(36,39,53,.08); border-color: #d5d1ef; } .kanban-card.dragging { opacity: .45; transform: rotate(1deg); }
.kanban-card h3 { font-size: 13px; line-height: 1.45; margin: 7px 0; }
.card-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .card-line-actions { display: inline-flex; align-items: center; gap: 8px; color: #9a9eaa; } .municipality { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #858b9b; text-transform: uppercase; } .municipality .icon { width: 12px; height: 12px; }
.lead-board .kanban-card { padding: 11px 12px 12px; }
.lead-board .lead-source-card { overflow: hidden; background: linear-gradient(110deg,var(--lead-source-soft) 0,#fff 34%); }
.lead-board .lead-source-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lead-source); }
.lead-board .kanban-card h3 { margin: 8px 0 4px; }
.lead-board .card-assignees { min-height: 27px; display: inline-flex; align-items: center; }
.lead-board .card-value { margin: 0; }
.lead-meta { display: flex; align-items: center; gap: 5px; color: #858b9b; font-size: 10px; } .lead-meta i { width: 3px; height: 3px; border-radius: 50%; background: #b8bbc3; }
.card-value-row { min-height: 24px; margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-contact-indicators { display: inline-flex; align-items: center; gap: 5px; }
.lead-contact-badge { width: 22px; height: 22px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 50%; }
.lead-contact-badge .icon { width: 12px; height: 12px; }
.lead-contact-badge.email { color: #9b6b13; background: #fff3c9; border-color: #f2df9b; }
.lead-contact-badge.phone { color: #2563a5; background: #e1efff; border-color: #bedafa; }
.lead-contact-badge.whatsapp { color: #267454; background: #daf3e6; border-color: #bde5d1; }
.card-value { font-weight: 750; font-size: 13px; margin: 10px 0; } .next-action { display: flex; align-items: center; gap: 5px; padding: 9px; border-radius: 6px; background: #f5f6f8; color: #707787; font-size: 10px; } .next-action .icon { width: 13px; } .next-action span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .next-action.today { background: #fff2ec; color: #c96843; }
.card-footer { border-top: 1px solid #eceef1; margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; color: #858b9a; font-size: 10px; } .card-footer > span { display: flex; align-items: center; gap: 4px; } .card-footer > .avatar { display: inline-grid; place-items: center; justify-content: center; gap: 0; } .card-footer .icon { width: 13px; }
.drop-empty { min-height: 92px; border: 1px dashed #c9cdd7; border-radius: 7px; display: grid; place-items: center; font-size: 10px; color: #969ba9; }
.lost-bar { background: #fff; border: 1px solid #edd9d8; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; } .lost-bar > div { display: flex; gap: 9px; align-items: center; } .lost-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: #fdeceb; color: #d75652; } .lost-bar > div > span:last-child { display: flex; flex-direction: column; } .lost-bar strong { font-size: 12px; } .lost-bar small { font-size: 10px; color: #8c91a0; } .lost-bar > span { color: #c65d55; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.ticket-card { border-left: 3px solid #45a778; } .ticket-card.alta { border-left-color: #e7814f; } .ticket-card.critica { border-left-color: #e35b57; }
.client-line { display: flex; gap: 5px; color: #73798a; font-size: 10px; align-items: center; } .client-line .icon { width: 13px; } .type-badge { display: inline-block; font-size: 10px; margin-top: 8px; color: #696f80; background: #f0f1f4; padding: 4px 7px; border-radius: 5px; }
.sla-lines { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eceef2; display: flex; flex-direction: column; gap: 6px; } .sla-lines > div { display: flex; justify-content: space-between; font-size: 10px; color: #858b9a; } .sla-lines b { color: #646b7a; } .sla-lines .risk b { color: #d0654e; }
.dev-link { color: var(--purple); } .sprint-pill { display: flex; align-items: center; gap: 5px; background: #f0edff; color: #5e51d3; padding: 7px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.origin { font-size: 9px; font-weight: 750; letter-spacing: .4px; padding: 5px 7px; border-radius: 5px; } .origin.internal { color: #575d6b; background: #e9eaee; } .origin.support { color: #3b77b3; background: #e5f1fc; }
.dev-card { border-top: 3px solid #8d939e; } .dev-card.support { border-top-color: #4e91d2; } .points { color: #777d8c; font-size: 10px; } .dev-id { display: block; color: #959aa7; font-size: 10px; font-weight: 700; margin-top: 8px; }
.dev-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 9px; } .dev-tags .type { font-size: 9px; border-radius: 5px; padding: 5px 7px; background: #f0f1f4; color: #6f7483; } .dev-tags .bug { background: #fde9e8; color: #ca5652; } .dev-tags .melhoria { background: #efeafd; color: #6f59bd; } .dev-tags .infraestrutura { background: #e8f3fb; color: #467ea8; }
.related { margin-top: 9px; padding: 7px; background: #f4f7fa; border-radius: 5px; color: #687184; font-size: 10px; display: flex; align-items: center; gap: 4px; } .related .icon { width: 13px; }

/* Tables, CRM funnel and clients */
.view-toolbar { justify-content: flex-start; } .view-toolbar > span { margin-left: auto; font-size: 11px; color: #858a99; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 46px; padding: 0 14px; text-align: left; font-size: 10px; letter-spacing: .55px; text-transform: uppercase; color: #747b8b; background: #fafbfc; border-bottom: 1px solid #e9ebef; white-space: nowrap; }
td { padding: 14px; font-size: 11px; color: #565d6e; border-bottom: 1px solid #eceef2; vertical-align: middle; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fcfcff; }
.table-primary { display: flex; align-items: center; gap: 9px; min-width: 185px; } .table-primary > div { display: flex; flex-direction: column; min-width: 0; } .table-primary strong { font-size: 12px; color: #363b4b; } .table-primary small, .cell-sub { display: block; font-size: 10px; color: #8a909f; margin-top: 3px; }
.city-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; display: inline-grid; place-items: center; color: #6256cf; background: #eeecff; font-size: 10px; font-weight: 800; } .city-avatar.large { width: 42px; height: 42px; }
.size-badge { display: inline-flex; align-items: center; width: max-content; min-height: 22px; padding: 3px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.size-badge.size-small { color: #28755a; background: #e6f5ee; border-color: #ccebdd; }
.size-badge.size-medium { color: #326a99; background: #e8f2fb; border-color: #cee4f5; }
.size-badge.size-large { color: #9b6528; background: #fff1de; border-color: #f4dec0; }
.size-badge.size-metropolis { color: #a34061; background: #fce8ef; border-color: #f2cad8; }
.size-badge.size-unknown { color: #737987; background: #f0f1f4; border-color: #e1e3e8; }
.stage-badge { color: #5b6579; background: #edf1f6; } .stage-bg-lead_prioritario { color: #326f9f; background: #e7f4fb; } .stage-bg-aguardando_retorno { color: #526fa8; background: #eaf0fb; } .stage-bg-contato_email { color: #337797; background: #e5f3f8; } .stage-bg-ganho { color: #33815e; background: #e7f6ee; } .stage-bg-negociacao { color: #a34d7b; background: #f8eaf2; } .stage-bg-proposta { color: #7751a6; background: #f1eafb; }
.ticket-count { font-size: 10px; font-weight: 700; color: #5f6575; }
.funnel-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.65fr); gap: 16px; }
.funnel-panel { overflow: hidden; }
.funnel-legend { display: flex; align-items: center; gap: 13px; color: #7b8190; font-size: 10px; } .funnel-legend span { display: flex; align-items: center; gap: 5px; } .funnel-legend i { width: 8px; height: 8px; border-radius: 50%; background: #7164dd; } .funnel-legend span:last-child i { background: #e36a65; }
.funnel-visual { padding: 0 22px 24px; }
.funnel-columns { display: grid; grid-template-columns: minmax(130px,.75fr) minmax(270px,1.6fr) 92px; gap: 12px; padding: 0 4px 9px; color: #9a9eaa; font-size: 9px; font-weight: 750; letter-spacing: .65px; text-transform: uppercase; } .funnel-columns span:nth-child(2) { text-align: center; } .funnel-columns span:last-child { text-align: center; }
.funnel-row { min-height: 74px; display: grid; grid-template-columns: minmax(130px,.75fr) minmax(270px,1.6fr) 92px; gap: 12px; align-items: center; }
.funnel-stage-label { min-width: 0; display: flex; align-items: center; gap: 10px; } .funnel-stage-label > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #f0eff9; color: #6a5ed0; font-size: 9px; font-weight: 800; } .funnel-stage-label > div { min-width: 0; display: flex; flex-direction: column; } .funnel-stage-label b { color: #404555; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .funnel-stage-label small { margin-top: 2px; color: #9296a3; font-size: 9px; white-space: nowrap; }
.funnel-segment-wrap { height: 66px; display: flex; align-items: center; justify-content: center; }
.funnel-segment { width: clamp(110px, var(--funnel-width), 100%); height: 62px; clip-path: polygon(3% 0,97% 0,91% 100%,9% 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; filter: drop-shadow(0 3px 4px rgba(43,45,65,.13)); text-align: center; } .funnel-segment strong { font-size: 21px; line-height: 1; letter-spacing: -.4px; } .funnel-segment span { margin-top: 4px; color: rgba(255,255,255,.86); font-size: 8px; font-weight: 700; letter-spacing: .15px; }
.funnel-tone-0 { background: linear-gradient(125deg,#4b85ca,#65a0dc); } .funnel-tone-1 { background: linear-gradient(125deg,#4698c5,#60b1d8); } .funnel-tone-2 { background: linear-gradient(125deg,#3e9eae,#58b7bf); } .funnel-tone-3 { background: linear-gradient(125deg,#3e8eb7,#5aa7cb); } .funnel-tone-4 { background: linear-gradient(125deg,#626dc7,#818bdd); } .funnel-tone-5 { background: linear-gradient(125deg,#8b58ba,#aa71ce); } .funnel-tone-6 { background: linear-gradient(125deg,#bd5d8c,#d77ca6); } .funnel-tone-7 { background: linear-gradient(125deg,#38966a,#54af81); }
.funnel-lost { min-height: 47px; padding: 8px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #f0d3d1; border-radius: 9px; background: #fff6f5; } .funnel-lost > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #df625e; box-shadow: 0 0 0 3px #fde3e1; } .funnel-lost > div { display: flex; flex-direction: column; } .funnel-lost strong { color: #b94c48; font-size: 15px; line-height: 1; } .funnel-lost span { margin-top: 3px; color: #a66b68; font-size: 8px; } .funnel-lost.zero { border-color: #e8e9ed; background: #f8f9fa; } .funnel-lost.zero > i { background: #b4b8c1; box-shadow: 0 0 0 3px #eceef1; } .funnel-lost.zero strong, .funnel-lost.zero span { color: #8d929e; }
.loss-total { margin: 0 20px 20px; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 10px; background: linear-gradient(135deg,#fff1ef,#fff8f7); border: 1px solid #f1d9d6; } .loss-total > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; color: #d75d58; background: #fff; box-shadow: 0 3px 10px rgba(176,74,69,.09); } .loss-total > div { display: flex; flex-direction: column; } .loss-total strong { color: #b94c48; font-size: 23px; line-height: 1; } .loss-total p { margin: 4px 0 0; color: #9c6663; font-size: 10px; }
.loss-reason-list { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 15px; } .loss-reason > div:first-child { margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6a7080; font-size: 10px; } .loss-reason > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .loss-reason > div:first-child b { color: #4b5060; font-size: 11px; } .loss-reason > div:last-child { height: 7px; overflow: hidden; border-radius: 5px; background: #f1f1f4; } .loss-reason i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#e47b72,#cf5f77); }
.loss-note { margin: 0 20px 20px; padding: 12px; border-radius: 8px; background: #f3f1ff; } .loss-note span { color: #6558cf; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; } .loss-note p { margin: 4px 0 0; color: #6e6b83; font-size: 10px; line-height: 1.45; }
.channel-panel { margin-top: 16px; }
.channel-total { padding: 6px 10px; border-radius: 14px; color: #6256cf; background: #eeecff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.channel-chart { padding: 0 20px 21px; display: flex; flex-direction: column; gap: 14px; }
.channel-row { display: grid; grid-template-columns: minmax(130px,.45fr) minmax(200px,1.55fr) minmax(115px,.45fr); align-items: center; gap: 14px; }
.channel-label, .channel-number { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.channel-label b { color: #454a5a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-label small, .channel-number small { color: #8a8f9d; font-size: 9px; }
.channel-track { height: 12px; overflow: hidden; border-radius: 7px; background: #eeedf5; }
.channel-track i { min-width: 4px; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#675bd8,#9388eb); }
.channel-number { align-items: flex-end; text-align: right; }
.channel-number strong { color: #4a4f60; font-size: 15px; line-height: 1; }

/* Geographic opportunity heat map */
.state-map-panel { margin-top: 18px; overflow: hidden; }
.state-map-total { padding: 7px 11px; border-radius: 15px; color: #6256cf; background: #eeecff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.state-map-content { padding: 0 22px 23px; display: grid; grid-template-columns: minmax(420px,1.35fr) minmax(290px,.65fr); gap: 28px; align-items: center; }
.state-map-visual { position: relative; min-width: 0; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ececf2; border-radius: 12px; background: radial-gradient(circle at 48% 46%,#fff 0,#fafafe 58%,#f5f5fa 100%); overflow: hidden; }
.brazil-state-map { display: block; width: min(100%,540px); height: 450px; overflow: visible; }
.state-map-link { outline: none; }
.state-map-link path { fill: #eceef3; stroke: #fff; stroke-width: 1.35; cursor: pointer; transition: fill .16s ease, filter .16s ease, stroke .16s ease; }
.state-map-link.heat-0 path { fill: #eceef3; }
.state-map-link.heat-1 path { fill: #dedafa; }
.state-map-link.heat-2 path { fill: #bdb6f1; }
.state-map-link.heat-3 path { fill: #9287e4; }
.state-map-link.heat-4 path { fill: #6659d2; }
.state-map-link.heat-5 path { fill: #40358f; }
.state-map-link:hover path, .state-map-link:focus path { stroke: #30286f; stroke-width: 2.2; filter: brightness(1.08) drop-shadow(0 3px 5px rgba(42,35,107,.28)); }
.state-map-tooltip { position: absolute; z-index: 3; width: max-content; max-width: 230px; padding: 10px 12px; border-radius: 8px; color: #fff; background: #25283a; box-shadow: 0 8px 24px rgba(23,25,39,.22); pointer-events: none; display: flex; flex-direction: column; gap: 2px; transform: translate(-50%,-112%); }
.state-map-tooltip[hidden] { display: none; }
.state-map-tooltip strong { font-size: 12px; }
.state-map-tooltip span { color: #fff; font-size: 11px; }
.state-map-tooltip small { color: #bfc2d0; font-size: 10px; }
.state-map-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #25283a; transform: translateX(-50%) rotate(45deg); }
.heat-legend { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #e8e9ef; border-radius: 8px; color: #7b8190; background: rgba(255,255,255,.93); box-shadow: 0 3px 12px rgba(35,38,57,.05); font-size: 9px; }
.heat-legend i { width: 17px; height: 9px; border-radius: 2px; }
.heat-legend .heat-0 { background: #eceef3; } .heat-legend .heat-1 { background: #dedafa; } .heat-legend .heat-2 { background: #bdb6f1; } .heat-legend .heat-3 { background: #9287e4; } .heat-legend .heat-4 { background: #6659d2; } .heat-legend .heat-5 { background: #40358f; }
.state-ranking { min-width: 0; }
.state-ranking-summary { margin-bottom: 21px; padding: 16px; border-radius: 10px; color: #fff; background: linear-gradient(125deg,#5f54d3,#7869e7); display: flex; align-items: center; gap: 12px; }
.state-ranking-summary > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.14); }
.state-ranking-summary > div { display: flex; flex-direction: column; }
.state-ranking-summary b { font-size: 24px; line-height: 1; }
.state-ranking-summary small { margin-top: 4px; color: rgba(255,255,255,.82); font-size: 11px; }
.state-ranking-title { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-ranking-title h3 { margin: 0; font-size: 14px; }
.state-ranking-title span { color: #8b909e; font-size: 10px; }
.state-ranking-list { display: flex; flex-direction: column; }
.state-ranking-row { min-height: 55px; display: grid; grid-template-columns: 28px minmax(0,1fr) 31px; gap: 10px; align-items: center; border-top: 1px solid #eceef2; }
.state-ranking-row:hover b { color: #5d50cd; }
.state-position { color: #9b9fab; font-size: 9px; font-weight: 800; }
.state-ranking-row > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.state-ranking-row b { color: #454a5a; font-size: 12px; transition: color .15s ease; }
.state-ranking-row b small { margin-left: 4px; color: #999eaa; font-size: 9px; }
.state-ranking-row i { height: 5px; overflow: hidden; border-radius: 4px; background: #eeedf5; }
.state-ranking-row em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#796ce0,#4d42aa); }
.state-ranking-row > strong { color: #484d5d; font-size: 16px; text-align: right; }
.state-map-note { margin: 18px 0 0; padding: 12px; border-radius: 8px; color: #6e6b83; background: #f3f1ff; font-size: 11px; line-height: 1.55; }

/* Readability for the two analytical views */
.dashboard-page .page-heading h1, .funnel-page .page-heading h1 { font-size: 31px; }
.dashboard-page .page-heading p, .funnel-page .page-heading p { font-size: 15px; line-height: 1.55; }
.dashboard-page .section-head h2, .funnel-page .section-head h2 { font-size: 18px; }
.dashboard-page .section-head p, .funnel-page .section-head p { font-size: 13px; line-height: 1.5; }
.dashboard-page .link-btn, .funnel-page .link-btn { font-size: 13px; }

.dashboard-page .stat-card, .funnel-page .stat-card { padding: 20px; }
.dashboard-page .stat-value, .funnel-page .stat-value { font-size: 30px; }
.dashboard-page .stat-value.money, .funnel-page .stat-value.money { font-size: clamp(19px,1.35vw,23px); white-space: nowrap; }
.dashboard-page .stat-label, .funnel-page .stat-label { font-size: 14px; color: #555d6f; }
.dashboard-page .stat-detail, .funnel-page .stat-detail { font-size: 12px; line-height: 1.45; }

.dashboard-page .mini-stage > span { font-size: 23px; }
.dashboard-page .mini-stage i { height: 8px; }
.dashboard-page .mini-stage small { font-size: 12px; color: #626a7b; }
.dashboard-page .summary-strip > div { font-size: 12px; line-height: 1.45; }
.dashboard-page .summary-strip b { font-size: 13px; }
.dashboard-page .agenda-item { min-height: 66px; }
.dashboard-page .time-dot { font-size: 11px; }
.dashboard-page .agenda-content strong { font-size: 13px; }
.dashboard-page .agenda-content span { font-size: 11px; }
.dashboard-page .simple-table > a { min-height: 64px; }
.dashboard-page .simple-table strong { font-size: 13px; }
.dashboard-page .simple-table small, .dashboard-page .ticket-code, .dashboard-page .due { font-size: 11px; }
.dashboard-page .priority { font-size: 11px; }
.dashboard-page .sprint-progress > div:first-child { font-size: 13px; }
.dashboard-page .sprint-progress small { font-size: 11px; line-height: 1.45; }
.dashboard-page .sprint-numbers b { font-size: 20px; }
.dashboard-page .sprint-numbers span { font-size: 11px; }
.dashboard-page .release strong { font-size: 12px; }
.dashboard-page .release span { font-size: 11px; }
.dashboard-page .release-tag { font-size: 11px; }

.funnel-page .funnel-layout { grid-template-columns: minmax(0,1.7fr) minmax(330px,.7fr); gap: 18px; }
.funnel-page .funnel-legend { font-size: 12px; gap: 16px; }
.funnel-page .funnel-legend i { width: 10px; height: 10px; }
.funnel-page .funnel-visual { padding: 2px 24px 28px; }
.funnel-page .funnel-columns { grid-template-columns: minmax(165px,.8fr) minmax(280px,1.6fr) 108px; font-size: 11px; padding-bottom: 12px; color: #747b8c; }
.funnel-page .funnel-row { min-height: 88px; grid-template-columns: minmax(165px,.8fr) minmax(280px,1.6fr) 108px; gap: 15px; }
.funnel-page .funnel-stage-label { gap: 12px; }
.funnel-page .funnel-stage-label > span { width: 34px; height: 34px; font-size: 11px; }
.funnel-page .funnel-stage-label b { font-size: 14px; color: #333847; }
.funnel-page .funnel-stage-label small { margin-top: 4px; font-size: 11px; color: #747b8c; }
.funnel-page .funnel-segment-wrap { height: 76px; }
.funnel-page .funnel-segment { height: 72px; }
.funnel-page .funnel-segment strong { font-size: 27px; }
.funnel-page .funnel-segment span { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.94); }
.funnel-page .funnel-lost { min-height: 56px; padding: 10px 11px; gap: 9px; }
.funnel-page .funnel-lost > i { width: 9px; height: 9px; }
.funnel-page .funnel-lost strong { font-size: 19px; }
.funnel-page .funnel-lost span { font-size: 11px; }
.funnel-page .loss-total { padding: 18px; }
.funnel-page .loss-total strong { font-size: 28px; }
.funnel-page .loss-total p { font-size: 12px; }
.funnel-page .loss-reason-list { gap: 18px; }
.funnel-page .loss-reason > div:first-child { font-size: 12px; }
.funnel-page .loss-reason > div:first-child b { font-size: 13px; }
.funnel-page .loss-reason > div:last-child { height: 9px; }
.funnel-page .loss-note { padding: 14px; }
.funnel-page .loss-note span { font-size: 11px; }
.funnel-page .loss-note p { font-size: 12px; line-height: 1.55; }
.funnel-page .channel-total { font-size: 12px; }
.funnel-page .channel-chart { gap: 18px; padding-bottom: 24px; }
.funnel-page .channel-label b { font-size: 13px; }
.funnel-page .channel-label small, .funnel-page .channel-number small { font-size: 11px; }
.funnel-page .channel-track { height: 15px; }
.funnel-page .channel-number strong { font-size: 18px; }
.funnel-page .funnel-layout > .channel-panel { margin-top: 0; }
.funnel-page .funnel-layout > .channel-panel .section-head { align-items: flex-start; flex-direction: column; }
.funnel-page .funnel-layout > .channel-panel .channel-row { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 8px 12px; }
.funnel-page .funnel-layout > .channel-panel .channel-label { grid-column: 1; grid-row: 1; }
.funnel-page .funnel-layout > .channel-panel .channel-number { grid-column: 2; grid-row: 1; }
.funnel-page .funnel-layout > .channel-panel .channel-track { grid-column: 1 / -1; grid-row: 2; }
.funnel-page .loss-panel-wide { margin-top: 18px; }
.funnel-page .loss-wide-content { padding: 0 20px 21px; display: grid; grid-template-columns: minmax(190px,.55fr) minmax(320px,1.45fr) minmax(210px,.7fr); gap: 22px; align-items: start; }
.funnel-page .loss-panel-wide .loss-total, .funnel-page .loss-panel-wide .loss-note { margin: 0; }
.funnel-page .loss-panel-wide .loss-reason-list { padding: 0; }
.client-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 20px; } .client-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 12px; } .client-stats p { margin: 0; display: flex; flex-direction: column; } .client-stats p b { font-size: 20px; } .client-stats p small { color: #7b8190; font-size: 10px; }

/* WhatsApp support inbox */
.whatsapp-page { max-width: 1800px; }
.wa-setup-banner { margin-bottom: 16px; padding: 15px 17px; border: 1px solid #cce9db; border-radius: 11px; background: #f5fcf8; display: flex; align-items: center; gap: 13px; }
.wa-setup-banner > div { flex: 1; min-width: 0; }
.wa-setup-banner b { display: block; color: #277151; font-size: 13px; }
.wa-setup-banner p { margin: 3px 0 0; color: #607b6c; font-size: 11px; }
.wa-setup-icon { width: 40px; height: 40px; border-radius: 10px; background: #dff4e9; color: #2e9367; display: grid; place-items: center; }
.wa-setup-icon .icon { width: 23px; height: 23px; }
.wa-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.wa-stats > div { padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: baseline; gap: 8px; }
.wa-stats b { font-size: 20px; line-height: 1; }
.wa-stats span { color: #767d8d; font-size: 11px; }
.wa-stats .waiting { border-color: #e5dbff; background: #fbfaff; }
.wa-stats .waiting b { color: var(--purple); }
.wa-workspace { height: calc(100vh - 247px); min-height: 610px; display: grid; grid-template-columns: minmax(285px, .75fr) minmax(430px, 1.45fr) minmax(260px, .68fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.wa-inbox { min-width: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fbfbfc; }
.wa-inbox-filters { padding: 13px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; background: #fff; }
.wa-inbox-filters .inner-search { width: 100%; min-width: 0; }
.wa-inbox-filters > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 36px; gap: 6px; }
.wa-inbox-filters select, .wa-detail-actions select { min-width: 0; width: 100%; min-height: 36px; padding: 0 8px; border: 1px solid #e2e4e9; border-radius: 7px; background: #fff; color: #626979; font-size: 10px; }
.wa-only-waiting { display: flex; align-items: center; gap: 7px; color: #666d7e; font-size: 10px; }
.wa-only-waiting input { accent-color: var(--purple); }
.wa-conversation-list { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.wa-conversation-list .empty-state { min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.wa-conversation-card { position: relative; min-height: 104px; padding: 13px 32px 13px 12px; border-bottom: 1px solid #eceef2; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; background: #fff; }
.wa-conversation-card:hover { background: #faf9ff; }
.wa-conversation-card.active { background: #f2f0ff; box-shadow: inset 3px 0 var(--purple); }
.wa-conversation-card.awaiting-agent:not(.active) { background: #fffdf8; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#5fae83,#2d8d62); color: #fff; font-weight: 800; font-size: 11px; flex: 0 0 auto; }
.wa-avatar.large { width: 58px; height: 58px; font-size: 14px; }
.wa-card-copy { min-width: 0; display: flex; flex-direction: column; }
.wa-card-copy > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; }
.wa-card-copy b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.wa-card-copy time { color: #9499a6; font-size: 9px; white-space: nowrap; }
.wa-card-copy > small { margin-top: 1px; color: #888e9d; font-size: 9px; }
.wa-card-copy > p { margin: 6px 0 7px; color: #666d7d; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-card-meta { min-height: 27px; display: flex; align-items: center; justify-content: space-between; }
.wa-card-meta i { display: inline-flex; align-items: center; gap: 3px; color: #7d8392; font-style: normal; font-size: 9px; }
.wa-card-meta .icon { width: 12px; height: 12px; }
.wa-unread { position: absolute; top: 47px; right: 10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #35a575; color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.wa-chat { min-width: 0; display: flex; flex-direction: column; background: #f2f0eb; }
.wa-chat-head { min-height: 68px; padding: 10px 15px; border-bottom: 1px solid #e1dfda; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wa-chat-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.wa-chat-head p { min-width: 0; margin: 0; display: flex; flex-direction: column; }
.wa-chat-head b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.wa-chat-head p span { color: #858b9b; font-size: 10px; }
.wa-attention { padding: 6px 9px; border-radius: 12px; background: #eef0f3; color: #6f7584; font-size: 9px; font-weight: 750; white-space: nowrap; }
.wa-attention.awaiting_agent { color: #9e6330; background: #fff0df; }
.wa-attention.awaiting_customer { color: #37785d; background: #e6f6ed; }
.wa-message-list { flex: 1; min-height: 0; padding: 18px clamp(16px, 4vw, 54px); overflow-y: auto; display: flex; flex-direction: column; gap: 7px; background-color: #f3f1ec; background-image: radial-gradient(rgba(89,84,75,.055) .8px, transparent .8px); background-size: 12px 12px; scrollbar-width: thin; }
.wa-date-separator { align-self: center; margin: 6px 0; padding: 5px 10px; border-radius: 12px; background: rgba(255,255,255,.9); color: #7b817f; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 9px; }
.wa-message { width: fit-content; max-width: min(78%, 640px); padding: 9px 11px 6px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(34,38,45,.1); }
.wa-message.inbound { align-self: flex-start; border-top-left-radius: 2px; }
.wa-message.outbound { align-self: flex-end; border-top-right-radius: 2px; background: #dff7e9; }
.wa-message.internal { align-self: center; width: min(86%,680px); max-width: none; border: 1px dashed #c8c3ee; background: #f1efff; box-shadow: none; }
.wa-message.automated { background: #e8f3fa; }
.wa-message p { margin: 0; color: #323745; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wa-sender, .wa-note-label { display: block; margin-bottom: 3px; color: #5f56ba; font-size: 9px; font-weight: 750; }
.wa-note-label { display: flex; align-items: center; gap: 4px; }
.wa-note-label .icon { width: 12px; height: 12px; }
.wa-message footer { margin-top: 4px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #858b95; font-size: 8px; }
.wa-delivery.read, .wa-delivery.delivered { color: #267ca8; }
.wa-delivery.failed { color: #c7504d; font-weight: 750; }
.wa-attachment { min-width: 210px; margin: 5px 0 3px; padding: 9px; border: 1px solid rgba(67,74,86,.1); border-radius: 7px; background: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.wa-attachment > .icon { color: var(--purple); }
.wa-attachment span { min-width: 0; display: flex; flex-direction: column; }
.wa-attachment b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.wa-attachment small { color: #838997; font-size: 8px; }
.wa-attachment.pending { pointer-events: none; opacity: .65; }
.wa-attachment.failed { color: #a64b48; border-color: #edcfcd; background: #fff8f7; }
.wa-composer { padding: 11px 13px 13px; border-top: 1px solid #dfddd8; background: #fff; }
.wa-composer-tools { min-height: 28px; display: flex; align-items: center; gap: 8px; }
.wa-composer-tools select { max-width: 220px; height: 28px; border: 1px solid #e1e3e8; border-radius: 6px; color: #686f7e; font-size: 9px; }
.wa-file-button { width: 29px; height: 29px; border: 1px solid #dfe2e7; border-radius: 7px; color: #6e7482; display: grid; place-items: center; cursor: pointer; }
.wa-file-button input { display: none; }
.wa-file-button .icon { width: 15px; height: 15px; }
.wa-composer textarea { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid #dfe2e7; border-radius: 8px; resize: none; outline: none; color: #343949; font-size: 12px; }
.wa-composer textarea:focus { border-color: #9f96e7; box-shadow: 0 0 0 3px #efedff; }
.wa-composer-foot { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wa-composer-foot > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #898f9c; font-size: 9px; }
.wa-chat-empty { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; color: #838a95; }
.wa-chat-empty > .icon { width: 44px; height: 44px; color: #61a982; }
.wa-chat-empty h2 { margin: 12px 0 3px; color: #484e5d; font-size: 17px; }
.wa-chat-empty p { margin: 0; font-size: 11px; }
.wa-details { min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.wa-detail-head { padding: 22px 16px 17px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.wa-detail-head h2 { max-width: 100%; margin: 9px 0 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.wa-detail-head p { margin: 0 0 9px; color: #858b99; font-size: 10px; }
.wa-detail-section { padding: 15px; border-bottom: 1px solid var(--line); }
.wa-detail-title { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wa-detail-title > b { font-size: 11px; }
.wa-client-link, .wa-linked-tickets a { padding: 9px; border: 1px solid #e7e9ed; border-radius: 7px; display: flex; align-items: center; gap: 8px; }
.wa-client-link:hover, .wa-linked-tickets a:hover { border-color: #cbc6ef; background: #fcfbff; }
.wa-client-link > span, .wa-linked-tickets a > span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.wa-client-link b, .wa-linked-tickets b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.wa-client-link small, .wa-linked-tickets small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #868c9a; font-size: 8px; }
.wa-client-link > .icon:last-child, .wa-linked-tickets .icon { width: 13px; color: #9ba0ab; }
.wa-assignee-summary { display: flex; align-items: center; gap: 8px; }
.wa-assignee-summary > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #666d7c; font-size: 10px; }
.wa-detail-actions { display: flex; flex-direction: column; gap: 7px; }
.wa-detail-actions form { margin: 0; }
.wa-detail-empty { padding: 11px; border-radius: 7px; background: #f5f6f8; color: #7e8492; font-size: 9px; text-align: center; }
.wa-linked-tickets { display: flex; flex-direction: column; gap: 6px; }
.wa-hours-form { gap: 9px; }
.wa-hour-row { display: grid; grid-template-columns: minmax(115px,1fr) 110px auto 110px; align-items: center; gap: 8px; }
.wa-hour-row input[type="time"] { padding: 8px; }
.wa-hour-row > span { color: #858b99; font-size: 9px; text-align: center; }
.wa-quick-manager { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(320px,1.15fr); }
.wa-quick-form { border-right: 1px solid var(--line); }
.wa-quick-list { max-height: 590px; padding: 12px 17px; overflow-y: auto; }
.wa-quick-list article { padding: 11px 0; border-top: 1px solid #eceef2; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: start; gap: 8px; }
.wa-quick-list article:first-child { border-top: 0; }
.wa-quick-list article > div { min-width: 0; }
.wa-quick-list b { font-size: 11px; }
.wa-quick-list p { margin: 4px 0 0; color: #6f7584; font-size: 9px; line-height: 1.45; }
.wa-quick-list form { margin: 0; }
.wa-quick-list .icon-btn { width: 29px; height: 29px; }
.ticket-whatsapp-transcript { margin: 0 15px 15px; padding: 12px; border-radius: 8px; background: #f5f4ff; }
.ticket-whatsapp-transcript summary { color: #574dc1; font-size: 11px; font-weight: 750; cursor: pointer; }
.ticket-whatsapp-transcript pre { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #ddd9f5; color: #4f5666; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* User administration */
.user-summary { padding: 17px 19px; border-radius: 10px; color: #fff; background: linear-gradient(115deg, #5f54d3, #7667e7); display: flex; justify-content: space-between; align-items: center; } .user-summary > div { display: flex; gap: 11px; align-items: center; } .user-summary p { margin: 0; display: flex; flex-direction: column; } .user-summary p b { font-size: 15px; } .user-summary p span, .access-note { font-size: 11px; color: rgba(255,255,255,.8); }
.role-overview { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; } .role-overview > a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px; } .role-overview > a:hover { border-color: #cbc6f3; } .role-overview p { margin: 0; display: flex; flex-direction: column; } .role-overview b { font-size: 17px; } .role-overview small { color: #7a8090; font-size: 10px; }
.role-icon { width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; color: #675bd5; background: #eeecff; } .role-icon.role-1 { color: #3b82b9; background: #e8f3fb; } .role-icon.role-2 { color: #3b9469; background: #e7f6ee; } .role-icon.role-3 { color: #c16e45; background: #fff0e8; } .role-icon.role-4 { color: #717684; background: #eceef2; }
.segmented { padding: 4px; background: #ecedf1; border-radius: 8px; display: flex; width: fit-content; } .segmented a { border-radius: 6px; padding: 8px 12px; font-size: 11px; color: #747a89; } .segmented a.active { background: #fff; color: #444958; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.table-toolbar { min-height: 56px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eceef2; } .table-toolbar > span { color: #858b99; font-size: 11px; }
.permission-panel td { text-align: center; } .permission-panel td:first-child, .permission-panel th:first-child { text-align: left; } .permission-value { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 10px; } .permission-value.manage { color: #5d50cb; background: #eeecff; } .permission-value.view { color: #337e5d; background: #e7f6ee; } .permission-value.none { color: #a0a4ae; }
.role-edit-list { padding: 8px 18px 18px; } .role-edit-list article { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eceef2; } .role-edit-list article > div { display: flex; align-items: center; gap: 10px; } .role-edit-list p { margin: 0; display: flex; flex-direction: column; } .role-edit-list p b { font-size: 12px; } .role-edit-list p small { font-size: 10px; color: #818795; }
.modal-security-reset { margin: 0 20px 20px; padding: 13px; border: 1px solid #efd5d3; border-radius: 8px; background: #fffafa; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.modal-security-reset > div { display: flex; flex-direction: column; gap: 2px; }
.modal-security-reset b { color: #a94744; font-size: 12px; }
.modal-security-reset span { color: #8a6664; font-size: 10px; }

/* Account security and MFA */
.security-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.security-main-card, .security-side-card { padding: 22px; }
.security-status-head { display: flex; align-items: center; gap: 14px; }
.security-status-head > div { flex: 1; min-width: 0; }
.security-status-head .eyebrow { margin-bottom: 3px; }
.security-status-head h2, .security-side-card h2 { margin: 0; font-size: 19px; }
.security-status-head p { margin: 4px 0 0; color: #73798a; font-size: 12px; }
.security-shield { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #727887; background: #eef0f3; }
.security-shield.enabled { color: #378d66; background: #e7f6ee; }
.security-shield .icon { width: 25px; height: 25px; }
.security-action-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eceef2; display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: end; gap: 12px; }
.security-action-form label, .mfa-confirm-form label, .danger-action label { display: flex; flex-direction: column; gap: 6px; }
.security-action-form label span, .mfa-confirm-form label span, .danger-action label span { color: #5f6575; font-size: 11px; font-weight: 700; }
.security-action-form input, .mfa-confirm-form input, .danger-action input { width: 100%; padding: 11px; border: 1px solid #dfe2e8; border-radius: 7px; outline: 0; }
.security-action-form input:focus, .mfa-confirm-form input:focus, .danger-action input:focus { border-color: #9f96e7; box-shadow: 0 0 0 3px #efedff; }
.security-action-form > small { grid-column: 1/-1; color: #858b99; font-size: 10px; }
.mfa-enrollment { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eceef2; }
.enrollment-steps { display: grid; gap: 8px; margin-bottom: 18px; }
.enrollment-steps > span { display: flex; align-items: center; gap: 9px; color: #5f6676; font-size: 12px; }
.enrollment-steps b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #5b4fc9; background: #eeecff; flex: 0 0 auto; }
.mfa-setup-grid { display: grid; grid-template-columns: 260px minmax(220px,1fr); align-items: center; gap: 22px; }
.totp-qr { display: block; width: 260px; height: 260px; padding: 8px; border: 1px solid #e5e7ec; border-radius: 10px; background: #fff; }
.manual-secret { padding: 16px; border-radius: 9px; background: #f6f5ff; display: flex; flex-direction: column; gap: 8px; }
.manual-secret span { color: #686f80; font-size: 11px; font-weight: 700; }
.manual-secret code { color: #4f44b7; font-size: 14px; font-weight: 750; line-height: 1.7; overflow-wrap: anywhere; }
.manual-secret small { color: #858b99; font-size: 10px; }
.mfa-confirm-form { margin-top: 18px; display: grid; grid-template-columns: minmax(210px,1fr) auto; gap: 12px; align-items: end; }
.mfa-confirm-form .modal-actions { border: 0; margin: 0; padding: 0; }
.mfa-cancel-form { margin-top: 11px; text-align: right; }
.recovery-box { margin-top: 20px; padding: 18px; border: 1px solid #e8d99e; border-radius: 10px; background: #fffcf0; }
.recovery-box h3 { margin: 0; font-size: 16px; }
.recovery-box p { margin: 4px 0 0; color: #776f58; font-size: 11px; }
.recovery-codes { margin: 15px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.recovery-codes code { padding: 8px 10px; border: 1px solid #eee2b6; border-radius: 6px; background: #fff; color: #554f3d; font-size: 12px; font-weight: 750; text-align: center; }
.security-side-card ul { padding-left: 19px; margin: 15px 0 20px; color: #687080; font-size: 12px; line-height: 1.65; }
.security-side-card li + li { margin-top: 6px; }
.security-metric { padding: 14px; border-radius: 9px; background: #f5f3ff; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #5b50c5; }
.security-metric span { font-size: 11px; }
.security-metric b { font-size: 22px; }
.danger-action { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eceef2; display: flex; flex-direction: column; gap: 10px; }

/* Drawers */
.drawer-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(16,18,29,.48); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.drawer { width: min(570px, 100vw); height: 100%; overflow-y: auto; background: var(--canvas); box-shadow: -12px 0 30px rgba(12,14,24,.2); animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { transform: translateX(35px); opacity: 0; } }
.drawer-head { background: #fff; border-bottom: 1px solid var(--line); padding: 21px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 2; } .drawer-head span { display: block; color: #858b9a; font-size: 10px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; } .drawer-head h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.4px; }
.drawer-stage { min-height: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px; display: flex; align-items: center; gap: 10px; } .drawer-stage > div { display: flex; flex-direction: column; flex: 1; } .drawer-stage > div span { font-size: 10px; color: #818797; } .drawer-stage > div b { font-size: 15px; }
.drawer-tabs { height: 47px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; } .drawer-tabs button { height: 100%; border: 0; border-bottom: 2px solid var(--purple); background: none; color: #4e45be; font-size: 11px; font-weight: 700; } .drawer-tabs span { font-size: 9px; color: #858b9a; }
.drawer-content { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.drawer-section { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } .drawer-section .section-head { padding: 15px 16px 12px; } .drawer-section .section-head h2 { font-size: 13px; }
.detail-grid { padding: 2px 16px 15px; display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; } .detail-grid > div { display: flex; flex-direction: column; } .detail-grid span, .next-card small, .contact-card span, .contact-card small, .client-header span, .sla-panel span { font-size: 10px; color: #7f8594; } .detail-grid b, .next-card b, .contact-card b, .client-header b { font-size: 12px; color: #3e4353; }
.next-card { margin: 0 16px 15px; padding: 11px; background: #f5f3ff; border-radius: 7px; color: var(--purple); display: flex; align-items: center; gap: 9px; } .next-card > div { display: flex; flex-direction: column; } .notes { margin: 0 16px 16px; padding-top: 13px; border-top: 1px solid #eceef2; color: #5c6373; font-size: 11px; line-height: 1.6; }
.alert-banner { margin: 14px 16px 0; padding: 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; } .alert-banner > div { display: flex; align-items: center; gap: 9px; } .alert-banner > div > span { display: flex; flex-direction: column; } .alert-banner b { font-size: 12px; } .alert-banner small { font-size: 10px; } .alert-banner.success { color: #337f5d; background: #e8f6ef; } .alert-banner.danger { color: #bf514d; background: #fdeceb; }
.contact-list { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; } .contact-card { padding: 10px; background: #fafbfc; border-radius: 8px; display: flex; gap: 9px; } .contact-card > div { display: flex; flex-direction: column; min-width: 0; }
.comment-box { padding: 0 15px 13px; } .comment-box textarea { width: 100%; border: 1px solid #dfe2e8; border-radius: 7px; padding: 10px; resize: vertical; font-size: 11px; outline: 0; } .comment-box textarea:focus { border-color: #a49be9; box-shadow: 0 0 0 3px #efedff; } .comment-box button { margin-top: 7px; }
[data-active-view="tickets"][data-can-tickets-edit="0"] .comment-box { display: none; }
.timeline { padding: 0 16px 15px; } .timeline article { position: relative; padding: 2px 0 13px 20px; } .timeline article::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: -1px; width: 1px; background: #e2e4e9; } .timeline article:last-child::before { display: none; } .timeline article > i { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px #eeecff; } .timeline article.muted > i { background: #9aa0ae; box-shadow: 0 0 0 3px #eff0f3; } .timeline article > div { display: grid; grid-template-columns: 1fr auto; } .timeline b, .timeline p { font-size: 11px; } .timeline small { color: #9297a5; font-size: 9px; } .timeline p { grid-column: 1/-1; margin: 4px 0 0; color: #606777; line-height: 1.5; }
.client-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; } .client-header > div { flex: 1; display: flex; flex-direction: column; } .client-header .health { flex: 0 0 auto; }
.sla-panel { padding: 0 15px 15px; display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; } .sla-panel > div { padding: 12px; border: 1px solid #e7e9ed; border-radius: 8px; display: flex; gap: 8px; color: #4f936f; } .sla-panel > div.risk { color: #d15d51; border-color: #f0d6d3; background: #fff9f8; } .sla-panel > div > span { display: flex; flex-direction: column; } .sla-panel b { color: #414656; font-size: 11px; } .sla-panel small { color: inherit; font-size: 9px; }
.linked-list { padding: 0 14px 13px; display: flex; flex-direction: column; gap: 7px; } .linked-list > a, .create-dev { min-height: 52px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid #e8eaee; border-radius: 7px; } .linked-list > a:hover { border-color: #cfcaf1; background: #fdfcff; } .linked-list > a > span:first-child, .create-dev > span { display: flex; flex-direction: column; } .linked-list b, .create-dev b { font-size: 11px; } .linked-list small, .create-dev small { font-size: 9px; color: #858b9a; } .linked-list .icon { width: 15px; }
.drawer-danger-zone { padding: 14px 16px; border: 1px solid #efd5d3; border-radius: 10px; background: #fffafa; display: flex; align-items: center; justify-content: space-between; gap: 14px; } .drawer-danger-zone > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .drawer-danger-zone b { color: #a94744; font-size: 12px; } .drawer-danger-zone span { color: #8a6664; font-size: 10px; } .drawer-danger-zone form { flex: 0 0 auto; }

/* Modal and forms */
.modal { width: min(690px, calc(100vw - 30px)); max-height: calc(100vh - 34px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 22px 70px rgba(15,17,28,.28); color: var(--ink); overflow: auto; } .modal.compact { width: min(540px, calc(100vw - 30px)); } .modal::backdrop { background: rgba(16,18,29,.52); backdrop-filter: blur(2px); }
.modal-head { min-height: 75px; padding: 18px 20px; border-bottom: 1px solid #e9ebef; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; position: sticky; top: 0; z-index: 2; background: #fff; } .modal-head span { display: block; font-size: 10px; color: #888e9d; font-weight: 750; letter-spacing: .8px; } .modal-head h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.35px; }
.form-body { padding: 19px 20px 20px; display: flex; flex-direction: column; gap: 14px; } .form-body label { display: flex; flex-direction: column; gap: 5px; } .form-body label > span { font-size: 11px; font-weight: 700; color: #5f6575; } .form-body input, .form-body select, .form-body textarea { width: 100%; border: 1px solid #dfe2e8; border-radius: 7px; background: #fff; color: #343949; padding: 11px; font-size: 12px; outline: 0; } .form-body input:focus, .form-body select:focus, .form-body textarea:focus { border-color: #9f96e7; box-shadow: 0 0 0 3px #efedff; } .form-body textarea { resize: vertical; } .form-body .uppercase { text-transform: uppercase; }
.form-grid { display: grid; gap: 12px; } .form-grid.two { grid-template-columns: repeat(2,1fr); } .form-grid .span-two { grid-column: span 2; }
.form-divider { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: #8b91a0; border-top: 1px solid #eceef2; padding-top: 13px; margin-top: 2px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid #eceef2; padding-top: 15px; margin-top: 3px; }
.check-row { flex-direction: row !important; align-items: center; gap: 7px !important; font-size: 11px; color: #5f6575; } .check-row input { width: auto; }
.assignee-picker { min-width: 0; border: 1px solid #e4e6eb; border-radius: 9px; padding: 11px 12px 12px; }
.assignee-picker legend { padding: 0 5px; color: #5f6575; font-size: 11px; font-weight: 750; }
.assignee-picker > small, .form-hint { color: #8b91a0; font-size: 9px; }
.assignee-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 7px; }
.form-body .assignee-option { min-width: 0; min-height: 39px; padding: 5px 8px; border: 1px solid #eceef2; border-radius: 7px; flex-direction: row; align-items: center; gap: 7px; cursor: pointer; }
.form-body .assignee-option:hover { border-color: #cbc6ef; background: #fcfbff; }
.form-body .assignee-option:has(input:checked) { border-color: #aaa1eb; background: #f3f1ff; }
.form-body .assignee-option input { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--purple); flex: 0 0 auto; }
.form-body .assignee-option > .avatar { color: #fff; font-size: 8px; flex: 0 0 27px; }
.form-body .assignee-option > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-box { padding: 10px; color: #6659ca; background: #f2efff; border-radius: 7px; font-size: 10px; }
.permission-form fieldset { border: 1px solid #e7e9ed; border-radius: 8px; padding: 10px 12px; } .permission-form legend { font-size: 10px; font-weight: 750; color: #676e7e; padding: 0 5px; } .permission-form fieldset .check-row { margin: 5px 0; }

/* Flash and toast */
.flash-stack { position: fixed; z-index: 110; top: 18px; right: 20px; display: flex; flex-direction: column; gap: 8px; }
.flash { min-width: 280px; max-width: 430px; padding: 12px 14px; border: 1px solid #d9dce3; border-radius: 8px; background: #fff; color: #4f5667; box-shadow: 0 8px 25px rgba(25,28,40,.14); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; } .flash.success { color: #317b59; border-color: #cbe9d9; background: #f6fcf9; } .flash.error { color: #bd4f4b; border-color: #efd1cf; background: #fff8f7; } .flash button { border: 0; background: none; cursor: pointer; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 11px 15px; border-radius: 8px; background: #242738; color: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.22); font-size: 12px; }

/* Login and error */
.login-body { min-height: 100vh; background: #f5f6fa; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-visual { position: relative; overflow: hidden; background: #171928; color: #fff; padding: 45px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; } .login-visual::before { width: 540px; height: 540px; right: -260px; top: -200px; background: radial-gradient(circle, #6856df, transparent 68%); } .login-visual::after { width: 400px; height: 400px; left: -180px; bottom: -240px; background: radial-gradient(circle, #a15bc4, transparent 68%); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; font-size: 16px; }
.login-copy { position: relative; z-index: 1; max-width: 620px; } .login-copy .eyebrow { color: #9b92ef; } .login-copy h1 { margin: 0; max-width: 590px; font-size: clamp(36px,4.5vw,64px); line-height: 1.04; letter-spacing: -2.3px; }
.login-visual > small { position: relative; z-index: 1; color: #696e80; letter-spacing: 1px; font-size: 9px; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; }
.login-card { width: min(420px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 55px rgba(32,36,53,.08); display: flex; flex-direction: column; gap: 17px; }
.login-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.8px; } .login-heading p { margin: 5px 0 0; color: #73798a; } .login-card label { display: flex; flex-direction: column; gap: 6px; } .login-card label span { font-size: 11px; font-weight: 700; color: #5f6575; } .login-card input { width: 100%; border: 1px solid #dfe2e8; border-radius: 8px; padding: 12px; outline: 0; } .login-card input:focus { border-color: #9f96e7; box-shadow: 0 0 0 3px #efedff; } .login-submit { width: 100%; margin-top: 2px; }
.security-note { display: flex; justify-content: center; align-items: center; gap: 6px; color: #858b9a; font-size: 10px; margin: 0; } .security-note .icon { width: 14px; }
.login-cancel { width: min(420px,100%); text-align: center; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; } .error-card { width: min(480px,100%); padding: 35px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; box-shadow: 0 18px 55px rgba(32,36,53,.08); } .error-card .brand-mark { margin-bottom: 17px; } .error-card h1 { margin: 0 0 8px; font-size: 25px; } .error-card p { color: #727989; }

/* Responsive */
@media (max-width: 1180px) {
  .stats-grid, .funnel-stats { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .dashboard-grid.lower, .funnel-layout, .funnel-page .funnel-layout { grid-template-columns: 1fr; }
  .role-overview { grid-template-columns: repeat(3,1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .state-map-content { grid-template-columns: minmax(390px,1.1fr) minmax(270px,.9fr); gap: 20px; }
  .board-toolbar { align-items: stretch; flex-direction: column; } .board-toolbar > div, .filter-form { flex-wrap: wrap; }
  .wa-workspace { grid-template-columns: minmax(270px,.75fr) minmax(430px,1.25fr); }
  .wa-details { display: none; }
}
@media (max-width: 860px) {
  :root { --sidebar: 260px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; } body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 45; inset: 0; background: rgba(13,15,25,.45); } body.sidebar-open .sidebar-overlay { display: block; }
  .main { margin-left: 0; } .mobile-menu { display: inline-grid; position: fixed; z-index: 44; top: 14px; left: 14px; box-shadow: 0 4px 14px rgba(31,34,49,.13); } .page { padding: 70px 19px 55px; }
  .login-page { grid-template-columns: 1fr; } .login-visual { min-height: 430px; padding: 35px; } .login-panel { padding: 30px 18px; }
  .mfa-setup-grid { grid-template-columns: 1fr; justify-items: center; } .manual-secret { width: 100%; }
  .state-map-content { grid-template-columns: 1fr; } .state-map-visual { min-height: 470px; }
  .client-stats { grid-template-columns: 1fr; } .role-overview { grid-template-columns: repeat(2,1fr); }
  .funnel-page .loss-wide-content { grid-template-columns: minmax(180px,.65fr) minmax(300px,1.35fr); }
  .funnel-page .loss-panel-wide .loss-note { grid-column: 1 / -1; }
  .whatsapp-page { padding-left: 10px; padding-right: 10px; }
  .wa-workspace { height: calc(100vh - 260px); grid-template-columns: minmax(245px,.7fr) minmax(390px,1.3fr); overflow-x: auto; }
  .wa-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .flash-stack { top: 62px; right: 12px; left: 12px; } .flash { min-width: 0; max-width: none; }
  .page-heading { align-items: flex-start; flex-direction: column; } .page-heading h1 { font-size: 25px; } .page-actions { width: 100%; flex-wrap: wrap; }
  .dashboard-page .page-heading h1, .funnel-page .page-heading h1 { font-size: 28px; }
  .stats-grid, .funnel-stats { grid-template-columns: 1fr; } .mini-funnel { align-items: stretch; flex-direction: column; } .mini-stage { display: grid; grid-template-columns: 36px 1fr 120px; gap: 8px; } .mini-stage > span { margin: 0; } .mini-stage small { margin: 0; text-align: right; }
  .summary-strip { grid-template-columns: 1fr; gap: 8px; } .summary-strip > div { border: 0; }
  .simple-table > a { grid-template-columns: 70px 1fr auto; } .simple-table .due { grid-column: 2/-1; }
  .view-toolbar { align-items: stretch; flex-direction: column; } .view-toolbar > span { margin-left: 0; } .inner-search { min-width: 0; }
  .board-toolbar > div, .filter-form { align-items: stretch; flex-direction: column; } .metric-inline { border: 0; } .filter-form > * { width: 100%; }
  .pipeline-toolbar > .pipeline-toolbar-main { align-items: stretch; flex-direction: column; } .pipeline-metrics { align-items: flex-start; flex-direction: column; gap: 6px; } .pipeline-text-filter { width: 100%; margin-left: 0; }
  .pipeline-toolbar > .pipeline-filter-row { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px; } .pipeline-filter-menu { flex: 1 1 120px; } .pipeline-filter-button { width: 100%; justify-content: space-between; } .pipeline-filter-label { width: 100%; } .pipeline-filter-clear { width: auto; margin-left: 0; padding: 5px 0; } .pipeline-origin-legend { width: 100%; margin-left: 0; padding-top: 7px; justify-content: flex-start; border-top: 1px solid #eceef2; }
  .pipeline-filter-popover, .state-filter-menu .pipeline-filter-popover { width: min(360px,calc(100vw - 66px)); grid-template-columns: 1fr; } .state-filter-menu .pipeline-filter-popover { right: 0; left: auto; } .state-filter-menu .pipeline-filter-popover > a:first-child { grid-column: auto; }
  .role-overview { grid-template-columns: 1fr; } .form-grid.two { grid-template-columns: 1fr; } .form-grid .span-two { grid-column: auto; }
  .security-main-card, .security-side-card { padding: 17px; } .security-status-head { align-items: flex-start; flex-wrap: wrap; } .security-status-head > .status { margin-left: 62px; } .security-action-form, .mfa-confirm-form { grid-template-columns: 1fr; } .mfa-confirm-form .modal-actions { justify-content: stretch; } .mfa-confirm-form .btn { width: 100%; } .totp-qr { width: min(260px,100%); height: auto; } .recovery-codes { grid-template-columns: 1fr; } .modal-security-reset { align-items: stretch; flex-direction: column; }
  .assignee-options { grid-template-columns: 1fr; }
  .state-map-panel .section-head { align-items: flex-start; flex-direction: column; } .state-map-content { padding: 0 12px 16px; } .state-map-visual { min-height: 390px; } .brazil-state-map { height: 350px; } .heat-legend { left: 8px; right: 8px; bottom: 8px; justify-content: center; } .heat-legend i { width: 13px; }
  .sla-panel, .detail-grid { grid-template-columns: 1fr; } .drawer-content { padding: 10px; } .drawer-head, .drawer-stage { padding-left: 15px; padding-right: 15px; }
  .funnel-page .funnel-panel .section-head { align-items: flex-start; flex-direction: column; } .funnel-page .funnel-legend { width: 100%; }
  .funnel-page .funnel-visual { padding: 0 12px 18px; } .funnel-page .funnel-columns { display: none; } .funnel-page .funnel-row { min-height: 76px; grid-template-columns: minmax(94px,.9fr) minmax(110px,1.25fr) 72px; gap: 8px; } .funnel-page .funnel-stage-label { gap: 7px; } .funnel-page .funnel-stage-label > span { display: none; } .funnel-page .funnel-stage-label b { font-size: 11px; white-space: normal; line-height: 1.3; } .funnel-page .funnel-stage-label small { display: none; } .funnel-page .funnel-segment-wrap { height: 66px; } .funnel-page .funnel-segment { width: clamp(82px,var(--funnel-width),100%); height: 62px; } .funnel-page .funnel-segment strong { font-size: 22px; } .funnel-page .funnel-segment span { display: none; } .funnel-page .funnel-lost { min-height: 49px; padding: 7px; gap: 6px; } .funnel-page .funnel-lost > i { width: 7px; height: 7px; } .funnel-page .funnel-lost strong { font-size: 16px; } .funnel-page .funnel-lost span { font-size: 9px; }
  .funnel-page .channel-chart { padding: 0 12px 18px; } .funnel-page .channel-row { grid-template-columns: minmax(88px,.8fr) minmax(90px,1.2fr) 62px; gap: 8px; } .funnel-page .channel-number small { display: none; }
  .funnel-page .loss-wide-content { padding: 0 12px 18px; grid-template-columns: 1fr; gap: 16px; } .funnel-page .loss-panel-wide .loss-note { grid-column: auto; }
  .login-visual { min-height: 490px; padding: 30px 24px; } .login-copy h1 { font-size: 38px; letter-spacing: -1.4px; } .login-card { padding: 25px 20px; }
  .wa-setup-banner { align-items: flex-start; flex-wrap: wrap; }
  .wa-setup-banner .btn { width: 100%; }
  .wa-stats { grid-template-columns: 1fr 1fr; }
  .wa-stats > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .wa-workspace { height: auto; min-height: 0; display: block; overflow: visible; }
  .wa-inbox { max-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wa-chat { min-height: 640px; }
  .wa-chat-head { align-items: flex-start; }
  .wa-attention { white-space: normal; text-align: right; }
  .wa-message-list { min-height: 410px; padding: 14px 10px; }
  .wa-message { max-width: 90%; }
  .wa-composer-tools { flex-wrap: wrap; }
  .wa-composer-tools select { flex: 1; }
  .wa-hour-row { grid-template-columns: 1fr 92px auto 92px; }
  .wa-quick-manager { grid-template-columns: 1fr; }
  .wa-quick-form { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
