body {
    margin: 0;
}

/* The side navigation menu */
.sidebar {
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #f1f1f1;
    position: absolute;
    /* height: 100%; */
    overflow: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
  
/* Sidebar links */
.sidebar a {
    display: block;
    color: black;
    padding: 16px;
    text-decoration: none;
}
  
/* Active/current link */
.sidebar a.active {
    background-color: #04AA6D;
    color: white;
}
  
/* Links on mouse-over */
.sidebar a:hover:not(.active) {
    background-color: #555;
    color: white;
}
  
/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
div.content {
    margin-left: 200px;
    padding: 1px 16px;
    height: 1000px;
}
  
/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 700px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar a {float: left;}
    div.content {margin-left: 0;}
}
  
/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
    .sidebar a {
        text-align: center;
        float: none;
    }
}

.save-all {
    margin-bottom: 30px;
    padding: 10px;
    color: green;
    cursor: pointer;
}

/* Add a black background color to the top navigation */
.topnav {
    background-color: #333;
    overflow: hidden;
}
  
/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
  
/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}
  
/* Add an active class to highlight the current page */
.topnav a.active {
    background-color: #04AA6D;
    color: white;
}
  
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
    }
  }
  
  /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  }

.lista-aziende {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    gap: 10px;
}

.lista-aziende > input {
    width: 100%;
    padding: 5px;
}

.lista-aziende > input[type=submit] {
    padding: 10px;
    color: blue;
    cursor: pointer;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
  }
  
td, th {
    border: 1px solid #dddddd;
    text-align: center;
    padding: 10px 8px;
}
  
tr:nth-child(even) {
    background-color: #dddddd;
}

tr:nth-child(odd) {
    background-color: #fff;
}

td.auto-generated {
    background-color: rgb(255 101 101 / 14%);
}

table th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

table tbody tr td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
}

.calendar-cell {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    white-space: nowrap;
    column-gap: 5px;
}

.calendar-cell > input {
    width: 100%;
    max-width: 50px;
    justify-self: end;
}

.people-content {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 10px; 
    padding: 6px;
}

#client-table {
    height: fit-content;
}

.people-cell {
    display: flex;
    flex-direction: column;
}

.people-cell-setting {
    display: flex;
    justify-content: space-around;
}

.courses-content {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 10px;
    padding: 6px;
}

#modules-table {
    height: fit-content;
}

.module-cell-setting {
    display: flex;
    justify-content: space-around;
}

#search {
    background-image: url('/css/searchicon.png');
    background-position: 10px 10px;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}
  
.inserting-content {
    display: grid;
    grid-template-columns: 1fr 3fr 3fr;
    gap: 10px; 
    padding: 6px;
}

#client-courses-table {
    height: fit-content;
}

#client-inserting-table {
    height: fit-content;
}

#people-inserting-table {
    height: fit-content;
}

#courses-inserting-table {
    height: fit-content;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}
  
/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-left: 10px;
}
  
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.free-days-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
    gap: 8px;
}

.free-days-container > .day {
    margin: 0;
    padding: 20px;
    border: 1px solid black;
    cursor: pointer;
}

.reporting-content {
    display: grid;
    grid-template-columns: 1fr 3fr 3fr;
    gap: 10px; 
    padding: 6px;
}

#client-reporting-table {
    height: fit-content;
}

#reporting-table {
    height: fit-content;
}

.randomizer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px; 
    padding: 6px;
}

#client-randomizer-table {
    height: fit-content;
}

#randomizer-table {
    height: fit-content;
}

.insert-all {
    margin-bottom: 30px;
    padding: 10px;
    color: green;
    cursor: pointer;
}

.modules-done-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; 
    padding: 6px;
}

#client-modules-table {
    height: fit-content;
}

#people-modules-table {
    height: fit-content;
}

#modules-done-table {
    height: fit-content;
}