@import url(kanban.css);
@import url(mention.css);
@import url(react-datepicker.min.css);
@import url(react-big-calendar.css);

div.ui.active.visible.item.dropdown div.menu.transition.visible div.item a {
  color: #272727;
}

.blank_line {
  height: 10px;
  width: 100%;
  clear: both;
  border: none;
  display: block;
}

div.readonly .input input,
div.readonly textarea,
div.readonly .dropdown {
  background-color: #f8f8f9 !important;
}

.clear_both {
  clear: both;
}

.search-result,
.search-result-small,
.search-result-large,
.search-result-full {
  width: 100%;
  overflow: auto;
  margin-bottom: 10px;
  border: solid 1px #e8e8e9;
  border-radius: 4px;
  background-color: #f2f1f0;
}

.search-result-small {
  height: 286px;
}

.search-result {
  height: 486px;
}

.search-result-large {
  height: 630px;
}

.search-result-full {
  height: calc(100vh - 180px);
}

.grid-title {
  font-weight: 700;
  font-size: 0.92857143em;
  margin-bottom: -8;
}

.grid-body,
.grid-body-small,
.grid-body-large {
  overflow: auto;
  background-color: #f8f8f8;
  border-style: solid;
  border-collapse: collapse;
  border-color: #dedede;
  border-width: 1px;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.grid-body {
  min-height: 300px;
  max-height: calc(100vh - 120px);
}

.grid-body-small {
  height: 172px;
}

.grid-body-large {
  height: 466px;
}

button.react-datepicker__navigation {
  color: transparent;
  height: 10px;
}

#mainMenu {
  margin-left: -3px;
  margin-right: -3px;
}

#mainMenu .ui.blue.inverted.stackable.clear_both.menu {
  font-size: 1em !important;
}

#mobileSubMenu {
  box-shadow: none !important;
  border-radius: 0.28571429rem;
  border: solid 1px #dedede;
}

#mobileSubMenu div.item {
  border: none !important;
  box-shadow: none !important;
}

#subMenu .ui.borderless.compact.fluid.vertical.menu,
#mobileSubMenu .ui.borderless.compact.fluid.vertical.menu {
  border: none !important;
  box-shadow: none !important;
}

#subMenu .borderless.compact.fluid.vertical.menu .item .header {
  font-size: 1em !important;
  text-transform: uppercase;
}

#mobileSubMenu .menu .item .header {
  font-size: 1.2em !important;
  text-transform: uppercase;
}

#subMenu .ui.borderless.compact.fluid.vertical.menu .item .menu .item {
  font-size: 1em !important;
  border: none !important;
}

#mobileSubMenu .menu .item .menu .item {
  font-size: 1.2em !important;
  border: none !important;
}

#mobileSubMenu .input {
  font-size: 1em !important;
}

/* 
USED THIS IF OTHER CHECKBOX PRIMARY COLOR

.ui.toggle.checkbox input:focus:checked ~ .box::before, 
.ui.toggle.checkboopacity: 1 !important;x input:focus:checked ~ label::before,
.ui.toggle.checkbox input:checked ~ .box:before, 
.ui.toggle.checkbox input:checked ~ label:before
{
  background-color: #2185d0 !important;
} */

/* Hiển thị  control bị disable cùng màu với các control khác */
.ui.disabled.dropdown,
.ui.dropdown .menu>.disabled.item,
.ui.form .disabled.field,
.ui.form .disabled.fields .field,
.ui.form .field :disabled,
.ui.form .field.disabled>label,
.ui.form .fields.disabled>label {
  opacity: 1 !important;
}

.ui.slider.checkbox .box,
.ui.slider.checkbox label {
  color: #333;
}

.ui.disabled.fluid.search.selection.dropdown {
  background-color: #f8f8f9;
}

.ui.menu .item>i.icon {
  opacity: 1 !important;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}

.loader {
  color: #ffffff;
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}

.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader:after {
  left: 3.5em;
}

@-webkit-keyframes load7 {

  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }

  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

@keyframes load7 {

  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }

  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

.tox-notification.tox-notification--in,
.tox-statusbar__branding,
.tox-notification--warning {
  display: none !important;
  /* visibility: hidden; */
}

.ui.form .field .ui.input input,
.ui.form .fields .field .ui.input input {
  padding: .35em .6em !important;
}

.ui.form .field .react-datepicker-wrapper .ui.input input,
.ui.form .field .ui.search .ui.input input {
  padding-right: 35px !important;
}

.ui.table thead th {
  padding: .5em .5em !important;
}

.ui.button {
  padding: .4em 1em;
  font-weight: 300;
}

.ui.menu:not(.vertical) .item > .button  {
  padding: .4em .4em;
  font-weight: 300;
}

.ui.search.selection.dropdown>input.search,
.ui.selection.dropdown {
  padding: .5em 2.1em .35em .5em !important;
  min-height: 2.357em;
}

.ui.multiple.search.selection.dropdown>input.search {
  padding: 0 !important;
}

.ui.multiple.search.selection.dropdown {
  padding: 0em 2.1em 0em .5em !important;
}

.ui.selection.dropdown>.delete.icon,
.ui.selection.dropdown>.dropdown.icon,
.ui.selection.dropdown>.search.icon {
  top: .58571429em;
}

.ui.selection.dropdown.visible,
.react-datepicker-popper {
  z-index: 16;
}

.ui.multiple.search.dropdown>input.search {
  margin: 0 !important;
}

.ui.multiple.dropdown>.label {
  font-size: 0.9em;
  margin: .4rem .3rem .2rem 0 !important;
}

.ui.form .fields {
  margin: 0 -.5em 0.6em !important;
}

.ui.grid>.row {
  padding-top: .6rem !important;
  padding-bottom: .6rem !important;
}

.ui.grid>.column:not(.row),
.ui.grid>.row>.column {
  /* padding-left: 0.5rem !important; */
  padding-right: 0.5rem !important;
}

.ui.tabular.menu .item {
  padding: .36em .9em !important;
}

.ui.menu .item {
  padding: .6em .9em !important;
}

.ui.steps .step {
  padding: .6em .9em !important;
}

#subMenu .borderless.compact.fluid.vertical.menu .item .header {
  margin-left: -10px !important;
}

#subMenu .borderless.compact.fluid.vertical.menu .item .header,
#mobileSubMenu .borderless.compact.fluid.vertical.menu .item .header {
  margin-left: -10px !important;
}

.ui.divider {
  margin: 0px !important;
}

.ui.modal {
  top: 10% !important;
}

.ui.steps .step .content {
  font-weight: 700;
}

.ui.steps .step.active .content {
  color: #4183c4;
  font-weight: 700;
}

.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {
  padding: 0;
}

.react-datepicker__header--time {
  padding-bottom: 16px !important;
  padding-top: 20px !important;
}

.react-datepicker-wrapper,
.react-datepicker__input-container {
  width: 100%;
}

input[name=quickSearch] {
  border-radius: 2 !important;
  height: 28px;
  width: 100%;
}

@media only screen and (min-width: 750px){
  table.fixed-header tr.tfoot {
    position: sticky;
    bottom: 0;
    z-index: 11;
  }


  table.fixed-header thead tr:nth-child(1) th,
  table.fixed-header thead tr:nth-child(2) th,
  table.fixed-header thead tr:nth-child(3) th {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  table.fixed-header thead tr:nth-child(2) th{
    top: 34.8px;
  }

  table.fixed-header thead tr:nth-child(3) th {
    top: 70.5px;
  }

  table.fixed-header .headerRow3 {
    position: sticky;
    top: 70px;
    z-index: 10;
  }

  table.fixed-header .headerRow4 {
    position: sticky;
    top: 125px;
    z-index: 12;
  }

  table.fixed-header thead tr th.fixed-column-header {
    top: 0;
    left: 0;
    z-index: 12;
    border-right: 0.5px solid #dedede;
  }

  table.fixed-header tr td.fixed-column {
    border-right: 0.5px solid #dedede;
  }

  table td.fixed-column {
    position: sticky;
    left: 0;
    z-index: 11;
  }

  table.fixed-header tfoot tr th.fixed-column-header {
    position: sticky;
    left: 0;
    z-index: 11;
  }
}

tr:nth-child(even) td {
  background: #fafafb;
}

tr:nth-child(odd) td {
  background: #FFFFFF;
}

table tr:hover td {
  background: #F2F2F2;
}

.ui.progress .bar,
.ui.small.progress .bar {
  min-width: 36px;
}

.ui.search>.results {
  width: 100%;
}

.text-right input {
  text-align: right !important;
}

.ui.grid.logo {
  margin-bottom: 45px;
  margin-top: 35px;
}

.logo img.ui.image {
  display: block;
  width: auto !important;
  height: 60px !important;
  /* background: white; */
  padding: 10px 20px;
  border-radius: 4px;
}

.ui.attached.segment.login .ui.fluid.input {
  /* width: 80%; */
  margin: 0 auto;
}

.menu .item:first-child a>strong {
  border: 1px solid #ddd;
  padding: 5px 18px;
  border-radius: 4px;
}

.gridBody {
  overflow: auto;
  height: 300px;
  background-color: #f8f8f8;
  border-style: solid;
  border-collapse: collapse;
  border-color: #dedede;
  border-width: 1px;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.react-datepicker-popper,
.ui.selection.dropdown.active,
.ui.selection.dropdown.visible {
  z-index: 99;
}

/* css react-funnel-pipeline */
._1WnkD {
  -webkit-clip-path: polygon(0 0, 100% 0, 70% 60%, 70% 100%, 30% 100%, 30% 60%);
  clip-path: polygon(0 0, 100% 0, 70% 60%, 70% 100%, 30% 100%, 30% 60%);
  text-align: center;
}

._1WnkD ._1JWHC {
  width: 100%;
  min-height: 1px;
  font-size: 14px;
  padding: 2px 0;
  margin: 2px 0;
  color: white;
}

._1WnkD ._1JWHC:last-child {
  /* padding-bottom: 40px; */
}

._1WnkD ._1JWHC:hover {
  background-color: #484848 !important;
}

._1WnkD ._1JWHC ._3tM6f {
  font-size: 1.1rem;
  padding-bottom: 3px;
}

.ui.ordered.list .list>.item:before,
.ui.ordered.list>.item:before,
ol.ui.list li:before {
  position: absolute;
  top: auto;
  left: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  margin-left: -1.25rem;
  counter-increment: ordered;
  content: counters(ordered, ".") " ";
  text-align: right;
  color: rgba(0, 0, 0, .87);
  vertical-align: middle;
  opacity: .8;
  font-weight: bold;
}

.ui.three.cards {
  margin-left: -2.4em;
  margin-right: -2.4em;
}

.ui.two.cards {
  margin-left: -1.8em;
  margin-right: -1.8em;
}

.search-result-full .ui.compact.table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75ch;
}

.mce-preview-object .mce-shim {
  display: none;
}

.search-result-full .ui.compact.table td.break-spaces {
  white-space: break-spaces;
  width: 600px;
  /* display: block; */
}

#subMenu .ui.borderless.compact.fluid.vertical.menu {
  padding-top: 46px;
}

#mobileSubMenu {
  padding-top: 46px;
}

.ui.vertical.menu .item {
  z-index: 9;
}

/* .ui.vertical.menu:not(.tabular)>.item:first-child { */
.ui.vertical.menu>.item:first-child {
  position: fixed;
  top: 49px;
  margin-right: 0;
  background: white;
  padding: 10px !important;
  z-index: 99;
}

.secondary.ui.vertical.menu>.item:first-child {
  width: 216px;
  top: 89px;
}

.secondary.ui.vertical.menu.fluid {
  padding-top: 31px;
}

.cleave.input {
  height: 28px;
}

.captcha svg {
  width: 200px;
  background: white;
}

.captcha {
  width: 200px;
  text-align: center;
  padding-left: calc(50% - 100px);
}

.login-form [type=submit] {
  position: relative;
  width: 40%;
  margin: 2rem 0 2.2rem;
  color: rgba(255, 255, 255);
  background: #ec1c24;
  font-size: 18px;
  border-radius: 0.3rem;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s 0.15s, font-size 0.1s 0.15s;
}

.login-form .ui.input input {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid;
  background: none;
}

.login-form .ui.input input::-webkit-input-placeholder {
  /* Edge */
  color: #000;
}

.login-form .ui.input input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #000;
}

.login-form .ui.input input::placeholder {
  color: #000;
}

.ui.celled.table tr td:first-child, .ui.celled.table tr th:first-child {
  border-left: 1px solid rgba(34,36,38,.1);
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid;
  border-color: #2185d0 transparent #2185d0 transparent;
  border-radius: 50%;
  animation: spin-anim 1.2s linear infinite;
}

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

.codeEditor {
  border: 1px solid #d4d4d5;
}

.ui.form div.codeEditor textarea {
  border: none !important;
  padding: 0 !important;
  opacity: 0 !important;
}

.pg-viewer-wrapper .pg-viewer {
  text-align: center;
}

.ui.modal.xlsx .pg-viewer-wrapper .pg-viewer {
  text-align: initial;
}

.ui.modal.xlsx {
  height: calc(100vh - 80px) !important;
  width: calc(100% - 80px) !important;
}

.ui.modal.jpg-popup {
  height: 80vh !important;
}
.pg-viewer-wrapper {
  overflow-y: auto !important;
}
.pg-viewer-wrapper .photo-viewer-container {
  height: 100% !important;
  width: auto !important;
}
.pg-viewer-wrapper img {
  height: 100% !important;
  width: auto !important;
}

.warpTextProduct {
  width: 400px;
  white-space: break-spaces;
}

.mainGroup tr td {
  background: #ddd;
}

.detailBody tr td {
  border: 1px solid rgba(34, 36, 38, .1);
}

.sticky::after {
  content: none;
}
.sticky {
  position: sticky;
  z-index: 15;
}

table.fixed-header {
  border-collapse: separate !important
}

tbody.setBoder tr td {
  border: 1px solid rgba(34,36,38,.1);
}

.fullscreen #pg-photo-container {
  height: 90% !important;
}

.fullscreen #pg-photo-container img {
  height: auto !important;
  width: auto !important;
}
.needBalance td {
  background-color: #ec1c24 !important;
  color: white;
}
.needAddOpen td {
  background-color: peru !important;
  color: white;
}

.posting-view {
  max-width: 90%;
}
.posting-view,
.posting-view input,
.posting-view select,
.posting-view table,
.posting-view table td,
.posting-view table th
{
  font-size: 12px;
}

.custom-menu-item {
  margin-right: 0;
  background: white;
  padding: 10px !important;
  z-index: 99;
}

.custom-menu-item:first-child {
  position: static !important;  /* Overriding the default fixed positioning */
  top: auto !important;         /* Resetting top to auto */
}

.ui.celled.list>.item {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ui.list, ol.ui.list, ul.ui.list {
  list-style-type: none;
  margin: 0.25em 0 !important;
  padding: 0 0 !important;
}
