/* ==============================
   Reset Select2 option markers
============================== */
.select2-results__option::before,
.select2-results__option::marker {
  display: none !important;
  content: none !important;
}

/* ==============================
   Tabella layout fisso
============================== */
.currency-table {
  margin: 40px 0;
  width: 690px;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}
.currency-table td {
  padding: 0;
  margin: 0;
  vertical-align: bottom;
  box-sizing: border-box;
}
.currency-table colgroup col:nth-child(1) { width: 275px; }
.currency-table colgroup col:nth-child(2) { width: 50px; }
.currency-table colgroup col:nth-child(3) { width: 275px; }
.currency-table colgroup col:nth-child(4) { width: 90px; }

/* ==============================
   Select2 container
============================== */
.select2-container {
  width: 260px !important;
  max-width: 260px !important;
  margin: 0 7.5px;
  box-sizing: border-box;
}

.select2-container--default .select2-selection--single {
  height: 50px !important;
  padding: 0 12px;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-sizing: border-box;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-selection__arrow {
  height: 50px !important;
  top: 0 !important;
}

/* ==============================
   Dropdown Search + lente
============================== */
.select2-dropdown {
  position: relative;
}

.select2-container .select2-search--dropdown:before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10px;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%230d6efd" viewBox="0 0 24 24"><path d="M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12A6 6 0 0110 4z"/></svg>') no-repeat center;
  pointer-events: none;
}

.select2-search__field {
  padding-left: 32px !important;
  height: 40px !important;
  width: 240px !important;
  box-sizing: border-box;
}

/* ==============================
   Pulsante "Inverti"
============================== */
#inverti {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
#inverti svg {
  vertical-align: middle;
  display: inline-block;
}

/* ==============================
   Pulsante "Converti"
============================== */
#vaiAllaPagina {
  width: 90px;
  height: 50px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#vaiAllaPagina:hover {
  background-color: #0b5ed7;
}
