.spoje h2,
.spoje h3 {
  text-align: center;
}

.spoje h2 {
  font-weight: 700;
}

.jr-wrapper {
  max-width: 500px;
  margin: 40px auto;
  border-radius: 13px;
  overflow: hidden;
}

.jr-header {
  background: #ffeca1;
  color: #fff;
  padding: 14px 22px;
  display: flex;
  font-size: 17px;
  flex-direction: row !important;
  align-items: baseline;
  justify-content: space-between;
}

.jr-header-title {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  display: flex;
  align-items: baseline;
}

.button-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px; 
}

.button-container button {
  width: 150px;
  height: 36px !important;
  border-radius: 20px !important;
  padding: 2px !important;
  font-weight: 700 !important;
  border: none !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#back-button:before {
  content: '';
  display: inline-block;
  margin-right: 20px;
  width: 20px;
  height: 20px;
  background-image: url('/wp-content/plugins/Spoje-vyhledavac/assets/icons/left.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#ticket-button:after {
  content: '';
  display: inline-block;
  margin-left: 20px;
  width: 20px;
  height: 20px;
  background-image: url('/wp-content/plugins/Spoje-vyhledavac/assets/icons/right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.jr-direction {
  font-size: 1.1em;
  color: #000000;
  font-weight: 700;
}

.jr-date {
  text-align: center;
  font-weight: 700;
  color: #000000;
}

.jr-table {
  padding: 20px;
  background: #ffeca1;
  display: flex;
  justify-content: center;
}
.jr-table table {
  width: 70%;
  display: table;
  margin: 0 auto;
}

.jr-table th {
  background: black;
  color: #ffffff;
  vertical-align: middle;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  padding: 3px 8px;
  border: none;
}

.jr-table td {
  border-bottom: 1px solid #eee;
  font-family: 'Font Hradec' !important;
  vertical-align: middle;
}

.jr-table tr:hover {
  background: #fff8f8;
}
.jr-table tr:nth-child(odd) {
  background: #ffffff;
}
.jr-table tr:nth-child(even) {
  background: #ffeca1;
}
.jr-table tbody tr {
    height: 20px !important;
    font-size: 16px !important;
    
    line-height: 20px !important;
}

.jr-time {
  font-family: monospace;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

.jr-tag {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 2px 6px;
  margin-left: 3px;
  background: #f7c601;
  color: #000;
  white-space: nowrap;
  vertical-align: middle;
}

.jr-note {
  color: #333;
  padding: 14px 22px 20px;
  background: #ffeca1;
  margin-bottom: 15px;
}

.jr-note b {
  color: #000000;
  display: block;
  margin-bottom: 6px;
}

.jr-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jr-legend-symbol {
  font-weight: 700;
  background: #f7c601;
  padding: 2px 6px;
  border-radius: 3px;
}

.jr-legend-text {
  font-weight: 700;
  display: inline-block;
}

.jr-wrapper thead {
  width: 100%;
}
.jr-wrapper tr,
.jr-wrapper td {
  border: none !important;
}
.jr-wrapper table td {
  padding: 1px 2px !important;
}




/* Štítek s číslem linky: černý se žlutým číslem */
.jr-line-number {
  margin-top: 2%;
  margin-right: 15px;
  color: #f7c601;
  background: black;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  min-width: 2.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 8px;
}

.jr-header-info {
  flex-grow: 1; 
  display: flex;
  justify-content: space-between; 
  align-items: baseline;
  flex-wrap: wrap; 
  color: #000;
  font-weight: 700;
}

.jr-direction-label {
  margin-left: 10px;
  margin-right: 5px;
}
sup{
	top: 0 !important;
}
.jr-direction-text {
  font-size: 1.1em;
  text-transform: uppercase;
}

.jr-min-btn
{
	width: 60px;
    background: transparent !important;
    text-decoration: underline;
    color: #EE0000 !important;
    border: none !important;
}
.jr-min-btn:hover
{
	color: #810000 !important;
	text-decoration: underline;
}

/* Vybraná minuta: černý čtverec se žlutým číslem (barvy a tvar jako štítek linky, jen menší).
   Tlačítko má stejnou šířku jako ostatní minuty a čtverec se kreslí na jeho střed, takže číslo sedí
   přesně pod ostatními minutami ve sloupci. */
/* Číslo je žluté vždy (výchozí stav, najetí i zaostření), ne jen při najetí – proto vyšší specificita a i text-fill */
.jr-min-btn.active,
.jr-min-btn.active:hover,
.jr-min-btn.active:focus,
.jr-min-btn.active:active,
.jr-table .jr-min-btn.active,
.jr-table .jr-min-btn.active:hover,
.jr-table .jr-min-btn.active:focus
{
    position: relative;
    z-index: 0;
    background: transparent !important;
    color: #f7c601 !important;
    -webkit-text-fill-color: #f7c601;
    font-weight: bold;
    text-decoration: none !important;
}
.jr-min-btn.active::before
{
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 2.1rem;
    height: 1.6rem;
    transform: translate(-50%, -50%);
    background: black;
    border-radius: 6px;
}
.jr-min-btn.active .jr-min-note {
    color: #f7c601;
}

/* Šablona kolem tlačítka po kliknutí kreslí černý rámeček a bílou záři; minuty ji nepotřebují */
.jr-min-btn:focus,
.jr-min-btn:focus-visible
{
    outline: none;
    box-shadow: none;
}

.jr-matrix-hour{
	font-weight: 600;
}

.jr-header-date {

  margin-left: auto; 
}


.jr-table th:nth-child(3) {
    display: none; 
}

@media (max-width: 600px) {
  .jr-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
@media (max-width: 500px) {
  .jr-table table {
    max-width: 100%;
    width: 100%;
    margin: 0; 
  }
}
