.stock-table table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
}

.stock-table table thead {
  border-top:3px solid #000000;
  border-bottom: 1px solid var(--bg-light-color);
}

.stock-table table th{
  text-align: center;
  font-size: var(--font-size-s);
  font-weight: 600;
}

.stock-table table th,
.stock-table table td {
  color: #000000;
  line-height: calc(var(--font-size-m) * 2);
  border-bottom: 1px solid var(--bg-light-color);
}

.stock-table table th:not(:first-child),
.stock-table table td:not(:first-child){
  border-left: 1px solid var(--bg-light-color);
}


.stock-table table thead>tr>td {
  font-size: var(--font-size-s);
  border-bottom: 1px solid var(--bg-light-color);
}

.stock-table table tbody>tr>td {
  font-size: var(--font-size-xs);
}

.stock-table table td.change{

}

.stock-table table td.change{
  position: relative;
  padding-left: 34px;
  color: #9A9A9A;
}

.stock-table table td.change.color-same {
  position: relative;
  padding-left: 34px;
  color: #9A9A9A;
}

.stock-table table td.change.color-up {
  position: relative;
  padding-left: 34px;
  color: #ff002a;
}

.stock-table table td.change.color-down {
  color: #1280d5
}

.stock-table table td.change:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: -50px;
  margin-top: -4px;
  border-left: 4px solid transparent;
  border-bottom: 8px solid red;
  border-right: 4px solid transparent;
}

.stock-table table td.change.color-down:before {
  border-top: 8px solid #1280d5;
  border-bottom: none
}

.stock-table table td.change.color-same:before{
  top: 0;
  margin-top: 0;
  content: "-";
  border: none;
}
.basic-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
}

.basic-table table thead {
  background: rgba(217, 217, 217, 0.2);
  border-top:3px solid #000000;
}

.basic-table table thead th,
.basic-table table thead td{
  color: #000000;
  font-weight: 600;
}

.basic-table table th,
.basic-table table td {
  color: #000000;
  font-size: var(--font-size-s);
  line-height: 2rem;
  padding: 0.1rem 1rem;
}

.basic-table table th{
  /* font-weight: 600; */
}

.basic-table table th.num{
  text-align: right;
}

.basic-table table tr.sum td,
.basic-table table tr.sum th {
  font-size: var(--font-size-s);
  color: #000000;
  background: rgba(217, 217, 217, 0.2);
  border-bottom: 2px solid var(--bg-light-color);
}

.basic-table table tbody tr td,
.basic-table table tbody tr td p,
.basic-table table tbody tr td > span {
  font-size: var(--font-size-s);
  color: var(--font-basic-color);
}

.basic-table table .sum th,
.basic-table table .sum td{
  font-weight: 600;
}


.basic-table table tbody tr td p{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basic-table table tbody tr td:first-child{
  text-align:left;
}

table tr td.num{
  text-align: right;
}

/* table tr td.down {
  display: flex;
}

table tr td.down a:hover {
  background: var(--bg-light-color);
  transition: all 0.5s;
}
*/
table tr td.down a{
  width: 30%;
  min-width: 210px;
  margin: 1rem 0.5rem 1rem 0;
}

.board table tr{
  border-bottom: 1px solid var(--bg-light-color);
}

.board table tr td{

}

.board table:not("download") tr:hover{
  background: #f9f9f9;
}

.board table td.post-item a{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board table td.post-item a{
  padding: 1.5vh 0;
  font-weight: 600;
}

.basic-table table tr td.post-item a span{
  color: #000000;
  margin-left: 0.5rem;
  padding: 0.1rem 0.3rem;
}

.board tr.download td{
  text-align: left;
}

.board table.download tr td span{

}

.board table.download tr td span{

}

.board table.download th {
  text-align: center;
}

.board table.download tr td{
  color: #000000;
  font-weight: 600;
}

.board table.download tr td.down a {
  display: block;
  width: 100%;
  border: 1px solid var(--bg-light-color);
  margin: 0.3rem 0;
  padding: 0.2rem;
  font-weight: 500;
}


@media screen and (max-width:840px) {

  .basic-table table tbody tr td:first-child {
   justify-content: center;
  }

}

@media screen and (max-width:720px) {

  .stock-table table th, 
  .stock-table table td {
    line-height: calc(var(--font-size-m) * 1.5);
  }
  .stock-table table td.change::before {
    left: 65%;
  }
  
}

@media screen and (max-width:480px) {
  table tr td.down a {
    width: 30%;
    min-width: 200px;
    margin: 1rem 0 0;
  }

  .irperformance table tr td.down a {
    margin: 1rem 0 0;
  }

  .basic-table table th,
  .basic-table table tbody tr td{
    padding: 0 1rem ;
  }

  .irperformance .basic-table table tbody tr td {
    flex-direction: column;
    padding-bottom: 1rem;
  }

  .irstock  table tr td.down a {
    width: 100%;
    margin: 0.5rem auto ;
  }

  #irstock .basic-table table tbody tr td p{
    width: 95%;
  }

  .stock-table table td.change::before{
    position: unset;
    margin-right: 5px;
  }

  .irannouncement .basic-table table tbody tr td{
    padding: 0 0.5rem;
  }

  .irannouncement table tr td.down a{
    min-width: 75px;
  }

}
