/*:root, [data-theme=light] {
  --kt-table-striped-bg: rgb(32 32 50 / 49%);
}
:root, [data-theme=dark] {
  --kt-table-striped-bg: rgb(32 32 50 / 20%);
}*/
.fixed-action-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding-top: 15px;
  margin-bottom: 0;
  z-index: 998;
  padding: 0 0 0 15px;
}
.fixed-action-btn .btn {
    display: flex;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    border-radius: 50%;
    transition: .5s;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
}
.fixed-action-btn .btn.btn-large {
  width: 60px;
  height: 60px;
} 
.fixed-action-btn .btn:hover {
  box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);
}
.fixed-action-btn .btn i {
  width: inherit;
  display: inline-block;
  text-align: center;
  color: #fff;
  font-size: 20px;
  line-height: 40px;
}
.fixed-action-btn .btn.btn-large i {
  line-height: 70px;
  font-size: 25px;
}
.fixed-action-btn ul {
  text-align: right;
  right: 70px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  height: 100%;
  left: auto;
  width: 500px;
  position: absolute;
  bottom: 64px;
  margin: 0;
  visibility: hidden;
  list-style: none;
}
.fixed-action-btn ul li {
    display: inline-block;
    margin: 10px 5px 0 0;
}
.fixed-action-btn:hover ul{
  visibility: visible;
}
.fixed-action-btn ul li a {
  transform: scaleY(1) scaleX(1) translateY(0px) translateX(0px);
  opacity: 0;
}
.fixed-action-btn:hover ul li a {
  transform: scaleY(1) scaleX(1) translateY(0px) translateX(0px);
  opacity: 1;
}
.filer-item {
  margin-bottom: 15px;
}
.filer-item label {
  margin-bottom: 5px;
}
/* Giới hạn chiều cao của bảng và tạo vùng cuộn */
.table-container {
  max-height: 700px;
  overflow-y: auto;
  
}

/* Giữ nguyên phần đầu của bảng khi cuộn */
table.dataTable thead {
  position: sticky;
  top: 0;
  background-color: #fff; /* Màu nền của header */
  z-index: 100!important; /* Đảm bảo header hiển thị trên các dòng khác */
}

/* Đảm bảo các phần tử trong header không bị ảnh hưởng bởi cuộn */
table.dataTable thead th {
  border-bottom: 1px solid var(--kt-border-color);
  border-right: 1px solid var(--kt-border-color);
}

/* Các style khác giữ nguyên */
table.dataTable.table-striped>tbody>tr>*, table.dataTable.table-striped>thead>tr>* {
  border-bottom: 1px solid var(--kt-border-color);
  border-right: 1px solid var(--kt-border-color);
}

table.dataTable.table-striped>tbody>tr>*:first-child, table.dataTable.table-striped>thead>tr>*:first-child {
  border-left: 1px solid var(--kt-border-color);
}

.table.dataTable {  
  /* margin-bottom: 20px !important; */
}
   
.table tbody tr:last-child td {
  border-bottom: 1px solid var(--kt-border-color) !important;
}

div.dataTables_scrollFootInner table.table-bordered tr th:first-child, div.dataTables_scrollHeadInner table.table-bordered tr th:first-child {
  border-left: 1px solid var(--kt-border-color) !important;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 0;
  margin-bottom: 0;
}

.form-check .form-check-input {
  float: left;
  margin-left: 0;
}

.form-check .form-check-input {
  border: 0;
  background-color: var(--kt-form-check-input-bg-solid);
}

.form-check .form-check-input:checked {
  background-color: var(--kt-form-check-input-checked-bg-color-solid);
}

.dtr-details {
  width: 100%;
}

table.dataTable>tbody>tr.child span.dtr-title {
  display: inline-block;
  min-width: 100px;
  font-weight: 500;
  white-space: break-spaces;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
  border-bottom: 1px solid #efefef;
  padding: 10px;
  display: flex;
}

.dtr-details .btn, .dtr-details .dtr-data {
  width: 100%;
}

.table td:first-child, .table th:first-child, .table tr:first-child {
  padding-left: .75rem;
}

.table td:last-child, .table th:last-child, .table tr:last-child {
  padding-right: .75rem;
}

.daterangepicker {
  z-index: 1100;
}

table.eclo-table.dataTable {
  border-spacing: 0 10px;
}

table.eclo-table.dataTable th {
  border-bottom-color: var(--kt-table-border-color);
  background-color: var(--kt-input-solid-bg);
  padding: 15px;
  font-weight: bold;
}

table.eclo-table.dataTable th:last-child {
  border-radius: 0 6px 6px 0;
}

table.eclo-table.dataTable th:first-child {
  border-radius: 6px 0 0 6px;
}

table.eclo-table.dataTable>tbody>tr:first-child {
  border-top: 1px solid var(--kt-table-border-color);
}

table.eclo-table.dataTable>tbody>tr {
  border-bottom: 1px solid var(--kt-table-border-color);
  border-top: 1px solid var(--kt-table-border-color);
}

table.eclo-table.dataTable>tbody>tr td:last-child {
  border-right: 1px solid var(--kt-table-border-color);
  border-radius: 0 6px 6px 0;
}

table.eclo-table.dataTable>tbody>tr td:first-child {
  border-left: 1px solid var(--kt-table-border-color);
  border-radius: 6px 0 0 6px;
}

div.dataTables_scrollBody>table.eclo-table>tbody tr:first-child td, div.dataTables_scrollBody>table.eclo-table>tbody tr:first-child th {
  border-top: 1px solid var(--kt-table-border-color);
}

table.eclo-table.dataTable thead th[data-is-resizable=true] {
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.dataTables_scrollHeadInner .table.eclo-table {
  border-spacing: 0 0;
}

div.dataTables_wrapper div.dataTables_filter label {
  position: relative;
}

.w-100 div.dataTables_wrapper div.dataTables_filter label {
  width: 100%;
}

div.dataTables_wrapper div.dataTables_filter {
  text-align: left;
}

div.dataTables_wrapper div.dataTables_filter input {
  background-color: var(--kt-input-solid-bg);
  border-color: var(--kt-input-solid-bg);
  color: var(--kt-input-solid-color);
  transition: color .2s ease;
  display: block;
  width: 100%;
  padding: .775rem 1rem .775rem 50px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  background-clip: padding-box;
  border: 1px solid var(--kt-input-solid-bg);
  appearance: none;
  border-radius: .475rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  margin: 0;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  background-color: var(--bs-gray-200); 
  border-color: var(--bs-gray-200);
  color: var(--bs-gray-700);
  transition: color 0.2s ease;
  outline: 0;
  box-shadow: false, 0 0 0 0.25rem rgba(var(--bs-component-active-bg), 0.25);
}

.table tr:hover .task-important {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-important {
  display: none;
  position: absolute;
  top: 0%;
  right: 2px;
  height: 100%;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-important .svg-icon svg {
  width: 30px;
  height: 30px;
}

.table.table-bordered td, .table.table-bordered th, .table.table-bordered tr {
  border-style: solid;
  border-color: var(--kt-border-color);
  border-width: 1px;
}
/* org-chart */
.org-chart, .org-chart .org-chart-items, .org-chart .org-chart-content {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}
.org-chart .org-chart-first-button {
    position: relative;
    z-index: 999;
}
.org-chart {
    padding-bottom:30px ;
    text-align: center;
    width: 100%;
    overflow: hidden;
}
.org-chart, .org-chart .org-chart-items {
    display: table;
}
.org-chart .org-chart-items {
  width: 100%;
  margin: 3px 0;
}
.org-chart .org-chart-content {
    display: table-cell;
    padding: 4px;
    vertical-align: top;
}
.org-chart .org-chart-content:before {
    outline: solid 1px #666;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.org-chart .org-chart-content:first-child:before {left: 50%;}
.org-chart .org-chart-content:last-child:before {right: 50%;}

.org-chart .org-chart-card {
    display: inline-block;
    position: relative;
    border:1px dashed #3f5289;
    border-radius: 6px;
    box-shadow: 0 !important;
}
.org-chart .org-chart-card {
    margin: 20px;
}
.org-chart .org-chart-items:before,
.org-chart .org-chart-card:before,
.org-chart span:before {
    outline: solid 1px #666;
    content: "";
    height: 20px;
    left: 50%;
    position: absolute;
}
.org-chart .org-chart-items:before {
    top: -21px;
}
.org-chart .org-chart-card:before,
.org-chart span:before {
    top: -24px;
}
.org-chart > .org-chart-content {
    margin-top: 0;
}
.org-chart > .org-chart-content:before,
.org-chart > .org-chart-content:after,
.org-chart > .org-chart-content > .org-chart-card:before,
.org-chart > .org-chart-content > span:before {
  outline: none;
}
.org-chart-card {
    min-width: 250px;
    text-align: center;
    position: relative;
    display: flex;
    margin: 0 auto;
}
.org-chart-card .org-chart-sub {
    display: none;
    position: absolute;
    bottom: -25px;
    width: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    z-index: 1200;
}
.org-chart-card .org-chart-sub .btn {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    z-index: 1200;
    position: relative;
}
.org-chart-card:hover .org-chart-sub {
    display: flex;
}
.org-chart-card .dropdown-menu {
    padding: 0;
    z-index: 1200;
    position: relative;
}
.org-chart-card .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 5px;
}
.org-chart-card .org-chart-sub-items {
    padding: 10px;
}
.org-chart .org-chart-card:hover,.org-chart .org-chart-card:hover+.org-chart-items .org-chart-card{
    /*transform: scale(1.1) translate(0,5px);
    -webkit-transform: scale(1.1) translate(0,13px);
    -moz-transform: scale(1.1) translate(0,5px);
    -ms-transform: scale(1.1) translate(0,5px);
    -o-transform: scale(1.1) translate(0,5px);*/
    z-index: 1;
    position: relative;
    border: 1px solid red;
}
.org-chart .org-chart-card:hover .dropdown-menu {
    z-index: 12000;
}
.org-chart .org-chart-card:hover::before,
.org-chart .org-chart-card:hover+.org-chart-items:before,
.org-chart .org-chart-card:hover+.org-chart-items .org-chart-card:before,
.org-chart .org-chart-card:hover+.org-chart-items .org-chart-items:before,
.org-chart .org-chart-card:hover+.org-chart-items .org-chart-content:before{
    outline-color:  red;
    /*transform: scale(1);*/
}
.z-index-100 {
    z-index: 100 !important;
}
@media (min-width: 992px) {
    .eclo-vh-100 {
        height: calc(100vh - 5.9rem);
    }
    .eclo-body-vh-100 {
        height: calc(100vh - 23.5rem);
    }
}
@media (max-width: 991.98px) {
    .eclo-vh-100 {
        height: calc(100vh - 5.9rem);
    }
    .eclo-body-vh-100 {
        height: calc(100vh - 23.5rem);
    }
}
.message-compose {
    flex-grow: 1;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 1;
    border-radius: 10px 10px 0 10px;
}
.svg-appendix {
    position: absolute;
    bottom: 1px;
    right: -7px;
    width: .5625rem;
    height: 1.25rem;
    transition: opacity 200ms;
    font-size: 1rem !important;
}
/* excel */
.handsontable td, .handsontable th {
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;
    empty-cells: show;
    height: 22px;
    line-height: 21px;
    outline-width: 0;
    overflow: hidden;
    padding: 0 4px;
    vertical-align: top;
    white-space: pre-wrap;
}
.handsontable .changeType {
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #bbb;
    float: right;
    font-size: 9px;
    line-height: 0;
    margin: 10px 5px 0 0;
    padding: 0px;
}
.handsontable span.colHeader {
    display: inline-block;
    line-height: 1.1;
    font-weight: bold;
}
.handsontable .htCore th {
    background-color: #f5f8fa;
    font-weight: bold;
}
.bg-print {
    position: absolute;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
    width: 100%;
    left: 0;
}

@media print {
   
    @page {
         size: A4;
         margin: 12.5mm 15mm 7.5mm 20mm;
     }
    .app-wrapper {
        margin-left: 0 !important;
    }
    .modal::-webkit-scrollbar {
        display: none;
    }
    .thuviec div,p,span {
       margin:  0 !important;      /* trên dưới 4px, trái phải 0 */
      padding: 0 !important;      /* bỏ padding bên trong nếu có */

    
    }
     .daotao div,p,span {
       margin:  2px !important;      /* trên dưới 4px, trái phải 0 */

    }
    .content {
        margin-top: 13px!important;
    }
    .doan-van {
      text-align: justify;
      text-justify: inter-word; 
      -webkit-hyphens: auto;
      hyphens: auto;
    }
    
    .thuviec{
        line-height: 1!important;
    }
   body {
        /* Giữ nguyên code cũ của bạn */
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important; 
        max-width: 100% !important;
        height: auto !important;
        color: black !important; /* Nên để black khi in văn bản */
        font-family: "Times New Roman", Times, serif;
        font-size: 12pt !important;
        
        /* --- THÊM CÁC DÒNG NÀY --- */
        
        /* 1. Ngăn trình duyệt tự động scale chiều ngang */
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    /* 2. Ép tất cả nội dung không được vượt quá chiều ngang khổ giấy */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important; /* Tính cả padding vào chiều rộng để không bị tràn */
    }

    /* 3. Xử lý chữ dài không chịu xuống dòng (Nguyên nhân hàng đầu gây co chữ) */
    p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;

       
    }
    .table tbody, td, tfoot, th, thead, tr {
        color: #000 !important;
        border: 1px solid !important;


    }
    
    .modal-content {
        box-shadow: none !important;
        color: #000 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
    }
    .modal-dialog {
        position: absolute !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    .modal-body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .table {
        width: 100% !important;
        max-width: 100% !important;
        page-break-inside: auto !important;
    }
    .modal {
        position: absolute !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        overflow: visible !important;
        page-break-before: avoid !important;
    }
    .modal-backdrop.show {
        background-color: #fff !important;
        opacity: 1 !important;
    }
    .none {
        border: none;
    }
}
.width {
    min-width: 100px;
}

.sticky-col,
.sticky-col-2,
.sticky-col-3 {
    position: -webkit-sticky;
    position: sticky !important;
    background: #ffffff!important;
    z-index: 1; /* phải lớn hơn các ô khác để nổi lên trên */
    white-space: nowrap; /* tránh bị xuống dòng chữ */
    border-right: 1px solid #ccc; /* tuỳ chọn: để nhìn rõ ranh giới */

}

.sticky-col  { left: 0; }
.sticky-col-2 { left: 160px; }
.sticky-col-3 { left: 230px; }
html[data-theme='dark'] .sticky-col,
html[data-theme='dark'] .sticky-col-2,
html[data-theme='dark'] .sticky-col-3 {
    background: #1e1e2d !important; /* hoặc màu đen tùy ý */
}
.border-right {
       border-right: 1px solid #dee2e6!important;
       border-color: #ebeef0!important;
}
.text-left {
    text-align: left!important;
}
/*.shelf {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #333;
    border-radius: 1px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: auto;
    margin-bottom: 20px; 
}
.tier {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}
.tier:last-child {
    border-bottom: none;
}
.box {
    flex: 1;
    height: 60px;
    background-color: #4cacaf;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.box:hover {
    transform: scale(1.05);
}*/
.shelf {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.box {
    background-color: #4CAF91;
    color: white;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    min-width: 130px;
    position: relative;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.box .position {
    font-weight: bold;
    font-size: 18px;
}

.box .actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
}

.box:hover .actions {
    display: flex;
    gap: 5px;
}

.edit-btn, .delete-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #ffcc00;
}

.delete-btn:hover {
    background-color: #ff4d4d;
}

.select2-results__option .wrap:before{
    font-family:fontAwesome;
    color:#999;
    content:"\f096";
    width:50px;
    height:50px;
    padding-right: 10px;
    
}
.select2-results__option--selected .wrap:before{
    content:"\f14a";
}

/* not required css */
.select2-multiple, .select2-multiple2
{
  width: 50%
}
.input-group span.select2-container--bootstrap5 {
    max-width: 50% !important;
}
.header { 
    display: flex; 
    justify-content: space-between;
}
.left {
 width: 40%; 
 text-align: center;
}
.right {
 width: 60%; 
 text-align: center;
}
.left p, .right p { 
    margin: 5px 0;
}
.bold {
    font-weight: bold;
}
.underline {
 text-decoration: underline;
}
.italic { 
    font-style: italic; 
}
.summary {
      background: #eef;
      padding: 15px;
      margin-bottom: 20px;
      border-left: 5px solid #337ab7;
    }
    .summary strong {
      color: #222;
    }
    .summary .present {
      color: green;
    }
    .summary .absent {
      color: red;
    }
    .summary .late {
      color: orange;
    }
    .summary .leave {
      color: blue;
    }
