/* ── Pulapromet Line 7 timetable embed – all rules scoped to .tbl7 ── */

.tbl7 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 40px;
}
.tbl7 .screen {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* ── LEFT: times column ── */
.tbl7 .times-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 3px solid #000;
  overflow: hidden;
  background: #fffde8;
}
.tbl7 .timetable-header {
  background: #03834A;
  color: #fff;
  text-align: center;
  padding: 1.1vh 0.5vw;
  font-size: 1.5vh;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #FED500;
  flex-shrink: 0;
}
.tbl7 .timetable-sub {
  font-size: 1.1vh;
  font-weight: 400;
  color: #fff;
  margin-top: 2px;
}
.tbl7 .times-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.tbl7 .times-grid {
  flex: 0 0 45%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: stretch;
  border-right: 2px solid #000;
  overflow: hidden;
}
.tbl7 .time-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2vh 2px;
  border-bottom: 1px solid #ddd8a0;
  border-right: 1px solid #ddd8a0;
  font-size: 3vh;
  font-weight: 900;
  letter-spacing: 1px;
}
.tbl7 .time-cell:nth-child(2n) { border-right: none; }
.tbl7 .time-cell.color-dark  { color: #000; }
.tbl7 .time-cell.color-red   { color: #FD0302; }
.tbl7 .time-cell.color-green { color: #03834A; }

/* ── Route schema ── */
.tbl7 .route-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffde8;
}
.tbl7 .route-header {
  background: #03834A;
  color: #fff;
  text-align: center;
  padding: 0.45vh 0.4vw;
  font-size: 1.2vh;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 2px solid #FED500;
  flex-shrink: 0;
}
.tbl7 .route-stops-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: #fffde8;
  overflow: hidden;
  align-content: start;
}
.tbl7 .route-stops-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 16px;
  width: 3px;
  background: #03834A;
  transform: translateX(-50%);
  z-index: 1;
}
.tbl7 .route-stops-grid::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 14px solid #03834A;
  z-index: 1;
}
.tbl7 .stop-col-header {
  background: #03834A;
  color: #fff;
  text-align: center;
  font-size: 0.95vh;
  font-weight: 700;
  padding: 0.35vh 0.3vw;
  border-bottom: 1px solid #ccc;
}
.tbl7 .stop-item {
  padding: 0.35vh 0.5vw;
  font-size: 1vh;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  border-bottom: 1px solid #e8e4c0;
  line-height: 1.2;
  text-align: left;
  background: #FFFDE8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tbl7 .stop-item.highlighted { background: #03834A; color: #fff; font-weight: 900; }
.tbl7 .stop-item.right-col   { text-align: right; }
.tbl7 .route-note {
  padding: 0.4vh 0.4vw;
  font-size: 0.85vh;
  color: #FD0302;
  border-top: 1px solid #ccc;
  background: #fffde8;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── MIDDLE: info panel + crte image ── */
.tbl7 .middle-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 3px solid #000;
  overflow: hidden;
}
.tbl7 .info-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  border-bottom: 3px solid #000;
}
.tbl7 .info-left {
  flex: 0 0 48%;
  background: #03834A;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #000;
}
.tbl7 .logo-bar {
  background: #03834A;
  padding: 0.9vh 0.7vw;
  display: flex;
  align-items: center;
  gap: 0.4vw;
  border-bottom: 2px solid #FED500;
  flex-shrink: 0;
}
.tbl7 .logo-icon {
  width: 3.2vh;
  height: 3.2vh;
  background: #FED500;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.8vh;
  color: #03834A;
  flex-shrink: 0;
}
.tbl7 .logo-text {
  color: #fff;
  font-size: 1.8vh;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.tbl7 .line-number-bar {
  background: #03834A;
  text-align: center;
  padding: 0.4vh 0 0.6vh;
  flex-shrink: 0;
}
.tbl7 .line-number-bar span {
  color: #fff;
  font-size: 9vh;
  font-weight: 900;
  line-height: 1;
}
.tbl7 .stop-block {
  background: #03834A;
  padding: 0.8vh 0.6vw;
  text-align: center;
  flex: 1;
}
.tbl7 .sidebar-label {
  font-size: 1.2vh;
  font-weight: 700;
  text-transform: uppercase;
  color: #FED500;
  line-height: 1.3;
}
.tbl7 .sidebar-label.white { color: #fff; }
.tbl7 .stop-name {
  font-size: 3vh;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 2px;
}
.tbl7 .stop-sub  { font-size: 1.2vh; color: #b6e0ca; font-weight: 400; margin-top: 1px; }
.tbl7 .zone-text { font-size: 2vh; font-weight: 700; color: #FED500; margin-top: 3px; }
.tbl7 .info-right { flex: 1; background: #FED500; display: flex; flex-direction: column; }
.tbl7 .info-section {
  padding: 0.8vh 0.6vw;
  border-bottom: 2px solid #000;
  text-align: center;
  flex-shrink: 0;
}
.tbl7 .info-label { font-size: 1.5vh; font-weight: 900; color: #03834A; text-transform: uppercase; }
.tbl7 .info-phone { font-size: 1.4vh; font-weight: 700; color: #03834A; margin-top: 2px; }
.tbl7 .info-email { font-size: 1.2vh; color: #03834A; }
.tbl7 .qr-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.7vh 0 0.4vh;
  border-bottom: 2px solid #000;
  flex-shrink: 0;
}
.tbl7 .qr-row img {
  background: #fff;
  padding: 4px;
  border-radius: 3px;
  border: 2px solid #03834A;
  width: 130px;
  height: 130px;
  display: block;
}
.tbl7 .qr-row-label {
  font-size: 1vh;
  font-weight: 700;
  color: #03834A;
  text-align: center;
  word-break: break-all;
  padding: 0 6px;
  line-height: 1.3;
}
.tbl7 .disclaimer {
  padding: 0.6vh 0.6vw;
  font-size: 0.95vh;
  color: #333;
  line-height: 1.4;
  text-align: left;
  flex: 1;
  overflow: hidden;
}
.tbl7 .img-crte { flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.tbl7 .img-crte img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ── RIGHT: tekst image ── */
.tbl7 .img-right { flex: 1; min-width: 0; height: 100%; overflow: hidden; background: #fff; }
.tbl7 .img-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

