/* October notice uses the portal's existing modal, table, and button tokens. */
#october-upload-notice-modal {
  /* Keep the notice above the existing shadow preview banner. */
  z-index: 1000000;
}

.modal-window.october-upload-notice-window {
  max-width: 760px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.modal-window.october-upload-notice-window .modal-header-title {
  padding-right: 44px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.october-upload-notice-table-wrap {
  overflow: visible;
  margin: 16px 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.october-upload-notice-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.october-upload-notice-table th:nth-child(1) {
  width: 22%;
}

.october-upload-notice-table th:nth-child(2) {
  width: 18%;
}

.october-upload-notice-table th:nth-child(3) {
  width: 28%;
}

.october-upload-notice-table th:nth-child(4),
.october-upload-notice-table th:nth-child(5) {
  width: 16%;
}

.october-upload-notice-table th,
.october-upload-notice-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.october-upload-notice-table thead {
  background: var(--table-header-bg);
}

.october-upload-notice-table thead th {
  color: var(--text-main);
  font-weight: 800;
}

.october-upload-notice-table tbody th {
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
}

.october-upload-notice-table tbody tr:last-child th,
.october-upload-notice-table tbody tr:last-child td {
  border-bottom: 0;
}

.october-upload-complete {
  color: var(--badge-free-color);
  font-weight: 800;
  text-decoration: none;
}

.october-upload-complete:hover,
.october-upload-complete:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.october-upload-pending {
  color: var(--text-sub);
  font-weight: 700;
}

.october-upload-footnote {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.6;
}

.october-upload-selection-notice {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 20px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  line-height: 1.5;
}

.october-upload-selection-notice[hidden] {
  display: none !important;
}

.october-upload-selection-notice .october-upload-reopen,
.october-upload-empty-copy .october-upload-reopen {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 12px;
}

.october-upload-empty-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 620px;
}

.october-upload-empty-copy strong,
.october-upload-empty-copy span {
  flex: 1 0 100%;
}

.october-upload-empty-copy strong {
  color: var(--text-main);
  font-size: 15px;
}

.october-upload-notice-actions {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .october-upload-notice-table {
    font-size: 12px;
  }

  .october-upload-notice-table th,
  .october-upload-notice-table td {
    padding: 8px 4px;
  }

  .october-upload-selection-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .october-upload-selection-notice .october-upload-reopen {
    align-self: flex-start;
  }
}
