body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  margin: 0;
  color: #222;
}

.header {
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.header nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.header nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

h2 {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input {
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

input:focus {
  outline: none;
  border-color: #db1010;;
  box-shadow: 0 0 0 2px rgba(169, 14, 14, 0.15);
}

button {
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  border: none;
  background: #db1010;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14.4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}



button:hover {
  background: #740808;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  font-size: 0.9rem;
}

.table th {
  text-align: left;
  background: #fafafa;
}

.flash-container {
  margin-bottom: 1rem;
}

.flash {
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.flash-error {
  background: #ffe0e0;
  color: #8b0000;
}

.flash-success {
  background: #e0ffe6;
  color: #006b2f;
}

.flash-warning {
  background: #d95b5b;
  color: #000000;
}

.form-row select {
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-row input {
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.form-row textarea {
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.notes-cell {
    max-width: 300px;
  }

  details.note-details {
    cursor: pointer;
    font-size: 0.9rem;
  }

  /* Standard: Vorschau – max. 2 Zeilen */
  details.note-details summary {
    list-style: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* nur 2 Zeilen anzeigen */
    -webkit-box-orient: vertical;
    white-space: pre-wrap;
    text-overflow: ellipsis;
    max-height: 2.8em;
    color: #333;
  }

  /* Wenn geöffnet: komplette Notiz anzeigen (keine Beschneidung mehr) */
  details.note-details[open] summary {
    -webkit-line-clamp: unset;
    max-height: none;
  }

  .no-notes {
    color: #999;
  }

.revenue-input {
  width: 6rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.revenue-adjusted {
  background: #dcfce7;   /* hellgrün */
  border-color: #16a34a; /* grüner Rand (wenn Input) */
}


.offer-table {
  margin-top: 1rem;
}

.offer-row-expired {
  opacity: 0.5;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-expired {
  background: #e5e7eb;
  color: #6b7280;
}
