.rt-pwa-shell,
.rt-pwa-shell * { box-sizing: border-box; }

.rt-pwa-shell {
  --rt-pwa-gold: #b8942d;
  --rt-pwa-gold-2: #d8bd64;
  --rt-pwa-bg: #000000;
  --rt-pwa-card: rgba(18, 16, 9, 0.92);
  --rt-pwa-card-2: rgba(184, 148, 45, 0.13);
  --rt-pwa-text: #f8f1dd;
  --rt-pwa-muted: rgba(248, 241, 221, 0.72);
  --rt-pwa-border: rgba(184, 148, 45, 0.42);
  --rt-pwa-shadow: 0 20px 60px rgba(0,0,0,.48);
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 16px;
  color: var(--rt-pwa-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(184,148,45,.22), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(216,189,100,.12), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,1));
  border: 1px solid rgba(184,148,45,.22);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.rt-pwa-shell a { color: inherit; text-decoration: none; }

.rt-pwa-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-height: 28px;
  font-size: 12px;
  color: var(--rt-pwa-muted);
}

.rt-pwa-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rt-pwa-gold-2);
  box-shadow: 0 0 0 4px rgba(184,148,45,.14);
}

.rt-pwa-shell.is-offline .rt-pwa-status-dot {
  background: var(--rt-pwa-gold);
  box-shadow: 0 0 0 4px rgba(184,148,45,.18);
}

.rt-pwa-version {
  margin-left: auto;
  border: 1px solid rgba(184,148,45,.28);
  padding: 4px 8px;
  border-radius: 999px;
}

.rt-pwa-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--rt-pwa-border);
  background: linear-gradient(135deg, rgba(184,148,45,.18), rgba(0,0,0,.42));
  border-radius: 26px;
  box-shadow: var(--rt-pwa-shadow);
}

.rt-pwa-brandmark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 1px solid rgba(216,189,100,.55);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(216,189,100,.28), rgba(184,148,45,.05)),
    #050505;
  box-shadow: inset 0 0 30px rgba(216,189,100,.08), 0 14px 34px rgba(0,0,0,.34);
}

.rt-pwa-brandmark span {
  color: var(--rt-pwa-gold-2);
  font-weight: 950;
  letter-spacing: -1px;
  font-size: 25px;
}

.rt-pwa-kicker {
  margin: 0 0 5px;
  color: var(--rt-pwa-gold-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 850;
}

.rt-pwa-hero h1,
.rt-pwa-section-head h2 {
  margin: 0;
  color: var(--rt-pwa-gold-2);
  line-height: 1.02;
}

.rt-pwa-hero h1 { font-size: clamp(28px, 4vw, 54px); }
.rt-pwa-section-head h2 { font-size: clamp(22px, 3vw, 34px); }

.rt-pwa-subtitle {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--rt-pwa-muted);
  font-size: 16px;
  line-height: 1.45;
}

.rt-pwa-install-primary,
.rt-pwa-install-standalone {
  appearance: none;
  border: 1px solid rgba(216,189,100,.62);
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold));
  color: #080806;
  font-weight: 950;
  border-radius: 18px;
  padding: 14px 18px;
  min-height: 50px;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(184,148,45,.2);
}

.rt-pwa-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 10px;
  scrollbar-width: thin;
}

.rt-pwa-tab {
  border: 1px solid rgba(184,148,45,.34);
  background: rgba(184,148,45,.08);
  color: var(--rt-pwa-muted);
  border-radius: 999px;
  padding: 11px 15px;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 850;
  cursor: pointer;
}

.rt-pwa-tab.is-active {
  color: #050505;
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold));
  border-color: rgba(216,189,100,.8);
}

.rt-pwa-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.rt-pwa-layout-full {
  grid-template-columns: 1fr;
}

.rt-pwa-side,
.rt-pwa-panel,
.rt-pwa-status-card {
  border: 1px solid var(--rt-pwa-border);
  border-radius: 24px;
  background: rgba(10, 9, 5, .78);
  box-shadow: var(--rt-pwa-shadow);
}

.rt-pwa-side {
  padding: 18px;
  position: sticky;
  top: 14px;
}

.rt-pwa-side strong {
  color: var(--rt-pwa-gold-2);
  display: block;
  margin-bottom: 8px;
}

.rt-pwa-side p {
  color: var(--rt-pwa-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.rt-pwa-side-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rt-pwa-side-pills span {
  border: 1px solid rgba(184,148,45,.28);
  background: rgba(184,148,45,.08);
  color: var(--rt-pwa-gold-2);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.rt-pwa-panel {
  display: none;
  padding: 18px;
}

.rt-pwa-panel.is-active { display: block; }

.rt-pwa-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rt-pwa-section-head > span {
  color: var(--rt-pwa-gold-2);
  border: 1px solid rgba(184,148,45,.35);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
}

.rt-pwa-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rt-pwa-card {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(184,148,45,.34);
  background: linear-gradient(145deg, rgba(184,148,45,.15), rgba(255,255,255,.035));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.rt-pwa-card:hover,
.rt-pwa-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216,189,100,.82);
  background: linear-gradient(145deg, rgba(184,148,45,.24), rgba(255,255,255,.055));
  outline: none;
}

.rt-pwa-card-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(184,148,45,.16);
  border: 1px solid rgba(216,189,100,.38);
  color: var(--rt-pwa-gold-2);
  font-size: 25px;
  font-weight: 950;
}

.rt-pwa-card-copy { min-width: 0; }
.rt-pwa-card-copy strong { display: block; color: var(--rt-pwa-text); font-size: 16px; line-height: 1.15; }
.rt-pwa-card-copy small { display: block; color: var(--rt-pwa-muted); margin-top: 5px; line-height: 1.35; font-size: 13px; }

.rt-pwa-bottom-nav {
  display: none;
  position: sticky;
  bottom: 8px;
  z-index: 5;
  margin-top: 14px;
  border: 1px solid rgba(184,148,45,.36);
  border-radius: 20px;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
  overflow: hidden;
}

.rt-pwa-bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 12px 7px;
  color: var(--rt-pwa-muted);
  font-size: 12px;
  font-weight: 850;
}

.rt-pwa-bottom-nav a.is-active { color: var(--rt-pwa-gold-2); background: rgba(184,148,45,.12); }

.rt-pwa-status-card,
.rt-pwa-quick-links {
  width: min(1100px, 100%);
  margin: 0 auto;
  color: var(--rt-pwa-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.rt-pwa-status-card { padding: 20px; background:#050505; }
.rt-pwa-status-card h2 { color: var(--rt-pwa-gold-2); margin-top: 0; }
.rt-pwa-status-card dl { display:grid; gap:10px; }
.rt-pwa-status-card dl div { border:1px solid rgba(184,148,45,.25); border-radius:14px; padding:10px; }
.rt-pwa-status-card dt { color:var(--rt-pwa-gold-2); font-weight:900; }
.rt-pwa-status-card dd { margin:4px 0 0; color:var(--rt-pwa-muted); word-break:break-word; }

.rt-pwa-quick-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; }
.rt-pwa-quick-links a { display:flex; gap:10px; align-items:center; border:1px solid rgba(184,148,45,.32); border-radius:16px; padding:12px; background:rgba(184,148,45,.09); }
.rt-pwa-quick-links span { color:var(--rt-pwa-gold-2); font-size:22px; }

@media (max-width: 900px) {
  .rt-pwa-shell {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 10px;
  }
  .rt-pwa-layout { grid-template-columns: 1fr; }
  .rt-pwa-side { display: none; }
  .rt-pwa-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rt-pwa-hero { grid-template-columns: auto 1fr; padding: 13px; gap: 11px; border-radius: 22px; }
  .rt-pwa-install-primary { grid-column: 1 / -1; width: 100%; }
  .rt-pwa-brandmark { width: 58px; height: 58px; border-radius: 18px; }
  .rt-pwa-brandmark span { font-size: 20px; }
  .rt-pwa-subtitle { font-size: 14px; }
  .rt-pwa-panel { padding: 12px; border-radius: 22px; }
  .rt-pwa-card { min-height: 86px; padding: 11px; gap: 9px; border-radius: 18px; }
  .rt-pwa-card-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 14px; font-size: 21px; }
  .rt-pwa-card-copy strong { font-size: 14px; }
  .rt-pwa-card-copy small { font-size: 12px; }
  .rt-pwa-bottom-nav { display: flex; }
}

@media (max-width: 480px) {
  .rt-pwa-shell {
    padding: 7px 6px 10px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
  .rt-pwa-statusbar { padding: 0 3px; }
  .rt-pwa-tabs { padding-left: 1px; padding-right: 1px; gap: 6px; }
  .rt-pwa-tab { padding: 10px 12px; font-size: 12px; }
  .rt-pwa-card-grid { gap: 7px; }
  .rt-pwa-card { min-height: 82px; padding: 10px 8px; }
  .rt-pwa-section-head { align-items: flex-start; }
  .rt-pwa-section-head > span { display: none; }
  .rt-pwa-hero h1 { font-size: 27px; }
}

/* v0.1.1 HOTFIX: App-side uden tema-header/footer + højere læsbarhed */
html:has(body.rt-pwa-standalone-page),
body.rt-pwa-standalone-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
  background: #000000 !important;
  overflow-x: hidden !important;
}

body.rt-pwa-standalone-page #wpadminbar,
body.rt-pwa-app-page .elementor-location-header,
body.rt-pwa-app-page .elementor-location-footer,
body.rt-pwa-app-page .site-header,
body.rt-pwa-app-page .site-footer,
body.rt-pwa-app-page #masthead,
body.rt-pwa-app-page #colophon,
body.rt-pwa-app-page .main-header,
body.rt-pwa-app-page .main-footer,
body.rt-pwa-app-page .ast-primary-header-bar,
body.rt-pwa-app-page .ast-mobile-header-wrap,
body.rt-pwa-app-page .generate-back-to-top,
body.rt-pwa-app-page .cookie-notice-container {
  display: none !important;
}

body.rt-pwa-app-page,
body.rt-pwa-app-page #page,
body.rt-pwa-app-page #content,
body.rt-pwa-app-page .site,
body.rt-pwa-app-page .site-content,
body.rt-pwa-app-page .content-area,
body.rt-pwa-app-page .entry-content,
body.rt-pwa-app-page .elementor,
body.rt-pwa-app-page .elementor-section,
body.rt-pwa-app-page .elementor-container,
body.rt-pwa-app-page .elementor-widget-container,
body.rt-pwa-app-page .wp-site-blocks {
  background: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.rt-pwa-standalone-root {
  min-height: 100svh;
  width: 100%;
  background: #000000;
}

.rt-pwa-standalone-page .rt-pwa-shell,
body.rt-pwa-app-page .rt-pwa-shell {
  width: 100% !important;
  max-width: 1280px !important;
  min-height: 100svh;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  margin: 0 auto !important;
  padding: clamp(8px, 1.8vw, 18px) !important;
  color: #fff6dd !important;
}

.rt-pwa-shell,
.rt-pwa-shell p,
.rt-pwa-shell span,
.rt-pwa-shell small,
.rt-pwa-shell strong,
.rt-pwa-shell button,
.rt-pwa-shell a {
  text-rendering: geometricPrecision;
}

.rt-pwa-shell .rt-pwa-muted,
.rt-pwa-shell .rt-pwa-subtitle,
.rt-pwa-shell .rt-pwa-card-copy small,
.rt-pwa-shell .rt-pwa-side p,
.rt-pwa-shell .rt-pwa-statusbar {
  color: rgba(255, 247, 222, 0.86) !important;
}

.rt-pwa-shell .rt-pwa-card-copy strong,
.rt-pwa-shell .rt-pwa-section-head h2,
.rt-pwa-shell .rt-pwa-hero h1 {
  color: #fff7df !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}

.rt-pwa-shell .rt-pwa-kicker,
.rt-pwa-shell .rt-pwa-side strong,
.rt-pwa-shell .rt-pwa-section-head > span,
.rt-pwa-shell .rt-pwa-card-icon,
.rt-pwa-shell .rt-pwa-bottom-nav a.is-active {
  color: #e4c465 !important;
}

.rt-pwa-install-primary,
.rt-pwa-install-standalone,
.rt-pwa-shell button.rt-pwa-install-primary,
button.rt-pwa-install-standalone {
  background: linear-gradient(180deg, #1c1708, #050505) !important;
  color: #f8df86 !important;
  border: 1px solid rgba(232, 199, 98, .92) !important;
  text-shadow: 0 1px 0 #000 !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 0 22px rgba(216,189,100,.10) !important;
  letter-spacing: .01em;
}

.rt-pwa-install-primary:hover,
.rt-pwa-install-primary:focus-visible,
.rt-pwa-install-standalone:hover,
.rt-pwa-install-standalone:focus-visible {
  background: linear-gradient(180deg, #e2c15e, #a98322) !important;
  color: #050505 !important;
  outline: 2px solid rgba(255, 239, 170, .42) !important;
  outline-offset: 3px !important;
}

.rt-pwa-shell .rt-pwa-card {
  background: linear-gradient(145deg, rgba(184,148,45,.19), rgba(255,255,255,.055)) !important;
}

.rt-pwa-shell .rt-pwa-card:hover,
.rt-pwa-shell .rt-pwa-card:focus-visible {
  background: linear-gradient(145deg, rgba(184,148,45,.30), rgba(255,255,255,.075)) !important;
}

@media (max-width: 480px) {
  .rt-pwa-standalone-page .rt-pwa-shell,
  body.rt-pwa-app-page .rt-pwa-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 6px 5px 10px !important;
  }

  .rt-pwa-shell .rt-pwa-panel {
    padding: 10px 8px !important;
  }

  .rt-pwa-shell .rt-pwa-card-grid {
    gap: 6px !important;
  }

  .rt-pwa-shell .rt-pwa-card {
    padding: 10px 7px !important;
  }
}

/* v0.1.4 PWA4: Sort/guld UI-polish og ingen overflødig installeret-status */
.rt-pwa-shell .rt-pwa-tab,
.rt-pwa-shell button.rt-pwa-tab,
.rt-pwa-shell .rt-pwa-bottom-nav a {
  border-color: rgba(184,148,45,.48) !important;
  color: #e4c465 !important;
}

.rt-pwa-shell .rt-pwa-tab:not(.is-active) {
  background: rgba(184,148,45,.055) !important;
}

.rt-pwa-shell .rt-pwa-tab.is-active,
.rt-pwa-shell button.rt-pwa-tab.is-active {
  color: #050505 !important;
  background: linear-gradient(180deg, #e2c15e, #a98322) !important;
  border-color: rgba(232,199,98,.92) !important;
}

.rt-pwa-shell .rt-pwa-bottom-nav a.is-active {
  color: #f8df86 !important;
  background: rgba(184,148,45,.14) !important;
}

.rt-pwa-is-installed .rt-pwa-installed-badge,
.rt-pwa-shell .rt-pwa-installed-badge {
  display: none !important;
}

/* v0.1.3 PWA3: Korrekt installeret-status */
.rt-pwa-shell [hidden],
.rt-pwa-status-card [hidden],
.rt-pwa-quick-links [hidden],
.rt-pwa-install-primary[hidden],
.rt-pwa-install-standalone[hidden],
.rt-pwa-installed-badge[hidden] {
  display: none !important;
}

.rt-pwa-installed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(232, 199, 98, .72);
  background: linear-gradient(180deg, rgba(184,148,45,.22), rgba(5,5,5,.92));
  color: #f8df86;
  font-weight: 950;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.38), inset 0 0 22px rgba(216,189,100,.10);
  text-shadow: 0 1px 0 #000;
  white-space: nowrap;
}

.rt-pwa-installed-badge::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  border: 1px solid rgba(232,199,98,.5);
  color: #f8df86;
  font-size: 14px;
  line-height: 1;
}

.rt-pwa-installed-badge-standalone {
  width: auto;
  margin: 0 auto;
}

@media (display-mode: standalone) {
  .rt-pwa-install-primary,
  .rt-pwa-install-standalone {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .rt-pwa-installed-badge {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* v0.1.5 PWA5: Egen app-login, logout og rollepolish */
.rt-pwa-user-pill,
.rt-pwa-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,148,45,.35);
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 9px;
  color: #f8df86 !important;
  background: rgba(184,148,45,.09);
  font-weight: 850;
  line-height: 1;
}

.rt-pwa-logout-link {
  color: #050505 !important;
  background: linear-gradient(180deg, #e2c15e, #a98322);
  border-color: rgba(232,199,98,.8);
}

.rt-pwa-logout-link:hover,
.rt-pwa-logout-link:focus-visible {
  color: #f8df86 !important;
  background: linear-gradient(180deg, #1c1708, #050505);
  outline: 2px solid rgba(255,239,170,.35);
  outline-offset: 2px;
}

.rt-pwa-login-shell,
.rt-pwa-login-shell * { box-sizing: border-box; }

.rt-pwa-login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 24px);
  background:
    radial-gradient(circle at 20% 0%, rgba(184,148,45,.22), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(216,189,100,.12), transparent 26%),
    #000000;
  color: #fff6dd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.rt-pwa-login-card {
  width: min(520px, 100%);
  border: 1px solid rgba(184,148,45,.45);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(184,148,45,.17), rgba(255,255,255,.045));
  box-shadow: 0 24px 70px rgba(0,0,0,.58);
  padding: clamp(18px, 4vw, 30px);
}

.rt-pwa-login-brand { margin-bottom: 16px; }

.rt-pwa-login-card h1 {
  margin: 0 0 10px;
  color: #fff7df;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}

.rt-pwa-login-card p {
  margin: 0 0 18px;
  color: rgba(255,247,222,.86);
  line-height: 1.45;
}

.rt-pwa-login-message {
  border: 1px solid rgba(232,199,98,.62);
  border-radius: 18px;
  background: rgba(184,148,45,.12);
  color: #f8df86;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-weight: 850;
}

.rt-pwa-login-form {
  display: grid;
  gap: 10px;
}

.rt-pwa-login-form label {
  color: #e4c465;
  font-weight: 850;
  font-size: 13px;
}

.rt-pwa-login-form input[type="text"],
.rt-pwa-login-form input[type="email"],
.rt-pwa-login-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(184,148,45,.52);
  border-radius: 16px;
  background: rgba(0,0,0,.68);
  color: #fff7df;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.rt-pwa-login-form input[type="text"]:focus,
.rt-pwa-login-form input[type="email"]:focus,
.rt-pwa-login-form input[type="password"]:focus {
  border-color: rgba(232,199,98,.92);
  box-shadow: 0 0 0 3px rgba(184,148,45,.16);
}

.rt-pwa-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 6px;
  color: rgba(255,247,222,.86) !important;
}

.rt-pwa-login-form button,
.rt-pwa-login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 950;
  text-decoration: none;
}

.rt-pwa-login-forgot {
  display: inline-flex;
  justify-content: center;
  color: #f8df89;
  font-weight: 800;
  text-decoration: none;
  margin-top: -4px;
}
.rt-pwa-login-forgot:hover,
.rt-pwa-login-forgot:focus-visible { text-decoration: underline; }
.rt-pwa-password-reset-page .rt-pwa-login-card { max-width: 480px; }
.rt-pwa-login-message-success { border-color: rgba(93, 210, 139, .5); background: rgba(93, 210, 139, .12); }
.rt-pwa-login-message-error { border-color: rgba(255, 110, 110, .5); background: rgba(255, 110, 110, .12); }

.rt-pwa-login-form button {
  border: 1px solid rgba(232,199,98,.92);
  background: linear-gradient(180deg, #e2c15e, #a98322);
  color: #050505;
  cursor: pointer;
  font-size: 17px;
}

.rt-pwa-login-back {
  margin-top: 12px;
  border: 1px solid rgba(184,148,45,.45);
  background: rgba(184,148,45,.07);
  color: #f8df86;
}

@media (max-width: 560px) {
  .rt-pwa-statusbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
  }
  .rt-pwa-version {
    margin-left: auto;
  }
  .rt-pwa-user-pill {
    max-width: calc(100vw - 105px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* v0.1.13 PWA13: App-hjem, hurtigstart og cache-opdatering */
.rt-pwa-cache-refresh-mini,
.rt-pwa-side-refresh,
.rt-pwa-status-cache-refresh,
.rt-pwa-overview-refresh {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.rt-pwa-cache-refresh-mini {
  border: 1px solid rgba(184,148,45,.38);
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 9px;
  color: #f8df86;
  background: rgba(184,148,45,.08);
  font-weight: 850;
  font-size: 12px;
}

.rt-pwa-cache-refresh-mini:hover,
.rt-pwa-cache-refresh-mini:focus-visible {
  border-color: rgba(232,199,98,.82);
  outline: 2px solid rgba(255,239,170,.25);
  outline-offset: 2px;
}

.rt-pwa-overview {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 10px;
  margin: 12px 0 4px;
}

.rt-pwa-overview-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 86px;
  padding: 14px 15px;
  border: 1px solid rgba(184,148,45,.38);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(184,148,45,.14), rgba(255,255,255,.04));
  color: #fff7df;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0,0,0,.34);
}

.rt-pwa-overview-card span,
.rt-pwa-overview-card small {
  color: rgba(255,247,222,.78);
  line-height: 1.35;
}

.rt-pwa-overview-card span {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  font-weight: 900;
  color: #e4c465;
}

.rt-pwa-overview-card strong {
  color: #fff7df;
  font-size: 18px;
  line-height: 1.1;
}

.rt-pwa-overview-action:hover,
.rt-pwa-overview-action:focus-visible,
.rt-pwa-overview-refresh:hover,
.rt-pwa-overview-refresh:focus-visible {
  border-color: rgba(232,199,98,.86);
  background: linear-gradient(145deg, rgba(184,148,45,.24), rgba(255,255,255,.065));
  outline: none;
}

.rt-pwa-overview-primary {
  background: linear-gradient(145deg, rgba(184,148,45,.24), rgba(255,255,255,.055));
}

.rt-pwa-section-intro {
  margin: -4px 0 14px;
  color: rgba(255,247,222,.82);
  font-size: 14px;
  line-height: 1.45;
}


.rt-pwa-card-admin {
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(232,199,98,.10), 0 14px 34px rgba(0,0,0,.24);
}

.rt-pwa-side-refresh,
.rt-pwa-status-cache-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(232,199,98,.62);
  border-radius: 16px;
  background: rgba(184,148,45,.08);
  color: #f8df86;
  font-weight: 900;
}

.rt-pwa-status-cache-refresh {
  margin-top: 16px;
  width: auto;
  padding: 0 16px;
}

.rt-pwa-side-refresh:hover,
.rt-pwa-side-refresh:focus-visible,
.rt-pwa-status-cache-refresh:hover,
.rt-pwa-status-cache-refresh:focus-visible {
  background: linear-gradient(180deg, #e2c15e, #a98322);
  color: #050505;
  outline: 2px solid rgba(255,239,170,.35);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .rt-pwa-overview {
    grid-template-columns: 1fr 1fr;
  }
  .rt-pwa-overview-refresh {
    grid-column: 1 / -1;
    min-height: 66px;
  }
}

@media (max-width: 560px) {
  .rt-pwa-cache-refresh-mini {
    order: 8;
    margin-left: auto;
  }
  .rt-pwa-overview {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 8px 0 3px;
  }
  .rt-pwa-overview-card {
    min-height: 68px;
    padding: 11px 10px;
    border-radius: 18px;
  }
  .rt-pwa-overview-card strong {
    font-size: 16px;
  }
  .rt-pwa-overview-card small {
    font-size: 12px;
  }
  .rt-pwa-section-intro {
    margin: -2px 0 11px;
    font-size: 12px;
  }
}


/* v0.1.14 PWA14: Guld-only cacheværktøj og mobil/tablet polish */
.rt-pwa-shell .rt-pwa-cache-refresh-mini,
.rt-pwa-shell .rt-pwa-side-refresh,
.rt-pwa-shell .rt-pwa-status-cache-refresh,
.rt-pwa-shell .rt-pwa-overview-refresh,
.rt-pwa-status-card .rt-pwa-status-cache-refresh {
  border-color: rgba(232, 199, 98, .62) !important;
  background: linear-gradient(180deg, rgba(184,148,45,.15), rgba(5,5,5,.86)) !important;
  color: #f8df86 !important;
  box-shadow: inset 0 0 18px rgba(216,189,100,.08), 0 12px 30px rgba(0,0,0,.28) !important;
}

.rt-pwa-shell .rt-pwa-cache-refresh-mini:hover,
.rt-pwa-shell .rt-pwa-cache-refresh-mini:focus-visible,
.rt-pwa-shell .rt-pwa-side-refresh:hover,
.rt-pwa-shell .rt-pwa-side-refresh:focus-visible,
.rt-pwa-shell .rt-pwa-status-cache-refresh:hover,
.rt-pwa-shell .rt-pwa-status-cache-refresh:focus-visible,
.rt-pwa-shell .rt-pwa-overview-refresh:hover,
.rt-pwa-shell .rt-pwa-overview-refresh:focus-visible,
.rt-pwa-status-card .rt-pwa-status-cache-refresh:hover,
.rt-pwa-status-card .rt-pwa-status-cache-refresh:focus-visible {
  border-color: rgba(255, 231, 138, .92) !important;
  background: linear-gradient(180deg, #e2c15e, #a98322) !important;
  color: #050505 !important;
  outline: 2px solid rgba(255,239,170,.32) !important;
  outline-offset: 2px !important;
}

.rt-pwa-shell .rt-pwa-cache-refresh-mini {
  min-width: auto !important;
  white-space: nowrap;
  letter-spacing: .01em;
}

.rt-pwa-shell .rt-pwa-overview-refresh {
  min-width: min(260px, 100%);
}

.rt-pwa-shell .rt-pwa-overview-refresh span,
.rt-pwa-shell .rt-pwa-overview-refresh small,
.rt-pwa-shell .rt-pwa-overview-refresh strong {
  color: inherit !important;
}

.rt-pwa-shell .rt-pwa-overview-refresh span {
  color: #e4c465 !important;
}

.rt-pwa-shell .rt-pwa-overview-refresh strong {
  color: #fff7df !important;
}

.rt-pwa-shell .rt-pwa-overview-refresh:hover strong,
.rt-pwa-shell .rt-pwa-overview-refresh:focus-visible strong,
.rt-pwa-shell .rt-pwa-overview-refresh:hover span,
.rt-pwa-shell .rt-pwa-overview-refresh:focus-visible span,
.rt-pwa-shell .rt-pwa-overview-refresh:hover small,
.rt-pwa-shell .rt-pwa-overview-refresh:focus-visible small {
  color: #050505 !important;
}

.rt-pwa-shell .rt-pwa-tabs {
  scroll-padding-left: 8px;
}

.rt-pwa-shell .rt-pwa-tab:focus-visible,
.rt-pwa-shell .rt-pwa-bottom-nav a:focus-visible,
.rt-pwa-shell .rt-pwa-card:focus-visible {
  outline: 2px solid rgba(255,239,170,.35) !important;
  outline-offset: 2px !important;
}

.rt-pwa-shell .rt-pwa-overview-card,
.rt-pwa-shell .rt-pwa-panel,
.rt-pwa-shell .rt-pwa-card,
.rt-pwa-shell .rt-pwa-bottom-nav,
.rt-pwa-shell .rt-pwa-hero {
  border-color: rgba(184,148,45,.44) !important;
}

@media (max-width: 900px) {
  .rt-pwa-shell .rt-pwa-overview-refresh {
    min-height: 58px;
  }
}

@media (max-width: 560px) {
  .rt-pwa-shell .rt-pwa-cache-refresh-mini {
    order: 5;
    margin-left: 0 !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  .rt-pwa-shell .rt-pwa-statusbar {
    align-items: center;
  }
  .rt-pwa-shell .rt-pwa-overview-refresh {
    min-height: 56px;
  }
  .rt-pwa-shell .rt-pwa-overview-refresh small {
    display: none;
  }
}

/* v0.1.18 PWA18: Interne shortcode-visninger i appen - ingen backend-hop */
.rt-pwa-view-shell {
  margin-top: 14px;
  border: 1px solid rgba(184,148,45,.42);
  border-radius: 24px;
  background: rgba(10,9,5,.82);
  box-shadow: var(--rt-pwa-shadow);
  overflow: hidden;
}

.rt-pwa-view-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid rgba(184,148,45,.26);
  background: linear-gradient(145deg, rgba(184,148,45,.18), rgba(0,0,0,.18));
}

.rt-pwa-view-header h2 {
  margin: 0;
  color: #fff7df;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.rt-pwa-view-header p:not(.rt-pwa-kicker) {
  margin: 8px 0 0;
  color: rgba(255,247,222,.86);
  line-height: 1.45;
}

.rt-pwa-view-back,
.rt-pwa-view-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(232,199,98,.62);
  border-radius: 999px;
  padding: 9px 13px;
  color: #f8df86 !important;
  background: rgba(184,148,45,.10);
  font-weight: 900;
  white-space: nowrap;
}

.rt-pwa-shortcode-frame {
  padding: 14px;
  color: #fff7df;
  background: #000;
  overflow-x: auto;
}

.rt-pwa-shortcode-frame > *:first-child { margin-top: 0 !important; }
.rt-pwa-shortcode-frame > *:last-child { margin-bottom: 0 !important; }

.rt-pwa-view-message {
  margin: 14px;
  padding: 18px;
  border: 1px solid rgba(184,148,45,.34);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(184,148,45,.14), rgba(255,255,255,.045));
  color: #fff7df;
}

.rt-pwa-view-message strong {
  display: block;
  margin-bottom: 7px;
  color: #f8df86;
  font-size: 18px;
}

.rt-pwa-view-code {
  margin-top: 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgba(255,247,222,.78) !important;
  word-break: break-word;
}

/* D50A: De små 'App'-badges på kortene er fjernet efter brugerfeedback. */
.rt-pwa-card-view::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 700px) {
  .rt-pwa-view-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .rt-pwa-view-back {
    width: max-content;
  }
  .rt-pwa-shortcode-frame {
    padding: 8px 5px;
  }
  .rt-pwa-view-message {
    margin: 8px;
    padding: 14px;
  }
}

/* v0.1.19 PWA19: App-visning UI polish */
.rt-pwa-view-shell {
  margin: 12px 0 calc(92px + env(safe-area-inset-bottom));
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0, rgba(232,199,98,.18), transparent 38%),
    linear-gradient(180deg, rgba(12,11,7,.98), rgba(2,2,2,.98));
}

.rt-pwa-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(184,148,45,.22);
  background: rgba(0,0,0,.54);
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(12px);
}

.rt-pwa-view-toolbar .rt-pwa-view-back {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none !important;
}

.rt-pwa-view-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  color: rgba(255,247,222,.78);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.rt-pwa-view-meta code {
  max-width: min(38vw, 210px);
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(232,199,98,.28);
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(184,148,45,.08);
  color: #f8df86;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.rt-pwa-view-shell .rt-pwa-view-header {
  grid-template-columns: 1fr;
  padding: 16px 18px 18px;
  background: linear-gradient(145deg, rgba(184,148,45,.16), rgba(255,255,255,.035));
}

.rt-pwa-view-title-block {
  max-width: 980px;
}

.rt-pwa-view-shell .rt-pwa-view-header h2 {
  font-size: clamp(25px, 5vw, 42px);
  letter-spacing: -.035em;
}

.rt-pwa-shortcode-frame {
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 120px),
    #050505;
}

.rt-pwa-shortcode-inner {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(184,148,45,.18);
  border-radius: 20px;
  background: rgba(0,0,0,.58);
  padding: 10px;
}

.rt-pwa-shortcode-inner > *:first-child { margin-top: 0 !important; }
.rt-pwa-shortcode-inner > *:last-child { margin-bottom: 0 !important; }

.rt-pwa-shortcode-inner h1,
.rt-pwa-shortcode-inner h2,
.rt-pwa-shortcode-inner h3,
.rt-pwa-shortcode-inner h4 {
  color: #f8df86 !important;
  line-height: 1.12 !important;
}

.rt-pwa-shortcode-inner p,
.rt-pwa-shortcode-inner li,
.rt-pwa-shortcode-inner label,
.rt-pwa-shortcode-inner span,
.rt-pwa-shortcode-inner div {
  color: inherit;
}

.rt-pwa-shortcode-inner a:not(.button):not(.rt-pwa-view-back) {
  color: #f8df86;
}

.rt-pwa-shortcode-inner table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  color: #fff7df;
  background: rgba(0,0,0,.38);
  border-radius: 14px;
  overflow: hidden;
}

.rt-pwa-shortcode-inner th,
.rt-pwa-shortcode-inner td {
  border-color: rgba(184,148,45,.20) !important;
  padding: 9px 8px;
  vertical-align: middle;
}

.rt-pwa-shortcode-inner th {
  color: #f8df86 !important;
  background: rgba(184,148,45,.13) !important;
}

.rt-pwa-shortcode-inner input,
.rt-pwa-shortcode-inner select,
.rt-pwa-shortcode-inner textarea {
  max-width: 100%;
  border-color: rgba(184,148,45,.44) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.96) !important;
  color: #111 !important;
}

.rt-pwa-shortcode-inner button,
.rt-pwa-shortcode-inner input[type="button"],
.rt-pwa-shortcode-inner input[type="submit"],
.rt-pwa-shortcode-inner .button,
.rt-pwa-shortcode-inner a.button {
  border-radius: 999px !important;
  border: 1px solid rgba(232,199,98,.58) !important;
  background: linear-gradient(180deg, #e2c15e, #a98322) !important;
  color: #050505 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.rt-pwa-shortcode-inner img,
.rt-pwa-shortcode-inner iframe {
  max-width: 100% !important;
  height: auto;
}

.rt-pwa-shortcode-inner iframe {
  border-radius: 16px;
}

.rt-pwa-view-message {
  margin: 12px;
}

@media (min-width: 901px) {
  .rt-pwa-view-shell {
    margin-top: 16px;
  }
  .rt-pwa-shortcode-frame {
    padding: 16px;
  }
  .rt-pwa-shortcode-inner {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .rt-pwa-view-shell {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 20px;
  }
  .rt-pwa-view-toolbar {
    padding: 8px 8px;
  }
  .rt-pwa-view-toolbar .rt-pwa-view-back {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .rt-pwa-view-meta span {
    display: none;
  }
  .rt-pwa-view-meta code {
    max-width: 34vw;
  }
  .rt-pwa-view-shell .rt-pwa-view-header {
    padding: 12px 10px 13px;
  }
  .rt-pwa-shortcode-frame {
    padding: 7px 4px;
  }
  .rt-pwa-shortcode-inner {
    padding: 8px 5px;
    border-radius: 14px;
  }
  .rt-pwa-shortcode-inner table {
    font-size: 12px;
  }
  .rt-pwa-shortcode-inner th,
  .rt-pwa-shortcode-inner td {
    padding: 7px 5px;
  }
}

/* v0.1.20 PWA20: App-navigation polish og hurtigere oplevet respons */
.rt-pwa-shell .rt-pwa-card,
.rt-pwa-shell .rt-pwa-overview-action,
.rt-pwa-shell .rt-pwa-view-back,
.rt-pwa-shell .rt-pwa-logout-link,
.rt-pwa-login-back {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232,199,98,.18);
}

.rt-pwa-shell .rt-pwa-card.is-pressed,
.rt-pwa-shell .rt-pwa-overview-action.is-pressed,
.rt-pwa-shell .rt-pwa-view-back.is-pressed,
.rt-pwa-shell .rt-pwa-logout-link.is-pressed,
.rt-pwa-login-back.is-pressed {
  transform: scale(.985) !important;
  border-color: rgba(255,231,138,.92) !important;
  background: linear-gradient(145deg, rgba(184,148,45,.32), rgba(255,255,255,.07)) !important;
}

.rt-pwa-shell.is-navigating .rt-pwa-card:not(.is-loading),
.rt-pwa-shell.is-navigating .rt-pwa-overview-card:not(.is-loading) {
  opacity: .66;
}

.rt-pwa-shell .rt-pwa-card.is-loading,
.rt-pwa-shell .rt-pwa-overview-action.is-loading,
.rt-pwa-shell .rt-pwa-view-back.is-loading,
.rt-pwa-shell .rt-pwa-logout-link.is-loading,
.rt-pwa-login-back.is-loading {
  position: relative;
  pointer-events: none;
  border-color: rgba(255,231,138,.92) !important;
  box-shadow: 0 0 0 2px rgba(232,199,98,.16), 0 16px 38px rgba(0,0,0,.38) !important;
}

.rt-pwa-nav-loading {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 99990;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  width: min(92vw, 430px);
}

.rt-pwa-shell.is-navigating .rt-pwa-nav-loading[aria-hidden="false"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rt-pwa-nav-loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(232,199,98,.68);
  border-radius: 22px;
  background: rgba(3,3,3,.94);
  color: #fff7df;
  box-shadow: 0 20px 58px rgba(0,0,0,.62), inset 0 0 22px rgba(216,189,100,.08);
  backdrop-filter: blur(14px);
}

.rt-pwa-nav-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 3px solid rgba(232,199,98,.24);
  border-top-color: #f8df86;
  animation: rtPwaNavSpin .72s linear infinite;
}

.rt-pwa-nav-loading-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rt-pwa-nav-loading-copy strong {
  color: #f8df86 !important;
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-pwa-nav-loading-copy small {
  color: rgba(255,247,222,.78) !important;
  font-size: 12px;
  line-height: 1.25;
}

@keyframes rtPwaNavSpin { to { transform: rotate(360deg); } }

@media (min-width: 901px) {
  .rt-pwa-nav-loading {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .rt-pwa-nav-loading {
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
  }
  .rt-pwa-nav-loading-card {
    min-height: 56px;
    border-radius: 18px;
    padding: 10px 12px;
  }
  .rt-pwa-nav-spinner {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

/* v0.1.22 PWA22: PWA21 heavy prefetch/view-mode CSS intentionally removed; lightweight navigation retained. */

/* PWA23: app-view iframe/deferred render. The app shell opens immediately; shortcode content loads isolated afterwards. */
.rt-pwa-shortcode-frame-deferred {
  position: relative;
  padding: 0 !important;
  overflow: hidden !important;
  min-height: 420px;
  background: #000 !important;
}
.rt-pwa-view-iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #000;
  color-scheme: dark;
}
.rt-pwa-iframe-loading {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(232,199,98,.26);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(184,148,45,.12), rgba(0,0,0,.92));
  color: #fff7df;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.rt-pwa-iframe-loading strong {
  color: #f8df86;
  font-size: 18px;
}
.rt-pwa-iframe-loading span {
  color: rgba(255,247,222,.78);
  font-size: 13px;
  text-align: center;
  padding: 0 18px;
}
.rt-pwa-shortcode-frame-deferred.is-loaded .rt-pwa-iframe-loading {
  opacity: 0;
  visibility: hidden;
}
.rt-pwa-embed-page {
  margin: 0 !important;
  min-height: 100vh;
  background: #000 !important;
  color: #fff7df !important;
  overflow-x: hidden;
}
.rt-pwa-embed-root {
  margin: 0;
  padding: 0;
  background: #000;
  min-height: 100vh;
}
.rt-pwa-shortcode-frame-embed {
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  padding: 10px !important;
  overflow-x: auto;
}
.rt-pwa-view-message-soft {
  margin: 14px !important;
}
.rt-pwa-shell .rt-pwa-card.is-loading,
.rt-pwa-shell .rt-pwa-overview-action.is-loading,
.rt-pwa-shell .rt-pwa-view-back.is-loading,
.rt-pwa-shell .rt-pwa-logout-link.is-loading,
.rt-pwa-login-back.is-loading {
  pointer-events: auto !important;
}
@media (max-width: 700px) {
  .rt-pwa-shortcode-frame-deferred,
  .rt-pwa-view-iframe {
    min-height: 520px;
  }
  .rt-pwa-iframe-loading {
    inset: 8px;
    border-radius: 18px;
  }
  .rt-pwa-shortcode-frame-embed {
    padding: 6px !important;
  }
}


/* PWA24: appvisning brugerpolish – ingen tekniske badges i normal app-UI og mere diskret loader. */
.rt-pwa-view-meta code {
  display: none !important;
}
.rt-pwa-view-meta span {
  border: 1px solid rgba(232,199,98,.28);
  background: rgba(0,0,0,.32);
  border-radius: 999px;
  padding: 7px 12px;
  color: #f8df86;
  font-weight: 800;
}
.rt-pwa-iframe-loading {
  background: radial-gradient(circle at 50% 20%, rgba(184,148,45,.16), rgba(0,0,0,.94) 62%) !important;
}
.rt-pwa-iframe-loading strong {
  font-size: 16px !important;
}
.rt-pwa-iframe-loading span {
  opacity: .74;
}
.rt-pwa-view-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(12px);
}
.rt-pwa-view-shell .rt-pwa-view-header {
  border-bottom: 1px solid rgba(184,148,45,.2);
}
@media (max-width: 700px) {
  .rt-pwa-view-toolbar {
    gap: 8px;
  }
  .rt-pwa-view-meta span {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* PWA25: Direkte adminportalvisning + Dagens kampprogram quickstart */
.rt-pwa-view-shell-direct-portal {
  margin-top: 12px;
}
.rt-pwa-view-shell-direct-portal .rt-pwa-view-header {
  display: none !important;
}
.rt-pwa-view-shell-direct-portal .rt-pwa-shortcode-frame-deferred {
  border-top: 1px solid rgba(184,148,45,.18);
  min-height: 680px;
}
.rt-pwa-view-shell-direct-portal .rt-pwa-view-iframe-direct-portal {
  min-height: 680px;
  overflow: hidden;
}
.rt-pwa-view-shell-direct-portal .rt-pwa-iframe-loading {
  inset: 12px;
  min-height: 160px;
}
@media (max-width: 700px) {
  .rt-pwa-view-shell-direct-portal .rt-pwa-shortcode-frame-deferred,
  .rt-pwa-view-shell-direct-portal .rt-pwa-view-iframe-direct-portal {
    min-height: 720px;
  }
}

/* PWA26: Klubdashboard + sikker adminportal */
.rt-pwa-overview.rt-pwa-overview-club {
  grid-template-columns: 1fr 1fr auto;
}
.rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-action {
  min-height: 92px;
}
.rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-action strong {
  font-size: 20px;
}
.rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-action:first-child {
  background: linear-gradient(145deg, rgba(184,148,45,.26), rgba(255,255,255,.055));
}
.rt-pwa-view-shell-direct-portal .rt-pwa-shortcode-frame-deferred {
  background: #000 !important;
}
.rt-pwa-view-shell-direct-portal .rt-pwa-view-iframe-direct-portal[data-rt-pwa-render-strategy="frontend_portal_iframe"] {
  min-height: 760px;
  background: #000;
}
@media (max-width: 900px) {
  .rt-pwa-overview.rt-pwa-overview-club {
    grid-template-columns: 1fr 1fr;
  }
  .rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-refresh {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .rt-pwa-overview.rt-pwa-overview-club {
    grid-template-columns: 1fr;
  }
  .rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-action {
    min-height: 72px;
  }
  .rt-pwa-overview.rt-pwa-overview-club .rt-pwa-overview-action strong {
    font-size: 17px;
  }
}

/* PWA30 D35: Adminportal webside-fallback og sikker portalramme */
.rt-pwa-admin-portal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid rgba(184,148,45,.18);
  border-bottom: 1px solid rgba(184,148,45,.18);
  background: linear-gradient(145deg, rgba(184,148,45,.16), rgba(0,0,0,.62));
}
.rt-pwa-admin-portal-actions strong {
  display: block;
  color: #ffe889;
  font-size: 15px;
  font-weight: 900;
}
.rt-pwa-admin-portal-actions span {
  display: block;
  margin-top: 2px;
  color: rgba(255,247,222,.78);
  font-size: 13px;
}
.rt-pwa-admin-portal-actions p {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.rt-pwa-admin-portal-btn,
.rt-pwa-admin-portal-actions button.rt-pwa-admin-portal-btn,
.rt-pwa-admin-portal-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(248,223,134,.64);
  border-radius: 999px;
  background: linear-gradient(135deg, #f9de72, #b98e25);
  color: #111 !important;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none !important;
  cursor: pointer;
}
.rt-pwa-admin-portal-btn-secondary,
.rt-pwa-admin-portal-actions button.rt-pwa-admin-portal-btn-secondary {
  background: rgba(0,0,0,.34);
  color: #f8df86 !important;
}
.rt-pwa-admin-portal-fallback {
  display: none;
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  top: 84px;
  padding: 16px;
  border: 1px solid rgba(248,223,134,.42);
  border-radius: 18px;
  background: rgba(10,9,4,.94);
  color: #fff7df;
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
}
.rt-pwa-admin-portal-fallback strong,
.rt-pwa-admin-portal-fallback span {
  display: block;
  margin-bottom: 7px;
}
.rt-pwa-admin-portal-fallback strong { color: #ffe889; }
.rt-pwa-shortcode-frame-deferred.is-slow .rt-pwa-admin-portal-fallback {
  display: block;
}
.rt-pwa-shortcode-frame-deferred.is-loaded .rt-pwa-admin-portal-fallback {
  display: none;
}
@media (max-width: 700px) {
  .rt-pwa-admin-portal-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .rt-pwa-admin-portal-actions p {
    justify-content: flex-start;
  }
  .rt-pwa-admin-portal-btn,
  .rt-pwa-admin-portal-actions button.rt-pwa-admin-portal-btn {
    flex: 1 1 auto;
  }
}

/* PWA32/D37: Stabil admin-startside uden iframe-autoload */
.rt-pwa-admin-stable {
  padding: 22px;
  background: #000;
}
.rt-pwa-admin-stable-hero {
  border: 1px solid rgba(184,148,45,.42);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(184,148,45,.16), rgba(255,255,255,.035));
}
.rt-pwa-admin-stable-hero h2 {
  margin: 0 0 8px;
  color: #fff7df;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.rt-pwa-admin-stable-hero p:not(.rt-pwa-kicker) {
  margin: 0;
  color: rgba(255,247,222,.88);
  font-size: 16px;
  line-height: 1.45;
}
.rt-pwa-admin-stable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rt-pwa-admin-stable-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(184,148,45,.48);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(184,148,45,.12), rgba(255,255,255,.04));
  color: #fff7df !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.rt-pwa-admin-stable-card:hover,
.rt-pwa-admin-stable-card:focus {
  border-color: rgba(248,223,134,.9);
  transform: translateY(-1px);
}
.rt-pwa-admin-stable-card span {
  display: block;
  color: #ffe889;
  font-size: 18px;
  font-weight: 900;
}
.rt-pwa-admin-stable-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255,247,222,.76);
  font-size: 13px;
  line-height: 1.35;
}
.rt-pwa-admin-stable-card-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(248,223,134,.23), rgba(184,148,45,.10));
}
.rt-pwa-admin-stable-card-primary span {
  font-size: 21px;
}
.rt-pwa-admin-stable-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(248,223,134,.44);
  border-radius: 18px;
  background: rgba(184,148,45,.08);
  color: rgba(255,247,222,.8);
}
.rt-pwa-admin-stable-note strong,
.rt-pwa-admin-stable-note span {
  display: block;
}
.rt-pwa-admin-stable-note strong {
  color: #ffe889;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .rt-pwa-admin-stable {
    padding: 14px;
  }
  .rt-pwa-admin-stable-grid {
    grid-template-columns: 1fr;
  }
  .rt-pwa-admin-stable-card-primary {
    grid-column: auto;
  }
}

/* PWA33 D38: Admin-knap oprydning */
.rt-pwa-admin-stable-card-disabled,
.rt-pwa-admin-stable-card-disabled:hover,
.rt-pwa-admin-stable-card-disabled:focus {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
  border-style: dashed;
  background: linear-gradient(145deg, rgba(184,148,45,.07), rgba(255,255,255,.025));
}
.rt-pwa-admin-stable-card-disabled span::after {
  content: 'Afventer';
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248,223,134,.38);
  color: rgba(255,232,137,.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* v0.1.34 D39: Brug hjemmesidens logo i app-headeren, med RT som fallback */
.rt-pwa-brandmark.has-site-logo {
  overflow: hidden;
  padding: 8px;
}
.rt-pwa-brandmark.has-site-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}
@media (max-width: 560px) {
  .rt-pwa-brandmark.has-site-logo {
    padding: 6px;
  }
}

/* v0.1.35 D40: App polish – undgå afklipning af lange shortcode-/vejledningsvisninger. */
.rt-pwa-shell,
.rt-pwa-view-shell,
.rt-pwa-shortcode-frame,
.rt-pwa-shortcode-inner,
.rt-pwa-shortcode-frame-deferred {
  max-height: none !important;
}
.rt-pwa-shell {
  overflow: visible !important;
}
.rt-pwa-view-shell {
  overflow: visible !important;
  margin-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
}
.rt-pwa-shortcode-frame,
.rt-pwa-shortcode-frame-deferred {
  overflow: visible !important;
}
.rt-pwa-shortcode-inner {
  overflow-x: auto !important;
  overflow-y: visible !important;
}
.rt-pwa-view-iframe {
  min-height: 80vh !important;
  max-height: none !important;
}
.rt-pwa-embed-page,
.rt-pwa-embed-root {
  min-height: auto !important;
  height: auto !important;
  overflow-y: visible !important;
}
.rt-pwa-standalone-page,
.rt-pwa-standalone-page body,
body.rt-pwa-standalone-page {
  overflow-y: auto !important;
}
.rt-pwa-login-install {
  appearance: none;
  border: 1px solid rgba(232,199,98,.62);
  cursor: pointer;
}
.rt-pwa-login-install.is-unavailable {
  opacity: .75;
}
/* Ekstra sikkerhed hvis cookieplugin ikke er opdateret endnu: skjul cookie-UI i app-shell. */
.rt-pwa-standalone-page #rt-gdpr-consent-root,
.rt-pwa-embed-page #rt-gdpr-consent-root,
body.rt-pwa-app-page #rt-gdpr-consent-root,
body.rt-pwa-app-fullscreen #rt-gdpr-consent-root {
  display: none !important;
}

/* v0.1.36 D41: navigation-state fix, friere containerhøjde og tema-installknap. */
.rt-pwa-shell[data-rt-pwa-active-role] .rt-pwa-overview-card[data-rt-pwa-overview-role] {
  display: none !important;
}
.rt-pwa-shell[data-rt-pwa-active-role] .rt-pwa-overview-card[data-rt-pwa-overview-role].is-active {
  display: grid !important;
}
.rt-pwa-shell[data-rt-pwa-active-role="public"] .rt-pwa-overview-action,
.rt-pwa-overview[data-rt-pwa-current-role="public"] .rt-pwa-overview-action {
  display: none !important;
}
.rt-pwa-overview[data-rt-pwa-current-role="public"] {
  grid-template-columns: 1fr auto;
}
.rt-pwa-overview[data-rt-pwa-current-role="club"] {
  grid-template-columns: 1fr 1fr auto;
}
@media (max-width: 900px) {
  .rt-pwa-overview[data-rt-pwa-current-role="public"],
  .rt-pwa-overview[data-rt-pwa-current-role="club"] {
    grid-template-columns: 1fr 1fr;
  }
  .rt-pwa-overview[data-rt-pwa-current-role="public"] .rt-pwa-overview-refresh,
  .rt-pwa-overview[data-rt-pwa-current-role="club"] .rt-pwa-overview-refresh {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .rt-pwa-overview[data-rt-pwa-current-role="public"],
  .rt-pwa-overview[data-rt-pwa-current-role="club"] {
    grid-template-columns: 1fr;
  }
}
.rt-pwa-standalone-root,
.rt-pwa-shell,
.rt-pwa-layout,
.rt-pwa-panels,
.rt-pwa-panel,
.rt-pwa-panel.is-active,
.rt-pwa-view-shell,
.rt-pwa-shortcode-frame,
.rt-pwa-shortcode-frame-deferred,
.rt-pwa-shortcode-inner {
  height: auto !important;
  max-height: none !important;
}
.rt-pwa-panel.is-active,
.rt-pwa-view-shell,
.rt-pwa-shortcode-frame,
.rt-pwa-shortcode-inner {
  overflow-y: visible !important;
}
.rt-pwa-shortcode-frame-deferred {
  overflow: visible !important;
  min-height: 640px !important;
}
.rt-pwa-view-iframe {
  min-height: 640px !important;
  height: auto;
  max-height: none !important;
  overflow: visible !important;
}
.rt-pwa-login-back.rt-pwa-login-install,
button.rt-pwa-login-back.rt-pwa-login-install,
.rt-pwa-login-install {
  border: 1px solid rgba(232,199,98,.92) !important;
  background: linear-gradient(180deg, #e2c15e, #a98322) !important;
  color: #050505 !important;
  box-shadow: 0 12px 30px rgba(184,148,45,.22) !important;
}
.rt-pwa-login-back.rt-pwa-login-install:hover,
.rt-pwa-login-back.rt-pwa-login-install:focus-visible {
  background: linear-gradient(180deg, #f0d46d, #b8942d) !important;
  color: #050505 !important;
  border-color: rgba(255,232,137,.98) !important;
  outline: 2px solid rgba(255,239,170,.28) !important;
  outline-offset: 2px !important;
}
.rt-pwa-login-install.is-unavailable {
  opacity: .82;
  filter: saturate(.9);
}
body.rt-pwa-standalone-page #rt-gdpr-consent-root,
body.rt-pwa-standalone-page .rt-gdpr-consent-root,
body.rt-pwa-standalone-page .rt-gdpr-manage,
body.rt-pwa-standalone-page [class*="cookie"],
body.rt-pwa-standalone-page [id*="cookie"],
body.rt-pwa-standalone-page [class*="Cookie"],
body.rt-pwa-standalone-page [id*="Cookie"],
body.rt-pwa-app-page #rt-gdpr-consent-root,
body.rt-pwa-app-page .rt-gdpr-manage,
body.rt-pwa-app-fullscreen #rt-gdpr-consent-root,
body.rt-pwa-app-fullscreen .rt-gdpr-manage,
body.rt-pwa-embed-page #rt-gdpr-consent-root,
body.rt-pwa-embed-page .rt-gdpr-manage {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* D42: pæn fallback-knap for klubværktøjer uden særskilt shortcode endnu */
.rt-pwa-view-fallback-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(232,197,82,.65);
  background:linear-gradient(135deg,#f1d36a,#b8942d);
  color:#050505!important;
  font-weight:900;
  text-decoration:none!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22);
}
.rt-pwa-view-fallback-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}

/* v0.1.38 D43: Vejledninger v2 – indbygget appvisning i stedet for gammel accordion-shortcode */
.rt-pwa-guides-v2{
  display:grid;
  gap:22px;
  padding:22px;
  border:1px solid rgba(184,148,45,.42);
  border-radius:28px;
  background:radial-gradient(circle at 15% 0,rgba(184,148,45,.16),transparent 42%),rgba(7,7,4,.86);
  box-shadow:0 18px 54px rgba(0,0,0,.32);
}
.rt-pwa-guides-hero{
  padding:26px;
  border:1px solid rgba(232,199,98,.38);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(184,148,45,.18),rgba(255,255,255,.03));
  text-align:center;
}
.rt-pwa-guides-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  padding:7px 13px;
  border-radius:999px;
  border:1px solid rgba(232,199,98,.48);
  color:#f3d86b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rt-pwa-guides-hero h3{
  margin:0 0 10px;
  color:#f6d859;
  font-size:clamp(26px,4vw,42px);
  line-height:1.05;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.rt-pwa-guides-hero p{
  margin:0 auto;
  max-width:720px;
  color:#fff7df;
  font-size:18px;
  line-height:1.48;
}
.rt-pwa-guides-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.rt-pwa-guides-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  min-height:112px;
  padding:20px 22px;
  border:1px solid rgba(184,148,45,.55);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(184,148,45,.12),rgba(255,255,255,.035));
  color:#fff7df!important;
  text-decoration:none!important;
  box-shadow:0 14px 36px rgba(0,0,0,.22);
}
.rt-pwa-guides-card:hover{transform:translateY(-1px);border-color:rgba(246,216,89,.82)}
.rt-pwa-guides-card strong{font-size:20px;color:#fff;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.rt-pwa-guides-card em{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(246,216,89,.76);
  color:#f6d859;
  font-style:normal;
  font-size:24px;
  font-weight:900;
}
.rt-pwa-guides-icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:18px;
  background:rgba(184,148,45,.2);
  color:#f6d859;
  font-size:30px;
  border:1px solid rgba(246,216,89,.38);
}
.rt-pwa-guides-sections{display:grid;gap:18px}
.rt-pwa-guide-section{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  padding:22px;
  border:1px solid rgba(184,148,45,.45);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(184,148,45,.11),rgba(255,255,255,.035));
}
.rt-pwa-guide-number{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(246,216,89,.82);
  color:#f6d859;
  font-weight:900;
  font-size:18px;
}
.rt-pwa-guide-main h4{
  margin:2px 0 8px;
  color:#f6d859;
  font-size:24px;
  text-transform:uppercase;
}
.rt-pwa-guide-main p{margin:0 0 12px;color:#fff7df;font-size:17px;line-height:1.5}
.rt-pwa-guide-main ol{margin:0;padding-left:22px;color:#fff;line-height:1.65;font-size:16px}
.rt-pwa-guide-main li{margin:4px 0}
.rt-pwa-guides-note{
  padding:18px 20px;
  border-radius:20px;
  border:1px solid rgba(246,216,89,.35);
  background:rgba(184,148,45,.11);
  color:#fff7df;
}
.rt-pwa-guides-note strong{display:block;color:#f6d859;margin-bottom:6px;font-size:18px}
.rt-pwa-guides-note p{margin:0;line-height:1.5}
@media (max-width:720px){
  .rt-pwa-guides-v2{padding:14px;border-radius:22px}
  .rt-pwa-guides-hero{padding:20px 16px}
  .rt-pwa-guides-card-grid{grid-template-columns:1fr}
  .rt-pwa-guides-card{min-height:92px;padding:16px}
  .rt-pwa-guide-section{grid-template-columns:1fr;padding:18px}
}

/* PWA39/D44: Notitser og robuste klubportal-fallbacks */
.rt-pwa-overview-notices {
  grid-column: 1 / -1;
  display: block;
  padding: 20px 24px;
}
.rt-pwa-overview-notices:not(.is-active) {
  display: none !important;
}
.rt-pwa-notices-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}
.rt-pwa-notices-head span {
  color: var(--rt-pwa-gold-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 900;
}
.rt-pwa-notices-head strong {
  color: var(--rt-pwa-text);
  font-size: clamp(20px, 2.3vw, 28px);
}
.rt-pwa-notices-head small {
  color: var(--rt-pwa-muted);
  font-size: 15px;
}
.rt-pwa-notices-body .rt-ui,
.rt-pwa-notices-body .rt-ui__container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}
.rt-pwa-notices-body .rt-ui__card,
.rt-pwa-notices-empty {
  border: 1px solid rgba(184,148,45,.35) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(184,148,45,.08)) !important;
  color: var(--rt-pwa-text) !important;
  padding: 18px 22px !important;
  box-shadow: none !important;
}
.rt-pwa-notices-body .rt-ui__notice,
.rt-pwa-notices-empty {
  margin: 0 !important;
  font-size: 16px;
}
.rt-pwa-portal-fallback {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.rt-pwa-portal-fallback-head {
  border: 1px solid rgba(184,148,45,.38);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(184,148,45,.10));
  padding: 20px 22px;
}
.rt-pwa-portal-fallback-head span {
  color: var(--rt-pwa-gold-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}
.rt-pwa-portal-fallback-head strong {
  display: block;
  color: var(--rt-pwa-text);
  font-size: clamp(22px, 3vw, 34px);
  margin-top: 6px;
}
.rt-pwa-portal-fallback-head p {
  color: var(--rt-pwa-muted);
  margin: 8px 0 0;
}
.rt-pwa-portal-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rt-pwa-view-fallback-btn-secondary {
  background: transparent !important;
  color: var(--rt-pwa-gold-2) !important;
}
.rt-pwa-shortcode-frame-club-portal {
  min-height: 720px;
}
@media (max-width: 720px) {
  .rt-pwa-overview-notices { padding: 16px; }
  .rt-pwa-portal-fallback { padding: 12px; }
  .rt-pwa-portal-fallback-actions { flex-direction: column; }
  .rt-pwa-portal-fallback-actions a { width: 100%; text-align: center; }
}

/* v0.1.40 D45: Installflow hotfix + offentlig menu cleanup. */
.rt-pwa-install-guide {
  margin-top: 14px;
  border: 1px solid rgba(232,199,98,.62);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(184,148,45,.18), rgba(255,255,255,.045));
  color: #f8f1dc;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}
.rt-pwa-install-guide strong {
  display: block;
  color: #f8df80;
  font-weight: 900;
  margin-bottom: 6px;
}
.rt-pwa-install-guide p {
  margin: 0 0 10px;
  color: #f8f1dc;
  line-height: 1.42;
}
.rt-pwa-install-guide button {
  appearance: none;
  border: 1px solid rgba(232,199,98,.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #e2c15e, #a98322);
  color: #050505;
  font-weight: 900;
  padding: 8px 14px;
  cursor: pointer;
}
.rt-pwa-shell[data-rt-pwa-active-role="public"] .rt-pwa-overview-action,
.rt-pwa-overview[data-rt-pwa-current-role="public"] .rt-pwa-overview-action {
  display: none !important;
}

/* v0.1.44 D46D: Sikker skjulning af login-installknap efter accepteret installation/standalone. */
.rt-pwa-login-page [hidden],
.rt-pwa-login-back[hidden],
.rt-pwa-login-install[hidden],
[data-rt-pwa-login-install][hidden],
.rt-pwa-is-installed [data-rt-pwa-login-install],
body.rt-pwa-is-installed [data-rt-pwa-login-install] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* v0.1.48 D50: Mobil UI polish - ens kort, bedre bundmenu, safe-area og mindre dobbelt-scroll. */
.rt-pwa-shell {
  --rt-pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
  --rt-pwa-mobile-nav-height: 72px;
}
body.rt-pwa-app-page,
body.rt-pwa-standalone-page {
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}
.rt-pwa-shell .rt-pwa-card-grid,
.rt-pwa-shell .rt-pwa-overview {
  align-items: stretch;
}
.rt-pwa-shell .rt-pwa-card,
.rt-pwa-shell .rt-pwa-overview-card,
.rt-pwa-shell .rt-pwa-overview-action {
  min-width: 0;
  height: 100%;
}
.rt-pwa-shell .rt-pwa-card-copy,
.rt-pwa-shell .rt-pwa-card-copy strong,
.rt-pwa-shell .rt-pwa-card-copy small,
.rt-pwa-shell .rt-pwa-overview-card strong,
.rt-pwa-shell .rt-pwa-overview-card small {
  overflow-wrap: anywhere;
}
.rt-pwa-shell .rt-pwa-shortcode-frame,
.rt-pwa-shell .rt-pwa-shortcode-inner,
.rt-pwa-shell .rt-pwa-view-shell,
.rt-pwa-shell .rt-pwa-public-kampprogram,
.rt-pwa-shell .rt-pwa-player-tools {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.rt-pwa-shell iframe[data-rt-pwa-view-iframe] {
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 900px) {
  body.rt-pwa-app-page .rt-pwa-shell,
  body.rt-pwa-standalone-page .rt-pwa-shell {
    padding-bottom: calc(var(--rt-pwa-mobile-nav-height) + var(--rt-pwa-safe-bottom) + 20px) !important;
  }
  body.rt-pwa-app-page .rt-pwa-bottom-nav,
  body.rt-pwa-standalone-page .rt-pwa-bottom-nav {
    position: fixed !important;
    left: max(8px, env(safe-area-inset-left, 0px)) !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(8px, var(--rt-pwa-safe-bottom)) !important;
    z-index: 9998 !important;
    margin: 0 !important;
    min-height: 58px;
  }
  .rt-pwa-shell .rt-pwa-bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    line-height: 1.1;
  }
  .rt-pwa-shell .rt-pwa-card-grid {
    align-items: stretch;
  }
  .rt-pwa-shell .rt-pwa-card {
    min-height: 92px;
  }
  .rt-pwa-shell .rt-pwa-overview-card {
    min-height: 86px;
  }
  .rt-pwa-shell .rt-pwa-statusbar {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .rt-pwa-shell .rt-pwa-version {
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .rt-pwa-shell .rt-pwa-hero {
    grid-template-columns: 50px 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 10px !important;
    border-radius: 18px !important;
  }
  .rt-pwa-shell .rt-pwa-brandmark {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }
  .rt-pwa-shell .rt-pwa-brandmark span {
    font-size: 17px !important;
  }
  .rt-pwa-shell .rt-pwa-kicker {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  .rt-pwa-shell .rt-pwa-hero h1 {
    font-size: clamp(20px, 7vw, 25px) !important;
    line-height: 1.05 !important;
  }
  .rt-pwa-shell .rt-pwa-subtitle {
    font-size: 12px !important;
    line-height: 1.28 !important;
    margin-top: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rt-pwa-shell .rt-pwa-tabs {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .rt-pwa-shell .rt-pwa-tab {
    scroll-snap-align: start;
  }
  .rt-pwa-shell .rt-pwa-card {
    min-height: 88px !important;
    align-items: flex-start !important;
  }
  .rt-pwa-shell .rt-pwa-card-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 19px !important;
  }
  .rt-pwa-shell .rt-pwa-card-copy strong {
    font-size: 13px !important;
    line-height: 1.16 !important;
  }
  .rt-pwa-shell .rt-pwa-card-copy small {
    font-size: 11px !important;
    line-height: 1.22 !important;
  }
  .rt-pwa-shell .rt-pwa-bottom-nav a {
    font-size: 11px !important;
    padding: 9px 4px !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell,
  .rt-pwa-shell .rt-pwa-panel,
  .rt-pwa-shell .rt-pwa-shortcode-frame {
    border-radius: 16px !important;
  }
}

/* v0.1.49 D50A: skjul rester af cache-opdateringsknapper i app-shellen. */
.rt-pwa-cache-refresh-mini,
.rt-pwa-side-refresh,
.rt-pwa-status-cache-refresh,
.rt-pwa-overview-refresh {
  display: none !important;
}

/* D50B: Lækre, scoped SVG line-icons i appens bokse. Kun visuel app-shell polish. */
.rt-pwa-shell .rt-pwa-card-icon,
.rt-pwa-quick-links .rt-pwa-quick-link-icon,
.rt-pwa-shell .rt-pwa-overview-icon {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,239,170,.20), transparent 38%),
    linear-gradient(145deg, rgba(216,189,100,.22), rgba(5,5,5,.84)) !important;
  border: 1px solid rgba(232,199,98,.58) !important;
  color: #f1d371 !important;
  box-shadow:
    inset 0 0 18px rgba(216,189,100,.12),
    0 10px 26px rgba(0,0,0,.30) !important;
}

.rt-pwa-shell .rt-pwa-card-icon::after,
.rt-pwa-quick-links .rt-pwa-quick-link-icon::after,
.rt-pwa-shell .rt-pwa-overview-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%);
  opacity: .75;
  pointer-events: none;
}

.rt-pwa-icon-svg {
  width: 27px;
  height: 27px;
  display: block;
  position: relative;
  z-index: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

.rt-pwa-shell .rt-pwa-card:hover .rt-pwa-card-icon,
.rt-pwa-shell .rt-pwa-card:focus-visible .rt-pwa-card-icon,
.rt-pwa-shell .rt-pwa-overview-action:hover .rt-pwa-overview-icon,
.rt-pwa-shell .rt-pwa-overview-action:focus-visible .rt-pwa-overview-icon,
.rt-pwa-quick-links a:hover .rt-pwa-quick-link-icon,
.rt-pwa-quick-links a:focus-visible .rt-pwa-quick-link-icon {
  color: #050505 !important;
  background: linear-gradient(180deg, #f1d371, #b8942d) !important;
  border-color: rgba(255,239,170,.9) !important;
  transform: translateY(-1px);
}

.rt-pwa-shell .rt-pwa-overview-action {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon {
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon + span,
.rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon + span + strong,
.rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon + span + strong + small {
  min-width: 0;
}

.rt-pwa-quick-links .rt-pwa-quick-link-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.rt-pwa-quick-links .rt-pwa-quick-link-icon .rt-pwa-icon-svg {
  width: 23px;
  height: 23px;
}

@media (max-width: 900px) {
  .rt-pwa-shell .rt-pwa-card-icon { width: 40px !important; height: 40px !important; flex-basis: 40px !important; }
  .rt-pwa-shell .rt-pwa-card-icon .rt-pwa-icon-svg { width: 23px; height: 23px; }
  .rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon { width: 38px; height: 38px; border-radius: 14px; }
  .rt-pwa-shell .rt-pwa-overview-action .rt-pwa-overview-icon .rt-pwa-icon-svg { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .rt-pwa-shell .rt-pwa-card-icon { width: 36px !important; height: 36px !important; flex-basis: 36px !important; border-radius: 13px !important; }
  .rt-pwa-shell .rt-pwa-card-icon .rt-pwa-icon-svg { width: 21px; height: 21px; }
}


/* v0.1.51 D50C: Klubsider iframe/visningsfix - render selvstændige klubsider inline uden lang iframe. */
.rt-pwa-dedicated-inline-view {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.rt-pwa-dedicated-inline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(232,199,98,.35);
  border-radius: 18px;
  padding: 10px 12px;
  background: linear-gradient(145deg, rgba(184,148,45,.12), rgba(255,255,255,.035));
  color: rgba(255,247,222,.80);
  font-size: 13px;
  font-weight: 800;
}
.rt-pwa-dedicated-inline-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(232,199,98,.58);
  border-radius: 999px;
  color: #f6d66c !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.rt-pwa-dedicated-inline-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid rgba(232,199,98,.30);
  border-radius: 24px;
  background: #050505;
  padding: 14px;
}
.rt-pwa-dedicated-inline-content-inner,
.rt-pwa-dedicated-inline-content-inner > * {
  max-width: 100% !important;
}
.rt-pwa-dedicated-inline-content .elementor,
.rt-pwa-dedicated-inline-content .elementor-section-wrap,
.rt-pwa-dedicated-inline-content .elementor-section,
.rt-pwa-dedicated-inline-content .elementor-container,
.rt-pwa-dedicated-inline-content .elementor-widget-wrap {
  max-width: 100% !important;
}
.rt-pwa-dedicated-inline-content iframe,
.rt-pwa-dedicated-inline-content table,
.rt-pwa-dedicated-inline-content img,
.rt-pwa-dedicated-inline-content video {
  max-width: 100% !important;
}
.rt-pwa-dedicated-inline-content iframe {
  width: 100% !important;
}
@media (max-width: 720px) {
  .rt-pwa-dedicated-inline-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .rt-pwa-dedicated-inline-toolbar a {
    width: 100%;
  }
  .rt-pwa-dedicated-inline-content {
    border-radius: 18px;
    padding: 10px;
  }
}

/* v0.1.52 D50D: Shortcode-header/layoutfix for Spillere/Tilknytning + Offentlig Kampprogram. */
.rt-pwa-view-shell-klub-spillere .rt-pwa-view-toolbar,
.rt-pwa-view-shell-kampprogram .rt-pwa-view-toolbar,
.rt-pwa-view-shell-klub-spillere .rt-pwa-view-header,
.rt-pwa-view-shell-kampprogram .rt-pwa-view-header {
  position: relative;
  z-index: 8;
}
.rt-pwa-view-shell-klub-spillere .rt-pwa-view-header,
.rt-pwa-view-shell-kampprogram .rt-pwa-view-header {
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(184,148,45,.28) !important;
}
.rt-pwa-player-tools,
.rt-pwa-public-kampprogram {
  display: grid;
  gap: 18px;
  padding: 18px;
  margin: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 180px);
  overflow: visible !important;
}
.rt-pwa-view-info-card,
.rt-pwa-player-tools-note,
.rt-pwa-public-kampprogram-note {
  margin: 0 !important;
  padding: 20px 22px !important;
  border: 1px solid rgba(232,199,98,.36) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 0 0, rgba(232,199,98,.15), transparent 44%),
    linear-gradient(145deg, rgba(184,148,45,.13), rgba(0,0,0,.56)) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.28) !important;
  color: #fff7df !important;
}
.rt-pwa-view-info-card strong,
.rt-pwa-player-tools-note strong,
.rt-pwa-public-kampprogram-note strong {
  display: block;
  margin: 0 0 8px !important;
  color: #f8df86 !important;
  font-size: clamp(20px, 3.2vw, 28px) !important;
  line-height: 1.08 !important;
}
.rt-pwa-view-info-card p,
.rt-pwa-player-tools-note p,
.rt-pwa-public-kampprogram-note p {
  margin: 0 !important;
  color: rgba(255,247,222,.88) !important;
  font-size: clamp(15px, 2.2vw, 18px) !important;
  line-height: 1.5 !important;
}
.rt-pwa-player-tools .rt-pwa-view-code,
.rt-pwa-public-kampprogram .rt-pwa-view-code {
  display: none !important;
}
.rt-pwa-player-tools-section,
.rt-pwa-shortcode-frame-kampprogram-public {
  margin: 0 !important;
  border: 1px solid rgba(184,148,45,.30) !important;
  border-radius: 24px !important;
  background: rgba(0,0,0,.72) !important;
  overflow: visible !important;
  box-shadow: 0 16px 45px rgba(0,0,0,.24);
}
.rt-pwa-player-tools-section {
  padding: 18px !important;
}
.rt-pwa-shortcode-frame-kampprogram-public {
  padding: 16px !important;
}
.rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-inner,
.rt-pwa-view-shell-kampprogram .rt-pwa-shortcode-inner {
  background: transparent !important;
  border-color: rgba(232,199,98,.20) !important;
  overflow-x: auto !important;
}
.rt-pwa-view-shell-klub-spillere .rt-pwa-view-title-block,
.rt-pwa-view-shell-kampprogram .rt-pwa-view-title-block {
  max-width: 1100px;
}
@media (max-width: 700px) {
  .rt-pwa-player-tools,
  .rt-pwa-public-kampprogram {
    gap: 12px;
    padding: 10px 8px 14px;
  }
  .rt-pwa-view-info-card,
  .rt-pwa-player-tools-note,
  .rt-pwa-public-kampprogram-note {
    padding: 15px 14px !important;
    border-radius: 18px !important;
  }
  .rt-pwa-player-tools-section,
  .rt-pwa-shortcode-frame-kampprogram-public {
    border-radius: 18px !important;
    padding: 10px 8px !important;
  }
}


/* v0.1.54 D51I: Dagens kampe iframe-height fix.
   PWA'en skal ikke give rt_dagens_kampe/Tabletspil View kunstig lang sort bund via 80vh/minHeight. */
.rt-pwa-view-shell-dagens-kampe {
  margin-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
}
.rt-pwa-shortcode-frame-dagens-kampe.rt-pwa-shortcode-frame-deferred {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}
.rt-pwa-shortcode-frame-dagens-kampe .rt-pwa-view-iframe {
  min-height: 0 !important;
  height: auto;
  background: #000 !important;
}
.rt-pwa-shortcode-frame-dagens-kampe.is-loaded {
  background: #000 !important;
}


/* D52B: Brugbar admin-startside uden ekstra intern topblok */
.rt-pwa-admin-stable-d52b {
  padding-top: 28px;
}
.rt-pwa-admin-stable-grid-d52b {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rt-pwa-admin-stable-card-active {
  position: relative;
  gap: 7px;
  min-height: 128px;
  padding: 18px 18px 16px;
  overflow: hidden;
}
.rt-pwa-admin-stable-card-active::after {
  content: 'Aktiv';
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(248,223,134,.44);
  border-radius: 999px;
  padding: 4px 8px;
  color: #050505;
  background: linear-gradient(180deg, #f8df86, #b8942d);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rt-pwa-admin-stable-card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border-radius: 14px;
  border: 1px solid rgba(248,223,134,.46);
  background: rgba(184,148,45,.16);
  color: #f8df86;
}
.rt-pwa-admin-stable-card-icon .rt-pwa-icon-svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rt-pwa-admin-stable-card-active em {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255,247,222,.72);
  background: rgba(0,0,0,.26);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.rt-pwa-admin-stable-d52b .rt-pwa-admin-stable-card-primary {
  grid-column: auto;
}
@media (max-width: 1020px) {
  .rt-pwa-admin-stable-grid-d52b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rt-pwa-admin-stable-grid-d52b { grid-template-columns: 1fr; }
  .rt-pwa-admin-stable-card-active { min-height: 118px; }
}


/* D52D: Adminlinks må ikke fallbacke til WP backend */
.rt-pwa-admin-stable-card-pending {
  position: relative;
  pointer-events: none;
}
.rt-pwa-admin-stable-card-pending::after {
  content: 'Afventer';
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(248,223,134,.34);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255,232,137,.88);
  background: rgba(0,0,0,.58);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rt-pwa-admin-stable-card-pending.rt-pwa-admin-stable-card-active::after {
  content: 'Afventer';
}
.rt-pwa-admin-stable-card-disabled .rt-pwa-admin-stable-card-icon {
  opacity: .68;
}
.rt-pwa-admin-stable-card-pending span::after {
  display: none !important;
  content: none !important;
}


/* D52E: Intern Mailudsendelse app-visning uden backend-fallback */
.rt-ui .rt-pwa-admin-part2-view{
  border:1px solid rgba(212,175,55,.34);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(14,13,8,.94),rgba(0,0,0,.96));
  padding:20px;
  box-shadow:0 22px 70px rgba(0,0,0,.42);
  overflow:hidden;
}
.rt-ui .rt-pwa-admin-part2-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px;
  padding:0 0 14px;
  border-bottom:1px solid rgba(212,175,55,.18);
  color:rgba(255,255,255,.72);
  font-size:13px;
}
.rt-ui .rt-pwa-admin-part2-view .rtp2-page,
.rt-ui .rt-pwa-admin-part2-view .rt-card,
.rt-ui .rt-pwa-admin-part2-view .rt-panel{
  max-width:100%;
}
.rt-ui .rt-pwa-admin-part2-view input,
.rt-ui .rt-pwa-admin-part2-view select,
.rt-ui .rt-pwa-admin-part2-view textarea{
  max-width:100%;
}
@media (max-width: 760px){
  .rt-ui .rt-pwa-admin-part2-view{padding:14px;border-radius:18px;}
  .rt-ui .rt-pwa-admin-part2-toolbar{align-items:flex-start;}
}


/* D52K: Admin cleanup - fjern Aktiv-labels og intern admin-toolbar */
.rt-pwa-admin-stable-card-active::after {
  display: none !important;
  content: none !important;
}
.rt-pwa-admin-stable-card-pending::after,
.rt-pwa-admin-stable-card-pending.rt-pwa-admin-stable-card-active::after {
  display: inline-flex;
}
.rt-pwa-admin-part2-view-d52k > .rt-pwa-admin-part2-toolbar {
  display: none !important;
}


/* D52L: Admin logout + note cleanup */
.rt-pwa-admin-actions-d52l {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.rt-pwa-admin-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(248, 213, 99, 0.55);
  background: linear-gradient(135deg, #f7d85c 0%, #b99108 100%);
  color: #050505 !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.rt-pwa-admin-logout-link:hover,
.rt-pwa-admin-logout-link:focus-visible {
  transform: translateY(-1px);
  color: #050505 !important;
}
.rt-pwa-admin-stable-d52l .rt-pwa-admin-stable-note {
  display: none !important;
}
@media (max-width: 640px) {
  .rt-pwa-admin-actions-d52l {
    justify-content: stretch;
  }
  .rt-pwa-admin-logout-link {
    width: 100%;
  }
}

/* D54C HOTFIX: frontend wrapper for Tournament > Kampprogram admin editor */
.rt-pwa-tournament-admin-matches {
  width: 100%;
  overflow-x: auto;
}
.rt-pwa-tournament-admin-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 188, 96, .45);
  border-radius: 16px;
  background: rgba(216, 188, 96, .08);
  color: #f6edd0;
}
.rt-pwa-tournament-admin-note strong {
  color: #f8e08a;
  font-size: 15px;
}
.rt-pwa-tournament-admin-note span {
  font-size: 13px;
  line-height: 1.4;
}
.rt-pwa-tournament-admin-matches .wrap {
  margin: 0;
  color: #f6edd0;
}
.rt-pwa-tournament-admin-matches h1,
.rt-pwa-tournament-admin-matches h2 {
  color: #f8e08a;
}
.rt-pwa-tournament-admin-matches .notice {
  border-radius: 10px;
  padding: 8px 12px;
  margin: 10px 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.rt-pwa-tournament-admin-matches .notice-success {
  border-color: rgba(69, 180, 100, .55);
}
.rt-pwa-tournament-admin-matches .notice-error {
  border-color: rgba(220, 80, 80, .65);
}
.rt-pwa-tournament-admin-matches table.widefat {
  min-width: 980px;
  background: rgba(255,255,255,.04);
  color: #f6edd0;
}
.rt-pwa-tournament-admin-matches table.widefat th,
.rt-pwa-tournament-admin-matches table.widefat td {
  color: #f6edd0;
}
.rt-pwa-tournament-admin-matches input,
.rt-pwa-tournament-admin-matches select {
  max-width: 100%;
}


/* D55E: Black app icon only. Visual brandmark background; installflow JS is untouched. */
.rt-pwa-brandmark.has-black-icon-bg,
.rt-pwa-brandmark.has-site-logo.has-black-icon-bg {
  background: #000;
  border-color: rgba(216,189,100,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 32px rgba(216,189,100,.09), 0 14px 34px rgba(0,0,0,.34);
}
.rt-pwa-brandmark.has-black-icon-bg img,
.rt-pwa-brandmark.has-site-logo.has-black-icon-bg img {
  background: #000;
  border-radius: 17px;
}

/* D56A: Admin layout polish — spacing, Systemstatus nederst via quicklink order, og renere Kampprogram-intro. */
.rt-pwa-view-shell-admin-portal,
.rt-pwa-view-shell-kampprogram-admin,
.rt-pwa-view-shell-mailudsendelse,
.rt-pwa-view-shell-kalenderstyring,
.rt-pwa-view-shell-notifikationer,
.rt-pwa-view-shell-dokumenter,
.rt-pwa-view-shell-nyheder,
.rt-pwa-view-shell-systemstatus,
.rt-pwa-view-shell-admin_statistik {
  box-sizing: border-box;
  padding-left: 5px !important;
  padding-right: 5px !important;
}
.rt-pwa-view-shell-admin-portal > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-kampprogram-admin > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-mailudsendelse > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-kalenderstyring > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-notifikationer > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-dokumenter > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-nyheder > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-systemstatus > .rt-pwa-view-toolbar,
.rt-pwa-view-shell-admin-portal > .rt-pwa-view-header,
.rt-pwa-view-shell-kampprogram-admin > .rt-pwa-view-header,
.rt-pwa-view-shell-mailudsendelse > .rt-pwa-view-header,
.rt-pwa-view-shell-kalenderstyring > .rt-pwa-view-header,
.rt-pwa-view-shell-notifikationer > .rt-pwa-view-header,
.rt-pwa-view-shell-dokumenter > .rt-pwa-view-header,
.rt-pwa-view-shell-nyheder > .rt-pwa-view-header,
.rt-pwa-view-shell-systemstatus > .rt-pwa-view-header,
.rt-pwa-view-shell-admin_statistik > .rt-pwa-view-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block > p:not(.rt-pwa-kicker):empty {
  display: none !important;
}
.rt-pwa-tournament-admin-matches,
.rt-pwa-admin-part2-view,
.rt-pwa-admin-stable {
  box-sizing: border-box;
}
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches,
.rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view {
  width: 100%;
  max-width: 100%;
}
.rt-pwa-admin-stable-d56a .rt-pwa-admin-stable-card[data-rt-pwa-admin-link="systemstatus"] {
  order: 99;
}
@media (max-width: 760px) {
  .rt-pwa-view-shell-admin-portal,
  .rt-pwa-view-shell-kampprogram-admin,
  .rt-pwa-view-shell-mailudsendelse,
  .rt-pwa-view-shell-kalenderstyring,
  .rt-pwa-view-shell-notifikationer,
  .rt-pwa-view-shell-dokumenter,
  .rt-pwa-view-shell-nyheder,
  .rt-pwa-view-shell-systemstatus,
  .rt-pwa-view-shell-admin_statistik {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}


/* D56B: Admin pages match Kalenderstyring — scoped PWA-admin skin for Adm Portal Part 2 pages. */
.rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view {
  color: var(--rt-pwa-text);
}
.rt-pwa-admin-part2-view .rtp2-page {
  color: var(--rt-pwa-text);
  background: transparent !important;
  padding: 0 !important;
}
.rt-pwa-admin-part2-view .rt-h2,
.rt-pwa-admin-part2-view .rt-h3,
.rt-pwa-admin-part2-view h1,
.rt-pwa-admin-part2-view h2,
.rt-pwa-admin-part2-view h3 {
  color: var(--rt-pwa-gold-2) !important;
  line-height: 1.12;
}
.rt-pwa-admin-part2-view .rt-muted,
.rt-pwa-admin-part2-view .rtp2-help,
.rt-pwa-admin-part2-view .description {
  color: rgba(248,241,221,.78) !important;
}
.rt-pwa-admin-part2-view .rt-sep {
  border: 0 !important;
  height: 1px;
  margin: 14px 0 18px;
  background: linear-gradient(90deg, rgba(216,189,100,.55), rgba(216,189,100,0));
}
.rt-pwa-admin-part2-view .rtp2-cols,
.rt-pwa-admin-part2-view .rtp2-split {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 16px !important;
  align-items: start;
}
.rt-pwa-admin-part2-view .rtp2-col,
.rt-pwa-admin-part2-view .rtp2-cols > * {
  min-width: 0;
}
.rt-pwa-admin-part2-view .rtp2-box,
.rt-pwa-admin-part2-view .rt-card,
.rt-pwa-admin-part2-view .rtp2-notice,
.rt-pwa-admin-part2-view .rtp2-groups,
.rt-pwa-admin-part2-view .rtp2-media,
.rt-pwa-admin-part2-view .rtp2-sortable__item {
  border-radius: 16px !important;
  border: 1px solid rgba(184,148,45,.34) !important;
  background: linear-gradient(180deg, rgba(22,20,12,.88), rgba(5,5,4,.82)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.22);
}
.rt-pwa-admin-part2-view .rtp2-box,
.rt-pwa-admin-part2-view .rt-card {
  padding: 15px !important;
}
.rt-pwa-admin-part2-view .rtp2-field {
  margin-bottom: 12px !important;
}
.rt-pwa-admin-part2-view label,
.rt-pwa-admin-part2-view .rtp2-field label {
  color: #fff6d9 !important;
  font-weight: 750;
}
.rt-pwa-admin-part2-view input[type="text"],
.rt-pwa-admin-part2-view input[type="email"],
.rt-pwa-admin-part2-view input[type="url"],
.rt-pwa-admin-part2-view input[type="number"],
.rt-pwa-admin-part2-view input[type="date"],
.rt-pwa-admin-part2-view input[type="time"],
.rt-pwa-admin-part2-view input[type="search"],
.rt-pwa-admin-part2-view select,
.rt-pwa-admin-part2-view textarea {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border-radius: 10px !important;
  border: 1px solid rgba(216,189,100,.45) !important;
  background: #050505 !important;
  color: #fff8df !important;
  padding: 9px 11px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  color-scheme: dark;
}
.rt-pwa-admin-part2-view textarea {
  min-height: 110px;
}
.rt-pwa-admin-part2-view input::placeholder,
.rt-pwa-admin-part2-view textarea::placeholder {
  color: rgba(248,241,221,.55) !important;
}
.rt-pwa-admin-part2-view input[type="checkbox"],
.rt-pwa-admin-part2-view input[type="radio"] {
  accent-color: var(--rt-pwa-gold-2);
}
.rt-pwa-admin-part2-view .rt-btn,
.rt-pwa-admin-part2-view a.rt-btn,
.rt-pwa-admin-part2-view button.rt-btn,
.rt-pwa-admin-part2-view input[type="submit"],
.rt-pwa-admin-part2-view button[type="submit"]:not(.wp-switch-editor):not(.button),
.rt-pwa-admin-part2-view .button-primary {
  appearance: none;
  border: 1px solid rgba(216,189,100,.68) !important;
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold)) !important;
  color: #070604 !important;
  border-radius: 12px !important;
  padding: 9px 14px !important;
  min-height: 40px;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(184,148,45,.17);
  cursor: pointer;
}
.rt-pwa-admin-part2-view .rt-btn--outline,
.rt-pwa-admin-part2-view a.rt-btn--outline,
.rt-pwa-admin-part2-view button.rt-btn--outline,
.rt-pwa-admin-part2-view .button:not(.wp-switch-editor):not(.insert-media):not(.ed_button):not(.wp-color-result) {
  border-color: rgba(216,189,100,.58) !important;
  background: rgba(184,148,45,.10) !important;
  color: var(--rt-pwa-gold-2) !important;
  box-shadow: none;
}
.rt-pwa-admin-part2-view .rt-btn:hover,
.rt-pwa-admin-part2-view input[type="submit"]:hover,
.rt-pwa-admin-part2-view button[type="submit"]:hover,
.rt-pwa-admin-part2-view .button-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.rt-pwa-admin-part2-view .rtp2-danger,
.rt-pwa-admin-part2-view .rt-btn--danger,
.rt-pwa-admin-part2-view a[href*="delete"],
.rt-pwa-admin-part2-view a[href*="slet"] {
  border-color: rgba(216,189,100,.50) !important;
  background: rgba(184,148,45,.08) !important;
  color: var(--rt-pwa-gold-2) !important;
}
.rt-pwa-admin-part2-view .rt-tablewrap {
  width: 100%;
  max-width: 100%;
  overflow: auto !important;
  border: 1px solid rgba(184,148,45,.30);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  -webkit-overflow-scrolling: touch;
}
.rt-pwa-admin-part2-view table,
.rt-pwa-admin-part2-view .rt-table,
.rt-pwa-admin-part2-view table.widefat {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: rgba(5,5,5,.82) !important;
  color: var(--rt-pwa-text) !important;
}
.rt-pwa-admin-part2-view th,
.rt-pwa-admin-part2-view td,
.rt-pwa-admin-part2-view .rt-table th,
.rt-pwa-admin-part2-view .rt-table td {
  border-color: rgba(255,255,255,.12) !important;
  color: var(--rt-pwa-text) !important;
  padding: 10px 12px !important;
}
.rt-pwa-admin-part2-view th,
.rt-pwa-admin-part2-view .rt-table th {
  color: var(--rt-pwa-gold-2) !important;
  background: rgba(184,148,45,.12) !important;
  font-weight: 900;
}
.rt-pwa-admin-part2-view tr:nth-child(even) td {
  background: rgba(255,255,255,.025);
}
.rt-pwa-admin-part2-view .wp-editor-wrap {
  border: 1px solid rgba(184,148,45,.30);
  border-radius: 14px;
  overflow: hidden;
  background: #f6f6f6;
}
.rt-pwa-admin-part2-view .wp-editor-tools,
.rt-pwa-admin-part2-view .quicktags-toolbar,
.rt-pwa-admin-part2-view .mce-toolbar-grp {
  background: #f3f3f3 !important;
}
.rt-pwa-admin-part2-view .wp-editor-area {
  background: #fff !important;
  color: #111 !important;
  border-radius: 0 !important;
}
@media (max-width: 980px) {
  .rt-pwa-admin-part2-view .rtp2-cols,
  .rt-pwa-admin-part2-view .rtp2-split {
    grid-template-columns: 1fr !important;
  }
}

/* D56C: Turnering / Kampprogram visual cleanup — scoped only to PWA admin Tournament view. */
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches {
  color: var(--rt-pwa-text);
}
.rt-pwa-tournament-admin-matches .wrap {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rt-pwa-text) !important;
  background: transparent !important;
}
.rt-pwa-tournament-admin-matches .wrap > h1 {
  margin: 18px 0 12px !important;
  color: var(--rt-pwa-gold-2) !important;
  font-size: clamp(30px, 5vw, 44px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em;
}
.rt-pwa-tournament-admin-matches .rt-pwa-tournament-admin-note {
  margin-bottom: 16px !important;
}
.rt-pwa-tournament-admin-matches form {
  max-width: 100%;
}
.rt-pwa-tournament-admin-matches .wrap > form:first-of-type,
.rt-pwa-tournament-admin-matches .wrap > form[method="get"] {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px 12px !important;
  align-items: end !important;
  margin: 0 0 16px !important;
  padding: 14px !important;
  border: 1px solid rgba(184,148,45,.36) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(22,20,12,.88), rgba(5,5,4,.82)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.20);
}
.rt-pwa-tournament-admin-matches .wrap > form:first-of-type label,
.rt-pwa-tournament-admin-matches .wrap > form[method="get"] label {
  display: block !important;
  margin: 0 0 5px !important;
  color: #fff6d9 !important;
  font-weight: 850 !important;
}
.rt-pwa-tournament-admin-matches .wrap > form:first-of-type select,
.rt-pwa-tournament-admin-matches .wrap > form[method="get"] select {
  width: 100% !important;
}
.rt-pwa-tournament-admin-matches .wrap > form:first-of-type br,
.rt-pwa-tournament-admin-matches .wrap > form[method="get"] br {
  display: none !important;
}
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) {
  margin: 0 !important;
}
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="background:#fff"],
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="background: #fff"],
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="border:1px solid #ccd0d4"],
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="border: 1px solid #ccd0d4"] {
  margin: 16px 0 !important;
  padding: 15px !important;
  border: 1px solid rgba(184,148,45,.36) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(22,20,12,.92), rgba(5,5,4,.84)) !important;
  color: var(--rt-pwa-text) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.20);
}
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="background:#fff"] h2,
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="background: #fff"] h2,
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="border:1px solid #ccd0d4"] h2,
.rt-pwa-tournament-admin-matches .wrap > form:not(:first-of-type) > div[style*="border: 1px solid #ccd0d4"] h2 {
  margin-top: 0 !important;
  color: var(--rt-pwa-gold-2) !important;
}
.rt-pwa-tournament-admin-matches h2 {
  margin: 20px 0 9px !important;
  color: var(--rt-pwa-gold-2) !important;
  font-size: clamp(25px, 4vw, 33px) !important;
  line-height: 1.12 !important;
}
.rt-pwa-tournament-admin-matches p,
.rt-pwa-tournament-admin-matches .description {
  color: rgba(248,241,221,.82) !important;
  line-height: 1.45 !important;
}
.rt-pwa-tournament-admin-matches label,
.rt-pwa-tournament-admin-matches strong {
  color: #fff6d9 !important;
}
.rt-pwa-tournament-admin-matches input[type="text"],
.rt-pwa-tournament-admin-matches input[type="number"],
.rt-pwa-tournament-admin-matches input[type="date"],
.rt-pwa-tournament-admin-matches input[type="time"],
.rt-pwa-tournament-admin-matches select {
  min-height: 42px !important;
  border: 1px solid rgba(216,189,100,.45) !important;
  border-radius: 10px !important;
  background: #050505 !important;
  color: #fff8df !important;
  padding: 8px 10px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  color-scheme: dark;
}
.rt-pwa-tournament-admin-matches input[type="date"]::-webkit-calendar-picker-indicator,
.rt-pwa-tournament-admin-matches input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(.4) saturate(1.4);
  opacity: .85;
}
.rt-pwa-tournament-admin-matches input:disabled,
.rt-pwa-tournament-admin-matches select:disabled {
  background: rgba(255,255,255,.08) !important;
  color: rgba(248,241,221,.62) !important;
  border-color: rgba(255,255,255,.14) !important;
}
.rt-pwa-tournament-admin-matches .button,
.rt-pwa-tournament-admin-matches a.button,
.rt-pwa-tournament-admin-matches button.button,
.rt-pwa-tournament-admin-matches .button-primary,
.rt-pwa-tournament-admin-matches .button-secondary,
.rt-pwa-tournament-admin-matches input[type="submit"] {
  appearance: none;
  min-height: 40px !important;
  border: 1px solid rgba(216,189,100,.66) !important;
  border-radius: 12px !important;
  background: rgba(184,148,45,.10) !important;
  color: var(--rt-pwa-gold-2) !important;
  padding: 8px 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.rt-pwa-tournament-admin-matches .button-primary,
.rt-pwa-tournament-admin-matches button.button-primary,
.rt-pwa-tournament-admin-matches input.button-primary {
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold)) !important;
  color: #070604 !important;
  box-shadow: 0 10px 22px rgba(184,148,45,.17) !important;
}
.rt-pwa-tournament-admin-matches .button:hover,
.rt-pwa-tournament-admin-matches a.button:hover,
.rt-pwa-tournament-admin-matches button.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table {
  min-width: 1060px !important;
  width: 100% !important;
  margin: 12px 0 12px !important;
  border: 1px solid rgba(184,148,45,.30) !important;
  border-radius: 16px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  background: rgba(5,5,5,.82) !important;
  color: var(--rt-pwa-text) !important;
}
.rt-pwa-tournament-admin-matches .rt-pwa-tournament-tablewrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table th,
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table td {
  border-color: rgba(255,255,255,.12) !important;
  color: var(--rt-pwa-text) !important;
  padding: 10px 11px !important;
  background: rgba(5,5,5,.70) !important;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table th {
  color: var(--rt-pwa-gold-2) !important;
  background: rgba(184,148,45,.14) !important;
  font-weight: 900 !important;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table tr:nth-child(even) td {
  background: rgba(255,255,255,.026) !important;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table .rt-result-note {
  color: rgba(248,241,221,.66) !important;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table .rt-score-sep {
  color: var(--rt-pwa-gold-2) !important;
  font-weight: 900;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table .rt-badge--confirmed {
  background: rgba(75, 180, 112, .88) !important;
  color: #fff !important;
}
.rt-pwa-tournament-admin-matches #rt-tournament-matches-table .rt-badge--pending {
  background: rgba(216,189,100,.90) !important;
  color: #080704 !important;
}
.rt-pwa-tournament-admin-matches span[style*="color:#a00"],
.rt-pwa-tournament-admin-matches span[style*="color: #a00"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(216,189,100,.50);
  border-radius: 999px;
  background: rgba(184,148,45,.10);
  color: var(--rt-pwa-gold-2) !important;
  font-weight: 900 !important;
}
@media (max-width: 900px) {
  .rt-pwa-tournament-admin-matches .wrap > form:first-of-type,
  .rt-pwa-tournament-admin-matches .wrap > form[method="get"] {
    grid-template-columns: 1fr !important;
  }
  .rt-pwa-tournament-admin-matches .wrap > h1 {
    font-size: 34px !important;
  }
}

/* D56D: Nyheder editor polish — scoped only to PWA admin Nyheder view. */
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder {
  --rt-pwa-news-panel: linear-gradient(180deg, rgba(22,20,12,.90), rgba(5,5,4,.84));
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder form,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rtp2-page > form,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rt-card,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rtp2-box {
  max-width: 100%;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-editor-wrap,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .tmce-active,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .html-active {
  margin: 8px 0 14px !important;
  border: 1px solid rgba(184,148,45,.40) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f7f7f7 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.04);
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-editor-tabs {
  padding: 8px 9px 0 !important;
  background: linear-gradient(180deg, #f5f5f5, #ededed) !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-switch-editor {
  min-height: 30px !important;
  border-radius: 9px 9px 0 0 !important;
  border-color: rgba(20,20,20,.18) !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-editor-tools,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .mce-toolbar-grp,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .quicktags-toolbar {
  border: 0 !important;
  border-bottom: 1px solid rgba(20,20,20,.14) !important;
  background: linear-gradient(180deg, #f8f8f8, #eeeeee) !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .mce-toolbar-grp .mce-btn button,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .quicktags-toolbar input.ed_button,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .quicktags-toolbar .button {
  min-height: 28px !important;
  border-radius: 7px !important;
  border-color: rgba(0,0,0,.18) !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-editor-container,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .mce-container-body,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder iframe,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder textarea.wp-editor-area {
  background: #fff !important;
  color: #111 !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder textarea.wp-editor-area {
  min-height: 230px !important;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .insert-media,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .button.insert-media {
  min-height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(184,148,45,.50) !important;
  background: rgba(184,148,45,.10) !important;
  color: #6d5100 !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-media-buttons {
  padding: 9px 9px 5px !important;
  background: #f7f7f7 !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder [id*="image"],
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rtp2-media,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rt-media,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rtp2-field:has(button),
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rtp2-field:has(.button) {
  max-width: 100%;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder button,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .button,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder a.button,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder input[type="button"],
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder input[type="submit"] {
  white-space: normal;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder button:not(.wp-switch-editor):not(.mce-btn button):not(.button-link),
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .button:not(.wp-switch-editor):not(.insert-media):not(.ed_button):not(.wp-color-result),
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder input[type="button"],
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder input[type="submit"] {
  border-color: rgba(216,189,100,.66) !important;
  color: var(--rt-pwa-gold-2) !important;
  background: rgba(184,148,45,.10) !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder input[type="submit"],
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder button[type="submit"] {
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold)) !important;
  color: #070604 !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder label:has(input[type="checkbox"]),
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder p:has(input[type="checkbox"]),
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder div:has(> input[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  color: #fff6d9 !important;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder table,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .rt-table,
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder table.widefat {
  min-width: 760px;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder table img {
  max-width: 62px !important;
  height: auto !important;
  border-radius: 10px;
  border: 1px solid rgba(216,189,100,.35);
  background: #000;
  padding: 2px;
}
.rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder table a {
  color: var(--rt-pwa-gold-2) !important;
  font-weight: 850;
  text-decoration-color: rgba(216,189,100,.45);
}
@media (max-width: 760px) {
  .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder textarea.wp-editor-area {
    min-height: 190px !important;
  }
  .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .wp-media-buttons,
  .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view-nyheder .quicktags-toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* D56E: Admin polish finjustering efter test/screenshots — scoped only to PWA admin shell. */
.rt-pwa-admin-stable-d56e .rt-pwa-admin-stable-card em,
.rt-pwa-view-shell-admin-portal .rt-pwa-admin-stable-card em,
.rt-pwa-view-shell-admin-portal .rt-pwa-admin-stable-card [class*="badge"],
.rt-pwa-view-shell-admin-portal .rt-pwa-admin-stable-card [class*="status"] {
  display: none !important;
}
.rt-pwa-admin-stable-d56e .rt-pwa-admin-stable-grid,
.rt-pwa-view-shell-admin-portal .rt-pwa-admin-stable-grid {
  gap: 12px !important;
  align-items: stretch !important;
}
.rt-pwa-admin-stable-d56e .rt-pwa-admin-stable-card {
  min-height: 132px !important;
  padding: 15px 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(18,17,12,.94), rgba(5,5,4,.90)) !important;
  border-color: rgba(216,189,100,.30) !important;
}
.rt-pwa-admin-stable-d56e .rt-pwa-admin-stable-card small {
  margin-top: 6px !important;
  line-height: 1.38 !important;
  color: rgba(248,241,221,.72) !important;
}
.rt-pwa-view-shell-admin-portal .rt-pwa-view-header,
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-header,
.rt-pwa-view-shell-mailudsendelse .rt-pwa-view-header,
.rt-pwa-view-shell-kalenderstyring .rt-pwa-view-header,
.rt-pwa-view-shell-notifikationer .rt-pwa-view-header,
.rt-pwa-view-shell-dokumenter .rt-pwa-view-header,
.rt-pwa-view-shell-nyheder .rt-pwa-view-header,
.rt-pwa-view-shell-systemstatus .rt-pwa-view-header {
  border-radius: 18px !important;
  margin-bottom: 12px !important;
}
.rt-pwa-view-shell-admin-portal .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-mailudsendelse .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-kalenderstyring .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-notifikationer .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-dokumenter .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-nyheder .rt-pwa-view-title-block > p,
.rt-pwa-view-shell-systemstatus .rt-pwa-view-title-block > p {
  max-width: 980px;
  color: rgba(248,241,221,.76) !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"],
.rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] {
  background: rgba(0,0,0,.10);
  border-radius: 18px;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .rtp2-page,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .wrap,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .postbox,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .inside,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .notice,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .updated,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .error,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .settings-error {
  color: var(--rt-pwa-text) !important;
  background: transparent !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .notice,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .updated,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .error,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .settings-error,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] .notice,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] .updated,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] .error {
  border: 1px solid rgba(216,189,100,.34) !important;
  border-left: 4px solid rgba(216,189,100,.85) !important;
  border-radius: 14px !important;
  padding: 11px 13px !important;
  background: linear-gradient(180deg, rgba(22,20,12,.88), rgba(5,5,4,.84)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] a:not(.button) {
  color: var(--rt-pwa-gold-2) !important;
  text-decoration-color: rgba(216,189,100,.45) !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .button:not(.wp-switch-editor):not(.insert-media):not(.ed_button):not(.wp-color-result),
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button:not(.wp-switch-editor):not(.mce-btn button):not(.button-link),
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="button"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="submit"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[class*="button"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[class*="btn"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[class*="btn"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[class*="danger"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[class*="danger"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[class*="delete"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[class*="delete"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[class*="remove"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[class*="remove"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] a[style*="background"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[style*="background"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[style*="background"] {
  border: 1px solid rgba(216,189,100,.62) !important;
  border-radius: 12px !important;
  background: rgba(184,148,45,.10) !important;
  color: var(--rt-pwa-gold-2) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-weight: 850 !important;
  min-height: 38px;
  padding: 8px 13px !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .button-primary,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button[type="submit"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="submit"] {
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold)) !important;
  color: #070604 !important;
  border-color: rgba(216,189,100,.72) !important;
  box-shadow: 0 10px 22px rgba(184,148,45,.16) !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .button:hover,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] button:hover,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="button"]:hover,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] table:not(.mceLayout),
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] table.widefat,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] .rt-table {
  border-radius: 16px !important;
  overflow: hidden;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] table:not(.mceLayout) tbody tr:hover td,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] table tbody tr:hover td {
  background: rgba(216,189,100,.055) !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="text"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="email"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="url"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="number"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="date"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="time"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input[type="search"],
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] select,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] textarea:not(.wp-editor-area) {
  outline: none !important;
}
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] input:focus,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] select:focus,
.rt-pwa-admin-part2-view[data-rt-pwa-admin-layout="D56E"] textarea:focus,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] input:focus,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] select:focus,
.rt-pwa-tournament-admin-matches[data-rt-pwa-admin-kampprogram="d56e-polish-finetune"] textarea:focus {
  border-color: rgba(255,221,120,.75) !important;
  box-shadow: 0 0 0 3px rgba(216,189,100,.14) !important;
}
@media (max-width: 760px) {
  .rt-pwa-admin-stable-d56e .rt-pwa-admin-stable-card {
    min-height: 118px !important;
    padding: 14px 13px !important;
  }
  .rt-pwa-view-shell-admin-portal .rt-pwa-view-header,
  .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-header,
  .rt-pwa-view-shell-mailudsendelse .rt-pwa-view-header,
  .rt-pwa-view-shell-kalenderstyring .rt-pwa-view-header,
  .rt-pwa-view-shell-notifikationer .rt-pwa-view-header,
  .rt-pwa-view-shell-dokumenter .rt-pwa-view-header,
  .rt-pwa-view-shell-nyheder .rt-pwa-view-header,
  .rt-pwa-view-shell-systemstatus .rt-pwa-view-header {
    margin-bottom: 10px !important;
  }
}

/* D56H HOTFIX: Admin startside er en områdeforside og skal ikke vise "Til App forside". */
.rt-pwa-shell .rt-pwa-view-shell-admin-portal > .rt-pwa-view-toolbar .rt-pwa-view-back,
.rt-pwa-shell .rt-pwa-view-shell[data-rt-pwa-view="admin-portal"] > .rt-pwa-view-toolbar .rt-pwa-view-back,
.rt-pwa-shell .rt-pwa-view-shell[data-rt-pwa-view="admin-startside"] > .rt-pwa-view-toolbar .rt-pwa-view-back {
  display: none !important;
}

/* D56H safety: hvis ældre Admin-startside markup ligger i cache, skjul kun den store dobbelte logout inde i admin-kortområdet. */
.rt-pwa-shell .rt-pwa-admin-stable .rt-pwa-admin-logout-link {
  display: none !important;
}


/* D58: Konkret funktion — driftsgenvejspanel på Admin startside. */
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(216,189,100,.36);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(216,189,100,.13), rgba(0,0,0,.52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 2px 4px;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-head strong {
  color: #ffe889;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-head span {
  color: rgba(248,241,221,.76);
  font-size: 13px;
  line-height: 1.35;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 11px;
  border: 1px solid rgba(248,223,134,.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25,23,17,.96), rgba(7,7,6,.94));
  color: #fff7df !important;
  text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action:hover,
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action:focus {
  transform: translateY(-1px);
  border-color: rgba(248,223,134,.85);
  background: linear-gradient(180deg, rgba(40,34,18,.98), rgba(10,10,8,.96));
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action span {
  color: #ffe889;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}
.rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action small {
  color: rgba(248,241,221,.68);
  font-size: 11.5px;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar {
    grid-template-columns: 1fr;
  }
  .rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-quickbar-actions {
    grid-template-columns: 1fr;
  }
  .rt-pwa-admin-stable-d58 .rt-pwa-admin-d58-action {
    min-height: 64px;
  }
}


/* D58A HOTFIX: Fjern Daglig drift/driftsgenvejspanel fra Admin startside.
   Bevarer de almindelige adminkort og skjuler evt. cachet D58-markup. */
.rt-pwa-admin-stable-d58a .rt-pwa-admin-d58-quickbar,
.rt-pwa-admin-stable .rt-pwa-admin-d58-quickbar {
  display: none !important;
}

/* D58B: PWA mobile shell width + fjern brugerrettet Åbn side-bokse.
   Kun layout/markup-polish; installflow, callbacks og kampflow ændres ikke. */
.rt-pwa-dedicated-inline-toolbar {
  display: none !important;
}
.rt-pwa-dedicated-inline-content[data-rt-pwa-d58b-direct-inline="1"] {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.rt-pwa-app-page .rt-pwa-shell,
  body.rt-pwa-standalone-page .rt-pwa-shell,
  .rt-pwa-shell {
    padding-left: max(3px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(3px, env(safe-area-inset-right, 0px)) !important;
  }

  .rt-pwa-shell .rt-pwa-panel,
  .rt-pwa-shell .rt-pwa-view-shell {
    margin-left: -3px !important;
    margin-right: -3px !important;
    max-width: calc(100% + 6px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-header {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .rt-pwa-shell .rt-pwa-shortcode-frame {
    padding-left: 2px !important;
    padding-right: 2px !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-shortcode-inner {
    padding-left: 3px !important;
    padding-right: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .rt-pwa-shell .rt-pwa-dedicated-inline-view {
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-dedicated-inline-content {
    padding: 6px 2px !important;
    border-radius: 16px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .rt-pwa-shell .rt-pwa-dedicated-inline-content-inner,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content-inner > *,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-section-wrap,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-section,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-container,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-column,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-widget,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-widget-wrap {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-container {
    width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-section,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-column,
  .rt-pwa-shell .rt-pwa-dedicated-inline-content .elementor-widget-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 430px) {
  .rt-pwa-shell {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .rt-pwa-shell .rt-pwa-panel,
  .rt-pwa-shell .rt-pwa-view-shell {
    margin-left: -4px !important;
    margin-right: -4px !important;
    max-width: calc(100% + 8px) !important;
  }
  .rt-pwa-shell .rt-pwa-dedicated-inline-content,
  .rt-pwa-shell .rt-pwa-shortcode-inner {
    border-radius: 14px !important;
  }
}

/* D58C: Admin mobil-tabeller/knapper.
   Scoped PWA-CSS only: horisontal scroll til adminlister og stabile Nyheder-knapper på mobil. */
@media (max-width: 760px) {
  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-shortcode-frame {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-shortcode-inner {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-bottom: 12px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches {
    min-width: 640px !important;
    max-width: none !important;
    width: max-content !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view {
    min-width: 600px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view table:not(.mceLayout),
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view table:not(.mceLayout),
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view table:not(.mceLayout),
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view table:not(.mceLayout),
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view table:not(.mceLayout),
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin table:not(.mceLayout) {
    min-width: 600px !important;
    width: max-content !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view th,
  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view td,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view th,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view td,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view th,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view td,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view th,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view td,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view th,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td {
    white-space: nowrap !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view th:last-child {
    min-width: 150px !important;
    width: 150px !important;
    white-space: normal !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child a,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child button,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child .button,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child input[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 126px !important;
    max-width: 126px !important;
    min-height: 38px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.15 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child a:last-child,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child button:last-child,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child .button:last-child,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view td:last-child input[type="submit"]:last-child {
    margin-bottom: 0 !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view input,
  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view select,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view input,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view select,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view input,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view select,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view input,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view select,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view input,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view select {
    max-width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .tablenav,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .search-box,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view form,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view form,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view form {
    max-width: none !important;
  }
}

@media (max-width: 430px) {
  .rt-pwa-shell .rt-pwa-view-shell-mailudsendelse .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-kalenderstyring .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-dokumenter .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches {
    min-width: 610px !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-nyheder .rt-pwa-admin-part2-view {
    min-width: 575px !important;
  }
}

/* D58D: Klubportal mobilvisning.
   Scoped layout-polish for club app views only. No callbacks, submit-flow, installflow or game logic changes. */
@media (max-width: 760px) {
  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold,
  .rt-pwa-shell .rt-pwa-view-shell-forbundets-dokumenter,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere {
    margin-left: -5px !important;
    margin-right: -5px !important;
    max-width: calc(100% + 10px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-forbundets-dokumenter .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-view-header {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-forbundets-dokumenter .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content {
    padding-left: 1px !important;
    padding-right: 1px !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content {
    border-left-color: rgba(232,199,98,.26) !important;
    border-right-color: rgba(232,199,98,.26) !important;
    border-radius: 14px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content-inner,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content-inner,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content-inner > *,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content-inner > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content .elementor-section,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content .elementor-container,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold .rt-pwa-dedicated-inline-content .elementor-widget-wrap,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content .elementor-section,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content .elementor-container,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest .rt-pwa-dedicated-inline-content .elementor-widget-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section {
    border-radius: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section > *,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section form,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section fieldset {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section input,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section select,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section table {
    min-width: 520px !important;
    width: max-content !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe,
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter .rt-pwa-shortcode-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding form,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="holdtil"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="wizard"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="step"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="box"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding input,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding select,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="kamp"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="match"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="tablet"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="rt-tablet"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="dagens"] {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe table {
    min-width: 560px !important;
    width: max-content !important;
    max-width: none !important;
  }
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe a,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe button,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter [class*="dokument"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter [class*="document"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter [class*="card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter [class*="box"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter table {
    min-width: 520px !important;
    width: max-content !important;
    max-width: none !important;
  }
}

@media (max-width: 430px) {
  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe,
  .rt-pwa-shell .rt-pwa-view-shell-klubbens-hold,
  .rt-pwa-shell .rt-pwa-view-shell-forbundets-dokumenter,
  .rt-pwa-shell .rt-pwa-view-shell-besked-protest,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere {
    margin-left: -7px !important;
    margin-right: -7px !important;
    max-width: calc(100% + 14px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-forbundets-dokumenter table {
    min-width: 500px !important;
  }
}

/* D58E: Vejledninger mobil polish.
   Scoped to built-in guide views. No guide content, callbacks, installflow or game flow changes. */
@media (max-width: 760px) {
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger {
    margin-left: -5px !important;
    margin-right: -5px !important;
    max-width: calc(100% + 10px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-view-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-v2,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-v2 {
    gap: 13px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero {
    padding: 16px 12px !important;
    border-radius: 18px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-badge,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-badge {
    margin-bottom: 9px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    letter-spacing: .06em !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero h3,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero h3 {
    margin-bottom: 8px !important;
    font-size: clamp(25px, 7.2vw, 32px) !important;
    line-height: 1.08 !important;
    letter-spacing: .01em !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero p,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero p {
    font-size: clamp(16px, 4.6vw, 18px) !important;
    line-height: 1.38 !important;
    max-width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card-grid,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card-grid {
    gap: 10px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card {
    grid-template-columns: 46px minmax(0, 1fr) 32px !important;
    gap: 10px !important;
    min-height: 76px !important;
    padding: 12px 10px !important;
    border-radius: 17px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-icon,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 23px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card strong,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card strong {
    min-width: 0 !important;
    font-size: clamp(18px, 5.2vw, 22px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card em,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card em {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    font-size: 22px !important;
    justify-self: end !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-sections,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-sections {
    gap: 12px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-section,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-section {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-number,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-main h4,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-main h4 {
    margin-top: 0 !important;
    font-size: clamp(18px, 5.4vw, 22px) !important;
    line-height: 1.15 !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-main p,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-main p,
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-main ol,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-main ol {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-note,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-note {
    padding: 13px 14px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 430px) {
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger {
    margin-left: -7px !important;
    margin-right: -7px !important;
    max-width: calc(100% + 14px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-v2,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-v2 {
    padding: 10px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card {
    grid-template-columns: 42px minmax(0, 1fr) 30px !important;
    min-height: 70px !important;
    padding: 10px 9px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-icon,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 21px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card strong,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card strong {
    font-size: clamp(17px, 5.4vw, 20px) !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-section,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-section {
    grid-template-columns: 1fr !important;
  }
}

/* D58F HOTFIX: Mobil overflow/height finretning efter test.
   Vejledninger: mindre og med højremargin. Spillere/Tilknytning: horisontal scroll.
   Holdtilmelding: mindre tom bund/efterscroll. Ingen callback-, installflow- eller kampflow-ændringer. */
@media (max-width: 760px) {
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-shortcode-inner {
    padding-left: 4px !important;
    padding-right: 8px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-v2,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-v2 {
    padding: 8px 8px 10px !important;
    gap: 9px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero {
    padding: 12px 10px !important;
    border-radius: 16px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero h3,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero h3 {
    font-size: clamp(21px, 6vw, 28px) !important;
    line-height: 1.05 !important;
    letter-spacing: .005em !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-hero p,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-hero p {
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.34 !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card {
    grid-template-columns: 38px minmax(0, 1fr) 28px !important;
    min-height: 62px !important;
    padding: 8px 8px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-icon,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card strong,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card strong {
    font-size: clamp(15px, 4.65vw, 18px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.01em !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card em,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card em {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    font-size: 18px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guide-section,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guide-section {
    padding: 11px 10px !important;
    border-radius: 15px !important;
    gap: 8px !important;
  }

  /* Spillere / tilknytning: tabeller/lister skal kunne scrolles vandret i stedet for at blive mast/skæve. */
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere table {
    display: table !important;
    min-width: 640px !important;
    width: max-content !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere thead { display: table-header-group !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere tbody { display: table-row-group !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere tr { display: table-row !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere th,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere td {
    display: table-cell !important;
    white-space: nowrap !important;
    min-width: 105px !important;
    vertical-align: middle !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere td::before,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere th::before {
    display: none !important;
    content: none !important;
  }

  /* Holdtilmelding: fjern kunstig høj bund i embed/PWA-frame. */
  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding .rt-pwa-shortcode-frame-deferred,
  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-holdtilmelding .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding .rt-pwa-shortcode-inner {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding form,
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="wizard"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="holdtil"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-holdtilmelding [class*="step"] {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 430px) {
  .rt-pwa-shell .rt-pwa-view-shell-vejledninger,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-v2,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-v2 {
    padding-left: 7px !important;
    padding-right: 8px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-vejledninger .rt-pwa-guides-card strong,
  .rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-guides-card strong {
    font-size: clamp(14px, 4.5vw, 17px) !important;
  }
}


/* D58G HOTFIX: Admin Turnering/Kampprogram mobil overflow.
   Kun layout/containment i PWA-wrapperen. Tournament callbacks og gemmeflow røres ikke. */
@media (max-width: 760px) {
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches .wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin {
    overflow-x: hidden !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-header,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-note {
    overflow: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block h1,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block h2,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches h1,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches h2 {
    font-size: clamp(30px, 9vw, 46px) !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-view-title-block p,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-note span,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches p,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches label {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-note {
    padding: 11px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches .wrap,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches form {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 12px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches form > *:not(table):not(.widefat):not(.wp-list-table),
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches .wrap > *:not(table):not(.widefat):not(.wp-list-table) {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches input:not([type="checkbox"]):not([type="radio"]),
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches select,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches > .wrap > form > select,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches > .wrap > form > input:not([type="checkbox"]):not([type="radio"]),
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches > .wrap > form > p select,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches > .wrap > form > p input:not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table.widefat,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches .wp-list-table {
    display: table !important;
    width: max-content !important;
    min-width: 1040px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table th,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table td {
    white-space: nowrap !important;
    min-width: 72px !important;
    vertical-align: middle !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table input:not([type="checkbox"]):not([type="radio"]),
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table select {
    width: auto !important;
    min-width: 118px !important;
    max-width: none !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table input[type="date"],
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table select[name*="date"],
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table select[name*="dato"] {
    min-width: 164px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table input[type="time"],
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table select[name*="time"],
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches table select[name*="tid"] {
    min-width: 118px !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches .button,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches button,
  .rt-pwa-shell .rt-pwa-view-shell-kampprogram-admin .rt-pwa-tournament-admin-matches input[type="submit"] {
    white-space: nowrap !important;
  }
}


/* D58H HOTFIX: Dagens kampe/Kampflytning/Spillere mobile overflow.
   Layout-only. Ingen callbacks, gemmeflow, installflow eller kampmotor ændres. */
@media (max-width: 760px) {
  /* Dagens kampe/kampprogram: undgå afklipning af udehold/knapper ved at give kort/tabeller egen horisontal scroll. */
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    max-width: 100% !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="tabletspil"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="dagens"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="match-list"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="kamp-list"] {
    max-width: none !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="match-card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="kamp-card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="matchrow"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="kamp-row"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="fixture"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe [class*="game-card"] {
    width: 620px !important;
    min-width: 620px !important;
    max-width: 620px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe table {
    display: table !important;
    width: max-content !important;
    min-width: 620px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe th,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe td {
    white-space: nowrap !important;
    vertical-align: middle !important;
  }

  /* Kampflytning: brug tight content-height og fjern kunstig bund/efterscroll. */
  .rt-pwa-shell .rt-pwa-view-shell-kampflytning .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-kampflytning .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning,
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning .rt-pwa-shortcode-inner {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning form,
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning [class*="kampflyt"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning [class*="request"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning [class*="card"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning [class*="box"] {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning table {
    display: table !important;
    min-width: 620px !important;
    width: max-content !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  /* Spillere / tilknytning: hard override af mobil-stablede tabeller, så der bliver vandret sidescroll. */
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-editor,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-list {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .wp-list-table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .widefat,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere [class*="player"] table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere [class*="spiller"] table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere [class*="klub"] table {
    display: table !important;
    width: max-content !important;
    min-width: 760px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere thead { display: table-header-group !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere tbody { display: table-row-group !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere tfoot { display: table-footer-group !important; }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere tr { display: table-row !important; }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere th,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere td {
    display: table-cell !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere td::before,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere th::before,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere [data-label]::before {
    display: none !important;
    content: none !important;
  }
}

/* D58I HOTFIX: Notifikationer + Spillere/Tilknytning mobil overflow.
   Layout-only. Ingen callbacks, submit-flow, installflow eller kampmotor ændres. */
@media (max-width: 760px) {
  /* Admin > Notifikationer: formular-/indstillingsfelter må ikke gøre hele siden bredere. */
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-shortcode-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view form,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .postbox,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .inside,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view fieldset,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .form-table,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .rt-card,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="settings"],
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="filter"],
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="notice"],
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="notification"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view input:not([type="checkbox"]):not([type="radio"]),
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view select,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view p,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .description,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view small,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view label {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    max-width: 100% !important;
  }

  /* Notifikationstabeller/lister skal stadig have egen horisontal scroll, ikke gøre formularsiden bred. */
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .wp-list-table,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .widefat,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view table:not(.form-table):not(.mceLayout) {
    display: table !important;
    width: max-content !important;
    min-width: 680px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .table-wrap,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .tablenav,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view .wp-list-table-wrapper,
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="table-wrap"],
  .rt-pwa-shell .rt-pwa-view-shell-notifikationer .rt-pwa-admin-part2-view [class*="list-wrap"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  /* Spillere/Tilknytning: ram både app-shell og den faktiske embed-side. */
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui.rtk-player-editor,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-container,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-card,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-table-wrap,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere [class*="table-wrap"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-table-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere [class*="table-wrap"],
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-card:has(.rt-table) {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scrollbar-gutter: stable !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere table.rtk-players-table,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere table.rt-table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere table.rtk-players-table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere table.rt-table {
    display: table !important;
    width: max-content !important;
    min-width: 860px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table thead,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table thead {
    display: table-header-group !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table tbody,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table tbody {
    display: table-row-group !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table tr,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table tr {
    display: table-row !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table th,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table td,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table th,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table td {
    display: table-cell !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-ui .rt-table td::before,
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-ui .rt-table td::before {
    display: none !important;
    content: none !important;
  }
}

/* D58J HOTFIX: Dagens kampe mobil sidescroll.
   Layout-only. Ingen Tabletspil View-kode, callbacks, installflow eller kampflow ændres. */
@media (max-width: 760px) {
  body.rt-pwa-embed-page:has(.rt-pwa-embed-root-dagens-kampe) {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scrollbar-gutter: stable !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-wrap,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-inner,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-table-frame {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scrollbar-gutter: stable !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-table {
    display: block !important;
    width: 720px !important;
    min-width: 720px !important;
    max-width: none !important;
    table-layout: auto !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-table tbody {
    width: 720px !important;
    min-width: 720px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody tr,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-table tbody tr {
    width: 680px !important;
    min-width: 680px !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody td,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-table tbody td {
    box-sizing: border-box !important;
  }

  /* Bevar læsbar højreside i card-layoutet, men lad brugeren scrolle hen til den. */
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-col-away,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-col-tavle,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-col-away,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-tabletspil-col-tavle {
    overflow: visible !important;
  }
}


/* D58S HOTFIX: Dagens kampe fuld bredde i PWA.
   D58K-D58R viste, at kampkort-layoutet nu er korrekt i Tabletspil View,
   men PWA/iframe-wrapperen og de ældre D58J sidescroll-regler kunne stadig
   holde Dagens kampe som en smal centreret kolonne. Denne regel er scoped til
   Dagens kampe og ændrer ikke installflow, callbacks, scorelogik eller kampflow. */
@media (max-width: 980px) {
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-deferred,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-view-iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-deferred,
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-view-iframe {
    min-width: 100% !important;
  }
}

@media (max-width: 980px) {
  body.rt-pwa-embed-page:has(.rt-pwa-embed-root-dagens-kampe) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-ui,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-pwa-shortcode-inner,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table-wrap,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table-frame {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-inner {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-header,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-card,
  body.rt-pwa-embed-page .rt-pwa-embed-root-dagens-kampe .rt-tabletspil-table tbody td {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* D58T HOTFIX: Dagens kampe direkte i app-shell uden iframe.
   Når rt_dagens_kampe renderes direkte, må PWA-rammen ikke arve iframe-/embed-
   begrænsninger eller gamle fixed-width side-scroll regler. Tabletspil View D58R
   styrer selve kampkortlayoutet; PWA giver kun fuld appbredde videre. */
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner-dagens-kampe{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-inner-dagens-kampe{
  border:0 !important;
  border-radius:0 !important;
  background:#000 !important;
}
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-ui.rt-tabletspil-wrap,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-ui.rt-tabletspil-wrap[data-view-version]{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-inner,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-header,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-table-wrap,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-table-frame,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-table,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-table tbody,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-table tbody tr,
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
.rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct .rt-tabletspil-inner{
  padding-left:clamp(6px, 1.4vw, 12px) !important;
  padding-right:clamp(6px, 1.4vw, 12px) !important;
}
@media (max-width:760px){
  .rt-pwa-shell .rt-pwa-view-shell-dagens-kampe .rt-pwa-shortcode-frame-direct{
    margin-left:-2px !important;
    margin-right:-2px !important;
    width:calc(100% + 4px) !important;
  }
}


/* D58AO: Top områdevalg under status-/logoutbar.
   Bevarer bundmenuen som fallback og ændrer ikke installerflowet. */
.rt-pwa-area-topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 2px 12px;
  margin: 2px 0 10px;
  scrollbar-width: thin;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.88));
  backdrop-filter: blur(12px);
}

.rt-pwa-area-topnav-link {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,148,45,.42);
  border-radius: 14px;
  padding: 10px 16px;
  background: rgba(184,148,45,.08);
  color: var(--rt-pwa-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.rt-pwa-area-topnav-link.is-active {
  color: #050505;
  border-color: rgba(216,189,100,.85);
  background: linear-gradient(180deg, var(--rt-pwa-gold-2), var(--rt-pwa-gold));
  box-shadow: 0 10px 24px rgba(184,148,45,.18);
}

.rt-pwa-area-topnav-link:focus-visible {
  outline: 2px solid var(--rt-pwa-gold-2);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .rt-pwa-area-topnav {
    gap: 6px;
    padding: 6px 1px 10px;
    margin-bottom: 8px;
  }
  .rt-pwa-area-topnav-link {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
}


/* D62I: PWA Adminvejledning tight-height fix.
   Målrettet kun admin-vejledninger, så generelle iframe-/PWA-min-height regler ikke
   reserverer lang sort bund, når Vejledninger-pluginets guides er foldet sammen. */
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger,
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-shortcode-frame,
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-view-iframe {
  min-height: 0 !important;
}
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-shortcode-frame,
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-shortcode-frame-deferred {
  height: auto !important;
  max-height: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}
.rt-pwa-shell .rt-pwa-view-shell-admin-vejledninger .rt-pwa-view-iframe[data-rt-pwa-height-mode="content-tight-admin-guides"] {
  height: 180px;
  min-height: 0 !important;
  display: block;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-admin-vejledninger,
body.rt-pwa-embed-page .rt-pwa-embed-root-admin-vejledninger .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-admin-vejledninger .rt-pwa-shortcode-frame-embed,
body.rt-pwa-embed-page .rt-pwa-embed-root-admin-vejledninger .rt-pwa-shortcode-inner {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-admin-vejledninger {
  height: auto !important;
}

/* D62K — Klubbens kampprogram */
.rt-pwa-club-program {
  display: grid;
  gap: 18px;
}
.rt-pwa-club-program-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(184, 148, 45, .42);
  border-radius: 14px;
  background: rgba(184, 148, 45, .10);
  color: #f7e8b2;
}
.rt-pwa-club-program-summary strong {
  font-size: 1.6rem;
  line-height: 1;
}
.rt-pwa-club-program h3 {
  margin: 6px 0 0;
  color: #f6d36b;
  font-size: 1.15rem;
}
.rt-pwa-club-program-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(184, 148, 45, .35);
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
}
.rt-pwa-club-program-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.rt-pwa-club-program-table th,
.rt-pwa-club-program-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
}
.rt-pwa-club-program-table th {
  color: #f6d36b;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(184, 148, 45, .10);
}
.rt-pwa-club-program-table td {
  color: #f7f2df;
}
.rt-pwa-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(184, 148, 45, .48);
  border-radius: 999px;
  color: #f6d36b !important;
  text-decoration: none;
  white-space: nowrap;
}
.rt-pwa-club-program-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed rgba(184, 148, 45, .35);
  border-radius: 14px;
  color: rgba(255, 255, 255, .78);
}
@media (max-width: 640px) {
  .rt-pwa-club-program-table { min-width: 0; }
  .rt-pwa-club-program-table,
  .rt-pwa-club-program-table thead,
  .rt-pwa-club-program-table tbody,
  .rt-pwa-club-program-table tr,
  .rt-pwa-club-program-table th,
  .rt-pwa-club-program-table td { display: block; }
  .rt-pwa-club-program-table thead { display: none; }
  .rt-pwa-club-program-table tr { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.10); }
  .rt-pwa-club-program-table td { padding: 4px 0; border-bottom: 0; }
  .rt-pwa-club-program-table td:nth-child(1) { color: #f6d36b; font-weight: 700; }
}


/* v0.1.120 D62M: Offentlig Kontakt forbundet formular. */
.rt-pwa-contact-form-wrap {
  background: rgba(8, 8, 8, .92);
  border: 1px solid rgba(184, 148, 45, .35);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}
.rt-pwa-contact-form {
  display: grid;
  gap: 14px;
}
.rt-pwa-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rt-pwa-contact-form label {
  color: #f4ecd0;
  font-weight: 800;
  display: grid;
  gap: 7px;
}
.rt-pwa-contact-form label span {
  color: #f6d36b;
}
.rt-pwa-contact-form input,
.rt-pwa-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(184,148,45,.4);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 12px 13px;
  font-size: 16px;
}
.rt-pwa-contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.rt-pwa-contact-submit {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  color: #1b1404;
  background: linear-gradient(135deg, #f0d27a, #b8942d);
  cursor: pointer;
  justify-self: start;
}
.rt-pwa-contact-notice {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.rt-pwa-contact-notice-success {
  border: 1px solid rgba(95, 210, 130, .45);
  background: rgba(95, 210, 130, .12);
  color: #e9ffe9;
}
.rt-pwa-contact-notice-error {
  border: 1px solid rgba(255, 120, 120, .45);
  background: rgba(255, 120, 120, .12);
  color: #ffecec;
}
.rt-pwa-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
@media (max-width: 720px) {
  .rt-pwa-contact-grid {
    grid-template-columns: 1fr;
  }
  .rt-pwa-contact-form-wrap {
    padding: 14px;
  }
}

/* v0.1.121 D62N: Offentlig Holdkaptajner intern Core-visning. */
.rt-pwa-public-data-card{
  border:1px solid rgba(218,181,74,.32);
  border-radius:18px;
  padding:18px;
  background:linear-gradient(135deg, rgba(29,26,12,.94), rgba(5,5,4,.96));
  box-shadow:0 18px 42px rgba(0,0,0,.26);
}
.rt-pwa-public-table-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch;}
.rt-pwa-public-table{width:100%; border-collapse:separate; border-spacing:0; min-width:940px; color:#f6eed0; table-layout:fixed;}
.rt-pwa-public-table th,
.rt-pwa-public-table td{padding:13px 14px; border-bottom:1px solid rgba(218,181,74,.14); text-align:left; vertical-align:middle; overflow-wrap:normal; word-break:normal;}
.rt-pwa-public-table th{font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color:#d8b84f; background:rgba(216,184,79,.08);}
.rt-pwa-public-table td{font-size:.95rem;}
.rt-pwa-public-table th:nth-child(1), .rt-pwa-public-table td:nth-child(1){width:15%;}
.rt-pwa-public-table th:nth-child(2), .rt-pwa-public-table td:nth-child(2){width:15%;}
.rt-pwa-public-table th:nth-child(3), .rt-pwa-public-table td:nth-child(3){width:13%;}
.rt-pwa-public-table th:nth-child(4), .rt-pwa-public-table td:nth-child(4){width:22%;}
.rt-pwa-public-table th:nth-child(5), .rt-pwa-public-table td:nth-child(5){width:17%; min-width:150px; white-space:nowrap;}
.rt-pwa-public-table th:nth-child(6), .rt-pwa-public-table td:nth-child(6){width:18%;}
.rt-pwa-public-table a{color:#f1d36c; font-weight:800; text-decoration:none;}
.rt-pwa-public-table a[href^=tel]{white-space:nowrap; display:inline-block;}
.rt-pwa-public-table a:hover{text-decoration:underline;}
@media (max-width: 760px){
  .rt-pwa-public-data-card{padding:12px; border-radius:16px;}
  .rt-pwa-public-table{min-width:820px;}
  .rt-pwa-public-table th,
  .rt-pwa-public-table td{padding:11px 10px; font-size:.9rem;}
  .rt-pwa-public-table th:nth-child(5), .rt-pwa-public-table td:nth-child(5){min-width:132px; white-space:nowrap;}
}


/* v0.1.123 D62R: Offentlig Spillesteder responsiv PWA-visning. */
.rt-pwa-public-venues{
  padding:18px;
  overflow:hidden;
}
.rt-pwa-public-venues .rtk-spillesteder{
  margin:0;
  max-width:100%;
  color:#f6eed0;
}
.rt-pwa-public-venues .rtk-card,
.rt-pwa-public-venues .rtk-spillesteder-filters-card,
.rt-pwa-public-venues .rtk-spillesteder-results-card{
  background:rgba(0,0,0,.16) !important;
  border:1px solid rgba(218,181,74,.22) !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
.rt-pwa-public-venues .rtk-spillesteder-filters-card{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  padding:16px !important;
}
.rt-pwa-public-venues .rtk-field label{
  color:#d8b84f !important;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.78rem;
}
.rt-pwa-public-venues .rtk-field select,
.rt-pwa-public-venues .rtk-field input[type="text"]{
  width:100%;
  min-height:44px;
  background:#050505 !important;
  color:#f6eed0 !important;
  border:1px solid rgba(218,181,74,.34) !important;
  border-radius:12px !important;
}
.rt-pwa-public-venues .rtk-spillesteder-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.rt-pwa-public-venues .rtk-spillesteder-table{
  width:100%;
  min-width:860px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
.rt-pwa-public-venues .rtk-spillesteder-table th,
.rt-pwa-public-venues .rtk-spillesteder-table td{
  padding:13px 14px !important;
  border-bottom:1px solid rgba(218,181,74,.14) !important;
  vertical-align:middle;
  color:#f6eed0 !important;
}
.rt-pwa-public-venues .rtk-spillesteder-table th{
  color:#d8b84f !important;
  background:rgba(216,184,79,.08) !important;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.82rem;
}
.rt-pwa-public-venues .rtk-spillesteder-table th:nth-child(1),
.rt-pwa-public-venues .rtk-spillesteder-table td:nth-child(1){width:24%;}
.rt-pwa-public-venues .rtk-spillesteder-table th:nth-child(2),
.rt-pwa-public-venues .rtk-spillesteder-table td:nth-child(2){width:52%;}
.rt-pwa-public-venues .rtk-spillesteder-table th:nth-child(3),
.rt-pwa-public-venues .rtk-spillesteder-table td:nth-child(3){width:24%;}
.rt-pwa-public-venues .rtk-col-club{
  color:#fff !important;
  font-weight:800;
}
.rt-pwa-public-venues .rtk-col-addr,
.rt-pwa-public-venues .rtk-maps-link,
.rt-pwa-public-venues .rtk-maps-label{
  white-space:nowrap;
}
.rt-pwa-public-venues .rtk-maps-link,
.rt-pwa-public-venues .rtk-mail-link,
.rt-pwa-public-venues .rtk-maps-link:visited,
.rt-pwa-public-venues .rtk-mail-link:visited{
  color:#f1d36c !important;
  font-weight:800;
  text-decoration:none;
}
.rt-pwa-public-venues .rtk-maps-link:hover,
.rt-pwa-public-venues .rtk-mail-link:hover{text-decoration:underline;}
.rt-pwa-public-venues .rtk-empty{
  color:rgba(246,238,208,.72) !important;
}
@media (max-width: 760px){
  .rt-pwa-public-venues{padding:12px; border-radius:16px;}
  .rt-pwa-public-venues .rtk-spillesteder-filters-card{grid-template-columns:1fr; padding:12px !important;}
  .rt-pwa-public-venues .rtk-spillesteder-table{min-width:720px;}
  .rt-pwa-public-venues .rtk-spillesteder-table th,
  .rt-pwa-public-venues .rtk-spillesteder-table td{padding:11px 10px !important; font-size:.9rem;}
}


/* v0.1.124 D62T: Spurter kompakt PWA-visning. */
body.rt-pwa-embed-page .rt-pwa-embed-root-spurter,
body.rt-pwa-embed-page .rt-pwa-embed-root-spurter .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-spurter .rt-pwa-shortcode-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-spurter .rt-pwa-d62t-hidden-top-spurt {
  display: none !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-spurter [class*="spurt"],
body.rt-pwa-embed-page .rt-pwa-embed-root-spurter [class*="stats"],
body.rt-pwa-embed-page .rt-pwa-embed-root-spurter [class*="board"] {
  max-width: 100% !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-spurter table {
  width: 100%;
}

@media (max-width: 820px) {
  body.rt-pwa-embed-page .rt-pwa-embed-root-spurter,
  body.rt-pwa-embed-page .rt-pwa-embed-root-spurter .rt-pwa-shortcode-frame,
  body.rt-pwa-embed-page .rt-pwa-embed-root-spurter .rt-pwa-shortcode-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* D63E — Spiller-dashboard direkte i app-shellen */
.rt-pwa-shortcode-frame-player-dashboard-direct {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.rt-pwa-player-dashboard-direct {
  width: 100%;
  max-width: 100%;
}
.rt-pwa-view-shell-spillerportal .rt-pwa-view-header {
  margin-bottom: 14px;
}
.rt-pwa-view-shell-spillerportal .rt-pwa-view-title-block h2 {
  color: var(--rt-pwa-gold, #d8bc60);
}
.rt-pwa-view-shell-spillerportal .rt-pwa-shortcode-inner {
  background: transparent;
}


/* D63Q1: Spillere Admin frontend — synlig tabel og stabil app-containment */
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  color:#fff !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rt-container,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin .rt-container{
  width:100% !important;
  max-width:1280px !important;
  min-width:0 !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table-wrap,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin .rtk-admin-players-table-wrap{
  overflow-x:auto !important;
  overflow-y:visible !important;
  max-width:100% !important;
  width:100% !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin table.rtk-admin-players-table,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin table.rtk-admin-players-table{
  display:table !important;
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
  table-layout:auto !important;
  color:#fff !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table thead,
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table tbody,
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table tr,
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table th,
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table td{
  visibility:visible !important;
  opacity:1 !important;
  text-indent:0 !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table th,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin .rtk-admin-players-table th{
  color:#d8bd64 !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table td,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin .rtk-admin-players-table td{
  color:#fff !important;
}
.rt-pwa-shell .rt-pwa-shortcode-inner .rt-ui.rtk-players-admin .rtk-admin-players-table a,
.rt-pwa-shell .rt-pwa-dedicated-inline-content .rt-ui.rtk-players-admin .rtk-admin-players-table a{
  color:#f8df86 !important;
}


/* D63Q2: Spillere Admin — tight height, ingen lang tom bund og kontrolleret topstart */
.rt-pwa-view-shell-spillere-admin{
  margin-bottom:calc(28px + env(safe-area-inset-bottom)) !important;
  overflow:visible !important;
}
.rt-pwa-view-shell-spillere-admin .rt-pwa-shortcode-frame-deferred,
.rt-pwa-view-shell-spillere-admin .rt-pwa-view-iframe{
  min-height:0 !important;
  height:auto;
}
.rt-pwa-view-shell-spillere-admin .rt-pwa-shortcode-frame-deferred{
  padding:0 !important;
  overflow:hidden !important;
  background:#000 !important;
}
.rt-pwa-view-shell-spillere-admin .rt-pwa-view-iframe{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  background:#000 !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin,
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-pwa-shortcode-inner{
  min-height:0 !important;
  height:auto !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-pwa-shortcode-frame-embed{
  padding:6px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-pwa-shortcode-inner{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  overflow-x:visible !important;
  overflow-y:hidden !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-ui.rtk-players-admin{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
body.rt-pwa-embed-page .rt-pwa-embed-root-spillere-admin .rt-ui.rtk-players-admin .rt-card:last-child{
  margin-bottom:0 !important;
}


/* D63X: Klubvisninger tight-height/bounce-fix.
   Kampflytning, Holdenes placering, Turneringsregler og Vejledninger må ikke få kunstig lang sort bund i PWA. */
.rt-pwa-shell .rt-pwa-view-shell-kampflytning,
.rt-pwa-shell .rt-pwa-view-shell-holdenes-placering,
.rt-pwa-shell .rt-pwa-view-shell-turneringsregler,
.rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger{
  min-height:0 !important;
  height:auto !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
  overflow-y:visible !important;
}

.rt-pwa-shell .rt-pwa-view-shell-kampflytning .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-kampflytning .rt-pwa-view-iframe,
.rt-pwa-shell .rt-pwa-view-shell-holdenes-placering .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-holdenes-placering .rt-pwa-view-iframe,
.rt-pwa-shell .rt-pwa-view-shell-turneringsregler .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-turneringsregler .rt-pwa-view-iframe,
.rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-klub-vejledninger .rt-pwa-view-iframe{
  min-height:0 !important;
  height:auto;
  max-height:none !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering,
body.rt-pwa-embed-page .rt-pwa-embed-root-turneringsregler,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-vejledninger,
body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-turneringsregler .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-vejledninger .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning .rt-pwa-shortcode-inner,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering .rt-pwa-shortcode-inner,
body.rt-pwa-embed-page .rt-pwa-embed-root-turneringsregler .rt-pwa-shortcode-inner,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-vejledninger .rt-pwa-shortcode-inner{
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
  overflow-y:visible !important;
  box-sizing:border-box !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering .rt-pwa-shortcode-frame,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering .rt-pwa-shortcode-inner{
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior-x:contain !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering table{
  display:table !important;
  min-width:720px !important;
  width:max-content !important;
  max-width:none !important;
  table-layout:auto !important;
}

body.rt-pwa-embed-page .rt-pwa-embed-root-turneringsregler .rt-pwa-shortcode-inner > *:last-child,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-vejledninger .rt-pwa-shortcode-inner > *:last-child,
body.rt-pwa-embed-page .rt-pwa-embed-root-kampflytning .rt-pwa-shortcode-inner > *:last-child,
body.rt-pwa-embed-page .rt-pwa-embed-root-holdenes-placering .rt-pwa-shortcode-inner > *:last-child{
  margin-bottom:0 !important;
}

/* D64A — Klubbens kampprogram som kampkort */
.rt-pwa-club-program-d64a {
  display: grid;
  gap: 22px;
  width: 100%;
}

.rt-pwa-club-program-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rt-pwa-club-program-stat {
  min-height: 96px;
  border: 1px solid rgba(216,189,100,.34);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 0, rgba(216,189,100,.22), transparent 46%),
    linear-gradient(145deg, rgba(184,148,45,.14), rgba(255,255,255,.035));
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.rt-pwa-club-program-stat strong {
  display: block;
  color: #f8df86;
  font-size: clamp(28px, 7vw, 46px);
  line-height: .95;
  letter-spacing: -.04em;
}

.rt-pwa-club-program-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255,247,222,.82);
  font-weight: 900;
}

.rt-pwa-club-program-section {
  border: 1px solid rgba(184,148,45,.22);
  border-radius: 26px;
  padding: 16px;
  background: rgba(0,0,0,.46);
}

.rt-pwa-club-program-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.rt-pwa-club-program-heading .rt-pwa-kicker {
  margin: 0 0 4px;
}

.rt-pwa-club-program-heading h3 {
  margin: 0;
  color: #f8df86;
  font-size: clamp(21px, 4vw, 32px);
  letter-spacing: -.02em;
}

.rt-pwa-club-program-heading > span {
  flex: 0 0 auto;
  border: 1px solid rgba(216,189,100,.38);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(184,148,45,.12);
  color: #f8df86;
  font-weight: 950;
  font-size: 12px;
  white-space: nowrap;
}

.rt-pwa-club-program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.rt-pwa-club-match-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(184,148,45,.30);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(13,12,9,.92);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.rt-pwa-club-match-card.is-played {
  border-color: rgba(216,189,100,.22);
  background:
    linear-gradient(180deg, rgba(184,148,45,.09), rgba(255,255,255,.015)),
    rgba(10,9,6,.90);
}

.rt-pwa-club-match-top,
.rt-pwa-club-match-meta,
.rt-pwa-club-match-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rt-pwa-club-match-top {
  justify-content: space-between;
}

.rt-pwa-club-match-date,
.rt-pwa-club-match-status,
.rt-pwa-club-match-meta span {
  border: 1px solid rgba(216,189,100,.32);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(184,148,45,.11);
  color: #f8df86;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.rt-pwa-club-match-date {
  background: linear-gradient(180deg, #e6c965, #aa8423);
  color: #080806;
  border-color: rgba(255,230,145,.72);
}

.rt-pwa-club-match-status {
  color: rgba(255,247,222,.9);
}

.rt-pwa-club-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.rt-pwa-club-match-team,
.rt-pwa-club-match-result,
.rt-pwa-club-match-own {
  border: 1px solid rgba(184,148,45,.20);
  border-radius: 18px;
  padding: 13px;
  background: rgba(0,0,0,.28);
}

.rt-pwa-club-match-team.is-own {
  border-color: rgba(216,189,100,.62);
  background: linear-gradient(145deg, rgba(216,189,100,.20), rgba(184,148,45,.06));
}

.rt-pwa-club-match-team small,
.rt-pwa-club-match-result small,
.rt-pwa-club-match-own small,
.rt-pwa-club-match-own span {
  display: block;
  color: rgba(255,247,222,.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rt-pwa-club-match-team strong,
.rt-pwa-club-match-result strong,
.rt-pwa-club-match-own strong {
  display: block;
  margin-top: 5px;
  color: #fff7df;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
}

.rt-pwa-club-match-result strong {
  color: #f8df86;
}

.rt-pwa-club-match-own span {
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,247,222,.72);
}

.rt-pwa-club-match-vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(216,189,100,.34);
  background: rgba(184,148,45,.10);
  color: #f8df86;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.rt-pwa-club-match-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.rt-pwa-club-match-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,230,145,.62);
  background: linear-gradient(180deg, #e8cc66, #a88221);
  color: #080806 !important;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(184,148,45,.16);
}

.rt-pwa-club-match-open:hover,
.rt-pwa-club-match-open:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.rt-pwa-club-program-empty {
  margin: 0;
  border: 1px dashed rgba(216,189,100,.28);
  border-radius: 18px;
  padding: 16px;
  color: rgba(255,247,222,.76);
  background: rgba(184,148,45,.06);
}

@media (max-width: 760px) {
  .rt-pwa-club-program-summary-grid {
    grid-template-columns: 1fr;
  }

  .rt-pwa-club-program-section {
    padding: 12px;
    border-radius: 22px;
  }

  .rt-pwa-club-program-cards {
    grid-template-columns: 1fr;
  }

  .rt-pwa-club-match-card {
    padding: 14px;
    border-radius: 22px;
  }

  .rt-pwa-club-match-teams {
    grid-template-columns: 1fr;
  }

  .rt-pwa-club-match-vs {
    width: auto;
    height: auto;
    min-height: 32px;
  }

  .rt-pwa-club-match-bottom {
    grid-template-columns: 1fr;
  }

  .rt-pwa-club-match-open {
    width: auto;
    justify-self: start;
  }
}

/* D64A3: Klubbens kampprogram er et rent overblik uden Åbn kamp-knapper. */
.rt-pwa-club-program-d64a3 .rt-pwa-club-match-bottom {
  grid-template-columns: 1fr;
}
.rt-pwa-club-program-d64a3 .rt-pwa-club-match-result {
  width: 100%;
}


/* D65L: Spillere / tilknytning — mobil-scroll til bunden af Ny spiller-formularen.
   Layout-only: ingen ændring af shortcodes, submit-flow, spillerdata, database eller invitation-mail. */
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-editor,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-pwa-player-tools,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-pwa-player-tools-section,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-pwa-player-tools-editor,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form{
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow-y:visible !important;
  box-sizing:border-box !important;
}

.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-shortcode-frame-deferred,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-view-iframe{
  min-height:0 !important;
  height:auto;
  max-height:none !important;
}

.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding-bottom:calc(120px + env(safe-area-inset-bottom)) !important;
  margin-bottom:0 !important;
}

.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form .rt-spillerportal-field,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form .rt-spillerportal-field,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form .rt-spillerportal-actions,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form .rt-spillerportal-actions{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form input,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form select,
.rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-spillerportal-form textarea,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form input,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form select,
body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere .rt-spillerportal-form textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

@media (max-width:760px){
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere{
    padding-bottom:calc(140px + env(safe-area-inset-bottom)) !important;
    margin-bottom:0 !important;
    overflow:visible !important;
  }
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-section,
  .rt-pwa-shell .rt-pwa-view-shell-klub-spillere .rt-pwa-player-tools-editor{
    padding-bottom:calc(90px + env(safe-area-inset-bottom)) !important;
  }
  body.rt-pwa-embed-page .rt-pwa-embed-root-klub-spillere{
    padding-bottom:calc(120px + env(safe-area-inset-bottom)) !important;
    overflow-y:visible !important;
  }
}


/* D66K — Spillerportal Overblik: prioriterede fuldbredde-sektioner i app-shellen */
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-overview-section,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-overview-section,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-overview-section {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-profile,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-profile,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-profile { order: 101 !important; }
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-next-match,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-next-match,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-next-match { order: 102 !important; }
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-teams,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-teams,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-teams { order: 103 !important; }
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-weekmail,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-weekmail,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-weekmail { order: 104 !important; }
.rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-overview-parent,
.rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-overview-parent,
.rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-overview-parent {
  align-items: stretch !important;
}
@media (max-width: 900px) {
  .rt-pwa-view-shell-spillerportal .rt-pwa-d66k-player-overview-section,
  .rt-pwa-embed-root-spillerportal .rt-pwa-d66k-player-overview-section,
  .rt-pwa-player-dashboard-direct .rt-pwa-d66k-player-overview-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* D68A — Klubbens kampprogram: kompakt tabel + divisionsfilter */
.rt-pwa-club-program-d68a {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-filterbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(216,189,100,.30);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(216,189,100,.10), rgba(255,255,255,.025));
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-filter label {
  width: 100%;
  color: #f8df86;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-filter select {
  min-width: min(330px, 68vw);
  min-height: 42px;
  border: 1px solid rgba(216,189,100,.55);
  border-radius: 10px;
  padding: 8px 36px 8px 12px;
  background: #11100c;
  color: #fff7de;
  font: inherit;
  font-weight: 800;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-filter button {
  min-height: 42px;
  border: 1px solid rgba(255,230,145,.72);
  border-radius: 10px;
  padding: 8px 18px;
  background: linear-gradient(180deg, #e6c965, #aa8423);
  color: #080806;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-counts {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: rgba(255,247,222,.78);
  font-size: 13px;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-counts strong {
  color: #f8df86;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table-section {
  overflow: hidden;
  border: 1px solid rgba(216,189,100,.28);
  border-radius: 18px;
  background: rgba(0,0,0,.38);
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table-section > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(216,189,100,.14), rgba(0,0,0,.08));
  color: #f8df86;
  font-weight: 950;
  user-select: none;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table-section > summary::-webkit-details-marker {
  display: none;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table-section > summary strong {
  min-width: 32px;
  border: 1px solid rgba(216,189,100,.40);
  border-radius: 999px;
  padding: 4px 9px;
  text-align: center;
  font-size: 12px;
  background: rgba(0,0,0,.28);
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-section-body {
  padding: 0;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: auto;
  color: #fff7de;
  font-size: 13px;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table th,
.rt-pwa-club-program-d68a .rt-pwa-club-program-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(216,189,100,.15);
  text-align: left;
  vertical-align: middle;
  line-height: 1.3;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #242014;
  color: #f8df86;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
  white-space: nowrap;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.025);
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-table tbody tr:hover {
  background: rgba(216,189,100,.08);
}

.rt-pwa-club-program-d68a .rt-pwa-program-date,
.rt-pwa-club-program-d68a .rt-pwa-program-time,
.rt-pwa-club-program-d68a .rt-pwa-program-round,
.rt-pwa-club-program-d68a .rt-pwa-program-result {
  white-space: nowrap;
}

.rt-pwa-club-program-d68a .rt-pwa-program-division {
  min-width: 130px;
  font-weight: 800;
}

.rt-pwa-club-program-d68a .rt-pwa-program-team {
  min-width: 160px;
  font-weight: 850;
}

.rt-pwa-club-program-d68a .rt-pwa-program-team.is-own {
  color: #f8df86;
  font-weight: 950;
}

.rt-pwa-club-program-d68a .rt-pwa-program-result {
  min-width: 92px;
  font-weight: 850;
}

.rt-pwa-club-program-d68a .rt-pwa-club-program-empty {
  margin: 0;
  padding: 16px;
  color: rgba(255,247,222,.72);
}

@media (max-width: 700px) {
  .rt-pwa-club-program-d68a {
    gap: 12px;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-filterbar {
    align-items: stretch;
    padding: 12px;
    border-radius: 14px;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-filter {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-filter label {
    grid-column: 1 / -1;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-filter select {
    width: 100%;
    min-width: 0;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-counts {
    width: 100%;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-table-section > summary {
    padding: 12px 14px;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-table {
    min-width: 780px;
    font-size: 12px;
  }
  .rt-pwa-club-program-d68a .rt-pwa-club-program-table th,
  .rt-pwa-club-program-d68a .rt-pwa-club-program-table td {
    padding: 9px 10px;
  }
}


/* PWA185 — Klubbens kampprogram: samlet/pr. hold PDF- og Excel-download */
.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(360px, 1.5fr);
  gap: 18px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(216,189,100,.34);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(216,189,100,.09), rgba(0,0,0,.28));
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-kicker,
.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form label {
  color: #f8df86;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-copy strong {
  color: #fff7de;
  font-size: 17px;
  line-height: 1.25;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-copy small {
  color: rgba(255,247,222,.70);
  line-height: 1.4;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 9px 12px;
  align-items: end;
  margin: 0;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form label {
  grid-column: 1 / -1;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(216,189,100,.55);
  border-radius: 10px;
  padding: 8px 36px 8px 12px;
  background: #11100c;
  color: #fff7de;
  font: inherit;
  font-weight: 800;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions button {
  min-height: 42px;
  border: 1px solid rgba(255,230,145,.72);
  border-radius: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #e6c965, #aa8423);
  color: #080806;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions button:hover,
.rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions button:focus-visible {
  filter: brightness(1.07);
  outline: 2px solid rgba(248,223,134,.55);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .rt-pwa-club-program-pwa185 .rt-pwa-club-program-export {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
  }
  .rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form {
    grid-template-columns: 1fr;
  }
  .rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-form label {
    grid-column: auto;
  }
  .rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions {
    width: 100%;
  }
  .rt-pwa-club-program-pwa185 .rt-pwa-club-program-export-actions button {
    flex: 1 1 135px;
  }
}


/* v0.1.156 D68B1: Besked / Protest robust resultatformat (D68B styling uændret). */
.rt-pwa-protest-form-wrap {
  background: rgba(8, 8, 8, .94);
  border: 1px solid rgba(184, 148, 45, .42);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}
.rt-pwa-protest-guidance {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(246, 211, 107, .52);
  border-radius: 15px;
  background: rgba(246, 211, 107, .10);
  color: #f4ecd0;
}
.rt-pwa-protest-guidance strong {
  display: block;
  color: #f6d36b;
  margin-bottom: 4px;
}
.rt-pwa-protest-guidance p {
  margin: 7px 0 0;
  line-height: 1.55;
}
.rt-pwa-protest-grid {
  display: grid;
  gap: 12px;
}
.rt-pwa-protest-grid-top {
  grid-template-columns: minmax(0, .9fr) minmax(150px, .55fr) minmax(0, 1.75fr);
}
.rt-pwa-protest-grid-contact {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr);
}
.rt-pwa-protest-grid-match {
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, .95fr) minmax(0, 1.05fr);
}
.rt-pwa-protest-form input[type="date"] {
  color-scheme: dark;
}
.rt-pwa-protest-form .rt-pwa-contact-submit {
  margin-top: 2px;
}
.rt-pwa-protest-form-wrap .rt-pwa-contact-notice ul {
  margin: 8px 0 0 20px;
}
@media (max-width: 900px) {
  .rt-pwa-protest-grid-top,
  .rt-pwa-protest-grid-contact,
  .rt-pwa-protest-grid-match {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .rt-pwa-protest-form-wrap {
    padding: 13px;
    border-radius: 14px;
  }
  .rt-pwa-protest-guidance {
    padding: 13px 14px;
  }
}

/* v0.1.163 APPINSTALL1A: App-installation på Klub-/Spillerportalens forsider. */
.rt-pwa-portal-install-card {
  --rt-pwa-gold: #b8942d;
  --rt-pwa-gold-2: #d8bd64;
  --rt-pwa-text: #f8f1dd;
  --rt-pwa-muted: rgba(248, 241, 221, 0.72);
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(216,189,100,.46);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(184,148,45,.13), rgba(255,255,255,.035));
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.rt-pwa-portal-install-card[hidden],
.rt-pwa-is-installed .rt-pwa-portal-install-card,
body.rt-pwa-is-installed .rt-pwa-portal-install-card {
  display: none !important;
}
.rt-pwa-portal-install-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,189,100,.42);
  border-radius: 14px;
  background: rgba(0,0,0,.26);
  color: var(--rt-pwa-gold-2);
}
.rt-pwa-portal-install-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rt-pwa-portal-install-copy {
  min-width: 0;
  display: block;
}
.rt-pwa-portal-install-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--rt-pwa-gold-2);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.rt-pwa-portal-install-copy strong {
  display: block;
  color: var(--rt-pwa-text);
  font-size: 17px;
  line-height: 1.25;
}
.rt-pwa-portal-install-copy small {
  display: block;
  margin-top: 3px;
  color: var(--rt-pwa-muted);
  font-size: 13px;
  line-height: 1.4;
}
.rt-pwa-portal-install-button {
  min-height: 42px !important;
  padding: 10px 15px !important;
  border-radius: 13px !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.rt-pwa-portal-install-message {
  grid-column: 2 / -1;
  margin-top: -2px;
  border-top: 1px solid rgba(216,189,100,.2);
  padding-top: 10px;
  color: #f0ead8;
  font-size: 13px;
  line-height: 1.45;
}
.rt-pwa-portal-install-message[hidden] {
  display: none !important;
}
.rt-pwa-portal-install-message[data-rt-pwa-install-message-type="ios"] {
  color: #f8df80;
}
@media (max-width: 720px) {
  .rt-pwa-portal-install-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px 12px;
    padding: 13px 14px;
  }
  .rt-pwa-portal-install-icon {
    width: 42px;
    height: 42px;
  }
  .rt-pwa-portal-install-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .rt-pwa-portal-install-message {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}


/* v0.1.165 PUSHREM1A – push opt-in card, scoped to Regions PWA. */
.rt-pwa-push-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin:14px 0;padding:15px 16px;border:1px solid rgba(184,148,45,.46);border-radius:18px;background:linear-gradient(145deg,rgba(184,148,45,.12),rgba(255,255,255,.035));color:#f6f0dc;box-sizing:border-box}.rt-pwa-push-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(184,148,45,.16);font-size:21px}.rt-pwa-push-copy{display:grid;gap:3px;min-width:0}.rt-pwa-push-kicker{color:#d7b75c;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:900}.rt-pwa-push-copy strong{font-size:16px;line-height:1.25}.rt-pwa-push-copy small{color:rgba(246,240,220,.72);line-height:1.35}.rt-pwa-push-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.rt-pwa-push-primary,.rt-pwa-push-secondary{appearance:none;border-radius:12px;padding:10px 12px;font:inherit;font-weight:850;cursor:pointer}.rt-pwa-push-primary{border:1px solid #d7b75c;background:#b8942d;color:#050505}.rt-pwa-push-secondary{border:1px solid rgba(215,183,92,.48);background:rgba(0,0,0,.22);color:#f6f0dc}.rt-pwa-push-primary[disabled],.rt-pwa-push-secondary[disabled]{opacity:.55;cursor:wait}.rt-pwa-push-message{grid-column:2/-1;font-size:12px;color:rgba(246,240,220,.75)}.rt-pwa-push-message[data-state="ok"]{color:#bfe3b5}.rt-pwa-push-message[data-state="error"]{color:#f0b1a8}@media(max-width:680px){.rt-pwa-push-card{grid-template-columns:auto minmax(0,1fr)}.rt-pwa-push-actions,.rt-pwa-push-message{grid-column:1/-1}.rt-pwa-push-actions{justify-content:stretch}.rt-pwa-push-primary,.rt-pwa-push-secondary{flex:1 1 auto}}

/* v0.1.167 PUSHREM2C: kaptajnens push-præferencer. */
.rt-pwa-push-preferences{margin:18px 0 0;padding:18px;border:1px solid rgba(184,148,45,.34);border-radius:18px;background:#0b0b0e;color:#f6f0dc;box-sizing:border-box}.rt-pwa-push-preferences-head{display:grid;gap:4px;margin-bottom:14px}.rt-pwa-push-preferences-head>span{color:#d7b75c;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:900}.rt-pwa-push-preferences-head>strong{font-size:18px}.rt-pwa-push-preferences-head>small{color:rgba(246,240,220,.7);line-height:1.4}.rt-pwa-push-pref-profile{padding:14px 0;border-top:1px solid rgba(255,255,255,.08)}.rt-pwa-push-pref-profile:first-child{border-top:0;padding-top:0}.rt-pwa-push-pref-team{display:grid;gap:2px;margin-bottom:10px}.rt-pwa-push-pref-team strong{color:#fff}.rt-pwa-push-pref-team span{font-size:12px;color:rgba(246,240,220,.68)}.rt-pwa-push-preferences-fields{display:grid;gap:8px}.rt-pwa-push-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.035);cursor:pointer}.rt-pwa-push-toggle span{min-width:0}.rt-pwa-push-toggle strong{font-size:14px}.rt-pwa-push-toggle input{position:absolute;opacity:0;pointer-events:none}.rt-pwa-push-toggle i{position:relative;flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:#39393d;border:1px solid rgba(255,255,255,.15);transition:.18s}.rt-pwa-push-toggle i:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.18s}.rt-pwa-push-toggle input:checked+i{background:#b8942d}.rt-pwa-push-toggle input:checked+i:after{transform:translateX(18px);background:#080808}.rt-pwa-push-preferences-actions{display:flex;justify-content:flex-end;margin-top:12px}.rt-pwa-push-preferences>.rt-pwa-push-message{margin-top:10px;grid-column:auto}.rt-pwa-push-pref-profile>.rt-pwa-push-message{margin-top:8px}.rt-pwa-push-preferences [hidden]{display:none!important}@media(max-width:680px){.rt-pwa-push-preferences{padding:14px}.rt-pwa-push-preferences-actions .rt-pwa-push-primary{width:100%}}

/* PUSHREM2E – konkret Kampflytning åbnet fra push. Scoped til embed-visningen. */
.rt-pwa-embed-root-kampflytning .rt-pwa-push-deeplink-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 148, 45, .58);
  border-radius: 14px;
  background: rgba(184, 148, 45, .08);
  box-sizing: border-box;
}
.rt-pwa-embed-root-kampflytning .rt-pwa-push-deeplink-note strong,
.rt-pwa-embed-root-kampflytning .rt-pwa-push-deeplink-note span {
  display: block;
}
.rt-pwa-embed-root-kampflytning .rt-pwa-push-deeplink-note strong {
  margin-bottom: 4px;
  color: #f2d56a;
}
.rt-pwa-embed-root-kampflytning .rt-pwa-push-deeplink-note span {
  line-height: 1.45;
}
.rt-pwa-embed-root-kampflytning .rt-pwa-push-focus {
  outline: 2px solid rgba(184, 148, 45, .95) !important;
  outline-offset: 3px !important;
  border-radius: 10px;
  scroll-margin-top: 18px;
  scroll-margin-bottom: 18px;
}


/* PUSHREM2F – kompakt push-historik. */
.rt-pwa-push-history{margin:18px 0 0;color:#f6f0dc}.rt-pwa-push-history-list{display:grid;gap:10px}.rt-pwa-push-history-item{position:relative;padding:14px 15px;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:#0b0b0e;box-sizing:border-box}.rt-pwa-push-history-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:11px}.rt-pwa-push-history-meta span{color:#d7b75c;text-transform:uppercase;letter-spacing:.05em;font-weight:900}.rt-pwa-push-history-meta time{color:rgba(246,240,220,.56);white-space:nowrap}.rt-pwa-push-history-item>strong{display:block;color:#fff;font-size:15px;line-height:1.3}.rt-pwa-push-history-item>p{margin:6px 0 0;color:rgba(246,240,220,.76);font-size:13px;line-height:1.45}.rt-pwa-push-history-open{display:inline-flex;margin-top:11px;padding:8px 11px;border:1px solid rgba(215,183,92,.48);border-radius:10px;color:#f6f0dc!important;text-decoration:none!important;font-size:12px;font-weight:850;background:rgba(184,148,45,.11)}.rt-pwa-push-history-open:hover,.rt-pwa-push-history-open:focus{background:rgba(184,148,45,.2)}.rt-pwa-push-history>.rt-pwa-push-message{margin-top:12px;grid-column:auto}.rt-pwa-push-page-links{margin:18px 0 0}.rt-pwa-push-page-links a{color:#e5c96f;text-decoration:none;font-weight:800}@media(max-width:520px){.rt-pwa-push-history-meta{align-items:flex-start;flex-direction:column;gap:3px}.rt-pwa-push-history-open{width:100%;justify-content:center;box-sizing:border-box}}


/* v0.1.174 PUSHREM2K – push-knapper låses til portalens sort/guld-design.
   Høj specificitet + !important er bevidst: direkte Klubportal kan have tema/Elementor
   button-regler, som ellers overtager farve, border og baggrund. */
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary,
.rt-pwa-push-preferences .rt-pwa-push-preferences-actions button.rt-pwa-push-primary {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 15px !important;
  border: 1px solid #d8bd64 !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #e2c965 0%, #b8942d 100%) !important;
  background-color: #b8942d !important;
  background-image: linear-gradient(180deg, #e2c965 0%, #b8942d 100%) !important;
  color: #090909 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 10px rgba(0,0,0,.22) !important;
  cursor: pointer !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary:hover,
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary:focus-visible,
.rt-pwa-push-preferences .rt-pwa-push-preferences-actions button.rt-pwa-push-primary:hover,
.rt-pwa-push-preferences .rt-pwa-push-preferences-actions button.rt-pwa-push-primary:focus-visible {
  border-color: #f2db7d !important;
  background: linear-gradient(180deg, #efd979 0%, #c7a43a 100%) !important;
  background-color: #c7a43a !important;
  background-image: linear-gradient(180deg, #efd979 0%, #c7a43a 100%) !important;
  color: #050505 !important;
  filter: brightness(1.03) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 5px 14px rgba(0,0,0,.28) !important;
  outline: none !important;
}
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary:focus-visible,
.rt-pwa-push-preferences .rt-pwa-push-preferences-actions button.rt-pwa-push-primary:focus-visible {
  outline: 2px solid rgba(242,219,125,.9) !important;
  outline-offset: 3px !important;
}
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary[data-rt-pwa-push-enable]::before {
  content: "🔔";
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-secondary {
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(216,189,100,.55) !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.32) !important;
  background-image: none !important;
  color: #f6f0dc !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-secondary:hover,
.rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-secondary:focus-visible {
  border-color: rgba(239,217,121,.9) !important;
  background: rgba(184,148,45,.16) !important;
  color: #fff7df !important;
  outline: none !important;
}
.rt-pwa-push-card .rt-pwa-push-actions button[disabled] {
  opacity: .55 !important;
  transform: none !important;
  cursor: wait !important;
}
@media (max-width: 680px) {
  .rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-primary,
  .rt-pwa-push-card .rt-pwa-push-actions button.rt-pwa-push-secondary {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}


/* v0.1.177 PUSHREM2N – tydelig navigation på push-historik/-indstillinger. */
.rt-pwa-captain-push-page .rt-pwa-push-page-topnav {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}
.rt-pwa-captain-push-page .rt-pwa-push-page-back,
.rt-pwa-captain-push-page .rt-pwa-push-page-links a {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 13px;
  border: 1px solid rgba(216,189,100,.55);
  border-radius: 12px;
  background: rgba(0,0,0,.32);
  color: #f6f0dc !important;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.rt-pwa-captain-push-page .rt-pwa-push-page-back:hover,
.rt-pwa-captain-push-page .rt-pwa-push-page-back:focus-visible,
.rt-pwa-captain-push-page .rt-pwa-push-page-links a:hover,
.rt-pwa-captain-push-page .rt-pwa-push-page-links a:focus-visible {
  border-color: rgba(239,217,121,.9);
  background: rgba(184,148,45,.16);
  color: #fff7df !important;
  outline: none;
}
.rt-pwa-captain-push-page .rt-pwa-push-page-back:focus-visible,
.rt-pwa-captain-push-page .rt-pwa-push-page-links a:focus-visible {
  outline: 2px solid rgba(242,219,125,.82);
  outline-offset: 3px;
}
.rt-pwa-captain-push-page .rt-pwa-push-page-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
@media (max-width: 600px) {
  .rt-pwa-captain-push-page .rt-pwa-push-page-topnav,
  .rt-pwa-captain-push-page .rt-pwa-push-page-links {
    display: grid;
    grid-template-columns: 1fr;
  }
  .rt-pwa-captain-push-page .rt-pwa-push-page-back,
  .rt-pwa-captain-push-page .rt-pwa-push-page-links a {
    width: 100%;
  }
}


/* ADMINSTAT1F4 – native Admin Statistik route */
.rt-pwa-view-shell-admin_statistik{min-height:0!important;height:auto!important;overflow:visible!important}
.rt-pwa-view-shell-admin_statistik>.rt-pwa-view-toolbar{margin-bottom:10px!important}
.rt-pwa-view-shell-admin_statistik .rt-adminstat-pwa-native{width:100%;min-height:0!important;height:auto!important}
/* PWA183 – Turnerings Arkiv ligger som næstsidste admin-kort, direkte over Systemstatus. */
.rt-pwa-admin-stable-card[data-rt-pwa-admin-link="admin_statistik"]{order:90}
/* ADMINTEST1A – Testspil placeres som admin-værktøj direkte før Turnerings Arkiv/Systemstatus. */
.rt-pwa-admin-stable-card[data-rt-pwa-admin-link="testspil"]{order:97}
.rt-pwa-admin-stable-card[data-rt-pwa-admin-link="turneringsarkiv"]{order:98}
.rt-pwa-admin-stable-card[data-rt-pwa-admin-link="systemstatus"]{order:99}
\n\n/* v0.1.190 PWA190: Apple/iPad Installation Assistant. */\n.rt-pwa-ios-guide-open { overflow: hidden !important; }\n.rt-pwa-ios-guide-modal[hidden] { display: none !important; }\n.rt-pwa-ios-guide-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 18px; box-sizing: border-box; }\n.rt-pwa-ios-guide-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }\n.rt-pwa-ios-guide-panel { position: relative; z-index: 1; width: min(620px, 100%); max-height: min(820px, calc(100vh - 36px)); overflow: auto; box-sizing: border-box; border: 1px solid rgba(216,189,100,.58); border-radius: 22px; padding: 22px; background: linear-gradient(145deg,#111114,#08080a); color: #f8f1dd; box-shadow: 0 24px 70px rgba(0,0,0,.58); -webkit-overflow-scrolling: touch; }\n.rt-pwa-ios-guide-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(216,189,100,.38); border-radius: 50%; background: rgba(255,255,255,.055); color: #f8df80; font: 700 27px/1 Arial,sans-serif; cursor: pointer; }\n.rt-pwa-ios-guide-kicker { display: block; margin: 0 48px 5px 0; color: #d8bd64; font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }\n.rt-pwa-ios-guide-panel h2 { margin: 0 48px 8px 0; color: #fff8e4; font-size: clamp(22px,4vw,30px); line-height: 1.13; letter-spacing: -.02em; }\n.rt-pwa-ios-guide-intro { margin: 0 0 18px; border: 1px solid rgba(216,189,100,.22); border-radius: 13px; padding: 11px 13px; background: rgba(184,148,45,.08); color: rgba(248,241,221,.83); font-size: 14px; line-height: 1.45; }\n.rt-pwa-ios-guide-intro[data-browser-state="other"] { border-color: rgba(216,189,100,.48); color: #f8df80; }\n.rt-pwa-ios-guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }\n.rt-pwa-ios-guide-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; align-items: start; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; padding: 12px; background: rgba(255,255,255,.035); }\n.rt-pwa-ios-guide-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #b8942d; color: #080808; font-weight: 900; font-size: 14px; }\n.rt-pwa-ios-guide-steps strong { display: block; margin: 1px 0 3px; color: #fff8e4; font-size: 15px; line-height: 1.3; }\n.rt-pwa-ios-guide-steps small { display: block; color: rgba(248,241,221,.72); font-size: 13px; line-height: 1.4; }\n.rt-pwa-ios-share-icon { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; border: 1px solid rgba(216,189,100,.34); border-radius: 10px; padding: 6px 10px; color: #f8df80; background: rgba(0,0,0,.24); font-size: 12px; font-weight: 800; }\n.rt-pwa-ios-share-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }\n.rt-pwa-ios-guide-done { width: 100%; min-height: 44px; margin-top: 16px; border: 1px solid rgba(232,199,98,.68); border-radius: 13px; background: linear-gradient(180deg,#e2c15e,#a98322); color: #050505; font: inherit; font-weight: 900; cursor: pointer; }\n@media (max-width: 620px) { .rt-pwa-ios-guide-modal { padding: 10px; align-items: end; } .rt-pwa-ios-guide-panel { max-height: calc(100vh - 20px); border-radius: 20px 20px 14px 14px; padding: 19px 15px 15px; } .rt-pwa-ios-guide-close { top: 10px; right: 10px; } .rt-pwa-ios-guide-panel h2 { font-size: 22px; } }\n

/* v0.1.195 ADMINSTATCORR1E: Spillerhistorik har flere dynamiske admin-korrektionsblokke.
 * Undgå den globale D40/D41 minimumshøjde og ekstra 120px bundreserve kun på denne view. */
.rt-pwa-shell .rt-pwa-view-shell-spillerhistorik {
  margin-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  padding-bottom: 0 !important;
}
.rt-pwa-shell .rt-pwa-view-shell-spillerhistorik .rt-pwa-shortcode-frame-deferred {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
}
.rt-pwa-shell .rt-pwa-view-shell-spillerhistorik .rt-pwa-view-iframe {
  min-height: 0 !important;
  max-height: none !important;
  margin-bottom: 0 !important;
}
