/* =====================================
   Responsive ForexBot Positions/Orders Table
   ===================================== */

.table-responsive {
  overflow-x: auto;
  margin-top: 0px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  min-width: 700px;
}

.trades-table thead {
  background: rgba(0, 204, 255, 0.15);
  text-align: center;
  font-weight: bold;
}
.trades-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid #00ccff;
  white-space: nowrap;
}
.trades-table tbody tr {
  text-align: center;
  transition: background 0.3s ease;
}
.trades-table tbody tr:hover {
  background-color: rgba(0, 204, 255, 0.08);
  transform: scale(1.01);
}
.trades-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.trades-table tbody td:first-child {
  font-weight: bold;
  color: #00ccff;
}
.trades-table td strong {
  color: #f0f0f0;
}

@media (max-width: 768px) {


.trades-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 0.45rem;
  border-radius: 12px;
  overflow: hidden;
  min-width: 150px;
}

.trades-table thead {
  background: rgba(0, 204, 255, 0.15);
  text-align: center;
  font-weight: bold;
	    max-width: 100%;
}
.trades-table thead th {
  padding: 4px 2px;
  border-bottom: 1px solid #00ccff;
  white-space: nowrap;
	    max-width: 100%;
}
.trades-table tbody tr {
  text-align: center;
  transition: background 0.3s ease;
}
.trades-table tbody tr:hover {
  background-color: rgba(0, 204, 255, 0.08);
  transform: scale(1.01);
}
.trades-table tbody td {
  padding: 2px 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	    max-width: 100%;
}
.trades-table tbody td:first-child {
  font-weight: bold;
  color: #00ccff;
	    max-width: 100%;
}
.trades-table td strong {
  color: #f0f0f0;
}

}





.badge-count {
  background-color: #00ccff;
  color: #000;
  font-weight: bold;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.85em;
}



.toggle-table-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #00f0ff;
  background-color: transparent;
  border: 2px solid #00f0ff;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.toggle-table-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .toggle-table-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
    width: 100%;
    max-width: 100%;
    margin: 12px auto 0;
    display: block;
  }
}





.last-updated {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #bbb;
  font-style: italic;
}


.profit-positive { color: #00ff88; }
.profit-negative { color: #ff5555; }


.profitPips-positive { color: #00ff88; }
.profitPips-negative { color: #ff5555; }

.updated-flash {
  animation: flashUpdate 0.5s ease-in-out;
}
@keyframes flashUpdate {
  0%   { background-color: rgba(0, 255, 0, 0.05); }
  100% { background-color: transparent; }
}

