/* ============================================================
   Cockpit Design — Alles Erledigt
   Standalone-Stylesheet für den neuen Cockpit-Workspace.
   Wird NUR auf Cockpit-Seiten geladen (kein Konflikt mit Orchid).
   ============================================================ */

/* ── CSS-Variablen ─────────────────────────────────────────── */
:root {
  --primary:   #008B97;
  --secondary: #C7A244;
  --text-dark: #505261;
  --bg-body:   #F4F7F6;
  --white:     #FFFFFF;
  --danger:    #EF4444;
  --warning:   #F59E0B;
  --success:   #10B981;
  --shadow:    0 12px 40px rgba(0,0,0,0.03);
  --radius:    24px;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Font gilt für ALLE Seiten (Cockpit + Orchid Admin) */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Layout-Styles NUR für die eigenständigen Cockpit-Seiten */
body.ck-body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  margin: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
aside {
  width: 280px;
  background-color: var(--white);
  border-right: 1px solid rgba(229, 233, 235, 0.5);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  flex-shrink: 0;
  z-index: 10;
}

.logo-area {
  padding-bottom: 50px;
  padding-left: 12px;
}

.logo-sub {
  font-size: 13px;
  color: #9094A0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 6px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
}

nav a:hover {
  background-color: rgba(0, 139, 151, 0.05);
  color: var(--primary);
}

nav a.active {
  background-color: rgba(0, 139, 151, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.nav-badge {
  background-color: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.sidebar-footer {
  margin-top: auto;
}

/* ── Wunschbox ─────────────────────────────────────────────── */
.wishbox-card {
  background: linear-gradient(135deg, rgba(199, 162, 68, 0.15), rgba(199, 162, 68, 0.03));
  border: 1px solid rgba(199, 162, 68, 0.3);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 0 12px 20px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(199, 162, 68, 0.1);
}

.wishbox-card:hover {
  background: rgba(199, 162, 68, 0.2);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(199, 162, 68, 0.15);
}

.wishbox-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.wishbox-body {
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.5;
}

.wishbox-subtitle {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 700;
}

/* ── User Profile (Sidebar Footer) ─────────────────────────── */
.user-profile {
  padding: 20px 12px 0 12px;
  border-top: 1px solid rgba(229, 233, 235, 0.5);
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  background: #E5E9EB;
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.user-status {
  font-size: 13px;
  color: #9094A0;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
main {
  flex-grow: 1;
  padding: 40px 80px 80px 80px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.header-title h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.8px;
  color: var(--text-dark);
}

.header-date {
  font-size: 15px;
  color: #9094A0;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-outline-sm {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid #E5E9EB;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-outline-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-quick-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 139, 151, 0.3);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-quick-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 139, 151, 0.4);
  color: white;
}

.btn-action-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 139, 151, 0.25);
  text-align: center;
  width: 100%;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}

.btn-action-primary:hover {
  background: #007A85;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 139, 151, 0.4);
}

.btn-action-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  text-align: center;
  width: 100%;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}

.btn-action-danger:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-action-outline {
  background: white;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}

.btn-action-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── AI SPOTLIGHT ──────────────────────────────────────────── */
.ai-spotlight {
  background: var(--white);
  border-radius: 24px;
  padding: 30px 40px;
  box-shadow: 0 15px 50px rgba(0, 139, 151, 0.12);
  margin-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-spotlight h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #F4F7F6;
  border-radius: 16px;
  padding: 8px 8px 8px 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(0, 139, 151, 0.1);
}

.ai-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  outline: none;
  color: #505261;
}

.ai-input::placeholder {
  color: #A0AAB2;
}

.btn-spotlight-send {
  background-color: var(--secondary);
  color: white;
  border: none;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(199, 162, 68, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-spotlight-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 162, 68, 0.4);
}

.prompts {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.prompts::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #E5E9EB;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #9094A0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background: rgba(0, 139, 151, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── CARDS (allgemein) ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.card-header-title {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.fristen-radar-title {
  margin: 0;
  font-size: 20px;
}

.link-primary {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

/* ── FRISTEN-RADAR ─────────────────────────────────────────── */
.fristen-radar-card {
  border-top: 4px solid var(--danger);
  padding: 30px 40px;
}

.urgent-list-container {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 10px;
}

.urgent-list-container::-webkit-scrollbar {
  width: 6px;
}

.urgent-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.urgent-list-container::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 10px;
}

.urgent-header-row {
  display: grid;
  grid-template-columns: 1fr 130px 100px 110px 160px;
  gap: 15px;
  padding: 0 20px 8px 20px;
  font-size: 11px;
  font-weight: 600;
  color: #A0AAB2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E9EB;
  margin-bottom: 12px;
}

.urgent-header-row .col-right {
  text-align: right;
}

.urgent-header-row .col-center {
  text-align: center;
}

.urgent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.urgent-item {
  display: grid;
  grid-template-columns: 1fr 130px 100px 110px 160px;
  gap: 15px;
  align-items: center;
  padding: 16px 20px;
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s;
}

.urgent-item:hover {
  transform: scale(1.01);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Border-Varianten für urgente Items */
.urgent-item--danger {
  border-left: 4px solid var(--danger);
}

.urgent-item--warning {
  border-left: 4px solid var(--warning);
}

/* Hervorhebung der am längsten überfälligen Rechnung (Top-Position) */
.urgent-item--top-overdue {
  border-left-width: 6px;
  background: rgba(239, 68, 68, 0.06);
}

.urgent-item--top-overdue .item-title-row,
.urgent-item--top-overdue .item-amount,
.urgent-item--top-overdue .item-due {
  font-weight: 700;
  color: var(--danger);
}

.urgent-item--top-overdue .item-info::before {
  content: '🔥';
  margin-right: 6px;
}

/* Aufklappbare Cashflow-Karte */
.card--collapsible {
  padding: 0;
  overflow: hidden;
}

.card--collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.card--collapsible > summary::-webkit-details-marker {
  display: none;
}

.card--collapsible > summary::after {
  content: '▾';
  color: #9094a0;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.card--collapsible[open] > summary::after {
  transform: rotate(180deg);
}

.cashflow-summary-hint {
  font-size: 12px;
  color: #9094a0;
  margin-right: 6px;
}

.card--collapsible > .cashflow-container {
  padding: 0 24px 24px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

.item-sub {
  font-size: 12px;
  font-weight: 600;
  color: #9094A0;
}

.item-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.item-due {
  font-size: 13px;
  font-weight: 600;
}

.item-due--danger {
  color: var(--danger);
}

.item-due--warning {
  color: var(--warning);
}

.item-amount {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: right;
}

/* ── DASHBOARD GRID (2 Spalten) ────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-bottom: 60px;
}

/* ── FINANCE CARDS ─────────────────────────────────────────── */
.finance-card {
  padding: 30px;
  border: none;
  margin-bottom: 0;
}

.card-capital {
  background: #E8F4F5;
  border-top: 4px solid var(--primary);
}

.card-vault {
  background: var(--white);
  border-top: 4px solid var(--secondary);
}

.card--success {
  border-top: 4px solid var(--success);
}

/* ── Letter-Icons (Buchstaben-Badges) ──────────────────────── */
.letter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: auto;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}

.li-dark {
  background: rgba(80, 82, 97, 0.1);
  color: var(--text-dark);
}

.li-primary {
  background: rgba(0, 139, 151, 0.1);
  color: var(--primary);
}

.li-gold {
  background: rgba(199, 162, 68, 0.1);
  color: var(--secondary);
}

.li-gray {
  background: #E5E9EB;
  color: #9094A0;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
  margin-top: 6px;
  color: #9094A0;
}

/* ── Tooltip ───────────────────────────────────────────────── */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.info-icon {
  cursor: pointer;
  color: var(--secondary);
  background: rgba(199, 162, 68, 0.15);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-style: italic;
  font-weight: 800;
  transition: all 0.2s;
}

.info-icon:hover {
  background: var(--secondary);
  color: white;
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background-color: var(--white);
  color: var(--text-dark);
  text-align: left;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(229, 233, 235, 0.8);
}

.tooltip-wrapper:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
}

/* ── Berechnungs-Anzeige (Clean Calc) ──────────────────────── */
.clean-calc {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.clean-calc-total {
  font-weight: 800;
  letter-spacing: -1.5px;
  text-align: center;
  padding: 10px 0 30px 0;
  font-size: 48px;
  margin: 0;
}

.card-capital .clean-calc-total {
  color: var(--primary);
}

.card-vault .clean-calc-total {
  color: var(--secondary);
  font-size: 42px;
}

.calc-list-wrapper {
  border-top: 1px dashed rgba(0,0,0,0.08);
  padding-top: 16px;
  margin-top: auto;
}

.calc-list-title {
  font-size: 11px;
  color: #9094A0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.calc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
}

.calc-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.calc-amount {
  font-size: 14px;
  font-weight: 600;
  color: #9094A0;
}

/* ── CASHFLOW GRAPH ────────────────────────────────────────── */
.cashflow-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: stretch;
  margin-top: 10px;
}

.finance-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFCFC;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.stat-row:hover {
  background: var(--white);
  border-color: #E5E9EB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.stat-row--elevated {
  background: var(--white);
  border: 1px solid #E5E9EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.stat-row-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.stat-label {
  font-size: 14px;
  color: #9094A0;
  margin-bottom: 6px;
  font-weight: 500;
  display: block;
}

.stat-amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-amount.profit {
  color: var(--text-dark);
  font-size: 28px;
  font-weight: 800;
}

.stat-amount.income {
  color: var(--primary);
}

.stat-amount.expense {
  color: #9094A0;
}

/* Plus-Buttons in Stat-Rows */
.btn-plus-small {
  background: rgba(0, 139, 151, 0.1);
  color: var(--primary);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s;
  margin-left: 15px;
  flex-shrink: 0;
}

.btn-plus-small:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.btn-plus-small.expense-btn {
  background: rgba(80, 82, 97, 0.1);
  color: var(--text-dark);
}

.btn-plus-small.expense-btn:hover {
  background: var(--text-dark);
  color: white;
}

/* ── Diagramm-Bereich ──────────────────────────────────────── */
.graph-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.graph-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #9094A0;
  justify-content: flex-end;
  font-weight: 500;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-color--dark    { background: var(--text-dark); }
.legend-color--primary { background: var(--primary); }
.legend-color--expense { background: #E5E9EB; }

.graph-area-12m {
  height: 200px;
  position: relative;
  border-bottom: 2px solid #F4F7F6;
  display: flex;
  align-items: flex-end;
  padding-bottom: 15px;
}

.mock-line-chart {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
}

.month-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  bottom: -25px;
  font-size: 12px;
  color: #9094A0;
  font-weight: 500;
  z-index: 1;
}

/* Interaktions-Layer (CSS-only Hover-Tooltips) */
.chart-interaction-layer {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 180px;
  display: flex;
  z-index: 10;
}

.chart-col {
  flex: 1;
  height: 100%;
  position: relative;
  cursor: crosshair;
}

.chart-col:hover {
  background: rgba(0, 139, 151, 0.04);
}

.chart-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid #E5E9EB;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: max-content;
  pointer-events: none;
}

.chart-col:hover .chart-tooltip {
  display: block;
  z-index: 20;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #E5E9EB transparent transparent transparent;
}

.tooltip-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 10px;
  border-bottom: 1px solid #F4F7F6;
  padding-bottom: 6px;
}

.tooltip-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
}

.tooltip-line:last-child {
  margin-bottom: 0;
}

.tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.tooltip-dot--dark    { background: var(--text-dark); }
.tooltip-dot--primary { background: var(--primary); }
.tooltip-dot--expense { background: #E5E9EB; }

.tooltip-label-dark    { color: var(--text-dark); }
.tooltip-label-primary { color: var(--primary); }
.tooltip-label-expense { color: #9094A0; }

/* ── AKTIVITÄTEN ───────────────────────────────────────────── */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  background: #FAFCFC;
  border-radius: 12px;
  font-size: 14px;
}

.activity-icon {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-time {
  color: #9094A0;
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE + COLLAPSIBLE SIDEBAR
   ============================================================ */

/* ── Sidebar-Header-Zeile (Logo + Toggle-Button) ───────────── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 50px;
  padding-left: 12px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9094A0;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 0;
}

.sidebar-toggle-btn:hover {
  background: rgba(0, 139, 151, 0.08);
  color: var(--primary);
}

/* Pfeil-Icons: welcher ist sichtbar hängt vom Zustand ab */
.icon-collapse { display: block; }
.icon-expand   { display: none; }

/* ── Mobile Hamburger-Button (im Main-Header) ──────────────── */
.mobile-menu-btn {
  display: none; /* auf Desktop immer versteckt */
  background: var(--white);
  border: 1px solid #E5E9EB;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 0;
}

.mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Overlay für Mobile ────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ── DESKTOP: Sidebar einklappbar ──────────────────────────── */
@media (min-width: 1025px) {
  aside {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  /* Eingeklappt: schmale Leiste */
  aside.sidebar-collapsed {
    width: 72px;
    padding-left: 12px;
    padding-right: 12px;
  }

  aside.sidebar-collapsed .sidebar-header {
    padding-left: 0;
    justify-content: center;
  }

  /* Logo + Sub-Text ausblenden */
  aside.sidebar-collapsed .sidebar-logo-img,
  aside.sidebar-collapsed .logo-sub {
    display: none;
  }

  /* Nav-Badge ausblenden, Text in Links verstecken */
  aside.sidebar-collapsed .nav-badge {
    display: none;
  }

  aside.sidebar-collapsed nav a {
    padding: 14px;
    justify-content: center;
    border-radius: 12px;
  }

  aside.sidebar-collapsed .nav-label {
    display: none;
  }

  /* Sidebar-Footer ausblenden */
  aside.sidebar-collapsed .sidebar-footer {
    opacity: 0;
    pointer-events: none;
  }

  /* Pfeil-Icon wechseln */
  aside.sidebar-collapsed .icon-collapse { display: none; }
  aside.sidebar-collapsed .icon-expand   { display: block; }
}

/* ── TABLET / MOBILE: Sidebar als Drawer ───────────────────── */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  aside {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }

  aside.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
  }

  /* Toggle-Button auf Mobile verstecken (wird durch Overlay-Close ersetzt) */
  .sidebar-toggle-btn {
    display: none;
  }

  /* Hamburger-Button anzeigen */
  .mobile-menu-btn {
    display: flex;
  }

  main {
    padding: 24px 20px 60px 20px;
    width: 100%;
  }

  .header-container {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cashflow-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .urgent-header-row {
    display: none; /* Header-Row auf Mobile zu eng */
  }

  .urgent-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .item-date,
  .item-due {
    display: none;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
  }

  .finance-card {
    padding: 20px;
  }

  .ai-spotlight {
    padding: 20px;
  }

  .fristen-radar-card {
    padding: 20px;
  }

  .clean-calc-total {
    font-size: 36px;
  }

  .card-vault .clean-calc-total {
    font-size: 32px;
  }
}

/* ============================================================
   ORCHID ADMIN INTEGRATION
   Überschreibt Orchid/Bootstrap/style.css für die Sidebar
   und den Seitenheader aller Admin-Seiten.
   ============================================================ */

/* ── Sidebar-Hintergrund & Struktur ────────────────────────── */
div.aside {
  background-color: #ffffff !important;
  border-right: 1px solid #e8ecef !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Header-Bereich: Logo + Toggle nebeneinander */
div.aside header {
  padding: 28px 20px 12px 24px !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  flex-shrink: 0 !important;
}

/* Logo */
div.aside header .header-brand img {
  max-width: 215px !important;
  height: auto !important;
  opacity: 1 !important;
}

/* Toggle-Button: nicht mehr absolut positioniert */
div.aside .menue_toggle {
  position: static !important;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center !important;
}

div.aside .sidebar-toggle-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #9094A0 !important;
  padding: 7px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, color 0.2s !important;
  line-height: 0 !important;
}

div.aside .sidebar-toggle-btn:hover {
  background: rgba(0,139,151,0.08) !important;
  color: #008B97 !important;
}

/* Icon-Zustand (collapse/expand Pfeil) */
div.aside .icon-collapse { display: block !important; }
div.aside .icon-expand   { display: none  !important; }
div.aside.aside-collapsed .icon-collapse { display: none  !important; }
div.aside.aside-collapsed .icon-expand   { display: block !important; }

/* ── Nav-Container ─────────────────────────────────────────── */
div.aside .aside-collapse {
  padding: 4px 16px 0 16px !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Suchfeld ausblenden */
div.aside [data-controller="search"],
div.aside #orchid-search {
  display: none !important;
}

/* ── Nav-Items & Links ─────────────────────────────────────── */
div.aside .nav-item {
  list-style: none !important;
  margin-bottom: 2px !important;
}

/* Top-Level Links */
div.aside .nav > li > a.nav-link,
div.aside .nav > .nav-item > a.nav-link {
  color: #505261 !important;
  background-color: transparent !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  /* font-weight: 500 !important; */
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  transition: background-color 0.2s, color 0.2s !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

div.aside .nav > li > a.nav-link:hover,
div.aside .nav > .nav-item > a.nav-link:hover {
  background-color: rgba(0,139,151,0.07) !important;
  color: #008B97 !important;
}

div.aside .nav > li > a.nav-link.active,
div.aside .nav > .nav-item > a.nav-link.active {
  background-color: rgba(0,139,151,0.1) !important;
  color: #008B97 !important;
  font-weight: 600 !important;
}

/* Icons innerhalb von Nav-Links */
div.aside .nav-link .icon-menu {
  opacity: 0.55 !important;
  flex-shrink: 0 !important;
  color: inherit !important;
  width: 18px !important;
  height: 18px !important;
}

div.aside .nav-link:hover .icon-menu,
div.aside .nav-link.active .icon-menu {
  opacity: 1 !important;
}

/* ============================================================
   STEUERN & SVS HUB
   ============================================================ */

.tax-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tax-hub__card,
.tax-hub__highlight,
.tax-hub__export-card {
  background: var(--white);
  border: 1px solid #E5E9EB;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.tax-hub__highlight {
  background: #FFFBEB;
  border-color: #FDE68A;
  border-left: 5px solid var(--secondary);
  padding: 26px 34px;
}

.tax-hub__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tax-hub__section-header--light h3,
.tax-hub__section-header--light .tax-hub__link {
  color: #FFFFFF;
}

.tax-hub__section-header--stacked {
  align-items: flex-start;
}

.tax-hub__section-header h3 {
  margin: 0;
  font-size: 20px;
  color:#fff;
  /* color: var(--text-dark); */
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-hub__section-header p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #9094A0;
  line-height: 1.55;
}

.tax-hub__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--secondary);
  color: #FFFFFF;
}

.tax-hub__link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tax-hub__link:hover,
.tax-hub__text-action:hover {
  color: var(--primary);
  opacity: 0.82;
  text-decoration: none;
}

.tax-hub__link--light:hover {
  color: #FFFFFF;
  opacity: 0.82;
}

.tax-hub__highlight-text {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-dark);
  font-weight: 700;
}

.tax-hub__highlight-copy {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
}

.tax-hub__text-action {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.tax-hub__savings {
  background: linear-gradient(135deg, var(--primary) 0%, #006B75 100%);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 139, 151, 0.15);
  color: #FFFFFF;
  padding: 32px 38px;
}

.tax-hub__savings-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.tax-hub__savings-total {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.tax-hub__savings-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.tax-hub__savings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-hub__savings-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tax-hub__savings-item span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15px;
  font-weight: 800;
}

.tax-hub__savings-item small {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.tax-hub__savings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tax-hub__card {
  padding: 32px;
}

.tax-hub__card--full {
  width: 100%;
}

.tax-hub__card--compact {
  margin: 0;
}

.tax-hub__highlight-tip {
  /* margin-top: 20px;
  padding-top: 18px; */
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-hub__highlight-tip .tax-hub__tag {
  align-self: flex-start;
}

.tax-hub__highlight-tip-title {
  font-size: 15px;
  font-weight: 600;
}

.tax-hub__highlight-tip-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.tax-hub__liabilities-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E5E9EB;
}

.tax-hub__liabilities-copy {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  color: #9094A0;
}

.tax-hub__liabilities-total {
  text-align: right;
}

.tax-hub__liabilities-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #9094A0;
  margin-bottom: 6px;
}

.tax-hub__liabilities-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary);
}

.tax-hub__liabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tax-hub__liability-box {
  padding: 24px 20px;
  border-radius: 18px;
  background: #FAFCFC;
  border: 1px solid #E5E9EB;
  text-align: center;
}

.tax-hub__liability-head {
  margin-bottom: 16px;
}

.tax-hub__liability-head h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
}

.tax-hub__liability-box .tax-hub__liability-amount {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tax-hub__liability-box p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #9094A0;
}

.tax-hub__liability-box small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #A0AAB2;
}

.tax-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

.tax-hub__scroll {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.tax-hub__calendar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-hub__calendar-item {
  margin: 0;
}

.tax-hub__calendar-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #FAFCFC;
  border: 1px solid #E5E9EB;
  color: inherit;
  text-decoration: none;
}

.tax-hub__calendar-link:hover {
  text-decoration: none;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.tax-hub__calendar-date {
  text-align: center;
}

.tax-hub__calendar-date .day {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.tax-hub__calendar-date .month {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  color: #9094A0;
  font-weight: 700;
}

.tax-hub__calendar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tax-hub__calendar-copy strong {
  font-size: 14px;
  color: var(--text-dark);
}

.tax-hub__calendar-copy span,
.tax-hub__calendar-side small {
  font-size: 12px;
  color: #9094A0;
}

.tax-hub__calendar-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tax-hub__calendar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tax-hub__export-card {
  background: linear-gradient(135deg, #F0F9FA 0%, #FFFFFF 100%);
  border-color: rgba(0, 139, 151, 0.2);
  box-shadow: 0 8px 24px rgba(0, 139, 151, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tax-hub__export-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 22px;
}

.tax-hub__export-card p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.tax-hub__export-status {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid #E5E9EB;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
}

.tax-hub__export-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 139, 151, 0.2);
  transition: all 0.2s ease;
}

.tax-hub__export-button:hover {
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
}

.tax-hub__export-button.is-disabled {
  background: #CBD5E1;
  box-shadow: none;
  pointer-events: none;
}

.tax-hub__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.tax-hub__facts div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 233, 235, 0.8);
}

.tax-hub__facts dt {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: #9094A0;
}

.tax-hub__facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ============================================================
   ORDER EDIT PAGES
   ============================================================ */

.ae-order-edit {
  background: linear-gradient(180deg, #F7FAF9 0%, #F4F7F6 220px, #F4F7F6 100%);
}

.ae-order-edit .container-fluid {
  background: transparent;
}

.ae-order-edit .ae-page-header {
  margin-bottom: 24px;
}

.ae-order-edit .ck-header-bar {
  align-items: flex-start;
}

.ae-order-edit .ck-page-title {
  font-size: 34px;
  letter-spacing: -0.9px;
}

.ae-order-edit .ck-page-subtitle {
  max-width: 760px;
  margin-top: 10px;
  font-size: 15px;
  color: #9094A0;
}

.ae-order-edit .command-bar .btn,
.ae-order-edit .command-bar .dropdown-toggle,
.ae-order-edit .command-bar .btn.dropdown-toggle {
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
}

.ae-order-edit .command-bar .btn-primary,
.ae-order-edit .command-bar .dropdown-toggle.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 18px rgba(0, 139, 151, 0.2) !important;
}

.ae-order-edit #post-form {
  max-width: 1580px;
}

.ae-order-edit #post-form > fieldset {
  margin-bottom: 28px !important;
}

.ae-order-edit #post-form > fieldset > .col.p-0.px-3 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ae-order-edit #post-form > fieldset legend {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-dark);
}

.ae-order-edit #post-form > fieldset > .bg-white.rounded.shadow-sm {
  padding: 28px !important;
  border-radius: 24px !important;
  border: 1px solid #E5E9EB !important;
  box-shadow: var(--shadow) !important;
  background: #FFFFFF !important;
}

.ae-order-edit #post-form > fieldset .row.form-group {
  --bs-gutter-y: 18px;
  margin-bottom: 0;
}

.ae-order-edit #post-form > fieldset .row.form-group > div {
  margin-bottom: 18px;
}

.ae-order-edit #post-form .row.g-3 {
  --bs-gutter-x: 28px;
  --bs-gutter-y: 28px;
  align-items: start;
}

.ae-order-edit #post-form .row.g-3 > .col-md {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ae-order-edit .accordion {
  margin-bottom: 0 !important;
}

.ae-order-edit .accordion-heading {
  margin-bottom: 14px;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  border: 1px solid #E5E9EB;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.ae-order-edit .accordion-heading:hover {
  border-color: rgba(0, 139, 151, 0.24);
}

.ae-order-edit .accordion-heading h6 {
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
}

.ae-order-edit .accordion-heading .icon {
  color: var(--primary);
}

.ae-order-edit .accordion > .collapse,
.ae-order-edit .accordion > .collapsing {
  margin-top: 0 !important;
  margin-bottom: 16px;
  padding: 28px 28px 10px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid #E5E9EB;
  box-shadow: var(--shadow);
}

.ae-order-edit .accordion .row.form-group {
  --bs-gutter-y: 18px;
  margin-bottom: 0;
}

.ae-order-edit .accordion .row.form-group > div,
.ae-order-edit .col-md > .row.form-group > div {
  margin-bottom: 18px;
}

.ae-order-edit label.form-label,
.ae-order-edit .form-label,
.ae-order-edit .col-form-label {
  margin-bottom: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #7C808E;
}

.ae-order-edit input.form-control,
.ae-order-edit textarea.form-control,
.ae-order-edit select.form-control,
.ae-order-edit .ts-wrapper.form-control,
.ae-order-edit .input-group input.form-control {
  min-height: 52px;
  border-radius: 14px !important;
  border: 1px solid #E5E9EB !important;
  background: #F8FAFB !important;
  box-shadow: none !important;
  color: var(--text-dark);
}

.ae-order-edit textarea.form-control {
  min-height: 110px;
  padding-top: 14px;
}

.ae-order-edit .ts-wrapper.form-control,
.ae-order-edit .input-group {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.ae-order-edit .ts-wrapper.single .ts-control,
.ae-order-edit .ts-wrapper.multi .ts-control,
.ae-order-edit .input-group > input.form-control,
.ae-order-edit .input-group .input-group-text,
.ae-order-edit .input-group-append .input-group-text {
  min-height: 52px;
  border-radius: 14px !important;
  border: 1px solid #E5E9EB !important;
  background: #F8FAFB !important;
  box-shadow: none !important;
}

.ae-order-edit .ts-wrapper.single .ts-control,
.ae-order-edit .ts-wrapper.multi .ts-control {
  padding: 12px 14px;
}

.ae-order-edit .ts-wrapper.focus .ts-control,
.ae-order-edit input.form-control:focus,
.ae-order-edit textarea.form-control:focus,
.ae-order-edit .input-group > input.form-control:focus {
  background: #FFFFFF !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 5px rgba(0, 139, 151, 0.09) !important;
}

.ae-order-edit .form-check.form-switch {
  min-height: 52px;
  padding: 14px 16px 14px 52px;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
  background: #F8FAFB;
}

.ae-order-edit .form-check-input {
  margin-top: 0.1rem;
}

.ae-order-edit .ae-customer-preview {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 139, 151, 0.15);
  background: rgba(0, 139, 151, 0.05);
}

.ae-order-edit .ae-customer-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.ae-order-edit .ae-customer-preview__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #7C808E;
}

.ae-order-edit .ae-customer-preview__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.ae-order-edit .ae-customer-preview__edit {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.catalog-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.catalog-hub__summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.catalog-hub__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 0 2px;
}

.catalog-hub__toolbar-copy span {
  display: block;
  margin-bottom: 6px;
  color: #008b97;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-hub__toolbar-copy p {
  margin: 0;
  max-width: 62ch;
  color: #5c6975;
  line-height: 1.6;
}

.catalog-hub__toolbar-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.catalog-hub__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0, 139, 151, 0.08);
  border: 1px solid rgba(0, 139, 151, 0.18);
  color: #008b97;
  text-decoration: none;
  font-weight: 600;
}

.catalog-hub__summary-card,
.catalog-hub__highlight,
.catalog-panel {
  background: #fff;
  border: 1px solid #e5e9eb;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(80, 82, 97, 0.08);
}

.catalog-hub__summary-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-hub__summary-label,
.catalog-hub__summary-meta,
.catalog-row span,
.catalog-panel__header p,
.catalog-panel__empty,
.catalog-hub__highlight-copy {
  color: #74808b;
}
.catalog-panel--customers .catalog-hub__summary-label,
.catalog-panel--customers .catalog-hub__summary-meta,
.catalog-panel--customers .catalog-row span,
.catalog-panel--customers .catalog-panel__header p,
.catalog-panel--customers .catalog-panel__empty,
.catalog-panel--customers .catalog-hub__highlight-copy {
  color: #73808b;
}
.catalog-panel.catalog-panel--customers .catalog-row__badge{
  color: #fff;
  display:flex;
}
.catalog-row__badge.catalog-row__badge--square {
  display:flex;
}
.catalog-row__badge{

  display: flex!important;
  align-items: center;
  justify-content: center;
}
.catalog-hub__summary-label,
.catalog-hub__summary-meta {
  font-size: 0.9rem;
}

.catalog-hub__summary-value {
  color: #1f2937;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.catalog-hub__highlight {
  padding: 30px 32px;
  background: linear-gradient(135deg, rgba(0, 139, 151, 0.12), rgba(255, 255, 255, 0.96));
}

.catalog-hub__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-hub__section-header h3,
.catalog-panel__header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.catalog-hub__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 139, 151, 0.12);
  color: #008b97;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-hub__link,
.catalog-hub__text-action {
  color: #008b97;
  font-weight: 600;
  text-decoration: none;
}

.catalog-hub__highlight-title {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.catalog-hub__highlight-copy {
  margin: 0 0 12px;
  max-width: 70ch;
  line-height: 1.65;
}

.catalog-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.catalog-panel {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-panel--customers {
  border-top: 4px solid #008b97;
}

.catalog-panel--contacts {
  border-top: 4px solid #59b7bf;
}

.catalog-panel--services {
  border-top: 4px solid #505261;
}

.catalog-panel--suppliers {
  border-top: 4px solid #c7a244;
}

.catalog-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.catalog-panel__header p {
  margin: 8px 0 0;
  max-width: 44ch;
}

.catalog-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-panel__list > * {
  min-width: 0;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(110px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfb;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.catalog-row__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-row__main div {
  min-width: 0;
}

.catalog-row__main strong,
.catalog-row__side strong {
  display: block;
  color: #1f2937;
}

.catalog-row__main strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-row__main span,
.catalog-row__side span {
  display: block;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-row__badge {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #008b97;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.catalog-row__badge--soft {
  background: rgba(0, 139, 151, 0.14);
  color: #008b97;
}

.catalog-row__badge--square {
  border-radius: 12px;
  background: rgba(80, 82, 97, 0.1);
  color: #505261;
}

.catalog-row__badge--gold {
  background: rgba(199, 162, 68, 0.18);
  color: #9a7b28;
}

.catalog-row__side {
  text-align: right;
}

.catalog-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-row__actions--compact {
  grid-column: 2 / 4;
}

.catalog-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-action:hover {
  transform: translateY(-1px);
}

.catalog-action--primary {
  background: #008b97;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 139, 151, 0.22);
}

.catalog-action--secondary {
  background: #fff;
  color: #505261;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.catalog-panel__empty {
  margin: 0;
  padding: 24px 0 6px;
}

.tools-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tools-hub__widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tools-hub__widget--wide {
  grid-column: 1 / -1;
}

.tools-hub__widget,
.tools-hub__section,
.tools-hub__card {
  background: #fff;
  border: 1px solid #e5e9eb;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(80, 82, 97, 0.08);
}

.tools-hub__widget,
.tools-hub__section {
  padding: 28px;
}

.tools-hub__widget-header,
.tools-hub__section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.tools-hub__widget-header h3,
.tools-hub__section-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.tools-hub__widget-header p,
.tools-hub__section-header p {
  margin: 8px 0 0;
  color: #74808b;
  line-height: 1.55;
}

.tools-hub__widget-tag,
.tools-hub__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tools-hub__widget-tag {
  padding: 6px 10px;
  background: rgba(0, 139, 151, 0.12);
  color: #008b97;
}

.tools-hub__input-label {
  display: block;
  margin-bottom: 8px;
  color: #5c6975;
  font-size: 0.9rem;
  font-weight: 600;
}

.tools-hub__input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 18px;
  min-height: 72px;
  border-radius: 18px;
  border: 2px solid #e5e9eb;
  background: #fff;
}

.tools-hub__input-wrap span {
  color: #9aa4af;
  font-size: 1.15rem;
  font-weight: 700;
}

.tools-hub__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-size: 1.8rem;
  font-weight: 800;
}

.tools-hub__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.tools-hub__input-wrap--compact {
  margin-bottom: 0;
  min-height: 64px;
}

.tools-hub__input--compact {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tools-hub__button {
  min-width: 132px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #008b97, #0f766e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 139, 151, 0.18);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tools-hub__button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.tools-hub__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tools-hub__uid-result {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fbfb;
}

.tools-hub__uid-result strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
}

.tools-hub__uid-result p {
  margin: 0;
  color: #5c6975;
  line-height: 1.6;
}

.tools-hub__uid-result[data-state="valid"] {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.tools-hub__uid-result[data-state="valid"] strong {
  color: #047857;
}

.tools-hub__uid-result[data-state="invalid"],
.tools-hub__uid-result[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
}

.tools-hub__uid-result[data-state="invalid"] strong,
.tools-hub__uid-result[data-state="error"] strong {
  color: #b91c1c;
}

.tools-hub__uid-result[data-state="loading"] {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
}

.tools-hub__uid-result[data-state="loading"] strong {
  color: #1d4ed8;
}

.tools-hub__helper-text {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  color: #74808b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tools-hub__helper-text a {
  color: #008b97;
  font-weight: 700;
  text-decoration: none;
}

.tools-hub__helper-text a:hover {
  text-decoration: underline;
}

.tools-hub__pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tools-hub__pill {
  padding: 14px;
  border-radius: 16px;
  background: #f8fbfb;
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.tools-hub__pill small {
  display: block;
  margin-bottom: 6px;
  color: #74808b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tools-hub__pill strong {
  color: #1f2937;
  font-size: 1.05rem;
}

.tools-hub__pill--accent {
  background: rgba(199, 162, 68, 0.1);
  border-color: rgba(199, 162, 68, 0.24);
}

.tools-hub__pill--accent strong {
  color: #9a7b28;
}

.tools-hub__pill--accent-teal {
  background: rgba(0, 139, 151, 0.08);
  border-color: rgba(0, 139, 151, 0.22);
}

.tools-hub__pill--accent-teal strong {
  color: #008b97;
}

.tools-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tools-hub__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tools-hub__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(80, 82, 97, 0.12);
}

.tools-hub__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 800;
}

.tools-hub__icon--blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.tools-hub__icon--gold { background: rgba(199, 162, 68, 0.16); color: #9a7b28; }
.tools-hub__icon--green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tools-hub__icon--purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.tools-hub__icon--dark { background: rgba(80, 82, 97, 0.12); color: #505261; }
.tools-hub__icon--teal { background: rgba(0, 139, 151, 0.12); color: #008b97; }
.tools-hub__icon--red { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.tools-hub__card h4 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1rem;
}

.tools-hub__card p {
  margin: 0;
  color: #74808b;
  line-height: 1.55;
}

.tools-hub__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 9px;
  background: rgba(0, 139, 151, 0.08);
  color: #008b97;
}

.tools-hub__arrow {
  margin-top: auto;
  padding-top: 18px;
  color: #008b97;
  font-weight: 700;
}

.ae-order-edit .ae-customer-preview__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.ae-order-edit .ae-customer-preview__name {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.ae-order-edit .ae-customer-preview__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5D6470;
}

.ae-order-edit .ae-customer-preview__body p:empty,
.ae-order-edit .ae-customer-preview__body strong:empty {
  display: none;
}

.ae-order-edit .ae-customer-preview__body > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ae-order-edit .ae-customer-hidden,
.ae-order-edit .form-group:has(input[hidden]):not(:has(label)):not(:has(textarea)):not(:has(select)):not(:has(button)):not(:has(.ae-customer-preview)),
.ae-order-edit .form-group[hidden],
.ae-order-edit .form-group[style*="display: none"],
.ae-order-edit .form-group.d-none,
.ae-order-edit .row.form-group[hidden],
.ae-order-edit .row.form-group[style*="display: none"],
.ae-order-edit .row.form-group.d-none,
.ae-order-edit .row.form-group > div[hidden],
.ae-order-edit .row.form-group > div[style*="display: none"],
.ae-order-edit .row.form-group > div.d-none,
.ae-order-edit .row.form-group > div:has(> [hidden]:only-child),
.ae-order-edit .row.form-group > div:has(> .d-none:only-child) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.ae-order-edit .ae-customer-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ae-order-edit .invoice-summary-card {
  padding: 28px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid #E5E9EB;
  box-shadow: var(--shadow);
}

.ae-order-edit .invoice-summary-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.ae-order-edit .invoice-summary-card__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: #9094A0;
}

.ae-order-edit .invoice-summary-card__head h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text-dark);
}

.ae-order-edit .invoice-summary-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ae-order-edit .invoice-summary-card__discount {
  margin-bottom: 18px;
}

.ae-order-edit .invoice-summary-card__label {
  margin-bottom: 8px;
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #7C808E;
  text-transform: uppercase;
}

.ae-order-edit .invoice-summary-card__discount-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
}

.ae-order-edit .invoice-summary-card__discount-input,
.ae-order-edit .invoice-summary-card__discount-type {
  width: 100% !important;
  margin-top: 0 !important;
  float: none !important;
  height: 52px !important;
  min-height: 52px !important;
}

.ae-order-edit .invoice-summary-card__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ae-order-edit .invoice-summary-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #FAFCFC;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
  font-size: 15px;
  color: var(--text-dark);
}

.ae-order-edit .invoice-summary-card__row strong,
.ae-order-edit .invoice-summary-card__row .summe_ust {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.ae-order-edit .invoice-summary-card__row--highlight {
  background: rgba(0, 139, 151, 0.06);
  border-color: rgba(0, 139, 151, 0.18);
}

.ae-order-edit .invoice-summary-card__row--highlight strong {
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.4px;
}

.ae-order-edit .invoice-summary-card__footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #E5E9EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #9094A0;
}

.ae-order-edit .invoice-summary-card__footer strong {
  font-size: 18px;
  color: var(--text-dark);
}

.ae-order-edit .invoice-matrix {
  margin: 0;
  border: 0 !important;
  background: transparent;
  border-collapse: separate !important;
  border-spacing: 0 12px;
}

.ae-order-edit .invoice-matrix.table > :not(caption) > * > * {
  box-shadow: none !important;
}

.ae-order-edit .invoice-matrix thead th {
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 11px;
  font-weight: 800;
  color: #A0AAB2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: bottom;
}

.ae-order-edit .invoice-matrix tbody tr.invoice-matrix__row {
  border: 0 !important;
}

.ae-order-edit .invoice-matrix tbody th,
.ae-order-edit .invoice-matrix tbody td {
  border: 0 !important;
  background: transparent !important;
}

.ae-order-edit .invoice-matrix__row > th,
.ae-order-edit .invoice-matrix__row > td {
  padding: 12px 10px !important;
  background: #FAFCFC !important;
  border-top: 1px solid #E5E9EB !important;
  border-bottom: 1px solid #E5E9EB !important;
}

.ae-order-edit .invoice-matrix__row > th:first-child,
.ae-order-edit .invoice-matrix__row > td:first-child {
  border-left: 1px solid #E5E9EB !important;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.ae-order-edit .invoice-matrix__row > th:last-child,
.ae-order-edit .invoice-matrix__row > td:last-child {
  border-right: 1px solid #E5E9EB !important;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.ae-order-edit .invoice-matrix__row:hover > th,
.ae-order-edit .invoice-matrix__row:hover > td {
  background: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.ae-order-edit .invoice-matrix__row--stacked > th {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.ae-order-edit .invoice-matrix__stacked-cell {
  box-shadow: none !important;
}

.ae-order-edit .invoice-matrix__stacked-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #FAFCFC;
  border: 1px solid #E5E9EB;
  border-radius: 18px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ae-order-edit .invoice-matrix__row--stacked:hover .invoice-matrix__stacked-card {
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.ae-order-edit .invoice-matrix__stacked-main {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) minmax(84px, 0.7fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.ae-order-edit .invoice-matrix__stacked-main--invoice {
  grid-template-columns: 28px 48px minmax(220px, 2.2fr) minmax(84px, 0.7fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) 36px;
}

.ae-order-edit .invoice-matrix__stacked-slot {
  min-width: 0;
}

.ae-order-edit .invoice-matrix__stacked-slot--handle,
.ae-order-edit .invoice-matrix__stacked-slot--index,
.ae-order-edit .invoice-matrix__stacked-slot--remove {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.ae-order-edit .invoice-matrix__stacked-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #D8E1E4;
}

.ae-order-edit .invoice-matrix__stacked-detail-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #A0AAB2;
}

.ae-order-edit .invoice-matrix__handle-head,
.ae-order-edit .invoice-matrix__handle-cell {
  width: 28px;
}

.ae-order-edit .invoice-matrix__index-head,
.ae-order-edit .invoice-matrix__index-cell {
  width: 48px;
}

.ae-order-edit .invoice-matrix__drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #CBD5E1;
  font-size: 18px;
  cursor: grab;
  user-select: none;
}

.ae-order-edit .invoice-matrix__drag:hover {
  color: var(--primary);
}

.ae-order-edit .invoice-matrix__index {
  font-size: 14px;
  font-weight: 800;
  color: #A0AAB2;
}

.ae-order-edit .invoice-matrix__field-cell .row.form-group {
  margin: 0;
}

.ae-order-edit .invoice-matrix__field-cell .row.form-group > div {
  margin-bottom: 0;
}

.ae-order-edit .invoice-matrix__field-cell--artikel_id .ts-wrapper.single .ts-control,
.ae-order-edit .invoice-matrix__field-cell--artikel_id input.form-control {
  font-weight: 700;
}

.ae-order-edit .invoice-matrix__field-cell--beschreibung textarea.form-control {
  min-height: 92px;
}

.ae-order-edit .invoice-matrix__stacked-detail-field textarea.form-control {
  min-height: 60px;
}

.ae-order-edit .invoice-matrix__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #CBD5E1 !important;
}

.ae-order-edit .invoice-matrix__remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger) !important;
  text-decoration: none;
}

.ae-order-edit .invoice-matrix .add-row > th {
  padding-top: 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ae-order-edit .invoice-matrix .add-row,
.ae-order-edit .invoice-matrix .add-row::before,
.ae-order-edit .invoice-matrix .add-row::after {
  border: 0 !important;
  box-shadow: none !important;
}

.ae-order-edit .invoice-matrix__add-row {
  min-height: 54px;
  border: 2px dashed #CBD5E1 !important;
  border-radius: 16px !important;
  color: var(--primary) !important;
  background: transparent !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.ae-order-edit .invoice-matrix__add-row:hover {
  background: #F0F9FA !important;
  border-color: var(--primary) !important;
}

.ae-order-edit .timeline,
.ae-order-edit .card.mb-3 {
  border-radius: 20px;
}

@media (min-width: 992px) {
  .ae-order-edit #post-form .row.g-3 > .col-md:last-child {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 991px) {
  .ae-order-edit .ck-page-title {
    font-size: 28px;
  }

  .ae-order-edit #post-form .row.g-3 {
    --bs-gutter-x: 20px;
  }
}

@media (max-width: 768px) {
  .ae-order-edit .accordion-heading,
  .ae-order-edit .accordion > .collapse,
  .ae-order-edit .invoice-summary-card,
  .ae-order-edit #post-form > fieldset > .bg-white.rounded.shadow-sm {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ae-order-edit .invoice-summary-card__discount-controls {
    grid-template-columns: 1fr;
  }

  .ae-order-edit .ae-customer-preview__body {
    grid-template-columns: 1fr;
  }

  .ae-order-edit .invoice-matrix {
    display: block;
    overflow-x: auto;
  }

  .ae-order-edit .invoice-matrix__stacked-main,
  .ae-order-edit .invoice-matrix__stacked-main--invoice {
    grid-template-columns: 1fr;
  }

  .ae-order-edit .invoice-matrix__stacked-slot--handle,
  .ae-order-edit .invoice-matrix__stacked-slot--index,
  .ae-order-edit .invoice-matrix__stacked-slot--remove {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .tax-hub__grid,
  .tools-hub__pill-grid,
  .catalog-hub__grid,
  .catalog-hub__summary-grid,
  .tax-hub__savings-split,
  .tax-hub__liabilities-grid {
    grid-template-columns: 1fr;
  }

  .tools-hub__widgets {
    grid-template-columns: 1fr;
  }

  .tax-hub__liabilities-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tax-hub__liabilities-total {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .tax-hub__card,
  .tax-hub__highlight,
  .tax-hub__export-card,
  .tax-hub__savings,
  .tools-hub__widget,
  .tools-hub__section,
  .catalog-hub__highlight,
  .catalog-panel,
  .catalog-hub__summary-card {
    padding: 22px;
  }

  .tax-hub__section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tax-hub__calendar-link {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .tax-hub__calendar-side {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .tax-hub__facts {
    grid-template-columns: 1fr;
  }

  .tax-hub__savings-total {
    font-size: 38px;
  }

  .catalog-row {
    grid-template-columns: 1fr;
  }

  .tools-hub__input-row,
  .tools-hub__pill-grid {
    grid-template-columns: 1fr;
  }

  .tools-hub__button {
    min-height: 56px;
  }

  .catalog-hub__toolbar,
  .catalog-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-hub__toolbar-chips {
    justify-content: flex-start;
  }

  .catalog-row__side,
  .catalog-row__actions,
  .catalog-row__actions--compact {
    grid-column: auto;
    text-align: left;
    justify-content: flex-start;
  }
}

/* Chevron bei Gruppen (Bootstrap collapse-toggle) */
div.aside .nav-link svg.ms-auto,
div.aside .nav-link > svg:last-child {
  opacity: 0.4 !important;
  transition: transform 0.2s !important;
}

div.aside .nav-link[aria-expanded="true"] > svg:last-child,
div.aside .nav-link[aria-expanded="true"] svg.ms-auto {
  transform: rotate(90deg) !important;
  opacity: 0.7 !important;
}

/* Submenü (verschachtelte Nav) */
div.aside .nav .nav .nav-link,
div.aside .nav > li > .collapse a.nav-link,
div.aside .nav > li > .collapsing a.nav-link {
  color: #7c808e !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 14px 8px 38px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

div.aside .nav .nav .nav-link:hover {
  color: #008B97 !important;
  background-color: rgba(0,139,151,0.05) !important;
}

div.aside .nav .nav .nav-link.active {
  color: #008B97 !important;
  background-color: rgba(0,139,151,0.08) !important;
  font-weight: 600 !important;
}

/* Scroll-to-Top ausblenden */
div.aside .to-top {
  display: none !important;
}

/* ── Footer-Profil-Bereich ─────────────────────────────────── */
div.aside footer.position-fixed {
  position: static !important;
  bottom: auto !important;
}

/* ── Collapsed State ───────────────────────────────────────── */
div.aside.aside-collapsed header {
  padding: 28px 0 12px 0 !important;
  justify-content: center !important;
}

div.aside.aside-collapsed .aside-collapse {
  padding: 4px 6px 0 6px !important;
}

div.aside.aside-collapsed .nav > li > a.nav-link,
div.aside.aside-collapsed .nav > .nav-item > a.nav-link {
  justify-content: center !important;
  padding: 11px !important;
}

/* ── Cockpit-Sidebar-Footer (Wishbox + User) ───────────────── */
.ck-sidebar-footer {
  padding: 0 20px 20px 20px;
  margin-top: auto;
  flex-shrink: 0;
}

.ck-wishbox {
  background: linear-gradient(135deg, rgba(199,162,68,0.1), rgba(199,162,68,0.02));
  border: 1px solid rgba(199,162,68,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.ck-wishbox:hover {
  background: rgba(199,162,68,0.16);
  border-color: #C7A244;
}

.ck-wishbox-title {
  font-size: 12px;
  font-weight: 700;
  color: #C7A244;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.ck-wishbox-text {
  font-size: 11px;
  color: #9094A0;
  line-height: 1.4;
}

.ck-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 8px 8px;
  margin: 0 -8px;
  border-top: 1px solid rgba(229,233,235,0.6);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ck-user-row:hover,
.ck-user-row:focus-visible {
  background-color: rgba(0,139,151,0.06);
  text-decoration: none;
  outline: none;
}

.ck-user-row:hover .ck-user-name,
.ck-user-row:focus-visible .ck-user-name {
  color: #008B97;
}

.ck-avatar {
  width: 34px;
  height: 34px;
  background: rgba(0,139,151,0.1);
  color: #008B97;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.ck-user-name  { font-weight: 600; font-size: 13px; color: #505261; }
.ck-user-status { font-size: 11px; color: #9094A0; }

/* collapsed: footer verstecken */
div.aside.aside-collapsed .ck-sidebar-footer {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   PAGE HEADER (Cockpit-Style: Breadcrumb → Titel → Subtitle)
   ============================================================ */

/* Content-Bereich bekommt den Cockpit-Grau-Hintergrund */
.app-shell .app-content-col {
  background-color: #F4F7F6 !important;
}

/* ae-page-header: transparent, kein weißer Kasten mehr */
.ae-page-header {
  padding: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
}

/* command-bar .layout: Orchid-Styles entfernen */
.ae-page-header .layout {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ── Header-Balken: Titel links, Buttons rechts ────────────── */
.ck-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 10px 24px 10px;
  background: transparent;
}

/* Links: vertikal gestapelt — Breadcrumb → Titel → Subtitle */
.ck-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

/* Breadcrumb (klein, grau, uppercase) */
.ck-breadcrumb-inline {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 2px 0;
  gap: 0;
}

.ck-breadcrumb-inline .ae-bc-item a,
.ck-breadcrumb-inline .ae-bc-item span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #B0B6C0;
  text-decoration: none;
}

.ck-breadcrumb-inline .ae-bc-item a:hover { color: #505261; }

.ck-breadcrumb-inline .ae-bc-item + .ae-bc-item::before {
  content: "›";
  font-size: 14px;
  color: #D1D5DB;
  margin: 0 6px;
  line-height: 1;
}

/* Trenner zwischen Breadcrumb-Inline und Titel (nicht mehr benötigt) */
.ck-header-sep { display: none; }

/* Seitentitel – identisch zur Cockpit-h1 */
.ck-page-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.6px !important;
  color: #3D3F4E !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Seitenuntertitel (description) */
.ck-page-subtitle {
  font-size: 14px;
  color: #9094A0;
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

/* Rechts: Icon-Buttons + Aktions-Buttons, mittig ausgerichtet */
.ck-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 6px; /* optisch mit Titel-Mittellinie ausrichten */
}

.ck-header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9094A0;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  text-decoration: none;
  line-height: 0;
  opacity: 0.55;
}

.ck-header-icon-btn:hover {
  color: #505261;
  opacity: 1;
  background: rgba(0,0,0,0.04);
}

.ck-mandant-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A0AAB2;
  white-space: nowrap;
}

.ck-mandant-select {
  font-size: 12px;
  padding: 3px 8px;
  height: 28px;
  border: 1px solid #E5E9EB;
  border-radius: 6px;
  color: #505261;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
  outline: none;
}

/* ── Command-Bar Buttons (Orchid: @yield('navbar')) ────────── */
.ck-header-right .command-bar,
.ck-header-right ul.command-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Outline-Buttons (z. B. "+ Angebot", "+ Rechnung") */
.ck-header-right .command-bar .btn,
.ck-header-right .command-bar a.btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.ck-header-right .command-bar .btn-default,
.ck-header-right .command-bar .btn-outline-default,
.ck-header-right .command-bar .btn-link:not(.btn-primary) {
  background: #ffffff !important;
  color: #505261 !important;
  border: 1px solid #E5E9EB !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}

.ck-header-right .command-bar .btn-default:hover,
.ck-header-right .command-bar .btn-outline-default:hover {
  border-color: #008B97 !important;
  color: #008B97 !important;
}

.ck-header-right .command-bar .btn-primary {
  background: #008B97 !important;
  border-color: #008B97 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0,139,151,0.28) !important;
}

.ck-header-right .command-bar .btn-primary:hover {
  background: #007A85 !important;
  border-color: #007A85 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0,139,151,0.36) !important;
}

/* Workspace-Inhalt */
.workspace {
  padding-top: 8px !important;
  background: transparent !important;
}

/* ============================================================
   EINNAHMEN HUB
   Gilt fuer die vorgeschaltete Rechnungen-/Angebote-Uebersicht.
   ============================================================ */

.income-hub {
  --income-primary: #008b97;
  --income-secondary: #c7a244;
  --income-text: #505261;
  --income-muted: #8f94a3;
  --income-bg: #f4f7f6;
  --income-card: #ffffff;
  --income-border: #e5e9eb;
  --income-success-bg: #d1fae5;
  --income-success-text: #059669;
  --income-danger-bg: #fee2e2;
  --income-danger-text: #b91c1c;
  --income-warning-bg: rgba(245, 158, 11, 0.15);
  --income-warning-text: #b45309;
  --income-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
  color: var(--income-text);
}

.income-hub * {
  box-sizing: border-box;
}

.income-hub__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.income-hub__title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.income-hub__title p,
.income-hub__title span {
  margin: 8px 0 0;
  color: var(--income-muted);
  font-size: 0.95rem;
  display: block;
}

.income-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.income-hub__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid var(--income-border);
  background: #fff;
  color: var(--income-text);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.income-hub__button:hover {
  transform: translateY(-1px);
  border-color: var(--income-primary);
  color: var(--income-primary);
  text-decoration: none;
}

.income-hub__button--primary {
  background: var(--income-primary);
  border-color: var(--income-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 139, 151, 0.22);
}

.income-hub__button--primary:hover {
  color: #fff;
  border-color: var(--income-primary);
  background: #007b86;
}

.income-hub__button--gold {
  background: var(--income-secondary);
  border-color: var(--income-secondary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(199, 162, 68, 0.18);
}

.income-hub__button--gold:hover {
  color: #fff;
  border-color: var(--income-secondary);
  filter: brightness(1.04);
}

.income-hub__spotlight,
.income-hub__card {
  background: var(--income-card);
  border: 1px solid var(--income-border);
  border-radius: 24px;
  box-shadow: var(--income-shadow);
}

.income-hub__spotlight {
  padding: 28px 32px;
  margin-bottom: 32px;
}

.income-hub__spotlight h2 {
  margin: 0 0 14px;
  color: var(--income-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.income-hub__spotlight p {
  margin: 0 0 18px;
  color: var(--income-muted);
}

.income-hub__spotlight-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.income-hub__input {
  flex: 1 1 340px;
  min-width: 0;
  border: 1px solid transparent;
  background: var(--income-bg);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--income-text);
}

.income-hub__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.income-hub__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--income-border);
  color: var(--income-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.income-hub__chip:hover {
  color: var(--income-primary);
  border-color: rgba(0, 139, 151, 0.35);
  background: rgba(0, 139, 151, 0.05);
  text-decoration: none;
}

.income-hub__grid {
  display: grid;
  gap: 24px;
}

.income-hub__card {
  padding: 28px 32px;
}

.income-hub__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.income-hub__card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.income-hub__link {
  color: var(--income-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.income-hub__link:hover {
  color: var(--income-primary);
  opacity: 0.8;
  text-decoration: none;
}

.income-hub__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.income-hub__stat {
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fafcfc;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.income-hub__stat-label {
  color: var(--income-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.income-hub__stat-value {
  font-size: 1.15rem;
  font-weight: 800;
}

.income-hub__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.income-hub__filter-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.income-hub__filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  color: var(--income-muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.income-hub__filter-tab:hover {
  color: var(--income-text);
  text-decoration: none;
}

.income-hub__filter-tab.is-active {
  color: var(--income-primary);
  border-bottom-color: var(--income-primary);
}

.income-hub__table-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 120px 110px 130px 150px;
  gap: 12px;
  padding: 0 16px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--income-border);
  color: #a0aab2;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.income-hub__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 140px 110px 130px 150px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fafcfc;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.income-hub__row:hover {
  background: #fff;
}

.income-hub__meta-title {
  font-weight: 700;
  font-size: 0.97rem;
  margin-bottom: 2px;
}

.income-hub__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.income-hub__item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.income-hub .icon-re {
  background: rgba(0, 139, 151, 0.1);
  color: var(--income-primary);
}

.income-hub .icon-an {
  background: rgba(199, 162, 68, 0.15);
  color: var(--income-secondary);
}

.income-hub .icon-success {
  background: var(--income-success-bg);
  color: var(--income-success-text);
}

.income-hub__meta-sub {
  color: var(--income-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.income-hub__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.income-hub .status-draft {
  background: #e5e9eb;
  color: var(--income-text);
}

.income-hub .status-sent {
  background: var(--income-warning-bg);
  color: var(--income-warning-text);
}

.income-hub .status-paid,
.income-hub .status-accepted {
  background: var(--income-success-bg);
  color: var(--income-success-text);
}

.income-hub .status-cancelled {
  background: var(--income-danger-bg);
  color: var(--income-danger-text);
}

.income-hub__amount,
.income-hub__date {
  font-weight: 600;
  font-size: 0.92rem;
}

.income-hub__actions-inline {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.income-hub__mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--income-border);
  color: var(--income-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
}

.income-hub__mini-link:hover {
  color: var(--income-primary);
  border-color: rgba(0, 139, 151, 0.35);
  text-decoration: none;
}

.income-hub__empty {
  padding: 20px;
  border-radius: 16px;
  background: #fafcfc;
  color: var(--income-muted);
  border: 1px dashed var(--income-border);
}

@media (max-width: 1200px) {
  .income-hub__table-header {
    grid-template-columns: minmax(0, 1.4fr) 120px 100px 120px;
  }

  .income-hub__row {
    grid-template-columns: minmax(0, 1.4fr) 120px 100px 120px;
  }

  .income-hub__actions-inline {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .income-hub__spotlight,
  .income-hub__card {
    padding: 22px;
    border-radius: 20px;
  }

  .income-hub__table-header {
    display: none;
  }

  .income-hub__row {
    grid-template-columns: 1fr;
  }

  .income-hub__actions-inline {
    justify-content: flex-start;
  }
}

/* ============================================================
   AUSGABEN HUB
   ============================================================ */

.expense-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.expense-hub__channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.expense-hub__upload-card,
.expense-hub__mail-card,
.expense-hub__card {
  background: var(--white);
  border: 1px solid #E5E9EB;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.expense-hub__upload-card {
  min-height: 180px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border: 2px dashed #CBD5E1;
  background: #FAFCFC;
  transition: all 0.2s ease;
}

.expense-hub__upload-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  background: #F0F9FA;
  transform: translateY(-2px);
}

.expense-hub__upload-card span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.expense-hub__upload-card strong {
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 6px;
}

.expense-hub__upload-card small {
  color: #9094A0;
  font-size: 12px;
}

.expense-hub__mail-card {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #F0F9FA 0%, #FFFFFF 100%);
  border-color: rgba(0, 139, 151, 0.18);
}

.expense-hub__mail-card h3 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 18px;
}

.expense-hub__mail-card p {
  margin: 0;
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.55;
}

.expense-hub__mail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
}

.expense-hub__mail-box strong {
  font-size: 13px;
  color: var(--text-dark);
  overflow-wrap: anywhere;
}

.expense-hub__copy {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expense-hub__copy:hover {
  background: var(--primary);
  color: #fff;
}

.expense-hub__card {
  padding: 32px;
}

.expense-hub__card--full {
  width: 100%;
}

.expense-hub__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.expense-hub__card-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text-dark);
}

.expense-hub__card-header p {
  margin: 0;
  color: #9094A0;
  font-size: 13px;
}

.expense-hub__link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.expense-hub__link:hover {
  color: var(--primary);
  opacity: 0.8;
  text-decoration: none;
}

.expense-hub__filter-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.expense-hub__filter-tab {
  color: #9094A0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.expense-hub__filter-tab:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.expense-hub__filter-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.expense-hub__filter-tab span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #E5E9EB;
  border-radius: 999px;
  font-size: 10px;
  color: var(--text-dark);
}

.expense-hub__filter-tab span.is-urgent {
  background: var(--danger);
  color: #fff;
}

.expense-hub__table-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 110px 110px 120px 220px;
  gap: 15px;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #A0AAB2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E9EB;
  margin-bottom: 14px;
}

.expense-hub__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expense-hub__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 110px 110px 120px 220px;
  gap: 15px;
  align-items: center;
  padding: 14px 20px;
  background: #FAFCFC;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.expense-hub__row:hover {
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.expense-hub__row.is-missing {
  border-left: 3px solid var(--danger);
  background: #FEF2F2;
}

.expense-hub__row.is-private {
  opacity: 0.82;
}

.expense-hub__main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.expense-hub__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F0F9FA;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.expense-hub__row.is-missing .expense-hub__icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.expense-hub__meta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.expense-hub__meta-sub,
.expense-hub__date {
  font-size: 12px;
  color: #9094A0;
}

.expense-hub__amount {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.expense-hub__row.is-private .expense-hub__amount {
  text-decoration: line-through;
  color: #9094A0;
}

.expense-hub__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expense-hub .status-missing {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.expense-hub .status-open {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.expense-hub .status-paid {
  background: #D1FAE5;
  color: #059669;
}

.expense-hub .status-private {
  background: #F1F5F9;
  color: #64748B;
}

.expense-hub .status-upload-queued {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.expense-hub__row.is-upload-queued {
  background: rgba(59, 130, 246, 0.04);
}

.expense-hub__meta-note {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1D4ED8;
}

.expense-hub__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.expense-hub__action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.expense-hub__action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.expense-hub__btn {
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.expense-hub__btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.expense-hub__btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 139, 151, 0.22);
}

.expense-hub__btn--primary:hover {
  color: #fff;
}

.expense-hub__btn--gold {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(199, 162, 68, 0.22);
}

.expense-hub__btn--gold:hover {
  color: #fff;
}

.expense-hub__btn--outline {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #CBD5E1;
}

.expense-hub__btn--outline:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.expense-hub__ghost-link {
  color: #9094A0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.expense-hub__ghost-link:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.expense-hub__ghost-link--danger:hover {
  color: var(--danger);
}

.expense-hub__done {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
}

.expense-hub__icon-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #9094A0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.expense-hub__icon-link:hover {
  color: var(--primary);
  background: rgba(0, 139, 151, 0.05);
  text-decoration: none;
}

.expense-hub__subscriptions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: stretch;
}

.expense-hub__subscription-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

.expense-hub__subscription-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
  background: #FAFCFC;
}

.expense-hub__subscription-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.expense-hub__subscription-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #E5E9EB;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.expense-hub__subscription-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.expense-hub__burn-rate {
  background: #F0F9FA;
  border-radius: 18px;
  border: 1px dashed rgba(0, 139, 151, 0.3);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.expense-hub__burn-rate-title {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.expense-hub__burn-rate-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
}

.expense-hub__burn-rate p {
  margin: 10px 0 0;
  color: #9094A0;
  font-size: 12px;
  line-height: 1.55;
}

.expense-hub__empty {
  padding: 18px 20px;
  border-radius: 16px;
  background: #FAFCFC;
  border: 1px dashed #CBD5E1;
  color: #9094A0;
  text-align: center;
}

.expense-hub__empty--compact {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .expense-hub__channels,
  .expense-hub__subscriptions {
    grid-template-columns: 1fr;
  }

  .expense-hub__table-header,
  .expense-hub__row {
    grid-template-columns: minmax(0, 1.3fr) 110px 100px 110px 190px;
  }
}

@media (max-width: 768px) {
  .expense-hub__card,
  .expense-hub__mail-card,
  .expense-hub__upload-card {
    padding: 22px;
  }

  .expense-hub__table-header {
    display: none;
  }

  .expense-hub__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .expense-hub__actions,
  .expense-hub__action-stack {
    align-items: stretch;
  }

  .expense-hub__actions {
    justify-content: space-between;
  }

  .expense-hub__mail-box {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   AUSGABEN HUB
   ============================================================ */

.expense-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.expense-hub__channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.expense-hub__upload-card,
.expense-hub__mail-card,
.expense-hub__card {
  background: var(--white);
  border: 1px solid #E5E9EB;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.expense-hub__upload-card {
  min-height: 180px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border: 2px dashed #CBD5E1;
  background: #FAFCFC;
  transition: all 0.2s ease;
}

.expense-hub__upload-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  background: #F0F9FA;
  transform: translateY(-2px);
}

.expense-hub__upload-card span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.expense-hub__upload-card strong {
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 6px;
}

.expense-hub__upload-card small {
  color: #9094A0;
  font-size: 12px;
}

.expense-hub__mail-card {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #F0F9FA 0%, #FFFFFF 100%);
  border-color: rgba(0, 139, 151, 0.18);
}

.expense-hub__mail-card h3 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 18px;
}

.expense-hub__mail-card p {
  margin: 0;
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.55;
}

.expense-hub__mail-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
}

.expense-hub__mail-box strong {
  font-size: 13px;
  color: var(--text-dark);
  overflow-wrap: anywhere;
}

.expense-hub__copy {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expense-hub__copy:hover {
  background: var(--primary);
  color: #fff;
}

.expense-hub__card {
  padding: 32px;
}

.expense-hub__card--full {
  width: 100%;
}

.expense-hub__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.expense-hub__card-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text-dark);
}

.expense-hub__card-header p {
  margin: 0;
  color: #9094A0;
  font-size: 13px;
}

.expense-hub__link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.expense-hub__link:hover {
  color: var(--primary);
  opacity: 0.8;
  text-decoration: none;
}

.expense-hub__filter-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.expense-hub__filter-tab {
  color: #9094A0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.expense-hub__filter-tab:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.expense-hub__filter-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.expense-hub__filter-tab span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #E5E9EB;
  border-radius: 999px;
  font-size: 10px;
  color: var(--text-dark);
}

.expense-hub__filter-tab span.is-urgent {
  background: var(--danger);
  color: #fff;
}

.expense-hub__table-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 110px 110px 120px 220px;
  gap: 15px;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #A0AAB2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E9EB;
  margin-bottom: 14px;
}

.expense-hub__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expense-hub__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 110px 110px 120px 220px;
  gap: 15px;
  align-items: center;
  padding: 14px 20px;
  background: #FAFCFC;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.expense-hub__row:hover {
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.expense-hub__row.is-missing {
  border-left: 3px solid var(--danger);
  background: #FEF2F2;
}

.expense-hub__row.is-private {
  opacity: 0.82;
}

.expense-hub__main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.expense-hub__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F0F9FA;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.expense-hub__row.is-missing .expense-hub__icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.expense-hub__meta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.expense-hub__meta-sub,
.expense-hub__date {
  font-size: 12px;
  color: #9094A0;
}

.expense-hub__amount {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.expense-hub__row.is-private .expense-hub__amount {
  text-decoration: line-through;
  color: #9094A0;
}

.expense-hub__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expense-hub .status-missing {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.expense-hub .status-open {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.expense-hub .status-paid {
  background: #D1FAE5;
  color: #059669;
}

.expense-hub .status-private {
  background: #F1F5F9;
  color: #64748B;
}

.expense-hub__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.expense-hub__action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.expense-hub__action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.expense-hub__btn {
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.expense-hub__btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.expense-hub__btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 139, 151, 0.22);
}

.expense-hub__btn--primary:hover {
  color: #fff;
}

.expense-hub__btn--gold {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(199, 162, 68, 0.22);
}

.expense-hub__btn--gold:hover {
  color: #fff;
}

.expense-hub__btn--outline {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #CBD5E1;
}

.expense-hub__btn--outline:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.expense-hub__ghost-link {
  color: #9094A0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.expense-hub__ghost-link:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.expense-hub__ghost-link--danger:hover {
  color: var(--danger);
}

.expense-hub__done {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
}

.expense-hub__icon-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #9094A0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.expense-hub__icon-link:hover {
  color: var(--primary);
  background: rgba(0, 139, 151, 0.05);
  text-decoration: none;
}

.expense-hub__subscriptions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: stretch;
}

.expense-hub__subscription-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

.expense-hub__subscription-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #E5E9EB;
  background: #FAFCFC;
}

.expense-hub__subscription-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.expense-hub__subscription-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #E5E9EB;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.expense-hub__subscription-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.expense-hub__burn-rate {
  background: #F0F9FA;
  border-radius: 18px;
  border: 1px dashed rgba(0, 139, 151, 0.3);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.expense-hub__burn-rate-title {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.expense-hub__burn-rate-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
}

.expense-hub__burn-rate p {
  margin: 10px 0 0;
  color: #9094A0;
  font-size: 12px;
  line-height: 1.55;
}

.expense-hub__empty {
  padding: 18px 20px;
  border-radius: 16px;
  background: #FAFCFC;
  border: 1px dashed #CBD5E1;
  color: #9094A0;
  text-align: center;
}

.expense-hub__empty--compact {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .expense-hub__channels,
  .expense-hub__subscriptions {
    grid-template-columns: 1fr;
  }

  .expense-hub__table-header,
  .expense-hub__row {
    grid-template-columns: minmax(0, 1.3fr) 110px 100px 110px 190px;
  }
}

@media (max-width: 768px) {
  .expense-hub__card,
  .expense-hub__mail-card,
  .expense-hub__upload-card {
    padding: 22px;
  }

  .expense-hub__table-header {
    display: none;
  }

  .expense-hub__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .expense-hub__actions,
  .expense-hub__action-stack {
    align-items: stretch;
  }

  .expense-hub__actions {
    justify-content: space-between;
  }

  .expense-hub__mail-box {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   ORCHID SIDEBAR — Mobile Drawer
   Überführt div.aside (#main-aside) auf Smartphones/Tablets in
   ein Off-Canvas-Panel. Trigger: .mobile-menu-btn im ck-header-bar.
   Overlay & JS-Logik existieren bereits (cockpit.js).
   ============================================================ */

  @media (max-width: 999.98px) {
    .aside-collapse {
        opacity: 1 !important;

    }
}

@media (max-width: 1024px) {
  .app-shell {
    flex-direction: row !important;
  }

  .app-content-col {
    width: 100% !important;
    min-width: 0;
  }

  div.aside {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 0 !important;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow-y: auto;
  }

  div.aside.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
  }



  div.aside .sidebar-toggle-btn,
  div.aside .menue_toggle {
    display: none !important;
  }

  div.aside.aside-collapsed {
    width: 280px !important;
    max-width: 280px !important;
    min-width: 0 !important;
    flex: unset !important;
  }

  div.aside.aside-collapsed .aside-show-expanded,
  div.aside.aside-collapsed .nav-link span.mx-2,
  div.aside.aside-collapsed .ck-sidebar-footer {
    display: revert !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  div.aside footer.position-fixed {
    position: static !important;
  }

  /* Bootstrap:
       .collapse:not(.show)      { display: none }
       .collapse-horizontal      { width: 0 }
     Beides blendet auf <1200px unsere Nav aus (d-xl-flex greift erst ≥1200px).
     Im Drawer müssen die Menü-Items sichtbar sein, Children (ul, li) ebenso. */
  div.aside nav.aside-collapse,
  div.aside nav.collapse,
  div.aside nav.collapse-horizontal {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  div.aside nav.aside-collapse > ul.nav,
  div.aside nav.aside-collapse ul.nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    visibility: visible !important;
  }

  div.aside nav.aside-collapse .nav-item,
  div.aside nav.aside-collapse li {
    display: list-item !important;
    visibility: visible !important;
    width: 100% !important;
  }

  div.aside nav.aside-collapse .nav-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  div.aside nav.aside-collapse .nav-link span.mx-2 {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ck-header-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 12px 16px 12px;
  }

  .ck-header-bar > .mobile-menu-btn {
    order: -1;
    flex-shrink: 0;
  }

  .ck-header-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ck-header-right {
    flex-wrap: wrap;
    width: 100%;
    padding-top: 0;
  }

  .ck-page-title {
    font-size: 22px !important;
  }
}

/* Home/Main-Screen: ae-page-header ist per Default ausgeblendet (orchid style.css
   Zeile 1048). Auf Mobile brauchen wir ihn trotzdem als Träger für den Hamburger. */
@media (max-width: 1024px) {
  .page-platform-home .ae-page-header,
  .page-platform-main .ae-page-header {
    display: block !important;
  }

  /* Home/Main hat einen eigenen Dashboard-Header im Content (Greeting) —
     außen nur den Hamburger zeigen, Titel/Breadcrumb/Aktionen unterdrücken. */
  .page-platform-home .ck-header-bar,
  .page-platform-main .ck-header-bar {
    padding: 10px 12px;
    justify-content: flex-start;
    background: transparent;
    border-bottom: none;
  }

  .page-platform-home .ck-header-bar .ck-header-left,
  .page-platform-home .ck-header-bar .ck-header-right,
  .page-platform-main .ck-header-bar .ck-header-left,
  .page-platform-main .ck-header-bar .ck-header-right {
    display: none !important;
  }

  .page-platform-home .ae-page-header,
  .page-platform-main .ae-page-header {
    border-bottom: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

/* ============================================================
   ORCHID SIDEBAR — Desktop: volle Höhe, unabhängig scrollbar
   Aside klebt am Viewport-Top (sticky), Content scrollt separat.
   ============================================================ */
@media (min-width: 1025px) {
  /* Orchid setzt .app-shell <1200px auf flex-direction: column — auf ≥1025px
     wollen wir immer den Desktop-Row-Layout. */
  .app-shell {
    flex-direction: row !important;
    align-items: stretch;
  }

  div.aside#main-aside,
  div.aside {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
  }

  /* Nav-Container übernimmt das interne Scrollen (flex-grow:1 ist schon gesetzt) */
  div.aside .aside-collapse {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

/* ============================================================
   COLLAPSED STATE — Fallback-"Icon" aus Anfangsbuchstabe
   Submenu-Items in PlatformProvider haben kein ->icon() gesetzt.
   Im eingeklappten Desktop-Zustand (62px Sidebar) wären die Items
   dadurch komplett leer. Zeige stattdessen den ersten Buchstaben.

   Selector-Trick: span.mx-2:first-child greift nur, wenn kein
   Icon-SVG davor steht (Top-Level-Items mit Icon bleiben Icon-only).
   ============================================================ */
div.aside.aside-collapsed .nav-link > span.mx-2:first-child,
div.aside.aside-collapsed .sub-menu .nav-link > span.mx-2,
div.aside.aside-collapsed .sub-menu .nav-link span.mx-2 {
  display: inline-block !important;
  visibility: visible !important;
  width: 18px !important;
  max-width: 18px !important;
  min-width: 18px !important;
  height: 20px !important;
  line-height: 20px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  opacity: 0.75 !important;
  color: inherit !important;
}

div.aside.aside-collapsed .nav-link.active > span.mx-2:first-child,
div.aside.aside-collapsed .sub-menu .nav-link.active span.mx-2 {
  opacity: 1 !important;
  color: #008B97 !important;
}

div.aside.aside-collapsed .sub-menu {
  padding-left: 0 !important;
}

div.aside.aside-collapsed .sub-menu .nav-link {
  justify-content: center !important;
  padding: 8px !important;
}

/* ── Ausgaben-Hub: zusätzliche Status-Varianten + Privat-Toggle Form ── */
.expense-hub__ghost-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.expense-hub__inline-form {
  margin: 0;
  display: inline;
}

.status-private  { background: rgba(99, 102, 241, .14); color: #4338ca; }
.status-split    { background: rgba(245, 158, 11, .14); color: #b45309; }
.status-pending  { background: rgba(99, 102, 241, .12); color: #4f46e5; }

.expense-hub__subscription-label { font-weight: 600; color: var(--text-dark); }
.expense-hub__subscription-meta  { font-size: 11px; color: #9094A0; }

body.expense-upload-modal-open {
  overflow: hidden;
}

.expense-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.expense-upload-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(4px);
}

.expense-upload-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  border: 1px solid rgba(0, 139, 151, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.expense-upload-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.expense-upload-modal__eyebrow {
  margin: 0 0 6px;
  color: #7c808e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

.expense-upload-modal__header h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 28px;
  line-height: 1.05;
}

.expense-upload-modal__copy {
  margin: 10px 0 0;
  color: #52606d;
  font-size: 14px;
  line-height: 1.5;
}

.expense-upload-modal__close {
  border: 0;
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.expense-upload-modal__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 230px;
  border-radius: 24px;
  border: 2px dashed #b7c6d4;
  background: #fcfefe;
  text-align: center;
  padding: 28px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.expense-upload-modal__dropzone:hover,
.expense-upload-modal__dropzone.is-dragover {
  border-color: var(--primary);
  background: #eef8f8;
  transform: translateY(-1px);
}

.expense-upload-modal__input {
  display: none;
}

.expense-upload-modal__icon {
  font-size: 34px;
}

.expense-upload-modal__dropzone strong {
  color: var(--text-dark);
  font-size: 20px;
}

.expense-upload-modal__dropzone small {
  color: #7c808e;
  font-size: 13px;
}

.expense-upload-modal__files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expense-upload-modal__file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.expense-upload-modal__file strong,
.expense-upload-modal__file small {
  display: block;
}

.expense-upload-modal__file strong {
  color: var(--text-dark);
  font-size: 14px;
}

.expense-upload-modal__file small {
  color: #7c808e;
  font-size: 12px;
  margin-top: 3px;
}

.expense-upload-modal__file button {
  border: 0;
  background: transparent;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.expense-upload-modal__status {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(14, 116, 144, 0.1);
  color: #0f766e;
}

.expense-upload-modal__status.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.expense-upload-modal__status.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.expense-upload-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.expense-upload-modal__button-row {
  display: flex;
  gap: 10px;
}

.expense-upload-modal__ghost-link,
.expense-upload-modal__secondary,
.expense-upload-modal__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.expense-upload-modal__ghost-link,
.expense-upload-modal__secondary {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #334155;
  padding: 0 16px;
}

.expense-upload-modal__primary {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0 20px;
}

.expense-upload-modal__primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 767px) {
  .expense-upload-modal {
    padding: 14px;
  }

  .expense-upload-modal__dialog {
    padding: 20px;
    border-radius: 22px;
  }

  .expense-upload-modal__header h3 {
    font-size: 24px;
  }

  .expense-upload-modal__actions,
  .expense-upload-modal__button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .expense-upload-modal__ghost-link,
  .expense-upload-modal__secondary,
  .expense-upload-modal__primary {
    width: 100%;
  }
}

.beleg-review-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.beleg-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.beleg-review-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.beleg-review-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.beleg-review-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
}

.beleg-review-modal__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.beleg-review-modal__copy {
  margin: 6px 0 0;
  font-size: 14px;
  color: #475569;
}

.beleg-review-modal__close {
  border: 0;
  background: #eff6ff;
  color: #1d4ed8;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.beleg-review-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beleg-review-modal__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.beleg-review-modal__preview {
  min-height: 60vh;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.beleg-review-modal__preview.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.beleg-review-modal__iframe {
  display: block;
  width: 100%;
  height: 60vh;
  border: 0;
  background: #fff;
}

.beleg-review-modal__empty {
  padding: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.beleg-review-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beleg-review-modal__ghost-link,
.beleg-review-modal__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.beleg-review-modal__ghost-link {
  background: #eff6ff;
  color: #1d4ed8;
}

.beleg-review-modal__secondary {
  border: 0;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 720px) {
  .beleg-review-modal {
    padding: 16px;
  }

  .beleg-review-modal__dialog {
    padding: 18px;
    gap: 14px;
  }

  .beleg-review-modal__header h3 {
    font-size: 20px;
  }

  .beleg-review-modal__preview,
  .beleg-review-modal__iframe {
    min-height: 52vh;
    height: 52vh;
  }

  .beleg-review-modal__actions {
    flex-direction: column;
  }

  .beleg-review-modal__ghost-link,
  .beleg-review-modal__secondary {
    width: 100%;
  }
}

/* ── Sidebar: Notification-Badge & Notif-Row ───────────────────── */
.ck-notif-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  /* margin: 0 12px 8px; */
  background: rgba(0, 139, 151, .10);
  border: 1px solid rgba(0, 139, 151, .25);
  border-radius: 10px;
  color: #0d5b63;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease;
}
.ck-notif-row:hover {
  background: rgba(0, 139, 151, .18);
  text-decoration: none;
  color: #0d5b63;
}
.ck-notif-icon { font-size: 16px; }
.ck-notif-text { line-height: 1.2; }

.ck-avatar {
  position: relative;
}
.ck-avatar-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--bg, #f4f7f6);
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES  (Login / Register / Reset Password)
   Applied via .form-signin wrapper rendered by auth.blade.php
   ══════════════════════════════════════════════════════════════ */

/* Page background */
.form-signin {
  background-color: var(--bg-body) !important;
}

/* Card box – matches cockpit .card */
.form-signin .rounded-4.shadow,
.form-signin .bg-white.rounded-4 {
  background: var(--white) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(229, 233, 235, 0.6) !important;
}

/* Headings */
.form-signin h1.h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  letter-spacing: -0.3px;
}

/* Form labels */
.form-signin .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* Inputs & password fields */
.form-signin input.form-control,
.form-signin input[type="email"],
.form-signin input[type="password"],
.form-signin input[type="text"] {
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid #E5E9EB !important;
  background: #F8FAFB !important;
  color: var(--text-dark) !important;
  font-size: 0.92rem !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.form-signin input.form-control:focus,
.form-signin input[type="email"]:focus,
.form-signin input[type="password"]:focus,
.form-signin input[type="text"]:focus {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 139, 151, 0.09) !important;
  outline: none !important;
}

/* Primary submit button */
.form-signin .btn-primary,
.form-signin #button-login,
.form-signin #button-register {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  min-height: 48px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 14px rgba(0, 139, 151, 0.22) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.form-signin .btn-primary:hover,
.form-signin #button-login:hover,
.form-signin #button-register:hover {
  background: #007A85 !important;
  border-color: #007A85 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 139, 151, 0.32) !important;
}

/* Secondary / outline button (e.g. "Jetzt registrieren →") */
.form-signin .btn-light {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  transition: background 0.18s, box-shadow 0.18s !important;
}

.form-signin .btn-light:hover {
  background: rgba(255,255,255,0.9) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}

/* Alert boxes – info / success / danger */
.form-signin .alert {
  border-radius: 14px !important;
  font-size: 0.84rem !important;
  border: none !important;
}

.form-signin .alert-info {
  background: rgba(0, 139, 151, 0.07) !important;
  color: #005d66 !important;
  border-left: 3px solid var(--primary) !important;
}

.form-signin .alert-success {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #065f46 !important;
  border-left: 3px solid var(--success) !important;
}

.form-signin .alert-danger {
  background: rgba(239, 68, 68, 0.07) !important;
  color: #991b1b !important;
  border-left: 3px solid var(--danger) !important;
}

/* Muted text / small links */
.form-signin .text-muted {
  color: #9ca3af !important;
}

.form-signin a.text-primary,
.form-signin a.text-decoration-none {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.form-signin a.text-primary:hover,
.form-signin a.text-decoration-none:hover {
  color: #007A85 !important;
  text-decoration: underline !important;
}

/* "Passwort vergessen?" link */
.form-signin .d-flex.justify-content-end a {
  color: var(--primary) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

/* Checkbox – "Angemeldet bleiben" */
.form-signin .form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.form-signin .form-check-label {
  font-size: 0.82rem !important;
  color: var(--text-dark) !important;
}

/* CTA sidebar panel (Login page right column) */
.form-signin .auth-cta-panel {
  background: linear-gradient(160deg, var(--secondary) 0%, #a07c28 100%) !important;
}

/* Logo area */
.form-signin .d-flex.justify-content-center.mb-4 {
  margin-bottom: 2.5rem !important;
}
