.cb-history-date-folder {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid #dbe3ee;
}

.cb-history-date-folder:first-child {
  border-top: 0;
}

.cb-history-date-folder > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 8px;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

.cb-history-date-folder > summary::-webkit-details-marker {
  display: none;
}

.cb-history-date-folder > summary::before {
  content: ">";
  width: 14px;
  color: #667085;
  font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transform-origin: 45% 50%;
  transition: transform 0.16s ease;
}

.cb-history-date-folder[open] > summary::before {
  transform: rotate(90deg);
}

.cb-history-date-folder > summary:hover {
  color: #101828;
  background: rgba(15, 127, 143, 0.05);
}

.cb-history-date-folder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-history-date-folder-count {
  margin-left: auto;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cb-history-date-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 2px 0 14px;
}

#easydock-task-list .cb-history-date-items,
#esmfold2-history-list .cb-history-date-items {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

#jobsBody .cb-history-date-items {
  grid-template-columns: 1fr;
}

#rfdiffusion3-page #jobsBody .cb-history-date-items {
  grid-template-columns: 1fr;
}

#taskList .cb-history-date-items {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#mpnn-task-list .cb-history-date-items {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

#historyList .cb-history-date-items,
#taskGrid .cb-history-date-items {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

body[data-cb-view="history"] #jobsBody .cb-history-date-items {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (max-width: 640px) {
  .cb-history-date-items,
  #easydock-task-list .cb-history-date-items,
  #esmfold2-history-list .cb-history-date-items,
  #taskList .cb-history-date-items,
  #mpnn-task-list .cb-history-date-items,
  #historyList .cb-history-date-items,
  #taskGrid .cb-history-date-items,
  #rfdiffusion3-page #jobsBody .cb-history-date-items,
  body[data-cb-view="history"] #jobsBody .cb-history-date-items {
    grid-template-columns: 1fr;
  }
}
