.linking-content {
  padding-top: 28px;
}


/* =====================================================
   PAGE HEADER
===================================================== */

.linking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}


.linking-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border: 1px solid #dadefb;

  border-radius: 999px;

  color: #5863cf;

  background: #f0f1ff;

  font-size: 11px;

  font-weight: 800;
}


.linking-heading h1 {
  margin-top: 10px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 29px;

  letter-spacing: -1px;
}


.linking-heading p {
  margin-top: 5px;

  color: #718095;

  font-size: 12.5px;

  line-height: 1.6;
}


.linking-actions {
  display: flex;

  gap: 8px;
}


.linking-primary,
.linking-secondary {
  min-height: 40px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 0 13px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 11px;

  font-weight: 800;
}


.linking-primary {
  color: white;

  background:
    linear-gradient(
      100deg,
      #5964d7,
      #747bef
    );
}


.linking-secondary {
  color: #55667d;

  border: 1px solid #dbe4ef;

  background: white;
}


/* =====================================================
   STATUS
===================================================== */

.linking-status-bar {
  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  gap: 9px;

  margin-bottom: 17px;
}


.status-item {
  min-height: 72px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 10px 12px;

  border: 1px solid #dfe7f0;

  border-radius: 14px;

  color: #5e6f85;

  background: white;

  cursor: pointer;

  transition: .2s ease;
}


.status-item:hover,
.status-item.active {
  border-color: #c7cdf6;

  background: #f7f7ff;

  transform: translateY(-1px);
}


.status-icon {
  width: 37px;
  height: 37px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;
}


.status-icon.all {
  color: #5c66d5;
  background: #eff0ff;
}


.status-icon.pending {
  color: #db9013;
  background: #fff4df;
}


.status-icon.proposal {
  color: #1688ff;
  background: #eaf5ff;
}


.status-icon.confirmed {
  color: #159768;
  background: #e7f8f1;
}


.status-icon.follow {
  color: #8a63db;
  background: #f2ecff;
}


.status-item strong {
  display: block;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.status-item span {
  display: block;

  margin-top: 2px;

  font-size: 10px;
}


/* =====================================================
   WORKSPACE
===================================================== */

.linking-workspace {
  display: grid;

  grid-template-columns:
    255px
    minmax(0,1fr)
    310px;

  min-height: 720px;

  overflow: hidden;

  border: 1px solid #dfe7f0;

  border-radius: 20px;

  background: white;

  box-shadow:
    0 14px 38px
    rgba(18,70,115,.05);
}


/* =====================================================
   CASE QUEUE
===================================================== */

.case-queue {
  padding: 16px;

  border-right: 1px solid #e6ecf3;

  background: #f8fbfe;
}


.queue-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;
}


.queue-header span {
  color: #626bd4;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.queue-header h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 16px;
}


.queue-header > strong {
  min-width: 27px;
  height: 27px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  color: #5c66d5;

  background: #eef0ff;

  font-size: 11px;
}


.queue-search {
  height: 36px;

  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 13px;

  padding: 0 10px;

  border: 1px solid #dee7f0;

  border-radius: 10px;

  background: white;
}


.queue-search i {
  color: #96a1b0;

  font-size: 11px;
}


.queue-search input {
  width: 100%;

  border: 0;

  outline: 0;

  background: transparent;

  color: #58677b;

  font-size: 11px;
}


.case-list {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-top: 12px;
}


.case-item {
  width: 100%;

  padding: 11px;

  border: 1px solid #e1e8f0;

  border-radius: 12px;

  color: inherit;

  background: white;

  cursor: pointer;

  text-align: left;

  transition: .2s ease;
}


.case-item:hover {
  border-color: #cbd5e1;

  transform: translateX(2px);
}


.case-item.active {
  border-color: #8f99ef;

  background:
    linear-gradient(
      120deg,
      #f5f6ff,
      #ffffff
    );

  box-shadow:
    0 8px 22px
    rgba(89,100,215,.08);
}


.case-item-top {
  display: flex;

  align-items: center;
  justify-content: space-between;
}


.case-code {
  color: #8995a5;

  font-size: 10px;

  font-weight: 700;
}


.priority-badge {
  padding: 4px 6px;

  border-radius: 999px;

  font-size: 6px;

  font-weight: 800;
}


.priority-badge.high {
  color: #cf5360;
  background: #ffedf0;
}


.priority-badge.medium {
  color: #bd7b10;
  background: #fff4df;
}


.priority-badge.low {
  color: #168c63;
  background: #e8f8f0;
}


.case-item > strong {
  display: block;

  margin-top: 7px;

  color: #061326;

  font-size: 11px;

  line-height: 1.4;
}


.case-location {
  display: flex;

  align-items: center;

  gap: 5px;

  margin-top: 7px;

  color: #76869a;

  font-size: 10px;
}


.case-location i {
  color: #1688ff;
}


.case-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-top: 9px;

  color: #8a97a7;

  font-size: 6.5px;
}


.case-state {
  padding: 4px 6px;

  border-radius: 999px;

  font-size: 6px;
}


.case-state.pending {
  color: #b47a18;
  background: #fff5e5;
}


.case-state.proposal {
  color: #1479d4;
  background: #eaf5ff;
}


.case-state.confirmed {
  color: #168c63;
  background: #e8f8f0;
}


.case-state.follow {
  color: #7653c4;
  background: #f2ecff;
}


/* =====================================================
   CASE DETAIL
===================================================== */

.case-detail {
  padding: 20px;
}


.case-detail-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding-bottom: 14px;

  border-bottom: 1px solid #edf1f5;
}


.detail-overline {
  color: #5e68d6;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.case-detail-header h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 19px;
}


.detail-status {
  padding: 6px 9px;

  border-radius: 999px;

  color: #bc7b12;

  background: #fff5e6;

  font-size: 10px;

  font-weight: 800;
}


.detail-section {
  padding: 17px 0;

  border-bottom: 1px solid #edf1f5;
}


.section-heading-small {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #64738a;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .3px;
}


.section-heading-small i {
  color: #5d68d8;
}


.detail-section h3 {
  margin-top: 10px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.detail-section > p {
  max-width: 690px;

  margin-top: 6px;

  color: #758397;

  font-size: 11px;

  line-height: 1.65;
}


.detail-properties {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 8px;

  margin-top: 14px;
}


.detail-properties > div {
  padding: 10px;

  border: 1px solid #e4ebf2;

  border-radius: 11px;

  background: #fafcff;
}


.detail-properties i {
  color: #1688ff;

  font-size: 11.5px;
}


.detail-properties span {
  display: block;

  margin-top: 7px;

  color: #8a97a8;

  font-size: 6.5px;
}


.detail-properties strong {
  display: block;

  margin-top: 3px;

  color: #061326;

  font-size: 11px;
}


/* REQUIREMENTS */

.requirement-list {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;

  margin-top: 12px;
}


.requirement-list span {
  display: flex;

  align-items: center;

  gap: 7px;

  padding: 9px 10px;

  border-radius: 10px;

  color: #5f7086;

  background: #f8fafc;

  font-size: 10.5px;
}


.requirement-list i {
  color: #18a66b;
}


/* MATCH */

.match-explanation {
  display: flex;

  align-items: center;

  gap: 14px;

  margin: 17px 0;

  padding: 14px;

  border: 1px solid #d9def8;

  border-radius: 14px;

  background:
    linear-gradient(
      120deg,
      #f6f7ff,
      #ffffff
    );
}


.match-score {
  width: 70px;
  height: 70px;

  flex: 0 0 auto;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  border-radius: 18px;

  color: #5963d4;

  background: white;

  box-shadow:
    0 8px 20px
    rgba(91,101,216,.10);
}


.match-score strong {
  font-family: "Manrope", sans-serif;

  font-size: 19px;
}


.match-score span {
  margin-top: 1px;

  font-size: 6px;
}


.match-copy > span {
  color: #5d67d6;

  font-size: 6.5px;

  font-weight: 800;

  letter-spacing: .7px;
}


.match-copy h3 {
  margin-top: 4px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 14px;
}


.match-copy p {
  margin-top: 5px;

  color: #758397;

  font-size: 10px;

  line-height: 1.5;
}


/* =====================================================
   TIMELINE
===================================================== */

.case-timeline {
  margin-top: 13px;
}


.timeline-entry {
  position: relative;

  display: flex;

  gap: 10px;

  padding: 0 0 14px;
}


.timeline-entry:not(:last-child)::before {
  content: "";

  position: absolute;

  left: 5px;
  top: 12px;

  width: 1px;
  height: calc(100% - 6px);

  background: #dfe6ee;
}


.timeline-dot {
  position: relative;

  z-index: 2;

  width: 11px;
  height: 11px;

  flex: 0 0 auto;

  margin-top: 2px;

  border: 2px solid #cbd4df;

  border-radius: 50%;

  background: white;
}


.timeline-entry.complete .timeline-dot {
  border-color: #18a66b;

  background: #18a66b;
}


.timeline-entry.current .timeline-dot {
  border-color: #6169dc;

  background: #6169dc;

  box-shadow:
    0 0 0 4px
    rgba(97,105,220,.10);
}


.timeline-entry strong {
  display: block;

  color: #061326;

  font-size: 10.5px;
}


.timeline-entry span {
  display: block;

  margin-top: 2px;

  color: #8b97a8;

  font-size: 6.5px;
}


/* =====================================================
   RECOMMENDATIONS
===================================================== */

.recommendation-panel {
  padding: 16px;

  border-left: 1px solid #e6ecf3;

  background: #fbfcff;
}


.recommendation-header {
  display: flex;

  align-items: center;
  justify-content: space-between;
}


.recommendation-header span {
  color: #5964d5;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.recommendation-header h2 {
  margin-top: 3px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 16px;
}


.recommendation-header button {
  width: 32px;
  height: 32px;

  border: 1px solid #dce4ee;

  border-radius: 9px;

  color: #66768c;

  background: white;

  cursor: pointer;
}


.recommended-list {
  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-top: 13px;
}


.recommended-card {
  padding: 12px;

  border: 1px solid #e0e7ef;

  border-radius: 13px;

  background: white;

  transition: .2s ease;
}


.recommended-card:hover {
  transform: translateY(-1px);

  border-color: #c8d3e0;
}


.recommended-card.best {
  border-color: #aeb6f2;

  background:
    linear-gradient(
      135deg,
      #f7f8ff,
      #ffffff
    );

  box-shadow:
    0 9px 24px
    rgba(91,101,216,.08);
}


.recommended-top {
  display: flex;

  align-items: center;
  justify-content: space-between;
}


.recommended-logo {
  width: 39px;
  height: 39px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: white;

  font-size: 13px;
}


.recommended-logo.blue {
  background:
    linear-gradient(
      135deg,
      #1688ff,
      #37b7da
    );
}


.recommended-logo.green {
  background:
    linear-gradient(
      135deg,
      #13845f,
      #2dbb87
    );
}


.recommended-logo.purple {
  background:
    linear-gradient(
      135deg,
      #5865c9,
      #8379ef
    );
}


.match-percentage {
  text-align: right;
}


.match-percentage strong {
  display: block;

  color: #5863d4;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.match-percentage span {
  color: #8b97a8;

  font-size: 6px;
}


.best-label {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-top: 9px;

  padding: 4px 6px;

  border-radius: 999px;

  color: #75601a;

  background: #fff7d8;

  font-size: 6px;

  font-weight: 800;
}


.best-label i {
  color: #e1ab20;
}


.recommended-card h3 {
  margin-top: 8px;

  color: #061326;

  font-family: "Manrope", sans-serif;

  font-size: 12.5px;
}


.recommended-card > p {
  margin-top: 4px;

  color: #7b8899;

  font-size: 10px;

  line-height: 1.45;
}


.recommended-factors {
  display: flex;

  flex-direction: column;

  gap: 5px;

  margin-top: 9px;
}


.factor {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: 6.5px;
}


.factor.good {
  color: #168c63;
}


.factor.warning {
  color: #b57a18;
}


.recommended-actions {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 6px;

  margin-top: 10px;
}


.view-network-btn,
.propose-network-btn {
  min-height: 32px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


.view-network-btn {
  color: #5c6d84;

  border: 1px solid #dce5ef;

  background: white;
}


.propose-network-btn {
  color: white;

  background:
    linear-gradient(
      100deg,
      #5964d7,
      #737bef
    );
}


/* =====================================================
   DECISION BAR
===================================================== */

.decision-bar {
  position: sticky;

  bottom: 16px;

  z-index: 20;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 16px;

  padding: 13px 15px;

  border: 1px solid #d7e0ec;

  border-radius: 15px;

  background: rgba(255,255,255,.94);

  backdrop-filter: blur(12px);

  box-shadow:
    0 15px 40px
    rgba(19,65,110,.12);
}


.decision-copy {
  display: flex;

  align-items: center;

  gap: 10px;
}


.decision-icon {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: #5964d5;

  background: #f0f1ff;
}


.decision-copy strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.decision-copy span {
  display: block;

  margin-top: 3px;

  color: #8190a2;

  font-size: 10px;
}


.decision-actions {
  display: flex;

  gap: 7px;
}


.decision-reject,
.decision-confirm {
  min-height: 37px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 0 12px;

  border-radius: 9px;

  cursor: pointer;

  font-size: 10.5px;

  font-weight: 800;
}


.decision-reject {
  color: #c4525e;

  border: 1px solid #f0cfd3;

  background: #fff7f8;
}


.decision-confirm {
  color: white;

  background:
    linear-gradient(
      100deg,
      #5964d7,
      #737bef
    );
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

  .linking-workspace {
    grid-template-columns:
      230px
      1fr;
  }


  .recommendation-panel {
    grid-column:
      1 / -1;

    border-left:
      0;

    border-top:
      1px solid #e6ecf3;
  }


  .recommended-list {
    display: grid;

    grid-template-columns:
      repeat(3,1fr);
  }

}


@media (max-width: 900px) {

  .linking-status-bar {
    grid-template-columns:
      repeat(2,1fr);
  }


  .linking-workspace {
    grid-template-columns:
      1fr;
  }


  .case-queue {
    border-right: 0;

    border-bottom:
      1px solid #e6ecf3;
  }


  .case-list {
    display: grid;

    grid-template-columns:
      repeat(2,1fr);
  }


  .recommended-list {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 600px) {

  .linking-heading {
    align-items: flex-start;

    flex-direction: column;
  }


  .linking-actions {
    width: 100%;

    flex-direction: column;
  }


  .linking-primary,
  .linking-secondary {
    justify-content: center;
  }


  .linking-status-bar,
  .case-list {
    grid-template-columns:
      1fr;
  }


  .detail-properties,
  .requirement-list {
    grid-template-columns:
      1fr;
  }


  .decision-bar {
    align-items: flex-start;

    flex-direction: column;
  }


  .decision-actions {
    width: 100%;

    flex-direction: column;
  }


  .decision-reject,
  .decision-confirm {
    justify-content: center;
  }

}