/*
 * Responsive style for Profile and key indicators
 * Different structure than in desktop
 */
@media only screen and (min-width: 768px) {
  .country-mobile-tabs {
    display: none;
  }
}

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

  /* Hided titles for seperate tabs */
  #block-aepcountrypillar .block-title,
  .aep-country-details .profile-title {
    display: none;
  }

  /* Tabs style */

  .country-mobile-tabs {
    margin-top: 30px;
  }

  .country-mobile-tabs ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-bottom: 16px;
    justify-content: center;
    padding-left: 0;
  }

  .country-mobile-tabs li {
    position: relative;
    font-size: 16px;
    color: #606060;
    font-family: "HelveticaNeueLTPro-Bd";
    font-weight: initial;
    padding: 0 0 4px;
    margin: 0;
    border-radius: 0;
    line-height: 22px;
    border: none;
    text-transform: uppercase;
  }

  .country-mobile-tabs li.active {
    color: #009844;
  }

  .country-mobile-tabs li:not(:last-child) {
    margin-right: 20px;
  }

  .country-mobile-tabs li.active::after {
    content: "";
    width: 100%;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: #009844;
  }

  /* End of Tabs style */
  /* Tabs Section */
  .mobile-tab-sec {
    display: none;
  }

  .mobile-tab-sec.active {
    display: block;
  }

  /* End of Tabs Section */
  /* Profile Tabs Section */
  .left-right-tab-view {
    padding-top: 0;
  }

  .left-right-tab-view>.view-footer {
    background: transparent;
    padding: 0;
  }

  .tab-article {
    display: block !important;
  }

  .aep-country-details .country-ongridproject-wrapper {
    height: 100%;
    max-height: 100%;
  }

  .aep-country-details .country-ongridproject-table-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aep-country-details .country-ongridproject-table-row>div {
    padding: 5px 20px;
  }

  .tab-article:not(:last-child) {
    border-bottom: 1px solid #d1d3d4;
    margin-bottom: 25px;
    padding-bottom: 30px;
  }

  /* End of Profile Tabs Section */
  /* Key Indicators Tabs Section*/
  .aep-country-details #block-aepcountrypillar {
    margin-top: 30px;
  }

  .key-indicators-section .tab-content>.tab-pane {
    display: block;
  }

  .aep-country-details #block-aepcountrypillar .nav-tabs {
    display: none;
  }

  .key-indicators-section .charts-title {
    font-size: 18px;
    color: #009844;
    font-family: "HelveticaNeueLTPro-Bd";
    font-weight: initial;
    line-height: 24px;
    margin-bottom: 10px;
  }

  .key-indicators-section .tab-content {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .key-indicators-section.slider-added .tab-content {
    opacity: 1;
  }

  .key-indicators-section .chart-header .full-screen {
    display: none;
  }

  .switch-btn.mobile {
    position: relative;
    justify-content: flex-start;
    margin-bottom: 5px;
    margin-top: 10px;
  }

  .switch-btn.mobile .pop-download {
    position: absolute;
    right: 0;
    margin: 0;
    width: auto;
  }

  .switch-btn.mobile .pop-download:after {
    display: none;
  }

  .key-indicators-section .chart-wrap {
    position: relative;
    margin-bottom: 0;
  }

  .key-indicators-section .chart-wrap .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .key-indicators-section .chart-wrap .slide-arrow.slick-disabled {
    display: none !important;
  }

  .key-indicators-section .chart-wrap .prev-arrow {
    left: -15px;
    font-size: 0;
    background: url(../../../images/country_detail/carousel_left.png) no-repeat center center;
    width: 9px;
    height: 16px;
  }

  .key-indicators-section .chart-wrap .next-arrow {
    right: -15px;
    font-size: 0;
    background: url(../../../images/country_detail/carousel_right.png) no-repeat center center;
    width: 9px;
    height: 16px;
  }

  .key-indicators-section .tab-content>.tab-pane {
    margin-bottom: 15px;
  }

  .mobile-chart-table .chart-wrapper {
    margin-bottom: 0;
  }

  .mobile-chart-table .chart-wrapper,
  .chart-table-wrap.table-wrapper {
    display: none;
  }

  .mobile-chart-table .chart-wrapper.active,
  .chart-table-wrap.table-wrapper.active {
    display: block;
  }

  /* Table */
  .chart-table-wrap.table-wrapper {
    max-height: 425px;
    overflow: auto;
  }

  .chart-table-wrap.table-wrapper .table>thead>tr>th,
  .chart-table-wrap.table-wrapper .table>tbody>tr>th,
  .chart-table-wrap.table-wrapper .table>tfoot>tr>th,
  .chart-table-wrap.table-wrapper .table>thead>tr>td,
  .chart-table-wrap.table-wrapper .table>tbody>tr>td,
  .chart-table-wrap.table-wrapper .table>tfoot>tr>td {
    padding: 15px 10px;
  }

  .chart-table-wrap.table-wrapper .table-responsive {
    border-bottom: 0;
    margin-bottom: 0;
  }

  /* End of Table */
  .aep-country-details #block-aepcountrypillar {
    margin-top: 0;
  }

  .left-right-tab-view>.view-footer .content-sub-description {
    height: auto;
    max-height: 320px;
  }

  .aep-country-details .mCSB_inside>.mCSB_container {
    margin-right: 20px;
  }

  /* End of Key Indicators Tabs Section*/
}
