.app__custom_table_pads td,
.app__custom_table_pads th {
    padding: .5rem !important;
}

.app__customer_list_table .card-datatable {
    min-height: 250px !important;
}

.app__sticky_top {
    top: 80px;
    z-index: 990;
}

.app__td_width_fit {
    width: 1px;
    white-space: nowrap;
    padding: 0 !important;
}

.app__td_width_fit_pad {
    width: 1px;
    white-space: nowrap;
}

.app__tr_passive td:first-child,
.app__tr_active td:first-child,
.app__tr_pending td:first-child {
    position: relative;
    padding-left: 10px;
}

.app__tr_passive td:first-child:before,
.app__tr_active td:first-child:before,
.app__tr_pending td:first-child:before{
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.app__tr_active td:first-child:before {
    background: #28c76f;
}

.app__tr_passive td:first-child:before {
    background: #ea5455;
}

.app__tr_pending td:first-child:before {
    background: #222222;
}

.app__tr_even_bg {
    background-color: #fafafc;
}

.app__no_white_space {
    white-space: nowrap;
}

.app__listing_card {
}

.app__listing_card .app__listing_location {
}

.app__listing_card .app__listing_info {
}

.app__listing_card .app__listing_info .app__listing_info_header {
}

.app__listing_card .app__listing_info .app__listing_info_header .app__listing_thumbnail {
}

.app__listing_card .app__listing_info .app__listing_info_header .app__listing_title {
}

.app__listing_card .app__listing_info .app__listing_price {
    white-space: nowrap
}

.app__order_table_container,
.app__listing_table_container {
    display: none;
}

.app__order_card_container,
.app__listing_card_container {
    display: none;
}

@media screen and (min-width: 1900px) {
    .app__order_table_container,
    .app__listing_table_container {
        display: block;
    }
}

@media screen and (max-width: 1899px) {
    .app__order_card_container,
    .app__listing_card_container {
        display: block;
    }
}

html .content .content-wrapper .content-header-title {
    border: 0 !important;
}

.app__order_item_header {
    flex-grow: 1;
}

.app__order_item_actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app__order_item_prices {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app__order_item_prices,
.app__order_item_header,
.app__order_item_actions,
.app__order_item_column {
    padding: 15px;
}

.app__order_item_columns {
    display: flex;
    justify-content: space-between;
}

.app__order_item_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/**
App Operation Loader
 */
#app__xhr_loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 990;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#app__xhr_loader.app__show_loader {
    display: flex;
}

#app__xhr_loader.app__show_loader #app__xhr_loader_animation {
    width: 100px;
    height: 2px;
    background-color: #d6cec2;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#app__xhr_loader.app__show_loader #app__xhr_loader_animation::after {
    content: '';
    width: 50px;
    height: 2px;
    position: absolute;
    background-color: #7367f0;
    transform: translateX(-20px);
    animation: xhr_loader_loop 2s ease infinite;
}

@keyframes xhr_loader_loop {
    0%, 100% {
        transform: translateX(-28px);
    }
    50% {
        transform: translateX(78px)
    }
}

#app__autocomplete_container {
    width: 100%;
    position: absolute;
    top: 100%;
    margin-top: 2px;
    left: 0;
    background: #fff;
    z-index: 980;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app__xhr_inline_loader {
    width: 100px;
    height: 2px;
    background-color: #d6cec2;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: none;
}

.app__xhr_inline_loader.app__show_inline_loader {
    display: block;
}

.app__xhr_inline_loader::after {
    content: '';
    width: 50px;
    height: 2px;
    position: absolute;
    background-color: #7367f0;
    transform: translateX(-20px);
    animation: xhr_loader_loop 2s ease infinite;
}

#app__autocomplete_list {
    width: 100%;
}


.app__exchange_hover:hover {
    background-color: #f3f2f7;
}

.app__exchange_hover_td:hover {
    background-color: #ffecd9;
}


.was-validated.invalid .select2-container--classic .select2-selection--single,
.was-validated.invalid .select2-container--default .select2-selection--single {
    border-color: #ea5455 !important;
}

/*
.was-validated.invalid .invalid-feedback {
    display: block !important;
}
 */

.app__subhide_row {
    display: none;
}

.app__subhide_row.show {
    display: table-row;
    background-color: #f9f9f9;
}

.app__subhide_row_accent, .app__tr_accent_bg, .app__tr_accent_bg td, .app__td_accent_bg {
    background-color: #f6ffe4 !important;
    --bs-table-accent-bg:#f6ffe4 !important;
}

.app__inventory_activity_tr {
    display: none;
}

.app__inventory_activity_tr_show {
    display: table-row;
}

.app__fifo_transfer_table {

}

.app__fifo_transfer_card .MismatchNotes {
    display: none;
}

.app__fifo_transfer_card.danger .MismatchNotes {
    display: table-row;
}

.app__fifo_transfer_card.success {
    background: honeydew;
}

.app__fifo_transfer_card.danger {
    background: rgb(255, 243, 243);
}

.app__fifo_transfer_card.mismatch .EnterQuantity {
    border-color: #ea5455 !important;
}

#app__warehouse_transfer_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#app__warehouse_transfer_list li {
    display: flex;
    padding: 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e1e1e1;
}

#app__warehouse_transfer_list li:nth-of-type(2n) {
    background-color: #fff;
}

#app__warehouse_transfer_list li div {
    display: flex;
    justify-content: space-between;
}

#app__warehouse_transfer_list li div:first-of-type {
    width: 70%;
    margin-right: 5px;
    flex-wrap: wrap;
    flex-direction: column;
}

#app__warehouse_transfer_list li div:nth-of-type(2n) {
    width: 30%;
    align-items: center;
}

#app__warehouse_transfer_list li h4 {
    margin: 0;
}

#app__warehouse_transfer_list li:last-of-type {
    margin-bottom: 1rem;
}


.app__custom_table_expandable td {
    display: none;
}

.app__custom_table_expandable.expanded td,
.app__custom_table_expandable.app__expandable_expanded td {
    display: table-cell;
}

.app__custom_decimal_sizing {
    font-size: .75em;
}


.UploadProgress {
    position: relative;
    height: 30px;
    width: 0;
    overflow: hidden;
    transition: width ease-in-out .4s;
}

.ProgressBar {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: lightgreen;
    border-radius: 5px;
}

.ProgressBarText {
    font-weight: bold;
    position: absolute;
    color: green;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.UploadProgressMessage {
    width: 100%;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    margin: 5px 0;
    display: none;
}

.UploadProgressMessage.uploading,
.UploadProgressMessage.error,
.UploadProgressMessage.success {
    display: block;
}

.UploadProgressMessage.uploading {
    color: orange;
}

.UploadProgressMessage.error {
    color: indianred;
}

.UploadProgressMessage.success {
    color: limegreen;
}

#ProductImagePreviews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

#ProductImagePreviews .ImagePreview {
    width: calc(25% - 12px);
    flex: 1;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 150px;
    padding: 5px;
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    position: relative;
}

#ProductImagePreviews .ImagePreview .Thumbnail {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

#ProductImagePreviews .ImagePreview .Thumbnail img {
    width: auto;
    height: 100%;
}

#ProductImagePreviews .ImagePreview button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    display: none;
}

#ProductImagePreviews .ImagePreview:hover button {
    display: block;
}

.app__transfer_items_row:hover {
    background-color: #eefeff !important;
}

.app__custom_product_image {
    width: 80px;
    height: 80px;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.app__custom_product_image img {
    height: 100% !important;
    width: auto;
    max-width: 100%;
}

#app__session_expiry_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#app_session_expiry_timer_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#app_session_expiry_timer_container h2 {
    margin: 0;
}


.app__flex_list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.app__flex_list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ececec;
    padding: 8px 0;
}

.app__flex_list li:last-child {
    border-bottom: none;
}

.app__activity_log_list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.app__activity_log_list li {
    border-bottom: 1px solid #ececec;
    padding: 8px 0;
    display: flex;
    flex-direction: column; /* Added to stack top-row and note-row vertically */
    justify-content: space-between;
    align-items: start; /* Aligns items to the left */
    width: 100%;
}

.app__activity_log_list li:last-child {
    border-bottom: none;
}

.app__activity_log_list .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.app__activity_log_list .left-side, .app__activity_log_list .right-side {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.app__activity_log_list .right-side {
    display: flex;
    flex-direction: row;
    align-items: center; /* Align items vertically in the center */
    gap: 8px; /* Space between admin name and button */
}

.app__activity_log_list .note-row {
    padding: 4px 0;
    width: 100%;
}

.app__activity_log_list .complete-btn {
    margin-left: 16px;
}

.app__activity_log_list .left-side .dept-name {
    margin-top: 4px;  /* This provides spacing similar to <br> */
}

.app__task_list { list-style: none; margin: 0; padding: 0; }
.app__task_list > li {
    display: flex;
    justify-content: space-between;
    padding:8px 0;
    border-bottom:1px solid #ececec;
}

.app__task_list > li:last-of-type { border: 0; padding-bottom: 0; }

.app__task_list li div {
    display: flex;
}

.app__task_list li div > span:first-child {
    width: 80px;
    font-weight: 900;
}

.app__task_list li div > span:last-child {
    flex-grow: 1;
}

.app__task_list li a {
    margin-left: 15px;
    align-self: flex-start;
}

.app__tr_bg_success {
    background: honeydew;
}
.app__tr_bg_danger,
.app__tr_bg_danger td {
    background: #fff0f0 !important;
    box-shadow: inset 0 0 0 9999px #fff0f0 !important;
}
.app__tr_bg_warning {
    background: #fffdf0 !important;
}

.app__btn-xs { padding: 0.2rem 1rem !important; }

.hr-sm { margin: 0.5rem 0 !important;  }

.DifferenceQuantity { margin-bottom: .5rem; padding-bottom: .5rem; border-bottom:1px solid #eee; }
.DifferenceQuantity:last-of-type { margin:0; padding: 0; border: 0; }

.app__content-header-subtitle {
    background: #222;
    color: #fff;
    padding: 5px 10px;
    display: inline-block;
    margin-top:5px;
}

/**
Table Hovers
 */
.app__table_hover_importance tbody tr:hover td {
    background-color: #f5f5f5 !important;
}

.app__fixed_button_container,
.app__fixed_button {
    position: fixed;
    bottom: 15px;
    right:30px;
    z-index: 999;
    width: auto;
    font-size: 1.5rem;
}

.app__fixed_button_container {
    display: flex;
    gap: 5px;
}

.app__fixed_button_container .btn {
    font-size: 1.5rem;
}

.app__fixed_button .feather {
    width: 1.5rem !important;
    height: 1.5rem !important;
}


.app__file_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app__file_list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-bottom:1px solid #e1e1e1;
    padding: .3rem 0;
}

.app__file_list li:nth-child(2n) {
    background-color: #f9f9f9;
}

.app__file_list.w-pad li {
    padding: .9rem;
}

.app__custom_expandable_columns .app__custom_expandable_td {
    display: none;
}

.app__custom_expandable_columns.app__custom_expanded .app__custom_expandable_td {
    display: table-cell;
}

.app__global_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app__global_list li {
    padding: 10px;
    font-size: 1rem;
    border-bottom:1px solid #e1e1e1
}

.app__global_list li:last-of-type { border: 0; }
.app__global_list.app__global_list_striped li {
    background-color: #fff;
}
.app__global_list.app__global_list_striped li:nth-child(2n) {
    background-color: #f1f1f1;
}

.app__hover.table-hover tr:hover td {
    background-color: #ff9c9d !important;
    --bs-table-accent-bg:#ff9;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 22px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 20px !important;
}

.app__counter_card {
    padding: 8px !important;
    position: relative;
}

.app__counter_card a {
    padding: 0;
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.25rem;
    height: 2.5rem;
    position: relative;
    overflow: hidden;
    color: #0c102a;
    width: calc(100% - 55px);
}

.app__counter_card h2 {
    position: absolute;
    height: 30px;
    min-width: 30px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    right:8px;
    top:-8px;
    background-color: #0c102a;
    color: #fff !important;
    border-radius: 5px;
}

/* Group highlights */
tr.app__js_hover td,
tbody.app__group_hover:hover {
    background: #ffffd3 !important;
    --bs-table-accent-bg: #ffffd3 !important;
}

.table.app__tbody_border,
.table.app__tbody_border tbody {
    border: 1px solid #f3f2f7;
}

.min-w-300 { min-width: 300px !important; }
.max-w-300 { max-width: 300px !important; }

#InventoryCountTable.TransferTable .card-body,
#InventoryCountTable.TransferTable .data-count-of-container {
    display: none !important;
}

#InventoryCountTable .data-total-count {
    display: none;
}
#InventoryCountTable.TransferTable .data-total-count {
    display: initial;
}


.app__or_separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 5px 0;
    color: #555;
}

.app__or_separator::before,
.app__or_separator::after {
    content: "";
    flex-grow: 1;
    border-top: 1px solid #ccc;
    margin: 0 10px;
}


.app__tr_hover td {
    background-color: #f6ffe4 !important;
    --bs-table-accent-bg:#f6ffe4 !important;
}

.app__pagination_container {
    position: sticky;
    width: 100%;
    bottom: 30px;
    box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
    padding: 5px;
    background: rgba(255,255,255,.9);
    border-radius: 0.428rem;
}

.app__pagination_container .pagination,
.app__pagination_container p {
    margin-bottom: 0;
}

.app__pagination_container p {
    font-weight: bold;
}

.app__expandable {
    display: none;
}
.app__expandable.app__expandable_expanded {
    display: initial;
}

tr.app__expandable.app__expandable_expanded {
    display: table-row;
}
