/* =========================================================
   TWP WORKFORCE
   EMPLOYEE DASHBOARD — MASTER STYLES
   ========================================================= */


/* =========================================================
   GLOBAL DASHBOARD
   ========================================================= */

.twp-wf-dashboard,
.twp-wf-dashboard * {
    box-sizing: border-box;
}

.twp-wf-dashboard {
    --navy: #0b1f33;
    --blue: #1769e0;
    --text: #14263d;
    --muted: #6b7a90;
    --line: #e2e8f0;
    --bg: #f5f8fc;

    width: 100%;
    min-height: 100vh;

    display: flex;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.twp-wf-dashboard a {
    text-decoration: none;
}


/* =========================================================
   MASTER SIDEBAR
   ========================================================= */

.twp-wf-sidebar {
    width: 265px;
    flex: 0 0 265px;

    min-height: 100vh;
    height: 100%;

    background: linear-gradient(
        180deg,
        #0b2945 0%,
        #0b1f33 100%
    );

    color: #fff;

    padding: 26px 12px 18px;

    display: flex;
    flex-direction: column;

    position: relative;
    z-index: 20;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   SIDEBAR BRAND
   ========================================================= */

.twp-wf-sidebar-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;
    min-height: 71px;

    padding: 0 16px 27px;

    box-sizing: border-box;

    flex: 0 0 auto;
}

.twp-wf-sidebar-mark {
    width: 44px;
    height: 44px;

    color: #fff;

    flex: 0 0 auto;
}

.twp-wf-sidebar-mark svg {
    width: 100%;
    height: 100%;
}

.twp-wf-sidebar-title {
    font-size:26px;
    line-height: .9;
    font-weight: 750;
    letter-spacing: -.04em;
}

.twp-wf-sidebar-subtitle {
    font-size:10px;
    letter-spacing: .18em;
    color: #b9cadb;

    margin-top: 10px;

    white-space: nowrap;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.twp-wf-side-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;

    width: 100%;

    flex: 0 0 auto;
}

.twp-wf-side-link {
    width: 100%;

    min-height: 49px;

    display: flex;
    align-items: center;

    gap: 15px;

    color: #e8eff7;

    border-radius: 8px;

    padding: 0 17px;

    font-size:16px;
    font-weight: 500;
    line-height: 1;

    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;

    box-sizing: border-box;

    flex: 0 0 auto;
}

.twp-wf-side-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.twp-wf-side-link.is-active {
    background: #1769e0;
    color: #fff;

    box-shadow:
        0 7px 18px rgba(0,0,0,.14);
}


/* =========================================================
   SIDEBAR ICONS
   ========================================================= */

.twp-wf-side-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;
}

.twp-wf-side-icon svg {
    width: 21px;
    height: 21px;

    display: block;
}


/* =========================================================
   SIDEBAR SPACER / BOTTOM
   ========================================================= */

.twp-wf-side-spacer {
    flex: 1 1 auto;
    min-height: 18px;
}

.twp-wf-side-bottom {
    border-top: 1px solid rgba(255,255,255,.12);

    padding-top: 14px;
    margin-top: 18px;

    flex: 0 0 auto;
}

.twp-wf-logout {
    color: #ff6b63;
}

.twp-wf-logout:hover {
    color: #ff817a;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.twp-wf-main {
    min-width: 0;
    flex: 1;

    background: #f7f9fc;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.twp-wf-topbar {
    min-height: 105px;

    background: #fff;

    border-bottom: 1px solid #e9eef4;

    display: flex;
    align-items: center;

    padding: 0 30px;

    gap: 22px;
}

.twp-wf-greeting {
    flex: 1;
    min-width: 0;
}

.twp-wf-greeting h1 {
    font-size: 28px;
    line-height: 1.1;

    margin: 0;

    color: #10243c;

    letter-spacing: -.035em;

    font-weight: 720;
}

.twp-wf-greeting h1 span {
    color: #1769e0;
}

.twp-wf-greeting p {
    margin: 6px 0 0;

    font-size:15px;
    color: #344b67;
}


/* =========================================================
   TOPBAR RIGHT
   ========================================================= */

.twp-wf-topbar-right {
    display: flex;
    align-items: center;

    gap: 24px;
}

.twp-wf-date {
    display: flex;
    align-items: center;

    gap: 10px;
}

.twp-wf-date > span {
    color: #526c89;
    width: 24px;
}

.twp-wf-date svg {
    width: 23px;
}

.twp-wf-date strong,
.twp-wf-date small {
    display: block;
}

.twp-wf-date strong {
    font-size:14px;
}

.twp-wf-date small {
    font-size:13px;
    color: #718096;

    margin-top: 4px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.twp-wf-notification {
    position: relative;

    border: 0;
    background: none;

    color: #63758b;

    padding: 7px;

    cursor: pointer;
}

.twp-wf-notification svg {
    width: 24px;
    height: 24px;
}

.twp-wf-notification-badge {
    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:12px;
    font-weight: 700;
}


/* =========================================================
   USER
   ========================================================= */

.twp-wf-user {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 190px;
}

.twp-wf-avatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    overflow: hidden;

    background: #dce6f0;
}

.twp-wf-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.twp-wf-user strong,
.twp-wf-user small {
    display: block;
}

.twp-wf-user strong {
    font-size:14px;
}

.twp-wf-user small {
    font-size:13px;

    color: #65758a;

    margin-top: 3px;
}

.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;

    transition: all .18s ease;
}

.twp-wf-profile-chevron svg {
    width: 16px;
    height: 16px;
}

.twp-wf-user:hover .twp-wf-profile-chevron {
    border-color: #b9cde2;
    background: #f1f6fb;
    color: #1769e0;

    transform: translateY(1px);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.twp-wf-mobile-menu {
    display: none;

    border: 0;
    background: none;

    color: #17334f;

    padding: 5px;

    cursor: pointer;
}

.twp-wf-mobile-menu svg {
    width: 25px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.twp-wf-content {
    padding: 24px 22px 34px;

    max-width: 1600px;

    margin: 0 auto;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.twp-wf-stat-row {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 17px;

    margin-bottom: 20px;
}

.twp-wf-stat-card {
    min-height: 93px;

    background: #fff;

    border: 1px solid #e2e9f1;

    border-radius: 13px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 16px 18px;

    box-shadow:
        0 3px 12px rgba(24,55,84,.035);
}

.twp-wf-stat-card .twp-wf-stat-icon {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 50px;
}

.twp-wf-stat-icon svg {
    width: 25px;
    height: 25px;
}

.twp-wf-stat-card > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.twp-wf-stat-card span,
.twp-wf-stat-card small {
    display: block;
}

.twp-wf-stat-card span {
    font-size:15px;
    color: #17263a;
}

.twp-wf-stat-card small {
    font-size:14px;
    color: #1c2d43;

    margin-top: 3px;
}

.twp-wf-stat-card > strong {
    font-size:29px;
    line-height: 1;

    font-weight: 750;
}

.twp-wf-stat-card.danger .twp-wf-stat-icon {
    background: #ffe3e6;
    color: #ef3446;
}

.twp-wf-stat-card.danger > strong {
    color: #e82c3e;
}

.twp-wf-stat-card.warning .twp-wf-stat-icon {
    background: #fff0d8;
    color: #f28a00;
}

.twp-wf-stat-card.warning > strong {
    color: #f28a00;
}

.twp-wf-stat-card.info .twp-wf-stat-icon {
    background: #e3f0ff;
    color: #1769b9;
}

.twp-wf-stat-card.info > strong {
    color: #1760a9;
}

.twp-wf-stat-card.success .twp-wf-stat-icon {
    background: #dff5ea;
    color: #138957;
}

.twp-wf-stat-card.success > strong {
    color: #148c59;
}


/* =========================================================
   GRIDS
   ========================================================= */

.twp-wf-main-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1.45fr)
        minmax(340px,.78fr);

    gap: 17px;

    margin-bottom: 17px;
}

.twp-wf-three-grid {
    display: grid;

    grid-template-columns:
        1.1fr 1fr 1fr;

    gap: 17px;

    margin-bottom: 17px;
}

.twp-wf-bottom-grid {
    display: grid;

    grid-template-columns:
        1.45fr 1fr;

    gap: 17px;
}


/* =========================================================
   CARDS
   ========================================================= */

.twp-wf-card {
    background: #fff;

    border: 1px solid #e1e8f0;

    border-radius: 13px;

    box-shadow:
        0 3px 12px rgba(24,55,84,.035);

    padding: 18px 20px;

    min-width: 0;
}

.twp-wf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}

.twp-wf-card-head h2 {
    font-size: 17px;

    margin: 0;

    font-weight: 700;

    display: flex;
    align-items: center;

    gap: 9px;

    color: #13243a;

    letter-spacing: -.02em;
}

.twp-wf-card-head h2 svg {
    width: 21px;
    height: 21px;

    color: #1268df;
}

.twp-wf-card-head > a {
    font-size:14px;

    color: #1769e0;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   TABLE
   ========================================================= */

.twp-wf-table-wrap {
    overflow: auto;
}

.twp-wf-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}

.twp-wf-table th {
    text-align: left;

    font-size:13px;

    color: #596b82;

    font-weight: 600;

    background: #f7f9fc;

    padding: 9px 7px;

    border-bottom: 1px solid #e9eef4;
}

.twp-wf-table td {
    padding: 11px 7px;

    border-bottom: 1px solid #edf1f5;

    font-size:14px;

    color: #243951;

    white-space: nowrap;
}

.twp-wf-table td:first-child {
    color: #1b6cda;
}

.twp-wf-table td strong {
    font-weight: 600;
}

.twp-wf-pill {
    font-size:12px;

    font-weight: 700;

    border-radius: 6px;

    padding: 5px 9px;

    display: inline-block;
}

.twp-wf-pill.overdue {
    background: #ffe2e6;
    color: #e32c40;
}

.twp-wf-pill.today {
    background: #fff0d2;
    color: #ee8100;
}

.twp-wf-pill.upcoming {
    background: #e3efff;
    color: #1766c2;
}

.twp-wf-empty {
    text-align: center !important;

    color: #7b8797 !important;

    padding: 28px !important;
}


/* =========================================================
   WORK SUMMARY
   ========================================================= */

.twp-wf-working-badge,
.twp-wf-eligibility {
    font-size:13px;

    font-weight: 600;

    background: #dcf5e9;
    color: #178354;

    border-radius: 7px;

    padding: 6px 10px;

    white-space: nowrap;
}

.twp-wf-working-badge.not-working,
.twp-wf-eligibility.not-eligible {
    background: #fff0f1;
    color: #d73543;
}

.twp-wf-work-summary {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    border-bottom: 1px solid #edf1f5;

    padding: 3px 0 14px;
}

.twp-wf-work-summary > div + div {
    border-left: 1px solid #edf1f5;

    padding-left: 20px;
}

.twp-wf-work-summary small,
.twp-wf-work-summary strong,
.twp-wf-work-summary em {
    display: block;
}

.twp-wf-work-summary small {
    font-size:13px;
    color: #6e7e91;
}

.twp-wf-work-summary strong {
    font-size:23px;
    color: #122943;

    margin-top: 5px;
}

.twp-wf-work-summary em {
    font-size:11px;

    color: #8996a7;

    font-style: normal;

    margin-top: 2px;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.twp-wf-progress {
    height: 12px;

    background: #e7edf4;

    border-radius: 20px;

    overflow: hidden;

    margin: 15px 0;
}

.twp-wf-progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #16a879;
}


/* =========================================================
   WORK MINI
   ========================================================= */

.twp-wf-work-mini {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 8px;

    margin: 11px 0 16px;
}

.twp-wf-work-mini > div {
    display: grid;

    grid-template-columns:
        27px 1fr;

    column-gap: 5px;

    align-items: center;
}

.twp-wf-work-mini .mini-icon {
    grid-row: span 2;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #eef4fa;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #54708f;

    font-size: 12px;
}

.twp-wf-work-mini .mini-icon.green {
    color: #1a9a70;
    background: #e5f7f0;
}

.twp-wf-work-mini small {
    font-size:11px;
    color: #728195;
}

.twp-wf-work-mini strong {
    font-size:13px;
    color: #273b54;
}


/* =========================================================
   WORK ACTIONS
   ========================================================= */

.twp-wf-work-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;
}

.twp-wf-outline-btn,
.twp-wf-danger-btn {
    min-height: 42px;

    border-radius: 7px;

    font-size:14px;

    font-weight: 600;

    cursor: pointer;

    background: #fff;
}

.twp-wf-outline-btn {
    border: 1px solid #4e92e8;
    color: #1769e0;
}

.twp-wf-danger-btn {
    border: 1px solid #ff7a80;
    color: #ef303d;
    background: #fff;
}


/* =========================================================
   TARGET
   ========================================================= */

.twp-wf-target-body {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.twp-wf-target-numbers {
    display: flex;

    gap: 32px;
}

.twp-wf-target-numbers strong,
.twp-wf-target-numbers small,
.twp-wf-salary-numbers strong,
.twp-wf-salary-numbers small {
    display: block;
}

.twp-wf-target-numbers strong {
    font-size:22px;
}

.twp-wf-target-numbers small,
.twp-wf-salary-numbers small {
    font-size:13px;

    color: #718096;

    margin-top: 5px;
}


/* =========================================================
   DONUT
   ========================================================= */

.twp-wf-donut {
    width: 82px;
    height: 82px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        conic-gradient(
            #159b6b calc(var(--pct)*1%),
            #e4ebf2 0
        );

    position: relative;

    flex: 0 0 82px;
}

.twp-wf-donut:after {
    content: "";

    position: absolute;

    inset: 9px;

    background: #fff;

    border-radius: 50%;
}

.twp-wf-donut > div {
    position: relative;

    z-index: 1;

    text-align: center;
}

.twp-wf-donut strong,
.twp-wf-donut small {
    display: block;
}

.twp-wf-donut strong {
    font-size:18px;
}

.twp-wf-donut small {
    font-size:10px;

    color: #6f7e91;

    margin-top: 2px;
}

.twp-wf-target-card > .twp-wf-progress {
    height: 10px;

    margin: 16px 0 1px;
}


/* =========================================================
   SALARY
   ========================================================= */

.twp-wf-salary-numbers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin: 13px 0 14px;
}

.twp-wf-salary-numbers > div + div {
    border-left: 1px solid #e8edf3;

    padding-left: 18px;
}

.twp-wf-salary-numbers strong {
    font-size:23px;
}

.twp-wf-threshold-note {
    display: flex;

    align-items: center;

    gap: 8px;

    background: #e5f7ee;

    color: #176e4c;

    border-radius: 9px;

    padding: 10px 11px;

    font-size:12px;

    line-height: 1.4;
}

.twp-wf-threshold-note svg {
    width: 24px;
    height: 24px;

    flex: 0 0 auto;
}

.twp-wf-threshold-note.not-eligible {
    background: #fff1f2;
    color: #b93341;
}

.twp-wf-threshold-bar {
    height: 5px;

    background: #edf1f4;

    border-radius: 10px;

    overflow: hidden;

    margin-top: 12px;
}

.twp-wf-threshold-bar span {
    display: block;

    height: 100%;

    background: #1a9c70;

    border-radius: inherit;
}


/* =========================================================
   INCENTIVES
   ========================================================= */

.twp-wf-incentive-lines > div {
    display: grid;

    grid-template-columns:
        1fr auto auto;

    gap: 8px;

    align-items: center;

    padding: 10px 0;

    border-bottom: 1px solid #edf1f5;
}

.twp-wf-incentive-lines > div:last-child {
    border-bottom: 0;
}

.twp-wf-incentive-lines span {
    font-size:13px;
}

.twp-wf-incentive-lines strong {
    font-size:14px;
}

.twp-wf-incentive-lines em {
    font-style: normal;

    font-size:11px;

    border-radius: 6px;

    padding: 4px 7px;

    background: #fff0d7;

    color: #ef8300;
}

.twp-wf-incentive-lines > div:last-child em {
    background: #edf1f5;
    color: #68788d;
}


/* =========================================================
   CLIENT STATS
   ========================================================= */

.twp-wf-client-stats {
    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 10px;
}

.twp-wf-client-stats > div {
    border-radius: 10px;

    padding: 15px 12px;

    background: #edf5ff;
}

.twp-wf-client-stats > div:nth-child(2) {
    background: #e9f8f0;
}

.twp-wf-client-stats > div:nth-child(3) {
    background: #fff4df;
}

.twp-wf-client-stats > div:nth-child(4) {
    background: #f0eaff;
}

.twp-wf-client-stats > div:nth-child(5) {
    background: #e9f2fb;
}

.twp-wf-client-stats strong,
.twp-wf-client-stats small {
    display: block;
}

.twp-wf-client-stats strong {
    font-size:23px;
    color: #1769a9;
}

.twp-wf-client-stats small {
    font-size:12px;

    margin-top: 4px;

    color: #243b57;
}


/* =========================================================
   ACTIVITY
   ========================================================= */

.twp-wf-activity-list {
    display: flex;

    flex-direction: column;
}

.twp-wf-activity-item {
    display: grid;

    grid-template-columns:
        9px 60px 1fr;

    gap: 10px;

    align-items: start;

    position: relative;

    padding: 9px 0;
}

.twp-wf-activity-item > span {
    width: 8px;
    height: 8px;

    background: #e92f40;

    border-radius: 50%;

    margin-top: 5px;
}

.twp-wf-activity-item:nth-child(2) > span {
    background: #2675d9;
}

.twp-wf-activity-item:nth-child(3) > span {
    background: #16a879;
}

.twp-wf-activity-item small {
    font-size:12px;
    color: #6f7f93;
}

.twp-wf-activity-item p {
    font-size:12px;

    margin: 0;

    color: #24384f;

    line-height: 1.45;
}

.twp-wf-activity-item p strong {
    font-weight: 600;
}

.twp-wf-empty-activity {
    padding: 25px 0;

    color: #7a8797;

    font-size:13px;
}


/* =========================================================
   LOGIN REQUIRED
   ========================================================= */

.twp-wf-dashboard-login-required {
    max-width: 650px;

    margin: 60px auto;

    padding: 30px;

    border: 1px solid #dce4ed;

    border-radius: 12px;

    background: #fff;

    font-family: system-ui, sans-serif;

    color: #22364f;

    text-align: center;

    box-shadow:
        0 8px 30px rgba(0,0,0,.06);
}

.twp-wf-dashboard-login-required a {
    display: inline-block;

    margin-top: 10px;

    color: #1769e0;
}


/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1250px) {

    .twp-wf-sidebar {
        width: 230px;
        flex-basis: 230px;
    }

    .twp-wf-topbar-right {
        gap: 12px;
    }

    .twp-wf-user {
        min-width: 160px;
    }

    .twp-wf-stat-row {
        gap: 12px;
    }

    .twp-wf-content {
        padding: 18px;
    }

    .twp-wf-main-grid {
        grid-template-columns: 1fr;
    }

    .twp-wf-three-grid {
        grid-template-columns: 1fr 1fr;
    }

    .twp-wf-incentive-card {
        grid-column: span 2;
    }

    .twp-wf-bottom-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    /*
     * IMPORTANT:
     * mobile-navigation.css is the single authority for the
     * mobile sidebar. No sidebar positioning is defined here.
     *
     * These rules standardize the mobile header only.
     */

    .twp-wf-topbar {
        position: relative;
        width: 100%;
        min-height: 96px;

        display: flex;
        align-items: center;

        gap: 10px;
        padding: 14px 16px;

        box-sizing: border-box;
        overflow: hidden;
    }

    .twp-wf-mobile-menu {
        flex: 0 0 42px;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;

        align-self: center;
        margin: 0;
        padding: 0;
    }

    .twp-wf-greeting,
    .twp-wf-page-heading {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;

        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .twp-wf-greeting h1,
    .twp-wf-page-heading h1 {
        margin: 0;

        font-size: 24px;
        line-height: 1.12;
        font-weight: 720;
        letter-spacing: -.035em;

        color: #10243c;

        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .twp-wf-greeting p,
    .twp-wf-page-heading p {
        display: -webkit-box;

        margin: 6px 0 0;

        font-size:14px;
        line-height: 1.42;
        color: #52657b;

        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;

        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow-wrap: normal;
        word-break: normal;
    }

    .twp-wf-topbar-right {
        flex: 0 0 auto;

        display: flex;
        align-items: center;

        width: auto;
        min-width: 0;

        margin-left: auto;
        gap: 0;
    }

    .twp-wf-topbar-right .twp-wf-date,
    .twp-wf-topbar-right .twp-wf-notification {
        display: none;
    }

    .twp-wf-user {
        min-width: 0;
        width: 40px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 0;
    }

    .twp-wf-user > div:not(.twp-wf-avatar),
    .twp-wf-profile-chevron {
        display: none;
    }

    .twp-wf-avatar {
        width: 40px;
        height: 40px;

        min-width: 40px;
        min-height: 40px;

        flex: 0 0 40px;
    }

    .twp-wf-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .twp-wf-three-grid {
        grid-template-columns: 1fr;
    }

    .twp-wf-incentive-card {
        grid-column: auto;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .twp-wf-topbar {
        min-height: 94px;

        padding: 13px 14px;
        gap: 8px;

        align-items: center;
    }

    .twp-wf-mobile-menu {
        width: 40px;
        height: 40px;

        min-width: 40px;
        min-height: 40px;

        flex: 0 0 40px;
    }

    .twp-wf-mobile-menu svg {
        width: 20px;
        height: 20px;
    }

    .twp-wf-greeting h1,
    .twp-wf-page-heading h1 {
        font-size: 23px;
        line-height: 1.1;
        letter-spacing: -.035em;
    }

    .twp-wf-greeting p,
    .twp-wf-page-heading p {
        margin-top: 5px;

        font-size:13.5px;
        line-height: 1.4;

        -webkit-line-clamp: 2;
    }

    .twp-wf-user {
        width: 38px;
    }

    .twp-wf-avatar {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        flex-basis: 38px;
    }

    .twp-wf-content {
        padding: 12px;
    }
}


/* =========================================================
   MOBILE HEADER — FINAL WIDTH FIX
   This section does NOT modify the sidebar.
   It prevents the date/time block from occupying the
   narrow mobile heading area.
   ========================================================= */

@media (max-width: 850px) {

    .twp-wf-topbar {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .twp-wf-page-heading,
    .twp-wf-greeting {
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .twp-wf-page-heading h1,
    .twp-wf-greeting h1 {
        display: block !important;
        width: 100% !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .twp-wf-page-heading p,
    .twp-wf-greeting p {
        width: 100% !important;
        max-width: 100% !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /*
     * Page-specific headers use .twp-wf-date-block and
     * .twp-wf-calendar-icon rather than .twp-wf-date.
     * Hide the desktop date/time block on narrow screens.
     */
    .twp-wf-topbar .twp-wf-date,
    .twp-wf-topbar .twp-wf-date-block,
    .twp-wf-topbar .twp-wf-calendar-icon,
    .twp-wf-topbar .twp-wf-notification {
        display: none !important;
    }

    /*
     * Different pages use different avatar class names.
     * Keep the avatar visible, but remove the desktop
     * employee name / role / chevron.
     */
    .twp-wf-topbar .twp-wf-user {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;

        margin-left: 0 !important;
        gap: 0 !important;
    }

    .twp-wf-topbar .twp-wf-user > div:not(.twp-wf-avatar),
    .twp-wf-topbar .twp-wf-user > div:not(.twp-wf-avatar-placeholder),
    .twp-wf-topbar .twp-wf-user > span:not(.twp-wf-avatar-placeholder):not(.twp-wf-avatar),
    .twp-wf-topbar .twp-wf-profile-chevron {
        display: none !important;
    }

    .twp-wf-topbar .twp-wf-avatar,
    .twp-wf-topbar .twp-wf-avatar-placeholder {
        display: block !important;

        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        min-height: 40px !important;

        flex: 0 0 40px !important;
    }
}

@media (max-width: 560px) {

    .twp-wf-topbar {
        min-height: 94px !important;

        padding-left: 14px !important;
        padding-right: 14px !important;

        gap: 8px !important;
    }

    .twp-wf-mobile-menu {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;

        height: 40px !important;
        min-height: 40px !important;
    }

    .twp-wf-page-heading h1,
    .twp-wf-greeting h1 {
        font-size: 23px !important;
        line-height: 1.1 !important;
    }

    .twp-wf-page-heading p,
    .twp-wf-greeting p {
        font-size:13.5px !important;
        line-height: 1.4 !important;

        margin-top: 5px !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;
    }

    .twp-wf-topbar .twp-wf-user {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
    }

    .twp-wf-topbar .twp-wf-avatar,
    .twp-wf-topbar .twp-wf-avatar-placeholder {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        flex-basis: 38px !important;
    }
}
