/* v647 — Finance is calendar-only. Remove the selected/current grouping detail
   column and legacy spreadsheet surface, let the calendar use the full center
   width, and stop persisted day groupings from coloring calendar dates. */

/* Retire the spreadsheet surface even if an older cached script briefly creates it. */
.iw-finance-sheet-v622,
.iw-finance-sheet-return-v622{
  display:none!important;
}

/* The old current/paycheck grouping detail column is no longer part of Finance. */
body[data-v29-world="finances"] .finance-calendar-side-v60,
body[data-active-world="finances"] .finance-calendar-side-v60{
  display:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Give the calendar all available center-stage width. */
body[data-v29-world="finances"] .calendar-view.active,
body[data-active-world="finances"] .calendar-view.active{
  padding:8px 8px 64px!important;
}
body[data-v29-world="finances"] .finance-calendar-layout-v60,
body[data-active-world="finances"] .finance-calendar-layout-v60,
body[data-v29-world="finances"] .finance-calendar-layout-v60.active,
body[data-active-world="finances"] .finance-calendar-layout-v60.active{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  gap:0!important;
}
body[data-v29-world="finances"] .finance-calendar-main-v60,
body[data-active-world="finances"] .finance-calendar-main-v60,
body[data-v29-world="finances"] .finance-calendar-layout-v60 .calendar-shell,
body[data-active-world="finances"] .finance-calendar-layout-v60 .calendar-shell{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
body[data-v29-world="finances"] #calendarGrid.finance-calendar-stack-v59,
body[data-active-world="finances"] #calendarGrid.finance-calendar-stack-v59{
  width:100%!important;
  max-width:none!important;
  padding:7px!important;
  gap:9px!important;
}

/* Existing day-group/category ranges remain data, but no longer tint, outline,
   or otherwise visually group dates on the calendar. The temporary drag preview
   class is intentionally left alone so date-range creation still has feedback
   while the pointer is actively selecting. */
body[data-v29-world="finances"] .calendar-day.finance-range-v43,
body[data-active-world="finances"] .calendar-day.finance-range-v43,
body[data-v29-world="finances"] .calendar-day.finance-range-edge-v43,
body[data-active-world="finances"] .calendar-day.finance-range-edge-v43{
  background:#fff!important;
  box-shadow:none!important;
  outline:0!important;
}

/* Mobile Finance should not reintroduce the same persisted grouping treatment. */
body[data-v29-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256,
body[data-active-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256{
  background:#fff!important;
  box-shadow:none!important;
  outline:0!important;
}
body[data-v29-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256.outside,
body[data-active-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256.outside{
  background:#f7f8fa!important;
}
body[data-v29-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256 .mobile-calendar-day-number-v256,
body[data-active-world="finances"] .mobile-calendar-day-v256.current-paycheck-date-v256 .mobile-calendar-day-number-v256{
  color:inherit!important;
  font-weight:900!important;
}
body[data-v29-world="finances"] .mobile-calendar-month-head-v256 > span,
body[data-active-world="finances"] .mobile-calendar-month-head-v256 > span{
  display:none!important;
}

@media(max-width:820px){
  body[data-v29-world="finances"] .calendar-view.active,
  body[data-active-world="finances"] .calendar-view.active{
    padding:6px 5px 72px!important;
  }
}
