/*
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
Copyright (C) 2021 Znuny GmbH, https://znuny.org/

This software comes with ABSOLUTELY NO WARRANTY. For details, see
the enclosed file COPYING for license information (GPL). If you
did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.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:last-child,
.TableSmall tbody td:last-child {
    border-right: none;
}

.DataTable tbody tr td,
.TableSmall tbody tr td,
.DataTable tbody tr td.Clickable,
.TableSmall tbody tr td.Clickable,
.DataTable tr:nth-child(even) td.Highlight {
    transition: var(--main-transition);
 }

.DataTable tbody tr:hover td,
.TableSmall tbody tr:hover td,
.DataTable tbody tr:active td.Clickable,
.TableSmall tbody tr:active td.Clickable,
.DataTable tr:nth-child(even):hover td.Highlight,
.DataTable tbody tr:nth-child(even):hover td:not(:first-child:last-child) {
    background: var(--primary-color-rgb);
}

table thead tr th:first-child,
table tbody tr td:first-child{
    padding-left: var(--padding-lg);
}

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

.DataTable td,
.TableSmall td {
    padding: var(--padding-lg);
    vertical-align: middle;
    box-sizing: border-box;
    font-size: var(--main-font-size);
}

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

.TableSmall tr td div,
.TableSmall tr td a {
    color: var(--table-text-color);
}

table tr.MasterAction {
    cursor: pointer;
}

/**
 * @subsection  Standard DataTable
 */
.DataTable {
    width: 100%;
    background-color: var(--table-bg);
    border: none;
    clear: both;
    border-collapse: separate;
}

.DataTable.border {
    border-radius: var(--border-radius-xs);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
}

.DataTable#UserRoles,
.DataTable#UserGroups {
    width: 100%;
    border-radius: var(--border-radius-sm);
    background: none;
}

.DataTable.FixedLayout {
    table-layout: fixed;
}

.DataTable.VariableWidth {
    width: auto;
}

.DataTable thead {
    background: var(--table-th-bg);
}

table thead a {
    font-size: var(--font-size-sm);
    font-weight: var(--semi-bold);
}

.SidebarColumn .DataTable thead th {
    padding: var(--padding-sm);
    background: var(--table-td-even-bg);
}

.DataTable thead th,
.DataTable thead th.DashboardHeader,
.TableSmall thead th,
.TableSmall thead th > a,
.TableSmall thead th > span {
    position: relative;
    padding: 12px var(--padding-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--semi-bold);
    text-transform: uppercase;
    color: var(--table-text-color);
    background: var(--table-th-bg);
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1;
}

tr th a,
tr th a:hover {
    color: inherit;
}

.ContentColumn .DataTable:not(.TableList) thead th {
    border-top: var(--border-width) var(--border-solid) var(--border-color);
    border-bottom: var(--border-width) var(--border-solid) var(--border-color);
}

thead tr:not(:only-child):first-child th:last-child {
    border: 0;
}

.ContentColumn .DataTable thead th:nth-child(2):last-child {
    width: 10%;
}

.AdminManagement .ContentColumn .DataTable thead th,
.WidgetSimple form:first-child .DataTable thead th,
.WidgetSimple .Content table.DataTable:first-child thead th {
    border-top: 0;
}

.TableSmall thead th,
.TableSmall thead th > a,
.TableSmall thead th > span {
    padding: 12px var(--padding-sm);
}

.TicketZoom .DataTable thead th,
.TicketZoom .DataTable thead th.DashboardHeader,
.TicketZoom .TableSmall thead th,
.TicketZoom .TableSmall thead th > a,
.TicketZoom .TableSmall thead th > span {
    /*padding: var(--padding-sm) var(--padding-lg);*/
    padding: var(--padding-sm);
}

.TicketZoom tbody tr td {
    padding-top: var(--padding-md);
    padding-bottom: var(--padding-md);
}

.TicketZoom tbody tr td a.LinkObjectLink:first-child {
    color: var(--primary-color);
}

.DataTable thead th.UnreadArticles {
    padding: 4px 0px 3px 0px;
    text-align: center;
}

.DataTable thead th.UnreadArticles > div {
    display: flex;
    justify-content: center;
}

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

.DataTable thead th label {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.DataTable thead th:last-child {
    border-right: none;
}

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

/*Only seems to be taking effect on table Triggers which are being styled somewhere else
.DataTable thead th a {
    background-image: none;
    color: #444;
    font-size: 11px;
    height: 12px;
    line-height: 1;
    display: block;
}*/

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

.DataTable thead .SortDescending > a:after,
.TableSmall thead .SortDescending > a:after {
    content: "\25BC";
    display: block;
    position: absolute;
    left: 2px;
    top: 3px;
}

.DataTable thead .SortAscending > a:after,
.TableSmall thead .SortAscending > a:after {
    content: "\25B2";
    display: block;
    position: absolute;
    left: 0px;
    top: 0px;
}

.DataTable tbody tr.Invalid td {
    background-color: var(--tr-disabled-bg);
    color: var(--tr-disabled-text);
}

.DataTable tbody td {
    padding: var(--padding-md) var(--padding-lg);
    border-right: none;
    font-size: var(--main-font-size);
    line-height: normal;
    color: #44444F;
}

.DataTable[summary = "Execution Schedule"] tbody td {
    padding: var(--padding-md) var(--padding-sm);
}

.DataTable.FixedLayout tbody td a.AsBlock {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.DataTable tbody td.UnreadArticles {
    padding: 0px;
}

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

.DataTable tbody tr:hover td {
    border-right-color: #fff;
}*/

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

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

/* DataTable's td already referenced in this file (.DataTable tbody td)
.DataTable tr td {
    font-size: var(--main-font-size);
    line-height: var(--table-tr-line-hight);
}*/

.DataTable tr:first td {
    border-top: none;
}

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

.DataTable tr:nth-child(even) td:not(:first-child:last-child) {
    background-color: var(--table-td-even-bg);
}

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

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

.DataTable tr td.Highlight {
    border-right: 1px solid #CCC;
}

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

.DataTable tr td a,
.DataTable tr:hover td a {
    color: var(--main-font-color);
}

.DataTable tr td em a {
    color: var(--primary-color);
}

.DataTable tr:hover td em a {
    color: var(--primary-color-darker);
}

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


/**
 * @subsection  QueueOverviewTotals DataTable
 */

.DataTable thead th.QueueOverviewTotals,
.Row td.QueueOverviewTotals,
.Row a.QueueOverviewTotals {
    font-weight: bold;
}

.DataTable .Row td.QueueOverviewTotals {
    text-transform: uppercase;
    color: #4B4B4B;
    border-top: 1px dotted #CCCCCC;
}

/**
 * @subsection  Sortable DataTable
 */

.Sortable.DataTable th {
    /*padding: 0;*/
}

.Sortable.DataTable th a,
.Sortable.DataTable th span {
    color: var(--black);
    /* padding: 4px 10px 3px;*/
    display: block;
    position: relative;
}

.Sortable.DataTable th.SortAscending a,
.Sortable.DataTable th.SortDescending a {
    padding-left: 15px;
}

.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: var(--font-size-sm);
    color: var(--main-font-color);
    border-top: 0;
    border-bottom: 0;
    background: transparent;
    border-radius:0;
}

.TableSmall thead {
    border-bottom: none;
}

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

th.Flags {
    width: 34px;
}

tr td.Flags {
    width: 29px;
}

tr td.Flags:first-child {
    padding: 0 var(--padding-xs) 0 var(--padding-lg);
}

.DataTable tr td.Flags {
    line-height: inherit;
}

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

th.Direction,
td.Direction {
    width: 30px;
    text-align: center;
}

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

/*.TableSmall thead th {
    vertical-align: middle;
    border: none;
    position: relative;
}*/

.TableSmall thead th:last-child {
    border-right: 0px;
}

/*.TableSmall thead th a {
    padding-top: 2px;
    padding-bottom: 2px;
}*/

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

/* Merged with similar changes being applied to .Datatable
.TableSmall thead a,
.TableSmall thead span {
    margin: 0;
    padding: 0 10px;
    color: #4A4A4A;
    line-height: 1;
    height: auto;
    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 span.UnreadArticles a i {
    font-size: 12px;
}

.TableSmall thead span.UnreadArticles i:first-child {
    font-size: 16px !important;
}

thead .SortAscending a,
thead .headerSortUp a,
thead .SortDescending a,
thead .headerSortDown a {
    color: #000;
}

.TableSmall thead a span,
.DataTable thead a span {
    height: 15px;
    width: 16px;
    display: block;
    text-align: center;
}

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

.TableSmall td {
    background-color: var(--white);
    border-right: none;
    border-bottom: var(--border-width) var(--border-solid) var(--table-tr-border-bottom);
}

.RTL .TableSmall td {
    border-right:none;
    border-left: none;
}

.TableSmall td.NonTextContent {
    padding: var(--padding-lg);
}

/*.TableSmall tbody tr.Active td,
.DataTable tbody tr.Active td {
    color: #1A1A1A;
}

.DataTable tbody tr.Active td {
    background-color: #e5e5e5;
}

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

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

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

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

.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 td a.DynamicFieldLink {
    color: #FF7722;
}

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

.TableSmall tr:nth-child(even) td {
    background-color: var(--table-td-even-bg);
}

.TableSmall tbody .Flags{
    padding: 0 var(--padding-sm);
}

.TableSmall tbody td span.Direction,
.DataTable tbody td span.Direction {
    text-align: center;
    display: block;
    position: relative;
    font-size: 14px;
    width: 30px;
}

.TableSmall tbody td span.Direction i,
.DataTable tbody td span.Direction i {
    color: #555;
}

.TableSmall tbody td span.Direction.Incoming .fa-long-arrow-left,
.DataTable tbody td span.Direction.Incoming .fa-long-arrow-left,
.TableSmall tbody td span.Direction.Outgoing .fa-long-arrow-right,
.DataTable tbody td span.Direction.Outgoing .fa-long-arrow-right {
    color: #000;
    font-size: 12px;
}

.TableSmall tbody td.Attachment,
.DataTable tbody td.Attachment {
    text-align: center;
}

.TableSmall tbody td a.Attachment,
.DataTable tbody td a.Attachment {
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.TableSmall tbody td a.Attachment i,
.DataTable tbody td a.Attachment i {
    color: #000;
}

.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  Ticket List Tables
 */

.TicketList {
    overflow: auto;
    border-radius: var(--border-radius-sm);
}

.TicketList table {
    border-collapse: separate;
    position: relative;
    overflow: hidden;
}

.TicketZoom .TicketList table thead th {
    background: var(--main-bg-color);
}

.TicketList table i.fa-exchange,
.TicketList table i.fa-paperclip {
    color: var(--gray-darker);
    font-size: 12px;
}

.TicketList td {
    line-height: 1;
}

.TicketList td.From div,
.TicketList td.Subject div,
.TicketList td.Created a {
    /*height: 40px;*/
    overflow: hidden;
    display: block;
}

.TicketList .No {
    width: 30px;
    text-align: center;
}

.TicketList .Attachments {
    width: 60px;
}

#ArticleTable thead {
    background: #f0f0f0;
    background: -moz-linear-gradient(top,  #f0f0f0 0%, #eaeaea 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f0f0), color-stop(100%,#eaeaea));
    background: -webkit-linear-gradient(top,  #f0f0f0 0%,#eaeaea 100%);
    background: -o-linear-gradient(top,  #f0f0f0 0%,#eaeaea 100%);
    background: -ms-linear-gradient(top,  #f0f0f0 0%,#eaeaea 100%);
    background: linear-gradient(to bottom,  #f0f0f0 0%,#eaeaea 100%);
}

/**
 * @subsection  Handle for resizing tables
 */
.Handle {
    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;
}



/**
 * @subsection  Table headers-filters
 */
 .TableSmall thead span.Gray {
    color: var(--table-text-color);
    padding: 0 var(--padding-sm);
    padding-left: 1px;
}

.DataTable .ColumnFilter {
    width: 120px;
    text-transform: none;
    float: left;
    background: var(--gray-light);
    height: 28px;
}

.ColumnFilter + .AJAXLoader {
    /*margin: auto;*/
    /*width: 14px;*/
    /*height: 14px;*/
    padding: 0;
    background: none;
    position: absolute;
    z-index: 99;
    left: 0;
    top: 22px;
}

#Ticket {
    border: var(--border-width) var(--border-solid) var(--border-color);
    border-top: 0;
    overflow: auto;
}

#Ticket,
#Ticket .DataTable {
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}

#Ticket .DataTable th {
    padding: var(--padding-lg);
}

/* Merged with ".DataTable .ColumnFilter"
select.ColumnFilter {
    width: 100px;
}*/

/* Note - Code reduction below -                */
/*        Removed extensive element reference, */
/*        should work with no problems          */

/*.DataTable thead .SortAscendingLarge a,
.DataTable thead .SortDescendingLarge a,
.TableSmall thead .SortAscendingLarge a,
.TableSmall thead .SortDescendingLarge a*/
.SortAscendingLarge > a,
.SortDescendingLarge > a {
    color: red;
    height: 16px;
    font-weight: bold;
    position: relative;
}

/*.DataTable thead .SortDescendingLarge > a:after,
.TableSmall thead .SortDescendingLarge > a:after*/
.SortDescendingLarge > a:first-child:after {
    content: "\25BC";
    position: absolute;
    left: -13px;
    top: 1px;
    z-index: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.SortDescendingLarge > a + a:after {
    background-color: red;
}

thead .headerSortUp > a:before,
thead .tablesorter-headerDesc > div.tablesorter-header-inner > a:before {
    content: "\25BC";
    display: inline-block;
    margin-right: 2px;
}

thead .headerSortDown > a:before,
thead .tablesorter-headerAsc > div.tablesorter-header-inner > a:before {
    content: "\25B2";
    display: inline-block;
    margin-right: 2px;
}

.DataTable thead .SortAscendingLarge > a:first-child:after,
.TableSmall thead .SortAscendingLarge > a:first-child:after {
    content: "\25B2";
    position: absolute;
    left: -13px;
    bottom: 0;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.DataTable thead th.DashboardHeader > a,
.TableSmall thead th.OverviewHeader > a,
.DataTable thead th.DashboardHeader span.Gray,
th.OverviewHeader .OverviewControl {
    height: auto;
    line-height: 1;
    padding: 0 var(--padding-sm);
    padding-left: 1px;
    color: var(--table-text-color);
}

/* needs following line in order to override styles above */
.DataTable thead th.DashboardHeader .ColumnSettingsTrigger,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger {
    opacity: 0.8;
    padding: 5px 6px;
    top: -1px;
    margin-left: -10px;
    position: relative;
    z-index: 0;
    border-radius: 3px;
    transition: var(--main-transition);
}

.DataTable thead th.DashboardHeader .ColumnSettingsTrigger i,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger i {
    color: var(--gray-darker);
    vertical-align: middle;
    font-size: var(--font-size-sm);
}

/*.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger {
    margin: 2px -18px 0px 0px;
}*/

/*.DataTable thead th.DashboardHeader.FilterActive .ColumnSettingsTrigger,
.DataTable thead th.DashboardHeader .ColumnSettingsTrigger:hover,
.DataTable thead th.DashboardHeader .ColumnSettingsTrigger.Active,
.TableSmall thead th.OverviewHeader.FilterActive .ColumnSettingsTrigger,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger:hover,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger.Active,*/
.FilterActive .ColumnSettingsTrigger,
.ColumnSettingsTrigger:hover,
.ColumnSettingsTrigger.Active {
    /*border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    box-shadow: 1px 1px 1px #a9a9a9 inset, -1px -1px 1px #a9a9a9 inset;*/
    background: var(--icon-hover-color);
    opacity: 1.0;

}

/*.DataTable thead th.DashboardHeader.FilterActive .ColumnSettingsTrigger i,
.DataTable thead th.DashboardHeader .ColumnSettingsTrigger.Active i,
.TableSmall thead th.OverviewHeader.FilterActive .ColumnSettingsTrigger i,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger.Active i*/
.ColumnSettingsTrigger i,
.ColumnSettingsTrigger.Active i {
    color: #333333;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsTrigger:after,
.TableSmall thead th.OverviewHeader .ColumnSettingsTrigger:after*/
.ColumnSettingsTrigger:after {
    content: "";
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsContainer,
.TableSmall thead th.OverviewHeader .ColumnSettingsContainer*/
.ColumnSettingsContainer {
    position: relative;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox*/
.ColumnSettingsBox {
    background-color: var(--white);
    border: var(--border-width) var(--border-solid) var(--pill-color-selected);
    -moz-border-radius: var(--border-radius-sm);
    -webkit-border-radius: var(--border-radius-sm);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--menu-box-shadow);
    display: none;
    padding: var(--padding-md);
    position: absolute;
    top: 6px;
    right: 2px;
    min-width: 175px;
    z-index: 80;
}

.ColumnSettingsBox > input {
    visibility: hidden;
    height: 0;
    width: 0;
    min-width: unset;
}

.ColumnSettingsBox input.InputField_Search {
    line-height: normal;
}

.ColumnSettingsBox div.InputField_InputContainer {
    max-width: unset;
    width: unset;
    display: flex;
    align-items: center;
    /*width: min-content;*/
}

.ColumnSettingsBox div.InputField_InputContainer .InputField_ClearSearch {
    position: absolute;
    padding: 0;
    background: transparent;
}

/* ── Column filter: Modernize widget alignment & styling ── */

/* Give the full input row a white background and a clear border */
.ColumnSettingsBox div.InputField_Container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    width: auto;
    max-width: 100%;
}

.ColumnSettingsBox div.InputField_InputContainer {
    background: var(--white);
    border: var(--border-width) var(--border-solid) var(--border-input-color);
    border-radius: var(--border-radius-sm);
    flex: 1 1 auto;
    min-width: 0;
}

/* Selected-value pill ("-") — constrain to natural height so it fits the container */
.ColumnSettingsBox div.InputField_Selection {
    height: 75%;
    top: 4px;
    transform: none;
    padding: 0 var(--padding-xs);
}

/* ShowTreeSelection icon — vertically center inside the flex row */
.ColumnSettingsBox a.ShowTreeSelection {
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-sm);
    color: var(--gray-dark);
    background: transparent;
    transition: var(--main-transition);
}

.ColumnSettingsBox a.ShowTreeSelection:hover,
.ColumnSettingsBox a.ShowTreeSelection:focus {
    color: var(--primary-color);
}

/* Merged with style above"
.MainBox.Dashboard .DataTable thead th.DashboardHeader .ColumnSettingsBox,
.MainBox.Dashboard .TableSmall thead th.OverviewHeader .ColumnSettingsBox {
    top: 20px;
}*/

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox select,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox select*/
.ColumnSettingsBox select {
    margin-top: 0px;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue*/
.ColumnSettingsBox span.SelectedValue:not(.Hidden) {
    display: block;
    text-transform: none;
    margin-bottom: 8px;
    position: relative;
    padding: 4px;
    border: var(--border-width) var(--border-solid)  #ccc;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue span,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue span*/
.ColumnSettingsBox span.SelectedValue span {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue a,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue a*/
.ColumnSettingsBox span.SelectedValue a {
    background: #AAAAAA;
    border-radius: 14px;
    color: #FFFFFF;
    display: block;
    font-size: 10px;
    height: auto;
    line-height: 1;
    left: 0;
    position: absolute;
    text-align: left;
    top: 0;
    width: 10px;
    padding: 0px 0px 0px 5px;
}

/*.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue a:hover,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue a:hover*/
.ColumnSettingsBox span.SelectedValue a:hover {
    background: #888;
}

.DataTable thead th.OverviewHeader .ColumnSettingsBox input[type="text"] ,
.TableSmall thead th.OverviewHeader .ColumnSettingsBox input[type="text"] {
    width: 100px;
    padding-top: var(--padding-xs);
    padding-bottom: var(--padding-xs);
}


/*.DataTable thead th.DashboardHeader,
.TableSmall thead th.OverviewHeader {
    padding: 14px 20px 14px 1px;
}*/

/*.DataTable thead th.DashboardHeader.SortDescendingLarge,
.DataTable thead th.DashboardHeader.SortAscendingLarge,
.TableSmall thead th.OverviewHeader.SortDescendingLarge,
.TableSmall thead th.OverviewHeader.SortAscendingLarge*/
th.DashboardHeader.SortDescendingLarge,
th.DashboardHeader.SortAscendingLarge {
    padding-left: 8px;
}

/* display block was sepperating table th and their respective SettingsTrigger */
.DataTable thead span.Gray {
    height: auto !important;
    /*display: block !important;*/
    padding-left: 10px;
    line-height: 1;
}

.TableSmall .ColumnFilter {
    font-size: 10px;
    float: left;
}

/* Delete filters */
.ContextSettings.RemoveFilters a {
    display: block;
}

.ContextSettings.RemoveFilters a i {
    display: block !important;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.DataTable + p.SpacingTopSmall {
    text-align: center;
}

/**
 * @subsection  Package manager
 */

p.IntroInstall {
    width: 70%;
    padding-left: 10px;
    margin-bottom: 7px;
}

.OTRSVerifyLogoBig {
    float: right;
}

.OTRSVerifyLogo {
    display: block;
    float: right;
    margin: 3px 0px 0px 3px;
}

/**
 * @subsection  Icons in tables
 */

td i,
td a > i.fa {
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
    /*margin-right: 3px;*/
}

tr:hover td i,
tr:hover td a i,
td a:hover i {
    color: var(--gray-darker);
}

button.table-icon-hover-md {
    background: none;
    border: none;
    font-size: var(--font-size-lg);
}

.table-icon-hover-md {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    border-radius: var(--border-radius-xs);
    transition: var(--main-transition);
    text-indent: -9999px;
}

.table-icon-hover-md i {
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 22%;
    transition: var(--main-transition);
    text-indent: initial;
}

.table-icon-hover-md:hover {
    background: var(--primary-color);
}

.table-icon-hover-md:hover i {
    color: var(--white);
}

/**
 * @subsection  Table Custom
 */

/*.InnerMainBoxContent .Content dl {
    margin: 0;
    padding: 0 var(--padding-xl) var(--padding-xl);
}*/

.InnerMainBoxContent .Content dl dd {
    margin: 0;
}

.InnerMainBoxContent .Content dl dd table {
    width: 100%;
    padding: var(--padding-xs);
    border: var(--border-width) var(--border-solid) var(--border-color);
    border-radius: var(--border-radius-lg);
}

/**************************/
/*   Table Filter Search  */
/**************************/
/* Note: the following style overrides a jquery class default
/*/

.ui-menu.ui-widget.ui-widget-content {
    border: none !important;
    overflow-x: hidden;
    /*width: auto !important;*/ /* ED updated on 22/09/28 */
    border-radius: var(--border-radius-sm);
    box-shadow: var(--menu-box-shadow);
    padding: var(--padding-xs) !important; /* ED updated on 22/09/28 */
    margin-left: -1% !important;
    box-sizing: border-box;
}

.ui-menu.ui-widget.ui-widget-content .ui-menu-item {
    max-width: 100%;
    padding: 0;
}

.ui-menu.ui-widget.ui-widget-content .ui-menu-item:hover {
    background: none;
}

.ui-menu .ui-menu-item a {
    max-width: 100%;
    font-weight: var(--medium);
    color: var(--main-font-color);
    border-radius: var(--border-radius-xs);
    padding: var(--padding-sm);
    transition: var(--main-transition);
    box-sizing: border-box;
    word-break: break-all;
}

/**************************/
/*       Users Online     */
/**************************/
.SidebarColumn .DashboardUserOnline td{
    display: flex;
    flex-flow: row;
    align-items: center;
    gap: var(--padding-xs);
}

.SidebarColumn .DashboardUserOnline .UserStatusIcon {
    display: flex;
    flex-flow: row;
    margin-left: 2px;
    margin-right: -2px;
}

.SidebarColumn .DashboardUserOnline td p{
    padding: 0;
    line-height: normal;
}

.SidebarColumn .DashboardUserOnline td p span {
    font-size: 14px;
}

/**************************/
/*          Admin         */
/**************************/

.WidgetPermissions table thead tr th:first-child,
table#Users thead tr th:first-child,
table#Groups thead tr th:first-child,
table#Roles thead tr th:first-child,
table#CustomerUsers thead tr th:first-child,
table#Customers thead tr th:first-child,
table#Customer thead tr th:first-child,
table[id='Customer User'] thead tr th:first-child,
table#Group thead tr:first-child th:first-child,
table#AlwaysGroups thead tr th:first-child {
    width: auto;
}

.LinkTable .Content .DataTable tr td {
    border: none;
}

/**
* @subsection  MessageBox
*/

.MessageBox p, .MessageBox a {
    font-size: var(--main-font-size);
}


} /* end @media */
