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

body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #f4f4f4;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 10px;
}

hr {
  margin: 0.5rem;
}

h1 {
  text-align: center;
}

h2, h3 {
  margin-bottom: 15px;
}

.auth-container, .dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"] {
  width: auto;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
td input[type="number"] {
  width: 70px;
  text-align: right;
  padding: 2px 6px;
}

input[type="password"] {
  width: 20ch;
}

button {
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

button.edit-btn {
  font-size: 25px;
  font-weight: bold;
  padding: 5px 10px;

}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 2px;
}

#status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-message {
  color: green;
  margin-bottom: 10px;
  font-weight: bold;
}
.status-btn {
  font-size: 25px;
  padding: 10px;
  margin: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  width: 90%;
}

#gehen-btn{
  background-color: red;
}

.status-btn:hover {
  background-color: #218838;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}
th {
  background: black;
  color: white;
  padding: 8px;
}

#entries-table th, #entries-table td {
  border: 1px solid #ddd;
  text-align: center;
}

#entries-table td {
  padding: 0;
}
#totals {
  margin-top: 20px;
  text-align: center;
}

#logout-btn {

  padding: 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
}

#logout-btn:hover {
  background-color: #c82333;
}

thead {
  background-color: gray;
}

#entries-table tbody tr:nth-child(odd)
{
  background-color: #dbdbdb;
}

#entries-table td{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#entries-table td.aktuell{
  background-color: green;
  color: white;
}
#entries-table td.alarm{
  background-color: #dc3545;
  color: white;
}
#entries-table td.warnung{
  background-color: darkorange;
  color: white;
}

#entries-table .content1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-around;
  align-items: center;
}
.content1 .note {
  width: 100%;
  color: red;
}

#entries-table td div {
  padding: 5px;
}

#entries-table td .content1 {
  width: 100%;
  border-bottom: 1px dotted grey;
}
#entries-table td .content2,
#entries-table td .content3 {
  width: 40%;
}

#zeitkonto-table th,
#zeitkonto-table td {
  padding: 8px;
  border: 1px solid #ccc; /* Optional Grundlinie */
}

#zeitkonto-table tr.summe td {
  border-top: 2px solid #000;      /* eine dicke Linie oben */
  border-bottom: double 4px #000;  /* doppelte Linie unten */
  font-weight: bold;
  background-color: #f9f9f9;
}

div.buttons.footer {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  padding: 10px;
  background: white;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 5;
  backdrop-filter: blur(3px);
}

.popup {
  display: none;
  position: fixed;
  top: 20%;
  left: 0;
  padding: 20px;
  background: white;
  border: 2px solid #444;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 10;
  margin: 10px;
}

button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

#zeitkontoForm th {
  font-size: 12px;
  background: black;
  color: white;
  padding: 2px 6px;
}
#zeitkontoForm td{
  vertical-align: top;
  padding: 2px 6px;
}
table .align-right {
  text-align: right;
}