.s01 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-12);
  height: 100%;
  min-height: 0;
}
.s01__list {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.s01__detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: var(--space-8);
}
.s01__detail .document-paper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.s01__detail .decision-band {
  flex: 0 0 auto;
}
.s01__detail .document-paper__zoom {
  align-self: flex-end;
}
.s01__note {
  font-size: var(--font-size-table);
}
.s01--overlay {
  grid-template-rows: minmax(0, 1fr) auto;
}
.s01--overlay .s01__detail {
  display: contents;
}
.s01--overlay .s01__list {
  grid-column: 1;
  grid-row: 1;
}
.s01--overlay .document-paper {
  grid-column: 2;
  grid-row: 1;
}
.s01--overlay .decision-band {
  grid-column: 2;
  grid-row: 2;
}
.s01--overlay .document-paper__zoom {
  display: none;
}
.s01--overlay > .overlay-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
  justify-self: center;
  width: 75%;
  max-height: 100%;
}
.s01--overlay > .overlay-panel--confirm {
  align-self: center;
  width: 50%;
}
.s01--overlay > .overlay-panel--period-check {
  align-self: end;
  width: 100%;
}
.s01--narrow {
  display: block;
}
.s01--narrow .s01__list,
.s01--narrow .s01__detail {
  height: auto;
  overflow: visible;
}
.s01--narrow .s01__detail {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.s01--narrow .s01__detail .document-paper {
  flex: 1 1 100%;
}
.s01--narrow .document-paper__back {
  flex: 1 1 0;
  width: auto;
  margin-bottom: 0;
}
.s01--narrow .s01__detail .document-paper__zoom {
  align-self: auto;
}
.s01--narrow.s01--overlay .s01__list,
.s01--narrow.s01--overlay .s01__detail {
  display: none;
}
.s01--narrow > .overlay-panel {
  width: 100%;
  max-height: none;
}
.s01--narrow.s01--detail .s01__list {
  display: none;
}
.s01--narrow:not(.s01--detail) .s01__detail {
  display: none;
}
.app-frame--proposals .app-frame__bottom > .decision-band {
  max-height: 45dvh;
  overflow-y: auto;
}
@media (max-width: 599px) {
  .app-frame--proposals .app-frame__body {
    padding: var(--space-8);
  }
  .document-paper {
    padding: var(--space-12);
  }
}

/* 稟議画面の枠の高さ固定（PC では一覧と紙をそれぞれスクロールさせる） */
.app-frame--proposals {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.app-frame--proposals .app-frame__overview {
  flex: 0 0 auto;
}
.app-frame--proposals .app-frame__body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-12);
  overflow: hidden;
}
.app-frame--proposals .app-frame__bottom {
  flex: 0 0 auto;
  min-height: 0;
}
/* 狭い画面は一覧と一枚の紙を縦に並べるので、本文全体をスクロールさせる */
.app-frame--compact.app-frame--proposals .app-frame__body {
  overflow-y: auto;
}
