﻿

.tablesort th {
    cursor: pointer;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* 桌機 sidebar */
#sidebar-wrapper {
    width: 240px;
    background: #f8f9fa;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

    #sidebar-wrapper.collapsed {
        width: 0;
        overflow: hidden;
    }

/* Page content */
#page-content-wrapper {
    margin-left: 240px;
    transition: all 0.3s;
    padding: 3px;
}

    #page-content-wrapper.expanded {
        margin-left: 0;
    }

/* 手機選單浮動 */
#mobile-menu {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1050;
    display: none;
}



@media(max-width:768px) {
    #sidebar-wrapper {
        display: none;
    }

    #page-content-wrapper {
        margin-left: 0;
    }
}



.titleline {
    border: 1px #666 dashed; /*margin: 0 auto; */
    border-top-left-radius: 10px; /*設定左上角*/
    border-top-right-radius: 10px; /*設定右上角*/
    border-bottom-right-radius: 10px; /*設定右下角*/
    border-bottom-left-radius: 10px; /*設定左下角*/
}

.title-bg {
    background-image: linear-gradient(to right, #e9fbf9,#ffffff);
}

/* 確保 Datepicker 背景不透明 */
.datepicker {
    background-color: #fff !important;
    border: 1px solid #ccc;
    z-index: 1050 !important; /* Bootstrap 4 modal 上層用 */
}
