/* Employee app → Dashboard / Home (templates/app/dashboard.php). Uses the theme variables of
   app-shell.css. assets/css/app-home-rtl.css is generated with rtlcss (assets/css/README.md). */

/* the greeting in the frame's header, and the page pulled up over it */
.wfo-app .wfo-header.has-greeting{padding-bottom:78px;align-items:flex-start}
.wfo-app .wfo-header-kicker{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;color:rgba(255,255,255,.75);font-size:13px}
.wfo-app .wfo-header.has-greeting .ews-title{margin:0;font-size:13px;font-weight:600;color:rgba(255,255,255,.85);line-height:1.4}
.wfo-app .wfo-header-kicker span::before{content:"·";margin-inline-end:6px}
.wfo-app .wfo-header.has-greeting .wfo-header-text{flex:1 1 auto;min-width:0}
.wfo-header-greeting{margin:4px 0 0;font-size:28px;font-weight:700;line-height:1.25;color:#fff}
.wfo-header.has-greeting+.wfo-content .wfo-home{margin-top:-62px;position:relative}

.wfo-home{display:flex;flex-direction:column;gap:16px}
.wfo-app .wfo-home h2,.wfo-app .wfo-home h3,.wfo-app .wfo-home p{margin:0}
.wfo-card{background:var(--wfo-surface);border-radius:var(--wfo-r-card);box-shadow:var(--wfo-shadow);padding:18px 20px}
.wfo-card-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.wfo-card-head-row{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px}
.wfo-card-head h3{font-size:16px;font-weight:600;color:var(--wfo-ink)}
.wfo-muted{color:var(--wfo-muted);font-size:13px;display:flex;align-items:center;gap:6px}
.wfo-kicker{display:block;font-size:11px;font-weight:600;letter-spacing:.4px;color:var(--wfo-muted)}
.wfo-link{color:var(--wfo-pri);font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap}
.wfo-link:hover{text-decoration:underline}

/* status chips: icon + word, never colour alone */

.wfo-home-holiday{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:var(--wfo-r-ctl);background:#FFF2DE;color:#6B3E00;font-size:14px;box-shadow:var(--wfo-shadow)}

/* employee: today */
.wfo-home-today{background:var(--wfo-surface);border-radius:var(--wfo-r-card);box-shadow:var(--wfo-shadow);padding:20px;display:flex;flex-direction:column;gap:16px}
.wfo-home-today-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.wfo-app .wfo-home-status{font-size:26px;font-weight:700;color:var(--wfo-ink);line-height:1.2;margin:2px 0 4px}
.wfo-home-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wfo-home-times>div{background:var(--wfo-bg);border-radius:var(--wfo-r-sm);padding:10px 12px;min-width:0}
.wfo-home-times span{display:block;font-size:12px;color:var(--wfo-muted)}
.wfo-home-times b{display:block;font-size:16px;font-weight:700;color:var(--wfo-ink);overflow-wrap:anywhere}
.wfo-home-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:var(--wfo-r-ctl);background:var(--wfo-hero-start);color:#fff!important;text-decoration:none;font-weight:700;font-size:15px}
.wfo-home-action:hover{filter:brightness(1.12)}
.wfo-home-action:focus-visible,.wfo-tile:focus-visible,.wfo-link:focus-visible,.wfo-btn-sm:focus-visible,.wfo-nudge-dismiss:focus-visible{outline:2px solid var(--wfo-pri);outline-offset:2px}

/* nudges */
.wfo-home-nudges{display:flex;flex-direction:column;gap:10px}
.wfo-nudge{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--wfo-r-card);background:#FFF7E8;color:#5A3700;box-shadow:var(--wfo-shadow)}
.wfo-nudge-icon{width:42px;height:42px;flex:0 0 auto;border-radius:var(--wfo-r-sm);background:#FFE7B8;color:#8A4F00;display:flex;align-items:center;justify-content:center}
.wfo-nudge-body{flex:1 1 auto;min-width:0}.wfo-nudge-body strong{font-size:14px}.wfo-nudge-body p{font-size:13px;line-height:1.45}
.wfo-nudge-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.wfo-btn-sm{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:var(--wfo-r-sm);background:var(--wfo-hero-start);color:#fff!important;text-decoration:none;font-size:13px;font-weight:600}
.wfo-nudge-dismiss{color:#5A3700;font-size:13px}

/* tiles */
.wfo-home-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:14px 8px;padding:18px 12px}
.wfo-tile{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--wfo-ink);font-size:12px;font-weight:500;text-align:center;line-height:1.25;border-radius:var(--wfo-r-sm);padding:2px}
.wfo-tile-icon{position:relative;width:54px;height:54px;border-radius:calc(var(--wfo-r-sm) + 4px);display:flex;align-items:center;justify-content:center;transition:transform .15s}
.wfo-tile:hover .wfo-tile-icon{transform:translateY(-2px)}
.wfo-tile-label{max-width:100%;overflow-wrap:break-word}
.wfo-home .is-green{background:#E6F7EF;color:#0F8A55}.wfo-home .is-blue{background:#E7EEFF;color:#2B5BD7}.wfo-home .is-purple{background:#F1EAFF;color:#6A3FD0}.wfo-home .is-amber{background:#FFF2DE;color:#B86A00}
.wfo-home .is-teal{background:#E3F6F8;color:#0B7A8A}.wfo-home .is-rose{background:#FFE8EC;color:#C2264B}.wfo-home .is-lime{background:#EAF6E3;color:#3F7F12}.wfo-home .is-slate{background:#EEF0F5;color:#3B4466}
.wfo-badge{position:absolute;top:-5px;inset-inline-end:-5px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#E5484D;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid var(--wfo-surface)}

/* manager: numbers */
.wfo-home-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.wfo-kpi{display:flex;align-items:center;gap:12px;background:var(--wfo-surface);border-radius:var(--wfo-r-card);box-shadow:var(--wfo-shadow);padding:16px;min-width:0}
.wfo-kpi-icon{width:46px;height:46px;flex:0 0 auto;border-radius:var(--wfo-r-sm);display:flex;align-items:center;justify-content:center}
.wfo-kpi .n{font-size:28px;font-weight:700;line-height:1.1;color:var(--wfo-ink)}
.wfo-kpi .l{font-size:12px;color:var(--wfo-muted);line-height:1.3}

.wfo-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.wfo-bars{display:flex;flex-direction:column;gap:14px}
.wfo-bar-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:6px}
.wfo-bar-top span{display:inline-flex;align-items:center;gap:6px;color:var(--wfo-ink)}
.wfo-bar i{display:block;height:8px;border-radius:999px;background:var(--wfo-bg);overflow:hidden}
.wfo-bar em{display:block;height:100%;border-radius:999px;min-width:0}
.wfo-home .wfo-bar em.is-green{background:#0F8A55}.wfo-home .wfo-bar em.is-blue{background:#2B5BD7}.wfo-home .wfo-bar em.is-amber{background:#D98A00}
.wfo-weekdays{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.wfo-weekdays span{padding:5px 10px;border-radius:999px;background:var(--wfo-pri-soft);color:var(--wfo-pri);font-size:12px;font-weight:600}

/* employee: week, moments, overtime */
.wfo-week-list{list-style:none;margin:0;padding:0}
.wfo-week-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--wfo-line);font-size:14px}
.wfo-week-list li:last-child{border-bottom:0}
.wfo-moments{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.wfo-moment{display:flex;gap:12px;align-items:center;padding:12px;border-radius:var(--wfo-r-sm);background:var(--wfo-bg)}
.wfo-moment-icon{width:42px;height:42px;flex:0 0 auto;border-radius:var(--wfo-r-sm);background:#FFE8EC;color:#C2264B;display:flex;align-items:center;justify-content:center}
.wfo-moment p{font-size:13px;color:var(--wfo-muted)}
.wfo-home-overtime .wfo-muted{margin-top:10px}
.wfo-home-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:32px 20px}
.wfo-home-empty-icon{width:60px;height:60px;border-radius:999px;background:var(--wfo-pri-soft);color:var(--wfo-pri);display:flex;align-items:center;justify-content:center}


@media (max-width:820px){
    .wfo-app .wfo-header.has-greeting{padding-bottom:70px}
    .wfo-header-greeting{font-size:22px}
    .wfo-app .wfo-header-kicker{flex-direction:column;align-items:flex-start;gap:0;font-size:12px}
    .wfo-app .wfo-header-kicker span::before{content:none}
    .wfo-tile{font-size:11px}
    .wfo-header.has-greeting+.wfo-content .wfo-home{margin-top:-58px}
    .wfo-home{gap:12px}
    .wfo-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .wfo-kpi{padding:12px;gap:10px}.wfo-kpi-icon{width:40px;height:40px}.wfo-kpi .n{font-size:24px}
    .wfo-home-today{padding:16px}
    .wfo-app .wfo-home-status{font-size:22px}
    .wfo-home-times{gap:8px}.wfo-home-times>div{padding:8px 10px}.wfo-home-times b{font-size:14px}
    .wfo-home-tiles{grid-template-columns:repeat(4,minmax(0,1fr));padding:16px 8px}
    .wfo-tile-icon{width:50px;height:50px}
    .wfo-nudge{flex-wrap:wrap}.wfo-nudge-actions{width:100%;justify-content:flex-end}
    .wfo-card{padding:16px}
}
@media (prefers-reduced-motion:reduce){.wfo-tile-icon{transition:none}}

/* empty states inside Home cards (shared helper ews_empty_state()) */
.wfo-app .wfo-home .ews-empty-state{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;padding:20px 12px;text-align:center;border:1px dashed var(--wfo-line);border-radius:var(--wfo-r-ctl);background:var(--wfo-bg)}
.wfo-app .wfo-home .ews-empty-icon{width:44px;height:44px;border-radius:999px;background:var(--wfo-pri-soft);color:var(--wfo-pri);display:flex;align-items:center;justify-content:center;font-size:18px}
.wfo-app .wfo-home .ews-empty-title{font-size:14px;font-weight:600;color:var(--wfo-ink)}
.wfo-app .wfo-home .ews-empty-text{font-size:13px;line-height:1.5;color:var(--wfo-muted)}
.wfo-app .wfo-home .ews-empty-action{margin-top:4px;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:var(--wfo-r-sm);background:var(--wfo-hero-start);color:#fff;text-decoration:none;font-size:13px;font-weight:600}

/* My tasks today (3.31.70): the next step of each task in one tap */
.wfo-home-tasks .wfo-home-link{font-size:13px;font-weight:600;color:var(--wfo-pri);text-decoration:none;white-space:nowrap}
.wfo-home-tasks ul{margin:0;padding:0;list-style:none}
.wfo-home-tasks li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--wfo-line)}
.wfo-home-tasks li:first-child{border-top:0;padding-top:0}
.wfo-home-tasks li form{margin:0;flex:0 0 auto}
.wfo-app .wfo-home-task-btn{display:inline-flex;align-items:center;gap:4px;min-height:36px;margin:0;padding:0 12px;border:0;border-radius:10px;background:var(--wfo-pri-soft);color:var(--wfo-pri);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.wfo-app .wfo-home-task-btn.is-done{background:#E6F7EF;color:#0F6B43}
.wfo-home-tasks li a{flex:1 1 auto;min-width:0;text-decoration:none;border-inline-start:3px solid #C9CDDB;padding-inline-start:10px}
.wfo-home-tasks li.pr-urgent a{border-color:#E06A84}.wfo-home-tasks li.pr-high a{border-color:#E8A33A}.wfo-home-tasks li.pr-normal a{border-color:#6C8EEB}
.wfo-home-tasks li b{display:block;font-size:14px;font-weight:600;color:var(--wfo-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext}
.wfo-home-tasks li small{display:block;font-size:12px;color:var(--wfo-muted)}
.wfo-home-tasks li small.is-late{color:#A51D3E;font-weight:600}

/* Branches (3.31.72): "Planned for today" beside the branch, and an upcoming day's branch. */
.wfo-app .wfo-home-branch-note{color:var(--wfo-pri);font-weight:600}
.wfo-app .wfo-week-list .wfo-week-branch{display:block;font-size:11.5px;color:var(--wfo-muted);font-weight:500}
