/* ===== Buttons + layout ===== */
:root{
  --sc-green: #1b6b5b;
  --sc-bg: #f3f7f6;
  --sc-border: #d8e2df;
  --sc-text: #222;
  --sc-muted: #6b7280;
}

.sizecharts{ margin: 22px 0; }
.sizecharts__row{ margin-bottom: 14px; }
.sizecharts__label{
  font-size: 13px;
  color: var(--sc-muted);
  margin-bottom: 8px;
}

.sc-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-btn{
  appearance: none;
  border: 1px solid var(--sc-border);
  background: #fff;
  color: var(--sc-text);
  border-radius: 0; /* hranaté */
padding: 8px 14px;
  min-height: 48px;
  line-height: 1.1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  user-select: none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.sc-btn__icon{
width: 30px;
    height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
  display:block;
}

.sc-btn:hover{
  border-color: #c2d3cf;
  background: #fbfcfc;
}

.sc-btn.is-active{
  border-color: var(--sc-green);
  background: var(--sc-bg);
  color: var(--sc-green);
  font-weight: 600;
}

/* výstupní box */
.sc-output{
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 0 !important;
  background: var(--sc-bg);
  border-left: 6px solid var(--sc-green);
  color: #555;
}

/* ===== VELTAB – tabulky ===== */
.veltab-area{ margin-top: 0; }

.veltab-tableWrap{
  overflow-x: auto;
  margin: 1.5em 0;
}

.veltab-table{
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

.veltab-table th,
.veltab-table td{
  border: 1px solid #ddd;
  padding: 1em;
  text-align: left;
  font-size: 13px;            /* desktop 13px */
  vertical-align: top;
}

.veltab-table th{
  background: #f0f0f0;
  font-weight: 600;
}

.veltab-table tr:nth-child(even){
  background: #fafafa;
}

/* Jemné zelené zvýraznění */
.veltab-title{
  margin: 0 0 .8em 0;
  color: var(--sc-green);
}

.veltab-table td:first-child{
  font-weight: 600;
  color: var(--sc-green);
}

.veltab-table th:not(:first-child){
  color: var(--sc-green);
}

/* tabulky defaultně skryté, ukáže se jen aktivní */
.veltab-wrap{ display:none; }
.veltab-wrap.is-active{ display:block; }

/* aby tabulka uvnitř boxu neměla moc velký horní spacing */
.sc-output .veltab-tableWrap{ margin: 1em 0 0; }

/* Tlačítko */
.sc-open{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px 14px;
  border:1px solid #d8e2df;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}
.sc-open:hover{ background:#fbfcfc; }

.sc-open__icon{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
}

/* Popup */
.sc-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
  display:none;
}
.sc-overlay.is-open{ display:block; }

.sc-modal{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, calc(100% - 24px));
  max-height:calc(100% - 24px);
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.sc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #eee;
}
.sc-title{ margin:0; font-size:18px; font-weight:700; }
.sc-close{
  appearance:none;
  border:1px solid #ddd;
  background:#fff;
  padding:8px 12px;
  cursor:pointer;
}
.sc-body{
  padding:16px;
  overflow:auto;
  max-height:calc(100vh - 140px);
}

/* responsivní */
@media (max-width: 520px){
  .sc-buttons{ gap: 8px; }

  .sc-btn{
    width: calc((100% - 16px) / 3);
    padding: 10px 10px;
    min-height: 44px;
    justify-content: flex-start;
  }

  .sc-btn__icon{ width: 20px; height: 20px; }

  .sc-output{
    padding: 14px 12px;
  }

  .veltab-tableWrap{
    overflow-x: hidden;
  }

  .veltab-table{
    width: 100%;
    min-width: 0;          /* přepíše min-width:600px */
    table-layout: fixed;
  }

  .veltab-table th,
  .veltab-table td{
    padding: 10px 6px;
    font-size: 12px;       /* mobil 12px */
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .veltab-table td:first-child,
  .veltab-table th:first-child{
    width: 30%;
  }
}