/*
 * PICKLE MANIA SUPER ADMIN PLATFORM V1
 * Canonical styling for Dashboard / Venue Owners / Players.
 */

.pm-admin-platform{
    display:grid;
    gap:18px;
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:22px;
    box-sizing:border-box;
    color:#10213d;
}

.pm-admin-page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:22px;
}

.pm-admin-page-head > div{
    min-width:0;
}

.pm-admin-page-head small,
.pm-admin-card > header small{
    display:block;
    margin-bottom:5px;
    color:#8190a8;
    font-size:10px;
    font-weight:900;
    letter-spacing:.13em;
}

.pm-admin-page-head h2{
    margin:0;
    color:#071c3d;
    font-size:30px;
    font-weight:900;
    letter-spacing:-.035em;
}

.pm-admin-page-head p{
    margin:6px 0 0;
    color:#728096;
    font-size:13px;
}

.pm-admin-search{
    width:min(360px,100%);
    min-height:42px;
    padding:0 15px;
    border:1px solid #dae2ec;
    border-radius:999px;
    outline:0;
    background:#fff;
    color:#10213d;
    font:inherit;
    font-size:13px;
    box-shadow:0 4px 14px rgba(7,28,61,.035);
}

.pm-admin-search:focus{
    border-color:#9ed221;
    box-shadow:0 0 0 3px rgba(158,210,33,.14);
}

.pm-admin-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.pm-admin-stat{
    min-width:0;
    padding:17px 18px;
    border:1px solid #e3e9f1;
    border-radius:14px;
    background:#fff;
    box-shadow:0 5px 18px rgba(15,23,42,.04);
}

.pm-admin-stat small{
    display:block;
    color:#76869d;
    font-size:10px;
    font-weight:850;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.pm-admin-stat strong{
    display:block;
    margin-top:7px;
    color:#071c3d;
    font-size:29px;
    font-weight:950;
    line-height:1;
}

.pm-admin-stat span{
    display:block;
    margin-top:7px;
    color:#8896a9;
    font-size:11px;
}

.pm-admin-stat.lime{
    background:#f5fbdc;
    border-color:#deef9f;
}

.pm-admin-stat.blue{
    background:#eef6ff;
    border-color:#d7e8fa;
}

.pm-admin-stat.amber{
    background:#fff9e8;
    border-color:#f2e4af;
}

.pm-admin-stat.soft{
    background:#f7f9fc;
}

.pm-admin-card{
    overflow:hidden;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 20px rgba(15,23,42,.035);
}

.pm-admin-card > header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    border-bottom:1px solid #e8edf3;
    background:#fbfcfe;
}

.pm-admin-card > header h3{
    margin:0;
    color:#10213d;
    font-size:17px;
    font-weight:900;
}

.pm-admin-count{
    display:grid;
    place-items:center;
    min-width:30px;
    height:30px;
    padding:0 8px;
    border-radius:999px;
    background:#eaf2d1;
    color:#537700;
    font-size:12px;
    font-weight:900;
}

.pm-admin-message{
    padding:12px 14px;
    border-radius:11px;
    font-size:12px;
    font-weight:750;
}

.pm-admin-message.error{
    border:1px solid #f4c8c8;
    background:#fff3f3;
    color:#a52727;
}

.pm-admin-message.success{
    border:1px solid #cde7ae;
    background:#f3fae8;
    color:#4b7100;
}

.pm-admin-empty{
    margin:0;
    padding:28px 20px;
    color:#8190a6;
    text-align:center;
    font-size:13px;
}

.pm-admin-list{
    display:grid;
}

.pm-admin-application{
    display:grid;
    grid-template-columns:minmax(240px,1fr) auto minmax(260px,auto);
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border-bottom:1px solid #edf1f5;
}

.pm-admin-application:last-child{
    border-bottom:0;
}

.pm-admin-application-copy{
    min-width:0;
    display:grid;
    gap:3px;
}

.pm-admin-application-copy strong{
    color:#10213d;
    font-size:13px;
}

.pm-admin-application-copy span{
    color:#69811a;
    font-size:12px;
    font-weight:800;
}

.pm-admin-application-copy small{
    color:#7d8b9d;
    font-size:11px;
}

.pm-admin-table{
    width:100%;
}

.pm-admin-table-head,
.pm-admin-table-row{
    display:grid;
    align-items:center;
    gap:14px;
    padding:12px 18px;
}

.pm-admin-owner-table .pm-admin-table-head,
.pm-admin-owner-table .pm-admin-table-row{
    grid-template-columns:
        minmax(180px,1.2fr)
        minmax(180px,1.2fr)
        70px
        100px
        105px
        minmax(120px,.7fr);
}

.pm-admin-player-table .pm-admin-table-head,
.pm-admin-player-table .pm-admin-table-row{
    grid-template-columns:
        minmax(180px,1.4fr)
        minmax(190px,1.4fr)
        minmax(100px,.7fr)
        minmax(100px,.7fr)
        90px;
}

.pm-admin-table-head{
    min-height:42px;
    border-bottom:1px solid #dde5ee;
    background:#f7f9fc;
    color:#738298;
    font-size:10px;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.pm-admin-table-row{
    min-height:64px;
    border-bottom:1px solid #edf1f5;
    color:#40506a;
    font-size:12px;
}

.pm-admin-table-row:last-child{
    border-bottom:0;
}

.pm-admin-table-row:hover{
    background:#fbfcfe;
}

.pm-admin-table-row > span{
    min-width:0;
}

.pm-admin-person{
    display:grid;
    gap:2px;
}

.pm-admin-person strong,
.pm-admin-table-row span > strong{
    overflow:hidden;
    color:#10213d;
    font-size:12px;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pm-admin-person small,
.pm-admin-table-row span > small{
    overflow:hidden;
    color:#8491a2;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pm-admin-pill{
    display:inline-flex;
    width:max-content;
    align-items:center;
    justify-content:center;
    min-height:25px;
    padding:0 9px;
    border-radius:999px;
    font-size:9px;
    font-style:normal;
    font-weight:900;
    letter-spacing:.05em;
}

.pm-admin-pill.approved{
    background:#e9f6d5;
    color:#527600;
}

.pm-admin-pill.pending{
    background:#fff4cf;
    color:#8b6500;
}

.pm-admin-pill.rejected{
    background:#ffe7e7;
    color:#a32929;
}

.pm-admin-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
}

.pm-admin-btn{
    appearance:none;
    min-height:34px;
    padding:0 11px;
    border-radius:8px;
    cursor:pointer;
    font:inherit;
    font-size:10px;
    font-weight:850;
}

.pm-admin-btn.secondary{
    border:1px solid #cdd8e5;
    background:#fff;
    color:#17365e;
}

.pm-admin-btn.primary{
    border:1px solid #96c51e;
    background:#b8ef25;
    color:#16304e;
}

.pm-admin-btn.danger{
    border:1px solid #eccaca;
    background:#fff5f5;
    color:#a12d2d;
}

.pm-admin-btn:disabled{
    cursor:not-allowed;
    opacity:.45;
}

.pm-admin-live-switch{
    appearance:none;
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-width:76px;
    min-height:32px;
    padding:3px 8px 3px 4px;
    border:0;
    border-radius:999px;
    cursor:pointer;
    font:inherit;
}

.pm-admin-live-switch i{
    display:block;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 7px rgba(0,0,0,.15);
}

.pm-admin-live-switch b{
    font-size:9px;
    font-weight:950;
}

.pm-admin-live-switch.on{
    justify-content:flex-start;
    background:#b8ef25;
    color:#173653;
}

.pm-admin-live-switch.off{
    background:#e5eaf0;
    color:#64748b;
}

.pm-admin-live-switch:disabled{
    cursor:not-allowed;
    opacity:.45;
}

.pm-admin-footnote{
    margin:0;
    padding:0 2px;
    color:#8a96a7;
    font-size:10px;
}

@media (max-width:1000px){

    .pm-admin-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .pm-admin-owner-table .pm-admin-table-head,
    .pm-admin-player-table .pm-admin-table-head{
        display:none;
    }

    .pm-admin-owner-table .pm-admin-table-row,
    .pm-admin-player-table .pm-admin-table-row{
        grid-template-columns:1fr 1fr;
        gap:12px 18px;
        padding:15px 17px;
    }

    .pm-admin-table-row > span::before{
        content:attr(data-label);
        display:block;
        margin-bottom:3px;
        color:#8a96a7;
        font-size:8px;
        font-weight:900;
        letter-spacing:.07em;
        text-transform:uppercase;
    }
}

@media (max-width:700px){

    .pm-admin-platform{
        gap:14px;
        padding:15px;
    }

    .pm-admin-page-head{
        align-items:stretch;
        flex-direction:column;
        gap:14px;
    }

    .pm-admin-page-head h2{
        font-size:25px;
    }

    .pm-admin-search{
        width:100%;
    }

    .pm-admin-stats{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .pm-admin-stat{
        padding:14px;
    }

    .pm-admin-stat strong{
        font-size:25px;
    }

    .pm-admin-application{
        grid-template-columns:1fr;
        gap:10px;
    }

    .pm-admin-owner-table .pm-admin-table-row,
    .pm-admin-player-table .pm-admin-table-row{
        grid-template-columns:1fr;
    }

    .pm-admin-actions{
        justify-content:flex-start;
    }
}


/* ============================================================
   PM_SUPERADMIN_SETTINGS_CSS_V1
   ============================================================ */

.pm-admin-settings-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.pm-admin-settings-card{
    overflow:hidden;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 20px rgba(15,23,42,.035);
}

.pm-admin-settings-card > header{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 17px;
    border-bottom:1px solid #e8edf3;
    background:#fbfcfe;
}

.pm-admin-settings-card > header small{
    display:block;
    margin-bottom:3px;
    color:#8693a5;
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
}

.pm-admin-settings-card > header h3{
    margin:0;
    color:#0b2348;
    font-size:15px;
    font-weight:900;
}

.pm-admin-settings-icon{
    display:grid;
    place-items:center;
    width:38px;
    min-width:38px;
    height:38px;
    border-radius:11px;
    background:#edf6d3;
    color:#527800;
    font-size:18px;
    font-weight:900;
}

.pm-admin-settings-rows{
    display:grid;
}

.pm-admin-settings-rows > div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:64px;
    padding:12px 17px;
    border-bottom:1px solid #edf1f5;
}

.pm-admin-settings-rows > div:last-child{
    border-bottom:0;
}

.pm-admin-settings-rows > div > span{
    min-width:0;
    display:grid;
    gap:3px;
}

.pm-admin-settings-rows b{
    color:#263b58;
    font-size:12px;
    font-weight:850;
}

.pm-admin-settings-rows small{
    color:#8794a6;
    font-size:10px;
    line-height:1.4;
}

.pm-admin-settings-value{
    color:#0b2b59;
    font-size:17px;
    font-weight:950;
}

.pm-admin-pill.neutral{
    background:#eef1f5;
    color:#68768a;
}

.pm-admin-settings-coming{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:18px;
    border:1px dashed #cfd9e4;
    border-radius:16px;
    background:
        linear-gradient(
            120deg,
            #fbfcfe,
            #f5f9ed
        );
}

.pm-admin-settings-coming small{
    display:block;
    color:#7f8da1;
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
}

.pm-admin-settings-coming h3{
    margin:4px 0;
    color:#0b2348;
    font-size:16px;
}

.pm-admin-settings-coming p{
    max-width:620px;
    margin:0;
    color:#7d899a;
    font-size:11px;
    line-height:1.5;
}

.pm-admin-settings-future{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
}

.pm-admin-settings-future span{
    padding:7px 9px;
    border:1px solid #dde6ef;
    border-radius:999px;
    background:#fff;
    color:#5e6e83;
    font-size:9px;
    font-weight:800;
}

@media(max-width:850px){

    .pm-admin-settings-grid{
        grid-template-columns:1fr;
    }

    .pm-admin-settings-coming{
        align-items:flex-start;
        flex-direction:column;
    }

    .pm-admin-settings-future{
        justify-content:flex-start;
    }
}


/* ============================================================
   PM_SUPERADMIN_START_BILLING_CSS_V1
   ============================================================ */

.pm-admin-billing-activation{
    margin-top:2px;
}

.pm-admin-billing-table{
    width:100%;
}

.pm-admin-billing-table-head,
.pm-admin-billing-row{
    display:grid;
    grid-template-columns:
        minmax(180px,1.25fr)
        minmax(180px,1.15fr)
        120px
        minmax(145px,.9fr)
        minmax(115px,.7fr)
        135px;
    gap:14px;
    align-items:center;
    padding:12px 18px;
}

.pm-admin-billing-table-head{
    min-height:42px;
    border-bottom:1px solid #dfe7ef;
    background:#f7f9fc;
    color:#728298;
    font-size:9px;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.pm-admin-billing-row{
    min-height:70px;
    border-bottom:1px solid #edf1f5;
    color:#45566f;
    font-size:11px;
}

.pm-admin-billing-row:last-child{
    border-bottom:0;
}

.pm-admin-billing-row:hover{
    background:#fbfcfe;
}

.pm-admin-billing-row > span{
    min-width:0;
}

.pm-admin-billing-row span > strong{
    display:block;
    overflow:hidden;
    color:#102548;
    font-size:11px;
    font-weight:850;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pm-admin-billing-row span > small{
    display:block;
    overflow:hidden;
    margin-top:3px;
    color:#8491a3;
    font-size:9px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pm-admin-billing-rate-cell strong{
    color:#102548 !important;
}

.pm-admin-billing-badge{
    display:inline-flex;
    width:max-content;
    min-height:26px;
    padding:0 11px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font-size:9px;
    font-style:normal;
    font-weight:950;
    letter-spacing:.04em;
}

.pm-admin-billing-badge.trial{
    background:#edf1f6;
    color:#53647a;
}

.pm-admin-billing-badge.active{
    background:#dff7e6;
    color:#128a49;
}

.pm-admin-start-billing-button,
.pm-admin-billing-active-button{
    appearance:none;
    width:100%;
    min-height:38px;
    padding:0 12px;
    border-radius:8px;
    font:inherit;
    font-size:10px;
    font-weight:900;
}

.pm-admin-start-billing-button{
    border:0;
    cursor:pointer;
    background:
        linear-gradient(
            135deg,
            #1475f3,
            #0b60dd
        );
    color:#fff;
    box-shadow:
        0 5px 14px
        rgba(20,117,243,.18);
}

.pm-admin-start-billing-button:hover:not(:disabled){
    transform:translateY(-1px);
}

.pm-admin-start-billing-button:disabled{
    cursor:not-allowed;
    opacity:.42;
}

.pm-admin-billing-active-button{
    border:1px solid #ccebd6;
    background:#edf9f0;
    color:#19884d;
}


/* MODAL */

.pm-admin-billing-modal-backdrop{
    position:fixed;
    z-index:12000;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(10,25,47,.58);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}

.pm-admin-billing-modal{
    width:min(520px,100%);
    overflow:hidden;
    border-radius:17px;
    background:#fff;
    box-shadow:
        0 25px 70px
        rgba(0,15,40,.25);
}

.pm-admin-billing-modal > header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px;
    border-bottom:1px solid #e5ebf1;
}

.pm-admin-billing-modal > header h3{
    margin:0;
    color:#102548;
    font-size:17px;
    font-weight:900;
}

.pm-admin-billing-modal > header button{
    appearance:none;
    border:0;
    background:transparent;
    color:#7c8ba0;
    font-size:25px;
    cursor:pointer;
}

.pm-admin-billing-warning{
    display:flex;
    gap:12px;
    margin:16px 18px 0;
    padding:14px;
    border:1px solid #f2dfad;
    border-radius:11px;
    background:#fff7dc;
}

.pm-admin-billing-warning > i{
    display:grid;
    place-items:center;
    width:28px;
    min-width:28px;
    height:28px;
    border-radius:50%;
    background:#ffad1f;
    color:#fff;
    font-style:normal;
    font-weight:950;
}

.pm-admin-billing-warning b{
    color:#3a321f;
    font-size:11px;
}

.pm-admin-billing-warning p{
    margin:4px 0 0;
    color:#726544;
    font-size:10px;
    line-height:1.45;
}

.pm-admin-billing-modal-details{
    display:grid;
    gap:6px;
    margin:14px 18px 18px;
    padding:15px;
    border:1px solid #e1e8f0;
    border-radius:11px;
    background:#fbfcfe;
}

.pm-admin-billing-modal-details small{
    margin-top:8px;
    color:#7d8da1;
    font-size:9px;
    font-weight:850;
}

.pm-admin-billing-modal-details small:first-child{
    margin-top:0;
}

.pm-admin-billing-modal-details strong{
    color:#102548;
    font-size:12px;
}

.pm-admin-billing-modal-details > span{
    color:#718198;
    font-size:10px;
}

.pm-admin-billing-modal-details select{
    width:100%;
    min-height:42px;
    padding:0 11px;
    border:1px solid #d3dde8;
    border-radius:8px;
    outline:0;
    background:#fff;
    color:#102548;
    font:inherit;
    font-size:11px;
    font-weight:750;
}

.pm-admin-billing-modal-details select:focus{
    border-color:#1680ee;
    box-shadow:
        0 0 0 3px
        rgba(22,128,238,.10);
}

.pm-admin-billing-modal > footer{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:14px 18px 18px;
    border-top:1px solid #e6ecf2;
}

.pm-admin-billing-modal > footer button{
    min-height:42px;
    border-radius:8px;
    font:inherit;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}

.pm-admin-billing-cancel{
    border:1px solid #ccd7e3;
    background:#fff;
    color:#17365d;
}

.pm-admin-billing-confirm{
    border:0;
    background:
        linear-gradient(
            135deg,
            #12a655,
            #089347
        );
    color:#fff;
}

.pm-admin-billing-modal > footer button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

@media(max-width:1050px){

    .pm-admin-billing-table-head{
        display:none;
    }

    .pm-admin-billing-row{
        grid-template-columns:1fr 1fr;
        gap:13px 18px;
        padding:15px 17px;
    }

    .pm-admin-billing-row > span::before{
        content:attr(data-label);
        display:block;
        margin-bottom:4px;
        color:#8a97a8;
        font-size:8px;
        font-weight:900;
        letter-spacing:.07em;
        text-transform:uppercase;
    }
}

@media(max-width:650px){

    .pm-admin-billing-row{
        grid-template-columns:1fr;
    }

    .pm-admin-billing-modal-backdrop{
        padding:12px;
    }

    .pm-admin-billing-modal > footer{
        grid-template-columns:1fr;
    }
}

