body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f9; color: #333; } h1 { color: #1e88e5; text-align: center; margin-bottom: 20px; } form { margin: 20px auto; max-width: 600px; padding: 20px; background: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 8px; } form input, form textarea, form button { display: block; width: 100%; margin-bottom: 15px; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; } form button { background-color: #1e88e5; color: white; border: none; cursor: pointer; transition: background-color 0.3s ease; } form button:hover { background-color: #1565c0; } ul { list-style: none; padding: 0; } ul li { background: #fff; margin: 10px 0; padding: 15px; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #ddd; padding: 8px; } th { background-color: #f2f2f2; } /* Style for the grid container */ .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust the minimum width for cells */ gap: 1px; /* Gap between cells */ background-color: #ccc;/* Grid line color */ border: 1px solid #aaa; /* Outer border */ } /* Style for individual cells */ .editable-cell { display: flex; /* Use flexbox for better layout control */ flex-direction: column; /* Stack children vertically */ width: 100%; /* Full width of the allocated space */ height: 100%; /* Full height of the allocated space */ position: relative; /* Relative positioning for absolute children */ box-sizing: border-box; /* Ensure padding and border are included in width/height */ } /* Style for the input field inside the editable cell */ .editable-cell-input { width: 100%; /* Ensure input takes up full width */ height: 100%; /* Ensure input takes up full height */ border: none; /* Remove input box borders */ padding: 8px; /* Add padding for spacing */ box-sizing: border-box; /* Ensure padding doesn't cause overflow */ font-size: 14px; /* Adjust font size */ text-align: left; /* Align text to the left */ outline: none; /* Remove outline for better UI */ background-color: transparent; /* Make background transparent */ } /* Style for the focused input field */ .editable-cell-input:focus { background-color: #e0f7fa; /* Light blue background when focused */ border: 1px solid #00796b; /* Green border when focused */ } /* Style for the suggestions list */ .editable-cell-suggestions { position: absolute; /* Position suggestions absolutely within the cell */ top: 100%; /* Place suggestions below the input field */ left: 0; /* Align suggestions with the left edge of the cell */ width: 100%; /* Full width of the cell */ max-height: 200px; /* Limit height of suggestions list */ overflow-y: auto; /* Add scrollbar if suggestions exceed max height */ background-color: white; /* White background for suggestions */ border: 1px solid #ddd; /* Light border for suggestions */ z-index: 10; /* Ensure suggestions appear above other content */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility */ } /* Style for individual suggestion items */ .editable-cell-suggestions li { padding: 8px; /* Add padding for spacing */ cursor: pointer; /* Change cursor to pointer on hover */ border-bottom: 1px solid #eee; /* Add separator between items */ } .editable-cell-suggestions li:hover { background-color: #f5f5f5; /* Light gray background on hover */ } .search-icon { margin-left: 10px; padding: 5px; border: none; background-color: transparent; cursor: pointer; } .search-icon i { font-size: 18px; color: #333; } .search-icon i.fas.fa-search { margin-left: 5px; }