/* Expanded project-hours list: date groups with scanable person, work and billing columns. */
.sheet-day-header {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-block:24px 8px;}
.sheet-day:first-child .sheet-day-header {margin-block-start:0;}
.sheet-day-header h3 {margin:0;}
.sheet-day-heading {display:flex;align-items:baseline;gap:10px;min-width:0;}
.sheet-day-header>span,.sheet-hour-columns,.sheet-work-status,.sheet-day-status {color:var(--muted);}
.sheet-day-status {font-size:var(--text-body);line-height:1.35;}
.sheet-hour-list {list-style:none;margin:0;padding:0;}
.sheet-hour-columns,.sheet-entry {display:grid;grid-template-columns:minmax(7.75rem,.9fr) minmax(0,2.15fr) minmax(4.75rem,.62fr) minmax(5.5rem,.72fr);gap:12px 16px;align-items:start;}
.sheet-hour-columns {padding:0 0 7px;border-bottom:1px solid var(--line);font-size:var(--text-body);line-height:1.3;}
.sheet-hour-columns span:nth-child(n+3) {text-align:right;}
.sheet-entry {padding-block:12px;border-bottom:1px solid var(--line);}
.sheet-entry + .sheet-entry {border-block-start:0;}
.sheet-entry-person,.sheet-entry-main,.sheet-entry-time,.sheet-entry-duration,.sheet-entry-billing {min-width:0;overflow-wrap:anywhere;}
.sheet-entry-person {overflow-wrap:normal;word-break:normal;hyphens:none;}
.sheet-entry-person strong,.sheet-entry-main strong,.sheet-entry .sheet-activity {font-weight:550;}
.sheet-entry-time,.sheet-entry-duration,.sheet-entry-billing {font-variant-numeric:tabular-nums;}
.sheet-entry-duration,.sheet-entry-time {text-align:right;}
.sheet-work-status {display:block;line-height:1.35;}
.sheet-hour-list .sheet-include {grid-column:1/-1;margin-top:-2px;}
@container project-content (min-width:571px) and (max-width:700px) {
  .sheet-columns.sheet-columns--hours {grid-template-columns:minmax(0,1fr);gap:20px;}
  .sheet-columns--hours>div:first-child {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;order:2;}
  .sheet-columns--hours>div:nth-child(2) {order:1;}
}
@container hour-list (max-width:480px) {
  .sheet-hour-columns {display:none;}
  .sheet-entry {grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;padding-block:14px;}
  .sheet-entry-person {grid-column:1/-1;color:var(--muted);font-size:.8125rem;}
  .sheet-entry-main {grid-column:1;}
  .sheet-entry-time {grid-column:2;grid-row:2;color:var(--muted);white-space:nowrap;}
  .sheet-entry-duration {grid-column:1;text-align:left;color:var(--muted);}
}

/* The expanded panel follows the summary, toolbar and date bands in view 156. */
@container diary-page (min-width:881px) {
  .project-sheet-workspace .sheet-content:has(.sheet-columns--hours) {
    display: flex;
    flex-direction: column;
    min-block-size: var(--sheet-body-height);
  }
  .project-sheet-workspace .sheet-content > .sheet-title { flex: none; }
}
@container project-content (min-width:701px) {
  .project-sheet-workspace .sheet-columns--hours { flex: 1; }
}
.project-sheet-workspace .sheet-columns--hours > div:first-child {
  align-self: stretch;
  padding: 0 12px 12px;
  background: var(--project-summary);
}
.project-sheet-workspace .sheet-columns--hours .sheet-totals > div {
  padding: 7px 6px;
  border-block-end: 1px solid var(--sheet-rule);
}
.project-sheet-workspace .sheet-columns--hours :is(.sheet-totals > div:has([aria-pressed="true"]), .sheet-person[aria-pressed="true"]) {
  background: var(--project-selection);
  color: var(--ink);
}
.project-sheet-workspace .sheet-columns--hours .sheet-totals button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.project-sheet-workspace .sheet-columns--hours .sheet-section > header:has(.sheet-work-search) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  gap: 8px 16px;
}
.project-sheet-workspace .sheet-columns--hours .sheet-work-search {
  max-width: 248px;
  margin: 0;
  min-width: 0;
}
.project-sheet-workspace .sheet-day-header {
  background: var(--project-selection);
  color: var(--ink);
  padding: 5px 6px;
  line-height: 20px;
}
.project-sheet-workspace .sheet-day-header :is(h3, span) { color: inherit; }
.project-sheet-workspace .sheet-day-header h3 { font-weight: 400; }
.project-sheet-workspace :is(.sheet-hour-columns, .sheet-entry) { padding-inline: 6px; }
.project-sheet-workspace .sheet-hour-list .sheet-entry { padding-block: 8px; line-height: 1.4; }
.project-sheet-workspace .sheet-entry :is(strong, .sheet-activity) { font-weight: 400; }
@container project-content (max-width:570px) {
  .project-sheet-workspace .sheet-columns--hours .sheet-section > header:has(.sheet-work-search) {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
  .project-sheet-workspace .sheet-columns--hours .sheet-work-search {
    grid-area: 2 / 1 / 3 / -1;
    width: 100%;
    max-width: none;
  }
}
