.dropzone {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 2px dashed var(--input);
  border-radius: 12px;
  background: var(--panel);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.dropzone--active {
  border-color: var(--primary);
  background: #eef3fb;
}
.dropzone__hint {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.dropzone__slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.upload:hover {
  border-color: var(--input);
}
.upload .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.upload__title {
  font-weight: 600;
}
.upload__format,
.upload__file {
  font-size: 12px;
  color: var(--muted);
}
.upload__status {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
}
.upload__ok {
  font-weight: 500;
  color: #085041;
}
.upload__error {
  color: var(--danger);
}

.items tfoot td {
  border-bottom: 0;
  font-weight: 600;
}
.items__empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.kpi__note {
  margin-top: 4px;
  line-height: 1.4;
}

.checks {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.checks__item {
  padding: 4px 0 4px 18px;
  font-size: 13px;
  position: relative;
}
.checks__item::before {
  position: absolute;
  left: 0;
}
.checks__item--error {
  color: var(--danger);
}
.checks__item--error::before {
  content: "✕";
}
.checks__item--warning {
  color: #8a5a12;
}
.checks__item--warning::before {
  content: "!";
  font-weight: 700;
  left: 4px;
}
.checks__item--ok {
  color: #085041;
}
.checks__item--ok::before {
  content: "✓";
}

.confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .dropzone__slots {
    grid-template-columns: 1fr;
  }
}
.confirm[hidden] {
  display: none;
}
.source-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.source-chip { display:flex; align-items:center; gap:8px; border:1px solid var(--line); padding:6px 10px; border-radius:8px; max-width:100%; overflow-wrap:anywhere; }
.actions {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0;}
.person-row {display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap:8px; margin:6px 0; align-items:center;}
.person-row input {width:100%; min-width:0;}
.history-row {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); padding:10px 0;}
.history-row:last-child {border-bottom:0;}
#preview {width:min(1000px,96vw); height:90vh; border:1px solid var(--line); border-radius:12px; padding:12px;}
#preview iframe {width:100%; height:calc(100% - 50px); border:0;}
#preview::backdrop {background:#0007;}
#result-panel[hidden] {display:none;}
#act-view[hidden],#history-view[hidden] {display:none;}
@media(max-width:600px){.person-row {grid-template-columns:1fr;}.items {font-size:11px;}.items td,.items th{padding:4px;}}
#local-header[hidden] {display:none;}
