
/* Purchase PDF matching */
.drop-zone {
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.drop-zone:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.drop-zone-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  transition: width 0.2s ease;
}

.purchases-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-bottom: 4px;
}

.purchases-filter-period {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.purchases-filter-period-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.purchases-filter-period-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.purchases-filter-select {
  min-width: 0;
}

.purchases-filter-period-fields .purchases-filter-select:first-child {
  width: 112px;
}

.purchases-filter-period-fields .purchases-filter-select:last-child {
  width: 160px;
}

.purchases-filter-search {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
}

.purchases-toolbar {
  margin-bottom: 10px;
}

.purchases-filter-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

.pur-table {
  width: 100%;
  table-layout: fixed;
}

.pur-table .nav-status-cell {
  width: auto;
  text-align: left;
}

.pur-col--number { width: 18%; }
.pur-col--date { width: 12%; }
.pur-col--gross { width: 14%; }
.pur-col--pdf { width: 10%; }
.pur-col--nav { width: 6%; }
.pur-col--edit { width: 10%; }

.pur-table--experimental .pur-col--number { width: 17%; }
.pur-table--experimental .pur-col--date { width: 12%; }
.pur-table--experimental .pur-col--gross { width: 13%; }
.pur-table--experimental .pur-col--pdf { width: 10%; }
.pur-table--experimental .pur-col--nav { width: 17%; }

.purchase-number-cell,
.purchase-supplier-cell {
  min-width: 0;
}

.purchase-number-link,
.purchase-supplier-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.purchase-supplier-name {
  max-width: min(42ch, 100%);
}

.purchase-tax-number,
.purchase-gross-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-statement-hint,
.purchase-statement-date {
  display: block;
  max-width: min(38ch, 100%);
  font-size: 12px;
  line-height: 1.35;
}

.purchase-statement-hint {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-statement-date {
  margin-top: 2px;
  white-space: normal;
}

.purchase-gross-value {
  font-weight: 800;
}

.purchase-pdf-cell,
.purchase-state-cell {
  vertical-align: top;
}

.purchase-state-block {
  display: grid;
  justify-items: flex-start;
  gap: 8px;
}

.purchase-state-note {
  line-height: 1.45;
  white-space: normal;
  max-width: 26ch;
}

/* PDF pill indicators */
.purchase-pdf-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.purchase-pdf-pill--ok {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
}

.purchase-pdf-pill--ok:hover {
  background: rgba(22, 163, 74, 0.18);
}

.purchase-pdf-pill--missing {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}
