/*
 * WCPEC Tasees Portal - Enterprise 5.4.0 UI Layer
 * RTL, high contrast, official WCPEC visual identity.
 */

:root{
    --wcpec-navy:#071c33;
    --wcpec-navy-2:#0b2c4d;
    --wcpec-blue:#123b63;
    --wcpec-gold:#b88a2b;
    --wcpec-gold-2:#d6b15f;
    --wcpec-bg:#f4f7fb;
    --wcpec-card:#ffffff;
    --wcpec-text:#182536;
    --wcpec-muted:#667085;
    --wcpec-border:#d9e2ef;
    --wcpec-danger:#b42318;
    --wcpec-success:#027a48;
    --wcpec-shadow:0 18px 45px rgba(7,28,51,.12);
}

.wcpec-enterprise-wrap,
.wcpec-enterprise-dashboard,
.wcpec-enterprise-verify{
    direction:rtl;
    text-align:right;
    font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;
    color:var(--wcpec-text);
}

.wcpec-enterprise-wrap h1,
.wcpec-enterprise-dashboard h2,
.wcpec-enterprise-dashboard h3,
.wcpec-enterprise-verify h2{
    color:var(--wcpec-navy);
    font-weight:800;
    letter-spacing:-.02em;
}

.wcpec-enterprise-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin:18px 0;
}

.wcpec-enterprise-card,
.wcpec-enterprise-panel,
.wcpec-enterprise-verify{
    background:var(--wcpec-card);
    border:1px solid var(--wcpec-border);
    border-radius:18px;
    box-shadow:var(--wcpec-shadow);
}

.wcpec-enterprise-card{
    padding:20px;
    min-height:105px;
    position:relative;
    overflow:hidden;
}

.wcpec-enterprise-card:before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:5px;
    background:linear-gradient(90deg,var(--wcpec-navy),var(--wcpec-gold));
}

.wcpec-enterprise-card span{
    display:block;
    color:var(--wcpec-muted);
    font-size:14px;
    margin-bottom:10px;
}

.wcpec-enterprise-card strong{
    color:var(--wcpec-navy);
    font-size:24px;
    line-height:1.4;
    word-break:break-word;
}

.wcpec-enterprise-panel{
    padding:22px;
    margin:18px 0;
}

.wcpec-enterprise-hero{
    color:#fff;
    background:linear-gradient(135deg,var(--wcpec-navy),var(--wcpec-blue));
    border-radius:22px;
    padding:26px;
    margin:0 0 18px;
    box-shadow:var(--wcpec-shadow);
}

.wcpec-enterprise-hero h2,
.wcpec-enterprise-hero p{
    color:#fff;
    margin:0;
}

.wcpec-enterprise-hero p{
    margin-top:8px;
    opacity:.92;
}

.wcpec-enterprise-table{
    border:1px solid var(--wcpec-border)!important;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
}

.wcpec-enterprise-table th{
    background:var(--wcpec-navy)!important;
    color:#fff!important;
    font-weight:700!important;
}

.wcpec-enterprise-table td{
    color:var(--wcpec-text)!important;
    vertical-align:middle;
}

.wcpec-account-switcher{
    position:relative;
    display:inline-block;
    margin:0 0 18px;
    z-index:10;
}

.wcpec-account-switcher-btn{
    border:0;
    cursor:pointer;
    border-radius:16px;
    padding:12px 18px;
    background:linear-gradient(135deg,var(--wcpec-navy),var(--wcpec-blue));
    color:#fff;
    min-width:240px;
    box-shadow:var(--wcpec-shadow);
    text-align:right;
}

.wcpec-account-switcher-btn span{
    display:block;
    font-size:12px;
    color:rgba(255,255,255,.8);
}

.wcpec-account-switcher-btn strong{
    display:block;
    font-size:18px;
    color:#fff;
}

.wcpec-account-switcher-menu{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:320px;
    max-width:90vw;
    background:#fff;
    border:1px solid var(--wcpec-border);
    border-radius:18px;
    box-shadow:0 24px 70px rgba(7,28,51,.22);
    padding:12px;
}

.wcpec-account-switcher:hover .wcpec-account-switcher-menu,
.wcpec-account-switcher.is-open .wcpec-account-switcher-menu{
    display:block;
}

.wcpec-account-switcher-menu h4{
    margin:4px 8px 10px;
    color:var(--wcpec-navy);
}

.wcpec-switch-account{
    display:block;
    width:100%;
    padding:12px;
    border:1px solid var(--wcpec-border);
    background:#fff;
    color:var(--wcpec-text);
    border-radius:14px;
    margin:7px 0;
    text-align:right;
    cursor:pointer;
}

.wcpec-switch-account:hover,
.wcpec-switch-account.is-active{
    border-color:var(--wcpec-gold);
    background:#fff9eb;
}

.wcpec-switch-account span{
    display:block;
    font-weight:800;
    color:var(--wcpec-navy);
}

.wcpec-switch-account small{
    color:var(--wcpec-muted);
}

.wcpec-enterprise-notice{
    padding:14px 16px;
    border-radius:14px;
    background:#fff7ed;
    color:#9a3412;
    border:1px solid #fed7aa;
    font-family:"Tajawal","Cairo",Arial,sans-serif;
}

.wcpec-activity-tree{
    display:grid;
    gap:10px;
}

.wcpec-activity-node{
    border:1px solid var(--wcpec-border);
    border-right:5px solid var(--wcpec-gold);
    border-radius:14px;
    padding:14px;
    background:#fff;
}

.wcpec-activity-node strong{
    display:block;
    color:var(--wcpec-navy);
    font-size:16px;
}

.wcpec-activity-node span{
    display:block;
    color:var(--wcpec-muted);
    margin-top:5px;
}

.wcpec-enterprise-verify{
    padding:28px;
    max-width:760px;
    margin:20px auto;
}

.wcpec-enterprise-verify-form{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.wcpec-enterprise-verify-form input{
    flex:1;
    min-height:48px;
    border:1px solid var(--wcpec-border);
    border-radius:14px;
    padding:0 14px;
    color:var(--wcpec-text);
    background:#fff;
}

.wcpec-enterprise-verify-form button{
    min-height:48px;
    border:0;
    border-radius:14px;
    padding:0 24px;
    color:#fff;
    background:var(--wcpec-navy);
    cursor:pointer;
    font-weight:800;
}

.wcpec-enterprise-modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(7,28,51,.62);
    z-index:999998;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.wcpec-enterprise-modal{
    width:min(560px,96vw);
    background:#fff;
    color:var(--wcpec-text);
    border-radius:22px;
    box-shadow:0 28px 90px rgba(0,0,0,.32);
    padding:24px;
    direction:rtl;
    text-align:right;
    font-family:"Tajawal","Cairo",Arial,sans-serif;
}

.wcpec-enterprise-modal h3{
    color:var(--wcpec-navy);
    margin:0 0 10px;
}

.wcpec-enterprise-modal p{
    color:var(--wcpec-text);
    line-height:1.8;
}

.wcpec-enterprise-modal-actions{
    display:flex;
    gap:10px;
    justify-content:flex-start;
    margin-top:18px;
}

.wcpec-enterprise-modal-actions button{
    border:0;
    border-radius:13px;
    min-height:44px;
    padding:0 18px;
    cursor:pointer;
    font-weight:800;
}

.wcpec-enterprise-modal-actions .primary{
    background:var(--wcpec-navy);
    color:#fff;
}

.wcpec-enterprise-modal-actions .secondary{
    background:#edf2f7;
    color:var(--wcpec-navy);
}

@media(max-width:640px){
    .wcpec-enterprise-verify-form{
        flex-direction:column;
    }
    .wcpec-account-switcher,
    .wcpec-account-switcher-btn{
        width:100%;
    }
}



/* FIX HEADER ACCOUNT OVERLAP */
.tasees-current-account,
.wcpec-current-account-card,
.account-switcher-box,
.top-account-box{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:flex-start !important;
    gap:6px !important;
    min-height:88px !important;
    padding:16px 22px !important;
    overflow:hidden !important;
}

.tasees-current-account *,
.wcpec-current-account-card *,
.account-switcher-box *,
.top-account-box *{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;
}

.account-title,
.current-account-title{
    font-size:12px !important;
    line-height:1.3 !important;
    color:#7f8b99 !important;
    margin:0 !important;
}

.account-name,
.current-account-name{
    font-size:21px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    color:#061c3d !important;
    margin:0 !important;
}

.account-id,
.current-account-id{
    font-size:11px !important;
    line-height:1.3 !important;
    color:#0d8b68 !important;
    margin:0 !important;
    direction:ltr !important;
}

