/*********************
   HTML
*********************/
body {
    padding-top: 60px;
}

h1 {
    padding-bottom: 0.2em;
}

a:hover {
    color: #2c2c2c;
}

a {
    color: #0066A4;
}

hr {
    margin: 0;
}

table form {
    margin: 0;
}

fieldset {
    /*
    background: #fff;
    padding: 18px 10px 0 10px;
    margin: 0 0 10px 0;
    clear: both;
    border: 1px solid #DFDFDF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    */
}

legend {
    /*
    color: #464646;
    background: #fff;
    margin-bottom: 0;
    border: 1px solid #DFDFDF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding: 0 2%;
    width: 96%;
    */
    /*
    background: transparent;
    display: inline;
    width: auto;
    line-height: inherit;
    font-weight: bold;
    */
}

legend .pull-right {
    margin-top: 8px;
}

fieldset fieldset legend {
    font-size: inherit;
    font-weight: bold;
}

footer {
    margin-top: 60px;
    color: #999;
}

footer {
    font-size: 86%;
}

td p, th p {
    margin: 0;
}

/*********************
   Layout
*********************/
.bold {
    font-weight: bold;
}

.spacer {
    margin-bottom: 18px;
}

.clear {
    clear: both;
}

.clear-left {
    clear: left;
}

.clear-right {
    clear: right;
}

.clear-fix:after {
    content: "";
    display: table;
    clear: both;
}

.help {
    cursor: help;
}

.handle {
    cursor: move;
}

.small {
    font-size: 85%;
}

.breadcrumb {
    margin: 0 0 20px !important;
}

.help-block {
    font-size: 85%;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/*********************
   Font and Colour
*********************/
.by {
    margin-top: 1em;
    border-top: 1px solid #C9E0ED;
    color: #999;
    font-size: 85%;
}

.hint {
    color: #999;
}

span.required {
    color: #ff0000;
}

span.help-inline, span.help-block {
    color: #ff0000;
}

p.help-block {
    color: #aaa;
}

/*********************
   Forms
*********************/
input, textarea, select, .uneditable-input {
    color: #111;
}

/*********************
   Accordion
*********************/
.accordion-group {
    border-color: #ddd;
}

.accordion-heading .accordion-toggle:before {
    margin: 5px 5px 0 3px;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: top;
    border-left: 4px solid black;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    content: "";
    opacity: .3;
    filter: alpha(opacity=30);
}

.accordion-heading .in:before {
    margin: 7px 5px 0 0;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: top;
    border-top: 4px solid black;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    opacity: .3;
    filter: alpha(opacity=30);
}

.accordion-heading {
    background-color: #efefef;
    background-image: -moz-linear-gradient(top, #fff, #ededed);
    background-image: -ms-linear-gradient(top, #fff, #ededed);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#ededed));
    background-image: -webkit-linear-gradient(top, #fff, #ededed);
    background-image: -o-linear-gradient(top, #fff, #ededed);
    background-image: linear-gradient(top, #fff, #ededed);
    background-repeat: repeat-x;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.accordion-heading a {
    color: #333;
}

.accordion-heading a:hover {
    text-decoration: none;
}

.accordion-heading a {
    font-size: 15px;
    font-weight: bold;
}

.accordion-heading a small {
    font-size: 13px;
    font-weight: normal;
}

/*********************
    Tables
*********************/
table.table {
    background: #fff;
}

table.table-bordered thead:first-child tr:first-child th:last-child, table.table-bordered tbody:first-child tr:first-child td:last-child {
    -webkit-border-top-right-radius: 0;
    border-top-right-radius: 0;
    -moz-border-radius-topright: 0;
}

table.table-bordered thead:first-child tr:first-child th:first-child, table.table-bordered tbody:first-child tr:first-child td:first-child {
    -webkit-border-top-left-radius: 0;
    border-top-left-radius: 0;
    -moz-border-radius-topleft: 0;
}

table.table thead tr {
    color: #fff;
    background: #B5B5B5;
}

table.table tr.filters {
    background: #FFF;
}

table.table thead tr a {
    color: #fff;
    text-decoration: underline;
}

table.table thead tr a {
    color: #fff;
    text-decoration: underline;
}

table.table thead tr a:hover {
    text-decoration: none;
}

table.table-bordered {
    border-width: 2px 2px 2px 0;
    border-color: #B5B5B5;
}

table.table-bordered tr th, table.table-bordered tr td {
    border-left: 0;
}

table.table-bordered > tr > th:first-child,
table.table-bordered > tr > td:first-child,
table.table-bordered > thead > tr > th:first-child,
table.table-bordered > thead > tr > td:first-child,
table.table-bordered > tbody > tr > th:first-child,
table.table-bordered > tbody > tr > td:first-child {
    border-left: 2px solid #B5B5B5;
}

table.table tbody tr:hover td, .table tbody tr:hover th {
    background-color: inherit;
}

table.table-striped tbody tr:nth-child(odd) td, table.table-striped tbody tr:nth-child(odd) th {
    background-color: #f7f7f7;
}

/*********************
    Navbar Menu
*********************/
.dropdown-menu {
    z-index: 3000;
    margin: 0;
}

#navbar .dropdown-menu {
    /*
    has a bug -- when you scroll down the page and use the menu, the slide starts from an odd place
    -ms-transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    -ms-transform-origin: 0px 0px;
    -ms-transform: scale(1, 0);
    -moz-transform-origin: 0px 0px;
    -moz-transform: scale(1, 0);
    -webkit-transform-origin: 0px 0px;
    -webkit-transform: scale(1, 0);
    -o-transform-origin: 0px 0px;
    -o-transform: scale(1, 0);
    transform-origin: 0px 0px;
    transform: scale(1, 0);
    display: block;
    */
}

#navbar .nav li:hover ul,
#navbar .navbutton:hover ul {
    display: block;
    /*
    -ms-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
    */
}

#navbar .nav li.dropdown.open .caret,
#navbar .nav li.dropdown.open.active .caret,
#navbar .nav li.dropdown.open a:hover .caret {
    opacity: 0.3;
    filter: alpha(opacity=30);
}

#navbar .nav li.dropdown.open a:hover .caret {
    opacity: 1;
    filter: alpha(opacity=100);
}

/*********************
    Breadcrumbs
*********************/
#breadcrumbs {
    border: 0;
    padding: 0;
    background: none;
    overflow: hidden;
    font-size: 14px;
    border: 1px solid #DFDFDF;
    background: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    margin-top: 0 !important;
}

#breadcrumbs li {
    display: inline;
    text-shadow: none;
}

#breadcrumbs li a:hover {
    text-decoration: none;
}

#breadcrumbs li.active, #breadcrumbs li a {
    color: white;
    padding: 6px 0 6px 55px;
    position: relative;
    display: block;
    float: left;
    border: 1px solid transparent;
    font-weight: bold;
}

#breadcrumbs li.active {
    color: #222;
    background: transparent;
    pointer-events: none;
    cursor: default;
}

#breadcrumbs li a:after {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 30px solid #888;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    left: 100%;
    z-index: 2;
}

#breadcrumbs li a:before {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 30px solid white;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    margin-left: 1px;
    left: 100%;
    z-index: 1;
}

#breadcrumbs li:first-child a {
    background: #888;
    padding-left: 20px;
}

#breadcrumbs li:nth-child(2) a {
    background: #999;
}

#breadcrumbs li:nth-child(2) a:after {
    border-left-color: #999;
}

#breadcrumbs li:nth-child(3) a {
    background: #aaa;
}

#breadcrumbs li:nth-child(3) a:after {
    border-left-color: #aaa;
}

#breadcrumbs li:nth-child(4) a {
    background: #bbb;
}

#breadcrumbs li:nth-child(4) a:after {
    border-left-color: #bbb;
}

#breadcrumbs li:nth-child(5) a {
    background: #ccc;
}

#breadcrumbs li:nth-child(5) a:after {
    border-left-color: #ccc;
}

#breadcrumbs li:last-child a:after {
    border: 0;
}

#breadcrumbs li a:hover {
    background: #ccc;
    color: #333;
}

#breadcrumbs li a:hover:after {
    border-left-color: #ccc !important;
    color: #333;
}

/*********************
   Grids
*********************/
.grid-view, .list-view {
    padding-top: 0;
}

.grid-view .items {
    clear: both;
}

.grid-view table tbody tr:hover td, .grid-view table tbody tr:hover th {
    background: #e7ebfc;
}

.grid-view-loading {
    background-position: 5px 0 !important;
}

.grid-view .summary, .list-view .summary {
    float: left;
}

.grid-view-loading .summary {
    color: transparent;
}

.grid-view .pagination {
    margin: 0;
    clear: both;
    float: left;
}

.grid-view .page-size, .grid-view .form-multi-actions, .grid-view .form-grid-actions {
    float: right;
}

.grid-view .toggle-filters {
    float: right;
    margin: 15px 0 0 10px;
    cursor: pointer;
}

.multi-checkbox-table, .grid-view {
    clear: both;
}

.multiActions {
    clear: both;
    margin-bottom: 10px;
}

/*********************
   Pagination
*********************/
.pagination a {
    color: #333;
}

.pagination a:hover {
    color: #333;
    background: #e7ebfc;
}

/*********************
   Details
*********************/
table.detail-view.table-bordered tbody tr th {
    color: #fff;
    background: #b5b5b5;
}

table.detail-view.table-bordered tbody tr th a {
    color: #fff;
}

/*********************
   Sortable
*********************/
ul.ui-sortable, ul.ui-sortable li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*********************
    Tabs
*********************/
.nav-tabs .dropdown-toggle .caret {
    margin-top: 6px;
    border-top-color: #000;
    border-bottom-color: #000;
}

.nav-tabs :hover .dropdown-toggle .caret {
    margin-top: 6px;
    border-top-color: #333;
    border-bottom-color: #333;
}

/*********************
    Buttons
*********************/
.btn-grey {
    background-color: hsl(214, 10%, 69%) !important;
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fcfcfc", endColorstr="#a8aeb7");
    background-image: -khtml-gradient(linear, left top, left bottom, from(#fcfcfc), to(#a8aeb7));
    background-image: -moz-linear-gradient(top, #fcfcfc, #a8aeb7);
    background-image: -ms-linear-gradient(top, #fcfcfc, #a8aeb7);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcfcfc), color-stop(100%, #a8aeb7));
    background-image: -webkit-linear-gradient(top, #fcfcfc, #a8aeb7);
    background-image: -o-linear-gradient(top, #fcfcfc, #a8aeb7);
    background-image: linear-gradient(#fcfcfc, #a8aeb7);
    border-color: #a8aeb7 #a8aeb7 hsl(214, 10%, 61.5%);
    color: #333 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.49);
    -webkit-font-smoothing: antialiased;
}

.btn-black {
    background-color: hsl(0, 0%, 1%) !important;
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#353535", endColorstr="#020202");
    background-image: -khtml-gradient(linear, left top, left bottom, from(#353535), to(#020202));
    background-image: -moz-linear-gradient(top, #353535, #020202);
    background-image: -ms-linear-gradient(top, #353535, #020202);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #353535), color-stop(100%, #020202));
    background-image: -webkit-linear-gradient(top, #353535, #020202);
    background-image: -o-linear-gradient(top, #353535, #020202);
    background-image: linear-gradient(#353535, #020202);
    border-color: #020202 #020202 hsl(0, 0%, -4%);
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33);
    -webkit-font-smoothing: antialiased;
}

/*********************
    Next/Prev
*********************/

.next-prev a {
    color: #111;
}

.next-prev a:hover {
    color: #0066A4;
    text-decoration: none;
}

/*********************
    Alerts
*********************/
.alert a {
    color: #00529B;
    text-decoration: underline;
}

.alert a:hover {
    color: #0066A4;
    text-decoration: none;
}

.alert-success, .alert-success a {
    color: #4F8A10;
}

.alert-warning, .alert-warning a {
    color: #9F6000;
}

.alert-error, .alert-error a {
    color: #f2151f;
}

/*********************
    Modal
*********************/

.modal-remote-indicator {
    background: url("../img/modal-indicator.gif") no-repeat 50% 50%;
    width: 50px;
    height: 100px;
    margin: 0 auto;
}

.release-view .thumbnails > li {
    height: 150px;
}

.highlight { background-color: yellow }