.fb-body {
  background: #f3f4f6;
}

.fb-wrap {
  max-width: 980px;
  margin: 0 auto;
}

/* Topbar */
.fb-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.fb-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.fb-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fb-brand img {
  height: 44px;
  width: auto;
}

.fb-brand small {
  display: block;
  color: rgba(0, 0, 0, .55);
  font-weight: 600;
}

.fb-userbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #e9ecef;
}

.fb-usertext {
  line-height: 1.1;
}

.fb-usertext .n {
  font-weight: 700;
}

.fb-usertext .e {
  font-size: .85rem;
  color: rgba(0, 0, 0, .55);
}

.fb-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.fb-iconbtn img {
  height: 40px;
}

.fb-iconbtn.blue {
  background: #2F56E8;
}

.fb-iconbtn.orange {
  background: #F59E0B;
}

.fb-iconbtn.gray {
  background: #E5E7EB;
}

.fb-iconbtn.green {
  background: #22C55E;
}

.fb-iconbtn.red {
  background: #EF4444;
}

/* Cards */
.fb-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.fb-card-h {
  padding: 18px 18px 0 18px;
}

.fb-card-b {
  padding: 18px;
}

.fb-h1 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.fb-sub {
  color: rgba(0, 0, 0, .55);
  margin-top: 2px;
}

/* Voltar / breadcrumb simples */
.fb-backwrap{ margin-bottom: 10px; }
.fb-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: rgba(0,0,0,.70);
  text-decoration: none;
  font-weight: 600;
}
.fb-back:hover{ color: rgba(0,0,0,.85); }

.fb-iconbtn.disabled{
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inputs */
.fb-input {
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.fb-input:focus {
  box-shadow: 0 0 0 .2rem rgba(47, 86, 232, .15);
  border-color: rgba(47, 86, 232, .55);
}

.fb-btn {
  border-radius: 8px;
  height: 48px;
  /* font-weight: 600; */
}

/* Table */
.fb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.fb-table thead th {
  font-size: .85rem;
  color: rgba(0, 0, 0, .55);
  font-weight: 700;
  padding: 0 12px 6px 12px;
}

.fb-row {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
}

.fb-row td {
  padding: 14px 12px;
  vertical-align: middle;
}

.fb-row td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.fb-row td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.fb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  /* font-weight: 800; */
  font-size: .8rem;
}

.fb-pill.ok {
  background: #DCFCE7;
  color: #166534;
}

.fb-pill.off {
  background: #FEE2E2;
  color: #991B1B;
}

.fb-pill.draft {
  background: #E5E7EB;
  color: #111827;
}

.fb-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Search bar */
.fb-searchbar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fb-searchbar .fb-input {
  flex: 1;
}

@media (max-width: 768px) {
  .fb-topbar-inner {
    padding: 10px 0;
  }

  .fb-brand img {
    height: 40px;
  }

  .fb-wrap {
    padding: 0 14px;
  }

  .fb-table {
    border-spacing: 0 8px;
  }
}

.border {
  border: var(--bs-border-width) var(--bs-border-style) #eeeeee !important;
}