/* =========================================================
   DEWPOINT STAFF PAYMENTS
   ========================================================= */

.staff-payments-page{
    display:flex;
    flex-direction:column;
    gap:16px;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.staff-payments-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;

    padding:22px 24px;

    border:1px solid #e1e8ee;
    border-radius:17px;

    background:
        linear-gradient(
            135deg,
            #fff 0%,
            var(--dp-theme-faint) 100%
        );

    box-shadow:
        0 8px 24px
        rgba(15,23,42,.045);
}

.staff-payments-head > div:first-child > b{
    display:block;

    margin-bottom:4px;

    color:var(--dp-accent-text);

    font-size:10px;
    font-weight:900;
    letter-spacing:.13em;
}

.staff-payments-head h2{
    margin:0;

    color:#172033;

    font-size:24px;
    line-height:1.15;
}

.staff-payments-head p{
    margin:6px 0 0;

    color:#718096;

    font-size:12px;
}


/* ---------------------------------------------------------
   SUMMARY
   --------------------------------------------------------- */

.staff-payment-summary{
    display:flex;
    gap:8px;
}

.staff-payment-summary > span{
    min-width:88px;

    padding:11px 13px;

    text-align:center;

    border:1px solid var(--dp-theme-border);
    border-radius:12px;

    background:#fff;
}

.staff-payment-summary strong{
    display:block;

    color:var(--dp-accent-text);

    font-size:20px;
    line-height:1;
}

.staff-payment-summary small{
    display:block;

    margin-top:4px;

    color:#7b8796;

    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
}


/* ---------------------------------------------------------
   TABS
   --------------------------------------------------------- */

.staff-payment-tabs{
    display:flex;
    gap:7px;

    width:max-content;
    max-width:100%;

    padding:5px;

    border:1px solid #e1e8ee;
    border-radius:12px;

    background:#f8fafc;
}

.staff-payment-tabs button{
    padding:9px 15px;

    border:0;
    border-radius:9px;

    background:transparent;

    color:#64748b;

    font-size:11px;
    font-weight:800;

    cursor:pointer;

    transition:
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.staff-payment-tabs button:hover{
    color:var(--dp-accent-text);
    background:var(--dp-theme-faint);
}

.staff-payment-tabs button.active{
    color:#fff;

    background:
        linear-gradient(
            90deg,
            var(--dp-accent),
            var(--dp-accent-2)
        );

    box-shadow:
        0 5px 14px
        color-mix(
            in srgb,
            var(--dp-accent) 18%,
            transparent
        );
}


/* ---------------------------------------------------------
   PAYMENT LIST
   --------------------------------------------------------- */

.staff-payment-list-card{
    padding:0;

    overflow:hidden;

    border:1px solid #e1e8ee;
    border-radius:17px;

    box-shadow:
        0 8px 24px
        rgba(15,23,42,.045);
}

.staff-payment-list{
    display:flex;
    flex-direction:column;
}

.staff-payment-row{
    display:grid;

    grid-template-columns:
        74px
        minmax(240px,1fr)
        120px
        95px
        auto;

    gap:15px;

    align-items:center;

    padding:15px 18px;

    border-bottom:
        1px solid #edf1f4;

    background:#fff;

    transition:
        background .16s ease;
}

.staff-payment-row:last-child{
    border-bottom:0;
}

.staff-payment-row:hover{
    background:
        var(--dp-theme-faint);
}


/* ---------------------------------------------------------
   RECEIPT
   --------------------------------------------------------- */

.staff-payment-thumb{
    width:64px;
    height:54px;

    object-fit:cover;

    border:
        1px solid #dfe6eb;

    border-radius:9px;

    cursor:zoom-in;
}

.staff-payment-no-receipt{
    display:grid;
    place-items:center;

    width:64px;
    height:54px;

    padding:5px;

    text-align:center;

    border:
        1px dashed #cbd5e1;

    border-radius:9px;

    background:#f8fafc;

    color:#94a3b8;

    font-size:9px;
}


/* ---------------------------------------------------------
   PAYMENT INFORMATION
   --------------------------------------------------------- */

.staff-payment-main{
    min-width:0;
}

.staff-payment-title{
    display:flex;
    align-items:center;
    gap:8px;

    min-width:0;
}

.staff-payment-title strong{
    color:#253044;

    font-size:12px;
}

.staff-payment-title span{
    padding:4px 7px;

    border-radius:999px;

    background:
        var(--dp-theme-soft);

    color:
        var(--dp-accent-text);

    font-size:9px;
    font-weight:800;
}

.staff-payment-main > small{
    display:block;

    margin-top:5px;

    color:#7d8998;

    font-size:10px;
}

.staff-payment-main > em{
    display:block;

    margin-top:4px;

    color:#94a3b8;

    font-size:9px;
    font-style:normal;
}


/* ---------------------------------------------------------
   AMOUNT
   --------------------------------------------------------- */

.staff-payment-amount{
    text-align:right;
}

.staff-payment-amount small{
    display:block;

    color:#94a3b8;

    font-size:8px;
    font-weight:900;
    letter-spacing:.08em;
}

.staff-payment-amount strong{
    display:block;

    margin-top:3px;

    color:#172033;

    font-size:15px;
}


/* ---------------------------------------------------------
   PAYMENT STATES
   --------------------------------------------------------- */

.staff-payment-state{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:74px;

    padding:6px 9px;

    border-radius:999px;

    font-size:9px;
    font-weight:900;
}

.staff-payment-state.pending{
    color:#b45309;
    background:#fff7ed;
}

.staff-payment-state.verified{
    color:#047857;
    background:#ecfdf5;
}

.staff-payment-state.rejected{
    color:#b91c1c;
    background:#fef2f2;
}


/* ---------------------------------------------------------
   ACTIONS
   --------------------------------------------------------- */

.staff-payment-actions{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;

    gap:6px;
}

.staff-payment-actions button{
    padding:7px 10px;

    border-radius:8px;

    font-size:9px;
    font-weight:900;

    cursor:pointer;
}

.staff-payment-actions .preview{
    border:
        1px solid
        var(--dp-theme-border);

    background:
        var(--dp-theme-faint);

    color:
        var(--dp-accent-text);
}

.staff-payment-actions .confirm{
    border:
        1px solid
        var(--dp-accent);

    color:#fff;

    background:
        linear-gradient(
            90deg,
            var(--dp-accent),
            var(--dp-accent-2)
        );
}

.staff-payment-actions .decline{
    border:
        1px solid #fecaca;

    background:#fff;

    color:#b91c1c;
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.staff-payment-list-card > .empty-state{
    padding:48px 20px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width:1100px){

    .staff-payment-row{
        grid-template-columns:
            64px
            minmax(200px,1fr)
            110px
            90px;
    }

    .staff-payment-actions{
        grid-column:2 / -1;
        justify-content:flex-start;
    }

}


@media (max-width:800px){

    .staff-payments-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .staff-payment-summary{
        width:100%;
    }

    .staff-payment-summary > span{
        flex:1;
    }

    .staff-payment-row{
        grid-template-columns:
            64px
            minmax(0,1fr)
            auto;
    }

    .staff-payment-amount{
        text-align:left;

        grid-column:2;
    }

    .staff-payment-status-wrap{
        grid-column:3;
        grid-row:1;
    }

    .staff-payment-actions{
        grid-column:2 / -1;
    }

}


@media (max-width:560px){

    .staff-payments-head{
        padding:18px;
    }

    .staff-payments-head h2{
        font-size:21px;
    }

    .staff-payment-summary{
        display:grid;

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

    .staff-payment-summary > span{
        min-width:0;
        padding:10px 7px;
    }

    .staff-payment-tabs{
        width:100%;
    }

    .staff-payment-tabs button{
        flex:1;
        padding:9px 6px;
    }

    .staff-payment-row{
        grid-template-columns:
            54px
            minmax(0,1fr);

        padding:13px;
    }

    .staff-payment-thumb,
    .staff-payment-no-receipt{
        width:52px;
        height:48px;
    }

    .staff-payment-status-wrap,
    .staff-payment-amount,
    .staff-payment-actions{
        grid-column:2;
    }

    .staff-payment-status-wrap{
        grid-row:auto;
    }

}


