/* extracted from 07-management-panels-a.css during pass182; load immediately after 07-management-panels-a.css to preserve cascade order */

/* ============================================================
   Migrated from 03-panel-contract.css — trash/inventory/quest/shop carve-out
   ============================================================ */

/* ============================
   Trash Panel
   ============================ */
#trash-panel.panel {
  flex-direction: column;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  height: 348px !important;
  min-height: 348px !important;
  max-height: 348px !important;
  z-index: 150 !important;
  background: rgba(13, 27, 42, 0.85);
  border: 2px solid #415a77;
  border-radius: 12px;
  color: #fff;

  display: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
  overflow: hidden !important;
}

#trash-panel .trash-icon {
  width: 132px;
  height: 132px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

#trash-panel .trash-tip {
  font-size: 14px;
  color: #a5b3cf;
  margin-top: 8px;
}

/* ==========================================
   FORCE EQUIP ICONS TO FRONT FRAME ONLY
   ========================================== */

img[src*="/assets/equip/"] {
  width: 32px;
  height: 32px;

  object-fit: none;
  object-position: 0px 0px; /* FRONT frame */

  image-rendering: pixelated;
}

/* ============================
   Inventory Panel (Profile-style)
   ============================ */
#inventory-panel.panel {
  z-index: 150 !important;
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid #415a77;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  color: #eaeaea;
  font-size: 14px;
}

#inventory-panel h3 {
  margin: 0 0 6px 0;
  text-align: center;
  color: #ffd60a;
  text-shadow: 1px 1px 2px #000;
}

#inventory-panel h3 img {
  height: 24px;
  vertical-align: middle;
  image-rendering: pixelated;
}

/* ============================
   Inventory Tabs (Profile/Journal match)
   ============================ */
#inventory-panel .tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

#inventory-panel .tabs button {
  flex: 1;
  padding: 4px 6px;
  font-size: 13px;

  background: #1b263b;
  border: 1px solid #415a77;
  border-radius: 6px;

  color: #ddd;
  cursor: pointer;
}

#inventory-panel .tabs button.active {
  background: #415a77;
  color: #fff;
  outline: none;
}

/* ============================
   Inventory Ring Counter
   ============================ */
#ring-counter {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 14px;
  font-weight: bold;
  color: #ffd60a;

  margin: 4px 0 6px 0;
  padding-left: 2px;

  flex-shrink: 0;
}

#ring-counter .currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ring-counter .currency + .currency {
  margin-left: 10px;
}
#ring-counter img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  vertical-align: middle;
}

#ring-counter .currency-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ring-counter .currency-divider {
  margin: 0 6px;
  color: #ffd60a;
  font-family: monospace;
}

#ring-counter .specialrings {
  color: #e0e0ff;
}

#inventory-panel > .panel-body {
  --inventory-cols: 12;
  --inventory-rows: 7;
  --inventory-slot-size: 68px;
  --inventory-gap: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  overflow: auto;
  overflow-x: hidden;
}

/* ============================
   Inventory Grids
   ============================ */
#inventory-panel .grid,
#inventory-panel .equip-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(var(--inventory-cols), var(--inventory-slot-size));
  gap: var(--inventory-gap);
  justify-content: center;
}

/* ============================
   Inventory Slots
   ============================ */
#inventory-panel .slot {
  width: var(--inventory-slot-size);
  height: var(--inventory-slot-size);

  background: #1b263b;
  border: 1px solid #415a77;
  border-radius: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* allow stack qty overlay */
  position: relative;
}

/* Stack count overlay (inventory stacks up to 99) */
#inventory-panel .stack-qty {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 12px;
  line-height: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

#inventory-panel .slot.empty {
  background: #0d1b2a;
  border: 1px solid #2a3a52;
}

/* ============================
   Item / Equip Sprites
   ============================ */
#inventory-panel .slot img,
#inventory-panel .equip-grid .slot img {
  width: 48px;
  height: 48px;

  object-fit: none;          /* sprite-sheet safe */
  object-position: 0px 0px;  /* F-facing */

  image-rendering: pixelated;
}

/* ============================
   Quest Board Styles (Contract pass)
   ============================ */
#quest-board-panel.panel {
  background: rgba(15, 20, 35, 0.94);
  border: 2px solid #2b4b7e;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-ui, "Verdana", sans-serif);
  display: none;
  position: absolute;
  z-index: 1200;
  flex-direction: column;
}

