/* ═══════════════════════════════════════════════════════════
   LackPlus – Customer Module CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Gradient Header ── */
.cu-grad-header {
    background: linear-gradient(135deg, #f59e0b 0%, #22c55e 50%, #0ea5e9 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.cu-grad-header-icon { font-size: 32px; }
.cu-grad-header h1 { font-size: 22px; font-weight: 700; margin: 0; }
.cu-grad-header-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.cu-grad-header .cu-status-pill {
    padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.25); margin-left: 12px;
}
.cu-grad-header .cu-btn-new {
    margin-left: auto;
    background: #fff; color: #1e293b; border: none; padding: 10px 20px;
    border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer;
    text-decoration: none; white-space: nowrap;
}
.cu-grad-header .cu-btn-new:hover { background: #f8fafc; }

/* ── KPI Pills ── */
.cu-kpi-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cu-kpi { padding: 14px 22px; border-radius: 12px; text-align: center; min-width: 100px; }
.cu-kpi-value { font-size: 26px; font-weight: 700; }
.cu-kpi-label { font-size: 11px; color: #64748b; margin-top: 2px; }
.cu-kpi.total    { background: #eff6ff; }
.cu-kpi.total .cu-kpi-value { color: #0783ff; }
.cu-kpi.active   { background: #dcfce7; }
.cu-kpi.active .cu-kpi-value { color: #16a34a; }
.cu-kpi.inactive { background: #fef3c7; }
.cu-kpi.inactive .cu-kpi-value { color: #d97706; }

/* ── Toolbar ── */
.cu-toolbar {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 18px; flex-wrap: wrap;
}
.cu-search {
    flex: 1; min-width: 240px; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; background: #fff;
}
.cu-search:focus { outline: none; border-color: #3399ff; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.cu-filter-select {
    padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 13px; background: #fff; min-width: 130px;
}

/* ── Table ── */
.cu-table-wrap {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.cu-table { width: 100%; border-collapse: collapse; }
.cu-table th {
    padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600;
    color: #64748b; text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.cu-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.cu-table tr:last-child td { border-bottom: none; }
.cu-table tr:hover { background: #f8fafc; cursor: pointer; }
.cu-badge-type {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.cu-badge-type.privat  { background: #ede9fe; color: #7c3aed; }
.cu-badge-type.firma   { background: #dbeafe; color: #0783ff; }
.cu-badge-status {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.cu-badge-status.aktiv   { background: #dcfce7; color: #16a34a; }
.cu-badge-status.inaktiv { background: #fee2e2; color: #dc2626; }

/* ═══════════════════════════════════════════════════════════
   CREATE WIZARD
   ═══════════════════════════════════════════════════════════ */
.wiz-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.wiz-box {
    background: #fff; border-radius: 16px; width: 860px; max-width: 96vw;
    max-height: 92vh; display: flex; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.wiz-sidebar {
    width: 240px; background: #1e293b; color: #fff; padding: 24px 0;
    display: flex; flex-direction: column; flex-shrink: 0;
}
.wiz-sidebar-header {
    padding: 0 20px 20px; display: flex; align-items: center; gap: 10px;
}
.wiz-sidebar-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: #3399ff;
    display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.wiz-sidebar-title { font-size: 15px; font-weight: 600; }
.wiz-sidebar-sub { font-size: 11px; color: #94a3b8; }
.wiz-sidebar-steps { flex: 1; }
.wiz-step {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 13px; color: #94a3b8; cursor: pointer;
}
.wiz-step.active { color: #fff; background: rgba(255,255,255,.08); border-left: 3px solid #3399ff; }
.wiz-step.done { color: #22c55e; }
.wiz-step-num {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor;
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.wiz-step.active .wiz-step-num { background: #3399ff; border-color: #3399ff; color: #fff; }
.wiz-step.done .wiz-step-num { background: #22c55e; border-color: #22c55e; color: #fff; }
.wiz-sidebar-foot { padding: 16px 20px; }
.wiz-btn-create {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: #22c55e; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wiz-btn-create:hover { background: #16a34a; }

.wiz-main {
    flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.wiz-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    font-size: 22px; color: #94a3b8; cursor: pointer; z-index: 2;
}
.wiz-close:hover { color: #1e293b; }
.wiz-content {
    flex: 1; overflow-y: auto; padding: 32px 36px;
}
.wiz-content h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.wiz-content .wiz-sub { font-size: 13px; color: #64748b; margin-bottom: 24px; }
.wiz-footer {
    padding: 16px 36px; border-top: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.wiz-btn {
    padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none;
}
.wiz-btn-back { background: none; color: #3399ff; }
.wiz-btn-back:hover { text-decoration: underline; }
.wiz-btn-next { background: #3399ff; color: #fff; }
.wiz-btn-next:hover { background: #0783ff; }
.wiz-btn-submit { background: #22c55e; color: #fff; }
.wiz-btn-submit:hover { background: #16a34a; }

/* Wizard panels */
.wiz-panel { display: none; }
.wiz-panel.active { display: block; }

/* Type cards */
.wiz-type-cards { display: flex; gap: 16px; margin-top: 12px; }
.wiz-type-card {
    flex: 1; border: 2px solid #e2e8f0; border-radius: 14px; padding: 24px;
    text-align: center; cursor: pointer; transition: all .15s;
}
.wiz-type-card:hover { border-color: #93c5fd; background: #eff6ff; }
.wiz-type-card.selected { border-color: #3399ff; background: #eff6ff; }
.wiz-type-card-icon { font-size: 28px; margin-bottom: 8px; }
.wiz-type-card-title { font-size: 15px; font-weight: 600; }
.wiz-type-card-sub { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Form grid */
.wiz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wiz-form-grid .full { grid-column: 1 / -1; }
.wiz-field label {
    display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px;
}
.wiz-field label .req { color: #ef4444; }
.wiz-field input, .wiz-field select, .wiz-field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; background: #fff;
}
.wiz-field input:focus, .wiz-field select:focus, .wiz-field textarea:focus {
    outline: none; border-color: #3399ff; box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.wiz-info-box {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 12px 16px; font-size: 13px; color: #0656b0; margin-bottom: 16px;
}
.wiz-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 10px;
    margin-bottom: 12px;
}
.wiz-toggle-row label { font-size: 14px; font-weight: 500; }
.wiz-toggle-row .sub { font-size: 12px; color: #64748b; }

/* Summary */
.wiz-summary-row {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.wiz-summary-row:last-child { border-bottom: none; }
.wiz-summary-label { color: #64748b; }
.wiz-summary-value { font-weight: 500; color: #1e293b; }

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Breadcrumb */
.cu-breadcrumb {
    font-size: 13px; color: #64748b; margin-bottom: 16px;
    display: flex; align-items: center; gap: 6px;
}
.cu-breadcrumb a { color: #3399ff; text-decoration: none; }
.cu-breadcrumb a:hover { text-decoration: underline; }

/* Detail header */
.cu-detail-header {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.cu-detail-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: #e0e7ff;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    flex-shrink: 0;
}
.cu-detail-name { font-size: 22px; font-weight: 700; color: #1e293b; }
.cu-detail-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.cu-detail-badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.cu-detail-badge.type-private { background: #ede9fe; color: #7c3aed; }
.cu-detail-badge.type-company { background: #dbeafe; color: #0783ff; }
.cu-detail-badge.status-active { background: #dcfce7; color: #16a34a; }
.cu-detail-badge.status-inactive { background: #fee2e2; color: #dc2626; }
.cu-detail-badge.incomplete { background: #fef3c7; color: #d97706; }
.cu-detail-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.cu-detail-stats {
    margin-left: auto; display: flex; gap: 20px; text-align: center;
}
.cu-detail-stat-val { font-size: 22px; font-weight: 700; color: #1e293b; }
.cu-detail-stat-lbl { font-size: 11px; color: #64748b; }
.cu-detail-actions { margin-left: 20px; display: flex; gap: 8px; }
.cu-detail-actions a, .cu-detail-actions button {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
    text-decoration: none; cursor: pointer; border: 1px solid #e2e8f0;
    background: #fff; color: #374151;
}
.cu-detail-actions a:hover, .cu-detail-actions button:hover { background: #f8fafc; }

/* Header-Aktionsbuttons (Detail-Seite, neutraler Stil) */
.cu-header-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 14px;
}
.cu-header-btn:hover { background: #f8fafc; color: #111827; }
.cu-header-btn--danger { border-color: #fecaca; color: #dc2626; }
.cu-header-btn--danger:hover { background: #fef2f2; color: #b91c1c; }

/* Tabs */
.cu-tabs {
    display: flex; gap: 0; border: 1px solid #e2e8f0; border-radius: 12px;
    background: #fff; padding: 4px; margin-bottom: 24px; flex-wrap: wrap;
}
.cu-tab {
    padding: 10px 18px; font-size: 13px; font-weight: 500; color: #64748b;
    cursor: pointer; border-radius: 8px; white-space: nowrap;
}
.cu-tab:hover { color: #1e293b; background: #f1f5f9; }
.cu-tab.active { background: #3399ff; color: #fff; }

/* Panels */
.cu-panel { display: none; }
.cu-panel.active { display: block; }

/* Cards */
.cu-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 24px; margin-bottom: 20px;
}
.cu-card-title {
    font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase;
    letter-spacing: .8px; margin-bottom: 16px;
}
.cu-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.cu-row:last-child { border-bottom: none; }
.cu-row-label { color: #64748b; }
.cu-row-value { font-weight: 500; color: #1e293b; }
.cu-row-value a { color: #3399ff; text-decoration: none; }
.cu-row-value a:hover { text-decoration: underline; }

/* Two-column layout */
.cu-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .cu-two-col { grid-template-columns: 1fr; } }

/* Quick actions */
.cu-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cu-quick-action {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px;
    font-weight: 500; color: #374151; text-decoration: none; cursor: pointer;
    background: #fff;
}
.cu-quick-action:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Toggle switch */
.cu-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.cu-toggle input { opacity: 0; width: 0; height: 0; }
.cu-toggle-slider {
    position: absolute; cursor: pointer; inset: 0; background: #cbd5e1;
    border-radius: 24px; transition: .2s;
}
.cu-toggle-slider:before {
    content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.cu-toggle input:checked + .cu-toggle-slider { background: #3399ff; }
.cu-toggle input:checked + .cu-toggle-slider:before { transform: translateX(20px); }

/* Empty state */
.cu-empty {
    text-align: center; padding: 40px 20px; color: #94a3b8;
}
.cu-empty-icon { font-size: 40px; margin-bottom: 8px; }
.cu-empty-text { font-size: 14px; }

/* Action buttons on tab panels */
.cu-tab-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; color: #fff; background: #3399ff;
}
.cu-tab-action:hover { background: #0783ff; }
.cu-tab-action.green { background: #22c55e; }
.cu-tab-action.green:hover { background: #16a34a; }
.cu-tab-action.outline {
    background: #fff; color: #3399ff; border: 1px solid #3399ff;
}
.cu-tab-action.outline:hover { background: #eff6ff; }

/* Contact/Address cards */
.cu-item-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 10px;
    margin-bottom: 10px; background: #fff;
}
.cu-item-card-icon {
    width: 40px; height: 40px; border-radius: 50%; background: #eff6ff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    flex-shrink: 0;
}
.cu-item-card-info { flex: 1; }
.cu-item-card-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.cu-item-card-sub { font-size: 12px; color: #64748b; margin-top: 1px; }
.cu-item-card-actions { display: flex; gap: 6px; }
.cu-item-card-actions button {
    padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 12px; background: #fff; cursor: pointer; color: #64748b;
}
.cu-item-card-actions button:hover { background: #f8fafc; }
.cu-item-card-actions button.danger { color: #ef4444; }
.cu-item-card-actions button.danger:hover { background: #fef2f2; }

/* History timeline */
.cu-history-item {
    display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.cu-history-item:last-child { border-bottom: none; }
.cu-history-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #3399ff;
    margin-top: 5px; flex-shrink: 0;
}
.cu-history-desc { font-size: 14px; color: #1e293b; }
.cu-history-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* Mini modal (for adding contacts/addresses) */
.cu-mini-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 1100; align-items: center; justify-content: center;
}
.cu-mini-overlay.open { display: flex; }
.cu-mini-box {
    background: #fff; border-radius: 14px; width: 480px; max-width: 96vw;
    box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden;
}
.cu-mini-header {
    background: #0783ff; color: #fff; padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 600;
}
.cu-mini-body { padding: 20px; }
.cu-mini-footer {
    padding: 12px 20px; border-top: 1px solid #e2e8f0;
    display: flex; justify-content: flex-end; gap: 8px;
}

/* ── Duplicates Page ── */
.cu-dup-empty {
    text-align: center; padding: 60px 20px; color: #64748b;
}
.cu-dup-empty-icon { font-size: 48px; color: #22c55e; margin-bottom: 12px; }
.cu-dup-empty h3 { font-size: 18px; font-weight: 600; color: #1e293b; margin: 0 0 6px; }
.cu-dup-empty p { font-size: 14px; margin: 0; }

.cu-dup-summary {
    background: #fffbeb; border: 1px solid #fbbf24; border-radius: 10px;
    padding: 14px 20px; font-size: 14px; color: #92400e; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.cu-dup-summary i { font-size: 18px; color: #f59e0b; }

.cu-dup-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    margin-bottom: 16px; overflow: hidden;
    transition: opacity .3s;
}
.cu-dup-card.merged { opacity: .5; pointer-events: none; }

.cu-dup-reason {
    background: #f8fafc; padding: 12px 20px; font-size: 13px; color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.cu-dup-reason i { color: #3399ff; margin-right: 4px; }

.cu-dup-reason { display: flex; align-items: center; }

.cu-dup-group {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0;
}
.cu-dup-item {
    padding: 20px; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.cu-dup-item:last-child { border-right: none; }
.cu-dup-group > .cu-dup-item:nth-last-child(-n+3) { border-bottom: none; }

.cu-dup-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cu-dup-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #3399ff; flex-shrink: 0;
}
.cu-dup-name { font-size: 15px; font-weight: 600; color: #1e293b; }
.cu-dup-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.cu-dup-details { margin-bottom: 12px; }
.cu-dup-row {
    font-size: 13px; color: #475569; padding: 3px 0;
    display: flex; align-items: center; gap: 6px;
}
.cu-dup-row i { color: #94a3b8; width: 16px; text-align: center; }

.cu-dup-stats {
    display: flex; gap: 16px; font-size: 13px; color: #64748b;
    margin-bottom: 14px; padding: 8px 12px; background: #f8fafc; border-radius: 6px;
}

.cu-dup-actions { display: flex; gap: 8px; }

.cu-dup-btn-primary {
    flex: 1; padding: 8px 14px; border-radius: 8px; border: none;
    background: #0783ff; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cu-dup-btn-primary:hover { background: #0656b0; }

.cu-dup-btn-view {
    padding: 8px 14px; border-radius: 8px; border: 1px solid #e2e8f0;
    background: #fff; color: #374151; font-size: 13px; font-weight: 500;
    cursor: pointer; text-decoration: none;
    display: flex; align-items: center; gap: 4px;
}
.cu-dup-btn-view:hover { background: #f8fafc; }

.cu-dup-btn-exclude {
    padding: 8px 14px; border-radius: 8px; border: 1px solid #fecaca;
    background: #fff; color: #b91c1c; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
    transition: background .12s, border-color .12s;
}
.cu-dup-btn-exclude:hover { background: #fee2e2; border-color: #fca5a5; }

/* Excluded-Zustand: ausgegraut mit Durchstreich-Effekt */
.cu-dup-item.excluded {
    opacity: .5;
    background: #f8fafc;
    position: relative;
}
.cu-dup-item.excluded::before {
    content: "";
    position: absolute; inset: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    pointer-events: none;
}
.cu-dup-item.excluded .cu-dup-name::after {
    content: " · Ausgeschlossen";
    color: #b91c1c;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    margin-left: 6px;
    letter-spacing: .04em;
}
.cu-dup-item.excluded .cu-dup-btn-primary {
    opacity: .5; pointer-events: none;
}
.cu-dup-item.excluded .cu-dup-btn-exclude {
    background: #fee2e2; border-color: #fca5a5; color: #991b1b;
}
.cu-dup-item.excluded .cu-dup-btn-exclude i::before {
    content: "\F5E1"; /* bi-arrow-counterclockwise als „wieder hinzufügen" */
}

/* Wenn durch Ausschluss weniger als 2 Einträge übrig sind, Gruppe optisch abklingen */
.cu-dup-card.disabled-group .cu-dup-group { opacity: .5; }
.cu-dup-card.disabled-group .cu-dup-reason::after {
    content: " · Gruppe auf < 2 reduziert";
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

.cu-dup-skip {
    padding: 10px 20px; border-top: 1px solid #e2e8f0;
    display: flex; justify-content: center;
}
.cu-dup-btn-skip {
    background: none; border: none; color: #94a3b8; font-size: 12px;
    cursor: pointer; padding: 4px 12px;
}
.cu-dup-btn-skip:hover { color: #64748b; }

.cu-dup-done {
    padding: 24px; text-align: center; font-size: 15px; font-weight: 600; color: #16a34a;
}
.cu-dup-done i { margin-right: 6px; }

@media (max-width: 768px) {
    .cu-dup-group { grid-template-columns: 1fr; }
    .cu-dup-item { border-right: none; }
}

/* Toast */
.cu-toast {
    position: fixed; bottom: 20px; right: 20px; background: #22c55e; color: #fff;
    padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ── Duplicate-Merge (Detail-Page) ── */
.cu-dup-badge {
    display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px;
    background: #f59e0b; color: #fff; border-radius: 10px;
    font-size: 11px; font-weight: 700; text-align: center;
}
.cu-merge-card {
    border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 14px;
    background: #fff; overflow: hidden;
}
.cu-merge-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #fef3c7; border-bottom: 1px solid #fde68a;
}
.cu-diff-table {
    width: 100%; font-size: 13px; border-collapse: collapse;
}
.cu-diff-table th, .cu-diff-table td {
    padding: 6px 14px; border-bottom: 1px solid #f1f5f9; text-align: left;
    vertical-align: top;
}
.cu-diff-table th {
    background: #f8fafc; font-size: 11px; text-transform: uppercase;
    letter-spacing: .03em; color: #64748b; font-weight: 600;
}
.cu-diff-lbl { font-weight: 600; color: #334155; }
.cu-diff-same td { color: #64748b; }
.cu-diff-diff td { background: #fffbeb; color: #92400e; }
.cu-diff-diff .cu-diff-lbl { color: #b45309; }

/* ── Termine (Appointments) ─────────────────────────────── */
.cu-appt-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; margin-bottom: 6px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    text-decoration: none; color: inherit;
    transition: background .15s, border-color .15s;
}
.cu-appt-row:hover {
    background: #f8fafc; border-color: #cbd5e1;
}
.cu-appt-upcoming {
    border-left: 3px solid #16a34a;
}
.cu-appt-past {
    background: #fafafa; border-left: 3px solid #cbd5e1;
}
.cu-appt-date {
    flex: 0 0 52px; text-align: center;
    background: #fff; border-radius: 6px;
    padding: 4px 2px; border: 1px solid #e2e8f0;
}
.cu-appt-upcoming .cu-appt-date {
    background: #f0fdf4; border-color: #bbf7d0;
}
.cu-appt-day {
    font-size: 12px; font-weight: 700; color: #1e293b;
}
.cu-appt-upcoming .cu-appt-day { color: #15803d; }
.cu-appt-time {
    font-size: 10px; color: #64748b; margin-top: 1px;
}
