﻿html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-image: url('../Images/comvendo-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    font-size: calc(12px + 0.390625vw) !important;
    overflow-y: auto;
}
.width-class {
    width: 100%;
}
.img-width{
    width: 250px;
}
.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    color: var(--mud-palette-text-secondary);
    padding: 0 4px;
    /*font-size: calc(13px + 0.390625vw) !important;*/
    font-weight: 400;
    line-height: 1;
    letter-spacing: .00938em;
    z-index: 1;
    background-color: var(--mud-palette-surface);
    pointer-events: none;
}

.mud-input-outlined .mud-input-outlined-border {
    border-width: 1px !important;
}

.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-width: 2px !important;
}
.mud-table-container {
    width: 100%;
    overflow-y: auto;
    padding-top: 0px;
}



@media(max-width: 400px){
    .width-class {
        width: 100%;
    }
    .img-width {
        width: 150px;
    }
}

.app-main-content {
    flex: 1;
    margin-top: 45px;
    display: flex;
}

.app-content-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding: 0 0 0rem;
    box-sizing: border-box;
}

.app-content-container.mud-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.responsive-page-shell {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    min-height: calc(100vh - 180px);
}

.responsive-card {
    
    
}

.teamleiter-page-shell {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    padding-bottom: 0;
    overflow: hidden;
}

.feedbacktermine-page-shell {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    padding-bottom: 0;
    overflow: hidden;
}

.teamleiter-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    width: min(100%, 600px);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.teamleiter-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.teamleiter-table {
    height: 100%;
}

.teamleiter-table .mud-table-container {
    padding-bottom: 4rem;
    box-sizing: border-box;
}

.teamleiter-filter-bar {
    flex: 0 0 auto;
    align-items: center;
    background-color: var(--mud-palette-surface);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.responsive-table .mud-table-container,
.responsive-grid .mud-table-container {
    overflow-x: auto;
}

.ad-overview-termine-header {
    text-align: center;
    white-space: nowrap;
}

.ad-overview-termine-cell {
    text-align: center;
}

.ad-overview-termine-cell .mud-icon-button {
    margin-left: auto;
    margin-right: auto;
}

.ad-overview-grid .markt-filter-popover-content,
.mud-popover .markt-filter-popover-content {
    width: min(320px, calc(100vw - 32px));
}

.ad-overview-grid .markt-filter-popover-content .mud-input-control,
.mud-popover .markt-filter-popover-content .mud-input-control {
    width: 100%;
}

.feedback-dialog {
    width: fit-content;
    min-width: 40%;
    display: flex;
    flex-direction: column;
}

.feedback-dialog-titlebar {
    min-height: 52px;
}

.feedback-dialog-title {
    display: block;
    width: auto;
    white-space: nowrap;
    line-height: 1.25;
}

.feedback-dialog-content {
    max-height: min(65vh, 720px);
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.feedback-dialog-table {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}



.feedback-dialog-actions {
    padding-top: 0.5rem;
}

.feedback-dialog-actions-stack {
    gap: 0.5rem;
}

.feedback-dialog-btn {
    flex: 1 1 0;
    min-width: 10rem;
}


.app-shell-title {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
}

.status-state-shell {
    min-height: calc(100vh - 250px);
}

.auth-page-shell {
    width: 100%;
    min-height: calc(100vh - 190px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5rem;
}

.mud-container.auth-page-shell {
    display: flex !important;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 520px;
}

.responsive-actionbar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.responsive-action-btn {
    min-width: 10rem;
}

.home-feedback-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-top: 4rem;
    box-sizing: border-box;
}

.home-feedback-card {
    width: min(100%, 680px);
    margin-left: auto;
    margin-right: auto;
}

.admin-user-actions {
    flex-wrap: wrap;
}

.admin-page-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    
    
}

.admin-scroll-container {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 1rem;
    
}

.admin-user-management-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
    min-height: 0;
}

.admin-user-management-stack {
    flex: 1 1 auto;
    min-height: 0;
}

.admin-user-list-scroll {
    flex: 1 1 auto;
    min-height: 240px;
    overflow-y: auto;
}

@media (max-width: 960px) {
    .width-class {
        width: 100%;
    }

    .img-width {
        width: 170px;
    }

    .app-content-container {
        padding: 0 0 0.75rem;
    }

    .responsive-page-shell {
        padding-bottom: 5.5rem;
    }

    .teamleiter-page-shell {
        padding-bottom: 0;
        height: calc(100vh - 56px);
        min-height: calc(100vh - 56px);
    }
}

@media (max-width: 600px) {
    .app-main-content {
        margin-top: 56px;
        height: calc(100% - 112px);
    }

    .app-content-container {
        padding: 0 0 0.5rem;
    }

    .responsive-card {
        border-radius: 8px;
    }

    .img-width {
        width: 130px;
    }

    .auth-page-shell {
        min-height: calc(100vh - 160px);
        align-items: flex-start;
        padding-top: 1rem;
    }

    .responsive-actionbar .mud-toolbar {
        gap: 0.5rem;
    }

    .feedback-dialog {
        width: calc(100vw - 1rem);
        min-width: 0;
    }

    .feedback-dialog-title {
        white-space: normal;
    }

    .feedback-dialog-content {
        max-height: 60vh;
    }

    .feedback-dialog-actions-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-dialog-btn {
        width: 100%;
        min-width: 0;
    }

    .responsive-action-btn {
        width: 100%;
        min-width: 0;
    }

    .home-feedback-shell {
        min-height: calc(100vh - 190px);
        align-items: flex-start;
        padding-left: 0;
        padding-top: 0;
    }

    .home-feedback-card {
        width: 100%;
    }

    .admin-user-actions .mud-button-root {
        width: 100%;
    }

    .admin-page-shell {
        padding-bottom: 56px;
    }

    .teamleiter-page-shell {
        padding-bottom: 0;
        height: calc(100vh - 112px);
        min-height: calc(100vh - 112px);
    }

    .feedbacktermine-page-shell {
        padding-bottom: 0;
        height: calc(100vh - 112px);
        min-height: calc(100vh - 112px);
    }

    .teamleiter-card {
        height: 100%;
    }

    .teamleiter-table .mud-table-container {
        padding-bottom: 0;
    }

    .admin-scroll-container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .admin-user-management-card {
        max-height: calc(100vh - 130px);
    }

    .admin-user-list-scroll {
        min-height: 200px;
    }
}
