:root {
  --brand-navy: #002a5c;
  --brand-blue: #0068b5;
  --brand-sky: #00a0e3;
  --brand-orange: #f15a29;
  --brand-charcoal: #13294b;
  --brand-light: #f5f7fa;
  --brand-muted: #7a8ca6;
}
body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  background: var(--brand-light);
  color: var(--brand-charcoal);
}
@media (min-width: 1400px) {
  .container-xxl {
    max-width: min(94vw, 1640px);
  }
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--brand-navy);
}
.app-navbar {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  padding: 0.75rem 0;
}
.app-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.app-navbar .brand-logo {
  height: 38px;
  width: auto;
}
.app-navbar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-navbar .brand-mark {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}
.app-navbar .brand-accent {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.app-navbar .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 0.92rem;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
  color: #fff;
}
.app-navbar .navbar-collapse {
  flex-wrap: nowrap;
}
.app-navbar .navbar-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-item-assignments {
  padding-right: 0.5rem;
}
.nav-alert-bubble {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #d6362a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
@media (min-width: 992px) {
  .app-navbar .navbar-nav {
    gap: 1.25rem !important;
  }
  .app-navbar .navbar-nav.align-items-lg-center {
    gap: 0.75rem !important;
  }
  .app-navbar .navbar-brand {
    margin-right: 1.25rem;
  }
}
.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
}
.navbar-toggler,
.navbar-toggler:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-gradient {
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-blue));
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}
.main-content {
  width: 100%;
  max-width: none;
}
.app-shell {
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .app-shell {
    max-width: 80vw;
  }
}
.page-header {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  box-shadow: 0 18px 36px rgba(0, 45, 98, 0.08);
  margin-bottom: 1.75rem;
}
.page-header p {
  margin: 0;
  color: var(--brand-muted);
  max-width: 640px;
}
.equipment-meta {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 12px 24px rgba(0, 45, 98, 0.06);
}
.equipment-meta .meta-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 600;
}
.equipment-meta .meta-value {
  font-weight: 600;
  color: var(--brand-charcoal);
}
.equipment-meta .meta-notes {
  border-top: 1px solid rgba(0, 45, 98, 0.08);
  padding-top: 1rem;
  margin-top: 1rem;
}
.equipment-meta .meta-notes p {
  margin-bottom: 0;
}
.equipment-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.equipment-workspace__list {
  flex: 1 1 auto;
  min-width: 0;
}
.equipment-workspace__pane {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.equipment-workspace__list table th,
.equipment-workspace__list table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equipment-tag-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}
.equipment-tag-cell__tag {
  font-weight: 600;
  color: var(--brand-charcoal);
  line-height: 1.1;
}
.equipment-tag-cell__name {
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: normal;
  text-overflow: ellipsis;
  max-width: 100%;
}
.equipment-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 1.75rem;
}
.equipment-summary__details {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.equipment-summary__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  width: 100%;
}
.equipment-summary__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}
.equipment-summary__actions {
  flex-shrink: 0;
  align-self: flex-end;
}
.equipment-summary__metrics-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  justify-self: end;
  margin-top: clamp(0.6rem, 1.5vw, 1.25rem);
}

.equipment-summary__metric-line {
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--brand-charcoal);
}

.equipment-summary__metric-label {
  font-weight: 600;
}

.equipment-summary__metric-value {
  font-weight: 600;
  margin-left: 0.35rem;
}

.chart-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-card .chart-wrapper {
  flex: 1 1 auto;
  position: relative;
}

.chart-card--slim .chart-wrapper {
  height: 400px;
}

.deliverable-chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.board-toggle-button {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.board-toggle-button--compact {
  width: 1.28rem;
  height: 1.28rem;
  font-size: 0.68rem;
}

.board-toggle-button.is-active {
  background: rgba(0, 104, 181, 0.1);
  border-color: rgba(0, 104, 181, 0.22);
  color: var(--brand-blue);
}

.deliverable-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1.1;
}

.deliverable-chip:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.deliverable-chip--stage {
  border-color: rgba(241, 90, 41, 0.35);
  background: rgba(241, 90, 41, 0.1);
  color: var(--brand-orange);
}

.deliverable-chip--stage:hover,
.deliverable-chip--stage:focus {
  border-color: rgba(241, 90, 41, 0.6);
  background: rgba(241, 90, 41, 0.18);
}

.deliverable-chip--stage-not-started {
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.12);
  color: #b0212a;
}

.deliverable-chip--stage-not-started:hover,
.deliverable-chip--stage-not-started:focus {
  border-color: rgba(220, 53, 69, 0.7);
  background: rgba(220, 53, 69, 0.2);
}

.deliverable-chip--stage-draft {
  border-color: rgba(240, 173, 78, 0.45);
  background: rgba(240, 173, 78, 0.15);
  color: #c27c20;
}

.deliverable-chip--stage-draft:hover,
.deliverable-chip--stage-draft:focus {
  border-color: rgba(240, 173, 78, 0.7);
  background: rgba(240, 173, 78, 0.24);
}

.deliverable-chip--stage-internal-review {
  border-color: rgba(241, 90, 41, 0.45);
  background: rgba(241, 90, 41, 0.12);
  color: var(--brand-orange);
}

.deliverable-chip--stage-internal-review:hover,
.deliverable-chip--stage-internal-review:focus {
  border-color: rgba(241, 90, 41, 0.7);
  background: rgba(241, 90, 41, 0.2);
}

.deliverable-chip--stage-client-review {
  border-color: rgba(87, 201, 141, 0.45);
  background: rgba(87, 201, 141, 0.14);
  color: #2f855a;
}

.deliverable-chip--stage-client-review:hover,
.deliverable-chip--stage-client-review:focus {
  border-color: rgba(87, 201, 141, 0.7);
  background: rgba(87, 201, 141, 0.22);
}

.deliverable-chip--stage-approved {
  border-color: rgba(56, 158, 13, 0.45);
  background: rgba(56, 158, 13, 0.14);
  color: #2f6f0b;
}

.deliverable-chip--stage-approved:hover,
.deliverable-chip--stage-approved:focus {
  border-color: rgba(56, 158, 13, 0.7);
  background: rgba(56, 158, 13, 0.22);
}

.deliverable-chip__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.deliverable-type-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue);
  cursor: pointer;
  transition: color 0.2s ease;
}

.deliverable-type-trigger:hover,
.deliverable-type-trigger:focus {
  color: #004980;
}

.deliverable-type-trigger:focus-visible {
  outline: 2px solid rgba(0, 104, 181, 0.5);
  outline-offset: 2px;
}

.deliverable-type-trigger__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.deliverable-type-trigger__text {
  font-weight: 600;
  color: var(--brand-charcoal);
  text-decoration: none;
}

.deliverable-type-trigger:hover .deliverable-type-trigger__text,
.deliverable-type-trigger:focus .deliverable-type-trigger__text {
  text-decoration: underline;
}

.progress.brand-progress {
  position: relative;
  height: 18px;
  background-color: rgba(0, 104, 181, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress.brand-progress .progress-bar {
  height: 100%;
  border-radius: 999px;
}

.progress.brand-progress .progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  pointer-events: none;
}

.equipment-summary__meta {
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.equipment-summary__tag {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}

.equipment-summary__sub {
  font-size: 0.9rem;
  line-height: 1.25;
}

.equipment-summary__value {
  font-weight: 400;
  color: var(--brand-charcoal);
  font-size: 0.95rem;
  white-space: nowrap;
}

.equipment-summary__label {
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .equipment-summary {
    padding-right: 0;
  }
  .equipment-summary__body {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .equipment-summary__aside {
    align-items: flex-start;
  }
  
  .equipment-summary__actions {
    align-self: flex-start;
  }
}

.equipment-pane-placeholder {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(0, 20, 50, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 320px;
}

.equipment-pane-placeholder__logo {
  width: min(160px, 40%);
  max-width: 200px;
  height: auto;
}

.equipment-pane-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.equipment-pane-content > .card {
  margin-top: 1.25rem;
}

.equipment-pane-content--panel .page-header {
  margin-bottom: 0;
}

body.equipment-pane-open {
  overflow: hidden;
}

.equipment-pane-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 48, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1045;
  pointer-events: none;
}

.equipment-pane-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.equipment-pane {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  background: #f8f9fc;
  box-shadow: -24px 0 48px rgba(12, 28, 56, 0.24);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1050;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.equipment-pane.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.equipment-pane__scroll {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.equipment-pane__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 992px) {
  .equipment-pane {
    width: 50vw;
    max-width: none;
  }
}

@media (min-width: 1440px) {
  .equipment-pane {
    width: 50vw;
    max-width: none;
  }
}

[data-equipment-row] {
  cursor: pointer;
}

[data-equipment-row]:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
}

.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 20, 50, 0.05);
}

.card-header {
  border-bottom: 1px solid rgba(0, 45, 98, 0.08);
}

.card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 45, 98, 0.08);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  background-color: rgba(0, 45, 98, 0.06);
}

.table tbody td {
  border-top: 1px solid rgba(0, 45, 98, 0.08);
}

.table-hover tbody tr:hover {
  background: rgba(0, 160, 227, 0.08);
}

.table tbody tr.is-active > * {
  background-color: rgba(0, 160, 227, 0.18) !important;
  position: relative;
}

.table tbody tr.is-active > *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-sky), var(--brand-blue));
}

.table tbody tr.is-active > *:not(:first-child)::before {
  display: none;
}

.badge {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0;
  margin-bottom: 0.5rem;
  width: 100%;
}

.column-toggle {
  position: relative;
}

.column-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.column-toggle-btn .indicator {
  font-size: 0.85em;
}

.column-toggle-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 42, 92, 0.15);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 32, 72, 0.15);
  display: none;
  z-index: 30;
}

.column-toggle.open .column-toggle-menu {
  display: block;
}

.column-toggle-menu h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-muted);
  margin-bottom: 0.5rem;
}

.column-toggle-menu label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.column-toggle-menu label:last-child {
  margin-bottom: 0;
}

.column-toggle-menu input {
  width: 1rem;
  height: 1rem;
}

.is-column-hidden {
  display: none !important;
}

.filters-card .form-label {
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  margin-bottom: 0.35rem;
}

.filters-card .form-control,
.filters-card .form-select {
  min-height: 2.5rem;
}

.filter-toggle {
  white-space: nowrap;
}

.flash-messages .alert {
  border-radius: 12px;
  border: none;
  font-weight: 600;
}

.alert-success {
  background: rgba(0, 160, 110, 0.15);
  color: #01724c;
}

.alert-info {
  background: rgba(0, 160, 227, 0.15);
  color: var(--brand-blue);
}

.alert-danger {
  background: rgba(241, 90, 41, 0.15);
  color: var(--brand-orange);
}

.app-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.7);
}

.app-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.app-footer a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-right: 1.5rem;
}

.footer-links .list-inline-item + .list-inline-item::before {
  content: '\2022';
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0.75rem;
}

select.form-select, input.form-control, textarea.form-control {
  border-radius: 12px;
  border-color: rgba(0, 45, 98, 0.15);
  box-shadow: none;
}

select.form-select:focus, input.form-control:focus, textarea.form-control:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 0.2rem rgba(0, 160, 227, 0.15);
}

.btn-primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.table-danger {
  background: rgba(241, 90, 41, 0.08) !important;
}

.badge.bg-secondary {
  background: rgba(0, 45, 98, 0.15) !important;
  color: var(--brand-navy) !important;
}

.section-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 20, 50, 0.06);
}
.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 18px 36px rgba(0, 42, 92, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 600;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.stat-card .badge {
  align-self: flex-start;
}

.text-navy {
  color: var(--brand-navy) !important;
}

.bg-gradient-blue {
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-blue)) !important;
  color: #fff !important;
  border: none;
}

.review-card .card-body {
  background: linear-gradient(180deg, rgba(0, 42, 92, 0.04), rgba(255, 255, 255, 0.85));
}

.review-tabs {
  gap: 0.5rem;
}

.review-tabs .nav-link {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
  background: rgba(0, 42, 92, 0.05);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-tabs .nav-link .badge {
  background: rgba(0, 42, 92, 0.12);
  color: var(--brand-navy);
  font-size: 0.7rem;
}

.review-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-blue));
  box-shadow: 0 10px 20px rgba(0, 42, 92, 0.18);
}

.review-tabs .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.review-tab-content {
  border-top: 1px solid rgba(0, 45, 98, 0.08);
  background: #fff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.review-action-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.review-action-form .form-control {
  min-width: 190px;
}

.review-table tbody tr td:first-child {
  min-width: 260px;
}

.status-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 42, 92, 0.1);
  color: var(--brand-navy);
}

.status-pill.pending {
  background: rgba(0, 160, 227, 0.15);
  color: var(--brand-blue);
}

.status-pill.approved {
  background: rgba(0, 160, 110, 0.18);
  color: #01724c;
}

.status-pill.rejected,
.status-pill.changes_requested {
  background: rgba(241, 90, 41, 0.16);
  color: var(--brand-orange);
}

.status-pill.commented {
  background: rgba(255, 193, 7, 0.2);
  color: #b47400;
}
.status-pill.pending_updates {
  background: rgba(241, 90, 41, 0.2);
  color: var(--brand-orange);
}

.review-cycle-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0, 42, 92, 0.08);
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-actions-stack {
  display: flex;
  flex-direction: column;
}

.reviewer-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(0, 42, 92, 0.08);
  color: var(--brand-navy);
}

.reviewer-chip--pending {
  background: rgba(0, 160, 227, 0.18);
  color: var(--brand-blue);
}

.reviewer-chip--comment {
  background: rgba(255, 193, 7, 0.22);
  color: #a06700;
}

.reviewer-chip--approved {
  background: rgba(1, 114, 76, 0.18);
  color: #015c3b;
}

.reviewer-chip--rejected {
  background: rgba(214, 54, 42, 0.2);
  color: #96230d;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 18px;
  background: rgba(0, 42, 92, 0.05);
}

.empty-state h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--brand-muted);
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 28px 55px rgba(0, 42, 92, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-card-header h1 {
  font-size: 2rem;
}

.auth-card-header p {
  color: var(--brand-muted);
}

.auth-form .form-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--brand-muted);
}

.auth-form .form-control-lg {
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.auth-form .btn-gradient {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.auth-footnote {
  text-align: center;
  font-size: 0.85rem;
}
@media (max-width: 991.98px) {
  .app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 0;
  }
  .nav-divider {
    display: none;
  }
}

.board-page-header p {
  max-width: 760px;
}

.board-page-header--compact {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.board-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.board-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 600;
}

.board-summary-chip--total {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.04));
}

.weekly-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(225px, 1fr));
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.board-lane {
  min-width: 225px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(12, 28, 56, 0.08);
  overflow: hidden;
}

.board-lane__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.board-lane__eyebrow {
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.board-lane__title {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}

.board-lane__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-lane__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--brand-charcoal);
  font-size: 0.8rem;
  font-weight: 600;
}

.board-lane__dropzone {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 320px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.015), rgba(255, 255, 255, 0.9));
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.board-lane__dropzone.is-over {
  background: rgba(0, 104, 181, 0.08);
  box-shadow: inset 0 0 0 2px rgba(0, 104, 181, 0.16);
}

.board-lane__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 0.85rem;
  font-size: 0.82rem;
  color: var(--brand-muted);
  text-align: center;
}

.board-chip {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(12, 28, 56, 0.08);
  cursor: grab;
}

.board-chip__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.board-chip--compact {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

.board-chip:active {
  cursor: grabbing;
}

.board-chip.is-dragging {
  opacity: 0.55;
  transform: rotate(1deg);
}

.board-chip__body {
  min-width: 0;
  flex: 1 1 auto;
}

.board-chip__title {
  display: block;
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.board-chip__title:hover {
  color: var(--brand-blue);
}

.board-chip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--brand-muted);
  line-height: 1.25;
}

.board-chip__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.board-chip__remove-form {
  flex: 0 0 auto;
  display: inline-flex;
}

.board-chip__note-action {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.24rem;
}

.board-chip__note-action:hover,
.board-chip__note-action:focus {
  border-color: rgba(15, 23, 42, 0.28);
  color: var(--brand-navy);
}

.board-chip__note-action--empty {
  background: rgba(15, 23, 42, 0.04);
}

.board-chip__note-action--notes {
  background: rgba(15, 23, 42, 0.08);
  color: var(--brand-navy);
}

.board-chip__note-action--watch {
  border-color: rgba(148, 163, 184, 0.48);
  background: #f8fafc;
  color: #475569;
}

.board-chip__note-action--client-input {
  border-color: rgba(0, 104, 181, 0.32);
  background: rgba(0, 104, 181, 0.1);
  color: var(--brand-blue);
}

.board-chip__note-action--decision-needed {
  border-color: rgba(245, 158, 11, 0.42);
  background: #fffbeb;
  color: #92400e;
}

.board-chip__note-action--blocked {
  border-color: rgba(220, 38, 38, 0.38);
  background: #fef2f2;
  color: #b91c1c;
}

.board-chip__remove {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1;
}

.board-chip__remove:hover {
  background: rgba(241, 90, 41, 0.16);
  color: var(--brand-orange);
}

.board-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 104, 181, 0.06);
  border: 1px solid rgba(0, 104, 181, 0.12);
}

.board-modal-summary__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.board-modal-summary__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.board-modal-dialog {
  width: min(75vw, 1200px);
  max-width: min(75vw, 1200px);
}

@media (max-width: 767.98px) {
  .weekly-board {
    display: flex;
    flex-wrap: nowrap;
  }

  .board-lane {
    flex: 0 0 280px;
  }

  .board-modal-summary {
    grid-template-columns: 1fr;
  }

  .board-modal-dialog {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }
}

.is-hidden {
  display: none !important;
}

.board-view-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.board-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  width: fit-content;
}

.board-view-toggle__button {
  border: none;
  background: transparent;
  color: var(--brand-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.board-view-toggle__button.is-active {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 8px 18px rgba(12, 28, 56, 0.08);
}

.board-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.board-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.board-filter-chip.is-active {
  background: rgba(0, 104, 181, 0.1);
  border-color: rgba(0, 104, 181, 0.24);
}

.board-filter-chip__initials,
.board-filter-chip__count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.68rem;
}

.board-filter-chip__label {
  white-space: nowrap;
}

.board-lane-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-lane-group + .board-lane-group {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.board-lane-group__items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.board-chip__assignee-row {
  margin-top: 0.45rem;
}

.board-chip__reviewers {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
}

.board-reviewers[open] .board-reviewers__summary {
  margin-bottom: 0.5rem;
}

.board-reviewers__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.board-reviewers__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.board-reviewers__summary::-webkit-details-marker {
  display: none;
}

.board-reviewers__edit {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand-navy);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.board-reviewers__edit:hover {
  background: rgba(0, 104, 181, 0.08);
}

.board-reviewers__assign {
  border: 1px dashed rgba(0, 104, 181, 0.28);
  background: rgba(0, 104, 181, 0.06);
  color: var(--brand-navy);
  border-radius: 0.9rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.board-reviewers__assign:hover {
  background: rgba(0, 104, 181, 0.1);
}

.board-reviewers__count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-navy);
  font-size: 0.68rem;
}

.board-reviewers__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.board-reviewers__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.board-reviewers__tone {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
}

.board-reviewers__tone--pending {
  background: #94a3b8;
}

.board-reviewers__tone--comment {
  background: #f4b000;
}

.board-reviewers__tone--complete {
  background: #22c55e;
}

.board-reviewers__name {
  min-width: 0;
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-reviewers__status {
  color: var(--brand-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.board-assignee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 700;
}

.board-assignee-pill--group {
  background: rgba(0, 104, 181, 0.08);
}

.board-assignee-pill__initials {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 104, 181, 0.18);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.board-assignee-pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.board-review-modal-dialog {
  max-width: min(760px, 90vw);
}

.board-picker__section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.board-picker__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 700;
}

.board-picker__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.board-picker-chip {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.board-picker-chip.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.board-picker-chip--equipment {
  border-radius: 14px;
}

.board-picker__deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.board-deliverable-option {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 8px 18px rgba(12, 28, 56, 0.04);
}

.board-deliverable-option.is-active {
  border-color: var(--brand-blue);
  background: rgba(0, 104, 181, 0.08);
  box-shadow: 0 10px 22px rgba(0, 104, 181, 0.1);
}

.board-deliverable-option__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
}

.board-deliverable-option__meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--brand-muted);
  line-height: 1.3;
}

.board-picker__selected,
.board-picker__hint {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--brand-muted);
  font-size: 0.84rem;
}

.board-chip__attention {
  margin-top: 0.5rem;
}

.board-attention-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.board-attention-trigger.is-flagged {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fff7ed;
  color: #7c2d12;
}

.board-attention-trigger__mark,
.board-attention-trigger__count {
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.68rem;
}

.board-attention-trigger.is-flagged .board-attention-trigger__mark {
  background: #f59e0b;
  color: #fff;
}

.board-attention-trigger__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-chip__attention-text {
  margin-top: 0.35rem;
  color: var(--brand-muted);
  font-size: 0.72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-attention-modal-dialog {
  max-width: min(780px, 92vw);
}

.board-note-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
}

.board-note-list--equipment {
  max-height: 14rem;
}

.board-note-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.board-note-list__content {
  min-width: 0;
  flex: 1 1 auto;
}

.board-note-list__body {
  color: var(--brand-navy);
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.board-note-list__meta,
.board-note-list__empty {
  color: var(--brand-muted);
  font-size: 0.73rem;
}

.board-note-list__meta {
  margin-top: 0.45rem;
  font-weight: 700;
}

.board-note-list__delete {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1;
}

.board-note-list__delete:hover,
.board-note-list__delete:focus {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.deliverable-attention-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 36rem;
  color: var(--brand-muted);
  font-size: 0.76rem;
}

.deliverable-attention-summary__flag,
.deliverable-attention-summary__count {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}

.deliverable-attention-summary__flag {
  padding: 0.18rem 0.5rem;
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.deliverable-attention-summary__count {
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.35rem;
  background: rgba(15, 23, 42, 0.07);
  color: var(--brand-navy);
}

.deliverable-attention-summary__text {
  min-width: 10rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
