.ft-doc-field {
  margin-top: 8px;
}
.ft-doc-drop {
  position: relative;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.ft-doc-drop.is-dragover {
  border-color: #0f766e;
  background: #f0fdfa;
}
.ft-doc-drop h3 {
  font-size: 16px;
  margin: 8px 0 4px;
}
.ft-doc-drop p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.ft-doc-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ft-doc-pending,
.ft-doc-existing {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.ft-doc-file,
.ft-doc-existing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.ft-doc-existing.is-removed {
  opacity: 0.55;
  text-decoration: line-through;
}
.ft-doc-file-name,
.ft-doc-name {
  flex: 1 1 160px;
  word-break: break-word;
  font-weight: 600;
}
.ft-doc-meta {
  color: #64748b;
  font-size: 12px;
}
.ft-doc-progress {
  margin-top: 8px;
  font-size: 13px;
  color: #0f766e;
}
.ft-doc-list {
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.ft-doc-row .fa {
  font-size: 22px;
  color: #0f766e;
  width: 28px;
  text-align: center;
}
.ft-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.ft-doc-preview {
  flex: 1 1 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.ft-doc-preview__status {
  margin: 0;
  padding: 14px 12px;
  color: #64748b;
  font-size: 13px;
}
.ft-doc-preview__status[hidden] {
  display: none !important;
}
.ft-doc-preview__status.is-error {
  color: #b91c1c;
}
.ft-doc-preview__pages {
  max-height: 420px;
  overflow: auto;
  background: #e2e8f0;
  padding: 8px;
}
.ft-doc-preview__pages canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.ft-doc-preview__frame {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: #fff;
}
.ft-doc-preview__frame[hidden] {
  display: none !important;
}
.ft-doc-preview__note {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: left;
}
.ft-doc-preview-slot {
  flex: 1 1 100%;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
}
.ft-doc-reader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  padding: 12px;
}
.ft-doc-reader[hidden],
#ftDocDownload[hidden] {
  display: none !important;
}
.ft-doc-reader__dialog {
  background: #fff;
  width: min(1100px, 100%);
  height: 100%;
  margin: 0 auto;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ft-doc-reader__dialog:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.ft-doc-reader__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.ft-doc-reader__title {
  margin: 0;
  font-size: 15px;
  flex: 1 1 180px;
  word-break: break-word;
}
.ft-doc-reader__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ft-doc-reader__zoom {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  color: #334155;
}
.ft-doc-reader__stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #e2e8f0;
}
.ft-doc-preview.is-reading {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 100%;
}
.ft-doc-preview.is-reading .ft-doc-preview__pages {
  max-height: none;
  overflow: visible;
}
.ft-doc-preview.is-reading .ft-doc-preview__frame {
  height: calc(100vh - 140px);
  min-height: 420px;
}
.ft-doc-reader__dialog:fullscreen .ft-doc-preview.is-reading .ft-doc-preview__frame {
  height: calc(100vh - 72px);
}
@media (max-width: 767px) {
  .ft-doc-actions {
    margin-left: 0;
    width: 100%;
  }
  .ft-doc-reader {
    padding: 0;
  }
  .ft-doc-reader__dialog {
    border-radius: 0;
  }
}
