/* justqrer ERP — platform.justqr.in tokens overlaid on the Frappe v16 desk, login and website.
   Frappe v16 is monochrome (black primary); re-point its semantic variables to justqrer green. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/justqr/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

html:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --justqr-primary: #00704A;
  --justqr-primary-hover: #00583A;
  --justqr-primary-light: #00A862;
  --justqr-primary-ultra: #EDF5F2;
  --primary: #00704A;
  --primary-color: #00704A;
  --btn-primary: #00704A;
  --font-stack: "Nunito", "Airbnb Cereal", Cereal, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

html body,
.navbar,
.page-container,
.for-login,
.for-signup,
.for-forgot,
.for-email-login,
.btn,
.form-control {
  font-family: "Nunito", "Airbnb Cereal", Cereal, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", system-ui, sans-serif !important;
}

/* Primary buttons (desk, login, website, web forms) */
.btn-primary,
div#driver-popover-item .driver-popover-footer button.driver-next-btn {
  color: #fff !important;
  background-color: var(--justqr-primary) !important;
  border-color: var(--justqr-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
div#driver-popover-item .driver-popover-footer button.driver-next-btn:hover {
  color: #fff !important;
  background-color: var(--justqr-primary-hover) !important;
  border-color: var(--justqr-primary-hover) !important;
}
.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35) !important;
}

/* Focus rings + selection */
.form-control:focus,
.form-control:focus-visible {
  border-color: var(--justqr-primary) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) !important;
}
::selection {
  background: var(--justqr-primary-ultra);
  color: #0f172a;
}

/* Links on login + public website pages (desk keeps neutral link colour) */
.for-login a,
.for-signup a,
.for-forgot a,
.for-email-login a,
.page-content-wrapper a:not(.btn),
.web-footer a:hover {
  color: var(--justqr-primary);
}

.navbar-brand img,
.navbar-home img,
.app-logo,
.login-content .app-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

/* v16 login + web forms: solid "es-button" is the primary action */
.es-button[data-variant="solid"] {
  background: var(--justqr-primary) !important;
  border-color: var(--justqr-primary) !important;
  color: #fff !important;
}
.es-button[data-variant="solid"]:hover,
.es-button[data-variant="solid"]:focus,
.es-button[data-variant="solid"]:active {
  background: var(--justqr-primary-hover) !important;
  border-color: var(--justqr-primary-hover) !important;
}
