.incoming-stock-native-table thead th {
    font-size: 13px !important;
}

/* Table Body Contents: Set to 15px */
.incoming-stock-native-table tbody td {
    font-size: 15px !important;
}

/* Specific fix for the SKU counter/weight if needed */
.incoming-stock-native-table .col-code-cell {
    font-size: 15px !important;
}

/* Ensure the 'In Stock' number also follows the 15px rule */
.incoming-stock-native-table td[data-title="In Stock"] strong {
    font-size: 15px !important;
}

/* Reset default backgrounds */
.incoming-stock-native-table tbody tr {
    background-color: transparent !important;
}

.incoming-stock-native-table tr.sku-group-odd td.col-colour-cell {                
    background-color: #ffffff !important;
    background: #ffffff !important; /* Safety fallback */
}

.incoming-stock-native-table tr.sku-group-even td.col-colour-cell {                
    background-color: #ffffff !important;
    background: #ffffff !important; /* Safety fallback */
}


/* Color SKU Group 1, 3, 5, etc (Odd Groups) */
.incoming-stock-native-table tr.sku-group-odd,
.incoming-stock-native-table tr.sku-group-odd + tr:not([class*="sku-group"]) {
    background-color: #f8f8f8 !important;
}

/* Color SKU Group 2, 4, 6, etc (Even Groups) */
.incoming-stock-native-table tr.sku-group-even,
.incoming-stock-native-table tr.sku-group-even + tr:not([class*="sku-group"]) {
    background-color: rgba(0, 0, 0, 0.025) !important;
}

/* Ensure cells inside those rows pick up the row color */
.incoming-stock-native-table tr.sku-group-odd td,
.incoming-stock-native-table tr.sku-group-even td {
    background-color: inherit !important;
}

/* Special fix for the Colour Cell (the one with the big image) */
/* This makes it stay white or a neutral color so it doesn't look cut off */
.incoming-stock-native-table td.col-colour-cell {
    background-color: #ffffff !important; 
}
/* Also add the border to the last 'Incoming' and 'ETA' cells of that group */
/* This targets the row that contains the next SKU's rowspan to underline the one above it */
.incoming-stock-native-table tr:has(+ tr td[rowspan]) td {
    /* border-bottom: 1px solid #e0e0e0 !important; */
}

/* Fallback for browsers that don't support :has (underlines every single incoming row) */
/* If you prefer ONLY underlining the group, use the code below instead */
.incoming-stock-native-table td {
    /* border-bottom: 1px solid rgba(0,0,0,0.05) !important; */
}

/* Match the custom table to the Additional Info style */
.artwork-table-styled {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

/* Table Headers: Transparent background, bold text, no italics */
.artwork-table-styled thead th {
    background-color: transparent !important;
    padding: 8px 12px;
    font-weight: bold !important; /* Bold text */
    text-transform: uppercase;
    font-size: 13px !important;
    border: 1px solid #ebebeb;
    font-style: normal; /* Removes italics */
}

/* Table Cells: No italics */
.artwork-table-styled td {
    padding: 10px 12px;
    border: 1px solid #ebebeb;
    vertical-align: middle;
    font-style: normal !important; /* Forces removal of theme's default italics */
}

/* 1st Column: Template Name (80%) */
.artwork-table-styled th:nth-child(1),
.artwork-table-styled td:nth-child(1) {
    width: 80%;
}

/* 2nd & 3rd Columns: Preview & Download (10% each) */
.artwork-table-styled th:nth-child(2),
.artwork-table-styled td:nth-child(2),
.artwork-table-styled th:nth-child(3),
.artwork-table-styled td:nth-child(3) {
    width: 10%;
    text-align: center; /* Ensures the icons stay perfectly centered */
}


/* Alternating row colors */
.artwork-table-styled tbody tr:nth-child(odd) td {
    background-color: #f8f8f8 !important;
    color: black !important;
}

.artwork-table-styled tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, .025) !important;
    color: black !important;
}

/* Icon styling */
.artwork-icon-link {
    text-decoration: none;
    color: inherit;
}

.artwork-icon-link .dashicons {
    font-size: 20px;
    transition: color 0.2s ease;
}

/* Icon hover color */
.artwork-icon-link:hover .dashicons {
    color: #c01823;
}
			/* .stock.out-of-stock ~ .wc-pao-addons-container,
			.out-of-stock .wc-pao-addons-container {
				display: none !important;
			} */
/* 1. Reset the list container */
			.woocommerce-product-details__short-description{
				font-size: 13px;
				padding-top: 20px;
				padding-bottom: 28px;
			}
.woocommerce-product-details__short-description ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-left: 25px !important;
    padding-left: 0 !important;
}

			.woocommerce-product-details__short-description p {
				line-height: 1.6 !important;
				margin-top: 0;
				margin-bottom: 0.8em !important;
				padding-top: 0.4em !important;
			}

			.woocommerce-product-details__short-description div {
				line-height: 1.6 !important;
				margin-top: 0;
				margin-bottom: 0.8em !important;
				padding-top: 0.4em !important;
			}


/* 2. Ensure the list item itself is set to list-item */
.woocommerce-product-details__short-description li {
    display: list-item !important;
    /* margin-bottom: 10px !important; */
    line-height: 1.6 !important;
}

/* 3. THE FIX: Force ALL tags inside the LI (p, span, div) to be inline */
.woocommerce-product-details__short-description li * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

			/* Unified Table Structure */
.incoming-stock-native-table {
    width: 100%;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    table-layout: auto;
}

/* Ensure native header alignment */
.incoming-stock-native-table th {
    padding: 15px !important;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap; /* Prevents headers from wrapping awkwardly */
}

/* Table Cells General Spacing */
.incoming-stock-native-table td {
    padding: 15px !important;
    vertical-align: middle !important;
}

/* Widen the Code Column */
.incoming-stock-native-table .col-code-cell {
    white-space: nowrap; /* Forces the SKU to stay on one line */
    min-width: 140px; /* Widens the column significantly */
    font-weight: 500;
}

/* Image Column Styling */
.incoming-stock-native-table .col-colour {
    text-align: center;
}

.incoming-stock-native-table .col-colour-cell {
    text-align: center;
    width: 130px; /* Keeps the image column neat and constrained */
    border-right: 1px solid rgba(0,0,0,0.04) !important; /* Very subtle separation line */
}

.incoming-stock-native-table .stock-colour-img {
    max-width: 80px;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}

.incoming-stock-native-table .stock-colour-name {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.incoming-stock-native-table th, 
.incoming-stock-native-table td {
    padding: 12px !important;
    vertical-align: middle !important;
    border: none !important;
}

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

    .incoming-stock-native-table tr.sku-group-odd,
    .incoming-stock-native-table tr.sku-group-odd + tr:not([class*="sku-group"]) {
        background-color: #f8f8f8 !important;
    }

    /* Color SKU Group 2, 4, 6, etc (Even Groups) */
    .incoming-stock-native-table tr.sku-group-even,
    .incoming-stock-native-table tr.sku-group-even + tr:not([class*="sku-group"]) {
        background-color: rgba(0, 0, 0, 0.025) !important;
    }

    /* 4. Keep the Image Section white even in mobile/stacked view */
    .incoming-stock-native-table td.col-colour-cell {
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* border-bottom: 1px solid #ebebeb !important; */
    }

    /* 5. Clean up data cell backgrounds to let the row color show through */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        background-color: transparent !important;
    }
    /* Format the Image cell to act as a clear section header */
    .incoming-stock-native-table .col-colour-cell {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 20px 0 10px 0 !important;
        background: transparent !important;
        
    }

    /* Hide the auto-generated data label for the image */
    .incoming-stock-native-table .col-colour-cell::before {
        display: none !important;
    }

    /* Ensure the image stays centered */
    .incoming-stock-native-table .stock-colour-img {
        margin: 0 auto 5px auto !important;
        max-width: 90px;
    }

    /* Add a bit of breathing room between table blocks */
    .incoming-stock-native-table tr {
        margin-bottom: 15px !important;
    }
    .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td {
        text-align: center !important;
    }
}
@media screen and (max-width: 1100px) {

    .incoming-stock-native-table tr.sku-group-odd,
    .incoming-stock-native-table tr.sku-group-odd + tr:not([class*="sku-group"]) {
        background-color: #f8f8f8 !important;
    }

    /* Color SKU Group 2, 4, 6, etc (Even Groups) */
    .incoming-stock-native-table tr.sku-group-even,
    .incoming-stock-native-table tr.sku-group-even + tr:not([class*="sku-group"]) {
        background-color: rgba(0, 0, 0, 0.025) !important;
    }

    /* 4. Keep the Image Section white even in mobile/stacked view */
    .incoming-stock-native-table td.col-colour-cell {
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* border-bottom: 1px solid #ebebeb !important; */
    }

    /* 5. Clean up data cell backgrounds to let the row color show through */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        background-color: transparent !important;
    }
    
    /* Force the table to stop being a table */
    .incoming-stock-native-table, 
    .incoming-stock-native-table thead, 
    .incoming-stock-native-table tbody, 
    .incoming-stock-native-table tr, 
    .incoming-stock-native-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hide Headers */
    .incoming-stock-native-table thead {
        display: none !important;
    }

    /* Create a "Card" look for each row */
    .incoming-stock-native-table tr {
        border: 1px solid #eee !important;
        margin-bottom: 20px !important;
        background: #fff !important;
        border-radius: 4px;
        overflow: hidden;
    }

    /* The Image/Color Cell - Full Width Centered */
    .incoming-stock-native-table td.col-colour-cell {
        background: #fcfcfc !important;
        text-align: center !important;
        padding: 20px !important;
        /* border-bottom: 1px solid #eee !important; */
    }

    .incoming-stock-native-table .stock-colour-img {
        max-width: 120px !important;
        margin: 0 auto 10px auto !important;
    }

    /* Data Cells - The "Label over Value" approach to prevent cutoff */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        text-align: left !important;
        padding: 10px 15px !important;
        position: relative;
        display: flex !important;
        flex-direction: column; /* This keeps long SKUs from overlapping labels */
        /* border-bottom: 1px solid #f9f9f9 !important; */
    }

    /* The Label (Code, Stock on Hand, etc.) */
    .incoming-stock-native-table td:not(.col-colour-cell)::before {
        content: attr(data-title);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        color: #888;
        margin-bottom: 4px;
        display: block;
    }
    
    /* Ensure the text inside (SKU, numbers) wraps if it's too long */
    .incoming-stock-native-table td {
        word-break: break-all !important;
        white-space: normal !important;
    }
}
@media screen and (max-width: 1024px) {

    .incoming-stock-native-table tr.sku-group-odd,
    .incoming-stock-native-table tr.sku-group-odd + tr:not([class*="sku-group"]) {
        background-color: #f8f8f8 !important;
    }

    /* Color SKU Group 2, 4, 6, etc (Even Groups) */
    .incoming-stock-native-table tr.sku-group-even,
    .incoming-stock-native-table tr.sku-group-even + tr:not([class*="sku-group"]) {
        background-color: rgba(0, 0, 0, 0.025) !important;
    }


    /* .incoming-stock-native-table tbody tr {
        background-color: transparent !important;
    }

    .incoming-stock-native-table tr.sku-group-odd {
        background-color: #f8f8f8 !important;
    }

    .incoming-stock-native-table tr.sku-group-even {
        background-color: rgba(0, 0, 0, 0.025) !important;
    }

    .incoming-stock-native-table tr.sku-group-odd td {
        background-color: inherit !important;
    }
    
    .incoming-stock-native-table tr.sku-group-even td {
        background-color: inherit !important;
    } */

    /* 4. Keep the Image Section white even in mobile/stacked view */
    .incoming-stock-native-table td.col-colour-cell {
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* border-bottom: 1px solid #ebebeb !important; */
    }

    /* 5. Clean up data cell backgrounds to let the row color show through */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        background-color: transparent !important;
    }
    
    /* Force table to behave like a list */
    .incoming-stock-native-table, 
    .incoming-stock-native-table thead, 
    .incoming-stock-native-table tbody, 
    .incoming-stock-native-table th, 
    .incoming-stock-native-table td, 
    .incoming-stock-native-table tr { 
        display: block !important; 
        width: 100% !important;
    }

    /* Hide the real headers */
    .incoming-stock-native-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .incoming-stock-native-table tr {
        /* border-bottom: 2px solid #eee !important; */
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
    }

    /* Special handling for the Image/Color Cell */
    .incoming-stock-native-table .col-colour-cell {
        /* background: #f9f9f9 !important; */
        text-align: center !important;
        padding: 15px !important;
        rowspan: none !important; /* Rowspan doesn't work in block display */
    }

    .incoming-stock-native-table .stock-colour-img {
        max-width: 100px !important;
        margin: 0 auto 10px auto !important;
        display: block !important;
    }

    /* Add Labels using the data-title attribute */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        text-align: center !important;
        padding-left: 50% !important;
        position: relative;
        /* border-bottom: 1px solid #f1f1f1 !important; */
    }

    .incoming-stock-native-table td:not(.col-colour-cell)::before {
        content: attr(data-title);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        color: #666;
    }

    /* Remove border from last item in the block */
    .incoming-stock-native-table td:last-child {
        border-bottom: none !important;
    }
}
@media screen and (max-width: 1300px) {

    .incoming-stock-native-table tr.sku-group-odd,
    .incoming-stock-native-table tr.sku-group-odd + tr:not([class*="sku-group"]) {
        background-color: #f8f8f8 !important;
    }

    /* Color SKU Group 2, 4, 6, etc (Even Groups) */
    .incoming-stock-native-table tr.sku-group-even,
    .incoming-stock-native-table tr.sku-group-even + tr:not([class*="sku-group"]) {
        background-color: rgba(0, 0, 0, 0.025) !important;
    }


    /* .incoming-stock-native-table tbody tr {
        background-color: transparent !important;
    } */

    /* 2. Apply background to the entire 'Card' based on the SKU group counter */
    /* .incoming-stock-native-table tr.sku-group-odd {
        background-color: #f8f8f8 !important;
    } */

    /* .incoming-stock-native-table tr.sku-group-even {
        background-color: rgba(0, 0, 0, 0.025) !important;
    } */

    /* 3. Ensure the sub-rows (extra dates) within the same card get the same color */
    /* On mobile, each <tr> is a block, so we color them individually but consistently */
    /* .incoming-stock-native-table tr.sku-group-odd td {
        background-color: inherit !important;
    } */
    
    /* .incoming-stock-native-table tr.sku-group-even td {
        background-color: inherit !important;
    } */

    /* 4. Keep the Image Section white even in mobile/stacked view */
    .incoming-stock-native-table td.col-colour-cell {
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* border-bottom: 1px solid #ebebeb !important; */
    }

    /* 5. Clean up data cell backgrounds to let the row color show through */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        background-color: transparent !important;
    }

    /* Keep labels small but body text legible on cards */
    .incoming-stock-native-table td:not(.col-colour-cell)::before {
        font-size: 11px !important; /* Header-style labels in cards */
    }
    
    .incoming-stock-native-table td {
        font-size: 15px !important; /* Values in cards */
    }
    
    /* .incoming-stock-native-table tbody tr:nth-child(odd) {
        background-color: #f8f8f8 !important;
    }
    
    .incoming-stock-native-table tbody tr:nth-child(even) {
        background-color: rgba(0, 0, 0, 0.025) !important;
    } */

    /* Optional: In your previous code, the col-colour-cell had a specific background.
    If you want it to match the alternating row color, remove its specific background:
    */
    .incoming-stock-native-table td.col-colour-cell {
        background: transparent !important; 
        /* border-bottom: 1px solid rgba(0,0,0,0.05) !important; */
    }

    /* Force table elements to stack vertically */
    .incoming-stock-native-table, 
    .incoming-stock-native-table thead, 
    .incoming-stock-native-table tbody, 
    .incoming-stock-native-table tr, 
    .incoming-stock-native-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    /* Hide the original table header row */
    .incoming-stock-native-table thead {
        display: none !important;
    }

    /* Create a separate box/card for each variation row */
    .incoming-stock-native-table tr {
        /* border: 1px solid #e5e5e5 !important; */
        margin-bottom: 30px !important;
        padding: 0 !important;
        /* background: #ffffff !important; */
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* The Image Section (Full Width, Centered) */
    .incoming-stock-native-table td.col-colour-cell {
        /* background: #f9f9f9 !important; */
        text-align: center !important;
        padding: 20px !important;
        /* border-bottom: 1px solid #e5e5e5 !important; */
    }

    .incoming-stock-native-table .stock-colour-img {
        max-width: 150px !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
        display: block !important;
    }

    /* Data Cells - "Label over Value" layout to prevent right-side cutoff */
    .incoming-stock-native-table td:not(.col-colour-cell) {
        text-align: left !important;
        padding: 12px 15px !important;
        /* border-bottom: 1px solid #f1f1f1 !important; */
    }

    /* Inject the Label from the 'data-title' attribute */
    .incoming-stock-native-table td:not(.col-colour-cell)::before {
        content: attr(data-title) ":";
        display: block !important; /* Forces label to its own line */
        font-weight: 700 !important;
        text-transform: uppercase;
        font-size: 11px;
        color: #777;
        margin-bottom: 5px;
    }

    /* Ensure the actual data (SKU/Stock) wraps and doesn't push the screen */
    .incoming-stock-native-table td {
        word-wrap: break-word !important;
        word-break: break-all !important;
        white-space: normal !important;
        font-size: 14px !important;
    }
}

/* Strip all borders from the Incoming Stock table */
.incoming-stock-native-table,
.incoming-stock-native-table th,
.incoming-stock-native-table td,
.incoming-stock-native-table tr {
    border: none !important;
}

/* Remove the subtle right-border from the colour image cell */
.incoming-stock-native-table .col-colour-cell {
    border-right: none !important;
    background: #ffffff !important; /* Changed from transparent to white */
}

/* Keep incoming stock rows plain (no zebra striping) */
.incoming-stock-native-table tr,
.incoming-stock-native-table td {
    background: #ffffff !important;
}

/* Prevent custom tab panels from dropping below vertical tabs */
.woocommerce-tabs .woocommerce-Tabs-panel#tab-incoming_stock,
.woocommerce-tabs .woocommerce-Tabs-panel#tab-artwork_templates,
.woocommerce-tabs .woocommerce-Tabs-panel#tab-branding_guidelines,
.woocommerce-tabs .woocommerce-Tabs-panel#tab-logo24_guideline {
    clear: none !important;
    min-width: 0; /* Ensures the tables don't force a line-break */
}

/* Ensure the heading doesn't force a clear and aligns to the top */
.woocommerce-tabs .woocommerce-Tabs-panel#tab-incoming_stock h2 {
    clear: none !important;
    margin-top: 0 !important; /* Aligns perfectly with the top of the tab list */
}
/* 1. Base Fix for Containers */
.woocommerce-tabs .woocommerce-Tabs-panel#tab-incoming_stock {
    width: 100% !important;
    overflow-x: hidden !important; /* Prevents horizontal scroll on the whole page */
}
