/* Bot de cobrança: recursos, simulador, atendimentos e conversa */
.bot-muted { color: var(--text-muted, #64748b); font-size: 13px; margin: 6px 0; }
.bot-error { color: #b91c1c; font-size: 13px; }
.bot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.bot-cfg { display: grid; gap: 14px; }
.bot-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bot-check { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 9px 11px; background: #fff; cursor: pointer; }
.bot-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.bot-check b { display: block; font-size: 13px; }
.bot-check small, .bot-field small { display: block; font-size: 11px; color: var(--text-muted, #64748b); font-weight: 400; margin-top: 2px; }
.bot-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.bot-field { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text, #0f172a); }
.bot-field.wide { grid-column: 1 / -1; }
.bot-field input, .bot-field textarea { border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 7px 9px; font: inherit; font-weight: 400; }
.bot-actions { display: flex; justify-content: flex-end; }
.bot-sim { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: #f8fafc; padding: 12px; display: grid; gap: 10px; }
.bot-sim-head h4 { margin: 0; font-size: 14px; }
.bot-sim-head small { color: var(--text-muted, #64748b); font-size: 11px; }
.bot-sim-client, .bot-sim-send { display: flex; gap: 8px; }
.bot-sim-client input, .bot-sim-send input { flex: 1; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 8px 10px; font: inherit; min-width: 0; }
.bot-chat { background: #efeae2; border-radius: 10px; padding: 10px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.bot-chat.big { height: min(70vh, 560px); }
.bot-msg { max-width: 85%; padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; white-space: normal; word-break: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bot-msg.in { align-self: flex-end; background: #d9fdd3; }
.bot-msg.out { align-self: flex-start; background: #fff; }
.bot-msg.note { align-self: center; background: #fff7ed; color: #9a3412; font-size: 11.5px; border: 1px dashed #fdba74; max-width: 95%; }
.bot-msg small { display: block; font-size: 10.5px; color: #64748b; margin-bottom: 2px; }
.bot-msg a { display: inline-block; margin-top: 4px; font-size: 12px; }
.bot-handoffs { border: 1px solid var(--border, #e2e8f0); border-radius: 14px; background: #fff; padding: 10px 14px; margin-bottom: 14px; }
.bot-handoffs summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bot-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.bot-badge.on { background: #fee2e2; color: #991b1b; }
.bot-table-wrap { overflow-x: auto; margin-top: 8px; }
.bot-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bot-table th, .bot-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border, #e2e8f0); vertical-align: top; }
.bot-table th { color: var(--text-muted, #64748b); font-weight: 600; }
.bot-table td small { display: block; color: var(--text-muted, #64748b); font-size: 11px; }
.bot-table tr.urgent td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.bot-row-actions { white-space: nowrap; }
.bot-row-actions button { border: 1px solid var(--border, #e2e8f0); background: #fff; border-radius: 7px; padding: 4px 8px; font-size: 12px; cursor: pointer; margin-left: 4px; }
.bot-modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bot-modal.hidden { display: none; }
.bot-modal-box { background: #fff; border-radius: 14px; width: min(720px, 100%); display: grid; gap: 0; overflow: hidden; }
.bot-modal-box header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border, #e2e8f0); }
.bot-modal-box .bot-chat { border-radius: 0; }
.bot-close { border: 0; background: #f1f5f9; border-radius: 8px; width: 32px; height: 32px; font-size: 20px; cursor: pointer; }
@media (max-width: 1100px) { .bot-grid { grid-template-columns: 1fr; } .bot-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bot-checks, .bot-fields { grid-template-columns: 1fr; } }
