/* TWP Workforce My Clients. Sidebar/navigation styles are inherited unchanged from employee-dashboard.css. */

/* =========================================================
   CLIENT PAGE — CENTRAL CONTENT TYPOGRAPHY STANDARD
   Sidebar + global header intentionally untouched.
   ========================================================= */

.twp-wf-clients-content{
    padding-top:0;
}

.twp-wf-client-page-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:17px;
}

.twp-wf-client-kpis{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    flex:1;
}

.twp-wf-client-kpi{
    background:#fff;
    border:1px solid #e1e8f0;
    border-radius:13px;
    box-shadow:0 3px 12px rgba(24,55,84,.035);
    padding:16px 17px;
    display:flex;
    align-items:center;
    gap:13px;
    min-height:94px;
}

.twp-wf-client-kpi-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.twp-wf-client-kpi-icon svg{
    width:24px;
    height:24px;
}

.twp-wf-client-kpi small,
.twp-wf-client-kpi strong,
.twp-wf-client-kpi span{
    display:block;
}

/* KPI typography */
.twp-wf-client-kpi small{
    font-size:13px;
    color:#31455e;
    margin-bottom:5px;
}

.twp-wf-client-kpi strong{
    font-size:28px;
    line-height:1;
    color:#1769df;
}

.twp-wf-client-kpi span{
    font-size:11px;
    color:#6d7d90;
    margin-top:4px;
}

.twp-wf-client-kpi.blue .twp-wf-client-kpi-icon{
    background:#e5f1ff;
    color:#1769df;
}

.twp-wf-client-kpi.green .twp-wf-client-kpi-icon{
    background:#e2f7ec;
    color:#14925d;
}

.twp-wf-client-kpi.green strong{
    color:#14925d;
}

.twp-wf-client-kpi.orange .twp-wf-client-kpi-icon{
    background:#fff0d9;
    color:#f18400;
}

.twp-wf-client-kpi.orange strong{
    color:#f18400;
}

.twp-wf-client-kpi.purple .twp-wf-client-kpi-icon{
    background:#eee8ff;
    color:#7254d7;
}

.twp-wf-client-kpi.purple strong{
    color:#7254d7;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.twp-wf-client-actions{
    display:flex;
    gap:9px;
    padding-top:0;
}

.twp-wf-client-actions a{
    height:44px;
    padding:0 15px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.twp-wf-client-outline-btn{
    border:1px solid #5a98e8;
    color:#1769df;
    background:#fff;
}

.twp-wf-client-primary-btn{
    border:1px solid #1769df;
    color:#fff;
    background:#1769df;
}


/* =========================================================
   SEARCH + FILTERS
   ========================================================= */

.twp-wf-client-tools{
    padding:13px 13px 12px;
    margin-bottom:17px;
}

.twp-wf-client-search-row{
    display:flex;
    gap:10px;
}

.twp-wf-client-search{
    height:43px;
    border:1px solid #dfe6ee;
    border-radius:8px;
    display:flex;
    align-items:center;
    flex:1;
    background:#fff;
}

.twp-wf-client-search>span{
    width:44px;
    display:flex;
    justify-content:center;
    color:#728196;
}

.twp-wf-client-search svg{
    width:20px;
    height:20px;
}

.twp-wf-client-search input{
    border:0;
    outline:0;
    width:100%;
    height:100%;
    font-size:13px;
    color:#243951;
    background:transparent;
}

.twp-wf-client-search input::placeholder{
    color:#8b98a9;
}

.twp-wf-client-search-btn{
    width:96px;
    border:0;
    border-radius:8px;
    background:#1769df;
    color:#fff;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.twp-wf-client-filters{
    display:grid;
    grid-template-columns:repeat(6,minmax(110px,1fr)) auto;
    gap:8px;
    margin-top:10px;
    align-items:end;
}

.twp-wf-filter{
    display:block;
    min-width:0;
}

.twp-wf-filter>span{
    display:block;
    font-size:12px;
    color:#6f7e91;
    margin:0 0 4px 3px;
}

.twp-wf-filter select{
    width:100%;
    height:37px;
    border:1px solid #dfe6ee;
    border-radius:7px;
    background:#fff;
    color:#32475f;
    font-size:13px;
    padding:0 26px 0 10px;
    outline:none;
}

.twp-wf-reset-filters{
    height:37px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#1769df;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    padding:0 4px;
}


/* =========================================================
   CLIENT TABLE
   ========================================================= */

.twp-wf-client-table-card{
    padding:0;
    overflow:hidden;
}

.twp-wf-client-table-card .twp-wf-table-wrap{
    overflow-x:auto;
}

.twp-wf-client-table{
    width:100%;
    min-width:1320px;
    border-collapse:collapse;
}

.twp-wf-client-table th{
    background:#f8fafc;
    color:#617189;
    font-size:12px;
    font-weight:600;
    text-align:left;
    padding:13px 9px;
    border-bottom:1px solid #e8edf3;
    white-space:nowrap;
}

.twp-wf-client-table td{
    padding:12px 9px;
    border-bottom:1px solid #edf1f5;
    color:#273d56;
    font-size:13px;
    vertical-align:middle;
    white-space:nowrap;
}

.twp-wf-client-table tr:last-child td{
    border-bottom:0;
}

.twp-wf-client-table .check-col{
    width:35px;
    padding-left:17px;
    padding-right:3px;
}

.twp-wf-checkbox{
    display:inline-block;
    width:15px;
    height:15px;
    border:1px solid #b9c6d5;
    border-radius:4px;
    background:#fff;
}

.twp-wf-client-name{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:155px;
}

.twp-wf-client-initial{
    width:31px;
    height:31px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:700;
    color:#fff;
}

.twp-wf-client-initial.a{background:#6c92ef}
.twp-wf-client-initial.b{background:#6e5dd7}
.twp-wf-client-initial.c{background:#33a77a}
.twp-wf-client-initial.d{background:#e69542}
.twp-wf-client-initial.e{background:#55a1d6}
.twp-wf-client-initial.f{background:#9a70cf}

.twp-wf-client-name strong,
.twp-wf-client-name small,
.twp-wf-contact strong,
.twp-wf-contact small,
.twp-wf-last strong,
.twp-wf-last small{
    display:block;
}

.twp-wf-client-name strong,
.twp-wf-contact strong,
.twp-wf-last strong{
    font-size:13px;
    color:#20364f;
}

.twp-wf-client-name small,
.twp-wf-contact small,
.twp-wf-last small{
    font-size:11px;
    color:#8491a2;
    margin-top:3px;
}

.twp-wf-contact{
    min-width:110px;
}


/* =========================================================
   STATUS / STAGE / PRIORITY
   ========================================================= */

.twp-wf-stage,
.twp-wf-priority,
.twp-wf-status{
    display:inline-block;
    border-radius:6px;
    padding:5px 8px;
    font-size:11px;
    font-weight:700;
}

.twp-wf-stage.new{
    background:#e6f0ff;
    color:#1769c4;
}

.twp-wf-stage.contacted,
.twp-wf-stage.connected,
.twp-wf-stage.discussion{
    background:#eaf1ff;
    color:#3e67ae;
}

.twp-wf-stage.qualified{
    background:#e3f7ed;
    color:#18825a;
}

.twp-wf-stage.meeting{
    background:#eaf4ff;
    color:#1970bd;
}

.twp-wf-stage.requirement{
    background:#fff0dc;
    color:#dc7b00;
}

.twp-wf-stage.proposal{
    background:#eee7ff;
    color:#7453ce;
}

.twp-wf-stage.negotiation{
    background:#fff0db;
    color:#df7900;
}

.twp-wf-stage.won{
    background:#def6e9;
    color:#168353;
}

.twp-wf-stage.lost{
    background:#ffe5e7;
    color:#db3846;
}

.twp-wf-value{
    font-size:13px;
    color:#243b55;
}

.twp-wf-last{
    display:flex;
    align-items:center;
    gap:7px;
}

.twp-wf-last>span{
    color:#1769df;
}

.twp-wf-last svg{
    width:17px;
    height:17px;
}

.twp-wf-next-action{
    display:inline-block;
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
    color:#31475f;
}

.twp-wf-follow-date{
    display:inline-flex;
    flex-direction:column;
    gap:2px;
    font-size:12px;
    font-weight:700;
}

.twp-wf-follow-date small{
    font-size:11px;
    font-weight:500;
    color:#7b899a;
}

.twp-wf-follow-date.overdue{
    color:#e22f42;
}

.twp-wf-follow-date.today{
    color:#e88100;
}

.twp-wf-follow-date.tomorrow{
    color:#db7800;
}

.twp-wf-follow-date.upcoming{
    color:#2d659e;
}

.twp-wf-follow-date.muted{
    color:#9aa5b3;
    font-weight:500;
}

.twp-wf-priority.high{
    background:#ffe6e8;
    color:#e13b48;
}

.twp-wf-priority.normal{
    background:#fff1d8;
    color:#df8500;
}

.twp-wf-priority.low{
    background:#edf1f5;
    color:#66788e;
}

.twp-wf-status.active{
    background:#ddf5e9;
    color:#17885a;
}

.twp-wf-status.closed{
    background:#e7f0ff;
    color:#1769d4;
}

.twp-wf-status.inactive{
    background:#edf1f5;
    color:#61748a;
}


/* =========================================================
   ROW ACTIONS
   ========================================================= */

.twp-wf-client-row-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.twp-wf-client-row-actions a{
    display:inline-flex;
    align-items:center;
    height:31px;
    border:1px solid #c9d8e8;
    border-radius:7px;
    padding:0 10px;
    color:#1769df;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    background:#fff;
}

.twp-wf-more-btn{
    border:0;
    background:transparent;
    color:#61748a;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    padding:0 3px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.twp-wf-client-empty{
    text-align:center!important;
    padding:60px 20px!important;
}

.twp-wf-client-empty .twp-wf-empty-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#edf4fc;
    color:#1769df;
    margin:0 auto 10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.twp-wf-client-empty svg{
    width:25px;
    height:25px;
}

.twp-wf-client-empty strong,
.twp-wf-client-empty span{
    display:block;
}

.twp-wf-client-empty strong{
    font-size:14px;
    color:#263d56;
}

.twp-wf-client-empty span{
    font-size:12px;
    color:#7a899b;
    margin-top:5px;
}


/* =========================================================
   TABLE FOOTER / PAGINATION
   ========================================================= */

.twp-wf-client-table-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 17px;
    border-top:1px solid #edf1f5;
    color:#748398;
    font-size:11px;
}

.twp-wf-pagination{
    display:flex;
    gap:6px;
    align-items:center;
}

.twp-wf-pagination a,
.twp-wf-pagination span{
    width:31px;
    height:31px;
    border:1px solid #dce4ed;
    border-radius:7px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#52667e;
    background:#fff;
    font-size:12px;
}

.twp-wf-pagination .current{
    background:#1769df;
    border-color:#1769df;
    color:#fff;
}

.twp-wf-pagination .disabled{
    opacity:.4;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1250px){

    .twp-wf-client-page-head{
        flex-direction:column;
    }

    .twp-wf-client-kpis{
        width:100%;
    }

    .twp-wf-client-actions{
        align-self:flex-end;
    }

    .twp-wf-client-filters{
        grid-template-columns:repeat(3,1fr);
    }

    .twp-wf-reset-filters{
        justify-content:flex-start;
    }
}


/* Tablet / mobile */
@media(max-width:850px){

    .twp-wf-client-kpis{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-client-actions{
        align-self:stretch;
    }

    .twp-wf-client-actions a{
        flex:1;
    }

    .twp-wf-client-filters{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-client-search-btn{
        width:84px;
    }

    /* Central content typography */
    .twp-wf-client-kpi small{
        font-size:12px;
    }

    .twp-wf-client-kpi strong{
        font-size:24px;
    }

    .twp-wf-client-kpi span{
        font-size:11px;
    }

    .twp-wf-client-search input{
        font-size:13px;
    }

    .twp-wf-client-search-btn{
        font-size:13px;
    }

    .twp-wf-filter>span{
        font-size:12px;
    }

    .twp-wf-filter select{
        font-size:13px;
    }

    .twp-wf-reset-filters{
        font-size:12px;
    }
}


/* Small mobile */
@media(max-width:560px){

    .twp-wf-client-kpis{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .twp-wf-client-kpi{
        min-height:78px;
        padding:11px;
        gap:9px;
    }

    .twp-wf-client-kpi-icon{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .twp-wf-client-kpi-icon svg{
        width:20px;
        height:20px;
    }

    /* Standard mobile KPI typography */
    .twp-wf-client-kpi small{
        font-size:12px;
    }

    .twp-wf-client-kpi strong{
        font-size:23px;
    }

    .twp-wf-client-kpi span{
        font-size:11px;
    }

    .twp-wf-client-search-row{
        gap:7px;
    }

    .twp-wf-client-search-btn{
        width:70px;
        font-size:13px;
    }

    .twp-wf-client-search input{
        font-size:13px;
    }

    .twp-wf-client-filters{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-filter>span{
        font-size:12px;
    }

    .twp-wf-filter select{
        font-size:13px;
    }

    .twp-wf-client-table-footer{
        align-items:flex-start;
        gap:10px;
        flex-direction:column;
        font-size:11px;
    }

    .twp-wf-pagination{
        width:100%;
        justify-content:flex-end;
    }

    .twp-wf-pagination a,
    .twp-wf-pagination span{
        font-size:12px;
    }
}


/* =========================================================
   MOBILE ACTION CORRECTION
   ========================================================= */

@media(max-width:700px){

    .twp-wf-client-actions{
        width:100%;
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .twp-wf-client-actions a{
        width:100%;
        min-width:0;
        min-height:44px;
        box-sizing:border-box;
        touch-action:manipulation;
        -webkit-tap-highlight-color:rgba(23,105,223,.10);
        font-size:13px;
    }
}


@media(max-width:420px){

    .twp-wf-client-actions{
        grid-template-columns:1fr;
    }
}