@font-face {
  font-family: "Roboto";
  src: url("./Roboto.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("./Robotobold.ttf");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("./Robotolight.ttf");
  font-weight: 300;
  font-style: normal;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #eaeaea;
  padding: 0;
  margin: 0;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.image-preview-button {
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #0291cf;
  padding: 4px 8px;
  border-radius: 2px;
}

.image-preview-button>span {
  margin-right: 8px;
}

.image-preview-button>p {
  display: inline;
  color: #0291cf;
}

.link {
  color: #0291cf;
  text-decoration: underline;
  cursor: pointer;
}

.shift-document-button {
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #00c853;
  padding: 4px 8px;
  border-radius: 2px;
  width: 135px;
  text-align: right;
  margin-left: 16px;
}

.shift-document-button>span {
  margin-left: 8px;
}

.shift-document-button>p {
  display: inline;
  color: #00c853;
}

.image-preview-button:hover,
.shift-document-button:hover {
  cursor: pointer;
}

.visible-xs {
  display: none;
}

.visible-lg {
  display: initial;
}

.with-go-back {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.with-go-back img {
  margin-left: 30px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.contained-button {
  min-width: 123px;
  padding: 0 28px;
  display: inline-block;
  height: 48px;
  line-height: 48px;
  border-radius: 6px;
  background-color: #e582b8;
  border: none;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  outline: 0;
}

.prev-key-header .contained-button {
  min-width: 78px;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
  padding: 0 6px;
}

.contained-button:disabled {
  opacity: 0.5;
}

.footer-toolbar {
  display: flex;

  max-width: 577px;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: center;
}

.footer-toolbar .additional-info {
  padding-top: 10px;
  width: 100%;
  max-width: 564px;
}

.footer-toolbar .additional-info .version {
  float: right;
}

.additional-infoV2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.additional-infoV2>div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.additional-infoV2 div:last-child>div {
  margin-left: 5px;
  display: flex;
}

.logs-button {
  padding: 0 10px;
  display: inline-block;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  border-radius: 6px;
  background-color: #e582b8;
  border: none;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  outline: 0;
}

.batch-settings-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.batch-settings-footer {
  display: flex;
  justify-content: center;
}

.batch-settings-footer>div {
  text-align: center;
}

.terminals>span,
.printers>span {
  font-size: 14px;
  font-weight: 500;
}

.terminals>p,
.printers>p {
  color: #de4e47;
}

.batch-device {
  display: flex;
  align-items: center;
}

.batch-device>input {
  width: auto;
  margin-right: 15px;
}

.main.batch-settings-container>.batch-description {
  background-color: #e6f4fa;
  border-left: 4px solid #0291cf;
  padding: 16px;
}

.batch-description>h4 {
  margin-top: 0;
}

.batch-description>ul {
  list-style-type: none;
  margin-bottom: 0;
  padding-left: 0;
}

.batch-beta {
  padding: 4px 16px;
  background-color: #00c853;
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
}

.download-registry-button {
  min-width: 123px;
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  border-radius: 6px;
  border: 1px solid #e582b8;
  color: #333333;
  background-color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  outline: 0;
  font-size: 14px;
}

.outlined-button {
  min-width: 123px;
  padding: 0 28px;
  display: inline-block;
  height: 48px;
  line-height: 48px;
  border-radius: 6px;
  border: 1px solid #e582b8;
  color: #333333;
  background-color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  text-align: center;
  outline: 0;
}

.footer-toolbar .contained-button {
  padding: 0 28px;
  text-align: center;
  text-transform: initial;
}

.button-text {
  padding: 10px;
  border-radius: 4px;
  background-color: #eef0f6;
  color: #333333;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.button-text.delete-prev-key {
  color: #de4e47;
}

.button-hover {
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
}

.button-hover.logout-button {
  position: relative;
  top: 3px;
}

.button-hover:hover {
  background-color: #f5f5fc;
}

.dm-button img {
  height: 24px;
}

input,
select {
  height: 50px;
  border-radius: 8px;
  border: solid 1px #dde1e9;
  background-color: #ffffff;
  padding-left: 20px;
}

input {
  width: calc(100% - 22px);
}

select#dbType  {
  width: 100%;
}

input[type="checkbox"] {
  height: 14px;
  width: 14px;
  color: #e582b8;
}

#loader-box.active {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 10;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.7);
}

.reverse-sync-description {
  margin-right: 10px;
}

#reverse-sync-loader-box {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 6px 0 rgb(0 0 0 / 5%);
  padding: 30px;
  border-radius: 4px;
}

#migration-state-loader-box {
  position: relative;
  display: block;
  align-items: center;
  margin: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 6px 0 rgb(0 0 0 / 5%);
  padding: 30px;
  border-radius: 4px;
}

#reverse-sync-loader-box.hidden,
#migration-state-loader-box.hidden {
  display: none;
}

.reverse-sync-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: inherit;
  vertical-align: middle;
  pointer-events: none;
  position: absolute;
  top: 25px;
  left: 300px;

  border: 0.2em solid transparent;
  border-top-color: #e582b8;
  border-radius: 50%;
  -webkit-animation: 1s loader-05 linear infinite;
  animation: 1s loader-05 linear infinite;
  z-index: 40;
}

.migration-state-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: inherit;
  vertical-align: middle;
  pointer-events: none;
  position: absolute;
  top: 25px;
  left: 240px;

  border: 0.2em solid transparent;
  border-top-color: #e582b8;
  border-radius: 50%;
  -webkit-animation: 1s loader-05 linear infinite;
  animation: 1s loader-05 linear infinite;
  z-index: 40;
}

.reverse-sync-loader:before,
.migration-state-loader:before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  top: -0.2em;
  left: -0.2em;
  border: 0.2em solid #e582b8;
  border-radius: 50%;
  opacity: 0.5;
}

#loader-box.active .loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  color: inherit;
  vertical-align: middle;
  pointer-events: none;

  border: 0.2em solid transparent;
  border-top-color: #e582b8;
  border-radius: 50%;
  -webkit-animation: 1s loader-05 linear infinite;
  animation: 1s loader-05 linear infinite;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  z-index: 40;
}

#loader-box.active .loader:before {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  position: absolute;
  top: -0.2em;
  left: -0.2em;
  border: 0.2em solid #e582b8;
  border-radius: 50%;
  opacity: 0.5;
}

@keyframes loader-05 {
  0% {
    transform: rotate(0deg);
  }

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

header {
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

header .header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

header .remote-access {
  color: #de4e47;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  right: 210px;
}

header .toolbar-buttons {
  margin-left: auto;
  margin-right: 5px;
  display: inline-flex;
}

header .toolbar-buttons .button-hover {
  display: block;
  height: 24px;
}

header .toolbar-buttons .button-hover.hidden {
  display: none;
}

.logo {
  background-color: #121212;
  padding: 10px 27px;
  height: 40px;
}

.logo img,
.logo svg {
  height: 100%;
  width: auto;
}

header h1 {
  font-size: 22px;
  margin-left: 30px;
  font-weight: 500;
}

#empty-list {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

#empty-list.hidden {
  display: none;
}

#empty-list p:nth-of-type(1) {
  font-weight: bold;
  font-size: 32px;
  line-height: 40px;
  margin-top: 24px;
  margin-bottom: 16px;
}

#empty-list p:nth-of-type(2) {
  font-size: 16px;
  line-height: 20px;
  margin-top: 0px;
  margin-bottom: 24px;
}

.main {
  padding: 10px;
}

.main .toolbar {
  padding: 8px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  text-align: right;
}

.main .toolbar .button {
  padding: 10px;
  border-radius: 4px;
  background-color: #eef0f6;
  margin-left: 10px;
  color: #333333;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.main .toolbar .button img {
  margin-right: 8px;
  height: 100%;
}

.additional-info,
.main.shifts-list-page .additional-info,
.main.shift-documents-page .additional-info {
  background-color: #fff;
  margin-bottom: 10px;
  border-radius: 4px;
  padding: 5px 0;
}

.additional-info>div,
.main.shifts-list-page .additional-info>div,
.main.shift-documents-page .additional-info>div {
  margin: 5px;
}

.main.shifts-list-page .dfs,
.main.shift-documents-page .dfs {
  margin-right: 5px;
}

.additional-info .contained-button,
.main.shifts-list-page .additional-info .contained-button,
.main.shift-documents-page .additional-info .contained-button {
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  padding: 0 10px;
  float: right;
  position: relative;
  bottom: 5px;
  min-width: unset;
}

.additional-info .version,
.main.shifts-list-page .additional-info .version,
.main.shift-documents-page .additional-info .version,
.additional-info .dfs,
.main.shifts-list-page .additional-info .dfs,
.main.shift-documents-page .additional-info .dfs {
  display: inline-block;
}

.additional-info .dfs span {
  font-weight: bold;
}

.additional-info .dfs span.red {
  color: #de4e47;
}

.additional-info .dfs span.green {
  color: #77a43c;
}

.additional-info .version span.red {
  color: #de4e47;
  font-size: 14px;
  font-weight: bold;
}

.additional-info .version span.green {
  color: #77a43c;
  font-size: 14px;
  font-weight: bold;
}

.additional-info .dfs span.orange {
  color: #d9b019;
}

.main #main-table,
.products-table {
  font-size: 14px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  border-spacing: unset;
}

.main #main-table .row,
.products-table .row {
  min-height: 60px;
}

.main #main-table .row.header,
.products-table .row.header {
  background-color: #f5f5fc;
  font-weight: bold;
}

.main #main-table .row td,
.main #main-table .row th,
.products-table .row td,
.products-table .row th {
  border: 1px solid #eaeaea;
  padding: 10px;
  text-align: center;
  min-height: 35px;
}

.main #main-table .row td.right {
  text-align: right;
}

.main #main-table .row td:first-child,
.main #main-table .row td:nth-child(4):not(.center),
.main #main-table .row th:first-child,
.main #main-table .row th:nth-child(4):not(.center) {
  text-align: left;
}

.main #main-table .row th.actions {
  width: 80px;
}

.main #main-table .row>td:last-child {
  width: 105px;
}

.main #main-table .row>td:last-child div.space-around {
  display: flex;
  justify-content: space-around;
}

.main #main-table .row>td:last-child span {
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: inline-block;
}

.main #main-table .row>td:last-child span:hover {
  background-color: #f5f5fc;
}

.main #main-table .row>td .offline_time {
  color: #0291cf;
  font-weight: bold;
  display: block;
}

.main #main-table .row>td.green {
  background-color: #dffdb7;
}

.main #main-table .row>td.yellow {
  background-color: #f8ffb8;
}

.main #main-table .row>td.blue {
  background-color: lightgrey;
}

.main #main-table tr.blue {
  background-color: lightgrey;
}

.main #main-table .row>td.red {
  background-color: #fcb6d3;
}

.main #main-table .row>td.orange {
  background-color: #f0c45d;
}

.token-container {
  position: relative;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Logs styles */
.main #logs-list {
  font-size: 14px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  border-spacing: unset;
}

.main #logs-list td.device_name,
.main #logs-list th.device_name,
.main #logs-list th.info {
  text-align: left;
}

.main #logs-list tr:hover,
.main #logs-list tr:active {
  background-color: #ede1fa;
  cursor: pointer;
}

.main #logs-list tr.yellow {
  color: #d9b019;
}

.main #logs-list tr.red {
  color: #de4e47;
}

.main #logs-list .row.header {
  background-color: #f5f5fc;
  font-weight: bold;
}

.main #logs-list td,
.main #logs-list th {
  border: 1px solid lightgrey;
  padding: 5px;
  text-align: center;
}

.main #logs-list th {
  padding: 8px;
}

.main #logs-list td.info {
  word-wrap: anywhere;
}

.main #logs-list td.info span {
  text-align: left;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 600px;
}

.main #logs-list td.info span.visible-xs {
  display: none;
}

.pagination-container {
  display: flex;
  justify-content: flex-end;
  padding-right: 10px;
  align-content: center;
  align-items: center;
  margin-top: 10px;
}

#pagination {
  display: inline-flex;
}

#pagination div {
  font-size: 16px;
  height: 24px;
  line-height: 24px;
  min-width: 14px;
  padding: 0 5px;
  text-align: center;
}

#pagination div.current {
  color: #fff;
  background-color: #e582b8;
  border-radius: 50%;
}

#pagination div:not(.current) {
  cursor: pointer;
  color: #252837;
}

#perPage {
  font-size: 14px;
  padding: 5px;
  height: 30px;
  margin-right: 5px;
}

.pages {
  display: flex;
  align-items: center;
}

#pagination .left-arrow,
#pagination .right-arrow {
  padding: 0 8px;
}

#pagination .left-arrow img {
  transform: rotate(180deg);
}

@media (max-width: 1300px) {
  .main #logs-list td.info span {
    width: 450px;
  }
}

@media (max-width: 1225px) {
  .additional-infoV2:not(.additional-infoV2-md) {
    flex-direction: column;
    align-items: flex-start;
  }

  .main.shift-documents-page .additional-infoV2>div:first-child,
  .main.shifts-list-page .additional-infoV2>div:first-child {
    margin-left: 15px;
  }
}

@media (max-width: 1100px) {
  .main #logs-list td.info span {
    width: 250px;
  }
}

@media (max-width: 935px) {
  .mobile-wrap>div {
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .main #logs-list td.info span {
    width: 150px;
  }

  .additional-infoV2-md {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .contained-button .button-text {
    display: none !important;
  }

  .contained-button .button-icon {
    display: flex !important;
    margin-top: 10px;
  }

  #admin-panel-button {
    background-color: unset !important;
    top: 58px;
    right: 250px !important;
  }

  #admin-panel-button.auth-active-style {
    top: 58px;
    right: 280px !important;
  }

  .main #logs-list,
  .main #logs-list tbody,
  .main #logs-list td {
    display: block;
  }

  .main #logs-list tr {
    display: flex;
    flex-wrap: wrap;
  }

  .main #logs-list {
    box-shadow: none;
    background-color: transparent;
  }

  .main #logs-list td {
    border: unset;
    font-size: 16px;
    padding: 4px;
    text-align: left;
    width: 47%;
  }

  .main #logs-list td.info {
    width: 100%;
    display: inline-flex;
  }

  .main #logs-list tr:first-child {
    display: none;
  }

  .main #logs-list tr {
    box-shadow: 0 1px 0 0 #e7e9f0;
    background-color: #ffffff;
    margin-top: 8px;
    border-radius: 4px;
    padding: 5px;
  }

  .main #logs-list td span.visible-xs {
    font-weight: 500;
    display: inline-block;
    margin-right: 15px;
    width: auto;
  }

  #modal .log-body .row span.visible-xs {
    display: none;
  }

  .additional-infoV2>div:last-child {
    flex-wrap: wrap;
  }

  .additional-infoV2>div:last-child>div:last-child {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {

  header .header-title {
    flex-direction: column;
    align-items: flex-start;
  }

  header .header-title .with-go-back {
    width: 100%;
    border-bottom: 1px solid #dae1e7;
    margin-bottom: 10px;
  }

  header .header-title .toolbar-buttons {
    position: static;
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 30px;
  }
}

/* End Logs styles */

/*Modal*/
.hidden {
  display: none;
}

#overlay {
  background-color: rgba(0, 0, 0, 0.3);
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

#modal,
.modal,
#modal-ask-before-action,
#modal-reverse-sync,
#modal-db-migration,
#modal-migration-state {
  position: fixed;
  width: 60%;
  top: 10%;
  left: 20%;
  background-color: #eaeaea;
  z-index: 3;
  overflow-y: auto;
  max-height: calc(100vh - 10%);
}

.wide-modal {
  width: 80%;
  left: 10%;
  top: 5%;
  overflow: hidden;
}

#image-preview-modal {
  width: 50%;
}

#image-preview-modal .image-preview-container {
  text-align: center;
}

#image-preview-modal .image-preview-container>div {
  text-align: center;
  margin: 10px;
  overflow-y: auto;
  max-height: 525px;
}

#image-preview-modal .image-preview {
  width: 80%;
  max-width: 500px;
}

#modal .modal-title,
#modal-ask-before-action .modal-title,
#modal-reverse-sync .modal-title,
#modal-db-migration .modal-title,
#modal-migration-state .modal-title,
.modal .modal-title {
  height: 60px;
  line-height: 60px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding-left: 30px;
  font-weight: 600;
}

#modal-ask-before-action.renewHashChain .actionQuestion p:first-child {
  text-align: center;
}

#modal form,
.modal form {
  padding: 10px;
  padding-bottom: 0;
}

#modal .body,
#modal-ask-before-action .actionQuestion,
#modal-ask-before-action .actionQuestionUpd,
.modal:not(#executesql) .body {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#modal-ask-before-action .actionQuestion,
#modal-ask-before-action .actionQuestionUpd,
#modal-db-migration .database-migration-container{
  margin-bottom: 10px;
}

#error-text-action-ask,
#error-text-x-report,
#error-text-zip-logs,
#error-help-req,
#error-text-sql,
#error-text-safe-summ,
#error-text-cash-in-out,
#reverse-sync-error-text,
#error-text-update {
  font-weight: bold;
  color: #de4e47;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#success-text-update {
  font-weight: bold;
  color: #77a43c;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#modal-ask-before-action .body,
#modal-reverse-sync .body,
#modal-migration-state .body,
#modal-db-migration .body,
#executesql .body {
  padding: 10px;
  padding-bottom: 0;
}

#modal .modal-footer,
.modal .modal-footer {
  padding: 20px 10px;
  text-align: right;
}

#modal-ask-before-action .modal-footer,
#modal-reverse-sync .modal-footer,
#modal-migration-state .modal-footer,
#modal-db-migration .modal-footer,
#executesql .modal-footer {
  padding: 10px;
  text-align: right;
}

#modal .close,
.modal .close,
#modal-ask-before-action .close,
#modal-db-migration .close,
#modal-migration-state .close,
#modal-reverse-sync .close {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 25px;
  cursor: pointer;
  height: 43px;
  width: 43px;
  line-height: 43px;
  background-color: white;
  font-weight: 300;
  text-align: center;
}

#modal .line {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

#modal .line.checkbox {
  flex-direction: row;
}

#modal .line label {
  margin-bottom: 10px;
}

#modal .line.hidden {
  display: none;
}

#modal .line.sign-file.hidden {
  display: none;
}

.line.checkbox {
  flex-direction: row;
}

.checkbox.float {
  float: right;
}

#modal .line.checkbox label {
  margin-bottom: 0;
  margin-right: 10px;
}

#modal #error-prev-key,
#modal #error-db-migration,
#modal #error-add-prro {
  font-weight: bold;
  color: #de4e47;
}

#modal .log-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
}

#modal .log-body .row {
  width: calc(50% - 15px);
  background-color: #fff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  padding: 5px;
  border-radius: 4px;
  margin-bottom: 10px;
}

#modal .log-body .row.info {
  max-height: 400px;
  width: calc(100% - 10px);
  word-wrap: break-word;
  overflow-y: auto;
}

/* x report */
#modal-x-report {
  width: 760px;
  left: calc(50% - 380px);
  top: 20px;
}

#modal-x-report form {
  font-size: 12px;
}

.taxes-head,
.taxes-row,
.payment-head,
.payment-row,
.money-row,
.cash-head,
.cash-row {
  display: flex;
  align-items: center;
  border: 1px solid #eaeaea;
}

.taxes-head,
.payment-head,
.cash-head {
  background-color: #f5f5fc;
}

#modal-x-report .body {
  background-color: transparent;
  padding: 0px;
  box-shadow: none;
  border-radius: 0px;
}

#modal-x-report .shadow-box {
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin-bottom: 10px;
}

#modal-x-report .shadow-box .subheader {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  color: #8c3ba1;
}

#modal-x-report .shadow-box .line,
#modal-x-report .shadow-box .line-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modal-x-report .shadow-box .line {
  margin-bottom: 5px;
}

#modal-x-report .shadow-box .line-box .checks {
  display: inline-flex;
}

#modal-x-report .shadow-box .line-box .checks label {
  margin-right: 10px;
}

#modal-x-report .shadow-box .line-box .checks>div:first-child {
  margin-right: 10px;
}

#modal-x-report .modal-footer {
  padding: 10px 10px 20px;
}

.modal .modal-footer button,
.modal .modal-footer div {
  min-width: 80px;
}

.taxes-head>div:first-child,
.taxes-row>div:first-child {
  width: 50px;
  text-align: center;
}

.payment-head>div,
.payment-row>div,
.money-row>div {
  width: 25%;
  padding: 5px;
}

.cash-head>div,
.cash-row>div {
  width: 50%;
  padding: 5px;
}

.taxes-row label {
  width: 110px;
  display: inline-block;
}

.taxes-row .with-label,
.taxes-row .save-with-label,
.taxes-row .return-with-label {
  width: 205px;
}

.taxes-row .save-with-label input,
.taxes-row .save input {
  margin-bottom: 5px;
}

.taxes-head>div,
.taxes-row>div {
  width: 110px;
  padding: 5px;
}

#modal-x-report input {
  width: 80px;
  height: 20px;
  padding-left: 3px;
  font-size: 11px;
}

#modal-x-report .payment-row>div {
  width: 12.5%;
}

#modal-x-report .payment-row input {
  width: 40px;
}

/* End Modal */

/* device detail styles */
.main #device-detail {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.main #device-detail>div,
.main.batch-settings-container>div,
.main.log-page .box {
  background-color: #ffffff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 10px;
  width: 524px;
}

.main #device-detail .line {
  margin-bottom: 14px;
  max-width: 100%;
}

.main #device-detail .toggle-box {
  position: relative;
  padding: 0;
  width: 564px;
  max-width: 100%;
}

.main #device-detail .toggle-box>.line {
  padding: 10px 20px;
  max-width: calc(100% - 40px);
  margin-bottom: 0;
  cursor: pointer;
}

.main #device-detail .toggle-box .toggle-box-body {
  padding: 10px 20px 20px;
  display: none;
}

.main #device-detail .toggle-box.open .toggle-box-body {
  display: block;
}

.main #device-detail .toggle-box>.line::after {
  content: "";
  display: block;
  width: 24px;
  height: 43px;
  background: url("../images/arrow.png") center no-repeat;
  transform: rotate(90deg);
  position: absolute;
  right: 15px;
  transition: transform 0.2s ease-in-out;
  top: -2px;
  right: 11px;
}

.main #device-detail .toggle-box.open>.line::after {
  transform: rotate(270deg);
  transition: transform 0.2s ease-in-out;
}

.main #device-detail .toggle-box .button-text {
  padding: 0;
  padding-right: 20px;
  background: transparent;
  border-radius: 0;
}

.main #device-detail .service-functions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main #device-detail .service-functions .contained-button,
.reverse-sync-actions .contained-button {
  margin: 0;
  margin-top: 7px;
  min-height: 40px;
  line-height: inherit;
  text-align: center;
  width: calc(50% - 23px);
  padding: 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main #device-detail .offline_time {
  color: #0291cf;
  font-weight: bold;
  white-space: nowrap;
}

.main #device-detail .line:last-child {
  margin-bottom: 0;
}

.main #device-detail>div:first-child .line.text>div:last-child {
  max-width: 300px;
  text-align: right;
}

.main #device-detail #prro-groups-info .line {
  width: 47%;
  min-width: 300px;
}

.main #prro-info {
  background-color: #f8fbdb;
  padding: 15px;
}

.main #prro-info .title {
  font-weight: 500;
}

.main #device-detail .line.checkbox {
  flex-direction: row;
  display: flex;
  justify-content: space-between;
}

.main #device-detail input,
.main #device-detail select,
.main #settings-page select {
  width: calc(100% - 20px);
  height: 48px;
  border-radius: 8px;
  border: solid 1px #dde1e9;
  background-color: #ffffff;
  padding: 0 10px;
}

.main #settings-page select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("../images/select-arrow.png") 96% / 15% no-repeat #fff;
  background-size: 12px 7px;
  width: 195px;
}

.main #device-detail input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.main #device-detail label {
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.main #device-detail .line.text {
  flex-direction: row;
  display: flex;
  justify-content: space-between;
}

.main #device-detail .line>div.green {
  color: #77a43c;
  font-weight: bold;
}

.main #device-detail .line>div.yellow,
#sqliteCapWarning {
  color: #d9b019;
  font-weight: bold;
}

.main #device-detail .line>div.blue {
  color: #0291cf;
  font-weight: bold;
}

.main #device-detail .line>div.red {
  color: #de4e47;
  font-weight: bold;
}

.main #device-detail #prro-groups-info {
  background-color: #f8fbdb;
  padding: 15px;
  color: #000000;
  border-radius: 4px;
}

.main #device-detail #prro-groups-info>div {
  display: flex;
  flex-wrap: wrap;
}

.main #device-detail #prro-groups-info>div:nth-child(2) {
  margin-top: 10px;
}

.main #device-detail #prro-groups-info .line {
  min-width: 175px;
  margin-bottom: 5px;
}

.main #device-detail #prro-groups-info .line .num {
  margin-right: 5px;
}

.main #device-detail #prro-groups-info .subtitle {
  font-weight: bold;
  margin-bottom: 15px;
  width: 100%;
}

#modal .line.sign-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

#modal .line.sign-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  margin-bottom: 10px;
}

.line.connect-admin-type {
  display: block;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  margin-bottom: 10px;
}
#modal .line.sign-type span,
.line.connect-admin-type span {
  margin-right: auto;
}

#modal .line.sign-type button,
.line.connect-admin-type button {
  margin-left: 10px;
}

.main #device-detail .prev-key-container #prev-key-info {
  margin-top: 10px;
  background-color: #f8fbdb;
  padding: 15px;
  color: #000000;
  border-radius: 4px;
}

.main #device-detail .prev-key-container #prev-key-info .red {
  color: #f44336;
}

.main #device-detail .prev-key-container .prev-key-title img {
  display: none;
}

.main #device-detail .prev-key-container.error .prev-key-title img {
  display: initial;
}

.main #device-detail .prev-key-container.error .prev-key-title {
  display: flex;
  align-items: center;
}

.main #device-detail .prev-key-container .prev-key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main #device-detail .prev-key-container .prev-key-header .buttons {
  display: inline-flex;
}

#add-prev-key-button,
#show-password-btn,
#download-print-forms
{
  font-weight: bold;
  border: none;
}

#file-key-button.active,
#cloud-cap-button.active,
#add-dm-button.active,
#get-dm-token-button.active,
#cash-in-button.active,
#cash-out-button.active{
  border: none;
  background-color: #d9eaff;

}

#file-key-button,
#cloud-cap-button,
#add-dm-button,
#get-dm-token-button,
#cash-in-button,
#cash-out-button{
  border: none;
  padding: 10px;
  border-radius: 4px;
  background-color: #eef0f6;
  color: #333333;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

#add-prev-key-button img,
#download-print-forms img {
  margin-right: 5px;
  height: 20px;
}

/* End Device detail styles */

/* Snackbar styles */

#snackbar {
  visibility: hidden;
  min-width: 250px;
  max-width: 80%;
  transform: translateX(-50%);
  background-color: #373b53;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 30px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

/* End snackbar styles */
/*settings page styles */
#printed-forms-container {
  padding: 20px;
  margin: 20px -20px;
  border-top: 1px solid #dae1e7;
  border-bottom: 1px solid #dae1e7;
}

#sys-info {
  padding: 20px;
  margin: 0px -20px;
  border-top: 1px solid #dae1e7;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

#proxy-settings {
  padding: 20px;
  margin: 0 -20px;
  margin-top: -20px;
  border-bottom: 1px solid #dae1e7;
}

#use-auth-container {
  padding: 20px;
  padding-top: 10px;
  padding-bottom: 0;
  margin: 20px -20px 0;
  border-top: 1px solid #dae1e7;
}

#database-config-container {
  padding: 20px;
  margin: 20px -20px;
  border-top: 1px solid #dae1e7;
  border-bottom: 1px solid #dae1e7;
}

#loaded-file {
  display: flex;
  align-items: center;
}

#loaded-file.hidden {
  display: none;
}

#loaded-file img {
  margin-right: 10px;
}

#loaded-keyfile {
  display: flex;
  align-items: center;
  color: #333333;
}

#loaded-keyfile.hidden {
  display: none;
}

#loaded-keyfile img {
  margin-right: 10px;
  color: #333333;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #e582b8;
}

input:focus+.slider {
  box-shadow: 0 0 1px #e582b8;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.log-page .line:not(:first-child) {
  margin-top: 10px;
}

.log-page .line.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-page .line.inline.hidden {
  display: none;
}

.log-page #logdays,
.log-page #archdays,
.log-page #packdays,
.number-input {
  width: 60px;
  font-size: 16px;
}

.log-page #packdays-container {
  min-height: 55px;
}

.log-page #packdays-container p {
  margin-bottom: 0;
  margin-top: 10px;
}

.main.log-page .box {
  margin-left: auto;
  margin-right: auto;
}

.log-page .line.token-container label {
  margin-bottom: 5px;
  display: inline-block;
}

#Calendar {
  position: absolute;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #eaeaea;
  display: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  z-index: 9999999;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

#Calendar .days-row {
  background-color: #262837;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}

#Calendar .today-cell {
  background-color: #e582b8;
  font-size: 13px;
  padding: 5px;
}

#Calendar_mns {
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

#Calendar_mns select:first-child {
  margin-right: 2px;
}

#Calendar select,
#Calendar option {
  font-size: 11px;
  padding: 0 2px;
  height: 35px;
}

#zip-logs-modal .dates-row div {
  display: inline-block;
  width: calc(50% - 10px);
}

#zip-logs-modal .dates-row div:first-child {
  margin-right: 15px;
}

#zip-logs-modal .dates-row div label {
  display: block;
  margin-bottom: 5px;
}

#zip-logs-modal .checkbox {
  margin-top: 10px;
}

/* login page */
.login-page {
  background-color: #ffffff;
}

.login-page header {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-page .logo {
  background-color: #ffffff;
  border-right: 1px solid #dae1e7;
  padding: 16px 20px;
  height: calc(100% - 32px);
}

#login-box {
  margin: 53px auto 0;
  background: #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  padding: 24px;
  width: 415px;
  max-width: calc(100% - 54px);
}

#login-box p {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

#login-box .line {
  width: 312px;
  max-width: 100%;
  margin: 0 auto 16px;
}

#login-box .line input {
  height: 32px;
  background: #ffffff;
  border: 1px solid #d3dee3;
  box-sizing: border-box;
  border-radius: 8px;
  width: 100%;
}

.error #login-box .line input {
  border-color: #f44336;
}

#login-box .line label,
#login-box .extra-info {
  color: #6b8091;
  font-size: 12px;
  line-height: 16px;
  display: block;
  margin-bottom: 4px;
}

.error #login-box .line label {
  color: #f44336;
}

#auto-update-time {
  width: 13%;
}

.update-device-manager {
  /* min-width: 123px; */
  padding: 0 28px;
  display: inline-block;
  height: 24px;
  line-height: 24px;
  border-radius: 6px;
  background-color: #e582b8;
  border: none;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  outline: 0;

}

#login-box button {
  width: 312px;
  height: 32px;
  background: #e582b8;
  box-shadow: inset 0px -2px 0px #c880da;
  border-radius: 4px;
  font-size: 13px;
  line-height: 16px;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  max-width: 100%;
  margin: 16px auto 0;
  border: 0;
  cursor: pointer;
  outline: 0;
}

.error #login-box button {
  pointer-events: none;
  background: #eeeeee;
  border: 1px solid #eeeeee;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.45);
  color: #a0a0a0;
}

#current-day-logs-container {
  background-color: #fff;
  margin: 18px;
  margin-bottom: 0;
  height: 485px;
  overflow: auto;
  border-radius: 4px;
  overflow-wrap: break-word;
}

#current-day-logs-container.no-scroll {
  overflow: hidden;
}

@media (max-width: 470px) {
  header .remote-access {
    position: initial;
    text-align: center;
    padding: 5px 5px 10px;
  }

  .additional-info,
  .main.shifts-list-page .additional-info,
  .main.shift-documents-page .additional-info {
    font-size: 13px;
  }

  .additional-info .version span.red,
  .additional-info .version span.green {
    font-size: 11px;
  }

  .additional-info .contained-button,
  .main.shifts-list-page .additional-info .contained-button,
  .main.shift-documents-page .additional-info .contained-button {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  body {
    background-color: #f0f4fd;
  }

  #current-day-logs-container {
    height: 80%;
  }

  .visible-xs {
    display: initial;
    color: #000;
  }

  .visible-xs {
    display: flex;
    align-items: center;
    height: 32px;
  }

  .visible-lg {
    display: none !important;
  }

  .contained-button,
  .outlined-button,
  .footer-toolbar .contained-button {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    padding: 0 15px;
    min-width: unset;
    white-space: nowrap;
  }

  .footer-toolbar {
    flex-wrap: wrap;
    background-color: #fff;
    margin: 25px -10px -10px;
    padding: 10px 5px;
    padding-bottom: 0;
    max-width: unset;
  }

  .footer-toolbar .additional-info {
    padding: 10px 0px;
    width: 100%;
    max-width: 564px;
  }

  .footer-toolbar .outlined-button {
    height: 38px;
    line-height: 38px;
  }

  .footer-toolbar>div {
    margin: 5px;
  }

  header {
    flex-direction: column;
    height: auto;
    align-items: unset;
    position: relative;
  }

  header .toolbar-buttons {
    margin-left: unset;
    float: right;
    position: absolute;
    top: 69px;
    right: 10px;
  }

  header .remote-access {
    bottom: 13px;
    right: 210px;
  }

  .logo {
    text-align: center;
  }

  header h1 {
    font-size: 20px;
    margin: 0;
    padding: 12px 16px;
  }

  header .toolbar-buttons .button-hover {
    height: unset;
  }

  /*dashboard styles */
  #empty-list {
    height: calc(100vh - 108px);
  }

  #empty-list p:nth-of-type(1) {
    font-size: 22px;
    line-height: 26px;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  #empty-list p:nth-of-type(2) {
    font-size: 14px;
    line-height: 18px;
    margin-top: 0px;
    margin-bottom: 16px;
  }

  .main .toolbar .button {
    padding: 4px 8px;
    font-size: 14px;
  }

  .main .toolbar .button img {
    margin-right: 4px;
  }

  .additional-info,
  .main.shifts-list-page .additional-info,
  .main.shift-documents-page .additional-info {
    margin-bottom: 0;
  }

  .main #main-table {
    background-color: transparent;
    box-shadow: unset;
    display: flex;
    flex-direction: column;
  }

  .main #main-table .row.header {
    display: none;
  }

  .main #main-table .row {
    box-shadow: 0 1px 0 0 #e7e9f0;
    background-color: #ffffff;
    margin-top: 10px;
    border-radius: 4px;
    border: none;
    flex-direction: column;
    overflow: hidden;
    min-height: unset;
    max-height: 44px;
    transition: max-height 0.5s ease-in-out;
    display: flex;
    position: relative;
  }

  .main #main-table .row.opened {
    max-height: unset;
  }

  .main #main-table .row.opened td:first-child::after {
    transform: rotate(270deg);
  }

  .main #main-table .row.opened td:last-child {
    justify-content: center;
  }

  .main #main-table .row.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
  }

  .main #main-table .row.active td {
    white-space: break-spaces;
  }

  .main #main-table .row>td {
    border: 0;
    text-align: left;
    display: flex;
    min-height: unset;
  }

  .main #main-table .row>td:not(:last-child) {
    height: 16px;
  }

  .main #main-table .row>td:not(:last-child).auto-height {
    height: auto;
  }

  .main #main-table .row td.right {
    text-align: left;
  }

  .main #main-table .row>td:first-child {
    width: calc(100% - 20px);
  }

  .main #main-table .row td:last-child {
    width: calc(100% - 20px);
  }

  .main #main-table .row .device_name {
    padding: 14px 10px;
    min-height: 17px;
    white-space: nowrap;
  }

  .main #main-table .row.active .device_name {
    border-bottom: 1px solid #f0f4fd;
  }

  .main #main-table .row .device_name::after,
  .main #main-table .row .first-row::after {
    content: "";
    display: block;
    width: 24px;
    height: 43px;
    background: url("../images/arrow.png") center no-repeat #ffffff;
    transform: rotate(90deg);
    position: absolute;
    right: 15px;
    transition: transform 0.2s ease-in-out;
    top: 1px;
    right: 8px;
  }

  .main #main-table .row.active .device_name::after {
    transform: rotate(270deg);
    transition: transform 0.2s ease-in-out;
  }

  .main #main-table .row:not(.active) .device_name.mob-green::after,
  .main #main-table .row:not(.active) .device_name.mob-green {
    background-color: #dffdb7;
  }

  .main #main-table .row:not(.active) .device_name.mob-yellow::after,
  .main #main-table .row:not(.active) .device_name.mob-yellow {
    background-color: #f8ffb8;
  }

  .main #main-table .row:not(.active) .device_name.mob-red::after,
  .main #main-table .row:not(.active) .device_name.mob-red {
    background-color: #fddae8;
  }

  .main #main-table .row:not(.active) .device_name.mob-orange::after,
  .main #main-table .row:not(.active) .device_name.mob-orange {
    background-color: #f0c45d;
  }

  .main #main-table .row .device_name .device-indicator {
    display: block;
    width: 7px;
    height: 7px;
    min-width: unset;
    border-radius: 50%;
    float: left;
    position: relative;
    top: 5px;
  }

  .main #main-table .row .device_name .device-indicator.green {
    background-color: #77a43c;
  }

  .main #main-table .row .device_name .device-indicator.yellow {
    background-color: #ffc900;
  }

  .main #main-table .row .device_name .device-indicator.blue {
    background-color: grey;
  }

  .main #main-table .row .device_name .device-indicator.red {
    background-color: #de4e47;
  }

  .main #main-table .row>td:not(:last-child) span {
    font-weight: 500;
    margin-right: 10px;
    min-width: 100px;
    display: block;
  }

  .main #main-table .row>td.green,
  .main #main-table .row>td.yellow,
  .main #main-table .row>td.blue,
  .main #main-table .row>td.red {
    font-weight: 500;
    background-color: transparent;
  }

  .main #main-table .row>td.green {
    color: #77a43c;
  }

  .main #main-table .row>td.yellow {
    color: #d9b019;
  }

  .main #main-table .row>td.blue {
    color: #0291cf;
  }

  .main #main-table .row>td.red {
    color: #de4e47;
  }

  /*dashboard styles end*/
  /*device detail styles*/
  .main #device-detail .line {
    min-width: unset;
    width: 100%;
  }

  .main #device-detail>div,
  .main.batch-settings-container>div,
  .main.log-page .box {
    max-width: 524px;
    width: calc(100% - 40px);
    font-size: 14px;
  }

  .main #device-detail>div:first-child .line.text>div:last-child {
    max-width: 60%;
  }

  /*device detail styles end*/
  /* modal styles */
  #modal,
  .modal,
  #modal-x-report,
  #modal-ask-before-action,
  #modal-db-migration,
  #modal-reverse-sync,
  #modal-migration-state,
  #image-preview-modal {
    width: 100%;
    left: 0;
    height: 100%;
    max-height: 100%;
    top: 0;
  }

  #image-preview-modal .image-preview {
    width: 100%;
  }

  #image-preview-modal button {
    min-width: 123px;
  }

  #modal-x-report form,
  #modal-x-report .modal-title {
    width: 760px;
  }

  /* modal styles end*/
  .pagination-container {
    padding-bottom: 20px;
  }


  .log-page .footer-toolbar {
    margin: 0;
    background-color: transparent;
  }
}

@media (max-width: 470px) {
  header .remote-access {
    position: initial;
    text-align: center;
    padding: 5px 5px 10px;
  }

  .main #device-detail .prev-key-container #prev-key-info {
    padding: 10px;
    overflow: auto;
  }

  .main #device-detail>div,
  .main.log-page .box {
    width: calc(100% - 20px);
    padding: 10px;
  }

  .main #device-detail .toggle-box>.line {
    padding: 10px;
    max-width: calc(100% - 20px);
  }

  .main #device-detail .service-functions .contained-button {
    width: 100%;
    margin-top: 10px;
  }

  .reverse-sync-actions .contained-button {
    width: 100%;
  }
}

.alert {
  text-transform: uppercase;
  color: #de4e47;
}

.wrap-button {
  white-space: normal;
}

.reverse-sync-actions {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.proxy-config {
  margin-top: 20px;
}

tr:hover {
  background-color: #f5f5f5;
}

.line.token-container {
  display: flex;
  align-items: stretch;
}

.line.token-container .input {
  display: flex;
  align-items: center;
}

.line.token-container input[type="password"] {
  margin-right: 5px;
}

.line.token-container input[type="text"] {
  margin-right: 5px;
}

#database-pass-container {
  flex-direction: column;
}


#warning-text-red {
  color: #de4e47;
  text-transform: uppercase;
}

#warning-text-align {
  text-align: center;
}

#admin-panel-button {
  margin-left: unset;
  padding: 0px 0px;
  height: 30px;
  line-height: 30px;
  float: right;
  position: absolute;
  right: 240px;
}

#admin-panel-button.auth-active-style {
  margin-left: unset;
  float: right;
  position: absolute;
  right: 270px;
}

#admin-token-input-container {
  flex-direction: column;
}

#admin-token-input-container.hidden {
  display: none;
}
#error-admin-panel,
#error-add-to-admin,
#migration-state-error-text {
  color: #de4e47;
}
#checkbox {
  display: block !important;
}

.contained-button .button-text {
  display: inline;
  background-color: unset;
}
.contained-button .button-icon {
  display: none;
}
textarea {
  resize: none;
  border-radius: 8px;
  border: solid 1px #dde1e9;
  margin-top: 10px;
  padding-top: 14px;
  padding-left: 20px;
  background-color: #ffffff;
  width: calc(100% - 0px);
  font-family: "Roboto", sans-serif;
}
@media (max-width: 1024px) {
  #server_alias_name {
    max-width: 40%;
  }
}
#confirm-add-to-admin {
  min-width: unset;
}
.dropdown-menu-global {
  position: absolute;
  background-color: white;
  border: 1px solid #dde1e9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  min-width: 150px;
  overflow: hidden;
}

.dropdown-menu-global div {
  padding: 12px 20px;
  cursor: pointer;
}

.dropdown-menu-global div:hover {
  background-color: #f5f5f5;
}


/* --------------------------------------------------------------------------------------------- */
.emulation-settings {
  background-color: white;
  padding: 14px 24px;
  height: calc(100vh - 115px);
  overflow: auto;
}

.emulation-settings h2 {
  font-size: 16px;
}

.tabs-container {
    display: flex;
    padding-top: 16px;
    background-color: white;
}

.tabs {
    display: flex;
    margin-top: auto;
    font-size: 16px;
}

.tab {
    color: #91979D;
    padding: 0 10px;
    padding-bottom: 8px;
    cursor: pointer;
}

.active-tab {
    color: #121212;
    font-weight: 800;
    border-bottom: 4px solid #FF9417;
}

.emulation-actions {
    margin-left: auto;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.emulation-actions > img {
    width: 18px;
    height: 18px;
    padding: 11px;
    cursor: pointer;
}

.emulation-actions #refresh-button {
    width: 24px;
    height: 24px;
    padding: 11px;
    cursor: pointer;
}

#emulations-actions-menu {
  position: relative;
  cursor: pointer;
}

#emulations-actions-menu-list {
  position: absolute;
  left: -93px;
  margin: 0;
  padding: 10px;
  width: 100px;
  border-radius: 8px;
  background-color: #FAFBFC;
}


#tax-groups-codes-table,
#pays-codes-table,
#taxes-table {
    display: block;
}

#settings-page,
#products-page,
#logs-page {
    height: 100%;
}

#logs-info {
    resize: none;
    width: 100%;
    height: 100%;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

#settings-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-header {
    display: inline-block;
    margin-bottom: 8px;
}

.connection-type-wrapper {
    display: flex;
    gap: 20px;
}

.connection-type-wrapper {
    flex-direction: column;
}

.connection-type-wrapper > div {
    display: flex;
    gap: 20px;
}

#ping-dm {
    cursor: pointer;
}

#dm-error-link {
    color: red;
}

#save-message {
    display: inline-block;
}





/* Styles for outlinded inputs */

.textfield-outlined {
    --pure-material-safari-helper1: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
    position: relative;
    display: inline-block;
    padding-top: 6px;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
}

.textfield-outlined > input {
    box-sizing: border-box;
    margin: 0;
    border: solid 1px; /* Safari */
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    border-top-color: transparent;
    border-radius: 4px;
    padding: 15px 13px 15px;
    width: 100%;
    height: inherit;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    background-color: transparent;
    box-shadow: none; /* Firefox */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    caret-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
    transition: border 0.2s, box-shadow 0.2s;
}

.textfield-outlined > input + span {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    width: 100%;
    max-height: 100%;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    font-size: 75%;
    line-height: 15px;
    cursor: text;
    transition: color 0.2s, font-size 0.2s, line-height 0.2s;
}

/* Corners */
.textfield-outlined > input + span::before,
.textfield-outlined > input + span::after,
.textfield-outlined > textarea + span::before,
.textfield-outlined > textarea + span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    min-width: 10px;
    height: 8px;
    pointer-events: none;
    box-shadow: inset 0 1px transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textfield-outlined > input + span::before {
    margin-right: 4px;
    border-left: solid 1px transparent;
    border-radius: 4px 0;
}

.textfield-outlined > input + span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}

/* Hover */
.textfield-outlined:hover > input {
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    border-top-color: transparent;
}

.textfield-outlined:hover > input + span::before,
.textfield-outlined:hover > input + span::after {
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
}

.textfield-outlined:hover > input:not(:focus):placeholder-shown {
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
}

/* Placeholder-shown */
.textfield-outlined > input:not(:focus):placeholder-shown {
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}

.textfield-outlined > input:not(:focus):placeholder-shown + span {
    font-size: inherit;
    line-height: 68px;
}

.textfield-outlined > input:not(:focus):placeholder-shown + span::before,
.textfield-outlined > input:not(:focus):placeholder-shown + span::after {
    border-top-color: transparent;
}

/* Focus */
.textfield-outlined > input:focus {
    border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
    border-top-color: transparent;
    box-shadow: inset 1px 0 var(--pure-material-safari-helper1), inset -1px 0 var(--pure-material-safari-helper1), inset 0 -1px var(--pure-material-safari-helper1);
    outline: none;
}

.textfield-outlined > input:focus + span {
    color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.textfield-outlined > input:focus + span::before,
.textfield-outlined > input:focus + span::after {
    border-top-color: var(--pure-material-safari-helper1) !important;
    box-shadow: inset 0 1px var(--pure-material-safari-helper1);
}

/* Disabled */
.textfield-outlined > input:disabled,
.textfield-outlined > input:disabled + span {
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
    border-top-color: transparent !important;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    pointer-events: none;
}

.textfield-outlined > input:disabled + span::before,
.textfield-outlined > input:disabled + span::after {
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
}

.textfield-outlined > input:disabled:placeholder-shown,
.textfield-outlined > input:disabled:placeholder-shown + span {
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
}

.textfield-outlined > input:disabled:placeholder-shown + span::before,
.textfield-outlined > input:disabled:placeholder-shown + span::after {
    border-top-color: transparent !important;
}

#settings-page input[type=checkbox],
#products-page input[type=checkbox],
#logs-page input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}
  
.switch-label {
    cursor: pointer;
    text-indent: 60px;
    width: 40px;
    height: 20px;
    background: lightgray;
    display: block;
    border-radius: 100px;
    position: relative;
    white-space: nowrap;
}

.switch-label:after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 24px;
    height: 24px;
    background: #0291CF;
    border-radius: 90px;
    transition: 0.3s;
}

input:checked + .switch-label {
    background: #ADDBEF;
}

input:checked + .switch-label:after {
    left: 100%;
    transform: translateX(-100%);
}

#overlay {
    background-color: rgba(0, 0, 0, 0.3);
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

#modal-ask-before-action, #modal-emulator-error, #modal-db-migration {
    position: fixed;
    width: 60%;
    top: 10%;
    left: 20%;
    background-color: #eaeaea;
    z-index: 3;
    overflow-y: auto;
    max-height: calc(100vh - 10%);
}

#modal .modal-title,
#modal-ask-before-action .modal-title,
#modal-emulator-error .modal-title,
#modal-db-migration .modal-title,
.modal .modal-title {
    height: 60px;
    line-height: 60px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding-left: 30px;
    font-weight: 600;
}

#modal .body,
#modal-ask-before-action .actionQuestion,
#modal-emulator-error .actionQuestion,
#modal-db-migration .actionQuestion {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#modal-ask-before-action .modal-footer,
#modal-emulator-error .modal-footer {
    padding: 10px;
    text-align: right;
}

#modal-db-migration .modal-footer {
    padding: 10px;
    padding-right: 37px;
    text-align: right;
}

#error-text-action-ask,
#error-text-update {
    font-weight: bold;
    color: #de4e47;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#modal .close,
.modal .close,
#modal-ask-before-action .close,
#modal-emulator-error .close,
#modal-db-migration .close {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 25px;
    cursor: pointer;
    height: 43px;
    width: 43px;
    line-height: 43px;
    background-color: white;
    font-weight: 300;
    text-align: center;
}

#modal-db-migration .body {
  background-color: white;
  padding: 20px;
}

#modal-db-migration .description {
  margin-bottom: 20px;
  display: inline-block;
}

#loader-box.active {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
}

#loader-box.active .loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    color: inherit;
    vertical-align: middle;
    pointer-events: none;

    border: 0.2em solid transparent;
    border-top-color: #ADDBEF;
    border-radius: 50%;
    -webkit-animation: 1s loader-05 linear infinite;
    animation: 1s loader-05 linear infinite;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    z-index: 40;
}

#loader-box.active .loader:before {
    content: "";
    display: block;
    width: inherit;
    height: inherit;
    position: absolute;
    top: -0.2em;
    left: -0.2em;
    border: 0.2em solid #ADDBEF;
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes loader-05 {
    0% {
        transform: rotate(0deg);
    }

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

.radio-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.radio-wrapper > input {
  height: auto;
}

.actions-container {
  position: relative;
}

#actions-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #e582b8;
  left: 4px;
  right: 4px;
  border-radius: 4px;
}

#actions-menu > * {
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
}

#actions-menu > div:hover {
  background-color: #f5f5f5;
}

.hidden {
  display: none!important;
}

.vertical-center {
  align-items: center;
}