﻿html {
  font-size: 14px;
}
.dark-mode #header, .dark-mode .navbar .dropdown ul a {
    background: #1e1e1e !important;
}
.dark-mode .table thead th {
    background: black;
    color: #FFF;
}
.dark-mode .infor-table td, .dark-mode .table-phieuthu td {
    background: #1e1e1e !important;
    color: #FFF !important;
}
.modal-title, .search-datetime {
    color: black;
}
.dark-mode .navbar a, .dark-mode .navbar a:focus, .dark-mode .search-time a{
    color: #FFF;
}
.dark-mode .search-time a {
    border: 1px solid #FFF;
}
.information-hospital-home .row {
    margin: 0; 
}
.information-hospital-home .row .col-md-4 .infor-table{
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
}
/* CSS cho nút bật/tắt */
.switch {
    position: relative;
    display: inline-block;
    width: 45px; /* Giảm chiều rộng */
    height: 20px; /* Giảm chiều cao */
    margin-top: 8px;
    margin-left: 15px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px; /* Điều chỉnh theo chiều cao */
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; /* Giảm chiều cao */
    width: 16px; /* Giảm chiều rộng */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: white;
}

body.dark-mode button {
    background-color: #333;
    color: white;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main{
    flex: 1;
}



/*a{
    color: #FFF !important;
}*/
#header {
    height: auto !important;
    /*background: #1e1e1e !important;*/
    border-bottom: 0.5px solid #6f6f6f;
}
/*body {
    background-color: #101010f0 !important;
}*/
@media (min-width: 768px) {
    html {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
    .infor-mobile {
        display: none !important;
    }
}
.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;
}
.dark-mode .navbar-mobile ul {
    background-color: #1e1e1e !important;
}
.navbar .dropdown ul {
    /*background: #1e1e1e !important;*/
    padding: 0 !important;
}
.navbar .dropdown ul li{
    border: 0.5px solid #525252;
}
html {
    position: relative;
    min-height: 100%;
}

.search-time {
    display: flex;
    justify-content: end;
    margin: 10px 0;
}
.search-time a {
    border: 1px solid #0d6efd;
    padding: 3px 10px;
    margin-right: 12px;
    border-radius: 8px;
    text-decoration: none;
}
.search-time a:hover {
    background-color: #0d6efd;
    color: #FFF;
    transition: 0.5s all;
}
.information-hospital{
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.information-hospital-home {
    margin: 10px 10px 30px 10px;
}
th, td {
    text-align: center;
    vertical-align: middle !important;
}
.card-title{
    font-weight: 700;
}
.logo {
    max-width: 25%;
    margin: 5px 0;
}
.table > :not(caption) > * > *{
    background-color: transparent;
    box-shadow: none;
}
.card{
    border: none;
}
.infor-table {
    margin-bottom: 20px;
    box-shadow: rgba(64, 64, 67, 12.3) 0px 1px 2px 0px, rgba(60, 64, 67, 8.15) 0px 2px 6px 2px;
}
.infor-table td, .infor-table th {
    border: 1px solid #ccc;
    padding: 6px;
}
.infor-table td{
    font-size: 15px;
    /*background: #1e1e1e !important;
    color: #FFF !important;*/
}
.table thead th {
    border-bottom: none;
    /*background: black;*/
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    /*color: #FFF;*/
}
.card-body {
    padding: 0;
}
.infor-cls{
    padding-left: 20px;
}
.title-footer{
    font-size: 13px;
    font-style: italic;
}
.col-hospital{
    display: flex;
}
.col-hospital .table-responsive{
    text-align: center;
}
.col-hospital .number-total {
    display: flex;
    border-top: 1px solid #ccc;
}
.title-cc{
    font-size: 24px;
    /*color: #FFF;*/
}
.col-hospital .number-total .total {
    flex: 1;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column-reverse;
    border: 1px solid #cccccc8c;
    padding-bottom: 10px;
}
.col-hospital .infor-table{
    border: 0.5px solid #555;
}
.col-hospital .title {
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 600;
    /*color: #FFF;*/
}
.col-hospital .title-total{
    font-size: 16px;
    /*color: #ccc;*/
    flex: 1;
}
.big-title {
    text-align: center;
    font-size: 46px;
    font-weight: 600;
    /*color: #FFF;*/
    margin-bottom: 0;
}
.information-hospital-home .infor-table{
    margin: 10px;
}
.dashbord-hospital {
    box-shadow: rgba(64, 64, 67, 12.3) 0px 1px 2px 0px, rgba(60, 64, 67, 8.15) 0px 2px 6px 2px;
    padding-top: 5px;
}
.number-total .card-title {
    font-size: 60px;
    font-weight: 500;
}
/*.footer{
    color: #FFF;
}*/
.total-cls, .total-cc{
    flex-direction: column;
}
.total-cls .information-cls div{
    display: flex;
}
.information-cls .title{
    /*color: #FFF;*/
    font-size: 24px;
}
span#NgoaiTru_Tong, span#CCPT_Tong, span#CC_Tong {
    font-weight: 700;
    color: red !important;
}
.information-hospital-home .table-responsive .row{
    margin: 0;
}
.popup-cuoi-kx{
    right: 285%;
}
.popup-cuoi, .popup-cuoi-kx2 {
    right: 200%;
}
.popup-đangieutri{
    right: 100%;
}
.dashbord-time-cls .dashbord-hospital {
    padding-top: 0;
}
.dashbord-time-cls .body-waitingtime {
    display: flex;
    flex-wrap: wrap;
}
.dashbord-time-cls .infor-timecdha {
    display: flex;
    flex: 1;
    flex-direction: column;
    border: 1px solid #7676768f;
    min-width: calc((100% / 3) - 10px);
}
.dashbord-time-cls p{
    margin-bottom: 0;
}
.dark-mode .dashbord-time-cls .time-chodangky, .dark-mode .dashbord-time-cls .roomname, .dark-mode .dashbord-time-cls .sup-title {
    color: #FFF;
}
.dashbord-time-cls .title{
    font-size: 40px;
}
.dashbord-time-cls .time-chodangky {
    font-size: 20px;
    margin-bottom: 5px;
}
.dashbord-time-cls .sup-title {
    border-top: 1px solid #606060;
    border-bottom: 1px solid #606060;
    font-size: 20px;
}
.dashbord-time-cls .roomname {
    font-size: 24px;
    border-bottom: 1px solid #606060;
}
.dashbord-time-cls .card-title {
    font-size: 80px;
    font-weight: 600;
}
.form-search-cls .search-datetime{
    width: 47%;
    margin: 5px;
}
.form-search-cls .search-datetime input{
    width: 100%;
}
.form-search-cls .search-datetime label{
    font-weight: 600;
}
.form-search-cls button {
    margin-top: 10px;
}

.table-phieuthu td, .table-phieuthu th, .nhansu-dashboard table th, .nhansu-dashboard table td {
    border: 1px solid #ccc;
}
.dashbord-waitingtime .big-title {
    font-size: 38px;
}

.time-chodangky {
    margin-bottom: 0;
    text-align: center;
    /*color: #FFF;*/
}

.body-waitingtime {
    display: flex;
}

.body-waitingtime .infor-phieuhuy {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #cccccc7a;
}

.sup-title {
    /*color: #FFF;*/
    font-size: 18px;
    border-bottom: 1px solid #f1f1f1;
}

.infor-maxtime .card-title {
    color: red !important;
}

.menu-check-user{
    right: 0;
    left: unset !important;
}
.user-name{
    padding: 4px 10px;
    min-width: 220px !important;
    line-height: 28px;
}
.invoice-user{
    padding: 10px;
}

.nhansu-dashboard{
    padding: 0 10px;
}
.nhansu-dashboard .row {
    margin: 0;
}
.nhansu-dashboard .row .col-md-3 {
    width: calc((100% / 5));
}
.tab-search{
    display: flex;
    justify-content: space-between;
}
.search-tab-ns {
    display: block;
    padding: 0 10px;
}
#chartView, #chartView2 {
    width: 80%;
    margin: 0 auto;
}
.cot-bieudo a {
    margin-right: 5px;
    padding: 7px;
    padding-bottom: 10px;
}
.nav-tabs .nav-item{
    margin-bottom: 0;
}
.nav-tabs .nav-item .nav-link {
    border: 1px solid #ccc;
    color: #222;
}
.nav-tabs .nav-item .nav-link:hover, .nav-tabs .nav-item .nav-link.active {
    border-color: #FFF;
    color: #fff;
    background: #0d6efc;
}
.cot-bieudo{
    display: flex;
}
.dark-mode .nhansu-dashboard table td{
    color: #FFF;
    background: #222;
}
.dark-mode .nav-tabs .nav-link{
    color: #FFF;
}
.dark-mode #toggleViewBtn {
    background: #0d6efd;
}
.dilam {
    background: rgb(25 135 84) !important;
}
.nghi {
    background: rgb(220 53 69) !important;
}
.tongnv {
    background: rgb(13 202 240) !important;
}
.denghi {
    background: rgb(108 117 125) !important;
}
.dilam, .nghi, .tongnv, .denghi {
    color: #FFF !important;
}
.bg-cam {
    background-color: rgb(255 95 4) !important;
}
.ds-checkbn{
    padding: 0 10px;
}
.search-checkBN {
    justify-content: space-between;
}
.search-checkBN form{
    display: flex;
}
.search-checkBN .infor-import {
    margin-right: 0;
}
.ds-checkbn .row{
    margin: 0;
}
.ds-checkbn h4{
    text-align: center;
    margin: 10px 0;
}
.col-box-form {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 5px;
}
.col-box-form .table{
    margin-bottom: 0;
}
.col-box-form .table td, .col-box-form .table th, .ds-hsba .table td, .ds-hsba .table th{
    border: 1px solid #ccc;
}
.over-box {
    height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
/* Thanh trượt */
.over-box::-webkit-scrollbar {
    width: 8px; /* Độ rộng thanh cuộn */
}

/* Track của thanh trượt */
.over-box::-webkit-scrollbar-track {
    background: #f1f1f1; /* Màu nền track */
    border-radius: 10px; /* Bo góc */
}

/* Tay cầm (thumb) của thanh trượt */
.over-box::-webkit-scrollbar-thumb {
    background: #888; /* Màu của thanh cuộn */
    border-radius: 10px;
}

/* Hiệu ứng khi hover vào thanh trượt */
.over-box::-webkit-scrollbar-thumb:hover {
    background: #555; /* Đổi màu khi hover */
}
.hsba label {
    font-weight: 500;
}
.ds-hsba{
    padding: 10px;
}
.col-cdha{
    padding-right: 0 !important;
}
.col-xn {
    padding-left: 0 !important;
}
.col-cdha td, .col-xn td{
    font-size: 20px;
}
.col-cdha h3, .col-xn h3{
    margin-top: 10px;
}
.col-cdha th, .col-xn th{
    font-size: 20px !important;
}

.create-qlphong .select2-selection, .create-qlphong .select2-selection__clear, .create-qlphong .select2-selection__arrow {
    height: 38px !important;
}
.create-qlphong .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}
.qlphong, .create-qlphong {
    padding: 10px;
}
.qlphong p{
    text-align: right;
}
.qlphong .pagination{
    justify-content: end;
}
.create-qlphong .flatpickr-input {
    background-color: #FFF;
}
.create-qlphong .select2-container--default .select2-selection--single{
    border-color: #dee2e6 !important;
}
.create-qlphong .select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #212529 !important;
}
.create-qlphong .form-group label{
    font-weight: 500;
}
.dark-mode .qlphong td {
    background: #121212;
    color: #FFF;
}
.dark-mode .create-qlphong .form-control, .dark-mode .create-qlphong .select2-container--default .select2-selection--single {
    background: #121212;
    color: #FFF;
}
.dark-mode .create-qlphong .select2-container--default .select2-selection--single .select2-selection__placeholder, .dark-mode .create-qlphong .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #FFF !important;
}
.dark-mode .select2-search {
    background-color: #121212;
}
.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #FFF;
    background-color: #121212;
    color: #FFF;
}
.dark-mode .select2-results li {
    background-color: #121212;
    color: #FFF;
    
}
.trangthaidangsd {
    display: flex;
    flex-direction: column;
    background: #f50000a6 !important;
    color: #FFF !important;
}
.trangthaidangsd span{
    margin-bottom: 10px;
}
.content-baocaongay{
    margin-bottom: 20px;
}
.content-baocaongay h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}
.content-baocaongay .title-bcngay span{
    font-style: italic;
}
.title-bcngay{
    text-align: center;
}
.div-baocaongay {
    padding: 10px 0;
}
.content-baocaongay td, .content-baocaongay th{
    border: 1px solid #ccc;
}
.box-bcngay {
    box-shadow: rgba(64, 64, 67, 12.3) 0px 1px 2px 0px, rgba(60, 64, 67, 8.15) 0px 2px 6px 2px;
    padding: 10px;
}
.box-bcngay .table{
    margin-bottom: 0;
}
.btn-xuatpdf-bcngay{
    text-align: right;
    margin-top: 10px;
}
@media print {
    header, .btn-xuatpdf-bcngay {
        display: none !important;
    }
    .box-bcngay {
        box-shadow: rgba(64, 64, 67, 12.3) 0px 1px 2px 0px, rgba(60, 64, 67, 8.15) 0px 2px 6px 2px !important;
        padding: 10px !important;
    }
    .content-baocaongay .table .th {
        background: #94edb8 !important;
    }
    .content-baocaongay .table .th1 {
        background: #00d0ff !important;
    }
    .content-baocaongay .table .th2 {
        background: #ff6d6d !important;
    }
    .content-baocaongay .table-4-bcngay th {
        background: #94edb8 !important;
    }
    * {
        -webkit-print-color-adjust: exact !important;
    }
    .content-baocaongay .unit-col {
        text-align: left;
        font-weight: 800;
        text-transform: uppercase;
        background: #dee2e6 !important;
    }
}

.content-baocaongay .table .th {
    background: #94edb8 !important;
}

.content-baocaongay .table .th1 {
    background: #00d0ff !important;
}

.content-baocaongay .table .th2 {
    background: #ff6d6d !important;
}
.content-baocaongay .table-4-bcngay th {
    background: #94edb8 !important;
}
.content-baocaongay .unit-col {
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    background: #dee2e6;
}


















@media (max-width: 1200px) {
    .logo{
        max-width: 30%;
    }
    .cl-1{
        min-width: 200px !important;
    }
    .table-chitiet{
        overflow-x: auto;
    }
    .nhansu-dashboard table th, .nhansu-dashboard table td{
        min-width: 80px;
    }
}
@media (max-width: 1440px){
    .table-popup{
        display: none !important;
    }
    #chartView, #chartView2{
        width: 120%;
    }
}
@media(max-width: 1024px) {
    .logo {
        max-width: 35%;
    }
    .col-hospital {
        flex-direction: column;
    }
    .information-hospital-home .row .col-md-4{
        width: 100%;
    }
}
@media (max-width: 769px) {
    .tab-search {
        flex-direction: column-reverse;
    }

    .cot-bieudo {
        justify-content: end;
        margin-bottom: 10px;
    }
    .nhansu-dashboard .row .col-md-3 {
        width: calc((100% / 2));
    }
    #presentTrendChart, #barChart {
        width: 150% !important;
        height: 170% !important;
    }
    .tbl-phong {
        overflow-x: scroll;
    }
    .tbl-phong .table thead th {
        min-width: 100px !important;
    }
}
@media (max-width: 768px) {
    .information-hospital .col-md-6 {
        max-width: 100%;
        flex: unset;
    }

    .infor-pc {
        display: none !important;
    }

    .logo {
        max-width: 50%;
    }

    .dashbord-time-cls .body-waitingtime {
        flex-wrap: unset;
        overflow-x: auto;
    }

    .dashbord-time-cls .infor-timecdha {
        min-width: 50% !important;
    }

    .invoice-user {
        overflow-x: auto;
    }
    .search-cscl{
        justify-content: unset !important;
        width: 100%;
        overflow-x: scroll;
        padding-bottom: 5px;
    }
    .search-cscl .btn-primary{
        min-width: 104px;
    }
}
@media(max-width: 546px) {
    .nhansu-dashboard .row .col-md-3 {
        width: 100%;
    }
}



@media(max-width: 545px) {
    .col-hospital .number-total .total {
        min-width: 33.3333%;
    }

    .col-hospital .table-responsive {
        display: unset !important;
    }

    .col-hospital .number-total {
        overflow-x: auto;
    }
}

@media(max-width: 426px) {
    #chartView, #chartView2 {
        width: 200%;
    }
    .logo {
        max-width: 80%;
    }
    .form-bieudo-cscl {
        overflow-x: scroll;
    }
    .bieudo-cscl {
        width: 550px !important;
        height: 300px !important;
    }
}




@media(max-width: 425px) {
    .dashbord-time-cls .infor-timecdha {
        min-width: 100% !important;
    }

    .col-hospital .number-total .total {
        min-width: 50%;
    }

    .search-time {
        flex-wrap: wrap;
        margin: 10px;
    }

    .infor-table {
        overflow-x: auto;
    }

    .search-time a {
        margin-right: 0px;
        margin-bottom: 5px;
        margin-left: 5px;
    }
}

@media(max-width: 376px) {
    #modalBodyContent{
        overflow-x: auto;
    }
}

@media(max-width: 321px) {
    #chartView, #chartView2 {
        width: 260%;
    }
    .nav{
        flex-wrap: nowrap !important;
    }
    .nav-link{
        min-width: 150px;
    }
    .tab-search{
        overflow-x: scroll;
    }
}

@media(max-width: 991px) {
    .table thead th {
        font-size: 13px;
    }

    .infor-table td {
        font-size: 14px;
    }
}