.truth-page .content-header {
  padding: 20px 8px 8px;
}
.truth-page .content-header h1 {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 0;
}
.truth-card {
  border: 1px solid #dce3eb;
  border-radius: 10px;
  box-shadow: 0 5px 22px #25324a10;
  overflow: hidden;
}
.truth-card .card-header {
  background: #007bff;
  border-bottom: 0;
  padding: 17px 22px;
}
.truth-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.truth-card .card-body {
  padding: 22px;
}
.truth-row {
  display: grid;
  grid-template-columns: minmax(170px, 22%) minmax(0, 1fr);
  border: 1px solid #dce3eb;
  border-bottom: 0;
  min-height: 57px;
}
.truth-row:last-of-type {
  border-bottom: 1px solid #dce3eb;
}
.truth-row > label,
.truth-label {
  margin: 0;
  padding: 13px 15px;
  font-weight: 600;
  background: #f7f9fc;
  border-right: 1px solid #dce3eb;
  align-content: center;
}
.truth-row > div {
  padding: 9px 13px;
  min-width: 0;
  align-content: center;
}
.truth-row small {
  color: #69788d;
  margin-left: 9px;
}
.truth-row .form-control {
  /* max-width: 680px; */
}
.truth-row .truth-short {
  /* max-width: 210px; */
  display: inline-block;
}
.truth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
.truth-options label {
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.truth-options input[type="radio"] {
  accent-color: #2177d2;
  margin-right: 4px;
}
.dynamic-table-scroll {
  width: 100%;
  overflow-x: auto;
}
#dynamicTable {
  margin: 0;
  min-width: 500px;
}
#dynamicTable th,
#dynamicTable td {
  vertical-align: middle;
  white-space: nowrap;
}
#dynamicTable td:first-child {
  font-weight: 600;
  background: #f7f9fc;
}
#dynamicTable .form-control {
  min-width: 115px;
}
.truth-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.truth-number-grid label {
  font-weight: 500;
  margin: 0;
}
.truth-number-grid .form-control {
  margin-top: 5px;
}
.truth-upload-row {
  background: #fff;
}
.truth-upload-control {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  width: 100%;
}
.truth-upload-picker {
  min-width: 0;
  position: relative;
}
.truth-file-input {
  cursor: pointer;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.truth-upload-label {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px dashed #adc2d9;
  border-radius: 9px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 12px;
  height: 100%;
  min-height: 86px;
  padding: 13px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 100%;
}
.truth-upload-label:hover,
.truth-file-input:hover + .truth-upload-label,
.has-file .truth-upload-label {
  background: #f3f8ff;
  border-color: #2177d2;
}
.truth-file-input:focus + .truth-upload-label {
  border-color: #2177d2;
  box-shadow: 0 0 0 3px rgb(33 119 210 / 16%);
}
.truth-file-input:disabled + .truth-upload-label {
  cursor: not-allowed;
  opacity: 0.65;
}
.truth-upload-icon {
  align-items: center;
  background: #e8f2fd;
  border: 1px solid #cee1f7;
  border-radius: 9px;
  color: #2177d2;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.05rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.truth-upload-copy {
  display: block;
  flex: 1;
  min-width: 0;
}
.truth-upload-title,
.truth-upload-name,
.truth-preview-name,
.truth-preview-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.truth-upload-title {
  color: #25324a;
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 3px;
}
.truth-upload-name {
  color: #6b7b90;
  font-size: 0.78rem;
}
.truth-upload-action {
  background: #fff;
  border: 1px solid #c8d5e3;
  border-radius: 6px;
  color: #285d96;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
}
.truth-media-preview {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  min-height: 86px;
  min-width: 0;
  overflow: hidden;
  padding: 8px 38px 8px 8px;
  position: relative;
}
.truth-media-preview [hidden] {
  display: none !important;
}
.truth-preview-media {
  background: #111827;
  border: 0;
  border-radius: 6px;
  flex: 0 0 96px;
  height: 68px;
  object-fit: cover;
  width: 96px;
}
.truth-preview-copy {
  min-width: 0;
}
.truth-preview-name {
  color: #25324a;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.truth-preview-meta {
  color: #6b7b90;
  font-size: 0.76rem;
}
.truth-preview-empty {
  align-items: center;
  color: #7a8ba0;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 5px;
  justify-content: center;
  min-height: 68px;
  min-width: 0;
}
.truth-preview-empty i {
  color: #9aacbf;
  font-size: 1.25rem;
}
.truth-remove-upload {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 50%;
  color: #62738a;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 26px;
}
.truth-remove-upload:hover {
  background: #fdecea;
  border-color: #f4b5ae;
  color: #b42318;
}
.truth-upload-hint {
  color: #6b7b90;
  font-size: 0.76rem;
  grid-column: 1 / -1;
  line-height: 1.4;
  margin-top: -3px;
}
.truth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}
.truth-actions .btn {
  min-width: 105px;
}
.truth-row .error {
  color: #b42318;
  font-size: 0.85rem;
  display: block;
  margin: 5px 0 0;
}
@media (max-width: 960px) {
  .truth-upload-control {
    grid-template-columns: 1fr;
  }
  .truth-upload-label,
  .truth-media-preview {
    min-height: 80px;
  }
}
@media (max-width: 400px) {
  .truth-upload-label {
    gap: 9px;
    padding: 11px;
  }
  .truth-upload-action {
    display: none;
  }
  .truth-preview-media {
    flex-basis: 84px;
    width: 84px;
  }
}
@media (max-width: 700px) {
  .truth-card .card-body {
    padding: 12px;
  }
  .truth-row {
    grid-template-columns: 1fr;
  }
  .truth-row > label,
  .truth-label {
    border-right: 0;
    border-bottom: 1px solid #dce3eb;
    padding: 8px 12px;
  }
  .truth-number-grid {
    grid-template-columns: 1fr;
  }
  .truth-row small {
    display: block;
    margin: 4px 0 0;
  }
}
