/* =========================================================
   EXACTSUB — WALLET SUMMARY
   Professional Fintech UI
   ========================================================= */

:root {
    --wallet-primary: #022A7B;
    --wallet-primary-dark: #011E59;
    --wallet-primary-50: #F3F7FF;
    --wallet-primary-100: #E8F0FF;

    --wallet-green: #29BA22;
    --wallet-green-dark: #1E9419;
    --wallet-green-50: #EFFBED;
    --wallet-green-100: #E3F7E1;

    --wallet-text: #101828;
    --wallet-text-2: #344054;
    --wallet-text-3: #667085;
    --wallet-text-4: #98A2B3;

    --wallet-border: #E4E7EC;
    --wallet-border-light: #EAECF0;

    --wallet-page: #F6F8FC;
    --wallet-white: #FFFFFF;

    --wallet-radius-sm: 8px;
    --wallet-radius-md: 12px;
    --wallet-radius-lg: 16px;

    --wallet-shadow-sm:
        0 1px 3px rgba(16, 24, 40, .05);

    --wallet-shadow-md:
        0 8px 24px rgba(16, 24, 40, .07);

    --wallet-transition: 180ms ease;
}


/* =========================================================
   PAGE
   ========================================================= */

#wallet-summary-page {
    width: 100%;
    min-width: 0;

    padding: 32px;

    box-sizing: border-box;

    background: var(--wallet-page);

    color: var(--wallet-text);
}


/* =========================================================
   RESET INSIDE PAGE
   ========================================================= */

#wallet-summary-page *,
#wallet-summary-page *::before,
#wallet-summary-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

#wallet-summary-page .wallet-page-header {
    display: flex;
    align-items: center;

    margin-bottom: 28px;
}


#wallet-summary-page .wallet-header-content {
    display: flex;
    align-items: center;

    gap: 15px;
}


#wallet-summary-page .wallet-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border: 1px solid #DDE7FA;
    border-radius: 13px;

    background: var(--wallet-primary-100);

    color: var(--wallet-primary);

    font-size: 20px;
}


#wallet-summary-page .wallet-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--wallet-primary);

    font-size: 11px;
    line-height: 16px;

    font-weight: 750;

    letter-spacing: .08em;

    text-transform: uppercase;
}


#wallet-summary-page .wallet-header-content h1 {
    margin: 0;

    color: var(--wallet-text);

    font-size: clamp(28px, 3vw, 36px);

    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -.03em;
}


#wallet-summary-page .wallet-header-content p {
    margin: 7px 0 0;

    color: var(--wallet-text-3);

    font-size: 14px;

    line-height: 21px;
}


/* =========================================================
   FILTER CARD
   ========================================================= */

#wallet-summary-page .wallet-filter-card {
    margin-bottom: 24px;

    border: 1px solid var(--wallet-border);

    border-radius: var(--wallet-radius-lg);

    background: var(--wallet-white);

    box-shadow: var(--wallet-shadow-sm);

    overflow: hidden;
}


/* =========================================================
   FILTER HEADER
   ========================================================= */

#wallet-summary-page .wallet-filter-header {
    padding: 20px 22px;

    border-bottom: 1px solid var(--wallet-border-light);
}


#wallet-summary-page .wallet-filter-title {
    display: flex;
    align-items: center;

    gap: 13px;
}


#wallet-summary-page .wallet-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 11px;

    background: var(--wallet-primary-50);

    color: var(--wallet-primary);

    font-size: 16px;
}


#wallet-summary-page .wallet-filter-title h2 {
    margin: 0;

    color: var(--wallet-text);

    font-size: 16px;

    line-height: 22px;

    font-weight: 700;
}


#wallet-summary-page .wallet-filter-title p {
    margin: 3px 0 0;

    color: var(--wallet-text-3);

    font-size: 12px;

    line-height: 18px;
}


/* =========================================================
   FILTER BODY
   ========================================================= */

#wallet-summary-page .wallet-filter-body {
    padding: 22px;
}


/* =========================================================
   ERROR
   ========================================================= */

#wallet-summary-page .wallet-error {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    padding: 12px 14px;

    border: 1px solid #FECACA;

    border-radius: 9px;

    background: #FEF2F2;

    color: #B42318;

    font-size: 13px;
}


/* =========================================================
   CRISPY FORM
   ========================================================= */

#wallet-summary-page .wallet-filter-form {
    width: 100%;
}


#wallet-summary-page .wallet-form-fields {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px 20px;
}


/*
   Crispy Forms / Bootstrap compatibility
*/

#wallet-summary-page .wallet-form-fields .form-group {
    margin-bottom: 0;
}


#wallet-summary-page .wallet-form-fields label {
    display: block;

    margin-bottom: 7px;

    color: var(--wallet-text-2);

    font-size: 12px;

    line-height: 18px;

    font-weight: 600;
}


#wallet-summary-page .wallet-form-fields input,
#wallet-summary-page .wallet-form-fields select,
#wallet-summary-page .wallet-form-fields textarea {
    width: 100%;

    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid var(--wallet-border);

    border-radius: 8px;

    outline: none;

    background: #fff;

    color: var(--wallet-text);

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color var(--wallet-transition),
        box-shadow var(--wallet-transition);
}


#wallet-summary-page .wallet-form-fields input:focus,
#wallet-summary-page .wallet-form-fields select:focus,
#wallet-summary-page .wallet-form-fields textarea:focus {
    border-color: var(--wallet-primary);

    box-shadow:
        0 0 0 3px rgba(2, 42, 123, .08);
}


#wallet-summary-page .wallet-form-fields .form-text {
    margin-top: 5px;

    color: var(--wallet-text-4);

    font-size: 11px;
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

#wallet-summary-page .wallet-filter-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--wallet-border-light);
}


#wallet-summary-page .wallet-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 110px;

    min-height: 42px;

    padding: 0 17px;

    border: 1px solid var(--wallet-primary);

    border-radius: 8px;

    background: var(--wallet-primary);

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 650;

    cursor: pointer;

    box-shadow:
        0 1px 2px rgba(2, 42, 123, .15);

    transition: all var(--wallet-transition);
}


#wallet-summary-page .wallet-search-button:hover {
    background: var(--wallet-primary-dark);

    border-color: var(--wallet-primary-dark);

    box-shadow:
        0 4px 10px rgba(2, 42, 123, .16);
}


/* =========================================================
   RESULTS
   ========================================================= */

#wallet-summary-page .wallet-results {
    overflow: hidden;

    border: 1px solid var(--wallet-border);

    border-radius: var(--wallet-radius-lg);

    background: var(--wallet-white);

    box-shadow: var(--wallet-shadow-sm);
}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

#wallet-summary-page .wallet-results-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 21px 22px;

    border-bottom: 1px solid var(--wallet-border-light);
}


#wallet-summary-page .wallet-results-title {
    display: flex;

    align-items: center;

    gap: 13px;
}


#wallet-summary-page .wallet-results-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    border-radius: 11px;

    background: var(--wallet-primary-50);

    color: var(--wallet-primary);

    font-size: 17px;
}


#wallet-summary-page .wallet-results-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--wallet-text-4);

    font-size: 9px;

    line-height: 14px;

    font-weight: 750;

    letter-spacing: .09em;

    text-transform: uppercase;
}


#wallet-summary-page .wallet-results-title h2 {
    margin: 0;

    color: var(--wallet-text);

    font-size: 17px;

    line-height: 23px;

    font-weight: 700;
}


#wallet-summary-page .wallet-results-title p {
    margin: 3px 0 0;

    color: var(--wallet-text-3);

    font-size: 12px;

    line-height: 18px;
}


/* =========================================================
   RECORD COUNT
   ========================================================= */

#wallet-summary-page .wallet-record-count {
    display: flex;

    align-items: baseline;

    gap: 8px;

    padding-left: 20px;

    border-left: 1px solid var(--wallet-border-light);
}


#wallet-summary-page .wallet-record-count span {
    color: var(--wallet-text-4);

    font-size: 9px;

    font-weight: 750;

    letter-spacing: .08em;
}


#wallet-summary-page .wallet-record-count strong {
    color: var(--wallet-primary);

    font-size: 21px;

    line-height: 1;

    font-weight: 750;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

#wallet-summary-page .wallet-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* =========================================================
   TABLE
   ========================================================= */

#wallet-summary-page .wallet-table {
    width: 100%;

    min-width: 900px;

    border-collapse: collapse;

    border-spacing: 0;
}


/* =========================================================
   TABLE HEADER
   ========================================================= */

#wallet-summary-page .wallet-table thead {
    background: #F8FAFC;
}


#wallet-summary-page .wallet-table th {
    padding: 13px 18px;

    border-bottom: 1px solid var(--wallet-border);

    color: var(--wallet-text-3);

    font-size: 9px;

    line-height: 14px;

    font-weight: 750;

    letter-spacing: .07em;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   TABLE BODY
   ========================================================= */

#wallet-summary-page .wallet-table td {
    padding: 17px 18px;

    border-bottom: 1px solid var(--wallet-border-light);

    color: var(--wallet-text-2);

    font-size: 12px;

    line-height: 18px;

    vertical-align: middle;
}


#wallet-summary-page .wallet-table tbody tr {
    transition:
        background var(--wallet-transition);
}


#wallet-summary-page .wallet-table tbody tr:hover {
    background: #FAFCFF;
}


#wallet-summary-page .wallet-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   SERIAL
   ========================================================= */

#wallet-summary-page .wallet-serial {
    width: 55px;

    color: var(--wallet-text-4) !important;

    font-size: 11px !important;

    font-weight: 600;
}


/* =========================================================
   PRODUCT
   ========================================================= */

#wallet-summary-page .wallet-product {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 190px;
}


#wallet-summary-page .wallet-product-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    border: 1px solid #DCE5F5;

    border-radius: 9px;

    background: var(--wallet-primary-50);

    color: var(--wallet-primary);

    font-size: 13px;
}


#wallet-summary-page .wallet-product strong {
    display: block;

    color: var(--wallet-text);

    font-size: 13px;

    line-height: 18px;

    font-weight: 650;
}


#wallet-summary-page .wallet-product span {
    display: block;

    margin-top: 2px;

    color: var(--wallet-text-4);

    font-size: 10px;

    line-height: 15px;
}


/* =========================================================
   AMOUNT
   ========================================================= */

#wallet-summary-page .wallet-amount {
    color: var(--wallet-primary) !important;

    font-size: 14px !important;

    font-weight: 750 !important;

    white-space: nowrap;
}


/* =========================================================
   BALANCES
   ========================================================= */

#wallet-summary-page .wallet-balance {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 4px 9px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;
}


#wallet-summary-page .wallet-old-balance {
    background: #F2F4F7;

    color: var(--wallet-text-2);
}


#wallet-summary-page .wallet-new-balance {
    background: var(--wallet-green-50);

    color: #187A14;
}


/* =========================================================
   DATE
   ========================================================= */

#wallet-summary-page .wallet-date {
    min-width: 145px;
}


#wallet-summary-page .wallet-date strong {
    color: var(--wallet-text-2);

    font-size: 11px;

    line-height: 17px;

    font-weight: 550;

    white-space: nowrap;
}


/* =========================================================
   PAGINATION
   ========================================================= */

#wallet-summary-page .wallet-pagination {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 22px;

    border-top: 1px solid var(--wallet-border-light);

    background: #FCFDFE;
}


#wallet-summary-page .wallet-pagination-info {
    color: var(--wallet-text-3);

    font-size: 11px;
}


#wallet-summary-page .wallet-pagination-info strong {
    color: var(--wallet-text-2);

    font-weight: 650;
}


#wallet-summary-page .wallet-pagination-nav {
    margin: 0;
}


#wallet-summary-page .wallet-pagination-list {
    display: flex;

    align-items: center;

    gap: 5px;

    margin: 0;

    padding: 0;

    list-style: none;
}


#wallet-summary-page .wallet-pagination-page,
#wallet-summary-page .wallet-pagination-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 34px;

    height: 34px;

    padding: 0 9px;

    border: 1px solid var(--wallet-border);

    border-radius: 8px;

    background: #fff;

    color: var(--wallet-text-2);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    transition: all var(--wallet-transition);
}


#wallet-summary-page .wallet-pagination-page:hover,
#wallet-summary-page .wallet-pagination-button:hover {
    border-color: var(--wallet-primary);

    background: var(--wallet-primary-50);

    color: var(--wallet-primary);
}


#wallet-summary-page .wallet-pagination-current {
    border-color: var(--wallet-primary);

    background: var(--wallet-primary);

    color: #fff;
}


#wallet-summary-page .wallet-pagination-disabled {
    opacity: .4;

    cursor: default;
}


#wallet-summary-page .wallet-pagination-dots {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 25px;

    height: 34px;

    color: var(--wallet-text-4);

    font-size: 12px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

#wallet-summary-page .wallet-empty-state {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    min-height: 330px;

    padding: 45px 25px;

    border: 1px solid var(--wallet-border);

    border-radius: var(--wallet-radius-lg);

    background: #fff;

    box-shadow: var(--wallet-shadow-sm);

    text-align: center;
}


#wallet-summary-page .wallet-empty-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 62px;

    height: 62px;

    margin-bottom: 17px;

    border-radius: 17px;

    background: var(--wallet-primary-100);

    color: var(--wallet-primary);

    font-size: 24px;
}


#wallet-summary-page .wallet-empty-state h2 {
    margin: 0;

    color: var(--wallet-text);

    font-size: 18px;

    line-height: 25px;

    font-weight: 700;
}


#wallet-summary-page .wallet-empty-state p {
    max-width: 430px;

    margin: 7px 0 0;

    color: var(--wallet-text-3);

    font-size: 13px;

    line-height: 21px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    #wallet-summary-page {
        padding: 25px 20px;
    }

    #wallet-summary-page .wallet-form-fields {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    #wallet-summary-page {
        padding: 20px 14px 30px;
    }


    #wallet-summary-page .wallet-header-content {
        align-items: flex-start;

        gap: 11px;
    }


    #wallet-summary-page .wallet-header-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 10px;

        font-size: 16px;
    }


    #wallet-summary-page .wallet-header-content h1 {
        font-size: 27px;
    }


    #wallet-summary-page .wallet-header-content p {
        font-size: 13px;

        line-height: 19px;
    }


    #wallet-summary-page .wallet-filter-header,
    #wallet-summary-page .wallet-filter-body {
        padding: 17px;
    }


    #wallet-summary-page .wallet-filter-title {
        align-items: flex-start;
    }


    #wallet-summary-page .wallet-filter-actions {
        margin-top: 17px;

        padding-top: 15px;
    }


    #wallet-summary-page .wallet-search-button {
        width: 100%;
    }


    #wallet-summary-page .wallet-results-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 17px;
    }


    #wallet-summary-page .wallet-record-count {
        width: 100%;

        padding: 12px 0 0;

        border-top: 1px solid var(--wallet-border-light);

        border-left: 0;
    }


    /*
       Mobile transaction cards
    */

    #wallet-summary-page .wallet-table-wrapper {
        overflow: visible;
    }


    #wallet-summary-page .wallet-table {
        min-width: 0;
    }


    #wallet-summary-page .wallet-table thead {
        display: none;
    }


    #wallet-summary-page .wallet-table,
    #wallet-summary-page .wallet-table tbody,
    #wallet-summary-page .wallet-table tr,
    #wallet-summary-page .wallet-table td {
        display: block;

        width: 100%;
    }


    #wallet-summary-page .wallet-table tbody {
        padding: 10px;
    }


    #wallet-summary-page .wallet-table tr {
        margin-bottom: 11px;

        padding: 15px;

        border: 1px solid var(--wallet-border);

        border-radius: 12px;

        background: #fff;

        box-shadow: var(--wallet-shadow-sm);
    }


    #wallet-summary-page .wallet-table tr:last-child {
        margin-bottom: 0;
    }


    #wallet-summary-page .wallet-table td {
        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 15px;

        padding: 8px 0;

        border: 0;

        text-align: right;
    }


    #wallet-summary-page .wallet-table td::before {
        content: attr(data-label);

        flex: 0 0 auto;

        color: var(--wallet-text-4);

        font-size: 9px;

        line-height: 14px;

        font-weight: 750;

        letter-spacing: .06em;

        text-transform: uppercase;

        text-align: left;
    }


    #wallet-summary-page .wallet-serial {
        display: none !important;
    }


    #wallet-summary-page .wallet-product {
        justify-content: flex-end;

        text-align: right;
    }


    #wallet-summary-page .wallet-product > div:last-child {
        min-width: 0;
    }


    #wallet-summary-page .wallet-product strong {
        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    #wallet-summary-page .wallet-date {
        min-width: 0;
    }


    #wallet-summary-page .wallet-date strong {
        white-space: normal;
    }


    #wallet-summary-page .wallet-pagination {
        align-items: flex-start;

        flex-direction: column;

        padding: 14px 17px;
    }


    #wallet-summary-page .wallet-pagination-nav {
        width: 100%;
    }


    #wallet-summary-page .wallet-pagination-list {
        justify-content: center;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    #wallet-summary-page {
        padding: 16px 10px 25px;
    }


    #wallet-summary-page .wallet-header-content h1 {
        font-size: 24px;
    }


    #wallet-summary-page .wallet-product-icon {
        width: 32px;

        height: 32px;

        flex-basis: 32px;
    }


    #wallet-summary-page .wallet-product strong {
        font-size: 12px;
    }


    #wallet-summary-page .wallet-balance {
        font-size: 10px;

        padding: 4px 7px;
    }

}