/**
 * Style/attribute using for Screener in zacks.com
 *
 * site: zacks.com
 *
 * @author Subhranil Dutta <subhranild@zacksindia.com>
 *
 * @copyright (c) 2019 Zacks Investment Research
 * @license   Internal Use only. No License granted.
 *
 **/


.main_body>section,
.main_body_full>section.screener-bucket {
    padding: 5px 0;
}

.screener-bucket .iframe-wrapper iframe {
    box-sizing: border-box;
}

/* upto iPad portrait mode */
@media screen and (min-width:414.1px) and (max-width:1023px) {

    #main_content {
        width: auto;
        margin: 0 2%;
    }

    .screener-bucket {
        margin-top: 0 !important;
    }

    .screener-bucket .iframe-wrapper iframe {
        width: 100%;
        height: 310px;
    }

    .screener-bucket .iframe-wrapper {
        margin-top: 0;
        height: 310px;
        overflow: scroll;
        -webkit-overflow-scrolling: touch !important;
        border-top: 1px solid #cacaca;
        border-bottom: 1px solid #cacaca;
    }

    .screener-bucket>p {
        position: absolute;
        top: 325px;
        padding: 5px;
    }

    .screener-bucket>.iframe-wrapper {
        padding-bottom: 150px;
        margin-top: 0;
    }
}

/* upto iPad portrait mode */
@media screen and (min-width:320px) and (max-width:414px) {
    .screener-bucket {
        margin-top: 0 !important;
    }

    .screener-bucket .iframe-wrapper iframe {
        width: 100%;
        height: 795px;
        border: none;
    }

    .screener-bucket .iframe-wrapper {
        margin-top: 15px;
        height: 920px;
        overflow: scroll;
        -webkit-overflow-scrolling: touch !important;
        border-top: 1px solid #cacaca;
        border-bottom: 1px solid #cacaca;
    }

    .screener-bucket>p {
        position: absolute;
        top: 475px;
        padding: 5px;
    }

    .screener-bucket>.iframe-wrapper {
        /*padding-bottom: 150px;*/
        margin-top: 0;
    }
}

/* min 1024px (above ipad potrait)*/
@media (min-width: 1024px) {
    .screener-bucket .iframe-wrapper iframe {
        border: 0;
        height: 100%;
        min-height: 1150px;
        width: 1px;
        min-width: 100%;
        *width: 100%;
        margin-top: 15px;
    }
}

/* min 568px (above ipad potrait)*/
@media (min-width: 568px) and (max-width: 767px) {
    .screener-bucket .iframe-wrapper iframe {
        /*min-height: 250px;*/
    }
}

/* attributes to adjust screener module visual positioning in respect to the mobile header bar */
@media screen and (max-width: 991.98px) {
    .main_body_full>section.screener-bucket {
        padding: 15px 0;
    }

    .screener-bucket>p {
        position: absolute;
        top: 820px;
        padding: 5px;
    }

    #screener nav#primary > ul > li > a{
		width: 100%;
	}

	#screener nav#primary .search-container form input{
		padding: .45em .5em;
	}

	#screener .relocated_searchbox, nav#primary > ul > li.search-container{
		background: #fff;
	}

	#screener #main_content{
		padding-top: 0;
	}

    
}

@media screen and (max-width: 991.98px) and (orientation : landscape) {
    .screener-bucket .iframe-wrapper {
        height: 370px;
    }
}