/* -----------------------------------------------
Readership Map CSS
Author: Paul Oxborrow
Version: October 2, 2014
----------------------------------------------- */

.rdr {
    display: none;
    position: relative;
    height: 340px;
    font-family: <macro my.body_text>;
    color: #000;
}
.rdr__mapContainer {
    position: relative;
    top: 15px;
    width: 512px;
    height: 340px;
    margin-left: auto;
    margin-right: auto;
}
.rdr__map {
    width: 512px;
    height: 330px;
}
.rdr .infoCard.top {
    position: absolute;
    width: 100% !important;
    height: auto;
    height: 80px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    overflow: hidden;
    top: 0;
    line-height: 14px;
}
.rdr .infoCard.top .infoCard.fixed_labels { 
    border: 0;
    float: left;
    width: auto;
    height: 80px;
}
.rdr .infoCard.top .infoCard.fixed_labels span {
    display: block;
    padding: 6px 8px 0 8px;
    font-weight: bold; 
    font-size: 11px;
}
.rdr .infoCard.top .infoCard.fixed_labels span.infoCard_location {
    font-size: 11px;
}
.rdr__controls {
    margin: 0 auto;
    float: right;
    position: relative;
    line-height: inherit;
    text-align: right;
    width: auto;
    height: 100%;
}
.rdr__controls ul {
    margin: 0;
    height: 100%;
    display: block;
}
.rdr__controls li {
    display: block;
    float: left;
    text-align: center;
    color: #bbb;
    cursor: default;
    background: none;
    margin: 0;
    padding: 0 8px;
    height: 100%;
    border: 0;
    border-left: 1px solid #ddd;
    font-size: 24px;
    width: auto;
    line-height: 80px !important;
    opacity: 0.7;
}
.rdr__controls li:last-child {
    border-right: 1px solid #ddd;
}
.rdr .rdr__controls li:hover i {
    color: #999;
}
.rdr__controls li.rdr__isActive {
    color: #666;
    cursor: pointer;
}
.rdr__controls li.rdr__isActive:hover {
    background-color: #ccc;
}
.rdr .rdr__controls li.rdr__isActive:hover i {
    color: #333;
}
.rdr__controls li.rdr__js-next {
    border-right: 0; 
}
.rdr__stats,
.rdr__recentDownloads {
    color: #333;
    font-size: 11px;
    line-height: 24px;
    margin: 0;
}
.rdr__infoPanel {
    padding: 0;
    float: left;
    height: 80px;
    border: 0;
    width: 64%;
}
.rdr__infoCard {
    float: left;
    height: 80px;
    border: 0;
    position: relative;
    background-color: #fdfdfd;
    overflow: hidden;
    width: 100%;
    padding: 0;
}
.rdr__infoPanel.placeholder {
    width: 100%;
}
.rdr__infoPanel .placeholder {
    padding-top: 0;
    float: left;
    height: 80px;
    border: 0;
    width: auto;
    border-left: 0;
    padding: 0;
    padding-left: 8px;
}
.rdr__infoPanel .placeholder .rdr__infoCard-head {
    font-weight: bold; 
}
.rdr__infoCard a {
    display: block;
    text-decoration: none !important;
    width: 100%;
    float: left;
    height: auto;
    border: 0 !important;
}
.rdr__infoCard a:hover,
.rdr__infoCard a:hover i {
    text-decoration: none !important;
    color: #000 !important;
}
.rdr__infoCard a:hover .rdr__infoCard-title {
    text-decoration: underline !important;
}
.rdr__infoCard-article > span,
.rdr__infoCard-download > span {
    display: block;
    padding-top: 6px;
    padding-bottom: 0;
    color: #000;
    padding-right: 4%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rdr__infoCard-head {
    font-weight: normal;
    font-size: 12px;
    border: 0;
    padding-bottom: 2px;
    margin: 0;
    width: 440px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rdr__infoCard-title {
    padding: 6px 0;
    font-size: 12px;
}
.rdr__infoCard-download {
    border: 0;
}
.rdr__infoCard-downloadLabel {
    font-size: 10px;
    color: #999;
}
.rdr__infoCard-downloadLocation {
    font-size: 12px;
}
.rdr__infoCard-flag {
   padding-right: 8px;
}
.rdr .floating_stats {
    position: absolute;
    width: auto;
    bottom: 50px;
    text-align: center;
}
.rdr .floating_stats span.real_time_label {
    font-weight: bold;
    text-align: center; 
}
.rdr .floating_stats .rdr__stats.real_time {
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    overflow: hidden;
}
.rdr .floating_stats p.rdr__recentDownloads {
    padding: 6px;
    text-align: center;
    line-height: 14px; 
    font-size: 10px;
}
.rdr .floating_stats p.rdr__recentDownloads b#rdr__js-totalCards {
    font-size: 12px;
    color: #000;
}
.rdr .gmnoprint img { 
    max-width: none;
}

/* Google Map overwriting Terms of Use label color */
.gm-style-cc a {
    color: #999 !important;
    text-decoration: none !important;
    border: 0 !important;
}

/* Hide the map on smaller displays */
@media (max-width: 1023px) {
    .sidebar-max .rdr { display: none !important; }
}
@media (max-width: 850px) {
    .sidebar-min .rdr { display: none !important; }
}

/* Discipline colors */
#arc .rdr__recentDownloads b,
#arc .rdr__infoCard-head {
    color: #7f360a;
}
#art .rdr__recentDownloads b,
#art .rdr__infoCard-head {
    color: #840519;
}
#bus .rdr__recentDownloads b,
#bus .rdr__infoCard-head {
    color: #715301;
}
#edu .rdr__recentDownloads b,
#edu .rdr__infoCard-head {
    color: #80246c;
}
#eng .rdr__recentDownloads b,
#eng .rdr__infoCard-head {
    color: #0f630a;
}
#law .rdr__recentDownloads b,
#law .rdr__infoCard-head {
    color: #9c2a0b;
}
#lif .rdr__recentDownloads b,
#lif .rdr__infoCard-head {
    color: #0f4451;
}
#med .rdr__recentDownloads b,
#med .rdr__infoCard-head {
    color: #5b2491;
}
#phy .rdr__recentDownloads b,
#phy .rdr__infoCard-head {
    color: #245891;
}
#soc .rdr__recentDownloads b,
#soc .rdr__infoCard-head {
    color: #164499;
}

/* CSS Overrides for Digital Commons */
.rdr.rdr-dc {
    height: 380px;
}
.rdr.rdr-dc .rdr__mapContainer {
    height: 381px;
    top: 0;
}
.rdr.rdr-dc .rdr__map {
    height: 380px;
}
#content .rdr ul li {
    background: none;
    margin: 0;
    padding: 0 8px;
    line-height: 18px;
}
#content .rdr ul li i {
    padding-top: 1px;
    width: auto;
}
#main.text .rdr.rdr-dc {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 380px;
}
.rdr.rdr-dc .floating_stats {
    bottom: 80px;
}
.rdr.rdr-dc .rdr__stats span {
    padding: 0 8px;
}
.rdr.rdr-dc .rdr__stats span:last-child {
    padding-right: 0;
}
.rdr.rdr-dc .rdr__infoPanel {
    padding-top: 0;
}
.rdr.rdr-dc .rdr__stats.pull-left {
    position: absolute;
    width: 100%;
    min-height: 30px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    overflow: hidden;
    bottom: 0;
}
.rdr.rdr-dc .rdr__stats.pull-left li {
    display: block;
    float: left;
    width: 32%;
    text-align: center;
    padding: 4px 2px !important;
    line-height: 14px !important; 
}
.rdr.rdr-dc .rdr__stats.pull-left li span.stat_label {
    font-size: 12px;
    color: #000;
}
.rdr.rdr-dc .rdr__stats span {
    padding: 0 !important;
}
.rdr.rdr-dc #rdr__map.rdr__map .gm-style > div + div {
    bottom: 40px !important;
}
.rdr.rdr-dc #rdr__map.rdr__map .gm-style .gmnoprint.gm-style-cc {
    right: 80px !important;
    bottom: 45px !important;
}
.rdr.rdr-dc .fullscreen.pull-right {
    right: -2px;
    top: 315px;
    position: absolute;
    border: 1px solid #ddd;
    padding: 2px;
    background-color: #fdfdfd;
    width: 80px;
    text-align: center;
}
.rdr.rdr-dc .embed.pull-left {
    left: 0;
    top: 315px;
    position: absolute;
    border: 1px solid #ddd;
    padding: 2px;
    background-color: #fdfdfd;
    width: 64px;  
    text-align: center;
}
.rdr.rdr-dc .fullscreen.pull-right a {
    text-decoration: none !important;
    text-align: center;
    color: #000 !important;
    border: 0 !important;
}
.rdr.rdr-dc .embed.pull-left a {
    text-decoration: none !important;
    text-align: center;
    color: #000 !important;
    border: 0 !important;
    font-size: 10px;
}
.rdr.rdr-dc .fullscreen.pull-right a:hover,
.rdr.rdr-dc .fullscreen.pull-right a:active,
.rdr.rdr-dc .fullscreen.pull-right a:focus,
.rdr.rdr-dc .embed.pull-left a:hover,
.rdr.rdr-dc .embed.pull-left a:active,
.rdr.rdr-dc .embed.pull-left a:focus {
    text-decoration: underline !important;
}
.rdr.rdr-dc .fullscreen.pull-right icon.icon-fullscreen {
    font-size: 10px;
    padding: 0 2px;
}       
.rdr.rdr-dc .embed.pull-left span.embed-slash {
    font-weight: bold;
    font-size: 13px; 
}

/* Embed Map Page */

#main.text #embed-map-wrapper form ol li {
    margin-bottom: 10px;
}
    
#main.text #embed-map-wrapper form ol li input.btn { 
    width: 74px;
}

#main.text #embed-map-wrapper form ol li input.btn.active { 
    background-color: #cdcdcd;
    color: #000; 
}
/* External Embed */

#rdr-embed .rdr.rdr-dc .floating_stats {
    left: 15px;
}

/* DC Full Page Map */

.legacy.fullpage-map #sidebar { 
    display: none !important;
}
.legacy.fullpage-map #wrapper { 
    background-image: none !important;
    margin: 0 !important;
    width: 100% !important; 
}
.legacy.fullpage-map #wrapper #content { 
    padding: 0 !important;
    background-image: none !important;
    min-width: 980px !important; 
}
.legacy.fullpage-map #content #main.text {
    padding: 0 !important;
    margin: 0 16px !important;
}
.legacy.fullpage-map #main.text .rdr.rdr-dc {
    height: 720px;
    margin-bottom: 0;
    width: 100%
}
.legacy.fullpage-map .rdr__mapContainer {
    width: 100%;
    height: 630px;
}
.legacy.fullpage-map .rdr__map {
    width: 100%;
    height: 630px;
    margin-left: 1px; 
}
.legacy.fullpage-map .rdr__infoCard-head {
    width: 599px; 
}
.legacy.fullpage-map .rdr.rdr-dc .rdr__mapContainer {
    top: 81px;
}

.legacy.fullpage-map .rdr.rdr-dc .fullscreen.pull-right,
.legacy.fullpage-map .rdr.rdr-dc .embed.pull-left {
    display: none;
}

.legacy.fullpage-map .rdr.rdr-dc .fullscreen.pull-right icon.icon-fullscreen {
    font-size: 12px;
}
.legacy.fullpage-map .rdr.rdr-dc .floating_stats {
    left: 8px; 
}

/* DC Mobile */
.mbl #main.text .rdr.rdr-dc { 
    display: none !important;
}

/* Suppress readership map on small displays */
@media only screen and (max-width: 599px) {
    .desktop #main.text .rdr.rdr-dc { display: none !important; }
}
