* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Microsoft JhengHei;
}

table,
thead,
tbody,
tfoot,
tr,
th,
td {
  border-collapse: collapse;
}

/* 游標變更成pointer */
button:hover,
.fa-trash-can:hover {
  cursor: pointer;
}

body {
  text-align: center;
  background-color: #333;
  color: #fff;
}

header {
  margin: 3rem;
}

main {
  margin: 0 auto;
  min-height: 80vh;
  width: 80vw;
  max-width: 1200px;
}

/* 帳目輸入區 */
#input-area {
  margin-bottom: 8vh;
}

input,
select,
button {
  font-size: 1.2rem;
  height: 3rem;
  vertical-align: middle;
  border-radius: 10px;
  padding: 0.5rem;
}

#in-amount {
  width: 10rem;
}

/* 帳目輸出區 */

.table-box {
  overflow-x: scroll;
  scrollbar-width: none;
}

table {
  margin: 2rem auto;
  width: 80%;
  height: 60vh;
  table-layout: fixed;
}

tbody tr {
  border-top: 1px solid #999;
}

tbody tr:hover {
  background-color: #555;
}

table tr:not(.hide) {
  height: 2.5rem;
}

thead {
  height: 2rem;
  font-size: 1.2rem;
}

tbody {
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  font-size: 1rem;
}

.ot-content {
  width: 7rem;
}

.ot-date,
.ot-type,
.ot-pl,
.ot-amount {
  width: 7rem;
}

.ot-del {
  width: 3rem;
}
