@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

.dataTables_wrapper {
  max-width: 100%;
}

.dataTables_wrapper table.dataTable {
  width: 100% !important;
}

/* DataTables (Bootstrap 5 integration) uses .row wrappers that can introduce
   slight horizontal overflow due to negative margins. Neutralize that so the
   table chrome never exceeds 100% width (important for htmx transitions). */
.dataTables_wrapper .row,
.dataTables_wrapper .dt-row {
  --bs-gutter-x: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.brand {
  font-family: 'Raleway', sans-serif !important;
  padding: 0 5px;
  font-weight: 700;
}
.form-label {
    font-weight: 600;
}
.btn-success, .btn-danger, .btn-primary, .btn-secondary, .btn-info, .btn-warning {
  color: var(--cui-white);
}
.btn:hover {
  color: var(--cui-white);
}

.nav-underline .nav-link.active,
.nav-underline .show>.nav-link {
  font-weight: normal;
}

.nav-link {
  font-size: 1rem;
}
.note-statusbar {
  background-color: white !important;
  border-top-color: white !important;
}
.note-toolbar {
      background-color: rgba(var(--cui-light-rgb)) !important;
}
.note-btn-group .note-btn {
  background-color: white !important;
}
.note-editor.note-airframe,
.note-editor.note-frame {
        border: var(--cui-border-width) solid var(--cui-border-color);
}
.sd-header__text .sd-title {
  color: var(--cui-dark) !important;
}
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
    opacity: 1;
}
.sv-action.ai-button button {
    background-color: var(--cui-success);
    color: var(--cui-white);
}
.sv-action.ai-button .svc-toolbar-item__icon use {
    fill: var(--cui-white) !important;
}
.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.text-truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
  background-color: #2E8AE6;
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.18);
}

.profile-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
}

.profile-hero-sidebar {
  position: relative;
  z-index: 1;
}

.profile-hero-panel {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.profile-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991.98px) {
  .profile-hero-sidebar {
    z-index: auto;
  }
}

.card:not(.border) {
    border: none;
    border-radius: .75rem;
}
.card:not(.shadow-sm) {
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08) !important;
}

.aside {
  width: 340px;
  min-width: 340px;
  transition: transform 0.3s ease;
  z-index: 1010;
}
@media (max-width: 991.98px) {
    .aside
    {
        z-index: 1080;
    }
}

/* Smooth HTMX swaps for the cohort publications pane (reduce reload flicker). */
#CohortPublicationsPaneContent.htmx-swapping,
#CohortPublicationsPaneContent.htmx-settling {
  transition: opacity 150ms ease-in-out;
}

#CohortPublicationsPaneContent.htmx-swapping {
  opacity: 0.35;
}

#CohortPublicationsPaneContent.htmx-settling {
  opacity: 1;
}