 .ui-tooltip,
    .custom-tooltip {
        max-width: 300px;
        padding: 12px 16px;
        background: var(--color-bg-primary) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        line-height: 1.5;
        border-radius: 5px !important;
        font-family:'Raleway', sans-serif !important;
        border: none !important;
        z-index: 9999 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    .ui-tooltip-content { color: #ffffff !important; }

    .stock-page-btn {
        background: transparent !important;
        border: 1px solid var(--table-border, #E8E8E8) !important;
        box-shadow: none !important;
        border-radius: 999px !important;
    }
    .stock-page-btn:hover,
    .stock-page-btn:focus {
        background: #0b402a !important;
         color: var(--text-white, #FFFFFF) !important;
        box-shadow: none !important;
    }
    .stock-page-btn.active {
        background: #0b402a !important;
        color: var(--text-white, #FFFFFF) !important;
        border-color: transparent !important;
    }
    .stock-page-btn[disabled],
    .stock-page-btn.disabled {
        opacity: 0.45 !important;
        cursor: not-allowed !important;
    }
 
    .custom-table {
    width: 100%;
}
  
    #stock-table-container .custom-table.thbgcolor th{
        background: #096235;
        color: #fff
    }
  
    /* Skeleton loading rows */
    .skeleton-line {
        width: 100%;
        height: 12px;
        border-radius: 4px;
        background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.04) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.1s linear infinite;
    }
    .skeleton-row {
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .skeleton-row div { 
        padding: 14px 12px !important; 
        width: 100% !important;
        max-width: 100% !important;
    }
    @keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
   
    .table-loading-spinner {
        position: absolute;
        top: 8px;
        right: 12px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 3px solid rgba(0,0,0,0.08);
        border-top-color: rgba(0,0,0,0.35);
        animation: spin 0.9s linear infinite;
        z-index: 20;
        display: none;;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Availability markers */
    .availability-x {
        font-size: 32px;
        line-height: 1;
        display: inline-block;
        transform: translateY(2px);
    }
    .availability-check { display: inline-block; vertical-align: middle; }
    .availability-check svg { width: 32px; height: 32px; }
    .title.font-anton .seo-tag-inline{
        font-size: 48px;
    }


#stock-table-container {
    position: relative;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0); /* Safari repaint fix */
}

#stock-sticky-header {
    position: sticky;
    top: 0;
    color: #fff;
    z-index: 999;
    display: flex;
    background: #146c43; /* green header */
    will-change: transform; /* prevent flicker */

}

/* ===== Sticky Header ===== */

.tablehadingstyle {
    top: 0;
    color: #fff;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #ddd;
}


/* ===== Row Layout ===== */

.tablehadingstyle1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}


/* ===== Column Width Control ===== */

.tbtdcol1 {
    width: 10%;
    flex-shrink: 0;
}

.tbtdcol2 {
    width: auto;
    flex-shrink: 0;
    flex: 1;
}

.tbtdcol3 {
    width: 10%;
    flex-shrink: 0;
    text-align: center;
}


/* ===== Prevent Wrap ===== */

.tbtdcol1,
.tbtdcol2,
.tbtdcol3 {
    white-space: nowrap;
    padding: 14px 16px;
}
#stock-sticky-header span{
    font-weight: var(--fw-600);
    font-family: var(--font-family-body);
    font-size: var(--fs-16);
    color: var(--text-white);
}
.paginationflexstyle{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 20px;
    align-items: center;
    gap: 15px;;
}

/* ===== Mobile ===== */

@media only screen and (max-width: 980px) {

    #stock-table-container {
        overflow-x: auto;
        overflow-y: auto;
        max-height: max-content
    }
    .tablehadingstyle, .tablehadingstyle1 {
        min-width: 750px;
    }
    .title.font-anton .seo-tag-inline {
        font-size: 34px;
        line-height: 44px;
    }
    #stock-sticky-header .tbtdcol1, #stock-sticky-header .tbtdcol2, #stock-sticky-header .tbtdcol3 {
        width: auto;
    }
}
@media only screen and (max-width: 800px){
    .paginationflexstyle{
        justify-content: center;
    }
    .txtnumber {
        width: 100%;
        text-align: center;
    }
    .setfpbtnmob,.setnlbtnmob {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    #stock-pagination .setfpbtnmob button.btn, #stock-pagination .setnlbtnmob button.btn {
        width: 100%;
    }
}
@media only screen and (max-width: 640px) {
    .tbtdcol1{
        width: 15%;
    }
    .tbtdcol2{
        width: 70%;
    }
    .tbtdcol3{
        width: 15%;
    }
    #stock-sticky-header .tbtdcol1,#stock-sticky-header .tbtdcol2,#stock-sticky-header .tbtdcol3{
        width: auto;
    }
    .tablehadingstyle, .tablehadingstyle1 {
        display: flex;
        flex-wrap: wrap;
    }
    .tablehadingstyle1 {
        min-width: 800px; 
    }
    #stock-table-container{
         overflow-x: auto;
    }
    #stock-pagination button.btn {
         padding: 7px 15px 8px;
    }
    .title.font-anton .seo-tag-inline {
        font-size: 30px;
        line-height: 40px;
    }
}