/* TWP Workforce — My Follow-ups. Sidebar styles are inherited from employee-dashboard.css and are intentionally not changed here. */

.twp-wf-followups-page{
    width:100%;
    min-height:760px;
    background:#f5f8fb;
    color:#172a42;
    font-family:inherit;
    display:flex;
    box-sizing:border-box;
}

.twp-wf-followups-page *{
    box-sizing:border-box;
}

.twp-wf-followups-page .twp-wf-main{
    flex:1;
    min-width:0;
    background:#f6f9fc;
}

.twp-wf-followups-page .twp-wf-topbar{
    background:#fff;
    border-bottom:1px solid #e4eaf1;
}

/* Header typography intentionally preserved */
.twp-wf-followups-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-followups-page .twp-wf-page-heading p{
    margin:5px 0 0;
    color:#5d6f84;
    font-size:14px;
}

.twp-wf-followups-content{
    padding-top:28px;
}


/* =========================================================
   KPI AREA
   ========================================================= */

.twp-wf-followup-kpis{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr)) 170px;
    gap:14px;
    margin-bottom:18px;
}

.twp-wf-followup-kpi{
    min-height:104px;
    background:#fff;
    border:1px solid #e1e8f0;
    border-radius:12px;
    padding:17px 17px;
    display:flex;
    align-items:center;
    gap:13px;
    box-shadow:0 3px 12px rgba(24,55,84,.035);
}

.twp-wf-followup-kpi-icon{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 55px;
}

.twp-wf-followup-kpi-icon svg{
    width:25px;
    height:25px;
}

.twp-wf-followup-kpi small,
.twp-wf-followup-kpi strong,
.twp-wf-followup-kpi span{
    display:block;
}

/* Standard KPI typography */
.twp-wf-followup-kpi small{
    font-size:13px;
    color:#27384e;
    font-weight:400;
}

.twp-wf-followup-kpi strong{
    font-size:28px;
    line-height:1.05;
    margin:4px 0 3px;
}

.twp-wf-followup-kpi span{
    font-size:11px;
    color:#7a8798;
}

.twp-wf-followup-kpi.overdue .twp-wf-followup-kpi-icon{
    background:#ffe3e6;
    color:#ef3446;
}

.twp-wf-followup-kpi.overdue strong{
    color:#e82c3e;
}

.twp-wf-followup-kpi.today .twp-wf-followup-kpi-icon{
    background:#fff0d8;
    color:#f28a00;
}

.twp-wf-followup-kpi.today strong{
    color:#f28a00;
}

.twp-wf-followup-kpi.week .twp-wf-followup-kpi-icon{
    background:#e3f0ff;
    color:#1769b9;
}

.twp-wf-followup-kpi.week strong{
    color:#1760a9;
}

.twp-wf-followup-kpi.completed .twp-wf-followup-kpi-icon{
    background:#dff5ea;
    color:#138957;
}

.twp-wf-followup-kpi.completed strong{
    color:#148c59;
}


/* =========================================================
   PRIMARY ACTION
   ========================================================= */

.twp-wf-primary-action{
    min-height:46px;
    align-self:start;
    margin-top:1px;
    background:#1769e0;
    color:#fff;
    border-radius:7px;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 14px;
    font-size:13px;
    font-weight:700;
    box-shadow:0 5px 12px rgba(23,105,224,.16);
}

.twp-wf-primary-action:hover{
    color:#fff;
    background:#0f5dcc;
}

.twp-wf-primary-action svg{
    width:17px;
    height:17px;
}


/* =========================================================
   WORKSPACE / TABS
   ========================================================= */

.twp-wf-followup-workspace{
    padding:0;
    overflow:hidden;
}

.twp-wf-followup-tabs{
    display:flex;
    gap:3px;
    padding:0 8px;
    border-bottom:1px solid #e7edf3;
    background:#fff;
    overflow:auto;
}

.twp-wf-followup-tab{
    padding:15px 16px 13px;
    text-decoration:none;
    color:#56687d;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
    border-radius:6px 6px 0 0;
    margin-top:5px;
}

.twp-wf-followup-tab span{
    color:#7d8b9b;
    font-weight:500;
}

.twp-wf-followup-tab.is-active{
    background:#1769e0;
    color:#fff;
}

.twp-wf-followup-tab.is-active span{
    color:#fff;
}


/* =========================================================
   SEARCH + FILTERS
   ========================================================= */

.twp-wf-followup-search{
    display:grid;
    grid-template-columns:minmax(300px,1fr) 225px 85px auto;
    gap:10px;
    align-items:center;
    padding:16px 13px 12px;
    background:#fff;
}

.twp-wf-search-input{
    height:43px;
    border:1px solid #dce5ee;
    border-radius:7px;
    display:flex;
    align-items:center;
    padding:0 12px;
    color:#708096;
    background:#fff;
}

.twp-wf-search-input svg{
    width:19px;
    height:19px;
    flex:0 0 19px;
}

.twp-wf-search-input input{
    border:0;
    outline:0;
    width:100%;
    font-size:13px;
    padding:0 9px;
    background:transparent;
    color:#263b55;
}

.twp-wf-search-input input::placeholder{
    color:#91a0b1;
}

.twp-wf-followup-search select,
.twp-wf-followup-filters select{
    height:43px;
    border:1px solid #dce5ee;
    border-radius:7px;
    background:#fff;
    color:#63748a;
    font-size:13px;
    padding:0 11px;
    outline:none;
    width:100%;
}

.twp-wf-search-button{
    height:43px;
    border:0;
    border-radius:7px;
    background:#1769e0;
    color:#fff;
    font-weight:700;
    font-size:13px;
    padding:0 15px;
    cursor:pointer;
}

.twp-wf-reset-link{
    font-size:12px;
    color:#1769e0;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:5px;
    white-space:nowrap;
}

.twp-wf-reset-link svg{
    width:15px;
    height:15px;
}

.twp-wf-followup-filters{
    display:grid;
    grid-template-columns:repeat(6,minmax(120px,1fr));
    gap:10px;
    padding:0 13px 16px;
    background:#fff;
    border-bottom:1px solid #e7edf3;
}

.twp-wf-followup-filters label{
    display:flex;
    flex-direction:column;
    gap:5px;
    font-size:12px;
    color:#6c7c8f;
    font-weight:400;
}

.twp-wf-followup-filters select{
    height:39px;
}


/* =========================================================
   TABLE
   ========================================================= */

.twp-wf-followup-table-wrap{
    overflow-x:auto;
    background:#fff;
}

.twp-wf-followup-table{
    width:100%;
    min-width:1120px;
    border-collapse:collapse;
}

.twp-wf-followup-table th{
    background:#f8fafc;
    border-bottom:1px solid #e5ebf1;
    color:#607087;
    text-align:left;
    font-size:12px;
    font-weight:600;
    padding:12px 10px;
    white-space:nowrap;
}

.twp-wf-followup-table th:first-child,
.twp-wf-followup-table td:first-child{
    width:42px;
    text-align:center;
}

.twp-wf-followup-table td{
    border-bottom:1px solid #edf1f5;
    padding:12px 10px;
    font-size:13px;
    color:#263a53;
    vertical-align:middle;
}

.twp-wf-followup-table tbody tr:hover{
    background:#fbfdff;
}

.twp-wf-followup-table input[type=checkbox]{
    width:15px;
    height:15px;
    accent-color:#1769e0;
}


/* =========================================================
   CLIENT CELL
   ========================================================= */

.twp-wf-client-cell{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:190px;
}

.twp-wf-client-avatar{
    width:31px;
    height:31px;
    border-radius:8px;
    background:#e8f1ff;
    color:#1a6bd7;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:700;
    flex:0 0 31px;
}

.twp-wf-client-cell strong,
.twp-wf-client-cell small{
    display:block;
}

.twp-wf-client-cell strong{
    font-size:13px;
    color:#172a42;
}

.twp-wf-client-cell small{
    font-size:11px;
    color:#7a899b;
    margin-top:3px;
    white-space:nowrap;
}


/* =========================================================
   FOLLOW-UP TYPE
   ========================================================= */

.twp-wf-type-cell{
    display:inline-flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
    font-size:13px;
}

.twp-wf-type-cell svg{
    width:18px;
    height:18px;
    color:#1769e0;
}


/* =========================================================
   DATE / TIME
   ========================================================= */

.twp-wf-datetime-cell strong,
.twp-wf-datetime-cell small{
    display:block;
}

.twp-wf-datetime-cell strong{
    font-size:13px;
    color:#263b55;
}

.twp-wf-datetime-cell small{
    font-size:11px;
    color:#7b899a;
    margin-top:3px;
}

.twp-wf-datetime-cell.is-overdue strong{
    color:#ed3545;
}


/* =========================================================
   STATUS / PRIORITY
   ========================================================= */

.twp-wf-priority-pill,
.twp-wf-followup-status{
    display:inline-block;
    border-radius:6px;
    padding:6px 9px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}

.twp-wf-priority-pill.high{
    background:#ffe5e7;
    color:#e83949;
}

.twp-wf-priority-pill.medium{
    background:#fff1d8;
    color:#e48700;
}

.twp-wf-priority-pill.low{
    background:#edf2f7;
    color:#64758a;
}

.twp-wf-priority-pill.normal{
    background:#edf3fb;
    color:#42678e;
}

.twp-wf-followup-status.pending{
    background:#ffe8ea;
    color:#e53c4c;
}

.twp-wf-followup-status.pending.overdue{
    background:#ffe0e3;
    color:#d92f40;
}

.twp-wf-followup-status.completed{
    background:#dff5e9;
    color:#148356;
}


/* =========================================================
   NOTES / ACTIONS
   ========================================================= */

.twp-wf-notes-cell{
    max-width:230px;
    line-height:1.45;
    color:#44566c;
    font-size:12px;
}

.twp-wf-followup-actions{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}

.twp-wf-followup-actions form{
    margin:0;
}

.twp-wf-mark-done{
    height:34px;
    border:1px solid #4b94e9;
    background:#fff;
    color:#1769e0;
    border-radius:6px;
    padding:0 11px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:5px;
}

.twp-wf-mark-done:hover{
    background:#eef5ff;
}

.twp-wf-mark-done svg{
    width:14px;
    height:14px;
}

.twp-wf-more-button{
    width:29px;
    height:34px;
    border:0;
    background:transparent;
    color:#68798c;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.twp-wf-more-button svg{
    width:18px;
    height:18px;
}

.twp-wf-completed-label{
    font-size:12px;
    color:#168356;
    font-weight:700;
}

.twp-wf-sort-icon svg{
    width:13px;
    height:13px;
    vertical-align:middle;
    color:#8391a2;
}


/* =========================================================
   FOOTER / PAGINATION
   ========================================================= */

.twp-wf-followup-footer{
    min-height:61px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    color:#718095;
    font-size:11px;
}

.twp-wf-pagination{
    display:flex;
    align-items:center;
    gap:5px;
}

.twp-wf-pagination a{
    width:34px;
    height:34px;
    border:1px solid #dce5ee;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#4c6179;
    font-size:12px;
}

.twp-wf-pagination a.is-active{
    background:#1769e0;
    border-color:#1769e0;
    color:#fff;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.twp-wf-followup-empty{
    height:300px!important;
    text-align:center!important;
}

.twp-wf-followup-empty>div{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:7px;
    color:#7c8b9d;
}

.twp-wf-followup-empty svg{
    width:40px;
    height:40px;
    color:#8ba2bc;
    margin-bottom:4px;
}

.twp-wf-followup-empty strong{
    font-size:14px;
    color:#334961;
}

.twp-wf-followup-empty span{
    font-size:12px;
}

.twp-wf-followup-empty a{
    font-size:13px;
    color:#1769e0;
    text-decoration:none;
    font-weight:600;
    margin-top:4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1250px){

    .twp-wf-followup-kpis{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .twp-wf-primary-action{
        grid-column:4;
        justify-self:end;
        width:170px;
    }

    .twp-wf-followup-filters{
        grid-template-columns:repeat(3,1fr);
    }

    .twp-wf-followup-search{
        grid-template-columns:minmax(250px,1fr) 190px 80px auto;
    }
}


@media(max-width:850px){

    .twp-wf-followup-kpis{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-primary-action{
        grid-column:span 2;
        justify-self:start;
        width:auto;
        padding:0 20px;
    }

    .twp-wf-followup-search{
        grid-template-columns:1fr 170px 75px;
    }

    .twp-wf-reset-link{
        grid-column:3;
        justify-self:end;
    }

    .twp-wf-followup-filters{
        grid-template-columns:1fr 1fr;
    }

    .twp-wf-followup-tabs{
        padding-left:5px;
    }

    .twp-wf-followup-tab{
        padding-left:11px;
        padding-right:11px;
        font-size:13px;
    }

    /* Central content mobile typography */
    .twp-wf-followup-kpi small{
        font-size:12px;
        font-weight:400;
    }

    .twp-wf-followup-kpi strong{
        font-size:24px;
    }

    .twp-wf-followup-kpi span{
        font-size:11px;
    }

    .twp-wf-search-input input{
        font-size:13px;
    }

    .twp-wf-followup-search select,
    .twp-wf-followup-filters select{
        font-size:13px;
    }

    .twp-wf-followup-filters label{
        font-size:12px;
        font-weight:400;
    }

    .twp-wf-search-button{
        font-size:13px;
    }

    .twp-wf-reset-link{
        font-size:12px;
    }
}


@media(max-width:560px){

    .twp-wf-followups-content{
        padding:12px;
    }

    .twp-wf-followup-kpis{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .twp-wf-followup-kpi{
        min-height:86px;
        padding:11px;
        gap:8px;
    }

    .twp-wf-followup-kpi-icon{
        width:40px;
        height:40px;
        flex-basis:40px;
    }

    .twp-wf-followup-kpi-icon svg{
        width:20px;
        height:20px;
    }

    /* Standard mobile KPI typography */
    .twp-wf-followup-kpi strong{
        font-size:23px;
    }

    .twp-wf-followup-kpi small{
        font-size:12px;
    }

    .twp-wf-followup-kpi span{
        font-size:11px;
    }

    .twp-wf-primary-action{
        grid-column:span 2;
        width:100%;
        font-size:13px;
        font-weight:700;
    }

    .twp-wf-followup-search{
        grid-template-columns:1fr;
        padding:11px;
    }

    .twp-wf-search-input input{
        font-size:13px;
    }

    .twp-wf-search-button{
        width:100%;
        font-size:13px;
    }

    .twp-wf-reset-link{
        grid-column:auto;
        justify-self:start;
        padding-bottom:3px;
        font-size:12px;
    }

    .twp-wf-followup-filters{
        grid-template-columns:1fr;
        padding:0 11px 11px;
    }

    .twp-wf-followup-filters label{
        font-size:12px;
    }

    .twp-wf-followup-search select,
    .twp-wf-followup-filters select{
        font-size:13px;
    }

    .twp-wf-followup-tab{
        font-size:12px;
    }

    .twp-wf-followup-table th{
        font-size:12px;
    }

    .twp-wf-followup-table td{
        font-size:12px;
    }

    .twp-wf-client-cell strong{
        font-size:13px;
    }

    .twp-wf-client-cell small{
        font-size:11px;
    }

    .twp-wf-type-cell{
        font-size:12px;
    }

    .twp-wf-datetime-cell strong{
        font-size:13px;
    }

    .twp-wf-datetime-cell small{
        font-size:11px;
    }

    .twp-wf-notes-cell{
        font-size:12px;
    }

    .twp-wf-mark-done{
        font-size:12px;
    }

    .twp-wf-completed-label{
        font-size:12px;
    }

    .twp-wf-followup-footer{
        align-items:flex-start;
        gap:10px;
        flex-direction:column;
        padding:12px 14px;
        font-size:11px;
    }

    .twp-wf-pagination{
        align-self:flex-end;
    }

    .twp-wf-pagination a{
        font-size:12px;
    }

    .twp-wf-followup-empty strong{
        font-size:13px;
    }

    .twp-wf-followup-empty span{
        font-size:11px;
    }

    .twp-wf-followup-empty a{
        font-size:13px;
    }
}