/* Excel-style cylinder input table */
        #vcTable { border-collapse: collapse; font-size: 0.88rem; min-width: 360px; }
        #vcTable th {
            background: var(--surface-color);
            color: var(--text-secondary-color);
            text-align: center;
            font-size: 0.78rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
            padding: 5px 10px;
            user-select: none;
            white-space: nowrap;
        }
        #vcTable td {
            border: 1px solid var(--border-color);
            padding: 0;
            text-align: center;
            vertical-align: middle;
        }
        #vcTable td:first-child {
            color: var(--text-secondary-color);
            font-size: 0.78rem;
            padding: 0 8px;
            background: var(--surface-color);
            width: 22px;
            user-select: none;
        }
        #vcTable td:last-child { width: 32px; }
        /* Read-mode span */
        .xl-show {
            display: block;
            padding: 5px 12px;
            cursor: cell;
            text-align: right;
            transition: background 0.12s;
            min-width: 44px;
        }
        .xl-show:hover { background: var(--primary-glow); }
        /* Edit-mode input (hidden by default) */
        .xl-inp {
            display: none;
            width: 100%;
            box-sizing: border-box;
            padding: 4px 8px;
            text-align: right;
            font-family: inherit;
            font-size: inherit;
            border: 2px solid var(--primary-color) !important;
            border-radius: 0 !important;
            background: var(--input-bg-color) !important;
            color: var(--text-color);
            outline: none;
        }
        /* Bore select — transparent, looks like a cell value */
        .xl-bore-td { position: relative; }
        .xl-bore-select {
            -webkit-appearance: none;
            appearance: none;
            border: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            padding: 5px 22px 5px 12px;
            cursor: pointer;
            font-family: inherit;
            font-size: inherit;
            color: inherit;
            width: 100%;
            text-align: right;
            text-align-last: right;
        }
        .xl-bore-select:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: -2px;
            border-radius: 0 !important;
            background: var(--input-bg-color) !important;
        }
        /* Hide the dropdown arrow so the bore value looks like plain cell text */
        .xl-bore-td::after { display: none; }
        .xl-bore-select {
            outline: none !important;
            box-shadow: none !important;
            border: 0 !important;
            background: transparent !important;
        }
        /* Highlight row being edited */
        #vcTable tbody tr:focus-within { background: var(--primary-glow); }
        /* Remove btn compact */
        #vcTable .remove-btn {
            padding: 2px 6px !important;
            font-size: 0.78rem !important;
            min-width: unset !important;
            margin: 3px;
        }

/* Extracted from inline page assets */
.k5-inline-0a715eb892{font-weight:400;opacity:0.55}

/* Extracted from inline page assets */
.k5-inline-f76fbba6e7{opacity:0.35}

/* Bore column wider, Qty column narrower */
#vcTable th:nth-child(2),
#vcTable td:nth-child(2) { width: 96px; min-width: 96px; }
#vcTable th:nth-child(4),
#vcTable td:nth-child(4) { width: 44px; min-width: 44px; }

/* First cell: row number toggles to recycle-bin delete icon on hover */
#vcTable td.row-no-cell {
    position: relative;
    width: 30px;
    min-width: 30px;
    text-align: center;
}
#vcTable td.row-no-cell .row-no {
    display: inline-block;
}
#vcTable td.row-no-cell .recycle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px 4px !important;
    margin: 0;
    border: none !important;
    background: transparent !important;
    color: var(--text-secondary-color);
    cursor: pointer;
}
#vcTable tbody tr:hover td.row-no-cell .row-no { display: none; }
#vcTable tbody tr:hover td.row-no-cell .recycle-btn { display: inline-flex; }
#vcTable td.row-no-cell .recycle-btn:hover { color: var(--danger-color, #e53935); }

/* Bottom 'add cylinder' row */
#vcTable tfoot .add-cylinder-row td {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    background: var(--surface-color);
    border: 1px dashed var(--border-color);
}
#vcTable tfoot .add-cylinder-row:hover td {
    background: var(--primary-glow);
}

/* Remove the erroneous white line under the top nav in dark theme */
html:not([data-theme='light']) body.page-pneumatic-air-consumption header {
    border-bottom: none !important;
    box-shadow: none !important;
}
