/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-duration: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Roboto", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --color-red-400: oklch(70.4% .191 22.216);
    --color-amber-100: oklch(96.2% .059 95.617);
    --color-amber-200: oklch(92.4% .12 95.746);
    --color-sky-300: oklch(82.8% .111 230.318);
    --color-rose-200: oklch(89.2% .058 10.001);
    --color-white: #fff;
    --spacing: .25rem;
    --font-weight-medium: 500;
    --tracking-tight: -.025em;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --font-roboto: "Roboto", sans-serif;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr { height: 0; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { -webkit-text-decoration: underline dotted; text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small { font-size: 80%; }
  sub, sup { vertical-align: baseline; font-size: 75%; line-height: 0; position: relative; }
  sub { bottom: -.25em; }
  sup { top: -.5em; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  :-moz-focusring { outline: auto; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }

  img, svg, video, canvas, audio, iframe, embed, object { display: block; }
  img, video { max-width: 100%; height: auto; }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
    margin-inline-end: 4px;
    appearance: button;
  }

  :where(select:is([multiple], [size])) optgroup { font-weight: bolder; }
  :where(select:is([multiple], [size])) optgroup option { padding-inline-start: 20px; }
  ::placeholder { opacity: 1; }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder { color: currentColor; }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder { color: color-mix(in oklab, currentcolor 50%, transparent); }
    }
  }

  textarea { resize: vertical; }
  ::-webkit-search-decoration { -webkit-appearance: none; }
  ::-webkit-date-and-time-value { min-height: 1lh; text-align: inherit; }
  ::-webkit-datetime-edit { display: inline-flex; }
  ::-webkit-datetime-edit-fields-wrapper { padding: 0; }
  ::-webkit-datetime-edit,
  ::-webkit-datetime-edit-year-field,
  ::-webkit-datetime-edit-month-field,
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field,
  ::-webkit-datetime-edit-second-field,
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-meridiem-field { padding-block: 0; }
  ::-webkit-calendar-picker-indicator { line-height: 1; }
  :-moz-ui-invalid { box-shadow: none; }
  button, input:where([type=button], [type=reset], [type=submit]) { appearance: button; }
  ::-webkit-inner-spin-button { height: auto; }
  ::-webkit-outer-spin-button { height: auto; }

  [hidden]:where(:not([hidden=until-found])) { display: none !important; }

  :root {
    --inventory-accent: var(--server-primary-color, #5296b9);
    --inventory-accent-rgb: var(--server-primary-rgb, 82, 150, 185);
  }

  html, body {
    font-family: var(--font-roboto);
    color: #fff;
    -webkit-user-select: none;
    user-select: none;
    background-color: #0000;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  button, input, textarea, select { font-family: inherit; }

  .headbag-overlay {
    z-index: 99999;
    pointer-events: none;
    background: #000;
    position: fixed;
    inset: 0;
  }

  .headbag-overlay__img {
    object-fit: cover;
    opacity: .92;
    width: 100%;
    height: 100%;
  }
}

@layer components {
  .inventory-slot {
    box-sizing: border-box;
    color: #fff;
    user-select: none;
    background: #17191d8c;
    border: none;
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Roboto, sans-serif;
    font-size: 11.84px;
    font-style: normal;
    font-weight: 400;
    display: flex;
    position: absolute;
    overflow: visible;
    box-shadow: inset 0 0 0 1px #ffffff08;
  }

  .inventory-item-quantity {
    z-index: 2;
    color: #ffffffd9;
    pointer-events: none;
    font-family: Roboto, sans-serif;
    font-size: 11.84px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: absolute;
    top: 8px;
    left: 8px;
  }

  .inventory-item-label {
    z-index: 5;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    pointer-events: none;
    width: 80%;
    font-family: Roboto, sans-serif;
    font-size: 11.84px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: absolute;
    bottom: 5.5%;
    left: 10%;
    right: 10%;
    overflow: hidden;
  }

  .inventory-item-label[data-unique-id] {
    pointer-events: auto;
    cursor: help;
    z-index: 6;
  }

  .inventory-item-image {
    user-select: none;
    pointer-events: none;
    position: absolute;
    inset: 10% 0 15%;
  }

  .inventory-item-image img {
    object-fit: contain;
    object-position: center;
    user-select: none;
    pointer-events: none;
    width: 120%;
    height: 120%;
    position: relative;
    left: -10%;
    top: -10%;
  }

  .inventory-placeholder-icon { pointer-events: none; object-fit: contain; opacity: .35; }
  .inventory-placeholder-icon svg { fill: #fff; }
  .inventory-slot.cloth-slot .inventory-placeholder-icon { object-fit: contain; width: 48px; height: 48px; }

/* Slot tenue (outfit) — haut milieu entre les colonnes gauche/droite
   Adapter ici :
   - top  : augmente pour descendre, diminue pour monter
   - left : 50% = centré ; ou mets une valeur en px (ex: 209px)
*/
.cloth-center {
  position: absolute;
  left: 50%;
  top: -70px; /* augmente pour descendre, diminue pour monter */
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: auto;
}

.cloth-center .cloth-slot {
  width: 102px;
  height: 102px;
}

  #weapon-slots .inventory-slot.weapon-empty {
    opacity: 0.55;
  }

  #weapon-slots .weapon-slot-nogun {
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    filter: blur(0.4px);
    width: 68%;
    height: 68%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .inventory-drag-helper {
    pointer-events: none !important;
    box-shadow: 0 8px 24px #00000080;
    border-radius: 6px;
    background: #17191dd9 !important;
    position: fixed !important;
    margin: 0 !important;
    transform: none !important;
  }

.weapon-slot-placeholder {
    z-index: 2;
    pointer-events: none;
    opacity: .35;
    filter: none;
    width: 60%;
    height: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .inventory-item-durability {
    z-index: 3;
    pointer-events: none;
    background-color: #ffffff1f;
    border-radius: 0 0 6px 6px;
    height: 5%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .inventory-item-durability-progress {
    background-color: rgba(var(--inventory-accent-rgb), .7);
    height: 100%;
  }

  .inventory-slot.occupied,
  .inventory-slot:not(.inventory-slot--empty) {
    background: #17191dd9;
    box-shadow: inset 0 0 0 1px #ffffff17;
  }

  .inventory-slot--empty {
    background: #17191d8c;
    box-shadow: inset 0 0 0 1px #ffffff08;
  }

  .inventory-slot--readonly {
    cursor: default;
  }

  .inventory-reserved-overlay {
    opacity: 0;
    background: #0c0c0ef0;
    border-radius: 4px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 78%;
    height: auto;
    padding: 5px 6px;
    transition: opacity .15s ease-out;
    inset: 20px 4px auto auto;
  }

  .inventory-reserved-overlay--visible { opacity: 1; }

  .inventory-reserved-overlay__text {
    font-family: var(--font-roboto);
    color: #fff;
    text-align: right;
    text-shadow: 0 1px 2px #000000e6;
    white-space: normal;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    overflow: visible;
  }

  #weapon-slots .inventory-slot-bind-hint,
  #weapon-slots .weapon-slot-index {
    z-index: 30;
    pointer-events: none;
    color: #fff;
    background-color: var(--server-primary-color, #5296b9);
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 15.3px;
    min-width: 15.3px;
    height: 15.3px;
    padding: 0;
    font-family: Roboto, sans-serif;
    font-size: 8.64px;
    font-weight: 400;
    line-height: 1;
    transition: background-color .3s ease-out;
    display: flex;
    position: absolute;
    top: 9.6px;
    left: -7.68px;
  }

  #weapon-slots .inventory-slot { overflow: visible; }
  #weapon-slots .inventory-slot > [class*="z-[40]"] { z-index: 40; }

  .theme-light .inventory-slot {
    color: #1a1a1a;
    background: #dcdcdc8c;
    border: none;
    box-shadow: inset 0 0 0 1px #00000008;
  }

  .theme-light .inventory-slot.occupied,
  .theme-light .inventory-slot:not(.inventory-slot--empty) {
    background: #dcdcdcd9;
    box-shadow: inset 0 0 0 1px #00000017;
  }

  .theme-light .inventory-slot--empty {
    background: #dcdcdc8c;
    border: none;
    box-shadow: inset 0 0 0 1px #00000008;
  }

  .action-slot {
    box-sizing: border-box;
    font-family: var(--font-roboto);
    color: #fff;
    background-color: #17191dd9;
    border: none;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    display: flex;
    position: relative;
    box-shadow: inset 0 0 0 1px #ffffff17;
  }

  .action-slot__icon {
    width: auto;
    height: auto;
    font-size: inherit;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    margin-right: .45rem;
    line-height: 1;
    display: inline-flex;
  }

  .action-slot__icon--svg { margin-right: .24rem; }
  .action-slot__icon svg { fill: currentColor; width: .78em; height: .78em; display: block; }

  .quantity-slot {
    box-shadow: none;
    font-family: var(--font-roboto);
    color: #fff;
    box-sizing: border-box;
    background: #2a2e35e6;
    border: 1px solid #ffffff14;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: border-color .15s, background-color .15s;
    display: flex;
    position: relative;
  }

  .quantity-slot:focus-within { border-color: var(--inventory-accent); }

  .quantity-slot__hash {
    color: #ffffff59;
    pointer-events: none;
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 400;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: .6rem;
    transform: translateY(-50%);
  }

  .quantity-slot__input {
    color: #fff;
    text-align: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    font-family: var(--font-roboto);
    box-sizing: border-box;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 28px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 100%;
  }

  .quantity-slot__input--wide { flex: 1; width: 100%; min-width: 0; padding: 0 10px; }

  .tab-icon {
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    color: #fff;
    width: 36px;
    height: 36px;
    font: inherit;
    background-color: #2a2e35e6;
    border: 1px solid #ffffff14;
    border-radius: 6px;
    outline: none;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: background-color .15s, border-color .15s;
    display: flex;
    position: relative;
    overflow: visible;
  }

  .tab-icon:focus-visible { border-color: var(--inventory-accent); }
  .tab-icon__svg-wrap { pointer-events: none; justify-content: center; align-items: center; display: flex; }
  .tab-icon__svg { fill: currentColor; color: #ffffffa6; pointer-events: none; width: 100%; height: 100%; transition: color .15s; display: block; }
  .tab-icon:hover:not(.tab-active) .tab-icon__svg { color: #ffffffe6; }
  .tab-active .tab-icon__svg { color: #fff; }
  .tab-icon i { color: #ffffffa6; pointer-events: none; font-size: 18px; line-height: 1; transition: color .15s; }
  .tab-icon:hover:not(.tab-active) i { color: #ffffffe6; }
  .tab-active i { color: #fff; }

  .inventory-button-tooltip {
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    color: #fff;
    white-space: nowrap;
    background-color: #1f2125;
    border: 1px solid #ffffff14;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: Roboto, sans-serif;
    font-size: 11.2px;
    font-weight: 400;
    position: absolute;
    top: calc(100% + 5.6px);
    left: 50%;
    transform: translate(-50%);
  }

  .tab-icon:hover .inventory-button-tooltip { opacity: 1; transition: opacity .15s ease-in-out .4s; }
  .tab-active { background-color: var(--inventory-accent); border-color: var(--inventory-accent); color: #fff; }
  .tab-inactive:hover { background-color: #343840fa; }

  .inventory-panel-header { align-items: center; gap: 0; width: 100%; display: flex; }

  .inventory-panel-left {
    flex-direction: column;
    flex: 0 auto;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    margin-right: auto;
    display: flex;
    overflow: visible;
  }

  .inventory-panel-title {
    letter-spacing: .48px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
  }

  .inventory-tips { color: #fff8; flex-direction: column; font-family: Roboto, sans-serif; font-size: 11.5px; font-weight: 400; line-height: normal; display: flex; }

  .right-inventory-help {
    margin-top: 10px;
    padding: 0 2px;
    font-family: Roboto, sans-serif;
    font-size: 11.5px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
    user-select: none;
  }

  .right-inventory-help p {
    margin: 0 0 4px 0;
  }

  .right-inventory-help p:last-child {
    margin-bottom: 0;
  }
  .inventory-toolbar__right { flex: 0 auto; align-items: center; gap: 6px; padding-left: 0; display: flex; }

  .inventory-weight-row {
    color: #fff9;
    width: auto;
    max-width: none;
    font-family: var(--font-roboto);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    align-items: center;
    gap: 5.6px;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1;
    display: flex;
  }

  .inventory-weight-icon { fill: #fff9; color: #fff9; flex-shrink: 0; width: 9.92px; height: 9.92px; display: block; }
  .inventory-weight-label { font-family: inherit; font-size: inherit; color: inherit; white-space: nowrap; flex-shrink: 0; font-weight: 400; line-height: 1; }
  .inventory-tabs { flex-shrink: 0; align-items: center; gap: 6px; display: flex; }

  .inventory-search-input {
    box-sizing: border-box;
    appearance: none;
    color: #fff;
    text-align: left;
    background: #2a2e35e6;
    border: 1px solid #ffffff14;
    border-radius: 6px;
    outline: none;
    flex: 0 auto;
    align-self: center;
    width: 180px;
    min-width: 64px;
    height: 36px;
    padding: 0 9.6px;
    font-family: Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 100%;
    transition: border-color .15s, background-color .15s;
  }

  .inventory-search-input::placeholder { color: #ffffff59; opacity: 1; font-weight: 400; }
  .inventory-search-input::-webkit-search-decoration,
  .inventory-search-input::-webkit-search-cancel-button,
  .inventory-search-input::-webkit-search-results-button,
  .inventory-search-input::-webkit-search-results-decoration { display: none; }
  .inventory-search-input::-ms-clear,
  .inventory-search-input::-ms-reveal { width: 0; height: 0; display: none; }
  .inventory-search-input:focus { border-color: var(--inventory-accent); }

  .scrollbar-container { pointer-events: all; }

  .inventory-devtools { z-index: 100000; font-family: var(--font-roboto); pointer-events: auto; position: fixed; top: 12px; right: 12px; }
  .inventory-devtools__toggle { color: #ffffffe0; cursor: pointer; background: #141416eb; border: none; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 500; }
  .inventory-devtools__toggle:hover { filter: brightness(1.12); }
  .inventory-devtools__panel { background: #141416f0; border-radius: 8px; flex-direction: column; gap: 10px; width: 220px; margin-top: 8px; padding: 12px; display: flex; box-shadow: 0 8px 24px #00000059; }
  .inventory-devtools__label { letter-spacing: .04em; text-transform: uppercase; color: #ffffff8c; font-size: 11px; font-weight: 500; }
  .inventory-devtools__row { gap: 6px; display: flex; }
  .inventory-devtools__btn { color: #ffffffe0; cursor: pointer; background: #28282af2; border: none; border-radius: 5px; flex: 1; padding: 8px 0; font-size: 11px; font-weight: 500; }
  .inventory-devtools__btn:hover { filter: brightness(1.1); }
  .inventory-devtools__btn--active { background: var(--inventory-accent); color: #111; }
  .inventory-devtools__check { color: #fffc; cursor: pointer; user-select: none; align-items: center; gap: 8px; font-size: 12px; display: flex; }
  .inventory-devtools__check input { accent-color: var(--inventory-accent); }
  .inventory-accent-hover { box-shadow: inset 0 0 0 1px #ffffff17, 0 0 0 2px rgba(var(--server-primary-rgb, 82, 150, 185), .6); }

  .inventory-durability-track,
  .inventory-item-durability {
    z-index: 3;
    pointer-events: none;
    background-color: #ffffff1f;
    border-radius: 0 0 6px 6px;
    width: 100%;
    height: 5%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .inventory-durability-bar,
  .inventory-item-durability-progress { background-color: rgba(var(--server-primary-rgb, 82, 150, 185), .7); height: 100%; }

  .inventory-give-search-row { align-items: center; gap: 18px; width: 455px; max-width: 488px; display: flex; position: absolute; top: 58px; left: 1269px; }
  .inventory-give-search-title { font-family: var(--font-roboto); letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; flex-shrink: 0; font-size: 16px; font-weight: 500; }

  .inventory-give-search-input {
    box-sizing: border-box;
    color: #fff;
    min-width: 0;
    height: 34px;
    font-family: var(--font-roboto);
    background: #2a2e35e6;
    border: 1px solid #ffffff14;
    border-radius: 6px;
    outline: none;
    flex: 1;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 32px;
    transition: border-color .15s, background-color .15s;
  }

  .inventory-give-search-input::placeholder { color: #ffffff59; }
  .inventory-give-search-input:focus { border-color: var(--inventory-accent); }

/* Position verticale de la barre d'actions : augmenter `top` pour descendre, diminuer pour monter */
.inventory-actions {
  position: absolute;
  left: 50%;
  top: 840px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 520;
  pointer-events: auto;
}

.inventory-actions__qty {
  width: 102px;
  height: 37px;
}

.inventory-actions__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.inventory-actions .action-slot {
  width: 102px;
  height: 37px;
  cursor: pointer;
}

.inventory-actions .action-slot:hover {
  filter: brightness(1.15);
}

.inventory-actions .action-slot#btn-delete {
  color: #ff5252;
}

.inventory-actions .action-slot#btn-delete .action-slot__icon {
  color: #ff5252;
}

.inventory-actions .action-slot#btn-delete .action-slot__icon i {
  color: #ff5252;
}

.inventory-rename-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-rename-label {
  color: #ffffffb3;
  font-family: Roboto, sans-serif;
  font-size: 12px;
}

.inventory-rename-input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #ffffff14;
  background: #2a2e35e6;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  outline: none;
}

.inventory-rename-input:focus {
  border-color: var(--inventory-accent, var(--server-primary-color, #5296b9));
}

.inventory-settings-modal-body.inventory-rename-body {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.inventory-rename-icon-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inventory-rename-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.inventory-rename-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.inventory-rename-modal-footer .inventory-button {
  min-width: 7.5rem;
}

.inventory-button--primary {
  background-color: rgba(var(--server-primary-rgb, 82, 150, 185), 0.85);
  border-color: rgba(var(--server-primary-rgb, 82, 150, 185), 0.35);
  color: #fff;
}

.inventory-button--primary:hover {
  background-color: var(--server-primary-color, #5296b9);
  border-color: var(--server-primary-color, #5296b9);
}

.preferences-row {
  position: absolute;
  left: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 501;
}

.preferences-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 0.5px rgba(0, 0, 0, 0.8);
  transition: all 0.1s ease;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-roboto);
  background: transparent;
}

.preferences-button:hover {
  background: rgba(20, 20, 20, 0.35);
  animation: pulse 2s ease infinite;
}

.preferences-button i {
  margin-right: 7px;
  font-size: 12px;
  color: #ffffff;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@-webkit-keyframes fade-in{0%{opacity:0}100%{opacity:1}}
@keyframes fade-in{0%{opacity:0}100%{opacity:1}}

.inventory-modal-container {
  z-index: 1000;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-animation: fade-in .2s ease-in-out;
  animation: fade-in .2s ease-in-out;
}

.inventory-rename-modal {
  background-color: #17191d;
  border: 1px solid hsla(0,0%,100%,.08);
  padding: 1.25rem 1.5rem;
  width: 28rem;
  box-sizing: border-box;
  border-radius: .5rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}

.inventory-rename-modal-header {
  color: #fff;
  padding-bottom: .75rem;
  border-bottom: 1px solid hsla(0,0%,100%,.08);
}

.inventory-rename-modal-header-text {
  text-align: left;
  color: #fff;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.inventory-settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 1.2rem 0;
}

.inventory-rename-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid hsla(0,0%,100%,.08);
}

.inventory-rename-modal-footer .inventory-button:first-child {
  background-color: rgba(var(--server-primary-rgb, 82, 150, 185), 0.85);
  border-color: rgba(var(--server-primary-rgb, 82, 150, 185), 0.35);
  color: #fff;
}

.inventory-rename-modal-footer .inventory-button:first-child:hover {
  background-color: var(--server-primary-color, #5296b9);
  border-color: var(--server-primary-color, #5296b9);
}

.inventory-rename-modal-footer .inventory-button:last-child {
  background-color: #2a2e35e6;
  border-color: #ffffff14;
  color: #ffffff80;
}

.inventory-rename-modal-footer .inventory-button:last-child:hover {
  background-color: #3a3e45e6;
  color: #fff;
}

.inventory-switch.checked .inventory-switch-control {
  background-color: var(--server-primary-color, #5296b9);
}

.inventory-switch.checked .inventory-switch-pill {
  margin-left: 1.14rem;
}

.inventory-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  color: #fff;
  font-family: "Roboto";
  font-weight: 400;
  font-size: .82rem;
  cursor: pointer;
  gap: 0.8rem;
}

.inventory-switch .inventory-switch-control {
  transition: all .2s ease-in-out;
  height: .96rem;
  border-radius: .48rem;
  width: 2.04rem;
  min-width: 2.04rem;
  display: flex;
  align-items: center;
  background-color: rgba(70,74,80,.8);
}

.inventory-switch .inventory-switch-pill {
  transition: all .2s ease-in-out;
  height: .84rem;
  width: .84rem;
  margin: .06rem;
  border-radius: 50%;
  background-color: #fff;
}

.inventory-button {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  border-radius: .375rem;
  padding: 0.5rem 1.2rem;
  transition: background-color .15s ease, border-color .15s ease;
  font-family: "Roboto";
  font-weight: 500;
  font-size: .78rem;
  cursor: pointer;
  border: 1px solid hsla(0,0%,100%,.08);
  background-color: rgba(42,46,53,.9);
}

.inventory-button:hover {
  background-color: rgba(var(--server-primary-rgb, 82, 150, 185), 0.2);
  border-color: var(--server-primary-color, #5296b9);
}

.ui-tooltip.custom-tooltip {
  background-color: var(--server-primary-color, #5296b9);
  color: #ffffff;
  font-size: 14px;
  padding: 10px;
  max-width: 500px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font-roboto);
}

.item-tooltip {
  position: fixed;
  z-index: 10050;
  box-sizing: border-box;
  color: #fff;
  pointer-events: auto !important;
  background-color: #17191d;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  flex-direction: column;
  gap: 6px;
  width: 224px;
  padding: 12px 14px;
  font-family: Roboto, sans-serif;
  display: none;
  box-shadow: 0 12px 24px #00000080;
  /* Pas de gap avec le curseur : on peut glisser dessus */
  margin: 0;
}

.item-tooltip.visible {
  display: flex;
}

.item-tooltip__row--id {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
  transition: background-color 0.12s;
}

.item-tooltip__row--id:hover {
  background-color: #ffffff14;
}

.item-tooltip__row--id .item-tooltip__id-text {
  user-select: text;
  pointer-events: auto;
}

.item-tooltip__row--id.is-copied {
  background-color: #ffffff22;
}

.item-tooltip__header {
  color: #fff;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
  padding-bottom: 8px;
  font-family: "Roboto Condensed", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.item-tooltip__title {
  word-break: break-word;
  line-height: 1.2;
  color: #fff;
}

.item-tooltip__qty {
  color: var(--inventory-accent, var(--server-primary-color, #5296b9));
  flex-shrink: 0;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.item-tooltip__row {
  color: #ffffffd9;
  align-items: center;
  gap: 8px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  display: flex;
}

.item-tooltip__glyph {
  text-align: center;
  width: 14px;
  color: #ffffffb3;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
}

.item-tooltip__row--id .item-tooltip__id-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 170px;
  user-select: text;
}


.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-button:hover,
.ui-button:focus {
  border-color: var(--server-primary-color, #5296b9) !important;
}

.ui-draggable-dragging {
  border-color: var(--server-primary-color, #5296b9) !important;
}
  .ui-background { background-color: #0000; animation: .2s ease-in-out fade-in; position: fixed; inset: 0; }
  .ui-background.ui-background--closing { pointer-events: none; animation: .2s ease-in-out forwards fade-out; }
  .inventory-dim-layer { z-index: 0; pointer-events: none; transition: background-color .15s, -webkit-backdrop-filter .15s, backdrop-filter .15s; position: fixed; inset: 0; }
  .ui-background.ui-background--ped-preview { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ped-use-drop-zone { pointer-events: none; z-index: 4; box-sizing: border-box; background: transparent; position: absolute; }
  .ped-use-drop-zone--dragging, .ped-use-drop-zone--active { background: transparent; }
  .ped-use-drop-zone__label { display: none; }

  .pref-modal-overlay { z-index: 10000; background-color: #0009; justify-content: center; align-items: center; animation: .2s ease-in-out fade-in; display: flex; position: fixed; inset: 0; }
  .pref-modal-overlay.is-closing { pointer-events: none; animation: .2s ease-in-out forwards fade-out; }
  .pref-modal { width: auto; min-width: 384px; max-width: 512px; font-family: var(--font-roboto); background-color: #17191d; border: 1px solid #ffffff14; border-radius: 8px; flex-direction: column; padding: 20px 24px; display: flex; position: relative; box-shadow: 0 20px 40px #00000080; }
  .pref-header { text-align: left; color: #fff; border-bottom: 1px solid #ffffff14; margin-bottom: 0; padding-bottom: 12px; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 16.8px; font-weight: 600; }
  .pref-item { color: #fff; font-family: var(--font-roboto); cursor: pointer; user-select: none; align-items: center; gap: 10.4px; margin-bottom: 0; font-size: 12.5px; line-height: 1.35; display: flex; }
  .pref-toggle { background-color: #464a50cc; border-radius: 7.68px; flex-shrink: 0; width: 32.64px; height: 15.36px; transition: all .2s ease-in-out; position: relative; }
  .pref-toggle-active { background-color: var(--inventory-accent); }
  .pref-circle { width: 13.44px; height: 13.44px; box-shadow: none; background-color: #fff; border-radius: 50%; transition: all .2s ease-in-out; position: absolute; top: .96px; left: .96px; }
  .pref-circle-active { transform: translate(18.24px); }
  .pref-modal > .flex { flex-direction: column; gap: 10.4px; margin: 16px 0; display: flex; }
  .pref-slider-row { color: #fff9; font-family: var(--font-roboto); user-select: none; flex-direction: column; gap: 8px; margin: 4px 0 0; font-size: 11.5px; font-weight: 500; display: flex; }
  .pref-slider-row__label { justify-content: space-between; align-items: center; gap: 12px; display: flex; }
  .pref-slider-row__value { color: #ffffffb3; font-variant-numeric: tabular-nums; }
  .pref-slider { appearance: none; cursor: pointer; background: #ffffff1f; border-radius: 3px; outline: none; width: 100%; height: 6px; }
  .pref-slider::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--inventory-accent) 0%, var(--inventory-accent) var(--pref-slider-fill, 0%), #ffffff1f var(--pref-slider-fill, 0%), #ffffff1f 100%); border-radius: 3px; height: 6px; }
  .pref-slider::-webkit-slider-thumb { appearance: none; cursor: pointer; background: #fff; border-radius: 50%; width: 16px; height: 16px; margin-top: -5px; box-shadow: 0 1px 4px #0006; }
  .pref-slider::-moz-range-track { background: #ffffff1f; border-radius: 3px; height: 6px; }
  .pref-slider::-moz-range-progress { background: var(--inventory-accent); border-radius: 3px; height: 6px; }
  .pref-slider::-moz-range-thumb { cursor: pointer; background: #fff; border: none; border-radius: 50%; width: 16px; height: 16px; box-shadow: 0 1px 4px #0006; }
  .pref-footer { border-top: 1px solid #ffffff14; justify-content: flex-end; gap: 8px; margin-top: 0; padding-top: 12px; display: flex; }
  .pref-close-btn { background-color: var(--inventory-accent); color: #fff; min-width: auto; height: auto; font-family: var(--font-roboto); cursor: pointer; border-radius: 6px; justify-content: center; align-items: center; padding: 8px 12px; font-size: 12.5px; font-weight: 500; transition: filter .2s; display: flex; }
  .pref-close-btn:hover { filter: brightness(1.08); }

  .item-tooltip { z-index: 10050; box-sizing: border-box; color: #fff; pointer-events: auto !important; background-color: #17191d; border: 1px solid #ffffff14; border-radius: 8px; flex-direction: column; gap: 4.8px; width: 224px; padding: 12px 13.6px; font-family: Roboto, sans-serif; display: none; position: fixed; box-shadow: 0 12px 24px #00000080; }
  .item-tooltip.visible { display: flex; }
  .item-tooltip--interactive { padding-bottom: 16px; }
  .item-tooltip__header { color: #fff; border-bottom: 1px solid #ffffff14; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2.4px; padding-bottom: 6.4px; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 14.4px; font-weight: 600; display: flex; }
  .item-tooltip__title { font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; word-break: break-word; line-height: 1.2; }
  .item-tooltip__qty { color: var(--inventory-accent); flex-shrink: 0; font-family: Roboto, sans-serif; font-size: 12px; font-weight: 500; line-height: 1.2; }
  .item-tooltip__row { color: #ffffffd9; align-items: center; gap: 5.6px; font-family: Roboto, sans-serif; font-size: 11.2px; font-weight: 400; line-height: 1.35; display: flex; }
  .item-tooltip__row--muted { color: #ffffff80; }
  .item-tooltip__row--id { user-select: text; cursor: pointer; }
  .item-tooltip__id-text { text-overflow: ellipsis; white-space: nowrap; flex: auto; min-width: 0; overflow: hidden; user-select: text; }
  .item-tooltip__copy { color: #ffffff80; cursor: pointer; opacity: 1; pointer-events: auto; background: transparent; border: none; border-radius: 3px; justify-content: center; align-items: center; width: 18px; height: 18px; margin-left: auto; padding: 0; font-size: 10px; transition: opacity .1s, color .1s, background-color .1s; display: inline-flex; flex-shrink: 0; }
  .item-tooltip__copy:hover { color: #fff; background-color: #ffffff1a; }
  .item-tooltip__row i, .item-tooltip__row .item-tooltip__glyph { text-align: center; width: .6rem; height: .6rem; color: inherit; opacity: 1; flex-shrink: 0; font-size: .6rem; line-height: 1; }
}

@layer utilities {
  .pointer-events-auto { pointer-events: auto; }
  .pointer-events-none { pointer-events: none; }
  .\!visible { visibility: visible !important; }
  .visible { visibility: visible; }
  .\!relative { position: relative !important; }
  .absolute { position: absolute; }
  .fixed { position: fixed; }
  .relative { position: relative; }
  .inset-0 { inset: calc(var(--spacing) * 0); }
  .\!top-0 { top: calc(var(--spacing) * 0) !important; }
  .top-0 { top: calc(var(--spacing) * 0); }
  .top-1 { top: calc(var(--spacing) * 1); }
  .top-16 { top: calc(var(--spacing) * 16); }
  .top-\[54px\] { top: 54px; }
  .top-\[102px\] { top: 102px; }
  .right-1 { right: calc(var(--spacing) * 1); }
  .\!left-0 { left: calc(var(--spacing) * 0) !important; }
  .left-7 { left: calc(var(--spacing) * 7); }
  .left-\[8px\] { left: 8px; }
  .left-\[1269px\] { left: 1269px; }
  .z-0 { z-index: 0; }
  .z-10 { z-index: 10; }
  .z-20 { z-index: 20; }
  .z-\[1\] { z-index: 1; }
  .z-\[21\] { z-index: 21; }
  .z-\[40\] { z-index: 40; }
  .z-\[200\] { z-index: 200; }
  .z-\[9999\] { z-index: 9999; }
  .block { display: block; }
  .flex { display: flex; }
  .grid { display: grid; }
  .inline { display: inline; }
  .h-\[37px\] { height: 37px; }
  .h-\[106px\] { height: 106px; }
  .h-\[696px\] { height: 696px; }
  .h-\[909px\] { height: 909px; }
  .h-full { height: 100%; }
  .min-h-\[18px\] { min-height: 18px; }
  .w-\[102px\] { width: 102px; }
  .w-\[106px\] { width: 106px; }
  .w-\[595px\] { width: 595px; }
  .w-\[1889px\] { width: 1889px; }
  .w-full { width: 100%; }
  .min-w-\[18px\] { min-width: 18px; }
  .transform { transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,); }
  .cursor-help { cursor: help; }
  .cursor-pointer { cursor: pointer; }
  .resize { resize: both; }
  .flex-col { flex-direction: column; }
  .items-center { align-items: center; }
  .justify-center { justify-content: center; }
  .gap-0\.5 { gap: calc(var(--spacing) * .5); }
  .gap-2 { gap: calc(var(--spacing) * 2); }
  .gap-3 { gap: calc(var(--spacing) * 3); }
  .gap-\[12px\] { gap: 12px; }
  .gap-\[17px\] { gap: 17px; }
  .overflow-hidden { overflow: hidden; }
  .overflow-y-auto { overflow-y: auto; }
  .object-contain { object-fit: contain; }
  .font-roboto { font-family: var(--font-roboto); }
  .text-\[12px\] { font-size: 12px; }
  .text-\[15px\] { font-size: 15px; }
  .font-medium { --tw-font-weight: var(--font-weight-medium); font-weight: var(--tw-font-weight); }
  .tracking-tight { --tw-tracking: var(--tw-tracking); letter-spacing: var(--tw-tracking); }
  .whitespace-nowrap { white-space: nowrap; }
  .text-amber-100 { color: var(--color-amber-100); }
  .text-amber-200 { color: var(--color-amber-200); }
  .text-red-400 { color: var(--color-red-400); }
  .text-rose-200 { color: var(--color-rose-200); }
  .text-sky-300 { color: var(--color-sky-300); }
  .text-white { color: var(--color-white); }
  .text-white\/90 { color: #ffffffe6; }
  @supports (color: color-mix(in lab, red, red)) {
    .text-white\/90 { color: color-mix(in oklab, var(--color-white) 90%, transparent); }
  }
  .opacity-0 { opacity: 0; }
  .opacity-15 { opacity: .15; }
  .opacity-95 { opacity: .95; }
  .blur { --tw-blur: blur(8px); filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); }
  .drop-shadow-\[0_1px_2px_rgba\(0\,0\,0\,0\.9\)\] { --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, #000000e6)); --tw-drop-shadow: var(--tw-drop-shadow-size); filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); }
  .saturate-0 { --tw-saturate: saturate(0%); filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); }
  .transition-all { transition-property: all; transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); transition-duration: var(--tw-duration, var(--default-transition-duration)); }
  .transition-opacity { transition-property: opacity; transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); transition-duration: var(--tw-duration, var(--default-transition-duration)); }
  .duration-300 { --tw-duration: .3s; transition-duration: var(--tw-duration); }
  .select-none { user-select: none; }
}

.item-tooltip__header { margin-bottom: .2rem; padding-bottom: .5rem; font-size: .9rem; line-height: 1.25; }
.item-tooltip__row { gap: .45rem; min-height: 1.05rem; font-size: .7rem; line-height: 1.45; }
.item-tooltip__row i, .item-tooltip__row .item-tooltip__glyph { width: .6rem; height: .6rem; font-size: .6rem; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

#main-container {
  transform-origin: 0 0;
  width: 1920px;
  height: 1080px;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  position: absolute;
}

.inventory-slot--selected {
  /* Pas de contour orange au clic */
  outline: none !important;
  box-shadow: inset 0 0 0 1px #ffffff08;
}

.inventory-slot:focus,
.inventory-slot:focus-visible,
.inventory-slot:active {
  outline: none !important;
}

.inventory-item-image img {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 75%;
  object-fit: contain;
  pointer-events: none;
}

.action-slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Règles finales d'origine : elles remplacent certaines déclarations plus haut. */
.inventory-item-quantity {
  z-index: 2;
  pointer-events: none;
  font-style: normal;
  line-height: normal;
  position: absolute;
  top: 8px !important;
  left: 8px !important;
  color: #ffffffd9 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 11.84px !important;
  font-weight: 400 !important;
}

.inventory-item-label {
  z-index: 5;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  width: 80%;
  font-style: normal;
  line-height: normal;
  position: absolute;
  bottom: 5.5%;
  left: 10%;
  right: 10%;
  overflow: hidden;
  color: #fff !important;
  font-family: Roboto, sans-serif !important;
  font-size: 11.84px !important;
  font-weight: 400 !important;
}

.inventory-item-label[data-unique-id] {
  pointer-events: auto !important;
  cursor: help;
  z-index: 6;
}

.item-durability-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 7;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}

.item-durability-bar {
  height: 100%;
  background: var(--inventory-accent, var(--server-primary-color, #5296b9));
  box-shadow: 0 0 6px rgba(var(--inventory-accent-rgb, 82, 150, 185), 0.55);
  transition: width 0.2s ease;
}

.inventory-slot {
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 11.84px;
  font-weight: 400;
  background: #17191d8c !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: inset 0 0 0 1px #ffffff08 !important;
}

.inventory-slot.occupied,
.inventory-slot:not(.inventory-slot--empty) {
  background: #17191dd9 !important;
  box-shadow: inset 0 0 0 1px #ffffff17 !important;
}

.theme-light .inventory-slot {
  color: #1a1a1a;
  background: #dcdcdc8c !important;
  box-shadow: inset 0 0 0 1px #00000008 !important;
}

.theme-light .inventory-slot.occupied,
.theme-light .inventory-slot:not(.inventory-slot--empty) {
  background: #dcdcdcd9 !important;
  box-shadow: inset 0 0 0 1px #00000017 !important;
}

.inventory-weight-bar {
  box-sizing: border-box;
  background: #ffffff1f;
  border-radius: 999px;
  flex: 0 0 72px;
  align-self: center;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 4.5px;
  min-height: 4.5px;
  max-height: 4.5px;
  position: relative;
  overflow: hidden;
}

.inventory-weight-bar__fill {
  background: var(--inventory-accent);
  border-radius: 999px;
  height: 4.5px;
  transition: width .2s;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.inventory-weight-row.is-heavy .inventory-weight-bar__fill { background: #f59e0b; }
.inventory-weight-row.is-full .inventory-weight-bar__fill { background: #ef4444; }

.inventory-panel-title {
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  letter-spacing: .48px !important;
  font-family: "Roboto Condensed", Roboto, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.inventory-panel-left { gap: 8px; }
.tab-icon { width: 36px; height: 36px; }
.tab-icon__svg { color: #ffffffa6; }
.tab-icon:hover:not(.tab-active) .tab-icon__svg { color: #ffffffe6; }
.tab-active .tab-icon__svg { color: #fff; }

.inventory-switch { color: #fff9; font-family: Roboto, sans-serif; font-size: 11.5px; font-weight: 500; }

.inventory-settings-button {
  color: #fff;
  fill: #fff;
  opacity: .8;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  outline: none;
  align-items: center;
  font-family: Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  transition: all .2s ease-in-out;
  display: flex;
}

.inventory-settings-button:hover { color: #fff8; fill: #fff8; }
.inventory-settings-button i { margin-right: 5.44px; font-size: 12.5px; }
.inventory-search-input::-moz-placeholder { font-family: Roboto, sans-serif; font-size: 12.5px; font-weight: 400; }
.inventory-search-input, .inventory-search-input::placeholder { font-family: Roboto, sans-serif; font-size: 12.5px; font-weight: 400; }

.scrollbar-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}

.scrollbar-container::-webkit-scrollbar { background: transparent !important; width: 0 !important; height: 0 !important; display: none !important; }

.inventory-scroll-thumb-track {
  pointer-events: auto;
  z-index: 30;
  width: 8px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  cursor: pointer;
}
.inventory-scroll-thumb {
  pointer-events: auto;
  background: rgba(var(--inventory-accent-rgb), 0.95);
  border-radius: 999px;
  position: absolute;
  left: 0;
  right: 0;
  min-height: 48px;
  cursor: grab;
}
.inventory-scroll-thumb:active {
  cursor: grabbing;
}
.inventory-slot.droppable, .action-slot.droppable { transform-origin: 50%; transition: transform .2s ease-in-out, filter .2s ease-in-out; }
.dragging-item { animation: .4s ease-in-out fade-in; }
.inventory-slot.can-drop, .action-slot.can-drop { filter: brightness(1.35); }
.inventory-slot:not(.inventory-slot--empty).can-drop { filter: brightness(1.12); }
.inventory-slot.can-drop:hover, .action-slot.can-drop:hover { z-index: 8; overflow: visible; transform: scale(1.06); }

.inventory-ui--dragging .inventory-slot.can-drop,
.inventory-ui--dragging .inventory-slot.can-drop:hover,
.inventory-ui--dragging .action-slot.can-drop,
.inventory-ui--dragging .action-slot.can-drop:hover {
  transition: none;
  transform: none;
}

.inventory-slot:not(.inventory-slot--empty).can-drop:hover { filter: brightness(1.12); }
.inventory-slot.dragging { opacity: .6; }

@property --tw-rotate-x { syntax: "*"; inherits: false; }
@property --tw-rotate-y { syntax: "*"; inherits: false; }
@property --tw-rotate-z { syntax: "*"; inherits: false; }
@property --tw-skew-x { syntax: "*"; inherits: false; }
@property --tw-skew-y { syntax: "*"; inherits: false; }
@property --tw-font-weight { syntax: "*"; inherits: false; }
@property --tw-tracking { syntax: "*"; inherits: false; }
@property --tw-blur { syntax: "*"; inherits: false; }
@property --tw-brightness { syntax: "*"; inherits: false; }
@property --tw-contrast { syntax: "*"; inherits: false; }
@property --tw-grayscale { syntax: "*"; inherits: false; }
@property --tw-hue-rotate { syntax: "*"; inherits: false; }
/* Flags items (cadenas / bound / restriction / event) */
.slot-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  color: #fff;
  z-index: 20;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.item-bound-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  z-index: 19;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) brightness(0) invert(1);
  pointer-events: none;
}

.item-bound-icon--offset {
  right: 22px;
}

.item-restriction-wrapper {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 21;
  pointer-events: auto;
}

.item-restriction-icon-offset {
  right: 22px !important;
}

.item-restriction-icon {
  width: 12px;
  height: 12px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) brightness(0) invert(1);
  cursor: help;
}

.restriction-tooltip,
.event-tooltip {
  position: absolute;
  top: 18px;
  right: -4px;
  background-color: rgba(59, 59, 59, 0.95);
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
  font-family: Roboto, sans-serif;
}

.item-restriction-wrapper:hover .restriction-tooltip,
.event-icon-wrapper:hover .event-tooltip {
  opacity: 1;
  visibility: visible;
}

.event-icon-wrapper {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 40;
  pointer-events: auto;
}

.event-icon-wrapper.offset {
  right: 22px;
}

.item-event-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  cursor: help;
}

.ui-draggable-dragging .slot-lock,
.ui-draggable-dragging .item-bound-icon,
.ui-draggable-dragging .item-restriction-wrapper,
.ui-draggable-dragging .event-icon-wrapper {
  display: none;
}

/* Mode Donner : même grille inventaire, juste le titre change */
#app.give-mode #right-inventory-help {
  display: none !important;
}

/* Mode admin give / remboursement */
#app.refund-mode #right-inventory-help {
  display: none !important;
}

/* Mode coffre véhicule */
#app.trunk-mode #right-inventory-help {
  display: none !important;
}

/* Mode Échange */
#app.trade-mode #right-scroll,
#app.trade-mode #right-thumb-track,
#app.trade-mode #right-inventory-help,
#app.trade-mode .inventory-toolbar__right {
  display: none !important;
}

#app.trade-mode #trade-panel {
  display: flex !important;
}

#app.trade-mode .inventory-weight-row {
  display: none !important;
}

.trade-panel {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.trade-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-section-title {
  font-family: Roboto, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-transform: uppercase;
  padding-left: 2px;
}

.trade-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-height: 220px;
  padding: 4px;
  border-radius: 6px;
  box-sizing: border-box;
}

.trade-grid.trade-drop-hover {
  outline: 2px solid var(--server-primary-color, #5296b9);
  outline-offset: 2px;
  background: rgba(var(--server-primary-rgb, 82, 150, 185), 0.08);
}

.trade-grid .inventory-slot {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 102px;
  height: 102px;
}

.trade-grid .trade-slot-empty {
  pointer-events: none;
  opacity: 0.85;
}

.trade-grid .trade-slot-empty:hover {
  border-color: inherit;
}

.trade-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
}

.trade-btn {
  flex: 1;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(28, 30, 34, 0.92);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.trade-btn:hover {
  background: rgba(42, 46, 53, 0.95);
  border-color: var(--server-primary-color, #5296b9);
}

.trade-btn-accept.is-ready {
  background: rgba(46, 125, 50, 0.55);
  border-color: #5fa05d;
}

.trade-btn-accept.is-ready:hover {
  background: rgba(46, 125, 50, 0.7);
}

.trade-ready-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 2px;
}

.trade-ready-status .ready-ok {
  color: #7dce7a;
}

@property --tw-invert { syntax: "*"; inherits: false; }
@property --tw-opacity { syntax: "*"; inherits: false; }
@property --tw-saturate { syntax: "*"; inherits: false; }
@property --tw-sepia { syntax: "*"; inherits: false; }
@property --tw-drop-shadow { syntax: "*"; inherits: false; }
@property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
@property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
@property --tw-duration { syntax: "*"; inherits: false; }
