input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 5px 0 0;
  padding: 0 !important;
  border: 1.5px solid var(--m, var(--muted));
  border-radius: 4px;
  background: var(--p, var(--panel));
  vertical-align: -3px;
  cursor: pointer;
  transition: border-color .14s, background-color .14s, box-shadow .14s;
}
input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid #17240f;
  border-bottom: 2px solid #17240f;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease-out;
}
input[type="checkbox"]:hover { border-color: var(--a, var(--accent)); }
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate {
  border-color: var(--a, var(--accent));
  background: var(--a, var(--accent));
}
input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
input[type="checkbox"]:indeterminate::before {
  width: 8px;
  height: 0;
  margin: 0;
  border-left: 0;
  transform: scale(1);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--a, var(--accent));
  outline-offset: 3px;
}
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }

/* Shared numeric control styling for the CRM and the estimate editor. */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
