/**
* Template Name: NiceAdmin
* Updated: Jan 09 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
/* Ẩn phần không cần in */
@media print {
  .no-print {
      display: none;
  }
}
:root {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background: #f6f9ff;
  background: linear-gradient(to right, #f0f0ef, #cfcece);
  color: #2e2e2e;
}

a {
  color: #2a36a5;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

/* Khi màn hình nhỏ (điện thoại) */
@media (max-width: 575.98px) {
  .form-control {
      font-size: 0.875rem; /* Kích thước nhỏ */
      padding: 0.25rem 0.5rem; /* Giảm kích thước padding */
      line-height: 1.5;
      border-radius: 0.2rem;
  }
}

/*--------------------------------------------------------------
# Multi select
--------------------------------------------------------------*/
.dropdown-menu li.selected > a.selected {
  color: #000000; 
  background-color: #d7ebe0;
}

.check-mark {
  font-size: 1px;
  margin-top: 2px;
  color: #89c2a3;
  position: relative; 
}

.optgroup {
    background-color: #1d309c !important; /* Màu nền */
    color: #fff;
    padding: 2px !important;
    border-right: 4px #1d309c solid;
    border-left: 4px #1d309c solid;
    border-top: 0px #1d309c solid;
    text-align: left !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
  }

.option {
    background-color: #fff !important; /* Màu nền */
    padding-left: 20px !important;
    color: #000;
    font-weight: bold;

    border-top: #2d2170 solid 1px;
  }

.option-cam {
  background-color: #fff !important; /* Màu nền */
  padding-left: 20px !important;
  color: #000;
  font-weight: bold;
  font-family: Tahoma;
  height: 50px !important;
  border-top: #2d2170 solid 1px;
}

.my-active {
  background: #e5ebc8 !important;
  border: 1px solid #e5ebc8 !important;
}



.nav-tabs .nav-link:not(.active) {
  border: 1px solid rgba(0, 0, 0, 0.055); /* viền mờ */
  border-bottom: none; /* tránh chồng viền */
  background-color: #f8f9fa; /* nền nhẹ */
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:not(.active):hover {
  border-color: rgba(0, 0, 0, 0.25); /* đậm hơn chút khi hover */
}

.selected {
  background-color: #9099eb !important; /* Màu nền */
  color: #231b96 !important;
  /* background-image: url('../img/small-green-check.png') !important; /* Đặt đường dẫn đến hình nền của bạn */
  background-position: calc(100% - 10px) center; /* Đặt vị trí hình nền ở giữa bên phải cách lề 20px*/
  background-repeat: no-repeat;
}

  /* Tùy chỉnh giao diện cho hình ảnh trong option */
.option-with-image {
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px; /* Tạo khoảng trống để hiển thị ảnh */
    
}

/*--------------------------------------------------------------
# TransactionType
--------------------------------------------------------------*/
.nhap_moi {
  color: #0a0 !important; 
  font-weight: bold !important; 
}

.nhap_tai_sd {
  color: #054205 !important; 
  font-weight: bold !important; 
}

.xuat_sd {
  color: #cc3434 !important; 
  font-weight: bold !important; 
}

.xuat_huy {
  color: rgb(247, 1, 1) !important; 
  font-weight: bold !important; 
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 80px;
  padding-left: 20px;
  padding-right: 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 2px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  border: 1px solid #a1a1a1;
  margin-bottom: 15px;
  min-height: 35px;
  background: #b8b9ff;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 80px; /* Vị trí top là 0 để giữ ở đầu trang */
  z-index: 1;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #b2b2b4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  color: #012970;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 10px 10px 10px 10px;
  margin-top: 0px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 18px;
  color: rgb(41,58,131);
  padding: 10px 0px 7px 7px;
  font-weight: bold;
  margin-bottom: 0px !important;
}

.breadcrumb a {
  color: rgb(41,58,131);
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: rgb(41,58,131)
}

.breadcrumb .breadcrumb-item::before {
  color: rgb(41,58,131)
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 0px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 80px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #012970;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 1);
  background-color: #b8b9ff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 0px;
  cursor: pointer;
  color: #012970;
}

.header .search-bar {
  width: 360px;
  padding: 0 20px;
}

@media (max-width: 99px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0f2449;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
  background-color: #282a74;

}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;

  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.nav-sub-item {
  background-color: #fff !important;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;

}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
  
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1;
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.u-popup {
  border: 1px solid #0f2449 !important;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

.line_icon {
  width: 35px !important;
  float: left;
  text-align: center;
 }

 .right-btn {
  min-height: 39px !important;
  margin-top: -2px !important;
  margin-right: 2px;
  background-color: #293a83;
}

.right-btn:hover {
  background-color: #0a1f7c;
  border: 1px solid #ddd;
  box-shadow: 0px 2px 20px rgba(36, 75, 143, 0.89);
}

option {
  font-family: 'Tahoma';
  font-size: 14px;
  line-height: 2;

}

/* Thêm lớp CSS để định dạng đường viền xanh nhấp nháy */
@keyframes blink {
  0% {
    border-color: transparent;
    box-shadow: 0px 2px 30px transparent;
    filter: brightness(100%);
  }
  50% {
    border-color: rgb(25,135,84);
    box-shadow: 0px 2px 30px rgb(25, 135, 84);
    filter: brightness(95%);
  }
  100% {
    border-color: transparent;
    box-shadow: 0px 2px 30px transparent;
    filter: brightness(100%);
  }
}

.thongtin {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 140px; /* Vị trí top là 0 để giữ ở đầu trang */
  z-index: 1;
  box-shadow: 0px 2px 20px rgb(13,196,232);
  border: 1px solid rgb(18, 169, 199);
  font-size: 18px;
}

.canhbao {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 140px; /* Vị trí top là 0 để giữ ở đầu trang */
  z-index: 1;
  box-shadow: 0px 2px 20px rgb(255,193,7);
  border: 1px solid rgb(146, 115, 20);
  font-size: 18px;
}

.thanhcong {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 140px; /* Vị trí top là 0 để giữ ở đầu trang */
  z-index: 1;
  box-shadow: 0px 2px 20px rgb(25,135,84);
  border: 1px solid rgb(23, 133, 82);
  font-size: 18px;
}

.loi {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 140px; /* Vị trí top là 0 để giữ ở đầu trang */
  z-index: 1;
  box-shadow: 0px 2px 20px rgb(220,53,69);
  border: 1px solid rgb(128, 33, 43);
  font-size: 18px;
}

.bookmark-target {
    margin-top: -210px !important;
}

.active-edited {
  border-radius: 6px;
  border: 2px solid transparent;
  animation: blink 0.5s infinite;
  background-image: url('../img/green-check.png'); /* Đặt đường dẫn đến hình nền của bạn */
  background-size: 5%;
  background-position: calc(100% - 20px) center; /* Đặt vị trí hình nền ở giữa bên phải cách lề 20px*/
  background-repeat: no-repeat;
}

.hidden {
  display: none !important;
}

.add-btn {
  text-align: right;
}

.nutphai {
  background-color: #fff; 
  border: 2px  solid #2d3d82 ;
  border-left: 12px  solid #2d3d82 !important;
  color: #2d3d82;
  font-size: 16px; 
  padding: 5px 6px 3px 6px;
  font-weight: bold;

}

.sap-code-false {
  display: block; 
  width: 75px; 
  height: 22px;
  white-space: nowrap; 
  border: 1px solid #ff0000; 
  border-radius: 2px; 
  color: #bb1414; 
  background-color: #f3d2d2; 
  text-align: center;
  padding: 3px 3px 0px 3px; 
}

.sap-code-true {
  display: block; 
  width: 75px; 
  height: 22px;
  white-space: nowrap; 
  border: 1px solid #064b06; 
  border-radius: 2px; 
  color: #064b06; 
  background-color: #ccffcc; 
  text-align: center;
  padding: 3px 3px 0px 3px; 
}

.view-btn {
  display: block; 
  height: 22px;
  white-space: nowrap; 
  border: 1px solid #09098d; 
  border-radius: 2px; 
  color: rgb(14, 14, 109); 
  background-color: #fdfdfd; 
  text-align: center;
  padding: 3px 3px 0px 3px; 
}

.pnk {
  width: 200px; 
  padding: 2px 3px 0px 3px; 
  white-space: nowrap; 
  border: 1px solid #008000; 
  border-radius: 2px; 
  color: #008000
}

.pxk {
  width: 200px; 
  padding: 2px 3px 0px 3px; 
  white-space: nowrap; 
  border: 1px solid #FF0000; 
  border-radius: 2px; 
  color: #FF0000
}

.pdn {
  width: 200px; 
  padding: 0px 3px 0px 3px; 
  white-space: nowrap; 
  border: 1px solid #b1ae0c; 
  border-radius: 2px; 
  color: #868408;
  background-color: #eeeddf; 
}

.sc {
  color: #854040;
  font-weight: bold;
}

.bt {
  color: #6b6a0d;
  font-weight: bold;
}

.ycdc {
  width: 200px; 
  padding: 0px 3px 0px 3px; 
  white-space: nowrap; 
  border: 1px solid #8b890a; 
  border-radius: 2px; 
  color: #585709;
  background-color: #f3eea8; 
}

.sub-menu-list {
margin-left: 40px !important;
border: #303b50 1px solid;
background-color: rgb(221, 226, 235);
padding-left: -10px !important;
width: 230px !important;
}

.dev-list-menu-title {
background-color:#282a74;
font-size: 16px;
padding-left: 75px !important;
color: white;
margin: 0px 5px 0px 5px !important;
border-radius: 4px 4px 0px 0px; 
border: 1px solid #282a74;
}

.dev-list-menu-body {
border: 1px solid #282a74;
margin: 0px 5px 0px 5px !important;
border-radius: 0px 0px 4px 4px; 
padding: 0px 0px 0px 0px !important;
}

.dev-grp-title {
  margin-left: -23px !important;
  border-left: #0a1f7cde 2px solid !important;
  border-top: #0a1f7cde 1px solid !important;
  border-right: #0a1f7cde 1px solid !important;
  border-bottom: #0a1f7cde 1px solid !important;
  background-color: #0e227e;
  color: #fff;
  margin-bottom: -10px;
  margin-top: -10px;
  height: 28px;
  padding-top: 3px !important;
  width: 100%;
  font-size: 15px;
  font-weight: bold;
  position: relative;
  padding-left: 15px;
}

/* Tạo mũi tên nhọn bên phải */
.dev-grp-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-width: 14px 0 14px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #0e227e;
}


.dev-grp-title::before {
content: '';
position: absolute;
top: 0px;
left: 0;
width: 10px; /* Adjust the width as needed */
height: 26px; /* Adjust the height as needed */
background-color: #0a1f7cde; /* Rectangle color */
}

.dev-grp-name {
margin-left: -55px !important;
border-left: #0a1f7cde 2px solid !important;
margin-bottom: -10px;
margin-top: -10px;
height: 30px;
padding-top: 5px !important;
color: #001264;
position: relative;
padding-left: 25px;
}

.dev-grp-name::before {
content: '';
position: absolute;
top: 14px;
left: 0;
width: 20px; /* Adjust the width as needed */
height: 2px; /* Adjust the height as needed */
background-color: #0a1f7cde; /* Rectangle color */
}

.brid {
  background-color: #d6ddeb !important;
  font-weight: bold;
  font-family: 'segoeui.ttf';
  font-size: large;
}

.device-divider {
  color: #b9b8b8;
  margin: -14px 0px 2px 0px !important;
}

option:checked{
  color: rgb(255, 255, 255);
  background-color: #2d3d82;
}

table  tr {
  padding-top: 0.5rem !important;
  padding-bottom: 0.4rem !important;
}

table  td {
padding-top: 0.5rem !important;
padding-bottom: 0.4rem !important;
line-height: 1 !important; /* Điều chỉnh line-height để giảm chiều cao của text */
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#camera-options {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px; /* Đảm bảo chiều rộng tối đa của div */
  width: 90%; /* Đảm bảo div không vượt quá chiều rộng màn hình */
  text-align: center;
}

#qr-reader {
  max-width: 100%; /* Giới hạn chiều rộng của khung camera */
  max-height: 300px; /* Giới hạn chiều cao của khung camera */
  width: 100%;
  height: auto; /* Đảm bảo giữ tỷ lệ khung hình */
  margin: 0 auto; /* Canh giữa khung camera */
}

.tb-hu {
  text-decoration: line-through;
  text-decoration-style: double; /* Các tùy chọn: solid, double, dashed, dotted, wavy */
  text-decoration-color: rgba(233, 63, 63, 0.658); /* Màu đỏ cho đường gạch ngang */
  text-decoration-thickness: 1px; /* Độ dày của đường gạch ngang */
}

.tb-kve {
  text-decoration: line-through;
  text-decoration-color: rgba(233, 63, 63, 0.658); /* Màu đỏ cho đường gạch ngang */
  text-decoration-thickness: 1px; /* Độ dày của đường gạch ngang */
}


.ndbt {
  background-color: rgb(233, 235, 247);
  font-weight: bold;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 15px;

}

.loadmore{
  background-color: #d8dadf;
  padding: 5px !important;
  border: #012970 1px solid;
  border-radius: 3px;
  font-weight: bold;
  width: 200px;
  display: inline-block;
}

.sameDevice{
  color: #777777;
}

.sameDevice:hover {
  text-decoration: underline;
}

.quick-mess {
  display: inline-block;
  padding: 0px 4px 0px 4px; /* Khoảng cách bên trong */
  border: 1px solid rgba(57, 41, 150, 0.185); /* Viền */
  color: #3a2996;
  border-radius: 3px; /* Không bo góc */
  margin-right: 5px;
  margin-bottom: 2px !important;
  margin-top: 2px !important;
  cursor: pointer; 
  font-size: 10pt;
}

.quick-mess:hover {
  color: rgb(126, 5, 5); /* Màu của văn bản khi hover */
  font-weight: bold;
}

.barcode {
  margin-top: 0; /* Lề trên bằng 0 */
}

.invalid-3code {
  color: red;
  margin-top: 10px;
  font-size: 12pt;
}

#sameDeviceDiv {
  height: 50px;
  overflow: hidden;
  transition: height 0.8s ease; /* Tạo hiệu ứng mượt */
  border-top-left-radius: 4px; /* Góc trên bên trái */
  border-top-right-radius: 4px; /* Góc trên bên phải */
  border-left: #78778a solid 1px;
  border-top: #78778a solid 1px;
  border-right: #78778a solid 1px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: -8px;
}

#sameDeviceDiv.expanded {
  max-height: 100%; /* Tùy chỉnh phù hợp với nội dung */
}

.showall_lnk {
  font-size: 12pt !important;
  color: #2d3d82;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(180deg, #ffffff, #78778a8c);
  border-bottom-left-radius: 4px; /* Góc trên bên trái */
  border-bottom-right-radius: 4px; /* Góc trên bên phải */
  border-left: #78778a solid 1px;
  border-bottom: #78778a solid 1px;
  border-right: #78778a solid 1px;
  padding: 3px;
}

.ten_sap{
  margin-top: 6px; /* Khoảng cách giữa nội dung trên và thông tin bên dưới */
  font-size: 10px;
  color: #852d2d;
}

.ten_nganh{
  margin-top: 6px; /* Khoảng cách giữa nội dung trên và thông tin bên dưới */
  font-size: 10px;
  color: #2a7235;
}

.SetRepair{
  border: solid #2c47e0 1px; /* Góc trên bên trái */
  padding-left: 3px;
  padding-right: 3px;
  border-radius: 3px; 
  background-color: #0d6efd;
  color: #ffffff !important;
}

.btn_red_inline {
  border: solid #aa2835 1px; /* Góc trên bên trái */
  padding-left: 3px;
  padding-right: 3px;
  border-radius: 3px; 
  background-color: #dc3545;
  color: #ffffff !important;
}

.my-on {
  border: solid #1fa566 1px; /* Góc trên bên trái */
  background-color: #198754;
  padding-left: 4px;
  padding-top: 0px;
  padding-bottom: 0px;
  border-radius: 4px; 
  color: #fff;
  font-weight: bold;
  display: inline-block;
  width: 150px !important;
  height: 30px !important;
}

.my-off {
  border: solid #8b1313 1px; /* Góc trên bên trái */
  background-color: #d42222;
  padding-left: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  border-radius: 4px; 
  color: #fff;
  font-weight: bold;
  display: inline-block;
  width: 150px !important;
  height: 30px !important;
}

.inside-r {
  display: inline-block;
  background-color: #ffffff;
  padding: 1px;
  border-radius: 4px; 
  border: solid #ffffff 1px; /* Góc trên bên trái */
  align-self: end;
  width: 14px !important;
}

.inside-l {
  display: inline-block;
  background-color: #ffffff;
  padding: 1px;
  border-radius: 4px; 
  border: solid #ffffff 1px; /* Góc trên bên trái */
  align-self: end;
  width: 14px !important;
}

.my-text-center {
  display: inline-block;
  text-align: center;
  width: 125px;
}


.btn-inline-warning {
  padding-left: 4px;
  padding-right: 4px;
  background-color: #5c5e1b;
  border-radius: 4px;
  border: solid #45470d 1px;
  color: #ffffff;
}

.btn-inline-primary {
  padding-left: 4px;
  padding-right: 4px;
  background-color: #0d6efd;
  border-radius: 4px;
  border: solid #114594 1px;
  color: #ffffff;
}

.edit-ton-tt {
  background-color: #fd0d0d;
  color: #ffffff;
  font-weight: bold;
}

.sap-pxk-1 {
  background-color: #d2ffd4;
  color: #077917;
  border: #077917 1px solid;
  border-radius: 2px;
  padding: 0px 2px 0px 2px;
}

.sap-pxk-0 {
  background-color: #ffd2d2;
  color: #b91e1e;
  border: #b91e1e 1px solid;
  border-radius: 2px;
  padding: 0px 2px 0px 2px;
}

.border-down-1 {
  border-bottom: 1px solid #d4d4d4;
  padding-bottom: 3px;
}

/* hangsontable */

.handsontable {
  font-family: 'Roboto Condensed';
  font-size: 13px; /* Font chữ đồng nhất */
}

.handsontable th {
  font-weight: bold; /* Chữ đậm */
  padding-left: 5px !important;
}

.handsontable tr {
  padding-left: 5px !important;
}

.handsontable .ht_clone_top th {
  background-color:rgb(46, 45, 45) !important; /* Màu xám cho header */
  font-weight: bold;
  color: #ffffff !important;
}    

.head_row {
  background-color: #504f4f !important; /* Màu xám cho header */
  font-weight: bold;
  color: #ffffff !important;    
  text-align: center;
  border-top: #ece9e9 5px solid !important;
}

.remark_row {
  background-color: #cfcdcd !important; /* Màu xám cho header */
  color:rgb(33, 12, 221) !important;    
  overflow: visible !important;

}

.handsontable td {
  overflow: visible;   /* Cho phép nội dung tràn qua ô kế bên */
  padding-left: 5px !important; /* Điều chỉnh giá trị này theo nhu cầu của bạn */
}    

.total_row {
  font-weight: bold;
  background-color: #e9cdcd !important;
  color: #ff0000 !important;
  text-align: right;
}       
    
.ma-pbcp {
  font-weight: bold;
  color: #ff0000 !important;
  background-color: #f1dcdc !important;
}

.xuattong_row {
  background-color: #ece9e9 !important;
  color: #ece9e9 !important;  
  border: 1px solid #ece9e9 !important;     
  border-top: #0703ff  solid 5px !important;             
}

.empty_matk {
  text-align: center;
  color: #09ff00 !important;
  animation: blink-bg .5s infinite; /* Tên animation, thời gian 1s, lặp vô hạn */
}

/* Định nghĩa animation */
@keyframes blink-bg {
  0% { background-color: #1900ff6c; }
  50% { background-color: rgba(255, 0, 0, 0.507); }
  100% { background-color: #1900ff70; }
}

.handsontable td {
  border-right: 1px solid #d4d4d452 !important; /* Loại bỏ đường viền dọc giữa các ô */
}

.handsontable th {
  border-right: 1px solid #d4d4d452 !important; /* Loại bỏ đường viền dọc ở tiêu đề cột */
}

.empty_matk11 {
  color: rgb(51, 255, 0); /* Màu chữ trắng */
  text-align: center;
  animation: flicker 0.5s infinite alternate;
}

@keyframes flicker {
  0% {
    background-color: red; /* Màu đỏ */
  }
  50% {
    background-color: rgb(5, 50, 250); /* Màu xanh */
  }
  100% {
    background-color: rgb(238, 255, 0); /* Màu đỏ */
  }
}

.table-hd tr{
  border-bottom: #4c6453 1px solid;
  width: 90% !important; 
}

.tooltip-inner {
  min-width: 500px !important; /* Độ rộng tối đa */
  font-size: 13px; /* Cỡ chữ */
  padding: 1px; /* Lề bên trong */
  text-align: left;
  background-color: #ffffff00;

}

.tooltip {
  opacity: 1 !important; /* Bỏ trong suốt */
  background-color: rgb(153, 136, 136);
  border-radius: 4px;
  border: #000 1px solid;
  box-shadow: 0 5px 30px 0 rgb(0, 0, 0);
}

.bg-dark-warning {
  background-color: #f3eea8 !important; /* Màu nền */
  color: #4d4921 !important; /* Màu chữ */
}

.item_ID {
  padding-left: 2px; 
  padding-right: 2px;
  background-color: rgb(255, 255, 255); 
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  border: 1px solid rgb(142, 142, 161);
  position: relative;
  top: -2px;
}

.docgrpname {
  font-size: 14px;
  font-weight: bold;
  color: #4b1616;
  text-transform: uppercase;
}

.if-0-row {
  background-color: #ffefef3a !important;
  color: #bb1414 !important;
  font-weight: bold;
}

.total_cong_nv  {
    background-color: #f8e1e1 !important; /* Màu nền cho hàng tổng */
    color: #bb1313 !important;
    border-bottom: #000 2px solid !important; /* Đường viền dưới */
    font-weight: bold;
    border-top: none !important; /* Không có đường viền trên */
}

.phat_tre {
  /* background-color: #f5ebeb !important; Màu nền cho hàng tổng */
  color: #e90f0f !important;
  font-weight: bold;
  text-align: center;
}

.phat_som {
  /* background-color: #f5ebeb !important; Màu nền cho hàng tổng */
  color: #e90f0f !important;
  font-weight: bold;
  text-align: center;
}

.tang_ca {
  /* background-color: #f5ebeb !important; Màu nền cho hàng tổng */
  color: #076b0c !important;
  font-weight: bold;
  text-align: center;
}

.gio_tre_som {
  color: #e90f0f !important;
}

.class_sunday{
  background-color: #ecd3d3 !important; /* Màu nền cho ngày chủ nhật */
  font-weight: bold !important;
}

.phep-line-1 {
  line-height: 0.8 !important;
  padding-top: 2px !important;
}

.phep-line-2 {
  line-height: 0.9 !important;

}

.phep-line-3 {
  line-height: 0.8 !important;
  font-size: medium;    
}

.phep-line-4 {
  line-height: 0.8 !important;
  font-weight: bold;
  font-size: 20pt !important;
  margin-bottom: 10px !important;
  margin-top: 4px !important;
}

.ten_cv {
  width: 100%; /* Chiếm toàn bộ chiều rộng còn lại */
  text-align: left; /* Đặt text về bên trái nếu cần */
  padding-left: 5px; /* Thêm khoảng cách bên trái */
  border-bottom: #818080 1px dashed; /* Thêm viền */
  height: 24px !important; /* Điều chỉnh chiều cao */

  }

.chu-thich-no {
  color: #c92727; /* Màu chữ cho chú thích nợ */
  font-size: 11px; /* Cỡ chữ */
}