﻿



/* #region *************************************（ 整個螢幕 body ）**************************************/
body {
    margin: 0;
    padding: 0;
    transition: margin-left 0.3s ease;
    font-family: Arial, sans-serif;
    color: black;
    font-size: 16px;      /*沿用 Site.css 設定*/
}

/* ===============================
   RadioButtonList、CheckBoxList
================================== */
input[type="radio"],
input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.25);
    margin-left: 2px;
    margin-right: 4px;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    cursor: pointer;
    margin-bottom: 0;
    margin-right: 12px;
}
/* #endregion */



/* #region *************************************（ 整個螢幕 scrollbar ）**************************************/


/* =========================
   整體 scrollbar 預設
========================= */
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* =========================
   軌道
========================= */
body::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================
   滑塊
========================= */
body::-webkit-scrollbar-thumb {
    /*background: rgba(120, 120, 120, 0.25);*/
    background: transparent;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}

/* =========================
   hover
========================= */
body:hover::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.45);
}

/* =========================
   滑鼠移到滑塊
========================= */
body::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.6);
}

/* =========================
   滑鼠移動滑塊
========================= */
body::-webkit-scrollbar-thumb:active {
    background: rgba(90, 90, 90, 0.75);
}

/* =========================
   移除上下箭頭
========================= */
body::-webkit-scrollbar-button {
    display: none;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.35) transparent;
}
/* #endregion */

/* #region *************************************（ 左側區塊 ）**************************************/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #f8f9fa;
    padding-top: 17px;
    transition: transform 0.3s ease;
    z-index: 1030;
    text-wrap: normal;      
    border-right: 1px solid #eff0f1;

    /*0715 IVY新增*/
    display: flex;
    flex-direction: column;
}

/*0715 IVY新增*/
.sb-sidenav{
    display:flex;
    flex-direction:column;
    height:100%;
}

/*0715 IVY新增*/
.sb-sidenav-menu{
    display:flex;
    flex-direction:column;
    flex:1;
    min-height:0;
}





body.sidebar-collapsed .sidebar {
    transform: translateX(-250px);
}


@media (max-width: 991.98px) {  
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show-mobile {
        transform: translateX(0);
    }
}



/*0715 IVY新增*/
#divOnline{
    margin-top: auto;
    padding:16px 25px 25px;
    border-top: 1px dashed #dee2e6;
}

/* =========================
   目錄欄 scrollbar 預設
========================= */
#divmenuNav {
    margin-top: 20px;

    /*0715 IVY新增*/
    /*height: 85vh;*/
    flex:1;
    min-height:0;


    overflow-y: auto;
}

/* =========================
   目錄欄 scrollbar 整體
========================= */
#divmenuNav::-webkit-scrollbar {
    width: 5px;
}

/* =========================
   目錄欄 scrollbar 軌道
========================= */
#divmenuNav::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

/* =========================
   目錄欄 scrollbar 滑塊
========================= */
#divmenuNav::-webkit-scrollbar-thumb {
    background: #c1c7cd;    
    border-color:  #f8f9fa; 
    border-radius: 4px;
}



/* =========================
   移除所有 list 點點
========================= */
.sidebar ul,
.sidebar li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar [data-toggle=collapse] {      
    position: relative;
}

/* =========================
   箭頭收合
========================= */
.sidebar [data-toggle=collapse]:before { 
    border: solid #9aa5b1;                   
    border-width: 0 .15rem .15rem 0;          
    content: " ";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.7rem;
    top: 50%;                                      
    transform: translateY(-50%) rotate(-45deg); 
    transition: all .2s ease-out;
}


/* =========================
   箭頭展開
========================= */
.sidebar [aria-expanded=true]:before,
.sidebar [data-toggle=collapse]:not(.collapsed):before { 
    transform: translateY(-50%) rotate(45deg); 
}

.sidebar .sidebar-dropdown [data-toggle=collapse]:before {
    top: 1rem;
}

.sidebar .sidebar-dropdown [aria-expanded=true]:before,
.sidebar .sidebar-dropdown [data-toggle=collapse]:not(.collapsed):before {
    top: 1.2rem;
}

/* =========================
   每一個 li
========================= */
.sidebar-item.active .sidebar-link:hover,
.sidebar-item.active>.sidebar-link {
    color: #e2e8ee;
}

.sidebar-item.active .sidebar-link:hover i,
.sidebar-item.active .sidebar-link:hover svg,
.sidebar-item.active>.sidebar-link i,
.sidebar-item.active>.sidebar-link svg {
    color: #e2e8ee;
}

/* =========================
   主連結樣式 (父層目錄)
========================= */
.sidebar-link,
a.sidebar-link {
    color: #034af3;    
    cursor: pointer;
    display: block;
    font-weight: 400;
    padding: .625rem 1.625rem;
    position: relative;
    text-decoration: none;
    transition: color 75ms ease-in-out;
}

.sidebar-link.active {
    color: #034af3 !important;
    background: #eaeff4;
}

.sidebar-link:focus {
    outline: 0;
}

.sidebar-link:hover {
    color: #034af3; 
    background:#eaeff4;
}

.sidebar-link i, .sidebar-link svg,
a.sidebar-link i, a.sidebar-link svg {
    color: rgba(226,232,238,.5);
    margin-right: .75rem;
}

.sidebar-link:hover i,
.sidebar-link:hover svg {
    color: rgba(226,232,238,.75);
}



/* =========================
   子選單 ul
========================= */
.sidebar-dropdown .sidebar-link {
    color: #034af3;   
    font-weight: 400;
    padding: .55rem 1.5rem .55rem 3rem;   
}

.sidebar-dropdown .sidebar-item .sidebar-link:hover {
    color: #034af3;
    font-weight: 400;
}

.sidebar-dropdown .sidebar-item.active .sidebar-link {
    color: #034af3;
    font-weight: 400;
}

.sidebar-dropdown .sidebar-dropdown .sidebar-link {
    padding: .55rem 1.5rem .55rem 4rem;
}

.sidebar-dropdown .sidebar-dropdown .sidebar-dropdown .sidebar-link {
    padding: .55rem 1.5rem .55rem 5.75rem;
}
/* #endregion */

/* #region *************************************（ 右側區塊 ）**************************************/

.main-area {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .main-area {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .main-area {
        margin-left: 0 !important;
    }
}

/* =========================
   置頂標題列
========================= */

@media (max-width: 991.98px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .navbar .mx-auto.d-flex {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-top: 0.5rem;
    }

    .navbar .mx-auto.d-flex span,
    .navbar .mx-auto.d-flex .btn {
        margin-top: 0.3rem;
        text-align: center;
    }
}

.navtopbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    transition: left 0.3s ease;
    height: 66px; 
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
                0 4px 8px rgba(0, 0, 0, 0.04);
}


body.sidebar-collapsed .navtopbar {
    left: 0;
}

@media (max-width: 991.98px) {
    .navtopbar {
        left: 0 !important;
        right: 0;
    }
}


/* ==============================
   置頂標題列 - 打開左側欄之按鈕
================================= */
.sidebar-toggle {
    cursor: pointer;
    display: flex;
    height: 26px;
    width: 26px
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        margin-right: 10px;
    }
}

/* =========================
   PlaceHolder
========================= */
.main-content {
    margin-top: 63px;
    padding-top:5px;
    padding-bottom:10px;
}

.user-area {
    margin-right: 250px;
    transition: margin-right 0.3s ease;
}

.user-area.collapsed-desktop2 {
    margin-right: 0;
}

.placeholder-content {
    padding-left: 16px;
    padding-right: 16px;
}

/* =========================
   滿屏背景樣式
========================= */
.full-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-left: -16px;
    margin-right: -16px;
    margin-top: -15px;
    margin-bottom: -11px;
    padding-top: 15px;
    padding-bottom: 11px;
}

.full-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.78);
}

.full-bg.teco {
    background-image: url('/image/TECOPrintFull.jpg');
}

.full-bg.itts {
    background-image: url('/image/ITTSPrintFull.jpg');
}
/* #endregion */

/* #region *************************************（ breadcrumb ）**************************************/

/* =========================
   基本 breadcrumb 樣式
========================= */
.breadcrumb-item-custom {
    font-weight: 500;
}

/* =========================
   可點（中間 / 首頁）
========================= */
.breadcrumb-item-custom.is-link {
    color: #0053c0;
    cursor: pointer;
}

.breadcrumb-item-custom.is-link a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-item-custom.is-link:hover {
    text-decoration: none;
}

/* =========================
   無連結（# 或空）
========================= */
.breadcrumb-item-custom.is-disabled {
    color: #0053c0;
    cursor: default;
}

/* =========================
   最後一筆（目前頁）
========================= */
.breadcrumb-item-custom.is-last {
    color: #6c757d !important;
    cursor: default;
    font-weight: 500;
}


/* =========================
   手機模式可滑動
========================= */
@media (max-width: 576px) {

    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb-item {
        flex: 0 0 auto;
    }
}
/* #endregion */

/* #region *************************************（ drawer ）**************************************/
/* =====================================================
   GLOBAL DRAWER (RIGHT SIDE PANEL)
===================================================== */

.global-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.15);

    transform: translateX(100%);
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;
}

/* open state */
.global-drawer.is-open {
    transform: translateX(0);
}

/* header */
.drawer-header {
    height: 66px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;

    position: sticky;
    top: 0;
    z-index: 2;
}

.drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
}

/* close button */
.drawer-header .close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.drawer-header .close:hover {
    color: #000;
}

/* body */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* skeleton loading */
.drawer-skeleton {
    display: none;
    padding: 16px;
}

.global-drawer.is-loading .drawer-skeleton {
    display: block;
}

.global-drawer.is-loading .drawer-body {
    display: none;
}

/* backdrop */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* mobile */
@media (max-width: 576px) {
    .global-drawer {
        width: 100%;
    }
}
/* #endregion */


/* #region *************************************（ 右側彈跳版面 ）**************************************/

.sidebar2 {
    position: fixed;
    top: 66px;                          /* 避開 navbar */
    right: 0;
    width: 250px;
    height: calc(100vh - 66px);         /* 減去 navbar 高度 */
    background-color: white;
    border-left:1px solid #dee2e6;
    padding: 10px;
    z-index: 1035;                      /* 比 navbar 高，避免被遮住 */
    transition: transform 0.3s ease;    /* 動畫效果 */
    overflow-y: auto;                   /* 內容過多可滾動 */
}


.sidebar2.collapsed-desktop2 {
    transform: translateX(250px);
}

@media (max-width: 991.98px) {
    .sidebar2 {
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
    }

    .sidebar2.show-mobile {
        transform: translateX(0);
    }
}
/* #endregion */

/* #region *************************************（ 遮罩 ）**************************************/

@media (max-width: 991.98px) {
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1025;
        display: none;
    }

    .overlay.active {
        display: block;
    }
}
/* #endregion */

/* #region *************************************（ 底部列 ）**************************************/

.footerBar {
    position:fixed; 
    bottom:0; 
    left:0; 
    width:100%; 
    z-index:999; 
    background-color:rgba(248, 249, 250, 0.18);
}
/* #endregion */

/* #region *************************************（ 右下角跳到最上面的按鈕樣式 ）**************************************/
.btn-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;        
    color: #adb5bd;              
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    display: none;
}

.btn-scroll-top:hover {
    background-color: #eaeff4; 
    transform: scale(1.1);
}

.btn-scroll-top i {
    transition: transform 0.25s ease, opacity 0.2s;
}

@media (max-width: 576px) {
    .btn-scroll-top {
        right: 15px;
        bottom: 70px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
/* #endregion */

/* #region *************************************（ 其他 ）**************************************/

@media (max-width: 991.98px) {
    .d-none.d-md-block {
        display: none !important;
    }
}

.navbar-align {
    margin-left: auto;
}

/* =========================
   開啟左側目錄欄的按鈕樣式
========================= */
.hamburger,
.hamburger:after,
.hamburger:before {
    background: #6c757d;
    border-radius: 1px;
    content: "";
    cursor: pointer;
    display: block;
    height: 3px;
    transition: background .1s ease-in-out,color .1s ease-in-out;
    width: 24px;
}

.hamburger {
    position: relative;
}

.hamburger:before {
    position: absolute;
    top: -8px;
    width: 20px;
}

.hamburger:after {
    bottom: -8px;
    position: absolute;
    width: 16px;
}

.sidebar-toggle:hover .hamburger,
.sidebar-toggle:hover .hamburger:after,
.sidebar-toggle:hover .hamburger:before {
    background: #3f80ea;
}



/* =========================
   置頂目錄 icon 用
========================= */
.nav-flag,
.nav-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1.4;
    padding: .1rem .8rem;
    transition: background .1s ease-in-out,color .1s ease-in-out
}

.nav-flag:after,
.nav-icon:after {
    display: none!important
}

.nav-flag.active, .nav-flag:hover,
.nav-icon.active, .nav-icon:hover {
    color: #3f80ea
}

.nav-flag .lucide, .nav-flag svg,
.nav-icon .lucide, .nav-icon svg {
    height: 20px;
    width: 20px
}


/* =========================
   logo 樣式
========================= */
.logo {
    height: 43px;   
}

.SSP {
    height: 45px;  
}

@media (max-width: 991.98px) {
    .logo {
        height: 35px;
    }

    .SSP {
        height: 45px;  
        max-width: 200px;  
    }
}
/* #endregion */

/* #region *************************************（ mega - 尚未完成 ）**************************************/
.dropdown-mega {
    width: 1200px;
    max-width: calc(100vw - 40px);
    padding: 1rem;
}

.dropdown-mega-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dropdown-mega-list {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
}

.dropdown-mega-header {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
}

.dropdown-mega-item {
    display: block;
    padding: .35rem 0;
    font-size: 13px;
    color: #495057;
}

.dropdown-mega-item:hover {
    text-decoration: none;
}
/* #endregion */


