/* Reset */

a img,
:link img,
:visited img {
    border: none;
}

/*table { border-collapse: collapse; border-spacing: 0; }*/

:focus {
    outline: none;
}

/* Structure */

body {
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    text-align: left;
}

.aside {
    width: 300px;
}

.invisible {
    display: none;
}

/* Typography */

h2,
h3,
h4 {
    color: #333;
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 0 0 5px;
}

h2 {
    color: #555;
    font-size: 14px;
    font-weight: bold;
}

#mochaPage h3 {
    border-bottom: 1px solid #bbb;
    display: block;
    font-size: 12px;
    margin: 0 0 8px;
    padding: 6px 0;
}

#error_div {
    color: #f00;
    float: left;
    font-size: 14px;
    font-weight: bold;
}

h4 {
    font-size: 11px;
}

a {
    color: #e60;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin: 0;
    padding: 0 0 9px;
}

/* List Elements */

ul {
    list-style: outside;
    margin: 0 0 9px 16px;
}

dt {
    font-weight: bold;
}

dd {
    padding: 0 0 9px;
}

/* Code */

pre {
    background-color: #f6f6f6;
    border: 1px solid #d1d7dc;
    color: #006600;
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    margin: 0 0 10px;
    max-height: 250px;
    overflow: auto;
    padding: 10px;
}

/* Dividers */

hr {
    background-color: #ddd;
    border: 0px;
    color: #ccc;
    height: 1px;
}

.vcenter {
    vertical-align: middle;
}

#urls {
    height: 100%;
    width: 90%;
}

#trackersUrls {
    height: 100%;
    width: 90%;
}

#Filters ul {
    list-style-type: none;
}

#Filters ul li {
    margin-left: -16px;
}

#Filters ul img {
    height: 16px;
    padding: 2px 4px;
    vertical-align: middle;
    width: 16px;
}

.selectedFilter {
    background-color: #415a8d;
    color: #ffffff;
}

.selectedFilter a {
    color: #ffffff;
}

#properties {
    background-color: #e5e5e5;
}

a.propButton {
    border: 1px solid rgb(85 81 91);
    margin-left: 3px;
    margin-right: 3px;
    /*border-radius: 3px;*/
    padding: 2px;
}

a.propButton img {
    margin-bottom: -4px;
}

.scrollableMenu {
    overflow-x: hidden;
    overflow-y: auto;
}

/* context menu specific */

.contextMenu {
    background: #eee;
    border: 1px solid #999;
    display: none;
    list-style-type: none;
    padding: 0;
}

.contextMenu .separator {
    border-top: 1px solid #999;
}

.contextMenu li {
    margin: 0;
    padding: 0;
}

.contextMenu li a {
    color: #000;
    display: block;
    font-family: tahoma, arial, sans-serif;
    font-size: 12px;
    padding: 5px 20px 5px 5px;
    text-decoration: none;
    white-space: nowrap;
}

.contextMenu li a:hover {
    background-color: #ddd;
}

.contextMenu li a.disabled {
    color: #ccc;
    font-style: italic;
}

.contextMenu li a.disabled:hover {
    background-color: #eee;
}

.contextMenu li ul {
    background: #eee;
    border: 1px solid #999;
    left: -999em;
    list-style-type: none;
    margin: -29px 0 0 100%;
    padding: 0;
    position: absolute;
    width: 164px;
    z-index: 8000;
}

.contextMenu li ul li a {
    position: relative;
}

.contextMenu li a.arrow-right,
.contextMenu li a:hover.arrow-right {
    background-image: url("../images/arrow-right.gif");
    background-position: right center;
    background-repeat: no-repeat;
}

.contextMenu li:hover ul,
.contextMenu li.ieHover ul,
.contextMenu li li.ieHover ul,
.contextMenu li li li.ieHover ul,
.contextMenu li li:hover ul,
.contextMenu li li li:hover ul {
    /* lists nested under hovered list items */
    left: auto;
}

.contextMenu li img {
    height: 16px;
    margin-bottom: -4px;
    width: 16px;
}

.contextMenu li input[type="checkbox"] {
    position: relative;
    top: 3px;
}

/* Sliders */

.slider {
    clear: both;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    width: 400px;
}

.sliderWrapper {
    font-size: 1px;
    height: 9px;
    line-height: 1px;
    position: relative;
    width: 422px;
}

.sliderarea {
    background: #f2f2f2 url("../images/slider-area.gif") repeat-x;
    border: 1px solid #a3a3a3;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    font-size: 1px;
    height: 7px;
    left: 0;
    line-height: 1px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 0;
    width: 420px;
}

.sliderknob {
    background: url("../images/knob.gif") no-repeat;
    cursor: pointer;
    font-size: 1px;
    height: 9px;
    left: 0;
    line-height: 1px;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 19px;
    z-index: 2;
}

.update {
    padding-bottom: 5px;
}

.mochaToolButton {
    margin-right: 10px;
}

/* Mocha Customization */

#mochaToolbar {
    height: 29px;
    margin-top: 5px;
    overflow-y: hidden;
    position: relative;
}

#mochaToolbar .divider {
    background-image: url("../images/toolbox-divider.gif");
    background-position: left center;
    background-repeat: no-repeat;
    padding-left: 14px;
    padding-top: 15px;
}

.MyMenuIcon {
    margin-bottom: -3px;
    margin-left: -18px;
    padding-right: 5px;
}

#mainWindowTabs {
    float: right;
    margin: 4px 5px 0 0;
}

#torrentsFilterToolbar {
    float: right;
    margin-right: 30px;
}

#torrentsFilterInput {
    background-image: url("../images/edit-find.svg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-left: 2em;
    width: 160px;
}

#torrentFilesFilterToolbar {
    float: right;
    margin-right: 30px;
}

#torrentFilesFilterInput {
    background-image: url("../images/edit-find.svg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-left: 2em;
    width: 160px;
}

/* Tri-state checkbox */

label.tristate {
    background: url("../images/3-state-checkbox.gif") 0 0 no-repeat;
    display: block;
    float: left;
    height: 13px;
    margin: 0.15em 8px 5px 0px;
    overflow: hidden;
    text-indent: -999em;
    width: 13px;
}

label.checked {
    background-position: 0 -13px;
}

label.partial {
    background-position: 0 -26px;
}

fieldset.settings {
    border: solid 1px black;
    border-radius: 8px;
    padding: 4px 4px 4px 10px;
}

fieldset.settings legend {
    font-weight: bold;
    margin-left: 8px;
    padding: 4px;
}

fieldset.settings label {
    padding: 2px;
}

fieldset.settings + div.formRow {
    margin-top: 10px;
}

div.formRow {
    clear: left;
    display: block;
}

.filterTitle {
    display: block;
    font-weight: bold;
    overflow: hidden;
    padding-left: 5px;
    padding-top: 5px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.filterTitle img {
    height: 16px;
    margin-bottom: -3px;
    padding: 0 5px;
    width: 16px;
}

.filterTitle img.rotate {
    transform: rotate(270deg);
}

ul.filterList {
    margin: 0 0 0 16px;
    padding-left: 0;
}

ul.filterList a {
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.filterList li:hover {
    background-color: #e60;
}

ul.filterList li:hover a {
    color: white;
}

td.generalLabel {
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
    width: 1px;
}

#torrentFilesTableDiv {
    line-height: 20px;
}

#torrentTrackersTableDiv,
#webseedsTable {
    line-height: 25px;
}

.filesTableCollapseIcon {
    cursor: pointer;
    height: 15px;
    margin-bottom: -3px;
    padding-right: 5px;
    width: 15px;
}

.filesTableCollapseIcon.rotate {
    margin-bottom: -1px;
    transform: rotate(270deg);
}

.unselectable {
    -webkit-touch-callout: none;
    user-select: none;
}

#prop_general {
    padding: 2px;
}

.piecesbarWrapper {
    position: relative;
    width: 100%;
}

.piecesbarCanvas {
    height: 100%;
    image-rendering: pixelated;
    inset: 0;
    position: absolute;
    width: 100%;
}

#watched_folders_tab {
    border-collapse: collapse;
}

#watched_folders_tab td,
#watched_folders_tab th {
    border: 1px solid black;
    padding: 2px 4px;
}

.select-watched-folder-editable {
    background-color: white;
    border: solid grey 1px;
    height: 20px;
    position: relative;
    width: 160px;
}

.select-watched-folder-editable select {
    border: none;
    bottom: 0px;
    left: 0px;
    margin: 0;
    position: absolute;
    top: 0px;
    width: 160px;
}

.select-watched-folder-editable input {
    border: none;
    left: 0px;
    padding: 1px;
    position: absolute;
    top: 0px;
    width: 140px;
}

.select-watched-folder-editable select:focus,
.select-editable input:focus {
    outline: none;
}

/*
 * Workaround to prevent the transfer list from
 * disappearing when zooming in the browser.
 */
#filtersColumn_handle {
    margin-left: -1px;
}

.combo_priority {
    font-size: 1em;
}

td.statusBarSeparator {
    background-image: url("../images/toolbox-divider.gif");
    background-position: center 1px;
    background-repeat: no-repeat;
    background-size: 2px 18px;
    width: 22px;
}

/* Statistics window */
.statisticsValue {
    text-align: right;
}

/* Search tab */

#SearchPanel,
#SearchPanel_wrapper,
#SearchPanel_pad {
    height: inherit;
}

#searchResults {
    height: 100%;
    padding: 0 20px;
}

#searchResultsTableContainer {
    -moz-height: calc(100% - 140px);
    -webkit-height: calc(100% - 140px);
    height: calc(100% - 140px);
    overflow: auto;
}

#searchResultsTableDiv {
    -moz-height: calc(100% - 26px) !important;
    -webkit-height: calc(100% - 26px) !important;
    height: calc(100% - 26px) !important;
}

#searchResults .dynamicTable {
    width: 100%;
}

#searchResults .numSearchResults {
    font-style: italic;
}

.red {
    color: red;
}

.green {
    color: green;
}

.searchPluginsTableRow {
    cursor: pointer;
}

#torrentFilesTableDiv .dynamicTable tr.nonAlt {
    background-color: #fff;
}

#torrentFilesTableDiv .dynamicTable tr.nonAlt.selected {
    background-color: #354158;
    color: #fff;
}

#torrentFilesTableDiv .dynamicTable tr.nonAlt:hover {
    background-color: #ee6600;
    color: #fff;
}
