.csv-drop-zone {
  border: 2px dashed #adb5bd;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  color: #6c757d;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.csv-drop-zone.drag-over {
  border-color: #0d6efd;
  background: #e7f1ff;
  color: #0d6efd;
}
.csv-stat {
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem 1rem;
  background: #fff;
  height: 100%;
}
.csv-stat .csv-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.csv-stat .csv-stat-label {
  font-size: .85rem;
  color: #6c757d;
}
.csv-view-container {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
}
#csvViewTable {
  margin-bottom: 0;
  font-size: .9rem;
}
#csvViewTable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8f9fa;
  white-space: nowrap;
  vertical-align: top;
  box-shadow: inset 0 -2px 0 #dee2e6;
}
#csvViewTable .csv-rownum {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8f9fa;
  color: #6c757d;
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 1%;
}
#csvViewTable thead th.csv-rownum {
  z-index: 4;
}
#csvViewTable tbody tr:hover td {
  background-color: #fff3cd;
}
#csvViewTable .csv-sort-btn {
  cursor: pointer;
  user-select: none;
}
#csvViewTable .csv-sort-btn:hover {
  color: #0d6efd;
}
#csvViewTable .csv-sort-icon {
  font-size: .75rem;
  color: #adb5bd;
}
#csvViewTable th.sorted .csv-sort-icon {
  color: #0d6efd;
}
#csvViewTable .csv-type-badge {
  font-size: .7rem;
  font-weight: 500;
}
#csvViewTable .csv-info-btn {
  padding: 0 .3rem;
  font-size: .8rem;
  line-height: 1.4;
}
#csvViewTable td.csv-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#csvViewTable .csv-empty {
  color: #ced4da;
  font-style: italic;
}
#csvViewTable.csv-truncate td {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#csvViewTable.csv-wrap td {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 80px;
}
#csvViewTable mark {
  padding: 0;
  background: #ffe066;
}
#columnToggleMenu {
  max-height: 320px;
  overflow-y: auto;
}
#csvViewTable td.csv-cell {
  cursor: cell;
}
#csvViewTable tbody td.csv-rownum {
  cursor: pointer;
  white-space: nowrap;
}
#csvViewTable tbody tr td.csv-selected {
  background-color: #cfe2ff;
  box-shadow: inset 0 0 0 1px #0d6efd;
}
#csvViewTable tbody tr.csv-row-selected td.csv-rownum {
  background-color: #0d6efd;
  color: #fff;
}
#csvViewTable thead th.csv-col-selected {
  background-color: #0d6efd;
  color: #fff;
}
#csvViewTable thead th.csv-select-all {
  cursor: pointer;
}
#csvViewTable thead th.csv-select-all:hover {
  color: #0d6efd;
}
#csvViewTable thead th.csv-col-selected .csv-info-btn,
#csvViewTable thead th.csv-col-selected .csv-sort-icon {
  color: #fff;
}
#csvViewTable .csv-row-copy {
  padding: 0 .35rem 0 0;
  font-size: .8rem;
  line-height: 1;
  vertical-align: baseline;
  visibility: hidden;
}
#csvViewTable tbody tr:hover .csv-row-copy,
#csvViewTable .csv-row-copy:focus {
  visibility: visible;
}
#csvViewTable tbody tr.csv-row-selected .csv-row-copy {
  color: #fff;
}
.csv-copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 1rem);
  background: #198754;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1080;
}
.csv-copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.csv-top-values li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
