/* ============================================================
   conta.css — namespace .cnt-*
   ============================================================ */

/* layout */
.cnt-page {
  display:grid; grid-template-columns: 260px 1fr; gap:0;
  min-height: calc(100vh - 200px);
  background:#fff; border:1px solid var(--cf-border, #e2e8f0); border-radius:10px;
  overflow:hidden;
}
@media (max-width:920px) { .cnt-page { grid-template-columns:1fr; } }

.cnt-sidebar {
  border-right:1px solid var(--cf-border, #e2e8f0); background:#f8fafc;
  padding:16px 8px; overflow-y:auto;
}
.cnt-sidebar-group { margin-bottom:12px; }
.cnt-sidebar-label {
  font-size:10px; font-weight:600; color:var(--cf-text-3, #64748b);
  text-transform:uppercase; letter-spacing:0.5px;
  padding:8px 12px;
}
.cnt-sidebar-item {
  display:flex; gap:8px; align-items:center; width:100%;
  padding:8px 12px; background:transparent; border:none; cursor:pointer;
  font-size:13px; color:var(--cf-text-2, #475569); text-align:left;
  border-radius:6px; transition: background .12s;
}
.cnt-sidebar-item:hover { background:#fff; color:var(--cf-text, #0f172a); }
.cnt-sidebar-item.active {
  background:#dbeafe; color:var(--cf-brand, #1E5BAA); font-weight:500;
}
.cnt-sidebar-icon { font-size:14px; }

.cnt-main { padding:24px; overflow-y:auto; }
.cnt-content { display:flex; flex-direction:column; gap:16px; }

.cnt-loading, .cnt-empty, .cnt-error, .cnt-empty-sm {
  padding:32px 16px; text-align:center; color:var(--cf-text-3, #64748b); font-size:13px;
}
.cnt-empty-sm { padding:16px; }
.cnt-error { color:#dc2626; }

/* sections */
.cnt-section { display:flex; flex-direction:column; gap:16px; }
.cnt-section-title {
  font-size:24px; font-weight:600; color:var(--cf-text, #0f172a);
  font-family:'IBM Plex Sans', sans-serif; margin:0;
}
.cnt-section-subtitle { font-size:13px; color:var(--cf-text-3, #64748b); margin:0; }

.cnt-card {
  padding:20px; background:#fff;
  border:1px solid var(--cf-border, #e2e8f0); border-radius:10px;
  display:flex; flex-direction:column; gap:14px;
}
.cnt-card-head {
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
}
.cnt-card-title { font-size:14px; font-weight:600; color:var(--cf-text, #0f172a); margin:0; }
.cnt-card-subtitle { font-size:12px; font-weight:500; color:var(--cf-text-3, #64748b); margin:8px 0 0 0; }
.cnt-hint { font-size:12px; color:var(--cf-text-3, #94a3b8); margin:0; }
.cnt-actions { display:flex; gap:8px; justify-content:flex-end; }

/* form */
.cnt-form { display:flex; flex-direction:column; gap:12px; }
.cnt-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cnt-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
@media (max-width:720px) { .cnt-grid-2, .cnt-grid-3 { grid-template-columns:1fr; } }
.cnt-label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:500; color:var(--cf-text-2, #475569); }
.cnt-input {
  width:100%; padding:9px 12px;
  border:1px solid var(--cf-border, #e2e8f0); border-radius:7px;
  font-size:13px; background:#fff; color:var(--cf-text, #0f172a);
}
.cnt-input:focus { outline:none; border-color:var(--cf-brand, #1E5BAA); box-shadow: 0 0 0 3px rgba(30,91,170,.12); }
.cnt-input:disabled { background:#f8fafc; color:#94a3b8; cursor:not-allowed; }
.cnt-textarea { resize:vertical; min-height:80px; font-family:inherit; }
.cnt-color-input { padding:2px; height:36px; cursor:pointer; }

/* toggle / switch */
.cnt-toggle { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-weight:400; font-size:13px; }
.cnt-toggle input[type="checkbox"] { width:16px; height:16px; cursor:pointer; }
.cnt-checkbox-row { display:flex; gap:12px; flex-wrap:wrap; }
.cnt-checkbox { display:inline-flex; gap:6px; cursor:pointer; font-size:13px; }
.cnt-status-row { display:flex; gap:12px; align-items:center; }

.cnt-switch { position:relative; display:inline-block; width:36px; height:20px; }
.cnt-switch input { opacity:0; width:0; height:0; }
.cnt-switch-slider {
  position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0;
  background:#cbd5e1; border-radius:20px; transition:.2s;
}
.cnt-switch-slider:before {
  position:absolute; content:''; height:14px; width:14px; left:3px; bottom:3px;
  background:#fff; border-radius:50%; transition:.2s;
}
.cnt-switch input:checked + .cnt-switch-slider { background:#10b981; }
.cnt-switch input:checked + .cnt-switch-slider:before { transform: translateX(16px); }

/* buttons */
.cnt-btn-primary {
  background:var(--cf-brand, #1E5BAA); color:#fff; border:none;
  padding:8px 14px; border-radius:6px; font-size:13px; font-weight:500;
  cursor:pointer;
}
.cnt-btn-primary:hover { background:#164785; }
.cnt-btn-sm { padding:6px 12px; font-size:12px; }
.cnt-btn-ghost-sm {
  background:transparent; color:var(--cf-text-2, #475569);
  border:1px solid var(--cf-border, #e2e8f0);
  padding:5px 10px; border-radius:5px; font-size:12px; cursor:pointer;
}
.cnt-btn-ghost-sm:hover { background:#f1f5f9; }
.cnt-btn-danger-ghost { color:#dc2626; }
.cnt-btn-danger-ghost:hover { background:#fef2f2; border-color:#fecaca; }
.cnt-btn-icon {
  background:transparent; border:none; cursor:pointer;
  padding:4px 8px; font-size:14px; color:var(--cf-text-3, #64748b);
}
.cnt-btn-icon:hover { color:var(--cf-text, #0f172a); }
.cnt-link { color:var(--cf-brand, #1E5BAA); text-decoration:none; font-size:13px; }
.cnt-link:hover { text-decoration:underline; }

/* tabs */
.cnt-tabs { display:flex; gap:4px; border-bottom:1px solid var(--cf-border, #e2e8f0); }
.cnt-tab {
  background:transparent; border:none; cursor:pointer;
  padding:10px 16px; font-size:13px; color:var(--cf-text-3, #64748b);
  border-bottom:2px solid transparent;
}
.cnt-tab.active { color:var(--cf-brand, #1E5BAA); border-bottom-color:var(--cf-brand, #1E5BAA); font-weight:500; }
.cnt-tab:hover:not(.active) { color:var(--cf-text-2, #475569); }

/* table */
.cnt-table {
  width:100%; border-collapse:collapse; font-size:13px;
}
.cnt-table th {
  text-align:left; padding:10px 8px; background:#f8fafc;
  font-size:11px; font-weight:600; color:var(--cf-text-3, #64748b);
  text-transform:uppercase; letter-spacing:0.5px;
  border-bottom:1px solid var(--cf-border, #e2e8f0);
}
.cnt-table td {
  padding:10px 8px; border-bottom:1px solid #f1f5f9;
}
.cnt-table tr:hover { background:#f8fafc; }
.cnt-table code { font-family:'IBM Plex Mono', monospace; font-size:11px; }

/* lists */
.cnt-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.cnt-list-item {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:10px 12px; background:#f8fafc; border-radius:6px;
}
.cnt-list-meta { font-size:11px; color:var(--cf-text-3, #94a3b8); margin-top:4px; }
.cnt-list-actions { display:flex; gap:6px; }

/* pills */
.cnt-pill { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; }
.cnt-pill-green { background:#dcfce7; color:#166534; }
.cnt-pill-red { background:#fee2e2; color:#991b1b; }
.cnt-pill-amber { background:#fef3c7; color:#92400e; }
.cnt-pill-blue { background:#dbeafe; color:#1e3a8a; }
.cnt-pill-purple { background:#ede9fe; color:#5b21b6; }
.cnt-pill-info { background:#e0f2fe; color:#075985; }
.cnt-pill-gray { background:#f1f5f9; color:#475569; }

/* user cell */
.cnt-user-cell { display:flex; gap:10px; align-items:center; }
.cnt-avatar {
  width:32px; height:32px; border-radius:50%;
  background:var(--cf-brand, #1E5BAA); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:600;
}
.cnt-user-name { font-size:13px; font-weight:500; }
.cnt-user-email { font-size:11px; color:var(--cf-text-3, #94a3b8); }

/* token */
.cnt-token-row { display:flex; gap:6px; }
.cnt-token-row .cnt-input { flex:1; }

/* balance */
.cnt-balance-card { background: linear-gradient(135deg, #1E5BAA 0%, #164785 100%); color:#fff; }
.cnt-balance-card .cnt-card-title { color:#fff; }
.cnt-balance-label { font-size:10px; opacity:.7; text-transform:uppercase; letter-spacing:0.5px; }
.cnt-balance-value {
  font-size:36px; font-weight:600; font-family:'IBM Plex Sans', sans-serif;
  margin:8px 0 14px 0;
}
.cnt-balance-card .cnt-btn-primary {
  background:#fff; color:var(--cf-brand, #1E5BAA);
}
.cnt-balance-card .cnt-btn-primary:hover { background:#f1f5f9; }

/* card list */
.cnt-cards-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.cnt-card-item {
  display:flex; gap:12px; align-items:center; padding:10px 14px;
  background:#f8fafc; border-radius:8px;
}
.cnt-card-brand {
  font-size:10px; font-weight:600; padding:6px 10px;
  background:#0f172a; color:#fff; border-radius:4px;
}
.cnt-card-info { flex:1; font-size:13px; }
.cnt-card-meta { font-size:11px; color:var(--cf-text-3, #94a3b8); }

/* tags grid */
.cnt-tags-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:8px; }
.cnt-tag-card {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 14px; background:#fff;
  border:1px solid var(--cf-border, #e2e8f0); border-radius:6px;
}
.cnt-tag-name { font-size:13px; font-weight:500; }
.cnt-tag-actions { display:flex; gap:2px; }
.cnt-color-presets { display:flex; gap:4px; flex-wrap:wrap; }
.cnt-color-pick { width:24px; height:24px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px var(--cf-border, #e2e8f0); cursor:pointer; padding:0; }
.cnt-color-pick:hover { transform:scale(1.1); }
.cnt-color-dot { width:10px; height:10px; border-radius:50%; }

/* fields manager */
.cnt-fields-group { margin-top:16px; }
.cnt-fields-group-label {
  font-size:10px; font-weight:600; color:var(--cf-text-3, #64748b);
  text-transform:uppercase; letter-spacing:0.5px; padding:8px 0; margin-bottom:6px;
  border-bottom:1px solid var(--cf-border, #e2e8f0);
}
.cnt-field-row {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:10px 12px; background:#f8fafc; border-radius:6px; margin-bottom:6px;
}
.cnt-field-info { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cnt-field-key {
  font-family:'IBM Plex Mono', monospace; font-size:11px;
  background:#fff; padding:2px 6px; border-radius:3px; color:var(--cf-text-3, #64748b);
}
.cnt-field-actions { display:flex; gap:4px; }

/* Sessão 134 — Canais (WhatsApp/IG) */
.cnt-canais { display:flex; flex-direction:column; gap:14px; padding:8px 0; }
.cnt-canais-head {
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
}
.cnt-canais-head h3 {
  margin:0 0 4px; font-size:15px; font-weight:600;
  color:#0f172a; font-family:'IBM Plex Sans', sans-serif;
}
.cnt-canais-head p {
  margin:0; font-size:12.5px; color:#64748b; line-height:1.55; max-width:540px;
}

.cnt-canais-list {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:12px;
}

.cnt-canal-card {
  background:#fff; border-radius:9px;
  display:flex; flex-direction:column; gap:10px;
  padding:14px;
  transition: box-shadow .15s ease;
}
.cnt-canal-card:hover { box-shadow: 0 4px 12px rgba(15,23,42,0.06); }

.cnt-canal-head {
  display:flex; align-items:center; gap:10px;
}
.cnt-canal-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.cnt-canal-title { flex:1; min-width:0; }
.cnt-canal-title strong {
  display:block; font-size:13px; font-weight:600; color:#0f172a;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cnt-canal-title small {
  display:block; font-size:11.5px; color:#64748b;
  margin-top:2px;
}
.cnt-canal-status {
  font-size:10.5px; font-weight:600;
  padding:2px 8px; border-radius:9px;
  flex-shrink:0;
}

.cnt-canal-body { display:flex; flex-direction:column; gap:8px; }
.cnt-canal-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.cnt-canal-card.is-off { opacity: .55; }
.cnt-canal-field { display:flex; flex-direction:column; gap:4px; }
.cnt-canal-hint {
  flex: 1; font-size: 11px; color: #94a3b8; font-style: italic;
  align-self: center; padding-left: 8px;
}
.cnt-color-input { padding: 0; height: 32px; width: 100%; cursor: pointer; }

/* M19.5: foot hint pra explicar Conectado/Pendente */
.cnt-canais-foot-hint {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 14px; padding: 10px 12px;
  background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 7px;
  color: #64748b;
}
.cnt-canais-foot-hint small { font-size: 11px; line-height: 1.5; }
.cnt-canais-foot-hint strong { color: #475569; font-weight: 600; }

/* M21.6: reconciliação retroativa */
.cnt-recon-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cnt-recon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px;
}
.cnt-recon-card {
  padding: 14px 16px; background: #f8fafc; border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.cnt-recon-card strong {
  font-size: 22px; color: #0f172a; font-family: 'IBM Plex Sans', sans-serif;
}
.cnt-recon-card small { font-size: 11.5px; color: #64748b; }
.cnt-recon-card-info { background: #eff6ff; }
.cnt-recon-card-info strong { color: #1e40af; }
.cnt-recon-card-good { background: #f0fdf4; }
.cnt-recon-card-good strong { color: #166534; }
.cnt-recon-card-warn { background: #fff7ed; }
.cnt-recon-card-warn strong { color: #9a3412; }

.cnt-recon-details {
  background: #fff; border: 1px solid #ecf0f4; border-radius: 8px;
}
.cnt-recon-details > summary {
  padding: 10px 12px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: #475569;
  list-style: none;
}
.cnt-recon-details > summary::-webkit-details-marker { display: none; }
.cnt-recon-list { list-style: none; margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.cnt-recon-list li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center;
  padding: 6px 0; border-top: 1px dashed #f1f5f9; font-size: 12px;
}
.cnt-recon-list li:first-child { border-top: none; }
.cnt-recon-list small { color: #64748b; font-size: 10.5px; }
.cnt-recon-empty { color: #94a3b8; font-style: italic; padding: 12px 0; }
.cnt-recon-error { color: #dc2626; font-size: 12px; }
.cnt-canal-field span {
  font-size:11.5px; color:#475569;
}
.cnt-input {
  background:#f8fafc; border:1px solid #e2e8f0;
  padding:7px 10px; border-radius:6px;
  font-size:13px; color:#0f172a;
  outline:none;
  transition: border-color .15s, box-shadow .15s;
}
.cnt-input:focus { border-color:#1E5BAA; background:#fff; box-shadow:0 0 0 2px #1E5BAA22; }

.cnt-canal-foot {
  display:flex; gap:6px; flex-wrap:wrap;
  margin-top:4px;
}
.cnt-btn-primary {
  display:inline-flex; align-items:center; gap:5px;
  background:#1E5BAA; color:#fff; border:none;
  padding:7px 14px; border-radius:6px;
  font-size:12.5px; font-weight:500;
  cursor:pointer; transition:background .15s;
}
.cnt-btn-primary:hover { background:#164a8e; }
.cnt-btn-ghost {
  display:inline-flex; align-items:center; gap:5px;
  background:transparent; border:1px solid #e2e8f0;
  padding:5px 10px; border-radius:5px;
  font-size:11.5px; color:#475569;
  cursor:pointer; transition:background .15s;
}
.cnt-btn-ghost:hover { background:#f1f5f9; }
.cnt-btn-ghost.cnt-btn-danger-ghost { color:#dc2626; border-color:#fee2e2; }
.cnt-btn-ghost.cnt-btn-danger-ghost:hover { background:#fee2e2; }
.cnt-btn-sm { padding:4px 9px; font-size:11px; }

.cnt-empty {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  text-align:center;
  padding:48px 24px;
  background:#f8fafc; border-radius:10px;
}
.cnt-empty strong { font-size:13px; color:#475569; }
.cnt-empty small { font-size:12px; color:#94a3b8; max-width:380px; line-height:1.5; }
.cnt-loading { padding:24px; text-align:center; color:#64748b; font-size:13px; }

/* ============================================================
   Sessão 134 / Bloco G — Carteira refinada + Telefonia + Pricing
   ============================================================ */

/* Carteira */
.cnt-wallet { display:flex; flex-direction:column; gap:14px; padding:8px 0; }

.cnt-wallet-alert {
  display:flex; align-items:flex-start; gap:10px;
  background:#fef2f2; border-left:4px solid #dc2626;
  padding:12px 14px; border-radius:7px;
  color:#991b1b;
}
.cnt-wallet-alert strong { display:block; font-size:13px; }
.cnt-wallet-alert small { display:block; font-size:11.5px; color:#7f1d1d; margin-top:2px; }

.cnt-wallet-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
@media (max-width:760px) { .cnt-wallet-grid { grid-template-columns:1fr; } }

.cnt-wallet-balance {
  background:#fff; border-radius:10px; padding:18px 20px;
  display:flex; flex-direction:column; gap:6px;
}
.cnt-wallet-balance small {
  font-size:10.5px; color:#94a3b8; font-weight:600;
  letter-spacing:0.5px;
}
.cnt-wallet-balance strong {
  font-size:32px; color:var(--accent, #0f172a);
  font-family:'IBM Plex Sans', sans-serif; font-weight:600;
  letter-spacing:-0.01em; line-height:1;
}
.cnt-wallet-status {
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600;
  padding:3px 9px; border-radius:9px;
  align-self:flex-start;
}
.cnt-wallet-balance .cnt-btn-primary { align-self:flex-start; margin-top:6px; }

.cnt-wallet-stats {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:10px;
  background:#fff; border-radius:10px; padding:14px 16px;
}
.cnt-wallet-stat { display:flex; flex-direction:column; gap:2px; }
.cnt-wallet-stat small { font-size:10.5px; color:#94a3b8; font-weight:600; letter-spacing:0.4px; }
.cnt-wallet-stat strong { font-size:16px; color:#0f172a; font-family:'IBM Plex Sans', sans-serif; font-weight:600; }

.cnt-card-subtitle {
  margin:0 0 12px;
  font-size:12px; color:#64748b; line-height:1.5;
}
.cnt-card-head-flex {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-bottom:10px;
}

.cnt-recharge-form {
  display:flex; flex-direction:column; gap:10px;
}
.cnt-recharge-inputs {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.cnt-recharge-inputs label { display:flex; flex-direction:column; gap:5px; }
.cnt-recharge-inputs small { font-size:11.5px; color:#475569; }

.cnt-input-prefix {
  display:flex; align-items:center; gap:4px;
  background:#f8fafc; border:1px solid #e2e8f0;
  border-radius:6px;
  padding:0 0 0 10px;
  overflow:hidden;
}
.cnt-input-prefix span {
  font-size:12px; color:#94a3b8; font-weight:600;
}
.cnt-input-prefix input {
  flex:1; border:none; background:transparent;
  padding:8px 10px;
  font-size:13px; color:#0f172a;
  outline:none;
}

.cnt-switch {
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
  font-size:12.5px; color:#475569;
}
.cnt-switch input { cursor:pointer; }

/* Telefonia */
.cnt-tel { display:flex; flex-direction:column; gap:14px; padding:8px 0; }
.cnt-tel-head {
  display:grid; grid-template-columns:280px 1fr; gap:14px;
}
@media (max-width:760px) { .cnt-tel-head { grid-template-columns:1fr; } }

.cnt-tel-balance {
  background:#fff; border-radius:10px; padding:16px 18px;
  display:flex; flex-direction:column; gap:5px;
}
.cnt-tel-balance > small {
  font-size:10.5px; color:#94a3b8; font-weight:600; letter-spacing:0.5px;
}
.cnt-tel-balance strong {
  font-size:24px; color:#0f172a;
  font-family:'IBM Plex Sans', sans-serif; font-weight:600;
}
.cnt-tel-balance .cnt-btn-primary { align-self:flex-start; margin-top:6px; }

.cnt-tel-stats {
  display:grid; grid-template-columns:repeat(4, 1fr); gap:10px;
  background:#fff; border-radius:10px; padding:14px 16px;
}
@media (max-width:600px) { .cnt-tel-stats { grid-template-columns:repeat(2, 1fr); } }
.cnt-tel-stat { display:flex; flex-direction:column; gap:2px; }
.cnt-tel-stat small { font-size:10.5px; color:#94a3b8; font-weight:600; letter-spacing:0.4px; }
.cnt-tel-stat strong { font-size:16px; color:#0f172a; font-family:'IBM Plex Sans', sans-serif; font-weight:600; }

.cnt-tel-info { background:#f8fafc !important; }
.cnt-tel-info p {
  margin:0; font-size:12.5px; color:#475569; line-height:1.55;
}
.cnt-tel-info code {
  font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  background:#fff; padding:2px 6px; border-radius:4px; color:#1E5BAA;
}

/* Pricing */
.cnt-pricing { display:flex; flex-direction:column; gap:18px; padding:8px 0; }
.cnt-pricing-head h3 {
  margin:0 0 4px; font-size:15px; font-weight:600;
  color:#0f172a; font-family:'IBM Plex Sans', sans-serif;
}
.cnt-pricing-head p {
  margin:0; font-size:12.5px; color:#64748b; line-height:1.55;
}

.cnt-pricing-section {
  background:#fff; border-radius:10px;
  display:flex; flex-direction:column; gap:0;
  overflow:hidden;
}
.cnt-pricing-section-head {
  display:flex; align-items:center; gap:8px;
  padding:12px 16px;
  background:#f8fafc;
  border-bottom:1px solid #ecf0f4;
}
.cnt-pricing-section-head h4 {
  margin:0; font-size:13px; font-weight:600; color:#0f172a;
}

.cnt-pricing-rows { display:flex; flex-direction:column; }
.cnt-pricing-row {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid #f1f5f9;
}
.cnt-pricing-row:last-child { border-bottom:none; }
.cnt-pricing-info { flex:1; min-width:0; }
.cnt-pricing-info strong {
  display:block; font-size:13px; font-weight:600; color:#0f172a;
}
.cnt-pricing-info small {
  display:block; font-size:11px; color:#64748b; margin-top:2px;
}
.cnt-pricing-info code {
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px; background:#f1f5f9; padding:1px 5px; border-radius:3px;
  color:#475569;
}
.cnt-pricing-controls {
  display:flex; align-items:center; gap:12px; flex-shrink:0;
}

/* ============================================================
   Sessão 134 / Atendente personalizado: permissões granulares (.ufp-*)
   ============================================================ */
.ufp-explainer {
  display: flex; gap: 10px; align-items: flex-start;
  background: #eff6ff;
  padding: 10px 12px; border-radius: 7px;
  margin-bottom: 14px;
}
.ufp-explainer strong { display: block; font-size: 12.5px; color: #1E5BAA; }
.ufp-explainer small { display: block; font-size: 11.5px; color: #475569; line-height: 1.5; margin-top: 2px; }

.ufp-quick-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}

.ufp-section {
  margin-bottom: 18px;
  background: var(--lan-surface, #fff);
  border: 1px solid var(--lan-border, #ecf0f4);
  border-radius: 12px;
  overflow: hidden;
}
.ufp-section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, #1E5BAA) 6%, var(--lan-surface, #fff)), var(--lan-surface, #fff));
  border-bottom: 1px solid var(--lan-border, #ecf0f4);
  font-size: 13px;
}
.ufp-section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  flex-shrink: 0;
}
.ufp-section-title { flex: 1; min-width: 0; }
.ufp-section-title strong {
  display: block;
  color: var(--lan-text, #0f172a);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.ufp-section-title small {
  display: block;
  font-size: 11px;
  color: var(--lan-text-muted, #64748b);
  margin-top: 2px;
}
.ufp-section-counts { display: inline-flex; gap: 5px; flex-shrink: 0; }
.ufp-count {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--lan-bg, #f8fafc);
  color: var(--lan-text-muted, #64748b);
  font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 10px;
  border: 1px solid var(--lan-border, #ecf0f4);
}
.ufp-count-edit { color: var(--lan-purple, #a855f7); border-color: color-mix(in srgb, var(--lan-purple, #a855f7) 30%, transparent); }

.ufp-features { display: flex; flex-direction: column; }
.ufp-feature {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--lan-surface, #fff);
  padding: 12px 16px;
  border-top: 1px solid var(--lan-border, #ecf0f4);
  transition: background 120ms ease;
}
.ufp-features > .ufp-feature:first-child { border-top: 0; }
.ufp-feature:hover { background: var(--lan-bg, #f8fafc); }
.ufp-feature.is-override {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c, #1E5BAA) 4%, var(--lan-surface)), var(--lan-surface));
}
.ufp-feature-info { flex: 1; min-width: 0; }
.ufp-feature-head { display: flex; align-items: center; gap: 8px; }
.ufp-feature-head strong {
  font-size: 12.5px; color: var(--lan-text, #0f172a); font-weight: 600;
  letter-spacing: -0.005em;
}
.ufp-override-badge {
  font-size: 9px; font-weight: 700;
  background: var(--lan-amber-soft, #fef3c7);
  color: var(--lan-amber, #b8730f);
  padding: 1px 6px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ufp-feature-desc {
  display: block;
  font-size: 11.5px;
  color: var(--lan-text-muted, #64748b);
  line-height: 1.45;
  margin-top: 4px;
}
.ufp-feature-slug {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: var(--lan-bg, #f1f5f9);
  padding: 1px 5px; border-radius: 3px;
  color: var(--lan-text-faint, #94a3b8);
  margin-top: 4px;
}

.ufp-feature-toggles { display: flex; gap: 6px; flex-shrink: 0; padding-top: 2px; }
.ufp-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--lan-bg, #f1f5f9);
  color: var(--lan-text-muted, #64748b);
  border: 1px solid var(--lan-border, #ecf0f4);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
}
.ufp-toggle:hover { background: var(--lan-surface-hover, #eef2f7); }
.ufp-toggle.on {
  background: var(--lan-brand-soft, #eff4fb);
  color: var(--lan-brand, #1E5BAA);
  border-color: var(--lan-brand, #1E5BAA);
  font-weight: 600;
}
.ufp-toggle:has(input[data-feature-toggle="edit"]:checked) {
  background: color-mix(in srgb, var(--lan-purple, #a855f7) 12%, transparent);
  color: var(--lan-purple, #a855f7);
  border-color: var(--lan-purple, #a855f7);
}
.ufp-toggle input { display: none; }

.ufp-explainer {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--lan-brand-soft, #eff4fb);
  border-radius: 9px; padding: 12px 14px;
  margin-bottom: 14px;
}
.ufp-explainer strong {
  display: block;
  font-size: 12.5px; color: var(--lan-text, #0f172a);
  font-weight: 600; margin-bottom: 2px;
}
.ufp-explainer small {
  font-size: 11.5px; color: var(--lan-text-muted, #475569);
  line-height: 1.5;
}

/* ============================================================
   Tarja Impersonation
   ============================================================ */
#cf-impersonate-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99998;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #78350f;
  padding: 8px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
#cf-impersonate-banner span { flex: 1; }
#cf-impersonate-banner strong { color: #451a03; }
#cf-impersonate-banner button {
  background: #78350f; color: #fff; border: none;
  padding: 5px 12px; border-radius: 5px;
  font-size: 11.5px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
#cf-impersonate-banner button:hover { background: #451a03; }
body:has(#cf-impersonate-banner) { padding-top: 38px; }

/* ============================================================
   Sessão 134 — AI Providers (.aip-*)
   ============================================================ */
.aip-page { display: flex; flex-direction: column; gap: 18px; padding: 8px 0; }

.aip-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid #ecf0f4;
}
.aip-head h3 {
  margin: 0 0 4px;
  font-size: 16px; font-weight: 600; color: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.01em;
}
.aip-head p { margin: 0; font-size: 12.5px; color: #64748b; max-width: 520px; line-height: 1.5; }

.aip-summary { display: flex; gap: 14px; }
.aip-summary > div {
  display: flex; flex-direction: column; gap: 2px;
  background: #f8fafc; border-radius: 8px;
  padding: 10px 14px;
}
.aip-summary small { font-size: 10.5px; color: #94a3b8; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.aip-summary strong { font-size: 17px; color: #0f172a; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }

.aip-providers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px;
}

.aip-card {
  background: #fff; border-radius: 12px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.aip-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,0.08); }
.aip-card.on { box-shadow: 0 4px 14px var(--accent, #1E5BAA)33, 0 1px 3px rgba(15,23,42,0.04); }

.aip-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.aip-card-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.aip-card-title { flex: 1; min-width: 0; }
.aip-card-title strong { display: block; font-size: 14px; color: #0f172a; font-weight: 600; }
.aip-card-title small { display: block; font-size: 11.5px; color: #64748b; margin-top: 2px; }

.aip-card-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
}
.aip-field { display: flex; flex-direction: column; gap: 4px; }
.aip-field label {
  font-size: 11.5px; color: #475569; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.aip-field input,
.aip-field select {
  background: #f8fafc; border: 1px solid #e2e8f0;
  padding: 8px 11px; border-radius: 7px;
  font-size: 13px; color: #0f172a;
  outline: none; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
  width: 100%;
}
.aip-field input:focus,
.aip-field select:focus {
  background: #fff; border-color: var(--accent, #1E5BAA);
  box-shadow: 0 0 0 3px var(--accent, #1E5BAA)22;
}
.aip-hint { font-size: 11px; color: #94a3b8; margin-top: 2px; line-height: 1.4; }
.aip-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: #1E5BAA; text-decoration: none;
  font-weight: 500;
}
.aip-link:hover { text-decoration: underline; }

.aip-key-input {
  display: flex; align-items: center; gap: 4px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 7px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.aip-key-input:focus-within { background: #fff; border-color: var(--accent, #1E5BAA); box-shadow: 0 0 0 3px var(--accent, #1E5BAA)22; }
.aip-key-input input {
  flex: 1; border: none; background: transparent;
  padding: 8px 11px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: #0f172a; outline: none;
}
.aip-icon-btn {
  background: transparent; border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #64748b;
  transition: background 0.12s, color 0.12s;
}
.aip-icon-btn:hover { background: #f1f5f9; color: #1E5BAA; }

.aip-usage { display: flex; flex-direction: column; gap: 4px; }
.aip-usage small { font-size: 11.5px; color: #64748b; }
.aip-usage strong { color: #0f172a; font-weight: 600; }
.aip-usage-bar {
  height: 6px; background: #f1f5f9; border-radius: 4px; overflow: hidden;
}
.aip-usage-bar > div { height: 100%; transition: width 0.3s ease; }

.aip-card-foot {
  display: flex; gap: 6px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.aip-btn-primary,
.aip-btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.aip-btn-primary { background: #1E5BAA; color: #fff; border: none; }
.aip-btn-primary:hover { background: #164a8e; }
.aip-btn-ghost {
  background: transparent; border: 1px solid #e2e8f0;
  color: #475569;
  margin-right: auto;
}
.aip-btn-ghost:hover:not(:disabled) { background: #fff; border-color: #cbd5e1; }
.aip-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

.aip-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: #eff6ff; border-radius: 9px;
  padding: 14px 16px;
}
.aip-tip strong { display: block; font-size: 12.5px; color: #0f172a; font-weight: 600; margin-bottom: 2px; }
.aip-tip small { display: block; font-size: 12px; color: #475569; line-height: 1.55; }

/* ─── AI Agents (Meus agentes) ─────────────────────────────────────────────── */
.aag-shell { padding: 8px 0; }
.aag-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 22px;
}
.aag-head h3 {
  margin: 0 0 4px; font-size: 16px; font-weight: 600;
  color: var(--lan-text, #0f172a); font-family: 'IBM Plex Sans', sans-serif;
}
.aag-head p { margin: 0; font-size: 12.5px; color: var(--lan-text-muted, #64748b); line-height: 1.55; max-width: 640px; }
.aag-loading, .aag-empty {
  padding: 32px 24px; text-align: center;
  background: var(--lan-bg, #f8fafc); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--lan-text-2, #475569);
}
.aag-empty strong { font-size: 14px; color: var(--lan-text, #0f172a); font-weight: 600; }
.aag-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.aag-card {
  position: relative;
  background: var(--lan-surface, #fff); border: 1px solid var(--lan-border, #ecf0f4); border-radius: 10px;
  padding: 14px 16px;
  transition: all 150ms ease;
  border-top: 3px solid var(--accent, var(--lan-brand, #1E5BAA));
}
.aag-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.aag-card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.aag-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  flex-shrink: 0;
}
.aag-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aag-card-title strong { font-size: 13.5px; color: var(--lan-text, #0f172a); font-weight: 600; }
.aag-card-title small { font-size: 11px; color: var(--lan-text-muted, #64748b); }
.aag-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.aag-tag-lan { background: var(--lan-brand-soft, #eff6ff); color: var(--lan-brand, #1E5BAA); }
.aag-card-desc {
  font-size: 12px; color: var(--lan-text-2, #475569); line-height: 1.5;
  margin: 0 0 12px; min-height: 36px;
}
.aag-card-actions {
  display: flex; gap: 4px; padding-top: 10px;
  border-top: 1px solid var(--lan-surface-hover, #f1f5f9);
}
.aag-btn-ghost {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: var(--lan-text-2, #475569);
  border: none; border-radius: 5px; padding: 5px 9px;
  font-size: 11.5px; cursor: pointer;
  transition: all 120ms ease;
}
.aag-btn-ghost:hover { background: var(--lan-surface-hover, #f1f5f9); color: var(--lan-text, #0f172a); }
.aag-btn-danger:hover { background: var(--lan-danger-soft, #fee2e2); color: var(--lan-danger, #dc2626); }

/* Memórias modal */
.aag-mem-list { display: flex; flex-direction: column; gap: 8px; }
.aag-mem-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: var(--lan-bg, #f8fafc); border-radius: 7px;
}
.aag-mem-content { flex: 1; min-width: 0; }
.aag-mem-content p {
  font-size: 13px; line-height: 1.55; color: var(--lan-text, #0f172a);
  margin: 0 0 4px; word-break: break-word;
}
.aag-mem-content small { font-size: 10.5px; color: var(--lan-text-faint, #94a3b8); }

.sol-form-row-3col {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}

/* ─── ufp-drawer (drawer lateral próprio do user-permissoes) ──────────────── */
.ufp-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 720px; max-width: 100vw;
  background: var(--lan-surface, #fff);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18), -4px 0 12px rgba(15,23,42,.06);
  z-index: 10001;
  animation: ufp-slide-in 0.22s cubic-bezier(.4,0,.2,1);
}
@keyframes ufp-slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Headers/Body internos do drawer (reusa estrutura mas com tamanho próprio) */
.ufp-drawer .lan-drawer-head {
  position: relative;
  padding: 18px 24px 0;
  border-bottom: 1px solid var(--lan-border, #ecf0f4);
  background: var(--lan-surface, #fff);
}
.ufp-drawer .lan-drawer-head .lan-close {
  display: flex !important;
  position: absolute; top: 14px; right: 16px;
}
.ufp-drawer .lan-drawer-eyebrow {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.ufp-drawer .lan-drawer-title-input {
  font-size: 17px; font-weight: 600;
  color: var(--lan-text, #0f172a);
  padding: 10px 0 4px;
  background: transparent;
  cursor: default !important;
  border: none; outline: none;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.01em;
  display: block;
  width: 100%;
}
.ufp-drawer .lan-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 18px 24px;
  background: var(--lan-bg, #f8fafc);
  display: block;
  position: relative;
}
.ufp-drawer .lan-drawer-body::before { display: none; }
.ufp-drawer .lan-drawer-foot {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  padding: 12px 24px;
  border-top: 1px solid var(--lan-border, #ecf0f4);
  background: var(--lan-surface, #fff);
}

/* Quick actions row no topo */
.ufp-drawer .ufp-explainer + .ufp-quick-actions { margin-top: 4px; }

/* ─── Permission Groups (drawer CRUD) ─────────────────────────────────────── */
.pgr-list { display: flex; flex-direction: column; gap: 8px; }
.pgr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--lan-surface, #fff);
  border: 1px solid var(--lan-border, #ecf0f4);
  border-radius: 10px;
  transition: all 150ms ease;
}
.pgr-item:hover { border-color: var(--lan-brand, #1E5BAA); transform: translateX(2px); }
.pgr-item.is-system { background: var(--lan-bg, #f8fafc); }
.pgr-item-info { flex: 1; min-width: 0; }
.pgr-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pgr-item-head strong {
  font-size: 13.5px; color: var(--lan-text, #0f172a); font-weight: 600;
}
.pgr-system-badge {
  font-size: 9px; font-weight: 700;
  background: var(--lan-amber-soft, #fef3c7); color: var(--lan-amber, #b8730f);
  padding: 1px 6px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pgr-item-info small {
  display: block; font-size: 11.5px; color: var(--lan-text-muted, #64748b);
  line-height: 1.5; margin-top: 1px;
}
.pgr-item-meta {
  display: flex; gap: 12px; margin-top: 6px;
  font-size: 11px; color: var(--lan-text-faint, #94a3b8);
}
.pgr-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pgr-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

.pgr-cat {
  margin-top: 14px;
  background: var(--lan-surface, #fff);
  border: 1px solid var(--lan-border, #ecf0f4);
  border-radius: 10px;
  overflow: hidden;
}
.pgr-cat-head {
  padding: 10px 14px;
  background: var(--lan-bg, #f8fafc);
  font-size: 11px; font-weight: 600;
  color: var(--lan-text-2, #475569);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--lan-border, #ecf0f4);
}
.pgr-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--lan-border, #ecf0f4);
}
.pgr-cat .pgr-feat:first-of-type { border-top: 0; }
.pgr-feat-info { flex: 1; min-width: 0; }
.pgr-feat-info strong {
  display: block; font-size: 12px; color: var(--lan-text, #0f172a); font-weight: 500;
}
.pgr-feat-info small {
  display: block; font-size: 11px; color: var(--lan-text-muted, #64748b);
  line-height: 1.4; margin-top: 2px;
}
.pgr-feat-toggles { display: flex; gap: 4px; flex-shrink: 0; padding-top: 1px; }

/* Apply group widget */
.ufp-apply-group {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--lan-brand-soft, #eff4fb);
  border: 1px solid color-mix(in srgb, var(--lan-brand, #1E5BAA) 25%, transparent);
  padding: 10px 14px; border-radius: 8px;
  margin-bottom: 12px;
}

/* ============================================================================
   Lote B/C 50-etapas: managers globais (cfs-global, cupons, lost-reasons)
   ============================================================================ */
.cf-cfsg-list { display: flex; flex-direction: column; gap: 8px; }
.cf-cfsg-row {
  background: var(--s2, #f8fafc);
  padding: 12px 14px;
  border-radius: 8px;
  position: relative;
}
.cf-cfsg-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-cfsg-info strong { font-size: 13px; color: var(--text); }
.cf-cfsg-acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }

.cf-cupons-list { display: flex; flex-direction: column; gap: 10px; }
.cf-cupom-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--s2, #f8fafc);
  border-radius: 10px;
  transition: background 120ms;
}
.cf-cupom-row:hover { background: var(--s1, #eef2f8); }
.cf-cupom-row.is-off { opacity: .55; }
.cf-cupom-codigo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand, #1E5BAA);
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px dashed var(--brand, #1E5BAA);
}
.cf-cupom-info { min-width: 0; }
.cf-cupom-val { font-size: 16px; font-weight: 600; color: var(--text); }
.cf-cupom-info small { display: block; color: var(--t2); font-size: 12px; margin-top: 2px; }
.cf-cupom-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px; color: var(--t2);
  font-family: 'IBM Plex Mono', monospace;
}
.cf-cupom-meta span { display: inline-flex; align-items: center; gap: 3px; }
.cf-cupom-acts { display: flex; gap: 4px; flex-shrink: 0; }

.cf-lr-list { list-style: none; padding: 0; margin: 0; }
.cf-lr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 120ms;
}
.cf-lr-row:hover { background: var(--s2, #f8fafc); }
.cf-lr-row.is-off { opacity: .55; }
.cf-lr-pos {
  width: 22px; height: 22px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--t2);
}
.cf-lr-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cf-lr-nome { flex: 1; font-size: 13px; color: var(--text); }
.cf-lr-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* ============================================================================
   Lote F 50-etapas: 2FA setup + sessoes ativas + audit log
   ============================================================================ */
.cf-2fa-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.cf-2fa-codes code {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-align: center;
  letter-spacing: 1px;
  color: #0f172a;
}

.cf-sess-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cf-sess-row {
  display: flex; gap: 12px;
  background: var(--s2, #f8fafc);
  padding: 12px;
  border-radius: 8px;
  align-items: center;
}
.cf-sess-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand, #1E5BAA) 12%, transparent);
  color: var(--brand, #1E5BAA);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-sess-icon i { width: 18px; height: 18px; }
.cf-sess-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-sess-info strong { font-size: 13px; color: var(--text); }
.cf-sess-info small { font-size: 11px; color: var(--t2); }

.cf-audit-list {
  display: flex; flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cf-audit-row {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.cf-audit-row:last-child { border-bottom: 0; }
.cf-audit-row:hover { background: var(--s2, #f8fafc); }
.cf-audit-action {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--brand, #1E5BAA);
  font-size: 11px;
}
.cf-audit-entity { color: var(--text); font-size: 12px; }
.cf-audit-meta { color: var(--t2); font-size: 11px; text-align: right; }

/* ============================================================================
   Lote G 50-etapas: webhook handlers manager
   ============================================================================ */
.cf-wh-list { display: flex; flex-direction: column; gap: 10px; }
.cf-wh-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  background: var(--s2, #f8fafc);
  padding: 14px;
  border-radius: 10px;
  align-items: center;
  transition: background 120ms;
}
.cf-wh-row:hover { background: var(--s1, #eef2f8); }
.cf-wh-row.is-off { opacity: .55; }
.cf-wh-icon {
  --c: #475569;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-wh-icon i { width: 22px; height: 22px; }
.cf-wh-info { min-width: 0; }
.cf-wh-row-title {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px;
}
.cf-wh-row-title strong { color: var(--text); }
.cf-wh-url {
  display: flex; gap: 6px; align-items: center;
  margin-top: 4px;
}
.cf-wh-url code {
  background: var(--bg, #fff);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--brand, #1E5BAA);
  border: 1px solid var(--border);
  word-break: break-all;
}
.cf-wh-copy {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  color: var(--t2);
  border-radius: 4px;
}
.cf-wh-copy:hover { background: var(--bg, #fff); color: var(--brand); }
.cf-wh-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--t2);
  font-family: 'IBM Plex Mono', monospace;
}
.cf-wh-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* ============================================================================
   Lote L 50-etapas: dashboard configuravel admin
   ============================================================================ */
.cf-dashcfg-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.cf-dashcfg-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--s2, #f8fafc);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 120ms;
}
.cf-dashcfg-row:hover { background: var(--s1, #eef2f8); }
.cf-dashcfg-row input { accent-color: var(--brand, #1E5BAA); }

/* ============================================================================
   A2-U1: Galeria de Midia (admin)
   ============================================================================ */
.cfmm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.cfmm-stats > div {
  background: var(--s2, #f8fafc);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.cfmm-stats strong {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px; color: var(--text);
  line-height: 1;
}
.cfmm-stats small {
  font-size: 11px; color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cfmm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cfmm-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 120ms;
}
.cfmm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.cfmm-thumb {
  aspect-ratio: 1;
  background: var(--s2, #f8fafc);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cfmm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfmm-thumb i { width: 32px; height: 32px; color: var(--t2); }
.cfmm-thumb-imagem { background: #f1f5f9; }
.cfmm-thumb-video { background: #fef3c7; }
.cfmm-thumb-audio { background: #ddd6fe; }
.cfmm-thumb-pdf { background: #fee2e2; }
.cfmm-info { padding: 8px 10px; flex: 1; min-width: 0; }
.cfmm-info strong {
  display: block; font-size: 12px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cfmm-info small {
  display: block; font-size: 10.5px; color: var(--t2);
  font-family: 'IBM Plex Mono', monospace;
}
.cfmm-actions {
  display: flex; gap: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--s2, #f8fafc);
}
.cfmm-actions button, .cfmm-actions a {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--t2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cfmm-actions button:hover, .cfmm-actions a:hover {
  background: #fff;
  color: var(--brand, #1E5BAA);
}

/* A2-U5: Status manager */
.cf-stat-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.cf-stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--s2, #f8fafc);
  transition: background 100ms;
}
.cf-stat-row:hover { background: var(--s1, #eef2f8); }
.cf-stat-row.is-off { opacity: .55; }
.cf-stat-ord {
  width: 22px; height: 22px;
  background: var(--bg, #fff); color: var(--t2, #64748b);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  flex-shrink: 0;
}
.cf-stat-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.cf-stat-label { flex: 1; font-size: 13px; color: var(--text); }
.cf-stat-label code {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--t2); margin-left: 6px;
}
.cf-stat-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* C4 etapa 26: Aprovacoes genericas */
.cf-aprov-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 12px 0 16px;
}
.cf-aprov-stats > div {
  background: var(--s2, #f8fafc); padding: 12px; border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.cf-aprov-stats strong {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 22px; line-height: 1; font-weight: 600;
}
.cf-aprov-stats small {
  font-size: 11px; color: var(--t2);
  text-transform: uppercase; letter-spacing: .5px;
}
.cf-aprov-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.cf-aprov-row {
  display: flex; gap: 12px;
  background: var(--s2, #f8fafc);
  padding: 12px 14px;
  border-radius: 10px;
  align-items: center;
}
.cf-aprov-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-aprov-icon i { width: 18px; height: 18px; }
.cf-aprov-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-aprov-row-title {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px;
}
.cf-aprov-row-title strong { color: var(--text); }
.cf-aprov-status {
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.cf-aprov-info small {
  font-size: 11px; color: var(--t2);
  font-family: 'IBM Plex Mono', monospace;
}
.cf-aprov-info small code {
  background: var(--bg, #fff); padding: 1px 5px; border-radius: 3px; color: var(--brand);
}
.cf-aprov-acts {
  display: flex; gap: 4px; flex-shrink: 0;
}

/* ─── M42.w.4: chip live de status na lista de Horários da equipe ──── */
.cf-wh-live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cf-wh-live-available {
  background: #f0fdf4; border-color: #bbf7d0; color: #15803d;
}
.cf-wh-live-off {
  background: #f1f5f9; border-color: #cbd5e1; color: #475569;
}
.cf-wh-live-paused {
  background: #fff7ed; border-color: #fed7aa; color: #c2410c;
}
.cf-wh-live-disabled {
  background: #f1f5f9; border-color: #e2e8f0; color: #64748b;
}
