* { 
    position: relative;
    box-sizing: border-box; 
    margin: 0px;
    padding: 0px;
} 

html { font-size: 16px } 

:root {
    box-sizing: border-box;
    --primary-color: rgb(15, 95, 201);
    --primary-color-hover: rgb(11, 83, 176);
    --im-app-background: white;
    --im-app-background_old: #f3f3f4;
    --im-app-background-lite: white;
   
    --logo-daa: white;
    --logo-part2: #ebeaea;
    --im-head-bg: rgb(15, 95, 201);
    --im-head-height: 60px;
    --im-head-height-small: 50px;
    --page-top-height: 90px;
    --foot-bg: white;
    --foot-height: 60px;
    --table-head-height: 32px;
    --page-content-height: calc(100vh - 252px);
    --table-body-height: calc(100vh - 284px);
    --font-color-on-lite: black;
    --font-color-on-dark: white;
    --btn-color-on-lite: rgb(150, 150, 150);
    --btn-color-on-lite-hover: #004593;
    --im-foot-bg: white;
    --im-foot-height: 60px;
    --im-nav-item-hover: rgb(245, 248, 250);
    
    --page-bg-lite: rgb(234, 235, 240);
    --im-hover: #f2f2f3;
    --im-select: rgb(209, 226, 252);
    --im-selected: rgb(226, 240, 255);
    --im-nav-select: #dedfdf;
    --im-font-family: Roboto, Helvetica, Arial, sans-serif;
    --im-border-color: rgba(0, 0, 0, 0.3);
    --im-border-color-lite: rgba(0, 0, 0, 0.2);
    --im-table-bg:white;
    --im-table-row-odd-bg: rgb(240, 240, 240);
    --im-table-border-fat: black;
    --im-card-bg: #f2f2f3;
    --im-login-input-border: #a0a0a0;
    --im-btn-in-form-row-bg: rgb(241, 241, 241);

    --color-urgent: rgb(217, 37, 37);
    --color-soon: rgb(255, 150, 0);
    --color-wait: rgb(252, 236, 17);
    --color-status: rgb(205, 205, 205);
    --color-status-done: rgb(209, 209, 209);
}


body {
    position: relative;
    display:flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background-color: var(--im-app-background);
    font-family: var(--im-font-family);
    font-size: 0.84em;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    margin:0px;
    padding:0px;
}

a, a:visited {
    text-decoration: none;
    font-family: var(--im-font-family);
}

input {
    /* outline: none; */
    box-sizing: border-box;
    font-family: var(--im-font-family);
}

input:focus {
    /* outline: inherit; */
    border-color: var(--primary-color);
}

button, select, label {
    font-family: var(--im-font-family);
}

form {
    margin:0;
    padding:0;
    display:block;
}


/**************** header ***************************************************/

.im-app-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    align-items: center;
    width: 100%;
    padding: 0px 30px;
    min-height: var(--im-head-height);
    background-color: var(--im-head-bg);
    border-bottom: 1px solid var(--im-border-color);
}

.im-logo {
    display:flex;
    transform: translateY(1px);
    margin-right:auto;
}

.im-logo-daa {
    fill: var(--logo-daa);
}

.im-logo-part2 {
     fill: var(--logo-part2);
}

.im-logo svg {
    width: 220px;
    height: 25px; 
}

.im-logo-and-hamburger {
    display: flex;
}

.im-app-head-right {
    display: flex;
    gap: 10px;
    justify-content: end;
}

.im-hide {
    display:none;
}

@media only screen and (max-width: 960px) {

    .im-app-head {
        min-height: var(--im-head-height-small);
        padding: 0px 20px;
    }

    .im-logo svg{
        width: 200px;
        height: 22px; 
    }
}


/**************** main /middle *********************************************/

.im-shadow-small {
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
}

.im-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: calc( 100vh - 60px);
    max-height: calc( 100vh - 60px);
    z-index: 3;
}

.im-nav-container {
    position: relative;
    width: 300px;
    min-height: calc( 100vh - 60px);
    max-height: calc( 100vh - 60px);
    border-right: 1px solid var(--im-border-color);
    overflow-y: scroll;
}

@keyframes slide-in {
    0% {transform: translateX(0px);}
    100% {transform: translateX(400px);}
}

@keyframes slide-out {
    0% {transform: translateX(400px);}
    100% {transform: translateX(0px);}
}

.im-dashboard-left {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg-lite);;
    /* border-right: 1px solid var(--im-border-color); */
}

.im-dashboard-right {
    width: 100%;
    padding: 30px;
    height: calc( 100vh - 60px);
    background-color: rgb(247, 247, 247);
    overflow-y: scroll;
}


/**************** nav ******************************************************/

.im-nav-hamburger {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 22px;
    cursor: pointer;
    opacity: 0.5;
    margin-right: 12px;
    transform:translateY(2px);
    display:none;
}

.im-nav-hamburger:hover {
    opacity: 1;
}

.im-nav-hamburger-bar {
    width: 100;
    height: 4px;
    border-radius: 4px;
    background-color: var(--font-color-on-dark);
    margin-bottom: 4px;
    pointer-events: none;
}

.im-main-nav-group {
    padding: 25px 20px 12px 20px;
    width: 100%;
}

.im-main-nav-headline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 10px;
    margin-bottom: 15px;
}

.im-main-nav-separator {
    width: 100%;
    border-top: 1px solid var(--im-border-color);
    transform: translateY(3px);
}

.im-main-nav-space-20 {
   height: 20px;
}

.im-main-nav-space-30 {
   height: 30px;
}

.im-main-nav-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 18px;
    width: 100%;
    height: 36px;
    padding: 5px 0px;
    color: var(--font-color-on-lite);
    align-items: center;
    cursor: pointer;
}

.im-main-nav-item-active {
    /* background-color: var(--im-selected); */
    background-color: white;
}

.im-main-nav-item > svg {
    width: 24px;
    height: 24px; 
    transform: translateX(10px); 
}

.im-main-nav-item:hover {
    background-color: white;
}

.im-main-nav-icon {
    width: 24px;
    height: 24px; 
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(10px);
}

.im-main-nav-text {
    line-height: 1.2;
    transform: translateY(1px);
}


@media only screen and (max-width: 960px) {

    .slide-show {
        animation: slide-in 0.3s ease-out 0s 1 normal forwards;
    }
    .slide-hide {
        animation: slide-out 0.3s ease-out 0s 1 normal forwards;
    }

     .im-main {
        /* display: flex;
        flex-direction: column; */
        grid-template-columns: 1fr;
        overflow-y: scroll;
    }
    
    .im-dashboard-left {
        padding: 30px 20px 20px 20px;
         position: absolute;
        left: -400px;
        z-index: 4;
        -webkit-box-shadow: 3px 15px 15px 0px rgba(0,0,0,0.2);
        -moz-box-shadow: 3px 15px 15px 0px rgba(0,0,0,0.2);
        box-shadow: 3px 15px 15px 0px rgba(0,0,0,0.2);
    }
}


@media only screen and (max-width: 720px) {

   

    .im-nav-container {
        display: flex;
        width: 100%;
        flex-direction: row;
        gap: 15px;
        border-right: none;
        height: fit-content;
        max-height: fit-content;
        min-height: fit-content;
        overflow-y: none;
    }

    .im-main-nav-group {
        padding: 0px 0px 12px 0px;
        width: 100%;
    }

    .im-main-nav-headline {
        min-height: 40px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    .im-main-nav-separator {
        display: none;
    }
    
}

@media only screen and (max-width: 600px) {

    .im-logo svg{
        width: 180px;
        height: 20px; 
    }

    .im-app-head-right {
        gap: 4px;  
    }

    .im-nav-container {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .im-main-nav-headline {
        min-height: 30px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

     .im-main-nav-group {
        padding: 0px 0px 12px 0px;
        width: 100%;
    }

    .im-main-nav-item {
        /* gap: 18px;
        width: 100%;
        height: 34px;
        padding: 4px 0px 0px 0px; */
    }

   
}

/**************** dashboard right ******************************************/

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head-headline {
    font-size: 1.4em;
    font-weight: 600;
    width: 100%;
    border-top: 1px solid var(--im-border-color);
    padding-top: 20px;
    margin-top: 25px;
}

.section-head-right {
    
}

.grid-stoerungen {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    max-width: 1024px;
    gap: 30px;
}

@media only screen and (max-width: 1024px) {

    .grid-stoerungen {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media only screen and (max-width: 640px) {

    .grid-stoerungen {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/**************** footer ***************************************************/

.im-app-foot {
    position: absolute;
    display:flex;
    width: 100%;
    height: var(--im-foot-height);
    justify-content: center;
    align-items: center;
    bottom: 0px;
    border-top: 1px solid var(--im-border-color);
    background-color: var(--im-foot-bg);
    z-index: 1001;
}

.im-app-footer-items {
    display:flex;
    gap: 8px;
}

.im-app-footer-item {
     color: var(--font-color-on-lite);
}