﻿
.welcome {
    position: absolute;
    top: 6rem;
    bottom: 6rem;
    left: 12rem;
    right: 12rem;
}

.table-container {
    min-height: 100%;
    min-width: 100%;
    border: 1px solid #cce5ff;
    border-radius: 6px;
    background: #f9fcff;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Header table (no scroll) */
.content-table1 {
    max-height: 100%;
    min-width: 100%;
}

/* Data table (scrollable) */
.content-table2 {
    height: auto;
    max-height: auto;
    width: 100%;
    display: block;
    overflow-y: auto;
    border-collapse: collapse;
    scroll-snap-type: y mandatory;
}

/* Rows should match header width */
.content-table2 tr {
    display: table;
    width: 100%;
    height: auto;
    table-layout: fixed;
    scroll-snap-align: start;
}

/* Header styling */
.content-table1 thead th {
    padding: 10px;
    border-bottom: 1px solid #d1d1d1;
    text-align: left;
    font-weight: bold;
    background-color: #99ccff;
}

.content-table1 thead tr th:first-child {
    border-top-left-radius: 5px;
}

.content-table1 thead tr th:last-child {
    border-top-right-radius: 5px;
}

/* Row styling */
.content-table2 tbody td {
    padding: 10px;
    border-bottom: 1px solid #d1d1d1;
}

.content-table2 tbody tr:last-of-type:hover td:last-child {
    background-color: #e6f2ff;
    font-weight: 500;
}

.content-table2 tbody tr:last-of-type td:first-child,
.content-table2 tbody tr:last-of-type td:last-child {
    border-bottom: 1px solid #d1d1d1;
}

.content-table2 tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Normal hover */
.content-table2 tbody tr:not(:last-of-type):hover {
    background-color: #e6f2ff;
    font-weight: 500;
}

.content-table2 tbody tr.active td {
    background-color: #cce5ff !important;
    font-weight: bold;
}

/* ✅ Show "No Data Found" when empty */
.table-container:has(.content-table2 tbody:empty)::after {
    content: "No Data Found";
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #cce5ff;
}

/* ✅ Custom Scrollbar (only content-table2) */
.content-table2::-webkit-scrollbar {
    width: 12px;
}

.content-table2::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 0 5px 0;
}

.content-table2::-webkit-scrollbar-thumb {
    background: #99c2ff;
    border-radius: 5px;
    border: 3px solid #f0f0f0;
    min-height: 20px;
}

.welcome-footer button {
    font-weight: bold;
    position: fixed;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index:1;
}

.content-table2 tbody tr td {
    position: relative;
}

.content-table2 tbody tr .edit-icon {
    position: absolute;
    cursor: pointer;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    fill: #808080;
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
}

.content-table2 tbody tr.active td .edit-icon {
    fill: #3399ff;
}

.content-table2 tbody tr .edit-icon:hover {
    fill: #3399ff !important;
}

.search-container {
    display: flex;
    justify-content: flex-end; /* Align to right */
    align-items: center;
}

.search-container .search-input {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    position: relative;
    width: auto;
}

.search-container .search-icon {
    position: relative;
    fill: #999;
    pointer-events: none;
    right: 3px;
}