/* ================================
   HELD / QUICK INVENTORY 
   ================================ */

.held-capacity-display {
  left: 335px;
  top: 310px;
  width: 219px;
  height: 17px;
  font-size: auto;
  text-align: center;
  padding-left: 1px;
  background: transparent;
  border: none;
  color: transparent;
  position: absolute;
  cursor: pointer;
  z-index: 600;
}

.held-capacity-display:hover {
  background-color: rgb(247, 240, 240, .2);
  filter: drop-shadow(0 0 15px #0ff);
  animation: pulse 4s infinite;
}

.held-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}   

.held-capacity {
  top: 311px;
  left: 428px;
  width: 119px;
  height: 12px;
  padding-top: 2px;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
  z-index: 500;  
}

.quick-inventory-capacity-display {
  left: 555px;
  top: 310px;
  width: 220px;
  height: 17px;
  font-size: auto;
  text-align: center;
  padding-left: 1px;
  background: transparent;
  border: none;
  color: transparent;
  position: absolute;
  cursor: pointer;
  z-index: 600;
}

.quick-inventory-capacity-display:hover {
  background-color: rgb(247, 240, 240, .2);
  filter: drop-shadow(0 0 15px #0ff);
  animation: pulse 4s infinite;
}

.quick-inv-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.quick-inventory-capacity {
  top: 311px;
  left: 718px;
  width: 51px;
  height: 12px;
  padding-top: 2px;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
  z-index: 500; 
}

.held-area {
  position: absolute;
  top: 329px;      
  left: 335px;
  width: 440px;
  height: 94px; 
  pointer-events: auto;
  outline: 2px solid rgba(0, 153, 255, 1);
  background: transparent;
}

.held-list {
  position: relative;
  width: 441px;
  height: 94px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* "+" button */
.held-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;
}

.held-add:hover {
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 8px #0ff;
}

/* Each row */
.held-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 */
.held-item {
  position: absolute;
  left: 21px;
  top: 0px;

  width: 384px;
  height: 22px;

  border: 1px solid rgb(76, 151, 221);
  background: transparent;
  line-height: 24px;     /* vertical centering for plain text */
  overflow: hidden;
  white-space: nowrap;
  text-align: center;    /* horizontal centering for plain text */
}

/* Edit input inside Item column */
.held-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: center;    /* horizontal centering while typing */
}

/* Buttons for each row (hover bar) */
.held-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;
}

.held-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;
}

.held-buttons button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 6px #0ff;
}

/* Hover tooltip */
.held-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;
}

.held-tooltip.visible {
  opacity: 1;
  /* 👇 only catch mouse when visible */
  pointer-events: auto;
}

.held-hover-buffer {
  position: absolute;
  width: 100%;      /* JS overrides left/width to match button bar */
  height: 18px;     /* same “magic number” bridge as Actions/Reactions/General */
  background: transparent;
  pointer-events: auto;
  z-index: 645;     /* between buttons (700) and tooltip (650) */
}

/* DELETE CONFIRM POPUP */
.held-confirm-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.held-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;
}

.held-confirm-message {
  margin-bottom: 8px;
}

.held-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.held-confirm-buttons button {
  padding: 2px 10px;
  border: 1px solid #0ff;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.9);
  color: #0ff;
  cursor: pointer;
}

.held-confirm-buttons button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 6px #0ff;
}

/* ================================
   HELD / QUICK INVENTORY RADIOS
   Reuse .circle-radio styling, just position per row
   ================================ */

/* Both radios share the circle-radio look, this just tweaks them for Held rows */
.held-row .held-slot-radio {
  position: absolute;   /* still absolute, but relative to the row */
  z-index: 640;         
}

/* Left radio = "Held" */
.held-row .held-slot-left {
  left: -2px;
  top: 2px;
}

/* Right radio = "Q-Inv" */
.held-row .held-slot-right {
  left: 404px;
  top: 2px;
}

/* Highlight rows where the left radio ("Held") is selected */
.held-row.held-is-held .held-item {
  background: rgba(0, 255, 255, 0.08);          /* subtle cyan wash */
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);   /* soft glow */
  border-color: #0ff;                            /* slightly brighter border */
}




/* Quick Inventory Capacity tooltip */
.quick-inv-tooltip {
  position: absolute;
  top: 16px;
  left: 227px;

  display: inline-block;
  width: auto;
  max-width: 320px;
  padding: 6px;

  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;

  max-height: 240px;
  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;
}

/* Weapon row cursor styling */

/* Show pointer cursor for weapon rows in Held area */
.held-row {
  cursor: default; /* Default for non-weapons */
}

/* Pointer cursor specifically for weapon item boxes (not the whole row) */
.held-row[data-weapon-row="true"] .held-item {
  cursor: pointer;
}

/* Keep text cursor in edit mode */
.held-edit-row {
  cursor: default;
}

.held-edit-row .held-item {
  cursor: text;
}

/* Keep default cursor over radio buttons */
.held-slot-radio {
  cursor: pointer;
}

/* Radio hover buttons (Retrieve/Stow/Swap/TH/SH) */
.held-radio-buttons {
  position: absolute;
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: flex-end; /* Right-align the buttons */
  gap: 1px; /* Gap creates hoverable space */
  padding: 0; /* Remove padding */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
  z-index: 700;
}

.held-radio-buttons button {
  width: 100%; /* Make all buttons same width */
  height: 16px;
  margin: 0;
  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;
}

/* Add spacing only between buttons (not on first) */
.held-radio-buttons button + button {
  margin-top: 0px;
}

.held-radio-buttons button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 6px #0ff;
}

/* Indent mod rows under their parent items */
.held-mod-row .held-item {
  padding-left: 0;
  text-indent: 15px;
}

/* ================================
   IWS INTEGRATED WEAPON STYLING
   ================================ */

/* Hide the actual radio button visual for integrated weapons */
.iws-hidden-radio {
  opacity: 0;
}

/* Overlay "c" text on radio buttons for integrated weapons */
.iws-radio-overlay {
  position: absolute;
  top: 1px; /* Vertically center in radio button space */
  font-size: 13px;
  font-weight: bold;
  color: #fff; /* White text */
  pointer-events: none;
  z-index: 641;
}

/* Position the left "c" overlay */
.held-slot-left + .iws-radio-overlay {
  left: 11px; /* Center in left radio position */
}

/* Position the right "c" overlay */
.held-slot-right + .iws-radio-overlay {
  left: 410px; /* Center in right radio position */
}