/* ==========================================================
   STAGE PAGE STYLES
   ========================================================== */

/* Page wrapper + primary color for stage page */
.pcl-stage {
  --pcl-primary: #30aed2;
}

/* ==========================================================
   REMOTE PCL CORE SHELL
   The live Pennacool shell uses the shared pcl-navbar header
   plus the body.pcl-sidebar-collapsed toggle, so keep the
   stage page aligned for that shell separately from the local
   Moodle drawer rules below.
   ========================================================== */
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: var(--pcl-navbar-height, 84.5px) !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

body.path-local-pcl_winners.pcl-sidebar-collapsed nav.pcl-navbar ~ #page-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content > .container,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content > .container-fluid,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main-box,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main > div[role="main"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content > .container,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #page-content > .container-fluid,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main-box,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main,
body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #region-main > div[role="main"] {
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #topofscroll {
  margin-left: var(--pcl-sidebar-width, 285px) !important;
  width: calc(100% - var(--pcl-sidebar-width, 285px) - 16px) !important;
  max-width: calc(100% - var(--pcl-sidebar-width, 285px) - 16px) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.path-local-pcl_winners.pcl-sidebar-collapsed nav.pcl-navbar ~ #page-wrapper #topofscroll {
  margin-left: var(--pcl-sidebar-collapsed-width, 84px) !important;
  width: calc(100% - var(--pcl-sidebar-collapsed-width, 84px) - 16px) !important;
  max-width: calc(100% - var(--pcl-sidebar-collapsed-width, 84px) - 16px) !important;
}

body.path-local-pcl_winners .pcl-games,
body.path-local-pcl_winners .pcl-prizes,
body.path-local-pcl_winners .pcl-stage {
  width: 100%;
  max-width: none;
}

body.path-local-pcl_winners .pcl-games .pcl-card,
body.path-local-pcl_winners .pcl-prizes .card,
body.path-local-pcl_winners .pcl-stage .pcl-stage-card {
  width: 100%;
}

/* SweetAlert2 popups on winners pages need clearance below the fixed navbar. */
body.path-local-pcl_winners .swal2-container {
  align-items: flex-start !important;
  padding-top: calc(var(--pcl-navbar-height, 84.5px) + 16px) !important;
}

body.path-local-pcl_winners .swal2-popup {
  margin-top: 0 !important;
}

/* ==========================================================
   Stage card outline (matches Games/Prizes)
   ========================================================== */
.pcl-stage .pcl-stage-card {
  border: 2px solid var(--pcl-primary);
  border-radius: 12px;
  overflow: visible;
}

/* ==========================================================
   TOP BAR (page size + pagination)
   ========================================================== */
.pcl-stage .pcl-stage-topbar {
  padding: 6px 4px 8px;
}

/* Pill select wrapper */
.pcl-stage .pcl-pill-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border: 1px solid var(--pcl-primary);
  border-radius: 999px;
  background: #fff;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

/* Label inside pill */
.pcl-stage .pcl-pill-label {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
}

/* Dropdown inside pill */
.pcl-stage .pcl-pill-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: 2px solid var(--pcl-primary);
  border-radius: 999px;

  padding: 8px 34px 8px 14px;
  font-weight: 700;
  font-size: 14px;

  background: #fff;
  color: var(--pcl-primary);

  line-height: 1;
  cursor: pointer;

  box-shadow: none;
  outline: none;
}

/* Draw a small caret */
.pcl-stage .pcl-pill-dropdown {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pcl-primary) 50%),
    linear-gradient(135deg, var(--pcl-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.pcl-stage .pcl-pill-dropdown:focus {
  box-shadow: 0 0 0 0.25rem rgba(48, 174, 210, 0.25);
}

/* Make page info align nicely */
.pcl-stage .pcl-stage-pageinfo {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ==========================================================
   Stage table wrapper (native horizontal scroll)
   ========================================================== */
.pcl-stage .pcl-stage-tablewrap {
  width: 100%;
  max-width: 100%;
  display: block;

  overflow-x: auto;
  overflow-y: visible;

  padding-left: 8px;
  padding-bottom: 16px;
  margin-bottom: 10px;
  min-height: 30px;

  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;

  border-bottom: 1px solid var(--pcl-primary);
}

/* Allow table to exceed container width */
.pcl-stage #stage-table {
  width: max-content;
  min-width: 100%;
}

/* Prevent wrapping */
.pcl-stage #stage-table th,
.pcl-stage #stage-table td {
  white-space: nowrap;
  vertical-align: middle;
  border-right: 1px solid rgba(31, 41, 55, 0.12);
}

.pcl-stage #stage-table th:last-child,
.pcl-stage #stage-table td:last-child {
  border-right: 0;
}

/* Optional hover highlight */
.pcl-stage #stage-table tbody tr:hover {
  background-color: rgba(48, 174, 210, 0.05);
}

/* Final route-specific shell flattening.
 * Keep the stage and winners layouts aligned with the actual available space
 * by removing the remaining Boost paddings and row gutters on this route.
 */
body.path-local.path-local-pcl_winners #page-wrapper,
body.path-local.path-local-pcl_winners #page,
body.path-local.path-local-pcl_winners #page > .main-inner,
body.path-local.path-local-pcl_winners #page-content,
body.path-local.path-local-pcl_winners #page-content > .container,
body.path-local.path-local-pcl_winners #page-content > .container-fluid,
body.path-local.path-local-pcl_winners #region-main-box,
body.path-local.path-local-pcl_winners #region-main,
body.path-local.path-local-pcl_winners #region-main > div[role="main"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-inline: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.path-local.path-local-pcl_winners #page.drawers {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.path-local.path-local-pcl_winners #page.drawers .main-inner {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.path-local.path-local-pcl_winners .pcl-winners-shell {
  width: 100% !important;
  max-width: none !important;
}

body.path-local.path-local-pcl_winners .pcl-winners-shell > .row {
  --bs-gutter-x: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.path-local.path-local-pcl_winners .pcl-winners-shell > .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.path-local.path-local-pcl_winners .pcl-stage-card {
  width: 100% !important;
  max-width: none !important;
}

/* ==========================================================
   Checkbox color (checked state)
   ========================================================== */
.pcl-stage .pcl-selectall-box input[type="checkbox"],
.pcl-stage .pcl-confirm-checkbox {
  accent-color: var(--pcl-primary);
}

.pcl-stage .pcl-stage-selection-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #f2d38b;
  border-radius: 999px;
  background: #fff7e0;
  color: #7a5400;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* ==========================================================
   Scrollbar styling (Stage wrapper only)
   ========================================================== */

/* Chrome / Edge / Safari */
.pcl-stage .pcl-stage-tablewrap::-webkit-scrollbar {
  height: 14px;
}

.pcl-stage .pcl-stage-tablewrap::-webkit-scrollbar-track {
  background: rgba(48, 174, 210, 0.15);
  border-radius: 999px;
}

.pcl-stage .pcl-stage-tablewrap::-webkit-scrollbar-thumb {
  background: var(--pcl-primary);
  border-radius: 999px;
}

.pcl-stage .pcl-stage-tablewrap::-webkit-scrollbar-thumb:hover {
  background: #2399b8;
}

/* Firefox */
.pcl-stage .pcl-stage-tablewrap {
  scrollbar-width: auto;
  scrollbar-color: var(--pcl-primary) rgba(48, 174, 210, 0.15);
}

/* ==========================================================
   Sticky columns for STAGE table ONLY
   ========================================================== */

/* Sticky column 1 (Select) */
.pcl-stage #stage-table thead th:nth-child(1),
.pcl-stage #stage-table tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 6;
  background: #fff;
}

/* Sticky column 2 (User ID) */
.pcl-stage #stage-table thead th:nth-child(2),
.pcl-stage #stage-table tbody td:nth-child(2) {
  position: sticky;
  left: var(--sticky-col-1);
  z-index: 6;
  background: #fff;
  min-width: var(--sticky-col-2);
  width: var(--sticky-col-2);
  max-width: var(--sticky-col-2);
  text-align: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Sticky column 3 (Full Name) */
.pcl-stage #stage-table thead th:nth-child(3),
.pcl-stage #stage-table tbody td:nth-child(3) {
  position: sticky;
  left: calc(var(--sticky-col-1) + var(--sticky-col-2));
  z-index: 6;
  background: #fff;
  box-shadow: 6px 0 10px rgba(0, 0, 0, 0.06);
}

/* Header above body */
.pcl-stage #stage-table thead th {
  z-index: 7;
}

/* Slim first column */
.pcl-stage #stage-table thead th:first-child,
.pcl-stage #stage-table tbody td:first-child {
  width: var(--sticky-col-1) !important;
  min-width: var(--sticky-col-1) !important;
  max-width: var(--sticky-col-1) !important;
  text-align: center;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Checkbox sizing in select column */
.pcl-stage #stage-table th:first-child input,
.pcl-stage #stage-table td:first-child input {
  margin: 0;
  transform: scale(0.9);
}

/* ==========================================================
   Bottom “Select all” pill box
   ========================================================== */
.pcl-stage .pcl-selectall-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;

  border: 1px solid var(--pcl-primary);
  border-radius: 999px;
  background: #fff;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.pcl-stage .pcl-selectall-box input[type="checkbox"] {
  margin: 0;
  transform: scale(1);
}

.pcl-stage .pcl-selectall-box label {
  margin: 0;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================
   Footer layout + tip spacing
   ========================================================== */
.pcl-stage .stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.pcl-stage .stage-tip {
  margin: 0 !important;
  padding-top: 2px;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================================
   DEV badge styling
   ========================================================== */
.pcl-stage #pclDevJsonBadge {
  display: none; /* JS turns this on */
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

/* ==========================================================
   PILL BUTTON SYSTEM
   ========================================================== */
.pcl-stage .pcl-btn-primary-pill,
.pcl-stage .pcl-btn-danger-outline-pill {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

/* Primary pill */
.pcl-stage .pcl-btn-primary-pill {
  background: var(--pcl-primary) !important;
  border-color: var(--pcl-primary) !important;
  color: #fff !important;
}

.pcl-stage .pcl-btn-primary-pill:hover,
.pcl-stage .pcl-btn-primary-pill:focus {
  background: #258ab6 !important;
  border-color: #258ab6 !important;
  box-shadow: 0 0 0 0.25rem rgba(48, 174, 210, 0.25) !important;
}

/* Danger outline pill */
.pcl-stage .pcl-btn-danger-outline-pill {
  background: transparent !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.pcl-stage .pcl-btn-danger-outline-pill:hover,
.pcl-stage .pcl-btn-danger-outline-pill:focus {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================
   MODAL BUTTONS (modal can live outside .pcl-stage scope)
   ========================================================== */
body.path-local-pcl_winners .modal {
  z-index: 3000 !important;
}

body.path-local-pcl_winners .modal-backdrop {
  z-index: 2990 !important;
}

#pclWinHistoryModal .modal-footer button[data-dismiss="modal"] {
  border-radius: 999px !important;
  border: 2px solid #30aed1 !important;
  background: transparent !important;
  color: #30aed1 !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  box-shadow: none !important;
}

#pclWinHistoryModal .modal-footer button[data-dismiss="modal"]:hover,
#pclWinHistoryModal .modal-footer button[data-dismiss="modal"]:focus {
  border-color: #2898b8 !important;
  background: rgba(48, 174, 209, 0.1) !important;
  color: #0a7f9a !important;
  box-shadow: 0 0 0 0.25rem rgba(48, 174, 210, 0.2) !important;
}

/* ==========================================================
   STAGE PAGINATION (primary color circles)
   ========================================================== */
.pcl-stage .pagination {
  gap: 10px;
  margin: 0;
}

.pcl-stage .pagination .page-link {
  color: var(--pcl-primary) !important;
  background: #fff !important;

  border: 2px solid var(--pcl-primary) !important;
  border-radius: 999px !important;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 !important;
  line-height: 1 !important;

  box-shadow: none !important;
}

.pcl-stage .pagination .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(48, 174, 210, 0.25) !important;
}

.pcl-stage .pagination .page-link:hover {
  background: rgba(48, 174, 210, 0.08) !important;
  color: var(--pcl-primary) !important;
}

.pcl-stage .pagination .page-item.active .page-link {
  background: var(--pcl-primary) !important;
  border-color: var(--pcl-primary) !important;
  color: #fff !important;
}

.pcl-stage .pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

.pcl-stage .pagination .page-item {
  margin: 0 !important;
}

/* ==========================================================
   STAGE TABLE: STICKY COLUMNS (Select + User ID + Full name)
   ========================================================== */

/* ✅ Widths for sticky columns (adjust if needed) */
:root {
  --sticky-col-1: 56px;   /* Select */
  --sticky-col-2: 72px;   /* User ID */
  --sticky-col-3: 220px;  /* Full name */
}

/* Ensure the wrapper scrolls */
.pcl-stage .pcl-stage-tablewrap {
  overflow: auto;
}

/* Make sticky cells solid (no see-through) */
.pcl-stage #stage-table th,
.pcl-stage #stage-table td {
  background: #fff;
}

/* ✅ Column 1: Select */
.pcl-stage #stage-table th:nth-child(1),
.pcl-stage #stage-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 6; /* highest */
  background: #fff;
  border-right: 1px solid rgba(31, 41, 55, 0.14);
}

/* ✅ Column 2: User ID */
.pcl-stage #stage-table th:nth-child(2),
.pcl-stage #stage-table td:nth-child(2) {
  position: sticky;
  left: var(--sticky-col-1);
  z-index: 5;
  background: #fff;
  border-right: 1px solid rgba(31, 41, 55, 0.14);
}

/* ✅ Column 3: Full name */
.pcl-stage #stage-table th:nth-child(3),
.pcl-stage #stage-table td:nth-child(3) {
  position: sticky;
  left: calc(var(--sticky-col-1) + var(--sticky-col-2));
  z-index: 4;
  background: #fff;
  border-right: 1px solid rgba(31, 41, 55, 0.14);

  /* optional: divider line at the sticky edge */
  box-shadow: 2px 0 0 rgba(0,0,0,0.06);
}

/* Optional: align the first sticky column nicely */
.pcl-stage #stage-table th:nth-child(1),
.pcl-stage #stage-table td:nth-child(1) {
  text-align: center;
  width: var(--sticky-col-1);
  min-width: var(--sticky-col-1);
  border-right: 1px solid rgba(31, 41, 55, 0.14);
}

/* Optional: force stable widths so left offsets match reality */
.pcl-stage #stage-table th:nth-child(2),
.pcl-stage #stage-table td:nth-child(2) {
  width: var(--sticky-col-2);
  min-width: var(--sticky-col-2);
  max-width: var(--sticky-col-2);
  text-align: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
  border-right: 1px solid rgba(31, 41, 55, 0.14);
}

.pcl-stage #stage-table th:nth-child(3),
.pcl-stage #stage-table td:nth-child(3) {
  width: var(--sticky-col-3);
  min-width: var(--sticky-col-3);
  border-right: 1px solid rgba(31, 41, 55, 0.14);
}

/* Highlight rows where user has previous wins */
#winners_tbl tbody tr.pcl-has-won {
  background: rgba(48, 174, 209, 0.12) !important; /* matches your --pcl-primary family */
}

/* Make it feel clickable */
#winners_tbl tbody tr.pcl-row-clickable {
  cursor: pointer;
}

#winners_tbl tbody tr.pcl-row-clickable:hover {
  background: rgba(48, 174, 209, 0.18) !important;
}

#winners_tbl tbody tr.pcl-has-won {
    background: rgba(48,174,209,0.15) !important;
    cursor: pointer;
}
#winners_tbl tbody tr.pcl-has-won:hover {
    background: rgba(48,174,209,0.25) !important;
}

/* ==========================================================
   WIN HISTORY POPUP (highlight row click)
   ========================================================== */
.pcl-win-history-modal .modal-content {
  border: 1px solid rgba(48, 174, 210, 0.35);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.pcl-win-history-modal .modal-header {
  border-bottom: none;
  background: linear-gradient(135deg, rgba(48, 174, 210, 0.16), rgba(48, 174, 210, 0.04));
  padding: 16px 20px 12px;
}

.pcl-win-history-modal .pcl-win-history-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pcl-win-history-modal .pcl-win-history-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(48, 174, 210, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0b7d9b;
  background: #fff;
}

.pcl-win-history-modal .modal-title {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 700;
}

.pcl-win-history-modal .pcl-win-history-subtitle {
  font-size: 13px;
  color: #334155;
}

.pcl-win-history-modal .modal-body {
  padding: 14px 20px 20px;
}

.pcl-win-history-modal .modal-footer {
  border-top: none;
  padding: 0 20px 18px;
}

.pcl-win-history-modal .pcl-win-history-close-btn {
  border-radius: 999px !important;
  border: 2px solid #30aed1 !important;
  background: transparent !important;
  color: #30aed1 !important;
  font-weight: 700;
  padding: 8px 18px;
  box-shadow: none !important;
}

.pcl-win-history-modal .pcl-win-history-close-btn:hover,
.pcl-win-history-modal .pcl-win-history-close-btn:focus {
  border-color: #2898b8 !important;
  background: rgba(48, 174, 209, 0.1) !important;
  color: #0a7f9a !important;
  box-shadow: 0 0 0 0.25rem rgba(48, 174, 210, 0.2) !important;
}

.pcl-win-history-modal .table {
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}

.pcl-win-history-modal .table thead th {
  border-top: none;
  background: rgba(48, 174, 210, 0.1);
  color: #0f172a;
  font-weight: 700;
}

.pcl-win-history-modal .table td {
  vertical-align: middle;
}

/* Final winners-shell sizing follows the shared topofscroll pattern.
 * The shell itself stays full width; the offset is applied to #topofscroll
 * so the page does not get squeezed into a duplicate inner scroll container.
 */
body.path-local.path-local-pcl_winners #page {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.path-local.path-local-pcl_winners #topofscroll {
  margin-left: var(--pcl-sidebar-width, 285px) !important;
  width: calc(100% - var(--pcl-sidebar-width, 285px) - 16px) !important;
  max-width: calc(100% - var(--pcl-sidebar-width, 285px) - 16px) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.path-local.path-local-pcl_winners.pcl-sidebar-collapsed #topofscroll {
  margin-left: var(--pcl-sidebar-collapsed-width, 84px) !important;
  width: calc(100% - var(--pcl-sidebar-collapsed-width, 84px) - 16px) !important;
  max-width: calc(100% - var(--pcl-sidebar-collapsed-width, 84px) - 16px) !important;
}

body.path-local.path-local-pcl_winners #page-wrapper,
body.path-local.path-local-pcl_winners #page,
body.path-local.path-local-pcl_winners #page-content,
body.path-local.path-local-pcl_winners #region-main-box,
body.path-local.path-local-pcl_winners #region-main,
body.path-local.path-local-pcl_winners #region-main > div[role="main"] {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

body.path-local.path-local-pcl_winners #page-wrapper {
  padding-top: calc(var(--pcl-navbar-height, 84.5px) + 16px) !important;
}

body.path-local.path-local-pcl_winners #page-header {
  margin-top: 1rem !important;
}

@media (max-width: 768px) {
  body.path-local.path-local-pcl_winners #topofscroll,
  body.path-local.path-local-pcl_winners.pcl-sidebar-collapsed #topofscroll,
  body.path-local.path-local-pcl_winners nav.pcl-navbar ~ #page-wrapper #topofscroll,
  body.path-local.path-local-pcl_winners.pcl-sidebar-collapsed nav.pcl-navbar ~ #page-wrapper #topofscroll {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
