.content {
    color: var(--text-color);
    overflow-x: hidden;
}

.tab_content {
    width: 100%;
    padding: 0 1rem;
    margin: auto;
}

.instruction {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.instruction_substep {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
}


.additional_info>* {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 1rem;
    margin: 5px auto;
    width: fit-content;
}

.btn_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: fit-content;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999;
}

.list_btn,
.back_btn {
    background: white;
    border: var(--btn-border-color) 2px solid;
    --link-color: var(--text-color);
}

.forward_btn {
    background: var(--supplementary-grass-green);
    color: white;
}

.update_btn {
    background: transparent;
    margin: auto;
}

.update_btn img {
    max-width: unset;
    max-height: unset;
}

.submit_btn {
    background: var(--secondary-color);
}

.chart_btn {
    background: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 100%);
    border: 1px solid var(--btn-border-color);
    color: var(--supplementary-grass-green);
    margin: auto;
    flex-wrap: wrap;
    word-break: keep-all;
}

.list_count {
    --size: 1.5em;
    width: var(--size);
    height: var(--size);
    line-height: var(--size);
    font-weight: 700;
    color: var(--text-color);
    border-radius: var(--btn-border-radius);
    background: var(--secondary-color);
}

@media (max-width: 972px) {
    .btn_container {
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        top: unset !important;
        background: white;
        padding: 1rem;
        justify-content: space-between;
        border-radius: 0.5rem 0.5rem 0 0;
        box-shadow: 0px -4px 8px 0px rgba(0, 0, 0, 0.25);
    }
    
    body {
        padding-bottom: calc(1rem * 2 + 2px * 2 + 0.5rem * 2 + 21px);
        background: var(--primary-color);
    }
}

@media (max-width: 768px) {
}

.rwd_table thead {
    background: transparent;
}

.rwd_table thead,
#calculate_results .rwd_table tbody {
    border-bottom: 2px solid var(--text-color);
}

.rwd_table td.serial {
    position: relative;
}

tr:has(.deleted_notice) {
    background: #ffe8e8 !important;
}

.deleted_notice,
.calculate_error {
    color: var(--notice-color);
    font-weight: 700;
}

.wood_origin_cell {
    display: grid;
    grid-template-areas:
        'error error'
        'from region'
        'from country'
        'with shipping'
        'to destination'
    ;
    --form_width: 5rem;
    grid-template-columns: var(--form_width) calc(100% - var(--form_width));
}

.wood_origin_cell>div {
    text-align: left;
}

.update_btn span {
    display: none;
}

.unit_switch {
    padding: 1rem;
    margin: 0 -1rem 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    font-weight: 700;
}

.unit_switch .custom_input {
    --border-color: lightgray;
    --background-color: var(--text-color);
}

.unit_switch::before {
    content: "\f0da";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    font-size: smaller;
    color: var(--supplementary-grass-green);
}

@media (max-width: 1024px) {}

@media (max-width: 768px) {
    .rwd_table tbody tr,
    .rwd_table tfoot tr {
        --inside_th_width: 130px;
        position: relative;
    }

    .wood_origin_cell {
        /* --form_width: 30% !important; */
    }

    .rwd_table .empty {
        display: none;
    }

    .rwd_table tfoot tr {
        display: grid;
        grid-template-columns: var(--inside_th_width) calc(100% - var(--inside_th_width));
        border-bottom: none;
    }

    .rwd_table .rwd_hide {
        display: none;
    }

    .modified_notice,
    .deleted_notice {
        position: static;
    }

    .update_btn_container {
        position: absolute;
        bottom: 0;
    }

    .update_btn_container:nth-last-child(2) {
        left: var(--inside_th_width);
    }

    .update_btn_container:nth-last-child(1) {
        left: calc(var(--inside_th_width) + 0.625rem * 2 + 0.85rem * 2 + 21px + 0.5rem + 2rem);
    }

    .chart_btn:not(:disabled),
    .update_btn:not(:disabled) {
        border: var(--btn-border-color) 1px solid;
        background: white;
    }

    .update_btn span {
        display: inline-block;
    }

    .chart_btn {
        margin: 0;
    }
}

@media (max-width: 376px) {
    .rwd_table tbody tr {
        --inside_th_width: 100px;
    }

}