/* Shared productivity components for legacy Kanisa Langu pages. */

.kl-form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #e1e7ef;
  border-radius: 13px;
  background: #fff;
}

.kl-form-progress-copy {
  min-width: 170px;
}

.kl-form-progress-copy strong,
.kl-form-progress-copy span {
  display: block;
}

.kl-form-progress-copy strong {
  margin-bottom: 2px;
  color: #2d3b52;
  font-size: .8rem;
}

.kl-form-progress-copy span {
  color: #748196;
  font-size: .72rem;
}

.kl-form-progress-track {
  width: min(320px, 45%);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.kl-form-progress-value {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #5d87ff;
  transition: width .2s ease;
}

.kl-form-progress.is-complete {
  border-color: #bfe1cf;
  background: #fbfffd;
}

.kl-form-progress.is-complete .kl-form-progress-value {
  background: #18794e;
}

.kl-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 13px;
  border: 1px solid #e1e7ef;
  border-radius: 13px;
  background: #fff;
}

.kl-table-search {
  position: relative;
  width: min(480px, 100%);
}

.kl-table-search i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #8490a3;
  transform: translateY(-50%);
  pointer-events: none;
}

.kl-table-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 38px 8px 38px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #2d3b52;
  font-size: .8rem;
}

.kl-table-search input:focus {
  border-color: #9db5ff;
  box-shadow: 0 0 0 3px rgba(93, 135, 255, .1);
}

.kl-table-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #748196;
  transform: translateY(-50%);
}

.kl-table-search-clear.is-visible {
  display: grid;
}

.kl-table-result-count {
  flex: 0 0 auto;
  color: #718096;
  font-size: .75rem;
  font-weight: 650;
  white-space: nowrap;
}

.kl-table-no-results {
  display: none;
  padding: 28px 18px;
  border: 1px dashed #ccd5e1;
  border-radius: 12px;
  background: #fff;
  color: #718096;
  text-align: center;
  font-size: .82rem;
}

.kl-table-no-results.is-visible {
  display: block;
}

.kl-file-input-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #748196;
  font-size: .74rem;
}

.kl-file-input-status i {
  color: #5d87ff;
}

@media (max-width: 767.98px) {
  .kl-form-progress,
  .kl-table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .kl-form-progress-track,
  .kl-table-search {
    width: 100%;
  }

  .kl-table-result-count {
    white-space: normal;
  }
}
