/* Campaign URL Tracking — complements pulse-analytics-design-system.css */
#wcut-root {
    font-size: 13px;
    color: #1d2327;
}

#wcut-root .wcut-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
}

#wcut-root .wcut-camp-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

#wcut-root .wcut-date-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    z-index: 2;
}

#wcut-root .wcut-date-input {
    width: 100%;
    min-width: 200px;
    padding-left: 38px !important;
    padding-right: 32px !important;
    cursor: pointer;
}

#transactions-table thead th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#transactions-table thead th .sort-indicator {
    font-size: 11px;
    margin-left: 3px;
    opacity: 0.5;
}

#transactions-table tbody tr:hover {
    background: #f8f9fb;
}

.wcut-txn-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.wcut-txn-link:hover {
    text-decoration: underline;
    color: #4338ca;
}

.wcut-tbl-empty {
    text-align: center;
    padding: 48px 24px !important;
}

.wcut-empty-sub {
    font-size: 13px;
    color: #9ca3af;
}

.wcut-error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 14px;
}

#transactions-error.hidden {
    display: none;
}

.wcut-pagination,
#pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--sp-border, #dcdcde);
    background: #fff;
}

#pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.wcut-pag-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}

.wcut-pag-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    color: #4f46e5;
    cursor: pointer;
    font-weight: 500;
}

.wcut-pag-btn:hover:not(:disabled) {
    background: #f5f3ff;
}

.wcut-pag-btn:disabled {
    color: #9ca3af;
    cursor: default;
}

.wcut-pag-sep {
    font-size: 13px;
    color: #d1d5db;
    padding: 0 4px;
}

/* Flatpickr (date range in toolbar) */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e4ea !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    overflow: hidden !important;
}

.flatpickr-months {
    background: #4f46e5 !important;
    padding: 8px 0 !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #fff !important;
    fill: #fff !important;
    height: 40px !important;
}

.flatpickr-current-month {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 700 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-weekdays {
    background: #f5f3ff !important;
    padding: 6px 0 !important;
}

span.flatpickr-weekday {
    background: transparent !important;
    color: #6366f1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #fff !important;
}

.flatpickr-day.inRange {
    background: #ede9fe !important;
    border-color: transparent !important;
    color: #4f46e5 !important;
}
