/* 모바일 세로 / ~480px / 10, 12, 14, 16 */
main > .wrap {
  height: 100%;
  padding: 20px;
}

main > .wrap > article > div ~ div {
  margin-top: 20px;
}

.finance {
  height: 100%;
}

.totalFinance {
  height: 80px;
  background-color: var(--white-color);
  border-radius: 20px;
}

.totalFinance h2 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-mlz);
  font-weight: var(--font-ebw);
}

.totalFinance h2.minus {
  color: var(--error-color);
}

.financeContent {
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.financeInput {
  height: 80px;
  border-radius: 20px;
  background-color: var(--white-color);
}

.financeInput form {
  width: 100%;
  height: 100%;
  display: flex;
}

.financeInput form .financeType {
  width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.financeType span {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.financeType input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--sub-color);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
}

.financeType label {
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
}

.financeType input:checked {
  background-color: var(--main-color);
  border: 2px solid var(--white-color);
  box-shadow: 0 0 0 1px var(--sub-color);
}

.financeType .paid {
  color: var(--error-color);
}

.financeInput form .financeInputWrap {
  width: calc(100% - 80px);
  display: flex;
}

.financeInputWrap div {
  width: calc(100% - 80px);
}

.financeInputWrap input {
  width: 100%;
  height: 50%;
  padding-left: 12px;
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
  border: none;
}

.financeInputWrap input:focus {
  outline: none;
}

.financeInputWrap button {
  width: 80px;
  height: 100%;
  background-color: var(--main-color);
  border-radius: 0 20px 20px 0;
}

.financeInputWrap button i {
  font-size: var(--font-smz);
  font-weight: var(--font-ebw);
  color: var(--white-color);
}

.financeList {
  height: 100%;
  background-color: var(--main-color);
  border-radius: 20px;
  padding: 20px;
}

.financeList .monthFinance {
  height: 80px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: var(--white-color);
  display: flex;
}

.monthFinance div {
  width: 50%;
}

.monthFinance div:first-child {
  border-right: 1px solid var(--border-color);
}

.monthFinance h3 {
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
}

.monthFinance strong {
  display: block;
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
}

.monthFinance .paidFinance :where(h3, strong) {
  color: var(--error-color);
}

.financeList .monthFinanceList {
  height: calc(100% - 100px);
  padding: 20px;
  border-radius: 10px;
  background-color: var(--white-color);
  overflow-y: auto;
}

.monthFinanceList ul {
  overflow-y: auto;
}

.monthFinanceList ul li {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 4px;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-sz);
  font-weight: var(--font-rw);
}

.monthFinanceList ul li button i {
  font-size: var(--font-sz);
}











/* 모바일 가로 ~ 태블릿 세로 / 12, 14, 16, 18 */
@media screen and (min-width: 768px) and (max-width: 991px) {
  main > .wrap {
    padding: 40px;
  }
  
  main > .wrap > article > div ~ div {
    margin-top: 40px;
  }
  
  .totalFinance {
    height: 90px;
    border-radius: 25px;
  }
  
  .totalFinance h2 {
    font-size: var(--font-lz);
  }
  
  .financeContent {
    height: calc(100% - 130px);
    gap: 40px;
  }
  
  .financeInput {
    height: 90px;
    border-radius: 25px;
  }
  
  .financeInput form {
    width: 100%;
    height: 100%;
    display: flex;
  }
  
  .financeInput form .financeType {
    width: 90px;
  }
  
  .financeType span {
    height: 45px;
  }
  
  .financeType input {
    width: 16px;
    height: 16px;
  }
  
  .financeType label {
    font-size: var(--font-mz);
  }
  
  .financeInput form .financeInputWrap {
    width: calc(100% - 90px);
  }
  
  .financeInputWrap div {
    width: calc(100% - 90px);
  }
  
  .financeInputWrap input {
    font-size: var(--font-mz);
  }
  
  .financeInputWrap button {
    width: 90px;
    border-radius: 0 25px 25px 0;
  }
  
  .financeInputWrap button i {
    font-size: var(--font-mz);
  }
  
  .financeList {
    border-radius: 25px;
    padding: 25px;
  }
  
  .financeList .monthFinance {
    height: 90px;
    margin-bottom: 25px;
  }
  
  .monthFinance h3 {
    font-size: var(--font-mz);
  }
  
  .monthFinance strong {
    font-size: var(--font-mz);
  }
  
  .financeList .monthFinanceList {
    height: calc(100% - 115px);
    padding: 25px;
  }
  
  .monthFinanceList ul li {
    gap: 25px;
    font-size: var(--font-smz);
  }
  
  .monthFinanceList ul li button i {
    font-size: var(--font-smz);
  }
}











/* 태블릿 가로 / 14, 16, 18, 20 */
@media screen and (min-width: 992px) {
  main > .wrap {
    padding: 60px;
  }
  
  main > .wrap > article > div ~ div {
    margin-top: 60px;
  }
  
  .finance {
    height: 100%;
  }
  
  .totalFinance {
    height: 100px;
    border-radius: 30px;
  }
  
  .totalFinance h2 {
    font-size: var(--font-xlz);
  }
  
  .financeContent {
    height: calc(100% - 160px);
    flex-direction: row;
    gap: 60px;
  }
  
  .financeInput {
    width: 30%;
    height: 100%;
    border-radius: 30px;
  }
  
  .financeInput form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .financeInput form .financeType {
    width: 100%;
    height: 100px;
    flex-direction: row;
    justify-content: space-evenly;
  }
  
  .financeType input {
    width: 18px;
    height: 18px;
  }
  
  .financeType label {
    font-size: var(--font-mlz);
  }
  
  .financeInput form .financeInputWrap {
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .financeInputWrap div {
    width: 100%;
  }
  
  .financeInputWrap input {
    height: 50px;
    font-size: var(--font-mlz);
  }
  
  .financeInputWrap input:focus {
    outline: none;
  }
  
  .financeInputWrap button {
    width: 100%;
    height: 100px;
    border-radius: 0 0 30px 30px;
  }
  
  .financeInputWrap button i {
    font-size: var(--font-mlz);
  }
  
  .financeList {
    width: calc(100% - 30% - 60px);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    gap: 30px;
  }
  
  .financeList .monthFinance {
    width: 30%;
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  
  .monthFinance div {
    width: 100%;
    height: 50%;
  }
  
  .monthFinance div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .monthFinance h3 {
    font-size: var(--font-mlz);
  }
  
  .monthFinance strong {
    font-size: var(--font-mlz);
  }
  
  .financeList .monthFinanceList {
    width: calc(100% - 30px - 30px);
    height: 100%;
    padding: 30px;
  }
  
  .monthFinanceList ul li {
    font-size: var(--font-mz);
  }
  
  .monthFinanceList ul li button i {
    font-size: var(--font-mz);
  }
}