/* Add / Import / Merge buttons on list pages: one row at the start edge of the page
   (right in Arabic, left in English), Add first. */
.list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    float: none !important;
    clear: both;
    width: 100%;
    margin: 6px 0 10px;
}
/* AdminLTE's `.box-header > .box-tools { margin: -5px 0 }` out-ranks the rule above and pulls the table controls up under the buttons. */
.box-header > .box-tools.list-actions {
    margin: 6px 0 20px;
}
.list-actions > a,
.list-actions > .btn-group {
    float: none !important;
    margin: 0 !important;
}
.list-actions .dropdown-menu {
    min-width: 200px;
}

/* Product list: the photo column is only as wide as the thumbnail (it used to take all the free width). */
#product_table th.product-image-col,
#product_table td:nth-child(2) {
    width: 1%;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
}
#product_table td:nth-child(2) img.product-thumbnail-small {
    max-width: 44px;
    height: auto;
}

/* Import / Download Excel go to the opposite edge from Add (left in Arabic, right in English). */
.list-actions > .list-actions-end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto !important;
}

/* Disabled buttons (e.g. Delete / Default on the default invoice scheme): the theme drew their text at 20% opacity on
   grey, which made them unreadable. Keep them clearly "off" but legible. */
.tw-dw-btn[disabled],
.tw-dw-btn.tw-dw-btn-disabled,
.tw-dw-btn:disabled {
    background-color: #eef0f3 !important;
    border-color: #cfd4dc !important;
    color: #5f6b7a !important;
    opacity: 0.9;
    cursor: not-allowed;
}
