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


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

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

  gap: 20px;

  margin-bottom: 18px;
}


.tracking-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border: 1px solid #cde9df;

  border-radius: 999px;

  color: #168b63;

  background: #ebf8f2;

  font-size: 11px;

  font-weight: 800;
}


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

  color: #061326;

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

  font-size: 29px;

  letter-spacing: -1px;
}


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

  color: #718095;

  font-size: 12.5px;

  line-height: 1.6;
}


.tracking-actions {
  display: flex;

  gap: 8px;
}


.tracking-primary,
.tracking-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;
}


.tracking-primary {
  color: white;

  background:
    linear-gradient(
      100deg,
      #12845f,
      #21aa79
    );

  box-shadow:
    0 10px 24px
    rgba(24,166,107,.18);
}


.tracking-secondary {
  color: #55667d;

  border: 1px solid #dbe4ef;

  background: white;
}


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

.tracking-status-row {
  display: grid;

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

  gap: 10px;

  margin-bottom: 17px;
}


.tracking-status {
  min-height: 71px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 10px 12px;

  border: 1px solid #dfe7f0;

  border-radius: 14px;

  color: #607086;

  background: white;

  cursor: pointer;

  transition: .2s ease;
}


.tracking-status:hover,
.tracking-status.active {
  border-color: #bee2d3;

  background: #f7fcfa;

  transform: translateY(-1px);
}


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

  display: flex;

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

  border-radius: 11px;
}


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


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


.tracking-status-icon.orange {
  color: #d58b11;
  background: #fff4df;
}


.tracking-status-icon.red {
  color: #d55763;
  background: #ffedf0;
}


.tracking-status strong {
  display: block;

  color: #061326;

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

  font-size: 15px;
}


.tracking-status span {
  display: block;

  margin-top: 2px;

  font-size: 10px;
}


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

.tracking-workspace {
  display: grid;

  grid-template-columns:
    250px
    minmax(0,1fr)
    285px;

  min-height: 760px;

  overflow: hidden;

  border: 1px solid #dfe7f0;

  border-radius: 20px;

  background: white;

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


/* =====================================================
   CASES LEFT
===================================================== */

.tracking-cases {
  padding: 16px;

  border-right: 1px solid #e6ecf3;

  background: #f8fbfe;
}


.tracking-cases-header {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;
}


.tracking-cases-header span {
  color: #168b63;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


.tracking-cases-header h2 {
  margin-top: 3px;

  color: #061326;

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

  font-size: 16px;
}


.tracking-cases-header > strong {
  width: 27px;
  height: 27px;

  display: flex;

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

  border-radius: 9px;

  color: #168b63;

  background: #e9f8f1;

  font-size: 11px;
}


.tracking-case-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;
}


.tracking-case-search i {
  color: #96a1b0;

  font-size: 11px;
}


.tracking-case-search input {
  width: 100%;

  border: 0;

  outline: 0;

  color: #58677b;

  background: transparent;

  font-size: 11px;
}


.tracking-case-list {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-top: 12px;
}


.tracking-case {
  width: 100%;

  padding: 11px;

  border: 1px solid #e1e8f0;

  border-radius: 12px;

  color: inherit;

  background: white;

  cursor: pointer;

  text-align: left;

  transition: .2s ease;
}


.tracking-case:hover {
  border-color: #cbd8df;

  transform: translateX(2px);
}


.tracking-case.active {
  border-color: #9bd8bf;

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

  box-shadow:
    0 8px 22px
    rgba(24,166,107,.07);
}


.tracking-case-top {
  display: flex;

  justify-content: space-between;

  gap: 8px;
}


.tracking-case-top > span:first-child {
  color: #8995a5;

  font-size: 10px;

  font-weight: 700;
}


.tracking-health {
  padding: 4px 6px;

  border-radius: 999px;

  font-size: 6px;

  font-weight: 800;
}


.tracking-health.good {
  color: #168c63;

  background: #e8f8f0;
}


.tracking-health.review {
  color: #b97810;

  background: #fff4df;
}


.tracking-health.alert {
  color: #cc505d;

  background: #ffedf0;
}


.tracking-case > strong {
  display: block;

  margin-top: 7px;

  color: #061326;

  font-size: 11px;

  line-height: 1.4;
}


.tracking-case-network {
  display: flex;

  align-items: center;

  gap: 5px;

  margin-top: 7px;

  color: #697b90;

  font-size: 10px;
}


.tracking-case-network i {
  color: #168b63;
}


.tracking-case-bottom {
  display: flex;

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

  gap: 6px;

  margin-top: 9px;

  color: #8a97a7;

  font-size: 6.5px;
}


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

.tracking-detail {
  padding: 20px;
}


.tracking-detail-header {
  display: flex;

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

  gap: 15px;

  padding-bottom: 14px;

  border-bottom: 1px solid #edf1f5;
}


.tracking-detail-header > div > span {
  color: #168b63;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .8px;
}


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

  color: #061326;

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

  font-size: 19px;
}


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

  border-radius: 999px;

  font-size: 10px;

  font-weight: 800;
}


.tracking-detail-status.good {
  color: #168c63;

  background: #e8f8f0;
}


.tracking-detail-status.review {
  color: #b97810;

  background: #fff4df;
}


.tracking-detail-status.alert {
  color: #cc505d;

  background: #ffedf0;
}


/* =====================================================
   SUMMARY CARD
===================================================== */

.tracking-summary-card {
  padding: 16px 0;

  border-bottom: 1px solid #edf1f5;
}


.tracking-summary-head {
  display: flex;

  align-items: flex-start;

  gap: 11px;
}


.tracking-summary-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  display: flex;

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

  border-radius: 12px;

  color: #168b63;

  background: #eaf8f1;

  font-size: 14.5px;
}


.tracking-summary-head span {
  color: #168b63;

  font-size: 6.5px;

  font-weight: 800;

  letter-spacing: .7px;
}


.tracking-summary-head h3 {
  margin-top: 4px;

  color: #061326;

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

  font-size: 15px;
}


.tracking-summary-head p {
  max-width: 680px;

  margin-top: 5px;

  color: #758397;

  font-size: 11px;

  line-height: 1.6;
}


.tracking-properties {
  display: grid;

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

  gap: 8px;

  margin-top: 14px;
}


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

  border: 1px solid #e5ebf1;

  border-radius: 11px;

  background: #fafcff;
}


.tracking-properties span {
  display: block;

  color: #8a97a8;

  font-size: 6.5px;
}


.tracking-properties strong {
  display: block;

  margin-top: 4px;

  color: #061326;

  font-size: 11px;
}


/* =====================================================
   SECTION
===================================================== */

.tracking-section {
  padding: 17px 0;

  border-bottom: 1px solid #edf1f5;
}


.tracking-section-title {
  display: flex;

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

  gap: 15px;
}


.tracking-section-title > div {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #607187;

  font-size: 10px;

  font-weight: 800;
}


.tracking-section-title i {
  color: #168b63;
}


.tracking-section-title > strong {
  color: #718096;

  font-size: 10px;
}


.tracking-section-title button {
  min-height: 30px;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 0 9px;

  border: 1px solid #dbe5ef;

  border-radius: 8px;

  color: #54667c;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 700;
}


/* =====================================================
   PROGRESS
===================================================== */

.service-progress {
  display: grid;

  grid-template-columns:
    auto 1fr auto 1fr auto 1fr auto;

  align-items: center;

  gap: 5px;

  margin-top: 18px;
}


.progress-step {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;
}


.progress-step > span {
  width: 28px;
  height: 28px;

  display: flex;

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

  border: 2px solid #d7dfe8;

  border-radius: 50%;

  color: #8995a7;

  background: white;

  font-size: 10px;

  font-weight: 800;
}


.progress-step.complete > span {
  border-color: #18a66b;

  color: white;

  background: #18a66b;
}


.progress-step.current > span {
  border-color: #168b63;

  color: #168b63;

  background: #eaf8f1;

  box-shadow:
    0 0 0 5px
    rgba(24,166,107,.07);
}


.progress-step div {
  margin-top: 7px;
}


.progress-step strong {
  display: block;

  color: #061326;

  font-size: 10px;
}


.progress-step small {
  display: block;

  margin-top: 2px;

  color: #8a97a8;

  font-size: 6px;
}


.progress-line {
  height: 2px;

  background: #dfe6ed;
}


.progress-line.complete {
  background: #18a66b;
}


/* =====================================================
   VISITS
===================================================== */

.visit-list {
  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-top: 13px;
}


.visit-entry {
  display: grid;

  grid-template-columns:
    42px
    1fr;

  gap: 10px;

  padding: 11px;

  border: 1px solid #e5ebf1;

  border-radius: 12px;

  background: #fbfcfe;
}


.visit-date {
  width: 40px;
  height: 44px;

  display: flex;

  flex-direction: column;

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

  border-radius: 10px;

  color: #168b63;

  background: #eaf8f1;
}


.visit-date strong {
  font-family: "Manrope", sans-serif;

  font-size: 14.5px;
}


.visit-date span {
  font-size: 6px;

  font-weight: 800;
}


.visit-info {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}


.visit-info strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.visit-info span {
  display: block;

  margin-top: 3px;

  color: #8592a4;

  font-size: 6.5px;
}


.visit-result {
  flex: 0 0 auto;

  padding: 4px 6px;

  border-radius: 999px;

  font-size: 6px;

  font-weight: 800;
}


.visit-result.complete {
  color: #168c63;

  background: #e8f8f0;
}


.visit-entry > p {
  grid-column: 2;

  margin-top: -2px;

  color: #728096;

  font-size: 10px;

  line-height: 1.5;
}


/* =====================================================
   NOTES
===================================================== */

.tracking-note-box {
  margin-top: 11px;
}


.tracking-note-box textarea {
  width: 100%;
  min-height: 85px;

  padding: 11px;

  resize: vertical;

  border: 1px solid #dce5ee;

  border-radius: 11px;

  outline: none;

  color: #53647a;

  background: #fbfcfe;

  font-family: inherit;

  font-size: 11px;
}


.tracking-note-box textarea:focus {
  border-color: #9cd5bc;

  box-shadow:
    0 0 0 3px
    rgba(24,166,107,.06);
}


.tracking-note-box > div {
  display: flex;

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

  gap: 12px;

  margin-top: 7px;
}


.tracking-note-box span {
  color: #8a97a7;

  font-size: 6.5px;
}


.tracking-note-box button {
  min-height: 33px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 0 10px;

  border-radius: 9px;

  color: white;

  background: #168b63;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* =====================================================
   SIDE
===================================================== */

.tracking-side {
  display: flex;

  flex-direction: column;

  gap: 12px;

  padding: 15px;

  border-left: 1px solid #e6ecf3;

  background: #fbfcfe;
}


.tracking-side-card {
  padding: 14px;

  border: 1px solid #e2e8ef;

  border-radius: 14px;

  background: white;
}


.side-card-title {
  display: flex;

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

  gap: 8px;
}


.side-card-title span {
  color: #6b788b;

  font-size: 6.5px;

  font-weight: 800;

  letter-spacing: .8px;
}


.side-card-title i {
  color: #168b63;
}


/* NEXT VISIT */

.next-visit-card {
  border-color: #cce8db;

  background:
    linear-gradient(
      140deg,
      #f4fbf8,
      #ffffff
    );
}


.next-date {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 13px;
}


.next-date > strong {
  font-family: "Manrope", sans-serif;

  color: #168b63;

  font-size: 31px;
}


.next-date span {
  display: block;

  color: #061326;

  font-size: 11px;

  font-weight: 800;
}


.next-date small {
  display: block;

  margin-top: 3px;

  color: #8491a3;

  font-size: 10px;
}


.next-visit-details {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-top: 13px;

  padding-top: 11px;

  border-top: 1px solid #e8efec;
}


.next-visit-details div {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #64758a;

  font-size: 10px;
}


.next-visit-details i {
  width: 13px;

  color: #168b63;

  text-align: center;
}


.next-visit-card button {
  width: 100%;

  min-height: 33px;

  margin-top: 12px;

  border: 1px solid #cce5da;

  border-radius: 9px;

  color: #168b63;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* RESPONSIBLE */

.responsible-network {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 13px;
}


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

  display: flex;

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

  border-radius: 11px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #1688ff,
      #31b7d5
    );
}


.responsible-network strong {
  display: block;

  color: #061326;

  font-size: 11px;
}


.responsible-network span {
  display: block;

  margin-top: 2px;

  color: #8592a4;

  font-size: 6.5px;
}


.responsible-stats {
  margin-top: 12px;

  padding-top: 5px;

  border-top: 1px solid #edf1f5;
}


.responsible-stats div {
  padding: 7px 0;

  border-bottom: 1px solid #f0f3f6;
}


.responsible-stats span {
  display: block;

  color: #8995a6;

  font-size: 6px;
}


.responsible-stats strong {
  display: block;

  margin-top: 2px;

  color: #061326;

  font-size: 10px;
}


.tracking-side-card > button {
  width: 100%;

  min-height: 33px;

  margin-top: 11px;

  display: flex;

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

  gap: 6px;

  border: 1px solid #dce5ee;

  border-radius: 9px;

  color: #52667d;

  background: white;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


/* HEALTH */

.service-health {
  margin-top: 13px;
}


.service-health-score {
  display: flex;

  align-items: baseline;

  justify-content: center;
}


.service-health-score strong {
  color: #168b63;

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

  font-size: 31px;
}


.service-health-score span {
  color: #8c98a8;

  font-size: 11px;
}


.service-health > p {
  margin: 6px 0 12px;

  color: #788699;

  font-size: 10px;

  line-height: 1.5;

  text-align: center;
}


.health-check {
  display: flex;

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

  gap: 7px;

  padding: 7px 0;

  border-top: 1px solid #edf1f5;
}


.health-check span {
  color: #778599;

  font-size: 10px;
}


.health-check strong {
  color: #061326;

  font-size: 10px;
}


.good-text {
  color: #168b63 !important;
}


/* INCIDENT */

.incident-card {
  border-color: #e0e7ef;
}


.incident-empty {
  padding: 14px 5px 5px;

  text-align: center;
}


.incident-empty > div {
  width: 38px;
  height: 38px;

  display: flex;

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

  margin: auto;

  border-radius: 50%;

  color: #18a66b;

  background: #e9f8f1;
}


.incident-empty strong {
  display: block;

  margin-top: 8px;

  color: #061326;

  font-size: 11px;
}


.incident-empty span {
  display: block;

  margin-top: 4px;

  color: #8995a6;

  font-size: 6.5px;

  line-height: 1.4;
}


.report-incident-btn {
  color: #c6535f !important;

  border-color: #eed4d7 !important;

  background: #fff8f9 !important;
}


/* =====================================================
   BOTTOM
===================================================== */

.tracking-bottom-bar {
  position: sticky;

  bottom: 15px;

  z-index: 20;

  display: flex;

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

  gap: 18px;

  margin-top: 15px;

  padding: 12px 14px;

  border: 1px solid #d8e2eb;

  border-radius: 14px;

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

  backdrop-filter: blur(12px);

  box-shadow:
    0 14px 35px
    rgba(19,65,110,.10);
}


.tracking-bottom-bar > div:first-child {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #6d7d91;

  font-size: 10px;
}


.tracking-bottom-bar > div:first-child i {
  color: #1688ff;
}


.tracking-bottom-bar > div:last-child {
  display: flex;

  gap: 7px;
}


.pause-case-btn,
.close-case-btn {
  min-height: 36px;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 0 11px;

  border-radius: 9px;

  cursor: pointer;

  font-size: 10px;

  font-weight: 800;
}


.pause-case-btn {
  color: #b47713;

  border: 1px solid #efdfbe;

  background: #fff9ee;
}


.close-case-btn {
  color: white;

  background:
    linear-gradient(
      100deg,
      #13855f,
      #21aa79
    );
}


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

@media (max-width: 1200px) {

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


  .tracking-side {
    grid-column: 1 / -1;

    display: grid;

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

    border-left: 0;

    border-top: 1px solid #e6ecf3;
  }

}


@media (max-width: 900px) {

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


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


  .tracking-cases {
    border-right: 0;

    border-bottom: 1px solid #e6ecf3;
  }


  .tracking-case-list {
    display: grid;

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


  .tracking-side {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 650px) {

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

    flex-direction: column;
  }


  .tracking-actions {
    width: 100%;

    flex-direction: column;
  }


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


  .tracking-status-row,
  .tracking-case-list,
  .tracking-properties {
    grid-template-columns:
      1fr;
  }


  .service-progress {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
  }


  .progress-step {
    flex-direction: row;

    gap: 9px;

    text-align: left;
  }


  .progress-step div {
    margin-top: 0;
  }


  .progress-line {
    display: none;
  }


  .tracking-bottom-bar {
    align-items: flex-start;

    flex-direction: column;
  }


  .tracking-bottom-bar > div:last-child {
    width: 100%;

    flex-direction: column;
  }


  .pause-case-btn,
  .close-case-btn {
    justify-content: center;
  }

}