/* Nexas workspace presentation: no financial/stock behaviour belongs here. */
/* Inherit the shared Nexas font, page/card gradients and button finishes. */
.ux-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ux-report-heading h1 {
  margin-bottom: 0.25rem;
}
.ux-report-logo {
  width: 130px;
  max-height: 85px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}
.ux-report-picker {
  margin: 1rem 0;
}
.ux-report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.ux-report-metrics .card {
  margin: 0;
}
.ux-report-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}
.ux-report-metrics strong {
  display: block;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.3rem;
}
.ux-report-metrics small {
  font-size: 0.8rem;
  font-weight: 600;
}
.ux-charts {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.ux-chart {
  min-width: 0;
  margin: 0;
}
.ux-chart h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.ux-chart-scroll {
  overflow-x: auto;
  max-width: 100%;
  background: var(--card-grad);
  border-radius: 8px;
  padding: 0.7rem;
}
.ux-chart svg {
  display: block;
  width: 100%;
  min-width: 0;
  font-family: Arial, sans-serif;
}
.ux-chart .ux-chart-compact {
  display: none;
}
.ux-chart text[fill="#1a1e3d"] {
  fill: var(--ink);
}
.ux-chart text[fill="#5b6478"] {
  fill: var(--muted);
}
.ux-chart line[stroke="#d8deea"] {
  stroke: var(--line-strong);
}
html[data-theme="dark"] .ux-chart :is(text, rect)[fill="#a36e00"] {
  fill: #edc66b;
}
html[data-theme="dark"] .ux-chart :is(text, rect)[fill="#1b75bc"] {
  fill: #55b6f5;
}
.ux-chart-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.ux-chart-legend span[style]::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--series);
  margin-right: 0.4rem;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .ux-report-logo {
    width: 95px;
    max-height: 65px;
  }
  .ux-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .ux-report-metrics strong {
    font-size: 1.25rem;
  }
  .ux-chart-scroll {
    padding: 0.35rem;
  }
  .ux-chart .ux-chart-wide {
    display: none;
  }
  .ux-chart .ux-chart-compact {
    display: block;
  }
}
.ux .sn-links details {
  margin: 0.7rem 0;
}
.ux .sn-links summary {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 0.82rem;
}
.ux .sn-links details a {
  padding-left: 1.2rem;
}
.ux .sn-links .ux-department > summary {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #f1f5ff;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(41, 171, 226, 0.2), transparent);
}
.ux .sn-links .ux-department > summary strong {
  font-weight: 800;
}
.ux .ux-department-title {
  font-weight: 800;
}
.ux button,
.ux .btn {
  min-height: 44px;
}
.ux button.ghost,
.ux .btn.ghost {
  background: var(--card);
  color: var(--ink);
}
.ux :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.ux label {
  font-size: 0.88rem;
}
.ux th {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.ux-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
.ux-tabs a,
.ux-tabs button {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
}
.ux .ux-tabs [aria-current="page"],
.ux .ux-tabs [aria-pressed="true"] {
  /* Fixed brand blues keep white labels readable in both themes. */
  background: linear-gradient(135deg, #252a75, #1b75bc);
  color: #fff;
}
.ux-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ux-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0;
}
.ux-warning {
  padding: 0.75rem;
  border-left: 4px solid var(--gold);
  background: var(--warn-bg);
}
.ux-report {
  margin: 1rem 0;
}
.ux-report td {
  font-variant-numeric: tabular-nums;
}
.ux-report td:first-child {
  font-weight: 600;
}
.ux [hidden] {
  display: none !important;
}
.ux .ux-panel {
  scroll-margin-top: 5rem;
}
.ux .ux-mobilebar {
  display: none;
}
.ux input[type="search"] {
  max-width: 32rem;
}
.ux details > summary {
  min-height: 44px;
  cursor: pointer;
}
.ux .ux-table th {
  white-space: nowrap;
}
.ux .ux-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ux .ux-row-actions > * {
  margin: 0;
}
.ux .ux-danger {
  background: #b42318 !important;
  color: #fff !important;
}
@media (max-width: 640px) {
  .ux .ux-mobilebar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--card);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 0.4rem;
  }
  .ux-mobilebar a {
    padding: 0.6rem;
    text-decoration: none;
  }
  .ux .ux-table thead {
    display: none;
  }
  .ux .ux-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--line);
    padding: 0.6rem 0;
  }
  .ux .ux-table td {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    border: 0;
  }
  .ux .ux-table td:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .ux .ux-table td:first-child {
    grid-column: 1/-1;
  }
  .ux .ux-report.tablewrap {
    max-height: none;
    overflow: visible;
  }
  .ux .ux-table td:last-child {
    grid-column: 1/-1;
  }
}
@media print {
  .ux-tabs,
  .ux-mobilebar,
  .ux-actions,
  form {
    display: none !important;
  }
  .ux [hidden] {
    display: block !important;
  }
  .ux-report {
    overflow: visible !important;
    max-height: none !important;
  }
}

.ux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.ux-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}
.ux-filters label {
  min-width: 150px;
  flex: 1;
}
.ux-filters input,
.ux-filters select {
  width: 100%;
  box-sizing: border-box;
}
.ux-report-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.ux-slip-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.ux-slip-review img {
  max-width: 100%;
  height: auto;
}
.ux-task-preview {
  grid-column: 1/-1;
  padding: 0.75rem;
  background: var(--bg);
  border-left: 3px solid var(--cyan);
  margin: 0.7rem 0;
}
.ux main {
  min-width: 0;
}
.ux .sn-links summary {
  color: #c8d2ee;
}
.ux .sn-links a {
  min-height: 44px;
}
.ux .ux-filters input:invalid {
  box-shadow: none;
}
@media (max-width: 640px) {
  .ux-slip-review {
    display: block;
  }
  .ux .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ux .grid > * {
    grid-column: auto !important;
    min-width: 0;
  }
  .ux .ux-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .ux .ux-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .ux main:has(.ux-mobilebar) {
    padding-bottom: 5rem;
  }
  .ux input,
  .ux select,
  .ux textarea {
    max-width: 100%;
    min-height: 44px;
  }
  .ux .tablewrap {
    max-width: 100%;
  }
}
.ux button.navburger,
.ux button.themetoggle {
  background: transparent;
  color: var(--ink);
  min-width: 44px;
}
.ux-grid > .card {
  margin: 0;
}
.ux-actions {
  margin-bottom: 1rem;
}
.ux .ux-move-task form.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.ux .ux-move-task form.grid > * {
  min-width: 0;
}
.ux .sn-foot button {
  background: transparent;
  color: #d5dcf2;
}
@media (max-width: 640px) {
  .ux .ux-move-task form.grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
