.lc-selectLabel {
  position: static;
  width: 55px;
  height: 18px;
  left: 0px;
  top: 0px;
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  line-height: 150%;
  font-size: 12px;
  line-height: 150%;
  margin: 3px 0px;
}

.lc-fixedFilter {
  align-items: center;
  margin-left: 15px;
  margin-top: 10px;
  width: 100%;
  top: 110px;
  background-color: #fafafa;
  overflow-x: hidden;
  overflow-y: auto;
  display: inline-block;
  position: fixed;
  z-index: 99;
}

.echarts-for-react text[fill="#2B304F"] {
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.05em;
}

.lc-title {
/*  display: table-cell;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #8b90a3;
  width: 300px;*/
}

.lc-segment-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-height: 27px;
}

.tooltip-custom {
  max-width: 300px;
  word-break: break-word;
}
.lc-group-header-segments-button-icon {
  width: 12px;
  /* height: 10px; */
  left: 1px;
  top: 0px;
  /* Textos / Claros */

  background: #8b90a3;
  transform: matrix(0, 1, 1, 0, 0, 0);
}

.lc-group-header-segments .chevron-visible {
  transform: rotate(0deg);
}

.lc-group-header-segments .chevron-nonvisible {
  transform: rotate(-90deg);
}

.bodyGroup.collapsed {
  max-height: 0;
  display: none;
  min-width: calc(30vw);
}

.bodyGroup>div {
  width: calc(100% - 4px);
}

.bodyGroup.scroll>div {
  width: calc(100% + 4px);
}

.bodyGroup.scroll>div::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background-color: #eee;
  z-index: 99;
}

.bodyGroup.scroll>div::-webkit-scrollbar-thumb {
  background: #cccccf;
  border-radius: 0.25rem;
}

.bodyGroup.scroll>div::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

.bodyGroup.scroll>div::-webkit-scrollbar-track {
  border-radius: 0.25rem;
}

.bodyGroup {
  min-width: calc(30vw);
}

.lc-group-header-segments-button {
  /* Frame 129 */

  width: 12px;
  left: 4px;
  top: 9px;
  /* Inside auto layout */

  flex: none;
  order: 0;
  flex-grow: 0;
  margin: 0px 6px;
  display: flex;
  align-content: center;
  justify-content: center;
}

.lc-group-header-segments-money {
  /* 0,00 */
  width: 100px;
  height: 22px;
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 160%;
  /* or 22px */

  text-align: right;
  letter-spacing: -0.05em;
  font-feature-settings: "tnum" on, "lnum" on;
  /* Textos / Padr�o */

  color: #525252;
  /* Inside auto layout */

  flex: none;
  order: 2;
  flex-grow: 0;
  margin: 0px 6px;
}

.lc-group-header-segments-title {
  /* Texto */
  max-width: calc(100vw - 620px);
  height: 22px;
  /* Texto/Padr�o - 14pt/Semibold */

  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 160%;
  /* or 22px */
  /* Link */

  color: var(--text-default);
  /* Inside auto layout */

  margin: 0px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-group-header-segments {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px 4px;
  width: 100%;
  height: 30px;
  background: #ebebeb;
  border-radius: 6px;
  margin: 4px 0px;
}

.lc-segment-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-height: 27px;
}

.lc-title {
  display: table-cell;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #8b90a3;
}

.lc-segment-title-filter {
  display: "flex";
  justify-content: "flex-end";
}

.lc-group-body {
  width: 65%;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  align-items: center;
  top: 75px;
}

.lc-group-row {
  /* Item de piv� */
  padding-left: 32px;
  padding-right: 3px;
  border-bottom: 1px solid #ebeff8;
  width: 100%;
  height: 30px;
  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 0;
  max-width: inherit;
}

.lc-group-row-inner-text {
  max-width: calc(100vw - 600px);
  height: 22px;
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: var(--text-default);
  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 0px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-group-row-inner-text-sidemodal {
  max-width: calc(100vw - 600px);
  height: 22px;
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: var(--text-default);
  flex: none;
  order: 1;
  flex-grow: 0;
  margin: 0px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-group-row-inner-money {
  width: 100px;
  height: 22px;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  text-align: right;
  font-feature-settings: "tnum" on, "lnum" on;
  color: var(--text-default);
  margin: 0 2px 0 10px;
}

.lc-group-row-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  width: inherit;
  height: 22px;
  justify-content: space-between;
}

.lc-group-row-inner>.row>.lc-iconlink.small {
  visibility: hidden;
}

.lc-group-row-inner:hover>.row>.lc-iconlink.small {
  visibility: visible;
}

.lc-group-header-segments>.row>.lc-iconlink.small {
  visibility: hidden;
}

.lc-group-header-segments:hover>.row>.lc-iconlink.small {
  visibility: visible;
}

.lc-selectLabel {
  position: static;
  height: 18px;
  left: 0px;
  top: 0px;
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  line-height: 150%;
  font-size: 12px;
  line-height: 150%;
  margin: 3px 0px;
}

.lc-group-row>.lc-group-row-inner>.pp-tooltip {
  width: 80%;
  overflow: hidden;
}

.finops-row {
  padding: 4px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-left: 12px;
}

.finops-row:nth-child(odd) {
  background-color: #fdfdfd;
}

.striped .finops-row:nth-child(odd) {
  background-color: #fdfdfd;
}

.finops-row.link {
  margin-left: 0;

}

.finops-row .ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
}

.finops-row:hover {
  background-color: #ddd !important;
}
.db-builder {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px); /* topbar(44px) + toolbar(36px) */
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

/* ─── Toolbar Row (dentro da barra do Layout) ─ */

.db-builder__toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.db-builder__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    color: var(--text-default, #262626);
}

/* ─── Main Area ───────────────────────────── */

.db-builder__main {
    flex: 1 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.db-builder__canvas {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

/* Fit mode: cards devem caber na viewport, sem scroll vertical */
.db-builder__canvas--fit {
    overflow-y: hidden;
}

.db-builder__side-panel {
    width: 360px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e8e8e8;
    background: #fff;
}

/* ─── Card Editor — Side Panel ────────────── */

.db-builder__editor-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1099;
    animation: db-sidepanel-backdrop-enter 0.2s ease-out;
}

.db-builder__editor-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1100;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: db-sidepanel-slide-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.db-builder__editor-overlay .db-card-editor {
    border: none;
    border-radius: 0;
    height: 100%;
    max-height: none;
    overflow-y: auto;
}

/* ─── AI Chat — Side Panel ────────────────── */

.db-builder__chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: db-sidepanel-backdrop-enter 0.2s ease-out;
}

.db-builder__chat-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1000;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: db-sidepanel-slide-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.db-builder__chat-overlay .db-chat {
    border-left: none;
    border-radius: 0;
    height: 100%;
}

.db-builder__chat-overlay .db-chat__header {
    cursor: default;
    border-radius: 0;
    background: #fff;
}

/* ─── Responsive ──────────────────────────── */

@media (max-width: 1024px) {
    .db-builder__editor-overlay {
        width: 380px;
    }

    .db-builder__chat-overlay {
        width: 360px;
    }
}

@media (max-width: 768px) {
    .db-builder__toolbar-row {
        gap: 4px;
    }

    .db-builder__main {
        flex-direction: column;
    }

    .db-builder__editor-overlay {
        width: 100vw;
        max-width: 100vw;
    }

    .db-builder__chat-overlay {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ─── Title Area (editable) ───────────────── */

.db-builder__title-area {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.db-builder__title--editable {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.db-builder__title--editable:hover {
    background: #f0f0f0;
    background: var(--background-light, #f0f0f0);
}

.db-builder__title-input {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    color: var(--text-default, #262626);
    border: 1px solid #1890ff;
    border-radius: 4px;
    padding: 2px 6px;
    outline: none;
    width: 200px;
    background: #fff;
    height: 24px;
}

.db-builder__dirty-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #faad14;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    animation: dirty-pulse 1.5s ease-in-out infinite;
}

@keyframes dirty-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── View Mode Overrides ─────────────────── */

.db-builder--view-mode .db-builder__toolbar-row {
    opacity: 0.7;
}

/* ─── Status & Version Badges ─────────────── */

.db-builder__status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.db-builder__status-badge--draft {
    background: #fff7e6;
    color: #fa8c16;
}

.db-builder__status-badge--published {
    background: #f6ffed;
    color: #52c41a;
}

.db-builder__version-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #8c8c8c;
    font-weight: 600;
    font-family: monospace;
}

.db-builder__history-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #e6f4ff;
    color: #1677ff;
    font-weight: 600;
    font-family: monospace;
    cursor: help;
}

.db-builder__history-badge svg {
    font-size: 12px;
}

/* ─── Dashboard Manager Side Panel ────────── */

/* ═══════════════════════════════════════════════════
   DashboardManager — QuickSight-inspired Clean Design
   ═══════════════════════════════════════════════════ */

.db-manager-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2000;
    animation: db-mgr-fade-in 0.15s ease-out;
}

@keyframes db-mgr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.db-manager {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2001;
    font-family: "Ubuntu", sans-serif;
    color: #232f3e;
    animation: db-mgr-slide-in 0.2s ease-out;
}

@keyframes db-mgr-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ─── Header ──────────────────────────────── */

.db-manager__header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ebed;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    flex-shrink: 0;
}

.db-manager__back-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #545b64;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.db-manager__back-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

.db-manager__header-title {
    font-weight: 600;
    font-size: 14px;
    color: #232f3e;
    flex: 1 1;
}

.db-manager__header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-manager__new-btn {
    padding: 5px 14px;
    border: 1px solid #232f3e;
    border-radius: 6px;
    background: #232f3e;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: "Ubuntu", sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.db-manager__new-btn:hover {
    background: #37475a;
}

.db-manager__icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #545b64;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-manager__icon-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

/* ─── Content ─────────────────────────────── */

.db-manager__content {
    flex: 1 1;
    overflow-y: auto;
    min-height: 0;
}

.db-manager__content::-webkit-scrollbar {
    width: 4px;
}

.db-manager__content::-webkit-scrollbar-track {
    background: transparent;
}

.db-manager__content::-webkit-scrollbar-thumb {
    background: #d5d9d9;
    border-radius: 4px;
}

/* ─── Filter Tabs ─────────────────────────── */

.db-manager__filter-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid #e9ebed;
    background: #fff;
}

.db-manager__filter-tab {
    flex: 1 1;
    padding: 9px 4px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    font-family: "Ubuntu", sans-serif;
    color: #687078;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.db-manager__filter-tab:hover {
    color: #232f3e;
    background: #f7fafa;
}

.db-manager__filter-tab--active {
    color: #232f3e;
    border-bottom-color: #232f3e;
}

.db-manager__filter-tabs--ownership {
    border-bottom: 2px solid #e9ebed;
}

.db-manager__filter-tabs--ownership .db-manager__filter-tab--active {
    color: #232f3e;
    border-bottom-color: #232f3e;
}

/* ─── Loading / Error / Empty ─────────────── */

.db-manager__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 20px;
    color: #687078;
    font-size: 13px;
}

.db-manager__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e9ebed;
    border-top-color: #232f3e;
    border-radius: 50%;
    animation: db-mgr-spin 0.7s linear infinite;
}

@keyframes db-mgr-spin {
    to { transform: rotate(360deg); }
}

.db-manager__error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    color: #d13212;
    font-size: 13px;
}

.db-manager__retry-btn {
    padding: 4px 12px;
    border: 1px solid #d13212;
    border-radius: 4px;
    background: #fff;
    color: #d13212;
    cursor: pointer;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
}

.db-manager__retry-btn:hover {
    background: #fdf3f0;
}

.db-manager__empty {
    text-align: center;
    padding: 48px 32px;
    color: #687078;
}

.db-manager__empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: #aab7b8;
}

.db-manager__empty-hint {
    font-size: 12px;
    color: #aab7b8;
    margin-top: 8px;
    line-height: 1.5;
}

/* ─── Dashboard List ──────────────────────── */

.db-manager__list {
    padding: 4px 0;
}

.db-manager__item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f2f3f3;
    transition: background 0.12s;
}

.db-manager__item:last-child {
    border-bottom: none;
}

.db-manager__item:hover {
    background: #f7fafa;
}

.db-manager__item--current {
    background: #f2f3f3;
}

.db-manager__item--current:hover {
    background: #e9ebed;
}

.db-manager__item-main {
    flex: 1 1;
    min-width: 0;
    padding: 10px 16px;
    cursor: pointer;
}

.db-manager__item-title {
    font-size: 13px;
    font-weight: 600;
    color: #232f3e;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.db-manager__item-meta {
    display: flex;
    gap: 10px;
    margin-top: 3px;
    font-size: 11px;
    color: #687078;
}

.db-manager__item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.db-manager__item-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #687078;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-manager__item-tags {
    display: flex;
    gap: 4px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.db-manager__tag {
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #f2f3f3;
    color: #545b64;
    border: 1px solid #e9ebed;
}

/* ─── Badges ──────────────────────────────── */

.db-manager__status-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.db-manager__status-badge--draft {
    background: #f2f3f3;
    color: #687078;
}

.db-manager__status-badge--published {
    background: #e9f5ec;
    color: #1d8102;
}

.db-manager__version-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    background: #f2f3f3;
    color: #687078;
    font-weight: 600;
    font-family: "Ubuntu Mono", monospace;
}

.db-manager__visibility-badge {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 6px;
    font-weight: 500;
}

.db-manager__visibility-badge--group {
    background: #f2f3f3;
    color: #545b64;
}

.db-manager__visibility-badge--private {
    background: #f2f3f3;
    color: #aab7b8;
}

.db-manager__current-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e9ebed;
    color: #232f3e;
    font-weight: 500;
}

.db-manager__draft-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #f2f3f3;
    color: #687078;
    font-weight: 500;
}

/* ─── Item Actions ────────────────────────── */

.db-manager__item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.db-manager__action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #545b64;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.db-manager__action-btn:hover {
    border-color: #aab7b8;
    background: #f2f3f3;
    color: #232f3e;
}

.db-manager__action-btn--open:hover {
    border-color: #232f3e;
}

.db-manager__action-btn--danger:hover {
    border-color: #d13212;
    background: #fdf3f0;
    color: #d13212;
}

.db-manager__action-btn--shared {
    color: #545b64;
}

.db-manager__confirm-delete {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #d13212;
    font-weight: 500;
}

/* ─── Footer ──────────────────────────────── */

.db-manager__footer {
    padding: 10px 16px;
    border-top: 1px solid #e9ebed;
    background: #fff;
}

.db-manager__footer-hint {
    font-size: 11px;
    color: #687078;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

