﻿﻿@charset "UTF-8";
/* txt */
/* bg */
/* color */
body {
  color: #000;
  height: 100%;
  width: 100%;
  background: #e4e5e6;
}

.app {
  color: #563e28;
}

.clearbox {
  clear: both;
  height: 0px;
  display: block;
}

img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

.txt-small {
  font-size: 10px;
}

.app-body {
  overflow: visible;
}

.alert-secondary {
  background: #f0f3f5;
}

.app-wrapper {
  display: flex;
  transition: all 0.3s ease;
}

.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  overflow-y: auto;
  background-color: #fffefb;
  transition: width 0.3s;
}

.app-sidebar.collapsed {
  width: 80px;
}

.app-sidebar.collapsed .menu .nav-link .menu-icon {
  margin-right: 0;
}

.app-sidebar.collapsed .menu-text,
.app-sidebar.collapsed .sidebar-title {
  display: none;
}

.app-sidebar.collapsed .nav-link {
  justify-content: center;
}

#content {
  background-color: #f8f8f8;
  margin-left: 250px;
  flex-grow: 1;
  transition: all 0.3s ease;
  width: calc(100% - 250px);
}

#mainContents {
  min-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 1;
  background-color: #f8f8f8;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 99;
  height: 70px;
  background-color: #fffefb;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.app-header .navbar {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

.app-header .dropdown-item i {
  color: #aaa;
}

.app-header .setting {
  display: flex;
  align-items: center;
}

.icon {
  font-size: 18px;
}

.nav-link {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  margin-bottom: 10px;
}

.menu .nav-link {
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  height: 44px;
  font-weight: 500;
}

.menu .nav-link,
.menu .nav-link:focus {
  color: #563e28;
}

.menu .nav-link .menu-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.menu .nav-link .menu-icon img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(30%) saturate(817%)
    hue-rotate(347deg) brightness(92%) contrast(88%);
}
.menu .nav-link:hover,
.menu .nav-link.active {
  background: #ffc01b;
  color: #fffff2;
}

.menu .nav-link:hover .menu-icon img,
.menu .nav-link.active .menu-icon img {
  filter: brightness(0) invert(1);
}

#sidebar.collapsed + #content {
  width: calc(100% - 80px);
  margin-left: 80px;
}

.app-sidebar .logo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #822901;
}

.app-sidebar .logo img {
  height: 100%;
  max-height: 45px;
}

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

.text-12 {
  font-size: 12px;
  line-height: 16px;
}

.text-14 {
  font-size: 14px;
  line-height: 20px;
}

.color-878A99 {
  color: #878a99;
}

.fw-500 {
  font-weight: 500;
}

.app input,
.app select,
.app textarea,
.app textarea,
.app .form-control input,
.app .form-control select,
.app .form-control textarea {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  background-color: #fff;
  color: #333333;
  border-color: #e5e5e5;
}

.app input::placeholder {
  color: #bfbfbf;
}

.app input:focus,
.app textarea:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.app input:disabled {
  background-color: #f5f5f5;
  color: #999999;
  border-color: #f5f5f5;
  cursor: not-allowed;
}

.app .form-control.error {
  border-color: #ef4444;
  background-color: #fee2e2;
  color: #b91c1c;
}

.app .form-control.error .hint {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

.app .form-control.success {
  border-color: #22c55e;
  background-color: #ecfdf5;
  color: #15803d;
}

.color-e5e5e5 {
  color: #e5e5e5;
}

.hr-custom {
  height: 2px !important;
  color: #e5e5e5;
}

.btn.btn-common {
  font-size: 14px;
  line-height: 24px;
  font-weight: bold;
  color: #fff;
}

.btn-yellow {
  background-color: #ffc01b;
  border-color: #ffc01b;
}

.btn-yellow:hover {
  background-color: #e6ad18;
}

.btn-yellow:focus {
  background-color: #d89c15;
  border-color: #d89c15;
}

.btn-grey {
  background-color: #ddd;
  border-color: #ddd;
}

.btn-grey:hover {
  background-color: #ddd;
}

.btn-grey:focus {
  background-color: #ddd;
  border-color: #ddd;
}

.btn-link {
  background-color: #61a2ee;
  border-color: #61a2ee;
  text-decoration: none;
}

.btn-link:hover {
  background-color: #4a91e8;
}

.btn-link:focus {
  background-color: #3d82d6;
  border-color: #3d82d6;
}

.btn-yellow:focus,
.btn-link:focus {
  box-shadow: none;
}

.modal-header {
  background-color: #ffc01b;
  color: #fff;
}

.modal-dialog .btn-close {
  filter: invert(1);
  opacity: 1;
  font-size: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  height: 30px;
}
.custom-checkbox input[type="checkbox"] {
  display: none;
}

/* Tạo style cho ô vuông */
.custom-checkbox label {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #563e28;
  border-radius: 4px; /* bo góc nhẹ */
  position: relative;
  cursor: pointer;
}

/* Dấu check */
.custom-checkbox input[type="checkbox"]:checked + label::after {
  content: "\f00c"; /* unicode check */
  font-family: "Font Awesome 5 Free"; /* v5 */
  font-weight: 900; /* solid */
  color: #563e28;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

@media (max-width: 768px) {
  .login-card {
    width: 90% !important;
    margin: 0 auto;
  }
}

ul.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.checklist li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

ul.checklist li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  margin-right: 8px;
}

ul.checklist li.success,
ul.checklist li.success::before {
  color: #22c55e;
}

.highlight {
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Ẩn checkbox mặc định */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Nút trượt */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 34px;
  border: 1px solid #cccccc;
}

/* Hình tròn bên trong */
.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 2px;
  background-color: #cccccc;
  transition: 0.3s;
  border-radius: 50%;
}

/* Khi bật (checked) */
.switch input:checked + .slider {
  background-color: #ffc107; /* màu vàng */
  border-color: #ffc107;
}

.switch input:checked + .blue {
  background-color: #3760d3 !important; /* màu lam */
  border-color: #3760d3 !important;
}

/* Trượt sang phải khi bật */
.switch input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #fff !important;
}

.communication .custom-checkbox input[type="checkbox"]:checked + label::after {
  color: #fff;
}

.communication .custom-checkbox input[type="checkbox"]:checked + label {
  border-color: #ffc107;
  background-color: #ffc107;
  cursor: default;
}

.pointer {
  cursor: pointer;
}

.btn.btn-outline {
  color: #333333;
  background-color: #fff;
  border: 1px solid #b3b3b3;
}

.show-view-list {
  cursor: pointer;
}

.opacity-0 {
  opacity: 0;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active {
  background-color: #ffc107 !important;
}

.bootstrap-datetimepicker-widget table td.today:before {
  border-bottom-color: #ffc107 !important;
}