﻿
/*======================================== Table ================================================*/
/* Container pinned between top and bottom */
.barcode-master-table-container {
    position: fixed; /* pin to viewport */
    top: 8rem; /* distance from top (adjust as needed) */
    bottom: 4rem; /* distance from bottom (adjust as needed) */
    left: 11.1rem;
    right: 0;
    background: #f9fcff;
    display: block;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0 auto;
    scrollbar-width: auto; /* auto | thin | none */
    scrollbar-color: #99c2ff #f1f1f1; /* thumb color | track color */
}

/* Table with fixed column sizes */
.barcode-master-content-table1 {
    border-collapse: collapse;
    width: 100%; /* table fills container */
    table-layout: auto; /* ensures fixed column widths */
}

/* Table cells */
.barcode-master-content-table1 th,
.barcode-master-content-table1 td {
    text-align: left;
    padding: 10px;
    border-right: none;
    border-left: none;
    box-shadow:
    inset 0 -0.5px 0 #ccc,
    inset -0.5px 0 0 #ccc,
    inset 0.5px 0 0 #ccc;
    width: 300px;       /* fixed width per column */
    white-space: normal;       /* prevent wrapping */
    word-wrap: break-word;   /* break long words */
    overflow: hidden;   /* content doesn’t overflow */
    text-align: center;
}

/* Sticky header */
.barcode-master-content-table1 thead th {
    position: sticky;
    top: 0;
    background-color: #e6f2ff;
    box-shadow: 
    inset 0 -1px 0 #ccc, /* bottom line */
    inset 0 1px 0 #ccc, /* top line */
    inset -0.5px 0 0 #ccc, /* top line */
    inset 0.5px 0 0 #ccc; /* top line */
    z-index: 1; /* higher than sticky columns */
    text-align: center;
    font-weight: 500;
}

.barcode-master-content-table1 thead tr input[type="checkbox"],
.barcode-master-content-table1 tbody tr input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin-left: 10px;
    background-color: #3399ff;
}

/* Normal hover applies to all cells */
.barcode-master-content-table1 tbody tr:hover td {
    background-color: #cce5ff !important;
}

/* Active row */
.barcode-master-content-table1 tbody tr.active td {
    background-color: #cce5ff !important;
    font-weight: 500;
}

.barcode-master-content-table1 th:nth-child(1),
.barcode-master-content-table1 td:nth-child(1) {
    width: 50px;
    text-align: center;
}

.number-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.number-input button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #e0e0e0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.number-input button:hover {
    background: #d0d0d0;
}

.num-box {
    width: 50px;
    height: 35px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-weight: bold;
}

/* remove browser arrows */
.num-box::-webkit-inner-spin-button,
.num-box::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.num-box {
    -moz-appearance: textfield;
}

.preview-icon,
.print-icon {
    fill: #808080;
    height: 30px;
    width: 30px;
}

.preview-icon:hover,
.print-icon:hover {
    fill: #3399ff;
    height: 30px;
    width: 30px;
}

.preview-header1 {
    position: relative;
    top: 4rem;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.preview-column1,
.preview-column1 button{
    height: 40px;
}

.welcome-footer-preview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 18px;
}

.welcome-footer-preview span{
    font-size: 17px;
    font-weight: bold;
}
.welcome-footer-preview button{
    font-size: 17px;
    font-weight: bold;
}

.preview-next-btn-icon,
.preview-back-btn-icon {
    height: 23px;
    width: 23px;
    fill: white;
}

#pdfViewport {
    position: fixed;
    top: calc(4rem + 60px);
    bottom: 4rem;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: #808080;
}

#pdfContainer {
    width: 100%;
    text-align: center;
}

#pdfContainer canvas {
    display: block;
    margin: 10px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}
