/* Change core.css */


@media (min-width: 1600px) {

  .menu-vertical,
  .menu-vertical .menu-block,
  .menu-vertical .menu-inner > .menu-item {
    width: 22rem;
  }
}


.card {
  margin-top: 5px;
  margin-bottom: 5px;
}

/*.card-body {
    padding:5px;
}
*/

.form-control {
  padding: 3px;
}

/* Custom styles goes here */
.waves-button-input {
  margin: 10px;
  padding: 0.1em 0.1em;
}

.btn-dnict {
  margin: 10px;
  min-width: 100px;
}

.btn-link {
  border-radius: 2px;
  margin: 2px;
  padding: 2px;
  text-align: center;
}

.btn-link-red {
  border-radius: 2px;
  margin: 2px;
  padding: 2px;
  text-align: center;
}


.searchform .w3-row {
  margin-top: 3px;
  margin-bottom: 3px;
}

.card-body .w3-row {
  margin-top: 3px;
  margin-bottom: 3px;
}


.dnict-td-command {
  text-align: center;
  align-content: space-between;
  justify-content: space-evenly;
}

.td-commands {
  display: flex; /* Kích hoạt Flexbox */
  justify-content: space-around; /* Phân phối khoảng trống đều giữa các mục */
  align-items: center; /* Căn giữa theo chiều dọc nếu cần */

  text-align: center;
  align-content: space-between;
  justify-content: space-evenly;
}

.w3-row .w3-col {
  padding: 3px;
  vertical-align: middle;
}


.dnict-td-command a {
  margin: 5px;
}

input.form-control {
  background-color: white;
}


input.textDate {
  background-color: white;
}

/* Custom Header Styles */
.layout-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 10%, #ff0000 100%) !important; /* Gradient từ trắng sang đỏ */
  border-bottom: 2px solid #c82333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 70px;
}

.bg-navbar-theme {
  background: linear-gradient(to right, #ffffff 0%, #ffffff 10%, #ff0000 100%) !important; /* Gradient từ trắng sang đỏ */
  color: white !important;
}

.bg-navbar-theme .navbar-brand,
.bg-navbar-theme .navbar-brand a,
.bg-navbar-theme .navbar-nav > .nav-link,
.bg-navbar-theme .navbar-nav > .nav-item > .nav-link,
.bg-navbar-theme .navbar-text,
.bg-navbar-theme h3 {
  color: white !important;
}

.bg-navbar-theme .navbar-brand:hover,
.bg-navbar-theme .navbar-brand:focus,
.bg-navbar-theme .navbar-brand a:hover,
.bg-navbar-theme .navbar-brand a:focus,
.bg-navbar-theme .navbar-nav > .nav-link:hover,
.bg-navbar-theme .navbar-nav > .nav-link:focus,
.bg-navbar-theme .navbar-nav > .nav-item > .nav-link:hover,
.bg-navbar-theme .navbar-nav > .nav-item > .nav-link:focus {
  color: #f8f9fa !important;
}

/* User info styling in header - điều chỉnh màu cho phần phải */
.user-info-header {
  display: flex;
  align-items: center;
  color: white !important;
  font-weight: 500;
  margin-right: 15px;
}

.user-info-header .user-name {
  font-weight: 600;
  margin-right: 5px;
  color: white !important;
}

.user-info-header .user-department {
  font-weight: 400;
  opacity: 0.9;
  color: white !important;
}

/* Điều chỉnh layout để tránh bị che bởi fixed header */
.layout-page {
  padding-top: 70px !important;
}

.content-wrapper {
  margin-top: 0 !important;
}

/* Điều chỉnh menu vertical để phù hợp với fixed header */
.layout-menu {
  top: 90px !important;
  height: calc(100vh - 90px) !important;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .layout-page {
    padding-top: 60px !important;
  }

  .layout-menu {
    top: 90px !important;
    height: calc(100vh - 90px) !important;
  }
}

/* Logo và tiêu đề trong navbar */
.navbar-flag-logo {
  width: 100px;
  height: 50px;
  object-fit: contain;
}

.navbar-title-section {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.org-name {
  color: #dc3545 !important; /* Màu đỏ cho tên tổ chức */
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Text shadow đen để nổi bật */
  margin-bottom: 10px;
}

.app-description {
  color: #000000 !important; /* Màu đen cho mô tả */
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  margin: 0;
  margin-top: 2px;
}

/* Navbar full width */
.layout-navbar {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.navbar-nav-right {
  width: 100%;
  justify-content: space-between;
}

/* Responsive cho tiêu đề */
@media (max-width: 768px) {
  .org-name {
    font-size: 18px;
    font-weight: 700;
  }

  .app-description {
    font-size: 14px;
  }

  .navbar-flag-logo {
    width: 80px;
    height: 40px;
  }
}

/* Điều chỉnh màu icon cho phần bên trái trên nền trắng */
#toggle-menu-btn .ri-menu-fill {
  color: #333 !important; /* Màu đen cho icon trên nền trắng */
}

.layout-menu-toggle .ri-menu-fill {
  color: #333 !important; /* Màu đen cho icon mobile */
}


select.rv-auto {
  background-color: white;
}


.cell-blue {
  color: blue;
}


@media (max-width: 600px) {
.layout-navbar
{
  height: 5rem;
}

}

.swal2-custom-small {
    font-size: 0.9em; /* Giảm kích thước font cho toàn bộ popup */
}





@media (min-width: 994px) {

  /* --- Trạng thái mặc định (Menu mở rộng) --- */

  .layout-wrapper .layout-menu {
    width: 260px; /* Chiều rộng mặc định của menu */
    transition: width 0.25s ease-in-out; /* Hiệu ứng chuyển động */
  }

  .layout-wrapper .layout-page {
    padding-left: 260px; /* Padding để chừa chỗ cho menu */
    transition: padding-left 0.25s ease-in-out; /* Hiệu ứng chuyển động */
  }

  .layout-wrapper .menu-inner .menu-text {
    opacity: 1; /* Hiển thị văn bản */
    transition: opacity 0.15s ease-in-out;
  }

  /* --- Trạng thái khi menu bị thu gọn --- */

  /* Khi .layout-wrapper có class .layout-menu-collapsed */
  .layout-menu-collapsed .layout-wrapper .layout-container .layout-menu {
    width: 0px; /* Chiều rộng mới khi thu gọn, chỉ đủ cho icon */
  }

    .layout-menu-collapsed .layout-wrapper .layout-container .layout-menu .menu-inner {
      opacity: 0; /* Ẩn văn bản và mũi tên */
      visibility: hidden; /* Ẩn hoàn toàn khỏi DOM */
    }

  .layout-menu-collapsed .layout-wrapper .layout-page {
    margin-left: 0;
    padding-left: 0; /* Không có padding khi menu bị thu gọn */
    width: 100%; /* Chiếm toàn bộ chiều rộng */
  }

}


@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 90% !important;
  }
}

@media (max-width: 720px) {
  .pieChart {
    width: 100% !important;
    height: 100% !important;
  }
}
@media (min-width: 721px) {
  .pieChart {
    min-width: 80% !important;
    max-width: 100% !important;
    /*height: 300px !important;*/
  }
}


.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.card-header {
  background-color: #f8f9fa;
  padding: 5px;
}


th .header-text {
  background-color: #835050 !important;
  color: white !important;
}


.table:not(.table-dark):not(.table-light) thead:not(.table-dark):not(.table-light) tr th {
  background-color: #835050 !important;
  color: white !important;
}

/*Sửa 16/10/2025*/

.menu-vertical .menu-item .menu-link,
.menu-vertical .menu-header,
.menu-vertical .menu-block {
  padding: 0.1rem 0.1rem;
  margin-block: 0;
  margin-inline: 0.5rem;
  border-radius: 0 50rem 50rem 0;
  margin-left: 0;
}


.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner > .menu-item > .menu-sub > .menu-item > .menu-link {
  padding: 3px 3px 3px 3px;
  padding-left: 1.0rem;
}

i.menu-icon {
    margin-right: 3px !important;
}


.bg-light {
    background-color: #f2f0f0 !important;
}


/* 18/10/2025 */
.alert-info {
    background-color: #edf5f7;
    border-color: #bee5eb;
    color: #5846f5;
}

.vanban-header-row {
    background-color: #835050;
    color: ivory;
}


.table > :not(caption) > * > * {
  color: #333 !important;
  background-color: #ffffff !important;
}
