@import "navigation.css";
@import "input_suggestions.css";
@import "orders.css";
@import "footer.css";

/* === MAIN === */
* {  
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box; 
    }

body {
    /*sizing*/
    min-width: 1000px;        /* Suppose you want minimum width of 1100px */
    width: auto !important;  /* Firefox will set width as auto */
    width: 1000px; 

    /*typo*/
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #000000;

    /*borders*/
    padding: 0px;
    margin: 0px;

    /*page background*/
    background-color: #04e4e4;
    background: url("../../img/desktop.jpg") no-repeat center center fixed; 
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;  

    /*to keep footer on the bottom of the page*/
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    }

/* === MAIN CONTENT === */
main {
    flex: 1;
    border-radius: 5px;
    margin: 10px;
    padding: 5px;
    background-color:rgba(255, 255, 255, 0.7);
    box-shadow: 0px 0px 10px grey;
    }

main div {
    padding: 3px;
    }

/* === COLUMNS === */
.column_container_variable {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    }

.column_container:after {	/* Clear floats after the columns */
    content: "";
    display: table;
    clear: both;
    }

.column1 {
    float: left;
    width: 100%;
    }

.column2 {
    float: left;
    width: 50%;
    }

.column3 {
    float: left;
    width: 33.33%;
    }

/* === SEARCH BAR === */
.search_panel_container {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 2px grey;
    border: 1px solid #cccccc;
    border-radius: 3px;
    }

/* === SEARCH RESULTS === */
.search_results_table {
    width: 100%; 
    padding: 0px;
    //border-collapse: collapse;
    }

.search_results_row {
    background-color: rgba(100, 100, 100, 0.3);
    //border-top: 2px solid rgba(100, 100, 100, 0.9);
    }

.search_results_row:hover {
    background-color: rgba(100, 100, 100, 0.5);
    }

.search_results_table th {
    text-align: left;
    }

.search_results_table td {
    padding: 4px;
    max-width: 150px; /* Setze eine feste maximale Breite */
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    overflow: hidden; /* Versteckt den überstehenden Text */
    text-overflow: ellipsis; /* Fügt "..." hinzu, wenn der Text abgeschnitten wird */    
    }

.search_results_table th:last-child,
.search_results_table td:last-child {
    width: 100%; 
    white-space: normal; 
    }

/* === INPUT COLUMNS === */
.input_container {
    	display: flex;
    	align-items: center;
    	width: 100%;
    	white-space: nowrap; 
    	padding: 0px;
    	border-bottom: 1px solid rgba(100, 100, 100, 0.4);
    	margin: 0px 0px 2px 0px;	/*top, right, bottom, left*/
    	justify-content: center;
    	}

.input_container div {
    	padding: 0px 0px 0px 5px;
    	width: 50%;
	align-items: center;
    	}

.input_container:first-child {
    flex-grow: 1; /* Nimmt den verbleibenden Platz ein */
    }

.input_container:last-child {
    flex-shrink: 0; /* Passt sich der Breite des Inhalts an */
    }

.input_headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap; 
    font-size: 16px;
    font-weight: bold;
    padding: 2px 2px 2px 2px;	/*top, right, bottom, left*/
    margin: 0px 0px 5px 0px;	/*top, right, bottom, left*/
    background-color: rgba(100, 100, 100, 0.4);
    box-shadow: 0px 0px 2px grey;
    }

.input_headline:first-child {
    flex: 1;
    }

.input_headline:last-child {
    text-align: right;
    }

.input_container label {
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    }

.input_container input[type="text"],
.input_container input[type="number"],
.input_container input[type="password"],
.input_container input[type="checkbox"],
.input_container input[type="radio"],
.input_container input[type="submit"],
.input_container input[type="button"],
.input_container select,
.input_container textarea {
    min-height: 20px;
    padding: 2px;
    margin: 0px 10px 3px 0px;  /*top, right, bottom, left*/
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 3px;
    resize: none; //for textarea
    }

.input_container textarea {
    padding-top: 0px;
    }

.input_container input[type="radio"] {
    margin-right: 8px;
    }

.input_container input[type="text"][disabled] {
    background-color: white; 
    color: black; 
    border: 1px solid #ccc; 
    opacity: 1; 
    cursor: not-allowed; 
    }

.input_container input[type="submit"]:hover {
    background-color: #cccccc;
    }

//single
.input_single_container {
    	display: flex;
    	align-items: center;
    	width: 100%;
	margin: 0px;
    	white-space: nowrap; 
    	padding: 0px;
    	border-bottom: 1px solid rgba(100, 100, 100, 0.4);
    	margin: 0px 0px 2px 0px;	/*top, right, bottom, left*/
    	justify-content: center;
    	}

.input_single_container div {
	padding: 0px;
	margin: 0px;
	}

.input_single_container input[type="text"],
.input_single_container input[type="number"],
.input_single_container input[type="datetime-local"],
.input_single_container input[type="password"],
.input_single_container input[type="checkbox"],
.input_single_container input[type="radio"],
.input_single_container input[type="submit"],
.input_single_container select,
.input_single_container textarea {
    min-height: 20px;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 3px;
    resize: none; //for textarea
    }




/* === DIV TABLE === */
.table_container {
    display: flex;
    width: 100%;
    min-height: 28px;
    padding: 0px;
    }

.table_container:hover {
	background-color: rgba(100, 100, 100, 0.5);
	//border: 1px solid red;
	}

.table_container > div {
    display: flex;
    align-items: center; /* Vertikal zentriert */
    justify-content: flex-start; /* Links ausgerichtet */
    margin: 1px;
    white-space: nowrap; 
    //border: 1px solid red;
    }

.table_head {
    font-weight: bold;
    }

.table_cell {
    background-color: rgba(100, 100, 100, 0.3);
    }

.table_cell:nth-child(1) {
    //background-color: lightcoral;
    }

.table_cell_variable {
    flex: 1; /* Nimmt den übrigen Platz ein */
    }

/* === COMMUNICATION ICONS === */
.communication_icon_box {
    padding: 10px;
    }
.communication_icon_phone {background-image: url("../../img/com_phone.png");}
.communication_icon_mobile {background-image: url("../../img/com_mobile.png");}
.communication_icon_fax {background-image: url("../../img/com_fax.png");}
.communication_icon_mail {background-image: url("../../img/com_mail.png");}
.communication_icon_mail_invoice {background-image: url("../../img/com_mail.png");}
.communication_icon_www {background-image: url("../../img/com_www.png");}
.communication_icon_other {background-image: url("../../img/com_other.png");}

/* === CONTACT CONTAINER ANIMATION AND HIDE === */
.contact_container {
    height: 0;
    opacity: 0;
    display: none;
    transition: height 0.5s ease, opacity 0.5s ease;
    }

.contact_container.visible {
    height: 100%;
    opacity: 1;
    display: block;
    }

/* === POSITIONING === */
.center_h_v {
    height: max-content;
    width: max-content;    
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;    
    }

.text_r {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    }

/* === MESSAGES INLINE === */

/* === MESSAGES === */
.message_top {
    color: #ffffff;
    top: 0;
    left: 0;
    margin: 5px;
/*
    visibility: visible;
    opacity: 0;
    transition: opacity 3s linear 5s;	*//*element time path delay*/
    }

.message_top_info {
    background-color:rgba(0, 131, 18, 0.7);
    }

.message_top_warning {
    background-color:rgba(226, 133, 0, 0.7);
    }

.message_top_error {
    background-color:rgba(175, 1, 1, 0.7);
    }

/* === ITEMS LAYOUT === */
h1, h2, h3 {
    text-align: center;
    margin: 0px;
    padding: 5px;
    color: #000000;
    }

.font_left {
    text-align: left;
    }

/* === LOGIN === */
.login_form_container {
    max-width: 300px;
    padding: 5px;
    border-radius: 8px;
    background-color:rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

.login_form_container label {
    color: #000000;
    }

.login_form_container input[type="text"],
.login_form_container input[type="password"],
.login_form_container input[type="submit"] {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 5px;
    }

.login_form_container input[type="submit"] {
    background-color: #0a4579;
    color: #ffffff;
    cursor: pointer;
    }

.login_form_container input[type="submit"]:hover {
    background-color: #003561;
    }
