/*
 * RNWBL Relay local evaluation skin — Zammad 7.2.2.
 * Original styling inspired by a compact support workspace, not Pylon assets.
 * POC-only runtime injection; visit localhost:8081 for the untouched baseline.
 * Native build-time alternatives are documented in poc-workflow-evaluation.md.
 * No controls, state colors, private-note indicators, or focus rings are hidden.
 */

/* Classic Zammad exposes these design tokens in zammad.scss. */
:root {
  --button-primary-background: #2563eb;
  --button-primary-background-active: #1d4ed8;
  --text-nav: #2563eb;
  --menu-background-primary: #111827;
  --menu-background-secondary: #1e293b;
  --menu-close-tab-background: #1e293b;
  --menu-background-active: #1d4ed8;
  --menu-text: #cbd5e1;
  --menu-icon: #94a3b8;
}

:root:not([data-theme='dark']) {
  --header-primary: #172033;
  --text-normal: #334155;
  --text-muted: #64748b;
  --text-link: #1d4ed8;
  --background-primary: #f7f8fb;
  --background-primary-alt: #f0f3f8;
  --background-secondary: #ffffff;
  --background-secondary-hover: #f1f5f9;
  --background-highlight: #eaf1ff;
  --border: #e2e8f0;
  --border-alt: #d5ddea;
  --border-highlight: #3b82f6;
  --shadow-highlight: #dbeafe;
}

:root[data-theme='dark'] {
  --text-link: #93c5fd;
  --text-nav: #93c5fd;
  --border-highlight: #60a5fa;
  --shadow-highlight: #1e3a5f;
}

/* Narrowly target queue cells, not administration tables or form controls. */
.overviews .table-overview .table > thead > tr > th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.overviews .table-overview .table > tbody > tr > td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.overviews .table-overview .table > tbody > tr:hover {
  background-color: var(--background-highlight);
}

@media (min-width: 1100px) {
  .ticketZoom-controls {
    padding-top: 18px;
  }

  .ticketZoom .ticket-article {
    margin-top: 30px;
  }

  .ticketZoom-header .ticket-title-update {
    font-size: 23px;
    line-height: 1.35;
  }

  .ticketZoom .ticket-article-item {
    padding-bottom: 25px;
  }
}

/*
 * The Vue desktop build documents data-zammad-target as its skinning hook.
 * Retain native selected, unread, warning, priority, and internal-note colors.
 * Avoid overriding layout widths/resizing or any visibility/display property.
 */
[data-zammad-target='TicketListTable'] td {
  height: 36px;
}

[data-zammad-target='TicketListTable'] th {
  font-weight: 600;
  letter-spacing: 0.01em;
}

[data-zammad-target='CommonButton'] {
  border-radius: 6px;
}

:root:not([data-theme='dark']) [data-zammad-target='TicketOverview'] {
  --color-blue-50: #f8fafc;
  --color-blue-200: #f1f5f9;
  --color-blue-600: #dbeafe;
  --color-blue-800: #2563eb;
  --color-blue-850: #1d4ed8;
  --color-blue-900: #1e3a8a;
}

/* The center footer is clear in both evaluated UIs; keep away from Update. */
.relay-poc-badge {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  z-index: 999;
  pointer-events: none;
  user-select: none;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 2px 6px;
  background: #f8fafce8;
  color: #334155;
  font: 600 9px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.035em;
}

[data-theme='dark'] .relay-poc-badge {
  background: #172033eb;
  color: #e2e8f0;
  border-color: #64748b;
}

@media print {
  .relay-poc-badge {
    position: static;
    transform: none;
    display: block;
    width: fit-content;
    margin: 8px 0;
  }
}
