/* BITRACE_PAYOUT_POPUP_LAYOUT_R1: the three payout-history views only. */
#workspace#workspace dialog.br-winners-history[open] {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto minmax(0,1fr);
  position:fixed;
  inset:0;
  margin:auto;
  box-sizing:border-box;
  width:min(1000px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  min-width:0;
  height:min(520px,calc(100vh - 48px));
  height:min(520px,calc(100dvh - 48px));
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  min-height:0;
  padding:0;
  overflow:hidden;
  border:1px solid #3c92ad;
  border-radius:12px;
  background:linear-gradient(180deg,#0d2b3f 0,#081b2a 78px);
  color:#e1f6ff;
  box-shadow:0 20px 64px #0009;
}
#workspace#workspace dialog.br-winners-history::backdrop { background:#020b14b8; }
#workspace#workspace dialog.br-winners-history > h3 {
  grid-column:1;
  grid-row:1;
  align-self:center;
  min-width:0;
  margin:0;
  padding:18px 20px;
  color:#e8f8ff;
  font-size:18px;
  line-height:1.4;
  font-weight:700;
  white-space:nowrap;
}
#workspace#workspace dialog.br-winners-history > button {
  grid-column:2;
  grid-row:1;
  align-self:center;
  justify-self:end;
  box-sizing:border-box;
  width:auto;
  min-width:64px;
  height:36px;
  margin:14px 20px 14px 8px;
  padding:0 14px;
  border:1px solid #43859e;
  border-radius:6px;
  background:#123c51;
  color:#edfaff;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}
#workspace#workspace dialog.br-winners-history > button:hover { background:#19516b; }
#workspace#workspace dialog.br-winners-history > button:focus-visible { outline:2px solid #8fe5f1;outline-offset:2px; }
#workspace#workspace dialog.br-winners-history > .table-wrap {
  grid-column:1/-1;
  grid-row:2;
  align-self:stretch;
  box-sizing:border-box;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0;
  max-height:none;
  margin:0 20px 20px;
  padding:0;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #284e64;
  border-radius:8px;
  background:#061725;
}
#workspace#workspace dialog.br-winners-history > .table-wrap > p:only-child {
  display:grid;
  place-content:center;
  box-sizing:border-box;
  min-height:100%;
  margin:0;
  padding:24px;
  text-align:center;
  color:#a7c4d4;
  font-size:15px;
  line-height:1.6;
}
#workspace#workspace dialog.br-winners-history table {
  table-layout:auto!important;
  width:100%!important;
  min-width:830px!important;
  max-width:none!important;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  font-variant-numeric:tabular-nums;
}
#workspace#workspace dialog.br-winners-history :is(th,td) {
  box-sizing:border-box;
  padding:11px 10px!important;
  font-size:13px!important;
  line-height:1.45;
  text-align:center;
  vertical-align:middle;
  border-right:1px solid #24465a;
  border-bottom:1px solid #24465a;
  white-space:nowrap!important;
}
#workspace#workspace dialog.br-winners-history th {
  position:sticky;
  top:0;
  z-index:1;
  background:#103146;
  color:#ffbc62;
}
#workspace#workspace dialog.br-winners-history tbody tr:nth-child(even) { background:#0b2232; }
#workspace#workspace dialog.br-winners-history td:nth-child(5) { text-align:right;color:#ffdc83;font-weight:700; }
#workspace#workspace dialog.br-winners-history td:last-child {
  min-width:150px!important;
  max-width:260px!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
#workspace#workspace dialog.br-winners-history :is(th,td):last-child { border-right:0; }
#workspace#workspace dialog.br-winners-history tbody tr:last-child td { border-bottom:0; }
@media(max-width:600px) {
  #workspace#workspace dialog.br-winners-history[open] {
    width:calc(100vw - 20px);
    max-width:calc(100vw - 20px);
    height:min(480px,calc(100vh - 24px));
    height:min(480px,calc(100dvh - 24px));
    max-height:calc(100vh - 24px);
    max-height:calc(100dvh - 24px);
  }
  #workspace#workspace dialog.br-winners-history > h3 { padding:16px 12px;font-size:16px; }
  #workspace#workspace dialog.br-winners-history > button { margin:12px 12px 12px 4px;min-width:58px; }
  #workspace#workspace dialog.br-winners-history > .table-wrap { margin:0 12px 12px; }
}
