﻿
/*======================================== Table ================================================*/
/* Container pinned between top and bottom */
.openingstock-master-table-container {
    position: fixed; /* pin to viewport */
    top: 15rem; /* 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 */
.openingstock-master-content-table1 {
    border-collapse: collapse;
    width: 100%; /* table fills container */
    table-layout: auto; /* ensures fixed column widths */
}

/* Table cells */
.openingstock-master-content-table1 th,
.openingstock-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 */
}


/* Sticky header */
.openingstock-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;
}

.openingstock-master-content-table1 thead tr input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin-left: 10px;
    background-color: #3399ff;
}

/* Normal hover applies to all cells */
.openingstock-master-content-table1 tbody tr:hover td {
    background-color: #cce5ff !important;
}

/* Active row */
.openingstock-master-content-table1 tbody tr.active td {
    background-color: #cce5ff !important;
    font-weight: 500;
}

.classification-lable,
.product-select,
.classification-select {
    flex: 1;
}

.classification-lable input,
.product-select select,
.classification-select select,
.party_type-select select{
    display: block;
    width: 100%;
    height: 30px;
    background: transparent;
    border: solid 1px #ccc;
    transition: all .2s ease;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 12px;
}

.classification-lable label,
.classification-select label,
.party_type-select label{
    cursor: text;
    z-index: 2;
    top: 11px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    background: #fff;
    padding: 0 3px;
    color: #999;
    transition: all .2s ease;
    top: -8px;
}

.top-btns-container-openingstock {
    position: fixed;
    top: 4.6rem;
    left: 11.1rem;
    right: 0;
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 10px;
    padding: 0 10px;
}

.top-btns-header-openingstock {
    font-weight: bold;
    font-size: 18px;
}

.top-btns-container-openingstock-secondrow {
    position: fixed;
    top: 8rem;
    left: 11.1rem;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.top-btns-container-openingstock-thirdrow {
    position: fixed;
    top: 11.6rem;
    left: 11.1rem;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.classification-save-btn {
    position: relative;
    margin-bottom: 5px;
    display: block;
    width: 100%;
    height: 30px;
    background: transparent;
    border: solid 1.5px #3399ff;
    transition: all .2s ease;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    background-color: #e6f2ff;
}

.save-icon {
    fill: #3399ff;
    height: 25px;
    width: 25px;
    margin-right: 10px;
}
