:root {
  --my-purple: #6f42c1;
  --my-purplelt: violet;
  --my-purpledk: purple;
}
html,
body {
  overflow-x: hidden;
  /* Prevent scroll on narrow devices */
  background-color: var(--my-purple) !important;
}
header,
footer {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
main {
  min-height: 60vh;
}
.text-white-50 {
  color: rgba(255, 255, 255, .5);
}
.bg-purple {
  background-color: var(--my-purple) !important;
}
hr {
  background-color: var(--my-purple) !important;
}
input[type=text]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=date]:focus {
  position: relative;
  z-index: 99999;
  border-style: solid;
  border-width: 1px;
  border-color: blue;
}
/* Highlight required text inputs on focus */
input[type="text"]:required:focus,
input[type="number"]:required:focus,
input[type="password"]:required:focus,
input[type="email"]:required:focus,
input[type="date"]:required:focus {
  box-shadow: 0 0 3000px 3000px rgba(64, 64, 64, 0.7);
  position: relative;
  z-index: 99999;
  border-style: solid;
  border-width: 1px;
  border-color: blue;
}
/* Optionally highlight invalid required fields when not focused */
input[type="text"]:required:invalid,
input[type="number"]:required:invalid,
input[type="password"]:required:invalid,
input[type="email"]:required:invalid,
input[type="date"]:required:invalid {
  border-color: red;
}
/* Utility classes for background and text color */
.bg-purple {
  background-color: var(--my-purple) !important;
  color: ghostwhite !important;
  /* If you want white text by default on purple */
}
.text-purple {
  color: var(--my-purple);
}
.border-purple {
  border: 1px solid var(--my-purple) !important;
}
button {
  text-transform: capitalize;
}
/* For button-like usage - not recommended to override .btn-purple directly */
.btn-purple {
  background-color: var(--my-purple) !important;
  color: ghostwhite !important;
  border: 1px solid var(--my-purple) !important;
}
/* Handling disabled states manually */
.btn-purple:disabled,
.btn-purple.disabled {
  background-color: #bfa0dd !important;
  /* Slightly lighter purple, for example */
  color: ghostwhite !important;
  border-color: #bfa0dd !important;
}
/* Hover state (fills in the purple with white text) */
.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active {
  color: var(--my-purplelt) !important;
  background-color: transparent !important;
  border: 1px solid var(--my-purple) !important;
  box-shadow: 0px 0.5px magenta;
}
/* Outline (default) */
.btn-outline-purple {
  color: var(--my-purple) !important;
  background-color: transparent !important;
  border: 1px solid var(--my-purple) !important;
  box-shadow: 0px 0.5px magenta;
}
/* Hover state (fills in the purple with white text) */
.btn-outline-purple:hover,
.btn-outline-purple:focus {
  color: ghostwhite !important;
  background-color: var(--my-purple) !important;
  border-color: var(--my-purple) !important;
}
.btn-outline-purple:active {
  color: ghostwhite !important;
  background-color: var(--my-purple) !important;
  border-color: var(--my-purple) !important;
}
/* Disabled state (if needed) */
.btn-outline-purple:disabled,
.btn-outline-purple.disabled {
  color: #aaa !important;
  background-color: #efefef !important;
  border-color: #ccc !important;
  cursor: not-allowed;
  opacity: 0.65;
}
/* Normal (non-active) state */
.nav-link-purple {
  color: var(--my-purple) !important;
  background-color: transparent !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link-purple:hover,
.nav-link-purple:focus {
  text-decoration: none;
  color: var(--my-purple) !important;
}
.nav-link-purple.active {
  background-color: var(--my-purple) !important;
  color: ghostwhite !important;
}
.nav-link.nav-link-purple-hover:hover {
  color: var(--my-purple) !important;
}
.form-check-purple .form-check-input:checked {
  background-color: var(--my-purple) !important;
  border-color: var(--my-purple) !important;
}
.form-check-purple .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}
.form-check-purple .form-check-input:disabled {
  opacity: 0.5;
  /* or any other style you want */
  cursor: not-allowed;
}
/* Desktop Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: 220px 220px auto;
  gap: .3rem;
}
.scrollarea {
  height: auto;
  overflow-y: auto;
}
.showarea {
  min-height: auto;
}
@media (min-width: 768px) {
  #taps {
    margin: 0 !important
  }
  .scrollarea {
    height: calc(96vh - 48px);
    overflow-y: auto;
  }
  .showarea {
    min-height: calc(96vh - 48px);
  }
}
/* page a */
/* Custom Accordion (Collapse) Rebrand Styles */
.responsive-collapse .collapse-header {
  padding: 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  border: none;
  text-align: left;
}
/* Mobile first: stacked layout */
.grid-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}
/* For devices 768px and above: grid layout */
@media (min-width: 768px) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 5px 1fr 5px 1fr;
    width: 100vw;
    height: 90vh;
  }
}
.grid-item {
  overflow: auto;
  padding: 10px;
}
.resizer {
  background-color: yellowgreen;
  cursor: col-resize;
  user-select: none;
  transition: background-color 0.2s ease-in;
}
.resizer:hover {
  background-color: greenyellow;
}
.resizer:focus-visible {
  outline: greenyellow auto 1px;
}
.resizer:active {
  background-color: gray;
}
/* animation */
.slide-up {
  animation-name: slide-up;
  -webkit-animation-name: slide-up;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  visibility: visible;
}
@keyframes slide-up {
  0% {
    opacity: 0;
    -webkit-transform: translateY(70%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0%);
  }
}
@-webkit-keyframes slide-up {
  0% {
    opacity: 0;
    -webkit-transform: translateY(70%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0%);
  }
}
.detailrow {
  position: relative;
  display: block;
  align-items: stretch;
  width: 100%;
  justify-content: space-around;
  margin: 0 auto;
}
.detailrow .col-form-label {
  min-width: 100% !important;
}
@container myCssContainer (min-width: 500px) {
  .detailrow .col-form-label {
    min-width: 25% !important;
  }
}
.detailform {
  container-name: myCssContainer;
  container-type: inline-size;
}
@container myCssContainer (min-width: 500px) {
  .detailrow {
    display: flex;
  }
}
@container myCssContainer (max-width: 200px) {
  /* make each list-item stack its children vertically */
  .dynamicList .list-group-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  /* add a little breathing room above the badge */
  .dynamicList .list-group-item .badge {
    margin-top: 0.5rem;
  }
}
/* add new modal */
/* Modal container */
.modal {
  position: fixed;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
/* Modal content box */
.modal-content {
  margin: 10% auto;
  padding: 20px;
  width: 90vw;
  border-radius: 5px;
}
.right-right {
  position: absolute;
  right: 32px;
}
.alert-dismissible .btn-close {
  z-index: 1 !important;
}
.calendar {
  width: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.calendar-header {
  background: #6f42c1;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 10px;
}
.calendar-grid div {
  padding: 5px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.calendar-days div {
  color: #333;
}
.calendar-weekdays div {
  font-weight: bold;
  background: #f0f0f0;
}
.highlight {
  background: var(--my-purple) !important;
  border-radius: 5%;
}
/* property form */
.phone-input:invalid {
  border-color: red;
  background-color: pink;
}
.phone-input:valid {
  border-color: default;
  background-color: default;
}
.zip-input:valid {
  border-color: default;
  background-color: default;
}
.zip-input:invalid {
  border-color: red;
  background-color: pink;
}
/* light gray font */
.text-placeholder {
  color: var(--bs-secondary-color);
  opacity: 1;
}
option[value=""] {
  color: var(--bs-secondary-color);
  opacity: 1;
}
.link-body-emphasis:focus {
  background: var(--my-purple) !important;
  color: ghostwhite;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* When loading: hide pdf icon, show + spin the spinner */
.pdf-loading-btn.is-loading .non-spinner-icon {
  display: none !important;
}
.pdf-loading-btn.is-loading .spinner-icon {
  display: inline-block !important;
  animation: spin 0.9s linear infinite;
}
/* Optional: subtle “busy” look */
.pdf-loading-btn.is-loading {
  opacity: 0.9;
}














  /* Full-page dialog */
  #proposalDialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
  }
  #proposalDialog {
    margin: 0;
    max-width: none;
    max-height: none;
  }


  /* Fully hidden + non-interactive */
.is-dev-hidden {
  display: none !important;
}

.not-allowed {cursor: not-allowed;}

.hidden { display:none; }

.smallsmall {
  font-size: x-small;
}

