/* ---- Intrastat summary bar ---- */
.intrastat-summary-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.is-card {
  flex: 1 1 120px;
  min-width: 100px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--surface, #f8f9fa);
  border: 1px solid var(--border, #dee2e6);
  text-align: center;
}
.is-card.is-ok {
  background: #f0fdf4;
  border-color: #86efac;
}
.is-card.is-warn {
  background: #fffbeb;
  border-color: #fbbf24;
}
.is-card.is-block {
  background: #fef2f2;
  border-color: #fca5a5;
}
.is-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7280);
  margin-bottom: 2px;
}
.is-value {
  font-size: 1.2rem;
  font-weight: 600;
}
.is-sub {
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
}

/* ---- Table ---- */
.intrastat-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.intrastat-table th.sortable:hover {
  background: var(--surface, #f0f0f0);
}
.intrastat-table th.sorted {
  color: var(--primary, #2563eb);
}
.sort-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
}
th.sorted .sort-arrow {
  opacity: 1;
}

/* ---- Editable cells ---- */
.editable-cell {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  box-sizing: border-box;
}
.editable-cell:focus {
  border-color: var(--primary, #2563eb);
  outline: none;
  background: #fff;
}
.editable-cell.modified {
  border-color: #4ade80;
  background: #f0fdf4;
}
.editable-cell.auto-filled {
  border-color: #60a5fa;
  background: #eff6ff;
}
.editable-cell.has-issue {
  border: 1px dashed #fbbf24;
  background: #fffbeb;
}

/* ---- Row states ---- */
.crn-row {
  border-left: 3px solid #ef4444;
}
.excluded-row {
  opacity: 0.35;
  text-decoration: line-through;
}

/* ---- Exclude button ---- */
.exclude-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  border-radius: 3px;
}
.exclude-btn:hover {
  background: var(--surface, #f0f0f0);
}
.exclude-btn.excluded {
  color: #2563eb;
}

/* ---- Status icons ---- */
.icon-block {
  cursor: help;
}
.icon-warn {
  cursor: help;
}

/* ---- Inline checkbox label ---- */
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Show more pagination ---- */
.intrastat-show-more {
  text-align: center;
  padding: 12px 0;
}

/* ---- View toggle buttons ---- */
.intrastat-view-toggle {
  display: flex;
  gap: 4px;
  margin: 10px 0;
}
.intrastat-view-toggle .btn.is-active {
  background: var(--accent, #6c8cff);
  color: #fff;
}

/* ---- Lines link in report view ---- */
.is-lines-link {
  cursor: pointer;
  color: var(--accent, #6c8cff);
  text-decoration: underline;
}
