/* competitieviewer */
.CompetitieViewerTh {
    text-align: center;
	font-size: 12px;
	font-family: tahoma, verdana, arial, helvetica, sans-serif;
	font-weight: normal;
	color: #FFFFFF;
	background-color: #36A9E1;

	-moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 8px 8px;
}
.CompetitieViewerTd {
	padding: 8px;
	font-size: 12px;
	font-family: tahoma, verdana, arial, helvetica, sans-serif;
	font-weight: normal;
	background-color: #EEEEEE;

	-moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 8px 8px;
}
.CompetitieViewerSmallNote {
	font-size: 12px;
	font-family: tahoma, verdana, arial, helvetica, sans-serif;
	font-style: italic;
	font-weight: normal;
	color: #AAAAAA;
}
.CompetitieViewerDivisionTitle {
	position: relative;
	border-left: 25px solid transparent;
	font-family: arial, helvetica, sans-serif;
	font-weight: lighter;
	font-size: 18px;
	color: #666666;
	background-image: url('https://scdn.snttc.be/images/legacy/pp.png');
	background-repeat: no-repeat;
	background-position: -25px 0px;
}

.CompetiteViewerTable {
	margin-left: auto; 
    margin-right: auto;
	min-width: 200px;
}

/* start tabs */

.tabs-root {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


.react-tabs {
    -webkit-tap-highlight-color: transparent;
  }

  
  .react-tabs__tab-list {
    border-bottom: 1px solid #aaa;
    margin: 0 0 10px;
    padding: 0;
  }


  .react-tabs__tab {
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    bottom: -1px;
    position: relative;
    list-style: none;
    padding: 6px 12px;
    cursor: pointer;
	font-size: 10px;
  }
  
  .mobile .react-tabs__tab {
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    bottom: -1px;
    position: relative;
    list-style: none;
    padding: 6px 12px;
    cursor: pointer;
  }

  .workstation .react-tabs__tab {
    display: inline-block;
    border: 1px solid transparent;
    border-bottom: none;
    bottom: -1px;
    position: relative;
    list-style: none;
    padding: 6px 12px;
    cursor: pointer;
	font-size: 12px;
  }

  
  .react-tabs__tab--selected {
    background: #E0E1DF;
    border-color: #aaa;
    color: black;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
    background-image: url('https://scdn.snttc.be/images/legacy/pp.png');
    background-repeat: no-repeat;
    background-position: 8px center; /* left + vertically centered */
    background-size: 16px 16px;      /* small icon */
    padding: 6px 32px 6px 32px;      /* top right bottom left - room for the icon */
  }

  /* More specific selectors to override mobile/workstation padding */
  .mobile .react-tabs__tab--selected {
    padding: 6px 32px 6px 32px !important;      /* Override mobile padding for selected tabs */
  }

  .workstation .react-tabs__tab--selected {
    padding: 6px 32px 6px 32px !important;      /* Override workstation padding for selected tabs */
  }
  
    
  .react-tabs__tab--disabled {
    color: gray;
    cursor: default;
  }
  .workstation .react-tabs__tab--disabled {
    color: gray;
    cursor: default;
  }
  .mobile .react-tabs__tab--disabled {
    color: gray;
    cursor: default;
  }


  .workstation .react-tabs__tab:focus {
    outline: none;
  }
  .mobile .react-tabs__tab:focus {
    outline: none;
  }
  .react-tabs__tab:focus {
    outline: none;
  }

  
  .react-tabs__tab:focus:after {
    content: '';
    position: absolute;
    height: 5px;
    left: -4px;
    right: -4px;
    bottom: -5px;
    background: #E0E1DF;
  }
  .workstation .react-tabs__tab:focus:after {
    content: '';
    position: absolute;
    height: 5px;
    left: -4px;
    right: -4px;
    bottom: -5px;
    background: #E0E1DF;
  }
  .mobile .react-tabs__tab:focus:after {
    content: '';
    position: absolute;
    height: 5px;
    left: -4px;
    right: -4px;
    bottom: -5px;
    background: #E0E1DF;
  }    

  
    .react-tabs__tab-panel {
      display: none;
    }
    .workstation .react-tabs__tab-panel {
      display: none;
    }
    .mobile .react-tabs__tab-panel {
      display: none;
    }        
  
    .react-tabs__tab-panel--selected {
      display: block;
    }
    .workstation .react-tabs__tab-panel--selected {
      display: block;
    }
    .mobile .react-tabs__tab-panel--selected {
      display: block;
    }
  

    /* Put this AFTER the default react-tabs rules so it wins the cascade */
  .react-tabs__tab-panel.react-tabs__tab-panel--selected {
    display: flex;            /* turn the panel into a flex container */
    flex-direction: column;   /* stack children vertically */
    align-items: center;      /* center each child horizontally */
    justify-content: flex-start;
    gap: 12px;                /* space between multiple tables */
    padding: 12px 6px;
    overflow-x: hidden;       /* prevent accidental sideways overflow */
  }

      /* Put this AFTER the default react-tabs rules so it wins the cascade */
  .workstation .react-tabs__tab-panel.react-tabs__tab-panel--selected {
    display: flex;            /* turn the panel into a flex container */
    flex-direction: column;   /* stack children vertically */
    align-items: center;      /* center each child horizontally */
    justify-content: flex-start;
    gap: 12px;                /* space between multiple tables */
    padding: 12px 6px;
    overflow-x: hidden;       /* prevent accidental sideways overflow */
  }
    
/* Make any table inside the selected panel shrink-wrap to its content,
   but never exceed the container (so it stays visually centered). */
    .react-tabs__tab-panel--selected > table,
    .react-tabs__tab-panel--selected .CompetitieViewerTable,
    .react-tabs__tab-panel--selected .CompetiteViewerTable { /* legacy typo support */
      width: max-content;       /* hugs its content width */
      max-width: 100%;          /* clamp to container on small screens */
      margin: 0 auto;           /* keeps center if panel style ever changes */
      border-collapse: collapse;
    }
  
    .mobile .react-tabs__tab-panel--selected > table,
    .mobile .react-tabs__tab-panel--selected .CompetitieViewerTable,
    .mobile .react-tabs__tab-panel--selected .CompetiteViewerTable { /* legacy typo support */
      width: max-content;       /* hugs its content width */
      max-width: 100%;          /* clamp to container on small screens */
      margin: 0 auto;           /* keeps center if panel style ever changes */
      border-collapse: collapse;
    }    
    .workstation .react-tabs__tab-panel--selected > table,
    .workstation .react-tabs__tab-panel--selected .CompetitieViewerTable,
    .workstation .react-tabs__tab-panel--selected .CompetiteViewerTable { /* legacy typo support */
      width: max-content;       /* hugs its content width */
      max-width: 100%;          /* clamp to container on small screens */
      margin: 0 auto;           /* keeps center if panel style ever changes */
      border-collapse: collapse;
    }

/* end tabs */