@font-face {
  font-family: Tahoma;
  src: url("../fonts/Tahoma-Regular-font.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --fluent-font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  
  font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  font-weight: 400;
  background: #fff;
  color: #323130;
}

body[data-theme="dark"] {
  background: #1b1a19;
  color: #f3f2f1;
}

.layout-header-title {
  color: #424242 !important;
}

body[data-theme="dark"] .layout-header-title {
  color: #f3f2f1 !important;
}

.layout-header-content .theme-label {
  font-size: 14px;
  color: #323130;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  margin: 0 5px;
}

body[data-theme="dark"] .layout-header-content .theme-label {
  color: #f3f2f1;
}

.ms-Toggle {
  display: inline-flex;
  align-items: center;
}

.ms-Toggle-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.ms-Toggle-background {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 20px;
  background: #2e3192;
  border-radius: 10px;
  transition: background 0.2s;
}

.ms-Toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.ms-Toggle.is-checked .ms-Toggle-thumb {
  transform: translateX(20px);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #605e5c;
  padding: 0 2px;
}

.lang-btn.is-checked {
  font-weight: 700;
  color: #323130;
}

body[data-theme="dark"] .lang-btn {
  color: #c8c6c4;
}

body[data-theme="dark"] .lang-btn.is-checked {
  color: #fff;
}

.lang-separator {
  font-size: 14px;
  color: #605e5c;
}

.share-page {
  padding: 0;
}

.share-page-inner {
  max-width: none;
  margin: 0;
}

.doc-header.anonymous {
  padding: 30px 32px 15px;
}

.invoice-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.invoice-title {
  font-size: 24px;
  line-height: 28px;
  color: #323130;
  font-weight: 400;
}

body[data-theme="dark"] .invoice-title {
  color: #f3f2f1;
}

.invoice-version-Anonymous {
  float: none;
  font-size: 18px;
  color: #a19f9d;
  margin-right: 15px;
}

.details_invoice {
  font-size: 14px;
  margin-bottom: 4px;
}

.history_Date.block {
  margin-top: 8px;
  padding-bottom: 8px;
}

.doc-status .horizontal {
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-status .horizontal.valid {
  color: #52d976;
}

.valid-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.textStatus {
  font-size: 14px;
  font-weight: 600;
  color: #52d976;
  opacity: 1;
}

.share-page .panel {
  background: transparent;
  margin-top: 0;
}

body[data-theme="dark"] .share-page .panel {
  background: transparent;
}

.stack-horizontal {
  display: flex;
  flex-wrap: wrap;
}

.labelText {
  font-family: var(--fluent-font-family);
  font-weight: 600;
}

.textField {
  appearance: none;
  background: #fff;
  border: 1px solid #8a8886;
  border-radius: 2px;
  color: #323130;
  font-family: var(--fluent-font-family);
  font-weight: 400;
  font-size: 14px;
  height: 32px;
  padding: 0 8px;
  width: 100%;
}

body[data-theme="dark"] .textField {
  background: #1b1a19;
  border-color: #605e5c;
  color: #f3f2f1;
}

.textField:focus {
  outline: none;
}

.disclaimerNote {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #605e5c;
}

body[data-theme="dark"] .disclaimerNote {
  color: #c8c6c4;
}

.invoice-error {
  margin: 48px auto;
  max-width: 640px;
  padding: 32px 24px;
  text-align: center;
}

.invoice-error-title {
  color: #323130;
  font-family: var(--fluent-font-family);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.invoice-error-desc {
  color: #605e5c;
  font-family: var(--fluent-font-family);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

body[data-theme="dark"] .invoice-error-title {
  color: #f3f2f1;
}

body[data-theme="dark"] .invoice-error-desc {
  color: #c8c6c4;
}

@media (max-width: 600px) {
  .layout-header {
    flex-wrap: nowrap;
    height: 50px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .layout-header-logo {
    height: 46px !important;
    flex-shrink: 0;
  }

  .layout-header-logo img {
    height: 46px !important;
  }

  .layout .layout-container .layout-container-rightPart .layout-header h1 {
    display: none !important;
  }

  .layout-header-content {
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    gap: 4px;
    justify-content: flex-end !important;
    min-width: 0;
  }

  .layout-header-content > * {
    margin-right: 6px !important;
    flex-shrink: 0;
  }

  .layout-header-content .theme-label {
    font-size: 14px;
    margin: 0 2px;
  }

  .faq,
  .lang-btn,
  .lang-separator {
    font-size: 12px;
  }

  a.btnLogin {
    width: 64px;
    font-size: 12px;
    height: 28px;
    line-height: 28px;
  }

  .doc-header.anonymous {
    padding: 0 15px;
  }

  .invoice-title-row {
    margin-bottom: 2px;
  }

  .invoice-title {
    font-size: 24px;
    line-height: 28px;
  }

  .invoice-version-Anonymous {
    margin-right: 0;
    font-size: 18px;
  }

  .history_Date.block {
    border-bottom: 1px solid rgba(82, 217, 118, 0.25);
    margin-top: 6px;
    padding-bottom: 10px;
  }

  .share-page .panel {
    margin: 0;
    padding: 16px 16px 35px !important;
  }

  .stackItem {
    flex-basis: 100%;
    padding: 0 0 16px;
  }

  .disclaimerNote {
    margin-left: -20px;
  }
}

@media (min-width: 601px) {
  .stackItem {
    flex-basis: 50%;
    box-sizing: border-box;
    font-size: 0.875rem;
    padding: 0 20px 30px 0;
  }
}

@media (min-width: 640px) {
  .layout .layout-container .layout-container-rightPart .layout-header h1 {
    display: flex !important;
  }
}
