.wsp-legacy-breakdown-tools {
  margin: 18px 0 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.wsp-legacy-breakdown-tools label {
  display: block;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.wsp-legacy-breakdown-search {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  padding: 9px 12px;
  color: #111827;
  background: #fff;
}

.wsp-legacy-breakdown-count {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

.wsp-legacy-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  margin-bottom: 24px;
}

.wsp-legacy-table-wrap table {
  margin-bottom: 0 !important;
}

.wsp-legacy-table-wrap th {
  background: #f8fafc !important;
  color: #334155 !important;
}

.wsp-legacy-hidden-row {
  display: none !important;
}

.wsp-legacy-zoomable {
  cursor: zoom-in;
}

.wsp-legacy-zoomable:hover {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.wsp-legacy-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
}

.wsp-legacy-zoom-modal.is-open {
  display: flex;
}

.wsp-legacy-zoom-panel {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  padding: 16px;
}

.wsp-legacy-zoom-panel img {
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
}

.wsp-legacy-zoom-close {
  position: sticky;
  top: 0;
  float: right;
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .wsp-legacy-breakdown-tools {
    margin-left: -8px;
    margin-right: -8px;
  }

  .wsp-legacy-zoom-modal {
    padding: 12px;
  }
}
