/**
 * @project     OTRS (http://www.otrs.org) - Agent Frontend
 * @version     $Revision: 1.31.2.1 $
 * @copyright   OTRS AG
 * @license     AGPL (http://www.gnu.org/licenses/agpl.txt)
 */

/**
 * @package     Skin "Default"
 * @section     Tables
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  General stuff
 */

/*
 * FF3.6 has a problem with setting the position:relative only on :hover state.
 * As a workaround it is set always and a special z-index on hover.
 */
.DataTable tbody tr,
.TableSmall tbody tr {
    position: relative;
}

.DataTable tbody tr:hover,
.TableSmall tbody tr:hover {
    z-index: 10;
}

.DataTable tbody td:first-child,
.TableSmall tbody td:first-child {
    -webkit-border-top-left-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-bottomleft: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.DataTable tbody td.Last,
.TableSmall tbody td.Last {
    border-right: none;
    -webkit-border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-radius-topright: 3px;
    -moz-border-radius-bottomright: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.DataTable tbody tr:hover td,
.TableSmall tbody tr:hover td {
    background: url(../img/table_small_hover_bg.png) repeat-x center;
    background: -moz-linear-gradient(center top, #FFE7BD, #FBBA49 20%, #F6AD3E 51%, #F3960D 51%, #E98207 95%, #E07006);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFE7BD), to(#E07006), color-stop(20%, #FBBA49), color-stop(51%, #F6AD3E), color-stop(51%, #F3960D), color-stop(95%, #E98207));
    -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.DataTable tbody tr.Last:hover td,
.TableSmall tbody tr.Last:hover td {
    -moz-box-shadow: 0 0 0;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
}

.DataTable tbody tr:active td.Clickable,
.TableSmall tbody tr:active td.Clickable {
    background: url(../img/table_small_hover_bg.png) repeat-x center;
    background: -moz-linear-gradient(center top, #FFE4B5, #FAA91C 20%, #EB8C0B 95%, #E37B09);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFE4B5), to(#E37B09), color-stop(20%, #FBB93D), color-stop(51%, #F6AB2D), color-stop(51%, #F49F13), color-stop(95%, #EB8C0B));
    -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.3);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

/**
 * @subsection  Generic table elements
 */
tbody tr.UnreadArticles td {
    font-weight: bold !important;
}

.DataTable td,
.TableSmall td {
    line-height: 15px;
    vertical-align: middle;
}

.DataTable tr:hover,
.TableSmall tr:hover {
    color: #000;
}

table tr.MasterAction {
    cursor: pointer;
}

/**
 * @subsection  Standard DataTable
 */
.DataTable {
    width: 100%;
    background-color: #FDFDFD;
    border: 1px solid #C9C9C9;
    border-top-color: #C0C0C0;
    clear: both;
    border-collapse: separate;
    -moz-box-shadow: 0 1px 0 #FFF;
    -webkit-box-shadow: 0 1px 0 #FFF;
    box-shadow: 0 1px 0 #FFF;
}

.DataTable.VariableWidth {
    width: auto;
}

.DataTable thead {
    background: #EEE url("../img/SmallDarkGradient.png") repeat-x;
}

.DataTable thead th {
    padding: 4px 10px 3px;
    color: #4B4B4B;
    font-size: 11px;
    text-transform: uppercase;
    background: none;
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #BBB;
    border-right: 1px solid #CCC;
    vertical-align: bottom;
    white-space: nowrap;
}

.RTL .DataTable thead th {
    border-left: 1px solid #CCC;
    border-right:none;
}

.DataTable thead th.Last {
    background: none;
    border-right: none;
}

.RTL .DataTable thead th.Last {
    border-left: none;
}

.DataTable thead th a {
    background-image: none;
    color: #444;
    font-size: 11px;
    height: 12px;
    line-height: 12px;
    display: block;
}

.DataTable thead .SortAscending a,
.DataTable thead .SortDescending a {
    color: #2A2A2A;
    padding-right: 15px;
}

.DataTable thead .SortAscending a {
    background: url(../img/thead_sortup_bg.png) no-repeat center right;
}

.DataTable thead .SortDescending a {
    background: url(../img/thead_sortdown_bg.png) no-repeat center right;
}

.DataTable tbody {
    -moz-box-shadow: 0 1px 2px #E8E8E8 inset;
    -webkit-box-shadow: 0 1px 2px #E8E8E8 inset;
    box-shadow: 0 1px 2px #E8E8E8 inset;
}

.DataTable tbody tr.Invalid {
    color: #CCC;
}

.DataTable tbody td {
    padding: 0 10px;
    border-right: 1px dotted #CCC;
}

.RTL .DataTable tbody td {
    border-left: 1px dotted #CCC;
    border-right: none;
}

.DataTable tbody td.Last {
    border-right: none;
}

.DataTable tbody td:last-child {
    border-right: none;
}

.RTL .DataTable tbody td.Last {
    border-left: none;
}

.RTL .DataTable tbody td:last-child {
    border-left: none;
}

.DataTable tr td {
    line-height: 16px;
}

.DataTable tr:first td {
    border-top: 1px solid #EEE;
}

.DataTable tr td.Highlight {
    background-color: #EEE;
}

.DataTable tr.Even td {
    background-color: #F5F5F5;
}

.DataTable tr:nth-child(even) td {
    background-color: #F5F5F5;
}

.DataTable tr.Even td.Highlight {
    background-color: #E5E5E5;
}

.DataTable tr:nth-child(even) td.Highlight {
    background-color: #E5E5E5;
}

.DataTable tr:hover td a {
    color: #000;
}

.DataTable td:first-child input {
    margin: 0;
}

/**
 * @subsection  Sortable DataTable
 */

.Sortable.DataTable th {
    padding: 0;
}

.Sortable.DataTable th a,
.Sortable.DataTable th span {
    padding: 4px 10px 3px;
    display: block;
}

.Sortable.DataTable .SortAscending,
.Sortable.DataTable .SortDescending {
    border-top-color: #DDD;
    border-right-color: #AAA;
    border-bottom-color: #999;
}

/**
 * @subsection  Overview Small View Table
 */
.TableSmall {
    width: 100%;
    font-size: 12px;
    color: #303030;
    border: none;
    background: #FFF;
}

.TableSmall thead {
    border-bottom: none;
}

.TableSmall .Checkbox {
    margin-left: 7px;
}

th.Checkbox,
td.Checkbox {
    width: 30px;
}

th.Flags {
    width: 34px;
}

td.Flags {
    width: 29px;
}

th.UnreadArticles,
td.UnreadArticles {
    width: 30px;
}

th.Direction,
td.Direction {
    width: 40px;
}

th.Attachment,
td.Attachment {
    width: 40px;
    padding-left: 5px !important;
}

.TableSmall thead th {
    padding-top: 14px;
    background: url("../img/thead_isolator.png") no-repeat right bottom;
    vertical-align: bottom;
}

.RTL .TableSmall thead th {
    background-position: left bottom;
}

.TableSmall thead a,
.TableSmall thead span {
    margin: 0 2px 1px 1px;
    padding: 0 10px;
    color: #4A4A4A;
    font-size: 11px;
    line-height: 15px;
    height: 15px;
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
}

.RTL .TableSmall thead a,
.RTL .TableSmall thead span {
    margin: 0 1px 1px 2px;
}

.TableSmall thead span {
    color: #000;
}

.TableSmall thead .UnreadArticles a {
    padding: 0 0 0 5px;
}

.RTL .TableSmall thead .UnreadArticles a {
    padding: 0 5px 0 0;
}

.TableSmall thead .SortAscending a,
.TableSmall thead .SortDescending a,
.TableSmall thead .headerSortUp a,
.TableSmall thead .headerSortDown a {
    color: #2B2B2B;
    font-weight: bold;
}

.TableSmall thead .SortAscending a,
.TableSmall thead .headerSortUp a {
    background: url(../img/thead_sortup_bg.png) no-repeat center right;
    padding-right: 20px;
}

.RTL .TableSmall thead .SortAscending a,
.RTL .TableSmall thead .headerSortUp a {
    background: url(../img/thead_sortup_bg_rtl.png) no-repeat center left;
}

.TableSmall thead .SortDescending a,
.TableSmall thead .headerSortDown a {
    background: url(../img/thead_sortdown_bg.png) no-repeat center right;
    padding-right: 20px;
}

.RTL .TableSmall thead .SortDescending a,
.RTL .TableSmall thead .headerSortDown a {
    background: url(../img/thead_sortdown_bg_rtl.png) no-repeat center left;
}

.TableSmall thead a span {
    height: 15px;
    width: 16px;
    display: block;
}

.TableSmall thead a span.Direction {
    background: url(../img/direction_header.png) no-repeat center;
}

.TableSmall thead .Attachments a span {
    background: url(../img/attachment_header.png) no-repeat center;
}

.TableSmall thead a span.Flag {
    height: 9px;
    width: 16px;
    background-color: #999;
    margin-top: 6px;
}

.TableSmall thead .UnreadArticles span {
    background-position: 0 -23px;
}

.TableSmall td {
    padding: 0 10px;
    background-color: #FDFDFD;
    border-right: 1px dotted #CCC;
}

.RTL .TableSmall td {
    border-right:none;
    border-left: 1px dotted #CCC;
}

.TableSmall td.NonTextContent {
    padding-left: 0;
    padding-right: 0;
}

.TableSmall tbody tr.Active td {
    color: #1A1A1A;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.TableSmall tbody tr td:last-child {
    border-right: 1px solid transparent;
}

.TableSmall tbody tr td.Last {
    border-right: 1px solid transparent;
}

.RTL .TableSmall tbody tr td.Last {
    border-left: none;
}

.TableSmall tbody tr.Active td:last-child {
    border-right: 1px solid #000;
}

.TableSmall tbody tr.Active td.Last {
    border-right: 1px solid #000;
}

.TableSmall tbody tr td:first-child {
    border-left: 1px solid transparent;
}

.RTL .TableSmall tbody tr td:first-child {
    border-left: 1px dotted #CCC;
    border-right:1px solid transparent;
}

.TableSmall tbody tr.Active td:first-child {
    border-left: 1px solid #000;
}

.TableSmall td a {
    color: #303030;
}

.TableSmall tr:hover td a,
.TableSmall tr.Active td a {
    color: #000;
}

.TableSmall tr.Even td {
    background-color: #F5F5F5;
}

.TableSmall tr:nth-child(even) {
    background-color: #F5F5F5;
}

.TableSmall td:first-child {
    padding-top: 1px;
}

.TableSmall tbody .Flags {
    line-height: 11px;
    padding-top: 2px;
    padding-left: 5px;
}

.TableSmall tbody td span.Direction {
    display: block;
    width: 24px;
    height: 15px;
    text-indent: -9999px;
}

.TableSmall tbody td span.Direction.Incoming {
    background: url(../img/direction_incoming.png) no-repeat center;
}

.TableSmall tbody td span.Direction.Outgoing {
    background: url(../img/direction_outgoing.png) no-repeat center;
}

.TableSmall tbody td span.Direction.Internal {
    background: url(../img/direction_internal.png) no-repeat center;
}

.TableSmall tbody td a.Attachment {
    display: block;
    width: 24px;
    height: 16px;
    text-indent: -9999px;
    background: url(../img/attachment_sprite.png) no-repeat top center;
    cursor: pointer;
}

.TableSmall tbody td a.Attachment:hover {
    background-position: center -16px;
}

.TableSmall td h2 {
    font-size: 12px;
    margin-bottom: 0;
}

/**
 * @subsection  Table Context Settings
 */
.TableContextSettings {
    position: absolute;
    right: 0;
    top: 28px;
}

.TableContextSettings a {
    display: block;
    width: 18px;
    height: 19px;
    background: url(../img/contextsettings.png) no-repeat 5px 4px;
    text-indent: -9999px;
}

/**
 * @subsection  Fixed Header
 */

.FixedHeader table {
    border-collapse: separate;
    border-left: 1px solid #C6C5C4;
    border-right: 1px solid #C6C5C4;
}

.FixedHeader thead tr {
    width: 100%;
    margin: 0;
    top: 0;
    display: block;
    position: absolute;
}

.FixedHeader td {
    line-height: 18px;
}

.FixedHeader .From div,
.FixedHeader .Subject div,
.FixedHeader .Type div,
.FixedHeader td.Created a {
    height: 20px;
    overflow: hidden;
    display: block;
}

.FixedHeader .No {
    width: 42px;
}

.FixedHeader .Attachments {
    width: 20px;
}

/**
 * @subsection  Handle for resizing tables
 */
.Handle {
    border-top: 1px solid #C6C5C4;
    background-color: #FFF;
    width: 100%;
}

.Handle a {
    display: block;
    margin: auto;
    height: 14px;
    width: 79px;
    background: transparent url(../img/handle.png) no-repeat;
    text-indent: -9999px;
    cursor: ns-resize;
}

.Handle.ui-resizable-s {
    cursor:auto;
    height:auto !important;
    left:auto;
}

.Handle.ui-resizable-handle {
    display: block;
    font-size: inherit;
    z-index: 19;
}


} /* end @media */