/* ==========================================================================
   QR FLOW SHEET EXTENSIONS
   ========================================================================== */

.qr-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 12px auto;
}

.qr-preview-box-clean {
    background: #ffffff;
    padding: 16px;
    border-radius: 22px;
    display: inline-block;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.12);
    position: relative;
    box-sizing: border-box;
}

.qr-preview-box-clean canvas {
    display: block !important;
    max-width: 100% !important;
    width: 250px !important;
    height: 250px !important;
    border-radius: 10px;
}

.qr-url-pill-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

.qr-url-text {
    font-size: 0.82rem;
    color: #a0a0a0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    flex: 1;
    font-family: monospace;
}

.qr-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.qr-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qr-copy-btn.copied {
    background: rgba(76, 175, 80, 0.25) !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.qr-action-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin-top: 10px;
}

.qr-tool-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.qr-toast-notification {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(25px);
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(200, 16, 46, 0.3);
    z-index: 10005;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-toast-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* --- Revenue Step-by-Step Flow Styling --- */
.revenue-hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
}

.revenue-hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888888;
}

.revenue-hero-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00E676;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 4px 0 2px 0;
}

.revenue-hero-sub {
    font-size: 0.8rem;
    color: #999999;
}

.revenue-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.revenue-stat-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.revenue-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.revenue-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

/* Timeframe Quick Switch Pills */
.revenue-filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.revenue-filter-pills::-webkit-scrollbar {
    display: none;
}

.revenue-filter-pill {
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.revenue-filter-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.revenue-filter-pill.active {
    background: var(--accent-color, #EE1C23);
    border-color: var(--accent-color, #EE1C23);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

/* Custom Date Inputs Drawer */
.revenue-custom-dates {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 10px;
    animation: flowFadeIn 0.2s ease;
}

.revenue-custom-dates.visible {
    display: grid;
}

.revenue-date-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.revenue-date-field label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888888;
    letter-spacing: 0.8px;
}

.revenue-date-field input[type="date"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.revenue-date-field input[type="date"]:focus {
    border-color: var(--accent-color, #EE1C23);
}

/* Package Breakdown Cards */
.revenue-package-group {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.revenue-package-group:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.revenue-package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.revenue-package-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.revenue-package-price-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-color, #EE1C23);
    flex-shrink: 0;
}

.revenue-package-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.revenue-package-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.revenue-package-subtitle {
    font-size: 0.75rem;
    color: #888888;
    margin-top: 2px;
}

.revenue-package-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}

.revenue-package-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #00E676;
}

.revenue-package-toggle-hint {
    font-size: 0.68rem;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.revenue-package-drawer {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px 14px 16px;
    flex-direction: column;
    gap: 8px;
}

.revenue-package-group.open .revenue-package-drawer {
    display: flex;
}

.revenue-tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.82rem;
}

.revenue-tx-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.revenue-tx-name {
    font-weight: 700;
    color: #ffffff;
}

.revenue-tx-meta {
    font-size: 0.72rem;
    color: #777777;
}

.revenue-tx-amount {
    font-weight: 800;
    color: #00E676;
    font-size: 0.9rem;
}

