#view-belege { align-content: start; }
.billing-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
.billing-tabs .mode-tab { min-height: 44px; height: 44px; padding: 10px 8px; font-size: 14px; overflow-wrap: anywhere; }
[data-lexoffice-panel] { align-content: start; }
[data-lexoffice-panel] .panel-actions { flex-wrap: wrap; }
[data-lexoffice-panel] .panel-actions .app-select { width: 280px; min-width: 0; }
[data-lexoffice-panel] .panel-actions input { width: 260px; min-width: 0; }
[data-lexoffice-panel] .panel-actions select { width: 230px; max-width: 100%; }
.lexoffice-draft-dialog { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #426953; border-radius: 8px; background: #0b2118; color: #edfff3; }
.lexoffice-draft-dialog::backdrop { background: #000a; }
.lexoffice-draft-form { display: grid; gap: 20px; }
.lexoffice-draft-form header, .lexoffice-draft-form footer, .lexoffice-contact-pages { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lexoffice-draft-form h2 { font-size: 24px; margin: 0; }
.lexoffice-draft-form h3 { font-size: 18px; margin: 0 0 12px; }
.lexoffice-draft-form label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.lexoffice-draft-form input, .lexoffice-draft-form select, .lexoffice-draft-form textarea { width: 100%; box-sizing: border-box; min-width: 0; }
.lexoffice-draft-form output { display: block; padding: 10px 0; }
.lexoffice-draft-form header [data-close], .lexoffice-draft-form [data-remove] { width: 36px; height: 36px; border: 1px solid #426953; background: transparent; color: inherit; border-radius: 4px; font-size: 22px; cursor: pointer; }
.lexoffice-draft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lexoffice-draft-grid .full { grid-column: 1 / -1; }
.lexoffice-draft-form [hidden] { display: none; }
.lexoffice-draft-contacts { max-height: 200px; overflow: auto; }
.lexoffice-draft-contacts label { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #2b4a3b; cursor: pointer; }
.lexoffice-draft-contacts input { width: 18px; flex-shrink: 0; }
.lexoffice-draft-contacts small { display: block; color: #b7cebf; overflow-wrap: anywhere; }
.lexoffice-draft-line { display: grid; grid-template-columns: minmax(140px, 3fr) repeat(5, minmax(72px, 1fr)) 36px; align-items: end; gap: 10px; margin-bottom: 12px; }
.lexoffice-draft-form [data-status] { margin: 0; overflow-wrap: anywhere; }
.lexoffice-draft-form button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) {
  .billing-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lexoffice-draft-dialog { padding: 16px; }
  .lexoffice-draft-line { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 14px; border-bottom: 1px solid #426953; }
  .lexoffice-draft-line label:first-child { grid-column: 1 / -1; }
  .lexoffice-draft-form footer button { width: 100%; }
  [data-lexoffice-panel] .panel-actions, [data-lexoffice-panel] .panel-actions .app-select, [data-lexoffice-panel] .panel-actions input { width: 100%; }
}
@media (max-width: 480px) {
  .lexoffice-draft-grid { grid-template-columns: minmax(0, 1fr); }
}


.lexoffice-draft-line [data-line-total] { grid-column: 1 / -1; padding: 0; text-align: right; color: #b7cebf; }
.lexoffice-total-discount { max-width: 340px; margin-top: 20px; }
.lexoffice-total-discount small { color: #b7cebf; }
