/* Generelles Styling */

*{
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Page */

/* Center the login container */
.loginpage-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #cccccc;
  background-image: url(https://entwicklung.andrasoft.ch/rmc/Feder_kann_was.svg);
  background-position: right center !important;
  background-size: 200% !important;
  min-height: 0;
  }
  
  /* Style the login container */
  .loginpage-container {
  width: 250px;
  text-align: center;
  padding: 0.5em;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  
  }
  
  /* Style the logo and title */
  .loginpage-logo {
  max-width: 70%;
  height: auto;
  margin-top: 1em;
  }
  
  .loginpage-title {
  font-size: 16px;
  margin: 0;
  color: #333;
  background-color: #fcdedc;
  padding-top: 5px;
  padding-bottom: 5px;
  }
  
  /* Style the error message */
  .loginpage-error-message {
  background-color: #ff6b6b;
  color: #fff;
  font-size: 1.2em;
  padding: 1em;
  margin-bottom: 1em;
  text-align: center;
  }
  
  /* Style the form */
  .loginpage-form {
  text-align: left;
  margin-top: 20px;
  }
  
  /* Style the form input fields */
  .loginpage-form-label {
      position: absolute;
      left: 5px;
      font-size: 12px;
    }
  
  .loginpage-form-input {
      width: 100%;
      padding-top: 5px;
      height: 40px;
      margin-left: 0;
      margin-right: 0;
      padding-left: 5px;
      padding-right: 5px;
      text-align: center;
      margin-bottom: 10px;
      display: ruby-text-container;
      background-color: #fcdedc;
  }
  
  /* Style the form submit button */
  .loginpage-form-submit {
      width: 100%;
      height: 40px;
      margin-left: 0;
      margin-right: 0;
      padding-left: 5px;
      padding-right: 5px;
      text-align: center;
      background-color: #fcdedc;
      border: 1px solid #eccecc;

    }
  
  
  .loginpage-form-submit:hover {
  background-color: #fcdedc;
  }
  
  .loginpage-form-group {
      position: relative;
    }
  
  .loginpage-form-forgot-password {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-top: 1em;
  }
  
  /* Style the forgot password button */
  .loginpage-form-forgot-password-button {
  background-color: transparent;
  border: none;
  color: #007fcf;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  }
  
  /* Ende Login Page */

/* Rechnungsseite */

/* Customer Modal */
/* Zentriert den Dialogbereich */
dialog {

position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
}

/* Hintergrund und Abmessungen des Dialogs */
.modal-dialog {
width: 400px;
margin: 20px auto;
background-color: #fff;
padding: 20px;

box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Titelleiste des Dialogs */
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}

.modal-title {
font-size: 18px;
font-weight: bold;
}

.close {
font-size: 24px;
color: #aaa;
cursor: pointer;
}

.close:hover {
color: #666;
}

/* Inhalt des Dialogs */
.modal-body {
margin-bottom: 20px;
}

/* Kundenliste im Dialog */
#objektListContainer,
#customerListContainer {
max-height: 200px;
overflow-y: auto;
}

.objekt-item,
.customer-item {
padding: 10px;
cursor: pointer;
}

.objekt-item:hover,
.customer-item:hover {
background-color: #f0f0f0;
}



/* Allgemeine Styles */
h1 {
float: left;
width: 100%;
}

h2 {
float: left;
width: 100%;
}

#allerg_titel {
text-align: center;
width: 100%;
}

body {
display: grid;
grid-template-columns: 80% 20%;
margin: 0;
}

.left-section {

background-color: #dddddd4a;
padding: 10px;
}

.right-section {

background-color: #dddddd69;
}


/* Styling für die rgform_allgemeiner-container */
.rgform_allgemeiner-container {
padding: 10px;
position: sticky;
top: 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Allgemein Block */
.rgform_block_allgemein {
display: flex;
flex-direction: row; /* Elemente nebeneinander anordnen */
align-items: flex-start; /* Elemente oben links ausrichten */
}

/* Container für das Label und Input der Rechnungsnummer */
.rgform_rechnungsnummer-container,
.rgform_datum-container,
.rgform_status-container {
display: ruby-text-container;
flex-direction: column; /* Elemente in Spalten anordnen */
align-items: flex-start; /* Elemente oben links ausrichten */
position: relative; /* Positionierung für die Labels */
margin-right: 20px;
}

/* Style für das Label */
.rgform_allgemein_rechnungsnummer-label,
.rgform_allgemein_datum-label,
.rgform_allgemein_status-label {
position: absolute;
left: 5px;
font-size: 12px;
}

/* Style für die Inputs */
.rgform_allgemein_rechnungsnummer-input,
.rgform_allgemein_datum-input,
.rgform_allgemein_status-input {
width: 100%;
padding-top: 5px;
height: 40px;
margin-left: 0;
margin-right: 0;
padding-left: 5px;
padding-right: 5px;
text-align: center;
margin-bottom: 10px;
border: 1px solid #ccc;
background-color: #fcdedc;
font-size: 16px;
}





/* Styling für die rgform_showrg-container */
.rgform_showrg-container {
background-color: #fcdedc;
border: 1px solid #ccc;
}

.rgform_showrg {
height: 300px;
overflow-y: auto;
}

.rgform_showrg ul {
margin: 0;
padding: 0;
list-style: none;
}

.rgform_showrg li {
padding: 10px;
border-bottom: 1px solid #ccc;
}

.rgform_showrg li:last-child {
border-bottom: none;
}

.rgform_showrg a {
text-decoration: none;
color: #333;
font-weight: bold;
}

.rgform_showrg a:hover {
color: #666;
}

.rechnung-item {
cursor: pointer;
}




.rgform_allgemein-buttons {
margin-top: 20px;
display: flex;
flex-direction: column;

}

.rgform_allgemein-buttons button {
background-color: #fcdedc;

border: 1px solid #ccc;
color: #333;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
margin-bottom: 10px;
}

.rgform_allgemein-buttons button:hover {
background-color: #eab9b6;
color: #fff;
}

/* Dropdown Sort Status */

.rgform_sort-status {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 5px;
margin-bottom: 10px;
}

select#statusDropdown {
width: 100%;
background-color: #fcdedc;
padding: 8px;
border: 1px solid #ccc;

font-size: 16px;
appearance: none; /* Verhindert die Standard-Dropdown-Styling für einige Browser */
}

/* Status Change */
.rgform_change-status {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 15px;
}

/* CSS für das Label und das Eingabefeld der Rechnungsnummer */
label[for="rechnungsnummer-status"],
input#rechnungsnummer-status {
display: block;
margin-bottom: 10px;
}

input#rechnungsnummer-status {
width: 100%;
padding: 8px;
border: 1px solid #ccc;

font-size: 16px;
background-color: #fcdedc;
}

/* CSS für das Label und das Dropdown-Menü des aktualisierten Status */
label[for="status"],
select#statusDropdownChange {
display: block;
margin-bottom: 10px;
}

select#statusDropdownChange {
width: 100%;
background-color: #fcdedc;
padding: 8px;
border: 1px solid #ccc;

font-size: 16px;
appearance: none; /* Verhindert die Standard-Dropdown-Styling für einige Browser */
}

/* CSS für den OK-Button zur Aktualisierung der Rechnung */
button.statusOKbtn {
background-color: #fcdedc;
color: black;
padding: 10px 20px;
border: none;
border: 1px solid #ccc;
font-size: 16px;
cursor: pointer;
}

button.statusOKbtn:hover {
background-color: #eab9b6;
color: #fff;
}

/* Kundeobjekt Block */
.rgform_block_kundeobjekt {
float: left;
width: 80%;
display: flex;
justify-content: space-between;
align-items: flex-start;
}

/* Kunde / Objekt Form */
.rgform_kunde,
.rgform_objekt {
width: 45%;
display: flex;
flex-direction: column;
}


.rgform_kunde_anrede-container,
.rgform_kunde_name-container,
.rgform_kunde_strasse-container,
.rgform_kunde_ort-container,
.rgform_kunde_telefon-container,
.rgform_objekt_typ-container, 
.rgform_objekt_name-container,
.rgform_objekt_strasse-container,
.rgform_objekt_ort-container {
position: relative;
}

.rgform_kunde label,
.rgform_objekt label {
position: absolute;
left: 5px;
font-size: 12px;
}

.rgform_kunde select,
.rgform_objekt select,
.rgform_kunde input,
.rgform_objekt input {

width: 100%;
padding-top: 5px;
height: 40px;
margin-left: 0;
margin-right: 0;
padding-left: 5px;
padding-right: 5px;
text-align: center;
margin-bottom: 10px;
border: 1px solid #ccc;
background-color: #fcdedc;
}

.rgform_kunde select,
.rgform_objekt select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 9.8L1.6 5.4l.8-.8L6 8.2l3.6-3.6.8.8z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 8px center;
background-color: #fcdedc;
}

.rgform_kunde_suche-container {
width: 100%;
display: ruby-text-container;
align-items: center;
position: relative;
box-shadow:  1px #cccccc;
}

.rgform_kunde_suche-input {
flex-grow: 1;
padding-right: 40px; /* Platz für den Button */
}

.rgform_kunde_suche-button {
position: absolute;
right: 0;
top: 0;
height: 80%;
width: 40px; /* Breite des Buttons */
background: url(https://cdn.pixabay.com/photo/2013/10/01/16/55/magnifying-glass-189254_960_720.png) center center no-repeat; /* Hintergrundbild des Buttons */
background-size: 20px; /* Größe des Hintergrundbilds */
border: none;
outline: none;
cursor: pointer;
}




/* Ausgeführte Arbeiten */


.rgform_ausgefuhrtearbeiten {

float: left;
width: 100%;
margin-top: 10px;
}

/* Textarea Ausgeführte Arbeiten */
textarea[name="ausgefuhrtearbeiten"] {
width: 100%;
resize: none;
height: 150px;
padding: 10px;
font-size: 16px;
line-height: 1.5;
border: 1px solid #ccc;

box-sizing: border-box;
background-color: #fcdedc;
margin-bottom: 15px;

}

/* Stundenerfassung */

.rgform_block_stunden {
float: left;
flex-wrap: wrap;
width: 100%;
}



.rgform_block_stunden input[type="text"],
.rgform_block_stunden input[type="date"],
.rgform_block_stunden input[type="number"] {
width: 100%;
padding-top: 5px;
height: 40px;
margin-left: 0;
margin-right: 0;
padding-left: 5px;
padding-right: 5px;
text-align: center;
margin-bottom: 10px;
border: 1px solid #ccc;
background-color: #fcdedc;
}


.stunden-row {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Legt den Abstand zwischen den Input-Containern fest */
  flex-wrap: wrap;
}

.input-container {
  position: relative;
  flex: 1 0 calc(16.6% - 10px); /* 20% Breite und 10px Abstand zwischen den Containern */
  min-width: 100px;
  
}


.input-container label {
position: absolute;
  left: 5px;
  font-size: 12px;
}


/* Stunden Tabelle */
#stunden-tabelle {
border-collapse: collapse;
width: 100%;
}

#stundenTable{
width: 100%;
margin-bottom: 50px;
}

#stunden-tabelle th,
#stunden-tabelle td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}

#stunden-tabelle th {
background-color: #f2f2f2;
color: #666;
}

.rgform_stunden-header {
display: inline-flex;
align-items: center;
}

.rgform_header h2 {
margin: 0;
width: max-content;
}

.rgform_stunden-header button {
background-color: #fcdedc;
border: none;
border: 1px solid #ccc;
color: #333;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
margin-left: 30px;
}

.rgform_stunden-header button:hover {
background-color: #eab9b6;
color: #fff;
}

/* Materialerfassung */

.rgform_material {
float: left;
width: 100%;
margin-top: 10px;
}



.material-row {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Legt den Abstand zwischen den Input-Containern fest */
  flex-wrap: wrap;
}

/* Eingabefelder für Material */
.material-input {
  position: relative;
  flex: 1 0 calc(12.5% - 10px); /* 20% Breite und 10px Abstand zwischen den Containern */
  min-width: 100px;
}

.material-input label {
  position: absolute;
  left: 5px;
  font-size: 12px;
}

.material-input input[type="text"],
.material-input input[type="number"] {
  width: 100%;
  padding-top: 5px;
  height: 40px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  background-color: #fcdedc;
}

/* Styling für das Dropdown-Menü und das Label */
.material-input select {
  padding: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  color: #555;
  outline: none;
  background-color: #fcdedc;
  width: 100%;
  height: 81%;
}

.material-input select option {
  color: #555;
}

/* Stil für den Platzhalter im Dropdown-Menü */
.material-input select option[disabled]:first-child {
  color: #999;
}

/* Stil für das Dropdown-Menü, wenn es aktiviert ist */
.material-input select:focus {
  border-color: #eab9b6;
  background-color: #fcdedc;
}



.rgform_material-header {
display: inline-flex;
align-items: center;
}



.rgform_material-header button {
background-color: #fcdedc;
border: none;
border: 1px solid #ccc;
color: #333;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
margin-left: 30px;
}

.rgform_material-header button:hover {
background-color: #eab9b6;
color: #fff;
}

/* Material Tabelle */
#material-tabelle {
border-collapse: collapse;
width: 100%;
}

#materialTable{
width: 100%;
margin-bottom: 20px;
}

#material-tabelle th,
#material-tabelle td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}

#material-tabelle th {
background-color: #f2f2f2;
color: #666;
}

#totale{
  float: right;
  width: 100%;
}

#zwischentotalDiv,
#mwstDiv,
#rechnungstotalDiv {
text-align: right;
}

#rabattInput {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

#rabattInput label {
  margin-right: 10px;
  font-size: 16px;
  color: #555;
}

#rabattInput input[type="number"] {
  padding: 8px;
  font-size: 16px;
  color: #555;
  outline: none;
  border: 1px solid #ccc;
  background-color: #fcdedc;
}

#rabattDiv {
  display: flex;
  justify-content: flex-end;
}
