﻿
/*======================================== Table ================================================*/
/* Container pinned between top and bottom */
.catalog-master-table-container {
    position: fixed; /* pin to viewport */
    top: 23.5rem; /* 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 */
.catalog-master-content-table1 {
    border-collapse: collapse;
    width: 100%; /* table fills container */
    table-layout: auto; /* ensures fixed column widths */
}

/* Table cells */
.catalog-master-content-table1 th,
.catalog-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 */
.catalog-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;
}

.catalog-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 */
.catalog-master-content-table1 tbody tr:hover td {
    background-color: #cce5ff !important;
}

/* Active row */
.catalog-master-content-table1 tbody tr.active td {
    background-color: #cce5ff !important;
    font-weight: 500;
}

.catalog-select{
    flex: 1;
    width: 100%;
}

.catalog-select select {
    display: block;
    width: 100%;
    height: 35px;
    background: transparent;
    border: solid 1px #ccc;
    transition: all .2s ease;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 15px;
}

.catalog-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;
    font-size: 12px;
    top: -8px;
}

.top-btns-container-catalog-secondrow {
    position: fixed;
    top: 8rem;
    left: 11.1rem;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 10px;
    padding: 0 10px;
}

.column2 {
    display: flex;
    flex-direction: column;
}

.image-container {
    width: 100%;
    height: 235px;
    border: solid 1.5px #999;
    background-color: #fafafa;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* soft shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.no-image {
    width: 100px;
    height: 100px;
    fill: #ccc;
    object-fit: contain;
}

.catalog-btn button{
    position: relative;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    height: 68px;
    background: transparent;
    border: solid 1.5px #3399ff;
    transition: all .2s ease;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    background-color: #e6f2ff;
}

.catalog-delete-btn-icon {
    fill: red;
    height: 35px;
    width: 35px;
    margin-right: 10px;
}

.catalog-reset-btn-icon {
    fill: purple;
    height: 35px;
    width: 35px;
    margin-right: 10px;
}

.catalog-set-btn-icon {
    fill: #3399ff;
    height: 35px;
    width: 35px;
    margin-right: 10px;
}