/* Hide theme customizer icon in backend */
.toggle-theme,
#toggle-theme {
    display: none !important;
}

/* Login page dark theme */
body.login-page-dark {
    background-color: #06130A;
}
body.login-page-dark .account-content {
    background-color: #06130A;
}
body.login-page-dark .login-wrapper.login-new {
    background-color: #06130A;
    background-image: none;
}
body.login-page-dark .login-content .login-logo > img {
    display: none;
}
body.login-page-dark .login-content .login-logo .logo-white {
    display: block !important;
}
body.login-page-dark .login-content .login-logo .logo-white img {
    display: block !important;
}
body.login-page-dark .login-content .card {
    background-color: #1e293b;
    border-color: #334155;
}
body.login-page-dark .login-content .card-body {
    background-color: #1e293b;
}
body.login-page-dark .login-content .login-userheading h3,
body.login-page-dark .login-content .login-userheading h4 {
    color: #e2e8f0;
}
body.login-page-dark .login-content .form-label {
    color: #cbd5e1;
}
body.login-page-dark .login-content .form-control {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body.login-page-dark .login-content .form-control::placeholder {
    color: #94a3b8;
}
body.login-page-dark .login-content .form-control:focus {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}
body.login-page-dark .login-content .input-group-text {
    background-color: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
body.login-page-dark .login-content .pass-group .pass-input {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body.login-page-dark .login-content .toggle-password {
    color: #94a3b8 !important;
}
body.login-page-dark .login-content .toggle-password:hover {
    color: #e2e8f0 !important;
}
body.login-page-dark .login-content .form-check-label {
    color: #cbd5e1;
}
body.login-page-dark .login-content .alert-danger {
    background-color: rgba(185, 28, 28, 0.2);
    border-color: #b91c1c;
    color: #fecaca;
}
body.login-page-dark .login-content .alert-danger ul li {
    color: #fecaca;
}
body.login-page-dark .login-content .btn-primary {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}
body.login-page-dark .login-content .btn-primary:hover {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #fff;
}
body.login-page-dark .login-content .text-danger {
    color: #f87171 !important;
}

#user-avatar-preview {
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.edit-delete-action a:hover {
    background-color: inherit !important;
}

#btn-generate-barcode,
#btn-scan-barcode,
#modal-generate-barcode,
#modal-scan-barcode {
    position: absolute;
    top: 37px;
    padding: 4px 8px;
    font-size: 10px !important;
    /* color: #ffffff; */
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.5s;
    font-weight: 600;
}

#btn-generate-barcode,
#modal-generate-barcode {
    right: 58px;
    /* background-color: #FE9F43; */
}

#btn-scan-barcode,
#modal-scan-barcode {
    right: 10px;
    /* background-color: #FE9F43; */
}

#modal-generate-sku {
    top: 6px !important;
}

#add-variation .modal-content {
    width: 600px;
}

/* Product details enhancements */
.product-media-sticky {
    position: sticky;
    top: 72px;
}

.product-media-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-media-carousel {
    position: relative;
}

.product-media-slide {
    /* padding: 12px; */
    border-radius: 16px;
    border: 1px solid #eef1f5;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-media-image {
    height: 260px;
    /* border-radius: 14px; */
    border-radius: 16px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-media-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-media-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    scroll-snap-align: start;
}

.product-media-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.product-media-thumb.is-active {
    border-color: #0d6efd;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
}

.product-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-card .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    height: 0;
}

.product-media-card .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e6e9ef !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    pointer-events: all;
}

.product-media-card .owl-nav .owl-prev {
    left: -6px;
}

.product-media-card .owl-nav .owl-next {
    right: -6px;
}

.variant-detail-card {
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.variant-detail-card + .variant-detail-card {
    margin-top: 16px;
}

.variant-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.variant-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.variant-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e6e9ef;
}

.variant-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-fallback-text {
    font-weight: 600;
    color: #6c757d;
}

.variant-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.variant-detail-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-detail-item span {
    font-size: 12px;
    color: #6c757d;
}

.variant-detail-item strong {
    font-size: 14px;
    color: #0f172a;
}

.variant-detail-item--wide {
    grid-column: 1 / -1;
    width: 100%;
}

.variant-detail-text {
    font-size: 13px;
    color: #0f172a;
    width: 100%;
    word-break: break-word;
}

.product-detail-card {
    margin-bottom: 16px;
}

.variant-image-section {
    margin-top: 16px;
}

.variant-image-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.variant-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.variant-image-card {
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    background: #ffffff;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.variant-image-link {
    display: block;
    cursor: pointer;
}

.variant-image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.variant-image-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-top: 1px solid #eef1f5;
}

.variant-image-card figcaption span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-image-placeholder {
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barcode-text-only {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #111827;
}

@media (max-width: 991.98px) {
    .product-media-sticky {
        position: static;
    }
}

/* .product-media-card .owl-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
} */

select.is-invalid + .select2 .select2-selection,
.select2-selection.is-invalid {
    border-color: #dc3545;
}

select.is-invalid + .select2 .select2-selection:focus,
.select2-selection.is-invalid:focus,
.select2-container--default.select2-container--focus .select2-selection.is-invalid {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* POS listing enhancements */
.pos-page #pos-page .tab-wrap.pos-category-scroll {
    padding: 12px 12px 4px;
}

.pos-page #pos-page .tab-content-wrap {
    padding: 12px;
}

.pos-page #pos-page .pos-brand-tags {
    row-gap: 8px;
    column-gap: 8px;
}

.pos-page #pos-page .pos-brand-tags .btn {
    white-space: nowrap;
}

.pos-page #pos-page .pos-brand-tag.active,
.pos-page #pos-page .pos-featured-tag.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.pos-page #pos-page .pos-products-scroll {
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.pos-page #pos-page .pos-category5 li {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 6px;
}

.pos-page #pos-page .pos-category5 li h6 {
    margin: 4px 0 0;
    line-height: 1.2;
}

.pos-page #pos-page .pos-category5 li h6 a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-page #pos-page .pos-category5 li img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pos-page #pos-page .pos-category-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #f1f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
}

.pos-page #pos-page .pos-category-placeholder img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pos-page #pos-page #pos-products-grid > [class*="col-"] {
    display: flex;
}

.pos-page #pos-page #pos-products-grid .product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.pos-page #pos-page #pos-products-grid .product-info .pro-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pos-page #pos-page #pos-products-grid .product-info .pro-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.pos-page #pos-page #pos-products-grid .product-info .price {
    margin-top: auto;
}

.pos-page #pos-page #pos-products-grid .product-info .pro-img .pos-product-fallback {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.pos-page #pos-page #pos-products-grid .product-info:hover .pro-img img,
.pos-page #pos-page #pos-products-grid .product-info.active .pro-img img {
    transform: scale(1.02);
}

.pos-page #pos-page #pos-products-grid .product-info .pro-img span {
    top: 6px;
    right: 6px;
}

@media (max-width: 991.98px) {
    .pos-page #pos-page .pos-products-scroll {
        max-height: none;
    }
}

.pos-page #pos-page .pos-summary-edit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pos-page #pos-page .pos-summary-input {
    max-width: 170px;
    min-width: 140px;
    text-align: right;
}

.pos-page #pos-page .pos-summary-edit-btn {
    color: #6b7280;
}

.pos-page #pos-page .pos-summary-edit-btn:hover {
    color: #111827;
}

.pos-page #pos-page .pos-summary-received.pos-received-locked {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.pos-page #pos-page .pos-payment-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pos-page #pos-page .payment-item.active {
    border: 1px solid var(--bs-primary);
    background: #f8fafc;
}

.pos-page #pos-page .pos-cart-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-page #pos-page .pos-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pos-page #pos-page .pos-cart-item h6 {
    margin: 0;
    font-size: 13px;
}

.pos-page #pos-page .pos-cart-remove {
    color: #dc3545;
}

.pos-page .page-wrapper.pos-pg-wrapper {
    min-height: 100vh;
}

.pos-page .page-wrapper.pos-pg-wrapper .content {
    min-height: calc(100vh - 65px);
}

.pos-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-filter-fixed {
    flex: 0 0 auto;
}

.pos-filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.pos-filter-scroll::-webkit-scrollbar {
    display: none;
}

.pos-filter-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.pos-filter-scroll .pos-filter-btn {
    flex: 0 0 auto;
}

.pos-filter-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #111827;
    white-space: nowrap;
}

.pos-filter-btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.pos-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f3f4f6;
}

.pos-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pos-product-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.12));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pos-product-badge {
    position: absolute;
    top: 10px;
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pos-product-badge.pos-price {
    left: 10px;
}

.pos-product-badge.pos-qty {
    right: 10px;
}

.pos-product-card {
    padding: 0;
    overflow: hidden;
}

.pos-product-card .product-content {
    padding: 12px 12px 10px;
}

.pos-product-card .product-content p {
    margin-bottom: 0;
}

.pos-page #pos-page #pos-products-grid > [class*="col-"] {
    align-items: flex-start;
}

.pos-page #pos-page #pos-products-grid .product-info.pos-product-card {
    min-height: 0;
    height: auto;
}

.pos-search .form-control {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#pos-product-search {
    height: 35px !important;
}

#pos-product-search-results {
    max-height: 320px;
    overflow-y: auto;
}

.pos-search-thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
}

.sales-filter-form {
    gap: 12px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.sales-filter-form .search-set {
    flex: 1 1 0;
    min-width: 140px;
}

.sales-filter-form .search-input {
    width: 100%;
}

.sales-filter-form .search-input .form-control {
    width: 100%;
}

.sales-filter-bar {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 10px;
    justify-content: flex-end;
}

.sales-filter-bar .sales-filter-range {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.sales-filter-bar .select2-container {
    width: 150px !important;
    min-width: 150px;
    max-width: 150px;
}

#sales-filter-form .search-set {
    max-width: 300px;
}
.pos-search-letter {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    background: rgba(15, 118, 110, 0.12);
    text-transform: uppercase;
}

.pos-page .product-added .product-wrap {
    height: auto;
    max-height: 340px;
    overflow-y: auto;
}

.pos-page .product-added .product-list {
    display: block;
    width: 100%;
    gap: 0;
}

.pos-page .pos-cart-table {
    width: 100%;
    table-layout: fixed;
}

.pos-page .pos-cart-table th,
.pos-page .pos-cart-table td {
    padding: 8px 6px;
    vertical-align: middle;
}

.pos-page .pos-cart-table th:nth-child(1),
.pos-page .pos-cart-table td:nth-child(1) {
    width: 36%;
}

.pos-page .pos-cart-table th:nth-child(2),
.pos-page .pos-cart-table td:nth-child(2) {
    width: 14%;
}

.pos-page .pos-cart-table th:nth-child(3),
.pos-page .pos-cart-table td:nth-child(3) {
    width: 18%;
    text-align: center;
}

.pos-page .pos-cart-table th:nth-child(4),
.pos-page .pos-cart-table td:nth-child(4) {
    width: 12%;
}

.pos-page .pos-cart-table th:nth-child(5),
.pos-page .pos-cart-table td:nth-child(5) {
    width: 16%;
}

.pos-page .pos-cart-table th:nth-child(6),
.pos-page .pos-cart-table td:nth-child(6) {
    width: 4%;
}

.pos-page .pos-cart-table td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-page #pos-page[data-layout="new"] .pos-cart-table td:first-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.pos-page #pos-page[data-layout="new"] .pos-cart-product-title,
.pos-page #pos-page[data-layout="new"] .pos-cart-product-title a {
    display: inline;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pos-page #pos-page #pos-products-grid .product-info .product-name a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-page .pos-cart-name {
    flex: 1 1 auto;
    min-width: 0;
}

.pos-page .pos-cart-edit {
    flex: 0 0 auto;
}

.pos-page .pos-cart-table .qty-item .form-control {
    width: 64px;
}

.pos-page .pos-cart-table .qty-item .dec,
.pos-page .pos-cart-table .qty-item .inc {
    width: 20px;
    height: 20px;
}

.pos-page .pos-payment-method.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.pos-page #pos-payment-modal .modal-header,
.pos-page #pos-payment-modal .modal-footer {
    border-color: #e6e9ef;
}

.pos-page #pos-payment-modal .modal-body {
    padding: 20px 22px;
    background: #fff;
}

.pos-page #pos-payment-modal .modal-content {
    border-radius: 10px;
}

.pos-page #pos-payment-modal .pos-payment-body {
    overflow-y: auto;
}

.pos-page #pos-payment-modal .pos-payment-form .form-label {
    font-weight: 600;
    color: #5b6b7b;
    margin-bottom: 6px;
}

.pos-page #pos-payment-modal .pos-payment-row {
    margin-bottom: 14px;
}

.pos-page #pos-payment-modal .pos-payment-row .form-control,
.pos-page #pos-payment-modal .pos-payment-row .form-select,
.pos-page #pos-payment-modal .pos-payment-form .form-control {
    border-radius: 6px;
    min-height: 38px;
}

.pos-page #pos-payment-modal .pos-payment-actions .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-page #pos-payment-modal .pos-payment-summary-card {
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    background: #fff;
    padding: 8px 10px;
}

.pos-page #pos-payment-modal .pos-payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid #eef1f6;
    font-size: 0.95rem;
}

.pos-page #pos-payment-modal .pos-payment-summary-row:last-child {
    border-bottom: 0;
}

.pos-page #pos-payment-modal .pos-payment-footer {
    padding: 14px 22px 16px;
    background: #fff;
    gap: 10px;
}

.pos-page #pos-payment-modal .pos-payment-footer .btn {
    border-radius: 6px;
    min-width: 110px;
}

.pos-page #pos-payment-modal .pos-payment-row .select2-container--default .select2-selection--single,
.pos-page #pos-payment-modal #pos-payment-status + .select2-container--default .select2-selection--single {
    height: 38px;
    border-radius: 6px;
    border-color: #dee2e6;
}

.pos-page #pos-payment-modal .pos-payment-row .select2-container--default .select2-selection--single .select2-selection__rendered,
.pos-page #pos-payment-modal #pos-payment-status + .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.pos-page #pos-payment-modal .pos-payment-row .select2-container--default .select2-selection--single .select2-selection__arrow,
.pos-page #pos-payment-modal #pos-payment-status + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.pos-page #cash-register .pos-register-status {
    font-size: 0.95rem;
}

.pos-page #cash-register .pos-register-form .form-label {
    font-weight: 600;
    color: #5b6b7b;
    margin-bottom: 6px;
}

.pos-page #cash-register .pos-register-form .form-control {
    border-radius: 6px;
    min-height: 38px;
}

.pos-page #cash-register .pos-register-actions .btn {
    border-radius: 6px;
    min-width: 140px;
}

.pos-page #cash-register .pos-register-table td {
    vertical-align: middle;
}

.pos-page #cash-register .pos-register-history th,
.pos-page #cash-register .pos-register-history td {
    font-size: 12px;
}

.pos-page .pos-orders-table-wrapper {
    max-height: 360px;
    overflow-y: auto;
}

.pos-page .pos-orders-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5b6b7b;
    border-bottom: 1px solid #eef1f6;
}

.pos-page .pos-orders-table td {
    border-top: 1px solid #f4f5f7;
    padding: 0.65rem 0.75rem;
}

.pos-page .pos-grand-total-row td {
    background: #E6EAED;
}

.pos-page #orders .modal-dialog {
    max-width: 1400px;
    width: 96vw;
}

.pos-page #orders .card-body.p-0,
.pos-page #pos-customer-view-modal .card-body.p-0 {
    padding: 12px 16px !important;
}

@media (max-width: 991.98px) {
    .pos-page #pos-payment-modal .pos-payment-summary-card {
        margin-top: 6px;
    }
}

.pos-page #pos-receipt-modal .modal-dialog.pos-receipt-dialog {
    max-width: 760px;
    width: calc(100vw - 1.5rem);
}

.pos-page #pos-receipt-modal .pos-receipt-modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 16px 18px;
}

.pos-page #pos-receipt-modal .pos-receipt-printable {
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
}

.pos-page #pos-receipt-modal .pos-receipt-head {
    border-bottom: 1px solid #e8edf3;
    padding-bottom: 10px;
}

.pos-page .pos-receipt-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    overflow: hidden;
}

.pos-page .pos-receipt-table th,
.pos-page .pos-receipt-table td {
    padding: 8px 6px;
    font-size: 12px;
    vertical-align: middle;
}

.pos-page .pos-receipt-table thead th {
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
}

.pos-page .pos-receipt-table tbody td {
    border-bottom: 1px solid #eef2f7;
}

.pos-page .pos-receipt-table tbody tr:last-child td {
    border-bottom: 0;
}

.pos-page .pos-receipt-table th:first-child,
.pos-page .pos-receipt-table td:first-child {
    width: 38%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pos-page .pos-receipt-table th:nth-child(2),
.pos-page .pos-receipt-table td:nth-child(2) {
    width: 17%;
}

.pos-page .pos-receipt-table th:nth-child(3),
.pos-page .pos-receipt-table td:nth-child(3) {
    width: 11%;
}

.pos-page .pos-receipt-table th:nth-child(4),
.pos-page .pos-receipt-table td:nth-child(4) {
    width: 14%;
}

.pos-page .pos-receipt-table th:nth-child(5),
.pos-page .pos-receipt-table td:nth-child(5) {
    width: 20%;
}

.pos-page .pos-receipt-table.pos-receipt-no-tax th:first-child,
.pos-page .pos-receipt-table.pos-receipt-no-tax td:first-child {
    width: 45%;
}

.pos-page .pos-receipt-table.pos-receipt-no-tax th:nth-child(2),
.pos-page .pos-receipt-table.pos-receipt-no-tax td:nth-child(2) {
    width: 20%;
}

.pos-page .pos-receipt-table.pos-receipt-no-tax th:nth-child(3),
.pos-page .pos-receipt-table.pos-receipt-no-tax td:nth-child(3) {
    width: 13%;
}

.pos-page .pos-receipt-table.pos-receipt-no-tax th:nth-child(4),
.pos-page .pos-receipt-table.pos-receipt-no-tax td:nth-child(4) {
    width: 22%;
}

.pos-page .pos-receipt-table th:not(:first-child),
.pos-page .pos-receipt-table td:not(:first-child) {
    white-space: nowrap;
}

.pos-page #pos-receipt-modal .pos-receipt-panel {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 10px 12px;
    height: 100%;
}

.pos-page #pos-receipt-modal .pos-receipt-panel-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pos-page #pos-receipt-modal .pos-receipt-payments .d-flex {
    padding: 5px 0;
    border-bottom: 1px dashed #e8edf3;
}

.pos-page #pos-receipt-modal .pos-receipt-payments .d-flex:last-child {
    border-bottom: 0;
}

.pos-page #pos-receipt-modal .pos-receipt-notes-panel {
    min-height: 78px;
}

.pos-page .input-icon-addon .pos-currency-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    color: #5b6b7b;
    line-height: 1;
}

.pos-page #pos-receipt-logo {
    max-height: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .pos-page #pos-receipt-modal .modal-dialog.pos-receipt-dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .pos-page #pos-receipt-modal .pos-receipt-modal-body {
        padding: 12px;
    }

    .pos-page .pos-receipt-table th,
    .pos-page .pos-receipt-table td {
        font-size: 11px;
        padding: 7px 5px;
    }
}

.pos-page .modal-footer,
.pos-page .modal-footer-btn {
    justify-content: flex-end !important;
}

.pos-page .modal-footer-btn {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.pos-page .pos-modal .modal-header p {
    display: none;
}

.pos-page .pos-orders-table th:last-child,
.pos-page .pos-orders-table td:last-child {
    text-align: center;
}

.pos-page .pos-orders-table td:last-child .d-flex {
    width: 100%;
    justify-content: center;
}

.pos-page .pos-customer-orders-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5b6b7b;
    border-bottom: 1px solid #eef1f6;
}

.pos-page .pos-customer-orders-table td {
    border-top: 1px solid #f4f5f7;
    padding: 0.65rem 0.75rem;
}

.pos-page .pos-customer-orders-table th:last-child,
.pos-page .pos-customer-orders-table td:last-child {
    text-align: center;
}

.pos-page .pos-customer-orders-table td:last-child .d-flex {
    width: 100%;
    justify-content: center;
}

.pos-page .pos-customer-summary-card {
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 74px;
}

.pos-customer-summary-card {
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 74px;
}

.invoice-logo {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
}

.invoice-logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .invoice-logo-img {
        max-height: 48px;
    }
}

.pos-page .pos-customer-summary-title {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.pos-customer-summary-title {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.pos-page .pos-customer-summary-value {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.pos-customer-summary-value {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.pos-page .pos-customer-summary-header {
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
}

.pos-customer-summary-header {
    border: 1px solid #eef1f6;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
}

.pos-page .pos-customer-summary-card.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.08);
}

.pos-customer-summary-card.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.08);
}

.pos-page .pos-customer-summary-card.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.08);
}

.pos-customer-summary-card.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.08);
}

.pos-page .pos-customer-summary-card.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.12);
}

.pos-customer-summary-card.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.12);
}

.pos-page .pos-customer-summary-card.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.08);
}

.pos-customer-summary-card.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.08);
}

/* Store selector overrides */
.select-store-dropdown .dropdown-menu .dropdown-item.active,
.select-store-dropdown .dropdown-menu .dropdown-item.active:focus,
.select-store-dropdown .dropdown-menu .dropdown-item.active:hover {
    background-color: #8FC63F !important;
    color: #ffffff !important;
}
.select-store-dropdown .dropdown-menu .dropdown-item.active .store-name,
.select-store-dropdown .dropdown-menu .dropdown-item.active:focus .store-name,
.select-store-dropdown .dropdown-menu .dropdown-item.active:hover .store-name {
    color: #ffffff !important;
}
.select-store-dropdown .dropdown-menu .dropdown-item.active .store-icon,
.select-store-dropdown .dropdown-menu .dropdown-item.active:focus .store-icon,
.select-store-dropdown .dropdown-menu .dropdown-item.active:hover .store-icon {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.pos-page .pos-products .pos-product-fallback {
    width: 100%;
    min-height: 120px;
    background: #f4f6f9;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
}

.pos-page .pos-products .product-info .product-image {
    width: 100%;
}

.pos-page .pos-products .product-info .product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.productimg .productimgs,
.productset .productsetimg,
.productviews .productviewsimg,
.table tbody tr td .product-info .product-img,
.table tbody tr td a.product-img,
table tbody .productimgname a.stock-img.product-img,
.userimgname .product-img,
.product-image {
    position: relative;
    overflow: hidden;
}

.productimg .productimgs img,
.productset .productsetimg img,
.productviews .productviewsimg img,
.table tbody tr td .product-info .product-img img,
.table tbody tr td a.product-img img,
table tbody .productimgname a.stock-img.product-img img,
.userimgname .product-img img,
.product-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.pos-page .pos-category3:not(.owl-loaded) {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
}

.pos-page .pos-category3:not(.owl-loaded) li {
    width: auto;
    flex: 0 0 auto;
}

.pos-page .pos-category3.owl-carousel .owl-stage {
    display: flex;
    width: max-content !important;
}

.pos-page .pos-category3.owl-carousel .owl-item {
    width: auto !important;
}

body.pos-page {
    overflow-y: auto !important;
}

body.pos-page .main-wrapper.pos-five {
    min-height: 100vh;
}

@media (min-width: 992px) {
    body.pos-page {
        overflow: hidden !important;
    }

    body.pos-page .main-wrapper.pos-five {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    body.pos-page .page-wrapper.pos-pg-wrapper {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    body.pos-page .page-wrapper.pos-pg-wrapper .content {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.pos-page #pos-page .pos-wrapper {
        height: 100%;
        align-items: stretch;
    }

    body.pos-page #pos-page .pos-categories,
    body.pos-page #pos-page aside.product-order-list {
        height: calc(100vh - 65px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.pos-page #pos-page .pos-categories {
        padding-right: 16px;
    }

    body.pos-page #pos-page aside.product-order-list {
        padding-right: 6px;
    }

    /* Avoid nested scrollbar inside order panel; keep one explicit right-column scroller. */
    body.pos-page #pos-page aside.product-order-list .product-added .product-wrap {
        max-height: none;
        overflow: visible;
    }
}

body.pos-page #pos-page .pos-category3.owl-carousel .owl-stage {
    display: flex;
    width: max-content !important;
}

body.pos-page #pos-page .pos-category3.owl-carousel .owl-item {
    flex: 0 0 auto;
    width: auto !important;
}

body.pos-page #pos-page .pos-category3.owl-carousel .owl-item li {
    white-space: nowrap;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .dataTables_scroll {
    width: 100%;
}

.dataTables_wrapper.table-responsive {
    overflow: visible;
}

.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
}

.dataTables_wrapper table.dataTable,
table.dataTable {
    width: 100% !important;
}

/* Notification UX refresh */
.notifications-modern {
    width: 420px;
    max-width: calc(100vw - 1rem);
    padding: 0;
}

.notifications-modern .noti-content {
    width: 100%;
    height: 340px;
    overflow-y: auto;
}

.notifications-modern .notification-list {
    margin: 0;
    padding: 0;
}

.notifications-modern .notification-message {
    border-bottom: 1px solid #eef1f5;
}

.notifications-modern .notification-item,
.notification-feed .notification-item {
    border: 0;
    width: 100%;
    background: #fff;
    text-align: left;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font: inherit;
    color: inherit;
}

.notification-feed .notification-item {
    border-radius: 0;
}

.notifications-modern .notification-item:hover,
.notification-feed .notification-item:hover {
    background: #f9fbfd;
}

.notifications-modern .notification-item.unread,
.notification-feed .notification-item.unread {
    background: #f4f9ff;
}

.notifications-modern .notification-item .notification-icon-chip,
.notification-feed .notification-item .notification-icon-chip,
.notification-detail-modal .notification-icon-chip {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecf3ff;
    color: #1b4d9d;
    font-size: 15px;
}

.notifications-modern .notification-item .notification-body,
.notification-feed .notification-item .notification-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notifications-modern .notification-item .notification-line,
.notification-feed .notification-item .notification-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.notifications-modern .notification-item .notification-heading,
.notification-feed .notification-item .notification-heading {
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}

.notifications-modern .notification-item .notification-text,
.notification-feed .notification-item .notification-text {
    color: #5b6b7b;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notifications-modern .notification-item .notification-time,
.notification-feed .notification-item .notification-time {
    color: #6b7280;
    font-size: 11px;
    white-space: nowrap;
}

.notification-feed .notification-item .notification-date {
    color: #94a3b8;
    font-size: 11px;
}

.notifications-modern .notification-item-compact .notification-date {
    display: none;
}

.notification-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.notification-summary-card {
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 12px;
    background: #f8fafc;
}

.notification-summary-card .label {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
}

.notification-summary-card strong {
    font-size: 20px;
    line-height: 1;
    color: #0f172a;
}

.notification-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-feed-item {
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.notification-feed-item.unread {
    border-color: #d6e7ff;
    background: #f8fbff;
}

.notification-feed-actions {
    padding: 10px 12px;
    border-top: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.notification-detail-modal .modal-content {
    border-radius: 12px;
}

.notification-detail-modal .notification-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
