/* =============================================================================
   Presentations tab — app.css
   All rules use .pres-* classes to avoid collisions with dashboard globals.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Page layout
   --------------------------------------------------------------------------- */

/* Top-level flex wrapper: fills the viewport below the header/nav.
   The server template should give this element a fixed height or use flex. */
.pres-body {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 84px); /* nav (40px) + page header (44px); matches management-calls */
  min-height: 0;
  overflow: hidden;
  font-family: inherit;
  background: #f5f6f8;
}

/* ---------------------------------------------------------------------------
   Left pane: company picker + deck list
   --------------------------------------------------------------------------- */

.pres-list-pane {
  display: flex;
  flex-direction: column;
  width: 320px;
  min-width: 240px;
  max-width: 400px;
  flex-shrink: 0;
  border-right: 1px solid #d1d5db;
  background: #fff;
  overflow: hidden;
}

.pres-list-pane__header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.pres-list-pane__title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pres-company-select {
  display: block;
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  appearance: auto;
  cursor: pointer;
}

.pres-company-select:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
  border-color: #6366f1;
}

.pres-list-count {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

/* Scrollable list area */
.pres-list-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
}

/* Empty / error / loading messages */
.pres-list-empty,
.pres-list-loading,
.pres-list-error {
  padding: 20px 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.pres-list-error {
  color: #dc2626;
}

/* ---------------------------------------------------------------------------
   Deck list items
   --------------------------------------------------------------------------- */

.pres-list-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  color: #111827;
}

.pres-list-item:hover {
  background: #f0f4ff;
}

.pres-list-item.is-active {
  background: #eef2ff;
  border-left: 3px solid #6366f1;
  padding-left: 11px;
}

.pres-list-item__date {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}

.pres-list-item__type {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 3px;
  text-transform: capitalize;
}

.pres-list-item__title {
  font-size: 12px;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 5px;
  word-break: break-word;
}

.pres-list-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ---------------------------------------------------------------------------
   Badges (shared)
   --------------------------------------------------------------------------- */

.pres-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pres-badge--pdf {
  background: #dbeafe;
  color: #1d4ed8;
}

.pres-badge--pdf.pres-badge--unavailable {
  background: #fee2e2;
  color: #b91c1c;
}

.pres-badge--structured {
  background: #d1fae5;
  color: #065f46;
}

.pres-badge--no-extraction {
  background: #f3f4f6;
  color: #6b7280;
}

.pres-badge--engine {
  background: #fef3c7;
  color: #92400e;
}

.pres-badge--engine-di {
  background: #ede9fe;
  color: #5b21b6;
}

.pres-badge--engine-legacy {
  background: #f3f4f6;
  color: #6b7280;
}

.pres-badge--slide-type {
  background: #e0f2fe;
  color: #0369a1;
}

.pres-badge--density {
  background: #fef9c3;
  color: #713f12;
}

/* ---------------------------------------------------------------------------
   Right pane: detail
   --------------------------------------------------------------------------- */

.pres-detail-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Empty state (no deck selected) */
.pres-detail-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 15px;
}

/* Detail content container */
.pres-detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Deck header */
.pres-detail-header {
  flex-shrink: 0;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.pres-detail-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

.pres-detail-meta {
  font-size: 12px;
  color: #6b7280;
}

/* ---------------------------------------------------------------------------
   Split panes container (PDF top / structured bottom)
   --------------------------------------------------------------------------- */

.pres-split-panes {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ---------------------------------------------------------------------------
   PDF pane (top half)
   --------------------------------------------------------------------------- */

.pres-pdf-pane {
  flex: 1 1 50%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  gap: 12px;
  min-height: 0;
  position: relative; /* makes child .pres-pdf-page offsetTop pane-relative for scroll sync */
}

/* Each page placeholder / rendered page */
.pres-pdf-page {
  width: 100%;
  max-width: 860px;
  /* The pane is a flex column; without this the page divs shrink to slivers and
     `overflow: hidden` clips the full-height page image to a thin strip. */
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: outline 0.1s;
}

.pres-pdf-page:hover {
  outline: 2px solid #6366f1;
}

/* Canvas fills its parent page div */
.pres-pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Server-rendered page image fills its .pres-pdf-page wrapper. */
.pres-pdf-page-img {
  display: block;
  width: 100%;
  height: auto;
}

.pres-pdf-page-error {
  padding: 12px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* PDF unavailable notice */
.pres-pdf-unavailable {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: auto;
}

/* PDF load failure */
.pres-pdf-error {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 20px 24px;
  color: #7f1d1d;
  font-size: 13px;
  margin: auto;
}

.pres-pdf-error p {
  margin: 0 0 12px;
}

.pres-pdf-error__link {
  display: inline-block;
  margin-bottom: 12px;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: underline;
}

.pres-pdf-error__iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------------
   Structured pane (bottom half)
   --------------------------------------------------------------------------- */

.pres-structured-pane {
  flex: 1 1 50%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 2px solid #d1d5db;
  background: #fafafa;
  padding: 16px 20px;
  min-height: 0;
  position: relative; /* makes child .pres-slide offsetTop pane-relative for scroll sync */
}

.pres-loading {
  color: #9ca3af;
  font-size: 14px;
  padding: 20px 0;
}

.pres-error {
  color: #dc2626;
  font-size: 13px;
  padding: 16px 0;
}

.pres-no-extraction {
  color: #9ca3af;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Deck summary (collapsible)
   --------------------------------------------------------------------------- */

.pres-deck-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.pres-deck-summary__toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background 0.12s;
}

.pres-deck-summary__toggle:hover {
  background: #f0f4ff;
}

.pres-deck-summary__toggle[aria-expanded="true"] {
  border-bottom-color: #e5e7eb;
}

.pres-deck-summary__body {
  padding: 14px 16px;
}

.pres-deck-summary__exec {
  margin-bottom: 12px;
}

.pres-deck-summary__section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e5e7eb;
}

.pres-deck-summary__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pres-deck-summary__section-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 6px;
}

.pres-deck-summary__section-body,
.pres-deck-summary__insights {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.pres-deck-summary__insights {
  margin-top: 6px;
  color: #6b7280;
}

/* ---------------------------------------------------------------------------
   Slide blocks
   --------------------------------------------------------------------------- */

.pres-slide {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  scroll-margin-top: 8px; /* for scrollIntoView spacing */
}

.pres-slide:hover {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

/* Sync highlight: left accent + subtle tint */
.pres-slide.is-synced {
  border-left: 3px solid #6366f1;
  background: #f0f4ff;
  padding-left: 13px;
  transition: background 0.15s, border-color 0.15s;
}

/* Boilerplate slides are dimmed */
.pres-slide--boilerplate {
  opacity: 0.55;
}

.pres-slide__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pres-slide__number {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  flex-shrink: 0;
}

.pres-slide__title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.pres-slide__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------------
   Slide body content
   --------------------------------------------------------------------------- */

.pres-slide__body {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

/* Markdown output styling */
.pres-slide__markdown h1,
.pres-slide__markdown h2,
.pres-slide__markdown h3,
.pres-slide__markdown h4 {
  margin: 10px 0 6px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.pres-slide__markdown h1 { font-size: 16px; }
.pres-slide__markdown h2 { font-size: 15px; }
.pres-slide__markdown h3 { font-size: 14px; }
.pres-slide__markdown h4 { font-size: 13px; }

.pres-slide__markdown p {
  margin: 0 0 8px;
}

.pres-slide__markdown ul,
.pres-slide__markdown ol {
  margin: 0 0 8px 18px;
  padding: 0;
}

.pres-slide__markdown li {
  margin-bottom: 3px;
}

.pres-slide__markdown a {
  color: #2563eb;
  text-decoration: underline;
}

.pres-slide__markdown strong {
  font-weight: 700;
  color: #111827;
}

.pres-slide__markdown em {
  font-style: italic;
  color: #374151;
}

.pres-slide__markdown code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  color: #374151;
}

.pres-slide__markdown pre {
  background: #f3f4f6;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 12px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.pres-slide__markdown blockquote {
  border-left: 3px solid #d1d5db;
  margin: 0 0 8px 0;
  padding-left: 12px;
  color: #6b7280;
}

/* Tables inside markdown */
.pres-slide__markdown table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 10px;
  font-size: 12px;
}

.pres-slide__markdown th,
.pres-slide__markdown td {
  border: 1px solid #e5e7eb;
  padding: 5px 9px;
  text-align: left;
}

.pres-slide__markdown th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

/* ---------------------------------------------------------------------------
   Key metrics list
   --------------------------------------------------------------------------- */

.pres-slide__metrics {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.pres-slide__metrics-heading {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pres-slide__metrics-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 16px;
  margin: 0;
}

.pres-slide__metrics-list dt {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.pres-slide__metrics-list dd {
  font-size: 12px;
  color: #111827;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Structured tables (from tables_json)
   --------------------------------------------------------------------------- */

.pres-slide__table-wrapper {
  margin-top: 10px;
  overflow-x: auto;
}

.pres-slide__table-title {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.pres-slide__table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 300px;
  width: 100%;
  margin-bottom: 8px;
}

.pres-slide__table th,
.pres-slide__table td {
  border: 1px solid #d1d5db;
  padding: 5px 9px;
  text-align: left;
  vertical-align: top;
  color: #374151;
}

.pres-slide__table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.pres-slide__table tr:nth-child(even) td {
  background: #f9fafb;
}

/* Fallback: unknown table shape */
.pres-slide__table-raw {
  font-size: 11px;
  background: #f3f4f6;
  padding: 10px 12px;
  border-radius: 5px;
  overflow-x: auto;
  color: #4b5563;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------------------------------------------------------------------------
   Visual description note
   --------------------------------------------------------------------------- */

.pres-slide__visual {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Scrollbar styling (webkit) — subtle in both panes
   --------------------------------------------------------------------------- */

.pres-list-scroll::-webkit-scrollbar,
.pres-pdf-pane::-webkit-scrollbar,
.pres-structured-pane::-webkit-scrollbar {
  width: 6px;
}

.pres-list-scroll::-webkit-scrollbar-track,
.pres-pdf-pane::-webkit-scrollbar-track,
.pres-structured-pane::-webkit-scrollbar-track {
  background: transparent;
}

.pres-list-scroll::-webkit-scrollbar-thumb,
.pres-pdf-pane::-webkit-scrollbar-thumb,
.pres-structured-pane::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.pres-list-scroll::-webkit-scrollbar-thumb:hover,
.pres-pdf-pane::-webkit-scrollbar-thumb:hover,
.pres-structured-pane::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ---------------------------------------------------------------------------
   Responsive: narrow viewports — collapse the left pane a bit
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .pres-list-pane {
    width: 240px;
  }
}

@media (max-width: 640px) {
  .pres-body {
    flex-direction: column;
    height: auto;
  }

  .pres-list-pane {
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    height: 220px;
  }

  .pres-detail-pane {
    flex: none;
    height: calc(100vh - 330px);
  }

  .pres-pdf-pane,
  .pres-structured-pane {
    flex: 1 1 50%;
    min-height: 200px;
  }
}

/* ---------------------------------------------------------------------------
   Shell elements styled to match the server template's class names
   (page header, left-pane picker) + [hidden] correctness.
   --------------------------------------------------------------------------- */

html, body { margin: 0; }

.pres-page-header {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.pres-page-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.pres-count {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.pres-select-label {
  display: block;
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* The picker carries class "pres-company-select" in the template; give it a
   little horizontal breathing room inside the (padding-less) list pane. */
.pres-company-select {
  margin: 0 12px 8px;
  width: calc(100% - 24px);
}

/* The [hidden] attribute must win over the explicit display:flex on these
   containers, otherwise toggling element.hidden in JS has no visual effect. */
.pres-detail-empty[hidden],
.pres-detail-content[hidden] { display: none !important; }

/* =============================================================================
   Filter bar — mirrors management-calls .mc-filters / .mc-multi-select* styles
   using pres- prefix so there are zero class name collisions.
   ============================================================================= */

/* CSS custom properties scoped to the filter bar */
.pres-filters {
  --pres-fg:          #1f2937;
  --pres-fg-muted:    #6b7280;
  --pres-fg-faint:    #9ca3af;
  --pres-card:        #ffffff;
  --pres-border:      #e5e7eb;
  --pres-border-soft: #f1f5f9;
  --pres-blue:        #6366f1;
  --pres-blue-bg:     #eef2ff;
  --pres-blue-soft:   #e0e7ff;
  --pres-red:         #dc2626;
  --pres-radius:      6px;

  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--pres-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--pres-card);
}

/* Individual labelled filter field */
.pres-filter-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pres-filter-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--pres-fg-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Shared input / select styling */
.pres-input {
  border: 1px solid var(--pres-border, #e5e7eb);
  border-radius: var(--pres-radius, 6px);
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--pres-card, #fff);
  color: var(--pres-fg, #1f2937);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
  box-sizing: border-box;
}

.pres-input:focus {
  border-color: var(--pres-blue, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.pres-input-narrow {
  width: 110px;
  flex: 0 0 110px;
}

.pres-input-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

/* Bottom row: clear link */
.pres-filter-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--pres-border-soft, #f1f5f9);
}

.pres-clear-link {
  margin-left: auto;
}

/* Generic link-style button */
.pres-link-btn {
  background: none;
  border: 0;
  color: var(--pres-blue, #6366f1);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 12px;
}

.pres-link-btn:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Multi-select Companies — popover trigger + popover + rows + chips
   --------------------------------------------------------------------------- */

.pres-companies-field {
  position: relative;
}

/* Trigger (looks like a select but is a div) */
.pres-multi-select {
  border: 1px solid var(--pres-border, #e5e7eb);
  border-radius: var(--pres-radius, 6px);
  padding: 6px 8px;
  font-size: 13px;
  background: var(--pres-card, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}

.pres-multi-select:hover {
  border-color: var(--pres-blue, #6366f1);
}

.pres-multi-select-placeholder {
  color: var(--pres-fg-muted, #6b7280);
}

.pres-multi-select.has-selection .pres-multi-select-placeholder {
  color: var(--pres-fg, #1f2937);
  font-weight: 500;
}

.pres-multi-select-caret {
  color: var(--pres-fg-faint, #9ca3af);
  font-size: 11px;
  flex-shrink: 0;
}

/* Popover */
.pres-multi-select-popover {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--pres-card, #fff);
  border: 1px solid var(--pres-border, #e5e7eb);
  border-radius: var(--pres-radius, 6px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: 380px;
}

.pres-multi-select-popover[hidden] {
  display: none;
}

/* Search inside popover */
.pres-multi-select-search {
  border: 0;
  border-bottom: 1px solid var(--pres-border, #e5e7eb);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

/* Select-all / Clear toolbar */
.pres-multi-select-toolbar {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--pres-border-soft, #f1f5f9);
  font-size: 12px;
}

/* Scrollable company list */
.pres-multi-select-list {
  overflow-y: auto;
  max-height: 280px;
  padding: 4px 0;
}

/* Individual company row */
.pres-multi-select-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.pres-multi-select-row:hover {
  background: var(--pres-blue-bg, #eef2ff);
}

.pres-multi-select-row[aria-selected="true"] {
  background: var(--pres-blue-bg, #eef2ff);
}

.pres-multi-select-row input[type="checkbox"] {
  accent-color: var(--pres-blue, #6366f1);
  flex-shrink: 0;
}

.pres-multi-select-row-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pres-multi-select-row-ticker {
  color: var(--pres-fg-faint, #9ca3af);
  font-family: monospace;
  font-size: 11px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Company chips (selected-company pills below the trigger)
   --------------------------------------------------------------------------- */

.pres-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* Hide empty chip row so it doesn't add vertical space */
.pres-chip-row:empty {
  display: none;
}

.pres-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pres-blue-soft, #e0e7ff);
  color: var(--pres-blue, #6366f1);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pres-chip-x {
  cursor: pointer;
  color: var(--pres-blue, #6366f1);
  font-weight: 700;
  line-height: 1;
}

.pres-chip-x:hover {
  color: var(--pres-red, #dc2626);
}

/* ---------------------------------------------------------------------------
   Company label on deck list items (shown in multi-company view)
   --------------------------------------------------------------------------- */

.pres-list-item__company {
  font-size: 10px;
  font-weight: 700;
  color: var(--pres-blue, #6366f1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
