.responsive-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}
/* Table and panel sizing on large screens */
.table-col {
  flex: 1 1 75%;
  margin: 10px;
  min-width: 0; /* required to avoid overflow */
}
.panel-col {
  flex: 1 1 25%;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
  margin: 10px 0px;
}
/* On small screens: stack vertically */
@media (max-width: 768px) {
  .responsive-container {
    flex-direction: column;
  }
  .table-col,
  .panel-col {
    width: 100%;
  }
  .panel-col {
    order: 1;
    max-height: none;
    overflow-y: visible;
  }
  .table-col {
    order: 2;
  }
}
.material-details-panel {
  margin: 0px 5px;
  font-size: 14px;
  width: 296px;
  /* width: auto; */
  background: #000000;
  max-height: 450px;
  overflow: hidden;
  border: 1px solid #062e4c;
  border-radius: 16px;
  color: white;
  display: flex;
  flex-direction: column;
}
/* Scrollable inner section (middle only) */
.panel-scroll-area {
  height: 320px;
  flex: 1 1 auto;
  overflow-y: auto;
  background-color: #04141f;
  padding: 8px;
}
.panel-scroll-area::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.panel-scroll-area::-webkit-scrollbar-thumb {
  /* Foreground */
  background: var(--scrollbar-foreground);
  background: #f3efef;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.panel-scroll-area::-webkit-scrollbar-track {
  /* Background */
  background: var(--scrollbar-background);
  background: transparent;
}
/* Mobile view: full width, no scroll */
@media (max-width: 768px) {
  .material-details-panel {
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0px;
  }
  .panel-scroll-area {
    overflow-y: visible !important;
    background-color: transparent;
  }
}
.material-details-panel .form-label {
  margin-top: 12px;
  font-weight: 600;
}
.material-details-panel .form-control,
.material-details-panel .form-select {
  background-color: #111111;
  border: none;
  color: #00bfff;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.material-details-panel .close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: white;
  border: none;
  font-size: 18px;
}
/* ========== TABS HEADER ========== */
/* Tabs container */
/* Container styling */
/* Container styling */
.custom-tabs-container {
  background-color: #0b0f14 !important;
  padding: 0 !important;
  border: none !important;
  height: 52px;
}
/* Tabs wrapper */
.custom-tabs {
  align-items: center !important;
  background-color: #000 !important;
}
/* Inactive tab */
.custom-tab {
  display: inline !important;
  color: #a0a0a0 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 18px 10px !important;
  border: none !important;
  background: #000 !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}
/* Active (selected) tab */
.custom-tab--selected {
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  background: rgba(0, 122, 208, 1) !important;
  /* box-shadow: rgb(68, 147, 202) 0px 0px 80px 0px inset !important; */
}
/* Hover effect */
.custom-tab:hover {
  color: #ffffff !important;
  background: rgba(0, 122, 208, 1) !important;
}
/* Close button (X icon) styling */
button.btn-link.text-light {
  color: #a0a0a0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  background: transparent !important;
  border: none !important;
}
button.btn-link.text-light:hover {
  color: #ffffff !important;
}
/* ========== INPUTS ========== */
.neon-input {
  background-color: #000;
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 8px;
  color: #00bfff;
  padding: 8px 10px;
  font-size: 13px;
  width: 100%;
  box-shadow: inset 0 0 6px rgba(0, 191, 255, 0.2);
  transition: all 0.2s ease-in-out;
}
.neon-input:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
  cursor: pointer;
}
.neon-input::placeholder {
  color: #007bff;
  opacity: 0.7;
}
/* ========== LABELS ========== */
.material-details-panel .form-label {
  margin-top: 10px;
  color: #a0a0a0;
  font-size: 12px;
  font-weight: 500;
}
/* ========== EXPORT BUTTON ========== */
.neon-button-area button {
  background: linear-gradient(145deg, #007bff, #003366);
  border: none;
  border-radius: 12px;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 20px;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.6),
    inset 0 0 5px rgba(0, 191, 255, 0.3);
  transition: all 0.3s ease-in-out;
}
.neon-button-area button:hover {
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.9);
  transform: translateY(-1px);
}
/* ========== CLOSE BUTTON ========== */
.material-details-panel .btn-link {
  color: #00bfff !important;
  font-size: 22px;
  transition: color 0.3s;
}
.material-details-panel .btn-link:hover {
  color: #fff !important;
}
/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .material-details-panel {
    width: 100%;
    border-radius: 0;
  }
}
