@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src: url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2");
}

.portal-sidebar {
  padding: 0.75rem 0.5rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.portal-brand-logo {
  width: 230px;
  height: auto;
  max-width: 100%;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-bs-theme="light"] .portal-brand-logo {
  border-color: rgba(33, 37, 41, 0.2);
}

.portal-sidebar .sidebar-wrapper {
  height: 100%;
}

.portal-main-column {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#portal-main-content {
  min-width: 0;
  max-width: 100%;
}

.admin-db-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-db-table-scroll table {
  width: max-content;
  min-width: 100%;
}

.admin-db-table-scroll th,
.admin-db-table-scroll td {
  white-space: nowrap;
}

.portal-sidebar .sidebar-menu .nav-link {
  align-items: center;
}

.portal-sidebar .sidebar-menu .nav-link p {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.portal-sidebar .sidebar-menu .nav-treeview > .nav-item > .nav-link {
  padding-left: 1.75rem;
}

.portal-sidebar .sidebar-menu .nav-treeview > .nav-item > .nav-link .nav-icon {
  margin-right: 0.25rem;
}

.grc-feed-item .grc-feed-thumb {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.grc-feed-item .grc-feed-excerpt {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-2px);
  transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.grc-feed-item:hover .grc-feed-excerpt,
.grc-feed-item:focus-visible .grc-feed-excerpt {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .portal-sidebar {
    max-width: 22rem;
  }
}

body.portal-shell {
  background: linear-gradient(180deg, #11161a 0%, #0a0e11 100%);
}

[data-bs-theme="light"] body.portal-shell {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef1f5 100%);
}

.auth-shell {
  background: radial-gradient(circle at top, #0f1418 0%, #07090b 65%);
  color: #dee2e6;
}

[data-bs-theme="light"] .auth-shell {
  background: radial-gradient(circle at top, #ffffff 0%, #eef1f5 65%);
  color: #212529;
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(33, 37, 41, 0.9);
}

[data-bs-theme="light"] .auth-card {
  border: 1px solid rgba(33, 37, 41, 0.12);
  background: #ffffff;
}

.auth-card {
  width: min(28rem, calc(100vw - 2rem));
}

.nav-link.active {
  font-weight: 600;
}

.chat-shell {
  min-height: 24rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
}

.chat-user {
  align-items: flex-end;
}

.chat-assistant {
  align-items: flex-start;
}

.chat-bubble {
  max-width: min(56rem, 100%);
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-user .chat-bubble {
  background: rgba(13, 110, 253, 0.18);
  border-color: rgba(13, 110, 253, 0.35);
}

#chat-submit-button[disabled] {
  opacity: 0.85;
}

.grc-metric-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.kanban-column {
  min-height: 8rem;
}

.kanban-column-body {
  min-height: 4rem;
}

.kanban-card {
  user-select: none;
}

.kanban-card .kanban-card-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.kanban-card .kanban-card-description {
  font-size: 0.8rem;
}

.kanban-ghost {
  opacity: 0.45;
}

.kanban-chosen {
  cursor: grabbing;
}

.kanban-empty-hint {
  pointer-events: none;
}

/* Task category badges. Each category has its own color so the lane
   contents can be scanned quickly. The base badge style comes from
   Bootstrap's .badge; these rules only override background and text. */
.kanban-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25em 0.55em;
  border-radius: 999px;
  color: #fff;
}

.kanban-category-none {
  background-color: #6c757d;
}

.kanban-category-request {
  background-color: #0dcaf0;
  color: #062b30;
}

.kanban-category-feature {
  background-color: #0d6efd;
}

.kanban-category-bug {
  background-color: #dc3545;
}

.kanban-category-ideas {
  background-color: #ffc107;
  color: #1f1300;
}

.kanban-category-research {
  background-color: #198754;
}

.kanban-category-tech_debt {
  background-color: #6f42c1;
}

.kanban-card-updated {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.kanban-card-creator {
  font-size: 0.75rem;
  display: inline-block;
}

/* Chevron icon in collapse headers rotates when the panel is expanded. */
.kanban-collapse-chevron {
  transition: transform 150ms ease-in-out;
}

button[aria-expanded="true"] .kanban-collapse-chevron {
  transform: rotate(180deg);
}
