/*CSS HANDLER */
#agency_options {
  margin-bottom: 10px;
  width: 100%;
}

#opzAgenzia,
#loadReserved {
  width: 100%;
  margin: 0;
  position: relative;
  font-size: 14px;
  color: #fff;
}

#opzAgenzia .textColored,
#loadReserved .textColored {
  color: var(--bg_text);
}

#opzAgenzia .textColored.glyphicon {
  font-size: 12px;
}

#loadReserved .textColored span {
  white-space: normal;
}

#opzAgenzia tbody tr,
#loadReserved tbody tr {
  display: flex;
  align-items: center;
  width: 100%;
}

#opzAgenzia tbody tr {
  flex-wrap: wrap;
}

#opzAgenzia tbody #agopz_ricarica {
  width: 100%;
  flex-direction: column;
}

#opzAgenzia tbody #agopz_ricarica td:first-of-type {
  margin: 10px 0;
}

#opzAgenzia label[for="ricarica_utente"] {
  font-size: 14px !important;
  display: flex;
  align-items: center;
}

#opzAgenzia label[for="ricarica_utente"] .glyphicon {
  font-size: 13px;
  margin: 0 5px;
}

#opzAgenzia tbody #agopz_ricarica td {
  width: 100%;
}

#opzAgenzia tbody #agopz_ricarica td #ricarica_utente {
  width: 100%;
}

#loadReserved tbody tr:first-of-type td:last-of-type {
  width: 120px;
}

#loadReserved tbody tr:last-of-type {
  justify-content: center;
}

#loadReserved tbody tr:last-of-type td {
  width: 100%;
}

#loadReserved tbody tr .button {
  padding: 3px 5px;
  margin-top: 10px;
  background: none;
  width: 100%;
  border-radius: 5px;
  border: 2px solid var(--border-main) !important;
  font-size: 12.8px;
}

#loadReserved td input {
  width: 100%;
}

#opzAgenzia tbody {
  display: flex;
  flex-wrap: wrap;
}

#opzAgenzia tbody tr:nth-child(3),
#opzAgenzia tbody tr:nth-child(5) {
  font-size: 12.8px;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 50%;
  margin-top: 8px;
}

#opzAgenzia tbody tr:nth-child(4) {
  display: none;
}

#opzAgenzia tbody tr:nth-child(3) td,
#opzAgenzia tbody tr:nth-child(5) td {
  padding: 0;
  display: flex;
  align-items: center;
}

#opzAgenzia tbody tr:nth-child(3) td input,
#opzAgenzia tbody tr:nth-child(5) td input {
  margin-right: 3px;
  position: relative;
  appearance: none;
  cursor: pointer;
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 3px;
}

#opzAgenzia tbody tr:nth-child(3) td input:checked,
#opzAgenzia tbody tr:nth-child(5) td input:checked {
  background-color: #94b32a;
  border-color: #94b32a;
}

#opzAgenzia tbody tr:nth-child(3) td input:checked::before,
#opzAgenzia tbody tr:nth-child(5) td input:checked::before {
  content: "✔";
  color: white;
  font-size: 13px;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#opzAgenzia td input,
#loadReserved td input {
  border: 1px solid var(--border-main);
  border-radius: 5px;
  background: var(--table_row);
  height: 30px;
  color: var(--border-main9);
  padding: 5px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

#opzAgenzia td input:focus,
#loadReserved td input:focus {
  border-color: transparent;
}

#opzAgenzia td {
  text-align: right;
  line-height: 22px;
  color: var(--bg_text);
  display: flex;
}

#opzAgenzia tr td.opza_user {
  width: 90%;
  position: relative;
}

#opzAgenzia tr td.opza_user.saldoshowed {
  width: 80%;
}

#opzAgenzia tr td.opza_currency {
  padding: 0;
  width: 10%;
}

#opzAgenzia tr td.opza_currency.saldoshowed {
  padding: 0;
  width: 10%;
}

#opzAgenzia tr td.opza_currency label {
  padding: 0;
  font-size: 13px;
  display: flex;
}

#loadReserved td {
  text-align: right;
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  line-height: 28px;
  display: flex;
  align-items: center;
  width: 50%;
}

#opzAgenzia td + td {
  text-align: left;
}

#opzAgenzia th {
  text-align: center;
}

#opzAgenzia td + td label {
  display: inline-block;
  padding: 0 4px;
  text-align: left;
}

#opzAgenzia label {
  line-height: 18px;
}

#opzAgenzia label[for="ricorda-utente"],
#opzAgenzia label[for="auto-ricarica-utente"] {
  text-align: center;
  font-size: 11px;
  color: var(--bg_text);
}

#opzAgenzia label[for="id_user"] {
  display: flex;
  align-items: center;
}

#opzAgenzia label[for="id_user"] span:first-of-type {
  float: left;
  margin-right: 5px;
}

.livebet #opzAgenzia label {
  line-height: 20px;
  padding-left: 10px;
}

.livebet #opzAgenzia #id_user {
  width: 110px;
}

#opzAgenzia #saldoUtente {
  font-size: 12px;
  padding: 0;
  margin-left: 5px;
}

#opzAgenzia #ricarica_utente {
  width: 40px;
}

#opzAgenzia #id_user {
  width: 100%;
}

#opzAgenzia #btn_ricarica {
  padding: 3px 5px;
  background: none;
  width: 100%;
  border-radius: 5px;
  border: 2px solid var(--border-main) !important;
  font-size: 12.8px;
}

#loadReserved tbody tr .button:hover,
#opzAgenzia #btn_ricarica:hover {
  background: var(--colorHeader) !important;
}

#opzAgenzia span {
  padding: 0 2px 0 0;
}

.glyphicon.textColored {
  margin-left: 5px;
}

#checkBet td {
  padding: 4px;
  text-align: right;
}

#checkBet {
  margin: 0;
}

#checkBet span {
  padding: 4px 2px 0 0;
}

#check_submit {
  float: right;
}

#agopzincoupon .h1header {
  display: none;
}

#reserved_barcode {
  width: 110px;
}

#opzAgenzia a.deleteuser {
  display: none;
  top: 4px;
  right: 5px;
  position: absolute;
  color: var(--testo_gradiente2);
}

#opzAgenzia a.deleteuser i {
  line-height: 24px;
}

.theme1 #opzAgenzia a.deleteuser i {
  filter: brightness(30%) saturate(70%);
}

#agency_options {
  background: var(--colore_principale2);
}

#loadreserved,
#agoptions {
  border-radius: 12px !important;
  border: 2px solid var(--border-main) !important;
}

#loadreserved {
  margin-bottom: 10px;
}

#agency_options form {
  padding: 18px;
  border-radius: 0 0 10px 10px;
}

#agency_options .h1header {
  background-color: var(--table_header);
  border-bottom: 2px solid var(--border-main) !important;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--bg_text);
  position: relative;
}

#agency_options .h1header h1 {
  font-weight: normal;
}

.theme1 #agency_options .loadreserved_collapsed .h1header h1,
.theme1 #agency_options .agoptions_collapsed .h1header h1 {
  color: var(--textColor4);
}

#agency_options .h1header #load_collapsing,
#agency_options .h1header #ag_collapsing {
  position: absolute;
  right: 7px;
  bottom: 9px;
  border: 1px solid var(--textColorWhite);
  border-radius: 25px;
  background: var(--textColorWhite);
  transition: 500ms ease;
  width: 20px;
  height: 20px;
}

#agency_options .h1header #load_collapsing.up-arrow::before,
#agency_options .h1header #ag_collapsing.up-arrow::before {
  right: 1.3px;
  bottom: 4px;
  position: relative;
  content: "";
  border: solid var(--arrow_Color);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

#agency_options .h1header #load_collapsing.down-arrow::before,
#agency_options .h1header #ag_collapsing.down-arrow::before {
  right: 1.3px;
  bottom: 7px;
  position: relative;
  content: "";
  border: solid var(--arrow_Color);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

#agency_options .h1header #load_collapsing.up-arrow::before,
#agency_options .h1header #ag_collapsing.up-arrow::before {
  bottom: 11px;
}

#agency_options .h1header #load_collapsing.down-arrow::before,
#agency_options .h1header #ag_collapsing.down-arrow::before {
  bottom: 14px;
}

#loadReserved label,
#loadReserved label i,
#opzAgenzia label span {
  line-height: 24px;
  white-space: nowrap;
}

#loadReserved label i {
  margin-left: 1px;
  font-size: 13px;
}

.ui-widget-content {
  border: 1px solid var(--border-main) !important;
  background: var(--bgColor5);
}

.ui-widget-content li.ui-menu-item a {
  border-bottom: 1px solid var(--border-main);
  border-radius: 0;
  padding: 0;
  color: var(--border-main9);
}

.ui-widget-content li.ui-menu-item a.ui-state-focus {
  background: var(--table_row);
  border: none;
  border-bottom: 1px solid transparent;
  margin: 0;
}

.ui-widget-content li.ui-menu-item:last-of-type a,
.ui-widget-content li.ui-menu-item:last-of-type a.ui-state-focus {
  border-bottom: none;
}

@media screen and (min-width: 992px) {
  .ui-autocomplete {
    width: 281px !important;
    left: calc(100% - 305px) !important;
  }
  #agency_options .h1header #load_collapsing:hover,
  #agency_options .h1header #ag_collapsing:hover {
    color: var(--livebetLightBg);
    background: var(--textColorBg);
  }
}

@media screen and (min-width: 991px) and (max-width: 991px) {
  .mobileSidebarAgency#agency_options {
    margin-bottom: 0;
    max-width: 303px !important;
    border-top: none !important;
  }
  .mobileSidebarAgency#agency_options .h1header {
    display: flex;
    justify-content: center;
    align-items: end;
  }
  .mobileSidebarAgency #loadReserved tbody tr {
    display: block;
  }
  .mobileSidebarAgency #loadReserved td {
    width: 100% !important;
  }
  .ui-autocomplete {
    width: 286px !important;
    left: calc(100% - 295px) !important;
  }
}

@media screen and (max-width: 991px) {
  .theme1 .mobileSidebarAgency#agency_options .h1header,
  .theme1 #couponcontainer .h1header {
    border-bottom: 2px solid var(--textColorWhite) !important;
  }
  #agency_options {
    margin-bottom: 0;
  }
  #loadReserved td:has(label.textColored) {
    min-width: 120px;
  }
  #loadReserved label.textColored,
  #loadReserved label i {
    line-height: 1;
  }
}

@media screen and (max-width: 990px) {
  #loadreserved {
    margin-top: 5px;
  }
  #loadreserved,
  #agoptions {
    overflow: hidden;
  }
  #agency_options {
    margin-bottom: 10px;
  }
  .ui-autocomplete {
    font-size: 11.5px;
    height: 60px;
  }

  .ui-autocomplete::-webkit-scrollbar {
    width: 5px;
  }

  .ui-autocomplete::-webkit-scrollbar-track {
    background: var(--regola_gradiente3);
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }

  .ui-autocomplete::-webkit-scrollbar-thumb {
    background: var(--table_header);
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }

  .ui-widget-content li.ui-menu-item a {
    padding: 10px;
  }
}

@media screen and (max-width: 400px) {
  .ui-autocomplete {
    left: 10px !important;
    width: calc(100% - 20px) !important;
  }
}
