﻿html {
    font-size: 14px;
    font-family: Noto Sans TC;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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%;
}

td, th {
    padding: 8px;
    vertical-align: middle;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 5px;
}

.button-orange {
    background: var(--Main-Coral-400, rgba(255, 140, 115, 1));
}

.notes-text {
    display: -webkit-box; /* 將元素設置為盒子模型 */
    -webkit-box-orient: vertical; /* 設置為垂直方向的盒子 */
    -webkit-line-clamp: 2; /* 限制顯示行數為 2 行 */
    overflow: hidden; /* 隱藏超出的文字 */
    text-overflow: ellipsis; /* 超出時顯示省略號 */
    white-space: normal; /* 正常換行 */
}

.modal-header {
    border-bottom:none !important;
}

.modal-footer {
    border-top:none !important;
}

.custom-multiselect-button {
    background-color: #fff;
}

.dropdown-menu {
    position: relative;
    top: 35px;
    max-height: 250px;
    overflow-y: scroll;
    width: 100%;
}
    .dropdown-menu li {
        border-bottom: solid 1px #aaa;
        margin: 2px;
    }

.multiselect-container > li > a > label {
    padding: 4px 15px 4px 15px !important;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-toggle {
    border: solid 1px #aaa;
}

.layout-left-panel .navbar-nav .nav-item a {
    width: 180px;
}
.layout-left-panel .navbar-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
    .layout-left-panel .navbar-brand-container .navbar-toggler {
        display: none;
    }

.layout-left-panel .navbar-nav .nav-item a {
    padding-left: 18px;
    color: var(--Neutral-Misty-Blue, rgba(69, 74, 76, 1)) !important;
}

.layout-left-panel .navbar-nav .active  {
    background: var(--Main-Coral-400, rgba(255, 140, 115, 1));
}
.layout-left-panel .navbar-nav .active a {
    color: rgb(255, 255, 255) !important;
}

/* #region DataTable元件*/
/* 表格的基本 */
table.dataTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    /* 表頭 */
    table.dataTable thead th {
        background: var(--Misty-Blue-ono-Misty-Blue-300, rgba(134, 153, 163, 1));
        color: rgba(255, 255, 255, 1);
        padding: 10px;
        border-bottom: 2px solid #ddd;
        text-align: center;
    }

    /* 表格内容行 */
    table.dataTable tbody td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
        background: #fff;
    }

    /* 表格 hover 效果 */
    table.dataTable tbody tr:hover {
        background-color: #f1f1f1;
    }

/* 分頁 */
.dataTables_paginate {
    text-align: center;
    margin-top: 10px;
}

    .dataTables_paginate .paginate_button {
        padding: 5px 10px;
        margin: 0 2px;
        background-color: #fff;
        border: 1px solid #ddd;
        color: #333;
        cursor: pointer;
    }

        .dataTables_paginate .paginate_button.current {
            background-color: #007bff;
            color: #fff;
        }

        .dataTables_paginate .paginate_button:hover {
            background-color: #e9e9e9;
            border: 1px solid #007bff;
        }

/* 表格最右侧编辑图标样式 */
.edit-icon {
    cursor: pointer;
    color: #007bff;
}
table.dataTable .edit-btn, .export-btn, .csv-btn, .report-btn {
    border: 0px;
    background: transparent;
}
/* 設置表格中強調的字體加粗 */
strong {
    font-weight: bold;
}

/* 調整表格的文字對齊 */
table.dataTable tbody td {
    text-align: center; /* 如果需要居中，修改這裡 */
}

/* 分页选择框样式 */
.dataTables_length select {
    padding: 5px;
    margin-left: 5px;
}

/* DataTable边框样式 */
table.dataTable {
    border: 1px solid #ddd;
}

    /* 當行沒有數據時顯示的樣式 */
    table.dataTable tbody .dt-empty {
        text-align: center;
        padding: 20px;
        color: #999;
    }

    /* DataTable中的列標題對齊和排序箭頭 */
    table.dataTable thead th.sorting_asc,
    table.dataTable thead th.sorting_desc {
        padding-right: 25px;
    }

.dataTables_length {
    float: right;
    margin-bottom: 10px;
}
.dataTable #tbldevice_info{
    display:none;
}

.dataTables_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 20px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        display: inline-block;
        margin: 0 5px;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background-color: #ddd;
            border-color: #007bff;
        }
/*#endregion DataTable元件*/

/* #region 上傳檔案樣式*/
.file-display {
    position: relative;
    padding: 10px;
}

.selected-file-upload{
    width:100%;
}

/* 設置清除按鈕的絕對定位 */
.clear-button {
    position: absolute;
    top: 10px; /* 距離上方 10px */
    right: 10px; /* 距離右側 10px */
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .clear-button:hover {
        background-color: #999;
    }

/*#endregion 上傳檔案樣式*/

/* #region loginBlock*/
.loginBlock {
    display: flex;
    height: 100vh;
}
    .loginBlock .left-panel {
        flex: 1;
        background: linear-gradient(179.19deg, #F5E4D5 0.19%, #F8F7F4 56.19%);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .loginBlock .right-panel {
        flex: 1;
        background-color: #fff;
        padding: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .loginBlock .title{
        margin-bottom:20px;
    }

    .loginBlock .remind {
        color: rgba(93, 95, 97, 1);
        font-family: PingFang TC;
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: 0.20000000298023224px;
        text-align: left;
        margin-bottom: 20px;
    }

    .loginBlock .loginButton {
        padding: 14px 20px 14px 20px;
        gap: 8px;
        border-radius: 8px;
    }

    .loginBlock .form-group {
        margin-bottom: 20px;
    }

    .loginBlock input[type="text"],
    .loginBlock input[type="password"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .loginBlock .show_hide_password_input {
        width: 250px !important;
        border-right: none !important;
    }

    .loginBlock .show_hide_password_icon {
        border: 1px solid #ced4da;
        border-radius: 0px 5px 5px 0px;
        border-left: none;
        width: 40px;
    }

        .loginBlock .show_hide_password_icon .btn {
            border: none;
            background: none;
            padding: 0;
            margin: 0;
            height: 100%;
        }
.btn-no-border:focus,
.btn-no-border:active {
    outline: none; /* 移除焦点样式 */
    box-shadow: none; /* 移除阴影 */
}

/*#endregion loginBlock*/

/*#region Device*/

/* #region 搜尋框 */
.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    border: 1px solid #aaa;
    border-radius: .25rem;
    overflow: hidden;
}

/* 搜索输入框 */
.search-input {
    flex-grow: 1;
    padding: .375rem .75rem;
    border: none;
    outline: none;
    font-size: 16px;
}

.header-searchBar {
    margin-bottom: 16px;
}

/* 搜索按钮 */
.search-button {
    background-color: var(--Misty-Blue-ono-Misty-Blue-300, rgba(134, 153, 163, 1));
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .search-button i {
        font-size: 18px;
    }

/* #endregion 搜尋框 */

/*#region 容器样式 */
.button-container {
    display: flex;
    gap: 10px; 
}

/* 按钮样式 */
.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px;
    font-size: 16px;
    cursor: pointer;
    color:#fff;
    background: var(--Main-Coral-400, rgba(255, 140, 115, 1));
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: .25rem;
    padding: .375rem .75rem;
}

    .icon-button i {
        margin-right: 5px;
        font-size: 18px; /* 图标大小 */
    }

/*#endregion 容器样式 */

/*#region 編輯popup*/
/* Modal 容器 */
/*.modal-dialog {
    width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 20px;
    z-index: 2000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
}
*/
/* Modal 头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 15px;
}

    .modal-header h2 {
        font-size: 20px;
        margin: 0;
    }

.close-modal {
    font-size: 24px;
    cursor: pointer;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

.required {
    margin-left: 5px;
}

/* 载入图标 */
.loading-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

    .loading-indicator::after {
        content: "";
        border: 2px solid #fff;
        border-top: 2px solid transparent;
        border-radius: 50%;
        width: 12px;
        height: 12px;
        margin-left: 5px;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal 底部 */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
}

/* 删除按钮 */
.delete-btn {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

    .delete-btn i {
        margin-right: 5px;
    }

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 10px;
}

/* 取消按钮 */

.cancel-btn {
    background-color: white;
    color: #000;
    border: solid 1px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    border-color: rgba(108, 131, 143,0.8);
}

/* 保存按钮 */
.save-btn {
    background-color: rgb(108, 131, 143);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/*#endregion 編輯popup*/

/*#region 上傳popup*/
/* 整體樣式 */
.upload-modal {
    width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    z-index: 1050;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.upload-body {
    text-align: center;
    margin-top: 20px;
}

.upload-popup {
    border: 2px dashed #ccc;
    padding: 40px;
    border-radius: 10px;
    background-color: #f0f0f0;
    position: relative;
}

.upload-popup p {
    padding:4px;
}

.upload-icon {
    font-size: 50px;
    color: #333;
    margin-bottom: 20px;
}

.browse-btn,.retry-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.file-size-limit {
    margin-top: 10px;
    font-size: 12px;
}
.heigh-line {
    font-size: 16px; 
    text-align: center; 
    margin-top: 10px; 
}
/*#endregion 上傳popup*/



/*#endregion Device*/

/*#region datalist*/

.datalist .card {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    flex-direction: revert !important;
    color: var(--Misty-Blue-ono-Misty-Blue-500, rgba(89, 107, 117, 1));
    font-weight: 700;
}

.datalist .card-section {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #ccc;
    width: 38%;
    place-items: center;
    display: grid;
}

    .datalist .card-section:last-child {
        border-right: none;
    }
.datalist .icon-text {
    display: flex;
    align-items: center; /* 垂直居中對齊內容 */
    justify-content: center; /* 水平居中 */
    font-size: 18px;
    text-align: center;
    vertical-align: middle;
    padding-top: 10px; /* 增加上方的間距，實現微調 */
}

    .datalist .icon-text p {
        padding-top: 15px;
        padding-left: 10px;
    }
 
.datalist .icon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px; /* 如果需要再進一步向下調整，可以增加這裡的間距 */
}

.datalist .double {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.datalist .double-item {
    justify-content: space-between;
    width: 50%;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

    .datalist .double-item:last-child {
        border-bottom: none;
    }

    .datalist .double-item p {
        margin: 0;
    }

.datalist .count {
    font-size: 22px;
    font-weight: bold;
}

/*#endregion*/

/* #region Admin*/
.hospital-table thead th {
    width: 10%;
    white-space: nowrap;
}

.hospital-table td label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    white-space: nowrap;
}
.hospital-table .hospital-name-input {
    border: 1px solid #ddd;
    line-height: 1.5;
    padding: 6px;
    border-radius: 4px;
}


.adminlist .form-group label {
    font-weight: bold;
}

.adminlist .input-group {
    margin-bottom: 15px;
}

.adminlist.account-group {
    display: flex;
    gap: 10px;
}
.adminlist .delete-button {
    display: flex;
    align-items: center;
    gap: 5px;
}
/*#endregion Admin*/