/* container */
.brygga-container {
    display: flex;
    flex-direction: column;
}

/* varje rad */
.brygga-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    height: 56px; /* 🔥 exakt radhöjd */
}

/* SIDOR */
.brygga-side {
    display: flex;
    align-items: center;
    gap: 0px;
}

.brygga-side.left {
    justify-content: flex-end;
}

.brygga-side.right {
    justify-content: flex-start;
}

/* NAMNRUTOR */
.brygga-box {
    border: 1px dashed #999;
    padding: 6px 12px;
    text-align: center;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    background: #fff;
	line-height: 115%;
	font-size: 80%;
}

/* LINJE TILL BRYGGAN */
.brygga-line {
    height: 1px;
    border-top: 1px dashed #999;
    flex: 1;
}

/* MITTEN (bryggan) */
.brygga-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    font-weight: 600;
}

/* topp & botten */
.brygga-row:first-child .brygga-mid {
    border-top: 3px solid #000;
}
.brygga-row:last-child .brygga-mid {
    border-bottom: 3px solid #000;
}

/* färger */
.brygga-mid.ordinarie {
    background: #f3f4f6;
}

.brygga-mid.premium {
    background: #dbeafe;
}

.nr {
    width: 40px;
    text-align: center;
    display: inline-block;
    padding: 6px 0;
}

/* färger PER plats */
.nr.ordinarie {
    background: #f3f4f6;
}

.nr.premium {
    background: #dbeafe;
}

/* text */
.agare {
    font-weight: 500;
}
.anvandare {
    font-size: 0.9em;
    opacity: 0.8;
}

.brygga-legend {
    text-align: left;
    margin-top: 20px;
    font-size: 0.85em;
    margin-bottom: 20px;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 6px 0 0px;
    vertical-align: middle;
}

.legend-box.ordinarie {
    background: #f3f4f6;
}

.legend-box.premium {
    background: #dbeafe;
}

.agare,
.anvandare {
    cursor: pointer;
}

.agare:hover,
.anvandare:hover {
    text-decoration: underline;
}

.nr {
  position: relative;
  cursor: default;
}

.nr::after {
  content: attr(data-pris);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;

  z-index: 10;
}

.nr::after {
  bottom: 100%;
  transform: translateX(-50%) translateY(8px);
}

.nr:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

/* =========================
   🔹 MOBIL BRYGGA
========================= */

.brygga-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
	
  body.print-version .desktop-only {
    display:block !important;
  }

  body.print-version .mobile-only {
    display:none !important;
  }

  .brygga-container {
    display: none;
  }

  .brygga-mobile {
    display: block;
  }

  /* RAD */

  .brygga-mobile-row {

    display: flex;
    align-items: stretch;

    gap: 18px;
  }

  /* =========================
     🔹 BRYGGDEL
  ========================= */

  .brygga-mobile-mid {

    width: fit-content;
    min-width: 94px;

    align-self: stretch;

    background: #e5e7eb;

    display: flex;
    flex-direction: row;
    justify-content: center;

    padding: 8px 4px;
    gap: 4px;

    flex-shrink: 0;

    border-left: 1px solid #000;
    border-right: 1px solid #000;
  }

  /* första raden */

  .brygga-mobile-row:first-child .brygga-mobile-mid {
    border-top: 1px solid #000;
    padding-top: 10px;
  }

  /* sista raden */

  .brygga-mobile-row:last-child .brygga-mobile-mid {
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
  }

  /* platsrutor */

  .brygga-mobile-mid .nr {

    width: 28px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
  }

  /* =========================
     🔹 NAMNLISTA
  ========================= */

  .brygga-mobile-list {

    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 8px 0;
  }

  /* en platsrad */

  .brygga-mobile-item {

    display: grid;
    grid-template-columns: 52px 1fr;

    line-height: 1.15;
    margin-bottom: 8px;
  }

  /* sista item utan extra luft */

  .brygga-mobile-item:last-child {
    margin-bottom: 0;
  }

  /* platsnummer */

  .platslabel {
    font-weight: 700;
  }

  /* ägare */

  .brygga-mobile-item .agare {

    display: inline-block;

    font-size: 0.85em;
    font-weight: 500;
  }

  /* användare */

  .brygga-mobile-item .anvandare {

    grid-column: 2;

    display: block;

    margin-top: 2px;

    font-size: 0.85em;
    line-height: 1.2;

    opacity: 0.8;
  }
}


/* =========================
   BRYGGKONTAKTER
========================= */

.bryggkontakter-toggle {
  margin: 20px 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.bryggkontakter-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.bryggkontakter-wrap {
  margin-top: 24px;
}

.bryggkontakter {

  width: 100%;
  border-collapse: collapse;

  font-size: 12px;
  line-height: 0.8;
}

.bryggkontakter th,
.bryggkontakter td {

  border: 1px solid #cfcfcf;

  padding: 6px 8px;

  text-align: left;
  vertical-align: top;
}

.bryggkontakter th {

  background: #f3f3f3;
  font-weight: 700;
}


/* 🔹 plats */
.bryggkontakter th:nth-child(1),
.bryggkontakter td:nth-child(1) {

  width: 45px;
  white-space: nowrap;
}


/* 🔹 kontaktperson */
.bryggkontakter th:nth-child(2),
.bryggkontakter td:nth-child(2) {

  width: 220px;
}


/* 🔹 telefon */
.bryggkontakter th:nth-child(3),
.bryggkontakter td:nth-child(3) {

  width: 120px;
  white-space: nowrap;
}


/* 🔹 e-post */
.bryggkontakter th:nth-child(4),
.bryggkontakter td:nth-child(4) {

  white-space: nowrap;
}

@media print {
  .bryggkontakter-toggle {
    display: none !important;
  }
  #bryggkontakter-wrapper {
    page-break-before: always;
    break-before: page;
  }
  div#cookie-law-info-again {
    display: none;
  }
}
.kontakt-tel {

  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

@media (hover: hover) {

  .kontakt-tel {

    pointer-events: none;
    cursor: default;

    text-decoration: none;
    box-shadow: none !important;
  }

}