@charset "UTF-8";
.custom-disabled {
    background-color: #ffffff !important;
    opacity: 1;
    cursor: not-allowed; /* 指針顯示不可用 (可選) */
}

.placeholder-label2 {
    color: #987;
    font-size: 0.85em;
    padding: 0px 3px;
    position: absolute;
    background-color: #ffffff;
    margin-left: 0.9em;
    margin-top: -0.8em;
    opacity: 1; /* 初始透明度 */
    transform: translateY(0px); /* 初始位置稍微靠下 */
    transition: all 0.3s ease; /* 平滑過渡 */
}
/* 動態浮動效果 */

.text-muted{
    color:#888!important;
    font-size:0.85rem!important;
}
.td_custom_head{
    color:#333!important;
    font-size:0.85rem!important;
    background-color: rgba(120, 80, 60,0.1)!important;
    text-align:center;
}

#journalList thead th{
    background-color: rgba(255, 255, 220,0.8)!important;
    color:#833!important;
    font-size:0.85rem!important;
    text-align:center;
}
.spliter{
    color:#999!important;
    font-size:0.85rem!important;
    margin-left: 3px;
    margin-right: 3px;
}
#journalList td{
    font-size:0.85rem!important;
    text-align: left;
}
#journalList .card-text{
    font-size:0.9rem!important;
}
#journalList tfoot th{
    background-color: rgba(220, 220, 255,0.8)!important;
    color:#333!important;
    text-align:center;
}
.custom-button {
    height: 40px; /* 統一高度 */
    min-width: 80px; /* 確保按鈕寬度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left:0px;
}
html, body {
    height: 100%; /* 確保 HTML 和 BODY 占滿整個視窗高度 */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
#main_content {
    flex: 1; /* 讓主內容區塊填充剩餘空間 */
    display: flex;
    flex-direction: column;
    /*justify-content: center; 如果需要，內容可垂直居中 */
    
}
.custom_card_header {
    background-color: #f8f9fa; /* 卡片標題背景色 */
    color:rgba(100, 80, 60,0.9)!important;
    font-weight: bold!important;
}

.custombox-bg {
    background-color:rgba(120, 120, 180,0.9);  /*淺棕色，50% 透明度 */
    color:#ffffff;
}
.custom_addnew_btn{
    background-color: rgba(120, 120, 80,0.7);
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1rem;
    margin: 10px 0;
}
.custom_edit_btn{
    background-color: rgba(120, 120, 80, 0.3);
    color: #333;
}
.custom_delete_btn{
    background-color: rgba(120, 120, 80,0.7);
    color: #fff;
}

#logoimg {
    margin-left: 1.8vw;
    height:65px;
}
#navbarNav, .navbar-toggler {
    margin-right: 1.8vw;
}
@media (min-width: 576px) {
    #logoimg {
        margin-left: 1.5vw;
    }
    #navbarNav, .navbar-toggler{
        margin-right: 1.5vw;
    }
    .table_container{
        width: 95%;
    }
}
@media (min-width: 768px) {
    #logoimg{
        margin-left: 1.2vw;
    }
    #navbarNav, .navbar-toggler{
        margin-right: 1.2vw;
    }
    .table_container{
        width: 80%;
    }
}

#main_content .btn:hover {
    background-color: #ddddff; /* 原來的背景色 */
}


footer {
    margin-top: auto; /* 自動將 footer 推到頁面底部 */
    background-color: rgba(120, 120, 80,1); /* 可選的樣式，讓 footer 明顯可見 */
    padding: 10px;
    text-align: center;
}
/* 下拉選單的絕對定位 */

/* 下拉選單樣式調整 */
.dropdown-menu, .dropdown-menu-end {
    width: 80%; /* 限制最小寬度 */
    text-align: left;
    background-color:#ffffee;
    margin-bottom:10px;
}
.navbar.bg-light{
    background-color: rgba(120, 120, 80, 1)!important;
    box-shadow: rgba(0, 0, 0, 0.10) 0px 2px 6px;
}

/* navbar 字体淡色 */
.navbar .nav-link {
    color: #f0f0f0!important;
}

.navbar .nav-link:hover {
    color: #ffffff!important;
}

.navbar .nav-link.active {
    color: #ffffff!important;
    font-weight: 500;
}

.navbar-brand {
    color: #f0f0f0!important;
}

/* navbar 中的 logout 按钮淡色 */
.navbar .btn-outline-danger {
    color: #ffcccc!important;
    border-color: #ffcccc!important;
}

.navbar .btn-outline-danger:hover {
    color: #ffffff!important;
    background-color: rgba(220, 53, 69, 0.3)!important;
    border-color: #ffffff!important;
}
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        margin:auto,0px;
        top: 75px; /* 導航欄高度，確保內容與按鈕對齊 */
        right:1.8vw;
        width: auto; /* 讓選單展開佔滿整個寬度 */
        z-index:1001;
        background-color: rgba(120, 120, 80, 0.98);
        padding:15px;
        font-size:0.9em;
        border-radius: 5px;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    }

    .navbar-nav,.ms-auto {
        flex-direction: column; /* 選單垂直排列 */
        align-items: flex-end; /* 靠右對齊 */
    }

}
.card ul {
    list-style-type: disc; /* 圓形點 */
}

.card ul li::marker {
    font-size: 20px; /* 點的大小 */
    color: #66c; /* 點的顏色 */
}

/* blocks index actions 按鈕 RWD 補強 */
@media (max-width: 576px) {
    .table-responsive {
        overflow-x: auto;
    }
    .table td {
        white-space: nowrap;
    }
    .btn-group {
        flex-direction: column !important;
        gap: 4px;
    }
    .btn-group .btn {
        min-width: 80px;
        width: 100%;
        margin-bottom: 2px;
    }
    /* actions 欄自動換行，避免被壓縮消失 */
    td[width="120"] {
        min-width: 120px;
        max-width: 160px;
        word-break: break-all;
    }
}
