/* ==========================================================================
   Theme-E Transaction History / Records Styles
   Matches Photo 2 (theme-e.anotechsolutions.shop/account/transaction history) 100% Pixel-Perfect
   ========================================================================== */

/* 1. Page Root & Global Container */
body.theme-e-records-active {
    background: #030c26 !important;
}

#theme-e-records-shell {
    background: #030c26 !important;
    background: radial-gradient(circle at 50% 10%, #081e59 0%, #030c26 80%) !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding-top: 52px !important;
}

.records-wrapper,
.records {
    background: #030c26 !important;
}

/* Hide native table header and extra duplicate header */
.records > .header,
.records > .table-th,
.records-wrapper > .header,
.records-wrapper > .table-th,
.list-container,
.theme-e-tx-header {
    display: none !important;
}

/* 2. App Top Header Overrides on Records Page */
body.theme-e-records-active .page-wrapper > header,
body.theme-e-records-active header.hearder_bottom_border {
    background: linear-gradient(90deg, #1b53be 0%, #10368d 52%, #05184d 100%) !important;
    border-bottom: 1px solid #ffd66e !important;
    box-shadow: 0 0 24px rgba(255, 217, 104, 0.4) !important;
}

/* 3. Filter Selectors Row (All v | Choose a date v) */
.theme-e-tx-filter-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #030c26 !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 52px !important;
    z-index: 90 !important;
}

.theme-e-tx-filter-pill {
    flex: 1 !important;
    background: #0a215a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.theme-e-tx-filter-pill select {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.theme-e-tx-filter-arrow {
    font-size: 10px !important;
    color: #8ea1c1 !important;
    margin-left: 6px !important;
}

/* 4. Container for Cards */
.theme-e-tx-list-container {
    padding: 10px 14px 40px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

/* Individual Card (Matching Photo 2) */
.theme-e-tx-card {
    background: #081e59 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
}

.theme-e-tx-card-header {
    background: #0c2b75 !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
}

.theme-e-tx-card-body {
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.theme-e-tx-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12.5px !important;
}

.theme-e-tx-label {
    color: #8ea1c1 !important;
    font-weight: 400 !important;
}

.theme-e-tx-value {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.theme-e-tx-value.amount-green {
    color: #10b981 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.theme-e-tx-value.amount-red {
    color: #ef4444 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.theme-e-tx-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #8ea1c1 !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Theme-E Vant DatePicker & Popup Dark Theme Override (Matching Photo 2)
   ========================================================================== */

.van-popup,
.van-popup--bottom,
.van-picker,
.van-datetime-picker {
    background-color: #06102b !important;
    background: linear-gradient(180deg, #0a1b48 0%, #050d24 100%) !important;
    border-radius: 18px 18px 0 0 !important;
    border-top: 1px solid rgba(255, 214, 110, 0.35) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
}

/* Toolbar / Header Bar */
.van-picker__toolbar {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: 48px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Cancel Action Button (Left) */
.van-picker__cancel {
    color: #7d96c4 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Title in Center ("Choose a date" / "Select Date") */
.van-picker__title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Confirm Action Button (Right) */
.van-picker__confirm {
    color: #38bdf8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Column Wrapper & Items */
.van-picker__columns {
    background: transparent !important;
}

.van-picker-column {
    background: transparent !important;
}

.van-picker-column__wrapper {
    background: transparent !important;
}

.van-picker-column__item {
    color: #6a82aa !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: color 0.15s ease, font-size 0.15s ease !important;
}

/* Selected Item inside Column */
.van-picker-column__item--selected {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Selection Highlight Frame Box (Middle line) */
.van-picker__frame {
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    border-top: 1px solid rgba(255, 214, 110, 0.3) !important;
    border-bottom: 1px solid rgba(255, 214, 110, 0.3) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05) !important;
}

/* Top and Bottom Fading Gradient Masks */
.van-picker__mask {
    background-image: linear-gradient(180deg, rgba(6, 16, 43, 0.95) 0%, rgba(6, 16, 43, 0.3) 100%), linear-gradient(0deg, rgba(6, 16, 43, 0.95) 0%, rgba(6, 16, 43, 0.3) 100%) !important;
}

/* Bottom Confirm Button inside picker if present */
.van-picker + .van-button,
.van-datetime-picker .van-button--primary,
.van-datetime-picker__confirm,
.van-picker__confirm-button {
    background: linear-gradient(135deg, #1d61e7 0%, #103ba6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 15px rgba(29, 97, 231, 0.4) !important;
}

