/* Container */
.che-docs { max-width: 1200px; margin: 0 auto; }
.che-docs__title { font-size: 22px; margin: 18px 0 10px; font-weight: 700; }
.che-docs__subtitle { font-size: 16px; margin: 16px 0 6px; font-weight: 700; }
.che-docs__subtitle--spaced { margin-top: 18px; }
.che-docs__help { margin: 0 0 10px; color: #555; font-size: 14px; }

.che-docs__error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  padding: 10px;
  margin: 8px 0;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.che-required { color: red; }

/* Buttons */
.che-btn {
  padding: 8px 14px;
  border: 1px solid #c9c9c9;
  background: #f3f3f3;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.che-btn--primary { background: #1B4F72; border-color: #1B4F72; color: #fff; }
.che-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.che-filebtn input { display: none; }
.che-filelabel { color: #555; margin-left: 8px; font-size: 14px; }

/* Dropzone */
.che-dropzone {
  border: 2px dashed #c9c9c9;
  border-radius: 4px;
  padding: 18px;
  text-align: center;
  color: #666;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.che-dropzone__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.che-hint { font-size: 12px; color: #666; margin-top: 6px; }

/* Preview tiles */
.che-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.che-tile {
  position: relative;
  width: 100px;
  height: 120px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.che-tile img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-bottom: 1px solid #e5e5e5;
}
.che-tile__icon { font-size: 40px; color: #1B4F72; padding-top: 16px; }
.che-tile__name {
  font-size: 12px;
  text-align: center;
  padding: 4px 6px;
  word-break: break-all;
  line-height: 1.2;
  color: #444;
}
.che-tile__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d9534f;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 9999; 
  padding: 0;
}

/* Review table */
.che-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.che-table th, .che-table td { border: 1px solid #e5e5e5; padding: 8px 10px; font-size: 14px; text-align: left; }
.che-table th { background: #f7f7f7; }
.che-table input[type="text"] { width: 240px; padding: 6px; font-size: 14px; }
