:root {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-box-sizing: -webkit-border-box;
  box-sizing: border-box;
  line-height: 1.5em;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-variant-numeric: tabular-nums;
}

body,
html {
  background: #f3f3f6;
  font-family: -apple-system-font, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 0;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  margin-top: 60px;
}

#page_home_wrap {
  display: flex;
  flex-direction: row;
}

#page_home_wrap .left,
#page_home_wrap .right {
  margin: 0 16px;
  font-size: 14px;
}

#page_home_wrap .left {
  flex-basis: 60%;
}

#page_home_wrap .right {
  flex-basis: 40%;
}

.red {
  color: #e2182d;
}

.gray {
  color: #777;
}

#extended_access {
  background: #fff;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 8px;
  border: 1px solid #e2182d;
}

h2 {
  color: #e2182d;
  padding: 0;
  margin: 2ex 0 6px 0;
  font-size: 120%;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
}

h2.n {
  color: #444;
}

h2 .highlight {
  background: #e2182d;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 90%;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  right: 0;
  height: 50px;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 300;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cccccf;
  transition: all 300ms;
  padding-top: env(safe-area-inset-top);
  z-index: 100;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#toolbar .sign {
  width: 30px;
  height: 30px;
  background: url("../img/sign-60.png");
  background-size: 30px 30px;
  margin: 0 6px 0 10px;
  transition: all 300ms;
}

#toolbar .logo {
  width: 300px;
  height: 33px;
  background: url("../img/logo-600-66-x.png");
  background-size: 300px 33px;
  transition: all 300ms;
  cursor: pointer;
}

#toolbar_download {
  position: relative;
  line-height: 20px;
  font-size: 13px;
  margin-left: 30px;
  padding-left: 12px;
}

#toolbar .company {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  margin: 0 10px;
  font-size: 110%;
}

#toolbar .glue {
  flex-grow: 10;
}

#toolbar .menu {
  position: relative;
  min-width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 26px;
  color: #e2182d;
  cursor: pointer;
  transition: all 300ms;
}

#toolbar .menu:after {
  content: "\f0c9";
  font-family: "Font Awesome 5 Pro";
  font-weight: 100;
}

#toolbar .menu.open:after {
  content: "\f00d";
}

#pane {
  position: fixed;
  transition: all 200ms;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

@media screen and (max-width: 640px) {
  #toolbar .company {
    display: none;
  }

  #toolbar .glue {
    display: block;
  }
}

#menu {
  position: fixed;
  right: 0;
  top: 50px;
  width: 220px;
  bottom: 0;
  background: #fff;
  padding: 0;
  margin-right: env(safe-area-inset-right);
  z-index: 10;
  transform: translate3d(110%, 0, 0);
  transform: translate3d(calc(110% + env(safe-area-inset-right)), 0, 0);
  transition: all 200ms;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#menu .item_holder {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  width: 220px;
  padding: 4px 0 16px 0;

  display: flex;
  flex-direction: column;
}

#menu.open {
  box-shadow: rgba(0, 0, 0, 0.3) 0 0 15px;
  transform: translate3d(0, 0, 0);
  transition-delay: 0;
  transition: transform 300ms;
  border-left: 1px solid #cccccf;
}

#menu_pin_wrap {
  display: none;
}

#menu div.item {
  position: relative;
  height: 33px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 200ms;
  padding-left: 28px;
}

#menu div.item .shop {
  opacity: 0.5;
  font-size: 14px;
}

#menu div.item.sub {
  margin-left: 24px;
  border-radius: 4px 0 0 4px;
}

#menu .multi_line {
  display: inline-block;
  line-height: 130%;
  max-width: 120px;
}

#menu div.item .reload {
  position: absolute;
  right: 6px;
  top: 0;
  line-height: 33px;
  opacity: 0;
  transition: none;
}

#menu div.item:before {
  content: "\f324";
  position: absolute;
  top: 0;
  left: 0;
  line-height: 33px;
  font-family: "Font Awesome 5 Pro";
  width: 24px;
  text-align: center;
  color: #e2182d;
  display: inline-block;
  font-size: 10px;
}

#menu div.item.news:before {
  content: "\f0a1";
  font-size: 14px;
  font-weight: normal;
}

body:not(.valid_pin_code) #menu div.item.pin_code:before {
  color: #999;
}

#menu div.item.folder:before {
  content: "\f07b";
  font-size: 14px;
}

#menu div.item.folder.open:before {
  content: "\f07c";
}

#menu div.item:not(.selected):hover {
  background: #eee;
}

#menu .item.selected.reload:hover .reload {
  opacity: 0.8;
  transition: opacity 300ms;
  transition-delay: 200ms;
}

#menu .item.selected {
  background-color: #e2182d;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  color: #fff;
  transition: none;
}

#menu .item.selected:before {
  color: white;
  opacity: 0.8;
}

.selector {
  display: flex;
  justify-content: center;
  line-height: 20px;
  margin: 10px;
  font-size: 12px;
}

.selector div {
  padding: 0 8px;
  text-align: center;
  border: 1px solid #aaa;
  border-left: none;
  background: linear-gradient(#fff, #eee);
  cursor: pointer;
}

.selector div:hover {
  background: #ddd;
}

.selector div:first-child {
  border-left: 1px solid #aaa;
  border-radius: 6px 0 0 6px;
}

.selector div:last-child {
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.selector div.selected {
  background: #666;
  border-color: #666;
  color: #fff;
}

@media screen and (min-width: 900px) {
  #menu .item_holder {
    border-top: 1px solid #cccccf;
  }

  #menu .item_holder {
    top: 30px;
  }

  .sticked #toolbar .menu {
    color: #ddd;
    transform: scale(0.8);
  }

  .sticked #menu {
    transition: none;
    transform: translate3d(0, 0, 0);
    border-left: 1px solid #cccccf;
  }

  .sticked #menu {
    box-shadow: none;
  }

  .sticked #pane {
    right: 220px;
  }

  #menu_pin_wrap {
    display: block;
    height: 30px;
    line-height: 30px;
    position: relative;
    background: #f9f9fc;
    padding-left: 10px;
  }

  #menu_pin {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    transform: rotate(45deg);
    color: #999;
    cursor: pointer;
    transition: all 300ms;
  }

  #pin_code_validated {
    font-size: 11px;
    color: #777;
  }

  #pin_code_validated.no {
    text-decoration: line-through;
    color: #777 !important;
  }

  .sticked #menu_pin {
    transform: rotate(0);
    color: #000;
  }

  #menu_pin:hover {
    color: #e2182d;
    transform: rotate(0);
  }
}

.contact_email {
  font-weight: bold;
}

a {
  color: #007aff;
  text-decoration: none;
  white-space: nowrap;
}

a:hover {
  text-decoration: underline;
}

/* ** TABLE ** */

.direct_table,
#pane table {
  border-collapse: collapse;
  background: #fff;
  margin: 0 auto;
  text-align: left;
  box-shadow: rgba(0, 0, 0, 0.3) 0 0 10px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 12px;
}

/*
.direct_table thead,
#pane thead  {
  position: sticky;
  position: -webkit-sticky;
  top: -12px;
}
*/

.direct_table th,
#pane th {
  position: sticky;
  position: -webkit-sticky;
  top: -10px;
  box-shadow: #000 0 0 10px;
}

.direct_table tfoot td,
#pane tfoot td,
tr.foot td {
  background: #fafafc;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
}

.direct_table th,
#pane th {
  padding: 2px 8px;
  background: #e2182d;
  background-color: #e2182d;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  color: #fff;
  white-space: nowrap;
  box-shadow: inset rgba(255, 255, 255, 0.6) -1px 0 0;
}

.direct_table th:last-child,
#pane th:last-child {
  box-shadow: none;
}

.direct_table td,
#pane td {
  padding: 2px 8px;
  border-bottom: 1px solid #ddd;
}

.direct_table tbody tr:hover,
#pane table tbody tr:hover {
  background: #f6f6f9;
}

#pane td.right,
#pane th.right {
  text-align: right;
  white-space: nowrap;
}

#pane td.center,
#pane th.center {
  text-align: center;
  white-space: nowrap;
}

#pane th.sort {
  padding-right: 22px;
  xposition: relative;
  cursor: pointer;
  white-space: nowrap;
}

#pane th.sort:before {
  position: absolute;
  right: 5px;
  font-family: "Font Awesome 5 Pro";
  content: "\f0dc";
  font-size: 15px;
  opacity: 0;
  padding: 0 1px;
  color: #fff;
  transition: all 300ms;
  font-weight: 100;
}

#pane th.sort.down:hover:before,
#pane th.sort.up:hover:before {
  opacity: 0.7;
  transition: none;
}

#pane th.sort:not(.up):not(.down):hover:before {
  content: "\f0dd";
  opacity: 1;
  transition: none;
}

#pane th.sort:after {
  position: absolute;
  content: "\f0dc";
  right: 5px;
  font-family: "Font Awesome 5 Pro";
  font-weight: 100;
  opacity: 0.5;
  font-size: 15px;
  color: #fff;
  padding: 0 1px;
}

#pane th.sort:hover:after {
  opacity: 0.8;
}

#pane th.sort.down:after {
  content: "\f0dd";
  opacity: 1;
  font-weight: 900;
}

#pane th.sort.up:after {
  content: "\f0de";
  opacity: 1;
  font-weight: 900;
}

#internal {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translate3d(-50%, -100px, 0) scaleX(0.001);
  font-size: 14px;
  line-height: 27px;
  background-color: #e2182d;
  text-shadow: rgba(0, 0, 0, 0.3) -1px -1px 0;
  color: #000;
  opacity: 0;
  border-radius: 10px;
  z-index: 1000;
  transition: all 300ms;
  transition-timing-function: cubic-bezier(0, 0.5, 0.5, 1.3);
  white-space: nowrap;
  padding: 0 16px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 0 10px;
  cursor: pointer;
}

#internal.shown {
  transition-delay: 600ms;
  top: 12px;
  opacity: 1;
  color: #fff;
  transform: translate3d(-50%, 0, 0) scaleX(1);
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
}

@media screen and (max-width: 510px) {
  body,
  html {
    font-size: 13px;
  }

  #menu {
    width: 200px;
  }

  #menu .item_holder {
    width: 200px;
  }

  #toolbar {
    font-size: 12px;
  }

  #toolbar .logo {
    width: 200px;
    height: 22px;
    background-size: 200px 22px;
  }

  X#toolbar .sign {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    margin-right: 4px;
  }

  #internal.shown {
    border-radius: 0 0 6px 6px;
    font-size: 10px;
    line-height: 20px;
    top: -2px;
  }
}

.glue {
  flex-grow: 2;
}

#no_login {
  position: fixed;
  left: 50%;
  max-width: 300px;
  transform: translate3d(-50%, -50%, 0) scale(0.1);
  opacity: 0;
  top: 50%;
  box-shadow: rgba(0, 0, 0, 0.3) 0 0 20px;
  text-align: center;
  transition: all 200ms;
  transition-timing-function: cubic-bezier(0, 0.5, 0.5, 1.5);
  z-index: 100000;
  border-radius: 12px;
}

#no_login.show {
  transform: translate3d(-50%, -50%, 0) scale(1);
  opacity: 1;
}

#no_login .title {
  font-weight: bold;
  background-color: #e2182d;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  color: #fff;
  font-size: 20px;
  line-height: 33px;
  border-radius: 10px 10px 0 0;
}

#no_login .text {
  padding: 8px;
  background: #fff;
  border-radius: 0 0 10px 10px;
}

#no_login .text i {
  font-size: 90%;
}

/*  ******************
 * For spin.js
 * ****************** */

#loader {
  position: fixed;
  left: 50%;
  top: 30%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  background: #fff;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.5) 0 5px 30px;
  z-index: 10000;
  opacity: 0;
  transition: all 300ms;
}

#loader.show {
  opacity: 1;
}

@keyframes spinner-line-fade-more {
  0%,
  100% {
    opacity: 0;
  }

  1% {
    opacity: 1;
  }
}

@keyframes spinner-line-fade-quick {
  0%,
  39%,
  100% {
    opacity: 0.25;
  }

  40% {
    opacity: 1;
  }
}

@keyframes spinner-line-fade-default {
  0%,
  100% {
    opacity: 0.22;
  }

  1% {
    opacity: 1;
  }
}
