/* ==========================================================================
   Base rules (from the ASP.NET Core MVC project scaffold) - left as-is.
   ========================================================================== */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f4f4f4;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ==========================================================================
   Brand theme - overrides Bootstrap's default blue with the mini-program's
   orange (#EE6023), via Bootstrap 5.3's CSS-variable component API. Add any
   new brand-color overrides here, not as one-off classes elsewhere.
   ========================================================================== */

:root {
  --bs-primary: #EE6023;
  --bs-primary-rgb: 238, 96, 35;
}

.btn-primary {
  --bs-btn-bg: #EE6023;
  --bs-btn-border-color: #EE6023;
  --bs-btn-hover-bg: #d6551e;
  --bs-btn-hover-border-color: #c94f1c;
  --bs-btn-active-bg: #c04d1b;
  --bs-btn-active-border-color: #b4481a;
  --bs-btn-disabled-bg: #EE6023;
  --bs-btn-disabled-border-color: #EE6023;
}

.btn-outline-primary {
  --bs-btn-color: #EE6023;
  --bs-btn-border-color: #EE6023;
  --bs-btn-hover-bg: #EE6023;
  --bs-btn-hover-border-color: #EE6023;
  --bs-btn-active-bg: #d6551e;
  --bs-btn-active-border-color: #d6551e;
}

.navbar-brand {
  font-weight: 600;
  color: #EE6023 !important;
}

/* ==========================================================================
   Reusable utility classes - small, app-wide helpers used across multiple
   pages. Page-specific styling belongs in that page's own view, not here.
   ========================================================================== */

/* Larger touch target for factory-floor phone use - pairs with any .btn. */
.btn-tap {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
}

/* Flex items default to min-width: auto, which blocks Bootstrap's own
   .text-truncate from actually truncating inside a flex row (e.g. a long
   item description next to a fixed-position button) - pair the two. */
.min-w-0 {
  min-width: 0;
}
