.SearchProductItem {
    width: calc(19%);
    display: flex;
    flex-flow: column;
    background-color: #fff;
    border-radius: 4px;
    margin: 0.5%;
    position: relative;
}

.SearchProductItem a:hover {
    text-decoration: none
}

.SearchProductItem:hover .item-product {
    box-shadow: 0px 4px 16px rgba(44, 44, 44, .08)
}

.SearchProductItem:hover .item-product .product-view {
    display: none
}

.SearchProductItem:hover .item-product .group-bot .button-view {
    background: #f37234;
    color: #fff
}

.SearchProductItem .item-product {
    border-radius: 8px;
    padding: 10px;
    position: relative;
    display: flex;
    flex-flow: column;
    flex: 2 1
}

.SearchProductItem .item-product .product-view {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(191, 164, 248, .31);
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e11e3;
    padding: 4px 12px;
    display: none;
    cursor: pointer
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .product-view {
        top: 4px;
        right: 4px;
        font-size: 11px;
        line-height: 120%
    }
}

.SearchProductItem .item-product .product-view .icon-view {
    margin-left: 4px;
    width: 16px
}

.SearchProductItem .item-product .head-product {
    position: relative
}

.SearchProductItem .item-product .head-product .product-image {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer
}

.SearchProductItem .item-product .head-product .product-image:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 100%
}

.SearchProductItem .item-product .head-product .compare-stores {
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background: #222;
    border-radius: 2px;
    padding: 4px;
    line-height: 0;
    display: none
}

.SearchProductItem .item-product .head-product .compare-stores span {
    font-weight: 400;
    font-size: 10px;
    line-height: 150%;
    color: #fff
}

.SearchProductItem .item-product .head-product .compare-stores img {
    width: 12px;
    height: 12px;
    margin-right: 2px
}

.SearchProductItem .item-product .head-product .compare-list {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    border-radius: 4px;
    z-index: 1
}

.SearchProductItem .item-product .head-product .compare-list.show {
    display: block
}

.SearchProductItem .item-product .site-info {
    display: flex;
    align-items: center;
    margin-top: 6px
}

.SearchProductItem .item-product .site-info .site-logo {
    height: 16px;
    margin-right: 4px
}

.SearchProductItem .item-product .site-info .site-name {
    font-weight: 600;
    font-size: 10px;
    line-height: 150%;
    color: #747474
}

.SearchProductItem .item-product .info-product {
    display: flex;
    flex-flow: column;
    flex: 1
}

.SearchProductItem .item-product .product-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #222;
    margin-top: 4px;
    cursor: pointer;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.SearchProductItem .item-product .product-name:hover {
    text-decoration: underline
}

.SearchProductItem .item-product .product-name div {
    display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .product-name {
        font-size: 14px
    }
}

.SearchProductItem .item-product .group-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden
}

.SearchProductItem .item-product .group-price.site-price .price-label {
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: #747474
}

.SearchProductItem .item-product .group-price.site-price .price {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #3e89ff;
    margin-left: 4px;
    display: inline;
    float: left;
}

.SearchProductItem .item-product .group-price.site-price .origin-price {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #747474;
    margin-left: 4px;
    display: none
}

.SearchProductItem .item-product .group-price.my-price .price-checkout {
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #747474;
    width: 100%
}

.SearchProductItem .item-product .group-price .price {
    font-weight: 700;
    font-size: 20px;
    line-height: 10%;
    color: #c00;
    padding: 8px;
    display: inline;
    float: left;
}

.SearchProductItem .item-product .ws_price {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: rgb(235, 141, 10);
    padding: 8px;
    display: inline;
    float: left;
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .group-price .price {
        font-size: 16px
    }
}

.SearchProductItem .item-product .group-price .origin-price {
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #383838;
    text-decoration-line: line-through;
    margin-left: 4px;
    display: none
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .group-price .origin-price {
        font-size: 10px
    }
}

.SearchProductItem .item-product .group-bot {
    margin-top: 8px;
    display: flex;
    align-items: flex-end;
    width: 100%;
    display: none
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .group-bot {
        margin-top: 8px
    }
}

.SearchProductItem .item-product .group-bot .button-view {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    width: 100%
}

.SearchProductItem .item-product .group-bot .button-view:hover {
    color: #fff
}

@media(max-width: 768px) {
    .SearchProductItem .item-product .group-bot .button-view {
        font-size: 12px
    }
}

.SearchProductItem.is-loading .item-product {
    min-height: 370px
}

.product-list {
    display: flex;
    flex-wrap: wrap;
}

/* Dashed border */
hr.dashed {
    border-top: 1px dashed #bbb;
    width: 100%;
}

/* Dotted border */
hr.dotted {
    border-top: 1px dotted #bbb;
    width: 100%;
}

/* Solid border */
hr.solid {
    border-top: 1px solid #bbb;
    width: 100%;
}

.tb-price {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.td-cogs-price {
    font-weight: 700;
    color: #c00;
    width: 50%;
}

.badge {
    color: #FFF !important;
    max-width: fit-content;
    border-radius: 0 0px 8px 0 !important;
    position: relative;
    height: 26px;
    z-index: 1;
    float: left;
    padding: 0 10px 0 10px;
    font-size: 13px;
    align-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

.badge-detail {
    color: #FFF !important;
    max-width: fit-content;
    border-radius: 0 0px 8px 0 !important;
    height: 26px !important;
    z-index: 1;
    padding: 0 10px 0 10px;
    font-size: 13px;
    align-content: center;
}

.product-info {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
}

.product-image-list {
    padding: 0 1% 0 1%;
    width: 8%;
}

.product-image-list img {
    width: 100%;
    height: relative;
    padding: 4px 0 4px 0;
}

.main-image {
    padding: 0 1% 0 2%;
    width: 50%;
    max-height: 600px;
}

.product-information {
    padding: 0 1% 0 1%;
    width: 40%;
}

.image-product-detail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-name-detail {
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    color: #222;
    margin-top: 4px;
    flex: 1;
    cursor: pointer
}

.td-warehouse {
    width: 50%;
    font-weight: 700;
    font-size: 16px;
    color: #007a16;
}

.whdc-container {
    background-color: #FFF;
    min-height: 100vh !important;
}

.section-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    color: #222;
    flex: 1;
    cursor: pointer
}

.custom-header {
    height: 100px;
    background-color: #191d34;
    margin: 0 0 8px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    padding-top: 1px;
}

.search-input {
    height: 32px;
    width: calc(100% - 104px);
    background-color: transparent;
    border: 0;
    margin: 2px;
    padding-left: 20px;
}

.btn-search-form {
    height: 32px;
    width: 96px;
    background-color: #f2694b;
    border: 0;
    border-radius: 8px;
    color: #FFF;
    margin: 2px;
    float: right;
}

.btn-search-form:hover {
    background-color: rgb(171, 60, 36);
}

.btn-header {
    height: 32px;
    width: 96px;
    position: absolute;
    right: 32px;
    top: 32px;
    background-color: #2acb18;
    border: 0;
    border-radius: 8px;
    color: #FFF;
}

.btn-header:hover {
    background-color: #147909;
}

.search-box {
    max-width: 683px;
    width: 50%;
    height: 36px;
    border-radius: 8px;
    background-color: #FFF;
    margin: 32px auto;
}

.header-logo {
    position: absolute;
    margin: 18px 0 0 28px;
    width: 64px;
    height: 64px;
}

.product-change-content {
    width: 80%;
    padding: 20px;
    margin: 0 auto;
}

.tb-product-change {
    width: 100%;
    text-align: center;
}

.tr-header {
    background-color: #3e89ff;
    color: #FFF;
}

.btn-plus,
.btn-save,
.btn-exit {
    margin: 4px;
    height: 32px;
    width: 96px;
    border: 0;
    border-radius: 4px;
    color: #FFF;
    cursor: pointer;
}

.icon-button-minus {
    display: inline-block;
    margin: 2px;
    width: 32px;
    /* Adjust width as needed */
    height: 32px;
    /* Adjust height as needed */
    line-height: 32px;
    /* Keep button vertically centered */
    text-align: center;
    border: none;
    border: 0;
    background-size: 100% !important;
}

.icon-button-minus:hover {
    cursor: pointer;
    /* Hover background color */
}

.product-change-action-buttons-div {
    display: flex;
    /* Use flexbox for centering */
    justify-content: center;
    margin-top: 50px;
    /* Center horizontally */
}

/* Target the Select2 container */
.select2-container {
    font-size: 13px;
    width: 100% !important;
    /* border: 1px solid #ccc; */
}

/* Target the Select2 dropdown menu */
/* .select2-container .select2-dropdown {
    font-size: 13px;
} */

/* Target the Select2 options */
/* .select2-container .select2-results__option {
    font-size: 13px;
} */

.select2-container--default .select2-selection--single {
    border: none !important;
}

.input-pc-number {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    width: 100%;
    height: 100% !important;
    box-sizing: border-box;
    border: none;
}

.input-pc-number-price {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    width: 100%;
    height: 100% !important;
    box-sizing: border-box;
    border: none;
}

.textarea-pc {
    text-align: center;
    font-size: 13px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: none;
}

.tb-product-change td {
    /* max-height: 18px !important;
    margin: 0;
    padding: 0;
    height: 18px; */
    border: 1px solid #ccc;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
}

.loading-popup-content {
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    display: none;
}

#detailPopup {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    /* Ensure it appears on top of other elements */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 80%;
    max-height: 90vh;
    overflow-y: auto;
}

.tb-change-detail {
    width: 100%;
    border-collapse: collapse;
}

.tb-change-detail td,
.tb-change-detail th {
    border: 1px solid #ddd;
    /* Border style and color */
    padding: 8px;
    /* Cell padding */
}

/* CSS for the loading overlay */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white background */
    z-index: 9999; /* Ensure it's on top of other content */
    align-content: center;
  }
  
  /* CSS to disable user interaction with content while loading */
  .loading {
    pointer-events: none;
  }

  .fa-spinner {
    font-size: 32px; /* Adjust the size of the loading spinner icon */
  }

  #modeSelect {
    margin-left: 20px;
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="none" stroke="gray" stroke-width="2" d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
  }
  
  #modeSelect:focus {
    outline: none;
    border-color: #0078D7;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
  }

/* Dashboard styles */

  .ntf-dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .chart-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 16px;
    box-sizing: border-box;
  }
  
  .chart-half {
    width: 100%; /* default for mobile */
  }
  
  .chart-fixed {
    height: 500px;
  }

  .chart-full {
    width: 100%;
  }
  
  @media (min-width: 768px) {
    .chart-half {
      width: calc(50% - 8px); /* Side-by-side on desktop */
    }
  }

  .chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }
  
  .chart-table th,
  .chart-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .chart-table tr:hover {
    background: #f9f9f9;
  }
  
  .table-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
  }

  .order-profit-table td {
    padding: 6px 12px;
  }
  
  .order-profit-table td:last-child {
    text-align: center;
  }