﻿html {
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}*/

.sidebar-brand {
    text-decoration: none !important;
    font-size: 1.4rem !important;
    /*color: inherit;*/
}

.sidebar-header a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

    .sidebar-header a:hover {
        color: white;
    }

.sidebar-content {
    max-height: calc(100vh - 1px); /* 或者根據你需要扣除額外間距 */
    overflow-y: auto;
}

.sidebar-brand {
    position: sticky;
    top: 0;
    z-index: 10; /* 如有需要提高層級，避免被捲動內容覆蓋 */
    background-color: #222e3c; /* 可設置背景色使其看起來固定 */
}

.mt-2, .my-2 {
    margin-top: 0rem !important;
}

.mt-3, .my-3 {
    margin-top: 0rem !important;
}

.mb-4, .my-4 {
    margin-bottom: 0rem !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    margin-bottom: 0;
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
    display: inline-block;
}

/*.dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

    .dataTables_filter label {
        margin-bottom: 0;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    .dataTables_filter input {
        display: inline-block;
        width: auto;
        margin-left: 0.5rem;
    }
*/
/* Custom search box */
#customSearchWrapper label {
    white-space: nowrap;
    margin-bottom: 0;
}

#customSearchWrapper input {
    width: auto;
    display: inline-block;
    margin-left: 0.5rem;
}

/* DataTables sorting icons */
table.dataTable thead .sorting:after {
    content: '⇅';
    float: right;
    color: #999;
}

table.dataTable thead .sorting_asc:after {
    content: '▲';
    float: right;
    color: #000;
}

table.dataTable thead .sorting_desc:after {
    content: '▼';
    float: right;
    color: #000;
}

/* 調整 info 資訊字型大小 */
.dataTables_info {
    font-size: 14px; /* 你可以改成你要的大小，例如 12px、1em 等 */
    /* width: 500px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分顯示省略號 */
}

.dataTables_wrapper .dataTables_paginate {
    white-space: nowrap;
    width: auto;
    margin-left: auto;
}

/* .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info {
        min-width: 150px;
    } */

#SysProgramTable tbody tr:hover > td,
#SysComboMasterTable tbody tr:hover > td,
#SysComboDetailTable tbody tr:hover > td,
#SysHospitalTable tbody tr:hover > td,
#SysSchemaHeadTable tbody tr:hover > td,
#SysSchemaBodyTable tbody tr:hover > td,
#SysRoleTable tbody tr:hover > td,
#SysRoleProgramTable tbody tr:hover > td {
    background-color: #e4e2e2 !important;
    color: red !important;
    cursor: pointer;
}

.table-checkbox {
    accent-color: black; /* ✅ 控制勾選顏色（支援現代瀏覽器） */
    pointer-events: none; /* 防止互動 */
}

