.mysize1 {
    font-size: 18px;
}

.mysize2 {
    font-size: 20px;
}



/*.leftMenu {
    display: none !important;
}

.bodyArea .mainContent {
    width: 99%;
    margin-right: auto;
    margin-left: auto;
}

body .contentArea {
    margin-top: 0px;
    padding-top: 0px;
    width: 99%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}

.mainContent .main_left{
    width: 100%;
}

.paging_area{
    width: 100%;
    border-left: 0;
    padding-left: 0;
}
.contentArea .breadcrumb{
    width: 100%;
}


.breadcrumb {
    margin-left: 15px;

}

#wrap .bodyArea .container{
    width: 75%;
}*/

.contentArea {
    display: grid;
    grid-template-areas: 'skip skip' 'breadcrumb breadcrumb' 'leftmenu maincont';
    
    grid-template-columns: 230px 1fr;
}

.contentArea #mainContentSkip {
    grid-area: skip;
}

/* .contentArea .breadcrumb {
    grid-area: breadcrumb;
} */


.contentArea .leftMenu {
    grid-area: leftmenu;
}


.contentArea .mainContent {
    grid-area: maincont;
    width: 100%;
    

}

.contentArea .mainContent:has(.company_detail_table) {
    padding-left: 15px;
}

.contentArea .mainContent:not(:has(.paging_area)) {
    border-left: 1px solid rgba(204, 204, 204, 0.3);
}


/*--------------------------------------------------------------------------------*/

.alerts .cont a {
    text-decoration: none;
}

#last_update_date {
    font-size: 14px;
}

.search,
.download {
    color: #fff;
    background-color: #3e5259;
    border: unset;
    padding: 6px 12px;
}

.download {
    float: right;

}

.div-col-6 {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
}

.width_100 {
    width: 100% !important;
}

#download {
    color: white;
    text-decoration: none;
}

.strange_row {
    display: grid;
    column-gap: 1.5rem;
    grid-template-columns: 10px 2fr 1fr;
    grid-auto-flow: column;
    padding-top: 1rem;
    padding-left: 5rem;
    background-color: #156082;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.register_of_authorized_insurers_wrapper {
    color: #000000;
}

.register_of_authorized_insurers_wrapper .result_item {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 20% 1fr;
    column-gap: 1rem;
    border-bottom: 1px solid #e2e2e2;
    padding-top: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.register_of_authorized_insurers_wrapper .result_item.hide_item {
    display: none !important;
}

.register_of_authorized_insurers_wrapper .alphabet {
    font-size: 1.1rem;
    font-weight: bold;
    color: #156082;
}

.register_of_authorized_insurers_wrapper .company_table {
    width: 100%;
    border-spacing: 1rem 0;
}

.register_of_authorized_insurers_wrapper .company_table td {
    width: 50%;
    vertical-align: top;
    padding: 0 0.5rem;
    margin: 0;
}

.register_of_authorized_insurers_wrapper .company_table td > div {
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.register_of_authorized_insurers_wrapper .company_list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;

}

.register_of_authorized_insurers_wrapper .company_list>li:first-child {
    margin-top: 0;
}

.register_of_authorized_insurers_wrapper .company_list>li {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.register_of_authorized_insurers_wrapper .company_list a {
    color: #156082;
}

.alphabet_list {
    background-color: #156082;
    color: #fff;
}

.alphabet_list a,
.alphabet_list a:hover {
    color: inherit !important;
}

.alphabet_list {
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: bold;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.alphabet_list .title {

    font-weight: bold;
    font-size: 1.1rem;
    padding-right: 1.75rem;
    margin-bottom: 0.5rem;
}

.alphabet_list .list_inner {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    column-gap: .5rem;
    /* padding-left: 1rem; */
    /* padding-right: 1rem; */
}


.alphabet_list .list_inner>*:not(:last-child) {
    /* padding-right: 0.9rem; */
}

.alphabet_list .list_inner>* {
    margin-bottom: 0.6rem;
}

:where(.tradition, .simplify) .alphabet_list {
    font-family: 'microsoft jhenghei', sans-serif;
}

.englishVersion .alphabet_list {
    justify-content: center;
}

.englishVersion .alphabet_list .list_inner {
    width: 95%;
}

:where(.tradition, .simplify) .alphabet_list .list_inner {
    justify-content: center;
    column-gap: 1rem;
    font-size: 1rem;
}

.alphabet_list .all_btn {
    white-space: nowrap;
}

.company_detail_table tr>td:first-child {
    width: 33%;
}

.company_detail_table td {
    vertical-align: top;
}

.company_detail_table:not(:has(.inner_table)) tr>td:first-child {
    font-weight: bold;
}

.inner_table {
    display: grid;
    grid-template-columns: 33fr 67fr;
}

.inner_table .table_row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 2;
}

.inner_table .table_row:not(:last-child) {
    border-bottom: 1px solid #e2e2e2;
}

.inner_table .table_row>* {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-bottom: 1rem;
}

.inner_table .table_row:not(:first-child)>* {
    padding-top: 1rem;

}

.inner_table .table_head_mobile {
    display: none;
}

.inner_table .table_head{
    font-weight: bold;
}


.table_wrapper1 {
    font-size: 1rem;
    margin-bottom: 1.4rem;
}

.table_wrapper1 table {
    width: 100%;
}

.table_wrapper1 th {
    background-color: #156082;
    color: #fff;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    text-align: left;
}

.table_wrapper1 td {
    padding: 1rem 0.625rem;
    border-bottom: 1px solid #e2e2e2;
    line-height: 1.4;
}

.mainContent .company_title {
    text-align: center;
    line-height: 2.2rem;
}


.company_title span {
    display: block;
}

.two_columns_div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
    max-width: 100%;
}

.table_wrapper1 ol:not(.special_ol) {

    counter-reset: item;
    padding-left: 0;
    list-style: none;
     display: grid;
     grid-template-columns: max-content 1fr;
     column-gap: 0.4rem;
}

.table_wrapper1 ol:not(.special_ol)>li {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 2;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    list-style: none;
    /*display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.4rem;*/
}

.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(1):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(2):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(3):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(4):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(5):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(6):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(7):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(8):before,
.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:nth-child(9):before{

}

.table_wrapper1 ol:not(.upper_alpha_list, .special_ol)>li:before {
    content: counter(item);
    counter-increment: item;
    text-align: center;
}

.table_wrapper1 .upper_alpha_list {}

.table_wrapper1 ol.upper_alpha_list>li {}

.table_wrapper1 .upper_alpha_list>li:before {
    content: counter(item, upper-alpha);
    counter-increment: item;
    text-align: center;
}

:where(.tradition, .simplify) .table_wrapper1 ol>li:before {

}


.special_ol {
    list-style-type: none;
    column-gap: 0.4rem;
    padding-left: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
}

.special_ol>li {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 2;
    column-gap: 0.4rem;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.special_ol>li:before {
    content: attr(data-number);
    text-align: center;
}

u {
    margin-bottom: 0.7rem;
    display: block;
}

.mainContent p {
    margin-left: 0;
}

#general_list, #longterm_list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.business-key {
    display: inline-block;
    width: 2em;
    text-align: right;
    padding-right: 0.5em;
}
.business-name {
    display: inline;
}

.business-list {
    list-style: none;
    padding-left: 0;
}
.business-list li::before {
    content: attr(value) ". ";
    margin-right: 0.5em;
    font-weight: bold;
}

.code-center {
    text-align: center !important;
}

.business-center {
    text-align: center;
}

.table_wrapper1 .no-style-table {
    width: auto;
    border: none;
    border-collapse: collapse;
    font-size: inherit;
    margin: 0;
}

.table_wrapper1 .no-style-table td {
    padding: 0;
    border: none;
    line-height: inherit;
}

.table_wrapper1 .no-style-table td:first-child {
    text-align: right;
    width: auto;
    padding-right: 0.5em;
    font-weight: normal !important;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-list-button {
    margin-top: 10px;  /* Add space below All button */
}

#contact_list_of_authorized_insurers_title{
    cursor: pointer;
}

@media (max-width: 1170px) {

    body .mainContent .upper_alpha_list,
    body .mainContent .table_wrapper1 ol {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 1.4rem;
    }

    body .contentArea {
        display: block;
    }

    body .contentArea .mainContent:has(.company_detail_table),
    body .bodyArea .mainContent {
        padding-left: 0;
        border-left: 0;
        max-width: calc(100% - 20px);
    }
}

@media(max-width: 767px) {
    .company_detail_table tr>td:first-child {
        width: 100%;
    }


    .register_of_authorized_insurers_wrapper .company_list {
        padding-bottom: 0;
    }

    .register_of_authorized_insurers_wrapper .company_list>li:last-child {
        margin-bottom: 0;
    }

    .register_of_authorized_insurers_wrapper .company_table td > div:last-child {
        margin-bottom: 0;
    }

    .register_of_authorized_insurers_wrapper .company_table tr {
        display: block;
    }

    .register_of_authorized_insurers_wrapper .company_table tr:nth-child(1) td{
        padding-top: 0;
    }

    .register_of_authorized_insurers_wrapper .company_table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem;
        
        line-height: 1.4;
        box-sizing: border-box;
    }

    .register_of_authorized_insurers_wrapper .company_table td:last-child {
        margin-bottom: 0;
    }

    .table_wrapper1 {
        font-size: 1rem;
    }

    .table_wrapper1 tr {
        display: block;
    }

    .table_wrapper1 th {
        display: block;
    }

    .table_wrapper1 td {
        display: block;
    }

    .table_wrapper1 td:nth-child(odd):not(:has(.inner_table)) {
        border-bottom: 0;
        padding-bottom: 0;
        font-weight: bold;
    }

    .two_columns_div {
        grid-template-columns: 1fr;
    }


    .mainContent .company_title {
        font-size: 1.2rem;
    }


    .table_wrapper1 td:has(.inner_table) {
        padding-left: 0;
        padding-right: 0;
    }

    .inner_table {
        grid-template-columns: 33fr 67fr;  /* Keep two columns on mobile */
        overflow-x: auto;  /* Add horizontal scroll if needed */
    }

    .inner_table .table_row {
        grid-template-columns: subgrid;
        min-width: 300px;  /* Ensure minimum width for two columns */
    }
    

    .inner_table .table_head { /* Display headers horizontally */
        font-weight: bold;
    }

    .inner_table .table_head_mobile {
        display: none;
    }

    .inner_table .table_row > * {
        padding: 0.5rem; /* Prevent wrapping */
    }
    

    .table_wrapper1 .no-style-table {
        width: 100%;
        max-width: 100%;             /* Prevent table from exceeding container */
        border-collapse: collapse;
        font-size: inherit;
        page-break-inside: auto;
        margin: 0;
        display: table;
    }
    
    .table_wrapper1 .no-style-table tr {
        display: table-row;
        break-inside: avoid;
        page-break-inside: auto;
        margin-bottom: 0;
    }
    
    .table_wrapper1 .no-style-table td {
        display: table-cell;
        padding: 5px;
        word-wrap: break-word;
        vertical-align: top;
        border-bottom: none;
    }
    
    .table_wrapper1 .no-style-table td:first-child {
        font-weight: bold;
        width: 2.5rem;              /* Fixed width for sequence numbers */
        text-align: right;
        padding-right: 0.5em;
        box-sizing: border-box;
        white-space: nowrap;        /* Prevent wrapping in sequence column */
    }
    
}
