.data-control-container {
    position: relative;
    width: 100%;
    height: 80px; /* Adjust based on your button height */
    margin-bottom: 10px;
}

/* Left-aligned button */
.add-download-button {
  background: #198754;
  position: absolute;
  left: 0;
  width: 44%;
}

.add-download-button-results {
  background: #198754;
  position: absolute;
  left: 0;
  width: 44%;
}

/* Centered button */
.view-download-button {
  position: absolute;
  left: 45%;
  width: 44%;
  background: #74867e;
}

/* Right-aligned button */
.download-button {
  position: absolute;
  right: 0;
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #74867e;
}

.add-download-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}

.add-download-menu {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  position: absolute;
  left: 0;
  width: 44%;
  top: 100%;
  z-index: 1000;
  margin-top: 1.5rem;
}

.confirm-add-download {
    width: 50%;
}

.cancel-add-download {
    width: 50%;
}

.download-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background-color: #ffffff;
  border-left: 1px solid #e0e0e0;
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
}

.download-panel-table {
  width: 100%;
}

.download-panel.open {
  right: 0;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f9fb;
}

.panel-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.panel-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.panel-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tag-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 10px;
}

.tag-label {
  color: white;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: wrap;
  word-break: break-word;
  box-sizing: content-box !important;
  font-weight:700;
  font-size: 15px;
}

.tag-label-count {
  font-weight: 500;
  font-size: 12px;
}

.tag-actions {
  position: relative;
}

.tag-actions button {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  padding: 0;
}

.tag-dropdown {
  position: absolute;
  right: 0;
  top: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 140px;
  z-index: 999;
}

.tag-dropdown.show {
  display: block;
}

.tag-dropdown button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.tag-dropdown button:hover {
  background-color: #f1f1f1;
}

.download-panel-download-all {
  width: 40%;
}

.download-panel-download-selected {
  width: 30%;
}

.download-panel-delete-all {

}
.tag-preview-popup {
  background: white;
  color: black;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 2000;
  min-width: 250px;
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

popup-preview-table {
  border-color: inherit;
  border-style: solid;
  font-weight: 500;
}

.popup-preview-td{
  padding-left: 6px;
  padding-right: 6px;
}

.popup-preview-td + .popup-preview-td {
  border-left: 1px solid #dee2e6;
}

.preview-head + .preview-head {
  border-left: 1px solid #dee2e6;
  border-style: solid;
}

.preview-head {
  border-bottom: 1px solid #dee2e6;
  padding-left: 6px;
  padding-right: 6px;
}

.preview-list {
  margin: 8px 0 0 0;
  padding-left: 16px;
}

.preview-list li {
  margin-bottom: 4px;
}

.download-manager {
  background: #f8f9fa;
  border-top: 1px solid #ccc;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}

.download-manager-panel-header {
    margin-bottom:5px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f9fb;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}