@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    display: flex;
    flex-direction: row;
    margin: 0;
    font-family: Roboto, serif;
}

.content {
    width: 100%;
    overflow-x: auto;
    height: 100vh;
    overflow-y: auto;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
    box-sizing: border-box;
}

th {
    background-color: #f2f2f2;
}

nav {
display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f2f2f2;
    min-height: 100vh;
}

.nav-top, .nav-bottom {
    margin-top: 1vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    /*width: 15vw;*/
}

.nav-top {
    margin-top: 2vh;
    /*max-height: 15vh;*/
}

.nav-bottom {
    width: 100%;
    overflow-y: scroll;
    max-height: 85vh;
}

.logout-button, .responsible_list {
    background-color: #E13D3D;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    width: 150px;
    padding: 10px 20px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.logout-button:hover{
    opacity: 0.8;
}

.login-button {
    padding: 10px 20px;
    background-color: #357A38;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    width: 150px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.login-button:hover {
    opacity: 0.8;
}

.mail-icon {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}

.mail-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    color: white;
    background-color: red;
    border-radius: 50%;
    padding: 2px 5px;
}

.message {
    margin-bottom: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    transition: background-color 0.3s;
}

.message:hover {
    background-color: #e0e0e0;
}

.is-not-imposed {
    background-color: #ffcccc;
    font-weight: bold;
}

.active {
    background-color: #d9d9d9;
}

.incident-info {
    margin-bottom: 10px;
    background-color: #ffcccc;
    padding: 10px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.incident-info:hover {
    cursor: pointer;
    background-color: #d9d9d9;
}

.nav-category:first-child {
    margin-top: 2vh;
}

.nav-category {
    display: flex;
    cursor: pointer;
    margin-bottom: 5px;
    background-color: #f2f2f2;
    min-height: 5vh;
    gap: 1vw;
    border-radius: 0.7em;
    align-content: center;
    flex-wrap: wrap;
    margin-left: 15px;
    box-sizing: border-box;
    width: calc(100% - 15px);
}

.nav-category:hover {
    filter: brightness(85%);
}

.label {
    max-width: 70%;
    flex: 1 0 auto;
    word-wrap: break-word;
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 2vw;
    margin-top: 5px;
    border-radius: 0.8em;
    width: calc(100% - 17px);
    box-sizing: border-box;
}

.submenu-item {
    padding: 8px 10px;
    color: #666;
    text-decoration: none;
    font-size: medium;
    border-radius: 0.5em;
}

.submenu-item:hover {
    color: #fff;
    background-color: #888;
    border-radius: 0.5em;
}

.toggle-nav-button-on {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

#nav-form {
    display: flex;
    flex-direction: column;
}

.nav-top-top {
    display: flex;
    gap: 1vh;
}