.project-summary-card {
  --project-summary-ink: #18352c;
  --project-summary-muted: #587068;
  --project-summary-accent: #21865a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  color: var(--project-summary-ink);
  background: linear-gradient(115deg, #edf7f0 0%, #e3f1e7 100%);
  border: 1px solid #d2e6d8;
  border-left: 4px solid var(--project-summary-accent);
  border-radius: .9rem;
  box-shadow: 0 .35rem 1.1rem rgba(30, 75, 53, .07);
}

.project-summary-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-summary-content h5 {
  margin-bottom: .4rem !important;
  color: #173c2c;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.project-summary-content h5 u {
  color: #146a45;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.project-summary-content p {
  color: var(--project-summary-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.project-summary-actions {
  display: flex;
  flex: 0 0 12.5rem;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: .45rem;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(193, 220, 202, .9);
  border-radius: .75rem;
}

.project-summary-actions .project-summary-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  min-height: 2.55rem;
  padding: .55rem .7rem;
  border-radius: .55rem !important;
  font-size: .84rem;
  font-weight: 650;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.project-summary-actions .project-summary-action i {
  width: 1.15rem;
  text-align: center;
}

.project-summary-action-primary {
  color: #fff !important;
  background: #21865a !important;
  border-color: #21865a !important;
}

.project-summary-action-primary:hover,
.project-summary-action-primary:focus-visible {
  background: #176b46 !important;
  border-color: #176b46 !important;
  transform: translateY(-1px);
}

.project-summary-actions .project-summary-action-history {
  color: #315c49 !important;
  background: #f3f8f4 !important;
  border: 1px solid #dce9df !important;
}

.project-summary-actions .project-summary-action-history:hover,
.project-summary-actions .project-summary-action-history:focus-visible {
  color: #176b46 !important;
  background: #e8f3eb !important;
  border-color: #c8dfd0 !important;
}

.project-operation-history-card > .card-header {
  padding: .55rem .9rem;
}

.project-operation-history-modal .project-history-table {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  font-size: .78rem;
  line-height: 1.4;
}

.project-operation-history-modal .project-history-table > :not(caption) > * > * {
  padding: .38rem .5rem;
}

.project-operation-history-modal .project-history-table thead th {
  color: #526476;
  background: #f4f8f5;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-operation-history-modal .project-history-table th:nth-child(1) { width: 15%; }
.project-operation-history-modal .project-history-table th:nth-child(2) { width: 24%; }
.project-operation-history-modal .project-history-table th:nth-child(3) { width: 19%; }
.project-operation-history-modal .project-history-table th:nth-child(4) { width: 42%; }

.project-operation-history-modal .project-history-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.project-operation-history-modal .project-history-table td.text-nowrap {
  white-space: nowrap !important;
  overflow-wrap: normal;
}

.project-operation-history-modal .project-history-table .small {
  font-size: .7rem;
  line-height: 1.35;
}

.project-operation-history-card > .card-header .card-title {
  font-size: 1rem;
}

.project-operation-history-card > .card-body {
  padding: .7rem .9rem;
}

.project-operation-history-card .project-history-table {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  font-size: .78rem;
  line-height: 1.4;
}

.project-operation-history-card .project-history-table > :not(caption) > * > * {
  padding: .38rem .5rem;
}

.project-operation-history-card .project-history-table thead th {
  color: #526476;
  background: #f4f8f5;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-operation-history-card .project-history-table th:nth-child(1) { width: 15%; }
.project-operation-history-card .project-history-table th:nth-child(2) { width: 24%; }
.project-operation-history-card .project-history-table th:nth-child(3) { width: 19%; }
.project-operation-history-card .project-history-table th:nth-child(4) { width: 42%; }

.project-operation-history-card .project-history-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.project-operation-history-card .project-history-table td.text-nowrap {
  white-space: nowrap !important;
  overflow-wrap: normal;
}

.project-operation-history-card .project-history-table .small {
  font-size: .7rem;
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  .project-summary-card {
    align-items: stretch;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
  }

  .project-summary-actions {
    flex: 1 1 auto;
    flex-direction: row;
  }

  .project-summary-actions .project-summary-action {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }

  .project-operation-history-card > .card-body {
    padding: .55rem;
  }

  .project-operation-history-card .project-history-table > :not(caption) > * > * {
    padding: .34rem .42rem;
  }
}

@media (max-width: 420px) {
  .project-summary-actions {
    flex-direction: column;
  }

  .project-summary-actions .project-summary-action {
    justify-content: flex-start;
    text-align: left;
  }
}
