/* Back office: the round panel (served as /rounds.css). */
/* The open round: a panel on the right over the list (the list stays where it was). */
body:has(.drawer) {
  overflow: hidden;
}
.drawer-back {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgb(0 0 0 / 0.5);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  width: min(720px, 100vw);
  overflow-y: auto;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgb(0 0 0 / 0.45);
  animation: drawer-in 0.18s ease-out;
}
.drawer section {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding-top: 20px;
}
.drawer section h2:first-child {
  padding-right: 48px;
  word-break: break-all;
}
/* Wide tables scroll inside the panel instead of being cut off on a phone. */
.drawer table:not(.grid) {
  display: block;
  overflow-x: auto;
}
.drawer h2 {
  margin-top: 18px;
}
.drawer-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
tr.sel td {
  background: rgb(242 177 52 / 0.14);
}
@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drawer {
    animation: none;
  }
}
