﻿[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
  display: none !important;
}

/* Scroll belongs to the wrapper */
.tableresponsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Force table wider than container */
.tableresponsive table {
  min-width: 2500px; /* adjust as needed */
  /*height:200px !important;*/
}

/* Control wrapping inside cells */
.tableresponsive th,
.tableresponsive td {
  white-space: nowrap; /* recommended for forms */
}

html.swal2-shown,
body.swal2-shown {
  overflow-y: auto !important;
}

.pac-container,
.pac-item {
  z-index: 2147483647 !important;
}

.mytable-bordered {
  border: none;
}

.mytable-bordered th,
.mytable-bordered td {
  border: 1px solid #e7e7e7;
}

.grabbed_elem {
  cursor: move;
}

.label:empty {
  display: none;
}

.label-default {
  background-color: #777;
}

.label-default[href]:focus,
.label-default[href]:hover {
  background-color: #5e5e5e;
}

.label-primary {
  background-color: #337ab7;
}

.label-primary[href]:focus,
.label-primary[href]:hover {
  background-color: #286090;
}

.label-success {
  background-color: #5cb85c;
}

.label-success[href]:focus,
.label-success[href]:hover {
  background-color: #449d44;
}

.label-info {
  background-color: #5bc0de;
}

.label-info[href]:focus,
.label-info[href]:hover {
  background-color: #31b0d5;
}

.label-warning {
  background-color: #f0ad4e;
}

.label-warning[href]:focus,
.label-warning[href]:hover {
  background-color: #ec971f;
}

.label-danger {
  background-color: #d9534f;
}

.label-danger[href]:focus,
.label-danger[href]:hover {
  background-color: #c9302c;
}

.wrapper-nav {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  height: 50px;
}

.list {
  position: absolute;
  left: 0px;
  top: 0px;
  min-width: 3000px;
  /*margin-left: 12px;*/
  margin-top: 0px;
}

.list li {
  display: table-cell;
  position: relative;
  text-align: center;
  cursor: grab;
  cursor: -webkit-grab;
  color: #efefef;
  vertical-align: middle;
}

.scroller {
  text-align: center;
  cursor: pointer;
  display: none;
  padding: 4px;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #fff;
}

.scroller-right {
  float: right;
}

.scroller-left {
  float: left;
}

.profile-pic-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pic-holder {
  text-align: center;
  position: relative;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  overflow: hidden;
  display: block;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.pic-holder .pic {
  height: 100%;
  width: 100%;
  -o-object-fit: fill;
  object-fit: fill;
  -o-object-position: center;
  object-position: center;
}

.pic-holder .upload-file-block,
.pic-holder .upload-loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(90, 92, 105, 0.7);
  color: #f8f9fc;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pic-holder .upload-file-block {
  cursor: pointer;
}

.pic-holder:hover .upload-file-block,
.uploadProfileInput:focus ~ .upload-file-block {
  opacity: 1;
}

.pic-holder.uploadInProgress .upload-file-block {
  display: none;
}

.pic-holder.uploadInProgress .upload-loader {
  opacity: 1;
}

.ReplyAction {
  position: absolute;
  right: 0;
  cursor: pointer;
  margin-right: 10px;
  bottom: 1px;
  visibility: hidden;
}

.ReplyAction > i {
  padding: 0px;
}

.info-box:hover .ReplyAction {
  visibility: visible;
}

.direct-chat-msg:hover .ReplyAction {
  visibility: visible;
}

svg.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media print {
  html,
  body {
    line-height: normal !important;
    letter-spacing: normal !important;
    color: black !important;
  }

  thead,
  tfoot {
    display: table-row-group;
  }

  html {
    margin-top: 0;
  }
}

thead,
tfoot {
  display: table-row-group;
}

.tr-Selected2 {
  /*color: dodgerblue;*/
  font-weight: bolder;
  text-align: left;
  top: 40px;
  position: sticky;
  background: white;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
  background-color: whitesmoke;
}

.bg-own {
  background-color: #f89c39;
}

.color-own {
  color: #f89c39;
}

.khmerFont {
  font-family: "Noto Sans Khmer", sans-serif;
  font-weight: normal;
}

.khmerFontMoul {
  font-family: "Moul", cursive;
  font-weight: normal;
}

.khmerFont1-Header {
  font-family: "Kantumruy Pro", sans-serif;
  font-weight: 900;
  font-size: 100%;
  color: white !important;
  background: transparent !important;
  padding: 0.75rem 0.25rem;
}

.popover {
  min-width: 430px;
  /* Max Width of the popover (depending on the container!) */
}

.myMenu div {
  font-size: 12px;
}

.caption h6 {
  font-size: 12px;
}

.myMenu:hover {
  z-index: 999;
  -webkit-transform: scale(1.08);
  -moz-transform: scale(1.08);
  -ms-transform: scale(1.08);
  -o-transform: scale(1.08);
  transform: scale(1.08);
}

.myMenu:hover .caption {
  -webkit-animation: smallToBig 600ms ease;
  -moz-animation: smallToBig 600ms ease;
  -ms-animation: smallToBig 600ms ease;
}

.myLoading {
  position: absolute;
  width: 100%;
  top: 10px;
  text-align: center;
  color: black;
  z-index: 999;
}

#bg-text {
  color: lightgrey;
  /*color:red;*/
  font-size: 60px;
  transform: rotate(300deg);
  -webkit-transform: rotate(300deg);
  position: absolute;
  width: 100%;
  top: 30%;
  left: 10%;
}

.no-search {
  display: none;
}

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  /*z-index: 1000;*/
  z-index: 9999;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

.ui-autocomplete > li > div {
  display: block;
  padding: 6px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  white-space: nowrap;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
  text-decoration: none;
  color: white;
  background-color: royalblue;
  cursor: pointer;
}

.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

lable {
  font-weight: normal !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.text-nowrap-pre {
  white-space: pre-line !important;
  /*min-height: 300px;*/
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 5px 0.25em 0.1em;
  color: #000;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

.typeahead-head {
  /*background-color:dodgerblue;
            color: #FFFFFF;*/
  font-weight: 900;
}

.typeahead {
  position: relative;
  display: inline-block;
}
/*.tt-input{
            width:100% !important;
        }*/
.tt-query {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.tt-hint {
  color: #999999;
}

.tt-menu {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  /*position: absolute;*/
  /*z-index: 999999 !important;*/
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  /*border: 1px solid rgba(0, 0, 0, 0.2);*/
  border: 1px solid #abcaeb;
  border-radius: 5px;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  line-height: 1.8;
}

.tt-cursor {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

.col-center {
  margin: 0 auto;
  float: none !important;
}

.carousel {
  min-height: 420px;
  /*padding: 0 35px;*/
}

.carousel .carousel-item {
  overflow: hidden;
  min-height: 260px;
  color: #999;
  /*font-size: 14px;
            text-align: center;
            */
}

.carousel .carousel-item .img-box {
  width: 135px;
  height: 135px;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 50%;
}

.carousel .img-box img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.carousel .testimonial {
  /* padding: 30px 0 10px;*/
}

.carousel .overview {
  font-style: italic;
}

.carousel .overview b {
  text-transform: uppercase;
  color: #7aa641;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  top: 50%;
  background: none;
}

.carousel-control-prev {
  left: -28px;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.carousel-control-prev i,
.carousel-control-next i {
  /*font-size: 68px;*/
  /*line-height: 42px;*/
  position: absolute;
  display: inline-block;
  color: rgba(0, 0, 0, 0.8);
  text-shadow:
    0 3px 3px #e6e6e6,
    0 0 0 #000;
}

.carousel-indicators {
  bottom: -15px;
}

.carousel-indicators li,
.carousel-indicators li.active {
  width: 12px;
  height: 12px;
  margin: 1px 3px;
  border-radius: 50%;
  border: none;
}

.carousel-indicators li {
  background: #999;
  border-color: transparent;
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
}

.carousel-indicators li.active {
  background: #555;
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
}

.Total {
  font-weight: bold;
}

.containerimg {
  position: relative;
  width: 50%;
  max-width: 300px;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.imgoverlay {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: 0.5s ease;
  opacity: 1;
  color: white;
  /*font-size: 20px;*/
  /*padding: 20px;*/
  /*text-align: center;*/
}

.truncate {
  width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  max-width: none;
}

.modal-fullscreen .modal-content {
  height: auto;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.modal-fullscreen .modal-body {
  overflow-y: auto;
}

.profilepic {
  position: relative;
  /*width: 125px;
            height: 125px;*/
  border-radius: 50%;
  overflow: hidden;
  background-color: #111;
}

.profilepic:hover .profilepic__content {
  opacity: 1;
}

.profilepic:hover .profilepic__image {
  opacity: 0.5;
}

.profilepic__image {
  object-fit: fill;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  width: 124px;
  height: 125px;
}

.profilepic__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.profilepic__icon {
  color: black;
  padding-bottom: 8px;
}

.profilepic__text {
  color: black;
  text-transform: uppercase;
  font-size: 12px;
  width: 50%;
  text-align: center;
}

li > ul.sub-menu {
  margin-left: 20px;
}

strong.select2-results__group {
  display: list-item;
  padding: 6px;
  color: #6c757d;
  background-color: whitesmoke;
  border-bottom: solid 1px DodgerBlue;
  border-top: solid 1px DodgerBlue;
  text-transform: uppercase;
  /*font-style: italic;*/
}

.view-btn {
  background: none;
  color: #1b84ff;
  border: 1px solid #1b84ff;
  padding: 8px 16px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.sidebar-expand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gray-border);
  border-radius: 0.7rem;
}

.main-sidebar {
  display: flex !important;
  flex-direction: column;
  height: 100vh; /* or 100% if the wrapper is already 100vh */
}

.main-sidebar .sidebar {
  flex: 1 1 auto;
  overflow-y: auto; /* menu scrolls, bottom stays fixed */
}

.sidebar-bottom {
  padding: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.sidebar-bottom .logout-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e24c4c;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  background: rgba(226, 76, 76, 0.08);
  white-space: nowrap; /* stop text wrapping mid-word */
}

.sidebar-bottom .logout-item:hover {
  background: #e24c4c;
  color: #fff;
}

/* Collapsed / icon-only sidebar */
.sidebar-collapse .sidebar-bottom {
  padding: 10px 8px;
}

.sidebar-collapse .sidebar-bottom .logout-item {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

.sidebar-collapse .sidebar-bottom .logout-item span {
  display: none;
}

#imagePopup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttonNext {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 999999999;
}

.nav-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  transition: background 0.15s;
}

.nav-icon-btn:hover {
  background: #f3f4f6;
}

.avatar-inner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  outline: 2px solid var(--base-bg-color);
  outline-offset: 2px;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1050;
  overflow: hidden;
  white-space: nowrap;
}

.profile-dropdown.open {
  display: block;
}

.dd-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 6px;
  padding: 6px 12px !important;
  font-size: 14px;
  color: #111 !important;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.dd-item:hover {
  background-color: #f3f4f6;
}

.dd-item-first {
  background: #f3f4f6;
  border-radius: 12px;
  margin: 6px;
  padding: 11px 12px;
}

.dd-item-danger {
  color: #ef4444 !important;
  margin-bottom: 6px;
}

.dd-item-danger:hover {
  background: #fef2f2;
}

.dd-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 4px 0;
}

.pro-badge {
  margin-left: auto;
  background: #f0abfc;
  color: #6b21a8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.username-badge {
  margin-left: auto;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.btn-action {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-action i {
  font-size: 20px;
}

.btn-action:hover {
  background: #f8fafc;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-action:active {
  transform: scale(0.96);
}

/* ===== Profile trigger ===== */
.profile-trigger-wrap {
  position: relative;
}

.avatar-ring-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  width: max-content;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.avatar-ring-btn:hover {
  background: #f3f4f6;
}

.avatar-ring-btn[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

.nav-user-greeting {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.greeting-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.greeting-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
}

.profile-chevron {
  font-size: 14px;
  color: #6b7280;
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

/* ===== Dropdown ===== */
.dd-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 6px;
  padding: 6px 12px !important;
  font-size: 14px;
  color: #111 !important;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.dd-item:hover {
  background-color: #f3f4f6;
}

.dd-item-first {
  background: #f3f4f6;
  border-radius: 12px;
  margin: 6px;
  padding: 11px 12px;
}

.dd-item-danger {
  color: #ef4444 !important;
  margin-bottom: 6px;
}

.dd-item-danger:hover {
  background: #fef2f2;
}

.dd-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 4px 0;
}

.username-badge {
  margin-left: auto;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== Dark mode ===== */
.dark-mode .avatar-ring-btn {
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .avatar-ring-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dark-mode .greeting-label,
.dark-mode .profile-chevron {
  color: #a1a1aa;
}

.dark-mode .greeting-name {
  color: #f1f1f1;
}

.dark-mode .profile-dropdown {
  background: #1e1e2d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-mode .dd-item {
  color: #e4e4e7 !important;
}

.dark-mode .dd-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .dd-item-first {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .dd-divider {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .dd-item-danger {
  color: #f87171 !important;
}

.dark-mode .dd-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}
