/* 72-disposable-window.css — Chantier 3: watchlist disposable chart+profile windows.
   Floating, draggable, "jetable" (assets/disposable_windows.js). Isolated from the
   dashboard window engine — these carry no .panel-box class and no module id. */

/* ── row ▣ button (mirrors .wl-compare-* from 50-calendar-cards.css) ── */
.wl-chart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.wl-chart-ico {
  width: 15px; height: 15px;
  background-color: #5f5f66;
  transition: background-color 0.12s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9h2v5H2zM7 5h2v9H7zM12 2h2v12h-2z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9h2v5H2zM7 5h2v9H7zM12 2h2v12h-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wl-data-row:hover .wl-chart-ico { background-color: var(--accent); }
.wl-chart-btn:hover .wl-chart-ico { background-color: var(--accent-interactive); }
.wl-chart-tip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 60;
}
.wl-chart-btn:hover .wl-chart-tip { opacity: 1; }

/* ── the floating window ── */
.wl-dispo {
  position: absolute;
  background: #0c111a;
  border: 1px solid #26364a;
  border-radius: 7px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  font-family: Consolas, "Courier New", monospace;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 360px;
  min-height: 88px;
  color: #cdd8e4;
}
.wl-dispo-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px;
  background: #111a24;
  border-bottom: 1px solid #223247;
  cursor: move;
  flex-shrink: 0;
}
.wl-dispo-lights { display: flex; gap: 7px; }
.wl-dispo-dot {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.wl-dispo-dot.red { background: #ff5f57; }
.wl-dispo-dot.amber { background: #febc2e; }
.wl-dispo-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wl-dispo-title b { color: #e6edf5; font-size: 13px; letter-spacing: 0.04em; }
.wl-dispo-name {
  color: #6b7c90; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-dispo-quote { margin-left: auto; display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.wl-dispo-quote .px { color: #e6edf5; font-size: 13px; }
.wl-dispo-quote .chg { font-size: 12px; }
.wl-dispo-quote .chg.pos { color: var(--positive); }
.wl-dispo-quote .chg.neg { color: var(--negative); }

.wl-dispo-periods { display: flex; gap: 4px; padding: 8px 11px 4px; flex-shrink: 0; }
.wl-dispo-pill {
  font-size: 10px; color: #7d8da0; padding: 2px 8px; border-radius: 3px;
  border: 1px solid #1e2a39; cursor: pointer; user-select: none;
}
.wl-dispo-pill:hover { border-color: #33465c; color: #aebdcf; }
.wl-dispo-pill.on { color: #0b0f16; background: #5b7fa6; border-color: #5b7fa6; font-weight: 700; }

.wl-dispo-chart { position: relative; flex: 1 1 auto; min-height: 90px; padding: 3px 8px 6px; }
.wl-dispo-chart svg { width: 100%; height: 100%; display: block; }
.wl-dispo-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #5f7086; font-size: 11px; pointer-events: none;
}

.wl-dispo-sec {
  padding: 9px 12px 3px; font-size: 9px; letter-spacing: 0.1em;
  color: #4f627a; text-transform: uppercase; border-top: 1px solid #182230; flex-shrink: 0;
}
.wl-dispo-grid {
  padding: 2px 12px 12px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 22px; flex-shrink: 0;
}
.wl-dispo-kv {
  display: flex; justify-content: space-between;
  border-bottom: 1px dotted #182230; padding-bottom: 3px;
}
.wl-dispo-kv .k { color: #66788e; font-size: 11px; }
.wl-dispo-kv .v { color: #cdd8e4; font-size: 11px; }

.wl-dispo-resize { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; }
.wl-dispo-resize::after {
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 6px; height: 6px;
  border-right: 2px solid #3a4d63; border-bottom: 2px solid #3a4d63;
}

/* collapsed (🟠 réduire) — only the title bar shows */
.wl-dispo.is-collapsed { height: auto !important; min-height: 0; }
.wl-dispo.is-collapsed .wl-dispo-periods,
.wl-dispo.is-collapsed .wl-dispo-chart,
.wl-dispo.is-collapsed .wl-dispo-sec,
.wl-dispo.is-collapsed .wl-dispo-grid,
.wl-dispo.is-collapsed .wl-dispo-resize { display: none; }
