/* Override sfondo arancio uniforme (tutti i livelli bg-orange-*) */
.bg-orange-50,
.bg-orange-100,
.bg-orange-200,
.bg-orange-300,
.bg-orange-400,
.bg-orange-500,
.bg-orange-600,
.bg-orange-700,
.bg-orange-800,
.bg-orange-900 {
  background-color: #f58f00 !important;
}

/* Override testo arancio uniforme (tutti i livelli text-orange-*) */
.text-orange-50,
.text-orange-100,
.text-orange-200,
.text-orange-300,
.text-orange-400,
.text-orange-500,
.text-orange-600,
.text-orange-700,
.text-orange-800,
.text-orange-900 {
  color: #f58f00 !important;
}

/* Hover per link di navigazione */
.nav-link {
  color: #000000 !important;
}

.nav-link:hover {
  color: #f58f00 !important;
}

.peer:checked~.peer-checked\:bg-orange-500 {
  background-color: #f58f00 !important;
}

.bg-gray-akt {
  background-color: #969696;
}

/* Override sfondo grigio uniforme (livelli 100–700) */
.bg-gray-100,
.bg-gray-200,
.bg-gray-300,
.bg-gray-400,
.bg-gray-500,
.bg-gray-600,
.bg-gray-700 {
  background-color: #f0f0f0 !important;
}

/* Testo grigio aziendale */
.text-gray {
  color: #666 !important;
}

input[type="file"]::file-selector-button {
  background-color: #f9fafb;
  color: #f97316;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-left: 1px;
}

input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}

a,
button {
  cursor: pointer;
}

[class*="bg-orange"]:hover,
[class*="hover\\:bg-orange"]:hover,
[class*="focus\\:bg-orange"]:focus {
  background-color: #f58f00 !important;
}

/*Style Select2*/
.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1)) !important;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1)) !important;
  cursor: default;
  font-size: 0.875rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid rgb(209 213 219 / var(--tw-border-opacity, 1)) 1px;
  border-radius: 8px;
  outline: 0;
}

.select2-container .select2-search--inline .select2-search__field {
  margin: 0px !important;
  height: 20px !important;
}

.select2-container--default .select2-selection--multiple {
  padding: 10px 40px 10px 10px !important;
  border: 1px solid rgb(209 213 219 / var(--tw-border-opacity, 1)) !important;
  border-radius: 8px !important;
  line-height: 20px !important;
}

.select2-search__field {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f0f0f0 !important;
  border-radius: 10px !important;
  font-weight: bold;
  font-size: 12px !important;
  padding: 1px 5px 1px 20px !important;
  border: unset !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  width: fit-content !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #bb0000 !important;
  font-size: 12px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  border-right: unset !important;
  font-weight: bold !important;
  position: unset !important;
}


.select2-selection__choice__display {
  margin: auto !important;
}

.select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* quando il checkbox è checked, aggiorna la bandiera */
#certificate-language-checkbox:checked+div .flag-knob {
  background-image: url("{% static 'images/bandiera_inglese.png' %}");
}
