input {
  font-weight: bold;
  color: #000000 !important;
}

body {
  background-color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

label,
h3 {
  color: #000000 !important;
}

h2,
a {
  color: #000000;
}

h7 {
  color: #808080 !important;
}

@media (max-width: 320px) {
  .container {
    width: 95%;
    margin: auto;
  }
}

/* .tableWidthFix {
    width:100%;
} */

table {
  /* table-layout: fixed; */
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 280px;
  /* word-wrap: break-word; */
}

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.table-scroll-wrap table {
  min-width: 680px;
}

.mobile-scroll-wrap {
  overflow-x: visible;
  -webkit-overflow-scrolling: auto;
  touch-action: auto;
}

.mobile-scroll-wrap table {
  min-width: 0;
}

@media screen and (max-width: 768px) {
  .mobile-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .mobile-scroll-wrap table {
    min-width: 680px;
  }
}

@media (width < 768px) {
  /* padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    white-space: inherit;
    word-break: break-all; */

  /* @media (max-width: 768px) {
        table th, table td {
            min-width: 100px;
            width: 10px;
        }
    } */
}

.pre-load-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
  margin: 0;
  background-color: #f3f3f3;
  color: #333;
  overflow-y: hidden;
}

.preloader {
  width: 50px;
  height: 50px;
  border: 5px solid #333;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.page-load-cover {
  display: none;
}

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

#dispTable table th:first-child + th {
  min-width: 1vw;
}

/* ipad_mini_width */
@media screen and (max-width: 800px) {
  #dispTable table th,
  #dispTable table td {
    min-width: 20vw;
  }
}

/* smartphone_standard_width */
@media screen and (max-width: 375px) {
  #dispTable table th,
  #dispTable table td {
    min-width: 25vw;
  }
}

/* mobile_view_minimum_width */
@media screen and (max-width: 280px) {
  #dispTable table th,
  #dispTable table td {
    min-width: 30vw;
  }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input {
  line-height: 30px !important;
}

/*------------------------------------------------------
# Menu Header               
------------------------------------------------------*/
.topNav {
  color: #ffffff;
  z-index: 99;
  height: 50px;
}

.logo_section {
  /* border: 1px solid black; */
  text-align: center;
  display: flex;
  justify-content: center;
}

#logo {
  /* margin: -2.5px 30px -2.5px 30px; */
  width: 1.5rem;
  /* border: 1px dotted red; */
}

.dropdown-divider {
  border-color: #e7e7e7;
}

.dropdown-menu-right {
  right: 0 !important;
  left: auto !important;
}

.dropdown-menu-center {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 0) !important;
}

.dropdown a {
  font-size: 12px;
  font-weight: 500;
}

#language_name {
  font-size: 12px;
}

/* .menuheader-text {
    font-weight: 500;
} */

#accpfp {
  height: 25px;
  width: 25px;
  margin-right: 3px;
}

.fa-bars,
.fa-ellipsis-vertical {
  color: #ffffff !important;
  font-size: 20px;
}

.badge-color {
  background-color: #7460ee !important;
}

/*------------------------------------------------------
# Menu Bar
------------------------------------------------------*/
@media (max-width: 768px) {
  .menuBar {
    display: none !important;
  }
}

@media (width > 768px) {
  .sidebar-nav {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
  }
}

.menuBar {
  background-color: #34444c !important;
  color: #aeb7c2;
  z-index: 98;

  .dropdown-menu > li:first-child,
  .dropdown-menu > li:first-child .dropdown-item,
  .dropdown-menu > li:last-child,
  .dropdown-menu > li:last-child .dropdown-item {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .dropdown-menu {
    margin-top: -16px;
    text-transform: none;
    border-radius: 0;
  }

  .nav-link {
    padding: 16px 2px 16px 10px;
    /* padding: 16px 15px 16px 16px; */
    text-transform: none;
    display: flex;
    align-items: center;
  }

  .nav-link > span {
    margin-left: 5px;
    margin-right: 5px;
  }

  .nav-link,
  .dropdown-item {
    color: #aeb7c2;
  }

  .mdi {
    font-size: 20px !important;
  }
}

.menuBar > .container-fluid {
  display: flex;
  align-items: flex-start;
}

.menuBar > .container-fluid > .nav.nav-tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  row-gap: 0;
}

.menuBar > .container-fluid > .nav.nav-tabs > .nav-item {
  flex: 0 0 auto;
}

.menuBar > .container-fluid > .nav.nav-tabs .nav-link {
  white-space: nowrap;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 15px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

.sidebar-nav {
  background-color: #34444c !important;
  color: #aeb7c2;

  display: block;
  float: left;
  min-width: 200px;
  width: fit-content !important;
  /* height: calc(100vh - 50px) !important;  50px = menuHeader height
    max-height: 100%; */
  top: 50px;
  /* 50px = menuHeader height */
  bottom: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  overflow-y: scroll;

  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;

  .container-fluid {
    padding: 0;
  }

  .nav {
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    padding: 16px 15px 16px 15px;
    color: #aeb7c2;
    text-transform: none;
    display: flex;
    align-items: center;
  }

  .nav-link > span {
    margin-left: 10px;
    margin-right: 10px;
  }

  .nav-link > i {
    font-size: 20px;
  }

  .collapse-menu {
    background-color: #5d7b8a !important;
  }

  .collapse-menu > li > .nav-link {
    background-color: #5d7b8a !important;
  }

  .collapse-menu .collapse-menu {
    background-color: #476674 !important;
  }

  .collapse-menu .collapse-menu > li > .nav-link {
    background-color: #476674 !important;
  }

  .collapse-menu .collapse-menu .collapse-menu {
    background-color: #35505d !important;
  }

  .collapse-menu .collapse-menu .collapse-menu > li > .nav-link {
    background-color: #35505d !important;
  }
}

.close {
  transform: translate3d(-300px, 0, 0);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
}

#sidebar {
  margin-left: -100%;
  height: 0px;
  overflow: auto;
  z-index: 1;
}

#sidebar.active {
  margin-left: 0;
  height: auto;
}

.filter_screen {
  background-color: rgba(0, 0, 0, 0.2) !important;
  display: block;
  width: 100% !important;
  top: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  position: fixed;
}

.task-global-sidebar {
  position: fixed;
  top: 92px;
  left: 0;
  bottom: 0;
  width: 220px;
  background-color: #34444c;
  color: #aeb7c2;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 97;
  overflow-y: auto;
}

.task-global-sidebar-inner {
  padding: 12px 0;
}

.task-global-sidebar-title {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 14px;
  color: #ffffff;
}

.task-global-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-global-sidebar-links li a {
  display: block;
  color: #aeb7c2;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 14px;
}

.task-global-sidebar-links li a:hover {
  background-color: #415761;
  color: #ffffff;
}

body.task-global-sidebar-open .task-global-sidebar {
  transform: translateX(0);
}

body.task-global-sidebar-open {
  overflow-x: hidden;
}

body.task-global-sidebar-open .menuBar > .container-fluid {
  padding-left: 0;
}

body.task-global-sidebar-open .menuBar > .container-fluid > .nav.nav-tabs {
  transform: none;
  padding-left: 220px;
  transition: padding-left 0.25s ease;
}

body.task-global-sidebar-open
  .menuBar
  > .container-fluid
  > .nav.nav-tabs
  > li:first-child {
  transform: none;
}

body.task-global-sidebar-open #dispTable {
  padding-left: 220px;
  transition: padding-left 0.25s ease;
}

@media (max-width: 768px) {
  .task-global-sidebar {
    display: none;
  }

  body.task-global-sidebar-open .menuBar > .container-fluid {
    padding-left: 0;
  }

  body.task-global-sidebar-open .menuBar > .container-fluid > .nav.nav-tabs {
    padding-left: 0;
  }

  body.task-global-sidebar-open .menuBar > .container-fluid > .nav.nav-tabs,
  body.task-global-sidebar-open
    .menuBar
    > .container-fluid
    > .nav.nav-tabs
    > li:first-child {
    transform: none;
  }

  body.task-global-sidebar-open #dispTable {
    padding-left: 0;
  }
}

/*---------------------------------------------------------
# login Page / forgotPassword Page / changePassword Page              
---------------------------------------------------------*/
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

#logo_element {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.login-title,
.forgotpass-title {
  text-align: center;
}

.login-title h3,
.forgotpass-title h3 {
  margin-top: 40px;
}

#loginForm,
#forgotpassForm,
#resetPasswordForm {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 0px 1px 1px #e4e6e6;
}

#login_btn,
#resetpass_btn {
  height: 50px;
  margin-bottom: 40px;
}

#back_btn {
  background-image: linear-gradient(to right, #c4c4c4 0%, #8b898a 100%);
  color: #ffffff !important;
  height: 50px;
  margin-bottom: 40px;
}

#email-addr_lbl,
#password_lbl,
#oldpass_lbl,
#newpass_lbl,
#confirmpass_lbl {
  font-weight: 500;
}

#email-addr_error,
#password_error,
#err_msg {
  color: #ff0000;
}

/*---------------------------------------------------------
# Common
---------------------------------------------------------*/
.formWidthAdjust {
  width: 95%;
  margin: auto;
}

.hideColumn {
  display: none;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.roundedSelectionBtn {
  border-radius: 10px;
  border: 1px solid #a5a5a5;
}

#addBtn {
  box-shadow: 0 0 !important;
  font-size: 18px;
  text-transform: none !important;
}

#action_menu {
  color: #000000 !important;
}

#action_menu_btn {
  border: 0px;
  background-color: transparent;
  width: 60px;
}

#action_col {
  max-width: 100px !important;
  text-align: center !important;
}

#actionBtn,
#backBtn {
  box-shadow: 0 0 !important;
  font-weight: bold;
  font-size: 18px;
  text-transform: none !important;
  /* white-space: nowrap; */
  /* prevent word wrap on button */
}

/* to fixed dropdown inside responsive table issue */
.table-responsive {
  -webkit-overflow-scrolling: auto !important;
  /* fix for safari */
}

.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
  position: static !important;
}


#shopee_ads_topup_trans_table_wrapper table.dataTable {
  width: auto !important;
  min-width: calc(100% - 1.5rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* search */
.clear {
  clear: both;
  margin-top: 20px;
}

.autocomplete .searchResult {
  list-style: none;
  padding: 0px;
  width: 0px;
  position: absolute;
  margin: 0;
  background: white;
  border: 1px solid #000000;
  border-radius: 4px;
  z-index: 99;
}

.autocomplete .searchResult li {
  background: #f2f3f4;
  padding: 4px;
  margin-bottom: 1px;
  word-wrap: break-word;
}

.autocomplete .searchResult li:nth-child(even) {
  background: #e5e7e9;
  color: black;
}

.autocomplete .searchResult li:hover {
  cursor: pointer;
  background: #cacfd2;
}

.readonlyInput {
  background-color: #e0e0e0 !important;
  opacity: 0.8;
}

#backBtn {
  background-color: #888888;
  box-shadow: 0 0 !important;
  font-weight: bold;
  font-size: 18px;
  text-transform: none !important;
}

.warning_input {
  border-color: #ff0000 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 129, 0.25) !important;
}

.form_lbl {
  font-weight: 500;
}

#pin_name_lbl,
#pin_remark_lbl,
#pin_grp_name_lbl,
#pin_grp_remark_lbl,
#pin_lbl,
#user_grp_name_lbl,
#user_grp_remark_lbl,
#permission_table_lbl,
#desig_name_lbl,
#desig_remark_lbl,
#dept_name_lbl,
#dept_remark_lbl,
#holiday_name_lbl,
#holiday_date_lbl,
#brand_name_lbl,
#brand_remark_lbl,
#pltf_name_lbl,
#pltf_remark_lbl,
#prod_status_name_lbl,
#prod_status_remark_lbl,
#warehouse_name_lbl,
#warehouse_remark_lbl,
#mrtl_name_lbl,
#mrtl_remark_lbl,
#bank_name_lbl,
#bank_remark_lbl,
#em_type_status_name_lbl,
#em_type_status_remark_lbl {
  font-weight: 500;
}

.table-responsive .dataTables_length {
  padding-bottom: 10px;
}

.error-message {
  color: red !important;
}

.requiredRed {
  color: red !important;
}

@media (max-width: 575.98px) {
  .invoice-edit .invoice-preview-card .invoice-calculations,
  .invoice-add .invoice-preview-card .invoice-calculations {
    width: 100%;
  }
}

.invoice-edit .invoice-preview-card .repeater-wrapper:not(:last-child),
.invoice-add .invoice-preview-card .repeater-wrapper:not(:last-child) {
  margin-bottom: 1.5rem;
}

#row-password-input i {
  position: absolute;
}

.hide_icon {
  padding: 10px;
  min-width: 40px;
}

.icon-buttons {
  width: 80px;
  height: 80px;
}
.bg-label-success {
  background-color: #9ff3c2 !important;
  color: #28c76f !important;
}
.bg-label-info {
  background-color: #a8ecf5 !important;
  color: #00cfe8 !important;
}
.bg-label-warning {
  background-color: #ffd1a3 !important;
  color: #ff9f43 !important;
}
.bg-label-danger {
  background-color: #f18e93 !important;
  color: #ea5455 !important;
}
/*date picker*/
.date-separator {
  padding: 4px 5px;
}

.input-group {
  padding: 1px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;

  border: 1px solid #a7a6a6;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.input-group > input {
  border: none;
}

.input-group > input:focus {
  border: none;
  outline: none;
}

#resetButton {
  font-size: 16px;
  margin: 35px 0px;
}

.order_status {
  float: right;
  font-size: 28px;
}

.fa-cog-hover:hover {
  cursor: pointer;
}

.btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  margin: 3px;
}
.btn-container {
  white-space: nowrap;
}

.order-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-title-row h2 {
  margin: 0;
}

.order-badge-row {
  width: 100%;
}

.mobile-action-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.mobile-action-trigger {
  border: 1px solid #0d6efd;
  background: #0d6efd;
  color: #ffffff;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.mobile-action-trigger:hover,
.mobile-action-trigger.is-hover {
  background: #0b5ed7 !important;
  color: #ffffff !important;
  border-color: #0b5ed7 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.25);
  outline: 2px solid rgba(11, 94, 215, 0.35);
}

.mobile-action-trigger:active,
.mobile-action-trigger:focus-visible,
td.btn-container.mobile-action-open .mobile-action-trigger {
  background: #0d6efd;
  color: #ffffff;
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.2);
}

.mobile-action-menu {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 160px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow: hidden;
  pointer-events: auto;
}

td.btn-container.mobile-action-open .mobile-action-menu {
  display: block;
}

td.btn-container.mobile-action-open-right .mobile-action-menu {
  left: calc(100% + 8px);
  right: auto;
}

td.btn-container.mobile-action-open-left .mobile-action-menu {
  right: calc(100% + 8px);
  left: auto;
}

.mobile-action-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
  cursor: pointer;
  pointer-events: auto;
}

.mobile-action-item--view {
  color: #0d6efd;
}

.mobile-action-item--edit {
  color: #f59e0b;
}

.mobile-action-item--delete {
  color: #dc3545;
}

.mobile-action-item--member {
  color: #198754;
}

.mobile-action-menu .mobile-action-item:hover,
.mobile-action-menu a.mobile-action-item:hover,
.mobile-action-menu button.mobile-action-item:hover,
.mobile-action-item.is-hover {
  background: #0b5ed7 !important;
  color: #ffffff !important;
  outline: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 3px 0 0 #ffffff;
}

.mobile-action-menu .mobile-action-item--view:hover,
.mobile-action-menu a.mobile-action-item--view:hover,
.mobile-action-menu button.mobile-action-item--view:hover,
.mobile-action-item--view.is-hover {
  color: #ffffff !important;
}

.mobile-action-menu .mobile-action-item--edit:hover,
.mobile-action-menu a.mobile-action-item--edit:hover,
.mobile-action-menu button.mobile-action-item--edit:hover,
.mobile-action-item--edit.is-hover {
  color: #ffffff !important;
}

.mobile-action-menu .mobile-action-item--delete:hover,
.mobile-action-menu a.mobile-action-item--delete:hover,
.mobile-action-menu button.mobile-action-item--delete:hover,
.mobile-action-item--delete.is-hover {
  color: #ffffff !important;
}

.mobile-action-menu .mobile-action-item--member:hover,
.mobile-action-menu a.mobile-action-item--member:hover,
.mobile-action-menu button.mobile-action-item--member:hover,
.mobile-action-item--member.is-hover {
  color: #ffffff !important;
}

.mobile-action-item:active,
.mobile-action-item:focus,
.mobile-action-item:focus-visible {
  background: #dbeafe !important;
  color: #111827 !important;
}

.mobile-action-menu .mobile-action-item:hover i,
.mobile-action-menu a.mobile-action-item:hover i,
.mobile-action-menu button.mobile-action-item:hover i,
.mobile-action-item:active i,
.mobile-action-item:focus i,
.mobile-action-item:focus-visible i {
  color: inherit !important;
}

.mobile-action-item i {
  width: 14px;
  text-align: center;
}

.track-order-btn {
  font-size: 20px;
  font-weight: bold;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: rgb(0, 153, 122);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.track-order-btn:hover {
  background-color: rgb(0, 153, 122);
  text-decoration: none;
  color: white;
}

.autocomplete .searchResult {
  max-height: 200px; /* Set the max height for the dropdown */
  overflow-y: auto; /* Enable vertical scrolling */
}
