/*

AUTHORS

 Copyright (C) 2010 Dmitry E. Oboukhov <unera@debian.org>
 Copyright (C) 2010 Roman V. Nikolaev <rshadow@rambler.ru>

LICENSE

This program is free software: you can redistribute  it  and/or  modify  it
under the terms of the GNU General Public License as published by the  Free
Software Foundation, either version 3 of the License, or (at  your  option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even  the  implied  warranty  of  MERCHANTABILITY  or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public  License  for
more details.

You should have received a copy of the GNU  General  Public  License  along
with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

/* This file contain styles for List frame */

/********************************************************************* Global */
body {
    background-color: white;
    color: WindowText;
    font-size: 10pt;
    font-family: sans;
    padding: 0px;
    margin: 0px;
}

table.list {
    width: 100%;
    white-space: nowrap;
    border-collapse: collapse;
}

/*********************************************************************** Head */
table.list thead th {
    color: CaptionText;
    padding: 4px;
    background-color: ActiveCaption;
    border-left: 2px white solid;
    border-right: 2px white solid;
}

table.list thead th.asc {
    background-position: right;
    background-repeat: no-repeat;
    background-image: url("status/sort-ascending.png");
    padding-right: 18px;
}

table.list thead th.desc {
    background-position: right;
    background-repeat: no-repeat;
    background-image: url("status/sort-descending.png");
    padding-right: 18px;
}

table.list thead th.sortable {
    cursor: pointer;
}

/************************************************************** Torrents list */
table.list tbody{
    cursor: pointer;
}

/* Special columns */
table.list tbody td.select {
    text-align: left;
    width: 1%;
    cursor: auto !important;
}

table.list tbody td.img {
    text-align: center;
    width: 16px;
    padding: 0px;
    margin: 0px;
}

table.list tbody td.custom {
    max-width: 24px;
    width: 24px;
    min-width: 24px;
    padding: 0px;
    margin: 0px;
    background-position: center;
    background-repeat: no-repeat;
}

table.list tbody td.custom.has_custom {
    background-image: url("status/info.png");
}

table.list tbody td.message {
    max-width: 24px;
    width: 24px;
    min-width: 24px;
    padding: 0px;
    margin: 0px;
}

table.list tbody td.message.warning
{
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("status/message.png");
}

/* Align classes */
table.list tbody td.digit {
    text-align: right;
}

table.list tbody td.info {
    text-align: center;
}

/* Rates highlight */
table.list tbody td.rate.positive {
    color: green;
}

table.list tbody td.rate.negative {
    color: #700;
}

/* Hide original data */
table.list tbody td span.data
{
    display: none;
}

/*********************************************************** List alternation */
table.list tbody tr.odd td.name,
table.list tbody tr.even td.custom,
table.list tbody tr.odd td.message {

}

table.list tbody tr.even td.name,
table.list tbody tr.even td.custom,
table.list tbody tr.even td.message {
    background-color: #f0f0f0;
}

/************************************************************** Status images */
table.list tbody td.img div.img{
    width: 16px;
    height: 16px;
    border: 0px;
    background-image: url("status/other.png");
    text-align: center;
    vertical-align: middle;
    top: 0px;
}

table.list tbody td.img div.img.hashing{
    background-image: url("status/hashing.png");
}

table.list tbody td.img div.img.seeding{
    background-image: url("status/seeding.png");
}

table.list tbody td.img div.img.seeding.paused{
    background-image: url("status/paused.png");
}
table.list tbody td.img div.img.seeding.stoped{
    background-image: url("status/stopped.png");
}

table.list tbody td.img div.img.downloading{
    background-image: url("status/downloading.png");
}

table.list tbody td.img div.img.downloading.paused{
    background-image: url("status/paused.png");
}
table.list tbody td.img div.img.downloading.stoped{
    background-image: url("status/stopped.png");
}

/*************************************************************** Selected row */
table.list tbody tr.selected,
table.list tbody tr.selected td{
    background-color: Highlight !important;
    color: HighlightText !important;
}

table.list tbody tr.selected td.img{
    background-color: white !important;
}

/*************************************************************** Inactive row */
table.list tbody tr.inactive{
}

/****************************************************************** Hover row */

table.list tbody tr:hover td.num,
table.list tbody tr:hover td.size,
table.list tbody tr:hover td.done,
table.list tbody tr:hover td.status,
table.list tbody tr:hover td.peers,
table.list tbody tr:hover td.down_speed,
table.list tbody tr:hover td.up_speed,
table.list tbody tr:hover td.rate {
    background-color: #f0f0f0;
}

/********************************************************** Percent indicator */
table.list tbody td.done div.indicator
{
    width: 100%;
    border: 1px Highlight solid;
    height: 4px;
    min-height: 4px;
    min-width: 100%;
    max-width: 100%;
}

table.list tbody td.done div.percent{
    background-color: InfoBackground;
    border-right: 1px Highlight solid;
    height: 100%;
    min-height: 100%;
    min-width: 0%;
    max-width: 100%;
}
