/* Záznam návštěv (balík administrace). Pravidla pod .rd. Sdílené panely, tabulky a dlaždice jsou v admin.css.
   Administrace zůstává ve světlých barvách i při tmavém vzhledu webu (dark.css se na .rd-admin nevztahuje).
   Pásy dosahu a rámečky kliků jsou přes iframe, barvy jsou dané přímo, aby byly čitelné na světlé i tmavé stránce v náhledu. */

.rd .adm-rec .adm-form .input,
.rd .adm-rec .adm-form .select {
  max-width: 320px;
}

.rd .adm-rec .rec-note {
  margin: 0;
  color: var(--body-text);
}

.rd .adm-rec .rec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rd .adm-rec .table-wrap.tbl-wrap {
  overflow-x: auto;
}

@media (min-width: 701px) {
  .rd .adm-rec .table-wrap.visits table {
    min-width: 1280px;
  }
}

.rd .adm-rec tr.rec-on td {
  background: #eef3fb;
}

.rd .adm-rec .rec-click {
  cursor: pointer;
}

.rd .adm-rec .rec-sel {
  display: block;
  max-height: 3.6em;
  overflow: auto;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--body-text);
}

.rd .adm-rec .rec-miss {
  color: var(--warn);
  font-weight: 600;
}

.rd .adm-rec .rec-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: start;
}

.rd .adm-rec .rec-host {
  min-width: 0;
}

.rd .rec-stage {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #e8eaef;
}

@media (max-width: 700px) {
  .rd .adm-rec .sub-nav {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
  }
}

.rd .rec-frame {
  position: relative;
  transform-origin: top left;
  background: #fff;
}

.rd .rec-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.rd .rec-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rd .rec-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}

.rd .rec-status[hidden] {
  display: none;
}

.rd .rec-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--h, #3d7ea6);
  border-radius: 3px;
  background: rgba(61, 126, 166, .28);
  box-shadow: 0 0 0 1px #fff;
}

.rd .rec-box.h0 { --h: #3d7ea6; background: rgba(61, 126, 166, .28); }
.rd .rec-box.h1 { --h: #2a9d8f; background: rgba(42, 157, 143, .28); }
.rd .rec-box.h2 { --h: #c8960a; background: rgba(200, 150, 10, .32); }
.rd .rec-box.h3 { --h: #e07a2f; background: rgba(224, 122, 47, .32); }
.rd .rec-box.h4 { --h: #d64545; background: rgba(214, 69, 69, .32); }

.rd .rec-box.on {
  z-index: 2;
  border-width: 3px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy);
}

.rd .rec-box b {
  position: absolute;
  top: -11px;
  left: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--h, #3d7ea6);
  box-shadow: 0 0 0 1px #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.rd .rec-band {
  position: absolute;
  left: 0;
  right: 0;
}

.rd .rec-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  border-top: 2px dashed #e07a2f;
}

.rd .rec-line.fold {
  border-top-color: #069edb;
}

.rd .rec-line span {
  position: absolute;
  top: 4px;
  right: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 3px;
  background: #2d364c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.rd .rec-line.low span {
  top: auto;
  bottom: 4px;
}

.rd .rec-line.fold span {
  right: auto;
  left: 8px;
}

.rd .rec-mark {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  border: 2px solid #f6a71d;
  border-radius: 3px;
  background: rgba(246, 167, 29, .28);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2d364c;
}

.rd .rec-mark span {
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  max-width: 280px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 3px;
  background: #2d364c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd .adm-rec .rec-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--body-text);
  font-size: 12.5px;
  line-height: 18px;
}

.rd .adm-rec .rec-legend i {
  display: inline-block;
  width: 18px;
  height: 0;
  margin-right: 6px;
  border-top: 2px dashed #e07a2f;
  vertical-align: middle;
}

.rd .adm-rec .rec-legend i.fold {
  border-top-color: #069edb;
}

.rd .adm-rec .rec-cols {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 220px;
  margin-top: 8px;
}

.rd .adm-rec .rec-cols .col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.rd .adm-rec .rec-cols b {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
}

.rd .adm-rec .rec-cols .track {
  display: flex;
  flex: 1;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: var(--light-gray-color);
}

.rd .adm-rec .rec-cols i {
  display: block;
  width: 100%;
  background: var(--navy);
}

.rd .adm-rec .rec-cols .lbl {
  margin-top: 6px;
  color: var(--body-text);
  font-size: 12px;
}

.rd .adm-rec .rec-playon td {
  background: #fef6e8;
}

@media (max-width: 900px) {
  .rd .adm-rec .rec-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
