/* ilustrace ------------------------------------ */
.title-cont {
  align-items: flex-start;
}
.illustration-cont {
  align-items: flex-start;
}
.illustration {
  position: relative;
  transform: scale(0.9) translateX(10px);
  width: 900px;
  height: 500px;
}
@media screen and (max-width: 1408px) {
  .illustration-cont {
    margin-left: -8rem;
  }
  .illustration {
    transform: scale(0.8) translateX(70px);
  }
}
@media screen and (max-width: 1215px) {
  .illustration-cont {
    display: none;
  }
  .title-cont {
    display: block;
  }
}
.illustration > * {
  position: absolute;
}
.illustration > a {
  width: 140px;
  min-height: 48px !important;
  text-align: center;
  justify-content: center;
}
.illustration > a.is-active {
  background-color: var(--orange-bg);
  color: var(--orange);
}
.illustration > a.is-active:hover {
  color: white;
}
#zahrada_zem {
  margin-top: 80px;
  margin-left: 10px;
  z-index: 46;
}
#zahrada_ilustrace {
  margin-top: 55px;
  margin-left: 300px;
  z-index: 48;
}
#zahrada_A {
  margin-top: 275px;
  margin-left: 118px;
  z-index: 50;
}
#zahrada_B {
  margin-top: 100px;
  margin-left: 675px;
  z-index: 49;
}
#zahrada_C {
  margin-top: 100px;
  margin-left: 370px;
  z-index: 47;
}
#zahrada_D {
  margin-top: 103px;
  margin-left: 185px;
  z-index: 47;
}
#zahrada_button_C {
  margin-top: 10px;
  margin-left: 495px;
  z-index: 60;
}
#zahrada_button_D {
  margin-top: 140px;
  margin-left: 25px;
  z-index: 60;
}
#zahrada_button_B {
  margin-top: 273px;
  margin-left: 800px;
  z-index: 60;
}
#zahrada_button_A {
  margin-top: 453px;
  margin-left: 355px;
  z-index: 60;
}

/* sides table ---------------------------------------- */
.side:nth-child(even) {
  background-color: var(--blue-bg-2);
}
.side:nth-child(odd) {
  background-color: var(--blue-bg-1);
}
.side.is-active {
  background-color: var(--orange-bg);
  border-left: 4px solid var(--orange);
  margin-bottom: 0;
}
.side {
  width: 100%;
  padding: 1.2rem 1rem;
  justify-content: space-between !important;
  margin-bottom: 0.5rem;
}
.side .name {
  font-size: 24px;
  color: var(--blue);
  font-weight: 600;
  padding: 0 1rem;
  flex-shrink: 0;
}
.side .length {
  font-size: 20px;
  color: var(--orange);
  font-weight: 600;
  padding: 0 2rem;
  flex-shrink: 0;
}
.side .details {
  flex: 1;
  padding: 0 1rem;
  color: var(--blue);
}
.side .actions {
  padding: 0 0.5rem 0 1rem;
  flex-shrink: 0;
}
.side .actions .mobile {
  display: none;
}
.side .actions .btn.blue {
  margin-left: 0.5rem;
}
.side-visual {
  width: 100%;
  margin: -0.2rem 0 1.5rem 0;
  padding: 1.15rem 1.25rem 1.2rem;
  color: var(--blue);
  background-color: white;
  border: 1px solid var(--blue-bg-3);
}
.side-visual.is-active {
  border-color: var(--orange-bg);
  border-left: 4px solid var(--orange);
}
.side.is-active + .side-visual.is-active {
  margin-top: -1px;
}
.side-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.side-visual-orientation {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 130%;
}
.side-calc-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.side-calc-switch label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  cursor: pointer;
}
.side-calc-switch input[type="radio"] {
  width: 14px;
  height: 14px;
  border-radius: 14px;
}
.side-calc-switch input[type="radio"]::before {
  width: 6px;
  height: 6px;
  border-radius: 6px;
}
.side-visual-icons {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.side-visual-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 42px;
}
.side-visual-error-summary {
  width: 100%;
  display: block;
  min-height: 0;
}
.side-visual-error-summary .side-gate-error,
.side-visual-error-summary .side-segment-error-solutions {
  width: 100%;
}
.side-visual-summary-text {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  text-align: center;
}

.side-visual-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background-color: var(--blue-bg-1);
  border: 1px solid var(--blue-bg-3);
}
.side-visual-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.side-visual-icon::before {
  content: "";
  display: block;
}
.side-visual-icon-pletivo::before {
  width: 24px;
  height: 22px;
  border: 2px solid var(--blue);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 5px, rgba(45, 86, 105, 0.75) 5px, rgba(45, 86, 105, 0.75) 7px), repeating-linear-gradient(0deg, transparent 0, transparent 5px, rgba(45, 86, 105, 0.75) 5px, rgba(45, 86, 105, 0.75) 7px);
}
.side-visual-icon-sloupek::before {
  width: 7px;
  height: 28px;
  background-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(45, 86, 105, 0.12);
}
.side-visual-title {
  margin: 0;
  color: var(--blue);
  font-size: 19px;
  font-weight: 600;
}
.side-visual-subtitle {
  margin-top: 0.25rem;
  max-width: 58rem;
  color: var(--blue);
  font-size: 14px;
  line-height: 140%;
}
.side-visual-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.side-visual-length {
  color: var(--orange);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}
.side-info {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: var(--blue);
  cursor: pointer;
}
.side-info:hover {
  background-color: var(--blue-hover);
}
.side-info ion-icon {
  font-size: 24px;
}
.side-visual-diagram {
  display: flex;
  align-items: center;
  margin-top: 1.15rem;
  min-height: 92px;
  padding-bottom: 16px;
}
.side-visual-watermark {
  background-color: white;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("../images/pdf_vodoznak.jpg");
  background-position: center center;
  background-repeat: no-repeat, space;
  background-size: auto, contain;
}
.side-visual-drawings {
  display: flow-root;
  width: 100%;
  margin-inline: auto;
}
.side-post {
  width: max(6px, var(--side-post-width, 0%));
  height: 68px;
  flex-shrink: 0;
  background-color: var(--blue);
  transform: translateY(9px);
}
.side-fence-line {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 54px;
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  background-color: rgba(45, 86, 105, 0.03);
}
.side-visual.has-segments .side-visual-diagram {
  padding-bottom: 72px;
}
.side-fence-line.has-segments {
  border-color: transparent;
  background-color: transparent;
}
.side-visual-diagram.has-barbed-wire {
  margin-top: 2.3rem;
}
.side-barbed-wires {
  position: absolute;
  inset: 0;
  z-index: 5;
  color: #315f45;
  pointer-events: none;
}
.side-barbed-wires.is-zn {
  color: #69767c;
}
.side-barbed-wire-segment {
  position: absolute;
  top: -5px;
  height: 1px;
}
.side-barbed-wire-segment i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to bottom, transparent 2px, currentColor 2px 3px, transparent 3px);
}
.side-barbed-wire-segment i::before,
.side-barbed-wire-segment i::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: left center;
  background-repeat: repeat-x;
  background-size: 13px 5px;
}
.side-barbed-wire-segment i::before {
  background-image: linear-gradient(62deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}
.side-barbed-wire-segment i::after {
  background-image: linear-gradient(-62deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}
.side-barbed-wire-break {
  position: absolute;
  left: 50%;
  top: -20px;
  z-index: 2;
  width: 40px;
  height: 24px;
  background-color: white;
  transform: translateX(-50%);
}
.side-barbed-wire-tooltip.side-detail-tooltip {
  position: absolute;
  top: -30px;
  z-index: 6;
  height: 30px;
  min-width: 4px;
  pointer-events: auto;
  text-decoration: none;
}
.side-visual.has-segments .side-visual-diagram.has-foundations {
  padding-bottom: 98px;
}
.side-visual-diagram.has-foundations .side-plot-segment strong {
  bottom: -78px;
}
.side-foundations {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.side-foundation-tooltip.side-detail-tooltip {
  position: absolute;
  top: 61px;
  z-index: 5;
  width: 20px;
  height: 38px;
  pointer-events: auto;
  text-decoration: none;
  transform: translateX(-50%);
}
.side-foundation {
  position: absolute;
  top: 61px;
  display: block;
  transform: translateX(-50%);
}
.side-foundation-tooltip.is-edge-start {
  margin-left: -3px;
}
.side-foundation-tooltip.is-edge-end {
  margin-left: 3px;
}
.side-foundation-tooltip.is-boundary-zacatek {
  width: max(6px, var(--side-post-width, 0%));
  margin-left: 0;
  transform: none;
}
.side-foundation-tooltip.is-boundary-konec {
  width: max(6px, var(--side-post-width, 0%));
  margin-left: 0;
  transform: translateX(-100%);
}
.side-brace-tooltip.is-boundary-zacatek {
  margin-left: max(6px, var(--side-post-width, 0%));
}
.side-brace-tooltip.is-boundary-konec {
  margin-left: min(-6px, var(--side-post-width-negative, 0%));
}
.side-foundation-tooltip .side-foundation {
  left: 50%;
  top: 0;
}
.side-foundation-tooltip .side-foundation.is-base {
  top: 6px;
}
.side-foundation-tooltip .side-foundation.is-screw {
  top: -7px;
}
.side-foundation.is-base {
  width: 14px;
  height: 4px;
  background-color: var(--orange);
  border-radius: 1px;
}
.side-foundation.is-base::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 3px;
  height: 10px;
  background-color: var(--orange);
  transform: translateX(-50%);
}
.side-visual-diagram.has-bases .side-post {
  height: 64px;
  transform: translateY(4px);
}
.side-visual-diagram.has-bases .side-fence-posts span,
.side-visual-diagram.has-bases .side-segment-posts .side-segment-post {
  height: 56px;
}
.side-visual-diagram.has-bases .side-gate-post {
  height: 4px;
}
.side-visual-diagram.has-bases .side-foundation-tooltip {
  top: 52px;
}
.side-visual-diagram.has-bases .side-foundation.is-base::before {
  height: 4px;
}
.side-visual-diagram.has-bases .side-brace-tooltip .side-brace-foundation {
  top: 58px;
}
.side-brace-tooltip .side-brace-foundation {
  top: 67px;
  left: 50%;
}
.side-brace-tooltip .side-brace-foundation.is-screw {
  top: 54px;
}
.side-brace-tooltip .side-brace-foundation.is-vlevo {
  margin-left: -26px;
}
.side-brace-tooltip .side-brace-foundation.is-vpravo {
  margin-left: 26px;
}
.side-brace-tooltip .side-brace-foundation.is-base::before {
  left: calc(50% - 1.5px);
  height: 4px;
  transform-origin: 50% 100%;
}
.side-brace-tooltip .side-brace-foundation.is-base.is-vlevo::before {
  transform: rotate(28deg);
}
.side-brace-tooltip .side-brace-foundation.is-base.is-vpravo::before {
  transform: rotate(-28deg);
}
.side-foundation.is-screw {
  width: 8px;
  height: 29px;
  border: 1px solid #68767c;
  background: repeating-linear-gradient(165deg, #d8dddf 0 4px, #68767c 4px 5px, #d8dddf 5px 8px);
  border-radius: 1px 1px 50% 50%;
}
.side-foundation.is-screw::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 4px;
  border: 1px solid #68767c;
  background-color: #d8dddf;
  transform: translateX(-50%);
}
.side-foundation.is-screw.is-70 {
  height: 36px;
}
.side-plot-segments {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.side-plot-segment {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  height: 54px;
  min-width: 1px;
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  border-left: 1px solid rgba(45, 86, 105, 0.4);
  border-right: 1px solid rgba(45, 86, 105, 0.4);
  background-color: rgba(45, 86, 105, 0.035);
}
.side-plot-segment-tooltip.side-detail-tooltip {
  position: absolute;
  top: 0;
  z-index: 0;
  height: 54px;
  min-width: 1px;
  pointer-events: auto;
  text-decoration: none;
}
.side-plot-segment-tooltip > .side-plot-segment {
  left: 0;
  width: 100%;
  pointer-events: none;
}
.side-edge-spacing-alert.side-detail-tooltip {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  z-index: 4;
  height: 3px;
  min-width: 3px;
  border-top: 3px solid #b42318;
  pointer-events: auto;
  text-decoration: none;
}
.side-edge-spacing-alert > span {
  position: absolute;
  left: 50%;
  top: -18px;
  color: #b42318;
  font-size: 14px;
  line-height: 1;
  transform: translateX(-50%);
}
.side-edge-spacing-alert ion-icon {
  display: block;
}
.side-plot-segment strong {
  position: absolute;
  left: 50%;
  bottom: -52px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}
.side-plot-segment.is-long {
  background: linear-gradient(90deg, rgba(45, 86, 105, 0.075), rgba(45, 86, 105, 0.015) 38%, rgba(45, 86, 105, 0.015) 62%, rgba(45, 86, 105, 0.075));
}
.side-plot-segment.has-fit-error,
.side-plot-segment.is-long.has-fit-error {
  border-color: #b5402d;
  background: rgba(213, 72, 61, 0.18);
  box-shadow: inset 0 0 0 1px rgba(181, 64, 45, 0.42);
}
.side-plot-segment.is-long::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 36px;
  background: white;
  transform: translateX(-50%);
  z-index: 1;
}
.side-plot-segment-break {
  position: absolute;
  left: 50%;
  top: 64%;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.side-plot-segment-length {
  position: absolute;
  left: 50%;
  top: 4px;
  z-index: 3;
  padding: 0.06rem 0.25rem;
  color: var(--blue);
  background: white;
  border: 1px solid rgba(45, 86, 105, 0.18);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(45, 86, 105, 0.06);
  transform: translateX(-50%);
  white-space: nowrap;
}
.side-plot-gate-opening.side-detail-tooltip,
.side-plot-gate-overlap-tooltip.side-detail-tooltip {
  box-sizing: border-box;
  display: block;
  position: absolute;
  top: 0;
  height: 54px;
  min-width: 2px;
  cursor: help;
  pointer-events: auto;
  text-decoration: none;
}
.side-plot-gate-opening.side-detail-tooltip {
  z-index: 2;
  border: 2px solid var(--orange);
  background: transparent;
}
.side-plot-gate-overlap-tooltip.side-detail-tooltip {
  z-index: 3;
}
.side-plot-gate-overlap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--orange);
  pointer-events: none;
}
.side-plot-gate-overlap::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 139, 0, 0.34) 0 6px, rgba(255, 255, 255, 0.86) 6px 11px);
  box-shadow: inset 0 -2px 0 var(--orange);
}
.side-plot-gate-overlap.is-vlevo {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.side-plot-gate-overlap.is-vlevo::before {
  right: 2px;
  left: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.side-plot-gate-overlap.is-vpravo {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.side-plot-gate-overlap.is-vpravo::before {
  right: 0;
  left: 2px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.side-plot-gate-opening-arrow {
  position: absolute;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 54px;
  color: var(--orange);
  pointer-events: none;
}
.side-plot-gate-opening-arrow.is-vlevo {
  transform: translateX(calc(-100% - 4px));
}
.side-plot-gate-opening-arrow.is-vpravo {
  transform: translateX(4px);
}
.side-plot-gate-opening-arrow ion-icon {
  flex: 0 0 auto;
  font-size: 36px;
  stroke-width: 48px;
}
.side-underboards {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.side-underboard.side-detail-tooltip {
  box-sizing: border-box;
  position: absolute;
  bottom: -3px;
  height: 10px;
  min-width: 2px;
  border: 1px solid rgba(80, 91, 96, 0.72);
  background: rgba(116, 124, 128, 0.82);
  pointer-events: auto;
  text-decoration: none;
}
.side-underboard.side-detail-tooltip:hover {
  background: rgba(80, 91, 96, 0.95);
}
.side-underboard-break {
  position: absolute;
  bottom: -3px;
  width: 36px;
  height: 10px;
  background: white;
  transform: translateX(-50%);
}
.side-plot-short-pieces {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.side-plot-short-piece {
  box-sizing: border-box;
  position: absolute;
  top: 3px;
  height: 48px;
  min-width: 7px;
  border: 1px solid rgba(63, 152, 207, 0.55);
  background: rgba(117, 190, 235, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  cursor: pointer;
  pointer-events: auto;
}
.side-plot-short-piece:hover {
  border-color: rgba(30, 123, 184, 0.95);
  background: rgba(117, 190, 235, 0.42);
}
.side-plot-short-piece.is-overlap-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.side-plot-short-piece.is-overlap-panel em {
  position: relative;
  z-index: 3;
  max-width: calc(100% - 6px);
  overflow: hidden;
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-plot-overlap-area {
  box-sizing: border-box;
  position: absolute;
  top: 3px;
  z-index: 2;
  height: 48px;
  min-width: 3px;
  border: 1px solid rgba(218, 162, 0, 0.75);
  background-color: rgba(255, 218, 49, 0.72);
  pointer-events: none;
}
.side-braces {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.side-brace-tooltip.side-detail-tooltip {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 20px;
  height: 54px;
  pointer-events: auto;
  text-decoration: none;
  transform: translateX(-50%);
}
.side-brace {
  position: absolute;
  top: 33.333%;
  width: 4px;
  height: 76%;
  margin-left: -2px;
  border-radius: 0;
  background-color: #00ff64;
  box-shadow: 0 0 0 1px #00481f;
  transform-origin: 50% 0;
}
.side-brace-tooltip .side-brace {
  left: 50%;
}
.side-visual-diagram.has-underboards .side-brace {
  height: 52%;
}
.side-brace.is-vlevo {
  transform: rotate(28deg);
}
.side-brace.is-vpravo {
  transform: rotate(-28deg);
}
.side-horizontal-brace {
  position: absolute;
  top: 9px;
  z-index: 1;
  height: 4px;
  min-width: 4px;
  background-color: #00ff64;
  box-shadow: 0 0 0 1px #00481f;
  pointer-events: none;
}
.side-horizontal-brace-tooltip.side-detail-tooltip {
  position: absolute;
  top: 1px;
  z-index: 2;
  height: 20px;
  min-width: 4px;
  pointer-events: auto;
  text-decoration: none;
}
.side-horizontal-brace-tooltip .side-horizontal-brace {
  left: 0;
  top: 8px;
  width: 100%;
}
.side-short-piece-note {
  display: inline-block;
  padding: 0 0.22rem;
  color: black;
  background: rgba(117, 190, 235, 0.28);
  border-radius: 2px;
}
.side-fence-line.has-segments .side-fence-posts,
.side-fence-line.has-segments .side-missing-posts {
  display: none;
}
.side-meter-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 34px;
  z-index: 2;
  pointer-events: none;
}
.side-meter-ticks span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 17px;
  background-color: rgba(45, 86, 105, 0.44);
  transform: translateX(-50%);
}
.side-meter-ticks em {
  position: absolute;
  left: 50%;
  top: 34px;
  color: rgba(45, 86, 105, 0.62);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  transform: translateX(-50%);
}
@media screen and (max-width: 900px) {
  .side-meter-ticks span {
    display: none;
  }
  .side-meter-ticks span.is-tablet {
    display: block;
  }
}
@media screen and (max-width: 560px) {
  .side-plot-segment strong {
    bottom: -50px;
    font-size: 17px;
  }
  .side-meter-ticks span.is-tablet {
    display: none;
  }
  .side-meter-ticks span.is-mobile {
    display: block;
  }
}

.side-missing-posts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.side-missing-posts span {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 56px;
  background-color: #f2eec7;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
}

.side-fence-posts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.side-fence-posts span {
  position: absolute;
  top: 2px;
  width: max(6px, var(--side-post-width, 0%));
  height: 65px;
  background-color: var(--blue);
  border-radius: 1px;
  box-shadow: 0 0 0 1px white;
  transform: translateX(-50%);
}
.side-segment-posts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.side-segment-posts .side-segment-post {
  position: absolute;
  top: 2px;
  width: max(6px, var(--side-post-width, 0%));
  height: 65px;
  background-color: rgba(45, 86, 105, 0.78);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
}
.side-segment-posts .side-segment-post.is-boundary-zacatek {
  transform: none;
}
.side-segment-posts .side-segment-post.is-boundary-konec {
  transform: translateX(-100%);
}

.side-fence-label {
  position: absolute;
  left: 0.75rem;
  top: -1.55rem;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.side-gates {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.side-gates.is-overflow {
  overflow: visible;
}
.side-gate-chip {
  box-sizing: border-box;
  position: absolute;
  top: calc(50% - 25px);
  bottom: calc(100% - 54px);
  min-width: 8px;
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: var(--orange);
  border-radius: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 130%;
  box-shadow: inset 2px 0 0 var(--blue), inset -2px 0 0 var(--blue);
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
.side-gate-chip.side-detail-tooltip {
  position: absolute;
  text-decoration: none;
}
.side-gate-chip.side-detail-tooltip::after {
  max-width: min(360px, calc(100vw - 2rem));
}
.side-gate-gap {
  box-sizing: border-box;
  position: absolute;
  top: calc(50% - 25px);
  bottom: calc(100% - 54px);
  min-width: 1px;
  background-color: #f2eec7;
  border: 0;
  box-shadow: none;
  z-index: 1;
  pointer-events: auto;
}
.side-gate-post {
  position: absolute;
  top: 54px;
  width: max(6px, var(--side-post-width, 0%));
  height: 13px;
  background-color: rgba(45, 86, 105, 0.78);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  z-index: 3;
}
.side-gate-post.is-end {
  transform: translateX(-100%);
}
.side-gate-chip.is-overflow {
  background-color: #b5402d;
}
.side-gate-chip span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.side-gate-error {
  margin-top: 0.5rem;
  color: #b5402d;
  background-color: yellow;
  font-size: 14px;
  font-weight: 600;
}
.side-segment-error-solutions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.55rem 0 0.85rem;
  color: var(--blue);
  font-size: 14px;
  line-height: 140%;
}
.side-segment-error-block + .side-segment-error-block {
  margin-top: 1rem;
}
.side-segment-error-block {
  width: 100%;
  max-width: 76rem;
}
.side-segment-error-block > .side-gate-error {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--orange);
  background-color: #fff6c5;
  line-height: 140%;
}
.side-segment-solution-status {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--orange);
  background-color: #fff6c5;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.side-segment-solution-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  background-color: #f8fafb;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.side-segment-solution-row:hover {
  border-color: var(--blue-bg-3);
  background-color: white;
}
.side-segment-solution-letter {
  flex: 0 0 1.5rem;
}
.side-segment-solution-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.side-segment-solution-button.btn {
  width: auto;
  max-width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--blue);
  white-space: normal;
  text-align: left;
  line-height: 140%;
  transition: color 160ms ease;
}
.side-segment-solution-button.btn:hover {
  background-color: transparent;
  color: var(--orange);
}
.side-segment-solution-choice {
  display: grid;
  grid-template-columns: 1.5rem 20px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  background-color: #f8fafb;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.side-segment-solution-choice:hover {
  border-color: var(--blue-bg-3);
  background-color: white;
}
.side-segment-solution-choice.is-active {
  border-color: var(--orange);
  background-color: var(--orange-bg);
  box-shadow: inset 3px 0 0 var(--orange);
}
.side-segment-solution-choice.is-active strong,
.side-segment-solution-choice.is-active span {
  color: var(--blue);
}
.side-segment-solution-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--orange);
}
.side-segment-error-solutions strong {
  color: var(--orange);
}
.side-gate-chip em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
}
.side-real-ruler-wrap {
  display: flex;
  align-items: flex-start;
  margin: 0.35rem 0 1.1rem;
  min-height: 46px;
}
.side-real-ruler-edge {
  width: 9px;
  flex-shrink: 0;
}
.side-real-ruler-line {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 18px;
  border-top: 4px solid rgba(45, 86, 105, 0.92);
}
.side-real-ruler-ticks,
.side-real-ruler-posts,
.side-real-ruler-braces,
.side-real-ruler-horizontal-braces,
.side-real-ruler-gates,
.side-real-ruler-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.side-real-ruler-ticks span {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 13px;
  background: rgba(45, 86, 105, 0.45);
  transform: translateX(-50%);
}
.side-real-ruler-posts .side-real-ruler-post {
  position: absolute;
  top: -10px;
  z-index: 2;
  width: max(3px, var(--side-real-post-width, 0%));
  height: 18px;
  border-radius: 1px;
  background-color: rgba(45, 86, 105, 0.82);
  box-shadow: 0 0 0 1px white;
  transform: translateX(-50%);
}
.side-real-ruler-posts .side-real-ruler-post.is-boundary-zacatek {
  transform: none;
}
.side-real-ruler-posts .side-real-ruler-post.is-boundary-konec {
  transform: translateX(-100%);
}
.side-real-ruler-posts .side-real-ruler-post.has-brace {
  border-radius: 0;
  background-color: #00ff64;
  box-shadow: 0 0 0 1px #00481f;
}
.side-real-ruler-posts .side-real-ruler-post.is-gate {
  background-color: var(--orange);
}
.side-real-ruler-horizontal-brace-tooltip.side-detail-tooltip {
  position: absolute;
  top: -14px;
  z-index: 1;
  height: 12px;
  min-width: 3px;
  pointer-events: auto;
  text-decoration: none;
}
.side-real-ruler-horizontal-brace {
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  height: 3px;
  min-width: 3px;
  background-color: #00ff64;
  box-shadow: 0 0 0 1px #00481f;
}
.side-real-ruler-brace-tooltip.side-detail-tooltip {
  position: absolute;
  top: -10px;
  z-index: 1;
  width: 16px;
  height: 20px;
  pointer-events: auto;
  text-decoration: none;
  transform: translateX(-50%);
}
.side-real-ruler-brace-tooltip.is-boundary-zacatek {
  margin-left: max(3px, var(--side-real-post-width, 0%));
}
.side-real-ruler-brace-tooltip.is-boundary-konec {
  margin-left: min(-3px, var(--side-real-post-width-negative, 0%));
}
.side-real-ruler-brace {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 18.9px;
  margin-left: -2px;
  border-radius: 0;
  background-color: #00ff64;
  box-shadow: 0 0 0 1px #00481f;
  transform-origin: 50% 0;
}
.side-real-ruler-brace.is-vlevo {
  transform: rotate(28deg);
}
.side-real-ruler-brace.is-vpravo {
  transform: rotate(-28deg);
}
.side-real-ruler-gates {
  z-index: 3;
}
.side-real-ruler-labels {
  z-index: 4;
}
.side-real-ruler-gates .side-real-ruler-gate {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 23px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 0 1px white;
  transform: translateX(-50%);
}
.side-real-ruler-label {
  position: absolute;
  top: 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}
.side-real-ruler-label.is-gate {
  top: -26px;
  color: var(--orange);
}
.side-real-ruler-label.is-start {
  transform: translateX(-50%);
}
.side-real-ruler-label.is-end {
  transform: translateX(-100%);
}
.side-continuity-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0.15rem 0 1rem;
  color: var(--blue);
  font-size: 13px;
  line-height: 140%;
}
.side-continuity-option {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 46%;
  cursor: pointer;
}
.side-continuity-option.is-end {
  justify-content: flex-end;
  text-align: right;
}
.side-continuity-option input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.05rem;
}
.side-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem 2rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(45, 86, 105, 0.16);
  border-bottom: 1px solid rgba(45, 86, 105, 0.16);
}
.side-detail-column {
  min-width: 0;
}
.side-detail-column-gates {
  order: 2;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(45, 86, 105, 0.16);
}
.side-detail-column-segments {
  order: 1;
}
.side-detail-column:only-child {
  grid-column: 1 / -1;
}
.side-detail-column-gates:only-child {
  padding-left: 0;
  border-left: 0;
}
.side-detail-table-section h4 {
  margin: 0 0 0.45rem;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.side-detail-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.side-detail-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
}
.side-detail-table th,
.side-detail-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.side-detail-table th {
  border-bottom: 2px solid rgba(45, 86, 105, 0.22);
  background: rgba(45, 86, 105, 0.06);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.side-detail-table td {
  border-bottom: 1px solid rgba(45, 86, 105, 0.14);
}
.side-detail-table tbody tr:last-child td {
  border-bottom: 0;
}
.side-detail-table tbody tr:hover td {
  background: rgba(45, 86, 105, 0.035);
}
.side-detail-cell-number,
.side-detail-cell-segment {
  width: 1%;
  white-space: nowrap;
  color: var(--orange);
  font-weight: 800;
}
.side-detail-cell-name {
  overflow-wrap: anywhere;
}
.side-detail-cell-extra,
.side-detail-cell-position,
.side-detail-cell-length,
.side-detail-cell-spacing {
  width: 1%;
  white-space: nowrap;
}
.side-detail-table-segments td.side-detail-cell-spacing {
  white-space: normal;
}
.side-detail-table-segments td.side-detail-cell-spacing small {
  font-size: 0.82em;
  white-space: nowrap;
}
.side-detail-cell-short {
  white-space: nowrap;
}
.side-detail-value-empty {
  color: rgba(45, 86, 105, 0.55);
}
.side-detail-tooltip {
  position: relative;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(45, 86, 105, 0.58);
  text-underline-offset: 3px;
}
.side-detail-table th .side-detail-tooltip {
  color: inherit;
  font: inherit;
}
.side-detail-tooltip::before,
.side-detail-tooltip::after,
.side-detail-tooltip-content {
  position: absolute;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.side-detail-tooltip::after {
  content: attr(data-title);
}
.side-detail-tooltip::after,
.side-detail-tooltip-content {
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(310px, calc(100vw - 2rem));
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(45, 86, 105, 0.72);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  background: white;
  box-shadow: 0 5px 14px rgba(45, 86, 105, 0.2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  transform: translateX(-50%);
}
.side-detail-tooltip-html::after {
  content: none;
}
.side-detail-tooltip-html {
  display: inline-block;
}
.side-detail-tooltip-content {
  display: block;
}
.side-detail-tooltip-content,
.side-detail-tooltip-content * {
  font-size: 11px;
}
.side-detail-tooltip-edge-spacing,
.side-detail-tooltip-edge-spacing > span {
  display: block;
}
.side-detail-tooltip-edge-spacing:not(:empty) {
  margin-top: 0.35rem;
}
.side-detail-tooltip-list-title {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
}
.side-detail-tooltip-list {
  margin: 0.12rem 0 0;
  padding-left: 0.65rem;
  list-style: none;
}
.side-detail-tooltip-content .side-detail-tooltip-list li {
  margin-left: 0;
  list-style: none;
}
.side-detail-tooltip-content .side-detail-tooltip-list li + li {
  margin-top: 0.08rem;
}
.side-detail-tooltip-multiline::after {
  white-space: pre-line;
}
.side-detail-tooltip::before {
  content: "";
  left: 50%;
  bottom: calc(100% + 1px);
  border: 7px solid transparent;
  border-top-color: rgba(45, 86, 105, 0.72);
  transform: translateX(-50%);
}
.side-tooltip-align-start.side-detail-tooltip::after {
  left: 0;
  transform: none;
}
.side-tooltip-align-start.side-detail-tooltip::before {
  left: 4px;
  transform: none;
}
.side-tooltip-align-end.side-detail-tooltip::after {
  right: 0;
  left: auto;
  transform: none;
}
.side-tooltip-align-end.side-detail-tooltip::before {
  right: 4px;
  left: auto;
  transform: none;
}
.side-visual-drawings .side-detail-tooltip {
  pointer-events: auto;
  font-style: normal;
  text-decoration: none;
}
.side-visual-drawings .side-plot-short-piece.side-detail-tooltip,
.side-visual-drawings .side-plot-overlap-area.side-detail-tooltip,
.side-visual-drawings .side-segment-post.side-detail-tooltip,
.side-visual-drawings .side-gate-gap.side-detail-tooltip,
.side-visual-drawings .side-gate-post.side-detail-tooltip,
.side-visual-drawings .side-real-ruler-post.side-detail-tooltip,
.side-visual-drawings .side-real-ruler-gate.side-detail-tooltip,
.side-visual-drawings .side-real-ruler-label.side-detail-tooltip {
  position: absolute;
}
.side-detail-tooltip:hover::before,
.side-detail-tooltip:hover::after,
.side-detail-tooltip:hover .side-detail-tooltip-content,
.side-detail-tooltip:focus::before,
.side-detail-tooltip:focus::after,
.side-detail-tooltip:focus .side-detail-tooltip-content {
  visibility: visible;
  opacity: 1;
}
.side-detail-cell-segment .side-detail-tooltip::after {
  left: -0.5rem;
  transform: none;
}
.side-detail-cell-segment .side-detail-tooltip::before {
  left: 0.2rem;
  transform: none;
}
.side-gate-list-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(45, 86, 105, 0.3);
  text-underline-offset: 2px;
}
.side-gate-list-link:hover {
  color: var(--orange);
}
.side-gate-list-gap {
  display: inline-block;
  padding: 0 0.22rem;
  color: black;
  background: #f2eec7; /* #c9f2c7; */
  border-radius: 2px;
  font-weight: 400;
}
.side-gate-list-start {
  color: var(--orange);
  font-weight: 400;
}
.side-visual-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  /*border-top: 1px solid rgba(45, 86, 105, 0.16);*/
  color: var(--blue);
  font-size: 12px;
  line-height: 1.25;
}
.side-visual-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
}
.side-visual-legend-swatch {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid transparent;
}
.side-visual-legend-swatch.is-yellow {
  border-color: #d9ce70;
  background-color: #f2eec7;
}
.side-visual-legend-swatch.is-green {
  border-color: #00481f;
  background-color: #00ff64;
}
.side-visual-legend-swatch.is-blue {
  border-color: rgba(63, 152, 207, 0.55);
  background-color: rgba(117, 190, 235, 0.28);
}
.side-visual-legend-swatch.is-orange {
  border-color: #c96c00;
  background-color: var(--orange);
}
.side-visual-legend-swatch.is-dark-blue {
  border-color: black;
  background-color: var(--blue);
}
.side-gate-edit-modal .modal-content {
  width: min(1320px, calc(100vw - 3rem)) !important;
}
.side-segment-edit-modal .modal-content {
  width: min(820px, calc(100vw - 3rem)) !important;
}
.side-gate-edit-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.side-gate-position-visual {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  border: 1px solid #d8e0e4;
  background: #f5f8fa;
}
.side-gate-position-line {
  position: absolute;
  left: 58px;
  right: 60px;
  top: 76px;
  height: 5px;
  background: var(--blue);
}
.side-gate-position-post,
.side-gate-position-gate-post {
  position: absolute;
  top: 38px;
  width: 14px;
  height: 76px;
  background: var(--blue);
}
.side-gate-position-post.is-left {
  left: 58px;
}
.side-gate-position-gate-post {
  left: 48%;
  background: #27815d;
}
.side-gate-position-gate {
  position: absolute;
  left: calc(48% + 14px);
  top: 48px;
  width: 210px;
  height: 58px;
  border: 6px solid #27815d;
  background:
    linear-gradient(135deg, transparent 46%, rgba(39, 129, 93, 0.35) 47%, rgba(39, 129, 93, 0.35) 53%, transparent 54%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 46%, rgba(39, 129, 93, 0.35) 47%, rgba(39, 129, 93, 0.35) 53%, transparent 54%) 0 0 / 18px 18px,
    #fff;
}
.side-gate-position-arrow {
  position: absolute;
  left: 80px;
  right: calc(52% + 6px);
  top: 38px;
  height: 0;
  border-top: 2px solid var(--orange);
}
.side-gate-position-arrow::before,
.side-gate-position-arrow::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--orange);
}
.side-gate-position-arrow::before {
  left: 0;
  border-left: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.side-gate-position-arrow::after {
  right: 0;
  border-right: 2px solid var(--orange);
  transform: rotate(45deg);
}
.side-gate-position-label {
  position: absolute;
  left: 88px;
  top: 12px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
}
.side-gate-edit-panel {
  padding: 1.25rem;
  background: #f0f3f5;
  border-left: 6px solid var(--orange);
}
.side-gate-edit-panel h3,
.side-gate-edit-rozmery h3 {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 130%;
}
.side-gate-edit-panel p {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 15px;
  line-height: 150%;
}
.side-gate-edit-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-weight: 700;
}
.side-gate-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.side-gate-edit-helper-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.side-gate-edit-helper {
  min-height: 28px;
  padding: 0.45rem 0.75rem;
  border: 2px solid rgba(45, 86, 105, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue);
  background: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 130%;
}
.side-gate-edit-helper:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.side-gate-edit-helper ion-icon {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 18px;
}
.side-gate-edit-helper-note {
  color: rgba(45, 86, 105, 0.72);
  font-size: 12px;
  line-height: 130%;
}
.side-segment-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1rem;
}
.side-segment-choice {
  min-height: 58px;
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(45, 86, 105, 0.22);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue);
  background: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.side-segment-choice:hover {
  border-color: var(--orange);
}
.side-segment-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}
.side-segment-edit-actions {
  margin-top: 0.4rem;
}
.side-gate-edit-panel .btn {
  color: white !important;
}
.side-gate-edit-panel .btn:hover {
  color: white !important;
}
.side-gate-edit-panel .btn ion-icon,
.side-gate-edit-panel .btn span {
  color: inherit;
}
.side-gate-edit-input-wrap {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-right: 0.85rem;
  border: 2px solid var(--orange);
  background: #fff800;
}
.side-gate-edit-input-wrap span {
  padding: 0 0.8rem 0 0.2rem;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}
.side-gate-edit-input {
  width: 160px;
  min-height: 46px;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}
.side-gate-edit-rozmery {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.25rem;
  background: #f0f3f5;
}
.atyp_report_wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  box-sizing: border-box;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.atyp_report_text {
  flex: 0 1 380px;
  min-width: 260px;
  max-width: 380px;
  box-sizing: border-box;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.atyp_report_img_wrap {
  flex: 0 1 350px;
  min-width: 250px;
  max-width: 350px;
  box-sizing: border-box;
}
.atyp_report_img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
}
.atyp_report_table_wrap {
  flex: 1 1 760px;
  min-width: 260px;
  max-width: 760px;
  box-sizing: border-box;
}
.atyp_report_table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.atyp_report_cell {
  padding: 4px 8px !important;
  border: 1px solid #ddd !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  vertical-align: top !important;
}
.atyp_report_cell_code {
  text-align: left !important;
  white-space: nowrap !important;
}
.atyp_report_cell_value {
  text-align: right !important;
  white-space: nowrap !important;
}
.atyp_report_cell_text {
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}
.atyp_report_row_input {
  background: #fff8d5;
  font-weight: bold;
}
.atyp_report_row_total {
  background: var(--orange-bg);
  font-weight: bold;
}
.side-gate-edit-rozmery .atyp_report_table_wrap {
  flex: 1 0 100% !important;
  max-width: 100%;
  overflow-x: auto;
}
.side-gate-edit-rozmery .atyp_report_table {
  max-width: 100%;
}
.side-gate-edit-rozmery > .atyp-rozmery > div:last-child {
  flex: 1 0 100% !important;
  max-width: 100%;
  overflow-x: auto;
}
.side-gate-edit-rozmery table.atyp-rozmery {
  max-width: 100%;
}
@media print {
  .atyp_report_table,
  .atyp_report_table th,
  .atyp_report_table td {
    border: 1px solid black !important;
  }

  .side-visual,
  .side-visual * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .side-visual-head,
  .side-visual-diagram,
  .side-real-ruler-wrap,
  .side-continuity-options,
  .side-detail-columns {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .side-visual-drawings {
    overflow: visible !important;
  }
}
@media screen and (max-width: 900px) {
  .side-gate-edit-modal .modal-content,
  .side-segment-edit-modal .modal-content {
    width: calc(100vw - 1rem) !important;
  }
  .side-segment-choice-row {
    grid-template-columns: 1fr;
  }
  .side-segment-solution-row,
  .side-segment-solution-actions {
    width: 100%;
  }
  .side-segment-solution-button.btn {
    flex: 1 1 100%;
  }
  .side-gate-position-gate {
    width: 140px;
  }
}
.side-visual-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  margin-top: 0.85rem;
  font-size: 14px;
  line-height: 140%;
}
.side-visual-meta p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 1024px) {
  .side .details {
    display: none;
  }
  .side .length {
    padding: 0 1rem;
    flex: 1;
  }
}
@media screen and (max-width: 610px) {
  .side {
    padding: 1rem 1rem;
  }
  .side .name {
    font-size: 20px;
    padding: 0;
  }
  .side .length {
    font-size: 16px;
    padding: 0;
    padding-left: 2rem;
  }
  .side .actions {
    padding: 0;
  }
  .side .actions .mobile {
    display: flex;
    width: 2.8rem;
    height: 2.8rem;
  }
  .side .actions .mobile ion-icon {
    font-size: 1.2rem;
    --ionicon-stroke-width: 40px;
    color: white;
  }
  .side .actions .mobile.orange {
    background-color: var(--orange);
  }
  .side .actions .mobile.blue {
    background-color: var(--blue);
    margin-left: 0.5rem;
  }
  .side .actions .btn {
    display: none;
  }
  .side-visual {
    padding: 0.85rem;
  }
  .side-visual-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .side-visual-orientation {
    width: 100%;
    font-size: 12px;
  }
  .side-visual-title {
    font-size: 17px;
  }
  .side-visual-subtitle {
    display: none;
  }
  .side-fence-posts span {
    height: 65px;
  }
  .side-segment-posts .side-segment-post {
    height: 65px;
  }
  .side-visual-length {
    font-size: 16px;
  }
  .side-info {
    width: 38px;
    height: 38px;
  }
  .side-visual-diagram {
    min-height: 66px;
  }
  .side-post {
    height: 68px;
    transform: translateY(12px);
  }
  .side-fence-line {
    height: 48px;
  }
  .side-fence-label {
    display: none;
  }
  .side-gate-chip {
  box-sizing: border-box;
    min-width: 8px;
  }
  .side-real-ruler-wrap {
    min-height: 42px;
    margin-bottom: 0.9rem;
  }
  .side-continuity-options {
    gap: 0.75rem;
    font-size: 12px;
  }
  .side-real-ruler-label {
    font-size: 10px;
  }
  .side-real-ruler-gates .side-real-ruler-gate {
    width: 3px;
    height: 20px;
  }
	.side-real-ruler-posts .side-real-ruler-post {
	  width: max(2px, var(--side-real-post-width, 0%));
	  height: 16px;
	}
	.side-real-ruler-brace {
	  height: 16px;
	}
  .side-visual-meta {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .side-visual-icon {
    width: 36px;
    height: 36px;
  }
  .side-visual-icon-pletivo::before {
    width: 22px;
    height: 20px;
  }
  .side-visual-icon-sloupek::before {
    height: 24px;
  }
  .side-detail-columns {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .side-detail-column-gates {
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid rgba(45, 86, 105, 0.16);
  }
  .side-detail-column-gates:only-child {
    padding-top: 0;
    border-top: 0;
  }
  .side-detail-table {
    font-size: 11px;
  }
  .side-detail-table-wrap {
    overflow-x: auto;
  }
  .side-detail-table th,
  .side-detail-table td {
    padding: 0.4rem 0.35rem;
  }
  .side-detail-cell-short {
    white-space: normal;
  }

}

.small-font * {
  font-size: 12px;
}

.overview .divider {
  margin: 4rem 0 2rem 0;
  width: 100%;
  height: 1px;
  background-color: var(--blue-bg-3);
}

/* comp table ---------------------------------------- */
.table-header {
  background-color: var(--blue);
  color: white;
  display: flex;
  margin-bottom: 0.5rem;
}
.table-header > div {
  padding: 1rem;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 140%;
}
.col-photo {
  width: 13rem;
  flex-shrink: 0;
}
.table-row img {
  width: 11rem !important;
  height: 6rem !important;
  object-fit: cover;
}
.col-fixed {
  width: 9rem;
  flex-shrink: 0;
}
.col-fill {
  flex: 1;
}
.col-name {
  flex: 1.5;
  font-weight: 600;
}
.table-row {
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-weight: 500;
}
.table-result {
  padding: 0.5rem 0;
  color: var(--blue);
  font-weight: 500;
  background-color: var(--orange-bg);
}
.table-result > div {
  padding: 1rem;
  text-align: center;
}
.table-result > .sum {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.table-result > .sum p,
.table-result > .sum b {
  max-width: 100%;
  white-space: normal !important;
}
.table-result > .col-fill {
  font-size: 14px;
}
.table-row > div {
  padding: 1rem;
}
.table-row:nth-of-type(even) {
  background-color: var(--blue-bg-1);
}
.table-row:nth-of-type(odd) {
  background-color: var(--blue-bg-2);
}
.col-fixed {
  text-align: center;
}
.table-row .smaller {
  font-size: 14px;
}

.table-btn {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-size: 14px;
  padding: 0 0.8rem;
  font-weight: 600;
  text-align: center;
}

.table-row:nth-of-type(even) .table-btn {
  background-color: var(--blue-bg-2);
}
.table-row:nth-of-type(odd) .table-btn {
  background-color: var(--blue-bg-1);
}


.table-btn.full-width {
  width: 100%;
}
.table-btn:hover {
  cursor: pointer;
  background-color: var(--blue-hover-2);
}
.table-row .flex-row input {
  width: calc(100% - 2rem);
  min-width: 60px;
  margin-right: 0.5rem;
  height: 35px;
  border: 1px var(--blue-bg-3) solid;
  padding: 0 0.6rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-radius: 0;
}

/* Varianta rekapitulace urcena pouze k tisku neobsahuje ceny ani ovladani mnozstvi. */
.price-table--print .table-row > .col-fixed,
.price-table--print .table-row > th,
.price-table--print .table-result > .col-fixed,
.price-table--print .table-row > .col-fill.show-big-screen + .col-fill.show-big-screen,
.price-table--print .quantity-adjustment,
.price-table--print .quantity-adjustment-responsive,
.price-table--print .table-btn,
.price-table--print .table-input,
.price-table--print input[type="button"] {
  display: none !important;
}

@media screen and (max-width: 1000px) {
  .price-table--print .quantity-adjustment-responsive {
    display: block !important;
  }
}

@media screen and (max-width: 1408px) {
  .table-cont {
    min-width: 100%;
    overflow-x: scroll;
  }
  .comp-table {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .col-photo {
    width: 8rem;
  }
  .table-row img {
    width: 10rem;
    height: 5rem;
    object-fit: cover;
  }
}
/* comp actions ---------------------------------------- */
.comp-actions {
  background-color: var(--blue-bg-1);
  padding: 2.5rem;
  align-items: flex-start !important;
}
.comp-actions.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.comp-actions > div:first-of-type {
  flex: 1;
}
.comp-actions > div:last-of-type {
  flex: 1.5;
}
.comp-actions .h4 {
  padding-bottom: 1.5rem;
}
.comp-actions .div {
  width: 1px;
  height: 10rem;
  background-color: var(--blue-bg-3);
  margin: 0 3rem;
}
.comp-actions > div:first-of-type > .btn + .btn {
  margin-top: 0.8rem;
}
.comp-actions .flex-row {
  gap: 0.8rem;
}
.comp-actions .flex-row input {
  flex: 1;
  width: 100%;
}
.comp-actions .send > * {
  display: flex;
}
.comp-actions .send {
  justify-content: flex-start;
  padding-top: 0.8rem;
  gap: 1.4rem;
}
/*
ZRUSENO ORIGINAL, zkousim responsivni pristup - pozor na mensich obrazovkach se zacne hroutit tabulka..
@media screen and (max-width: 1408px) {
  .comp-table {
    width: 1300px;
  }
}
*/

@media screen and (max-width: 1300px) {
  .comp-table {
    width: 100%;
  }
}

@media screen and (max-width: 1215px) {
  .comp-actions {
    flex-direction: column !important;
  }
  .comp-actions .div {
    height: 1px;
    width: 100%;
    margin: 2rem 0;
  }
}
@media screen and (max-width: 600px) {
  .inputs,
  .send {
    flex-direction: column !important;
  }
  .send .btn {
    width: 100%;
    justify-content: center;
  }
}
/* transport ---------------------------------------- */
.section-cont {
  background-color: var(--blue-bg-1);
  padding: 2.5rem;
}
.section-cont > .flex-row {
  align-items: flex-start;
  gap: 3rem;
}
.section-cont > .flex-row > div:first-of-type {
  flex: 1;
}
.section-cont > .flex-row > div:last-of-type {
  flex: 1.5;
}
.section-cont .divider {
  margin: 2rem 0;
}
.psc-cont {
  background-color: var(--orange-bg);
  padding: 1rem;
  width: 100%;
  color: var(--blue);
}
.dph,
.psc {
  gap: 0.8rem;
  justify-content: flex-start;
}
.dph input,
.psc input {
  width: 100%;
  max-width: 18rem;
}
.section-cont .info {
  color: var(--blue);
}
#section-3 > .flex-row > div {
  flex: 1;
}
@media screen and (max-width: 820px) {
  .section-cont > .flex-row {
    flex-direction: column;
    gap: 3rem;
  }
  .section-cont > .flex-row > div {
    flex: 1 !important;
    width: 100%;
  }
  .section-cont,
  .comp-actions {
    padding: 2rem;
  }

  .col-photo {
    width: 9rem;
    flex-shrink: 0;
  }  
  .col-fixed {
    width: 8rem;
    flex-shrink: 0;
  }
  .table-row > div {
    padding: 0.5rem;
  }    
  .table-row img {
    width: 9rem !important;
    height: 5rem !important;
    object-fit: cover;
  }

}


.ammount {
  font-size: 17px;
  font-weight: 600;
}

.red {
  color: red;
}
