/* Upload page restyle (preview, Oct 2026). Layers on /styles.css; brand blue + app font from its variables. */
body:has(.up2) { background: #F2F3F5; }
.up2 { --up2-border: #E3E6EB; --up2-ink: #1B1F24; --up2-muted: #5F6875; --up2-blue: var(--primary-color, #0082ff); --up2-blue-soft: #E8F3FF; --up2-green: #1E8E4E; --up2-red: #C2362B; }
/* Page width/padding from hdr1.20261023-hdr2.css (.main-content > .up2-page.page-container → 1240 / 32px) */
.up2 .up2-page { width: 100%; box-sizing: border-box; text-align: left; }
/* .up2-head geometry from hdr2 */
/* .up2-title retired — hdr2 styles .up2-head > h1 like Contracts/Notices/Search */
.up2-sub { font-size: 15px; color: var(--up2-muted); margin: 0; max-width: 520px; line-height: 1.5; }

/* Division pill toggle (only rendered when the user has >1 division) */
.up2 .division-picker { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.up2 .division-picker::before { content: "Division"; font-size: 12px; font-weight: 600; color: var(--up2-muted); text-transform: uppercase; letter-spacing: .06em; }
.up2 .division-picker-buttons { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--up2-border); border-radius: 999px; flex-wrap: wrap; justify-content: flex-end; }
.up2 .division-button { border: 0; background: transparent; color: var(--up2-muted); font-size: 13px; font-weight: 600; padding: 6px 14px 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.up2 .division-button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C4CAD3; }
.up2 .division-button:hover:not(.selected) { background: #F2F3F5; color: var(--up2-ink); border: 0; }
.up2 .division-button.selected { background: var(--up2-blue-soft); color: var(--up2-blue); border: 0; }
.up2 .division-button.selected::before { background: var(--up2-blue); }

/* Drop zone card */
.up2 .drop-zone.up2-drop { width: auto; height: auto; min-height: 260px; margin: 0; padding: 40px 24px; background: #fff; border: 2px dashed #C9D3DF; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); color: var(--up2-muted); }
.up2 .drop-zone.up2-drop:hover, .up2 .drop-zone.up2-drop:focus-visible { border-color: var(--up2-blue); outline: none; }
.up2 .drop-zone.up2-drop.dragover { border-color: var(--up2-blue); background: var(--up2-blue-soft); }
.up2 .ready-message { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.up2-drop-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--up2-blue-soft); color: var(--up2-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.up2-drop-title { font-size: 20px; font-weight: 600; color: var(--up2-ink); }
.up2-drop-hint { font-size: 14px; }
.up2-drop-hint strong { color: var(--up2-ink); font-weight: 600; }
.up2-browse { margin-top: 10px; background: var(--up2-blue); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 8px; }
.up2-drop:hover .up2-browse { background: var(--primary-hover-color, #005bb5); }
.up2-drop-meta { margin-top: 8px; font-size: 12px; color: #8A93A0; }

/* Processing card */
.up2-queue { margin-top: 20px; background: #fff; border: 1px solid var(--up2-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); padding: 20px 24px 8px; }
.up2-queue.hidden { display: none; }
.up2-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.up2-queue-title { font-size: 17px; font-weight: 600; color: var(--up2-ink); margin: 0; }
.up2-chips { display: flex; gap: 6px; }
.up2-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.up2-chip.active { background: var(--up2-blue-soft); color: var(--up2-blue); }
.up2-chip.ready { background: #E7F6EE; color: var(--up2-green); }
.up2-chip.failed { background: #FDECEA; color: var(--up2-red); }
.up2-queue-note { font-size: 13px; color: var(--up2-muted); margin: 6px 0 12px; }
.up2-queue-note a { color: var(--up2-blue); }
.up2 #upload-progress-container { margin: 0; width: auto; }
.up2 .file-progress-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; margin: 0; border: 0; border-top: 1px solid var(--up2-border); border-radius: 0; background: none; box-shadow: none; width: auto; }
.up2-file-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #F2F3F5; color: var(--up2-muted); display: inline-flex; align-items: center; justify-content: center; }
.up2 .file-progress-item.success .up2-file-icon { background: #E7F6EE; color: var(--up2-green); }
.up2 .file-progress-item.error .up2-file-icon { background: #FDECEA; color: var(--up2-red); }
.up2-file-body { flex: 1; min-width: 0; }
.up2 .file-info { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.up2 .file-name { font-size: 14px; font-weight: 600; color: var(--up2-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-file-link { font-size: 13px; font-weight: 600; color: var(--up2-blue); text-decoration: none; white-space: nowrap; }
.up-file-link:hover { text-decoration: underline; }
.up2 .file-status-text { font-size: 13px; color: var(--up2-muted); margin: 2px 0 8px; text-align: left; }
.up2 .file-progress-item.error .file-status-text { color: var(--up2-red); }
.up2 .progress-bar-container { height: 4px; background: #EDF0F3; border-radius: 4px; overflow: hidden; margin: 0; }
.up2 .progress-bar { height: 100%; background: var(--up2-blue); border-radius: 4px; transition: width .3s ease; }
.up2 .file-progress-item.success .progress-bar { background: var(--up2-green); }
.up2 .file-progress-item.error .progress-bar { background: var(--up2-red); }
.up2 .file-progress-item.success .progress-bar-container { display: none; }
.up-stages { list-style: none; display: flex; align-items: center; gap: 6px; padding: 0; margin: 10px 0 0; flex-wrap: wrap; }
.up-stages[hidden] { display: none; }
.up-stage { font-size: 12px; font-weight: 600; color: #8A93A0; background: #F2F3F5; padding: 3px 10px; border-radius: 999px; }
.up-stage.current { color: var(--up2-blue); background: var(--up2-blue-soft); }
.up-stage.done { color: var(--up2-green); background: #E7F6EE; }
.up-stage.done::before { content: "\2713\00a0"; }
.up-stage-sep { width: 14px; height: 1px; background: #C9D3DF; }
.up2 .status-message.error-message { border-radius: 10px; margin-bottom: 16px; }
.up2 .up2-page.page-container { background: transparent; border: 0; box-shadow: none; padding-top: 0; }
.up2 .up2-queue .up2-queue-title { font-family: var(--primary-font); font-size: 17px; font-weight: 600; color: var(--up2-ink); margin: 0; }
.up2 .file-progress-item.error .progress-bar-container { display: none; }

/* v20261022b: division selector on its own full-width row, left-aligned, label to the left */
.up2-division { margin: 0 0 16px; }
.up2 .division-picker { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: nowrap; }
.up2 .division-picker::before { flex: none; }
.up2 .division-picker-buttons { justify-content: flex-start; flex-wrap: wrap; row-gap: 4px; column-gap: 2px; border-radius: 18px; max-width: 100%; }
.up2 .division-button { white-space: nowrap; }
.up2 .division-picker { width: 100%; max-width: none; }
.up2 .division-picker-buttons { width: auto; max-width: calc(100% - 80px); }
.up2 .division-button { min-width: 0; width: auto; flex: none; }
/* v20261022c: no small-caps label; "Select division for upload" line above the pills (replaces the subtitle) */
.up2 .division-picker::before { content: none; display: none; }
.up2 .up2-division-label { margin: 0 0 8px; }
.up2 .division-picker-buttons { max-width: 100%; }
.up2 .up2-division:not([hidden]) + #page-error-message + .drop-zone { margin-top: 0; }

/* === wknd22: hdr2 header pattern — heading + division-slot ABOVE white panel (match Contracts/Notices/Search) === */
/* Position/spacing for .up2-head and .up2-division come from hdr1.20261023-hdr2.css — do not nest pills in .up2-panel. */
.up2 #division-slot[hidden] { display: none !important; }

/* White content panel (drop + features + bulk) — sits below uniform header/pills */
.up2-panel {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04);
}
.main-content > .up2-page > .up2-panel { max-width: 816px; }

/* Light-blue drop zone with dashed border (contrast on white panel) */
.up2 .drop-zone.up2-drop {
  background: var(--up2-blue-soft);
  border: 2px dashed #A9C6EE;
  border-radius: 14px;
  box-shadow: none;
  min-height: 280px;
  padding: 44px 24px;
}
.up2 .drop-zone.up2-drop:hover,
.up2 .drop-zone.up2-drop:focus-visible { border-color: var(--up2-blue); outline: none; }
.up2 .drop-zone.up2-drop.dragover { border-color: var(--up2-blue); background: #d9ebff; }

/* White document icon chip */
.up2-drop-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff; color: var(--up2-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.up2-drop-title { font-size: 20px; font-weight: 600; color: var(--up2-ink); }
.up2-drop-hint { font-size: 14px; color: var(--up2-muted); }
.up2-drop-hint .up2-div-label,
.up2-drop-hint strong#drop-target-division { color: var(--up2-blue); font-weight: 600; }

/* Compact select retired in wknd21 (pills restored); keep rule harmless if leftover markup exists */
.up2-div-select { display: none !important; }

.up2-browse {
  margin-top: 12px;
  background: var(--up2-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.up2-drop:hover .up2-browse { background: var(--primary-hover-color, #005bb5); }
.up2-drop-meta { margin-top: 10px; font-size: 13px; color: #8A93A0; }

/* Feature cards row */
.up2-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.up2-feature {
  flex: 1 1 200px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: #F4F5F7;
  box-sizing: border-box;
}
.up2-feature-icon {
  flex: none;
  color: var(--up2-blue);
  display: inline-flex;
  margin-top: 1px;
}
.up2-feature-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
}
.up2-feature-body strong {
  font-weight: 600;
  color: var(--up2-ink);
  font-size: 13px;
}

/* Bulk import card (UI stub — no upload logic yet) */
.up2-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #BCD4F4;
  background: #F7FAFE;
  box-sizing: border-box;
}
.up2-bulk-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #FFF4DF; color: #B26B00;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.up2-bulk-body {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.up2-bulk-body strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--up2-ink);
}
.up2-bulk-body span {
  font-size: 14px;
  color: var(--up2-muted);
  line-height: 1.4;
}
.up2-bulk-cta {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--up2-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  white-space: nowrap;
}
.up2-bulk-cta:hover { text-decoration: underline; }
.up2-bulk-cta:focus-visible { outline: 2px solid var(--up2-blue); outline-offset: 2px; border-radius: 4px; }

/* Coming-soon toast for bulk stub */
.up2-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  background: #1B1F24;
  color: #fff;
  font-family: var(--primary-font, 'Open Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17,24,39,.18);
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
}
.up2-toast[hidden] { display: none !important; }

/* Queue sits below the panel */
.up2-queue { margin-top: 20px; }
.main-content > .up2-page > .up2-queue { max-width: 816px; }
.main-content > .up2-page > #page-error-message { max-width: 816px; }

@media (max-width: 720px) {
  .up2-panel { padding: 14px; gap: 12px; }
  .up2 .drop-zone.up2-drop { min-height: 220px; padding: 28px 16px; }
  .up2-bulk { padding: 14px 16px; }
}

/* --- wknd23 bulk import shell --- */
.up2-bulk-panel { display: flex; flex-direction: column; gap: 20px; padding: 24px 28px; }
.up2-bulk-panel[hidden] { display: none !important; }
.up2-bulk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.up2-bulk-back {
  border: none; background: transparent; color: #1769D6; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px;
}
.up2-bulk-back:hover { text-decoration: underline; }
.up2-bulk-titles { flex: 1 1 280px; min-width: 0; }
.up2-bulk-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.3px; color: #111827; }
.up2-bulk-sub { margin: 6px 0 0; font-size: 14px; color: #5B6472; }
.up2-bulk-steps {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #5B6472;
}
.up2-bulk-steps li { display: flex; align-items: center; gap: 8px; }
.up2-bulk-steps li.is-active { color: #1769D6; }
.up2-step-num {
  width: 24px; height: 24px; border-radius: 999px; border: 2px solid #C4CAD3; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.up2-bulk-steps li.is-active .up2-step-num { border-color: #1769D6; color: #1769D6; }

.up2-bulk-source {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #F2F3F5; border-radius: 12px; align-self: flex-start;
}
.up2-bulk-pill {
  min-height: 40px; padding: 0 16px; border: none; border-radius: 9px; background: transparent;
  color: #374151; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.up2-bulk-pill.is-selected {
  background: #FFFFFF; color: #1769D6; font-weight: 600; box-shadow: 0 1px 3px rgba(17,24,39,0.12);
}
.up2-bulk-pill:disabled { opacity: 0.45; cursor: not-allowed; }

.up2-bulk-drop {
  border: 1.5px dashed #C4CAD3; border-radius: 14px; padding: 28px 20px; text-align: center;
  background: #FAFBFC; outline: none;
}
.up2-bulk-drop.dragover { border-color: #1769D6; background: #EAF2FD; }
.up2-bulk-drop-title { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.up2-bulk-drop-hint { margin: 8px 0 0; font-size: 13px; color: #5B6472; }
.up2-bulk-drop-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.up2-bulk-meta {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline;
  padding: 12px 14px; border-radius: 10px; background: #EAF2FD; font-size: 13px;
}
.up2-bulk-id { color: #5B6472; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.up2-bulk-status { font-weight: 600; color: #0F4FA8; text-transform: uppercase; letter-spacing: 0.4px; font-size: 11px; }

.up2-bulk-list-wrap { display: flex; flex-direction: column; gap: 10px; }
.up2-bulk-list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #F2F3F5; border-radius: 10px 10px 0 0; font-size: 13px; font-weight: 600;
}
.up2-bulk-progress { font-weight: 500; color: #5B6472; }
.up2-bulk-list {
  list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto;
  border: 1px solid #E3E6EB; border-radius: 0 0 10px 10px;
}
.up2-bulk-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; font-size: 13px; border-top: 1px solid #EEF0F3;
}
.up2-bulk-list li:nth-child(even) { background: #FAFBFC; }
.up2-bulk-list li:first-child { border-top: none; }
.up2-bulk-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111827; }
.up2-bulk-fsize { color: #5B6472; font-variant-numeric: tabular-nums; }
.up2-bulk-fstat { font-weight: 600; font-size: 12px; color: #5B6472; min-width: 72px; text-align: right; }
.up2-bulk-fstat.is-ok { color: #0B7A3B; }
.up2-bulk-fstat.is-err { color: #B42318; }
.up2-bulk-fstat.is-run { color: #1769D6; }
.up2-bulk-list-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* wknd24: secondary action next to Upload to staging */
.up2-bulk-list-actions .account-button-secondary {
  background: transparent;
  color: var(--up2-ink, #1a1a1a);
  border: 1px solid rgba(0,0,0,.18);
}
.up2-bulk-list-actions .account-button-secondary:disabled {
  opacity: .45;
}
.up2-bulk-fstat.is-run { color: #0b6bcb; }

/* --- wknd25: bulk review --- */
.up2-bulk-type-counts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.up2-bulk-type-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #EEF3FA; color: #0F4FA8; border: 1px solid #D6E4F7;
}
.up2-bulk-type-pill.is-warn { background: #FFF6E8; color: #9A5B00; border-color: #F5D9A6; }
.up2-bulk-type-pill.is-err { background: #FDECEC; color: #B42318; border-color: #F3C1BD; }

.up2-bulk-review {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid #EEF0F3; padding-top: 20px; margin-top: 8px;
}
.up2-bulk-review[hidden] { display: none !important; }
.up2-bulk-review-title { margin: 0; font-size: 18px; font-weight: 600; color: #111827; }
.up2-bulk-review-sub { margin: 4px 0 0; font-size: 13px; color: #5B6472; }

.up2-bulk-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid #EEF0F3; padding-bottom: 2px;
}
.up2-bulk-tab {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: #5B6472;
  padding: 8px 12px; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -3px;
}
.up2-bulk-tab:hover { color: #1769D6; background: #F5F8FC; }
.up2-bulk-tab.is-active { color: #1769D6; border-bottom-color: #1769D6; }
.up2-bulk-tab-count {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px;
  border-radius: 999px; background: #EEF3FA; color: #0F4FA8; font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.up2-bulk-tab.is-active .up2-bulk-tab-count { background: #D6E4F7; }

.up2-bulk-tab-panel[hidden] { display: none !important; }

.up2-bulk-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.up2-bulk-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: #5B6472; padding: 10px 12px;
  border-bottom: 1px solid #E5E7EB; background: #F8FAFC;
}
.up2-bulk-table tbody td {
  padding: 10px 12px; border-bottom: 1px solid #EEF0F3; vertical-align: top;
  color: #111827;
}
.up2-bulk-table tbody tr:nth-child(even) { background: #FAFBFC; }
.up2-bulk-table tbody tr:hover { background: #F0F6FF; }

.up2-bulk-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
  background: #EEF3FA; color: #0F4FA8; white-space: nowrap;
}
.up2-bulk-badge.is-contract { background: #E8F7EE; color: #0B7A3B; }
.up2-bulk-badge.is-associated { background: #EEF3FA; color: #0F4FA8; }
.up2-bulk-badge.is-attention { background: #FFF6E8; color: #9A5B00; }
.up2-bulk-badge.is-dup { background: #F3F0FF; color: #5B21B6; }
.up2-bulk-badge.is-linked { background: #E8F7EE; color: #0B7A3B; }
.up2-bulk-badge.is-suggested { background: #FFF6E8; color: #9A5B00; }
.up2-bulk-badge.is-pick { background: #FDECEC; color: #B42318; }
.up2-bulk-badge.is-unlinked { background: #F3F4F6; color: #4B5563; }

.up2-bulk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.up2-bulk-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  max-width: 220px; padding: 4px 8px; border-radius: 8px;
  background: #F5F8FC; border: 1px solid #D6E4F7; font-size: 12px;
}
.up2-bulk-chip strong { font-size: 12px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up2-bulk-chip span { color: #5B6472; font-size: 11px; }

.up2-bulk-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.up2-bulk-row-actions button {
  appearance: none; border: 1px solid #D0D5DD; background: #fff; color: #1769D6;
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.up2-bulk-row-actions button:hover { background: #EAF2FD; border-color: #1769D6; }
.up2-bulk-row-actions button:disabled { opacity: 0.45; cursor: not-allowed; }

.up2-bulk-empty {
  padding: 28px 16px; text-align: center; color: #5B6472; font-size: 14px;
  border: 1px dashed #D0D5DD; border-radius: 12px; background: #FAFBFC;
}

.up2-bulk-review-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px;
}
.up2-bulk-review-actions .account-button:disabled {
  opacity: 0.55; cursor: not-allowed;
}

.up2-bulk-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 24, 39, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.up2-bulk-modal[hidden] { display: none !important; }
.up2-bulk-modal-card {
  width: min(640px, 100%); max-height: min(86vh, 720px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
.up2-bulk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.up2-bulk-modal-head h3 { margin: 0; font-size: 18px; }
.up2-bulk-modal-close {
  appearance: none; border: none; background: transparent; font-size: 24px; line-height: 1;
  cursor: pointer; color: #5B6472; padding: 0 4px;
}
.up2-bulk-modal-sub { margin: 0; font-size: 13px; color: #5B6472; }
.up2-bulk-pick-list { display: flex; flex-direction: column; gap: 8px; }
.up2-bulk-pick-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 10px; background: #FAFBFC;
}
.up2-bulk-pick-item.is-selected { border-color: #1769D6; background: #EAF2FD; }
.up2-bulk-pick-item label { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.up2-bulk-pick-item strong { font-size: 13px; color: #111827; }
.up2-bulk-pick-item span { font-size: 12px; color: #5B6472; }
.up2-bulk-pick-search label { display: block; font-size: 12px; font-weight: 600; color: #5B6472; margin-bottom: 6px; }
.up2-bulk-pick-search input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #D0D5DD;
  border-radius: 8px; font: inherit; font-size: 14px;
}
.up2-bulk-pick-search-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.up2-bulk-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.up2-bulk-steps li.is-done { color: #0B7A3B; }
.up2-bulk-steps li.is-done .up2-step-num { border-color: #0B7A3B; color: #0B7A3B; }

.up2-bulk-commit-progress {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #5c4a1f;
}

/* Slice8 force-role */
.up2-bulk-row-actions button.up2-bulk-role-btn {
  border-color: #B7D4F8;
  color: #0F4FA8;
  background: #F3F8FF;
}
.up2-bulk-row-actions button.up2-bulk-role-btn.is-promote {
  border-color: #8FCFAB;
  color: #0B7A3B;
  background: #F0FAF4;
}
.up2-bulk-row-actions button.up2-bulk-role-btn:hover {
  border-color: #0082ff;
  color: #0082ff;
  background: #EAF4FF;
}

/* === wknd29e drop3 bulk screens === */
/* Drop 2: Bulk import screens. Append to upload.css (wknd29). Uses the page's .up2 variables. */
.bk { gap: 16px; background: transparent; box-shadow: none; padding: 0; }
.bk[hidden], .bk [hidden] { display: none !important; }
.bk-start { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); }
.bk-status { display: flex; flex-direction: column; gap: 16px; }

.bk-card { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); }
.bk-head, .bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bk-head { justify-content: space-between; }
.bk-row { margin-bottom: 6px; }
.bk-grow { flex: 1 1 260px; min-width: 0; }
.bk-h { margin: 0; font-size: 16px; font-weight: 600; color: var(--up2-ink); }
.bk-name { font-size: 13px; font-weight: 600; color: var(--up2-ink); overflow-wrap: anywhere; }
.bk-meta, .bk-sub { font-size: 12px; color: var(--up2-muted); }
.bk-help { font-size: 12px; color: var(--up2-muted); }
.bk-help a { color: var(--up2-blue); }
.bk-count { font-size: 13px; color: #374151; }
.bk-count strong { font-weight: 700; }
.bk-cp { font-size: 13px; font-weight: 600; color: var(--up2-ink); }
.bk-nowrap { white-space: nowrap; }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bk-tile { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.bk-tile-folder { width: 40px; height: 40px; border-radius: 10px; background: #FFF4DF; color: #B26B00; }
.bk-tile-type { background: #F2F3F5; color: var(--up2-muted); font-size: 9px; font-weight: 700; letter-spacing: .3px; }

.bk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; border: 0; font-family: inherit; }
td .bk-pill { font-size: 11px; padding: 3px 10px; }
.bk-green { color: #1C7A45; background: #E3F3E9; }
.bk-blue  { color: var(--up2-blue); background: var(--up2-blue-soft); }
.bk-gray  { color: #4B5563; background: #EEF0F3; }
.bk-amber { color: #8A5300; background: #FDF1DC; }
.bk-red   { color: var(--up2-red); background: #FDECEA; }
.bk-pill-btn { cursor: pointer; min-height: 28px; }
.bk-pill-btn:hover { filter: brightness(.96); }
.bk-pill-btn:focus-visible, .bk-link:focus-visible, .bk-pdf:focus-visible { outline: 2px solid var(--up2-blue); outline-offset: 2px; }

/* existing progress cards inside the Contracts card */
.bk-contract-list .file-progress-item:first-child { border-top: 1px solid var(--up2-border); }
.bk-contract-list .file-progress-item.bk-collapsed { display: none; }
.bk-link { align-self: flex-start; border: 0; background: transparent; padding: 10px 0 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--up2-blue); cursor: pointer; }

/* table (matches the Contracts / Search tables) */
.bk-table-wrap { overflow-x: auto; margin-top: 6px; }
.bk-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0 2px; font-size: 13px; }
.bk-table thead th { background: #E9ECF0; color: #4B5563; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; text-align: left; padding: 10px 14px; vertical-align: middle; white-space: nowrap; }
.bk-table thead th:first-child { border-radius: 8px 0 0 8px; }
.bk-table thead th:last-child { border-radius: 0 8px 8px 0; }
.bk-th-status { white-space: nowrap; }
.bk-table td { padding: 12px 14px; vertical-align: middle; }
.bk-table tr td:first-child { border-radius: 8px 0 0 8px; }
.bk-table tr td:last-child { border-radius: 0 8px 8px 0; }
.bk-table tr.bk-alt td { background: #F4F5F7; }
.bk-table tr.bk-clickable { cursor: pointer; }
.bk-table tr.bk-clickable:hover td { background: #EEF4FC; }
.bk-doc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-doc .bk-tile-type { width: 30px; height: 30px; background: #fff; border: 1px solid var(--up2-border); }

/* Choose a contract */
.bk-modal { position: fixed; inset: 0; z-index: 90; background: rgba(17,24,39,.38); display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px; overflow-y: auto; box-sizing: border-box; }
.bk-dialog { width: 100%; max-width: 840px; background: #fff; border-radius: 16px; box-shadow: 0 20px 48px rgba(17,24,39,.24); display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 0; box-sizing: border-box; }
.bk-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-dialog-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--up2-ink); }
.bk-close { width: 36px; height: 36px; border-radius: 999px; border: 0; background: #F1F2F4; color: #4B5563; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; line-height: 1; font-weight: 400; }
.bk-close:hover { background: #E5E7EB; }
.bk-close:focus-visible { outline: 2px solid var(--up2-blue); outline-offset: 2px; }
.bk-docstrip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F4F5F7; }
.bk-docstrip .bk-tile-type { background: #fff; border: 1px solid var(--up2-border); }
.bk-btn-outline { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #C9DAF3; background: #fff; color: var(--up2-blue); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bk-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid #D1D5DB; border-radius: 999px; background: #fff; }
.bk-search:focus-within { border-color: var(--up2-blue); box-shadow: 0 0 0 3px var(--up2-blue-soft); }
.bk-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 14px; color: var(--up2-ink); background: transparent; min-height: 42px; }
.bk-pick-scroll { max-height: 470px; overflow-y: auto; }
.bk-pick-table td:first-child, .bk-pick-table th:first-child { width: 28px; }
.bk-pick-table input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--up2-blue); }
.bk-pick-table label { cursor: pointer; display: block; }
.bk-table tr.bk-selected td { background: var(--up2-blue-soft); }
.bk-pdf { width: 42px; height: 30px; border-radius: 7px; border: 1px solid #C9DAF3; background: #fff; color: var(--up2-blue); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.bk-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid #EEF0F3; }
.bk-pick-hint { font-size: 13px; color: #374151; }
.bk-pick-hint.is-warn { color: #8A5300; }
.bk-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-btn-text { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #374151; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bk-btn-primary { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #0B5CB8; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bk-btn-primary:disabled { background: #E5E7EB; color: #6B7280; cursor: not-allowed; }

@media (max-width: 720px) {
  .bk-card, .bk-start { padding: 14px; }
  .bk-modal { padding: 16px 8px; }
  .bk-dialog { padding: 14px 14px 0; }
}

/* ---- drop 3: overall progress + liveness ---- */
.bk-overall { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.bk-overall-track { height: 8px; border-radius: 999px; background: #E8EDF4; overflow: hidden; }
.bk-overall-bar { height: 100%; width: 0; border-radius: 999px; background: var(--up2-blue); transition: width .4s ease;
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
  background-size: 160px 100%; background-repeat: no-repeat; animation: bk-sheen 1.6s linear infinite; }
.bk-overall-track.is-done .bk-overall-bar { background-color: #1E8E4E; animation: none; background-image: none; }
@keyframes bk-sheen { from { background-position: -160px 0; } to { background-position: calc(100% + 160px) 0; } }
@media (prefers-reduced-motion: reduce) { .bk-overall-bar { animation: none; background-image: none; } }
.bk-overall-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.bk-overall-step { color: var(--up2-ink); font-weight: 600; }
.bk-live { color: #6B7280; display: inline-flex; align-items: center; gap: 6px; }
.bk-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.bk-live-ok::before { background: #1E8E4E; animation: bk-pulse 1.4s ease-in-out infinite; }
.bk-live-warn { color: #8A5300; }
.bk-live-error { color: #B42318; }
.bk-live-done::before { background: #1E8E4E; }
@keyframes bk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bk-live-ok::before { animation: none; } }
#bk-status .up2-bulk-back { margin-bottom: 4px; align-self: flex-start; }
.bk-contract-list .file-progress-item.bk-collapsed { display: none; }
.bk-contract-list .file-progress-item.bk-skipped { opacity: .7; }
/* files still uploading / being sorted: compact cards, no pipeline stages yet, capped height */
#bk-files-list { max-height: 440px; overflow-y: auto; overflow-x: hidden; }
#bk-files-list .file-progress-item, #bk-contract-list .file-progress-item { box-sizing: border-box; max-width: 100%; }
.bk .up2-file-body { min-width: 0; }
.bk .file-info { min-width: 0; }
.bk .file-info .file-name { flex: 1 1 auto; min-width: 0; }
.bk .progress-bar-container { width: 100%; box-sizing: border-box; }
#bk-files-list .up-stages { display: none; }
#bk-files-list .file-progress-item { padding: 10px 0; }
#bk-files-list .up2-file-icon { width: 30px; height: 30px; }
.bk-card-reclass { flex: none; border: 0; background: transparent; padding: 0; color: var(--up2-blue); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bk-card-reclass:hover { text-decoration: underline; }
.bk-card-reclass:focus-visible { outline: 2px solid var(--up2-blue); outline-offset: 2px; border-radius: 4px; }

/* drop 3 patch 2 */
.up2-panel[hidden], .up2-bulk[hidden] { display: none !important; }
.main-content > .up2-page > #bulk-import-panel { margin-top: 16px; }
#bulk-import-panel .bk-status, #bulk-import-panel .bk-start { gap: 16px; }

/* === wknd29k patch-4 bulk UI polish (bulk view only) === */
.up2-page:has(#bulk-import-panel:not([hidden])) > .up2-queue { box-sizing: border-box; width: 100%; max-width: 816px; margin-top: 16px; }
.bk-status > .bk-card { margin: 0; }

/* Oct 30 2026: processing card matches the white panel width (padding counted inside, like .up2-panel) */
.up2-queue { box-sizing: border-box; }
/* Oct 30 2026: every blue upload bar gets the bulk bar's moving sheen, so a slow step never looks stalled */
.up2 .progress-bar { background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  background-size: 160px 100%; background-repeat: no-repeat; animation: bk-sheen 1.6s linear infinite; }
.up2 .file-progress-item.success .progress-bar, .up2 .file-progress-item.error .progress-bar { animation: none; background-image: none; }
@media (prefers-reduced-motion: reduce) { .up2 .progress-bar { animation: none; background-image: none; } }
