/* Fix zoom empty space + currency glyph */
html {
  zoom: 0.75;
}

/* Layout size compensates for zoom so UI fills the visible window */
html,
body {
  width: calc(100vw / 0.75);
  min-height: calc(100vh / 0.75);
  margin: 0;
  overflow-x: hidden;
}

#login-container.is-open,
#login-container[style*="display: flex"],
#login-container[style*="display:flex"] {
  width: calc(100vw / 0.75) !important;
  min-height: calc(100vh / 0.75) !important;
}

#erp-app-wrapper {
  width: calc(100vw / 0.75);
  min-width: calc(100vw / 0.75);
  box-sizing: border-box;
}

.erp-container,
.main-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.riyal-glyph {
  font-weight: 800;
  font-size: 1.05em;
  line-height: 1;
  color: inherit;
  display: inline-block;
  vertical-align: -0.05em;
}

/* Never let currency/logo images blow up metric rows */
.finance-line-value img,
.summary-value img,
.riyal-sign {
  height: 1em !important;
  width: auto !important;
  max-height: 1.1em !important;
  max-width: 1.4em !important;
  object-fit: contain !important;
  vertical-align: -0.15em;
}

@media (max-width: 900px) {
  html {
    zoom: 1;
  }
  html,
  body,
  #erp-app-wrapper,
  #login-container.is-open,
  #login-container[style*="display: flex"],
  #login-container[style*="display:flex"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
  }
}

@media print {
  html {
    zoom: 1;
  }
  html,
  body,
  #erp-app-wrapper {
    width: auto;
    min-width: 0;
    min-height: 0;
  }
}
