.tool_box {
    padding: 20px 0;
}
.tool_box .tabs ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.tool_box .tabs ul li {
    width: auto;
    font-size: 15px;
    text-align: center;
    background: #fff;
    padding: 8px 12px;
    list-style-type: none;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
}
.tool_box .tabs ul li:hover,
.tool_box .tabs ul li.active {
    background: #94464a;
    color: #fff;
    border: 1px solid #c26b88;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.tool_box .tabs ul li:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.tool_box .tabs ul li:last-child {
    border-right: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.tool_box .item_box {
    display: none;
    padding: 10px 20px;
    border-bottom: 1px solid #ebedec;
}
.tool_box .item_box.active {
    display: block;
}
.tool_box .item_box p {
    font-size: 15px;
    letter-spacing: .5;
    margin: 5px 0;
}
.tool_box .item_box p.title {
    font-size: 18px;
    font-weight: 600;
}
.tool_box .item_box span {
    font-size: 14px;
    color: #999;
    letter-spacing: .5;
    font-weight: 500;
}
.tool_box .item_box .form_cell {
    display: flex;
    margin: 10px 0;
    align-items: flex-end;
    justify-content: center;
}
.tool_box .item_box .form_cell .form_label {
    width: 50%;
}
.tool_box .item_box .form_cell .form_label label {
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
}
.tool_box .item_box .form_cell input,
.tool_box .item_box .form_cell select {
    border: 1px solid #ccc;
    padding: 5px 8px;
    font-size: 15px;
    width: 95%;
    -webkit-appearance: none;
    background: #fff;
    color: #000;
}
@media screen and (max-width: 450px) {
    .tool_box .item_box .form_cell input,
    .tool_box .item_box .form_cell select {
        width: 100%;
    }
}
.tool_box .item_box .form_cell select {
    padding: 6px 8px;
}
.tool_box .item_box .form_cell input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}
.tool_box .item_box .form_cell input:focus,
.tool_box .item_box .form_cell select:focus {
    outline: none; /* 移除外框 */
    box-shadow: none; /* 移除陰影（如某些瀏覽器的 glow 效果） */
}
.tool_box .item_box .line {
    width: 100%;
    margin: 25px 0 20px 0;
    height: 1px;
    background: #ddd;
}
.tool_box .item_box .invoice_example {
    position: relative;
}
.tool_box .item_box .invoice_example img {
    position: relative;
    width: 100%;
}
.tool_box .item_box .invoice_example p {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: #399eba;
}
.tool_box .item_box.t_invoice .invoice_example p.now_year_ch {
    top: 7%;
    left: 42%;
}
.tool_box .item_box.t_invoice .invoice_example p.now_month_ch {
    top: 7%;
    right: 39.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.now_year {
    top: 18%;
    left: 58%;
}
.tool_box .item_box.t_invoice .invoice_example p.now_month {
    top: 18%;
    left: 65.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.now_day {
    top: 18%;
    left: 73%;
}
.tool_box .item_box.t_invoice .invoice_example p.company_name {
    /* top: 11%;
    left: 14%;
    font-size: 16px; */
    top: 12%;
    left: 14%;
}
.tool_box .item_box.t_invoice .invoice_example p.company_number {
    /* top: 17.5%;
    left: 15%;
    letter-spacing: 13px;
    font-size: 16px; */
    top: 18.5%;
    left: 15.2%;
    letter-spacing: 16px;
}
.tool_box .item_box.t_invoice .invoice_example p.item_name {
    top: 35.8%;
    left: 11%;
}
.tool_box .item_box.t_invoice .invoice_example p.item_amount {
    top: 35.8%;
    left: 33.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.item_unit_price {
    top: 35.8%;
    right: 51%;
}
.tool_box .item_box.t_invoice .invoice_example p.item_price {
    top: 35.8%;
    right: 33%;
}
.tool_box .item_box.t_invoice .invoice_example p.total_price {
    top: 67%;
    right: 33%;
}
.tool_box .item_box.t_invoice .invoice_example p.tax_rate_option.one {
    top: 75.8%;
    left: 27%;
}
.tool_box .item_box.t_invoice .invoice_example p.tax_rate_option.two {
    top: 75.8%;
    left: 36%;
}
.tool_box .item_box.t_invoice .invoice_example p.tax_rate_option.three {
    top: 75.8%;
    left: 44.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.tax_number {
    top: 73.5%;
    right: 33%;
}
.tool_box .item_box.t_invoice .invoice_example p.final_total_price {
    top: 80%;
    right: 33%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_100000000 {
    /* top: 86.5%;
    left: 13%;
    font-size: 16px; */
    top: 87.5%;
    left: 13.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_10000000 {
    /* top: 86.5%;
    left: 19.2%;
    font-size: 16px; */
    top: 87.5%;
    left: 19.7%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_1000000 {
    /* top: 86.5%;
    left: 25.5%;
    font-size: 16px; */
    top: 87.5%;
    left: 26%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_100000 {
    /* top: 86.5%;
    left: 31.5%;
    font-size: 16px; */
    top: 87.5%;
    left: 32%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_10000 {
    /* top: 86.5%;
    left: 38%;
    font-size: 16px; */
    top: 87.5%;
    left: 38%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_1000 {
    /* top: 86.5%;
    left: 44%;
    font-size: 16px; */
    top: 87.5%;
    left: 44.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_100 {
    /* top: 86.5%;
    left: 50%;
    font-size: 16px; */
    top: 87.5%;
    left: 50.5%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_10 {
    /* top: 86.5%;
    left: 56.5%;
    font-size: 16px; */
    top: 87.5%;
    left: 57%;
}
.tool_box .item_box.t_invoice .invoice_example p.ch_1 {
    /* top: 86.5%;
    left: 62.5%;
    font-size: 16px; */
    top: 87.5%;
    left: 63%;
}
.tool_box .item_box.t_invoice .invoice_example p.prompt {
    /* top: 66%;
    left: 76%;
    font-size: 28px; */
    top: 68%;
    left: 78%;
    font-size: 20px;
    font-weight: 500;
}
.tool_box .item_box.d_invoice .invoice_example p.now_year_ch {
    top: 6%;
    left: 45%;
}
.tool_box .item_box.d_invoice .invoice_example p.now_month_ch {
    top: 6%;
    right: 35%;
}
.tool_box .item_box.d_invoice .invoice_example p.now_year {
    top: 10.5%;
    left: 53.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.now_month {
    top: 10.5%;
    left: 60.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.now_day {
    top: 10.5%;
    left: 67%;
}
.tool_box .item_box.d_invoice .invoice_example p.company_name {
    /* top: 11%;
    left: 14%;
    font-size: 16px; */
    top: 14.8%;
    left: 15%;
}
.tool_box .item_box.d_invoice .invoice_example p.company_number {
    /* top: 17.5%;
    left: 15%;
    letter-spacing: 13px;
    font-size: 16px; */
    top: 34.5%;
    left: 15.2%;
    letter-spacing: 16px;
}
.tool_box .item_box.d_invoice .invoice_example p.item_name {
    top: 34.5%;
    left: 11%;
}
.tool_box .item_box.d_invoice .invoice_example p.item_amount {
    top: 34.5%;
    left: 32%;
}
.tool_box .item_box.d_invoice .invoice_example p.item_unit_price {
    top: 34.5%;
    right: 52.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.item_price {
    top: 34.5%;
    right: 33%;
}
.tool_box .item_box.d_invoice .invoice_example p.total_price {
    top: 75.5%;
    right: 33%;
}
.tool_box .item_box.d_invoice .invoice_example p.tax_rate_option.one {
    top: 87.7%;
    left: 32.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.tax_rate_option.two {
    top: 87.7%;
    left: 48%;
}
.tool_box .item_box.d_invoice .invoice_example p.tax_rate_option.three {
    top: 87.3%;
    left: 63.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_100000000 {
    /* top: 86.5%;
    left: 13%;
    font-size: 16px; */
    top: 82.3%;
    left: 13.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_10000000 {
    /* top: 86.5%;
    left: 19.2%;
    font-size: 16px; */
    top: 82.3%;
    left: 19.7%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_1000000 {
    /* top: 86.5%;
    left: 25.5%;
    font-size: 16px; */
    top: 82.1%;
    left: 26%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_100000 {
    /* top: 86.5%;
    left: 31.5%;
    font-size: 16px; */
    top: 81.9%;
    left: 32%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_10000 {
    /* top: 86.5%;
    left: 38%;
    font-size: 16px; */
    top: 81.7%;
    left: 38%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_1000 {
    /* top: 86.5%;
    left: 44%;
    font-size: 16px; */
    top: 81.5%;
    left: 44.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_100 {
    /* top: 86.5%;
    left: 50%;
    font-size: 16px; */
    top: 81.5%;
    left: 50%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_10 {
    /* top: 86.5%;
    left: 56.5%;
    font-size: 16px; */
    top: 81.3%;
    left: 56%;
}
.tool_box .item_box.d_invoice .invoice_example p.ch_1 {
    /* top: 86.5%;
    left: 62.5%;
    font-size: 16px; */
    top: 81.2%;
    left: 62.5%;
}
.tool_box .item_box.d_invoice .invoice_example p.prompt {
    /* top: 66%;
    left: 76%;
    font-size: 28px; */
    top: 68%;
    left: 78%;
    font-size: 20px;
    font-weight: 500;
}
.tool_box .item_box .btn_box {
    display: flex;
    justify-content: center;
    margin-top: 30px
}
.tool_box .item_box .btn_box a {
    background: #94464a;
    color: #fff;
    border: 1px solid #c26b88;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 5px;
    margin: 0 10px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.tool_box .item_box .btn_box a:hover {
    background: #a65463;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.tool_box .item_box .btn_box a:nth-child(2) {
    background: #3a839f;
    border: 1px solid #399eba;
}
.tool_box .item_box .btn_box a:nth-child(2):hover {
    background: #399eba;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.left_box .buttons a {
    background: linear-gradient(135deg, #fcfefe 0%, #bbd7e1 3%, #399eba 10%, #3a839f 30%, #3a839f 70% , #399eba 90%, #b1cfda 97%, #fcfefe 100%);
    color: #fff;
    border-radius: 6px;
    padding: 7px;
    text-align: center;
    border: 2px solid #3a839f;
}
.right_box .title_box .page_name {
    background: linear-gradient(to bottom, #e6e4e4 0%, #71281b 0%, #d1789c 100%);
    color: #fff;
    border-radius: 3px;
    border: 1px solid #d1789c;
    padding: 1px 12px;
    font-size: 14px;
    width: fit-content;
}
@media screen and (max-width: 960px) {
    .tool_box .item_box .form_cell.invoice {
        display: block;
        overflow-y: scroll;
    }
    .tool_box .item_box .invoice_example {
        width: 580px;
    }
    .tool_box .item_box .form_cell .form_label {
        width: 100%;
    }
    .tool_box .tabs ul {
        padding: 0 10px;
    }
    .tool_box .tabs ul li,
    .tool_box .item_box p,
    .tool_box .item_box .form_cell input,
    .tool_box .item_box .form_cell select,
    .tool_box .item_box .btn_box a {
        font-size: 13px;
    }
    .tool_box .item_box p.title {
        font-size: 16px;
    }
    .tool_box .item_box span,
    .right_box .title_box .page_name {
        font-size: 12px;
    }
}
@media screen and (max-width: 450px) {
    .tool_box .item_box .form_cell {
        flex-direction: column;
    }
    .tool_box .tabs ul li {
        padding: 5px 8px;
    }
    .tool_box .item_box .btn_box a {
        padding: 5px 15px;
    }
}

/* 房東列區塊 */
.landlord_row {
    width: fit-content;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #cce;
    background: #f9f9ff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
@media screen and (max-width: 450px) {
    .landlord_row {
        width: calc(100% - 20px);
    }
}
.tool_box .item_box.personal .form_cell,
.tool_box .item_box.company .form_cell {
    justify-content: flex-start;
}
.tool_box .item_box.personal .form_label label {
    font-weight: 300;
}
@media screen and (max-width: 960px) {
    .tool_box .item_box.personal .form_label label {
        font-size: 13px !important;
    }
}
.tool_box .item_box.personal span,
.tool_box .item_box.company span {
    color: #399eba;
    font-size: 16px;
    font-weight: 600;
}
.landlord_row label {
    display: flex;
    flex-direction: column;
    font-size: 14px !important;
}
.landlord_row select,
.landlord_row input[type='number'] {
    width: 100% !important;
    padding: 4px !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
    margin-top: 3px;
}
@media screen and (max-width: 960px) {
    .landlord_row label,
    .landlord_row select,
    .landlord_row input[type='number'] {
        font-size: 13px !important;
    }
}
.removeLandlordBtn {
    background-color: #fdd;
    border: 1px solid #f99;
    padding: 4px 5px;
    border-radius: 4px;
    cursor: pointer;
}
#addLandlordBtn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #e0f7ff;
    border: 1px solid #99c;
    border-radius: 4px;
    cursor: pointer;
}
@media screen and (max-width: 960px) {
    #addLandlordBtn {
        font-size: 13px;
    }
}
.landlord_summary_box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px dashed #aaa;
    border-radius: 6px;
}
.landlord_result p {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  line-height: 1.5;
}
.landlord_result p.title {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.landlord_result .label {
  width: 180px;
  flex-shrink: 0;
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
@media screen and (max-width: 960px) {
    .landlord_result .label {
        font-size: 13px !important;
    }
}
@media screen and (max-width: 450px) {
    .landlord_result .label {
        width: 150px;
    }
}
.landlord_result .value {
  text-align: right;
  flex-grow: 1;
}