/*CSS HANDLER */
.ui-dialog.ui-widget.ui-widget-content.ui-corner-all:has(#bet_history) {
  background: var(--bgColor2);
  border: 2px solid var(--border-main) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

.ui-dialog-titlebar.ui-widget-header.ui-corner-all.ui-helper-clearfix {
  background: none;
  border: none;
  color: var(--bg_text);
  padding: 10px;
}

.ui-dialog-titlebar.ui-widget-header.ui-corner-all.ui-helper-clearfix
  .ui-dialog-title {
  font-size: 18px;
  text-align: center;
  margin: 0;
  width: 100%;
  color: var(--textColor);
}

.ui-dialog .ui-dialog-titlebar-close {
  filter: var(--colorInvert);
}

.ui-dialog .ui-dialog-titlebar-close:hover {
  background: none;
  border: none;
}

#bet_history {
  max-height: 400px;
  padding-top: 0;
  height: auto !important;
  border: none !important;
}

#bh_betslist {
  border-right: 1px solid var(--bg_color);
  font-size: 10px;
  height: auto;
  padding: 0 15px;
}

#bl_header {
  float: left;
  min-height: 98px;
  width: 100%;
  margin-bottom: 10px;
}

#bl_header ul {
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

#bl_header li {
  padding: 5px 0;
  width: 50%;
  display: flex;
  align-items: center;
  height: 35px;
}

.li_from,
.li_code {
  justify-content: end;
}

#bl_header .li_buttons {
  padding: 5px 10px;
  justify-content: center;
}

#bl_header label {
  display: block;
  width: 15%;
  text-align: right;
  color: var(--bg_text);
  text-transform: lowercase;
  font-size: 13px;
  margin-right: 10px;
}

#bl_header input {
  border: 1px solid var(--border-main);
  border-radius: 5px;
  font-size: 11px;
  background: var(--table_row);
  color: var(--border-main9);
  height: 100%;
  font-family: "Segoe UI", Arial, sans-serif !important;
  width: 50%;
}

#bl_cont {
  float: left;
  height: auto;
  width: 100%;
  color: var(--bg_text);
  margin-bottom: 15px;
}

.bl_cont_table {
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--border-main);
}

#bl_cont table {
  width: 100%;
  overflow: hidden;
}

.theme1 #bl_cont table {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

#bl_cont table th {
  background: var(--border-main);
  color: var(--textColor3);
}

#bl_cont table th,
#bl_cont table td {
  border: 1px solid var(--border-main);
  text-align: center;
  font-size: 12px;
  height: 25px;
  vertical-align: middle;
}

#bl_cont table tr:first-of-type th {
  border-top: none;
}
#bl_cont table tr:last-of-type td {
  border-bottom: none;
}

#bl_cont table th:first-of-type,
#bl_cont table td:first-of-type {
  border-left: none;
}
#bl_cont table th:last-of-type,
#bl_cont table td:last-of-type {
  border-right: none;
}

#bl_cont tr {
  height: 20px;
  line-height: 20px;
}

#bl_cont tr.highlight {
  color: var(--bg_text);
}

#bl_cont a {
  color: var(--colore_principale2);
}

#bl_cont tr.highlight a {
  color: var(--bg_text);
}

#bet_history #bl_header h1 {
  color: var(--textColor);
  font-size: 15px;
  margin-bottom: 5px;
  text-align: center;
}

#bh_reset,
#bh_search {
  color: var(--bg_text);
  width: 30%;
  text-align: center;
  background: transparent;
  font-size: 10.5px;
  border: 1px solid var(--border-main);
  font-family: "Segoe UI", Arial, sans-serif !important;
  transition: 0.3s ease;
}

#bh_reset {
  margin-right: 3px;
}

#bh_search {
  margin-left: 3px;
  margin-right: 20px;
}

#bh_options li a {
  color: var(--bg_text);
  background: transparent;
  font-size: 10.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-main);
  font-family: "Segoe UI", Arial, sans-serif !important;
  transition: 0.3s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#bh_details {
  display: none;
  height: auto;
  color: var(--bg_text);
}

#bh_details h1 {
  font-size: 16px;
  color: var(--textColor3) !important;
  margin-bottom: 5px;
  text-align: center;
}

#bh_details h6 {
  text-align: center;
}

#bh_error {
  display: none;
  float: right;
  height: 100%;
  width: 64%;
}

#bh_betdetails {
  margin: 10px 0;
  height: 83%;
  padding: 0;
  padding: 0 15px;
}

#bh_systemdetails {
  height: 83%;
  padding: 0;
  overflow: auto;
}

#bd_content {
  width: 100%;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  overflow: auto;
}

#bd_content > table {
  padding-bottom: 2px;
  overflow: hidden;
}

#bd_content table {
  margin-bottom: 0;
  width: 100%;
}

#bd_content table th {
  background: var(--border-main);
  color: var(--textColor3);
}

#bd_content table th,
#bd_content table td {
  border: 1px solid var(--border-main);
  text-align: center;
  height: 25px;
  font-size: 13px !important;
  vertical-align: middle;
}

#bd_content table td.td_event {
  width: 70%;
}
#bd_content table td.td_market,
#bd_content table td.td_sign,
#bd_content table td.td_odd {
  width: 10%;
  font-size: 11.5px !important;
}

#bd_content table th {
  border-top: none;
}
#bd_content table th:first-of-type,
#bd_content table td:first-of-type {
  border-left: none;
}
#bd_content table th:last-of-type,
#bd_content table td:last-of-type {
  border-right: none;
}
#bd_content table tr:last-of-type td {
  border-bottom: none;
}

#bd_content table caption {
  color: var(--colore_principale2);
  font-size: 14px;
  padding: 8px 0;
  text-align: left;
}

#bd_content table td {
  font-family: "Pathway Gothic One", "Arial";
  font-size: 14px;
}

#bh_options {
  height: 10%;
  margin-top: 2px;
}

#bh_options ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

#bh_options li {
  width: 100px;
  height: 33px;
}

#bh_options li:has(.showbetdetails_hidden),
#bh_options li:has(.showsystemdetails_hidden) {
  display: none;
}

#bh_options a.active {
  background: none repeat scroll 0 0 var(--colore_principale2);
  color: #fff;
}

.running {
  color: #ffffcc;
}
.winning {
  color: #50dc50;
}
.losing {
  color: #ff3232;
}
.canceled {
  background-color: #cccccc;
}

#bh_systemdetails table {
  width: 100%;
}

#bh_systemdetails th,
#bh_systemdetails td {
  border: 1px solid var(--border-main);
  font-size: 1em;
  font-weight: normal;
  padding: 1px;
  text-align: center;
}

#bl_cont td {
  text-align: center;
}

#bl_cont td a.current {
  text-decoration: underline;
}

#bl_cont td a {
  text-decoration: none !important;
  color: var(--textColor3) !important;
}

#ui-datepicker-div,
.ui-datepicker .ui-datepicker-header {
  background: var(--bgColor4);
  border: none;
  color: var(--bg_text);
}

.theme1 #ui-datepicker-div,
.theme1 .ui-datepicker .ui-datepicker-header {
  background: var(--bgColor2);
}

.ui-datepicker .ui-datepicker-header a {
  filter: var(--colorInvert);
}

.ui-datepicker .ui-datepicker-header a:hover {
  background: none;
  border: none;
}

.ui-datepicker td {
  width: 14.2%;
}

.ui-datepicker td a {
  background: none !important;
  border: 1px solid var(--border-main) !important;
  border-radius: 5px;
  text-align: center;
  padding: 0;
  height: 25px;
  line-height: 25px;
  color: var(--bg_text) !important;
  transition: 0.3s ease;
}

.ui-datepicker td a:hover {
  background: var(--border-main2) !important;
}

#bet_history::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background: var(--regola_gradiente3);
}

#bet_history::-webkit-scrollbar {
  width: 7px;
}

#bet_history::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: var(--table_header);
}

.ui-widget-overlay {
  opacity: 0.5;
  background-color: rgb(0, 0, 0);
}

#bh_options li a#bh_showbetdetails,
#bh_options li a#bh_showsystemdetails {
  line-height: 1;
  text-align: center;
}
#eventsdetails:has(table),
#combdetails:has(table) {
  border: 1px solid var(--border-main);
  border-radius: 7px;
  margin: 5px 15px;
  overflow: hidden;
}
#bh_systemdetails th:last-of-type,
#bh_systemdetails td:last-of-type {
  border-right: none !important;
}
#bh_systemdetails th:first-of-type,
#bh_systemdetails td:first-of-type {
  border-left: none !important;
}
#bh_systemdetails tr:last-of-type td {
  border-bottom: none !important;
}
#bh_systemdetails th {
  border-top: none !important;
  background: var(--border-main);
  color: var(--textColor) !important;
}
#bh_systemdetails tr {
  height: 25px;
}
#bh_systemdetails tr th,
#bh_systemdetails tr td {
  vertical-align: middle;
}
#combdetails {
  margin-top: 15px;
}

@media screen and (max-width: 991px) {
  .ui-dialog.ui-widget.ui-widget-content.ui-corner-all:has(#bet_history) {
    width: 80% !important;
  }
  #bl_cont table,
  #bd_content table,
  #bh_systemdetails #eventsdetails table {
    overflow-x: auto;
    min-width: 700px;
  }
  #bh_systemdetails #combdetails table {
    overflow-x: auto;
    min-width: 900px;
  }
  #eventsdetails,
  #combdetails {
    overflow: auto;
  }
}

@media screen and (max-width: 768px) {
  #bl_header input {
    width: 70%;
  }
  #bh_reset,
  #bh_search {
    width: 40%;
  }
  #bh_search {
    margin-right: 0;
  }
}

@media screen and (max-width: 700px) {
  #bd_content table td.td_event,
  #bd_content table th:first-of-type {
    text-align: left;
    padding-left: 10px;
  }
}

@media screen and (max-width: 600px) {
  #bl_header ul {
    flex-direction: column;
  }
  #bl_header li {
    width: 100%;
    justify-content: center;
  }
  #bh_reset,
  #bh_search {
    width: 100px;
  }
}

@media screen and (max-width: 450px) {
  #bl_header input {
    width: 85%;
  }
  #bl_header .li_buttons {
    padding: 0;
  }
  #bh_reset,
  #bh_search {
    width: 50%;
  }
  #bh_options li {
    width: calc(50% - 7px);
  }
}

@media screen and (max-width: 350px) {
  #bh_options li {
    width: 86%;
  }
  #bh_reset,
  #bh_search {
    width: 100%;
    margin: 0;
  }
  #bl_header .li_buttons {
    flex-direction: column;
    height: auto;
    gap: 7px;
    margin-top: 5px;
  }
}
