/* DOSS Chatbot C03 — bairros inteligentes */
.doss-c03-msg {
  display: flex;
  margin: 10px 0;
  width: 100%;
}

.doss-c03-msg-user {
  justify-content: flex-end;
}

.doss-c03-msg-bot {
  justify-content: flex-start;
}

.doss-c03-bubble {
  max-width: min(82%, 640px);
  border-radius: 16px;
  padding: 11px 14px;
  line-height: 1.45;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.doss-c03-msg-user .doss-c03-bubble {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #ea580c);
  border-bottom-right-radius: 5px;
}

.doss-c03-msg-bot .doss-c03-bubble {
  color: #172033;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-bottom-left-radius: 5px;
}

.doss-c03-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}

.doss-c03-option {
  appearance: none;
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font: inherit;
  font-weight: 800;
  padding: 9px 13px;
  cursor: pointer;
}

.doss-c03-option:hover,
.doss-c03-option:focus-visible {
  background: #ffedd5;
  outline: 2px solid rgba(234, 88, 12, .25);
  outline-offset: 2px;
}

.dca-c03-panel {
  border-color: rgba(234, 88, 12, .28);
}

.dca-c03-status {
  margin: 10px 0 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.dca-c03-status.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.dca-c03-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.dca-c03-status.is-loading {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.dca-c03-form {
  margin-bottom: 18px;
}

.dca-c03-test {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 18px 0;
  padding: 14px;
  border: 1px dashed #fdba74;
  border-radius: 14px;
  background: #fffaf5;
}

.dca-c03-test label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.dca-c03-test input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.dca-c03-test-result {
  grid-column: 1 / -1;
  min-height: 22px;
  color: #475569;
  font-size: 13px;
}

.dca-c03-test-result .is-ok {
  color: #166534;
  font-weight: 900;
}

.dca-c03-test-result .is-error {
  color: #991b1b;
  font-weight: 900;
}

.dca-c03-list {
  display: grid;
  gap: 10px;
}

.dca-c03-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  padding: 18px;
  text-align: center;
}

.dca-c03-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.dca-c03-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dca-c03-row-main > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dca-c03-row-main strong {
  color: #172033;
}

.dca-c03-row-main small {
  color: #64748b;
  overflow-wrap: anywhere;
}

.dca-c03-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.dca-c03-badge.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.dca-c03-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dca-btn-danger {
  border: 1px solid #fecaca !important;
  background: #fff !important;
  color: #b91c1c !important;
}

@media (max-width: 720px) {
  .dca-c03-test {
    grid-template-columns: 1fr;
  }

  .dca-c03-test-result {
    grid-column: auto;
  }

  .dca-c03-row {
    flex-direction: column;
  }

  .dca-c03-row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .doss-c03-bubble {
    max-width: 90%;
  }
}
