body {
    background: #000;
}

#friends {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 20px;
}

.friends {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 20px;
}

.friend_header {
    background: #343a40;
}

.friend_header h4, .friend_header span , .friend_header div {
    color: #fff;
}

.friend_box {
    padding: 5px;
}

.friend_statistics {
    background-color: #fff;
    font-size: 10px;
}

.friend_statistics div {
    color: #000;
}

.friend_balance {
    background: #e66c6c;
}

.tools, .profilator {
    background: #484646;
}

.profilator {
    padding: 10px;
}

#friend_select_title {
    color: #000;
}

.friend_select_signs{
    color: #000;
    font-size: 10px;
}

.friend_select_played td span {
    color: #000;
}

td.clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

td.clickable:hover {
  background-color: #f0f0f0; /* o un colore più scuro se tema dark */
}

.no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bonus_bet {
    color: green !important;
    font-weight: bold;
}

.event_result-V {
    color: green;
    font-weight: bold;
}

.event_result-P {
    color: red;
    font-weight: bold;
}

.event_result-S {
    color: yellow;
    font-weight: bold;
}

.account_movement td {
    background: rgb(69, 121, 147);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator,input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.app-version {
    position: fixed;
    bottom: 10px;
    left: 15px;
    font-size: 0.85rem;
    color: #aaa;
    background-color: rgba(21, 18, 18, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 9999;
}

/* 🔹 Wrapper che sostituisce table-responsive */
.table-wrapper-scroll {
  overflow-y: auto;
  overflow-x: auto;
  max-height: 80vh; /* puoi aumentare fino a 90vh */
  border-radius: 0.25rem;
}

/* Header del modale più compatto */
#select_friend .modal-header {
  padding: 0.4rem 0.75rem !important; /* default ~1rem */
  min-height: 36px;
}

#select_friend .modal-title {
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

/* 📦 Calcolatore: contenitore generale */
#collapseCalculator .card-body {
  background-color: #181a1b;
  border: 1px solid rgba(255, 255, 255, 0.25); /* linee più visibili */
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
}

/* 🔹 Tabs */
#collapseCalculator .nav-tabs .nav-link {
  color: #bbb;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2); /* bordo più visibile */
}

#collapseCalculator .nav-tabs .nav-link.active {
  background-color: #212529;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 🔹 Contenuto delle tab */
#collapseCalculator .tab-pane {
  padding: 0.5rem 0.25rem;
}

/* 🔸 Sezione generale delle bet */
#collapseCalculator .profilator.card {
  background-color: #1f2122;
  border: 1px solid rgba(255, 255, 255, 0.3); /* più netto */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

/* 🔸 Contenitore delle bet: usa layout flessibile che si adatta */
#collapseCalculator .card-group#bets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

/* 🔹 Singola bet */
#collapseCalculator .bet.card {
  background-color: #242627;
  border: 1px solid rgba(255, 255, 255, 0.35); /* bordo più visibile */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  border-radius: 0.5rem;
  flex: 0 0 360px; /* 🔸 dimensione fissa, non allarga */
  max-width: 360px;
}

/* Se ce n’è solo una → centrala */
#collapseCalculator .card-group#bets:has(.bet.card:nth-child(1):last-child) {
  justify-content: center;
}

/* 🔹 Header bet */
#collapseCalculator .bet .card-header {
  background-color: #2c2f31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}

/* 🔹 Body bet */
#collapseCalculator .bet .card-body {
  font-size: 0.85rem;
  padding: 0.75rem;
  background-color: #1f2122;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* 🔹 Pulsanti */
#collapseCalculator .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-width: 1.5px;
}

#collapseCalculator .btn-light {
  background-color: #e6e6e6;
  color: #111;
  border-color: #aaa;
}

#collapseCalculator .btn-light:hover {
  background-color: #fff;
}

#collapseCalculator .btn-warning {
  color: #111;
  font-weight: 500;
}

/* 🔹 Input-group Esito */
#collapseCalculator .bet .input-group-text {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background-color: #1e1f20;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e2e2;
}

#collapseCalculator .bet input[name="outcome"] {
  font-size: 0.8rem;
  background-color: #1a1c1d;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f1f1f1;
  transition: all 0.15s ease-in-out;
}

#collapseCalculator .bet input[name="outcome"]:focus {
  background-color: #222425;
  border-color: #66b3ff;
  box-shadow: 0 0 0 0.15rem rgba(102, 179, 255, 0.25);
  outline: none;
}


#select_friend table {
  table-layout: fixed;
  white-space: nowrap;
  width: 100%;
}

#select_friend td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

th.month_header {
  background-color: #4aa5e6 !important;
}

.month_header_month {
    background-color: #adcfe8 !important;
}

.movement_event_text {
  white-space: nowrap;
}

.table-fixed {
  table-layout: fixed;
  width: 100%;
}

.table-fixed td div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.badge {
  font-size: 0.75rem;
  padding: 0.3em 0.4em;
  min-width: 35px; /* evita che si schiaccino troppo */
  text-align: center;
}

.table-black-borders,
.table-black-borders th,
.table-black-borders td {
  border: 1px solid #000;
}

#select_friend .modal-xl, #select_friend .modal-dialog {
  width: fit-content;
  max-width: 95vw !important; /* non oltre lo schermo */
}

/* ✅ Tabella ordinata */
#prospect table {
  width: 100%;
  table-layout: fixed;
}

#prospect th,
#prospect td {
  vertical-align: middle;
  text-align: center;
}

/* ✅ Input affiancati ma compatti */
.saldo-input,
.prelevabile-input {
  width: 70px;
  font-size: 0.8rem;
  padding: 2px 4px;
}

/* ✅ Badge visivamente più leggeri */
.badge {
  font-size: 0.75rem;
  padding: 4px 6px;
}

.bookmaker-cell {
  vertical-align: middle !important;
  padding: 0;
  min-width: 160px;
  text-align: left;
}

.bookmaker-cell > div {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 0.5rem;
}

/* Celle dati */
.cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;            /* nessuno spazio verticale */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Riga con input affiancati */
.inputs-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

#prospect {
  table-layout: auto !important; /* 🔹 le colonne si adattano al contenuto */
  width: 100%;
  border-collapse: collapse;
}

#prospect thead {
  background-color: #212529; /* se vuoi mantenere lo stile bootstrap table-dark */
  color: #fff;
}

#prospect thead tr th {
  white-space: nowrap;  /* 🔹 impedisce il wrapping */
  width: auto;          /* 🔹 si adatta automaticamente */
  padding: 2px 6px;     /* 🔹 minimo padding visivo */
  text-align: center;
  vertical-align: middle;
}

