/* Scoped from CI `Views/family/card.php` */
.family-card-root {
  font-size: 1rem;
  color: #12344d;
}
.family-card-root .fc-header {
  background: linear-gradient(135deg, #2d89ec, #2161a7);
  color: #fff;
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
}
.family-card-root .fc-title {
  font-size: 1.3rem;
  letter-spacing: 0.2px;
}
.family-card-root .fc-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0b5ed7;
}
.family-card-root .fc-name:hover {
  color: #084298;
  text-decoration: underline;
}
.family-card-root .fc-badges .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 500;
}
.family-card-root .nav-tabs {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.family-card-root .nav-tabs .nav-link {
  color: #2161a7;
  font-weight: 600;
}
.family-card-root .nav-tabs .nav-link:hover {
  color: #0b5ed7;
}
.family-card-root .nav-tabs .nav-link.active {
  color: #0b5ed7;
  border-color: #2d89ec #2d89ec #fff;
}
.family-card-root h6 {
  font-size: 1.05rem;
  color: #143b63;
}
.family-card-root .table thead th {
  background: #f1f5fb;
  color: #143b63;
  font-size: 0.9rem;
}
.family-card-root .table tbody td {
  font-size: 1rem;
}
.family-card-root .list-group-item {
  font-size: 1rem;
}
.family-card-root .badge {
  font-size: 0.75rem;
}
.family-card-root .nav-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.family-card-root .fc-table-stack thead {
  display: table-header-group;
}
.family-card-root .fc-table-stack td {
  vertical-align: top;
}
.family-card-root .fc-table-stack td[data-label] {
  word-break: break-word;
}
@media (max-width: 576px) {
  .family-card-root {
    font-size: 0.98rem;
  }
  .family-card-root .fc-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .family-card-root .fc-badges {
    width: 100%;
  }
  .family-card-root .fc-badges .badge {
    width: 100%;
    text-align: left;
  }
  .family-card-root .nav-tabs .nav-link {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
  }
  .family-card-root .table-responsive {
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }
  .family-card-root .fc-table-stack thead {
    display: none;
  }
  .family-card-root .fc-table-stack tbody tr {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .family-card-root .fc-table-stack tbody tr:last-child {
    margin-bottom: 0;
  }
  .family-card-root .fc-table-stack tbody td {
    display: block;
    width: 100%;
    border: 0 !important;
    padding: 0.15rem 0;
  }
  .family-card-root .fc-table-stack tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 0.05rem;
    font-weight: 600;
  }
}
