/* M55.C.routing-ui — CRUD regras de roteamento */

.cf-rr-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0;
}
.cf-rr-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #1E5BAA; color: #fff;
  border: none; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: filter .12s;
}
.cf-rr-btn-primary:hover { filter: brightness(.92); }
.cf-rr-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff; color: #475569;
  border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.cf-rr-btn-ghost:hover { background: #f1f5f9; }
.cf-rr-btn-mini {
  width: 24px; height: 24px;
  border: none; background: #f1f5f9; color: #475569;
  border-radius: 5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 2px;
}
.cf-rr-btn-mini:hover { background: #1E5BAA; color: #fff; }

.cf-rr-table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; }
.cf-rr-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.cf-rr-table thead th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid #e2e8f0; font-weight: 600;
}
.cf-rr-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.cf-rr-table tbody tr:hover { background: #fafbfd; }
.cf-rr-table code {
  background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #475569;
}

.cf-rr-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600;
}

/* Modal overlay */
.cf-rr-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.cf-rr-modal {
  background: #fff;
  border-radius: 12px;
  width: min(560px, 95vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(15,23,42,.3);
  z-index: 10000;
  overflow: hidden;
}
.cf-rr-close {
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 6px; color: #64748b; cursor: pointer;
}
.cf-rr-close:hover { background: #f1f5f9; color: #0f172a; }
.cf-rr-body { padding: 18px 22px; overflow-y: auto; flex: 1; }

.cf-rr-form-row { margin-bottom: 10px; }
.cf-rr-form-row label {
  display: block;
  font-size: 11px; color: #64748b; font-weight: 500;
  margin-bottom: 4px;
}
.cf-rr-form-row input,
.cf-rr-form-row select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 12.5px; color: #0f172a; background: #fff;
}
.cf-rr-form-row input:focus,
.cf-rr-form-row select:focus {
  outline: none;
  border-color: #1E5BAA;
  box-shadow: 0 0 0 3px rgba(30,91,170,.08);
}
