@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

main.trader-content {
  font-family: "Open Sans", sans-serif;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  background-color: #FFF;
  width: 95%;
  margin-top: 20px;
  padding-bottom: 20px;
}

main.trader-content p {
  font-size: 18px;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  color: #c65b28;
  margin-bottom: 1rem!important;
  font-weight: 600!improtant;
}

.heading {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #000000;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: left;
}

.heading h1 {
  font-family: "Inter", sans-serif;
  color: #000000;
  font-weight: 600;
  font-size: 2rem;
  line-height: 50px;
}

.heading img {
  width: 100%;
  max-width: 200px;
}

#traderTable {
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: 16px;
  border-style: hidden;
}

#traderTable a {
  color: #e2e2e2;
  text-decoration: none;
}

#traderTable th, #traderTable td {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 14px;
  text-align: left;
  color: #000000;
  border-bottom: 1px solid #E0E7ED;
  white-space: normal;
  text-align: center;
}

#traderTable th {
  width: 10%;
  font-weight: 500;
  background-color: #F8901D;
  color: #fff;
  padding: 12px;
  border: none;
  border-right: 0.5px solid #FFA500;
}

#traderTable th:first-child {
  border-top-left-radius: 15px;
}

#traderTable th:last-child {
  border-right: none;
  border-top-right-radius: 15px;
}

#traderTable tr td {
  height: 39px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  color: #64666A;
  padding: 0 6px;
}

#traderTable tr {
  border-top: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
}

#traderTable tr:last-child {
  border-top: 2px solid #FFF;
  border-bottom: none;
}

/* For even rows */
#traderTable tr:nth-child(even) td:first-child {
  background-color: #db731d;
  color: #fff;
}

#traderTable tr:nth-child(even) td {
  background-color: #f0f0f0;
}

/* For odd rows */
#traderTable tr:nth-child(odd) td:first-child {
  background-color: #eb7c20;
  color: #fff; 
}

#traderTable tr:nth-child(odd) td {
  background-color: #f5f5f5;
}

/* Common styles for the first child in each row */
#traderTable tr td:first-child {
  position: relative; /* Ensure the ::before element is positioned relative to the td */
}

/* ::before element for odd rows */
#traderTable tr:nth-child(odd) td:first-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #eb7c20;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

/* ::before element for even rows */
#traderTable tr:nth-child(even) td:first-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #db731d;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}



#traderTable tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

#traderTable tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

#traderTable b {
  font-weight: 600;
  color: #333333;
}

#traderTable p {
  font-size: 14px;
}

.filter-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.filter-container img {
  cursor: pointer;
  margin: 0 10px;
  width: 50px;
  height: auto;
}

/* Modal container */
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  display: none;
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  color: #000;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 600px!important;
  text-align: justify;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#modalContent {
  padding-top: 10px;
  color: #000;
  font-weight: 600;
}

/* Close button */
.close {
  color: #c65b28!important;
  float: right;
  font-size: 2rem!important;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal icon */
.modal-icon {
  cursor: pointer;
}


.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#totalEntries {
  font-size: 14px;
  font-weight: 500;
}

#pagination .page-numbers {
  padding: 5px 10px;
  background-color: #EEEEEE;
  border-radius: 9px;
  margin: 0 2px;
  font-size: 14px;
}

#pagination .current {
  background-color: #959595;
  color: #fff;
}

#pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 5px;
}

.pag-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

#traderModal a {
  color: #c65b28;
  text-decoration: none;
  font-weight: 600;
}

#search-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.footer ul li {
  font-size: 14px;
  font-weight: bold;
  color: #64666A;
}

.search {
  width: 100%;
  max-width: 500px;
}

.search input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.selected-country {
  border: 3px solid #64666A!important;
}

.hide-border {
  border: none!important;
}