/**
 * Figma 8475:103160 — File Upload drop zone.
 */
.arch-attach-documents-file-upload {
  display: flex;
  width: 100%;
  min-height: 160px;
  height: 160px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--components-border-brand-primary-default, #00469d);
  border-radius: 8px;
  background: var(--surface-background-01, #ffffff);
  padding: 16px 24px;
  text-align: center;
}

.arch-attach-documents-file-upload--active {
  background: var(--surface-background-02, #f5f5f5);
}

.arch-attach-documents-file-upload--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.arch-attach-documents-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.arch-attach-documents-file-upload__icon {
  flex-shrink: 0;
  color: var(--components-text-brand-neutral-default, #1d1d1d);
}

.arch-attach-documents-file-upload__prompt {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  gap: 0;
  line-height: 24px;
}

.arch-attach-documents-file-upload__prompt-text {
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--components-text-brand-neutral-default, #1d1d1d);
}

.arch-attach-documents-file-upload__link-wrap {
  display: inline-flex;
  align-items: center;
}

.arch-attach-documents-file-upload__browse-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--components-text-brand-primary-default, #00469d);
  text-decoration: underline;
}

.arch-attach-documents-file-upload__browse-btn:focus-visible {
  outline: 2px solid var(--components-border-brand-primary-default, #00469d);
  outline-offset: 2px;
  border-radius: 2px;
}

.arch-attach-documents-file-upload__browse-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.arch-attach-documents-file-upload__hint {
  margin: 0;
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--components-text-brand-neutral-light, #747373);
}
/* Figma 8475:103419 — Attached Documents KF1Table (ODS Table / Cell tokens) */

/*
 * kfone KF1Table sets `.table-container { overflow: auto }`, which shows a scrollbar
 * even for short lists. Figma 8475:103172 — table grows with content (no inner scroll).
 */
.arch-attach-documents-kf1-table.table-container {
  overflow: visible !important;
  width: 100%;
}

.arch-attach-documents-kf1-table .table-content {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: var(--font-size-1, 12px);
  line-height: var(--line-height-16, 16px);
  letter-spacing: var(--text-tracking, 0);
  color: var(--components-text-brand-neutral-default, #1d1d1d);
}

.arch-attach-documents-kf1-table .table-content.fit-content {
  width: 100%;
  max-width: 100%;
}

.arch-attach-documents-kf1-table .table-container .table-content thead.table-header {
  position: static;
  top: auto;
  z-index: auto;
}

/* Figma 8475:103421 — .Table / Heading: h-56, p-8, body/medium/xsmall */
.arch-attach-documents-kf1-table thead.table-header th.table-data-cell {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 !important;
  box-sizing: border-box;
  background: var(--surface-background-02, #f4f3f3);
  vertical-align: middle;
  border-bottom: 1px solid var(--components-border-brand-neutral-light, #d9d8d8);
  font-family: var(--font-family-2, 'Open Sans'), sans-serif !important;
  font-size: var(--font-size-1, 12px) !important;
  font-weight: 600 !important;
  line-height: var(--line-height-16, 16px) !important;
  letter-spacing: var(--text-tracking, 0) !important;
}

.arch-attach-documents-kf1-table .header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  margin: 0;
  box-sizing: border-box;
}

/* Figma 8475:103422 — .Table / Cell body: p-8, body/regular/xsmall (12/16) */
.arch-attach-documents-kf1-table tbody.table-body td.table-data-cell {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 8px !important;
  box-sizing: border-box;
  vertical-align: middle;
  border-bottom: 1px solid var(--components-border-brand-neutral-light, #d9d8d8);
  font-family: var(--font-family-2, 'Open Sans'), sans-serif !important;
  font-size: var(--font-size-1, 12px) !important;
  font-weight: 400 !important;
  line-height: var(--line-height-16, 16px) !important;
  letter-spacing: var(--text-tracking, 0) !important;
  color: var(--components-text-brand-neutral-default, #1d1d1d);
}

.arch-attach-documents-kf1-table tbody .table-data-cell .data-content-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
}

.arch-attach-documents-kf1-table tbody .table-data-cell .data-content {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: var(--font-size-1, 12px);
  font-weight: 400;
  line-height: var(--line-height-16, 16px);
  letter-spacing: var(--text-tracking, 0);
  color: var(--components-text-brand-neutral-default, #1d1d1d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-attach-documents-table__cell-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-family-2, 'Open Sans'), sans-serif;
  font-size: var(--font-size-1, 12px);
  font-weight: 400;
  line-height: var(--line-height-16, 16px);
  letter-spacing: var(--text-tracking, 0);
  color: var(--components-text-brand-neutral-default, #1d1d1d);
}

/* Angular `.uploading` — grey row text while file uploads. */
.arch-attach-documents-table__cell-text--uploading {
  color: #919191;
  font-weight: 400;
}

.arch-attach-documents-table__action-spinner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
