.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.Custom-Table-Header {
    background-color: #1F4E8C;
    color: white;
}

#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    background-color: #F1F2F3;
    z-index: 2001;
    text-align: center;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#loading-image {
    z-index: 2002; /* Ensure the image is above the background */
}

.text-transparent {
    color: transparent;
}

.readonly,
.readonly:focus,
.readonly:active {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none !important; /* remove blue outline */
    border-color: #ccc !important; /* optional: avoid blue border */
}
/* =====================================================
   POS BRANCH SELECTION – COMPLETE & ISOLATED CSS
   Author: Branch POS UI
   ===================================================== */

:root {
    --branch-primary: #1F4E8C;
}

/* =====================
   PAGE HEADER
   ===================== */

.branch-page {
    padding-top: 10px;
}

.branch-header {
    margin-bottom: 25px;
}

.branch-title {
    color: var(--branch-primary);
    font-weight: 600;
}

.branch-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

/* =====================
   LINK RESET
   ===================== */

.branch-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =====================
   CARD
   ===================== */

.branch-card {
    position: relative;
    height: 100%;
    border: 1px solid #e9ebec;
    background-color: #ffffff;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

    .branch-card:hover {
        transform: translateY(-6px);
        border-color: var(--branch-primary);
        box-shadow: 0 10px 30px rgba(64, 81, 137, 0.25);
    }

/* =====================
   ACTIVE STATUS BADGE
   ===================== */

/* Branch Status Badge with Icon */
.branch-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient( 135deg, #1F4E8C 0%, #5568c9 100% );
    box-shadow: 0 6px 14px rgba(64, 81, 137, 0.35);
    z-index: 2;
}

/* Replace Dot with Attractive Icon */
.branch-status-icon {
    font-size: 14px;
    color: #ffffff;
    animation: branchGlow 1.8s infinite;
}

/* Subtle Glow Animation */
@keyframes branchGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(255,255,255,0.5);
    }

    50% {
        text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
}


/* =====================
   CARD BODY
   ===================== */

.branch-card-body {
    padding: 24px 20px;
    text-align: center;
}

.branch-name {
    margin-bottom: 2px;
    font-weight: 600;
}

.branch-client {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

/* =====================
   MAIN ICON
   ===================== */

.branch-icon-wrap {
    margin: 20px 0;
}

.branch-main-icon {
    font-size: 48px;
    color: var(--branch-primary);
}

/* =====================
   BRANCH INFO
   ===================== */

.branch-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

    .branch-info-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        margin-bottom: 8px;
    }

        .branch-info-list li i {
            color: var(--branch-primary);
        }

/* =====================
   FOOTER
   ===================== */

.branch-footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px;
}

.branch-open-text {
    color: var(--branch-primary);
    font-size: 14px;
    font-weight: 600;
}

/* =====================
   EMPTY STATE
   ===================== */

.branch-empty-text {
    color: #6c757d;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 767px) {
    .branch-card {
        margin-bottom: 10px;
    }
}

/* Professional hover animation for product cards */
.card.product-card {
    border-radius: 10px;
    border: 1px solid #d1d1d1; /* light gray default */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    background-color: #fff;
}

    .card.product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid #1F4E8C; /* hover border color */
    }

.product-img img {
    max-height: 75px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card.product-card:hover .product-img img {
    transform: scale(1.05);
}

.card.product-card h6 {
    transition: color 0.25s ease;
}

.card.product-card:hover h6 {
    color: #1F4E8C;
}



.category-tabs-wrapper {
    overflow-x: hidden;
    border-bottom: 1px solid #e5e7eb;
}

/* Tabs */
.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    padding: 0 40px; /* space for arrows */
    min-width: max-content;
}

/* Arrow buttons */
.cat-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 50%;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    z-index: 2;
}

    .cat-scroll-btn.left {
        left: 4px;
    }

    .cat-scroll-btn.right {
        right: 4px;
    }

    .cat-scroll-btn:disabled {
        opacity: 0.25;
        cursor: default;
    }

/* Tabs look */
.category-tabs .nav-link {
    padding: 12px 2px;
    border: none;
    background: none;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    position: relative;
}

    .category-tabs .nav-link.active {
        color: #111827;
        font-weight: 600;
    }

        .category-tabs .nav-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 100%;
            height: 4px;
            background: #111827;
            border-radius: 2px 2px 0 0;
        }

.POS-BarCode {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    width: 100%;
}

    .POS-BarCode:focus-within {
        border-color: #1F4E8C;
    }

    .POS-BarCode svg {
        width: 16px;
        height: 16px;
        margin-right: 10px;
        stroke: #667085;
        stroke-width: 1.75;
        fill: none;
    }

    .POS-BarCode input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 14px;
        color: #101828;
    }

#fullBlurOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    background-color: #F3F3F9; /* completely hide the page */
    z-index: 1040; /* just below Bootstrap modal z-index (1050) */
}

.open-bill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .open-bill-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

.transition-hover {
    transition: all 0.3s ease;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
}

.autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
}

    .autocomplete-item:hover,
    .autocomplete-item.active {
        background: #f1f1f1;
    }
.table-responsive {
    overflow: visible !important;
}
.PO_REMARKS {
    white-space: pre-line;
}

.password-input {
    padding-right: 40px; /* space for the eye icon */
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px; /* inside input, right side */
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    z-index: 2;
    line-height: 1;
}

    .password-toggle:hover {
        color: #000;
    }

.custom-dd {
    position: relative;
}

.dd-display {
    border: 1px solid #ced4da;
    padding: 8px 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dd-arrow {
    font-size: 12px;
}

.dd-list {
    display: none;
    border: 1px solid #ced4da;
    position: absolute;
    width: 100%;
    background: white;
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
}

.dd-search {
    border: none;
    border-bottom: 1px solid #ddd;
    width: 100%;
    padding: 6px 10px;
    box-sizing: border-box;
}

.dd-item {
    padding: 6px 10px;
    cursor: pointer;
}

    .dd-item:hover,
    .dd-item.highlight {
        background: #1F4E8C;
        color: white;
    }