/* CUSTOM CSS */
/* Hide mobile table by default, show on small screens */
.trading-table.new-trading-table {
    display: none;
}
@media (max-width: 768px) {
  tr.custom-sector-row {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
    .stocks-table1{
        display: none; /* Hide desktop table on small screens */
    }
    .trading-table.newsummarytable{
    display:none;
    }

    .trading-table.new-trading-table {
        display: table; /* Show mobile table on small screens */
    }
}

/* Show desktop table on medium and up */
@media (min-width: 768px) {
    .trading-table.stocks-table {
        display: table;
    }

    .trading-table.new-trading-table {
        display: none;
    }
}

/* Base: hide both by default to avoid layout shift */
.ownership-table.hidden-sm-down,
.ownership-table.hidden-md-up {
    display: none;
}

/* Show desktop table (hidden-sm-down) on md and up (=768px) */
@media (min-width: 768px) {
    .ownership-table.hidden-sm-down {
        display: table;
    }
}

/* Show mobile table (hidden-md-up) on sm and down (<768px) */
@media (max-width: 767.98px) {
    .ownership-table.hidden-md-up {
        display: table;
    }
}


table.trading-tab-menu {
  border-collapse: separate;
  border-spacing: 10px;
  width: 100%;
  *border-collapse: expression("separate", cellSpacing = "10px");
  display: inline-table;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table.trading-tab-menu tbody {
  width: 100%;
}
table.trading-tab-menu tbody tr td {
  padding-left: 5px;
  padding-right: 5px;
  margin-left: 5px;
  margin-right: 5px;
  text-align: center;
  min-width: 115px;
  border-radius: 5px;
  color: #fff;
  table-layout:fixed;
  background: #616161;
}
table.trading-tab-menu tbody tr td:hover {
  cursor: pointer;
}
table.trading-tab-menu tbody tr td a {
  color: #fff;
  padding: 4px 0px;
  display: block;
}
table.trading-tab-menu tbody tr td.active {
  background: #88215b;
}
.hide {
  display: none;
}
.trading_tabs > div {
  padding-top: 15px;
  padding-bottom: 15px;
}
table.trading-table {
  text-align: center;
  padding: 5px;
 display: inline-table;
  /*display: block;*/
    width: 100%;
    /*overflow-x: auto;
    -webkit-overflow-scrolling: touch;*/
  /* /border: 1px solid #d5d5d5; */
  /* border-radius: 1em; */
  border-collapse: separate !important;
  border-spacing: 0;
  /*table-layout:fixed;*/
/*  height: 100%;*/
  
}
table.trading-table tr th{
  background-color: #88215b !important;
  color: #ffffff;
}
table.trading-table tbody tr td,
table.trading-table tr th {
  border: 1px solid #d5d5d5;
  text-align: center; vertical-align: middle; 
}
[dir='ltr'] table.trading-table tr th:first-child {
  border-top-left-radius: 15px;
}
[dir='rtl'] table.trading-table tr th:first-child {
  border-top-right-radius: 15px;
}
table.trading-table tr th{
	padding-left:5px !important;
	padding-right:5px !important;
}

[dir='ltr'] table.trading-table tr th:last-child {
  border-top-right-radius: 15px;
}
[dir='rtl'] table.trading-table tr th:last-child {
  border-top-left-radius: 15px;
}
[dir='ltr'] table.trading-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}
[dir='rtl'] table.trading-table tbody tr:last-child td:first-child {
  border-bottom-right-radius: 15px;
}
[dir='ltr'] table.trading-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}
[dir='rtl'] table.trading-table tbody tr:last-child td:last-child {
  border-bottom-left-radius: 15px;
}
[dir='ltr'] table.trading-table tbody tr:nth-last-child(2) td:last-child {
  border-bottom-right-radius: 15px;
}
[dir='rtl'] table.trading-table tbody tr:nth-last-child(2) td:last-child {
  border-bottom-left-radius: 15px;
}
[dir='ltr'] table.trading-table.indices-table tbody tr:nth-last-child(2) td:last-child,
[dir='ltr'] table.trading-table.stocks-table.insider-table tbody tr:nth-last-child(2) td:last-child{
  border-bottom-right-radius: 0px;
}
[dir='rtl'] table.trading-table.indices-table tbody tr:nth-last-child(2) td:last-child,
[dir='rtl'] table.trading-table.stocks-table.insider-table tbody tr:nth-last-child(2) td:last-child{
  border-bottom-left-radius: 0px;
}

.selected_row {
  font-weight:bold;
}
/*table.trading-table tbody tr:hover {
  background-color: #f4f4f4;
  cursor: pointer;
}*/

.sectorTitle {
  color: #2174ba;
  font-size:2em;
}
.graphSelectOption {
  color: #2174ba !important;
  font-size: 12px !important;
  width: 198px !important;
  border: none;
  height: 40px !important;
  margin: 1%;
  border-radius: 3px;
  line-height: 32px;
  background: #f1f1f1;
  padding: 7px;
  border-color: none;
  outline: none;
}
#sectorLabel {
  color: #086ab3;
  font-weight: bold;
  font-size: 18px;
  
}
.state-arrow {
  width: 15px;
    padding-bottom: 2px;
}
table.stocks-table tbody tr:hover,
table.shareholder-table tbody tr:hover,
table.topfive tbody tr:hover {
  background-color: transparent;
  cursor: default;
}
table.shareholder-table {
  text-align: center;
  padding: 10px;
  display: inline-table;
  width: 100%;
  /* /border: 1px solid #d5d5d5; */
  /* border-radius: 1em; */
  border-collapse: separate !important;
  border-spacing: 0;
  height: 100%;
}
table.shareholder-table tbody tr td {
  padding:5px;
}
table.shareholder-table thead tr th {
  background-color: #88215b !important;
  color: #ffffff;
}
table.shareholder-table tbody tr td,
table.shareholder-table thead tr th {
  border: 1px solid #d5d5d5;
  text-align: center; vertical-align: middle; 
  
}
[dir='ltr'] table.shareholder-table thead tr th:first-child {
  border-top-left-radius: 15px;
}
[dir='ltr'] table.shareholder-table thead tr th:last-child {
  border-top-right-radius: 15px;
}
[dir='ltr'] table.shareholder-table tbody:last-child tr:first-child td:first-child {
  border-bottom-left-radius: 15px;
}
[dir='ltr'] table.shareholder-table tbody:last-child tr:first-child td:last-child {
  border-bottom-right-radius: 15px;
}

[dir='rtl'] table.shareholder-table thead tr th:first-child {
  border-top-right-radius: 15px;
}
[dir='rtl'] table.shareholder-table thead tr th:last-child {
  border-top-left-radius: 15px;
}
[dir='rtl'] table.shareholder-table tbody:last-child tr:first-child td:first-child {
  border-bottom-right-radius: 15px;
}
[dir='rtl'] table.shareholder-table tbody:last-child tr:first-child td:last-child {
  border-bottom-left-radius: 15px;
}
table.onepercent {
  text-align: center;
  padding: 15px;
  display: inline-table;
  width: 100%;
  /* /border: 1px solid #d5d5d5; */
  /* border-radius: 1em; */
  border-collapse: separate !important;
  border-spacing: 0;
  height: 100%;
}
table.trading-table tbody tr:nth-child(even) td,
table.shareholder-table tbody tr:nth-child(even) td,
table.shareholder-table tbody tr:first-child td:last-child{
  background-color: #f3f3f3;
}

table.onepercent thead tr th{
  background-color: #88215b !important;
  color: #ffffff;
}
table.onepercent tbody tr td,
table.onepercent thead tr th {
  border: 1px solid #d5d5d5;
  text-align: center; vertical-align: middle; 
}
[dir='ltr'] table.onepercent thead tr:first-child th:first-child {
  border-top-left-radius: 15px;
}
[dir='ltr'] table.onepercent thead tr:first-child th:last-child {
  border-top-right-radius: 15px;
}
[dir='ltr'] table.onepercent tbody:last-child tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}
[dir='ltr'] table.onepercent tbody:last-child tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

[dir='rtl'] table.onepercent thead tr:first-child th:first-child {
  border-top-right-radius: 15px;
}
[dir='rtl'] table.onepercent thead tr:first-child th:last-child {
  border-top-left-radius: 15px;
}
[dir='rtl'] table.onepercent tbody:last-child tr:last-child td:first-child {
  border-bottom-right-radius: 15px;
}
[dir='rtl'] table.onepercent tbody:last-child tr:last-child td:last-child {
  border-bottom-left-radius: 15px;
}

.sector-total {
  background-color: #086ab3 !important;
  color: #ffffff;
}
.sector-total-sub {
  background-color: #f2f2f2 !important;
}

table.trading-table thead th.buy-volume-th,
table.onepercent thead th.buy-volume-th {
  background-color: #a15165 !important;
  
  
}
table.trading-table thead th.sell-volume-th,
table.onepercent thead th.sell-volume-th {
  background-color: #d97262 !important;
  
}
table.trading-table tbody td.buy-volume-td,
table.onepercent tbody td.buy-volume-td {
 background-color: #f3e6e9 !important; 
}
table.trading-table tbody td.sell-volume-td,
table.onepercent tbody td.sell-volume-td {
   background-color: #fce9e6 !important;
}
table.trading-table tbody tr:nth-child(even) td.sell-volume-td,
table.onepercent tbody tr:nth-child(even) td.sell-volume-td,
table.trading-table tbody tr:nth-child(even) td.buy-volume-td,
table.onepercent tbody tr:nth-child(even) td.buy-volume-td {
   background-color: #ffffff !important;
}
#qatariChartdiv,
#nonQatariChartdiv,
#GCCChartdiv,
#arabChartdiv,
#buyChartdiv,
#sellChartdiv{
  width: 100%;
  height: 550px;
}

table.topfive thead tr th{
  background-color: #086ab3 !important;
}
table.topfive.gainers thead tr th{
  background-color: #277C3B !important;
}
table.topfive.losers thead tr th{
  background-color: rgb(190, 51, 51) !important;
}
table.topfive{
	display:inline-table;
}

#companiesChart{
  width:100%;
  height:630px;
}
.buy-sell-td{
  font-size:130%;
  font-weight:bold;
}



.hiddenCell{
  display: none;
}

#tradingTabsTop{
	position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 15%;
    opacity: 0.5;
    filter: alpha(opacity=50);
    font-size: 20px;
    color: #fff;
    text-align: center;
}

.scrollDiv{
	
	display:block;
	overflow-x:auto;
}
@media screen and (max-width: 767px){
	.hide-
	{
		border: none !important;
	}
    .table-responsive {
		border: none !important;
	}
 .indicesHeader{
 display:none;
 }
 .indexCorner span{
 display:none !important;}
 .arNumbersReverse span{
 
 }
 
	
}
@media (max-width:414px){
  .state-arrow{
    width:15px;
  }
}
.radL{
	padding-left: 10px;
    padding-right: 10px;
}
.date-fix input, .date-fix select {
    background-color: #f5f5f5;
}

#searchDiv{
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
    /*NEW CSS*/
    border:2px solid #88215d;
  
}
#searchText {
  background-color:#88215d;
  top:0px;
  width:100%;
  text-align:right;
  position: relative;
  font-size:120%;
  font-weight:bold;
  padding-right:10px;
}

#searchText a{
    color:#ffffff;
}

#searchTable{
    margin: 15px;
  width:-webkit-fill-available;
    width: -moz-available;
  float:left;
}

.new-trading-table tr th,.new-trading-table tr td{
	border-radius: 0px !important;
}

[dir='ltr'] .new-trading-table tr:first-child th{
	border-radius: 15px 0px 0px 0px !important;
}

[dir='ltr'] .new-trading-table tr:last-child th{
	border-radius: 0px 0px 0px 15px !important;
}

[dir='ltr'] .new-trading-table tr:first-child td{
	border-radius: 0px 15px 0px 0px !important;
}

[dir='ltr'] .new-trading-table tr:last-child td{
	border-radius: 0px 0px 15px 0px !important;
}

[dir='rtl'] .new-trading-table tr:first-child th{
	border-radius: 0px 15px 0px 0px !important;
}

[dir='rtl'] .new-trading-table tr:last-child th{
	border-radius: 0px 0px 15px 0px !important;
}

[dir='rtl'] .new-trading-table tr:first-child td{
	border-radius: 15px 0px 0px 0px !important;
}

[dir='rtl'] .new-trading-table tr:last-child td{
	border-radius: 0px 0px 0px 15px !important;
}

.indicesHeader{
	background-color: #88215b !important;
    color: #ffffff;
}

.compHeader{
	background-color: #88215b !important;
    color: #ffffff;
}

.indicesHeader:first-child td{
	border-radius: 15px 15px 0px 0px !important;
}

.fixed-table,
.fixed-table2{
	table-layout:fixed;
}

.fixed-table tr:first-child td{
	border-radius: 15px 15px 0px 0px !important;
}

/* =============================== */


.invisible {
  visibility: hidden !important;
}

.hidden-xs-up {
  display: none !important;
}

@media (max-width: 575px) {
  .hidden-xs-down {
    display: none !important;
  }
}

@media (min-width: 576px) {
  .hidden-sm-up {
    display: none !important;
  }
    
}

@media (max-width: 767px) {
  .hidden-sm-down {
  /* display: none !important;*/
  }
  
    [dir='ltr'] .indexCorner{
	  /* border-bottom-left-radius: 15px;*/
    }
    [dir='rtl'] .indexCorner{
        border-bottom-right-radius: 15px;
    }
	  
	[dir='ltr'] table.onepercent tbody:last-child tr:last-child td:nth-child(2) {
	  border-bottom-left-radius: 15px;
	}
	
	[dir='rtl'] table.onepercent tbody:last-child tr:last-child td:nth-child(2) {
	  border-bottom-right-radius: 15px;
	}

	[dir='ltr'] table.onepercent thead tr:first-child th:nth-child(2) {
	  border-top-left-radius: 15px;
	}
	[dir='rtl'] table.onepercent thead tr:first-child th:nth-child(2) {
	  border-top-right-radius: 15px;
	}
	
	.journal-content-article{
		padding:5px;
	}
    #PDFDiv{
        text-align: center;
    }
    #PDFDiv > button {
        margin-top: 0px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
  .hidden-md-up {
    display: none !important;
  }
    #PDFDiv{
        text-align: right;
    }
    [dir='rtl'] #PDFDiv{
        text-align: left;
    }
    
}

@media (max-width: 991px) {
  .hidden-md-down {
    display: none !important;
  }
  
  [dir='ltr'] table.trading-table tbody tr:nth-last-child(2) td:last-child {
    border-bottom-right-radius: 0px;
  }
    
    [dir='rtl'] table.trading-table tbody tr:nth-last-child(2) td:last-child {
    border-bottom-left-radius: 0px;
  }
  
    [dir='rtl'] table.hidden-lg-up.shareholder-table tbody:last-child tr:last-child td:last-child{
        border-bottom-left-radius: 15px;
    }
    [dir='rtl'] table.hidden-lg-up.shareholder-table tbody:last-child tr:nth-child(8) td:first-child{
        border-bottom-right-radius: 15px;
    }
    
    [dir='ltr'] table.hidden-lg-up.shareholder-table tbody:last-child tr:last-child td:last-child{
        border-bottom-right-radius: 15px;
    }
    [dir='ltr'] table.hidden-lg-up.shareholder-table tbody:last-child tr:nth-child(8) td:first-child{
        border-bottom-left-radius: 15px;
    }
}


@media (min-width: 992px) {
  .hidden-lg-up {
    display: none !important;
  }
    
    
}


@media (max-width: 1199px) {
  .hidden-lg-down {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .hidden-xl-up {
    display: none !important;
  }
}

.hidden-xl-down {
  display: none !important;
}

#saveToPDFButton{
    background-color: transparent;
    border: solid 2px #2174ba;
    color: #2174ba;
    margin-top: 20px;
    font-size: 18px;
}
[dir='rtl'] .ui-datepicker .ui-datepicker-prev {
    right: unset;
    left: 2px;
}
[dir='rtl'] .arNumbersReverse{
    direction: ltr;
}

#majorTable tbody:first-child tr.hidden-sm-down td:first-child,
#majorTable tbody:first-child tr.hidden-md-up td:first-child {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}
table.ownership-table{
	text-align: center;
  padding: 10px;
  display: inline-table;
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  height: 100%;
}

table.ownership-table tbody tr th {
	background-color:#2174ba;
	color:#FFFFFF;
	font-weight:bold;
	text-align: center;
	border: 1px solid #d5d5d5;
}
table.ownership-table tbody:first-child tr th{
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}
table.ownership-table tbody tr td.ownership-subheader{
	background-color:#88215b;
	color:#FFFFFF;
	font-weight:bold;
}
table.ownership-table tbody tr.ownership-cat td {
	background-color:#f3f3f3;
	font-weight:bold;
}

table.ownership-table tbody tr td {
	border: 1px solid #d5d5d5;
}

[dir="ltr"] table.ownership-table tbody:last-child tr:last-child td:first-child {
	border-bottom-left-radius: 15px;
}
[dir="ltr"]  table.ownership-table tbody:last-child tr:last-child td:last-child {
	border-bottom-right-radius: 15px;
}

[dir="rtl"] table.ownership-table tbody:last-child tr:last-child td:first-child {
	border-bottom-right-radius: 15px;
}
[dir="rtl"]  table.ownership-table tbody:last-child tr:last-child td:last-child {
	border-bottom-left-radius: 15px;
}

#interactive-reports .row{
	margin-right:0;
	margin-left:0;
}
#interactive-reports #sectorSelectDiv{
	margin-right:5px;
	margin-left:5px;
}
#ownershipPercChart,
#ownershipInvChart,
#vPercChart,
#vInvChart {
	width:100%;
	height: 600px;
}
[dir="ltr"] #tabSubmitBtn {
  background-color: #086ab3;
  width: 90%;
  height: 42px;
  font-weight: bold;
  border-color: transparent;
  border-radius: 5px;
  color: #fff;
margin-top:5px;
}
[dir="rtl"] #tabSubmitBtn {
  background-color: #086ab3;
  width: 90%;
  height: 42px;
  font-weight: bold;
  border-color: transparent;
  border-radius: 5px;
  color: #fff;
margin-top:6px;
}
#tabSelect {
     color: #2174BA !important;
    font-size: 18px !important;
    width: 100% !important;
    border: none;
    background-color:#f5f5f5;
    margin: 1.5%;
    border-radius: 3px;
    padding: 7px;
    border-color: none;
    outline: none;
}
[dir='ltr'] #stocksFilterBtn,#ownershipSubmitBtn,#vSubmitBtn{
	background-color: #086ab3;
  width: 90px;
  height: 37px;
  font-weight: bold;
  border-color: transparent;
  border-radius: 5px;
  color: #fff;
margin-left:10px;
}
[dir='rtl'] #stocksFilterBtn,#ownershipSubmitBtn,#vSubmitBtn{
	background-color: #086ab3;
  width: 90px;
  height: 37px;
  font-weight: bold;
  border-color: transparent;
  border-radius: 5px;
  color: #fff;
	margin-right:10px;
}
.ownerSelectOption {
    color: #2174BA !important;
    font-size: 16px !important;
    width: 90% !important;
    border: none;
    background-color: #f5f5f5;
    border-radius: 3px;
    padding: 7px;
    border-color: none;
    outline: none;
}
button#searchSubmitBtn {
    width: 120px;
    margin: 5px;
    background: #88215b;
    color: #ffffff;
    border: 1px solid #88215b;
    border-radius: 5px;
}
button#searchSubmitBtn:disabled{
    background:#616161;
}

  .table-responsive{
  	margin-bottom: 0px;
  }