body {
    font: 80%/1.2 system-ui;
    margin: 0;
    font-family: sans-serif;
  }
  header {
    padding: 7vh 5vw;
    border-bottom: 1px solid #ddd;
  }
  header h1,
  header p {
    margin: 0;
  }
  footer {
    padding: 7vh 5vw;
    border-top: 1px solid #ddd;
  }
  aside {
    padding: 7vh 5vw;
  }
  .primary {
    overflow: auto;
    scroll-snap-type: both mandatory;
    height: 80vh;
  }
  @media (min-width: 60em) {
    main {
      display: flex;
    }
    aside {
      flex: 0 1 10vw;
      order: 1;
      border-right: 1px solid #ddd;
    }
    .primary {
      order: 2;
    }
  }
  table {
    border-collapse: collapse;
    border: 1px solid;
  }
  th,
  td {
    border: 1px solid #aaa;
    background-clip: padding-box;
    scroll-snap-align: start;
  }
  tbody tr:last-child th,
  tbody tr:last-child td {
    border-bottom: 0;
  }
  thead {
    z-index: 1000;
    position: relative;
  }
  th,
  td {
    padding: 0.2rem;
    min-width: 3rem;
    text-align: right;
    margin: 0;
  }

  thead th {
    position: sticky;
    top: 0;
    border-top: 0;
    background-clip: padding-box;
    text-align: center;
  }
  thead th.pin {
    left: 0;
    z-index: 1001;
    border-left: 0;
    text-align: center;
  }
  tbody th {
    background-clip: padding-box;
    border-left: 0;
    text-align: center;
    position: sticky;
    left: 0;
  }
  tbody {
    z-index: 10;
    position: relative;
  }

  thead th /* , tbody th */
  {
    background-color: #f8f8f8;
  }


@charset "UTF-8";
.pcs,
.cur,
.per {
  white-space: nowrap;
}

.pcs:after {
  content: " pcs";
}

.cur:before {
  content: "$";
}

.per:after {
  content: "%";
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  padding: 0.2em 2em;
  color: #555;
}

table {
  position: relative;
  width: 100%;
}
table th {
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
  font: 1em ;
}
table th, table td {
  padding: 0.4em;
}

table.fold-table {
  background: white;
  color: #555;
}
table.fold-table > tbody > tr.view {
  transition: all 0.3s ease;
}
table.fold-table > tbody > tr.view td, table.fold-table > tbody > tr.view th {
  cursor: pointer;
}
table.fold-table > tbody > tr.view td:first-child,
table.fold-table > tbody > tr.view th:first-child {
  position: relative;
  padding-left: 20px;
}
table.fold-table > tbody > tr.view td:first-child::before,
table.fold-table > tbody > tr.view th:first-child::before {
  content: "\25B8"; /* ▸ : 접힘 */
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  transition: transform 0.15s ease;
}
table.fold-table > tbody > tr.view.open td:first-child::before,
table.fold-table > tbody > tr.view.open th:first-child::before {
  content: "\25BE"; /* ▾ : 펼침 */
}
table.fold-table > tbody > tr.view:nth-child(4n-1) {
  background: #eee;
}
table.fold-table > tbody > tr.view:hover {
  background: #ddd;
}
table.fold-table > tbody > tr.view.open {
  background: tomato;
  color: white;
}
table.fold-table > tbody > tr.fold {
  display: none;
}
table.fold-table > tbody > tr.fold.open {
  display: table-row;
}

.fold-content {
  padding: 0.5em;
}
.fold-content h3 {
  margin-top: 0;
}
.fold-content > table {
  background: white;
  color: #555;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}
.fold-content > table > tbody > tr {
  cursor: pointer;
}
.fold-content > table > tbody > tr:nth-child(even) {
  background: #eee;
}
.fold-content > table > tbody > tr:hover {
  background: #ddd;
}

.visible-small {
  display: none;
}

.visible-big {
  display: block;
}

@media (max-width: 700px) {
  body {
    font-size: 0.8em;
    padding: 0 10px;
  }

  table th, table td {
    padding: 1em 0.2em;
  }
  table th {
    vertical-align: bottom;
    padding-bottom: 0;
  }

  table.small-friendly > thead {
    display: none;
  }
  table.small-friendly > tbody > tr > td,
table.small-friendly > tbody > tr > th {
    position: relative;
    padding: 0;
    padding-left: 50%;
    display: block;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  table.small-friendly > tbody > tr > td:before,
table.small-friendly > tbody > tr > th:before {
    position: absolute;
    top: 0;
    left: 0.5em;
    max-width: 50%;
    content: attr(data-th) ": ";
    display: block;
    font-weight: bold;
  }
  table.small-friendly > tbody > tr > td:first-child,
table.small-friendly > tbody > tr > th:first-child {
    margin-top: 1em;
  }
  table.small-friendly > tbody > tr > td:last-child,
table.small-friendly > tbody > tr > th:last-child {
    margin-bottom: 1em;
    border: 0;
  }

  .visible-small {
    display: block;
  }

  .visible-big {
    display: none;
  }
}
