﻿/*a {
    color: #17a2b8;
}*/
input[type="text"] {
    border: 1px solid #ced4da;
    border-radius: .15rem;
}
.overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255,255,255,.7);
    z-index: 9999;
}

.lds-ripple,
.lds-ripple div {
  box-sizing: border-box;
}
.lds-ripple img {
    width: 60px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lds-ripple div {
  position: absolute;
  border: 4px solid #17a2b8;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 0;
  }
  4.9% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 0;
  }
  5% {
    top: 36px;
    left: 36px;
    width: 8px;
    height: 8px;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}



/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    zoom: 0.8;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.group-view-bspt {
    display: flex;
    align-items: center;
}

.group-view-bspt p {
    margin: 0 10px 0 0;
}

.group-view-bspt label {
    margin: 0;
}

:not(.layout-fixed) .main-sidebar {
    position: fixed;
    /*top: 56px;*/
}
.card-cyan:not(.card-outline)>.card-header {
    background: #17a2b8;
}

.card.bg-gradient-light .bootstrap-datetimepicker-widget table td.active {
    color: #FFF;
    background-color: #28a745;
}

.card.bg-gradient-light .bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: #FFF;
}

.card.bg-gradient-light .bootstrap-datetimepicker-widget table td.active:hover {
    background-color: #28a745;
    color: #FFF;
    opacity: 0.7;
}

.DashboardThongke table.dataTable {
    margin-top: 0 !important;
}

.tblHon5LoaiThuoc ul.pagination {
    position: relative;
    left: -45%;
    top: -0.3125rem;
    margin: 0.25rem 0 !important;
}

.tblHon5LoaiThuoc .page-link {
    padding: .4rem .75rem;
}

#html5-qrcode-button-camera-stop,
#html5-qrcode-button-camera-start {
    margin-top: 0.5rem;
    background: #FFF;
}

#html5-qrcode-anchor-scan-type-change {
    margin-top: 0.5rem;
}

.txtMainColor {
    color: #17a2b8;
}

.bgCyanCore {
    background-color: #17a2b8;
}

.popUpLink {
    cursor: pointer;
    color: #007bff;
}

.uploadImg .upload__inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.uploadImg .upload__img-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 10px -10px 0 -10px;
}

.uploadImg .upload__img-box {
  width: 200px;
  padding: 0 10px;
  margin-bottom: 12px;
}

.uploadImg .upload__img-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: center;
  line-height: 24px;
  z-index: 1;
  cursor: pointer;
}

.uploadImg .upload__img-close:after {
  content: "✖";
  font-size: 14px;
  color: white;
}

.uploadImg .img-bg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-bottom: 100%;
}

.lightBoxThumb {
    width: 120px;
    height: 120px;
    display: inline-block;
}

.iHinhAnhGTo {
    position: relative;
    display: inline-block;
}

.iHinhAnhGTo .delImage {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: rgba(255,255,255,.8);
    border-radius: 50%;
    padding: 1px;
    cursor: pointer;
}

td.tdCheckBox {
    vertical-align: middle;
    text-align: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid;
  border-color: rgb(0, 123, 255) transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

span.inlineTextSpan {
    line-height: 2.4;
    display: inline-block;
    margin-right: 0.3rem;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.inputShort {
    max-width: 100px;
}

.dPre {
    white-space: pre;
}

.mwd-1000 {
    min-width: 1000px;
}

.tblHoverEn tbody tr:hover,
.tblHoverEn tbody tr.selected {
    background-color: #FEF6D5;
    cursor: pointer;
}

.tblHoverEn tbody tr.selectedTDT {
    background-color: mistyrose;
    cursor: pointer;
}

.tblHoverEn td {
    padding: 0.3rem 0.5rem;
}

.tblHoverEn td .btn-del,
.tblHoverEn td .btn-edit,
.tblHoverEn td .btn-tdt {
    padding: 0 0.4rem;
    line-height: 1.5;
}

tr.rowLocked > td  {
    color: red;
}

.tblTimKiemTH td {
    padding: 0.5rem;
}

.tblTimKiemTH tr {
    cursor: pointer;
}

.tblTimKiemTH tbody tr:hover,
.tblTimKiemTH tbody tr.selected {
    background-color: #FEF6D5;
    cursor: pointer;
}

.lstToDieuTriTime {
    padding: 1.25rem 0.75rem;
    max-height: 75vh;
    overflow-y: scroll;
}

.lstToDieuTriTime > p {
    cursor: pointer;
    padding: 0.25rem 0.75rem 0.25rem 3rem;
    color: #2b2b2b;
    margin-bottom: 0.5rem;
    position: relative;
}

.lstToDieuTriTime > p > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translate(0,-50%);
}

.lstToDieuTriTime > p:last-child {
    margin-bottom: 0;
}

.lstToDieuTriTime p:hover,
.lstToDieuTriTime p.active {
    background-color: #007bff;
    color: #FFF;
    border-radius: 0.2rem;
}

.lstTimeTree {
    padding: 1.25rem 0.75rem;
    max-height: 75vh;
    overflow-y: scroll;
}

.lstTimeTree > p {
    cursor: pointer;
    padding: 0.25rem 0.75rem 0.25rem 3rem;
    color: #2b2b2b;
    margin-bottom: 0.5rem;
    position: relative;
}

.lstTimeTree > p > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translate(0,-50%);
}

.lstTimeTree > p:last-child {
    margin-bottom: 0;
}

.lstTimeTree p:hover,
.lstTimeTree p.active {
    background-color: #007bff;
    color: #FFF;
    border-radius: 0.2rem;
}

.w92percent {
    width: 90%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.7;
}

.lh17 {
    line-height: 1.7;
}

#rptIframe {
    width: 100%;
    height: 65vh;
}

.pdfjs-viewer {
    width: 100%;
    height: 65vh;
}

.gbLink .nav-pills .nav-link {
    color: #343a40;
}

.gbLink .nav-pills .nav-link.active {
    background-color: #17a2b8;
    color: #FFF;
}

.gbLink  .nav-pills .nav-link:not(.active):hover {
    color: #17a2b8;
}

.gbLink .card-header>.card-tools {
    margin-right: 0;
    margin-top: 0.5rem;
}

.btnTblLuuThuoc {
    position: relative;
    line-height: 3.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn.btn-quyuoc:hover {
    color: #FFF;
    background-color: #5a6268;
    border-color: #545b62;
}

.lst-quyuoc span {
    padding: .25em .4em;
    font-size: 1rem;
    color: #fff;
    background-color: #6c757d;
    text-align: left;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.lst-quyuoc.item-fullW span {
    display: block;
}

.lst-quyuoc {
    height: 0;
    max-height: 30vh;
    overflow-y: scroll;
    position: absolute;
    top: 100%;
    padding: 0.75rem 0.5rem 0.2rem 0.5rem;
    background-color: #FFF;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
    box-sizing: border-box;
    width: calc(100% - 14px);
    left: 7.5px;
    opacity: 0;
}

    .lst-quyuoc.is-open {
        z-index: 3;
        opacity: 1;
        height: initial;
    }
    .lst-quyuoc.drop-up {
        top: auto;
        bottom: 100%; 
    }
    .lst-quyuoc input.quyuoc-filter {
        width: 100%;
        padding: .25rem .5rem;
        font-size: 0.9rem;
        margin-bottom: .5rem;
        border: 1px solid #ccc;
        border-radius: .25rem;
        box-sizing: border-box;
    }

.selected-quyuoc {
    margin-top: 5px;
    min-height: 30px;
}

    .selected-quyuoc .tag {
        display: inline-block;
        background: #007bff;
        color: white;
        border-radius: 3px;
        padding: 3px 7px;
        margin: 2px;
        font-size: 14px;
    }

    .selected-quyuoc .remove-tag {
        background: transparent;
        border: none;
        color: white;
        margin-left: 5px;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        line-height: 1;
    }
textarea.fieldSizingFit {
    field-sizing: content;
}

.lst-quyuoc::-webkit-scrollbar {
  width: 3px;
}

/* Track */
.lst-quyuoc::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
.lst-quyuoc::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
.lst-quyuoc::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.form-control:disabled, .form-control[readonly] {
    cursor: not-allowed;
    pointer-events: none;
}

.badge-header {
    position: absolute;
    right: -5px;
    top: -10px;
}

.header-avatar {
    height: initial;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.header-avatar > img {
    display: inline-block;
    width: 40px;
    margin: 0 5px 0 -5px;
}

.hide-canvas {
    height: 0;
    overflow: hidden;
}

.table-text-center td,
.table-text-center th {
    vertical-align: middle;
    text-align:center;
}

.table-text-center-v td {
    vertical-align: middle;
}

.eclip300 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: inline-block; 
}

.eclip250 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: inline-block; 
}

.ui-datepicker {
  background: #fff;
  border: 1px solid #007bff;
  border-radius: 10px;
  /*padding: 12px;*/
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.ui-datepicker-header {
  background: #D1F2F7;
  color: black ;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px 0;
  font-weight: 500;
}

.ui-datepicker-title {
  font-weight: bold;
}

.ui-datepicker-prev, .ui-datepicker-next {
  cursor: pointer;
  color: #fff;
  transition: opacity 0.3s;
}

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
  opacity: 0.7;
}

.ui-datepicker-calendar th {
  background: #f8f9fa;
  padding: 6px;
  font-weight: 500;
}

.ui-datepicker-calendar td a {
  background-color: #f6f6f6 ;
  display: block;
  /*padding: 10px;*/
  text-align: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ui-datepicker-calendar td a:hover {
  box-shadow: 0 4px 8px rgba(209, 242, 247, 0.8) !important;
  background: transparent !important;
  color: inherit !important;
}

.ui-datepicker-calendar .ui-state-highlight {
  background: #ffeb99 !important;
  font-weight: 700;
}

.ui-datepicker-calendar .ui-state-active {
  background: #17a2b8 !important;
  border-color: #17a2b8;
  color: #FFFFFF !important;
  font-weight: 600;
}

.table-stick {
    max-height: 300px;
    overflow-y: auto; 
}

.table-stick .table thead th {
    /*stick cho header*/
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

@media (max-width: 1024px) {
    .w92percent {
        width: 85%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (max-width: 821px) { /* Áp dụng cho iPad Air hoặc thiết bị nhỏ hơn */
    .modal-fullscreen {
        max-width: 100%;
        margin: 0;
    }

    .modal-dialog.modal-fullscreen {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
    }

    .modal-content.modal-fullscreen {
        height: 100%;
        border-radius: 0; /* Loại bỏ góc bo tròn */
    }

    .pdfjs-viewer {
        height: 85vh;
    }
    
    .container {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}


@media (max-width: 480px) {
    /*div.dataTables_paginate {
        zoom: 0.75;
    }

    table.table-bordered.dataTable tbody th,
    table.table-bordered.dataTable tbody td,
    table.dataTable thead > tr > th.sorting_asc,
    table.dataTable thead > tr > th.sorting_desc,
    table.dataTable thead > tr > th.sorting,
    table.dataTable thead > tr > td.sorting_asc,
    table.dataTable thead > tr > td.sorting_desc,
    table.dataTable thead > tr > td.sorting,
    table.table-bordered.dataTable th,
    table.table-bordered.dataTable td {
        font-size: 0.85rem;
    }*/

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        justify-content: center;
    }

    .wrapper {
        max-width: 100%;
        overflow: hidden;
    }

    .group-view-bspt {
        margin-top: 10px;
    }

    .card-body {
        padding: .75rem;
    }

    .dataTables_filter input,
    .dataTables_length select {
        font-size: 1rem;
    }

    .subTitlePage {
        zoom: 0.85;
    }

    .lightBoxThumb {
        width: 80px;
        height: 80px;
    }

    .sp-max-1000px {
        min-width: 1000px;
    }

    .sp-overflow-scroll {
        overflow: scroll;
    }
}
.BNHeader {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 12px 0;
}
    .BNHeader h4 {
        font-weight: 600;
        margin: 0;
    }

    .BNHeader .breadcrumb {
        margin-bottom: 0;
        background: transparent;
    }

/* For Safari: Buộc hiện thanh cuộn */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .sidebar {
                min-height: calc(100vh - 56px); /* Điều chỉnh theo chiều cao header nếu có */
            overflow-y: scroll !important;
            -webkit-overflow-scrolling:touch;
        }
    }
}

.sidebar {
    min-height: calc(100vh - 56px); /* Điều chỉnh theo chiều cao header nếu có */
    overflow-y: auto;
}

.wrapper, html, body {
    height: 100%;
}

.scroll-box {
    max-height: 200px; 
    overflow-y: auto;
}

.scroll-box p {
    padding: 0.75rem;
    box-sizing: border-box;
    margin-bottom: 0;
    text-align: justify;
}



.device-warning-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.device-warning-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: .25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-warning-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.device-warning-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(90deg);
    }
}

.device-warning-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.device-warning-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.device-warning-content {
    padding: 40px 30px;
    text-align: center;
}

.main-message {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sub-message {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 35px;
}

.device-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .warning-container {
        margin: 10px;
        border-radius: 15px;
    }

    .warning-header {
        padding: 20px;
    }

    .warning-title {
        font-size: 20px;
    }

    .warning-content {
        padding: 30px 20px;
    }

    
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.login-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 4px solid #17a2b8;
    transition: all 0.3s ease;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    background: #fff;
    cursor:pointer
}

.login-info {
    flex: 1;
}

.login-device {
    font-weight: 600;
    color: #2c3e50;
}

.login-details {
    font-size: 14px;
    color: #6c757d;
}

.login-time {
    font-size: 13px;
    color: #17a2b8;
    font-weight: 500;
}

.device-icon {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.7;
}


.modal.fullscreen-modal .modal-dialog {
  width: 100vw;
  max-width: 100%;
  height: 100%;
  margin: 0;
}

.modal.fullscreen-modal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.modal.fullscreen-modal .modal-body {
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* tablet màn hình nhỏ */
}
@media (max-width: 480px) {
    .main-message {
        font-size: 16px;
    }

    .sub-message {
        font-size: 13px;
    }

    .device-button-container .btn {
        width: 100%;
        font-size: 15px;
    }
    .device-warning-wrapper {
        padding: .75rem;
    }

    .lstToDieuTriTime {
        max-height: 35vh;
    }

    .lstTimeTree {
        max-height: 35vh;
    }

    .table-responsive > table {
        width: 900px;
    }
}
.image-upload-container {
    max-height: 1000px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

    .image-upload-container:hover {
        border-color: #007bff;
        background: #f0f8ff;
    }

    .image-upload-container.has-image {
        border-style: solid;
        border-color: #28a745;
        background: #f8fff9;
    }

.upload-area {
    cursor: pointer;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}


.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}


.preview-image {
    display: block;
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.btn-remove-image {
    content: "✖";
    font-size: 14px;
    color: white;
}
.tui-image-editor-help-menu {
    display: none !important;
}
.tui-image-editor-header-logo {
    display: none !important;
}

.tui-image-editor-container ::-webkit-scrollbar {
    width: 8px;
}

.tui-image-editor-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tui-image-editor-container ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .tui-image-editor-container ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

#ChuKiTay_TenDayDu {
    text-transform: capitalize !important;
}
.ellipsis-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-disable {
    background-color: #e9ecef !important;  /* giống màu disabled */
    pointer-events: none;                  /* ngăn click */
    opacity: 0.6;         
}

.td-disable {
    pointer-events: none;                  /* ngăn click */
    opacity: 0.6;         
}

.user-panel .info {
    white-space: normal;
}

.card-body.p-0 #tbThuocBN_wrapper .table tbody>tr>td:last-of-type {
    padding-right: 0;
}

a.disabled {
    pointer-events: none;
    color: #6c757d; /* giống màu "disabled" của Bootstrap */
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.4;
}

/*#pdf-container {
    background-color: #f0f0f0;*/    /* Xám nhẹ */
    /*padding: 30px 10px;*/           /* Canh giữa và tạo khoảng cách viền */
    /*overflow-y: auto;
    max-height: 80vh;
}

#pdf-container canvas {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.textLayer {
    font-family: sans-serif;
    line-height: 1;
    white-space: pre;
    overflow: hidden;
    transform-origin: 0 0;
    z-index: 2;
}*/
input.skeleton-input {
    background-color: #e2e2e2 !important;
    color: transparent !important;
    position: relative;
}

    input.skeleton-input::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        height: 100%;
        width: 100%;
        background: linear-gradient(to right, #e2e2e2 0%, #f0f0f0 50%, #e2e2e2 100%);
        animation: shimmer 1.2s infinite;
    }

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.tag-yellow {
    background-color: #ffc107;
    color: #212529;
}

.tag-success {
    background-color: #28a745;
    color: #fff;
}

.tag-danger {
    background-color: #dc3545;
    color: #fff;
}

.changes-section {
    margin-top: 1.5rem;
}

.change-item {
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-radius: 0.4rem;
    padding: 1rem;
    position: relative;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid #ddd;
}

    .change-item:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

.change-code {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.5rem;
    display: block;
}

.change-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.change-old {
    flex: 1;
    text-decoration: line-through;
    opacity: 0.7;
    padding-right: 1rem;
    word-break: break-word;
}

.change-arrow {
    margin: 0 0.75rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.change-new {
    flex: 1;
    color: #22bb33;
    font-weight: 500;
    word-break: break-word;
}

table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
    top: 50%;
    transform: translate(0, -50%);
    border: none;
    box-shadow: none;
}

@media (min-width: 992px) {
  .text-nowrap-lg {
    white-space: nowrap !important;
  }
}
.drug-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drug-card {
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e8ed;
}
    .drug-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
    }
.drug-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drug-code {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.analysis-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e1e8ed;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.section-content {
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 1.5rem;
}
.reason-section {
    border-radius: 12px;
    padding: .25rem;
    margin-top: 1.5rem;
}

.reason-title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.reason-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

    .reason-textarea:focus {
        outline: none;
        border-color: #3498db;
        background: white;
    }
.voice-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.voice-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  color: #6c757d; /* màu icon mặc định */
}

.voice-btn.active {
  color: #dc3545; /* màu đỏ khi đang ghi âm */
}

.voice-wrapper .btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

.voice-wrapper .start-voice {
    border-color: #17a2b8;
    background-color: #FFF;
}

.voice-wrapper .start-voice i {
    line-height: 20px;
    color: #17a2b8; /* xanh micro */
}

.voice-wrapper .stop-voice {
    background-color: #FFF;
}

.voice-wrapper .stop-voice i {
    color: #dc3545; /* đỏ stop */
    line-height: 20px;
}

.voice-wrapper .voice-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width:30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-content: center;
    border-radius: 50%;
}

.voice-wrapper textarea {
    padding-right: 40px; /* chừa chỗ cho icon */
}

.voice-input.listening {
    border: 1px solid rgba(23, 162, 184, 0.6) !important;
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.6);
    animation: pulse-border 1.5s infinite;
    transition: all 0.3s ease;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 4px rgba(23, 162, 184, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(23, 162, 184, 0.9);
    }
    100% {
        box-shadow: 0 0 4px rgba(23, 162, 184, 0.4);
    }
}
@media (max-width: 768px) {
    .drug-info-grid {
        grid-template-columns: 1fr;
    }
}


.timeline-khambenh {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}
.timeline-khambenh::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #17a2b8; /* line nhạt xanh ngọc */
    left: 10px;
    margin: 0;
}
.timeline-khambenh > li {
    position: relative;
    margin-bottom: 30px;
    margin-left: 36px;
}
.timeline-khambenh > li::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    left: -32px;
    top: 5px;
    background: #17a2b8; /* chấm xanh ngọc đậm */
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #17a2b8;
}

/* thẻ a bọc card */
.timeline-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* card bên trong link */
.timeline-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

/* hover card */
.timeline-card-link:hover .timeline-card {
    background: #f8ffff;
    border-color: #17a2b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* nội dung */
.timeline-date {
    display: inline-block;
    font-weight: bold;
    color: #fff;
    background: #17a2b8;
    padding: 4px 10px;
    border-radius: 50px; /* pill */
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.timeline-date .fas {
    margin-right: 5px;
}

.timeline-room {
    color: #555;
    margin-bottom: 5px;
}
.timeline-diagnosis {
    color: #333;
}
.timeline-patient {
    color: #666;
    margin-bottom: 5px;
}
.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .timeline-actions .btn {
        flex: 1 1 auto;
        min-width: 140px; /* tránh nút quá bé trên mobile */
    }
.timeline-btn {
    flex: 1 1 calc(50% - 8px); /* 2 nút 1 hàng */
    background: #f1f9fa;
    border: 1px solid #17a2b8;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #17a2b8;
    text-decoration: none;
    transition: all 0.2s;
}

.timeline-btn:hover {
    background: #17a2b8;
    color: #fff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.4s ease;
}

.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* khoảng cách giữa các button */
}

    .btn-group-responsive .btn {
        flex: 1 1 auto; /* cho button tự co giãn đều nhau */
        min-width: 120px; /* đặt chiều rộng tối thiểu */
    }

.timeline-header {
    margin-bottom: 5px;
}
.change {
    margin-top: 5px;
}

.removed {
    color: red;
    text-decoration: line-through;
    margin-right: 5px;
}
.present {
    color: #17a2b8;
    font-weight: bold
}
/* Card tổng */
.editor-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap; /* Cho mobile */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #f8f9fa;
}

/* Nhóm nút */
.editor-toolbar .group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Nút chính */
.btn-main {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-main:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}

/* Canvas wrapper */
.canvas-wrap {
    position: relative;
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
    padding: 1rem 0;
}

.canvas-container {
    margin: 1rem 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff
}

.canvas-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.editor-card .card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-toolbar .group {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .editor-card .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

}
#listMau .list-group-item {
    cursor: pointer;
    padding: .35rem .5rem;
}

    #listMau .list-group-item.active {
        background-color: #3c8dbc; /* màu xanh AdminLTE */
        border-color: #367fa9;
        color: #fff;
    }
.table-modify {
    max-height: 500px;
    overflow-y: auto;
}

.btn-orange {
    background-color: rgba(240, 140, 0, 1); /* Cam hổ phách */
}

    .btn-orange:hover {
        background-color: rgba(214, 124, 0, 1); /* Cam hổ phách đậm hơn */
    }

table.dataTable tbody tr.table-orange {
    background-color: rgba(240, 140, 0, 0.45) !important; /* Cam hổ phách nhạt */
    border-color: rgba(240, 140, 0, 0.8) !important;
}

.bo-dung-cu {
  display: flex;
  gap: 6px;
}

.bo-dung-cu span {
  width: 22px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  background: #FFF;
  border: 1px solid;
  border-top: 5px solid;
  cursor: pointer;
}

/* màu pastel theo thứ tự */
/*.bo-dung-cu span:nth-child(1) { border-color: blue; color: blue; }*/ /* Ống xanh dương */
/*.bo-dung-cu span:nth-child(2) { border-color: green; color: green; }*/ /* Ống xanh lá */
/*.bo-dung-cu span:nth-child(3) { border-color: red; color: red;}*/ /* Ống đỏ */
/*.bo-dung-cu span:nth-child(4) { border-color: black; color: black; }*/ /* Ống đen */
/*.bo-dung-cu span:nth-child(5) { border: 1px solid goldenrod; color: goldenrod; }*/ /* Lọ nắp vàng */
/*.bo-dung-cu span:nth-child(6) { border: 1px solid orangered; color: orangered; }*/ /* Lọ nắp đỏ vô trùng */
/*.bo-dung-cu span:nth-child(7) { border: 1px solid purple; color: purple; }*/ /* Que tăm bông trong ống vô trùng */

.input-highlight {
    border-color: red !important;
    box-shadow: 0 0 5px red;
    transition: 0.3s;
}

table.dataTable {
    margin-top: 0 !important;
}

.disabled-row {
    opacity: 0.6;
    pointer-events: none; /* Không cho hover, click */
}

.skeleton {
    position: relative;
    background-color: #e2e2e2;
    overflow: hidden;
    border-radius: 4px;
}
    .skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        left: -150px;
        height: 100%;
        width: 150px;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
        animation: loadingShimmer 1.2s infinite;
    }
@keyframes loadingShimmer {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}
.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 50%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
