[v-cloak] {
  display: none;
}
.blockUI{
    z-index: 9999999999 !important;
}
.blockUI.blockMsg{
    padding: 30px 15px !important;
    border: none !important;
    color: #fff !important;
    background:  rgba(0,0,0,0.5) !important;
    border-radius: 15px !important;
}
.home-news a{
    color: #48362c;
}

/* Bootstrap table styles */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.5rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

/* Table bordered styles */
table {
    border: 1px solid #dee2e6;
}

table th,
table td {
    border: 1px solid #dee2e6;
}

table thead th,
table thead td {
    border-bottom-width: 2px;
}
a.link-box{
    display: flex;
    align-items: center;
    justify-content: center;
}
#pdfModal.hidden{
    display: none;
}
#pdfModal{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    overflow: hidden;
    z-index: 1;
}
#pdfModal .mask{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
}
#pdfModal .content{
    background-color: #fff;
    z-index: 1;
    width: 80vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#pdfModal .title{
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#pdfModal .title svg{
    cursor: pointer;
}
#pdfModal .btns{
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: end;
    border-top: 1px solid #ccc;
    width: 100%;
}
#pdfModal .btns a,
#pdfModal .btns button{
    margin-left: 10px;
    border: 1px solid #000;
    padding: 5px 20px;
    font-size: 14px;
}
#pdfModal .btns button{
    background-color: #ccc;
    color: #666;
    border-color: #ccc;
}
#pdfModal iframe{
    width: 100%;
    height: 100%;
    background-color: #ccc;
}
.program-text{
    width: 100%;
}
.item-boxlink{
    height: auto;
    min-height: 68px;
}
/* 針對內容區域的 table 響應式樣式 */
.content {
    overflow-x: auto;
}

.content table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

/* Table 響應式容器 */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    margin-bottom: 0;
}
.content img{
    max-width: 100% !important;
    height: auto !important;
}
.unit .title{
    margin-bottom: 15px;
}
.unit .unit-list{
    margin-bottom: 30px;
}
.text-gray5 a{
    color: var(--color-gray5) !important;
}
.case-table tr td{
    vertical-align: middle;
}
.case-table a{
    font-size: 24px;
    line-height: 1em;
    color: #5D688A !important;
}
/* 手機版 table 響應式樣式 */
@media(max-width: 768px){
    .content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content table {
        min-width: 600px; /* 設定最小寬度，確保 table 不會過度壓縮 */
        font-size: 14px; /* 在小螢幕上縮小字體 */
    }
    
    .content table th,
    .content table td {
        padding: 0.375rem; /* 減少 padding */
        white-space: nowrap; /* 防止文字換行造成版面混亂 */
    }
}

@media(max-width: 640px){
    #pdfModal .content{
        width: 95vw;
        height: 90vh;
    }
    
    .content table {
        min-width: 500px; /* 在更小的螢幕上進一步調整最小寬度 */
        font-size: 13px;
    }
    
    .content table th,
    .content table td {
        padding: 0.25rem;
    }
}