﻿




/* #region *************************************（ Tab ）**************************************/

/* =========================
   一般樣式
========================= */
.tab-scroll-wrapper {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.5rem 0.2rem !important;
    border-bottom: 1px solid #dee2e6 !important;
    background-color: #fff !important;
}

/* =====================================
   一般樣式 (nav-tabs 本身滑動樣式)
======================================== */
.tab-scroll-wrapper .nav-tabs {
    flex-wrap: nowrap !important;
    border-bottom: none !important; 
}

/* ============================
   一般樣式 (單一 tab 項目)
=============================== */
.tab-scroll-wrapper .nav-item {
    float: none !important;
    display: inline-block !important;
    margin-right: 0.3rem !important;
}

/* ============================
   一般樣式 (每個 tab 外觀)
=============================== */
.tab-scroll-wrapper .nav-link {
    white-space: nowrap !important;
    border-radius: 20px !important;
    padding: 0.4rem 1rem !important;
    background-color: #e9f2ff !important;
    color: #0056b3 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-weight: 500 !important;
    border: 1px solid #fff !important;
}

/* ============================
   一般樣式 (tab 滑過效果)
=============================== */
.tab-scroll-wrapper .nav-link:hover {
    background-color:  #dfecff !important;
    color: #004896 !important;
}

/* ============================
   一般樣式 (選中的 tab)
=============================== */
.tab-scroll-wrapper .nav-link.active {
    background-color:rgb(133, 178, 226) !important;
    color: #ffffff !important;
    border-color: rgb(133, 178, 226) !important;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
}

/* ============================
   一般樣式 (tab-pane 的內容)
=============================== */
.tab-content .tab-pane {
    background-color: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    margin-top: 1rem !important;
    transition: all 0.3s ease-in-out !important;
}

@media (min-width: 768px) {
    .tab-scroll-wrapper {
        overflow-x: visible !important;
        padding: 0 !important;
        background-color: #fff !important;
        border-bottom: none !important;
    }

    .tab-scroll-wrapper .nav-tabs {
        flex-wrap: wrap !important;
    }

    .tab-scroll-wrapper .nav-item {
        display: block;
        margin-right: 0 !important;
    }

    .tab-scroll-wrapper .nav-link {
        border-radius: 0.25rem !important;
        box-shadow: none !important;
    }
}


/* =========================
   底線樣式
========================= */
.tab-scroll-wrapper-2 {
    position: relative;
    border-bottom: 1px solid #e1e1e1;  
}

.tab-scroll-wrapper-2 .nav-tabs {
    border-bottom: none;
    flex-wrap: nowrap;
}

.tab-scroll-wrapper-2 .nav-link {
    border: none !important;
    background: transparent !important;
    color: #5f5f5f;
    padding: 0.75rem 3rem; 
    font-size: 14px;
    font-weight: 500;
}

.tab-scroll-wrapper-2 .nav-link.active {
    font-size: 15px !important;    
    font-weight: 500 !important;     
}

.tab-indicator {
    position: absolute;
    bottom: -1px;                               /* 壓在灰線上 */
    height: 3px;
    background-color: #0078d4;
    width: 0;
    left: 0;
    transition: left 0.25s ease, width 0.25s ease;
}

.tab-content-2 .tab-pane {
    background: transparent !important;
    border: none !important;
    padding: 0.25rem 0 !important; 
}


/* =================================
   底線樣式 (手機版水平滑動容器)
==================================== */
@media (max-width: 768px) {
    .tab-scroll-wrapper-2 {
        overflow-x: auto;              
        overflow-y:hidden;
        -webkit-overflow-scrolling: touch; 
        white-space: nowrap;           
    }

    .tab-scroll-wrapper-2 .nav-item {
        flex: 0 0 auto; 
    }

    .tab-scroll-wrapper-2 .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.5rem 1rem; 
        font-size: 13px;      
    }
}
/* #endregion */