.finops-help-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0;
    font-size: 14px;
    color: #333;
    color: var(--text-default, #333);
}

.finops-help-description {
    background: #E2E6F3;
    background: var(--bg-light-1, #E2E6F3);
    border-radius: 6px;
    padding: 12px 16px;
    font-style: italic;
    color: #444;
    color: var(--text-default, #444);
    line-height: 1.6;
}

.finops-help-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 16px;
    gap: 16px;
}

@media (max-width: 600px) {
    .finops-help-columns {
        grid-template-columns: 1fr;
    }
}

.finops-help-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finops-help-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--bg-light-1, #E2E6F3);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.finops-help-section-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #173192;
    color: var(--primary, #173192);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finops-help-icon {
    font-size: 15px;
    color: #173192;
    color: var(--primary, #173192);
}

.finops-help-icon-tip {
    color: #F29100;
    color: var(--emphasis, #F29100);
}

.finops-help-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finops-help-list li {
    line-height: 1.5;
    color: #444;
    color: var(--text-default, #444);
    font-size: 13px;
}

.finops-help-list-ordered {
    padding-left: 20px;
}

.finops-help-tips {
    background: #FFF8F0;
    border: 1px solid #F29100;
    border: 1px solid var(--emphasis, #F29100);
    border-radius: 6px;
    padding: 12px 16px;
}

.finops-help-tips .finops-help-section-header {
    border-bottom-color: #F2C980;
}

.finops-help-tips .finops-help-section-header h4 {
    color: #F29100;
    color: var(--emphasis, #F29100);
}

/* ═══════════ Billing Review GTM ═══════════ */

/* ── KPIs ── */
.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.kpi-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
}

/* ── Status cell ── */
.status-cell {
    display: flex;
    align-items: center;
}

/* ── Empty state ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

/* ── Detail modal ── */
.detail-modal {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-modal h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.detail-modal p {
    margin: 6px 0;
    font-size: 13px;
}

/* ── Diagnosis boxes ── */
.diagnosis-box {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
}

.diagnosis-box h4 {
    margin-bottom: 8px !important;
}

.diagnosis-box ul {
    margin: 0;
    padding-left: 20px;
}

.diagnosis-box li {
    margin-bottom: 4px;
    font-size: 13px;
}

.diagnosis-box p {
    margin: 0;
    font-size: 13px;
}

.diagnosis-warning {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
}

.diagnosis-warning h4 {
    color: #d46b08;
}

.diagnosis-error {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
}

.diagnosis-error h4 {
    color: #cf1322;
}

.diagnosis-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.diagnosis-info h4 {
    color: #0050b3;
}

.diagnosis-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
}

.diagnosis-success h4 {
    color: #389e0d;
}

/* ── Buttons ── */
.btn-primary {
    padding: 8px 16px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-default {
    padding: 8px 16px;
    background-color: #fff;
    color: #595959;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.2s;
}

.btn-default:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-default:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-action {
    padding: 8px 16px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-action:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-reprocess {
    background-color: #fa541c;
}

/* ── Form fields ── */
.field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.field-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.field-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.field-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.field-select:focus {
    outline: none;
    border-color: #1890ff;
}

/* ── File drop zone ── */
.file-drop-zone {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.file-drop-zone:hover {
    border-color: #1890ff;
}

.file-drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    color: #8c8c8c;
    font-size: 13px;
}

/* ── History table ── */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 10px 12px;
    background-color: #fafafa;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #333;
}

.history-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

.history-table tr:hover td {
    background-color: #f5f5f5;
}

/* ── Detail rate comparison table ── */
.detail-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.detail-rate-table th {
    text-align: left;
    padding: 8px 10px;
    background-color: #fafafa;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.detail-rate-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

/* ── Issue badge ── */
.issue-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.issue-badge-error {
    background-color: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.issue-badge-warning {
    background-color: #fffbe6;
    color: #ad8b00;
    border: 1px solid #ffe58f;
}

/* ── Spinner ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-animation {
    animation: spin 1s linear infinite;
}

.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-card-renderer__loading,
.db-card-renderer__error,
.db-card-renderer__no-data,
.db-card-renderer__unknown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    color: #8c8c8c;
    font-size: 13px;
    gap: 4px;
}

.db-card-renderer__error {
    color: #ff4d4f;
}

.db-card-renderer__error-icon {
    font-size: 24px;
}

.db-card-renderer__error-msg {
    font-size: 11px;
    color: #999;
    max-width: 200px;
    text-align: center;
}

/* ─── KPI (Advanced) ─────────────────────── */

/* ── Base KPI ──────────────────────────────── */
.db-kpi {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 16px 0;
    text-align: center;
    gap: 0;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.db-kpi[data-accent="top"] {
    border-left-color: transparent !important;
}
.db-kpi[data-accent="left"] {
    border-top-color: transparent !important;
}
.db-kpi[data-accent="none"] {
    border-top-color: transparent !important;
    border-left-color: transparent !important;
}

/* ── Body (centered content area) ─────────── */
.db-kpi__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1;
    min-height: 0;
    gap: 4px;
}

/* ── Footer (sparkline, pushed to bottom) ──── */
.db-kpi__footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 4px 0 8px;
    opacity: 0.85;
    margin: 0 -16px;
    width: calc(100% + 32px);
}

.db-kpi__footer svg {
    width: 100% !important;
    height: auto;
    max-height: 40px;
}

/* ── Header row (icon + label + period) ───── */
.db-kpi__header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}

.db-kpi__icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.db-kpi__label {
    font-size: 11px;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-kpi__period {
    font-size: 10px;
    color: #bfbfbf;
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ── Primary value ─────────────────────────── */
.db-kpi__primary {
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 700;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    line-height: 1.15;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Comparison row ────────────────────────── */
.db-kpi__comparison-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.db-kpi__trend {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* ── Chip (badge) for delta ────────────────── */
.db-kpi__chip {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.db-kpi__delta-abs {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.75;
    white-space: nowrap;
}

/* ── Secondary value ───────────────────────── */
.db-kpi__secondary {
    font-size: 11px;
    color: #8c8c8c;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-kpi__secondary-label {
    font-weight: 500;
}

.db-kpi__secondary-value {
    font-weight: 600;
    color: #595959;
}

/* ── Progress bar ──────────────────────────── */
.db-kpi__progress-track {
    position: relative;
    width: 80%;
    max-width: 200px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-top: 6px;
    overflow: visible;
}

.db-kpi__progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.db-kpi__progress-label {
    position: absolute;
    top: -14px;
    right: 0;
    font-size: 9px;
    color: #8c8c8c;
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   Layout: COMPACT
   ══════════════════════════════════════════════ */
.db-kpi--compact {
    padding: 8px 12px 0;
}

.db-kpi--compact .db-kpi__body {
    gap: 2px;
}

.db-kpi--compact .db-kpi__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.db-kpi--compact .db-kpi__primary {
    font-size: clamp(18px, 3vw, 28px);
}

.db-kpi--compact .db-kpi__label {
    font-size: 10px;
}

.db-kpi--compact .db-kpi__footer {
    margin: 0 -12px;
    width: calc(100% + 24px);
    padding: 2px 0 6px;
}

/* ══════════════════════════════════════════════
   Layout: STANDARD (default)
   ══════════════════════════════════════════════ */
.db-kpi--standard {
    /* default flex-column from base — no overrides needed */
    justify-content: flex-start;
}

/* ══════════════════════════════════════════════
   Layout: DETAILED
   ══════════════════════════════════════════════ */
.db-kpi--detailed {
    /* Vertical layout now (not side-by-side), centered value + footer sparkline */
    flex-direction: column;
    padding: 12px 16px 0;
}

/* ─── Table (RevoGrid — QuickSight Q-inspired) ──── */

.db-card-renderer__table-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    font-family: "Ubuntu", sans-serif;
}

.db-card-renderer__table-wrapper revo-grid {
    flex: 1 1;
    min-height: 0;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
}

/* ── Density modes ────────────────────────────── */
.db-tbl--compact revo-grid {
    --row-height: 26px;
    font-size: 12px;
}

.db-tbl--comfortable revo-grid {
    --row-height: 36px;
    font-size: 13px;
}

.db-tbl--spacious revo-grid {
    --row-height: 44px;
    font-size: 13px;
}

/* ── Vertical grid lines ──────────────────────── */
.db-tbl--vlines revo-grid revogr-data .rgCell {
    border-right: 1px solid #f0f0f0;
}

/* ── Toolbar ──────────────────────────────────── */

.db-tbl__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
    flex-shrink: 0;
    gap: 8px;
    min-height: 30px;
}

.db-tbl__toolbar-left,
.db-tbl__toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-tbl__row-count {
    font-size: 11px;
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
    white-space: nowrap;
}

.db-tbl__toolbar-btn {
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
    font-size: 14px;
    transition: all 0.15s;
    padding: 0;
}

.db-tbl__toolbar-btn:hover {
    border-color: #e0e0e0;
    background: #fff;
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

/* ── Column visibility menu ───────────────────── */

.db-tbl__col-menu-wrapper {
    position: relative;
}

.db-tbl__col-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    max-height: 280px;
    overflow-y: auto;
    min-width: 200px;
}

.db-tbl__col-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 12px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s;
}

.db-tbl__col-menu-item:hover {
    background: #f5f3ff;
}

.db-tbl__col-menu-item input[type="checkbox"] {
    accent-color: #471FCC;
    accent-color: var(--color-primary-blue, #471FCC);
    width: 14px;
    height: 14px;
}

/* ── Cell styling ─────────────────────────────── */

/* Numeric: right-aligned, tabular figures */
.db-tbl-cell--number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "tnum";
}

/* Identity cells: slightly bolder */
.db-tbl-cell--identity {
    font-weight: 500;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

/* Comparison cells: colored delta */
.db-tbl-cell--comparison {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Summary (totals) row */
.db-tbl-cell--summary {
    font-weight: 700 !important;
    background: #f0f0fa !important;
    border-top: 2px solid #d9d9e8 !important;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

/* "Outros" row */
.db-tbl-cell--others {
    background: #fafafa !important;
    font-style: italic;
    color: #8c8c8c;
}

/* Zebra striping */
.db-tbl-cell--zebra {
    background: #fafbfc;
}

/* ── Paging ───────────────────────────────────── */

.db-tbl__paging {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    flex-shrink: 0;
    gap: 8px;
}

.db-tbl__paging-info {
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
    white-space: nowrap;
}

.db-tbl__paging-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-tbl__paging-size {
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    height: 24px;
    padding: 0 4px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    outline: none;
}

.db-tbl__paging-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 12px;
    transition: all 0.15s;
    padding: 0;
}

.db-tbl__paging-btn:hover:not(:disabled) {
    border-color: #471FCC;
    border-color: var(--color-primary-blue, #471FCC);
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.db-tbl__paging-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.db-tbl__paging-page {
    padding: 0 6px;
    white-space: nowrap;
    font-weight: 500;
}

/* ─── Chart (ECharts) ─────────────────────── */

.db-card-renderer__chart-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

/* ─── Insight (AutoNarrative) ─────────────── */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes insightShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.db-insight {
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.75;
    color: #2d2d3a;
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Loading */
.db-insight__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #888;
    font-size: 12px;
}

.db-insight__loading-bar {
    width: 120px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e0e7ff 25%, #6366f1 50%, #e0e7ff 75%);
    background-size: 200% 100%;
    animation: insightShimmer 1.5s ease-in-out infinite;
}

/* Error */
.db-insight__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px 20px;
    color: #991b1b;
    font-size: 13px;
}

.db-insight__error p {
    margin: 0 0 8px;
}

.db-insight__error button {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
}

/* Idle / empty — botão de gerar insight */
.db-insight__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1;
    min-height: 120px;
}

.db-insight__empty button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.db-insight__empty button:hover {
    background: #4f46e5;
}

/* Body (narrative content) */
.db-insight__body {
    flex: 1 1;
    overflow: auto;
    min-height: 0;
}

.db-insight__body h2 {
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e1e2e;
}

.db-insight__body h3 {
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e2e;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
}

.db-insight__body h4 {
    margin: 10px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.db-insight__body p {
    margin: 4px 0;
    color: #444;
}

.db-insight__body li {
    margin: 2px 0;
    padding-left: 8px;
    list-style: disc inside;
    color: #444;
}

.db-insight__body strong {
    color: #1e1e2e;
}

.db-insight__body code {
    background: #f4f4f8;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #6366f1;
}

.db-insight__cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #6366f1;
    animation: blink 1s steps(2) infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
    border-radius: 1px;
}

/* Toolbar (sutil) */
.db-insight__toolbar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.db-insight__toolbar button {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.db-insight__toolbar button:hover {
    background: #f4f4f8;
    color: #6366f1;
    border-color: #c7c7d0;
}

/* Cache timestamp */
.db-insight__cache-ts {
    margin-left: auto;
    font-size: 10px;
    color: #aaa;
    align-self: center;
    white-space: nowrap;
}

/* History dropdown */
.db-insight__history {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafafa;
    max-height: 200px;
    overflow-y: auto;
    flex-shrink: 0;
}

.db-insight__history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    color: #555;
}

.db-insight__history-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    padding: 0 2px;
}

.db-insight__history-item {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 11px;
    transition: background 0.1s;
}

.db-insight__history-item:hover {
    background: #eef2ff;
}

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

.db-insight__history-item > span:first-child {
    flex-shrink: 0;
    color: #6366f1;
    font-weight: 500;
    min-width: 80px;
}

.db-insight__history-preview {
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Follow-up */
.db-insight__followup {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-shrink: 0;
}

.db-insight__followup input {
    flex: 1 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    background: #fafafa;
    transition: border-color 0.15s;
}

.db-insight__followup input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
}

.db-insight__followup button {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
}

.db-insight__followup button:disabled {
    opacity: 0.4;
    cursor: default;
}

.db-insight__followup button:not(:disabled):hover {
    opacity: 0.85;
}

/* ========================================
   CardGrid — react-grid-layout powered
   ======================================== */

.db-card-grid {
    width: 100%;
    min-height: 400px;
    position: relative;
    box-sizing: border-box;
}

/* Fit mode: preencher 100% do container pai, sem crescer */
.db-card-grid--fit {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.db-card-grid--fit .db-card-grid__rgl {
    height: 100% !important;
    min-height: 0;
}

/* Override RGL default to remove its padding (we control via containerPadding) */
.db-card-grid__rgl {
    min-height: 400px;
}

/* Empty state */
.db-card-grid__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #8c8c8c;
    text-align: center;
    padding: 48px 16px;
}

.db-card-grid__empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ---- Card item (inside RGL) ---- */
.db-card-grid__item {
    background: #fff;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    /* overflow must stay visible so resize handles at -3px aren't clipped */
    overflow: visible;
    cursor: pointer;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.db-card-grid__item:hover {
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.15);
    border-color: rgba(0, 0, 0, 0.08);
}

.db-card-grid__item--selected {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.35), 4px 4px 18px 0px rgba(58, 79, 135, 0.12);
}

/* Active drag state — lift card up, add prominent shadow */
.db-card-grid__item--dragging {
    z-index: 100;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(24, 144, 255, 0.3);
    opacity: 0.95;
    transform: scale(1.015);
    border-color: rgba(24, 144, 255, 0.25);
}

/* Active resize state — subtle border highlight */
.db-card-grid__item--resizing {
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(24, 144, 255, 0.3);
    border-color: rgba(24, 144, 255, 0.25);
}

/* Size overlay badge during resize */
.db-card-grid__size-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: "Ubuntu Mono", "SF Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ---- Header (draggable handle) ---- */
.db-card-grid__item-header {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    gap: 0.4rem;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    flex-shrink: 0;
    border-bottom: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    border-radius: 0.25rem 0.25rem 0 0;
    overflow: hidden;
}

.db-card-grid__item-header:hover {
    background: rgba(0, 0, 0, 0.015);
    border-bottom-color: #f0f0f0;
}

.db-card-grid__item-header:active {
    cursor: grabbing;
    background: rgba(0, 0, 0, 0.025);
}

.db-card-grid__item-title {
    flex: 1 1;
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #262626;
    color: var(--text-dark, #262626);
    line-height: 140%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-card-grid__item-health {
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.db-card-grid__item-health--healthy { color: #52c41a; }
.db-card-grid__item-health--adjusted { color: #faad14; }
.db-card-grid__item-health--broken { color: #ff4d4f; }
.db-card-grid__item-health--unknown { color: #bfbfbf; }

.db-card-grid__item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.db-card-grid__item:hover .db-card-grid__item-actions {
    opacity: 1;
}

.db-card-grid__item-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
}

.db-card-grid__item-actions button:hover {
    background: #f0f0f0;
    background: var(--background-light, #f0f0f0);
}

/* ---- Mini AI per-card ---- */

.db-card-grid__ai-btn--active {
    color: #471FCC !important;
    color: var(--color-primary-blue, #471FCC) !important;
    background: rgba(71, 31, 204, 0.08) !important;
}

.db-card-grid__ai-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fafbfc;
    background: var(--background-lightest, #fafbfc);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.db-card-grid__ai-input {
    flex: 1 1;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    outline: none;
    background: #fff;
    min-width: 0;
}

.db-card-grid__ai-input:focus {
    border-color: #471FCC;
    border-color: var(--color-primary-blue, #471FCC);
    box-shadow: 0 0 0 2px rgba(71, 31, 204, 0.12);
}

.db-card-grid__ai-input:disabled {
    opacity: 0.6;
    background: #f5f5f5;
}

.db-card-grid__ai-send,
.db-card-grid__ai-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 3px 5px;
    border-radius: 4px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    display: flex;
    align-items: center;
}

.db-card-grid__ai-send:hover {
    background: #471FCC;
    background: var(--color-primary-blue, #471FCC);
    color: #fff;
}

.db-card-grid__ai-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.db-card-grid__ai-close:hover {
    background: #f0f0f0;
}

/* ---- Body (chart / content area) ---- */
.db-card-grid__item-body {
    flex: 1 1;
    padding: 0 0.5rem 0.5rem;
    overflow: hidden;
    min-height: 0;
    border-radius: 0 0 0.25rem 0.25rem;
}

/* ---- RGL drag/resize visual feedback ---- */

/* Grid-level states: dim other cards during drag/resize */
.db-card-grid--dragging .db-card-grid__item:not(.db-card-grid__item--dragging),
.db-card-grid--resizing .db-card-grid__item:not(.db-card-grid__item--resizing) {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.react-grid-item.react-draggable-dragging {
    z-index: 100;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    opacity: 0.95;
    transition: none;
}

.react-grid-item.resizing {
    z-index: 100;
    transition: none;
}

/* Smooth transition when cards rearrange around a drag/resize */
.react-grid-item {
    transition: transform 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.react-grid-item.react-draggable-dragging,
.react-grid-item.resizing {
    transition: none;
}

/*
 * ── Full-border resize handles ──────────────────────────
 * All 8 handles (n, s, e, w, ne, nw, se, sw) span the
 * full edge/corner so any point on the border triggers resize.
 * No visible indicators — only the cursor changes.
 *
 * !important is required because:
 *  1) react-resizable/css/styles.css  centres handles as 20×20 at edge midpoints
 *  2) react-grid-layout/css/styles.css reinforces the same centering
 *  3) Webpack CSS extraction may reorder bundles unpredictably
 */

/* Base reset for all handles */
.react-grid-item > .react-resizable-handle {
    position: absolute !important;
    z-index: 10 !important;
    background: none !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

/* Show handles on hover (matching RGL but always-visible for ours) */
.react-grid-item:hover > .react-resizable-handle {
    opacity: 1 !important;
}

/* Hide the ::after pseudo-element (RGL's default grip icon) */
.react-grid-item > .react-resizable-handle::after {
    display: none !important;
}

/* ── Edge handles: 8px-thick zones spanning the full border ── */

/* North — full top edge */
.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
    top: -4px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    height: 8px !important;
    width: auto !important;
    margin: 0 !important;
    cursor: n-resize !important;
}

/* South — full bottom edge */
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
    bottom: -4px !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    height: 8px !important;
    width: auto !important;
    margin: 0 !important;
    cursor: s-resize !important;
}

/* West — full left edge */
.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
    left: -4px !important;
    top: 10px !important;
    bottom: 10px !important;
    right: auto !important;
    width: 8px !important;
    height: auto !important;
    margin: 0 !important;
    cursor: w-resize !important;
}

/* East — full right edge */
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
    right: -4px !important;
    top: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    width: 8px !important;
    height: auto !important;
    margin: 0 !important;
    cursor: e-resize !important;
}

/* ── Corner handles: 14×14 px squares at each corner ── */

/* North-West */
.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
    top: -4px !important;
    left: -4px !important;
    right: auto !important;
    bottom: auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: nw-resize !important;
}

/* North-East */
.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
    top: -4px !important;
    right: -4px !important;
    left: auto !important;
    bottom: auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: ne-resize !important;
}

/* South-West */
.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
    bottom: -4px !important;
    left: -4px !important;
    right: auto !important;
    top: auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: sw-resize !important;
}

/* South-East */
.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
    bottom: -4px !important;
    right: -4px !important;
    left: auto !important;
    top: auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: se-resize !important;
}

/* Placeholder (drop zone preview) */
.react-grid-placeholder {
    background: rgba(24, 144, 255, 0.08) !important;
    border: 2px dashed rgba(24, 144, 255, 0.35) !important;
    opacity: 1 !important;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

/* ─── Read-only mode (view mode) ─────────── */

.db-card-grid__item--readonly {
    cursor: default;
}

.db-card-grid__item-header--readonly {
    cursor: default;
    padding: 0.4rem 0.75rem;
}

.db-card-grid__item-header--readonly:active {
    cursor: default;
}

.db-card-grid__item--readonly .react-resizable-handle {
    display: none !important;
}

/* ---- Error Boundary Fallback ---- */

.db-card-grid__error-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 16px;
    text-align: center;
    background: #fffbe6;
    border-radius: 0 0 0.25rem 0.25rem;
}

.db-card-grid__error-title {
    font-size: 13px;
    font-weight: 600;
    color: #614700;
}

.db-card-grid__error-detail {
    font-size: 11px;
    color: #8c8c8c;
    max-width: 260px;
    word-break: break-word;
}

.db-card-grid__error-retry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 12px;
    font-size: 11px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #595959;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.db-card-grid__error-retry:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* ---- Loading Skeleton ---- */

.db-card-grid__skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    height: 100%;
}

.db-card-grid__skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: db-skeleton-shimmer 1.5s infinite ease-in-out;
}

.db-card-grid__skeleton-line--short { width: 40%; }
.db-card-grid__skeleton-line--medium { width: 65%; }
.db-card-grid__skeleton-line--long { width: 90%; }
.db-card-grid__skeleton-line--full { width: 100%; height: 60%; border-radius: 6px; }

@keyframes db-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.db-card-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    font-family: "Ubuntu", sans-serif;
    color: #232f3e;
}

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

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

.db-card-editor__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-card-editor__back-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

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

.db-card-editor__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-card-editor__icon-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

/* ─── Body ────────────────────────────────── */

.db-card-editor__body {
    flex: 1 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

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

/* ─── Field Validation Warning ────────────── */

.db-card-editor__field-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    background: #fdf3f0;
    border: 1px solid #d13212;
    border-radius: 6px;
    font-size: 11px;
    color: #d13212;
    line-height: 1.4;
}

.db-card-editor__field-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d13212;
}

/* ─── Field (label + input) ───────────────── */

.db-card-editor__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-card-editor__field label {
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #232f3e;
    line-height: 1rem;
}

.db-card-editor__field input:not([type="checkbox"]):not([type="radio"]),
.db-card-editor__field select {
    width: 100%;
    font-family: "Ubuntu", sans-serif;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    font-size: 12px;
    background-color: #fff;
    color: #232f3e;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.db-card-editor__field input[type="checkbox"],
.db-card-editor__field input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #232f3e;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.db-card-editor__field input:not([type="checkbox"]):not([type="radio"]):hover,
.db-card-editor__field select:hover {
    background-color: #f7fafa;
}

.db-card-editor__field input:not([type="checkbox"]):not([type="radio"]):focus,
.db-card-editor__field select:focus {
    border-color: #232f3e;
    box-shadow: 0 0 0 2px rgba(35, 47, 62, 0.1);
}

.db-card-editor__hint {
    font-size: 11px;
    color: #687078;
    margin-top: 1px;
}

/* ─── Sections (Dimensões, Medidas, etc.) ─── */

.db-card-editor__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f7fafa;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 10px;
}

.db-card-editor__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ebed;
}

.db-card-editor__section-header span {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #232f3e;
}

.db-card-editor__section-header button {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #232f3e;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.db-card-editor__section-header button:hover {
    background: rgba(35, 47, 62, 0.08);
}

.db-card-editor__section-header button:disabled {
    color: #687078;
    cursor: not-allowed;
}

/* ─── Row (itens inline dentro de section) ─── */

.db-card-editor__row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.db-card-editor__row select,
.db-card-editor__row input {
    flex: 1 1;
    min-width: 0;
    width: 0;
    font-family: "Ubuntu", sans-serif;
    height: 28px;
    padding: 2px 6px;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    font-size: 11px;
    background-color: #fff;
    color: #232f3e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.db-card-editor__row select:hover,
.db-card-editor__row input:hover {
    background-color: #f7fafa;
}

.db-card-editor__row select:focus,
.db-card-editor__row input:focus {
    border-color: #232f3e;
    box-shadow: 0 0 0 2px rgba(35, 47, 62, 0.1);
}

.db-card-editor__remove {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #687078;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.db-card-editor__remove:hover {
    color: #d13212;
    background: #fdf3f0;
    border-color: #fdf3f0;
}

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

.db-card-editor__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #e9ebed;
    background: #fff;
}

.db-card-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.db-card-editor__btn:focus {
    outline: 2px solid #232f3e;
    outline-offset: 2px;
}

.db-card-editor__btn--primary {
    background-color: #232f3e;
    color: #fff;
}

.db-card-editor__btn--primary:hover:not(:disabled) {
    background-color: #37475a;
}

.db-card-editor__btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.db-card-editor__btn--secondary {
    background-color: #e9ebed;
    color: #232f3e;
}

.db-card-editor__btn--secondary:hover:not(:disabled) {
    background-color: #d5d9d9;
}

/* ─── Filter-specific styles ─────────────────────── */

.db-card-editor__row--filter {
    flex-wrap: wrap;
}

.db-card-editor__operator-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 6px;
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #232f3e;
    border-radius: 4px;
    background: rgba(35, 47, 62, 0.08);
    color: #232f3e;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.15s;
}

.db-card-editor__operator-toggle:hover {
    background: #232f3e;
    color: #fff;
}

.db-card-editor__having-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #687078;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.db-card-editor__having-toggle:hover {
    background: #f2f3f3;
}

.db-card-editor__having-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

/* ─── Specific field sizing ──────────────────────── */

.db-card-editor__alias-input {
    max-width: 64px;
    flex: 0 0 64px !important;
}

.db-card-editor__filter-value {
    flex: 1 1 auto !important;
    min-width: 60px;
}

/* ─── Select custom arrow (match system pattern) ─── */

.db-card-editor__field select,
.db-card-editor__row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%236B6F7D%27 d=%27M6 8L1 3h10z%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.75rem;
    text-overflow: ellipsis;
}

/* ─── Visual Type icon grid ──────────────────────── */

.db-card-editor__vistype-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 4px;
    gap: 4px;
}

.db-card-editor__vistype-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.db-card-editor__vistype-btn:hover {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.04);
}

.db-card-editor__vistype-btn--active {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.08);
    box-shadow: 0 0 0 1px #232f3e;
}

.db-card-editor__vistype-btn--active .db-card-editor__vistype-icon {
    color: #232f3e;
}

.db-card-editor__vistype-btn--active .db-card-editor__vistype-label {
    color: #232f3e;
    font-weight: 600;
}

.db-card-editor__vistype-icon {
    font-size: 18px;
    color: #232f3e;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.db-card-editor__vistype-label {
    font-family: "Ubuntu", sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #687078;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ─── Checkbox + Hint (Outros) ────────────────────── */

.db-card-editor__field--checkbox {
    flex-direction: column;
    gap: 2px;
}

.db-card-editor__checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #232f3e;
    cursor: pointer;
}

.db-card-editor__checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #232f3e;
    cursor: pointer;
}

.db-card-editor__hint {
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #687078;
    line-height: 1.3;
    padding-left: 20px;
}

/* ─── KPI Config Section ──────────────────────────── */

.db-card-editor__section--kpi {
    background: #f7fafa;
    border: 1px solid #e9ebed;
    border-radius: 6px;
    padding: 10px;
}

.db-card-editor__section--kpi .db-card-editor__section-header span {
    color: #232f3e;
}

.db-card-editor__kpi-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.db-card-editor__kpi-group label {
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #687078;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.db-card-editor__kpi-group select,
.db-card-editor__kpi-group input:not([type="checkbox"]):not([type="radio"]) {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    color: #232f3e;
    background: #fff;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.db-card-editor__kpi-group input[type="checkbox"],
.db-card-editor__kpi-group input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #232f3e;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.db-card-editor__kpi-group select:hover,
.db-card-editor__kpi-group input:not([type="checkbox"]):not([type="radio"]):hover {
    border-color: #aab7b8;
}

.db-card-editor__kpi-group select:focus,
.db-card-editor__kpi-group input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #232f3e;
    outline: none;
}

.db-card-editor__kpi-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%236B6F7D%27 d=%27M6 8L1 3h10z%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.75rem;
}

/* Row (side by side) */
.db-card-editor__kpi-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.db-card-editor__kpi-group--half {
    flex: 1 1 50%;
    min-width: 0;
}

.db-card-editor__kpi-group--quarter {
    flex: 0 0 25%;
    min-width: 0;
}

/* Pills (layout, sparkline type, accent position) */
.db-card-editor__kpi-pills {
    display: flex;
    gap: 4px;
}

.db-card-editor__kpi-pill {
    flex: 1 1;
    padding: 4px 6px;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    background: #fff;
    color: #232f3e;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    white-space: nowrap;
}

.db-card-editor__kpi-pill:hover {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.04);
}

.db-card-editor__kpi-pill--active {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.1);
    color: #232f3e;
    font-weight: 600;
}

/* Toggle checkboxes row */
.db-card-editor__kpi-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.db-card-editor__kpi-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #232f3e;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.db-card-editor__kpi-toggle:hover {
    background: rgba(35, 47, 62, 0.04);
}

.db-card-editor__kpi-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #232f3e;
    cursor: pointer;
    margin: 0;
}

/* ─── Table Config: Chip List (frozen/hidden cols) ──── */

.db-card-editor__chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.db-card-editor__chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e9ebed;
    border-radius: 12px;
    background: #fff;
    color: #232f3e;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.db-card-editor__chip:hover {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.04);
}

.db-card-editor__chip--active {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.1);
    color: #232f3e;
    font-weight: 600;
}

.db-card-editor__chip--danger {
    border-color: #d13212;
    background: rgba(239, 68, 68, 0.08);
    color: #d13212;
    font-weight: 600;
    text-decoration: line-through;
}

/* ─── Table Config: Inline Add Button ───────────────── */

.db-card-editor__inline-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    background: #fff;
    color: #232f3e;
    cursor: pointer;
    font-size: 12px;
    vertical-align: middle;
    transition: all 0.15s;
}

.db-card-editor__inline-add:hover {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.06);
}

/* ─── Table Config: Conditional Rules ───────────────── */

.db-card-editor__cond-rule {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    flex-wrap: wrap;
}

.db-card-editor__cond-field {
    flex: 0 0 110px;
    height: 26px;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 0 4px;
    color: #232f3e;
    background: #fff;
}

.db-card-editor__cond-op {
    flex: 0 0 50px;
    height: 26px;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 0 2px;
    text-align: center;
    color: #232f3e;
    background: #fff;
}

.db-card-editor__cond-val {
    flex: 0 0 70px;
    height: 26px;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 0 4px;
    color: #232f3e;
    background: #fff;
}

.db-card-editor__cond-color {
    flex: 0 0 120px;
    height: 26px;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 0 4px;
    color: #232f3e;
    background: #fff;
}

.db-card-editor__cond-row-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #687078;
    cursor: pointer;
    white-space: nowrap;
}

.db-card-editor__cond-row-toggle input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: #232f3e;
    cursor: pointer;
    margin: 0;
}

.db-card-editor__cond-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #d13212;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.db-card-editor__cond-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ─── Conditional Rule Block (2-row layout) ─────── */

.db-card-editor__cond-rule-block {
    border: 1px solid #e9ebed;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #f7fafa;
}

.db-card-editor__cond-label {
    font-family: "Ubuntu", sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #232f3e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 0 0 24px;
    text-align: center;
}

.db-card-editor__cond-then {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0 0;
    flex-wrap: wrap;
}

.db-card-editor__cond-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    background: #fff;
    color: #687078;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
}

.db-card-editor__cond-mode:hover {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.06);
}

.db-card-editor__cond-mode--active {
    border-color: #232f3e;
    background: rgba(35, 47, 62, 0.1);
    color: #232f3e;
}

.db-card-editor__cond-target {
    flex: 1 1 120px;
    height: 26px;
    font-size: 11px;
    font-family: "Ubuntu", sans-serif;
    border: 1px solid #e9ebed;
    border-radius: 4px;
    padding: 0 4px;
    color: #232f3e;
    background: #fff;
    min-width: 0;
}

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

.db-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    font-family: "Ubuntu", sans-serif;
    color: #232f3e;
}

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

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

.db-chat__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-chat__back-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

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

.db-chat__header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-chat__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-chat__icon-btn:hover {
    background: #f2f3f3;
    color: #232f3e;
}

.db-chat__icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.db-chat__stage-badge {
    font-size: 11px;
    font-weight: 500;
    color: #545b64;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
}

/* ─── Messages Area ───────────────────────── */

.db-chat__messages {
    flex: 1 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

.db-chat__message {
    max-width: 100%;
}

.db-chat__message--user {
    padding-left: 24px;
}

.db-chat__message--system {
    padding-right: 24px;
}

.db-chat__message-content {
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.db-chat__message--user .db-chat__message-content {
    background: #f2f3f3;
    color: #232f3e;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e9ebed;
}

.db-chat__message--assistant .db-chat__message-content {
    color: #232f3e;
    padding: 4px 0;
}

.db-chat__message--system .db-chat__message-content {
    color: #687078;
    font-size: 12px;
    padding: 4px 0;
}

.db-chat__typing {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #687078;
    font-size: 13px;
}

.db-chat__spinner {
    animation: db-spin 0.8s linear infinite;
    font-size: 14px;
}

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

/* ─── Chip (card/visual item row) ──────── */

.db-chat__chip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e9ebed;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    color: #232f3e;
    transition: background 0.1s;
}

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

.db-chat__chip--pending {
    opacity: 0.5;
}

.db-chat__chip--generating {
    border-color: #d5d9d9;
}

.db-chat__chip--error {
    border-color: #d13212;
    opacity: 0.7;
}

.db-chat__chip-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #545b64;
    flex-shrink: 0;
    margin-top: 1px;
}

.db-chat__chip--done .db-chat__chip-icon {
    color: #232f3e;
}

.db-chat__chip-body {
    flex: 1 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.db-chat__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.db-chat__chip-desc {
    font-size: 11px;
    font-weight: 400;
    color: #687078;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.db-chat__chip-action {
    width: 22px;
    height: 22px;
    border: 1px solid #d5d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #545b64;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.1s;
}

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

.db-chat__chip-error {
    font-size: 14px;
    color: #d13212;
    flex-shrink: 0;
}

/* ─── Plan (section-based layout) ────────── */

.db-chat__plan {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-chat__section-label {
    font-size: 12px;
    font-weight: 600;
    color: #232f3e;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-chat__section-count {
    font-size: 10px;
    font-weight: 500;
    color: #687078;
    background: #f2f3f3;
    padding: 1px 7px;
    border-radius: 10px;
}

.db-chat__plan-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-chat__add-all-btn {
    align-self: flex-start;
    margin-top: 6px;
    background: #232f3e;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Ubuntu", sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}

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

/* ─── Input Area ─────────────────────────── */

.db-chat__input-area {
    padding: 16px;
    border-top: 1px solid #e9ebed;
    background: #fff;
    flex-shrink: 0;
}

.db-chat__input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 8px;
}

.db-chat__input-wrapper {
    border: 1px solid #aab7b8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s;
}

.db-chat__input-wrapper:focus-within {
    border-color: #232f3e;
}

.db-chat__input-wrapper textarea {
    display: block;
    width: 100%;
    resize: none;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    font-family: "Ubuntu", sans-serif;
    outline: none;
    background: transparent;
    color: #232f3e;
    line-height: 1.5;
    min-height: 48px;
    max-height: 120px;
    box-sizing: border-box;
}

.db-chat__input-wrapper textarea::placeholder {
    color: #aab7b8;
}

.db-chat__input-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

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

.db-chat__send-btn:hover:not(:disabled) {
    background: #37475a;
}

.db-chat__send-btn:disabled {
    background: #d5d9d9;
    color: #aab7b8;
    cursor: not-allowed;
}

/* ========================================
   VersionHistory — Histórico de versões
   ======================================== */

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

@keyframes db-versions-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

.db-versions__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.db-versions__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #262626;
}

.db-versions__close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.db-versions__close-btn:hover {
    background: #ff4d4f;
    color: #fff;
}

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

.db-versions__content {
    flex: 1 1;
    overflow-y: auto;
    padding: 0;
}

/* Loading */
.db-versions__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    color: #8c8c8c;
    font-size: 14px;
}

.db-versions__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e8e8e8;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: db-versions-spin 0.8s linear infinite;
}

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

/* Error */
.db-versions__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    color: #ff4d4f;
    font-size: 14px;
    text-align: center;
}

.db-versions__retry-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #595959;
    font-size: 13px;
    cursor: pointer;
}

.db-versions__retry-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* Empty */
.db-versions__empty {
    text-align: center;
    padding: 48px 20px;
    color: #8c8c8c;
}

.db-versions__empty-hint {
    font-size: 12px;
    color: #bfbfbf;
    margin-top: 4px;
}

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

.db-versions__list {
    display: flex;
    flex-direction: column;
}

.db-versions__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    gap: 12px;
}

.db-versions__item:hover {
    background: #fafafa;
}

.db-versions__item--current {
    background: #f0f7ff;
    border-left: 3px solid #1890ff;
}

.db-versions__item--current:hover {
    background: #e6f0fa;
}

.db-versions__item-main {
    flex: 1 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-versions__item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-versions__item-version {
    font-size: 14px;
    font-weight: 700;
    color: #262626;
    font-family: monospace;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 4px;
}

.db-versions__item--current .db-versions__item-version {
    background: #1890ff;
    color: #fff;
}

.db-versions__item-status {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.db-versions__item-status--draft {
    background: #fff7e6;
    color: #fa8c16;
}

.db-versions__item-status--published {
    background: #f6ffed;
    color: #52c41a;
}

.db-versions__current-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.db-versions__item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #8c8c8c;
}

.db-versions__item-date {
    color: #bfbfbf;
}

.db-versions__item-title-text {
    font-size: 12px;
    color: #595959;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.db-versions__item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-versions__action-btn {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    color: #595959;
    white-space: nowrap;
}

.db-versions__action-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.db-versions__action-btn--restore {
    border-color: #1890ff;
    color: #1890ff;
    font-weight: 500;
}

.db-versions__action-btn--restore:hover {
    background: #1890ff;
    color: #fff;
}

.db-versions__action-btn--confirm {
    background: #52c41a;
    color: #fff;
    border-color: #52c41a;
}

.db-versions__action-btn--confirm:hover {
    background: #73d13d;
    border-color: #73d13d;
}

.db-versions__action-btn--confirm:disabled {
    background: #d9f7be;
    border-color: #d9f7be;
    cursor: not-allowed;
}

.db-versions__confirm-restore {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #595959;
    font-weight: 500;
}

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

.db-versions__footer {
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.db-versions__footer-hint {
    font-size: 11px;
    color: #bfbfbf;
}

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

@media (max-width: 768px) {
    .db-versions {
        width: 100vw;
        max-width: 100vw;
    }

    .db-versions__item-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
}

.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;
}

/* ─── 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;
}

