/* ================================
   HELD / QUICK INVENTORY 
   ================================ */

.credits {
  top: 450px;
  left: 390px;
  width: 158px;
  height: 8px;
  padding-top: 2px;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
  z-index: 500;
  
}

.max-carry-weight {
  top: 450px;
  left: 705px;
  width: 64px;
  height: 8px;
  padding-top: 2px;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
  z-index: 500; 
}

.general-inventory-area {
  position: absolute;
  top: 475px;      
  left: 335px;
  width: 439px;
  height: 94px; 
  pointer-events: auto;
  outline: 2px solid rgba(0, 153, 255, 1);
  background: transparent;
}

.general-inventory-list {
  position: relative;
  width: 439px;
  height: 94px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* "+" button */
.general-inventory-add {
  position: absolute;
  top: 1px;      
  left: 212px;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 8px;
  border: transparent;
  background: transparent;
  color: #0ff;
  font-size: 14px;
  font-weight: bold;
  line-height: 10px;
  cursor: pointer;
  z-index: 600;
}

.general-inventory-add:hover {
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 8px #0ff;
}

/* Each row */
.general-inventory-row {
  position: relative;
  height: 22px;          /* match box height */
  font-size: 14px;
  line-height: 22px;     /* lock text to row height */
  color: #0ff;
  padding: 0px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(28, 130, 214, 0.0);
  background: transparent;
}

/* SINGLE COLUMN: Item only */
.general-inventory-item {
  position: absolute;
  left: 3px;
  top: 0px;

  width: 382px;
  height: 22px;

  border-bottom: 1px solid rgb(76, 151, 221);
  background: transparent;
  line-height: 24px;     /* vertical centering for plain text */
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}

/* Edit input inside Item column */
.general-inventory-edit-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 1px solid #0ff;
  color: #0ff;
  font-size: 14px;
  line-height: 24px;     /* vertical centering for plain text */
  padding: 0 2px;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;

  text-align: left; 
}

/* WEIGHT COLUMN (right side of Item) */
.general-inventory-weight {
  position: absolute;
  top: 0px;
  left: 396px;           /* uses the extra space to the right of Item */
  width: 41px;           /* tweak if you want more/less room */
  height: 22px;

  border-bottom: 1px solid rgb(76, 151, 221);
  background: transparent;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;     
}

/* Edit input for Weight column */
.general-inventory-weight-edit-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 1px solid #0ff;
  color: #0ff;
  font-size: 14px;
  line-height: 22px; 
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;

  text-align: center;
}

/* Buttons for each row (hover bar) */
.general-inventory-buttons {
  position: absolute;
  top: -1px;
  left: 226px;
  height: 16px;
  display: flex;
  align-items: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
  z-index: 700;
}

.general-inventory-buttons button {
  width: auto;
  height: 16px;
  margin: 0 2px;
  padding: 0 4px;
  border: 1px solid #0ff;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.9);
  color: #0ff;
  font-size: 7px;
  white-space: nowrap;
  cursor: pointer;
}

.general-inventory-buttons button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 6px #0ff;
}

/* Hover tooltip */
.general-inventory-tooltip {
  position: absolute;
  top: 16px;
  left: 227px;

  display: inline-block;
  width: auto;
  max-width: 180px;
  padding: 6px;

  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;

  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;

  font-size: 14px;
  line-height: 1.1;
  color: #0ff;

  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #0ff;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.7);

  /* 👇 no mouse events when hidden */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;

  z-index: 650;
}

.general-inventory-tooltip.visible {
  opacity: 1;
  /* 👇 only catch mouse when visible */
  pointer-events: auto;
}


.general-inventory-hover-buffer {
  position: absolute;
  width: 100%;        /* JS overrides left/width to match button bar */
  height: 18px;       /* same magic number as Actions/Reactions */
  background: transparent;
  pointer-events: auto;
  z-index: 645;       /* between buttons (700) and tooltip (650) */
}

/* DELETE CONFIRM POPUP */
.general-inventory-confirm-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.general-inventory-confirm-dialog {
  background: #000;
  border: 1px solid #0ff;
  padding: 8px 12px;
  color: #0ff;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  min-width: 180px;
  text-align: center;
}

.general-inventory-confirm-message {
  margin-bottom: 8px;
}

.general-inventory-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.general-inventory-confirm-buttons button {
  padding: 2px 10px;
  border: 1px solid #0ff;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.9);
  color: #0ff;
  cursor: pointer;
}

.general-inventory-confirm-buttons button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 6px #0ff;
}

/* Indent mod rows under their parent items */
.general-inventory-mod-row .general-inventory-item {
  padding-left: 0;
  text-indent: 15px;
}