/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under the GNU Affero General Public License version 3
 * For full copyright and license information, please see LICENSE
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop 1.0.0
 * @license       https://opensource.org/licenses/AGPL-3.0
 * @author        Mario Rothauer <office@foodcoopshop.com>
 * @copyright     Copyright (c) Mario Rothauer, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */
table.list {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  display: none;
  font-size: 14px;
}
table.list tr td:first-child,
table.list tr th:first-child {
  border-left: 1px solid #dfdfdf;
}
table.list tr {
  vertical-align: top;
}
table.list tr.selected {
    color: white ! important;
}
table.list tr.selected a:not(.btn) {
    color: white ! important;
}
/* click on checkbox should overwrite hover */
body.order_details table.list:not(.no-hover) tr:not(:last-child):not(:first-child):hover {
  background-color: #a8a8a8;
  color: white;
}
body:not(.order_details) table.list:not(.no-hover) tr:not(:last-child):not(:first-child):hover {
  background-color: #a8a8a8 ! important;
  color: white;
}

table.list:not(.no-hover) tr:not(:last-child):not(:first-child):hover a:not(.icon-with-text):not(.btn) {
    color: white ! important;
}
table.list:not(.no-hover) tr:not(:last-child):not(:first-child):hover a:not(.icon-with-text):not(.btn):hover {
    text-decoration: none ! important;
}
table.list tr.custom-odd {
    background-color: #EBEBEB;
}
div:not(.product-list) > table.list tr:nth-child(odd) {
    background-color: #EBEBEB;
}
table.list tr.deactivated {
    opacity: 0.7;
}
table.list tr.line-through {
    text-decoration: line-through;
}
table.list tr.sub-row td {
    font-size: 13px;
    font-style: italic;
}
table.list td.not-available,
table.list td.not-available i.sold-out-limit-for-dialog i {
    background-color: var(--not-ok-red);
    color: white;
}
table.list td.below-minimum-amount {
    background-color: var(--warning-yellow);
    color: white;
}

table.list td.image {
  background-color: #fff;
}
table.list td.negative,
b.negative,
span.negative {
    color: var(--not-ok-red) ! important;
}
table.list tr:hover td.negative,
tr:hover b.negative {
    color: #fff ! important;
}
table.list td.slim {
    line-height: 15px;
}
table.list th {
    font-weight: 600;
    position: sticky;
    position: -webkit-sticky;
    top: 44px; /* overriden in admin.initStickyTableHeader */
    z-index: 2;
    background-color: #ebebeb;
    box-shadow: inset 0 0px 0 #dfdfdf, inset 0 -1px 0 #dfdfdf; /* borders do not work on sticky elements */
}
table.list th,
table.list td {
  border: 1px solid #dfdfdf;
  border-top: none;
  padding: 2px 4px;
  vertical-align: middle;
}
table.list th,
table.list tr.fake-th td {
  padding: 5px 2px;
  word-break: break-word;
}
table.list th,
table.list tr.fake-th {
  line-height: 14px;
}
table.list tr.fake-th td {
  font-weight: 600;
}

table.list td.icon,
table.list th.icon {
  padding: 2px ! important;
  width: 20px;
}
table.list a.btn {
    padding: 0 1px ! important;
    line-height: 20px;
}
table.list a.btn.with-text {
    padding: 0 4px ! important;
}
.sort a.asc:before,
.sort a.desc:before {
    font-family: 'Font Awesome 7 Free';
    padding-right: 5px;
    font-weight: 600;
}
.sort a.asc:before {
    content: "\f0aa";
}
.sort a.desc:before {
    content: "\f0ab";
}
