/* 預設 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #3d3d3d !important;
}

/* 取消預設小箭頭 */
.hide-arrows::-webkit-outer-spin-button,
.hide-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hide-arrows {
    -moz-appearance: textfield;
}


.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-right {
  justify-content: right;
}

.align-items-center {
  align-items: center;
}

.act-disabled {
  cursor: not-allowed;
  background: #C6C6C6;
}

/* i_info裡的內容 */
.div-tippy {
  position: relative;
  height: 36px;
}

.div-tippy a {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #fff;
}

.upload_outter .upload {
  margin-right: 10px;
  padding-top: 12px;
  display: block;
  transform: scale(1);
  transition: .3s;
}

.upload_outter .upload>a {
  height: 72px;
  width: 72px;
  display: block;
  background-image: url("/static/v2/images/upx_b.png");
  /* background-size: 77px auto; */
  background-position: center;
  background-repeat: no-repeat;
}

.upload_outter .upload>a img {
  display: none;
}

.upload_outter .upload:active {
  transform: scale(.98);
}

.upload_outter .upload img {
  height: 66px;
}

/*圖片上傳按鈕*/
.upload_outter {
  width: 100%;
  display: flex;
}

#upload_icon {
  width: 72px;
  height: 72px;
  position: relative;
  bottom: 24px;
  left: 100px;
  cursor: pointer;
}

input[type=file] {
  display: none;
}

.upload_action {
  height: 0;
  width: 0;
  overflow: hidden;
  visibility: hidden;
}

.upload_outter .mcs-horizontal-pics {
  max-width: 215px;
  margin-left: 0;
}

.upload_outter .mcs-horizontal-pics .hitem>img {
  width: 66px;
  height: 66px;
  object-fit: cover;
}

.upload_outter .mCSB_horizontal.mCSB_inside>.mCSB_container{
  padding-bottom: 16px;
}

.acct_area1 .input_field.other-file-upload {
  align-items: flex-start;
}

.acct_area1 .input_field.other-file-upload > label {
  padding-top: 5px;
}

.acct_area1 .other-file-upload .upload_outter {
  width: 207px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.acct_area1 .other-file-upload .upload {
  width: 100%;
  margin-right: 0;
  padding-top: 0;
}

.acct_area1 .other-file-upload .upload-file-btn {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-image: none;
  text-align-last: center;
  text-decoration: none;
}

.acct_area1 .other-file-upload .mcs-horizontal-pics {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}

@media screen and (max-width:450px) {
  .acct_area1 .input_field.other-file-upload > label {
    padding-top: 0;
  }

  .acct_area1 .other-file-upload .upload_outter {
    width: 100%;
  }
}

/* .radio_container */
.radio_container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.radio_container input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.radio_container .checkmark {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 24px;
  width: 24px;
  border: 2px solid #285ee4;
  border-radius: 50%;
}

.radio_container .outter {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: .3s;
}

.radio_container .outter:hover {
  background: #d2e0e4;
}

.radio_container .outter:active {
  background: #a7cdd0;
}

.radio_container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #285ee4;
}

.radio_container input:checked~.outter .checkmark:after {
  display: block;
}

/* 零稅率選項 */
.tab-link .tabs ul {
  display: flex;
}

.acct_area2 .input_field .custom-select {
  width: 207px;
}

.tab-link .tabs ul li+li {
  margin-left: 8px;
}

.tab-link .tabs .tab-item ul {
  margin-bottom: 0;
}

.tab-link .tabs .tab-item {
  margin-top: 16px;
  display: none;
}

.tab-link .tabs .tab-item.active {
  display: block;
}

.tab-content {
  position: relative;
  top: -12px;
}

/* ========== 新增帳務 ========== */
.contents {
   max-width: 1500px;
  }

  .account_add .item_row {
    flex-wrap: nowrap;
}

.account_add .main_title {
  max-width: 1029px;
}

.account_add .main_title .main_title_content {
  align-items: start;
}

.main_title_content .group>span {
  color: #000;
  font-size: 14px;
}

.account_add form .action {
  max-width: 1029px;
  width: 100%;
}

.main_title .group>.btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.main_title .btn>span {
  font-size: 18px;
}

@media screen and (max-width:768px) {
  .account_add .main_title_content .row {
      flex-wrap: wrap;
      width: 100%;
      margin-top: 8px;
  }

  .account_add .main_title_content .guide_nav {
      right: auto;
  }

}

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

  .main_title_content .group {
      width: 100%;
      text-align: center;
      margin-top: 8px;
  }
}
  
  .acct_add_content {
    height: 100%;
    min-width: 343px;
    border-radius: 15px;
    box-sizing: border-box;
    margin-bottom: 16px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
  }

  .item_header{
    width: 100%;
    height: 40px;
    background-color: #285ee4;
    padding: 0 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 6px 0 rgb(0 0 0/16%);
    display: flex;
    align-items: center;
    border-radius: 15px 15px 0 0;
  }

  .item_header .title {
    color: #fff;
    font-size: 20px;
}

.item_header .small {
    font-size: 14px;
    margin-left: 8px;
}
  
  .item_header .tabs a {
    color: #658ae6;
    font-weight: 500;
    font-size: 20px;
    transition: .2s;
    position: relative;
    padding: 3px 8px;
    margin-right: 8px; 
    transition: all .3s;
    user-select: none;
  }
  
  .item_header .tabs a:hover,
  .item_header .tabs a.active {
    color: #fff;
    border-bottom: 3px solid #fff;
  }
  

  .item_body {
    width: 100%;
    height: 100%;
    /* max-width: 1026px; */
    /* min-height: 600px; */
    background-color: #fff;
    padding: 24px 16px;
    border-radius: 0 0 15px 15px;
  }

  .acct_add_main {
    display: flex;
    flex-wrap: wrap;
  }
  
  .acct_add_main .annotation-title{
    display: flex;
    align-items: center;
    min-width: 104px;
  }

  .acct_add_main .annotation-title > label{
    min-width: 72px;
    margin-right: 8px;
  }
  
  /* .acct_area3 .annotation-title{
    width: 200px;
  } */
  
  .acct_add_main .area {
    width: 311px;
  }
  
  /*填入框容器_基本資訊*/
  .area{
    margin-bottom: 24px;
  }

  .acct_area1,.acct_area2 {
    margin-right: 24px;
  }
  
  .input_group {
    width: 100%;
    position: relative;
    text-align-last: left;
    margin-bottom: 8px;
}

.input_group input[type="text"] {
  width: 100%;
  height: 36px;
  padding: 4px 12px;
  box-sizing: border-box;
  border: 1px solid #c6c6c6;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  text-align: left;
  color: #3d3d3d;
  outline: none;
}
  
  
  /* search-items_content */
  .custom-select .select-selected {
    height: 36px;
    padding: 8px 28px 8px 16px;
    border: 1px solid #c6c6c6;
}

.custom-select .select-selected {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select .select-items div {
    height: 100%;
    min-height: 36px;
    border: 1px solid #c6c6c6;
}


.input_group.error .select-selected {
    border: 1px solid red;
}

  .select-selected.select-arrow-active,
  .select-selected.select-arrow-active~.select-items>div {
    border-color: transparent transparent #285ee4 transparent;
  }

  .select-selected.select-arrow-active {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid ##658ae6;
    border-left: 2px solid ##658ae6;
    border-right: 2px solid ##658ae6;
  }

  .select-items .search-items_content {
    position: relative;
    padding: 0;
    height: 40px;
    padding: 2px;
}

.custom-select .select-items>.search-items_content input {
    display: block;
    width: calc(100% - 4px) !important;
    height: calc(100% - 4px);
    color: #285ee4;
    font-size: 18px;
    padding: 4px 16px;
    z-index: 2;
    border: 1px solid #767676 !important;
    border-radius: 20px;
}
  

.area .csr_title {
  width: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  letter-spacing: -0.5;
  font-size: 18px;
  color: #3d3d3d;
}

  /* acct_area1 */
  .acct_area1 .input_field .custom-select {
    width: 207px;
  }
  
  .acct_area1 .input_field.fn_note {
    display: flex;
    align-items: start;
  }
  
  .acct_area1 .input_field.fn_note textarea {
    width: 100%;
    max-width: 207px;
    padding: 4px 12px;
    border: 1px solid #c6c6c6;
    border-radius: 8px;
    color: #3d3d3d;
    outline: none;
    font-size: 18px;
    min-height: 36px;
    resize: vertical;
  }
  
  /* tag標籤 */
  .acct_area1 .input_field_tag {
    position: relative;
  }
  
  .acct_area1 .tags_content {
    position: absolute;
    top: 56px;
    width: 211px;
    max-height: 150px;
    background: #fff;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.16);
    z-index: 1;
    border: 2px solid #285ee4;
    border-radius: 5px;
    box-sizing: border-box;
    display: none;
    overflow-y: hidden;
    font-size: 16px;
  }
  
  .acct_area1 .tags_content.open {
    display: block;
  }
  
  .acct_area1 .tags_option>li {
    padding: 8px 16px;
    font-size: 18px;
    font-family: Arial;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .acct_area1 .tags_option>li:not(:last-child){
    border-bottom: 1px solid #285ee4;
  }
  
  .acct_area1 .tags_option>li:hover {
    background-color: #dbdbdb;
  }
  
  .acct_area1 .tags_option>li:active{
    background-color: #dbdbdb;
  }
  
  .acct_area1 .input_field_tag .tag-container {
    overflow-y: hidden;
  }
  
  .area .custom-select .select-items div,.area .custom-select .select-selected {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* .acct_area2 .csr_area .csr_title {
    width: auto;
    margin-top: 6px;
    margin-bottom: 8px;
    margin-right: 8px;
    letter-spacing: -0.5px;
    font-size: 18px;
    color: #3d3d3d;
  } */
  
  .acct_area2 .csr_select {
    display: flex;
    margin-top: 8px;
    /* margin-bottom: 16px; */
  }
  
  .main_title .cancel_btn {
    cursor: pointer;
  }
  
  /*憑證取得按鈕外觀*/
  .acct_area2 .csr_select .csr_btn {
    box-sizing: border-box;
    width: 98px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #c6c6c6;
    color: #999;
    text-align: center;
    margin-right: 8px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    -khtml-user-select: none;
    user-select: none;
  }
  
  /*按鈕禁用狀態*/
  .acct_area2 .csr_select .btn_disabled {
    background-color: #dbdbdb;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .acct_area2 .csr_select .csr_btn:hover {
    box-shadow: 0 0 12px rgb(0 0 0/25%);
  }
  
  .acct_area2 .csr_select .csr_btn.active {
    box-sizing: border-box;
    border: 2px solid #285ee4;
    background-color: #fff;
    color: #285ee4;
  }
  
  .acct_area2 .csr_select .csr_btn.active:hover {
    box-shadow: 0 0 12px rgb(4 128 128/25%);
  }
  
  .acct_area2 .csr_select .csr_btn .csr_btn_img {
    display: flex;
    flex-direction: column;
  }
  
  .acct_area2 .csr_select .csr_btn .csr_btn_img span {
    margin-top: 4px;
    font-size: 14px;
  }
  
  /* .acct_area2 .csr_receipt {
    margin-top: 24px;
  } */
  
  .acct_area2 .csr_num label {
    font-size: 18px;
    color: #3d3d3d;
  }
  
  .acct_area2 .csr_num input {
    width: 100%;
    height: 36px;
    padding: 4px 8px;
    color: #3d3d3d;
    background: #fff;
    border: 1px solid #c6c6c6;
    outline: none;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 8px;
    box-sizing: border-box;
  }
  
  .acct_area2 .csr_num input[type=text]:focus {
    border: 1px solid #658ae6;
  }
  
  /* acct_area3 */
  .acct_area3 .upload_outter {
    width: 100%;
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
  }
  
  .acct_area3 .pay_area>.annotation-title {
    width: 100%;
    margin-bottom: 16px;
}

.acct_area3 .pay_area .csr_title {
    width: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 8px;
    letter-spacing: -0.5;
    font-size: 18px;
    color: #3d3d3d;
}


.useful_group .custom-select .select-selected {
  width: 80px;
}

.useful_group input {
  width: 75px;
}

.useful_group .date_content {
  width: calc(100% - 104px);
  flex-wrap: nowrap;
  justify-content: space-between;
}

.useful_group .date_content .date_group {
  position: relative;
  display: flex;
  align-items: center;
}

.useful_group .date_content .date_group>span {
  margin-left: 8px;
  margin-right: 8px;
}

.total_pay_receipt_amount::after {
  content: '元';
  /* content: '\u5143'; */
  margin-left: 8px;
}

.should_pay_data,
.pay_area .pay_data {
    line-height: 1.3;
}

.pay_area>.input_control {
    margin-bottom: 16px;
}

.pay_area .pay_footer {
    margin-top: 24px;
}



  /* 收/付款狀況 分期 */
  .should_pay_area .input_group div:nth-child(1) {
    width: 50%;
    margin-right: 8px;
}

.should_pay_area .input_group div:nth-child(2) {
    width: 40%;
    margin-right: 8px;
}

.should_pay_area .input_group div:nth-child(3) {
    width: 24px;
}

.should_pay_area .input_group div:nth-child(3) img {
    width: 100%;
    height: 100%;
}

.pay_area .input_group div:nth-child(1) {
    width: 50%;
    margin-right: 8px;
    align-items: center;
}

.pay_area .input_group div:nth-child(2) {
    width: 50%;
    margin-right: 8px;
    text-align: right;
}

/* .pay_area .input_group div:nth-child(3) {
    width: 20%;
    align-items: center;
} */

/* .pay_area .input_group div:nth-child(4){
    width: 24px;
    align-items: center;
}
*/

  /* tag標籤 */
  @import "https://fonts.googleapis.com/icon?family=Material+Icons";

  .area .input_field_tag {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    text-align-last: left;
  }
  
  .area .input_field_tag label:first-child {
    font-size: 18px;
    color: #3d3d3d;
    width: 72px;
    margin-right: 28px;
    text-align-last: justify;
  }
  
  .input_field_tag .tag_wrapper {
    position: relative;
  }
  
  
  .input_field_tag .tag-container {
    width: 207px;
    height: 50px;
    border: 1px solid #ccc;
    color: #3d3d3d;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    overflow-x: auto;
  }
  
  .tag-container input {
    flex: 1;
    font-size: 16px;
    border: 0;
    outline: none;
  }
  
  .tag-container .tag {
    /* width: 100%; */
    color: #fff;
    padding: 2px 8px;
    border: 1px solid #285ee4;
    border-radius: 8px;
    background: #658ae6;
    margin: 6px 0 8px 6px;
    display: flex;
    align-items: center;
    cursor: default;
    max-width: 141px;
  }
  
  /*標籤的內容字設定中文避免擠壓換行*/
  .tag-container .tag span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .tag-container .tag i {
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
  }
  
  .tag-container::-webkit-scrollbar {
    height: 8px;
    width: 2px;
    background-color: #f5f5f5;
  }
  
  .tag-container::-webkit-scrollbar-track {
    border-radius: 1px;
  }
  
  .tag-container::-webkit-scrollbar-thumb {
    background-color: #a9a9a9;
    border-radius: 1px;
  }
  
  .tag-container::-webkit-scrollbar-thumb:hover {
    background-color: #7f7f7f;
  }
  
  .tag-container::-webkit-scrollbar-thumb:active {
    background-color: #606060;
  }
  
  /* 表單驗證 錯誤訊息 */
  .area .input_field.error .select-selected {
    border: 2px solid red;
  }
  
  .area .input_field.success .select-selected {
    border: 1px solid #285ee4;
  }
  
  .area .input_field.error input {
    border: 2px solid red;
  }
  
  .area .input_field.success input {
    border: 1px solid #285ee4;
  }
  
  /* .area .input_field .small {
    position: absolute;
    top: 36px;
    right: 8px;
  } */
  
  /* .area .input_field .error_message {
    position: absolute;
    top: 36px;
    right: 8px;
    color: red;
    font-size: 14px;
    visibility: hidden;
  }
  
  .area .input_field.error .error_message {
    visibility: visible;
  } */


.input_chk .custom_chk {
    display: inline-block;
    position: relative;
    padding-left: 24px;
    margin: 16px auto;
    cursor: pointer;
    font-size: 18px;
    color: #285ee4;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.custom_chk input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


.custom_chk .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    border-radius: 0;
    background-color: #fff;
    border: 2px solid #658ae6;
}


.custom_chk .checkmark:after {
    content: "";
    position: absolute;
    left: 3px;
    top: -2px;
    border: solid #658ae6;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    display: none;

}

.custom_chk input:checked~.checkmark:after {
    display: block;
}

.input_chk .custom_chk .checkmark:after {
    width: 6px;
    height: 10px;
}


.account_add form .action{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


.account_add form .action .btn {
    width: 150px;
    height: 40px;
    font-size: 18px;
    letter-spacing: 1.6px;
}

.account_add .action .btn+.btn {
  margin-left: 8px;
}


/* hitem */
.area .hitem {
    height: 90px;
    position: relative;
}

.area .hitem a{
  width: 30px;
  height: 30px;
}

.area .hitem a img{
  width: 16px;
  height: 16px;
}

.area .upload_outter .mcs-horizontal-pics .hitem > iframe {
    width: 66px;
    height: 66px;
    object-fit: cover; 
}

.area .upload_outter .mcs-horizontal-pics .hitem .btn_open_img {
    background-color: #fff;
    color: #285ee4;
    border-color: #285ee4;
    font-weight: 600;
    border-radius: 6px;
}

    /* switch_btn */
    .switch_field {
      margin-top: 24px;
  }

  .switch_btn {
      display: inline-block;
      position: relative;
  }

  .input_field .switch_btn>input {
      display: none;
      position: absolute;
  }

  .switch_btn small {
      display: inline-block;
      width: 60px;
      height: 30px;
      background:
          #c6c6c6;
      border-radius: 30px;
      position: relative;
      cursor: pointer;
  }

  .switch_btn small:before {
      content: "";
      position: absolute;
      width: 30px;
      height: 30px;
      background: #fff;
      border-radius: 50%;
      top: 0px;
      left: 0px;
      transition: .3s;
      box-shadow: -3px 0 3px rgba(0, 0, 0, 0.1);
  }

  .switch_btn input:checked~small {
      background:
          #285ee4;
      transition: .3s;
  }

  .switch_btn input:checked~small:before {
    transform: translate(30px, 0px);
    transition: .3s;
    box-shadow: 3px 0 3px rgba(0, 0, 0, 0.1);
  }

  .more_content {
      /* display: none; */
      transition: .3s;
  }

#Drop-Down {
  width: 100%;
  max-width: 207px;
  height: 36px;
  display: flex;
  position: relative;
  z-index: 100;
  cursor: pointer;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -ms-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  user-select: none;

}

/* id="Drop-Down" > ul > li.dropdown > a#dropdown-toggle (顯示) */

#Drop-Down ul:nth-child(1) {
  width: 100%;
  height: 100%;
}

#Drop-Down ul:nth-child(1)>li {
  width: 100%;
  height: 100%;
  display: inline-block;

  color: #c6c6c6;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
}


#Drop-Down ul:nth-child(1)>li>a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  color: #c6c6c6;
  border: 1px solid #b4b4b4;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
}

#Drop-Down ul:nth-child(1)>li>a>span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#Drop-Down ul:nth-child(1)>li>a.active~.dropdown-menu>li {
  border-color: transparent transparent ##658ae6 transparent;
}

#Drop-Down ul:nth-child(1)>li>a.active {
  color: #000;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top: 2px solid #658ae6;
  border-left: 2px solid #658ae6;
  border-right: 2px solid #658ae6;
  border-bottom:0;
}

#Drop-Down ul:nth-child(1)>li>a.active~.dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: 2px solid #658ae6;
  border-right: 2px solid #658ae6;
  border-bottom: 2px solid #658ae6;
}


#Drop-Down ul:nth-child(1) li a i {
  color: #285ee4;

}

.fa-chevron-down {
  transition: transform 200ms linear;
}

.fa-chevron-down-rotate {
  transform: rotate(180deg);
  transition: transform 200ms linear;
}

#Drop-Down ul:nth-child(1)>li ul {
  background-color: #fff;
  border-left: 2px solid #658ae6;
  border-right: 2px solid #658ae6;
  border-top: 2px solid #658ae6;
  border-bottom: 2px solid #658ae6;
  border-radius: 8px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  display: none;
}

#Drop-Down ul:nth-child(1)>li>ul.dropdown-menu {
  border-top: 1px solid #658ae6;
}

/* + ul.dropdown-menu > li.dropdown > a.dropdown-item (第一層)
  +ul.dropdown-menu.dropdown-item-menu>li>a.dropdown-item (第二層) */
#Drop-Down ul:nth-child(1)>li>ul li {
  width: 100%;
  height: 36px;
}

#Drop-Down ul:nth-child(1)>li>ul li.dropdown {
  position: relative;
}

#Drop-Down ul:nth-child(1)>li>ul li:not(:last-child) {
  border-bottom: 1px solid #658ae6;
}

#Drop-Down ul:nth-child(1)>li>ul li a {
  width: 100%;
  height: 100%;
  padding: 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
}

#Drop-Down ul:nth-child(1)>li>ul li a>span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#Drop-Down ul:nth-child(1)>li>ul li a:hover,
#Drop-Down ul:nth-child(1)>li>ul li a.active {
  background-color: #dbdbdb;
}

#Drop-Down ul:nth-child(1)>li>ul>li:last-child>a:hover,
#Drop-Down ul:nth-child(1)>li>ul>li:last-child>a.active {
 border-radius: 0 0 6px 6px;
}

/* Dropdown (第二層)*/

#Drop-Down ul:nth-child(1)>li>ul li.dropdown>ul.dropdown-item-menu {
  position: absolute;
  top: 10px;
  left: 100%;
  width: 100%;
  overflow-y: auto;
  display: none;
  max-height: 300px;
}

  /* form_modal */
  .form_modal.modal {
    padding: 0 0;
    min-width: 311px;
    max-width: 343px;
}

.form_modal .item_header {
    background: #658ae6;
    border-radius: 8px 8px 0 0;
}

.form_modal .item_header>span {
    color: #fff;
    font-size: 20px;
}

.form_modal .input_group label {
  margin-bottom: 0px;
}

.form_modal .input_group.fn_note>label{
  display: block;
}

.form_modal .input_group textarea {
  width: 100%;
  padding: 4px 12px;
  border: 1px solid #c6c6c6;
  border-radius: 8px;
  color: #3d3d3d;
  outline: none;
  font-size: 18px;
  min-height: 36px;
  resize: vertical;
}

.form_modal .input_group.error input {
    border: 2px solid red;
}

.form_modal .input_group .error_message {
    color: red;
    font-size: 14px;
    position: absolute;
    bottom: -17px;
    right: 8px;
    display: none;
}

.form_modal .input_group.error .error_message {
    display: block;
}

  /* form_modal.type2 */
  .form_modal.type2 .small {
    color: red;
}

.form_modal.type2 .item_body {
    padding: 24px 16px;
}

.modal.type2 .action {
    width: 100%;
    flex-direction: column-reverse;
}

.modal.type2 .action .btn {
    width: 100%;
}

.modal.type2 .action .btn+.btn {
    margin-left: 0px;
    margin-bottom: 16px;
}

.form_modal .message>p.text {
    font-size: 18px;
    color: #000000;
    line-height: 1.33;
    font-weight: 300;
}

.form_modal .message>a {
    display: flex;
    justify-content: end;
    text-decoration: underline;
    font-size: 14px;
}

.modal.type2 label input[type="file"] {
    display: none;
}

.input_group label.ordersfile_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 新增檔案名稱 */
.ordersfile_name {
    display: inline-block;
    color: #000;
    font-size: 16px;
    position: relative;
}

.ordersfile_name>span {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    position: absolute;
    top: 4px;
    right: -24px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: none;
    background: url('/static/v2/images/cross_x.svg') no-repeat center center;
    background-size: contain;
}

.modal .select-items div,
.modal .select-selected {
    line-height: 1;
}

.modal .table_select.error .select-selected {
    border: 1px solid red;
}

.modal .table_select .error_message {
    position: absolute;
    bottom: -18px;
    right: 4px;
    font-size: 14px;
    color: red;
    display: none;
}

.modal .table_select.error .error_message {
    display: block;
      }

@media screen and (max-width:768px) {
  #Drop-Down ul:nth-child(1)>li ul {
      border-radius: 0;
      border-left: 1px solid #658ae6;
      border-right: 1px solid #658ae6;
      border-top: 1px solid #658ae6;
      border-bottom: 1px solid #658ae6;
  }

  #Drop-Down ul:nth-child(1)>li>ul li {
      height: 100%;
  }

  #Drop-Down ul:nth-child(1)>li>ul li a {
      height: 36px;
  }

  #Drop-Down ul:nth-child(1)>li>ul li.dropdown>ul.dropdown-item-menu {
      position: relative;
      top: 0;
      left: 0;
      width: 100%;
      overflow-y: auto;
      display: none;
      max-height: 300px;
      background: #d2e0e4;
  }
}


.preview_wrap {
  max-width: 450px;
  min-width: 450px;
  margin-left: 24px;
  border-radius: 5px;
  overflow: hidden;
}

  /* preview_content */
  .preview_content {
    width: 100%;
    height: 600px;
    object-fit: cover;
    background: #fff;
    position: relative;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}

.preview_content>span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #285ee4;
    font-size: 18px;
    word-break: keep-all;
}

.preview_content .preview_0 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.preview_content .image {
    width: 100%;
    cursor: move;
    position: absolute;
    transition: transform 0.25s ease;
}

@media screen and (max-width:1400px) {
  .item_row {
    display: flex;
    flex-direction: column;
}

    .preview_wrap {
        margin-left: 0;
        margin-bottom: 16px;
    }


}

@media screen and (max-width:1400px){
  .account_add form .action{
    max-width: 100%;
  }
}

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

  .acct_area1,.acct_area2 {
      margin-right: auto;
  }

  .acct_area3 {
      margin-right: auto;
  }
}


@media screen and (max-width: 750px) {
  .acct_area1,.acct_area2, .acct_area3 {
        margin-left:auto;
    }
  }

  @media screen and (max-width: 450px){
    .preview_content {
      min-width: 343px;
      overflow-x: auto;
    }

    .account_add .action .btn+.btn {
        margin-left: 0;
        margin-bottom: 8px;
    }

    .account_add form .action .btn {
        width: 100%;
    }

    .input_field {
      margin-bottom: 16px;
  }

    .input_field .sc-datepicker {
      width: 100%;
  }

  .input_field input {
      width: 100%;
  }

  .acct_area1 .input_field .custom-select {
      width: 100%;
  }

  .acct_area1 .input_field.fn_note textarea {
      max-width: 100%;
  }

  .switch_field {
      flex-direction: row;
  }

  .area .input_field_tag {
      flex-direction: column;
      align-items: start;
  }

  .area .input_field_tag label {
      margin-bottom: 4px;
  }

  .acct_area1 .input_field_tag .tag_wrapper {
      width: 100%;
  }

  .acct_area1 .input_field_tag .tag-container {
      width: 100%;
  }

  .acct_area1 .tags_content {
      width: 100%;
  }
  }


  .right_arrow_btn {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 0px;
    right: 0;
    pointer-events: none;
   
    }
    
/* modal */
.blocker {
    min-width: 343px;
  }
  
  .modal_title_content {
    display: flex;
    flex-wrap: wrap;
  }
  
  .modal_title_content h3 {
    font-size: 35px;
    font-weight: 600;
    color: #285ee4;
    letter-spacing: 1px;
    margin-right: 16px;
    display: flex;
    position: relative;
  }
  
  .modal .link {
    display: inline-block;
    font-size: 18px;
    font-weight: normal;
    color: #0052d9;
    margin-left: 8px;
    margin-top: 8px;
  }
  
  .modal .link:hover {
    text-decoration: underline;
  }
  
  
  /* table */
  .modal .tableFixHead {
    height: 100%;
    min-height: 484px;
    max-height: 484px;
    overflow-y: auto;
    position: relative;
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); */
  }
  
  .modal table thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  .modal table tr th,
  .modal table tr td {
    height: 44px;
  }
  
  .modal .sc-search_content {
    display: flex;
    position: relative;
    margin-bottom: 24px;
  }
  
  
  .modal .sc-search_content .record_search {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background: #fff;
    padding: 4px 36px 4px 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .modal .sc-search_content .record_search input[type=number],
  .modal .sc-search_content .record_search input[type=text] {
    border: 0;
    color: #767676;
    outline: none;
    height: 24px;
    font-size: 18px;
    overflow: hidden;
    width: 100%;
    height: 100%;
  }
  
  .modal .sc-search_content .record_search button {
    border: 0;
    right: 4px;
    top: -4px;
    position: absolute;
    background-color: transparent;
    z-index: 0;
    margin: 2px;
    cursor: pointer;
  }
  
  /* 收支對象 */
  .subtitle_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
  }
  
  .subtitle_info h5 {
    padding-bottom: 8px;
    margin-bottom: 16px;
    line-height: 36px;
    position: relative;
    display: flex;
    overflow-x: auto;
    cursor: pointer;
  }
  
  .subtitle_info h5 .tabs {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .subtitle_info h5 .tabs li {
  
    text-align: center;
    padding-right: 16px;
    position: relative;
    transition: .3s;
    letter-spacing: 4px;
    white-space: nowrap;
  }
  
  .subtitle_info h5 .tabs li a {
    font-size: 24px;
    font-weight: bold;
    color: #dbdbdb;
  }
  
  .subtitle_info h5 .tabs li:not(:first-child) {
    padding-left: 16px;
  }
  
  .subtitle_info h5 .tabs li:not(:last-child):after {
    content: '';
    position: absolute;
    height: 18px;
    width: 2px;
    background: #e0e0e0;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }
  
  .subtitle_info h5 .tabs a.active {
    color: #285ee4;
  }

/* ex8_modal */
#ex8_modal {
    width: 100%;
    max-width: 1080px;
    padding: 0 0;
  }
  
  
  #ex8_modal .modal_title_content {
    padding: 24px 16px 0;
  }
  
  #ex8_modal .modal_title_content .title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  #ex8_modal .modal_title_content h3 {
    font-size: 32px;
    font-weight: bold;
    color: #383838;
    letter-spacing: 1px;
    margin-right: 16px;
    display: flex;
    align-items: end;
    position: relative;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  
  #ex8_modal .sc-search_content {
    width: 100%;
    max-width: 311px;
  }
  
  #ex8_modal .search_btn>img {
    position: absolute;
    top: 0;
    right: 0;
  }
  
  
  
  
  #ex8_modal.modal .tb_container {
    padding-left: 0 !important;
    padding-top: 0 !important;
    width: 44px !important;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  #ex8_modal table tr th.all-check,
  #ex8_modal table tr td.tb-checkbox {
    width: 64px;
    max-width: 64px;
  }
  
  #ex8_modal table .tb-type {
    width: 112px;
    min-width: 112px;
  }
  
  #ex8_modal table .tb-company_title {
    width: 176px;
    max-width: 176px;
    min-width: 176px;
  }
  
  #ex8_modal table .td_business_no {
    width: 136px;
    min-width: 136px;
  }
  
  
  #ex8_modal table .tb-name {
    width: 176px;
    max-width: 176px;
    min-width: 176px;
  }
  
  #ex8_modal table .tb-tel {
    width: 136px;
    min-width: 136px;
  }
  
  #ex8_modal table .tb-email {
    width: 280px;
    min-width: 280px;
  }
  
  #ex8_modal.modal .action {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: end;
  }
  
  @media screen and (max-width:450px) {
    #ex8_modal .sc-search_content {
        width: 100%;
    }
  }
