* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

body {
	width: 100dvw;
	height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

nav.main {
    border-bottom: groove;
    background-image: url('../img/light.jpg');

    display: flex;
}

nav.main .btn {
    width: 50px;
    height: 50px;
    border: 1px solid transparent;
    background-repeat: no-repeat;
    background-position: center;
}

nav.main .btn.selected,
nav.dlg .btn.selected {
    background-color: steelblue;
    cursor: pointer;
}

nav.main .btn:hover,
nav.dlg .btn:hover {
    background-color: lightsteelblue;
    border: 1px solid steelblue;
    cursor: pointer;
}

nav.main .trenner {
    border-left: groove;
}


#btn-customers { background-image: url('../img/p_customers.png'); }
#btn-articles { background-image: url('../img/p_articles.png'); }
#btn-customers-view { background-image: url('../img/p_client_search.png'); }
#btn-article-view { background-image: url('../img/p_ware_search.png'); }
#btn-sales-view { background-image: url('../img/p_sales_search.png'); }
#btn-settings { background-image: url('../img/p_setting.png'); }


main {
    background-image: url('../img/dark.jpg');
    padding: 30px;
}

.main-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.login .main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/* ****************************************************************************
 * Definitionen für die Dialoge
 *
 */

.dialog {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border: ridge;

    opacity: 1;
    visibility: visible;

    transition: all 500ms linear;
}

.dialog.hide {
    opacity: 0;
    visibility: hidden;
}





/* ****************************************************************************
 * Login Dialog
 *
 */

.login section {
    position: relative;
    width: 400px;
    height: 300px;
    max-width: 97%;
    max-height: 97%;
    padding: 20px;
    box-shadow: 0 0 20px #000000aa;

    /* display: flex;
    flex-direction: column; */
    user-select: none;
}

.login form {
    height: 100%;

    display: flex;
    flex-direction: column;
    row-gap: 10px;
    justify-content: center;
}

.login label {
    font-weight: 600;
    color: steelblue;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    border: 2px solid lightgray;
    border-width: 0 0 3px 0;
    margin-bottom: 17px;
}

input[type="password"] {
    padding-right: 20px;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible {
    background-color: lightsteelblue;
    outline: none;
    border: 2px solid steelblue;
    border-width: 0 0 3px 0;
}

input[type="text"]:user-invalid,
input[type="email"]:user-invalid,
input[type="password"]:user-invalid {
    background-color: #ff000020;
    outline: none;
    border: 2px solid steelblue;
    border-width: 0 0 3px 0;
}

.password-grp {
    position: relative;
}

.toggle-password-style {
    position: absolute;
    right: 0;
}

.toggle-password-style.hide::before {
    position: absolute;
    content: "/";
    left: 5px;
    font-style: italic;
    font-size: 0.9em;
    font-weight: bold;
    top: 2px;
}

.login .error {
    color: red;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 500ms linear;
}

.login .error.show {
    opacity: 1;
    visibility: visible;
}


.login form button {
    margin-top: 10px;
    padding: 5px 20px;
    font-weight: bold;
    justify-self: flex-end;
    align-self: end;
}

/* .login form label,
.login form input {
    display: block;
    width: 100%;
} */







nav.dlg {
    display: flex;
    background-color: lightsteelblue;
    background-image: linear-gradient(to bottom, #ffffffbb, transparent );
}

nav.dlg .btn {
    width: 120px;
    height: auto;
    border: 1px solid transparent;
    background-repeat: no-repeat;
    background-position: center top;
    padding: 0px 5px 5px 5px;
    /* font-size: 14px; */

    display: flex;
    flex-direction: column;
    align-items: center;
}

nav.dlg .btn img {
    width: 50px;
    height: 50px;
}

nav.dlg .btn span {
    text-align: center;
}


.main section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}


















.dialogs {
    display: none;
}



#result-1 {
	margin: 20px;
	border: 2px solid green;
}
#result-2 {
	margin: 20px;
	border: 2px solid red;
}





