body, html { height: 100%; } /* Initial state to hide the body */ body { visibility: hidden; } /* Reveal body when content is ready */ body.content-loaded { visibility: visible; transition: visibility 0s ease-in-out, opacity 0.5s ease-in-out; opacity: 1; /* Smooth fade-in effect */ } body.login-section { margin: 0; padding: 0; display: flex; font-family: 'Comic Sans MS', cursive, sans-serif; justify-content: center; align-items: center; background: linear-gradient(180deg, #002147 50%, #E0E0E0 50%); } /* Chrome, Edge, Safari */ ::-webkit-scrollbar { width: 10px; /* Width of the scrollbar */ height: 10px; /* Height of the scrollbar (for horizontal scrolling) */ } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.03); /* Light gray background for the track */ border-radius: 5px; /* Rounded corners for the track */ } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.4); /* Slightly darker gray for the thumb */ border-radius: 5px; /* Rounded corners for the thumb */ } body.content-section { font-family: Arial, sans-serif; background: radial-gradient(circle at top left, #f0f0f0, #c0c0c0); color: #183a1d; margin: 0; padding-top: 20px; box-sizing: border-box; scrollbar-width: thin; /* Thin scrollbar */ scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.03); /* Thumb and track colors */ } /* Smooth fade-in */ body { opacity: 0; /* Initially hidden */ transition: opacity 0.5s ease-in-out; } .login-container { text-align: center; width: 80%; max-width: 400px; } .login-container h1 { font-size: 36px; color: #E0E0E0; } .login-container p { font-size: 18px; color: #E0E0E0; } .login-container .error { font-family: 'sans-serif'; font-size: 14px; font-weight: bold; color: red; } .login-container input[type="text"], .login-container input[type="password"] { width: calc(100% - 20px); padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; } .login-container button { padding: 10px 20px; margin-top: 20px; border: none; border-radius: 5px; background: #002147; color: #fff; cursor: pointer; font-size: 16px; } .login-container button:hover { background: #155cb0; } .developer-info p { margin-top: 50px; font-size: 18px; color: #002147; } .developer-info a { color: #002147; text-decoration: none; } .developer-info a:hover { text-decoration: underline; } header { position: fixed; top: 0; z-index: 1000; background: linear-gradient(135deg, #02386E, #13274F, #2C4778, #4A6BA8, #6A92CC, #89CFF0); color: lightgray; margin: 0; padding: 20px 0px; width: 100%; height: 50px; line-height: 1.5; text-align: center; box-sizing: border-box; max-width: 100%; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); display: flex; justify-content: space-around; /* Space between elements */ align-items: center; overflow-x: auto; /* Enables horizontal scrolling */ overflow-y: hidden; /* Prevents vertical scrolling */ white-space: nowrap; } /* Optional: to remove the scrollbar if you want to use a custom scrollbar style */ header::-webkit-scrollbar { height: 8px; /* Adjust scrollbar height */ } header::-webkit-scrollbar-thumb { background: transparent; /* Adjust scrollbar color */ border-radius: 4px; /* Adjust scrollbar corner radius */ } header::-webkit-scrollbar-track { background: transparent; /* Adjust track color */ } header h1 { padding: 0 calc(0.3vw); } .heading-container, .dropdown-container { display: flex; align-items: center; } .dropdown-container { gap: calc(0.8vw); /* Adjust the gap if needed */ } .dropdown { padding: 8px calc(0.9vw); border: 2px solid #ddd; border-radius: 10px; font-size: 16px; font-weight: 100; transition: border-color 0.3s ease, box-shadow 0.3s ease; box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1); } #switchfy { width: calc(13.3vw); /* Specific width for dropdown with ID 'a' */ } #switchnit { width: calc(12.3vw); /* Specific width for dropdown with ID 'b' */ } #dropdownp { width: calc(13.3vw); /* Specific width for dropdown with ID 'c' */ } .dropdown:focus { border-color: #6e45e2; outline: none; box-shadow: 0 0 0 3px rgba(110, 69, 226, 0.3); } select { padding: 8px 10px; border: transparent; font-size: 12px; font-weight: 100; background-color: white; /* Default background */ transition: background-color 0.3s ease; } select:focus { background-color: #f6f5f3; /* Light beige for focus */ outline: none; } .prevBtnS { width: 85px; background-color: #2E4053; color: lightgray; position: fixed; bottom: 20px; left: 8px; padding: 4px 6px; border: none; border-radius: 5px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); cursor: pointer; font-size: 12px; z-index: 2000; } .nextBtnS { width: 85px; background-color: #2E4053; color: lightgray; position: fixed; bottom: 20px; left: 104px; padding: 4px 6px; border: none; border-radius: 5px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); cursor: pointer; font-size: 12px; z-index: 2000; } .fetch-button, .submit-button { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); color: #fff; border: none; padding: 6px calc(1.1vw); border-radius: 50px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.3s ease, transform 0.3s ease; margin: 5px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); width: 130px; } .fetch-button:hover, .submit-button:hover { background: linear-gradient(135deg, #88d3ce, #6e45e2); transform: scale(1.05); } nav { width: 200px; height: calc(100vh - 50px); /* Adjust height to account for the header height */ background-color: #212E52; color: #273746; float: left; position: fixed; top: 50px; /* Height of the header */ bottom: 0; padding: 0; z-index: 2000; box-sizing: border-box; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); overflow-y: auto; /* Enables vertical scrolling for overflowing content */ overflow-x: hidden; /* Prevents horizontal scrolling */ } table { width: 100%; border-collapse: collapse; max-width: 1500px; /* Set a maximum width for the table */ margin-left: 0px; margin-bottom: 20px; /* Improve table layout on small screens */ overflow-x: auto; /* Allow horizontal scrolling */ } .table-container { overflow-x: auto; /* Ensure scrollability for wide tables */ } th {border: 2px outset #fff; /* Add border to the bottom side of cells */ padding: 5px; padding-left: 10px; text-align: justify; width: 250px; /* Set a fixed width for each cell */ font-family: 'Bahnschrift Bold', sans-serif; font-size: 13px; transition: background-color 0.3s ease; width: 250px; } td { border: 1px dashed lightgray; /* Add border to the bottom side of cells */ padding: 5px; padding-left: 10px; text-align: center; width: 250px; /* Set a fixed width for each cell */ font-family: 'Bahnschrift Bold', sans-serif; font-size: 13px; transition: background-color 0.3s ease; width: 250px; } th { color: #273746; font-size: 13px; background-color: #E0E0E0; font-weight: bold; text-align: left; } .th1 { background-color: #051e3e; color: white; text-align: center; } .th2 { background-color: #051e3e; color: #E0E0E0; text-align: center; } .th3 { background-color: #CFECEC; color: gray; text-align: center; } .th5 { background-color: #E0E0E0; color: #273746; text-align: center; } .table tbody tr:hover { background: #eaeaea; } td.editable { background-color: #fff; color: #273746; } td:focus { outline: none; background-color: #f6f5f3; /* Highlight for focused cell */ } .multiple-selected { background-color: #f6f5f3 !important; /* Highlight for selected cells */ } td.editable.error { border-color: red; } .tables-container { display: flex; justify-content: space-between; } .side-by-side { width: calc(50% - 2px); /* Adjust the width to account for borders */ border: 1px dotted #fff; /* Add border to the tables */ box-sizing: border-box; /* Include border in the width calculation */ } .side-by-side:first-child { margin-right: 6px; /* Add margin to the right of the first table */ } .side-by-side:last-child { margin-left: 6px; /* Add margin to the left of the second table */ } .tablereg { width: 100%; border-collapse: collapse; max-width: 100%; /* Set a maximum width for the table */ margin-bottom: 20px; } .tablereg th, .tablereg td { border: 2px outset #fff; /* Add border to the bottom side of cells */ padding: 1px; padding-left: 3px; text-align: justify; } .tablereg th { background-color: #E0E0E0; color: #273746; font-size: 11px; font-family: 'Bahnschrift Bold', sans-serif; text-align: center; } .tablereg td { background-color: #fff; color: #273746; } td.vertical-text { writing-mode: vertical-lr; /* Rotate text to vertical orientation */ text-align: center; /* Align text in the center */ padding: 8px; /* Add padding to provide spacing */ } .hidden { display: none; } .main-button, .sub-button, .switch-button { display: block; width: 100%; font-size: 12px; padding: 7px; margin: 0px; border: none; text-align: left; cursor: pointer; z-index: 1001; /* Ensure it's above other elements */ } .main-button:hover, .sub-button:hover, .switch-button:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); } .main-button { background-color: #27445C; color: #E0E0E0; } .sub-button, .switch-button { background-color: #E0E0E0; color: black; } .section { margin-left: 210px; margin-right: 10px; margin-top: 55px; /* Height of the header */ padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 20px; text-align: justify; box-sizing: border-box; vertical-align: top; overflow: hidden; z-index: 0; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .section::before { content: ''; position: absolute; top: 200px; left: 200px; width: 75%; height: 75%; background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.05), transparent); transform: rotate(-45deg); z-index: -1; transition: opacity 0.4s ease; } .section:hover::before { opacity: 0.2; } .active { background: radial-gradient(circle at top left, #f0f0f0, #c0c0c0); color: #4A6BA8; font-weight: bold !important; } .active-main { background-color: #00674F; color: #E0E0E0; font-weight: bold !important; } .flash-message { color: red; font-size: 0.8em; display: none; position: relative; background: white; border: 1px solid red; padding: 2px 5px; border-radius: 3px; top: 100%; /* Position the warning below the input field */ left: 25px; z-index: 1; margin-top: 2px; } footer { text-align: center; margin-top: 30px; margin-left: 210px; } /* Styles for the print preview iframe */ #print-preview { position: absolute; top: -10000px; /* Hide off-screen */ left: -10000px; width: 0; height: 0; border: none; overflow: hidden; } .fixed-message { color: green; text-align: center; font-size: 13px; position: fixed; font-weight: bold; top: 50px; right: 0; left: 210px; padding: 3px; z-index: 10; /* Ensure it's above other content */ } /* General media query for mobile devices */ @media (max-width: 768px) { body.login-section { flex-direction: column; background: linear-gradient(180deg, #002147 70%, #E0E0E0 30%); } .login-container { width: 90%; /* Increase width to utilize more screen space */ max-width: 100%; } header { height: auto; /* Allow header to grow with content */ padding: 10px 0; /* Adjust padding for smaller screens */ flex-direction: column; /* Stack items vertically */ align-items: center; /* Center items horizontally */ position: relative; /* Allows the header to move with the body */ } .heading-container, .dropdown-container { flex-direction: column; /* Stack elements */ gap: 5px; /* Reduce spacing */ } .dropdown { /* Adjust width for smaller screens */ font-size: 14px; /* Reduce font size */ } #switchfy, #switchnit, #dropdownp { width: 100%; /* Specific width for dropdown with ID 'a' */ } .fetch-button, .submit-button { width: 100%; /* Full-width buttons */ font-size: 14px; /* Reduce font size */ padding: 8px; /* Adjust padding */ } nav { width: 100%; /* Make navigation bar full-width */ height: auto; /* Allow navigation to grow dynamically */ position: static; /* Move to the flow of the document */ padding: 10px; } .tables-container { flex-direction: column; /* Stack tables vertically */ width: 100%; /* Ensure tables container spans the full width */ box-sizing: border-box; /* Include padding and border in width calculation */ } .side-by-side { width: 100%; /* Make tables full-width */ margin: 5px 0; /* Add spacing between tables */ } table { font-size: 12px; /* Reduce font size */ width: 100%; /* Set table width to 100% */ border-collapse: collapse; /* Improve table layout on small screens */ overflow-x: auto; /* Allow horizontal scrolling */ display: block; /* Makes the table scrollable */ } th, td { padding: 5px; /* Reduce padding */ font-size: 12px; /* Adjust text size */ text-align: left; /* Align text to the left for readability */ width: auto; /* Allow cells to adjust width */ } .section { margin-left: 0; /* Remove left margin for better fit */ margin-right: 0; /* Remove right margin */ padding: 10px; /* Adjust padding */ max-width: 100%; width: 100%; /* Allow the section to fit the screen width */ box-sizing: border-box; /* Ensure padding is included in width */ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden; z-index: 0; margin-top: 0px; /* Optional: Add some space between sections */ } /* .fixed-message styling */ .fixed-message { color: green; text-align: center; font-size: 13px; position: relative; font-weight: bold; top: 0px; /* Adjusted to place just below the header */ right: 0; left: 0; padding: 10px; z-index: 10; /* Ensure it's above other content */ } .main-button, .sub-button, .switch-button { font-size: 14px; /* Adjust button size */ padding: 8px; /* Adjust padding */ } .login-container h1 { font-size: 24px; /* Reduce header size */ } .login-container p { font-size: 16px; /* Adjust paragraph size */ } .tablereg { margin: 10px 0; /* Add spacing for clarity */ max-width: 100%; /* Ensure the table fits within the container */ overflow: auto; /* Add scrollability */ height: 300px; /* Limit table height to ensure scrollability */ border: 1px solid #ccc; /* Add border for clarity */ } footer { font-size: 14px; text-align: center; margin-top: 20px; margin-left: 0px; /* Adjust footer text size */ } }