/* Table styling */
       .table-wrapper {
  width: 100vw;
  height: calc(100vh - 10px); /* 👈 IMPORTANT */
  overflow-y: auto;           /* 👈 IMPORTANT */
  overflow-x: auto;
}


        table {
            width: 100%;
            table-layout: fixed;
            /* Important: forces columns to obey width constraints */
            border-collapse: collapse;
            margin-top: 12%;
        }



        td,
        th {
            border: 1px solid black;
            word-wrap: break-word;
            word-break: break-word;
            white-space: normal;
            text-align: center;
        }

        /* Sticky header style */
        th {
            background-color: #f2f2f2;
            position: sticky;
            top: 0;
        }

        tr.bg-warning td {
            background-color: #fff3cd !important;
            /* Bootstrap's bg-warning */
            box-shadow: 0 0 12px 4px rgba(1, 200, 255, 0.6);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }


        /* Search bar styling */
        #searchSRNO {
            padding: 8px;
            margin: 10px 0;
            width: 100%;
            max-width: 300px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            cursor: pointer;
            border: none;
            padding: 8px 15px;
            margin: 5px;
        }

        .nav-item.dropdown:hover .dropdown-menu {
            display: block;
        }

        .delete-btn {
            background-color: red;
            color: white;
        }

        .editable-cell {
            background-color: #ffffff;
            cursor: text;
            transition: background-color 0.3s;
        }

        .editable-cell:focus {
            background-color: #ffffff;
            outline: 2px solid #4CAF50;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            display: none;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .toast-container {
            position: fixed;
            top: 90%;
            right: 20px;
            z-index: 1000;
        }

        .non-editable-cell {
            background-color: #f8f9fa;
            cursor: not-allowed;
        }

        .highlight {
            background-color: #ffeb3b;
            color: #000;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: bold;
        }