/**
 * Pagination
 */
.pagination .page-item {
  outline: none !important;
  box-shadow: none !important;
}

.pagination .page-item .page-link {
  border: none !important;
}

.pagination .page-item:not(.disabled) .page-link {
  color: var(--k-blue);
}

.pagination .page-item.disabled {
  pointer-events: none;
}

.pagination .page-item.info {
  line-height: 38px;
  padding: 0 10px;
  opacity: 0.6;
}

/**
 * Switch
 */
.switch {
  min-height: 30px;
  line-height: 20px;
  padding: 5px;
  width: 100%;
  display: flex;
  position: relative;
}

.switch.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.switch.hidden {
  display: none;
}

.switch input {
  appearance: none;
  background-color: #dfe1e4;
  border-radius: 72px;
  border-style: none;
  flex-shrink: 0;
  height: 20px;
  margin: 0;
  position: relative;
  width: 30px;
}

.switch input::before {
  bottom: -6px;
  content: "";
  left: -6px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.switch input,
.switch input::after {
  transition: all 100ms ease-out;
}

.switch input::after {
  background-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 14px;
}

.switch input[type=checkbox] {
  cursor: default;
  float: left;
}

.switch input:hover {
  background-color: #c9cbcd;
  transition-duration: 0s;
}

.switch input:checked {
  background-color: var(--k-orange) !important;
}

.switch input:checked::after {
  background-color: #fff;
  left: 13px;
}

.switch :focus:not(.focus-visible) {
  outline: 0;
}

.switch input:checked:hover {
  background-color: var(--k-orange) !important;
}

.switch .switchlabel {
  position: relative;
  margin-left: 10px;
  max-width: 280px;
  text-overflow: clip;
  white-space: break-spaces;
  line-height: 18px;
  vertical-align: middle;
  display: inline-flex;
  float: left;
}

/**
 * Checkbox
 */
 .checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  font-size: 14px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  border-radius: 5px;
  background-color: #fff;
  border: solid 1px #eee;
}

.checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox input:checked ~ .checkmark {
  background-color: var(--k-blue);
}

.checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/**
 * snackbar
 */
.snackbar {
  visibility: hidden;
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 35px 16px;
  position: fixed;
  z-index: 100000;
  left: 0;
  bottom: 0;
  font-size: 16px;
}

.snackbar .message {
  display: inline-block;
  line-height: 34px;
}

.snackbar .actions {
  display: none;
  float: right;
}

.snackbar .actions .button-ok {
  border: solid 1px white;
}

.snackbar .actions .button-ok:hover {
  background-color: white;
  color: var(--k-orange);
}

.snackbar .actions .button-cancel {
  margin-right: 10px;
}

.snackbar.INFO {
  background-color: var(--k-blue);
}

.snackbar.SUCCESS {
  background-color: #718c00;
}

.snackbar.ERROR {
  background-color: #950B02;
}

.snackbar.WARNING {
  background-color: var(--k-orange);
}

.snackbar.CONFIRM {
  background-color: var(--k-orange);
}

.snackbar.CONFIRM .actions {
  display: inline-block;
}

.snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s;
  animation: fadein 0.5s;
}

@-webkit-keyframes fadein {
  from {bottom: -30px; opacity: 0;} 
  to {bottom: 0; opacity: 1;}
}

@keyframes fadein {
  from {bottom: -30px; opacity: 0;}
  to {bottom: 0; opacity: 1;}
}

/**
 * Tooltip
 */
 .tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  font-size: 14px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext.large {
  width: 200px !important;
  margin-left: -100px !important;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/**
 * Loading
 */
.loading {
  display: none;
  position: fixed;
  z-index: 100;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
}

.loader {
  display: block;
  margin: auto;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite
}
.loader::before , .loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid var(--k-orange);
  animation: prixClipFix 2s linear infinite ;
}
.loader::after{
  border-color: var(--k-blue);
  animation: prixClipFix 2s linear infinite , rotate 0.5s linear infinite reverse;
  inset: 6px;
}

/**
 * Tiny Editor
 */
 .tox .tox-tbtn--active, .tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:focus, .tox .tox-tbtn--enabled:hover {
  background-color: var(--k-blue) !important;
 }

 .tox .tox-tbtn--active svg, .tox .tox-tbtn--enabled svg, .tox .tox-tbtn--enabled:focus svg, .tox .tox-tbtn--enabled:hover svg {
  fill: white !important;
 }

 .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) {
  background-color: var(--k-blue) !important;
  color: #fff !important;
 }

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

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}