/* Add media query to change font-size and padding of elements on small screens */
@media only screen and (max-width: 600px) {
   /* body {
        font-size: 14px;
    }*/
    
    body {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
}
    
    
    
    h1 {
        font-size: 1.5rem;
    }
    /* Add font-size and padding changes for other elements */
   
   /*  .marketcap-table {
        font-size: 14px;
        padding: 10px;
    } */
    
    .marketcap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}
    .marketcap-table th, .marketcap-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.marketcap-table tr:hover {
    background-color: #f1f1f1;
}
    
    .rankk.option.active {
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}




    .table-container
    {
        max-width: 100%;
    }
    /* Add styles for responsive navigation bar */
    .menu_header {
        background-color: white;
        border-width: 1px 0;
        border-color: #dee2e6;
        border-style: solid;
        margin-bottom: 15px;
        padding: 0 1rem;
        display: flex;
        position: relative;
        align-items: center;
    }
    .navbar-toggler {
        /* Add styles for hamburger menu */
    }
    /* Add styles for search bar */
    .Search_div {
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    
    }
}

body
{
    background: linear-gradient(0deg,rgba(255,255,255,1) 0%,rgba(240,240,240,1) 100%) no-repeat top;
    background-size: 100% 500px;
    font-family: proxima nova,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen-Sans,Ubuntu,Cantarell,helvetica neue,sans-serif;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}

/* Add media query to change table width on mobile devices */
@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 1.5rem;
    }
}

.centered
{
    text-align:center;
}
h1
{
    font-size: 1.75rem;
    text-align: center !important;
    color: #444;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    display: block;
}
h2.big {
  font-size: 1.75rem;
}

.noshadow
{
    box-shadow: none !important;
}

/* .topheader
{
    height: 4%;
    background-color: transparent;
    
    width:100%;
} */
.topheader {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #007bff;
    color: white !important;
}


/* .menu_header
{
    height: 9%;
    background-color: white;
    border-width: 1px 0;
    border-color: #dee2e6;
    border-style: solid;
    margin-bottom: 15px;
    margin-top: 0;
    padding: 0 1rem;
    display: flex;
    position: relative;
    align-items: center;
} */

.menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* ✅ allow wrapping on small screens */
}

.menu_header .brand h1 {
    font-size: 1.8rem;
    margin: 0;
}

.menu_header .tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin: 0;
}


.BottomListeDescription
{
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    color: #495057;
    box-sizing: border-box;
}
.table-container
{
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-radius: 5px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    overflow-x: auto;
    box-sizing: border-box;
}

/* Add media query to change table width on mobile devices */
@media only screen and (max-width: 600px) {
    .table-container {
        max-width: 100%;
    }
    .marketcap-table {
        font-size: 14px;
    }
}

.marketcap-table
{
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
      padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 10px;
    clear: both;
    max-width: none !important;
    border-collapse: separate !important;
    border-spacing: 0;
    font-size: 18px;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
}

.marketcap-table td
{
    padding-top: 26px;
    padding-bottom: 12px;
    white-space: normal;
}

.marketcap-table tbody
{
    text-align:center;
}

.green
{
    color: limegreen;
}

.red
{
    color: mediumvioletred;
}

.table.marketcap-table td {
    border-top: 1px solid #e8e8e8;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

table.marketcap-table td.name-td {
    padding-top: 14px;
    white-space: normal;
    
}

table.marketcap-table td {
    padding-top: 26px;
    padding-bottom: 12px;
    
}

.category-stats-bar {
    /* text-align: center; */
    opacity: .8;
    /*font-size: 20px;*/
    font-size: 18px;
    margin-left:1%;
}

.category-stats-bar-index {
     text-align: center; 
    opacity: .8;
    font-size: 21px;
}


.category-stats-bar .companies-count {
    margin-right: 15px;
}

.font-weight-bold {
    font-weight: 700!important;
}


.table th
{
    border-top: none !important;
}

.table th:hover
{
    background:linear-gradient(0deg,rgba(255,255,255,1) 0%,rgba(240,240,240,1) 100%) no-repeat top;
    cursor:pointer;
}

.Sorttable
{
    max-width: 24px;
    padding: 0;
    border: 0;
    position: relative;
    float: right;
}

.footer-container {
    padding: 20px;
    background-color: #f5f7f7;
}

.footer-section {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


.row {
    margin-right: 0;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
}


.col-sm-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-2, .col-lg-3, .col-sm-6, .col-lg-4, .col-lg-6, .col-sm-9, .col-sm-3, .col-lg-8, .col-lg-4 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

h4 {
      margin-top: 0;
    margin-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
      
}


.footer a {
    color: #000;
}

a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

body .hidden {
    display: none!important;
}

.hidden {
    display: none!important;
}

th .th-name {
padding-top: 14px;
    white-space: normal;
    padding-left: 3.5rem;
        font-size: 22px;
}

.company-logo
{
    display: block;
    max-width: 70px;
    float: left;
}

.blackimportant
{
    color:black !important;
}


.name-div
{
    margin-left:20%;
}

.nom_entreprise
{
    position: relative;
    padding-left: 4%;
    padding-top: 4%;
    font-size: 23px;
    display: block;

   /*position: relative;
    display: inline;
    float: left;
    padding-left: 4%;
    padding-top: 4%;
    font-size: 23px;*/
}

.nom_entreprise:hover
{
    text-decoration:underline;
}

.header_right
{
   font-size: 17px; 
   text-align:left !important;
   color:white;
}
.email_header
{
    width: 47%;
    text-align: left;
    display: inline-block;
    font-size: 20px;
    margin-left: 1%;
    color: white !important;
}

.currency_header
{
   /* width: 47%;
    text-align: right;
    display: inline-block;
    font-size: 20px;*/ 
    
    display: inline-block;
    font-size: 18px;
    float: right;
    margin-right: 2%;
}

/* ✅ Modern search bar styling */
#searchme {
    width: 100%;
    max-width: 400px; /* bigger width */
    padding: 10px 40px 10px 15px; /* space for icon */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 30px; /* rounded */
    outline: none;
    transition: all 0.3s ease;
    background: #fff url('https://cdn-icons-png.flaticon.com/512/622/622669.png') no-repeat right 12px center;
    background-size: 18px; /* search icon */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */
}

#searchme:focus {
    border-color: #007bff;
    box-shadow: 0 3px 8px rgba(0,123,255,0.3);
}

@media (max-width: 600px) {
    #searchme {
        max-width: 100%;
    }
}

.Search_div
{
    /*text-align: center;*/
    margin-top: 0.5%;
    margin-bottom: 0.5%;
}

.is-hidden { display: none; }

.chart_div
{
    height: 80px;
    width: 150px;
   /* background-color: whitesmoke; */
}

.chart_div canvas
{
padding: 2%;
}

.th_title
{
    color:black;
}

.appstoreimg
{
    max-width: 240px;
max-height: 100px;
}

.appstore_app
{
  margin-top: 3%;
  text-align: center;
}

/* .header_appstore_div
{
position: relative;
float:right;
min-height: 45px;
min-width: 400px;
left: 30%;
margin-top: 10px;
} */

.header_appstore_div {
   /* display: flex;
    align-items: center; */
        margin-top: 10px;
    width: 100%; /* ✅ full width on mobile */
}

.appstoreimg_header
{
    max-width: 155px;
}

.info-box
{
    float: left;
    width: 33%;
    text-align: left;
}

.info-box.categories-box
{
    width: 100%;
padding-top: 5px;
}

.badge.category-badge
{
    font-size: 16px;
margin-right: 5px;
border: 1px solid #ced4da;
background-color: transparent;
border-radius: 14px;
display: inline-block;
padding: .25em .4em;
font-weight: 700;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
}

.info-box a
{
    text-decoration: none;
color: #212529;
}

.info-box .line1 {
  font-size: 24px;
}

.info-box .line2 {
  font-size: 14px;
  color: #8f8f8f;
}

.table_container_Ese
{
    margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
max-width: 100%;
overflow-x: auto;
}

.company-code {
  font-size: 12px;
  opacity: .6;
}

.margin-lr-15px {
  margin-left: 15px;
  margin-right: 15px;
}

.nav-tabs .nav-item {
  margin-bottom: -1px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.mt-4, .my-4 {
  margin-top: 1.5rem !important;
}


element {

}
.nav-tabs .nav-item {

    margin-bottom: -1px;

}
*, ::after, ::before {

    box-sizing: border-box;

}
.nav {

    display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;

}

.nav-link {
  display: block;
  padding: .5rem 1rem;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}

.col-lg-2 {
  -ms-flex: 0 0 16.666667%;
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.company-profile-logo {
  height: 128px;
  width: 128px;
}

.col-lg-6 {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
  
}

.col-lg-4 {
  -ms-flex: 0 0 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.company-description {
  max-height: 190px;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.background-ya {
  background-color: #fffaaa;
}

/* .ranking-bar {
 padding:10px;
 padding-top:20px;
 padding-bottom:10px;
 max-width:1250px;
 margin-left:auto;
 margin-right:auto;
 font-size:18px;
 font-weight:500;
 color:#444;
 overflow-x:auto;
 white-space:nowrap;
} */

.ranking-bar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}



.ranking-bar span.option {
 color:#222;
 border-radius:22px;
 height:18px;
 white-space:nowrap;
 padding:8px 12px;
 white-space:normal;
 position:relative;
 background-color:#fff;
 font-weight:400;
 white-space:nowrap;
 margin-left:4px;
 box-shadow:0 .1rem .3rem 0 rgba(0,0,0,.1);
}
.ranking-bar a:hover {
 text-decoration:none;
}
.ranking-bar span.active {
    background-color:#fff !important;
    border-color:#05b169 !important;
    background-color: crimson !important;
    color: yellow !important;
    font-weight: bold !important;
    cursor: pointer !important;
}
.ranking-bar span.ranked-by {
 margin-right:5px;
}

.ranking-bar span.option {
  color: #222;
  border-radius: 22px;
  height: 18px;
  white-space: nowrap;
  padding: 8px 12px;
  white-space: normal;
  position: relative;
  background-color: #fff;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 4px;
  box-shadow: 0 .1rem .3rem 0 rgba(0,0,0,.1);
}
.w-100 {
  width: 100%;
}

.profile-container {
  background-color: #fff;
}

.margin-lr-15px {
  margin-left: 15px;
  margin-right: 15px;
}

@viewport {
  width: device-width ;
  zoom: 1.0 ;
}

@media screen and (max-width: 600px) {
  .topheader .menu_header  {
    visibility: hidden;
    /* clear: both;
    float: left;
    margin: 10px auto 5px 20px;
    width: 28%;
     */
  }
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* ✅ horizontal scroll on mobile */
}

@media (max-width: 768px) {
    .marketcap-table th, .marketcap-table td {
        font-size: 14px;
        padding: 8px;
    }
    .company-logo {
        max-width: 40px; /* ✅ shrink logos */
    }
    .nom_entreprise {
        font-size: 16px; /* ✅ smaller text */
    }
        #search-box {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0;
    }
        #search-results {
        width: 100%;
        right: 0;
    }
}

@media (max-width: 600px) {
    .topheader {
        flex-direction: column;
        text-align: center;
    }
    .currency_header {
        margin-top: 8px;
        float: none;
    }
}


#search-box {
    flex: 0 1 320px;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: all .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
} 

#search-box:focus {
    border-color: #007bff;
    box-shadow: 0 3px 8px rgba(0,123,255,0.3);
}

#search-results {
    display: none;
    position: absolute;
    top: 10%;
    right: 2%;
    width: 15%;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

       
       
.search-result a {
    padding-left: 5%;
}
    
.search-result {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.search-result:hover {
    background: #f9f9f9;
    cursor: pointer;
}

ul#search-results img
    {
        position: relative;
        width: 10%;
        height: 10%;
        float: left;
        padding: 0%;
        margin-bottom: 0%;
    }
    
.UpdateBourseCasa
    {
        display: block;
        text-align: center;
    }
.UpdateBourseCasaDate
    {
        font-weight:bold;
    }
.fichetechnique_Div
    {
        width: 60% !important;
        text-align: center;
    }
.fichetechnique
    {
        background-color: green;
        color: yellow;
        padding: 3px;
        border-radius: 5px;
        font-size: 22px;
        display: block;
    }
    
 /* #Dividendes2023
    {
        background-color: crimson;
        color: yellow;
        font-weight: bold;
        cursor: pointer;
    } */

#MiseaJour
    {
        font-size: 14px;
        font-style: italic;
        font-weight: bold;
    }
.MiseaJour_bottom
    {
        font-size: 14px;
        font-style: italic;
        font-weight: bold;
        text-align:center;
    }
        /* favorite button */
    .favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.favorite-btn img {
      width: 32%;
    height: 32%;
}
.favorite-btn.favorited img {
  filter: drop-shadow(0 0 2px gold);
}

button.favorite-btn {
    background: none !important;
    border: none !important;
}

/* END of favorite button */
        