:root{--bg:#f4f4f2;--panel:#fff;--text:#171717;--muted:#747474;--line:#e5e5e2;--soft:#efefec;--accent:#262626;--ok:#e8f2ed;--danger:#f7e9e9;--radius:18px}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text)}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:650;margin:0 0 14px}label input,label select,label textarea{margin-top:7px;font-weight:400}.btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.full{width:100%;grid-column:1/-1}.muted{color:var(--muted)}.eyebrow{display:block;font-size:11px;letter-spacing:.11em;color:var(--muted);font-weight:800}.brand{font-size:25px;font-weight:850;letter-spacing:-.04em}.auth{min-height:100vh;display:grid;place-items:center;padding:22px;background:#ededeb}.auth-card{width:min(440px,100%);background:var(--panel);padding:30px;border:1px solid var(--line);border-radius:24px;box-shadow:0 18px 60px rgba(0,0,0,.05)}.auth-card h1{margin:28px 0 5px;font-size:27px}.auth-links{text-align:center;margin-top:18px;font-size:14px}.install-card{width:min(760px,100%)}.alert{padding:12px 14px;border-radius:12px;background:var(--ok);margin:15px 0;font-size:14px}.alert.danger{background:var(--danger)}.grid{display:grid;gap:0 14px}.grid.two{grid-template-columns:1fr 1fr}.grid.five{grid-template-columns:repeat(5,1fr);margin:18px 0}.mobile-shell{width:min(640px,100%);margin:auto;min-height:100vh;padding:24px 20px 94px}.top{display:flex;justify-content:space-between;align-items:center;margin:10px 0 24px}.top h2{margin:2px 0;font-size:25px}.avatar,.big-avatar{display:grid;place-items:center;background:#272727;color:#fff;border-radius:50%;font-weight:800}.avatar{width:44px;height:44px}.shortcut-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.shortcut-grid form{display:contents}.shortcut{border:1px solid var(--line);background:var(--panel);border-radius:17px;padding:15px 12px;text-align:left;min-height:116px;color:var(--text)}button.shortcut{width:100%;cursor:pointer}.shortcut .icon{width:35px;height:35px;border-radius:10px;background:var(--soft);display:grid;place-items:center;margin-bottom:13px;font-size:20px}.shortcut strong,.shortcut small{display:block}.shortcut small{color:var(--muted);font-size:11px;margin-top:5px}.shortcut.active{background:#242424;color:#fff}.shortcut.active small{color:#cfcfcf}.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px}.section-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:10px}.section-head h3{margin:0}.section-head a{font-size:13px;color:var(--muted)}.shift,.list-row,.store-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.shift p,.list-row p{margin:3px 0 0;color:var(--muted);font-size:13px}.list-row small,.store-row small{display:block;color:var(--muted);margin-top:4px}.pill{padding:6px 9px;border-radius:99px;background:var(--soft);font-size:11px;text-transform:capitalize}.status-line{background:var(--soft);padding:10px 12px;border-radius:12px;font-size:13px;margin-top:10px}.dot{display:inline-block;width:8px;height:8px;background:#5e8b74;border-radius:50%;margin-right:7px}.empty{padding:16px 0;color:var(--muted);font-size:14px}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(640px,100%);background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:10px 7px 18px;z-index:20}.bottom-nav a{text-align:center;font-size:11px;color:var(--muted);padding:8px 2px}.bottom-nav a.on{color:var(--text);font-weight:800}.subpage{padding-top:14px}.page-head{display:flex;gap:14px;align-items:flex-start;margin:12px 0 20px}.page-head>a{font-size:24px}.page-head h1{font-size:27px;margin:2px 0}.profile-card{text-align:center}.big-avatar{width:76px;height:76px;margin:0 auto 15px;font-size:26px}.facts{text-align:left;margin:22px 0}.facts>div{display:flex;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line);gap:10px}.facts span{color:var(--muted)}.event{display:grid;grid-template-columns:56px 1fr;gap:13px;padding:14px 0;border-top:1px solid var(--line)}.datebox{height:56px;border:1px solid var(--line);border-radius:13px;display:grid;place-items:center;align-content:center}.datebox strong{font-size:20px}.datebox span{font-size:9px;color:var(--muted)}.event small{display:block;color:var(--muted);margin-top:4px}.event p{font-size:13px;color:var(--muted);margin-top:7px}.content{max-width:1000px;margin:0 auto;padding:24px}.content.narrow{max-width:720px}.chat{display:flex;flex-direction:column;gap:10px;margin:20px 0}.bubble{max-width:80%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px}.bubble.mine{align-self:flex-end;background:#272727;color:#fff;border-color:#272727}.bubble p{margin:5px 0 9px}.bubble small{opacity:.65}.composer{display:grid;grid-template-columns:1fr auto;gap:10px}.backend{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#181818;color:#fff;padding:25px 18px;position:sticky;top:0;height:100vh}.role-tag{display:inline-block;background:#303030;border-radius:99px;padding:5px 9px;font-size:10px;margin:9px 0 24px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:10px 12px;border-radius:10px;color:#bdbdbd}.sidebar nav a.on,.sidebar nav a:hover{background:#2b2b2b;color:#fff}.backend-main{padding:28px;min-width:0}.backend-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.backend-top h1{margin:3px 0}.user-chip{background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:99px;font-size:13px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:15px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;font-size:31px;margin-top:8px}.staff-chips{display:flex;flex-wrap:wrap;gap:5px}.staff-chips span{background:var(--soft);border-radius:99px;padding:5px 8px;font-size:11px}.inline{display:flex;gap:8px;align-items:center}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}td small{display:block;color:var(--muted);margin-top:3px}.approval{display:grid;grid-template-columns:1fr 300px;gap:24px;border-top:1px solid var(--line);padding:20px 0}.callout{background:var(--soft);border-radius:13px;padding:15px;margin-top:16px}.check{display:flex;gap:8px;align-items:center}.check input{width:auto;margin:0}@media(max-width:800px){.grid.two,.grid.five{grid-template-columns:1fr}.backend{display:block}.sidebar{position:relative;height:auto}.sidebar nav{grid-template-columns:repeat(2,1fr)}.backend-main{padding:18px}.metrics{grid-template-columns:1fr 1fr}.approval{grid-template-columns:1fr}.composer{grid-template-columns:1fr}.shortcut-grid{gap:7px}.shortcut{padding:13px 9px}.shortcut strong{font-size:13px}.shortcut small{font-size:10px}}
.view-as-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#181818;color:#fff;border-radius:14px;padding:12px 14px;margin:0 0 16px}.view-as-banner strong,.view-as-banner small{display:block}.view-as-banner small{margin-top:3px;color:#c7c7c7;font-size:11px;line-height:1.35}.view-as-banner a{flex:0 0 auto;background:#fff;color:#181818;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:800}@media(max-width:520px){.view-as-banner{align-items:flex-start;flex-direction:column}.view-as-banner a{width:100%;text-align:center}}
.remember-note{font-size:12px;line-height:1.45;margin:14px 2px 0}.attendance-modal{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:80;display:grid;place-items:end center;padding:18px}.attendance-modal[hidden]{display:none}.attendance-dialog{width:min(600px,100%);background:#fff;border-radius:22px;padding:22px;border:1px solid var(--line);box-shadow:0 20px 80px rgba(0,0,0,.18)}.attendance-dialog h3{font-size:22px;margin:6px 0 8px}.attendance-dialog p{color:var(--muted);line-height:1.5}.attendance-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;margin-top:18px}.shortcut:disabled{opacity:.55;cursor:not-allowed}.completed-line{color:#4f665a}.store-config{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr auto auto;gap:12px;align-items:end;padding:16px 0;border-top:1px solid var(--line)}.store-config>div small{display:block;color:var(--muted);margin-top:4px}.store-config label{margin:0}.attendance-history-row{display:grid;grid-template-columns:1fr 1.5fr;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.attendance-history-row small{display:block;color:var(--muted);margin-top:4px}.attendance-times{text-align:right}@media(max-width:900px){.store-config{grid-template-columns:1fr 1fr}.store-config>div,.store-config .btn{grid-column:1/-1}}@media(max-width:520px){.attendance-actions{grid-template-columns:1fr}.attendance-history-row{grid-template-columns:1fr}.attendance-times{text-align:left}}

/* Attendance confirmation overlay - v2 */
body.attendance-modal-open{overflow:hidden}
.attendance-modal{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:9999!important;background:rgba(15,15,15,.52)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;overflow:auto!important}
.attendance-modal[hidden]{display:none!important}
.attendance-dialog{position:relative!important;width:min(520px,calc(100vw - 32px))!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;margin:auto!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:22px!important;padding:22px!important;box-shadow:0 24px 90px rgba(0,0,0,.25)!important}
@media(max-width:600px){.attendance-modal{align-items:flex-end!important;padding:0!important}.attendance-dialog{width:100%!important;max-width:none!important;max-height:min(82dvh,680px)!important;margin:0!important;border-radius:22px 22px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;padding:22px 20px calc(22px + env(safe-area-inset-bottom))!important}.attendance-actions{grid-template-columns:1fr!important}.attendance-actions .btn{min-height:48px!important}}

/* Weekly schedule planner */
.schedule-main{max-width:none}.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.schedule-store-tabs{display:flex;gap:7px;flex-wrap:wrap}.schedule-store-tabs a{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 13px;font-size:12px;font-weight:750;color:var(--muted)}.schedule-store-tabs a.on{background:#181818;color:#fff;border-color:#181818}.week-nav{display:flex;align-items:center;gap:10px}.week-nav strong{min-width:180px;text-align:center;font-size:13px}.schedule-summary{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:10px;margin-bottom:16px}.schedule-summary>div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px}.schedule-summary span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.schedule-summary strong{display:block;margin-top:5px;font-size:15px}.schedule-status{display:inline-block!important;border-radius:999px;padding:5px 8px;font-size:10px!important;letter-spacing:.05em}.schedule-status.draft{background:#efefef;color:#555}.schedule-status.submitted{background:#e7edf1;color:#41515e}.schedule-status.returned{background:#f5e9e6;color:#85594f}.schedule-status.approved{background:#e4eee8;color:#426252}.schedule-alert{background:#edf1f3;border:1px solid #dce3e6;border-radius:13px;padding:13px 15px;margin-bottom:16px;font-size:13px}.schedule-alert.danger,.schedule-alert.returned{background:#f7ece9;border-color:#edd8d2}.schedule-alert strong{margin-right:4px}.shift-palette{margin-bottom:16px}.shift-blocks{display:flex;flex-wrap:wrap;gap:8px}.shift-block{border:1px solid transparent;border-radius:12px;padding:10px 12px;text-align:left;min-width:120px;cursor:grab}.shift-block strong,.shift-block small{display:block}.shift-block small{margin-top:3px;font-size:10px;opacity:.72}.shift-opening{background:#e7edf1!important;color:#40515d!important;border-color:#d5e0e6!important}.shift-mid{background:#e9efe8!important;color:#4b6250!important;border-color:#d8e4d7!important}.shift-closing{background:#f4eddf!important;color:#765f37!important;border-color:#e8ddc7!important}.shift-custom{background:#eee9f2!important;color:#62536e!important;border-color:#e1d8e8!important}.compact-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--line);align-items:end}.schedule-board-panel{overflow:hidden}.schedule-scroll{overflow:auto;padding-bottom:4px}.schedule-grid{display:grid;grid-template-columns:180px repeat(7,minmax(132px,1fr));min-width:1100px;border-top:1px solid var(--line);border-left:1px solid var(--line)}.schedule-grid>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule-corner,.schedule-day-head{background:#f7f7f6;min-height:58px;padding:11px;display:flex;flex-direction:column;justify-content:center}.schedule-corner{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.schedule-day-head{text-align:center}.schedule-day-head strong{font-size:12px}.schedule-day-head span{font-size:10px;color:var(--muted);margin-top:2px}.schedule-person{padding:12px;background:#fafafa;min-height:84px;position:relative}.schedule-person strong,.schedule-person small{display:block}.schedule-person strong{font-size:12px}.schedule-person small{font-size:10px;color:var(--muted);margin-top:3px}.schedule-person span{display:inline-block;margin-top:8px;font-size:10px;color:var(--muted)}.schedule-cell{min-height:84px;padding:7px;position:relative;background:#fff;transition:.15s}.schedule-cell.drag-over,.schedule-cell.pick-target{background:#f4f6f4;box-shadow:inset 0 0 0 2px #b9c5bd}.drop-hint,.off-label{position:absolute;inset:0;display:grid;place-items:center;color:#bbb;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.off-label{color:#ccc}.placed-shift{position:relative;border:1px solid;border-radius:10px;padding:9px;min-height:60px}.placed-shift strong,.placed-shift small{display:block}.placed-shift strong{font-size:11px}.placed-shift small{font-size:9px;margin-top:4px;line-height:1.3}.placed-shift form{position:absolute;right:4px;top:4px}.placed-shift button{width:20px;height:20px;border:0;background:rgba(255,255,255,.75);border-radius:50%;cursor:pointer;line-height:18px}.approval-panel{display:grid;grid-template-columns:1fr minmax(300px,430px);gap:30px;align-items:start}.approval-panel form{display:grid;gap:9px}.history-row{display:grid;grid-template-columns:260px 1fr;gap:20px;padding:13px 0;border-top:1px solid var(--line)}.history-row strong,.history-row small{display:block}.history-row small{font-size:10px;color:var(--muted);margin-top:3px}.history-row p{margin:0;font-size:12px;color:var(--muted)}
@media(max-width:950px){.schedule-toolbar{align-items:stretch;flex-direction:column}.week-nav{justify-content:space-between}.schedule-summary{grid-template-columns:1fr 1fr}.schedule-summary>div:first-child{grid-column:1/-1}.approval-panel{grid-template-columns:1fr}.schedule-main{padding-left:14px;padding-right:14px}}
@media(max-width:600px){.schedule-store-tabs{display:grid;grid-template-columns:1fr}.schedule-store-tabs a{text-align:center}.schedule-summary{grid-template-columns:1fr 1fr}.week-nav strong{min-width:0}.shift-block{flex:1 1 46%}.history-row{grid-template-columns:1fr}.schedule-board-panel{padding-left:10px;padding-right:10px}}


/* Editable shift blocks */
.shift-block-wrap{position:relative;display:inline-flex;align-items:stretch;gap:6px;flex-wrap:wrap}
.shift-block-wrap>.shift-block{min-width:150px}
.shift-edit-btn{border:1px solid #d8d8d8;background:#fff;color:#333;border-radius:10px;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;align-self:center}
.shift-edit-btn:hover{background:#f4f4f4}
.shift-edit-form{flex-basis:100%;display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr auto;gap:10px;align-items:end;padding:12px;margin-top:4px;border:1px solid #dedede;border-radius:12px;background:#fafafa;min-width:min(720px,90vw)}
.shift-edit-form[hidden]{display:none!important}
.shift-edit-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#555}
.shift-edit-form input,.shift-edit-form select{width:100%;min-height:38px;border:1px solid #d6d6d6;border-radius:9px;background:#fff;padding:7px 9px;font:inherit;color:#222}
@media(max-width:760px){.shift-block-wrap{width:100%}.shift-block-wrap>.shift-block{flex:1}.shift-edit-form{grid-template-columns:1fr 1fr;min-width:0;width:100%}.shift-edit-form .inline{grid-column:1/-1}}


/* Position-based employee organization + refined shift block controls */
.position-edit-form{display:flex;align-items:center;gap:7px;min-width:260px}.position-edit-form input{min-width:160px;height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:7px 9px;font:inherit;font-size:12px}.position-save-btn{padding:8px 11px!important;min-height:36px}.position-pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#f6f6f5;padding:5px 9px;font-size:11px;font-weight:700;color:#555}
.schedule-position-group{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:38px!important;padding:8px 12px!important;background:#f0f0ee!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;color:#4a4a48}.schedule-position-group strong{font-size:11px;text-transform:uppercase;letter-spacing:.08em}.schedule-position-group span{font-size:10px;color:var(--muted)}
.shift-block-wrap{gap:0!important;border:1px solid transparent;border-radius:13px;overflow:hidden;align-items:stretch!important}.shift-block-wrap>.shift-block{border-radius:12px 0 0 12px!important;border-right:0!important;margin:0!important}.shift-edit-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;min-width:46px!important;border:1px solid #d8d8d8!important;border-left:1px solid rgba(0,0,0,.08)!important;background:#fff!important;color:#555!important;border-radius:0 12px 12px 0!important;padding:0 11px!important;font-size:0!important;font-weight:800!important;cursor:pointer!important;transition:.15s ease!important}.shift-edit-btn:before{content:'✎';font-size:15px;line-height:1}.shift-edit-btn:hover{background:#f4f4f3!important;color:#111!important}.shift-edit-btn:focus-visible{outline:2px solid #222;outline-offset:-2px}.shift-edit-form{border-radius:12px!important}
@media(max-width:760px){.position-edit-form{min-width:0;flex-wrap:wrap}.position-edit-form input{min-width:140px;flex:1}.shift-block-wrap{width:100%;overflow:visible}.shift-block-wrap>.shift-block{border-radius:12px 0 0 12px!important}.shift-edit-btn{border-radius:0 12px 12px 0!important;min-width:50px!important}}

/* Scheduler: compact manager + sticky shift assignment toolbar */
.shift-manager{padding:18px 20px!important}.shift-manager .section-head{margin-bottom:0}.shift-manager .section-head p{margin:5px 0 0}.shift-manager #shiftManagerBody{border-top:1px solid #e7e7e3;margin-top:16px;padding-top:16px}
.shift-manager-list{display:flex;flex-wrap:wrap;gap:10px}.shift-manager-item{display:flex;align-items:center;gap:7px;position:relative}.shift-preview{min-width:145px;border-radius:10px;padding:9px 12px;display:flex;flex-direction:column}.shift-preview small{margin-top:2px}.shift-manager-item .shift-edit-form{position:absolute;z-index:30;top:48px;left:0;width:430px;background:#fff;border:1px solid #ddd;border-radius:14px;padding:14px;box-shadow:0 18px 45px rgba(0,0,0,.12)}.shift-new-form{margin-top:16px;padding-top:16px;border-top:1px solid #ecece8}
.schedule-board-panel{position:relative;overflow:visible!important}.schedule-shift-toolbar{position:sticky;top:0;z-index:25;margin:-1px -1px 16px;padding:10px 12px;display:flex;align-items:center;gap:12px;background:rgba(250,250,248,.96);border:1px solid #deded9;border-radius:14px;box-shadow:0 5px 18px rgba(0,0,0,.06);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.schedule-shift-toolbar-label{flex:0 0 auto;display:flex;flex-direction:column;min-width:125px}.schedule-shift-toolbar-label span{font-size:11px;letter-spacing:.11em;font-weight:900;color:#62625e}.schedule-shift-toolbar-label small{font-size:11px;color:#888881;margin-top:2px;max-width:220px}
.schedule-shift-toolbar-scroll{display:flex;align-items:stretch;gap:7px;overflow-x:auto;min-width:0;flex:1;padding:2px}.schedule-toolbar-block{flex:0 0 auto;min-width:132px;border:1px solid transparent!important;border-radius:10px!important;padding:7px 11px!important;text-align:left;cursor:grab}.schedule-toolbar-block strong,.schedule-toolbar-block small{display:block}.schedule-toolbar-block small{font-size:10px;margin-top:2px}.schedule-toolbar-block.selected{outline:3px solid #20201f;outline-offset:1px;transform:translateY(-1px)}.schedule-toolbar-block.dragging{opacity:.55}.schedule-manage-blocks{flex:0 0 38px;border:1px dashed #c8c8c2;background:#fff;border-radius:10px;font-size:22px;color:#555;cursor:pointer}
.schedule-cell:not(.has-shift) .drop-hint{font-size:0;opacity:0;transition:.15s}.schedule-cell:not(.has-shift):hover .drop-hint,.schedule-cell.pick-target .drop-hint{opacity:1;font-size:20px;color:#9a9a94}.schedule-cell.pick-target{cursor:pointer;background:#fafaf7}.schedule-cell.pick-target:hover{box-shadow:inset 0 0 0 2px #aaa}.schedule-cell.drag-over{box-shadow:inset 0 0 0 3px #333!important;background:#f3f3ef!important}
@media(max-width:800px){.schedule-shift-toolbar{top:0;flex-wrap:nowrap;padding:8px}.schedule-shift-toolbar-label{display:none}.schedule-toolbar-block{min-width:116px}.shift-manager-item .shift-edit-form{position:fixed;left:14px;right:14px;top:80px;width:auto}.schedule-shift-toolbar #cancelShiftPick{flex:0 0 auto}}

/* Compact scheduling toolbar layout fix */
.schedule-board-panel .schedule-shift-toolbar{
  position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:10px;
  min-height:58px;margin:-1px -1px 14px;padding:8px 10px;
  background:rgba(250,250,248,.97);border:1px solid #deded9;border-radius:13px;
  box-shadow:0 4px 14px rgba(0,0,0,.045);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)
}
.schedule-shift-toolbar-title{flex:0 0 145px;min-width:145px;display:flex;flex-direction:column;justify-content:center;gap:2px;line-height:1.15}
.schedule-shift-toolbar-title>span{font-size:10px;font-weight:900;letter-spacing:.13em;color:#5e5e5a}
.schedule-shift-toolbar-title>small{font-size:10px;line-height:1.25;color:#92928c}
.schedule-board-panel .schedule-shift-toolbar-scroll{display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow-x:auto;padding:1px 2px}
.schedule-board-panel .schedule-toolbar-block{flex:0 0 auto!important;min-width:118px!important;height:42px!important;padding:5px 10px!important;border-radius:9px!important;display:flex!important;flex-direction:column;justify-content:center;text-align:left;line-height:1.05}
.schedule-board-panel .schedule-toolbar-block strong{font-size:13px!important;line-height:1.05!important}
.schedule-board-panel .schedule-toolbar-block small{margin-top:3px!important;font-size:9px!important;line-height:1!important;opacity:.82}
.schedule-board-panel .schedule-toolbar-block.selected{outline:2px solid #1f1f1e!important;outline-offset:1px!important;transform:none!important}
.schedule-board-panel .schedule-manage-blocks{flex:0 0 36px!important;width:36px!important;height:36px!important;display:grid!important;place-items:center;padding:0!important;border:1px dashed #c6c6c0!important;border-radius:9px!important;background:#fff!important;font-size:19px!important;line-height:1!important}
.schedule-cancel-pick{flex:0 0 auto;height:34px;padding:0 11px;border:1px solid #d5d5d0;border-radius:9px;background:#fff;color:#555;font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.schedule-cancel-pick:hover{background:#f3f3f0}
.schedule-board-panel>.section-head{padding-top:2px}
@media(max-width:900px){
 .schedule-shift-toolbar-title{flex-basis:112px;min-width:112px}
 .schedule-shift-toolbar-title>small{display:none}
 .schedule-board-panel .schedule-toolbar-block{min-width:104px!important}
}
@media(max-width:680px){
 .schedule-board-panel .schedule-shift-toolbar{gap:6px;padding:7px 8px}
 .schedule-shift-toolbar-title{flex-basis:auto;min-width:auto}
 .schedule-board-panel .schedule-toolbar-block{min-width:98px!important}
 .schedule-cancel-pick{padding:0 8px}
}

/* ===== Refined scheduler layout based on approved mockup ===== */
.shift-manager{
  padding:22px 24px!important;
  border-radius:20px!important;
}
.shift-manager-head{align-items:flex-start!important;margin-bottom:18px!important}
.shift-manager-head h3{font-size:24px;line-height:1.05;margin:3px 0 4px}
.shift-manager-head p{margin:0!important;max-width:760px}
.shift-manager-toggle{height:42px;padding:0 15px!important;border-radius:11px!important;white-space:nowrap}

.shift-template-list{
  border:1px solid #e3e3de;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.shift-template-row{
  position:relative;
  min-height:58px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  padding:0 14px 0 20px;
  border-bottom:1px solid #e9e9e5;
}
.shift-template-row:last-child{border-bottom:0}
.shift-template-row:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;width:4px;
}
.shift-row-opening:before{background:#6685a1}
.shift-row-mid:before{background:#6e9a79}
.shift-row-closing:before{background:#a67d3d}
.shift-row-custom:before{background:#81719a}
.shift-template-main{display:flex;align-items:center;gap:18px;min-width:0}
.shift-template-main strong{font-size:16px;min-width:90px}
.shift-template-main span{font-size:14px;color:#444}
.shift-row-opening .shift-template-main strong{color:#38536d}
.shift-row-mid .shift-template-main strong{color:#477257}
.shift-row-closing .shift-template-main strong{color:#775a27}
.shift-hours-badge{
  min-width:48px;
  text-align:center;
  padding:6px 8px;
  border-radius:9px;
  font-size:12px;
  font-weight:800;
  background:#f2f2ef;
  color:#555;
}
.shift-row-opening .shift-hours-badge{background:#edf3f8;color:#42617d}
.shift-row-mid .shift-hours-badge{background:#edf5ef;color:#467155}
.shift-row-closing .shift-hours-badge{background:#f7f1e8;color:#7b5b26}
.shift-row-edit{
  height:36px;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:13px!important;
}
.shift-edit-inline{
  margin:0;
  border-radius:0!important;
  border:0!important;
  border-top:1px solid #ecece8!important;
  background:#fafaf8!important;
  box-shadow:none!important;
  padding:14px!important;
  display:grid!important;
  grid-template-columns:1.2fr 1fr 1fr 1fr auto;
  gap:10px;
  align-items:end;
}
.shift-edit-inline[hidden]{display:none!important}

.shift-create-bar{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr 1fr auto;
  gap:16px;
  align-items:end;
  padding-top:20px;
  margin-top:20px;
  border-top:1px solid #e7e7e2;
}
.shift-create-bar label{margin:0!important}
.shift-create-bar input,.shift-create-bar select{height:46px}
.shift-add-btn{height:46px;white-space:nowrap;padding:0 18px!important}

.schedule-board-panel{
  border-radius:20px!important;
  padding:12px 12px 18px!important;
}
.schedule-board-panel .schedule-shift-toolbar{
  min-height:72px!important;
  margin:0 0 18px!important;
  padding:10px 12px!important;
  border:1px solid #d7e0e7!important;
  background:linear-gradient(180deg,#fbfcfd,#f4f8fb)!important;
  box-shadow:none!important;
  border-radius:12px!important;
}
.schedule-shift-toolbar-title{
  flex:0 0 125px!important;
  min-width:125px!important;
}
.schedule-shift-toolbar-title>span{font-size:11px!important;color:#303536!important}
.schedule-shift-toolbar-title>small{max-width:120px;font-size:9px!important;color:#70767a!important}
.schedule-board-panel .schedule-shift-toolbar-scroll{
  flex:0 1 auto!important;
  overflow:visible!important;
}
.schedule-board-panel .schedule-toolbar-block{
  width:166px!important;
  min-width:166px!important;
  height:54px!important;
  padding:8px 12px!important;
  border-radius:9px!important;
  border:1px solid rgba(0,0,0,.09)!important;
}
.schedule-board-panel .schedule-toolbar-block strong{font-size:14px!important}
.schedule-board-panel .schedule-toolbar-block small{font-size:10px!important;margin-top:4px!important}
.schedule-board-panel .schedule-manage-blocks{
  width:42px!important;height:42px!important;flex-basis:42px!important;
  border-style:solid!important;
}
.schedule-toolbar-tip{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:270px;
  padding:10px 14px;
  border:1px solid #d8e4ef;
  border-radius:9px;
  background:#eef5fb;
  color:#4c6b87;
  font-size:12px;
  white-space:nowrap;
}
.schedule-cancel-pick{height:36px}

.schedule-board-panel>.section-head{
  padding:4px 8px 12px!important;
  margin-bottom:0!important;
  align-items:flex-end!important;
}
.schedule-board-panel>.section-head h3{
  font-size:24px;
  line-height:1.05;
  margin-top:3px;
}
.schedule-board-panel .schedule-scroll{
  border:1px solid #e3e3de;
  border-radius:0;
}
.schedule-cell:not(.has-shift) .drop-hint{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  opacity:.55!important;
  font-size:inherit!important;
  color:#83837e!important;
}
.schedule-cell:not(.has-shift) .drop-hint b{
  display:grid;
  place-items:center;
  width:30px;height:30px;
  border:1px solid #ddddda;
  border-radius:50%;
  background:#fff;
  font-size:18px;
  font-weight:400;
}
.schedule-cell:not(.has-shift) .drop-hint small{
  font-size:10px;
  color:#90908a;
}
.schedule-cell:not(.has-shift):hover .drop-hint,
.schedule-cell.pick-target .drop-hint{opacity:1!important}
.schedule-cell.pick-target:hover{
  background:#f7f9fa!important;
  box-shadow:inset 0 0 0 2px #93a9ba!important;
}
.placed-shift{border-radius:10px!important}

@media(max-width:1100px){
  .schedule-toolbar-tip{display:none}
  .shift-create-bar{grid-template-columns:1fr 1fr}
  .shift-add-btn{width:max-content}
}
@media(max-width:850px){
  .shift-template-main{flex-direction:column;align-items:flex-start;gap:2px}
  .shift-template-main strong{min-width:0}
  .shift-edit-inline{grid-template-columns:1fr 1fr}
  .schedule-shift-toolbar-title{display:none!important}
  .schedule-board-panel .schedule-shift-toolbar-scroll{overflow-x:auto!important;flex:1 1 auto!important}
}
@media(max-width:620px){
  .shift-manager{padding:16px!important}
  .shift-manager-head{flex-direction:column;gap:12px}
  .shift-template-row{grid-template-columns:1fr auto}
  .shift-hours-badge{display:none}
  .shift-create-bar{grid-template-columns:1fr}
  .shift-add-btn{width:100%}
  .schedule-board-panel .schedule-toolbar-block{width:132px!important;min-width:132px!important}
}

/* ===== Scheduler organized layout ===== */
.shift-library{
  padding:18px 20px!important;
  border-radius:18px!important;
}
.shift-library-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.shift-library-head h3{
  margin:3px 0 3px!important;
  font-size:20px!important;
  line-height:1.1!important;
}
.shift-library-head p{margin:0!important}
.shift-library-manage{
  flex:0 0 auto;
  height:40px;
  padding:0 14px!important;
  border-radius:10px!important;
}
.shift-library-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.shift-library-chip{
  min-width:160px;
  padding:9px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.shift-library-chip strong{font-size:13px}
.shift-library-chip span{font-size:11px;opacity:.78}
.shift-manager-drawer{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e5e5e1;
}
.shift-manager-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.shift-manager-drawer-head>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.shift-manager-drawer-head strong{font-size:15px}
.shift-manager-drawer-head span{font-size:12px;color:#888}
.shift-manager-close{
  border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#777;
}
.shift-template-list{
  border:1px solid #e4e4df!important;
  border-radius:11px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.shift-template-row{
  min-height:52px!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  padding:0 12px 0 18px!important;
  gap:12px!important;
}
.shift-template-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:16px!important;
}
.shift-template-main strong{min-width:85px!important;font-size:14px!important}
.shift-template-main span{font-size:12px!important}
.shift-hours-badge{
  min-width:44px!important;
  padding:5px 7px!important;
  font-size:11px!important;
}
.shift-row-edit{
  height:32px!important;
  padding:0 10px!important;
  font-size:12px!important;
}
.shift-edit-inline{
  grid-template-columns:1.1fr 1fr 1fr 1fr auto!important;
  gap:8px!important;
  padding:12px!important;
}
.shift-create-bar{
  grid-template-columns:1.15fr 1fr 1fr 1fr auto!important;
  gap:10px!important;
  margin-top:14px!important;
  padding-top:14px!important;
}
.shift-create-bar input,.shift-create-bar select{height:42px!important}
.shift-add-btn{height:42px!important}

.schedule-board-panel{
  padding:12px 12px 18px!important;
  border-radius:18px!important;
}
.schedule-board-panel .schedule-shift-toolbar{
  position:sticky!important;
  top:0!important;
  z-index:25!important;
  min-height:58px!important;
  margin:0 0 14px!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:#f7f8f7!important;
  border:1px solid #dededa!important;
  border-radius:11px!important;
  box-shadow:0 3px 10px rgba(0,0,0,.035)!important;
}
.schedule-shift-toolbar-title{
  flex:0 0 130px!important;
  min-width:130px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
}
.schedule-shift-toolbar-title>span{
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  color:#555!important;
}
.schedule-shift-toolbar-title>small{
  font-size:9px!important;
  line-height:1.25!important;
  color:#8a8a85!important;
}
.schedule-board-panel .schedule-shift-toolbar-scroll{
  flex:1!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  overflow-x:auto!important;
}
.schedule-board-panel .schedule-toolbar-block{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:122px!important;
  height:42px!important;
  padding:5px 10px!important;
  border-radius:9px!important;
}
.schedule-board-panel .schedule-toolbar-block strong{
  font-size:13px!important;
  line-height:1!important;
}
.schedule-board-panel .schedule-toolbar-block small{
  font-size:9px!important;
  margin-top:3px!important;
}
.schedule-board-panel .schedule-manage-blocks{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
  display:grid!important;
  place-items:center!important;
  border:1px dashed #c5c5bf!important;
  background:#fff!important;
  border-radius:9px!important;
  padding:0!important;
  font-size:18px!important;
}
.schedule-cancel-pick{
  flex:0 0 auto!important;
  height:34px!important;
  padding:0 10px!important;
  font-size:11px!important;
}
.schedule-board-panel>.section-head{
  margin:0!important;
  padding:2px 4px 12px!important;
  align-items:flex-end!important;
}
.schedule-board-panel>.section-head h3{
  margin:2px 0 0!important;
  font-size:22px!important;
}
.schedule-board-panel .schedule-scroll{
  border:1px solid #e2e2dd!important;
}
.schedule-cell:not(.has-shift) .drop-hint{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  opacity:.35!important;
}
.schedule-cell:not(.has-shift) .drop-hint b{
  width:26px!important;height:26px!important;
  border-radius:50%!important;
  font-size:16px!important;
}
.schedule-cell:not(.has-shift) .drop-hint small{
  font-size:9px!important;
}
.schedule-cell:not(.has-shift):hover .drop-hint,
.schedule-cell.pick-target .drop-hint{opacity:1!important}

@media(max-width:900px){
  .shift-library-head{flex-direction:column}
  .shift-library-manage{align-self:flex-start}
  .shift-edit-inline{grid-template-columns:1fr 1fr!important}
  .shift-create-bar{grid-template-columns:1fr 1fr!important}
  .schedule-shift-toolbar-title{display:none!important}
}
@media(max-width:620px){
  .shift-library{padding:14px!important}
  .shift-library-summary{display:grid;grid-template-columns:1fr}
  .shift-library-chip{min-width:0}
  .shift-template-row{grid-template-columns:1fr auto!important}
  .shift-hours-badge{display:none!important}
  .shift-template-main{flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
  .shift-create-bar{grid-template-columns:1fr!important}
  .shift-add-btn{width:100%}
}

/* ===== Final single-card scheduler organization ===== */
.shift-library{display:none!important}

.schedule-board-panel{
  padding:18px!important;
  border-radius:20px!important;
}

.schedule-board-panel .schedule-shift-toolbar{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:52px!important;
  margin:0 0 14px!important;
  padding:8px 10px!important;
  background:#f7f7f5!important;
  border:1px solid #deded9!important;
  border-radius:11px!important;
  box-shadow:none!important;
}

.schedule-shift-toolbar-title{
  flex:0 0 92px!important;
  min-width:92px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
}
.schedule-shift-toolbar-title>span{
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  color:#565653!important;
}
.schedule-shift-toolbar-title>small{
  font-size:9px!important;
  color:#8b8b85!important;
  line-height:1.2!important;
}

.schedule-board-panel .schedule-shift-toolbar-scroll{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  overflow-x:auto!important;
}

.schedule-board-panel .schedule-toolbar-block{
  min-width:116px!important;
  height:40px!important;
  padding:5px 9px!important;
  border-radius:8px!important;
  flex:0 0 auto!important;
}
.schedule-board-panel .schedule-toolbar-block strong{
  font-size:12px!important;
}
.schedule-board-panel .schedule-toolbar-block small{
  font-size:8px!important;
  margin-top:2px!important;
}
.schedule-board-panel .schedule-toolbar-block.selected{
  outline:2px solid #222!important;
  outline-offset:1px!important;
}

.schedule-manage-inline{
  flex:0 0 auto!important;
  height:34px!important;
  padding:0 11px!important;
  border-radius:8px!important;
  white-space:nowrap!important;
  font-size:11px!important;
}

.schedule-cancel-pick{
  flex:0 0 auto!important;
  height:34px!important;
  padding:0 10px!important;
  font-size:11px!important;
}

.schedule-board-panel .shift-manager-drawer{
  margin:0 0 16px!important;
  padding:14px!important;
  border:1px solid #e2e2dd!important;
  border-radius:12px!important;
  background:#fafaf8!important;
}
.schedule-board-panel .shift-manager-drawer[hidden]{
  display:none!important;
}

.schedule-board-panel>.section-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-end!important;
  gap:12px!important;
  margin:0!important;
  padding:2px 4px 12px!important;
}
.schedule-board-panel>.section-head .eyebrow{
  font-size:10px!important;
}
.schedule-board-panel>.section-head h3{
  margin:2px 0 0!important;
  font-size:24px!important;
  line-height:1.05!important;
}

.schedule-board-panel .schedule-scroll{
  border:1px solid #e2e2dd!important;
  border-radius:0!important;
  overflow:auto!important;
}

.schedule-cell:not(.has-shift) .drop-hint{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  opacity:.32!important;
}
.schedule-cell:not(.has-shift):hover .drop-hint,
.schedule-cell.pick-target .drop-hint{
  opacity:1!important;
}
.schedule-cell:not(.has-shift) .drop-hint b{
  width:26px!important;
  height:26px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #d9d9d5!important;
  border-radius:50%!important;
  background:#fff!important;
  font-size:15px!important;
}
.schedule-cell:not(.has-shift) .drop-hint small{
  font-size:9px!important;
  color:#8e8e88!important;
}

@media(max-width:900px){
  .schedule-shift-toolbar-title{display:none!important}
  .schedule-manage-inline{padding:0 9px!important}
}
@media(max-width:650px){
  .schedule-board-panel{padding:12px!important}
  .schedule-board-panel .schedule-shift-toolbar{gap:6px!important;padding:7px!important}
  .schedule-board-panel .schedule-toolbar-block{min-width:102px!important}
  .schedule-manage-inline{font-size:0!important;width:36px!important;padding:0!important}
  .schedule-manage-inline:after{content:"⚙";font-size:15px}
}

/* Scheduler structure repair */
.schedule-board-panel .schedule-shift-toolbar{min-height:50px!important;padding:7px 9px!important;margin-bottom:10px!important}
.schedule-board-panel .schedule-toolbar-block{min-width:112px!important;height:38px!important}
.schedule-board-panel .shift-manager-drawer[hidden]{display:none!important}
.schedule-board-panel>.section-head{padding-top:4px!important}

/* ===== Shift block manager modal ===== */
body.modal-open{overflow:hidden!important}
.shift-manager-modal[hidden]{display:none!important}
.shift-manager-modal{
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  display:grid!important;
  place-items:center!important;
  padding:24px!important;
}
.shift-manager-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(20,20,19,.36)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
}
.shift-manager-modal-card{
  position:relative!important;
  z-index:1!important;
  width:min(920px,calc(100vw - 36px))!important;
  max-height:min(82vh,780px)!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #deded9!important;
  border-radius:18px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.22)!important;
  padding:20px!important;
}
.shift-manager-modal-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding-bottom:14px!important;
  margin-bottom:14px!important;
  border-bottom:1px solid #e7e7e2!important;
}
.shift-manager-modal-head h3{
  margin:3px 0 3px!important;
  font-size:22px!important;
  line-height:1.1!important;
}
.shift-manager-modal-head p{
  margin:0!important;
  color:#7b7b76!important;
  font-size:13px!important;
}
.shift-manager-close{
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  border:1px solid #ddddda!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#555!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.shift-manager-close:hover{background:#f3f3f0!important}

.shift-manager-modal .shift-template-list{
  border:1px solid #e2e2dd!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.shift-manager-modal .shift-template-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:56px!important;
  padding:0 12px 0 18px!important;
  border-bottom:1px solid #ecece7!important;
}
.shift-manager-modal .shift-template-row:last-of-type{border-bottom:0!important}
.shift-manager-modal .shift-template-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:16px!important;
}
.shift-manager-modal .shift-template-main strong{
  min-width:86px!important;
  font-size:14px!important;
}
.shift-manager-modal .shift-template-main span{
  font-size:12px!important;
  color:#555!important;
}
.shift-manager-modal .shift-hours-badge{
  min-width:46px!important;
  text-align:center!important;
  padding:5px 7px!important;
  border-radius:8px!important;
  background:#f1f1ee!important;
  font-size:11px!important;
  font-weight:800!important;
}
.shift-manager-modal .shift-row-edit{
  height:32px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
}
.shift-manager-modal .shift-edit-inline{
  display:grid!important;
  grid-template-columns:1.1fr 1fr 1fr 1fr auto!important;
  gap:8px!important;
  align-items:end!important;
  padding:12px!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid #ecece7!important;
  background:#fafaf8!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.shift-manager-modal .shift-edit-inline[hidden]{display:none!important}
.shift-manager-modal .shift-create-bar{
  display:grid!important;
  grid-template-columns:1.15fr 1fr 1fr 1fr auto!important;
  gap:10px!important;
  align-items:end!important;
  margin-top:16px!important;
  padding-top:16px!important;
  border-top:1px solid #e7e7e2!important;
}
.shift-manager-modal .shift-create-bar label{
  margin:0!important;
}
.shift-manager-modal .shift-create-bar input,
.shift-manager-modal .shift-create-bar select{
  height:42px!important;
}
.shift-manager-modal .shift-add-btn{
  height:42px!important;
  white-space:nowrap!important;
}

@media(max-width:820px){
  .shift-manager-modal{padding:12px!important;place-items:end center!important}
  .shift-manager-modal-card{
    width:100%!important;
    max-height:88vh!important;
    border-radius:18px 18px 0 0!important;
    padding:16px!important;
  }
  .shift-manager-modal .shift-template-main{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:2px!important;
  }
  .shift-manager-modal .shift-edit-inline{
    grid-template-columns:1fr 1fr!important;
  }
  .shift-manager-modal .shift-create-bar{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:560px){
  .shift-manager-modal .shift-template-row{
    grid-template-columns:1fr auto!important;
  }
  .shift-manager-modal .shift-hours-badge{display:none!important}
  .shift-manager-modal .shift-create-bar{grid-template-columns:1fr!important}
  .shift-manager-modal .shift-add-btn{width:100%!important}
}

/* =========================================================
   RecafHR isolated shift manager modal v2
   Fully namespaced to avoid legacy scheduler CSS collisions.
   ========================================================= */
body.modal-open{overflow:hidden!important}

#shiftManagerBody.rhsm-modal[hidden]{display:none!important}
#shiftManagerBody.rhsm-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  box-sizing:border-box!important;
}

#shiftManagerBody .rhsm-backdrop{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  background:rgba(20,20,18,.42)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}

#shiftManagerBody .rhsm-card{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:min(940px,calc(100vw - 40px))!important;
  max-width:940px!important;
  max-height:84vh!important;
  overflow:auto!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:20px!important;
  background:#fff!important;
  border:1px solid #dddcd7!important;
  border-radius:18px!important;
  box-shadow:0 28px 80px rgba(0,0,0,.26)!important;
}

#shiftManagerBody .rhsm-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 16px!important;
  padding:0 0 15px!important;
  border-bottom:1px solid #e8e8e3!important;
}
#shiftManagerBody .rhsm-head h3{
  margin:3px 0 4px!important;
  padding:0!important;
  font-size:23px!important;
  line-height:1.08!important;
}
#shiftManagerBody .rhsm-head p{
  margin:0!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1.35!important;
  color:#777771!important;
}
#shiftManagerBody .rhsm-close{
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #ddddda!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#555!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer!important;
}

#shiftManagerBody .rhsm-list{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #e3e3de!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}
#shiftManagerBody .rhsm-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:56px!important;
  margin:0!important;
  padding:0 12px 0 18px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-bottom:1px solid #ecece7!important;
  background:#fff!important;
}
#shiftManagerBody .rhsm-row:last-of-type{border-bottom:0!important}
#shiftManagerBody .rhsm-row:before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:0!important;bottom:0!important;
  width:4px!important;
}
#shiftManagerBody .rhsm-row-opening:before{background:#6e879d!important}
#shiftManagerBody .rhsm-row-mid:before{background:#72947a!important}
#shiftManagerBody .rhsm-row-closing:before{background:#a18148!important}
#shiftManagerBody .rhsm-row-custom:before{background:#81729b!important}

#shiftManagerBody .rhsm-main{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:18px!important;
  min-width:0!important;
}
#shiftManagerBody .rhsm-main strong{
  flex:0 0 90px!important;
  min-width:90px!important;
  margin:0!important;
  padding:0!important;
  font-size:14px!important;
}
#shiftManagerBody .rhsm-main span{
  margin:0!important;
  padding:0!important;
  font-size:12px!important;
  color:#55554f!important;
}
#shiftManagerBody .rhsm-hours{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  height:28px!important;
  margin:0!important;
  padding:0 8px!important;
  box-sizing:border-box!important;
  border-radius:8px!important;
  background:#f1f1ee!important;
  color:#555!important;
  font-size:11px!important;
  font-weight:800!important;
}
#shiftManagerBody .rhsm-edit{
  height:32px!important;
  margin:0!important;
  padding:0 11px!important;
  border-radius:8px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}

#shiftManagerBody .rhsm-edit-form{
  display:grid!important;
  grid-template-columns:1.2fr 1fr 1fr 1fr auto!important;
  align-items:end!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
  padding:12px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-bottom:1px solid #ecece7!important;
  border-radius:0!important;
  background:#fafaf8!important;
  box-shadow:none!important;
}
#shiftManagerBody .rhsm-edit-form[hidden]{display:none!important}
#shiftManagerBody .rhsm-edit-form label,
#shiftManagerBody .rhsm-create label{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-size:12px!important;
  font-weight:700!important;
}
#shiftManagerBody .rhsm-edit-form input,
#shiftManagerBody .rhsm-edit-form select,
#shiftManagerBody .rhsm-create input,
#shiftManagerBody .rhsm-create select{
  width:100%!important;
  height:42px!important;
  margin:5px 0 0!important;
  box-sizing:border-box!important;
}

#shiftManagerBody .rhsm-create{
  display:grid!important;
  grid-template-columns:1.2fr 1fr 1fr 1fr auto!important;
  align-items:end!important;
  gap:10px!important;
  width:100%!important;
  margin:16px 0 0!important;
  padding:16px 0 0!important;
  box-sizing:border-box!important;
  border-top:1px solid #e7e7e2!important;
}
#shiftManagerBody .rhsm-add{
  height:42px!important;
  margin:0!important;
  padding:0 16px!important;
  white-space:nowrap!important;
}

@media(max-width:820px){
  #shiftManagerBody.rhsm-modal{
    align-items:flex-end!important;
    padding:12px 12px 0!important;
  }
  #shiftManagerBody .rhsm-card{
    width:100%!important;
    max-width:none!important;
    max-height:90vh!important;
    border-radius:18px 18px 0 0!important;
    padding:16px!important;
  }
  #shiftManagerBody .rhsm-edit-form,
  #shiftManagerBody .rhsm-create{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:560px){
  #shiftManagerBody .rhsm-row{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  #shiftManagerBody .rhsm-hours{display:none!important}
  #shiftManagerBody .rhsm-main{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:2px!important;
  }
  #shiftManagerBody .rhsm-main strong{
    flex:0 0 auto!important;
    min-width:0!important;
  }
  #shiftManagerBody .rhsm-edit-form,
  #shiftManagerBody .rhsm-create{
    grid-template-columns:1fr!important;
  }
  #shiftManagerBody .rhsm-add{width:100%!important}
}


/* =========================================================
   Universal RecafHR inline save feedback
   Save / Save changes / Update forms submit without a full
   page reload. Workflow/destructive buttons are excluded.
   ========================================================= */
.rc-inline-save-status{
  display:none;
  vertical-align:middle;
  margin-left:8px;
  padding:7px 9px;
  max-width:360px;
  box-sizing:border-box;
  border-radius:8px;
  font-size:11px;
  font-weight:750;
  line-height:1.25;
  white-space:normal;
}
.rc-inline-save-status.is-visible,
.rc-inline-save-status.is-saving,
.rc-inline-save-status.is-success,
.rc-inline-save-status.is-error,
.rc-inline-save-status.is-warning{display:inline-flex;align-items:center}
.rc-inline-save-status.is-saving{background:#f1f1ee;color:#666}
.rc-inline-save-status.is-success{background:#edf5ee;color:#355f3e;border:1px solid #d6e7d8}
.rc-inline-save-status.is-error{background:#fbefef;color:#8a3d3d;border:1px solid #efd4d4}
.rc-inline-save-status.is-warning{background:#faf5e8;color:#785f28;border:1px solid #eadfbe}
form[aria-busy="true"]{cursor:progress}
@media(max-width:680px){
  .rc-inline-save-status{
    display:none;
    width:100%;
    max-width:none;
    margin:8px 0 0;
  }
  .rc-inline-save-status.is-visible,
  .rc-inline-save-status.is-saving,
  .rc-inline-save-status.is-success,
  .rc-inline-save-status.is-error,
  .rc-inline-save-status.is-warning{display:flex}
}


/* Payroll workspace v2 */
.payroll-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;background:#fff;border:1px solid #dededb;border-radius:24px;padding:28px;margin-bottom:18px}.payroll-hero h2{font-size:34px;margin:5px 0 6px}.payroll-actions,.payroll-tabs{display:flex;gap:8px;flex-wrap:wrap}.payroll-tabs{margin:18px 0}.payroll-tabs a{padding:10px 15px;border:1px solid #ddd;border-radius:999px;text-decoration:none;color:#555;background:#fff}.payroll-tabs a.on{background:#222;color:#fff;border-color:#222}.payroll-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.payroll-metrics>div,.comp-hero>div{background:#fff;border:1px solid #dededb;border-radius:20px;padding:20px}.payroll-metrics small,.comp-hero small{display:block;font-weight:800;letter-spacing:.08em;color:#777}.payroll-metrics strong,.comp-hero strong{display:block;font-size:28px;margin:6px 0}.payroll-metrics span{font-size:13px;color:#777}.payroll-store-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.payroll-store-card{border:1px solid #e1e1de;border-radius:18px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.payroll-store-card h3{margin:5px 0}.payroll-store-card p{color:#777}.payroll-flow{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.payroll-flow span{padding:10px 14px;background:#f0f0ed;border-radius:999px;font-size:13px;font-weight:700}.payroll-flow .done{background:#222;color:#fff}.payroll-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comp-hero{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.clean-table{width:100%;border-collapse:collapse}.clean-table th,.clean-table td{padding:13px;border-bottom:1px solid #eee;text-align:left}.simple-page.wide{max-width:1180px}
@media(max-width:850px){.payroll-hero{align-items:flex-start;flex-direction:column}.payroll-metrics,.payroll-store-grid,.payroll-settings-grid,.comp-hero{grid-template-columns:1fr}.payroll-actions{width:100%}}

/* Payroll workspace visual fix v2 */
.backend-main .payroll-hero{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  padding:26px 28px !important;
  margin:0 0 18px !important;
  background:#fff !important;
  border:1px solid #dededb !important;
  border-radius:24px !important;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.backend-main .payroll-hero h2{margin:4px 0 6px !important;font-size:34px !important;line-height:1.05 !important;}
.backend-main .payroll-hero p{margin:0 !important;color:#6e6e6a !important;font-size:16px !important;}
.backend-main .payroll-actions{display:flex !important;gap:10px !important;flex-wrap:wrap !important;align-items:center !important;}
.backend-main .payroll-actions .btn{min-height:44px !important;padding:0 18px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;}

.backend-main .payroll-metrics{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:0 0 18px !important;
}
.backend-main .payroll-metrics>div{
  display:flex !important;
  flex-direction:column !important;
  min-height:132px !important;
  padding:20px !important;
  background:#fff !important;
  border:1px solid #dededb !important;
  border-radius:20px !important;
}
.backend-main .payroll-metrics small{
  display:block !important;
  margin-bottom:10px !important;
  color:#777 !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
}
.backend-main .payroll-metrics strong{
  display:block !important;
  margin:0 0 6px !important;
  color:#171717 !important;
  font-size:34px !important;
  line-height:1 !important;
}
.backend-main .payroll-metrics span{
  display:block !important;
  margin-top:auto !important;
  color:#777 !important;
  font-size:13px !important;
}

.backend-main .payroll-store-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:18px !important;
}
.backend-main .payroll-store-card{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  gap:20px !important;
  min-height:180px !important;
  padding:22px !important;
  background:#fafaf8 !important;
  border:1px solid #e3e3df !important;
  border-radius:20px !important;
}
.backend-main .payroll-store-card h3{margin:5px 0 8px !important;font-size:22px !important;}
.backend-main .payroll-store-card p{margin:0 !important;color:#70706c !important;line-height:1.45 !important;}
.backend-main .payroll-store-card .btn{align-self:flex-start !important;}

.backend-main .payroll-flow{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:8px !important;
  margin:18px 0 !important;
}
.backend-main .payroll-flow span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:44px !important;
  padding:10px !important;
  text-align:center !important;
  background:#f0f0ed !important;
  border-radius:12px !important;
  color:#5f5f5b !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.backend-main .payroll-flow .done{background:#242424 !important;color:#fff !important;}

@media(max-width:1100px){
  .backend-main .payroll-metrics{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .backend-main .payroll-store-grid{grid-template-columns:1fr !important;}
  .backend-main .payroll-flow{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:720px){
  .backend-main .payroll-hero{align-items:flex-start !important;flex-direction:column !important;padding:20px !important;}
  .backend-main .payroll-hero h2{font-size:28px !important;}
  .backend-main .payroll-actions{width:100% !important;}
  .backend-main .payroll-actions .btn{flex:1 1 150px !important;}
  .backend-main .payroll-metrics{grid-template-columns:1fr !important;}
  .backend-main .payroll-flow{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}


/* =========================================================
   Payroll Workspace final layout override v3
   ========================================================= */
body.backend .backend-main .payroll-hero{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;
 margin:0 0 18px!important;padding:26px 28px!important;background:#fff!important;
 border:1px solid #dededb!important;border-radius:22px!important
}
body.backend .backend-main .payroll-hero>div:first-child{min-width:0!important}
body.backend .backend-main .payroll-hero h2{margin:4px 0 7px!important;font-size:32px!important;line-height:1.05!important}
body.backend .backend-main .payroll-hero p{margin:0!important;color:#6f6f6b!important}
body.backend .backend-main .payroll-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important}

body.backend .backend-main section.payroll-metrics{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
 margin:0 0 18px!important;padding:0!important;border:0!important;background:transparent!important
}
body.backend .backend-main section.payroll-metrics>div{
 display:flex!important;flex-direction:column!important;min-width:0!important;min-height:118px!important;
 padding:18px!important;background:#fff!important;border:1px solid #dededb!important;border-radius:18px!important
}
body.backend .backend-main section.payroll-metrics small{
 display:block!important;margin:0 0 8px!important;font-size:10px!important;font-weight:850!important;
 letter-spacing:.11em!important;color:#777!important
}
body.backend .backend-main section.payroll-metrics strong{
 display:block!important;margin:0 0 6px!important;font-size:31px!important;line-height:1!important;color:#181818!important
}
body.backend .backend-main section.payroll-metrics span{
 display:block!important;margin-top:auto!important;font-size:12px!important;color:#777!important
}

body.backend .backend-main .panel .payroll-store-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;
 width:100%!important;margin:18px 0 0!important;padding:0!important
}
body.backend .backend-main .panel .payroll-store-grid>article.payroll-store-card{
 display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:18px!important;
 min-width:0!important;min-height:180px!important;margin:0!important;padding:20px!important;
 box-sizing:border-box!important;background:#fafaf8!important;border:1px solid #e1e1dd!important;border-radius:18px!important
}
body.backend .backend-main .payroll-store-card h3{margin:4px 0 8px!important;font-size:21px!important}
body.backend .backend-main .payroll-store-card p{margin:0!important;color:#70706c!important;line-height:1.4!important}
body.backend .backend-main .payroll-store-card .btn{align-self:flex-start!important}

body.backend .backend-main .payroll-flow{
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:18px 0!important
}
body.backend .backend-main .payroll-flow>span{
 display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;
 padding:9px!important;background:#f0f0ed!important;border-radius:11px!important;
 font-size:12px!important;font-weight:750!important;text-align:center!important
}
body.backend .backend-main .payroll-flow>span.done{background:#242424!important;color:#fff!important}

@media(max-width:1100px){
 body.backend .backend-main section.payroll-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.backend .backend-main .panel .payroll-store-grid{grid-template-columns:1fr!important}
 body.backend .backend-main .payroll-flow{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:720px){
 body.backend .backend-main .payroll-hero{align-items:flex-start!important;flex-direction:column!important;padding:20px!important}
 body.backend .backend-main section.payroll-metrics{grid-template-columns:1fr!important}
 body.backend .backend-main .payroll-actions{width:100%!important}
 body.backend .backend-main .payroll-actions .btn{flex:1 1 145px!important}
 body.backend .backend-main .payroll-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* Payroll statutory & premium rules */
.stat-payroll-wrap{max-width:1120px;margin:0 auto;padding:0 0 48px}
.stat-payroll-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:16px}
.stat-payroll-head p{margin:8px 0 0;color:#747470}
.stat-payroll-form{display:flex;flex-direction:column;gap:16px}
.stat-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat-toggle-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e2e2dd;border-radius:14px;background:#fafaf8;cursor:pointer}
.stat-toggle-card input{width:18px;height:18px;flex:0 0 auto}
.stat-toggle-card div{display:flex;flex-direction:column;gap:3px}
.stat-toggle-card strong{font-size:14px}
.stat-toggle-card span{font-size:12px;color:#777}
.stat-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stat-rules-grid label{margin:0}
.stat-check-inline{display:flex!important;align-items:center;gap:10px;min-height:44px;padding-top:21px}
.stat-check-inline input{width:18px;height:18px}
.stat-save-row{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:780px){
 .stat-toggle-grid,.stat-rules-grid{grid-template-columns:1fr}
 .stat-save-row .btn{width:100%}
}


/* Optional employee statutory applicability */
.stat-optional-callout{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;padding:12px 14px;border:1px solid #dfe6df;border-radius:12px;background:#f5f8f5}
.stat-optional-callout strong{flex:0 0 auto;font-size:12px}
.stat-optional-callout span{font-size:12px;color:#666}
.employee-stat-panel{margin-top:14px}
.employee-stat-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.employee-stat-options>label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e3e3de;border-radius:11px;background:#fafaf8;cursor:pointer}
.employee-stat-options input{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.employee-stat-options span{display:flex;flex-direction:column;gap:2px}
.employee-stat-options strong{font-size:12px}
.employee-stat-options small{font-size:10px;color:#777;line-height:1.3}
.employee-stat-note{display:block;margin-top:12px;font-size:12px;font-weight:700}
.employee-stat-note textarea{width:100%;box-sizing:border-box;margin-top:5px}
.employee-stat-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid #ecece7}
.employee-stat-footer span{font-size:11px;color:#777}
@media(max-width:720px){.employee-stat-options{grid-template-columns:1fr}.employee-stat-footer{align-items:stretch;flex-direction:column}.employee-stat-footer .btn{width:100%}}


/* Live weekly payroll */
.livepay-wrap{max-width:1320px;margin:0 auto;padding:0 0 48px}
.livepay-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.livepay-top p{max-width:850px;margin:7px 0 0;color:#777}
.livepay-week-nav{margin:14px 0}
.livepay-table-panel{padding:0!important;overflow:hidden}
.livepay-table-panel>.section-head{padding:18px 20px 0}
.livepay-table{width:100%;min-width:1180px;border-collapse:collapse}
.livepay-table th,.livepay-table td{padding:12px 10px;border-bottom:1px solid #ecece8;text-align:left;vertical-align:top;font-size:12px}
.livepay-table th{font-size:10px;letter-spacing:.07em;color:#777;background:#fafaf8}
.livepay-table td>strong{font-size:13px}
.livepay-table td>small{display:block;margin-top:2px;color:#888}
.livepay-adjust-form{display:grid;grid-template-columns:90px 120px auto;gap:5px;align-items:center}
.livepay-adjust-input,.livepay-note-input{height:34px!important;padding:5px 7px!important;font-size:11px!important}
.livepay-confirm{display:flex;justify-content:space-between;align-items:center;gap:20px}
.payroll-positive{color:#3e7650;font-weight:700}.payroll-negative{color:#985151;font-weight:700}
.simple-payroll-settings{max-width:900px}
.simple-payroll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.simple-payroll-grid label{display:block;margin:0;font-size:12px;font-weight:700}
.simple-payroll-grid label small{display:block;margin-top:5px;color:#888;font-weight:400}
.payroll-option{display:flex!important;gap:10px;align-items:flex-start;padding:14px;border:1px solid #e3e3de;border-radius:12px;background:#fafaf8}
.payroll-option input{width:18px;height:18px;flex:0 0 auto}
.payroll-option span{display:flex;flex-direction:column}
.simple-payroll-save{display:flex;justify-content:flex-end;margin-top:16px}
.pay-notice-card{border:1px solid #e4e4df;border-radius:12px;margin-top:10px;overflow:hidden}
.pay-notice-card summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;cursor:pointer}
.pay-notice-card summary div{display:flex;flex-direction:column}.pay-notice-card summary small{color:#888;margin-top:2px}
.pay-notice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;border-top:1px solid #ecece8;background:#fafaf8}
.pay-notice-grid span{display:flex;flex-direction:column;font-size:11px;color:#777}.pay-notice-grid strong{color:#222;margin-top:2px}
@media(max-width:900px){.livepay-top,.livepay-confirm{align-items:flex-start;flex-direction:column}.simple-payroll-grid{grid-template-columns:1fr}.pay-notice-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.pay-notice-grid{grid-template-columns:1fr}.simple-payroll-save .btn,.livepay-confirm .btn{width:100%}}

/* Attendance/payroll request workflow */
.request-choice-tabs{display:flex;gap:7px;overflow:auto;margin:12px 0 16px}
.request-choice-tabs button{border:1px solid #ddd;border-radius:999px;background:#fff;padding:8px 13px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.request-choice-tabs button.on{background:#222;color:#fff;border-color:#222}
.request-pane{padding:13px;border:1px solid #e6e6e1;border-radius:12px;background:#fafaf8;margin-bottom:12px}
.request-pane[hidden]{display:none!important}
.request-pane .field-hint{margin:8px 0 0}
.pill.danger{background:#f4eaea;color:#8b4444}

/* Shared company Timeline */
.timeline-shell{width:min(860px,100%);margin:0 auto 70px;position:relative}.backend .timeline-shell{margin:0 auto 48px}.timeline-page-head{display:grid;grid-template-columns:34px 1fr auto;align-items:center}.timeline-head-actions{display:flex;gap:10px;align-items:center}.timeline-bell{position:relative;width:40px;height:40px;border:1px solid #ddd;border-radius:50%;background:#fff;font-size:19px;cursor:pointer}.timeline-bell span{position:absolute;right:-4px;top:-5px;background:#222;color:#fff;border-radius:999px;min-width:19px;height:19px;padding:0 5px;font-size:10px;display:grid;place-items:center;border:2px solid #fff}.timeline-notification-drawer{position:sticky;top:10px;z-index:30;margin:0 0 10px;background:#fff;border:1px solid #dcdcd7;border-radius:15px;padding:13px;box-shadow:0 12px 35px rgba(0,0,0,.10);max-height:420px;overflow:auto}.timeline-notif{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:10px;text-decoration:none;color:inherit;border-bottom:1px solid #eee}.timeline-notif.unread{background:#f0f0ed}.timeline-notif span,.timeline-notif small{font-size:12px;color:#666}.timeline-pinned{border:1px solid #d8d8d1;border-radius:14px;background:#f7f7f3;padding:9px;margin-bottom:11px}.timeline-strip-head{display:flex;justify-content:space-between;padding:5px 5px 9px;font-size:12px}.timeline-pinned .timeline-message{margin-bottom:8px}.timeline-composer-card{padding:14px}.timeline-compose-top{display:flex;gap:10px}.timeline-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#222;color:#fff;font-weight:750;flex:0 0 auto}.timeline-avatar.small{width:34px;height:34px;font-size:12px}.timeline-compose-field{position:relative;flex:1}.timeline-compose-field textarea{width:100%;min-height:70px;resize:vertical;border-radius:12px}.timeline-compose-actions{display:flex;align-items:center;gap:9px;margin-top:10px;flex-wrap:wrap}.timeline-compose-actions .btn{margin-left:auto}.timeline-image-button{cursor:pointer;border:1px solid #ddd;border-radius:9px;padding:8px 10px;font-size:12px}.timeline-check{display:flex!important;align-items:center;gap:6px!important;font-size:12px!important}.timeline-image-preview{display:flex;gap:7px;overflow:auto;margin-top:8px}.timeline-image-preview img{width:68px;height:68px;object-fit:cover;border-radius:9px}.timeline-replying{display:flex;justify-content:space-between;align-items:center;background:#f1f1ee;border-radius:9px;padding:7px 10px;margin-top:8px;font-size:12px}.timeline-replying button{border:0;background:none;font-size:18px}.timeline-mention-menu{position:absolute;left:5px;right:5px;top:72px;background:#fff;border:1px solid #d7d7d2;border-radius:11px;z-index:20;box-shadow:0 10px 25px rgba(0,0,0,.11);overflow:hidden}.timeline-mention-menu button{width:100%;border:0;background:#fff;padding:9px 11px;text-align:left;display:flex;flex-direction:column}.timeline-mention-menu button:hover{background:#f4f4f1}.timeline-mention-menu span{font-size:11px;color:#777}.timeline-feed{display:flex;flex-direction:column;gap:9px}.timeline-message{background:#fff;border:1px solid #e2e2de;border-radius:14px;padding:13px;transition:.2s}.timeline-message.unread{background:#f4f4f0;border-color:#ccccC4;box-shadow:inset 3px 0 0 #888}.timeline-message.official{border-left:3px solid #3d3d3d}.timeline-message.important{border-color:#bbb;background:#fbfbf7}.timeline-message-head{display:flex;gap:9px;align-items:center}.timeline-author{min-width:0;flex:1}.timeline-author>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.timeline-author small{display:block;color:#777;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-message time{font-size:10px;color:#8a8a84;white-space:nowrap}.timeline-role,.timeline-important-badge{font-size:8px;letter-spacing:.08em;border:1px solid #bbb;border-radius:999px;padding:2px 5px;font-weight:800}.timeline-role.admin{background:#222;color:#fff;border-color:#222}.timeline-role.hr{background:#e8e8e4}.timeline-important-badge{background:#fff;border-style:dashed}.timeline-body{margin:10px 0 8px;line-height:1.46;font-size:14px;overflow-wrap:anywhere}.timeline-mention{font-weight:750;background:#eeeeea;border-radius:4px;padding:0 2px}.timeline-reply-context{font-size:11px;color:#777;margin:7px 0 0 43px}.timeline-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0}.timeline-image img{width:100%;max-height:310px;object-fit:cover;border-radius:10px;display:block}.timeline-message-foot{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #eee;padding-top:8px;margin-top:8px}.timeline-tools,.timeline-reactions{display:flex;gap:3px;align-items:center;flex-wrap:wrap}.timeline-tools button,.timeline-react-count{border:0;background:transparent;color:#666;border-radius:999px;padding:5px 6px;font-size:11px;cursor:pointer}.timeline-tools button:hover,.timeline-react-count:hover,.timeline-react-count.mine{background:#eeeeea;color:#222}.timeline-ack{display:flex;align-items:center;gap:9px;margin:9px 0;padding:9px;border-radius:9px;background:#f0f0eb}.timeline-ack span{font-size:11px;color:#666}.timeline-ack .acknowledged{background:#e5e5e0}.timeline-new-divider{display:flex;align-items:center;gap:8px;margin:10px 0;color:#666;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.timeline-new-divider:before,.timeline-new-divider:after{content:"";height:1px;background:#ccc;flex:1}.timeline-loading{padding:25px;text-align:center;color:#777}.profile-timeline-entry{margin-top:10px}
@media(max-width:700px){.timeline-shell{width:100%}.timeline-compose-actions .timeline-check{order:3;width:100%}.timeline-message{border-radius:12px;padding:11px}.timeline-message-head time{font-size:9px}.timeline-images{grid-template-columns:1fr 1fr}.timeline-message-foot{align-items:flex-start;flex-direction:column}.timeline-tools{width:100%;overflow:auto;flex-wrap:nowrap}.bottom-nav{overflow-x:auto}.bottom-nav a{min-width:62px}}

/* RecafHR Timeline — Slack-like channel redesign v2 */
.slack-timeline{max-width:1050px;margin:0 auto;padding:0 0 26px}
.timeline-channel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border:1px solid #deded9;border-bottom:0;border-radius:14px 14px 0 0;background:#fff}
.timeline-channel-title strong{display:block;font-size:18px;letter-spacing:-.02em}
.timeline-channel-title small{display:block;color:#777;margin-top:2px}
.timeline-channel-actions{display:flex;gap:7px;align-items:center}
.timeline-pin-toggle,.slack-timeline .timeline-bell{height:38px;min-width:42px;border:1px solid #deded9;background:#fff;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;position:relative}
.slack-timeline .timeline-bell span{position:absolute;right:-5px;top:-7px;background:#222;color:#fff;border-radius:999px;min-width:18px;height:18px;font-size:10px;display:grid;place-items:center}
.slack-feed{border-left:1px solid #deded9;border-right:1px solid #deded9;background:#fff;min-height:330px;padding:10px 0 16px}
.slack-message{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:7px 18px;border:0!important;border-radius:0!important;background:#fff!important;margin:0!important;box-shadow:none!important}
.slack-message.unread{background:#f5f5f2!important}
.slack-message.official{border-left:3px solid #555!important;padding-left:15px}
.slack-message.important{background:#faf9f4!important}
.slack-message .timeline-avatar.small{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:#222;color:#fff;font-weight:700;font-size:13px;margin:1px 0 0}
.timeline-message-main{min-width:0}
.slack-message .timeline-message-head{display:block;margin:0}
.timeline-author-line{display:flex;align-items:center;gap:6px;min-width:0;line-height:1.2}
.timeline-author-line strong{font-size:14px}
.timeline-author-line time{font-size:11px;color:#8a8a85;font-weight:400;margin-left:2px}
.slack-message .timeline-role,.slack-message .timeline-important-badge{font-size:9px;line-height:16px;height:16px;padding:0 6px;border-radius:4px;font-weight:800;letter-spacing:.05em}
.slack-message .timeline-role{background:#252525;color:#fff}
.slack-message .timeline-important-badge{background:#ece9df;color:#5e5848}
.slack-message .timeline-body{font-size:14px;line-height:1.45;margin:3px 0 0;color:#202020}
.slack-message .timeline-mention{background:#e9e9e5;border-radius:4px;padding:1px 3px;font-weight:650}
.timeline-hover-tools{position:absolute;right:16px;top:-13px;display:none;align-items:center;background:#fff;border:1px solid #d9d9d4;border-radius:8px;padding:2px;box-shadow:0 2px 7px rgba(0,0,0,.08);z-index:3}
.timeline-hover-tools>button,.timeline-message-menu>summary{border:0;background:transparent;min-width:31px;height:29px;border-radius:5px;display:grid;place-items:center;cursor:pointer;font-size:14px}
.timeline-hover-tools>button:hover,.timeline-message-menu>summary:hover{background:#f1f1ee}
.timeline-message-menu{position:relative}
.timeline-message-menu>summary{list-style:none}.timeline-message-menu>summary::-webkit-details-marker{display:none}
.timeline-message-pop{position:absolute;right:0;top:34px;width:190px;padding:6px;background:#fff;border:1px solid #ddd;border-radius:9px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:10}
.timeline-message-pop>button{display:block;width:100%;text-align:left;border:0;background:#fff;padding:8px;border-radius:5px;cursor:pointer}
.timeline-message-pop>button:hover{background:#f2f2ef}
.timeline-quick-react{display:flex;gap:2px;padding:5px 3px;border-bottom:1px solid #eee;margin-bottom:3px}
.timeline-quick-react button{border:0;background:transparent;padding:5px;cursor:pointer}
.timeline-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.timeline-react-count,.timeline-add-reaction{border:1px solid #d9d9d4;background:#f7f7f5;border-radius:999px;min-height:25px;padding:2px 8px;font-size:12px;cursor:pointer}
.timeline-react-count.mine{border-color:#aaa;background:#ededeb}
.timeline-thread-link{border:0;background:transparent;color:#666;padding:0;margin:2px 0;font-size:11px;cursor:pointer}
.timeline-images{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.timeline-images .timeline-image img{width:150px;height:110px;object-fit:cover;border-radius:8px;border:1px solid #ddd}
.timeline-ack{display:flex;align-items:center;gap:9px;margin-top:8px}.timeline-ack span{font-size:11px;color:#777}
.slack-composer{border:1px solid #bdbdb8!important;border-radius:0 0 14px 14px!important;background:#fff!important;padding:0!important;margin:0!important;box-shadow:none!important}
.slack-composer .timeline-compose-field{position:relative}
.slack-composer textarea{width:100%;border:0!important;box-shadow:none!important;resize:vertical;min-height:60px;padding:13px 14px 6px;font-size:15px;background:transparent!important;outline:none}
.slack-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px 8px!important;border-top:0!important}
.timeline-compose-tools,.timeline-compose-send{display:flex;align-items:center;gap:5px}
.timeline-tool-btn{width:34px;height:32px;border:0;background:transparent;border-radius:6px;display:grid;place-items:center;cursor:pointer;font-weight:700;color:#555}
.timeline-tool-btn:hover{background:#f1f1ee}
.timeline-more-menu{position:relative}.timeline-more-menu summary{list-style:none}.timeline-more-menu summary::-webkit-details-marker{display:none}
.timeline-more-pop{position:absolute;left:0;bottom:38px;width:245px;background:#fff;border:1px solid #ddd;border-radius:9px;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:8}
.timeline-more-pop label{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.35}
.timeline-replying{margin:8px 8px 0;padding:7px 9px;border-left:3px solid #777;background:#f5f5f2;border-radius:5px;font-size:12px}
.timeline-image-preview{display:flex;gap:6px;padding:0 10px}.timeline-image-preview img{width:62px;height:50px;object-fit:cover;border-radius:6px}
.timeline-new-divider{max-width:1050px;margin:0 auto;position:relative;height:0;z-index:4;border-top:1px solid #b05b5b}
.timeline-new-divider span{position:absolute;right:12px;top:-10px;background:#b05b5b;color:#fff;border-radius:999px;padding:2px 8px;font-size:9px;font-weight:800;letter-spacing:.08em}
.slack-pinned{border:1px solid #deded9;border-bottom:0;background:#fafaf8;padding:10px 14px;margin:0}
.slack-pinned .timeline-message{border-radius:8px!important;margin:5px 0!important}
.timeline-notification-drawer{max-width:420px;margin:8px 0 8px auto;border:1px solid #ddd;background:#fff;border-radius:10px;padding:12px}
@media (hover:hover) and (pointer:fine){.slack-message:hover{background:#f7f7f5!important}.slack-message:hover .timeline-hover-tools{display:flex}}
@media (max-width:700px){
 .slack-timeline{padding:0 0 18px}.timeline-channel-head{border-radius:10px 10px 0 0;padding:10px 12px}
 .timeline-channel-title strong{font-size:16px}.timeline-channel-title small{font-size:10px}
 .slack-message{grid-template-columns:34px minmax(0,1fr);padding:8px 11px;gap:8px}
 .slack-message.official{padding-left:8px}.slack-message .timeline-avatar.small{width:32px;height:32px}
 .timeline-hover-tools{display:flex;position:static;grid-column:2;margin-top:2px;border:0;box-shadow:none;padding:0;justify-content:flex-start}
 .timeline-hover-tools>button:not([data-reply]),.timeline-hover-tools>.timeline-quick-react{display:none}
 .timeline-images .timeline-image img{width:110px;height:85px}
 .slack-composer textarea{font-size:16px}.timeline-message-pop{right:auto;left:0}
}

/* Rechat + notification popover fix v3 */
.timeline-page-head h1,
.backend-top h1{letter-spacing:-.03em}
.timeline-channel-title strong{text-transform:none}

.slack-timeline{position:relative}
.timeline-notification-layer[hidden]{display:none!important}
.timeline-notification-layer{
  position:absolute;
  inset:0;
  z-index:50;
  pointer-events:none;
}
.timeline-notification-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:transparent;
  padding:0;
  pointer-events:auto;
  cursor:default;
}
.timeline-notification-drawer{
  position:absolute!important;
  top:62px;
  right:12px;
  width:min(420px,calc(100% - 24px));
  max-height:430px;
  overflow:auto;
  margin:0!important;
  border:1px solid #d7d7d2;
  background:#fff;
  border-radius:12px;
  padding:12px;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  pointer-events:auto;
  z-index:2;
}
.timeline-notification-drawer .section-head{
  position:sticky;
  top:-12px;
  background:#fff;
  z-index:2;
  padding:4px 0 8px;
  margin-bottom:4px;
}
.timeline-notif{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  color:inherit;
}
.timeline-notif + .timeline-notif{border-top:1px solid #eee}
.timeline-notif.unread{background:#f3f3f0}
.timeline-notif strong,.timeline-notif span,.timeline-notif small{display:block}
.timeline-notif span{margin-top:2px;color:#666}
.timeline-notif small{margin-top:4px;color:#888}

@media (max-width:700px){
  .timeline-notification-drawer{
    top:56px;
    right:8px;
    width:calc(100% - 16px);
    max-height:360px;
  }
}

/* Rechat fast photo upload v4 */
.timeline-preview-item{position:relative;display:inline-block}
.timeline-preview-item img{display:block}
.timeline-preview-item button{position:absolute;right:-5px;top:-5px;width:21px;height:21px;border:1px solid #ccc;border-radius:999px;background:#fff;color:#222;display:grid;place-items:center;padding:0;line-height:1;cursor:pointer}
.slack-compose-actions button[disabled]{opacity:.55;cursor:wait}

/* Rechat separate photo upload v6 */
#timelinePostStatus{font-size:11px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Rechat base64 photo upload + reply bar fix v9 */
.timeline-replying[hidden]{display:none!important}

/* Rechat v13 physical JS cache break */

.rechat-lightbox[hidden],.staff-photo-lightbox[hidden]{display:none!important}.rechat-lightbox,.staff-photo-lightbox{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px}.rechat-lightbox-backdrop,.staff-photo-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.72)}.rechat-lightbox-panel,.staff-photo-lightbox>div{position:relative;z-index:1;max-width:92vw;max-height:88vh}.rechat-lightbox img,.staff-photo-lightbox img{max-width:100%;max-height:86vh;object-fit:contain;border-radius:10px}.rechat-lightbox-close,.staff-photo-lightbox>div>button{position:absolute;right:-10px;top:-10px;width:34px;height:34px;border:0;border-radius:999px;background:#fff;font-size:22px;z-index:2}
.staff-rechat-card{padding:11px!important}.staff-rechat-head{margin-bottom:5px!important}.staff-rechat-head h3{font-size:17px;margin:0}.staff-rechat-feed{max-height:220px;overflow:auto;border-block:1px solid #eee;padding:4px 0}.staff-rechat-msg{display:grid;grid-template-columns:27px 1fr;gap:7px;padding:5px 1px}.staff-rechat-avatar{width:27px;height:27px;border-radius:7px;background:#222;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}.staff-rechat-meta{display:flex;gap:5px;align-items:center}.staff-rechat-meta strong{font-size:12px}.staff-rechat-meta span{font-size:7px;background:#222;color:#fff;padding:2px 4px;border-radius:3px}.staff-rechat-meta time{font-size:9px;color:#888}.staff-rechat-body{font-size:12px;margin-top:2px}.staff-rechat-photo{border:0;background:transparent;padding:0;margin-top:4px}.staff-rechat-photo img{width:76px;height:58px;object-fit:cover;border-radius:6px}.staff-rechat-compose{display:grid;grid-template-columns:1fr 32px auto;gap:5px;align-items:end;padding-top:7px}.staff-rechat-compose textarea{min-height:36px;max-height:72px;font-size:16px;padding:7px}.staff-rechat-attach{height:34px;display:grid;place-items:center;font-size:20px}.staff-rechat-status{font-size:10px;text-align:right;min-height:12px}


/* ===== Store-specific staff themes (Admin/HR remain monochrome) ===== */
.staff-themed{--accent:var(--staff-accent,#1f6b45)}
.staff-themed .avatar,.staff-themed .big-avatar{background:var(--staff-accent,#1f6b45)!important;color:#fff}
.staff-themed .btn.primary{background:var(--staff-accent,#1f6b45)!important;border-color:var(--staff-accent,#1f6b45)!important;color:#fff}
.staff-themed .bottom-nav a:hover,.staff-themed .bottom-nav a:focus-visible{color:var(--staff-accent,#1f6b45)}
.staff-themed .status-line .dot{background:var(--staff-accent,#1f6b45)!important}
.staff-themed .page-head>a,.staff-themed .section-head>a,.staff-themed .top .eyebrow{color:var(--staff-accent,#1f6b45)}
.staff-themed .card{border-top-color:color-mix(in srgb,var(--staff-accent,#1f6b45) 28%,var(--line))}
.staff-themed .pill{border-color:color-mix(in srgb,var(--staff-accent,#1f6b45) 24%,var(--line));}
.staff-themed input:focus,.staff-themed select:focus,.staff-themed textarea:focus{outline:2px solid color-mix(in srgb,var(--staff-accent,#1f6b45) 35%,transparent);border-color:var(--staff-accent,#1f6b45)}
.store-theme-field{display:flex;align-items:center;gap:10px;margin-top:7px}.store-theme-field input[type=color]{width:54px;height:44px;padding:3px;border-radius:10px}.store-theme-field code{font-size:12px;color:var(--muted);text-transform:uppercase}
.staff-themed .shortcut .icon{background:color-mix(in srgb,var(--staff-accent,#1f6b45) 12%,#fff);color:var(--staff-accent,#1f6b45)}
.staff-themed .shortcut.active{background:var(--staff-accent,#1f6b45)!important;border-color:var(--staff-accent,#1f6b45)!important;color:#fff}
.staff-themed .shortcut.active .icon{background:rgba(255,255,255,.18);color:#fff}
.staff-themed .shortcut.active small{color:rgba(255,255,255,.78)}
.staff-themed .bottom-nav a.on{color:var(--staff-accent,#1f6b45)!important;font-weight:800}
.store-config{grid-template-columns:1.25fr .9fr 1fr 1fr 1fr auto auto}
@media(max-width:1050px){.store-config{grid-template-columns:1fr 1fr 1fr}.store-config>div,.store-config .btn{grid-column:auto}}
@media(max-width:760px){.store-config{grid-template-columns:1fr 1fr}.store-config>div,.store-config .btn{grid-column:1/-1}}

/* Profile photos */
.avatar-link{display:block;border-radius:50%}.avatar.has-photo,.big-avatar.has-photo,.employee-avatar.has-photo,.user-chip-avatar.has-photo,.account-avatar.has-photo{overflow:hidden;padding:0}.avatar.has-photo img,.big-avatar.has-photo img,.employee-avatar.has-photo img,.user-chip-avatar.has-photo img,.account-avatar.has-photo img{width:100%;height:100%;display:block;object-fit:cover}.big-avatar{width:104px;height:104px;margin:0 auto 14px;font-size:34px}.profile-photo-wrap{display:flex;justify-content:center}.profile-photo-actions{display:flex;justify-content:center;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 0 5px}.profile-photo-actions form{margin:0}.photo-file-label{font-size:12px;text-align:left;min-width:190px;margin:0}.photo-file-label input{padding:8px;margin-top:5px}.profile-photo-help{display:block;text-align:center;margin-bottom:18px}.employee-photo-cell{position:relative;display:inline-flex;align-items:center;gap:4px}.employee-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#272727;color:#fff;font-weight:800;overflow:hidden}.mini-photo-picker{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);font-size:17px;line-height:1;cursor:pointer;margin:0}.mini-photo-picker input{display:none}.photo-remove-mini{width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:#fff;cursor:pointer;padding:0;line-height:1}.user-chip-profile{display:inline-flex;align-items:center;gap:9px}.user-chip-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#252525;color:#fff;font-size:12px;font-weight:800;overflow:hidden}.account-profile-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:28px}.account-photo-card{display:flex;gap:18px;align-items:center}.account-photo-card h2{margin:5px 0}.account-avatar{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:#252525;color:#fff;font-size:34px;font-weight:800;overflow:hidden;flex:0 0 auto}.photo-actions form{max-width:430px}@media(max-width:760px){.account-profile-grid{grid-template-columns:1fr}.account-photo-card{align-items:flex-start}.profile-photo-actions{align-items:stretch;flex-direction:column}.profile-photo-actions .btn{width:100%}}
.timeline-avatar.has-photo,.staff-rechat-avatar.has-photo{overflow:hidden;padding:0}.timeline-avatar.has-photo img,.staff-rechat-avatar.has-photo img{width:100%;height:100%;display:block;object-fit:cover}

/* Profile photo self-service social-style picker v2 */
.profile-avatar-form{margin:0}.profile-photo-edit{position:relative;display:inline-flex!important;cursor:pointer;margin:0 auto 14px}.profile-photo-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.profile-camera-badge{position:absolute;right:-3px;bottom:4px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--staff-accent,var(--accent));color:#fff;border:3px solid var(--panel,#fff);box-shadow:0 2px 8px rgba(0,0,0,.15);transition:transform .15s ease}.profile-photo-edit:hover .profile-camera-badge{transform:scale(1.06)}.profile-camera-badge svg{width:17px;height:17px;fill:currentColor}.profile-photo-help{margin:3px auto 7px;max-width:380px;line-height:1.45}.profile-remove-form{margin:2px 0 15px}.profile-remove-link{border:0;background:transparent;color:var(--muted);padding:5px 8px;cursor:pointer;font-size:12px;text-decoration:underline;text-underline-offset:3px}.profile-remove-link:hover{color:var(--text)}.backend-profile-photo{margin:0}.backend-profile-photo .profile-camera-badge{background:#252525}.account-photo-hint{font-size:12px;margin:8px 0 2px}.backend-remove-form{margin:3px 0 0}.profile-photo-info{align-self:center}.profile-photo-info .callout{font-size:13px;line-height:1.45}.employee-photo-cell .employee-avatar{margin:auto}

/* Rechat channels v1 */
.rechat-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;overflow:hidden}
.rechat-channel-rail{border-right:1px solid #e8e8e8;background:#fafafa;padding:14px 10px;min-height:620px}
.rechat-rail-head{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 12px;font-size:16px}.rechat-add-channel{border:0;background:#1b1b1b;color:#fff;width:30px;height:30px;border-radius:9px;font-size:21px;line-height:1;cursor:pointer}
.rechat-rail-label{padding:15px 10px 7px;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#858585}
.rechat-channel-link{width:100%;display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:9px 10px;border-radius:9px;text-align:left;color:#333;cursor:pointer}.rechat-channel-link:hover{background:#f0f0f0}.rechat-channel-link.active{background:#e9e9e9;color:#111}.rechat-channel-link span{color:#777}.rechat-channel-link b{font-weight:650;overflow:hidden;text-overflow:ellipsis}.rechat-channel-link em{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#1b1b1b;color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center}.rechat-channel-link i{margin-left:auto;font-size:11px}.rechat-channel-link.has-unread b{font-weight:850;color:#111}.rechat-channel-loading,.rechat-channel-empty{padding:9px 10px;color:#8a8a8a;font-size:13px}
.rechat-channel-main{min-width:0}.timeline-channel-tag{color:inherit;font-weight:750;text-decoration:none;background:#eef0f2;border-radius:4px;padding:1px 3px}.timeline-channel-tag:hover{text-decoration:underline}.timeline-mention.channel{font-weight:850}
.rechat-locked-channel{text-align:center;padding:70px 24px;max-width:560px;margin:0 auto}.rechat-lock-icon{width:70px;height:70px;border-radius:18px;background:#f0f0f0;display:grid;place-items:center;margin:0 auto 16px;font-size:32px;font-weight:900}.rechat-locked-channel h2{margin:0 0 10px}.rechat-locked-channel p{color:#666;max-width:450px;margin:0 auto 10px}.rechat-lock-meta{font-size:13px;color:#888;margin-bottom:20px}
.rechat-channel-modal-layer{position:fixed;inset:0;z-index:999;display:grid;place-items:center;padding:20px}.rechat-channel-modal-layer[hidden]{display:none}.rechat-channel-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.45)}.rechat-channel-modal{position:relative;width:min(720px,100%);max-height:min(820px,92vh);overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 28px 80px rgba(0,0,0,.22)}.rechat-channel-modal form>label{display:grid;gap:7px;margin:0 0 15px;font-weight:700}.rechat-channel-modal .input{width:100%}.rechat-form-label{font-weight:800;margin:16px 0 8px}.rechat-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.rechat-member-picker{border:1px solid #e3e3e3;border-radius:13px;overflow:hidden}.rechat-member-picker>.input{border:0;border-bottom:1px solid #e8e8e8;border-radius:0}.rechat-member-list{max-height:340px;overflow:auto}.rechat-member-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #f0f0f0;cursor:pointer}.rechat-member-row:last-child{border-bottom:0}.rechat-member-row>span:nth-of-type(2){min-width:0;display:grid}.rechat-member-row small{color:#777;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rechat-member-avatar{width:34px;height:34px;border-radius:10px;background:#eee;display:grid;place-items:center;font-weight:800}.rechat-manager-check{margin-left:auto!important;display:flex!important;grid-template-columns:none!important;align-items:center;gap:6px!important;font-size:12px;font-weight:600!important;white-space:nowrap}.rechat-request-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.rechat-request-row span{display:grid}.rechat-request-row small{color:#777}.rechat-request-row>div{display:flex;gap:6px}
.rechat-channel-info p{font-size:15px;color:#555}.rechat-info-grid{display:flex;gap:10px;margin:18px 0}.rechat-info-grid>div{background:#f5f5f5;border-radius:12px;padding:14px 18px;min-width:120px;display:grid}.rechat-info-grid b{font-size:20px;text-transform:capitalize}.rechat-info-grid span{font-size:12px;color:#777}
@media(max-width:800px){.rechat-workspace{display:block}.rechat-channel-rail{min-height:0;border-right:0;border-bottom:1px solid #e7e7e7;padding:8px;display:flex;align-items:center;gap:6px;overflow-x:auto}.rechat-rail-head{padding:0 4px 0 2px;flex:0 0 auto}.rechat-rail-head strong,.rechat-rail-label{display:none}.rechat-add-channel{width:34px;height:34px}.rechat-channel-rail #rechatChannelList{display:flex;gap:6px}.rechat-channel-link{width:auto;flex:0 0 auto;padding:8px 10px}.rechat-channel-link em{margin-left:4px}.rechat-channel-modal{padding:17px}.rechat-manager-check{font-size:11px}}

/* Rechat channel member picker: prevent global input width from pushing staff details off-screen */
.rechat-member-row{min-width:0;overflow:hidden}
.rechat-member-row>input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;margin:0!important;padding:0!important}
.rechat-member-row>.rechat-member-avatar{flex:0 0 34px}
.rechat-member-row>span:nth-of-type(2){flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden}
.rechat-member-row>span:nth-of-type(2) b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rechat-member-row small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rechat-member-list{overflow-y:auto;overflow-x:hidden}
.rechat-manager-check>input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;margin:0!important;padding:0!important}
@media(max-width:800px){.rechat-member-row{gap:8px;padding:10px}.rechat-member-avatar{width:30px;height:30px;flex-basis:30px}.rechat-member-row small{font-size:11px}.rechat-manager-check{margin-left:6px!important}}

/* Rechat channel header simplification + rail notifications */
.rechat-rail-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rechat-rail-actions{display:flex;align-items:center;gap:6px}
.rechat-rail-bell{position:relative;width:32px;height:32px;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;cursor:pointer;font-size:15px;padding:0}
.rechat-rail-bell:hover{background:#ececea}
.rechat-rail-bell span{position:absolute;right:-3px;top:-4px;background:#222;color:#fff;border:2px solid #fff;border-radius:999px;min-width:17px;height:17px;padding:0 4px;font-size:9px;display:grid;place-items:center;font-weight:800}
.timeline-channel-actions{display:flex;align-items:center;gap:8px}
.timeline-pinned[hidden]{display:none!important}
.timeline-pinned:not([hidden]){display:block!important}
.rechat-channel-info>.btn{margin-top:12px;margin-right:8px}

/* Channel info click target fix */
.timeline-channel-head{position:relative}
.timeline-channel-actions{position:relative;z-index:8;flex:0 0 auto;pointer-events:auto}
#rechatChannelInfoBtn{position:relative;z-index:9;pointer-events:auto!important;cursor:pointer}
.timeline-channel-title{min-width:0;position:relative;z-index:1}


/* Channel info resilient link/click fallback v2 */
#rechatChannelInfoBtn.rechat-channel-info-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;user-select:none;-webkit-user-select:none;touch-action:manipulation}
#rechatChannelInfoBtn.rechat-channel-info-link[hidden]{display:none!important}


/* Rechat desktop full-page workspace v1 */
@media (min-width:801px){
  body.backend.timeline-web-page{height:100vh;overflow:hidden}
  body.backend.timeline-web-page .backend-main{
    height:100vh;
    min-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding:24px 24px 18px;
  }
  body.backend.timeline-web-page .backend-top{
    flex:0 0 auto;
    margin-bottom:18px;
  }
  body.backend.timeline-web-page .timeline-shell.slack-timeline.rechat-workspace{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    flex:1 1 auto;
    min-height:0;
    height:100%;
    grid-template-columns:270px minmax(0,1fr);
    border:1px solid #deded9;
    border-radius:16px;
    background:#fff;
  }
  body.backend.timeline-web-page .rechat-channel-rail{
    min-height:0;
    height:100%;
    overflow-y:auto;
    overflow-x:hidden;
    border-right:1px solid #e8e8e8;
    border-radius:16px 0 0 16px;
  }
  body.backend.timeline-web-page .rechat-channel-main{
    min-width:0;
    min-height:0;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  body.backend.timeline-web-page .timeline-channel-head{
    flex:0 0 auto;
    border:0;
    border-bottom:1px solid #deded9;
    border-radius:0 16px 0 0;
    padding:14px 20px;
  }
  body.backend.timeline-web-page .timeline-pinned.slack-pinned{
    flex:0 0 auto;
    max-height:30vh;
    overflow:auto;
    border:0;
    border-bottom:1px solid #deded9;
  }
  body.backend.timeline-web-page .timeline-feed.slack-feed{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    border:0;
    padding:12px 0 18px;
  }
  body.backend.timeline-web-page .slack-message{
    padding-left:20px;
    padding-right:20px;
  }
  body.backend.timeline-web-page .timeline-new-divider{
    flex:0 0 auto;
    width:100%;
    max-width:none;
  }
  body.backend.timeline-web-page .timeline-composer-card.slack-composer{
    flex:0 0 auto;
    margin:12px 16px 16px!important;
    border-radius:12px!important;
  }
  body.backend.timeline-web-page .timeline-notification-layer{
    position:absolute;
  }
}

/* Rechat drag-and-drop attachments */
.timeline-composer-card form{position:relative}
.timeline-composer-card form.is-dragover{outline:2px dashed #777;outline-offset:-6px;border-radius:14px}
.timeline-drop-hint{position:absolute;inset:8px;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #aaa;border-radius:14px;background:rgba(255,255,255,.96);text-align:center;pointer-events:none}
.timeline-drop-hint[hidden]{display:none!important}
.timeline-drop-hint strong{font-size:17px}.timeline-drop-hint span{font-size:12px;color:#777}
.timeline-image-preview{display:flex;flex-wrap:wrap;gap:8px}
.timeline-preview-item.is-file{display:flex;align-items:center;gap:9px;min-width:210px;max-width:320px;padding:9px 36px 9px 9px;border:1px solid #ddd;border-radius:10px;background:#fafafa}
.timeline-preview-file-icon,.timeline-file-icon{display:grid;place-items:center;flex:0 0 auto;min-width:42px;height:42px;padding:0 6px;border-radius:8px;background:#ececec;font-size:10px;font-weight:800;letter-spacing:.04em}
.timeline-preview-name{display:block;min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.timeline-preview-item.is-image .timeline-preview-name{max-width:92px}
.timeline-file-attachment{display:flex;align-items:center;gap:10px;max-width:420px;margin-top:8px;padding:10px;border:1px solid #ddd;border-radius:10px;background:#fafafa;color:inherit;text-decoration:none}
.timeline-file-attachment:hover{background:#f3f3f3}
.timeline-file-meta{display:flex;min-width:0;flex-direction:column}.timeline-file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-file-meta small{color:#777}
.rechat-channel-main.is-file-dragover{box-shadow:inset 0 0 0 2px #888}
\n/* Rechat threaded replies v15 */
.timeline-thread-group{position:relative}
.timeline-thread-replies{position:relative;margin:2px 0 8px 38px;padding-left:20px}
.timeline-thread-replies:before{content:"";position:absolute;left:7px;top:0;bottom:8px;width:2px;background:#deded9;border-radius:2px}
.timeline-thread-replies .timeline-message{margin:0 0 4px;position:relative;border-left-color:#d0d0ca}
.timeline-thread-replies .timeline-message:before{content:"";position:absolute;left:-14px;top:24px;width:12px;height:10px;border-left:2px solid #deded9;border-bottom:2px solid #deded9;border-bottom-left-radius:8px}
.timeline-thread-context{font-size:11px;color:#777;margin:3px 0 2px;font-weight:600}
.timeline-thread-summary{margin:2px 0 8px 47px;display:flex;align-items:center;gap:8px;min-height:34px;border:0;background:transparent;border-radius:9px;padding:4px 8px;color:#555;cursor:pointer;text-align:left}
.timeline-thread-summary:hover{background:#f3f3f0;color:#222}
.timeline-thread-summary b{font-size:12px;color:#222}
.timeline-thread-summary>span:last-child{font-size:11px;color:#777}
.timeline-thread-avatar-stack{display:flex;align-items:center;padding-left:4px}
.timeline-thread-mini-avatar{width:23px;height:23px;border-radius:50%;background:#222;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800;border:2px solid #fff;margin-left:-5px;overflow:hidden}
.timeline-thread-mini-avatar:first-child{margin-left:0}.timeline-thread-mini-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.timeline-thread-hide{margin:2px 0 5px 8px;border:0;background:transparent;color:#666;font-size:11px;font-weight:700;cursor:pointer;padding:5px 7px;border-radius:7px}.timeline-thread-hide:hover{background:#eee}
.timeline-thread-replies[hidden],.timeline-thread-summary[hidden]{display:none!important}
@media(max-width:720px){.timeline-thread-replies{margin-left:20px;padding-left:16px}.timeline-thread-summary{margin-left:30px}.timeline-thread-replies .timeline-message:before{left:-11px;width:9px}}

/* Verified breaks */
.break-card{border-left:4px solid var(--staff-theme,#222)}.break-actions{display:flex;gap:8px;flex-wrap:wrap}.break-live{font-variant-numeric:tabular-nums}.break-record{display:block;margin-top:5px;color:#666;font-weight:600}.break-decision{display:flex;gap:6px;align-items:center}.attendance-dialog form label{display:block;margin:10px 0}.attendance-dialog form textarea{min-height:80px}

/* Compact live Admin/HR store overview */
.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.dashboard-metrics .metric{padding:14px 16px;border-radius:14px}.dashboard-metrics .metric strong{font-size:26px;margin-top:4px}.dashboard-overview{margin-bottom:18px}.dashboard-section-head{margin-bottom:12px}.dashboard-section-head small{display:block;margin-top:3px}.dashboard-live-dot{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#5f6f63}.dashboard-live-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#6f9279;box-shadow:0 0 0 4px rgba(111,146,121,.12)}.dashboard-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-store-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;min-width:0}.dashboard-store-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.dashboard-store-top h3{font-size:16px;margin:3px 0 0;line-height:1.2}.dashboard-store-count{text-align:right;flex:0 0 auto}.dashboard-store-count strong{display:block;font-size:24px;line-height:1}.dashboard-store-count span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.dashboard-store-stats{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 11px}.dashboard-store-stats span{background:var(--soft);border-radius:999px;padding:5px 8px;font-size:10px;color:#555}.dashboard-store-stats strong{color:var(--text)}.dashboard-store-stats .is-break{background:#fff3db;color:#8a5b12}.dashboard-avatar-row{display:flex;align-items:center;flex-wrap:wrap;gap:0;min-height:34px;padding:2px 0}.dashboard-staff-avatar{position:relative;width:32px;height:32px;padding:0;margin-right:-5px;border:2px solid #fff;border-radius:50%;background:transparent;cursor:pointer;overflow:visible;z-index:1}.dashboard-staff-avatar:hover,.dashboard-staff-avatar:focus,.dashboard-staff-avatar.is-open{z-index:8;transform:translateY(-1px)}.dashboard-mini-avatar,.dashboard-break-avatar{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#262626;color:#fff;font-weight:800}.dashboard-mini-avatar{width:28px;height:28px;font-size:10px}.dashboard-mini-avatar img,.dashboard-break-avatar img{width:100%;height:100%;display:block;object-fit:cover}.dashboard-name-tip{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%) translateY(3px);padding:5px 7px;border-radius:7px;background:#171717;color:#fff;font-size:10px;font-weight:700;white-space:nowrap;opacity:0;pointer-events:none;transition:.15s ease}.dashboard-name-tip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-4px;border:4px solid transparent;border-top-color:#171717}.dashboard-staff-avatar:hover .dashboard-name-tip,.dashboard-staff-avatar:focus .dashboard-name-tip,.dashboard-staff-avatar.is-open .dashboard-name-tip{opacity:1;transform:translateX(-50%) translateY(0)}.dashboard-break-dot{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#e5a431}.dashboard-no-staff{font-size:11px}.dashboard-break-list{margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}.dashboard-break-list>.eyebrow{margin-bottom:4px}.dashboard-break-person{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 0;border-top:1px solid #f0f0ed}.dashboard-break-person:first-of-type{border-top:0}.dashboard-break-person>div{display:flex;align-items:center;gap:8px;min-width:0}.dashboard-break-avatar{width:25px;height:25px;flex:0 0 25px;font-size:9px}.dashboard-break-person span{min-width:0}.dashboard-break-person span strong,.dashboard-break-person span small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-break-person span strong{font-size:11px}.dashboard-break-person span small{font-size:9px;color:var(--muted);margin-top:1px}.dashboard-break-time{font-size:10px;white-space:nowrap;background:var(--soft);padding:5px 7px;border-radius:999px}.dashboard-break-person.ending-soon .dashboard-break-time{background:#fff3db;color:#8a5b12}.dashboard-break-person.overbreak .dashboard-break-time{background:#f7e9e9;color:#9b2c2c}.dashboard-break-person.overbreak{color:#862929}@media(max-width:1150px){.dashboard-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.dashboard-store-grid{grid-template-columns:1fr}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.dashboard-metrics{grid-template-columns:1fr 1fr}.dashboard-metrics .metric{padding:12px}.dashboard-metrics .metric strong{font-size:22px}}

/* Structured requests */
#structuredRequest [data-field]{display:none}
.sick-proof>input[type=file]{position:absolute;left:-9999px;width:1px;height:1px}
.sick-proof .btn{width:max-content;margin-top:8px}
.staff-swap-approval{align-items:center;gap:18px}
.compact-field{font-size:11px;color:#666;display:flex;align-items:center;gap:6px}
@media(max-width:700px){.staff-swap-approval{align-items:flex-start}.staff-swap-approval form{margin-top:10px}}

/* RecafHR site testing gate */
.testing-gate-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f5f3}
.testing-gate-card{max-width:480px;width:100%}
.testing-gate-badge{display:inline-flex;align-items:center;border:1px solid #222;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;letter-spacing:.13em;margin-bottom:18px;background:#171717;color:#fff}
.testing-gate-card .brand{margin-bottom:28px}
.testing-gate-card h1{margin-bottom:8px}
.testing-gate-note{font-size:13px;margin:18px 0 0;text-align:center}
.testing-expiry{font-size:13px;font-weight:700;margin:12px 0 0}
.testing-mode-settings{max-width:820px}
.testing-settings-form{display:grid;gap:18px;margin-top:18px}
.testing-settings-form label{display:grid;gap:7px}
.testing-settings-form label small{font-weight:400;color:#777}
.testing-toggle-row{grid-template-columns:auto 1fr!important;align-items:flex-start;gap:12px!important;padding:16px;border:1px solid #deded9;border-radius:16px;background:#fafafa}
.testing-toggle-row input{width:auto!important;margin-top:3px}
.testing-toggle-row span{display:grid;gap:3px}
.status-testing{background:#171717!important;color:#fff!important;border-color:#171717!important}

/* ===== Auto Scheduler + Quick Assign v20260907 ===== */
.schedule-auto-form{margin:0;display:flex;align-items:center;flex:0 0 auto}
.schedule-auto-form .btn{height:36px;white-space:nowrap;padding:0 11px}
.staffing-modal-card{width:min(980px,calc(100vw - 36px))!important}
.staffing-table-wrap{overflow:auto;border:1px solid #e2e2dd;border-radius:12px;background:#fff}
.staffing-table{width:100%;border-collapse:collapse;min-width:620px}
.staffing-table th,.staffing-table td{padding:10px 12px;border-bottom:1px solid #ecece8;border-right:1px solid #f0f0ec;text-align:center;vertical-align:middle}
.staffing-table th:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:2;min-width:160px}
.staffing-table thead th{background:#fafaf8;font-size:12px;font-weight:850;position:sticky;top:0;z-index:3}
.staffing-table thead th:first-child{z-index:4;background:#fafaf8}
.staffing-table thead small{display:block;margin-top:3px;font-size:9px;font-weight:600;color:#8a8a84;white-space:nowrap}
.staffing-table input[type=number]{width:64px!important;min-width:64px!important;text-align:center;margin:0 auto;padding:8px!important}
.staffing-save{justify-content:flex-end;margin-top:14px}
.quick-assign-card{width:min(520px,calc(100vw - 30px))!important}
.quick-shift-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick-shift-options .shift-block{width:100%;min-height:64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:10px 13px;border-radius:12px;cursor:pointer}
.quick-shift-options .shift-block strong{font-size:14px}.quick-shift-options .shift-block small{margin-top:4px;font-size:10px}
.schedule-coverage-strip{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:6px;margin:0 0 10px;overflow-x:auto;padding-bottom:2px}
.coverage-day{min-width:150px;border:1px solid #e4e4df;border-radius:10px;background:#fafaf8;padding:8px}
.coverage-day>strong{display:block;font-size:10px;letter-spacing:.04em;margin-bottom:5px;color:#555}
.coverage-line{display:block;font-size:9px;line-height:1.45;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coverage-line b{color:#333}
.schedule-cell:not(.has-shift){cursor:pointer}
.schedule-cell:not(.has-shift):hover{background:#fafaf6}
@media(max-width:1100px){.schedule-shift-toolbar{flex-wrap:wrap}.schedule-shift-toolbar-scroll{order:3;flex-basis:100%!important}.schedule-auto-form .btn{height:34px}}
@media(max-width:650px){.quick-shift-options{grid-template-columns:1fr}.staffing-modal-card{padding:14px!important}.schedule-coverage-strip{grid-template-columns:repeat(7,145px)}}
/* Auto Scheduler Day Off v2 */
.day-off-settings-form{margin:0 0 18px}.day-off-settings-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:14px;align-items:end;padding:14px 16px;border:1px solid var(--line,#e4e4e1);border-radius:16px;background:#fafafa}.day-off-settings-row>div{display:grid;gap:4px}.day-off-settings-row small{color:#737373;line-height:1.35}.day-off-settings-row label{display:grid;gap:6px;font-weight:700}.day-off-settings-row input[type=number]{width:100%;min-width:0}.schedule-cell.has-day-off{background:#f5f5f2}.placed-day-off{position:relative;min-height:64px;height:100%;padding:10px 28px 10px 10px;border-radius:10px;border:1px dashed #aaa;background:#f1f1ed;display:flex;flex-direction:column;justify-content:center;gap:2px}.placed-day-off strong{font-size:13px}.placed-day-off small{font-size:10px;color:#777;text-transform:uppercase;letter-spacing:.06em}.placed-day-off form{position:absolute;right:5px;top:5px}.placed-day-off form button{border:0;background:transparent;font-size:18px;line-height:1;cursor:pointer}.quick-day-off{border-style:dashed!important;background:#f5f5f2!important}.quick-day-off strong{color:#222!important}
@media(max-width:760px){.day-off-settings-row{grid-template-columns:1fr}.day-off-settings-row button{width:100%}}
\n/* Scheduler staffing modal + compact gap UI v20260907 */
#staffingManagerBody.rhsm-modal[hidden]{display:none!important}
#staffingManagerBody.rhsm-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;box-sizing:border-box!important}
#staffingManagerBody .rhsm-backdrop{position:absolute!important;inset:0!important;display:block!important;background:rgba(20,20,18,.42)!important;backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important}
#staffingManagerBody .rhsm-modal-card{position:relative!important;z-index:1!important;max-height:min(760px,calc(100vh - 48px))!important;overflow:hidden!important;background:#fff!important;border-radius:20px!important;padding:22px!important;box-shadow:0 24px 70px rgba(0,0,0,.22)!important}
#staffingManagerBody form{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 180px)}
#staffingManagerBody .staffing-table-wrap{flex:1 1 auto;min-height:0;max-height:55vh;overscroll-behavior:contain}
.schedule-gap-summary{margin:0 0 16px;border:1px solid #ead7d1;border-radius:13px;background:#fbf2ef;overflow:hidden}
.schedule-gap-summary>summary{list-style:none;cursor:pointer;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px}.schedule-gap-summary>summary::-webkit-details-marker{display:none}.schedule-gap-summary>summary span{display:grid;gap:2px}.schedule-gap-summary>summary strong{font-size:13px}.schedule-gap-summary>summary small{font-size:11px;color:#806d67;font-weight:500}.schedule-gap-summary>summary>b{font-size:11px;white-space:nowrap}.schedule-gap-list{border-top:1px solid #ead7d1;padding:8px 15px;max-height:240px;overflow:auto}.schedule-gap-list>div{padding:7px 0;border-bottom:1px solid rgba(0,0,0,.06);font-size:11px}.schedule-gap-list>div:last-child{border-bottom:0}
.coverage-shift{border-top:1px solid #ecece7;padding:4px 0}.coverage-shift:first-of-type{border-top:0}.coverage-shift summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:8px;font-size:9px;line-height:1.4}.coverage-shift summary::-webkit-details-marker{display:none}.coverage-shift summary span{font-weight:800}.coverage-shift.warn summary span{color:#9b4f42}.coverage-shift.ok summary span{color:#4f735a}.coverage-shift small{display:block;padding:4px 0 2px;font-size:8px;line-height:1.35;color:#777}
@media(max-width:650px){#staffingManagerBody.rhsm-modal{padding:10px!important}#staffingManagerBody .rhsm-modal-card{max-height:calc(100vh - 20px)!important}.schedule-gap-summary>summary small{display:none}}
\n/* Staffing modal close reliability v20260907b */\n#staffingManagerBody[hidden],#staffingManagerBody[aria-hidden="true"]{display:none!important;visibility:hidden!important;pointer-events:none!important}\n#staffingManagerBody.is-open{display:flex!important;visibility:visible!important;pointer-events:auto!important}\n#staffingManagerBody .rhsm-modal-head{position:relative!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding-right:48px!important;margin-bottom:14px!important}\n#staffingManagerBody .rhsm-modal-head h3{margin:2px 0 4px!important}\n#staffingManagerBody .rhsm-modal-head p{margin:0!important}\n#staffingManagerBody .staffing-close-x{position:absolute!important;top:0!important;right:0!important;width:36px!important;height:36px!important;min-width:36px!important;border:0!important;border-radius:10px!important;background:#f0f0ee!important;display:grid!important;place-items:center!important;font-size:24px!important;line-height:1!important;cursor:pointer!important;z-index:5!important;padding:0!important}\n#staffingManagerBody .staffing-close-x:hover{background:#e6e6e2!important}\n
/* ===== Consolidated Scheduler v20260907c: isolated Staffing + Day Off ===== */
.rhsf-modal[hidden]{display:none!important}
.rhsf-modal{position:fixed;inset:0;z-index:2147483500;display:grid;place-items:center;padding:22px;box-sizing:border-box}
.rhsf-backdrop{position:absolute;inset:0;border:0;background:rgba(20,20,18,.48);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);cursor:default}
.rhsf-card{position:relative;z-index:1;width:min(1080px,calc(100vw - 44px));max-height:calc(100vh - 44px);background:#fff;border-radius:20px;box-shadow:0 28px 90px rgba(0,0,0,.25);padding:22px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column}
.rhsf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px;flex:0 0 auto}
.rhsf-head h3{margin:2px 0 5px;font-size:24px;line-height:1.1}.rhsf-head p{margin:0;color:#73736e}.rhsf-x{width:38px!important;height:38px!important;min-width:38px!important;border:0!important;border-radius:10px!important;background:#efefec!important;color:#222!important;font-size:26px!important;line-height:1!important;display:grid!important;place-items:center!important;padding:0!important;cursor:pointer!important}
.rhsf-x:hover{background:#e4e4df!important}
#staffingRequirementsForm{display:flex;flex-direction:column;min-height:0;gap:14px;overflow:hidden}
.rhsf-dayoff-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e5e5e0;background:#fafaf8;border-radius:14px;padding:14px 16px;flex:0 0 auto}
.rhsf-dayoff-setting strong{display:block;font-size:14px}.rhsf-dayoff-setting small{display:block;max-width:680px;margin-top:3px;color:#777;line-height:1.35}.rhsf-dayoff-setting label{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px;font-weight:800}.rhsf-dayoff-setting input[type=number]{width:68px!important;min-width:68px!important;margin:0!important;padding:8px!important;text-align:center!important}
.rhsf-table-wrap{min-height:0;max-height:52vh;overflow:auto;border:1px solid #e2e2dd;border-radius:13px;background:#fff;overscroll-behavior:contain}
.rhsf-table{width:100%;border-collapse:collapse;min-width:650px}.rhsf-table th,.rhsf-table td{padding:11px 12px;border-bottom:1px solid #ecece8;border-right:1px solid #f0f0ec;text-align:center;vertical-align:middle}.rhsf-table tr:last-child th,.rhsf-table tr:last-child td{border-bottom:0}.rhsf-table th:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:2;min-width:180px}.rhsf-table thead th{position:sticky;top:0;z-index:3;background:#fafaf8;font-size:11px;letter-spacing:.04em;text-transform:uppercase}.rhsf-table thead th:first-child{z-index:4;background:#fafaf8}.rhsf-table thead small{display:block;margin-top:4px;font-size:9px;font-weight:650;letter-spacing:0;text-transform:none;color:#888;white-space:nowrap}.rhsf-table input[type=number]{width:66px!important;min-width:66px!important;margin:0 auto!important;padding:8px!important;text-align:center!important}
.rhsf-actions{display:flex;justify-content:flex-end;gap:8px;flex:0 0 auto;padding-top:2px}
.schedule-cell.has-day-off{background:#f4f4f0!important}.placed-day-off{height:100%;min-height:64px;border:1px dashed #aaa99f;border-radius:10px;background:#f5f5f1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 24px 8px 9px;box-sizing:border-box;position:relative}.placed-day-off strong{font-size:11px}.placed-day-off small{font-size:9px;color:#7d7c75;margin-top:2px}.placed-day-off form{position:absolute;right:5px;top:5px}.placed-day-off form button{width:20px!important;height:20px!important;min-width:20px!important;padding:0!important;border:0!important;border-radius:6px!important;background:rgba(0,0,0,.07)!important;cursor:pointer!important}
.quick-day-off{background:#f4f4ef!important;border:1px dashed #aaa99f!important;color:#333!important}
body.modal-open{overflow:hidden!important}
@media(max-width:720px){.rhsf-modal{padding:10px}.rhsf-card{width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:15px;border-radius:16px}.rhsf-head h3{font-size:20px}.rhsf-dayoff-setting{align-items:flex-start;flex-direction:column;gap:10px}.rhsf-table-wrap{max-height:55vh}.rhsf-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}.rhsf-actions .btn{flex:1}}

/* Scheduler staffing requirement: optional coverage toggle */
.rhsf-requirement-cell{display:flex;align-items:center;justify-content:center;gap:10px;min-width:150px;flex-wrap:wrap}
.rhsf-requirement-cell>input[type="number"]{width:70px;min-width:70px;margin:0}
.rhsf-optional-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;user-select:none}
.rhsf-optional-toggle input{position:absolute;opacity:0;pointer-events:none;width:1px!important;height:1px!important}
.rhsf-optional-toggle em{font-style:normal;color:#777}
.rhsf-switch{width:30px;height:18px;border-radius:999px;background:#ddd;position:relative;display:inline-block;transition:.15s ease;flex:0 0 auto}
.rhsf-switch:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;left:2px;top:2px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s ease}
.rhsf-optional-toggle input:checked + .rhsf-switch{background:#222}
.rhsf-optional-toggle input:checked + .rhsf-switch:after{transform:translateX(12px)}
.rhsf-optional-toggle input:checked ~ em{color:#222}
.rhsf-optional-toggle input:focus-visible + .rhsf-switch{outline:2px solid #111;outline-offset:2px}
@media(max-width:900px){.rhsf-requirement-cell{min-width:130px;gap:6px}.rhsf-optional-toggle em{font-size:11px}}

/* Staffing modal isolation: native dialog prevents unrelated scheduler buttons from opening/capturing it */
.rhsf-dialog{border:0!important;padding:0!important;background:transparent!important;width:min(1080px,calc(100vw - 44px))!important;max-width:none!important;max-height:calc(100vh - 44px)!important;overflow:visible!important}
.rhsf-dialog:not([open]){display:none!important}
.rhsf-dialog::backdrop{background:rgba(20,20,18,.48);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.rhsf-dialog .rhsf-card{width:100%!important;max-height:calc(100vh - 44px)!important;margin:0!important}
.staffing-only-trigger{position:relative;z-index:1}
@media(max-width:720px){.rhsf-dialog{width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important}.rhsf-dialog .rhsf-card{max-height:calc(100vh - 20px)!important}}


/* Unified Admin/HR sidebar v20260911 */
body.backend .sidebar{
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.backend .sidebar nav{
  padding-bottom:24px;
}
body.backend .sidebar nav a{
  box-sizing:border-box;
  width:100%;
}


/* Streamlined Admin/HR sidebar */
body.backend .sidebar{
  display:flex;
  flex-direction:column;
}
body.backend .sidebar-top{
  position:relative;
}
body.backend .sidebar-close{
  display:none;
}
body.backend .sidebar-nav{
  display:flex;
  flex-direction:column;
  min-height:calc(100% - 90px);
}
body.backend .sidebar-nav-spacer{
  flex:1 1 auto;
  min-height:18px;
}
body.backend .sidebar-group{
  margin:4px 0;
  border:0;
}
body.backend .sidebar-group>summary{
  list-style:none;
  cursor:pointer;
  color:#9d9d9d;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:10px 24px 6px;
  position:relative;
}
body.backend .sidebar-group>summary::-webkit-details-marker{display:none}
body.backend .sidebar-group>summary::after{
  content:"›";
  position:absolute;
  right:24px;
  top:8px;
  font-size:18px;
  transition:transform .15s ease;
}
body.backend .sidebar-group[open]>summary::after{
  transform:rotate(90deg);
}
body.backend .sidebar-group-links{
  display:grid;
  gap:2px;
}
body.backend .sidebar-group-links a{
  padding-left:34px!important;
  font-size:.96em;
}
.backend-sidebar-toggle{
  display:none;
}

@media(max-width:900px){
  body.backend{
    padding-left:0!important;
  }
  body.backend .backend-main{
    margin-left:0!important;
    width:100%!important;
    padding-top:66px!important;
  }
  body.backend .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(82vw,300px)!important;
    height:100%!important;
    z-index:1002!important;
    transform:translateX(-102%);
    transition:transform .18s ease;
    box-shadow:8px 0 28px rgba(0,0,0,.18);
  }
  body.backend .sidebar.mobile-open{
    transform:translateX(0);
  }
  body.backend .backend-sidebar-toggle{
    display:grid;
    place-items:center;
    position:fixed;
    top:14px;
    left:14px;
    width:42px;
    height:42px;
    z-index:1001;
    border:0;
    border-radius:12px;
    background:#191919;
    color:#fff;
    font-size:22px;
    cursor:pointer;
  }
  body.backend .backend-sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(0,0,0,.34);
  }
  body.backend .sidebar-close{
    display:grid;
    place-items:center;
    position:absolute;
    right:14px;
    top:18px;
    width:36px;
    height:36px;
    border:0;
    border-radius:10px;
    background:#2e2e2e;
    color:#fff;
    font-size:24px;
    cursor:pointer;
  }
  body.backend.sidebar-open{
    overflow:hidden!important;
  }
}

@media(min-width:901px){
  body.backend .sidebar{
    overflow-y:auto!important;
  }
}


/* Restored staff weekly roster layout from confirmed working baseline */
.staff-schedule-shell{padding-bottom:88px}.staff-schedule-toolbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;margin-bottom:14px;text-align:center}.staff-schedule-toolbar h3{margin:2px 0 0}.staff-schedule-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.staff-schedule-day{min-width:0;border:1px solid var(--line,#e3e3e3);border-radius:16px;background:#fff;overflow:hidden}.staff-schedule-day.today{border-color:var(--staff-accent,#111);box-shadow:inset 0 0 0 1px var(--staff-accent,#111)}.staff-schedule-day.off-day{background:#fafafa}.staff-schedule-date{padding:10px 10px 8px;border-bottom:1px solid var(--line,#ededed);display:flex;justify-content:space-between;align-items:center}.staff-schedule-date span{font-size:11px;font-weight:800;text-transform:uppercase;color:#777}.staff-schedule-date strong{font-size:20px}.staff-schedule-content{padding:10px;min-height:125px;display:flex;flex-direction:column;gap:8px}.staff-schedule-shift{padding:9px;border-radius:11px;background:color-mix(in srgb,var(--staff-accent,#222) 8%,white)}.staff-schedule-shift strong{display:block;font-size:12px;line-height:1.25}.staff-schedule-shift small{display:block;margin-top:4px;color:#666;font-size:10px}.staff-schedule-off{margin:auto 0;text-align:center}.staff-schedule-off strong{display:block;font-size:12px}.staff-schedule-off small,.staff-schedule-none{font-size:10px;color:#999}.staff-schedule-none{margin:auto;text-align:center}.staff-special-pill{align-self:flex-start;font-size:9px;font-weight:800;padding:4px 6px;border-radius:999px;background:#f2f2f2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.staff-week-grid{grid-template-columns:repeat(7,minmax(70px,1fr));overflow-x:auto;padding-bottom:4px}.staff-week-day{min-height:96px}.staff-schedule-week{grid-template-columns:1fr;gap:8px}.staff-schedule-day{display:grid;grid-template-columns:72px 1fr}.staff-schedule-date{border-bottom:0;border-right:1px solid var(--line,#ededed);flex-direction:column;justify-content:center}.staff-schedule-content{min-height:78px}.staff-schedule-shift{padding:8px}.staff-schedule-off,.staff-schedule-none{margin:auto 0;text-align:left}}

/* Staff full-store weekly roster */
.weekly-roster-card{overflow:hidden}.roster-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 12px;font-size:11px;font-weight:700;color:#666}.roster-legend span{display:inline-flex;align-items:center;gap:6px}.roster-legend small{margin-left:auto;font-size:10px;color:#888;font-weight:500}.roster-legend i{display:inline-block;width:13px;height:13px;border-radius:50%}.roster-legend-me{border:2px solid var(--staff-accent,#222);background:#fff}.roster-legend-off{background:#dededb;border:1px solid #aaa}.weekly-roster-scroll{overflow-x:auto;overflow-y:visible;padding:1px 1px 12px;overscroll-behavior-x:contain}.weekly-roster-grid{display:grid;grid-template-columns:130px repeat(7,minmax(126px,1fr));min-width:1012px;border:1px solid var(--line,#e4e4e1);border-radius:15px;overflow:visible;background:#fff}.roster-corner,.roster-day-head,.roster-shift-label,.roster-cell{min-width:0;border-right:1px solid var(--line,#ecece8);border-bottom:1px solid var(--line,#ecece8)}.roster-corner{position:sticky;left:0;z-index:8;background:#fafaf8;padding:12px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.roster-day-head{padding:9px 8px;text-align:center;background:#fafaf8;min-height:52px}.roster-day-head strong{display:block;font-size:11px;text-transform:uppercase}.roster-day-head span{display:block;font-size:13px;font-weight:800;margin-top:2px}.roster-day-head small{display:block;margin-top:3px;font-size:8px;font-weight:800;color:var(--staff-accent,#666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roster-day-head.today{background:color-mix(in srgb,var(--staff-accent,#222) 9%,white);box-shadow:inset 0 -2px 0 var(--staff-accent,#222)}.roster-shift-label{position:sticky;left:0;z-index:6;background:#fff;padding:11px 10px;min-height:65px;display:flex;flex-direction:column;justify-content:center}.roster-shift-label strong{font-size:11px;line-height:1.2}.roster-shift-label small{font-size:9px;color:#888;margin-top:3px;line-height:1.25}.roster-cell{min-height:65px;padding:8px 6px;display:flex;align-items:center;justify-content:center;background:#fff}.roster-cell.today{background:color-mix(in srgb,var(--staff-accent,#222) 3%,white)}.roster-avatar-stack{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;max-width:116px}.roster-avatar-button{position:relative;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;overflow:visible}.roster-mini-avatar{display:grid!important;place-items:center;width:30px!important;height:30px!important;border-radius:50%!important;overflow:hidden!important;background:#222;color:#fff;font-size:9px;font-weight:800;border:2px solid #fff;box-shadow:0 0 0 1px #d8d8d4}.roster-mini-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.roster-avatar-button.is-me .roster-mini-avatar{box-shadow:0 0 0 2px var(--staff-accent,#222),0 0 0 4px #fff}.roster-avatar-button.is-off .roster-mini-avatar{filter:grayscale(1);opacity:.62}.roster-avatar-button.is-off.is-me .roster-mini-avatar{opacity:.78}.roster-name-tip{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);z-index:40;display:none;min-width:max-content;max-width:210px;padding:6px 8px;border-radius:8px;background:#161616;color:#fff;font-size:9px;font-weight:700;line-height:1.25;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.18);pointer-events:none}.roster-name-tip:after{content:"";position:absolute;left:50%;top:100%;margin-left:-4px;border:4px solid transparent;border-top-color:#161616}.roster-avatar-button.is-open .roster-name-tip{display:block}.roster-empty{color:#ccc;font-size:11px}.roster-off-label{background:#f6f6f3}.roster-off-cell{background:#f8f8f6}.weekly-roster-grid>:nth-child(8n){border-right:0}.weekly-roster-grid>:nth-last-child(-n+8){border-bottom:0}
@media(hover:hover) and (pointer:fine){.roster-avatar-button:hover .roster-name-tip,.roster-avatar-button:focus-visible .roster-name-tip{display:block}.roster-avatar-button:hover{z-index:30}}
@media(max-width:800px){.weekly-roster-card{padding-left:12px!important;padding-right:12px!important}.staff-schedule-toolbar{margin-left:2px;margin-right:2px}.roster-legend small{flex-basis:100%;margin-left:0}.weekly-roster-grid{grid-template-columns:92px repeat(7,118px);min-width:918px}.roster-corner,.roster-shift-label{width:92px}.roster-shift-label{padding:9px 7px}.roster-cell{min-height:62px}.roster-avatar-button{width:30px;height:30px}.roster-mini-avatar{width:28px!important;height:28px!important}.roster-avatar-stack{gap:3px;max-width:108px}.roster-name-tip{position:fixed;left:50%;bottom:auto;top:18px;transform:translateX(-50%);max-width:calc(100vw - 30px);white-space:normal;text-align:center}.roster-name-tip:after{display:none}}


/* Minimal staff app navigation */
.staff-themed .mobile-shell{
  padding-bottom:calc(78px + env(safe-area-inset-bottom))!important;
}
.staff-themed .staff-app-nav{
  position:fixed!important;
  left:50%!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(640px,100%)!important;
  height:calc(64px + env(safe-area-inset-bottom))!important;
  padding:5px 8px env(safe-area-inset-bottom)!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:start!important;
  overflow:visible!important;
  background:rgba(255,255,255,.96)!important;
  border-top:1px solid rgba(0,0,0,.08)!important;
  box-shadow:0 -4px 18px rgba(0,0,0,.035)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  z-index:100!important;
}
.staff-themed .staff-app-nav .staff-nav-item{
  position:relative;
  min-width:0!important;
  height:58px;
  padding:7px 2px 5px!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:3px;
  color:#898989!important;
  font-size:10px!important;
  line-height:1.05;
  font-weight:600!important;
  border-radius:12px;
  background:transparent!important;
}
.staff-themed .staff-app-nav .staff-nav-icon{
  position:relative;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  margin:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:currentColor;
}
.staff-themed .staff-app-nav .staff-nav-icon svg{
  width:23px;
  height:23px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.staff-themed .staff-app-nav .staff-nav-icon-community svg path:first-child{
  fill:none;
}
.staff-themed .staff-app-nav .staff-nav-label{
  display:block;
  white-space:nowrap;
}
.staff-themed .staff-app-nav .staff-nav-item.active{
  color:var(--staff-accent,#1f6b45)!important;
  font-weight:750!important;
}
.staff-themed .staff-app-nav .staff-nav-item.active::before{
  content:"";
  position:absolute;
  top:2px;
  width:18px;
  height:2px;
  border-radius:99px;
  background:var(--staff-accent,#1f6b45);
}
.staff-themed .staff-app-nav .staff-nav-item:hover,
.staff-themed .staff-app-nav .staff-nav-item:focus-visible{
  color:var(--staff-accent,#1f6b45)!important;
}
.staff-themed .staff-app-nav .staff-nav-unread{
  position:absolute;
  top:-7px;
  right:-10px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e62f2f;
  color:#fff;
  border:2px solid rgba(255,255,255,.96);
  box-sizing:border-box;
  font-size:10px;
  line-height:1;
  font-style:normal;
  font-weight:800;
  letter-spacing:-.02em;
  box-shadow:0 2px 7px rgba(0,0,0,.16);
}
.staff-themed .staff-community-orb{
  all:unset!important;
}
@media(max-width:420px){
  .staff-themed .staff-app-nav{
    padding-inline:4px!important;
  }
  .staff-themed .staff-app-nav .staff-nav-item{
    font-size:9px!important;
  }
  .staff-themed .staff-app-nav .staff-nav-icon{
    width:24px;
    height:24px;
  }
}


/* Staff Home: compact schedule list, not calendar tiles */
.staff-week-list-card{overflow:hidden}
.staff-week-list{display:grid;margin-top:4px}
.staff-week-list-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 0;border-top:1px solid var(--line,#ececec);color:inherit;text-decoration:none}
.staff-week-list-row:first-child{border-top:0}
.staff-week-list-row.today{background:color-mix(in srgb,var(--staff-accent,#d46b31) 6%,transparent);margin-inline:-12px;padding-inline:12px;border-radius:12px;border-top-color:transparent}
.staff-week-list-date{display:flex;flex-direction:column;gap:2px}.staff-week-list-date strong{font-size:14px}.staff-week-list-date span{font-size:12px;color:#777}
.staff-week-list-main{display:flex;flex-direction:column;gap:3px;min-width:0}.staff-week-list-main>strong{font-size:15px}.staff-week-list-main small{font-size:11px;color:#777}
.staff-week-list-off{color:#777}.staff-week-today-pill{font-size:10px;font-weight:800;color:var(--staff-accent,#d46b31);background:color-mix(in srgb,var(--staff-accent,#d46b31) 10%,white);padding:5px 8px;border-radius:999px}
@media(max-width:520px){.staff-week-list-row{grid-template-columns:74px minmax(0,1fr) auto;gap:10px}.staff-week-list-main>strong{font-size:14px}}


/* Staff home: Break is a shortcut, not a separate card */
.staff-themed .shortcut-grid.has-break{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.staff-themed .break-shortcut:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.staff-themed .break-shortcut-live{
  font-variant-numeric:tabular-nums;
}
.staff-themed .my-day-breaks{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.staff-themed .my-day-breaks>.eyebrow{
  margin-bottom:5px;
}
.staff-themed .my-day-break-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px solid var(--line);
}
.staff-themed .my-day-break-row:first-of-type{
  border-top:0;
}
.staff-themed .my-day-break-row strong,
.staff-themed .my-day-break-row small{
  display:block;
}
.staff-themed .my-day-break-row small{
  color:var(--muted);
  margin-top:3px;
  font-size:12px;
}
.staff-themed .my-day-break-row.live strong{
  color:var(--staff-accent,#d46b31);
}
.staff-themed .my-day-break-row .break-live{
  font-variant-numeric:tabular-nums;
}
.staff-themed .my-day-break-correction{
  border:0;
  background:transparent;
  color:var(--staff-accent,#d46b31);
  font-size:12px;
  font-weight:700;
  padding:5px 0 0;
  cursor:pointer;
}
.staff-themed .my-day-break-correction:disabled{
  color:var(--muted);
  cursor:default;
}

@media(max-width:700px){
  .staff-themed .shortcut-grid.has-break{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* Staff Home: restore compact calendar-style My Schedule */
.staff-themed .staff-week-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:12px;
}
.staff-themed .staff-week-day{
  position:relative;
  min-width:0;
  min-height:104px;
  padding:11px 7px 9px;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:3px;
  border:1px solid var(--line,#e8e8e8);
  border-radius:14px;
  background:#fff;
  color:var(--text,#181818);
  text-align:center;
}
.staff-themed .staff-week-day.today{
  border-color:var(--staff-accent,#d46b31);
  background:color-mix(in srgb,var(--staff-accent,#d46b31) 7%,white);
}
.staff-themed .staff-week-day.off-day{
  background:#f7f7f7;
}
.staff-themed .staff-week-dow{
  color:var(--muted,#777);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.staff-themed .staff-week-date{
  font-size:22px;
  line-height:1;
}
.staff-themed .staff-week-shift{
  display:block;
  width:100%;
  margin-top:4px;
  font-size:9px;
  line-height:1.25;
  font-weight:750;
  color:var(--staff-accent,#d46b31);
  overflow-wrap:anywhere;
}
.staff-themed .staff-week-shift small{
  font-size:8px;
}
.staff-themed .staff-week-off{
  margin-top:auto;
  font-size:10px;
  font-weight:800;
  color:var(--muted,#777);
}
.staff-themed .staff-week-empty{
  margin-top:auto;
  color:#aaa;
}
.staff-themed .staff-week-special{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--staff-accent,#d46b31);
  font-size:8px;
}
.staff-themed .staff-week-today-dot{
  position:absolute;
  top:7px;
  right:7px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--staff-accent,#d46b31);
}
@media(max-width:760px){
  .staff-themed .staff-week-grid{
    grid-template-columns:repeat(7,minmax(68px,1fr))!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain;
    padding-bottom:5px;
    scrollbar-width:none;
  }
  .staff-themed .staff-week-grid::-webkit-scrollbar{display:none}
  .staff-themed .staff-week-day{min-height:98px}
}

/* Shared Admin/HR sidebar guard.
   Keeps flyout groups compact and prevents staff-page CSS updates from regressing backend nav. */
body.backend .sidebar{
  display:flex!important;
  flex-direction:column!important;
  overflow:visible!important;
}
body.backend .sidebar-nav{
  display:flex!important;
  flex-direction:column!important;
  overflow:visible!important;
}
body.backend .sidebar-nav-spacer{
  display:none!important;
  flex:0 0 0!important;
  min-height:0!important;
}
body.backend .sidebar-group{
  position:relative!important;
  margin:3px 12px!important;
}
body.backend .sidebar-group-trigger{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  border:0!important;
  background:transparent!important;
  color:#aaa!important;
  padding:12px!important;
  border-radius:10px!important;
  cursor:pointer!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.12em!important;
  text-align:left!important;
}
body.backend .sidebar-group.flyout-open>.sidebar-group-trigger{
  background:#292929!important;
  color:#fff!important;
}
body.backend .sidebar-group-links{
  display:none!important;
  position:absolute!important;
  left:calc(100% + 10px)!important;
  top:0!important;
  z-index:1100!important;
  width:220px!important;
  padding:9px!important;
  background:#1b1b1b!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:14px!important;
  box-shadow:0 14px 36px rgba(0,0,0,.28)!important;
}
body.backend .sidebar-group.flyout-open>.sidebar-group-links{
  display:grid!important;
  gap:3px!important;
}
body.backend .sidebar-group-links a{
  padding:11px 13px!important;
  border-radius:9px!important;
  white-space:nowrap!important;
}
@media(min-width:901px){
  body.backend{
    padding-left:230px!important;
  }
  body.backend>.sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:230px!important;
    height:100vh!important;
    transform:none!important;
  }
}
@media(max-width:900px){
  body.backend{
    padding-left:0!important;
  }
  body.backend .sidebar-group-links{
    position:fixed!important;
    left:min(82vw,300px)!important;
    top:0!important;
    bottom:0!important;
    width:min(72vw,270px)!important;
    height:100dvh!important;
    padding:78px 12px 18px!important;
    overflow-y:auto!important;
  }
}


/* Backend shell repair — keep Admin/HR content full-size with the shared sidebar */
@media(min-width:901px){
  body.backend{
    display:block!important;
    grid-template-columns:none!important;
    padding:0 0 0 230px!important;
    min-width:0!important;
    width:100%!important;
  }
  body.backend > .sidebar{
    display:flex!important;
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:230px!important;
    min-width:230px!important;
    height:100vh!important;
    transform:none!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:900!important;
  }
  body.backend > .backend-main{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:28px!important;
  }
  body.backend .backend-top{
    width:100%!important;
  }
  body.backend .metrics{
    width:100%!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.backend .panel{
    width:100%!important;
    max-width:none;
  }
  body.backend .store-grid,
  body.backend .dashboard-store-grid{
    width:100%!important;
  }
}

/* Preserve the off-canvas navigation on phones/tablets. */
@media(max-width:900px){
  body.backend{
    display:block!important;
    padding-left:0!important;
    width:100%!important;
  }
  body.backend > .backend-main{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:72px 18px 24px!important;
  }
  body.backend > .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    height:100dvh!important;
    z-index:1002!important;
  }
  body.backend .metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* Compact employee directory — no horizontal scrolling */
.employee-store-section{margin-top:24px}
.employee-store-head{margin-bottom:10px}
.employee-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.employee-compact-card{min-width:0;border:1px solid var(--line,#e5e5df);border-radius:14px;background:#fff;padding:14px}
.employee-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start}
.employee-card-head .employee-avatar{width:38px;height:38px}
.employee-card-identity{min-width:0}
.employee-card-identity>strong{display:block;font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-card-identity>small{display:block;margin-top:3px;color:var(--muted,#777);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-card-pills{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.employee-card-pills .pill{font-size:9px;padding:4px 7px}
.employee-recognition-link{font-size:10px;color:var(--muted,#777);white-space:nowrap}

.employee-compact-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 100px auto;
  gap:8px;
  align-items:end;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line,#ecece8)
}
.employee-compact-form label{min-width:0;margin:0}
.employee-compact-form label>span{
  display:block;
  margin-bottom:4px;
  color:var(--muted,#777);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em
}
.employee-compact-form select,
.employee-compact-form input{
  width:100%;
  min-width:0;
  height:38px;
  padding:7px 9px;
  font-size:12px;
  border-radius:9px
}
.employee-card-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}
.employee-card-actions .btn{height:38px;padding:0 11px;font-size:11px;display:inline-flex;align-items:center}
.employee-admin-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line,#ecece8)}
.employee-admin-summary>div{min-width:0;background:#fafaf8;border-radius:9px;padding:8px 10px}
.employee-admin-summary span{display:block;color:var(--muted,#777);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.employee-admin-summary strong{display:block;margin-top:2px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-empty{grid-column:1/-1}

/* Save/error feedback floats instead of changing card widths or positions. */
.employee-save-toast{
  position:fixed!important;
  top:18px;
  right:18px;
  z-index:1400!important;
  width:auto!important;
  max-width:min(360px,calc(100vw - 36px));
  margin:0!important;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
  animation:employeeToastIn .18s ease-out
}
@keyframes employeeToastIn{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}

@media(max-width:1280px){
  .employee-compact-grid{grid-template-columns:1fr}
  .employee-compact-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 110px auto}
}
@media(max-width:760px){
  .employee-compact-card{padding:12px}
  .employee-card-head{grid-template-columns:auto minmax(0,1fr)}
  .employee-recognition-link{grid-column:2;margin-top:-3px}
  .employee-compact-form{grid-template-columns:1fr 1fr}
  .employee-credit-field{grid-column:1}
  .employee-card-actions{grid-column:2;justify-content:flex-end}
}
@media(max-width:520px){
  .employee-compact-form{grid-template-columns:1fr}
  .employee-credit-field,.employee-card-actions{grid-column:1}
  .employee-card-actions{justify-content:stretch}
  .employee-card-actions .btn{flex:1;justify-content:center}
}


/* Employee save feedback: one unobtrusive floating toast only.
   Never allow success/error messages to occupy space inside employee cards. */
.employee-compact-card .alert,
.employee-compact-form .alert,
.employee-card-actions + .alert,
.employee-card-actions .alert{
  display:none!important;
}

.employee-save-toast{
  position:fixed!important;
  top:18px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  z-index:1600!important;
  width:auto!important;
  max-width:min(360px,calc(100vw - 32px))!important;
  margin:0!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  box-shadow:0 8px 24px rgba(0,0,0,.12)!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:nowrap;
  transition:opacity .2s ease,transform .2s ease!important;
}
.employee-save-toast.employee-save-toast-hide{
  opacity:0!important;
  transform:translate(-50%,-8px)!important;
  pointer-events:none!important;
}
@media(max-width:520px){
  .employee-save-toast{
    top:12px!important;
    max-width:calc(100vw - 24px)!important;
    white-space:normal!important;
    text-align:center!important;
  }
}


/* Per-employee save status: top-right of the card, never in the action row. */
.employee-compact-card{position:relative}
.employee-card-topright{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  min-width:132px;
}
.employee-card-save-status{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:24px;
  padding:5px 9px;
  border:1px solid #cfe5d3;
  border-radius:999px;
  background:#edf7ef;
  color:#2f6b3b;
  font-size:10px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:opacity .18s ease,transform .18s ease;
}
.employee-card-save-status.is-hiding{
  opacity:0;
  transform:translateY(-3px);
}
.employee-card-topright .employee-recognition-link{margin:0}

/* No status message is allowed to consume form-row space. */
.employee-card-actions + .alert,
.employee-compact-form > .alert,
.employee-compact-card > .employee-save-toast{
  display:none!important;
}

@media(max-width:760px){
  .employee-card-topright{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    min-width:0;
  }
  .employee-card-save-status{
    font-size:9px;
    padding:5px 7px;
  }
}


/* Employee save state: use unused card-header space; never join the form row. */
.employee-compact-card{position:relative}
.employee-card-save-status{
  position:absolute!important;
  top:16px!important;
  right:112px!important;
  z-index:3!important;
  display:inline-flex!important;
  align-items:center;
  gap:4px;
  padding:5px 9px!important;
  min-height:24px;
  border:1px solid #cfe5d3!important;
  border-radius:999px!important;
  background:#edf7ef!important;
  color:#2f6b3b!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  pointer-events:none;
  box-shadow:none!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.employee-card-save-status.is-hiding{
  opacity:0!important;
  transform:translateY(-3px)!important;
}
.employee-card-topright{min-width:0!important}

/* Archived employees are hidden from active store groups and kept in one compact section. */
.employee-archive{
  margin-top:26px;
  border:1px solid var(--line,#e5e5df);
  border-radius:14px;
  background:#fafaf8;
  overflow:hidden;
}
.employee-archive>summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  user-select:none;
}
.employee-archive>summary::-webkit-details-marker{display:none}
.employee-archive>summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.employee-archive>summary strong{font-size:14px}
.employee-archive>summary small{color:var(--muted,#777);font-size:10px}
.employee-archive>summary::after{
  content:"›";
  margin-left:auto;
  font-size:20px;
  color:#777;
  transition:transform .15s ease;
}
.employee-archive[open]>summary::after{transform:rotate(90deg)}
.employee-archive-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:0 12px 12px;
}
.employee-archive-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-width:0;
  padding:12px;
  border:1px solid var(--line,#e5e5df);
  border-radius:12px;
  background:#fff;
}
.employee-archive-card .employee-avatar{width:36px;height:36px}
.employee-archive-info{min-width:0}
.employee-archive-info>strong,
.employee-archive-info>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-archive-info>strong{font-size:13px}
.employee-archive-info>small{margin-top:2px;color:var(--muted,#777);font-size:10px}
.employee-archive-status{background:#f2eeee!important}
.employee-archive-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  white-space:nowrap;
}
.employee-archive-actions .btn{font-size:10px;padding:7px 9px}

@media(max-width:1280px){
  .employee-archive-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .employee-card-save-status{
    top:54px!important;
    right:12px!important;
    font-size:9px!important;
    padding:4px 7px!important;
  }
  .employee-archive-card{grid-template-columns:auto minmax(0,1fr)}
  .employee-archive-actions{
    grid-column:2;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
  }
}


/* FINAL employee save feedback placement.
   The status is a direct child overlay of the card, so it cannot affect any grid/flex row. */
.employee-compact-card{
  position:relative!important;
}
.employee-card-save-status{
  display:none!important;
}
.employee-card-save-overlay{
  position:absolute!important;
  top:46px!important;
  right:16px!important;
  z-index:5!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  width:auto!important;
  max-width:180px!important;
  margin:0!important;
  padding:5px 9px!important;
  border:1px solid #cfe5d3!important;
  border-radius:999px!important;
  background:#edf7ef!important;
  color:#2f6b3b!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  box-shadow:none!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.employee-card-save-overlay.is-hiding{
  opacity:0!important;
  transform:translateY(-3px)!important;
}
.employee-compact-form{
  position:relative!important;
  z-index:1!important;
}
.employee-card-actions,
.employee-card-actions .btn{
  position:relative!important;
}

/* Never render any legacy save notice inside the controls row. */
.employee-compact-form .alert,
.employee-card-actions + .alert,
.employee-card-actions .alert,
.employee-compact-card .employee-save-toast{
  display:none!important;
}

@media(max-width:760px){
  .employee-card-save-overlay{
    top:49px!important;
    right:12px!important;
    max-width:150px!important;
    font-size:9px!important;
    padding:4px 7px!important;
  }
}


/* Employees v3: saved message is a true overlay in unused card-header space. */
.employee-compact-card{
  position:relative!important;
  overflow:visible!important;
}
.employee-card-save-overlay{
  position:absolute!important;
  top:58px!important;
  right:16px!important;
  z-index:20!important;
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  max-width:170px!important;
  margin:0!important;
  padding:5px 9px!important;
  border:1px solid #cfe5d3!important;
  border-radius:999px!important;
  background:#edf7ef!important;
  color:#2f6b3b!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  pointer-events:none!important;
  box-shadow:none!important;
}
.employee-card-save-overlay.is-hiding{
  opacity:0!important;
  transform:translateY(-3px)!important;
}
.employee-compact-form{
  margin-top:18px!important;
}

/* Never let any legacy success markup enter the editable row. */
.employee-compact-form .alert,
.employee-card-actions .alert,
.employee-card-actions + .alert,
.employee-card-save-status,
.employee-save-toast{
  display:none!important;
}

@media(max-width:760px){
  .employee-card-save-overlay{
    top:62px!important;
    right:12px!important;
    max-width:145px!important;
    font-size:9px!important;
    padding:4px 7px!important;
  }
  .employee-compact-form{
    margin-top:22px!important;
  }
}

/* Shift History v2 — compact attendance cards + correction bottom sheet */
.shift-history-list{display:grid;gap:14px;margin-top:14px}.history-intro{display:flex;justify-content:space-between;align-items:center;gap:18px}.history-intro h3{margin:0 0 6px}.history-intro p{margin:0}.shift-history-card{background:#fff;border:1px solid #e6e3df;border-radius:22px;padding:20px;box-shadow:0 1px 0 rgba(0,0,0,.02)}.shift-history-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.shift-history-top h3{font-size:24px;line-height:1.05;margin:2px 0 10px}.shift-history-top p{margin:0;font-weight:650}.shift-date-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#777;font-weight:800}.shift-statuses{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.attendance-badge,.correction-state{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:10px;line-height:1;font-weight:850;text-transform:uppercase;letter-spacing:.04em;background:#f2f2f2;color:#555}.attendance-badge.ontime{background:#edf7ef;color:#2e6a3b}.attendance-badge.late,.attendance-badge.undertime,.attendance-badge.problem{background:#fff0ec;color:#a34b31}.attendance-badge.overtime{background:#eef3ff;color:#365c9d}.shift-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.time-box{border:1px solid #e9e6e2;border-radius:15px;padding:13px 14px;min-width:0}.time-box>span{display:block;color:#777;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;margin-bottom:6px}.time-box strong{display:block;font-size:15px;line-height:1.25}.time-box strong i{font-style:normal;color:#aaa;font-weight:500}.time-box small{display:block;margin-top:4px;color:#777}.time-box.actual{background:#faf8f6;border-color:#ead9cf}.shift-history-footer{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #eee}.record-reference{font-size:11px;color:#888;font-weight:750;margin-right:auto}.attendance-correction-btn{white-space:nowrap}.attendance-correction-btn:disabled{opacity:.62;cursor:not-allowed}.correction-state.pending_hr,.correction-state.pending_admin{background:#fff4df;color:#8a6117}.correction-state.approved{background:#edf7ef;color:#2e6a3b}.correction-state.declined{background:#f4f4f4;color:#777}.attendance-modified-stamp{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f4f7f4;display:grid;gap:2px;font-size:11px}.attendance-modal[hidden]{display:none!important}.attendance-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center}.attendance-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.38)}.attendance-modal-sheet{position:relative;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:22px;box-shadow:0 -16px 50px rgba(0,0,0,.15)}.attendance-modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.attendance-modal-head h3{margin:2px 0 0;font-size:24px}.modal-x{border:0;background:#f2f2f2;border-radius:50%;width:36px;height:36px;font-size:24px;line-height:1;cursor:pointer}.attendance-modal-summary{display:grid;gap:2px;background:#faf8f6;border:1px solid #eee3dc;border-radius:14px;padding:12px 14px;margin-bottom:14px}.attendance-modal-summary span{font-size:12px;color:#777}.attendance-modal-sheet form{display:grid;gap:13px}.attendance-modal-sheet label{display:grid;gap:6px;font-weight:750}.correction-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.attendance-audit-note{margin:0;color:#777;font-size:11px;line-height:1.45}.attendance-modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.modal-open{overflow:hidden}
@media(max-width:640px){.history-intro{display:block}.shift-history-card{padding:16px;border-radius:18px}.shift-history-top{display:grid;gap:10px}.shift-statuses{justify-content:flex-start}.shift-time-grid{grid-template-columns:1fr}.shift-history-footer{flex-wrap:wrap}.record-reference{width:100%;margin:0}.attendance-correction-btn{flex:1}.correction-time-grid{grid-template-columns:1fr}.attendance-modal-sheet{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.attendance-modal-actions .btn{flex:1}}

/* RecafHR Staff Home · My RecafHR activity feed · 2026-09-17 v3 */
.recafhr-feed-card{padding:20px 18px 8px;overflow:hidden}.recafhr-feed-head{margin:0 2px 6px}.recafhr-feed-head h3{font-size:20px;letter-spacing:-.025em}.recafhr-feed-head>a{color:var(--staff-accent,#1f6b45)!important;font-weight:700}.recafhr-feed{display:grid}.recafhr-feed-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px 2px;border-top:1px solid var(--line);min-width:0}.recafhr-feed-item:first-child{border-top:0}.recafhr-feed-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--staff-accent,#1f6b45) 10%,white);color:var(--staff-accent,#1f6b45);font-weight:850;font-size:17px}.recafhr-feed-icon.announcement{font-family:Georgia,serif}.recafhr-feed-copy{display:block;min-width:0}.recafhr-feed-copy strong,.recafhr-feed-copy small{display:block}.recafhr-feed-copy strong{font-size:13px;line-height:1.25}.recafhr-feed-copy small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recafhr-feed-item time{font-size:10px;color:var(--muted);white-space:nowrap;align-self:start;margin-top:3px}.recafhr-feed-item.is-priority .recafhr-feed-copy strong:after{content:"";display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:var(--staff-accent,#1f6b45);vertical-align:2px}.recafhr-feed-empty{padding:22px 2px 25px;color:var(--muted)}.recafhr-feed-empty strong,.recafhr-feed-empty small{display:block}.recafhr-feed-empty strong{color:var(--text);font-size:14px}.recafhr-feed-empty small{font-size:11px;margin-top:4px;line-height:1.45}@media(max-width:480px){.recafhr-feed-card{padding:17px 15px 6px}.recafhr-feed-item{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:12px 0}.recafhr-feed-icon{width:32px;height:32px;border-radius:10px;font-size:15px}.recafhr-feed-copy strong{font-size:12px}.recafhr-feed-copy small{font-size:10px;max-width:230px}}
/* My RecafHR expanded activity — v4 */
.recafhr-activity-card{padding:26px 28px;margin-bottom:110px}.recafhr-activity-head{align-items:flex-start;gap:18px}.recafhr-activity-head h3{margin:3px 0 0}.recafhr-activity-filters{display:flex;gap:8px;overflow-x:auto;padding:16px 0 14px;border-bottom:1px solid var(--line,#e5e2df);scrollbar-width:none}.recafhr-activity-filters::-webkit-scrollbar{display:none}.recafhr-activity-filters button{border:1px solid var(--line,#dedbd7);background:#fff;border-radius:999px;padding:9px 14px;white-space:nowrap;font:inherit;font-size:13px;font-weight:700;color:#777}.recafhr-activity-filters button.active{border-color:var(--brand,#d46b31);color:var(--brand,#d46b31);background:color-mix(in srgb,var(--brand,#d46b31) 7%,white)}.recafhr-activity-list{display:flex;flex-direction:column}.recafhr-activity-item{display:grid;grid-template-columns:42px minmax(0,1fr) 10px;gap:14px;align-items:start;padding:18px 2px;border-bottom:1px solid var(--line,#ece9e6);text-decoration:none;color:inherit}.recafhr-activity-item:last-child{border-bottom:0}.recafhr-activity-item.is-priority .recafhr-activity-copy strong{font-weight:800}.recafhr-activity-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.recafhr-activity-copy strong{font-size:16px;line-height:1.25}.recafhr-activity-copy small{font-size:14px;line-height:1.4;color:#747474}.recafhr-activity-meta{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#9a9692}.recafhr-unread-dot{width:8px;height:8px;border-radius:50%;background:var(--brand,#d46b31);margin-top:8px}.recafhr-activity-item[hidden]{display:none!important}@media(max-width:640px){.recafhr-activity-card{padding:20px 18px}.recafhr-activity-head{display:flex;align-items:flex-start}.recafhr-activity-head form{margin-left:auto}.recafhr-activity-head .btn{font-size:12px;padding:8px 10px}.recafhr-activity-item{grid-template-columns:38px minmax(0,1fr) 8px;gap:11px;padding:16px 0}.recafhr-activity-copy strong{font-size:15px}.recafhr-activity-copy small{font-size:13px}}

/* RecafHR Staff floating liquid-glass navigation — v6 2026-09-17 */
.staff-themed .mobile-shell{
  padding-bottom:calc(98px + env(safe-area-inset-bottom))!important;
}
.staff-themed .staff-app-nav{
  left:50%!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  width:min(606px,calc(100% - 24px))!important;
  height:66px!important;
  padding:5px 8px!important;
  border:1px solid rgba(255,255,255,.68)!important;
  border-top:1px solid rgba(255,255,255,.88)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.48))!important;
  box-shadow:0 10px 34px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(255,255,255,.28)!important;
  backdrop-filter:blur(28px) saturate(180%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(180%)!important;
  overflow:hidden!important;
  isolation:isolate;
}
.staff-themed .staff-app-nav::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(110deg,rgba(255,255,255,.34),rgba(255,255,255,.06) 42%,rgba(255,255,255,.22));
}
.staff-themed .staff-app-nav .staff-nav-item{
  height:56px;
  padding:6px 2px 4px!important;
  border-radius:18px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.staff-themed .staff-app-nav .staff-nav-item.active{
  background:rgba(255,255,255,.42)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.staff-themed .staff-app-nav .staff-nav-item.active::before{display:none!important}
.staff-themed .staff-app-nav .staff-nav-item:active{transform:scale(.96)}
.staff-themed .staff-app-nav .staff-nav-unread{border-color:rgba(255,255,255,.9)}
@media(max-width:420px){
  .staff-themed .staff-app-nav{width:calc(100% - 18px)!important;bottom:calc(9px + env(safe-area-inset-bottom))!important;border-radius:22px!important}
}

/* Staff Community: full-width workspace + horizontal channel header v7 */
body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){
  width:min(1180px,calc(100% - 32px));
  max-width:none;
  padding-left:0;
  padding-right:0;
}
body.staff-themed .community-topnav-workspace.rechat-workspace{
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:none;
  margin:0 0 110px;
  padding:0;
  overflow:hidden;
  border:1px solid #deded9;
  border-radius:18px;
  background:#fff;
}
body.staff-themed .community-topnav-workspace .rechat-channel-rail{
  order:0;
  width:100%;
  min-height:0;
  padding:10px 14px;
  border:0;
  border-bottom:1px solid #e7e7e2;
  background:rgba(250,250,248,.92);
  display:flex;
  align-items:center;
  gap:7px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
body.staff-themed .community-topnav-workspace .rechat-channel-rail::-webkit-scrollbar{display:none}
body.staff-themed .community-topnav-workspace .rechat-rail-head{
  flex:0 0 auto;
  padding:0 6px 0 0;
  gap:6px;
}
body.staff-themed .community-topnav-workspace .rechat-rail-head strong,
body.staff-themed .community-topnav-workspace .rechat-rail-label{display:none}
body.staff-themed .community-topnav-workspace .rechat-rail-actions{display:flex;gap:5px}
body.staff-themed .community-topnav-workspace #rechatChannelList{display:flex;align-items:center;gap:7px}
body.staff-themed .community-topnav-workspace .rechat-channel-link{
  width:auto;
  flex:0 0 auto;
  min-height:38px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:999px;
  white-space:nowrap;
}
body.staff-themed .community-topnav-workspace .rechat-channel-link.active{
  background:#fff;
  border-color:#d8d8d3;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
body.staff-themed .community-topnav-workspace .rechat-channel-main{
  order:1;
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
}
body.staff-themed .community-topnav-workspace .timeline-channel-head{
  border:0;
  border-bottom:1px solid #e7e7e2;
  border-radius:0;
  padding:14px 20px;
}
body.staff-themed .community-topnav-workspace .timeline-feed.slack-feed{
  width:100%;
  max-width:none;
  padding:12px 18px 18px;
}
body.staff-themed .community-topnav-workspace .timeline-pinned.slack-pinned{margin:12px 18px 0}
body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{
  margin:10px 18px 18px!important;
}
@media(max-width:720px){
  body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){width:100%;padding-left:12px;padding-right:12px}
  body.staff-themed .community-topnav-workspace.rechat-workspace{border-radius:15px}
  body.staff-themed .community-topnav-workspace .rechat-channel-rail{padding:8px 10px}
  body.staff-themed .community-topnav-workspace .timeline-channel-head{padding:12px 13px}
  body.staff-themed .community-topnav-workspace .timeline-feed.slack-feed{padding:8px 10px 14px}
  body.staff-themed .community-topnav-workspace .timeline-pinned.slack-pinned{margin:9px 10px 0}
  body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{margin:8px 10px 12px!important}
}


/* Staff Community: viewport-height chat workspace + always-visible composer v8 */
body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){
  height:100dvh;
  min-height:100svh;
  box-sizing:border-box;
  overflow:hidden;
  padding-bottom:calc(90px + env(safe-area-inset-bottom))!important;
}
body.staff-themed .community-topnav-workspace.rechat-workspace{
  height:calc(100dvh - 150px - env(safe-area-inset-bottom));
  min-height:420px;
  margin-bottom:0;
  overflow:hidden;
}
body.staff-themed .community-topnav-workspace .rechat-channel-main{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
body.staff-themed .community-topnav-workspace .timeline-channel-head,
body.staff-themed .community-topnav-workspace .timeline-pinned.slack-pinned,
body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{
  flex:0 0 auto;
}
body.staff-themed .community-topnav-workspace .timeline-feed.slack-feed{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-bottom:14px;
}
body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{
  position:relative;
  z-index:4;
  background:#fff;
  box-shadow:0 -10px 22px rgba(0,0,0,.035);
}
@media(max-width:720px){
  body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){
    height:100dvh;
    min-height:100svh;
    padding-top:10px;
    padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  }
  body.staff-themed .community-topnav-workspace.rechat-workspace{
    height:calc(100dvh - 132px - env(safe-area-inset-bottom));
    min-height:360px;
  }
}
@supports not (height:100dvh){
  body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){height:100vh}
  body.staff-themed .community-topnav-workspace.rechat-workspace{height:calc(100vh - 150px - env(safe-area-inset-bottom))}
  @media(max-width:720px){body.staff-themed .community-topnav-workspace.rechat-workspace{height:calc(100vh - 132px - env(safe-area-inset-bottom))}}
}

/* Staff Community: reserve clear space between composer and floating glass nav — v9 */
body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){
  --staff-floating-nav-space:calc(92px + env(safe-area-inset-bottom));
  padding-bottom:var(--staff-floating-nav-space)!important;
}
body.staff-themed .community-topnav-workspace.rechat-workspace{
  height:calc(100dvh - 150px - var(--staff-floating-nav-space));
  min-height:320px;
}
body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{
  margin-bottom:14px!important;
  flex-shrink:0;
}
@media(max-width:720px){
  body.staff-themed .mobile-shell.subpage:has(.community-topnav-workspace){
    --staff-floating-nav-space:calc(96px + env(safe-area-inset-bottom));
    padding-bottom:var(--staff-floating-nav-space)!important;
  }
  body.staff-themed .community-topnav-workspace.rechat-workspace{
    height:calc(100dvh - 132px - var(--staff-floating-nav-space));
    min-height:300px;
  }
  body.staff-themed .community-topnav-workspace .timeline-composer-card.slack-composer{
    margin:8px 10px 16px!important;
  }
}
@supports not (height:100dvh){
  body.staff-themed .community-topnav-workspace.rechat-workspace{
    height:calc(100vh - 150px - var(--staff-floating-nav-space));
  }
  @media(max-width:720px){
    body.staff-themed .community-topnav-workspace.rechat-workspace{
      height:calc(100vh - 132px - var(--staff-floating-nav-space));
    }
  }
}

/* v10 — Staff Community overlay + mobile channel bar */
.staff-app-nav .staff-nav-community{appearance:none;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;padding:0}
.staff-nav-community.has-live-unread .staff-nav-icon:after{content:none!important}
.staff-community-overlay[hidden],.staff-community-preview[hidden]{display:none!important}
.staff-community-overlay{position:fixed;inset:0;z-index:950;background:rgba(248,248,246,.72);backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25);padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));}
.staff-community-panel{height:100%;max-width:760px;margin:0 auto;background:rgba(255,255,255,.94);border:1px solid rgba(0,0,0,.09);border-radius:28px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 60px rgba(0,0,0,.14)}
.staff-community-overlay-head{height:66px;flex:0 0 66px;padding:10px 16px 8px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.76);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.staff-community-overlay-head>div{display:flex;flex-direction:column;line-height:1.05}.staff-community-overlay-head .eyebrow{font-size:11px}.staff-community-overlay-head strong{font-size:24px}
.staff-community-minimize{width:46px;height:46px;border-radius:50%;border:1px solid rgba(0,0,0,.1);background:rgba(255,255,255,.65);font-size:26px;line-height:1;cursor:pointer}
.staff-community-frame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#fff}
html.staff-community-open,html.staff-community-open body{overflow:hidden!important}
.staff-community-preview{position:fixed;z-index:940;left:14px;right:14px;top:max(14px,calc(env(safe-area-inset-top) + 8px));max-width:520px;margin:auto;text-align:left;border:1px solid rgba(255,255,255,.72);border-radius:18px;padding:11px 15px;background:rgba(250,250,248,.86);box-shadow:0 10px 32px rgba(0,0,0,.14);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);color:#171717}
.staff-community-preview-meta{display:block;font-size:11px;font-weight:800;color:var(--store-accent,#d46b31);text-transform:uppercase;letter-spacing:.08em}.staff-community-preview strong{display:block;font-size:14px;margin:2px 0}.staff-community-preview>span:last-child{display:block;font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-community-embed{margin:0!important;padding:0!important;overflow:hidden!important;background:#fff}.staff-community-embed-main{height:100dvh;overflow:hidden}.staff-community-embed .timeline-shell{margin:0!important;border:0!important;border-radius:0!important;height:100dvh!important;max-height:100dvh!important}
@media(max-width:700px){
 .staff-community-overlay{padding:max(6px,env(safe-area-inset-top)) 0 0}.staff-community-panel{max-width:none;border-radius:24px 24px 0 0;border-left:0;border-right:0;border-bottom:0}.staff-community-overlay-head{height:58px;flex-basis:58px}.staff-community-overlay-head strong{font-size:21px}
 .staff-community-embed .rechat-channel-rail{min-height:56px!important;height:56px!important;padding:5px 10px!important;display:flex!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}.staff-community-embed .rechat-channel-rail::-webkit-scrollbar{display:none}
 .staff-community-embed .rechat-rail-head{display:none!important}.staff-community-embed .rechat-rail-label{display:none!important}.staff-community-embed .rechat-channel-link{flex:0 0 auto!important;min-height:44px!important;height:44px!important;padding:0 16px!important;border-radius:22px!important;display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;font-size:16px!important}.staff-community-embed .rechat-channel-link span{margin:0!important}.staff-community-embed .rechat-channel-link b{font-size:16px!important}
}

/* v11 — inset floating glass Community panel + aligned preview */
.staff-community-overlay{
  background:rgba(24,24,22,.16)!important;
  backdrop-filter:blur(7px) saturate(1.08)!important;
  -webkit-backdrop-filter:blur(7px) saturate(1.08)!important;
  padding:max(18px,calc(env(safe-area-inset-top) + 12px)) 16px calc(102px + env(safe-area-inset-bottom))!important;
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.staff-community-panel{
  width:min(820px,100%)!important;
  height:100%!important;
  margin:0 auto!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:30px!important;
  background:rgba(248,248,246,.84)!important;
  box-shadow:0 20px 60px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.82)!important;
  backdrop-filter:blur(28px) saturate(1.28)!important;
  -webkit-backdrop-filter:blur(28px) saturate(1.28)!important;
  transform-origin:50% 100%;
  animation:staffCommunityGlassIn .2s cubic-bezier(.2,.75,.25,1);
}
@keyframes staffCommunityGlassIn{from{opacity:0;transform:translateY(18px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
.staff-community-overlay-head{
  background:rgba(255,255,255,.52)!important;
  border-bottom-color:rgba(0,0,0,.075)!important;
}
.staff-community-frame{background:rgba(255,255,255,.56)!important}
.staff-community-preview{
  left:16px!important;right:16px!important;
  top:max(16px,calc(env(safe-area-inset-top) + 12px))!important;
  width:min(520px,calc(100% - 32px));
  max-width:520px!important;
  margin:0 auto!important;
  box-sizing:border-box;
  background:rgba(248,248,246,.78)!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:20px!important;
  box-shadow:0 12px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.8)!important;
  backdrop-filter:blur(26px) saturate(1.3)!important;
  -webkit-backdrop-filter:blur(26px) saturate(1.3)!important;
}
@media(max-width:700px){
  .staff-community-overlay{
    padding:max(14px,calc(env(safe-area-inset-top) + 8px)) 12px calc(100px + env(safe-area-inset-bottom))!important;
  }
  .staff-community-panel{
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    border:1px solid rgba(255,255,255,.72)!important;
    border-radius:26px!important;
    overflow:hidden!important;
  }
  .staff-community-overlay-head{height:58px!important;flex-basis:58px!important;padding-left:17px!important;padding-right:10px!important}
  .staff-community-preview{left:12px!important;right:12px!important;width:calc(100% - 24px)!important;top:max(14px,calc(env(safe-area-inset-top) + 8px))!important}
}
@media(prefers-reduced-motion:reduce){.staff-community-panel{animation:none!important}}

/* v12 — tall Community panel, compact minimize, footer-anchored message bubble */
.staff-community-overlay{
  padding:max(8px,calc(env(safe-area-inset-top) + 4px)) 12px calc(96px + env(safe-area-inset-bottom))!important;
}
.staff-community-panel{
  height:100%!important;
  max-height:none!important;
}
.staff-community-minimize{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  border-radius:16px!important;
  font-size:19px!important;
  line-height:28px!important;
  padding:0!important;
}
.staff-community-preview{
  top:auto!important;
  bottom:calc(96px + env(safe-area-inset-bottom))!important;
  left:50%!important;
  right:auto!important;
  width:min(320px,calc(100% - 24px))!important;
  max-width:320px!important;
  margin:0!important;
  transform:translateX(-50%)!important;
  border-radius:18px!important;
  overflow:visible!important;
}
.staff-community-preview::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-9px;
  width:18px;
  height:18px;
  transform:translateX(-50%) rotate(45deg);
  background:rgba(248,248,246,.78);
  border-right:1px solid rgba(255,255,255,.78);
  border-bottom:1px solid rgba(255,255,255,.78);
  backdrop-filter:blur(26px) saturate(1.3);
  -webkit-backdrop-filter:blur(26px) saturate(1.3);
}
.staff-community-preview > *{position:relative;z-index:1}
@media(max-width:700px){
  .staff-community-overlay{
    padding:max(6px,calc(env(safe-area-inset-top) + 2px)) 10px calc(94px + env(safe-area-inset-bottom))!important;
  }
  .staff-community-panel{height:100%!important;border-radius:24px!important}
  .staff-community-overlay-head{height:52px!important;flex-basis:52px!important;padding-top:6px!important;padding-bottom:6px!important}
  .staff-community-overlay-head strong{font-size:20px!important}
  .staff-community-preview{
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
    left:50%!important;right:auto!important;
    width:min(300px,calc(100% - 24px))!important;
  }
}

/* v13 — Community conversation bubble anchored to visible floating footer */
.staff-themed .staff-app-nav{
  z-index:1000!important;
}
.staff-community-overlay{
  z-index:900!important;
  /* Leave the floating footer fully visible and tappable. */
  bottom:0!important;
  padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;
  pointer-events:auto;
}
.staff-community-panel{
  position:relative;
  overflow:visible!important;
  max-height:100%!important;
}
.staff-community-panel::after{
  content:"";
  position:absolute;
  z-index:3;
  left:50%;
  bottom:-11px;
  width:22px;
  height:22px;
  transform:translateX(-50%) rotate(45deg);
  border-right:1px solid rgba(255,255,255,.72);
  border-bottom:1px solid rgba(255,255,255,.72);
  background:rgba(248,248,246,.84);
  box-shadow:5px 5px 12px rgba(0,0,0,.035);
  backdrop-filter:blur(28px) saturate(1.28);
  -webkit-backdrop-filter:blur(28px) saturate(1.28);
  pointer-events:none;
}
.staff-community-overlay-head,
.staff-community-frame{
  position:relative;
  z-index:4;
}
.staff-community-frame{
  border-radius:0 0 28px 28px;
  overflow:hidden;
}
.staff-community-preview{
  z-index:1010!important;
  /* Bubble sits immediately above the footer and points at Community. */
  bottom:calc(88px + env(safe-area-inset-bottom))!important;
}
.staff-community-preview::before{
  left:50%!important;
}
html.staff-community-open .staff-app-nav .staff-nav-community{
  color:var(--store-accent,#d46b31)!important;
  background:rgba(255,255,255,.48)!important;
}
@media(max-width:700px){
  .staff-community-overlay{
    padding:max(7px,calc(env(safe-area-inset-top) + 3px)) 10px calc(96px + env(safe-area-inset-bottom))!important;
  }
  .staff-community-panel{
    height:100%!important;
    max-height:100%!important;
    border-radius:24px!important;
  }
  .staff-community-frame{border-radius:0 0 23px 23px}
  .staff-community-preview{bottom:calc(86px + env(safe-area-inset-bottom))!important}
}

/* v15 — compact Staff Community channel selector; selected tab is the channel title */
.staff-community-embed .staff-channel-duplicate-head{display:none!important}
.staff-community-embed .community-topnav-workspace .rechat-channel-rail{
  min-height:46px!important;height:46px!important;padding:3px 10px!important;gap:6px!important;
  border-bottom:1px solid rgba(0,0,0,.07)!important;background:rgba(255,255,255,.42)!important;
}
.staff-community-embed .community-topnav-workspace .rechat-channel-link{
  min-height:38px!important;height:38px!important;padding:0 13px!important;border-radius:19px!important;
  font-size:14px!important;gap:2px!important;border:1px solid transparent!important;
}
.staff-community-embed .community-topnav-workspace .rechat-channel-link b{font-size:14px!important;font-weight:700!important}
.staff-community-embed .community-topnav-workspace .rechat-channel-link.active{
  background:rgba(255,255,255,.88)!important;border-color:rgba(0,0,0,.10)!important;
  box-shadow:0 2px 8px rgba(0,0,0,.06)!important;color:var(--store-accent,#d46b31)!important;
}
.staff-community-embed .community-topnav-workspace .timeline-feed.slack-feed{padding-top:6px!important}
.staff-community-embed .timeline-message{margin-top:3px!important;margin-bottom:3px!important}
@media(max-width:720px){
 .staff-community-overlay-head{height:48px!important;flex-basis:48px!important;padding:5px 10px 5px 16px!important}
 .staff-community-overlay-head strong{font-size:19px!important}
 .staff-community-embed .community-topnav-workspace .rechat-channel-rail{height:44px!important;min-height:44px!important;padding:3px 8px!important}
 .staff-community-embed .community-topnav-workspace .rechat-channel-link{height:36px!important;min-height:36px!important;padding:0 12px!important}
}

/* v16 — Staff Community Messenger-style bubbles, popup reactions, compact composer */
.staff-community-embed .slack-feed{padding:8px 10px 10px!important;gap:3px!important}
.staff-community-embed .slack-message{width:fit-content!important;max-width:82%!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important;padding:0!important;margin:2px auto 2px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.staff-community-embed .slack-message.mine{grid-template-columns:minmax(0,1fr)!important;margin-left:auto!important;margin-right:0!important}
.staff-community-embed .slack-message.mine>.timeline-avatar{display:none!important}
.staff-community-embed .slack-message .timeline-message-main{background:rgba(255,255,255,.88)!important;border:1px solid rgba(0,0,0,.07)!important;border-radius:17px 17px 17px 6px!important;padding:7px 10px 6px!important;box-shadow:0 1px 2px rgba(0,0,0,.035)!important}
.staff-community-embed .slack-message.mine .timeline-message-main{background:color-mix(in srgb,var(--store-accent,#d46b31) 14%,rgba(255,255,255,.92))!important;border-radius:17px 17px 6px 17px!important}
.staff-community-embed .slack-message.official{border-left:0!important}
.staff-community-embed .slack-message .timeline-avatar.small{width:28px!important;height:28px!important;border-radius:50%!important;font-size:11px!important;margin-top:4px!important}
.staff-community-embed .timeline-author-line{gap:4px!important}.staff-community-embed .timeline-author-line strong{font-size:11px!important}.staff-community-embed .timeline-author-line time{font-size:9px!important;margin-left:auto!important}
.staff-community-embed .timeline-body{font-size:14px!important;line-height:1.35!important;margin:2px 0 0!important}
.staff-community-embed .timeline-reactions{gap:3px!important;margin:3px 0 -2px!important}.staff-community-embed .timeline-react-count{min-height:20px!important;padding:0 6px!important;font-size:10px!important;background:rgba(255,255,255,.78)!important}.staff-community-embed .timeline-add-reaction{display:none!important}
.staff-community-embed .timeline-hover-tools{position:absolute!important;top:50%!important;right:-35px!important;transform:translateY(-50%)!important;display:flex!important;background:rgba(255,255,255,.92)!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:999px!important;padding:1px!important;box-shadow:0 3px 10px rgba(0,0,0,.08)!important;z-index:6!important}
.staff-community-embed .slack-message.mine .timeline-hover-tools{right:auto!important;left:-35px!important}
.staff-community-embed .timeline-hover-tools>button[data-reply],.staff-community-embed .timeline-message-menu{display:none!important}
.timeline-reaction-popover{position:relative}.timeline-reaction-popover>summary{list-style:none;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;cursor:pointer;font-size:13px}.timeline-reaction-popover>summary::-webkit-details-marker{display:none}.timeline-reaction-popover>summary:hover{background:#f1f1ee}
.timeline-hover-reaction-picker{display:none;position:absolute;left:50%;bottom:33px;transform:translateX(-50%);gap:2px;padding:5px;background:rgba(255,255,255,.97);border:1px solid rgba(0,0,0,.1);border-radius:999px;box-shadow:0 7px 22px rgba(0,0,0,.14);white-space:nowrap;z-index:20}.timeline-reaction-popover[open] .timeline-hover-reaction-picker{display:flex}.timeline-hover-reaction-picker button{width:32px;height:32px;border:0;background:transparent;border-radius:50%;font-size:18px;cursor:pointer}.timeline-hover-reaction-picker button:hover{background:#f0f0ed}
.staff-community-embed .timeline-composer-card.slack-composer{border-radius:18px!important;margin:5px 8px 8px!important;background:rgba(255,255,255,.86)!important;border:1px solid rgba(0,0,0,.09)!important;overflow:visible!important}
.staff-community-embed .timeline-compose-field{display:grid!important;grid-template-columns:34px minmax(0,1fr) 36px!important;align-items:end!important;gap:3px!important;padding:5px!important}
.staff-community-embed .slack-composer textarea{grid-column:2!important;min-height:38px!important;max-height:92px!important;height:38px;padding:9px 7px!important;resize:none!important;font-size:16px!important;line-height:20px!important;overflow-y:auto!important}
.timeline-inline-attach,.timeline-inline-send{width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;align-self:end}.timeline-inline-attach{background:rgba(0,0,0,.06);font-size:20px;font-weight:500}.timeline-inline-send{background:var(--store-accent,#d46b31);color:#fff;font-size:16px}
.staff-community-embed .staff-compose-secondary{position:absolute!important;left:45px!important;bottom:7px!important;margin:0!important;padding:0!important;border:0!important;pointer-events:none!important}.staff-community-embed .staff-compose-secondary .timeline-compose-tools{display:none!important}.staff-community-embed .staff-compose-secondary .timeline-compose-send{pointer-events:auto!important}.staff-community-embed .staff-compose-secondary .inline-save-status{font-size:9px!important}
.staff-community-embed .timeline-image-preview{margin:0 8px 5px!important}.staff-community-embed .timeline-replying{margin:5px 7px 0!important;padding:5px 8px!important}
@media(max-width:420px){.staff-community-embed .slack-message{max-width:86%!important}.staff-community-embed .timeline-hover-tools{right:-31px!important}.staff-community-embed .slack-message.mine .timeline-hover-tools{left:-31px!important}}

/* v17 — lock Staff Community conversation width; only channel rail may scroll horizontally */
.staff-community-overlay,
.staff-community-panel,
.staff-community-frame,
.staff-community-embed,
.staff-community-embed .community-topnav-workspace,
.staff-community-embed .community-main,
.staff-community-embed .timeline-feed,
.staff-community-embed .slack-feed,
.staff-community-embed .timeline-composer-card,
.staff-community-embed .timeline-compose-field{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.staff-community-panel,
.staff-community-frame,
.staff-community-embed,
.staff-community-embed .community-topnav-workspace,
.staff-community-embed .community-main,
.staff-community-embed .timeline-feed,
.staff-community-embed .slack-feed{
  overflow-x:hidden!important;
}
.staff-community-embed .community-topnav-workspace .rechat-channel-rail{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.staff-community-embed .community-topnav-workspace .rechat-channel-link{flex:0 0 auto!important}
.staff-community-embed .slack-message{
  min-width:0!important;
  max-width:min(82%,calc(100% - 38px))!important;
}
.staff-community-embed .slack-message.mine{max-width:82%!important}
.staff-community-embed .slack-message .timeline-message-main,
.staff-community-embed .timeline-body,
.staff-community-embed .timeline-author-line,
.staff-community-embed .timeline-replying,
.staff-community-embed .timeline-attachment,
.staff-community-embed .timeline-attachment *{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.staff-community-embed img,
.staff-community-embed video,
.staff-community-embed iframe{
  max-width:100%!important;
  height:auto;
}
.staff-community-embed .timeline-reactions{max-width:100%!important;flex-wrap:wrap!important}
.staff-community-embed .timeline-hover-tools,
.staff-community-embed .timeline-reaction-popover,
.staff-community-embed .timeline-hover-reaction-picker{
  max-width:min(280px,calc(100vw - 40px))!important;
}
.staff-community-embed .timeline-composer-card.slack-composer{
  width:auto!important;
  max-width:calc(100% - 16px)!important;
  min-width:0!important;
}
.staff-community-embed .timeline-compose-field>*{min-width:0!important;max-width:100%!important}
.staff-community-embed .slack-composer textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(max-width:420px){
  .staff-community-embed .slack-message{max-width:min(86%,calc(100% - 34px))!important}
  .staff-community-embed .slack-message.mine{max-width:86%!important}
}

/* Compact payroll review v1 */
.livepay-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.livepay-summary>div{background:#fff;border:1px solid #dededb;border-radius:13px;padding:12px 13px}.livepay-summary small{display:block;font-size:8px;font-weight:800;letter-spacing:.09em;color:#777}.livepay-summary strong{display:block;font-size:20px;line-height:1.1;margin:4px 0 2px}.livepay-summary span{font-size:9px;color:#888}.livepay-summary .net{border-bottom:3px solid #222}
.livepay-section-head{align-items:flex-start;gap:12px}.livepay-filters{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.livepay-filters button{border:1px solid #ddd;background:#f7f7f5;border-radius:999px;padding:6px 9px;font-size:9px;cursor:pointer}.livepay-filters button.active{background:#222;color:#fff;border-color:#222}
.livepay-table-compact{font-size:12px}.livepay-table-compact th{font-size:8px;padding:9px 10px}.livepay-table-compact td{padding:10px;vertical-align:middle}.livepay-table-compact td strong{font-size:12px}.livepay-table-compact td small{display:block;font-size:9px;color:#888;margin-top:2px}.livepay-table-compact tr.needs-review>td{background:#fffdf7}
.pay-status{display:inline-flex;border:1px solid #ddd;background:#fff;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800;text-decoration:none;color:#333;white-space:nowrap}.pay-status.ready{background:#e9f2ea;color:#35633d;border-color:#d4e4d6}.pay-status.review{background:#fff0d7;color:#805710;border-color:#ead5ae}.pay-status.missing{background:#efefed;color:#555}
.pay-review-row>td{padding:0!important;background:#f7f7f5!important}.pay-review-card{padding:14px 16px;border-block:1px solid #ddd}.pay-review-title{display:flex;justify-content:space-between;gap:10px}.pay-review-title h4{margin:2px 0;font-size:17px}.pay-review-alert{margin:10px 0;background:#fff0d7;border-radius:8px;padding:8px 10px;font-size:10px;color:#725016}.pay-review-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:10px 0}.pay-review-metrics>div{background:#fff;border:1px solid #e1e1de;border-radius:9px;padding:8px}.pay-review-metrics small{font-size:7px!important;font-weight:800;letter-spacing:.07em}.pay-review-metrics strong{display:block;font-size:12px!important;margin-top:3px}.pay-review-metrics span{font-size:9px;color:#777}.pay-review-money{display:flex;gap:14px;flex-wrap:wrap;padding:8px 0;font-size:10px}.pay-review-money span{display:flex;gap:5px}.pay-review-money .total{margin-left:auto;font-size:12px}.pay-review-adjust{display:grid!important;grid-template-columns:180px minmax(220px,1fr) auto!important;gap:8px!important;align-items:end!important}.pay-review-adjust label{font-size:9px}.pay-review-adjust input{margin-top:3px}.livepay-confirm{margin-top:10px}
@media(max-width:1000px){.livepay-summary{grid-template-columns:repeat(3,1fr)}.pay-review-metrics{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.livepay-summary{grid-template-columns:repeat(2,1fr)}.livepay-section-head{display:block}.livepay-filters{justify-content:flex-start;margin-top:8px}.livepay-table-compact{min-width:850px}.pay-review-metrics{grid-template-columns:repeat(2,1fr)}.pay-review-adjust{grid-template-columns:1fr!important}.pay-review-money .total{margin-left:0}}

/* Community unified top-channel layout v20260918 */
.rechat-channel-state{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
body.backend.timeline-web-page .timeline-shell.community-topnav-workspace,
body.staff-themed .timeline-shell.community-topnav-workspace{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;min-width:0!important;overflow:hidden!important}
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail,
body.staff-themed .community-topnav-workspace .rechat-channel-rail{order:0!important;width:100%!important;height:auto!important;min-height:52px!important;max-height:52px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:7px 10px!important;border:0!important;border-bottom:1px solid #e5e5e2!important;border-radius:0!important;background:#fafaf8!important;overflow:hidden!important}
.community-topnav-workspace .rechat-channel-scroll{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.community-topnav-workspace .rechat-channel-scroll::-webkit-scrollbar{display:none}
.community-topnav-workspace #rechatChannelList{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
.community-topnav-workspace .rechat-channel-link{width:auto!important;min-width:max-content!important;min-height:36px!important;display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;gap:5px!important;padding:7px 11px!important;border:1px solid transparent!important;border-radius:999px!important;background:transparent!important;white-space:nowrap!important;font-size:12px!important}
.community-topnav-workspace .rechat-channel-link:hover{background:#f0f0ed!important}
.community-topnav-workspace .rechat-channel-link.active{background:#222!important;color:#fff!important;border-color:#222!important;box-shadow:none!important}
.community-topnav-workspace .rechat-channel-link.active span{color:#d8d8d8!important}
.community-topnav-workspace .rechat-channel-link em{margin-left:2px!important;min-width:17px!important;height:17px!important;padding:0 5px!important;font-size:9px!important;background:#222!important;color:#fff!important;border:1px solid #fff!important}
.community-topnav-workspace .rechat-channel-link.active em{background:#fff!important;color:#222!important;border-color:#fff!important}
.community-topnav-workspace .rechat-topbar-actions{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important;padding-left:5px!important;background:#fafaf8!important}
.community-topnav-workspace .rechat-rail-bell,.community-topnav-workspace .rechat-add-channel,.community-topnav-workspace .rechat-topbar-info{width:34px!important;height:34px!important;min-width:34px!important;border:1px solid #deded9!important;border-radius:10px!important;background:#fff!important;color:#222!important;display:grid!important;place-items:center!important;padding:0!important;text-decoration:none!important;font-size:15px!important;cursor:pointer!important}
.community-topnav-workspace .rechat-topbar-info[hidden]{display:none!important}
.community-topnav-workspace .rechat-add-channel{background:#222!important;color:#fff!important;border-color:#222!important;font-size:20px!important}
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-main,
body.staff-themed .community-topnav-workspace .rechat-channel-main{order:1!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;overflow:hidden!important}
body.backend.timeline-web-page .community-topnav-workspace .timeline-feed.slack-feed{padding:10px 16px 14px!important}
body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{margin:7px 14px 12px!important;border-radius:15px!important}
body.backend.timeline-web-page .community-topnav-workspace .slack-message{padding:6px 8px!important;margin:1px 0!important}
body.backend.timeline-web-page .community-topnav-workspace .timeline-avatar.small{width:34px!important;height:34px!important}
body.backend.timeline-web-page .community-topnav-workspace .timeline-body{font-size:13px!important;line-height:1.38!important}
body.backend.timeline-web-page .community-topnav-workspace .timeline-author-line strong{font-size:12px!important}
@media(max-width:900px){
 body.backend.timeline-web-page{overflow:hidden!important}
 body.backend.timeline-web-page .backend-main{padding:12px!important;height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 body.backend.timeline-web-page .backend-top{margin:0 0 10px!important;flex:0 0 auto!important}.backend.timeline-web-page .backend-top h1{font-size:25px!important;margin-bottom:0!important}.backend.timeline-web-page .backend-top .eyebrow{font-size:9px!important}
 body.backend.timeline-web-page .timeline-shell.community-topnav-workspace{flex:1 1 auto!important;min-height:0!important;height:auto!important;border-radius:15px!important;margin:0!important}
 body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail{min-height:48px!important;max-height:48px!important;padding:6px 7px!important}
 .community-topnav-workspace .rechat-channel-link{min-height:34px!important;padding:6px 10px!important;font-size:11px!important}
 .community-topnav-workspace .rechat-rail-bell,.community-topnav-workspace .rechat-add-channel,.community-topnav-workspace .rechat-topbar-info{width:32px!important;height:32px!important;min-width:32px!important}
 body.backend.timeline-web-page .community-topnav-workspace .timeline-feed.slack-feed{padding:7px 8px 10px!important}
 body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{margin:5px 7px 7px!important}
 body.backend.timeline-web-page .timeline-head-actions{display:none!important}
}
@media(max-width:520px){
 body.backend.timeline-web-page .backend-main{padding:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 body.backend.timeline-web-page .backend-top{margin-bottom:7px!important}
 body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail{border-radius:0!important}
 .community-topnav-workspace .rechat-topbar-actions{gap:3px!important;padding-left:3px!important}
 body.backend.timeline-web-page .community-topnav-workspace .slack-message{padding:5px 3px!important}
 body.backend.timeline-web-page .community-topnav-workspace .timeline-avatar.small{width:30px!important;height:30px!important}
}


/* Attendance reporting overview v1 */
.attendance-overview-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:4px 0 18px}.attendance-overview-head h2{margin:3px 0 4px;font-size:28px}
.attendance-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:16px}.attendance-kpis button{appearance:none;text-align:left;border:1px solid #dededb;background:#fff;border-radius:14px;padding:13px 14px;cursor:pointer}.attendance-kpis small{display:block;font-size:9px;letter-spacing:.1em;color:#777;font-weight:800}.attendance-kpis strong{display:block;font-size:25px;line-height:1.05;margin:5px 0 2px}.attendance-kpis span{font-size:10px;color:#888}.attendance-kpis .has-warning{border-bottom:3px solid #b78a31}.attendance-kpis .has-danger{border-bottom:3px solid #b55454}
.attendance-attention{border-left:4px solid #b55454}.attendance-attention-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.attendance-attention-grid>div{border:1px solid #e6e4df;border-radius:10px;padding:10px;display:grid;grid-template-columns:1fr auto;gap:4px 8px}.attendance-attention-grid small{grid-column:1/-1;color:#777}
.attendance-store-head{align-items:flex-start;gap:16px}.attendance-store-head small b{color:#9d4848}.attendance-filter-chips{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}.attendance-filter-chips button{border:1px solid #ddd;background:#f8f8f6;border-radius:999px;padding:6px 9px;font-size:10px;cursor:pointer}.attendance-filter-chips button.active{background:#222;color:#fff;border-color:#222}
.attendance-table td{vertical-align:top}.attendance-table td small{display:block;margin-top:3px}.att-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.035em;background:#efefed;color:#555}.att-working,.att-present{background:#e7f2e9;color:#35633d}.att-late{background:#fff0d7;color:#8a5c10}.att-absent,.att-incomplete{background:#f7dfdf;color:#8b3434}.att-leave{background:#e9edf5;color:#465a79}.att-break{background:#e5eff3;color:#365f70}.att-notyet{background:#efefed;color:#666}.att-late{font-size:11px;color:#8a5c10}
@media(max-width:1100px){.attendance-kpis{grid-template-columns:repeat(3,1fr)}.attendance-attention-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.attendance-overview-head{align-items:flex-start;flex-direction:column}.attendance-kpis{grid-template-columns:repeat(2,1fr)}.attendance-attention-grid{grid-template-columns:1fr}.attendance-store-head{display:block}.attendance-filter-chips{justify-content:flex-start;margin-top:10px}.attendance-table{min-width:900px}}

/* Mobile inline backend sidebar submenus — v20260918 */
@media (max-width:900px){
  #backendSidebar.sidebar{width:min(86vw,330px)!important;max-width:330px!important;overflow-x:hidden!important;overflow-y:auto!important}
  #backendSidebar .sidebar-nav{overflow:visible!important}
  #backendSidebar .sidebar-group{position:relative!important;width:100%!important}
  #backendSidebar .sidebar-group .sidebar-group-links{
    position:static!important;inset:auto!important;left:auto!important;top:auto!important;
    width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;
    margin:3px 0 7px!important;padding:4px 0 4px 13px!important;
    border:0!important;border-left:1px solid rgba(255,255,255,.13)!important;
    border-radius:0!important;box-shadow:none!important;background:transparent!important;
    display:none!important;transform:none!important;opacity:1!important;visibility:visible!important;
  }
  #backendSidebar .sidebar-group.inline-open .sidebar-group-links,
  #backendSidebar .sidebar-group.open .sidebar-group-links{display:block!important}
  #backendSidebar .sidebar-group.flyout-open .sidebar-group-links{position:static!important}
  #backendSidebar .sidebar-group-trigger{width:100%!important}
  #backendSidebar .sidebar-group.inline-open .sidebar-group-trigger{background:rgba(255,255,255,.075)!important}
  #backendSidebar .sidebar-group.inline-open .sidebar-group-trigger span{transform:rotate(90deg)}
  #backendSidebar .sidebar-group-trigger span{transition:transform .16s ease}
  #backendSidebar .sidebar-group-links a{
    display:block!important;width:100%!important;margin:1px 0!important;padding:9px 12px!important;
    border-radius:9px!important;font-size:14px!important;line-height:1.25!important;color:#c9c9c9!important;
    background:transparent!important;white-space:normal!important;
  }
  #backendSidebar .sidebar-group-links a.on{background:rgba(255,255,255,.09)!important;color:#fff!important}
  body.sidebar-open{overflow:hidden}
}


/* Weekly schedule: single date header + sticky table header — v20260918 */
.schedule-scroll{
  position:relative;
}
.schedule-grid .schedule-corner,
.schedule-grid .schedule-day-head{
  position:sticky !important;
  top:0 !important;
  z-index:24 !important;
  background:#fff !important;
  box-shadow:0 1px 0 rgba(0,0,0,.10);
}
.schedule-grid .schedule-corner{
  left:0;
  z-index:26 !important;
}
.schedule-grid .schedule-day-head.special-day-head{
  background:#fff8f4 !important;
}
@media (max-width:900px){
  .schedule-grid .schedule-corner,
  .schedule-grid .schedule-day-head{
    top:0 !important;
  }
}

/* Partial Schedule workflow v20260918 */
.partial-schedule-alert{border-left:4px solid #8a6b2f;background:#fffaf0}
.partial-ready-panel{border:1px solid #d8c49b;background:#fffdf7}
.staff-partial-schedule-banner{margin:10px 0;padding:10px 12px;border:1px solid #dfd2b7;border-radius:12px;background:#fffaf0;display:flex;gap:10px;align-items:flex-start}
.staff-partial-schedule-banner strong{font-size:10px;letter-spacing:.08em;white-space:nowrap}
.staff-partial-schedule-banner span{font-size:11px;color:#6d6557;line-height:1.35}
@media(max-width:600px){.staff-partial-schedule-banner{display:block}.staff-partial-schedule-banner strong{display:block;margin-bottom:3px}.partial-publish-panel .inline{display:grid;grid-template-columns:1fr}.partial-publish-panel .btn{width:100%}}

/* Community compact composer + mobile parity v20260918 */
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-main{
  min-height:0!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-feed.slack-feed{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-new-divider{
  flex:0 0 auto!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{
  flex:0 0 auto!important;
  max-height:210px!important;
  overflow:visible!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid #d7d7d2!important;
  box-shadow:0 -2px 12px rgba(0,0,0,.035)!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card form{
  min-width:0!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-field{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 38px!important;
  gap:5px!important;
  align-items:end!important;
  padding:7px 8px 3px!important;
  min-width:0!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-field textarea{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  max-height:96px!important;
  height:38px!important;
  resize:none!important;
  overflow-y:auto!important;
  border:0!important;
  background:transparent!important;
  padding:9px 5px!important;
  font-size:14px!important;
  line-height:20px!important;
  box-shadow:none!important;
  outline:0!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-attach,
body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-send{
  width:36px!important;height:36px!important;min-width:36px!important;
  border-radius:50%!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-attach{
  background:#f0f0ed!important;color:#333!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-send{
  background:#222!important;color:#fff!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-actions{
  min-height:30px!important;
  padding:1px 10px 7px 50px!important;
  border:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-tools{
  display:flex!important;gap:3px!important;align-items:center!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-send{
  margin-left:auto!important;min-width:0!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-tool-btn{
  width:28px!important;height:28px!important;min-width:28px!important;
  display:grid!important;place-items:center!important;border-radius:50%!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-image-preview{
  max-height:62px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  display:flex!important;gap:5px!important;
  margin:1px 8px 3px 50px!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-replying{
  margin:5px 8px 0!important;padding:5px 8px!important;
}
@media(max-width:900px){
  body.backend.timeline-web-page .backend-main{
    height:100dvh!important;max-height:100dvh!important;
    padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
  }
  body.backend.timeline-web-page .timeline-shell.community-topnav-workspace{
    min-height:0!important;max-height:calc(100dvh - 78px)!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-feed.slack-feed{
    padding:6px 7px 8px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{
    margin:4px 6px 6px!important;
    border-radius:17px!important;
    max-height:180px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-field{
    grid-template-columns:34px minmax(0,1fr) 36px!important;
    padding:5px 6px 2px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-attach,
  body.backend.timeline-web-page .community-topnav-workspace .timeline-inline-send{
    width:34px!important;height:34px!important;min-width:34px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-field textarea{
    min-height:34px!important;height:34px!important;max-height:82px!important;
    padding:7px 4px!important;font-size:14px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-actions{
    min-height:27px!important;padding:0 8px 5px 45px!important;
  }
}
@media(max-width:520px){
  body.backend.timeline-web-page .backend-top{display:none!important}
  body.backend.timeline-web-page .backend-main{
    padding:0!important;height:100dvh!important;max-height:100dvh!important;
  }
  body.backend.timeline-web-page .timeline-shell.community-topnav-workspace{
    height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail{
    flex:0 0 48px!important;min-height:48px!important;max-height:48px!important;
    padding-left:max(6px,env(safe-area-inset-left))!important;
    padding-right:max(6px,env(safe-area-inset-right))!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{
    margin:3px 5px max(5px,env(safe-area-inset-bottom))!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .slack-message{
    padding:4px 3px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .timeline-avatar.small{
    width:30px!important;height:30px!important;
  }
}

/* TRUE unified Community channel bar v20260918 */
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail,
body.staff-themed .community-topnav-workspace .rechat-channel-rail{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  min-height:52px!important;
  height:52px!important;
  padding:6px 10px!important;
  gap:6px!important;
  overflow:hidden!important;
  border-bottom:1px solid #e5e5e1!important;
}
.community-topnav-workspace .rechat-rail-head{
  display:flex!important;align-items:center!important;gap:5px!important;
  flex:0 0 auto!important;margin:0!important;padding:0!important;
}
.community-topnav-workspace .rechat-rail-head>strong{
  font-size:14px!important;line-height:1!important;
}
.community-topnav-workspace .rechat-rail-actions{display:flex!important;gap:4px!important}
.community-topnav-workspace .rechat-rail-bell,
.community-topnav-workspace .rechat-add-channel{
  width:32px!important;height:32px!important;min-width:32px!important;
  padding:0!important;border-radius:10px!important;
}
.community-topnav-workspace .rechat-channel-link{
  flex:0 0 auto!important;min-height:32px!important;padding:5px 9px!important;
  border-radius:16px!important;white-space:nowrap!important;font-size:12px!important;
}
.community-topnav-workspace .rechat-rail-label{
  flex:0 0 auto!important;margin:0 2px!important;font-size:10px!important;
  letter-spacing:.12em!important;
}
.community-topnav-workspace #rechatChannelList{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  gap:5px!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;
}
.community-topnav-workspace #rechatChannelList::-webkit-scrollbar{display:none!important}
.community-topnav-workspace .rechat-active-channel-meta{
  margin-left:auto!important;display:flex!important;align-items:center!important;
  gap:5px!important;min-width:0!important;flex:0 1 auto!important;white-space:nowrap!important;
}
.community-topnav-workspace .rechat-active-channel-meta strong{
  font-size:12px!important;line-height:18px!important;
}
.community-topnav-workspace .rechat-active-channel-meta small{
  display:block!important;max-width:190px!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#777!important;font-size:10px!important;
}
.community-topnav-workspace .rechat-channel-info-icon{
  flex:0 0 28px!important;width:28px!important;height:28px!important;
  display:grid!important;place-items:center!important;border:1px solid #ddd!important;
  border-radius:50%!important;text-decoration:none!important;color:#333!important;
  font-size:15px!important;background:#fff!important;
}
.community-topnav-workspace .timeline-channel-head{display:none!important}

@media(max-width:760px){
 body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail,
 body.staff-themed .community-topnav-workspace .rechat-channel-rail{
   height:46px!important;min-height:46px!important;padding:5px 6px!important;gap:4px!important;
 }
 .community-topnav-workspace .rechat-rail-head>strong,
 .community-topnav-workspace .rechat-rail-label{display:none!important}
 .community-topnav-workspace .rechat-rail-bell,
 .community-topnav-workspace .rechat-add-channel{
   width:30px!important;height:30px!important;min-width:30px!important;
 }
 .community-topnav-workspace .rechat-channel-link{
   min-height:30px!important;padding:4px 8px!important;font-size:11px!important;
 }
 .community-topnav-workspace .rechat-active-channel-meta small{display:none!important}
 .community-topnav-workspace .rechat-active-channel-meta strong{
   max-width:88px!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 .community-topnav-workspace .rechat-channel-info-icon{
   flex-basis:26px!important;width:26px!important;height:26px!important;font-size:14px!important;
 }
}
@media(max-width:480px){
 .community-topnav-workspace .rechat-active-channel-meta{display:none!important}
 .community-topnav-workspace #rechatChannelList{flex:1 1 auto!important}
}

/* Admin/HR Community approved header + viewport-safe composer v20260918-2 */
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  gap:6px!important;overflow:hidden!important;
}
body.backend.timeline-web-page .community-topnav-workspace .rechat-rail-head{
  order:0!important;flex:0 0 auto!important;margin:0!important;padding:0 4px!important;
}
body.backend.timeline-web-page .community-topnav-workspace .rechat-rail-head>strong{
  display:block!important;font-size:14px!important;white-space:nowrap!important;
}
body.backend.timeline-web-page .community-topnav-workspace [data-channel-slug="general"]{order:1!important}
body.backend.timeline-web-page .community-topnav-workspace #rechatChannelList{
  order:2!important;flex:1 1 auto!important;min-width:0!important;
  overflow-x:auto!important;overflow-y:hidden!important;
}
body.backend.timeline-web-page .community-topnav-workspace .rechat-add-channel{
  order:3!important;flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;
}
body.backend.timeline-web-page .community-topnav-workspace .rechat-active-channel-meta{
  order:4!important;margin-left:6px!important;flex:0 1 auto!important;
}
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-info-icon{order:5!important}
body.backend.timeline-web-page .community-topnav-workspace .rechat-rail-bell,
body.backend.timeline-web-page #timelineNotificationLayer{display:none!important}
body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-main{
  flex:1 1 0!important;min-height:0!important;overflow:hidden!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-feed.slack-feed{
  flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{
  flex:0 0 auto!important;position:relative!important;bottom:auto!important;
  width:auto!important;min-height:62px!important;max-height:190px!important;
  margin:6px 12px max(10px,env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;overflow:visible!important;
}
body.backend.timeline-web-page .community-topnav-workspace .timeline-compose-field{
  box-sizing:border-box!important;
}
@media(max-width:760px){
  body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-rail{
    padding:5px 7px!important;gap:4px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .rechat-rail-head>strong{
    display:block!important;font-size:12px!important;
  }
  body.backend.timeline-web-page .community-topnav-workspace .rechat-active-channel-meta{display:none!important}
  body.backend.timeline-web-page .community-topnav-workspace #rechatChannelList{flex:1 1 auto!important}
  body.backend.timeline-web-page .community-topnav-workspace .timeline-composer-card.slack-composer{
    margin:4px 6px max(8px,env(safe-area-inset-bottom))!important;max-height:170px!important;
  }
}
@media(max-width:430px){
  body.backend.timeline-web-page .community-topnav-workspace .rechat-rail-head>strong{font-size:11px!important}
  body.backend.timeline-web-page .community-topnav-workspace .rechat-channel-link{padding:4px 7px!important}
}
