/* Dashboard rebalance: task board + mail on top, full-height messaging on the right. */
.cash-card { display: none !important; }
.dashboard-grid { margin-top: 14px; }
.top-workspace { grid-template-columns: minmax(520px, 1.7fr) minmax(300px, .78fr); }
.todo-card { grid-column: 1; }
.top-mail { grid-column: 2; }
.top-mail.mail-card { display: flex; min-height: 0; }
.todo-card .card-head { flex-basis: 48px; }
.todo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-height: 0; }
.todo-board > section { min-width: 0; border-right: 1px solid #e4ebf5; }
.todo-board > section:last-child { border-right: 0; }
.todo-day { display: flex; justify-content: space-between; align-items: center; padding: 10px 11px 7px; color: #738198; font-size: 11px; }
.todo-day b { color: #15233f; font-size: 13px; }
.todo-board .todo-item { grid-template-columns: 14px minmax(0,1fr) auto; padding: 7px 10px; gap: 6px; }
.todo-board .todo-item b { font-size: 11px; }
.todo-board .todo-item small, .todo-board .todo-item em { font-size: 9px; }
.todo-board input:checked + span { opacity: .55; text-decoration: line-through; }
.todo-card .all-todos { margin-top: 3px; }

.right-column { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
.right-column > .mail-card:not(.top-mail) { display: none; }
.right-column > .messages { grid-row: 1; min-height: 100%; }
.right-column > .messages .conversation { min-height: 300px; }

/* The three dashboard creation actions intentionally share one exact footprint. */
.todo-card .panel-action,
.schedule-card .panel-action,
.calendar-card .calendar-head .outline {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-width: 112px;
  height: 31px;
  padding: 0 8px;
  margin-left: auto;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1450px) { .top-workspace { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .78fr); } }
@media (max-width: 1050px) { .top-workspace { grid-template-columns: 1fr; } .top-mail { grid-column: 1; } .todo-board { grid-template-columns: 1fr; } .todo-board > section { border-right: 0; border-bottom: 1px solid #e4ebf5; } }

/* Keep the two dashboard rows on one shared column grid at every desktop width. */
.left-column { min-width: 0; }
.top-workspace,
.bottom-workspace {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .78fr);
  gap: 11px;
}

@media (min-width: 2200px) {
  .top-workspace,
  .bottom-workspace {
    grid-template-columns: minmax(0, 1.7fr) minmax(350px, .78fr);
    gap: 16px;
  }
}

@media (max-width: 1450px) {
  .top-workspace,
  .bottom-workspace { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .78fr); }
}

@media (max-width: 1050px) {
  .top-workspace,
  .bottom-workspace { grid-template-columns: 1fr; }
}
