﻿/* Default styles for the table */
td,
th {
    padding: 12px;
    border: 1px solid #ccc;
}

.searchtable td, th {
    padding: 12px;
    border: none;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#myTable2 {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-size: 14px;
}

    #myTable2 th,
    #myTable2 td {
        max-width: 200px; /* Adjust the maximum width as needed */
        overflow: hidden;
        text-overflow: ellipsis; /* Display ellipsis (...) for overflowing text */
        white-space: nowrap; /* Prevent text from wrapping */
    }

    #myTable2 tbody tr:hover {
        background-color: #D3D3D3;
    }


.container-main {
    position: relative;
    display: flex;
    align-items: center;
}

.table-container {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

/* Styles for the top navigation bar */
.topnav {
    color: white;
 /*   padding: 10px;*/
}

/* Styles for the search container */
.search-container {
    z-index: 1;
    position: static;
    top: 11vh;
    right: 10vw;
    background-color: transparent;
    justify-content: end;
    padding: 10px;
    font-size: 14px;
    border: none;
    display: flex;
}

    .search-container form {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }

    .search-container input[type="text"] {
        height: 35px;
        width: 250px;
        margin-left: 10px;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    }

    .search-container button {
        font-size: 14px;
        width: 70px;
        color: white;
        background-color: darkblue;
        margin-left: 10px;
        padding: 10px;
        border: none;
        border-radius: 5px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

.add-new-button {
    display: flex;
    padding: 10px;
    border: none;
    background-color: darkblue;
    color: white;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    width: 70px;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    border-radius: 5px;
    box-shadow : 2px 2px 5px rgba(0, 0, 0, 0.2);
    height: 40px;
}
/*button {
    margin-left: 10px;
    margin-top: 5px;
    color: orange;
    font-weight: bold;
}
*/
.employee-name {
    text-align: left;
}


/* Media query for mobile devices */
@media screen and (max-width: 600px) {
    /* Adjust the table size for smaller screens */
    #myTable2 {
        font-size: 12px;
    }

    /* Adjust the search input size for smaller screens */
    .search-container input[type="text"] {
        width: 150px;
    }

    /* Adjust the search button size for smaller screens */
    .search-container button {
        width: 50px;
    }

    /* Move the table container below the topnav on smaller screens */
    .table-container {
        top: 60px;
    }
}
#myTable2 thead {
    position: sticky;
    top: 0;
    transition: .2s;
    color: white;
    background: darkblue;
}

/*#myTable2 thead.thead-active{
    top: 55px !important
}*/


