.tabl {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 2px 0 rgba(0,0,0,.35);
  margin: 35px auto;
  max-width: 730px;
  flex-flow: column;
}

.botb, .tabst td {
  border-bottom: 0px solid #ebebeb;
}

.flc {
  display: flex;
  flex-direction: column;
}

.flcw {
  flex-wrap: wrap;
}

.tabhed {
  margin-left: 5px;
}

.hedtit {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.tabst {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.tabdn .hedcell {
  background-color: #f6f7fc;
  vertical-align: top;
  width: 28%;
}

.tabst .hedcell {
  width: 30%;
}

.tabst td {
  padding: 12px 6px;
}

.tabdn .cella,
.tabdn .cellb {
  color: #646464;
  vertical-align: top;
  width: 36%;
  overflow-x: scroll;
  background: #fff;
}

.wincell {
  background-color: #e0ffe0;
}

@media only screen and (max-width: 500px) {
  .tabdn,
  .tabdn tbody {
    display: block;
  }

  .tabdn tr {
    display: flex;
    flex-wrap: wrap;
  }

  .tabdn .cella {
    border-right: 1px solid #e2e2e2;
    text-align: center;
  }

  .tabdn td {
    box-sizing: border-box;
    flex: 0 1 50%;
    padding: 12px;
  }

  .tabdn .cellb {
    text-align: center;
    overflow: scroll;
    text-overflow: ellipsis;
  }

  .tabdn .hedcell {
    flex: 0 0 100%;
    font-weight: 700;
    padding: 8px 2px;
    text-align: center;
  }
}
/* === Admin Table Builder UI === */

#ctb-builder table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

#ctb-builder td {
  padding: 5px;
}

#ctb-builder input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#ctb-builder button {
  margin: 5px 5px 10px 0;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#ctb-builder button:hover {
  background-color: #005a87;
}

#ctb-builder button:active {
  transform: scale(0.98);
}

#ctb-builder tr button {
  background-color: #dc3232;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  margin-left: 10px;
  border-radius: 3px;
}

#ctb-builder tr button:hover {
  background-color: #a00;
}

@media (max-width: 600px) {
  #ctb-builder input[type="text"] {
    font-size: 13px;
  }

  #ctb-builder button {
    font-size: 13px;
    padding: 5px 10px;
  }
}