/* =========================================================
   VM_2026 APP CSS
   Based on the existing Bentsen/Fm app layout direction.
   Brandfarver: #5b2c83 #662c7e #861f68 #b81567 #db0062 #e72f61
   ========================================================= */

:root{
  --brand-1:#5b2c83;
  --brand-2:#662c7e;
  --brand-3:#861f68;
  --brand-4:#b81567;
  --brand-5:#db0062;
  --brand-6:#e72f61;
  --gradient:linear-gradient(90deg,#5b2c83 0%,#861f68 45%,#e72f61 100%);
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#d1d5db;
  --radius:14px;
  --pad:14px;
  --control-h:44px;
  --control-radius:12px;
  --control-border:1px solid rgba(15,23,42,0.22);
  --control-bg:#fff;
  --control-font:18px;
  --control-gap:8px;
  --control-pad-x:18px;
}

*{ box-sizing:border-box; }
html,body{ min-height:100%; }

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:#fff;
  color:var(--text);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.app-shell{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:#fff;
}

.content{
  flex:1 1 auto;
  min-height:0;
  padding:var(--pad);
  background:var(--bg);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  padding:calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  color:#fff;
  background:var(--gradient);
}

.topbar-line1,
.topbar-line2{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.topbar-line2{
  margin-top:10px;
  align-items:center;
}

.topbar-appname{
  font-weight:900;
  letter-spacing:.5px;
  font-size:24px;
  line-height:1;
  color:#fff;
  text-decoration:none;
}

.topbar-appname:hover{ text-decoration:none; }

.topbar-user{
  font-size:14px;
  opacity:.95;
  white-space:nowrap;
  text-align:right;
}

.topbar-user a{
  color:#fff;
  text-decoration:underline;
}

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
  justify-content:center;
  text-align:center;
}

.topnav-item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14);
  font-size:14px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}

.topnav-item:hover{
  text-decoration:none;
  background:rgba(255,255,255,.24);
}

.topnav-item.active{
  background:#fff;
  color:var(--brand-1);
  border-color:#fff;
}

.topbar-location{
  font-weight:800;
  font-size:20px;
  line-height:1;
  letter-spacing:.2px;
}

.topbar-count-pill{
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.28);
  padding:5px 12px;
  font-size:16px;
  border-radius:999px;
  font-weight:800;
  min-width:44px;
  text-align:center;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.04);
  padding:14px;
  margin-bottom:10px;
}

.card-title{
  font-size:32px;
  font-weight:900;
  margin:0 0 10px;
  letter-spacing:.2px;
}

.card-subtitle{
  margin:0 0 12px;
  color:var(--muted);
  font-weight:650;
  letter-spacing:.6px;
  font-size:14px;
  text-transform:uppercase;
}

.grid{
  display:grid;
  gap:10px;
}

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

.list-card{ padding:0; overflow:hidden; }

.list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.list-row:last-child{ border-bottom:0; }

.list-main{ min-width:0; flex:1 1 auto; }

.list-title{
  min-width:0;
  font-size:18px;
  line-height:1.15;
  font-weight:800;
  color:#0d1733;
  word-break:break-word;
}

.list-meta{
  margin-top:5px;
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  color:var(--muted);
}

.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  border:1px solid transparent;
  background:#f1f5f9;
  border-color:#cbd5e1;
  color:#64748b;
}

.pill-ok{ background:rgba(111,141,103,.14); border-color:rgba(111,141,103,.35); color:#365a32; }
.pill-warn{ background:rgba(227,189,51,.18); border-color:rgba(227,189,51,.45); color:#7a5d00; }
.pill-danger{ background:rgba(231,47,97,.12); border-color:rgba(231,47,97,.35); color:#b81567; }

.point-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:28px;
  padding:2px 8px;
  border:2px solid #000;
  font-size:18px;
  line-height:1;
  font-weight:700;
}

.point-badge-10{
  background:#000;
  color:#fff;
  font-weight:900;
}

.point-badge-7{
  background:#f00;
  color:#fff;
}

.point-badge-5{
  background:#76933c;
  color:#fff;
}

.point-badge-2{
  background:#eeedad;
  color:#000;
}

.point-badge-0{
  background:#fff;
  color:#f00;
  font-weight:900;
}

.placement-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:160px;
  min-height:38px;
  padding:4px 14px;
  color:#fff;
  font-size:26px;
  font-weight:900;
  line-height:1;
}

.placement-badge-1{ background:#000; }
.placement-badge-2{ background:#f00; }
.placement-badge-3{ background:#76933c; }

.field-input,
.field-select,
.field-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea{
  width:100%;
  min-height:var(--control-h);
  border-radius:var(--control-radius);
  border:var(--control-border);
  background:var(--control-bg);
  color:var(--text);
  font-size:var(--control-font);
  font-family:inherit;
  font-weight:800;
  box-sizing:border-box;
  padding:0 var(--control-pad-x);
  outline:none;
}

textarea,
.field-textarea{
  min-height:8.2em;
  padding:14px var(--control-pad-x);
  line-height:1.4;
  resize:vertical;
}

label{
  display:inline-block;
  margin-bottom:4px;
  font-size:14px;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.4px;
}

input[type="checkbox"]{
  width:20px;
  height:20px;
  vertical-align:middle;
  margin-right:6px;
}

.btn,
button,
input[type="submit"]{
  -webkit-appearance:none;
  appearance:none;
  min-height:var(--control-h);
  border-radius:var(--control-radius);
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 var(--control-pad-x);
  font-size:var(--control-font);
  font-weight:900;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  border:0;
  box-shadow:none;
  background:var(--brand-5);
  color:#fff;
}

.btn-primary{ background:var(--brand-5); color:#fff; }
.btn-ghost{ background:#fff; color:var(--text); border:var(--control-border); }
.btn-brand2{ background:var(--brand-2); color:#fff; }
.btn-brand3{ background:var(--brand-3); color:#fff; }

.form-actions{
  display:grid;
  gap:8px;
  margin-top:8px;
}

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.12);
  background:#fff;
  font-weight:700;
  white-space:pre-line;
  margin-bottom:10px;
}

.alert-error{
  border:1px solid rgba(220,38,38,0.35);
  background:rgba(220,38,38,0.06);
  color:#b91c1c;
}

.alert-success{
  border:1px solid rgba(111,141,103,0.35);
  background:rgba(111,141,103,0.08);
  color:#365a32;
}

.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th,td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  text-align:left;
  vertical-align:middle;
}

th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  font-weight:900;
}

td{ font-size:15px; font-weight:650; }

.muted{ color:var(--muted); }
.hr{ height:1px; background:var(--line); margin:14px 0; }

@media (max-width:720px){
  .grid-2{ grid-template-columns:1fr; }
  .card-title{ font-size:28px; }
  .topbar-user{ font-size:12px; }
  td,th{ white-space:nowrap; }
}


.mobile-menu{
  display:none;
  margin-top:12px;
}

.mobile-menu summary{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.mobile-menu[open] summary{
  background:#fff;
  color:var(--brand-1);
}

.topnav-mobile{
  margin-top:8px;
  justify-content:center;
}

.table-wrap{
  position:relative;
  box-shadow:inset -18px 0 18px -18px rgba(15,23,42,.45);
}

.table-wrap::before{
  display:none;
  content:"";
  position:sticky;
  left:0;
  top:0;
  z-index:3;
  width:max-content;
  margin:0 0 8px;
  display:none;
}

@media (max-width:720px){
  .topnav-desktop{
    display:none;
  }

  .mobile-menu{
    display:block;
  }

  .topnav-mobile{
    display:flex;
    flex-wrap:wrap;
    overflow:visible;
    padding-bottom:0;
  }

  .topbar-line2{
    margin-top:8px;
    justify-content:center;
    text-align:center;
  }

  .topbar-location{
    width:100%;
    font-size:16px;
    line-height:1.2;
  }

  .topbar-count-pill{
    display:none;
  }

  .table-wrap::before{
    display:block;
  }
}


/* Mobile navigation fix */
.mobile-menu{
  display:none !important;
}

.topnav-desktop{
  display:flex !important;
}

@media (max-width:720px){
  .mobile-menu{
    display:block !important;
  }

  .topnav-desktop{
    display:none !important;
  }

  .topbar-count-pill{
    display:none !important;
  }

  .topbar-line2{
    justify-content:center;
    text-align:center;
  }

  .topbar-location{
    width:100%;
    font-size:16px;
    line-height:1.2;
  }
}


.deadline-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 14px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
}

.deadline-badge-open{
  background:#2f7d32;
  color:#fff;
}

.deadline-badge-warning{
  background:#f2c230;
  color:#000;
}

.deadline-badge-closed{
  background:#c62828;
  color:#fff;
}

.deadline-meta-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 12px;
}


.deadline-badge-not-open{
  background:#64748b;
  color:#fff;
}


/* Compact mobile menu */
.mobile-menu summary{
  min-height:42px;
  justify-content:space-between;
  padding:0 18px;
}

.mobile-menu summary::after{
  content:"⌄";
  font-size:22px;
  font-weight:900;
  line-height:1;
}

.mobile-menu[open] summary::after{
  content:"⌃";
}

@media (max-width:720px){
  .topbar-line2{
    display:none;
  }

  .mobile-menu{
    margin-top:8px;
  }

  .mobile-menu summary{
    font-size:18px;
  }
}


.quick-select{
  max-width:360px;
  font-weight:900;
}


.rules-point-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0;
}

.rules-point-text{
  font-weight:800;
}


.rules-label{
  background:#fff;
  border-radius:22px;
  padding:22px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  font-size:18px;
  font-weight:750;
  line-height:1.55;
}

.rules-label p{
  margin:0 0 12px;
}

.rules-label p:last-child{
  margin-bottom:0;
}

.rules-admin-textarea{
  min-height:360px;
  font-size:16px;
  font-weight:700;
  line-height:1.45;
}


.bonus-question-card{
  margin:0;
}


.link-button{
  display:inline;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
}

.link-button:hover{
  text-decoration:none;
}

.topnav-pool-select{
  width:auto;
  min-width:180px;
  max-width:260px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14);
  color:#fff;
  font-weight:900;
}

.topnav-pool-select option{
  color:#111827;
}

@media (max-width:720px){
  .topnav-pool-select{
    width:100%;
    max-width:none;
    background:rgba(255,255,255,.18);
  }
}

/* Prediction overview: side-by-side coupon table */
.prediction-overview-table{
  border-collapse:collapse;
  width:100%;
}

.prediction-overview-table th,
.prediction-overview-table td{
  border:1px solid #d1d5db;
  text-align:center;
  vertical-align:middle;
}

.prediction-overview-table th{
  border-bottom:2px solid #9ca3af;
}

.prediction-overview-table td{
  border-bottom:1px solid #d1d5db;
}

.prediction-overview-table .point-badge{
  margin-top:4px;
  min-width:30px;
  min-height:24px;
  font-size:16px;
  padding:1px 7px;
}

/* Prediction overview: collapsed rounds and point labels */
.prediction-overview-card{
  padding-top:10px;
}

.prediction-round{
  margin:0 0 14px;
  border:1px solid #d1d5db;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.prediction-round summary{
  cursor:pointer;
  padding:14px 16px;
  background:#f8fafc;
  color:#6b7280;
  font-weight:900;
  font-size:22px;
  letter-spacing:.8px;
  text-transform:uppercase;
  border-bottom:1px solid #d1d5db;
}

.prediction-round:not([open]) summary{
  border-bottom:0;
}

.prediction-round .table-wrap{
  margin:0;
}

.prediction-overview-table{
  border-collapse:collapse;
  width:100%;
  min-width:760px;
}

.prediction-overview-table th,
.prediction-overview-table td{
  border:1px solid #cbd5e1;
  text-align:center;
  vertical-align:middle;
  padding:10px 12px;
}

.prediction-overview-table th{
  border-bottom:2px solid #9ca3af;
  color:#6b7280;
  background:#fff;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.prediction-overview-table .team-cell-home{
  text-align:right;
  font-weight:900;
}

.prediction-overview-table .team-cell-away{
  text-align:left;
  font-weight:900;
}

.prediction-overview-table .result-cell{
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.prediction-overview-table .prediction-cell{
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.prediction-overview-table .point-badge{
  margin-top:5px;
  min-width:36px;
  min-height:28px;
  font-size:18px;
  padding:2px 8px;
}

.prediction-overview-table tbody tr.result-known td{
  background:#f1f5f9;
  color:#64748b;
}

.prediction-overview-table tbody tr.result-known .result-cell{
  color:#0f172a;
}

.prediction-overview-table tbody tr.result-known .point-badge{
  opacity:1;
}

/* Collapsible standings table */
.standings-summary summary{
  cursor:pointer;
  color:#6b7280;
  font-weight:900;
  font-size:14px;
  letter-spacing:.8px;
  text-transform:uppercase;
  margin-bottom:12px;
}

.standings-summary[open] summary{
  margin-bottom:12px;
}

/* Groups: clearer table grid */
.groups-table,
.group-table{
  border-collapse:collapse;
  width:100%;
}

.groups-table th,
.groups-table td,
.group-table th,
.group-table td{
  border:1px solid #cbd5e1;
  padding:10px 12px;
}

.groups-table th,
.group-table th{
  border-bottom:2px solid #9ca3af;
  background:#f8fafc;
  color:#6b7280;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.groups-table tbody tr,
.group-table tbody tr{
  border-bottom:1px solid #cbd5e1;
}

.groups-table tbody tr:nth-child(even) td,
.group-table tbody tr:nth-child(even) td{
  background:#f8fafc;
}

/* Stronger group table borders */
.group-table{
  border-collapse:collapse;
  width:100%;
  border:2px solid #94a3b8;
}

.group-table th,
.group-table td{
  border:1px solid #94a3b8;
}

.group-table th{
  border-bottom:2px solid #64748b;
}

/* Bonus overview table */
.bonus-overview-table{
  border-collapse:collapse;
  width:100%;
  min-width:760px;
  border:2px solid #94a3b8;
}

.bonus-overview-table th,
.bonus-overview-table td{
  border:1px solid #94a3b8;
  text-align:center;
  vertical-align:middle;
  padding:10px 12px;
}

.bonus-overview-table th{
  border-bottom:2px solid #64748b;
  background:#f8fafc;
  color:#6b7280;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.bonus-overview-table tbody tr:nth-child(even) td{
  background:#f8fafc;
}

.bonus-overview-table td:first-child,
.bonus-overview-table th:first-child{
  text-align:left;
  font-weight:900;
}

/* Standings table: clearer grid lines */
.standings-summary table{
  border-collapse:collapse;
  width:100%;
  border:2px solid #94a3b8;
}

.standings-summary th,
.standings-summary td{
  border:1px solid #94a3b8;
  padding:10px 12px;
  text-align:center;
  vertical-align:middle;
}

.standings-summary th{
  border-bottom:2px solid #64748b;
  background:#f8fafc;
  color:#6b7280;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.standings-summary td:nth-child(1),
.standings-summary th:nth-child(1),
.standings-summary td:nth-child(2),
.standings-summary th:nth-child(2){
  text-align:left;
}

.standings-summary tbody tr:nth-child(even) td{
  background:#f8fafc;
}

/* Remembered collapsible sections */
.remember-details > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:8px;
  color:#6b7280;
  font-size:1.45rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.5px;
  margin:0 0 16px;
}

.remember-details > summary::-webkit-details-marker{
  display:none;
}

.remember-details > summary::before{
  content:"▼";
  font-size:.9rem;
  line-height:1;
  transform:translateY(-1px);
}

.remember-details:not([open]) > summary::before{
  content:"▶";
}

.standings-summary > summary{
  font-size:1.45rem;
}

.coupon-round > summary,
.prediction-round > summary,
.bonus-overview-details > summary{
  font-size:1.45rem;
}

/* Collapse action buttons */
.collapse-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 16px;
}

.collapse-actions .btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:8px 14px;
  font-weight:800;
  cursor:pointer;
}

.collapse-actions .btn:hover{
  background:#f8fafc;
}

/* Stronger collapse buttons */
.collapse-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px;
}

.collapse-actions button,
.collapse-actions .btn{
  appearance:none;
  border:2px solid #94a3b8;
  background:#ffffff;
  color:#111827;
  border-radius:999px;
  padding:12px 22px;
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 2px 0 rgba(15, 23, 42, .12);
}

.collapse-actions button:hover,
.collapse-actions .btn:hover{
  background:#f1f5f9;
  border-color:#64748b;
}

.collapse-actions button:active,
.collapse-actions .btn:active{
  transform:translateY(1px);
  box-shadow:none;
}

/* More visible collapse buttons */
.collapse-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 22px;
}

.collapse-actions button,
.collapse-actions .btn{
  appearance:none;
  border:2px solid #7c2d6d;
  background:linear-gradient(135deg, #861f68, #e51d5f);
  color:#ffffff;
  border-radius:999px;
  padding:13px 24px;
  font-size:1rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15, 23, 42, .18);
}

.collapse-actions button:hover,
.collapse-actions .btn:hover{
  filter:brightness(1.06);
  border-color:#5b164d;
}

.collapse-actions button:active,
.collapse-actions .btn:active{
  transform:translateY(1px);
  box-shadow:0 2px 5px rgba(15, 23, 42, .18);
}

.collapse-actions button[data-collapse-action="close"],
.collapse-actions .btn[data-collapse-action="close"]{
  background:#111827;
  border-color:#111827;
  color:#ffffff;
}

/* Keep collapse button text visible on hover */
.collapse-actions button:hover,
.collapse-actions .btn:hover,
.collapse-actions button:focus,
.collapse-actions .btn:focus{
  color:#ffffff !important;
}

.collapse-actions button[data-collapse-action="open"]:hover,
.collapse-actions .btn[data-collapse-action="open"]:hover{
  color:#ffffff !important;
  background:linear-gradient(135deg, #861f68, #e51d5f);
}

.collapse-actions button[data-collapse-action="close"]:hover,
.collapse-actions .btn[data-collapse-action="close"]:hover{
  color:#ffffff !important;
  background:#111827;
}

/* Softer rules page */
.rules-label{
  margin-bottom:22px;
  font-weight:400;
  color:#4b5563;
}

.rules-label + .rules-label{
  margin-top:22px;
}

.rules-label .remember-details > summary{
  color:#6b7280;
  font-weight:800;
  margin-bottom:18px;
}

.rules-label p{
  color:#4b5563;
  font-weight:400;
  line-height:1.65;
}

.rules-label strong,
.rules-label b{
  font-weight:600;
  color:#374151;
}

/* Admin status table */
.admin-status-table th,
.admin-status-table td {
    text-align: center;
    vertical-align: middle;
}

.admin-status-table thead th {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-status-table tbody td {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.admin-status-table tbody td:first-child,
.admin-status-table tbody td:last-child {
    white-space: nowrap;
}



/* Admin results entry table */
.results-round {
    margin-bottom: 1rem;
    border: 1px solid #b8bec8;
    border-radius: 10px;
    background: var(--card-bg, #fff);
    overflow: hidden;
}

.results-round summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.2;
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

.results-entry-table {
    border-collapse: collapse;
    width: 100%;
}

.results-entry-table th,
.results-entry-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    border: 1px solid #9aa3b2;
}

.results-entry-table th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 800;
    background: #eef1f5;
}

.results-entry-table td {
    font-weight: 600;
}

.results-entry-table .team-cell {
    text-align: center;
    min-width: 130px;
}

.results-entry-table .score-input {
    width: 3.4rem;
    min-width: 3.4rem;
    text-align: center;
}

.results-entry-table .score-separator {
    width: 1rem;
    padding-left: 0;
    padding-right: 0;
}

.results-entry-table tr.result-entered td {
    background: #f1bf94;
}

.results-entry-table button {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .results-round summary {
        font-size: 1.15rem;
        padding: 0.9rem 1rem;
    }

    .results-entry-table th,
    .results-entry-table td {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-size: 0.85rem;
    }

    .results-entry-table .team-cell {
        min-width: 90px;
    }

    .results-entry-table .score-input {
        width: 2.8rem;
        min-width: 2.8rem;
    }
}

/* Compact buttons in admin results table */
.results-entry-table button {
    padding: 0.35rem 0.65rem;
    min-height: 0;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.1;
}

/* Team alignment in admin results table */
.results-entry-table .home-team-cell {
    text-align: right;
}

.results-entry-table .away-team-cell {
    text-align: left;
}

/* Final admin results table overrides */
.results-entry-table td.home-team-cell {
    text-align: right !important;
}

.results-entry-table td.away-team-cell {
    text-align: left !important;
}

.results-entry-table td button,
.results-entry-table button {
    padding: 0.3rem 0.55rem !important;
    min-height: 0 !important;
    border-radius: 7px !important;
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
}


/* Standings prediction overview facts divider and result outcome */
.prediction-overview-table th.facts-divider,
.prediction-overview-table td.facts-divider {
    border-right: 3px solid #db0062;
}

.prediction-overview-table .match-result-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.prediction-overview-table .match-result-outcome {
    color: #db0062;
    font-weight: 800;
    font-size: calc(1em - 4px);
    line-height: 1;
}

/* Standings prediction overview refinements */
.prediction-overview-table tr.result-known td {
    background: #f1bf94;
}

.prediction-overview-table th,
.prediction-overview-table td {
    vertical-align: middle;
}

.prediction-overview-table .match-result-outcome {
    font-size: calc(1em - 2px);
}

/* Final standings overview overrides */
table.prediction-overview-table tbody tr.result-known > td {
    background-color: #f1bf94 !important;
}

table.prediction-overview-table tbody tr.result-known > td.result-cell {
    background-color: #f1bf94 !important;
}

table.prediction-overview-table th,
table.prediction-overview-table td {
    vertical-align: middle !important;
}

table.prediction-overview-table .match-result-score .match-result-outcome {
    font-size: calc(1em - 2px) !important;
}

/* Final result outcome size override */
table.prediction-overview-table .match-result-score > .match-result-outcome {
    font-size: 0.72em !important;
    line-height: 1 !important;
    color: #db0062 !important;
    font-weight: 800 !important;
    align-self: center !important;
}

table.prediction-overview-table .result-cell {
    vertical-align: middle !important;
}

table.prediction-overview-table .match-result-score {
    align-items: center !important;
}

/* Stronger borders in standings prediction overview */
table.prediction-overview-table th,
table.prediction-overview-table td {
    border: 2px solid #b8c1d1 !important;
}

table.prediction-overview-table th.facts-divider,
table.prediction-overview-table td.facts-divider {
    border-right: 4px solid #db0062 !important;
}

/* Admin matches date group striping */
tr.match-date-group-even td {
    background: #ffffff;
}

tr.match-date-group-odd td {
    background: #475569 !important;
}

/* Admin matches date group striping */
tr.match-date-group-even td {
    background: #ffffff;
}

tr.match-date-group-odd td {
    background: #f3f4f6;
}

/* Final admin matches table date striping */
.admin-matches-table tbody tr.match-date-group-even > td {
    background-color: #ffffff !important;
}

.admin-matches-table tbody tr.match-date-group-odd > td {
    background-color: #475569 !important;
    color: #ffffff !important;
}

.admin-matches-table tbody tr.match-date-group-odd > td a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Standings prediction overview date striping - lowest priority */
.prediction-overview-table tbody tr.prediction-date-group-even > td {
    background-color: #ffffff;
}

.prediction-overview-table tbody tr.prediction-date-group-odd > td {
    background-color: #e5e7eb;
}

/* Finished matches must override date striping */
.prediction-overview-table tbody tr.result-known > td {
    background-color: #f1bf94 !important;
}

/* Final top 3 standings row colors */
.standings-summary table tbody tr.placement-row-1 > td {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.standings-summary table tbody tr.placement-row-2 > td {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

.standings-summary table tbody tr.placement-row-3 > td {
    background-color: #6b8f3a !important;
    color: #ffffff !important;
}

.standings-summary table tbody tr.placement-row > td,
.standings-summary table tbody tr.placement-row > td strong {
    color: #ffffff !important;
}

.standings-summary table tbody tr.placement-row a {
    color: #ffffff !important;
}

/* Prediction overview participant header colors for current top 3 */
.prediction-overview-table th.participant-placement-header {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.prediction-overview-table th.participant-placement-header-1 {
    background-color: #000000 !important;
}

.prediction-overview-table th.participant-placement-header-2 {
    background-color: #ff0000 !important;
}

.prediction-overview-table th.participant-placement-header-3 {
    background-color: #6b8f3a !important;
}


/* Flydende sticky tabel-header i kampoversigt */
.prediction-floating-header{
  position:fixed;
  z-index:70;
  display:none;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,0.18);
  pointer-events:none;
}

.prediction-floating-header.is-visible{
  display:block;
}

.prediction-floating-header-inner{
  will-change:transform;
}

.prediction-floating-header table{
  border-collapse:collapse;
  table-layout:fixed;
}

.prediction-floating-header th{
  background:#fff;
  box-shadow:0 2px 0 rgba(15,23,42,0.10);
}

.prediction-floating-header th.participant-placement-header-1{
  background:#000;
  color:#fff;
}

.prediction-floating-header th.participant-placement-header-2{
  background:#f00;
  color:#fff;
}

.prediction-floating-header th.participant-placement-header-3{
  background:#76933c;
  color:#fff;
}


/* Mobil-fix til flydende sticky tabel-header */
.prediction-floating-header{
  max-width:100vw;
  -webkit-transform:translateZ(0);
  transform:translateZ(0);
}

.prediction-floating-header table{
  margin:0;
}

.prediction-floating-header th{
  white-space:nowrap;
}

/* Placering pr. runde i stillingen */
.section-placement-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:28px;
  padding:2px 8px;
  border-radius:8px;
  border:1px solid #cbd5e1;
  background:#f1f5f9;
  color:var(--text);
  font-size:14px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.section-placement-badge-1{
  background:#000;
  border-color:#000;
  color:#fff;
}

.section-placement-badge-2{
  background:#f00;
  border-color:#f00;
  color:#fff;
}

.section-placement-badge-3{
  background:#76933c;
  border-color:#76933c;
  color:#fff;
}

.section-placement-empty{
  color:var(--muted);
}

/* Mere kompakt stilling og top 3-farver kun på første 3 kolonner */
.standings-table .placement-row td{
  background:#fff !important;
  color:var(--text) !important;
}

.standings-table .placement-row-1 td:nth-child(-n+3){
  background:#000 !important;
  color:#fff !important;
}

.standings-table .placement-row-2 td:nth-child(-n+3){
  background:#f00 !important;
  color:#fff !important;
}

.standings-table .placement-row-3 td:nth-child(-n+3){
  background:#76933c !important;
  color:#fff !important;
}

.standings-table .placement-row td:nth-child(-n+3) strong{
  color:inherit !important;
}

.standings-table .standing-section-col{
  width:1%;
  min-width:0;
  padding-left:4px;
  padding-right:4px;
  text-align:center;
  white-space:nowrap;
}

.standings-table .section-placement-badge{
  min-width:24px;
  min-height:22px;
  padding:1px 5px;
  border-radius:6px;
  font-size:12px;
}

/* Top 3-farver kun på Placering, Deltager og Total */
.standings-table td.placement-cell-1{
  background:#000 !important;
  color:#fff !important;
}

.standings-table td.placement-cell-2{
  background:#f00 !important;
  color:#fff !important;
}

.standings-table td.placement-cell-3{
  background:#76933c !important;
  color:#fff !important;
}

.standings-table td.placement-cell strong{
  color:inherit !important;
}

/* Vandret fold og smallere R1/R2/R3/Slutspil i stillingen */
.standings-table-actions{
  display:flex;
  justify-content:flex-end;
  margin:0 0 8px;
}

.standings-table-actions .btn{
  min-height:32px;
  padding:0 12px;
  font-size:13px;
}

.standings-table-wrap.standings-details-collapsed .standing-extra-col{
  display:none;
}

.standings-table .standing-section-col{
  width:34px;
  min-width:34px;
  max-width:34px;
  padding-left:3px !important;
  padding-right:3px !important;
  text-align:center;
}

.standings-table .section-placement-badge{
  min-width:24px;
  width:24px;
  min-height:22px;
  padding:1px 0;
  border-radius:6px;
  font-size:12px;
  text-align:center;
}

/* Justering af kolonnebredder i foldet stilling */
.standings-table{
  width:auto;
  min-width:100%;
}

.standings-table th:nth-child(1),
.standings-table td:nth-child(1){
  width:120px;
  min-width:120px;
  max-width:120px;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2){
  width:150px;
  min-width:150px;
  max-width:150px;
}

.standings-table th:nth-child(3),
.standings-table td:nth-child(3){
  width:90px;
  min-width:90px;
  max-width:90px;
  text-align:center;
}

.standings-table th:nth-child(4),
.standings-table td:nth-child(4),
.standings-table th:nth-child(5),
.standings-table td:nth-child(5),
.standings-table th:nth-child(6),
.standings-table td:nth-child(6){
  width:36px;
  min-width:36px;
  max-width:36px;
}

.standings-table th:nth-child(7),
.standings-table td:nth-child(7){
  width:68px;
  min-width:68px;
  max-width:68px;
}

.standings-table th:nth-child(7){
  font-size:11px;
  letter-spacing:.2px;
}

/* Bonusvalg: manuel markering af udgåede valg */
.bonus-option-status-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.bonus-option-status{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 8px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f8fafc;
  color:var(--text);
  font-size:13px;
  font-weight:800;
}

.bonus-option-eliminated{
  color:#94a3b8 !important;
  text-decoration:line-through;
  opacity:.65;
}

.bonus-elimination-options{
  display:grid;
  gap:6px;
  margin-top:10px;
}

.bonus-elimination-option{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:800;
}

/* Admin genvej til udgåede bonusvalg */
.admin-shortcut{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:12px 14px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#f8fafc;
  color:var(--text);
  text-decoration:none;
}

.admin-shortcut:hover{
  background:#eef2f7;
  text-decoration:none;
}

.admin-shortcut span{
  color:#64748b;
  font-size:13px;
  font-weight:700;
}

/* Streak-kontrol */
.streak-check-table .streak-difference-row{
  background:#fff7ed;
}

.streak-check-table td{
  vertical-align:top;
}

/* Pointoversigt: bredere runde-kolonner efter visning af point + placering */
.standings-table th.standing-section-col,
.standings-table td.standing-section-col{
  min-width:82px;
  width:82px;
  white-space:nowrap;
  text-align:center;
}

.standings-table th:nth-child(7),
.standings-table td:nth-child(7){
  min-width:105px;
  width:105px;
}

.standings-table th,
.standings-table td{
  white-space:nowrap;
}

.standings-table{
  min-width:1180px;
}

/* Pointoversigt: runde-point med placeringsbadge */
.section-points{
  display:inline-block;
  min-width:34px;
  text-align:right;
  font-weight:900;
}

.standings-table td.standing-section-col{
  text-align:center;
}

.standings-table td.standing-section-col .section-badge,
.standings-table td.standing-section-col .placement-badge{
  margin-left:4px;
}

/* Tydeligere ramme om placeringsbadges i stillingen */
.section-placement-badge{
  border:2px solid rgba(15,23,42,0.28);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.18);
}

.section-placement-badge-1{
  border-color:#111827;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);
}

.section-placement-badge-2{
  border-color:#b91c1c;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);
}

.section-placement-badge-3{
  border-color:#5f7f2f;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);
}
