:root{
    --biz-primary:#2563eb;
    --biz-primary-dark:#1d4ed8;
    --biz-bg:#f5f7fb;
    --biz-card:#ffffff;
    --biz-border:#e5e7eb;
    --biz-text:#1f2937;
    --biz-muted:#6b7280;
    --biz-success:#16a34a;
    --biz-radius:16px;
    --biz-shadow:0 10px 25px rgba(15,23,42,.06);
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

.biz-dashboard-layout{
    display:flex;
    gap:30px;
    align-items:flex-start;
    margin:30px 0;
}

.biz-sidebar-column{
    width:290px;
    flex-shrink:0;
}

.biz-main-column{
    flex:1;
    min-width:0;
}

.biz-dashboard-content{
    width:100%;
}

.biz-dashboard{
    width:100%;
}

.biz-sidebar{
    background:#fff;
    border:1px solid var(--biz-border);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--biz-shadow);
    position:sticky;
    top:30px;
}

.biz-sidebar-header{
    text-align:center;
    padding:35px 25px;
    border-bottom:1px solid var(--biz-border);
}

.biz-profile-image{
    width:95px;
    height:95px;
    margin:0 auto 18px;
}

.biz-profile-image img{
    width:95px;
    height:95px;
    border-radius:50%;
    border:4px solid #fff;
    box-shadow:0 8px 18px rgba(0,0,0,.12);
    object-fit:cover;
}

.biz-profile-name{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:var(--biz-text);
}

.biz-profile-email{
    margin:8px 0 0;
    font-size:14px;
    color:var(--biz-muted);
    word-break:break-word;
}

.biz-menu{
    list-style:none;
    margin:0;
    padding:18px 0;
}

.biz-menu li{
    margin:0;
}

.biz-menu li a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-decoration:none;
    padding:14px 25px;
    color:var(--biz-text);
    font-size:15px;
    font-weight:500;
    transition:.25s;
    position:relative;
}

.biz-menu li a:hover{
    background:#f8fafc;
    color:var(--biz-primary);
}

.biz-menu li.is-active a,
.biz-menu li.active a{
    background:#eff6ff;
    color:var(--biz-primary);
    font-weight:700;
    border-left:4px solid var(--biz-primary);
}

.biz-menu li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:var(--biz-primary);
    transition:.3s;
}

.biz-menu li a:hover::after{
    width:100%;
}

.biz-count{
    min-width:26px;
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:30px;
    background:var(--biz-primary);
    color:#fff;
    font-size:12px;
    font-weight:700;
}

.biz-profile-banner{
    background:#fff;
    border:1px solid var(--biz-border);
    border-radius:18px;
    padding:30px;
    margin-bottom:28px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:var(--biz-shadow);
    gap:25px;
}

.biz-profile-left{
    display:flex;
    align-items:center;
    gap:22px;
}

.biz-avatar img{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.biz-profile-info h2{
    margin:0;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    font-size:28px;
    font-weight:700;
    color:var(--biz-text);
}

.biz-profile-info p{
    margin:10px 0;
    color:var(--biz-muted);
    font-size:15px;
}

.biz-profile-info span{
    color:#64748b;
    font-size:14px;
}

.biz-badge{
    display:inline-flex;
    align-items:center;
    padding:5px 12px;
    border-radius:50px;
    background:#dcfce7;
    color:var(--biz-success);
    font-size:12px;
    font-weight:700;
}

.biz-btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    padding:13px 24px;
    border-radius:10px;
    background:var(--biz-primary);
    color:#fff;
    font-weight:600;
    transition:.25s;
}

.biz-btn-primary:hover{
    background:var(--biz-primary-dark);
    color:#fff;
}

.biz-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:30px;
}

.biz-card{
    background:#fff;
    border:1px solid var(--biz-border);
    border-radius:18px;
    padding:26px;
    box-shadow:var(--biz-shadow);
    transition:.25s;
}

.biz-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(15,23,42,.10);
}

.biz-card h5{
    margin:0;
    color:var(--biz-muted);
    font-size:14px;
    font-weight:600;
}

.biz-card h2{
    margin:14px 0 0;
    font-size:34px;
    font-weight:700;
    color:var(--biz-text);
    line-height:1;
}

.biz-actions{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:30px;
}

.biz-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 24px;
    background:var(--biz-primary);
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    transition:all .25s ease;
    border:1px solid var(--biz-primary);
}

.biz-action-btn:hover{
    background:var(--biz-primary-dark);
    border-color:var(--biz-primary-dark);
    color:#fff;
}

.biz-action-btn.secondary{
    background:#fff;
    color:var(--biz-primary);
    border:1px solid var(--biz-primary);
}

.biz-action-btn.secondary:hover{
    background:#eff6ff;
}

.biz-table-card{
    background:#fff;
    border:1px solid var(--biz-border);
    border-radius:18px;
    box-shadow:var(--biz-shadow);
    overflow:hidden;
}

.biz-table-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:22px 26px;
    border-bottom:1px solid var(--biz-border);
}

.biz-table-header h3{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:var(--biz-text);
}

.biz-table{
    width:100%;
    border-collapse:collapse;
}

.biz-table thead{
    background:#f8fafc;
}

.biz-table th{
    text-align:left;
    padding:16px 22px;
    font-size:14px;
    font-weight:700;
    color:#475569;
    border-bottom:1px solid var(--biz-border);
}

.biz-table td{
    padding:18px 22px;
    border-bottom:1px solid #edf2f7;
    font-size:15px;
    color:var(--biz-text);
    vertical-align:middle;
}

.biz-table tbody tr:last-child td{
    border-bottom:none;
}

.biz-table tbody tr{
    transition:background .25s ease;
}

.biz-table tbody tr:hover{
    background:#f8fbff;
}

.biz-table td a{
    color:var(--biz-primary);
    text-decoration:none;
    font-weight:600;
}

.biz-table td a:hover{
    text-decoration:underline;
}

.biz-table td:nth-child(2){
    font-weight:600;
}

.biz-table td:nth-child(2)::before{
    content:"";
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    margin-right:8px;
    vertical-align:middle;
}

.biz-table td[colspan]{
    text-align:center;
    color:var(--biz-muted);
    padding:45px 20px;
    font-size:15px;
}

.rtcl-notices-wrapper,
.woocommerce-notices-wrapper{
    margin-bottom:25px;
}

.rtcl-notice,
.rtcl-success,
.rtcl-error,
.rtcl-warning{
    border-radius:12px;
    padding:15px 18px;
    margin-bottom:15px;
}

.rtcl-success{
    background:#ecfdf5;
    border:1px solid #bbf7d0;
}

.rtcl-error{
    background:#fef2f2;
    border:1px solid #fecaca;
}

.rtcl-warning{
    background:#fffbeb;
    border:1px solid #fde68a;
}

.biz-dashboard .card,
.biz-dashboard .rtcl-card{
    background:#fff;
    border:1px solid var(--biz-border);
    border-radius:16px;
    box-shadow:var(--biz-shadow);
}

.text-center{
    text-align:center;
}

.text-right{
    text-align:right;
}

.mt-20{
    margin-top:20px;
}

.mb-20{
    margin-bottom:20px;
}

.hidden{
    display:none;
}

.biz-dashboard a.biz-btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 24px;
    background:#2563eb;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.biz-dashboard a.biz-btn-primary:hover{
    background:#1d4ed8;
    color:#fff;
}

.biz-dashboard a.biz-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 24px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
}

.biz-dashboard a.biz-action-btn.secondary{
    background:#fff;
    color:#2563eb;
    border:1px solid #2563eb;
}

/* ==========================================================
   RESPONSIVE FIX — single source of truth
   (covers both .biz-* grid AND the theme's real
   .rtcl-MyAccount-* wrapper found via inspection)
========================================================== */

html, body{
    overflow-x:hidden;
    width:100%;
}

img{
    max-width:100%;
    height:auto;
}

.biz-dashboard-layout,
.biz-sidebar-column,
.biz-main-column,
.biz-dashboard-content,
.biz-dashboard{
    max-width:100%;
    box-sizing:border-box;
}

.biz-profile-banner,
.biz-stats,
.biz-actions,
.biz-table-card,
.biz-card,
.biz-sidebar{
    max-width:100%;
    box-sizing:border-box;
}

.biz-profile-banner *,
.biz-actions *,
.biz-stats *{
    box-sizing:border-box;
    max-width:100%;
}

/* ---- The real WordPress account wrapper ---- */
/* min-width:0 is the key fix: flex/grid items default to
   min-width:auto, which stops them shrinking below their
   content's natural width (e.g. the table). Without this,
   width:100% alone does not work. */

.rtcl-MyAccount-wrap{
    max-width:100%;
    box-sizing:border-box;
}

.rtcl-MyAccount-navigation,
.rtcl-MyAccount-content{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}

@media (max-width:1400px){
    .biz-stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:1024px){
    .biz-dashboard-layout{
        flex-direction:column;
    }
    .biz-sidebar-column{
        width:100%;
    }
    .biz-sidebar{
        position:relative;
        top:0;
    }
    .biz-main-column{
        width:100%;
    }
    .biz-profile-banner{
        flex-direction:column;
        align-items:flex-start;
        text-align:left;
    }
    .biz-profile-left{
        width:100%;
    }
    .biz-profile-right{
        width:100%;
    }
    .biz-btn-primary{
        width:100%;
    }
    .biz-actions{
        flex-direction:column;
    }
    .biz-action-btn{
        width:100%;
    }
}

@media (max-width:768px){

    .biz-dashboard-layout{
        display:flex;
        flex-direction:column;
        width:100%;
        gap:20px;
    }
    .biz-sidebar-column,
    .biz-main-column{
        width:100%;
        min-width:0;
        flex:1 1 100%;
    }

    /* Real theme wrapper — stack nav above content */
    .rtcl-MyAccount-wrap{
        display:flex;
        flex-direction:column;
        width:100%;
        gap:20px;
    }
    .rtcl-MyAccount-navigation{
        width:100%;
        max-width:100%;
        position:relative;
    }
    .rtcl-MyAccount-content{
        width:100%;
        max-width:100%;
        margin:0;
        padding:15px;
    }

    .biz-profile-banner{
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:20px;
        gap:20px;
    }
    .biz-profile-left{
        flex-direction:column;
        text-align:center;
        width:100%;
    }
    .biz-profile-info{
        width:100%;
    }
    .biz-profile-info h2{
        justify-content:center;
        font-size:22px;
    }
    .biz-profile-info p,
    .biz-profile-info span{
        text-align:center;
        display:block;
    }
    .biz-profile-right{
        width:100%;
        margin-top:0;
    }
    .biz-avatar img{
        width:90px;
        height:90px;
    }
    .biz-btn-primary{
        width:100%;
    }

    .biz-stats{
        grid-template-columns:1fr;
        gap:15px;
    }
    .biz-card{
        padding:20px;
    }
    .biz-card h2{
        font-size:28px;
    }

    .biz-actions{
        flex-direction:column;
        gap:15px;
    }
    .biz-action-btn{
        width:100%;
    }

    .biz-sidebar-header{
        padding:25px 20px;
    }
    .biz-profile-image img{
        width:80px;
        height:80px;
    }
    .biz-menu li a{
        padding:14px 18px;
        font-size:14px;
    }

    /* Table scrolls inside its own card, not the whole page */
    .biz-table-card{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        max-width:100%;
    }
    .biz-table{
        min-width:600px;
    }
    .biz-table th,
    .biz-table td{
        white-space:nowrap;
    }
}

@media (max-width:480px){
    .biz-profile-banner{
        border-radius:14px;
        padding:18px;
    }
    .biz-card{
        border-radius:14px;
    }
    .biz-table-card{
        border-radius:14px;
    }
    .biz-sidebar{
        border-radius:14px;
    }
    .biz-profile-name{
        font-size:18px;
    }
    .biz-profile-email{
        font-size:13px;
    }
    .biz-profile-info h2{
        font-size:20px;
    }
    .biz-btn-primary,
    .biz-action-btn{
        padding:12px 18px;
        font-size:14px;
    }
}

/* =========================
   Mobile Navigation Fix
========================= */

@media (max-width:768px){

    .rtcl-MyAccount-navigation{
        display:none;
    }

    .rtcl-MyAccount-navigation.active{
        display:block;
        margin-top:15px;
    }

}

@media (max-width:768px){

    .rtcl-MyAccount-navigation{
        display:none !important;
    }

    .rtcl-MyAccount-navigation.active{
        display:block !important;
    }

}

/* Remove underline from dashboard buttons */

.biz-btn-primary,
.biz-btn-primary:hover,
.biz-btn-primary:focus,
.biz-action-btn,
.biz-action-btn:hover,
.biz-action-btn:focus,
.biz-action-btn.secondary,
.biz-action-btn.secondary:hover,
.biz-action-btn.secondary:focus {

    text-decoration: none !important;

}