/* Đảm bảo chiều cao content vừa khung hình */
html,
body,
#app,
#kt_app_root {
  height: 100%;
  min-height: 100vh;
  margin: 0;
}

/* begin::size */
.w-8px {
  width: 8px !important;
}

.w-16px {
  width: 16px !important;
}

.w-24px {
  width: 24px !important;
}

.w-32px {
  width: 32px !important;
}

.w-48px {
  width: 48px !important;
}

.w-64px {
  width: 64px !important;
}

.w-80px {
  width: 80px !important;
}

.w-96px {
  width: 96px !important;
}

.w-128px {
  width: 128px !important;
}

.w-150px {
  width: 150px !important;
}

.w-200px {
  width: 200px !important;
}


.form-error {
  font-size: 0.875rem;
  font-weight: 400;
  font-style: italic;
  color: #dc3545;
  margin-left: 0.3rem;
}

/* end::size */

/* begin::Config to show popover on table responsive */
.table-responsive {
  overflow-x: visible;
}

@media (min-width: 992px) {
  .app-sidebar-logo,
  .app-header {
    height: 50px;
  }

  [data-kt-app-header-fixed=true] .app-wrapper {
        margin-top: 50px;
    }
}

@media (max-width: 992px) {
  .app-sidebar-logo,
  .app-header {
    height: 50px;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
  }
}

/* start side bar */
#kt_app_sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Khối menu chiếm phần còn lại và cho phép con overflow */
#kt_app_sidebar .app-sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
  /* then chốt để con (#kt_app_sidebar_menu_wrapper) overflow */
  display: flex;
  flex-direction: column;
}

/* Phần cuộn chính: dùng flex-grow thay vì height:100% */
#kt_app_sidebar_menu_wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* end side bar */

/* begin::vue-3 multiselect */

/* Cỡ chữ cho ô tìm kiếm */
.multiselect,
.multiselect__input,
.multiselect__single {
  font-family: inherit;
  font-size: 1.05rem !important;
}

/* Màu nền cho option selected */
.multiselect__option--selected.multiselect__option--highlight {
  background-color: #009ef7 !important;
  color: #fff !important;
}
/* end::vue-3 multiselect */

/* end::Config to show popover on table responsive */

/* begin::card style */
.card .card-header {
  min-height: 50px;
  padding: .5rem 1.25rem;
}

.card .card-body {
  padding: 1.25rem 1.25rem;
}

.card .card-footer {
  padding: 1rem 2.25rem;
}

/* end::card style */

/* begin::tab */
.nav-line-tabs .nav-item .nav-link.active {
  color: #009ef7;
}

/* end::tab */

/* begin::image-input */
.image-input.image-input-outline .image-input-wrapper {
  border: 1px solid #E4E6EF;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.image-input-wrapper {
  width: 150px !important;
  height: 150px !important;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* end::image-input */

/* begin::multiselect */
/* Giảm chiều cao và padding */

/* end::multiselect */

.form-error {
  color: red;
  font-size: 0.875rem;
}

/* view cho tiptap */
.content-view {
    white-space: pre-line !important;  /* giữ xuống dòng */
    line-height: 1.3;                  /* dòng sát hơn */
}

/* Thu gọn khoảng cách đoạn */
.content-view p {
    margin: 0 0 4px;
}

.content-view ul,
.content-view ol {
    margin: 2px 0 2px 20px;
    line-height: 1.3;
}

.content-view li {
    margin-bottom: 2px;
}

/* end view cho tiptap */