/* Base styling for all inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input.money,
input.number,
input.email-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #000000;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  box-sizing: border-box;
}

/* Invalid email */
input[type="email"]:invalid,
input.email-field:invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
  color: #000000;
}

/* Valid email */
input[type="email"]:valid,
input.email-field:valid {
  border-color: #16a34a;
  background-color: #f0fdf4;
  color: #000000;
}

input.money {
  text-align: right;
}

/* Invalid currency */
input.money:invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
  color: #000000;
}

/* Valid currency */
input.money:valid {
  border-color: #16a34a;
  background-color: #f0fdf4;
  color: #000000;
}


input.number {
  text-align: right;
}

/* Invalid number */
input.number:invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
  color: #000000;
}

/* Valid number */
input.number:valid {
  border-color: #16a34a;
  background-color: #f0fdf4;
  color: #000000;
}

input:invalid:not([type="submit"]):not([type="button"]):not([type="reset"]) {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  color: #000000 !important;
}

input:valid:not([type="submit"]):not([type="button"]):not([type="reset"]) {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
  color: #000000 !important;
}

/* Dropdowns and text areas — black text on white */
select,
textarea {
  color: #000000 !important;
  background-color: #ffffff !important;
}

.lookup-results {
  border: 1px solid #ccc;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 9999;
}

.lookup-item {
  padding: 8px;
  cursor: pointer;
}

.lookup-item:hover {
  background: #f0f0f0;
}


#loadingMessage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding-top: 20%;
  z-index: 9999;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: auto;
}

#sm_loadingMessage {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding-top: 20%;
  z-index: 9999;
}

.sm_spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.list-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-pills .item {
  background: #e9ecef;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-pills .delete {
  cursor: pointer;
  color: red;
  font-weight: bold;
}


/* Upload Box */
.upload-box {
  border: 1px solid #ccc;
  padding: 15px;
  width: 300px;
  border-radius: 8px;
}

.upload-icon {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Main error panel */
.validation-summary,
.notification-error {
  background: #ffe6e6;
  border: 1px solid #ff4d4d;
  color: #b30000;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Remove default list styling */
.validation-summary ul,
.notification-error ul {
  margin: 0;
  padding-left: 20px;
}

/* Style each error line */
.validation-summary li,
.notification-error li {
  margin-bottom: 4px;
}

footer .footer-bottom {
  background-color: white !important;
}


/* input[type="submit"] {
  background-color: #0078d4 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
} */

/* Pre-application / entity form panel white background */
#EntityFormPanel,
.crmEntityFormView {
  background-color: #ffffff !important;
}

/* Field description / helper text inside the form black */
.crmEntityFormView .description,
#EntityFormPanel .description {
  color: #000000 !important;
}

/* ---- Fix: label / helper text must be black ---- */
label,
.control-label,
.info,
.help-block,
form .control-label,
#content_form label,
.sign-up label,
form[id*="Register"] label,
form[id*="signup"] label {
  color: #000000 !important;
  background-color: transparent !important;
}

/* Keep the required asterisk visible in red */
.required,
label .required,
.validators {
  color: #000000 !important;
}

/*  Fix: Datepicker month/year header must be readable  */
.datepicker .datepicker-switch,
.datepicker thead tr th,
.datepicker .prev,
.datepicker .next {
  color: #000000 !important;
  background-color: transparent !important;
}
/*  Fix: month/year text is inside a <button>, target it directly  */
.bootstrap-datetimepicker-widget .picker-switch button,
.bootstrap-datetimepicker-widget table th button,
.datepicker .datepicker-switch button {
  color: #000000 !important;
  background-color: transparent !important;
}
/* Day-of-week row (Su Mo Tu We Th Fr Sa) */
.datepicker .dow {
  color: #000000 !important;
}

/* Hover state on the month/year switcher and nav arrows */
.datepicker .datepicker-switch:hover,
.datepicker .prev:hover,
.datepicker .next:hover {
  background-color: #f0f0f0 !important;
  color: #000000 !important;
}

/* Fallback for jQuery UI datepicker variant, just in case */
.ui-datepicker-title,
.ui-datepicker-header {
  color: #000000 !important;
}

/*  Fix: profile sidebar name   */
.userFullName,
.well.profile-info,
.well.profile-info .userFullName,
.profile-info .userFullName {
  color: #000000 !important;
}

/* Fix: Summary tab account table text  */
#accountTable,
#accountTable td,
#accountTable th,
#accountTable tbody tr td,
#accountTable tbody tr:nth-of-type(odd) td,
#accountTable tbody tr:nth-of-type(even) td {
  color: #000000 !important;
}