/* NebenKost – Custom Styles (ergänzend zu DaisyUI/Tailwind) */

/* ── Allgemein ─────────────────────────────────────── */
body {
  min-height: 100vh;
}

/* HTMX-Ladeindikator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Sanftes Ein-/Ausblenden für HTMX-Swaps */
.htmx-swapping {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.htmx-settling {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}

/* ── Tabellen ──────────────────────────────────────── */
.table th {
  white-space: nowrap;
}

.table td.currency {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Formulare ─────────────────────────────────────── */
.form-control label.label span {
  font-weight: 600;
}

/* Pflichtfeld-Stern */
.required::after {
  content: " *";
  color: oklch(var(--er));
}

/* ── Dokument-Upload / Drag & Drop ─────────────────── */
.dropzone {
  border: 2px dashed oklch(var(--bc) / 0.3);
  border-radius: var(--rounded-box, 1rem);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone.dragover {
  border-color: oklch(var(--p));
  background-color: oklch(var(--p) / 0.05);
}

/* ── Toast / Benachrichtigungen ────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Sidebar / Navigation ──────────────────────────── */
.sidebar-active {
  background-color: oklch(var(--p) / 0.1);
  border-left: 3px solid oklch(var(--p));
}

/* ── PDF-Vorschau ──────────────────────────────────── */
.pdf-preview {
  background: white;
  padding: 2rem;
  max-width: 210mm;
  margin: 0 auto;
}

/* ── Druckstile (PDF-Generierung & Browser-Druck) ── */
@media print {
  /* Alles ausblenden außer Hauptinhalt */
  nav, .navbar, .sidebar, .drawer-side,
  .btn-group, .toast, footer,
  #toast-container, .no-print {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  .drawer-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  /* Seitenumbrüche */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  table, figure {
    page-break-inside: avoid;
  }
  .page-break {
    page-break-before: always;
  }

  /* Tabellen im Druck */
  table {
    width: 100%;
    border-collapse: collapse;
  }
  table th, table td {
    border: 1px solid #ccc;
    padding: 4px 8px;
  }

  /* Abrechnung: Kopfbereich */
  .abrechnung-header {
    margin-bottom: 1.5rem;
  }
  .abrechnung-header h1 {
    font-size: 16pt;
  }

  /* §35a-Block hervorheben */
  .para35a-box {
    border: 2px solid #000;
    padding: 0.5rem;
    margin-top: 1rem;
  }

  /* Links nicht als URL drucken */
  a[href]::after {
    content: none !important;
  }
}
