/* GUTO workbench. Registry adaptations and licenses: docs/development/DASHBOARD_REDESIGN_2026-11-06.md. */
#dashboard-overview {
  gap: 24px;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}
#dashboard-overview .dash-assistant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--card);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 2px 12px -8px rgb(0 0 0 / 0.18);
}
.dash-assistant-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dash-assistant-intro > img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
#dashboard-overview .dash-assistant h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--foreground);
}
.dash-assistant p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 6px 0 0;
}
.dash-assistant-open {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--workspace-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.dash-assistant-open svg {
  width: 18px;
  height: 18px;
}
.dash-assistant-open:hover {
  background: var(--workspace-accent-soft);
  border-color: var(--workspace-accent);
}
.dash-assistant-open:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
/* React Bits SpotlightCard: isolated light and masked edge, with a native DOM controller. */
.dash-assistant .spotlight-card__light,
.dash-assistant .spotlight-card__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.dash-assistant .spotlight-card__light {
  z-index: -1;
}
.dash-assistant .spotlight-card__edge {
  z-index: 1;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
@supports not (mask-composite: exclude) {
  .dash-assistant .spotlight-card__edge {
    display: none;
  }
}
#dashboard-overview .dash-agenda-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 24px;
}
#dashboard-overview .dash-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 0;
  overflow: hidden;
}
#dashboard-overview .dash-card-header {
  min-height: 80px;
  padding: 22px 22px 18px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
#dashboard-overview .dash-card-header h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--foreground);
}
.dash-card-description {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
#dashboard-overview .dash-see-all {
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  min-height: 36px;
  white-space: nowrap;
}
#dashboard-overview .dash-see-all svg {
  width: 15px;
  height: 15px;
}
#dashboard-overview .dash-mini-list {
  max-height: none;
  overflow: visible;
  padding: 0 22px;
  min-height: 184px;
}
#dashboard-overview .dash-deadline-item {
  min-height: 78px;
  padding: 17px 0;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
#dashboard-overview .dash-deadline-item:last-child {
  border-bottom: 0;
}
#dashboard-overview .dash-deadline-item[role="button"] {
  transition: background-color 150ms ease;
}
#dashboard-overview .dash-deadline-item[role="button"]:hover {
  background: var(--secondary);
}
#dashboard-overview .dash-deadline-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
}
#dashboard-overview .dash-deadline-title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
#dashboard-overview .dash-deadline-processo {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
#dashboard-overview .dash-deadline-date {
  font-size: 11px;
  line-height: 1.5;
  border-radius: 5px;
  flex-shrink: 0;
  max-width: none;
  white-space: nowrap;
  text-align: right;
}
#dashboard-overview #dash-deadlines-list .dash-deadline-item { min-height: 60px; padding: 12px 0; }
#dashboard-overview #dash-deadlines-list .dash-deadline-info { min-width: 0; flex: 1; }
#dashboard-overview #dash-deadlines-list .dash-deadline-title,
#dashboard-overview #dash-deadlines-list .dash-deadline-processo {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dashboard-overview #dash-deadlines-list .dash-deadline-date { width: auto; font-variant-numeric: tabular-nums; }
#dashboard-overview .dash-top-row {
  display: block;
  padding: 0 2px;
}
.dash-portfolio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 4px 0 12px;
}
.dash-portfolio-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
.dash-portfolio-heading > span {
  font-size: 12px;
  color: var(--muted-foreground);
}
#dashboard-overview .dash-kpi-row {
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
#dashboard-overview .dash-kpi {
  min-height: 87px;
  padding: 18px 20px;
  gap: 13px;
  border: 0;
  border-radius: 0;
  position: relative;
}
#dashboard-overview .dash-kpi:nth-child(-n + 4) {
  border-bottom: 1px solid var(--border);
}
#dashboard-overview .dash-kpi:not(:nth-child(4n)) {
  border-right: 1px solid var(--border);
}
#dashboard-overview .dash-kpi:hover {
  background: var(--secondary);
}
#dashboard-overview .dash-kpi-icon {
  width: 22px;
  height: 28px;
  border-radius: 0;
  background: transparent;
}
#dashboard-overview .dash-kpi-icon svg {
  width: 18px;
  height: 18px;
}
#dashboard-overview .dash-kpi-label {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 5px;
}
#dashboard-overview .dash-kpi-value {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
#dashboard-overview .dash-kpi:nth-child(n + 5) .dash-kpi-value {
  font-size: 21px;
}
.dash-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
#dashboard-overview .dash-timeline {
  max-height: none;
  overflow: visible;
  padding: 20px 22px;
  gap: 0;
}
#dashboard-overview .dash-timeline-item {
  padding: 0 0 24px;
  min-height: 64px;
}
#dashboard-overview .dash-timeline-item:last-child {
  padding-bottom: 0;
}
#dashboard-overview .dash-timeline-item:not(:last-child):before {
  left: 13px;
  top: 28px;
  bottom: 0;
  background: var(--border);
}
#dashboard-overview .dash-timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
#dashboard-overview .dash-timeline-text {
  font-size: 13px;
  line-height: 1.6;
}
#dashboard-overview .dash-timeline-date {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}
#dashboard-overview #dash-financial-content {
  padding: 8px 22px 22px;
}
#dashboard-overview #dash-financial-content.finance-blurred:hover {
  filter: blur(8px);
}
#dashboard-overview .dash-finance-grid {
  gap: 12px;
  margin: 0;
}
#dashboard-overview .dash-finance-item {
  padding-block: 20px;
}
#dashboard-overview .dash-finance-label {
  font-size: 12px;
  line-height: 1.5;
}
#dashboard-overview .dash-finance-value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 7px;
}
#dashboard-overview .dash-finance-value.positive {
  color: #15803d;
}
html.dark #dashboard-overview .dash-finance-value.positive {
  color: #34d399;
}
#dashboard-overview .dash-finance-extra {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  gap: 20px;
}
#dashboard-overview .dash-finance-extra > div {
  flex: 1;
  min-width: 80px;
}
#dashboard-overview .dash-finance-extra span {
  font-size: 11px;
  line-height: 1.6;
}
#dashboard-overview .dash-finance-extra strong {
  font-size: 18px;
  margin-top: 6px;
  font-weight: 600;
}
#dashboard-overview .dash-empty-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
  padding: 24px 8px;
}
/* shadcn Skeleton's pulse / rounded-md / bg-accent translated to existing GUTO tokens. */
.dash-loading {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px 0;
  min-height: 170px;
}
.dash-loading .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.dash-loading .dash-skeleton {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--secondary);
  animation: dash-skeleton-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.dash-skeleton-title {
  width: 80%;
}
.dash-skeleton-detail {
  width: 52%;
  margin-bottom: 20px;
}
@keyframes dash-skeleton-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (max-width: 1200px) {
  #dashboard-overview .dash-agenda-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  }
  #dashboard-overview .dash-kpi {
    padding: 16px 13px;
    gap: 9px;
  }
  .dash-bottom-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1000px) {
  #dashboard-overview .dash-agenda-row {
    grid-template-columns: 1fr;
  }
  .dash-bottom-row {
    grid-template-columns: 1fr;
  }
  #dashboard-overview .dash-mini-list {
    min-height: 120px;
  }
}
@media (max-width: 600px) {
  #dashboard-overview {
    gap: 20px;
  }
  #dashboard-overview .dash-assistant {
    padding: 21px 18px;
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .dash-assistant-intro {
    gap: 12px;
    align-items: start;
  }
  .dash-assistant-intro > img {
    width: 36px;
    height: 36px;
  }
  #dashboard-overview .dash-assistant h2 {
    font-size: 18px;
  }
  .dash-assistant p {
    font-size: 12px;
    margin-top: 6px;
  }
  .dash-assistant-open {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
  }
  #dashboard-overview .dash-card-header {
    padding: 19px 16px;
    gap: 12px;
  }
  #dashboard-overview .dash-card-header h2 {
    font-size: 14px;
  }
  .dash-card-description {
    font-size: 12px;
  }
  #dashboard-overview .dash-see-all {
    font-size: 11px;
    gap: 5px;
  }
  #dashboard-overview .dash-mini-list {
    padding-inline: 16px;
  }
  #dashboard-overview .dash-deadline-item {
    gap: 9px;
    padding-block: 16px;
    flex-wrap: wrap;
  }
  #dashboard-overview .dash-deadline-info {
    flex: 1 1 155px;
  }
  #dashboard-overview .dash-deadline-date {
    margin-left: auto;
    max-width: 100%;
  }
  #dashboard-overview .dash-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #dashboard-overview .dash-kpi {
    min-height: 92px;
    border-right: 0 !important;
    padding: 16px 12px;
    gap: 9px;
  }
  #dashboard-overview .dash-kpi:nth-child(odd) {
    border-right: 1px solid var(--border) !important;
  }
  #dashboard-overview .dash-kpi:nth-child(-n + 6) {
    border-bottom: 1px solid var(--border);
  }
  #dashboard-overview .dash-kpi-label {
    font-size: 11px;
    line-height: 1.5;
  }
  #dashboard-overview .dash-kpi-icon {
    display: none;
  }
  .dash-portfolio-heading > span {
    display: none;
  }
  #dashboard-overview .dash-kpi-value {
    font-size: 24px;
  }
  #dashboard-overview .dash-timeline {
    padding: 20px 16px;
  }
  #dashboard-overview #dash-financial-content {
    padding-inline: 16px;
  }
  #dashboard-overview .dash-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #dashboard-overview .dash-finance-item.full-width {
    grid-column: 1/-1;
    padding-top: 0;
  }
  #dashboard-overview .dash-finance-extra {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-loading .dash-skeleton {
    animation: none;
  }
  .dash-assistant-open,
  #dashboard-overview .dash-financial-side #dash-financial-content {
    transition: none;
  }
}
html[data-motion-reduced="true"] .dash-loading .dash-skeleton {
  animation: none;
}
html[data-motion-reduced="true"]
  #dashboard-overview
  .dash-financial-side
  #dash-financial-content {
  transition: none;
}
@media (forced-colors: active) {
  .dash-assistant .spotlight-card__light,
  .dash-assistant .spotlight-card__edge {
    display: none;
  }
  #dashboard-overview .dash-assistant {
    border: 1px solid CanvasText;
  }
}
