/* =========================================================
   TWP WORKFORCE — EMPLOYEE INCENTIVES
   Typography balanced to match My Clients / Follow-ups
   Header + sidebar intentionally untouched
   ========================================================= */

.twp-wf-incentives-page{
    background:#f5f8fc;
    color:#172b43;
    min-height:100vh;
}

.twp-wf-incentives-page *{
    box-sizing:border-box;
}

/* =========================================================
   HEADER — DO NOT ALTER
   ========================================================= */

.twp-wf-incentives-page .twp-wf-topbar{
    background:#fff;
    border-bottom:1px solid #e4eaf1;
}

.twp-wf-incentives-page .twp-wf-page-heading h1{
    font-size:31px;
    line-height:1.1;
    margin:0;
    color:#132943;
    font-weight:750;
    letter-spacing:-.03em;
}

.twp-wf-incentives-page .twp-wf-page-heading p{
    margin:5px 0 0;
    color:#5d6f84;
    font-size:14px;
}

.twp-wf-incentives-page .twp-wf-date-block{
    display:flex;
    align-items:center;
    gap:10px;
}

.twp-wf-incentives-page .twp-wf-calendar-icon{
    width:24px;
    color:#526c89;
    display:flex;
}

.twp-wf-incentives-page .twp-wf-calendar-icon svg{
    width:23px;
}

.twp-wf-incentives-page .twp-wf-date-block strong,
.twp-wf-incentives-page .twp-wf-date-block small{
    display:block;
}

.twp-wf-incentives-page .twp-wf-date-block strong{
    font-size:14px;
    color:#172b43;
}

.twp-wf-incentives-page .twp-wf-date-block small{
    font-size:13px;
    color:#718096;
    margin-top:4px;
}

.twp-wf-incentives-page .twp-wf-notification{
    position:relative;
    color:#63758b;
    padding:7px;
}

.twp-wf-incentives-page .twp-wf-notification svg{
    width:24px;
}

.twp-wf-incentives-page .twp-wf-notification b{
    position:absolute;
    right:0;
    top:-1px;
    background:#e52b3a;
    color:#fff;
    border-radius:20px;
    min-width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
}

.twp-wf-incentives-page .twp-wf-avatar-placeholder{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#dce6f0;
    display:block;
    position:relative;
    flex:0 0 44px;
}

.twp-wf-incentives-page .twp-wf-avatar-placeholder:before{
    content:"";
    position:absolute;
    width:13px;
    height:13px;
    border-radius:50%;
    background:#fff;
    left:15px;
    top:9px;
}

.twp-wf-incentives-page .twp-wf-avatar-placeholder:after{
    content:"";
    position:absolute;
    width:25px;
    height:13px;
    border-radius:15px 15px 10px 10px;
    background:#fff;
    left:9px;
    bottom:8px;
}

.twp-wf-incentives-page .twp-wf-user{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:190px;
}

.twp-wf-incentives-page .twp-wf-user strong,
.twp-wf-incentives-page .twp-wf-user small{
    display:block;
}

.twp-wf-incentives-page .twp-wf-user strong{
    font-size:14px;
    color:#172b43;
}

.twp-wf-incentives-page .twp-wf-user small{
    font-size:13px;
    color:#65758a;
    margin-top:3px;
}

.twp-wf-incentives-page .twp-wf-profile-chevron{
    width:30px;
    height:30px;
    border:1px solid #dbe4ee;
    border-radius:9px;
    background:#f8fafc;
    color:#526b86;
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 30px;
}

.twp-wf-incentives-page .twp-wf-profile-chevron svg{
    width:16px;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.twp-wf-incentive-content{
    padding:18px 22px 34px;
    max-width:1700px;
    margin:0 auto;
}

/* =========================================================
   KPI CARDS
   ========================================================= */

.twp-wf-incentive-kpis{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
    margin-bottom:13px;
}

.inc-kpi{
    background:#fff;
    border:1px solid #e1e8f0;
    border-radius:10px;
    min-height:96px;
    padding:14px 15px;
    display:flex;
    align-items:center;
    gap:11px;
    position:relative;
    box-shadow:0 3px 12px rgba(24,55,84,.035);
}

.inc-kpi-icon{
    width:47px;
    height:47px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 47px;
}

.inc-kpi-icon svg{
    width:25px;
    height:25px;
}

.inc-kpi small,
.inc-kpi strong,
.inc-kpi em{
    display:block;
}

.inc-kpi small{
    font-size:13px;
    line-height:1.3;
    color:#33475f;
    margin-bottom:5px;
}

.inc-kpi strong{
    font-size:26px;
    line-height:1;
    color:#1769df;
    font-weight:750;
}

.inc-kpi em{
    font-size:12px;
    line-height:1.25;
    color:#7a899a;
    font-style:normal;
    margin-top:5px;
}

.inc-kpi .inc-info{
    margin-left:auto;
    color:#6d8196;
    align-self:flex-end;
    display:flex;
}

.inc-kpi .inc-info svg{
    width:15px;
}

.inc-kpi.estimated .inc-kpi-icon{
    background:#e2efff;
    color:#1769df;
}

.inc-kpi.approved .inc-kpi-icon,
.inc-kpi.paid .inc-kpi-icon{
    background:#dff7e9;
    color:#15945b;
}

.inc-kpi.approved strong,
.inc-kpi.paid strong{
    color:#15945b;
}

.inc-kpi.pending .inc-kpi-icon{
    background:#fff0d9;
    color:#ef8700;
}

.inc-kpi.pending strong{
    color:#ef8700;
}

/* =========================================================
   TOP CONTENT GRID
   ========================================================= */

.twp-wf-incentive-top-grid{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(360px,.85fr);
    gap:12px;
    margin-bottom:12px;
}

.inc-panel{
    background:#fff;
    border:1px solid #e1e8f0;
    border-radius:10px;
    box-shadow:0 3px 12px rgba(24,55,84,.035);
    min-width:0;
    overflow:hidden;
}

.inc-panel-title{
    padding:14px 15px 9px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.inc-panel-title h2{
    font-size:16px;
    line-height:1.25;
    margin:0;
    color:#172b43;
    font-weight:750;
}

/* =========================================================
   INCENTIVE FLOW
   ========================================================= */

.inc-flow{
    display:grid;
    grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items:center;
    padding:10px 14px 16px;
    gap:7px;
}

.inc-flow-step{
    text-align:center;
    min-width:0;
}

.flow-icon{
    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 7px;
}

.flow-icon svg{
    width:23px;
}

.flow-icon.blue{
    background:#e2efff;
    color:#1769df;
}

.flow-icon.orange{
    background:#fff0d9;
    color:#ef8700;
}

.flow-icon.red{
    background:#ffe4e7;
    color:#e43848;
}

.flow-icon.green{
    background:#ddf7e8;
    color:#15945b;
}

.inc-flow-step strong{
    display:block;
    font-size:15px;
    line-height:1.25;
    color:#1e3652;
    font-weight:700;
}

.inc-flow-step small{
    display:block;
    font-size:12px;
    line-height:1.3;
    color:#304861;
    font-weight:600;
    margin-top:3px;
}

.inc-flow-step em{
    display:block;
    font-size:11px;
    line-height:1.3;
    color:#8190a0;
    font-style:normal;
    margin-top:4px;
}

.flow-arrow{
    font-size:21px;
    color:#7389a0;
    text-align:center;
}

/* =========================================================
   MONTHLY SUMMARY
   ========================================================= */

.summary-panel{
    padding-bottom:6px;
}

.inc-month-form{
    display:flex;
    gap:6px;
    align-items:center;
}

.inc-month-form label{
    height:34px;
    min-width:160px;
    border:1px solid #dce5ee;
    border-radius:7px;
    display:flex;
    align-items:center;
    gap:5px;
    padding:0 7px;
    position:relative;
}

.inc-month-form label>svg{
    width:15px;
    color:#61768e;
}

.inc-month-form select{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    outline:0;
    background:transparent;
    font-size:13px;
    color:#334960;
    width:100%;
    padding-right:18px;
}

.inc-month-form .inc-chevron{
    position:absolute;
    right:6px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    pointer-events:none;
}

.inc-month-form .inc-chevron svg{
    width:14px;
    color:#536b84;
}

.inc-month-form button{
    height:34px;
    background:#1769df;
    color:#fff;
    border:1px solid #1769df;
    border-radius:7px;
    font-size:13px;
    font-weight:700;
    padding:0 11px;
}

.inc-summary-list{
    margin:0;
    padding:2px 15px 10px;
}

.inc-summary-list div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:9px 0;
    border-bottom:1px solid #edf1f5;
}

.inc-summary-list div:last-child{
    border-bottom:0;
}

.inc-summary-list dt{
    font-size:13px;
    line-height:1.3;
    color:#2f455e;
}

.inc-summary-list dd{
    margin:0;
    font-size:13px;
    line-height:1.3;
    font-weight:750;
    color:#263b54;
}

.inc-summary-list dd.blue{
    color:#1769df;
}

.inc-summary-list dd.green{
    color:#15945b;
}

.inc-summary-list dd.orange{
    color:#ef8700;
}

/* =========================================================
   TRANSACTIONS
   ========================================================= */

.transactions-panel{
    margin-bottom:12px;
}

.inc-table-head{
    align-items:center;
    padding-bottom:10px;
}

.inc-filters{
    display:flex;
    gap:7px;
    align-items:center;
}

.inc-search{
    height:34px;
    width:285px;
    border:1px solid #dce5ee;
    border-radius:7px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 9px;
    color:#71839a;
}

.inc-search svg{
    width:15px;
    flex:0 0 15px;
}

.inc-search input{
    border:0;
    outline:0;
    width:100%;
    font-size:13px;
    color:#334960;
}

.inc-search input::placeholder{
    color:#8a98a7;
}

.inc-status-select{
    height:34px;
    min-width:145px;
    border:1px solid #dce5ee;
    border-radius:7px;
    display:flex;
    align-items:center;
    padding:0 8px;
    position:relative;
}

.inc-status-select select{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    outline:0;
    background:transparent;
    width:100%;
    font-size:13px;
    color:#334960;
    padding-right:15px;
}

.inc-status-select>span{
    position:absolute;
    right:7px;
    display:flex;
    pointer-events:none;
}

.inc-status-select svg{
    width:13px;
    color:#536b84;
}

.inc-reset{
    height:34px;
    border:0;
    background:transparent;
    color:#1769df;
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:5px;
    cursor:pointer;
    padding:0 3px;
}

.inc-reset svg{
    width:14px;
}

.inc-table-wrap{
    overflow:auto;
}

.inc-table{
    width:100%;
    border-collapse:collapse;
    min-width:1050px;
}

.inc-table th{
    background:#f8fafc;
    border-top:1px solid #edf1f5;
    border-bottom:1px solid #e5ebf1;
    padding:10px 9px;
    text-align:left;
    color:#65778d;
    font-size:12px;
    line-height:1.25;
    font-weight:750;
    white-space:nowrap;
}

.inc-table td{
    padding:9px;
    border-bottom:1px solid #edf1f5;
    font-size:12px;
    line-height:1.35;
    color:#2f455e;
    vertical-align:middle;
}

.inc-table td strong{
    color:#1f3852;
}

.inc-table td small{
    display:block;
    color:#7c8c9c;
    font-size:11px;
    margin-top:2px;
}

.inc-client{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:145px;
}

.inc-client>span{
    width:29px;
    height:29px;
    border-radius:6px;
    background:#2b8de7;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
}

.inc-client>div{
    min-width:0;
}

/* =========================================================
   STATUS / ACTIONS
   ========================================================= */

.inc-status{
    display:inline-flex;
    padding:5px 8px;
    border-radius:6px;
    font-size:11px;
    line-height:1.2;
    font-weight:800;
    white-space:nowrap;
}

.inc-status.approved{
    background:#e1efff;
    color:#1769df;
}

.inc-status.pending{
    background:#fff0d9;
    color:#df8100;
}

.inc-status.paid{
    background:#ddf7e8;
    color:#168453;
}

.inc-status.adjusted{
    background:#edf0f3;
    color:#5f6e7e;
}

.inc-status.review{
    background:#ffe3e6;
    color:#d53d4b;
}

.inc-view{
    height:30px;
    border:1px solid #b9d2ef;
    border-radius:6px;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:#1769df;
    font-size:11px;
    font-weight:700;
}

.inc-view span{
    font-size:13px;
}

.inc-more{
    border:0;
    background:transparent;
    color:#566c84;
    vertical-align:middle;
    margin-left:4px;
    padding:3px;
    cursor:pointer;
}

.inc-more svg{
    width:16px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.inc-empty{
    text-align:center;
    padding:36px 15px;
}

.inc-empty strong{
    display:block;
    color:#31475e;
    font-size:13px;
}

.inc-empty span{
    display:block;
    color:#7a899b;
    font-size:12px;
    margin-top:5px;
}

/* =========================================================
   LOWER CONTENT
   ========================================================= */

.twp-wf-incentive-bottom{
    display:grid;
    grid-template-columns:1.15fr .82fr .68fr;
    gap:12px;
}

.history-panel,
.client-panel,
.how-panel{
    min-height:230px;
}

.chart-legend{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:11px;
    color:#748499;
}

.chart-legend i,
.chart-legend b,
.chart-legend em{
    width:9px;
    height:9px;
    border-radius:3px;
    display:inline-block;
    background:#3f91f0;
}

.chart-legend b{
    background:#1bb477;
}

.chart-legend em{
    background:#f39a27;
}

.inc-chart{
    height:175px;
    border-bottom:1px solid #e7edf2;
    margin:0 14px;
    padding:12px 8px 0;
    display:flex;
    align-items:flex-end;
    gap:14px;
}

.chart-col{
    height:100%;
    flex:1;
    display:flex;
    align-items:center;
    flex-direction:column;
    justify-content:flex-end;
}

.chart-bars{
    height:135px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:3px;
}

.chart-bars span{
    width:10px;
    border-radius:4px 4px 0 0;
    position:relative;
    min-height:3px;
}

.chart-bars .estimated{
    background:#3f91f0;
}

.chart-bars .approved{
    background:#1bb477;
}

.chart-bars .paid{
    background:#f39a27;
}

.chart-bars .estimated b{
    position:absolute;
    top:-14px;
    left:50%;
    transform:translateX(-50%);
    font-size:11px;
    color:#31475e;
    white-space:nowrap;
}

.chart-col>small{
    font-size:11px;
    color:#718196;
    margin-top:5px;
}

.inc-client-list{
    padding:8px 15px;
}

.client-bar{
    display:grid;
    grid-template-columns:1fr 1.1fr auto;
    align-items:center;
    gap:8px;
    padding:8px 0;
    border-bottom:1px solid #edf1f5;
}

.client-bar:last-child{
    border-bottom:0;
}

.client-bar strong{
    font-size:12px;
    color:#2d435c;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.client-bar>span{
    height:8px;
    border-radius:8px;
    background:#eaf0f5;
    overflow:hidden;
}

.client-bar>span i{
    display:block;
    height:100%;
    background:#3f91f0;
    border-radius:8px;
}

.client-bar b{
    font-size:11px;
    color:#526980;
}

.inc-list-empty{
    font-size:12px;
    color:#7a899b;
    padding:25px 0;
    text-align:center;
}

/* =========================================================
   HOW INCENTIVE IS CALCULATED
   ========================================================= */

.inc-how{
    padding:3px 15px 12px;
}

.inc-how>div{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 0;
}

.inc-how>div+div{
    border-top:1px solid #f0f3f6;
}

.inc-how span{
    width:27px;
    height:27px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 27px;
}

.inc-how span svg{
    width:14px;
}

.inc-how span.blue{
    background:#e2efff;
    color:#1769df;
}

.inc-how span.green{
    background:#ddf7e8;
    color:#15945b;
}

.inc-how span.orange{
    background:#fff0d9;
    color:#ef8700;
}

.inc-how span.red{
    background:#ffe3e6;
    color:#d63d4b;
}

.inc-how p{
    margin:0;
}

.inc-how strong{
    display:block;
    font-size:12px;
    line-height:1.3;
    color:#2d435b;
}

.inc-how small{
    display:block;
    font-size:11px;
    line-height:1.3;
    color:#7b8b9c;
    margin-top:2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1300px){

    .twp-wf-incentive-kpis{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-incentive-top-grid{
        grid-template-columns:1fr;
    }

    .twp-wf-incentive-bottom{
        grid-template-columns:1fr 1fr;
    }

    .how-panel{
        grid-column:span 2;
    }
}

@media(max-width:900px){

    .inc-flow{
        grid-template-columns:1fr;
        gap:5px;
    }

    .flow-arrow{
        transform:rotate(90deg);
    }

    .twp-wf-incentive-bottom{
        grid-template-columns:1fr;
    }

    .how-panel{
        grid-column:auto;
    }

    .inc-table-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .inc-filters{
        width:100%;
        flex-wrap:wrap;
    }

    .inc-search{
        flex:1;
        min-width:200px;
    }
}

/* =========================================================
   MOBILE — READABILITY
   ========================================================= */

@media(max-width:600px){

    .twp-wf-incentive-content{
        padding:12px;
    }

    .twp-wf-incentive-kpis{
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .inc-kpi{
        min-height:84px;
        padding:9px;
        gap:8px;
    }

    .inc-kpi-icon{
        width:38px;
        height:38px;
        flex-basis:38px;
    }

    .inc-kpi-icon svg{
        width:21px;
        height:21px;
    }

    .inc-kpi small{
        font-size:11px;
        line-height:1.25;
        margin-bottom:4px;
    }

    .inc-kpi strong{
        font-size:20px;
    }

    .inc-kpi em{
        font-size:10px;
        line-height:1.2;
        margin-top:4px;
    }

    .inc-kpi .inc-info{
        display:none;
    }

    .inc-panel-title h2{
        font-size:15px;
    }

    .inc-flow-step strong{
        font-size:14px;
    }

    .inc-flow-step small{
        font-size:12px;
    }

    .inc-flow-step em{
        font-size:11px;
    }

    .inc-month-form{
        width:100%;
    }

    .inc-month-form label{
        flex:1;
    }

    .inc-month-form select{
        font-size:13px;
    }

    .inc-month-form button{
        font-size:13px;
    }

    .inc-summary-list dt{
        font-size:12px;
    }

    .inc-summary-list dd{
        font-size:12px;
    }

    .inc-search{
        width:100%;
        flex-basis:100%;
    }

    .inc-search input{
        font-size:13px;
    }

    .inc-status-select{
        flex:1;
    }

    .inc-status-select select{
        font-size:13px;
    }

    .inc-reset{
        margin-left:auto;
        font-size:12px;
    }

    .inc-table th{
        font-size:12px;
    }

    .inc-table td{
        font-size:12px;
    }

    .inc-table td small{
        font-size:11px;
    }

    .inc-status{
        font-size:11px;
    }

    .inc-view{
        font-size:11px;
    }

    .inc-empty strong{
        font-size:12px;
    }

    .inc-empty span{
        font-size:11px;
    }

    .chart-legend{
        font-size:11px;
    }

    .chart-col>small{
        font-size:11px;
    }

    .client-bar strong{
        font-size:11px;
    }

    .client-bar b{
        font-size:11px;
    }

    .inc-list-empty{
        font-size:11px;
    }

    .inc-how strong{
        font-size:11px;
    }

    .inc-how small{
        font-size:11px;
    }
}
/* FINAL MICRO TYPOGRAPHY REFINEMENT */

.inc-empty strong{
    font-size:13px;
}

.inc-empty span{
    font-size:12px;
}

.chart-col>small{
    font-size:12px;
}

.client-bar strong{
    font-size:12px;
}

.client-bar b{
    font-size:11px;
}

.inc-list-empty{
    font-size:12px;
}

.inc-how strong{
    font-size:12px;
}

.inc-how small{
    font-size:12px;
}

.inc-table th{
    font-size:12px;
}

.inc-table td{
    font-size:12px;
}

.inc-table td small{
    font-size:11px;
}