/* Final readability pass: keep existing layouts, only improve scanability and alignment. */

/* Finance: the mode switch lives in the application header now. Keep the
   month/period on the left and actions flush to the right edge of the same
   dashboard shell on both Operations and Analytics. */
.finance-v4-head,
.finance-shared-head {
  grid-template-columns: minmax(220px, 1fr) auto !important;
  width: 100%;
}

.finance-v4-head > .finance-v4-month,
.finance-shared-head > .finance-v4-month {
  grid-column: 1;
  justify-self: start;
}

.finance-v4-head > .finance-v4-head-actions,
.finance-shared-head > .finance-v4-head-actions {
  grid-column: 2;
  justify-self: end;
  margin-left: auto;
}

.finance-v4-head > .finance-view-switch,
.finance-shared-head > .finance-view-switch {
  display: none !important;
}

/* Tasks dashboard: slightly larger type without changing the card geometry. */
.task-workspace-dashboard-v2 .task-view-header h2 {
  font-size: 17px;
}

.task-workspace-dashboard-v2 .task-view-header p {
  font-size: 12px;
}

.task-workspace-dashboard-v2 .task-view-count {
  font-size: 12px;
}

.task-workspace-dashboard-v2 .task-view-count strong {
  font-size: 22px;
}

.task-workspace-dashboard-v2 .task-dashboard-titleline > strong {
  font-size: 14.5px;
  line-height: 1.3;
}

.task-workspace-dashboard-v2 .task-dashboard-titleline .tag {
  font-size: 10.5px;
}

.task-workspace-dashboard-v2 .task-dashboard-status .badge {
  font-size: 10.5px;
}

.task-workspace-dashboard-v2 .task-dashboard-row time {
  font-size: 11.5px;
}

.task-workspace-dashboard-v2 .task-dashboard-stats {
  font-size: 12px;
}

.task-workspace-dashboard-v2 .search input {
  font-size: 14px;
}

/* Classic task list: preserve columns and behavior, make it easier to read. */
#content .table-wrap table {
  font-size: 13px;
}

#content .table-wrap th {
  font-size: 11.5px;
}

#content .table-wrap .task-title {
  font-size: 14px;
  line-height: 1.35;
}

#content .table-wrap .task-description,
#content .table-wrap .session-summary small {
  font-size: 11.5px;
  line-height: 1.35;
}

#content .table-wrap .session-summary,
#content .table-wrap .badge,
#content .table-wrap .tag {
  font-size: 11px;
}

/* Finance: increase scanability of transaction rows and analytical labels. */
.finance-v4-day > header strong {
  font-size: 14px;
}

.finance-v4-day > header span {
  font-size: 12px;
}

.finance-v4-copy strong {
  font-size: 14px;
}

.finance-v4-copy small {
  font-size: 11.5px;
}

.finance-v4-amount strong {
  font-size: 14px;
}

.finance-v4-summary span,
.finance-time-metrics .metric-label,
.finance-metrics .metric-label {
  font-size: 12px;
}

.finance-v4-summary strong {
  font-size: 20px;
}

.finance-v4-filter-head span,
.finance-v4-filter-body label > span,
.finance-v4-amount-range > span,
.finance-v4-type legend {
  font-size: 12px;
}

.finance-v4-filter-head strong {
  font-size: 14px;
}

.finance-v4-filter-body input,
.finance-v4-filter-body select {
  font-size: 14px;
}

.finance-chart-card .card-header h2,
.finance-insight h2,
.finance-category-card .card-header h2 {
  font-size: 16px;
}

.finance-category-row,
.finance-time-legend,
.finance-time-column-group small {
  font-size: 11.5px;
}

/* Keep the desktop controls readable but still compact. */
@media (min-width: 900px) {
  .planner-switch button,
  .finance-view-switch button,
  .finance-time-period-switch button {
    font-size: 13px;
  }
}
