/**
	COLORS:

	#444444	 Grey
	#dddddd	 Light Grey
	#F2F2F2	 Dirty-white
	#0065ad	 Blue
	#0073ea	 Blue (darker)
	#064377	 Blue (even darker)
	#287935	 Green

*/

body {
    margin-top: 50px;
    margin-bottom: 75px;
}

dl {
    /*border: 1px solid #ccc;*/
    /*padding: 0.5em;*/
}

dt {
    float: left;
    clear: left;
    width: 30%;
    text-align: right;
    font-weight: bold;
}

dt:after {
    content: ":";
}

dd {
    margin: 0 0 0 60px;
    /*padding: 0 0 0.5em 0;*/
}

.panel-heading a {
    color: white;
}

.panel.disabled {
    border-color: #808080;
}

@media all and (max-width: 768px) {
    body {
        margin-top: 50px;
    }
}

#selection-overview {
    position: relative;
}

.category-name {
    text-transform: capitalize;
    padding: 1px 5px;
}

#category-container ul {
    padding: 25px 0 10px 10px;
}

.basket-item {
    width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[id^="basketItem-"] {
    color: #4FB2C9;
    padding-bottom: 10px;
}

[id^="basketItem-"] span.glyphicon.glyphicon-remove {
    /*left: -4px;*/
}

[id^="basketItem-"] span.glyphicon.glyphicon-remove:hover {
    color: red;
    cursor: pointer;
}

.clear-items > .glyphicon:hover {
    cursor: pointer;
    color: red;
}

.result-list {
    margin: 0 20px;
}

.result-list-panel-body {
    padding: 0;
}

.result-list-panel-body ul {
    margin: 0;
    padding: 2px;
}

.result-list-panel-body li > a, .result-list-panel-body li > span {
    border-radius: 5px;
}

.result-list-panel-body-page-count {
    padding: 9px 0 0 10px;
}

.result-list > div > table > tbody > tr > td:last-child {
    text-align: center;
}

.result-list > div > table > thead > tr > th:last-child {
    text-align: center;
}

.box-title {
    /*text-transform: capitalize;*/
    -o-text-overflow: ellipsis; /* Opera */
    text-overflow: ellipsis; /* IE, Safari (WebKit) */
    overflow: hidden; /* don't show excess chars */
    white-space: pre-wrap; /* force single line */
    /*width: 200px;                 *//* fixed width */
    height: 36px;
    color: #4fb1c8;
}

.box-source {
    text-transform: capitalize;
    -o-text-overflow: ellipsis; /* Opera */
    text-overflow: ellipsis; /* IE, Safari (WebKit) */
    overflow: hidden; /* don't show excess chars */
    white-space: pre-wrap; /* force single line */
    font-size: 10px;
    height: 28px;
}

html {
    font-size: unset!important;
}

/******************************/
/*          EXTRAS            */
/******************************/

/* fix firefox responsive images */
.img-responsive {
    width: 100%
}

/*******************************/
/*          Spinner            */
/*******************************/
#spinner {
    vertical-align: middle;
    left: 10px;
}

#basket > h6 > span#spinner {
    vertical-align: baseline;
    left: 10px;
}

.icon-refresh-animate {
    -webkit-animation-name: rotateThis;
    -webkit-animation-duration: .5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;

    animation-name: rotateThis;
    animation-duration: .5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotateThis {
    from {
        -ms-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
    }
    to {
        -ms-transform: scale(1) rotate(360deg);
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes rotateThis {
    from {
        -webkit-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
    }
    to {
        -webkit-transform: scale(1) rotate(360deg);
        transform: scale(1) rotate(360deg);
    }
}

/* Datatables customizations */
.dataTables_info {
    float: left;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

#dataset-results > thead > tr > th.text-center.sorting_disabled:last-child,
#spatial-results > thead > tr > th.text-center.sorting_disabled:last-child,
#taxa-results > thead > tr > th.text-center.sorting_disabled:last-child {
    width: 40px !important;
    padding: 0;
}

#selection-data {
    table-layout: fixed;
}

#selection-data > tbody > tr {
    font-size: 10px;
}

#spatial-results > tbody > tr > td,
#selection-data > tbody > tr > td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#selection-data > tbody > tr > td:hover {
    /*text-overflow: clip;*/
    /*white-space: normal;*/
    /*!*word-break: break-all;*!*/
    /*word-wrap: normal;*/
}

.panel-title span.glyphicon {
    float: right;
    font-size: 18px;
    top: -2px;
}

.state-icon {
    font-size: 16px;
    float: right;
}

.list-group-item-info {
    color: #31708F;
    background-color: #D9EDF7;
}

.list-group-item-info.active,
.list-group-item-info.active:hover,
.list-group-item-info.active:focus {
    color: #31708F;
    background-color: #D9EDF7;
    border-color: #31708F;
}

/**
 * (C)Leanest CSS spinner ever
 */

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

.progress-spinner {
    position: relative;
    display: inline-block;
    width: 5em;
    height: 5em;
    margin: 0 .5em;
    font-size: 12px;
    text-indent: 999em;
    overflow: hidden;
    animation: spin 1s infinite steps(8);
}

.small.progress-spinner {
    font-size: 6px;
}

.large.progress-spinner {
    font-size: 24px;
}

.progress-spinner:before,
.progress-spinner:after,
.progress-spinner > div:before,
.progress-spinner > div:after {
    content: '';
    position: absolute;
    top: 0;
    left: 2.25em; /* (container width - part width)/2  */
    width: .5em;
    height: 1.5em;
    border-radius: .2em;
    background: #eee;
    box-shadow: 0 3.5em #eee; /* container height - part height */
    transform-origin: 50% 2.5em; /* container height / 2 */
}

.progress-spinner:before {
    background: #555;
}

.progress-spinner:after {
    transform: rotate(-45deg);
    background: #777;
}

.progress-spinner > div:before {
    transform: rotate(-90deg);
    background: #999;
}

.progress-spinner > div:after {
    transform: rotate(-135deg);
    background: #bbb;
}

ul.dt-button-collection.dropdown-menu {
    overflow-y: scroll;
    height: 400px;
    text-transform: capitalize;
}

li.dt-button.buttons-columnVisibility.active > a {
    background-color: #39b3d7;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    text-decoration: none;
    color: black;
    background-color: #bbb;
}

.header {
    background-color: #F1F1F1;
    background-position: right center;
    background-repeat: no-repeat;
    height: 75px;
    margin: 10px 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
}

#logo {
    height: 75px;
    width: 400px;
    opacity: 0.9;
    filter: alpha(opacity=90); /* For IE8 and earlier */
}

/*change breadcrumb separator to raquo symbol*/
.breadcrumb > li + li:before {
    content: "\003E";
    color: #aaa;
}

/* Panel heading show help if present */
.tip {
    display: none;
    float: right;
    margin-top: 2px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 10px;
}

.panel-heading:hover .tip {
    display: block;
}

.panel-heading .tip {
    display: none;
}

.coordinate-input {
    display: inline-block;
    min-width: 60px;
}

#tutorial-link {
    position: absolute;
    right: 15px;
    top: 0;
}

table.smpt_table  {
    display:block;
    height: 20em;
}
table.smpt_table tbody {
    overflow: auto;
}

table.smpt_table th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-order: 1;
}

table.smpt_table td:first-child{
    width: auto;
}

div.flextable{
    font-size:16px;
}

div.flexthead{
    display: grid;
    grid-template-columns: 1fr 5ex;
    border:1px solid #cccccc;
    border-bottom-width: 2px;
}

div.flextbody{
    display: block;
    border:1px solid #cccccc;
    overflow: auto;
    height: 20em;
}

div.flextr{
    display: grid;
    grid-template-columns: 1fr 5ex;
    cursor: pointer;
}

div.flexth1,div.flextd1{
    border-right:1px solid #cccccc;
}
div.flexth1,div.flexthr{
    font-weight: bold;
    padding: 5px;
}

div.flextd1,div.flextdr {
    padding: 5px;
    border-bottom:1px solid #cccccc;
}

div.flextdr,div.flexthr{
    font-family: "Glyphicons Halflings";
    text-align: center;
    color: rgb(79,178,201);
}
div.flextr:nth-child(odd){
    background-color: #f5f5f5;
}

div.flextr:hover {
     background-color: #eeeeee;
}