/* Simplified and organized CSS for tipping page */

/* Global Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #383838;
}

/* Layout Containers */
.row {
  display: block;
  width: 100%;
  max-width: 850px;
  height: 5.8em;
  text-align: center;
  background-color: #f2f5f9;
  border-bottom: 1px solid grey;
  overflow: hidden;
}

.admin {
  height: 8.8em;
  border-bottom: 1px solid grey;
  background-color: #f5f5f5;
}

.picker {
  display: block;
  width: 100%;
  height: 4em;
  text-align: center;
}

.shootout {
  height: 230px;
}

.form-shootout {
  max-width: 700px;
}

.realcomplinks {
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center (optional, if div has height) */
  margin-right :  25%;
}


/* Game Information */
.game-type-main {
  height: 2em;
  padding: 3px;
  border-top: 2px solid grey;
  border-bottom: 2px solid grey;
  background-color: lightblue;
  font-weight: bold;
  text-align: center;
}

.game-type-other {
  height: 2em;
  padding: 2px 3px;
  border-top: 2px solid grey;
  border-bottom: 2px solid grey;
  background-color: orange;
  font-weight: bold;
  text-align: center;
}

.game-date {
  height: 2em;
  padding: 2px 3px;
  border-top: 2px solid grey;
  border-bottom: 2px solid grey;
  background-color: rgb(43, 118, 128);
  color: #fffcfc;
  font-weight: bold;
  text-align: left;
}

.stadium {
  font-size: 10px;
  color: #292d33;
  text-align: left;
  height: 15px;
  vertical-align: middle;
}

/* Tipping Elements */
.tipping-square {
  width: 90px;
  height: 14px;
  border: 0.5px solid black;
  font-size: 10px;
  padding-top: 2px;
  background: linear-gradient(to right, transparent 0%, transparent calc(50% - 0.81px), darkgrey calc(50% - 0.8px), darkgrey calc(50% + 0.8px), transparent calc(50% + 0.81px), transparent 100%);
  background-color: grey;
}

.tipping-bar {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 5px solid transparent;   /* Left slant, transparent to form the side */
  border-right: 5px solid transparent;  /* Right slant, transparent to form the side */
  border-top: 7px solid #000;           /* Top base, solid color for the triangle */
  border-bottom: 0;                     /* No bottom border needed */
}

.tipping-selector {
  text-align: right;
}

.tipping-selector-mid {
  text-align: center;
  vertical-align: middle;
}

.tipping-selector-right {
  text-align: left;
  padding-left: 0;
}

.tip-home {
  border-right: 1px solid white;
  height: 100%;
  text-align: right;
  text-overflow: ellipsis;
}

.tip-draw {
  font-size: 12px;
  border-left: 1px solid white;
  border-right: 1px solid white;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

.tip-draw-2 {
  font-size: 12px;
  font-weight: bold;
  text-decoration: underline;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

.tip-draw-1, .tip-draw-3 {
  visibility: hidden;
}

.tip-away {
  border-left: 1px solid white;
  border-right: 1px solid white;
  height: 100%;
  text-align: left;
  text-overflow: ellipsis;
}

/* Results and Status Indicators */
.results {
  border-right: 1px solid white;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

.results-lock {
  background-color: #F0C122;
  border-right: 1px solid white;
  height: 100%;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center (optional, if div has height) */
}

.results-win {
  background-color: #99C440;
  border-right: 1px solid white;
  height: 100%;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center (optional, if div has height) */
}

.results-lose {
  background-color: #E61E25;
  border-right: 1px solid white;
  height: 100%;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center (optional, if div has height) */

}

.ready {
  padding: 0.7em 0 0 3px;
  color: green;
  font-size: 0.8em;
  text-align: center;
  vertical-align: middle;
}

.glyphicon-lock {
  color: black;
  font-size: 1.3em;
  position: relative;
  top: calc(50% - 10px);
  vertical-align: middle;
}

.glyphicon-ok {
  color: limegreen;
  font-size: 1.7em;
  position: relative;
  top: calc(50% - 10px);
  vertical-align: middle;
}

.glyphicon-remove {
  color: red;
  font-size: 1.3em;
  position: relative;
  top: calc(50% - 10px);
  vertical-align: middle;
}

/* Logos and Images */
.logo {
  overflow: visible;
  position: relative;
  height: 100%;
  border-color: white;
}

.logo-img {
  position: relative;
  margin: 0 auto;
  transform: scale(0.5);
  filter: drop-shadow(10px 8px 5px #222);
  left: 20px;
  top: -30px;
}

.logo-img-right {
  position: relative;
  margin: 0 auto;
  transform: scale(0.5);
  filter: drop-shadow(10px 8px 5px #222);
  left: -30px;
  top: -30px;
}

.logo-img-small {
  max-height: 40px;
  margin: 0;
  position: relative;
  top: 0;
}

.logo-img-small-win {
  max-height: 40px;
  border-radius: 85%;
  background-color: white;
  box-shadow: 0 0 3px 3px rgb(124, 252, 0), 0 0 13px 10px rgb(124, 252, 0);
}

.logo-img-small-lose {
  max-height: 40px;
  opacity: 0.6;
  border-radius: 85%;
  background-color: white;
  box-shadow: 0 0 3px 3px rgb(255, 90, 90), 0 0 13px 10px rgb(255, 90, 90);
}

.logo-img-small-na {
  max-height: 40px;
  filter: drop-shadow(0 0 5px #222);
}

/* Shootout Specific */
.shootout-title {
  color: yellow;
  font-size: 25px;
  height: 100px;
  text-shadow: 2px 2px 1px black;
}

.check-shootout {
  margin-top: -190px;
}

.tr-bg {
  background: url('/bg/goals.png') no-repeat top center;
  background-size: contain;
  height: 230px;
}

.td-bg {
  border: 2px solid darkgrey;
  background-color: lightgray;
  border-bottom: 2px solid black;
}

.td-win {
  border: 2px solid black;
  background-color: #009900;
  border-bottom: 2px solid black;
}

.td-lose {
  border: 2px solid black;
  background-color: darkred;
  border-bottom: 2px solid black;
}

/* Form and Input */
input[type='radio'] {
  transform: scale(2);
  cursor: pointer;
}

label {
  font-weight: lighter;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-label, .away-label {
  cursor: pointer;
}

.home-label-1, .draw-label, .away-label-3 {
  font-weight: bold;
  text-decoration: underline;
}

.scores-l {
  text-align: right;
  font-weight: lighter;
  font-size: 25px;
}

.scores-r {
  text-align: left;
  font-weight: lighter;
  font-size: 25px;
}

.btn-lg {
  display: inline-block;
  max-width: 450px;
  font-size: 24px;
}

#draw1 {
  font-size: 12px;
  height: 20px;
  margin-bottom: 20px;
}

/* Table Styles */
.table, th {
  text-align: center;
}

.th1 {
  border-style: ridge;
  font-size: 16px;
  background-color: aqua;
}

.res {
  position: left;
  vertical-align: middle;
  justify-content: center;
  transform: scale(0.6);
}

.ico {
  margin-top: -20px;
  transform: scale(0.3);
}

/* Fixture Admin specific styles - smaller fonts, consistent sizing, compact layout */
.fixture-admin {
    font-size: 11px !important;
    line-height: 1.2;
    display: block;
}
.fixture-admin > * {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Extra spacing between main sections */
.fixture-admin .compact-create,
.fixture-admin form.form-inline,
.fixture-admin .panel {
    margin-bottom: 8px !important;
}
.fixture-admin h2 {
    font-size: 16px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}
.fixture-admin .panel-heading {
    font-size: 11px !important;
    padding: 4px 8px !important;
}
.fixture-admin .panel-body {
    padding: 6px 8px !important;
}
.fixture-admin .form-control,
.fixture-admin select,
.fixture-admin input[type="text"],
.fixture-admin input[type="number"],
.fixture-admin input[type="date"] {
    font-size: 11px !important;
    height: 22px !important;
    padding: 1px 4px !important;
    line-height: 1.1;
}
.fixture-admin label {
    font-size: 9px !important;
    margin-bottom: 0 !important;
    font-weight: normal;
}
.fixture-admin .btn {
    font-size: 10px !important;
    padding: 1px 5px !important;
    line-height: 1.1;
}
.fixture-admin .table {
    font-size: 10px !important;
}
.fixture-admin .table th,
.fixture-admin .table td {
    padding: 2px 4px !important;
    vertical-align: middle !important;
}
.fixture-admin .alert {
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

/* Compact create round */
.fixture-admin .compact-create {
    background: #f0f8f0;
    border: 1px solid #8bc34a;
    padding: 3px 6px;
    margin-bottom: 6px;
    border-radius: 3px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.fixture-admin .compact-create label {
    font-size: 9px;
    margin: 0 2px 0 0;
    white-space: nowrap;
}
.fixture-admin .compact-create input {
    width: 52px;
}
.fixture-admin .compact-create input[type="date"] {
    width: 95px;
}

/* Add New Fixture - fit in one width */
.fixture-admin .add-fixture-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 6px;
    font-size: 10px;
}
.fixture-admin .add-fixture-form .form-group {
    margin: 0 !important;
    min-width: 0;
}
.fixture-admin .add-fixture-form label {
    display: block;
    font-size: 9px;
    margin-bottom: 1px;
}
.fixture-admin .add-fixture-form input,
.fixture-admin .add-fixture-form select {
    height: 20px !important;
    font-size: 10px !important;
    padding: 0 3px !important;
}
.fixture-admin .add-fixture-form .round-field { width: 48px; }
.fixture-admin .add-fixture-form .comp-field { width: 95px; }
.fixture-admin .add-fixture-form .team-field { width: 110px; }
.fixture-admin .add-fixture-form .datetime-field { width: 105px; }
.fixture-admin .add-fixture-form .venue-field { width: 95px; }
.fixture-admin .add-fixture-form .type-field { width: 55px; }
.fixture-admin .add-fixture-form .btn { height: 20px; font-size: 10px; padding: 0 6px; }

/* Table inputs consistency */
.fixture-admin table input.form-control,
.fixture-admin table select.form-control {
    font-size: 10px !important;
    height: 18px !important;
    padding: 0 2px !important;
}
.fixture-admin .datetime-field { width: 105px !important; }
.fixture-admin .venue-field { width: 95px !important; }

/* Make quick action buttons smaller */
.fixture-admin .btn-xs {
    font-size: 9px !important;
    padding: 0 3px !important;
    line-height: 1.1;
}

/* ========== Compact SHOTS / Tipping UI ========== */
.matches-compact {
  max-width: 860px;
  margin: 4px auto 0;
}

.match-type-header {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  padding: 5px 8px;
  background: #e8e8e8;
  margin: 10px 0 4px;
  border-radius: 3px;
  border-bottom: 1px solid #ccc;
}

.match-row-compact {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  margin-bottom: 2px;
  border: 1px solid #a8b8cc;
  border-radius: 4px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.15;
}

.match-row-compact.open {
  background: #e0e7f0;
}

.match-row-compact.correct {
  background-color: rgba(16, 185, 129, 0.035) !important;
  border-color: rgba(16, 185, 129, 0.12) !important;
}

.match-row-compact.incorrect {
  background-color: rgba(239, 68, 68, 0.035) !important;
  border-color: rgba(239, 68, 68, 0.12) !important;
}

.match-row-compact.hatched-grey {
  background: repeating-linear-gradient(
    45deg,
    rgba(229, 231, 235, 0.20),
    rgba(229, 231, 235, 0.20) 10px,
    rgba(209, 213, 219, 0.28) 10px,
    rgba(209, 213, 219, 0.28) 20px
  ) !important;
  border-color: rgba(156, 163, 175, 0.30) !important;
}

.match-meta {
  font-size: 9px;
  color: #4b5563;
  margin-bottom: 2px;
}

.match-meta .comp {
  font-size: 9px;
  color: #6b7280;
  margin-left: 4px;
}

.match-teams {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.team {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.team.home { justify-content: flex-start; }
.team.away { justify-content: flex-end; text-align: right; }

.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-name {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.draw-col {
  width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.draw-label {
  font-size: 9px;
  color: #888;
  display: block;
  line-height: 1;
}

.match-status {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px; /* match pill-ish height */
}

.status-icon {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.status-ready, .status-enter {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.status-ready { background: #a7f3d0; color: #065f46; }
.status-enter { background: #fef3c7; color: #92400e; }

.mini-bar {
  height: 3px;
  background: #cbd5e0;
  margin-top: 4px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.bar-marker {
  position: absolute;
  top: 0;
  width: 40px;
  height: 3px;
  background: #bfdbfe;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: none;
  z-index: 2;
}

/* Make radios smaller and clickable */
.match-row-compact input[type="radio"] {
  transform: scale(1.6);
  margin: 0 6px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Bigger tap targets for mobile */
.match-row-compact .team,
.match-row-compact .draw-col {
  padding: 12px 10px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.1s;
  min-width: 80px;
}

.match-row-compact .team:hover,
.match-row-compact .draw-col:hover {
  background: #f0f4ff;
}

.match-row-compact .team label,
.match-row-compact .draw-col label {
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.match-row-compact .team-name {
  font-size: 13px !important;
  padding: 2px 0;
}

/* Compact the round selector area */
.roundselector select {
  max-width: 380px;
}

/* Sticky submit */
#sticky-submit {
  position: sticky;
  bottom: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  max-width: 860px;
  margin: 8px auto 0;
  border-radius: 4px;
}

#sticky-submit .btn {
  font-size: 13px;
  padding: 6px 12px;
}

/* Tip panels instead of radios */
.tip-panel {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 4px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-size: 10px;
  line-height: 1.05;
  transition: all 0.1s;
  position: relative;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Home/away: logo next to text, larger logos */
.tip-panel.home,
.tip-panel.away {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 5px 6px;
}
.tip-panel.home {
  justify-content: flex-start;
}
.tip-panel.away {
  justify-content: flex-end;
}
.tip-panel.home .team-logo {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  margin-left: 0;
  margin-bottom: 0;
}
.tip-panel.away .team-logo {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  margin-left: 0;
  margin-bottom: 0;
}
.tip-panel.home .team-name,
.tip-panel.away .team-name {
  font-size: 11px;
  white-space: normal;
}

.tip-panel.selected {
  border: 2px solid #3b82f6;
  background: #dbeafe;
  box-shadow: 0 0 0 1px #3b82f6;
}

.tip-panel .team-logo {
  width: 22px;
  height: 22px;
  margin-bottom: 1px;
}

.tip-panel .team-name {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: #1f2937;
}

.tip-panel .draw-label {
  font-size: 9px;
  font-weight: 600;
  color: #4b5563;
}

.tip-panel .sel-check {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 8px;
  color: #007bff;
}

.tip-panel.disabled {
  opacity: 0.5;
  cursor: default;
}

/* Make draw panel narrower than team panels */
.tip-panel.draw {
  flex: 0 0 48px;
  min-width: 44px;
  max-width: 58px;
}

/* Horizontal round scroller (already defined above, kept for completeness) */
.round-scroller {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 4px 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.round-scroller.dragging {
  cursor: grabbing;
}

.round-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  min-width: 66px;
  min-height: 52px;
  background: #f8f8f8;
  line-height: 1.0;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.round-pill.active {
  background: #007bff;
  color: #fff;
  border-color: #0056b3;
  font-weight: 600;
}

/* Horizontal scrollable round selector */
.round-scroller {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 4px 2px;
  scrollbar-width: none; /* hide scroller bar */
  -ms-overflow-style: none;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  position: relative;
}
.round-scroller::-webkit-scrollbar {
  display: none;
}
.round-scroller.dragging {
  cursor: grabbing;
}

/* Fade to white at ends for clearer middle */
.round-scroller::before,
.round-scroller::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15px;
  z-index: 2;
  pointer-events: none;
}
.round-scroller::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.round-scroller::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.round-scroller-spacer {
  flex-shrink: 0;
  height: 1px; /* invisible spacer to allow first/last pill to center */
}

.round-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  min-width: 66px;
  min-height: 52px;
  background: #f8f8f8;
  line-height: 1.0;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.round-pill.active {
  background: #007bff;
  color: #fff;
  border-color: #0056b3;
  font-weight: 600;
}

.round-pill .gw {
  font-weight: 700;
  font-size: 10px;
  line-height: 1.05;
}

.round-pill .rid {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.0;
  opacity: 0.8;
}

.round-pill .date {
  font-size: 7.5px;
  opacity: 0.85;
  line-height: 1.0;
}

/* Comp details for active round, just below selector with upward arrow */
.round-comp-info {
  text-align: center;
  font-size: 10px;
  color: #374151;
  margin: 0 auto 4px;
  max-width: 880px;
  display: block;
}
.round-arrow-up {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #666;
  display: block;
  margin-bottom: 1px;
}
.round-comps-text {
  font-weight: 700;
  display: block;
}
.round-dates {
  font-size: 8px;
  color: #888;
  margin-top: 1px;
  display: block;
}

/* Arrows for round scroller */
.round-scroller-container {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 60px;
}
.round-scroll-btn {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 0 5px;
  border: 2px solid #888;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 22px;
  user-select: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.round-scroll-btn:hover {
  background: #f0f4f8;
  color: #000;
}

/* Game Fixture Admin Add form - horizontal row layout */
.fixture-admin .add-game-form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 10px !important;
}
.fixture-admin .add-game-form span {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.fixture-admin .add-game-form input,
.fixture-admin .add-game-form select {
  height: 20px !important;
  font-size: 10px !important;
  padding: 0 3px !important;
}



/* Larger bordered background area around the SHOTS tipping content (round selector + matches + submit) */
.tipping-area {
  background-color: #ffffff;
  border: 4px solid #9fb3c8;
  border-radius: 8px;
  padding: 12px 10px 8px;
  margin: 4px auto 8px;
  max-width: 880px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Separated panes for round selector and tips */
.round-selector-pane {
  background-color: #f1f5f9;
  border: 1px solid #a8b8cc;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 10px;
}

.pane-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.tips-pane {
  background-color: #d1dce9;
  border: 1px solid #a8b8cc;
  border-radius: 4px;
  padding: 6px;
}

/* Success message under navbar on SHOTS page - only reserves gap when it has content */
#tips-success-message {
  text-align: center;
  font-size: 12px;
  color: #28a745;
  margin: 0;
  min-height: 0;
}
#tips-success-message.has-message {
  margin: 4px 0 8px;
}

/* Fixtures/Results page - apply SHOTS color scheme */
.tipping-area .game-date {
  height: auto;
  padding: 6px 8px;
  background: #e8e8e8;
  color: #333;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 3px;
  margin: 8px 0 4px;
  text-align: left;
}

.tipping-area .fixtures-results,
.tipping-area .results-content {
  max-width: 860px;
  margin: 4px auto 0;
}

.tipping-area table.table {
  background-color: transparent;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
  font-size: 12px;
  line-height: 1.15;
}

.tipping-area table.table th,
.tipping-area table.table td {
  padding: 4px 6px;
  border: 1px solid #a8b8cc;
  background: #f8fafc;
  vertical-align: middle;
}

.tipping-area table.table th {
  background: #e8e8e8;
  font-weight: 600;
  font-size: 11px;
  color: #374151;
}

.tipping-area .fixture-home {
  text-align: right;
  font-weight: 500;
}

.tipping-area .fixture-away {
  text-align: left;
  font-weight: 500;
}

.tipping-area .manager-name {
  font-size: 10px;
  color: #6b7280;
  display: block;
  margin-top: 1px;
}

/* Subtle row hover like in shots */
.tipping-area table.table tbody tr:hover td {
  background: #e0e7f0;
}

/* Tables page - modern league table styling aligned with fixtures/results and shots */
.tipping-area .league-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}

.tipping-area .league-button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #a8b8cc;
  border-radius: 4px;
  font-size: 11px;
  background: #f8fafc;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.tipping-area .league-button:hover {
  background: #e8e8e8;
}

.tipping-area .league-button.active {
  background: #007bff;
  color: #fff;
  border-color: #0056b3;
  font-weight: 600;
}

.tipping-area .results-content {
  max-width: 860px;
  margin: 4px auto 0;
}

.tipping-area .table {
  background-color: transparent;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
  font-size: 12px;
  line-height: 1.15;
}

.tipping-area .table th,
.tipping-area .table td {
  padding: 5px 6px;
  border: 1px solid #a8b8cc;
  background: #f8fafc;
  vertical-align: middle;
  text-align: center;
}

.tipping-area .table th {
  background: #e8e8e8;
  font-weight: 600;
  font-size: 11px;
  color: #374151;
  white-space: nowrap;
}

.tipping-area .table .league-table-team {
  text-align: left;
  font-weight: 500;
}

/* Separators (not full row highlights) for league table zones */
/* Separator lines (bottom border on the boundary row) instead of full row highlights */
.tipping-area .table tr.promotion td {
  border-bottom: 3px solid #10b981 !important;
}

.tipping-area .table tr.playoff td {
  border-bottom: 3px solid #f59e0b !important;
}

.tipping-area .table tr.relegation td {
  border-bottom: 3px solid #ef4444 !important;
}

.tipping-area .table tr.finals td {
  border-bottom: 3px solid #3b82f6 !important;
}

/* Legend key at bottom of tables page */
.tipping-area .legend {
  margin-top: 8px;
  font-size: 11px;
  background: transparent;
  border-collapse: collapse;
}

.tipping-area .legend td {
  padding: 2px 4px;
  vertical-align: middle;
}

.tipping-area .legend .promotion,
.tipping-area .legend .playoff,
.tipping-area .legend .relegation,
.tipping-area .legend .finals {
  width: 16px;
  height: 14px;
  display: inline-block;
  border: 1px solid #a8b8cc;
  vertical-align: middle;
}

.tipping-area .legend .promotion { background-color: rgba(16, 185, 129, 0.15); }
.tipping-area .legend .playoff { background-color: rgba(245, 158, 11, 0.15); }
.tipping-area .legend .relegation { background-color: rgba(239, 68, 68, 0.15); }
.tipping-area .legend .finals { background-color: rgba(59, 130, 246, 0.15); }