body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

:root {
  --gap: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  font-family: sans-serif;
  font-size: 12px;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overscroll-behavior: contain;
}

html, body {
  margin: 0;
  font-family: sans-serif;
}

.wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  padding: var(--gap);
  gap: var(--gap);
}

.wrap fieldset {
  flex-grow: 1;
  padding: 1.5rem;
  border: 1px solid #CCC;
  border-radius: 0.5rem;
  height: calc(100vh - 80px);
  overflow: auto;
}

.wrap fieldset:first-child {
  flex-grow: 0;
  flex-basis: 500px;
}

.wrap fieldset legend {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 2rem 0 .75rem;
}


fieldset ul {
  list-style: none;
  padding: 0;
}

fieldset ul > li {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

fieldset label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-left: 0.375rem;
}

fieldset div label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-left: 0.375rem;
}

fieldset label+input {
  display: block;
  width: 100%;
  height: 3rem;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .5rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

fieldset div label+input {
  display: block;
  width: 100%;
  height: 3rem;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .5rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

fieldset label+input:focus {
  color: #495057;
  background-color: #fff;
  border-color: #808080;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(100, 100, 100, .25);
}

fieldset label+input[type="file"] {
  display: none;
}

fieldset input[type="file"]+label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 10rem;
  border: 2px dotted #CCC;
  border-radius: .5rem;
}

fieldset input[type="file"]+label::before {
  content: '업로드 할 파일을 선택하거나 드레그&드롭하세요.';
  color: rgba(0,0,0,.5);
  font-weight: 400;
  text-shadow: 0 0 2px rgba(0,0,0,.7);
}

fieldset table {
  display: table;
  width: 100%;
  caption-side: bottom;
  border-collapse: separate;
  box-sizing: border-box;
  border-spacing: 1px;
  border-color: gray;
  background-color: #aaa;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

fieldset thead {
  background-color: rgba(0,0,0,.7);
  border-bottom: 2px solid rgba(0,0,0,1);
  color: white;
}
fieldset th {
  text-align: center;
  padding: .375rem .725rem;
}
fieldset td {
  background-color: rgba(255,255,255,.9);
  padding: .2rem .5rem;
  font-size: 1rem;
}

fieldset tr[row-type="sum"] {
  border-top: 2px solid #aaa;
}

[data-type="number"] {
  text-align: right;
  padding: .2rem 1rem;
}

/* row 처리 */
.flex-row {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.flex-row > table {
  flex-grow: 1;
}


@media screen and (max-width: 1200px) {

  .wrap {
    flex-direction: column;
  }

  .wrap fieldset {
    flex-grow: 1 !important;
    flex-basis: unset;
    width: 100%;
    height: unset;
  }

  .flex-row {
    flex-direction: column;
  }
}

.transferButton {
  margin-top: 20px;
  padding: 8px;
  width: 100px;
  font-size: 20px;
}

