/* Shared Bergmann Foods design system: all views use these tokens. */
.bf-backup-status{display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:16px}.bf-backup-status b{font-size:13px}.bf-backup-status p{color:var(--muted);font-size:12px;margin:5px 0;line-height:1.5}.bf-backup-status.warning{border-color:#f4bf97;background:#fff7ef}
:root{--bf-orange:#f57921;--bf-orange-soft:#fff0e5;--ink:#253238;--muted:#758087;--line:#e4e8eb;--paper:#f7f8fa;--green:#c85312;--green-dark:#ad450e;--cream:#f5f6f8;--bf-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
html,body,#root{height:100%;margin:0}body{font-family:var(--bf-font);font-size:14px;background:var(--paper)}
body:has(.topbar){padding-left:0!important}main :is(h1,h2,h3,h4,b,strong){font-family:var(--bf-font)!important}
h1,h2,h3,h4,.page-head h1,.stats b,.time-report-kpis b,.attention-panel h2,.settings-head h2,.employee-center h1,.online-user-time strong{font-family:var(--bf-font)!important;letter-spacing:-.025em}
button,input,select,textarea{font-family:var(--bf-font);font-size:13px}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--bf-orange);outline-offset:3px}
.primary{background:var(--bf-orange);border-color:var(--bf-orange);color:white}.secondary{background:white;border-color:#d5dade;color:var(--ink)}
.person,.avatar,.online-user-list .person{background:#e9edf0!important;color:#46535e!important;box-shadow:none}
.page-head{padding:24px 0 18px!important;max-width:none;margin:0!important;gap:16px}.page-head h1{font-size:30px!important;line-height:1.2}.page-head p{font-size:13px!important}.eyebrow{font-size:10px!important;color:var(--muted)!important}
.stats,.toolbar,.schedule-wrap,.legend,.dashboard-grid,.time-report-kpis,.time-week-panel,.time-report-panel,.time-subnav,.month-end-panel,.month-end-year,.tour-market-content,.tour-market-controls,.employee-center,.payroll-section{max-width:none!important;margin-left:0!important;margin-right:0!important}
.dashboard-grid{padding:0 0 16px!important;gap:16px}.stats{border:0;background:transparent;gap:12px;margin-bottom:16px}.stats article{border:1px solid var(--line);border-radius:12px;min-height:70px;padding:12px 16px}.stats b{font-size:23px}.stats small{font-size:11px}.attention-panel h2{font-size:18px}.attention-panel>header{padding:15px}.attention-list>button{padding:11px 15px}.dashboard-grid .attention-panel{max-height:360px}.all-good{padding:24px 15px!important;min-height:0!important}
.employee-center{padding:0!important}.employee-list-table td,.employee-list-table th{padding:11px 14px!important}.employee-center h1{font-size:30px!important}
.toolbar{margin-top:0;height:48px;padding:0 12px;border-radius:12px 12px 0 0}.toolbar strong{font-family:var(--bf-font);font-size:14px}.schedule-wrap{border-radius:0 0 12px 12px;max-height:calc(100dvh - 290px);overflow:auto;overscroll-behavior:contain}.schedule{grid-template-columns:205px repeat(7,minmax(118px,1fr));min-width:1040px}.corner,.day-head{position:sticky;top:0;z-index:3;background:#f7f8fa;height:54px}.corner{left:0;z-index:5}.employee-cell{position:sticky;left:0;z-index:2;background:white;padding:8px 12px!important;min-height:58px}.employee-cell b{font-size:12px}.employee-cell small{font-size:10px}.employee-cell .hours{font-size:11px}.day-cell{min-height:58px!important;padding:5px!important}.shift{border:1px solid color-mix(in srgb,var(--accent) 60%,white);border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 9%,white);border-radius:7px;min-height:40px!important;padding:6px 8px!important}.shift-stack .shift b,.shift b{font-size:11px!important}.shift-stack .shift small,.shift small{font-size:10px!important;margin-top:2px!important}.shift-stack .shift em{display:none}.absence,.off{min-height:44px!important}.area-title{min-height:32px!important;padding:7px 12px!important;font-size:12px!important;background:#f1f3f5!important}.area-stats{min-height:40px}.legend{padding-bottom:10px;font-size:11px}
*{scrollbar-width:thin;scrollbar-color:#c0c8ce transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#c0c8ce;border:2px solid transparent;border-radius:8px;background-clip:padding-box}
.bf-messages{display:flex;flex-direction:column;height:100%;min-height:0;gap:14px}.bf-messages .page-head{flex:none}.bf-period{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:none}.bf-period input{border:1px solid var(--line);background:white;border-radius:8px;padding:8px;width:145px}.bf-period button,.bf-chats button{border:1px solid var(--line);background:white;border-radius:8px;padding:8px 12px}.bf-chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1;min-height:0;border:1px solid var(--line);border-radius:14px;background:white;overflow:hidden}.bf-chats{display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0}.bf-chats input{margin:12px;padding:10px;border:1px solid var(--line);border-radius:8px;width:calc(100% - 24px)}.bf-contact-list{flex:1;min-height:0;overflow:auto;padding:6px}.bf-contact-list>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;padding:11px 10px;margin:2px 0}.bf-contact-list>button.active{background:var(--bf-orange-soft)}.bf-contact-list>button>span:nth-child(2){min-width:0;flex:1}.bf-contact-list b,.bf-contact-list small{display:block}.bf-contact-list small{color:var(--muted);margin-top:3px;font-size:11px}.bf-contact-list em{font-style:normal;background:var(--bf-orange);color:white;border-radius:12px;padding:2px 6px}.bf-contact-list .person{width:36px;height:36px;font-size:11px}.bf-chats>footer{padding:12px;border-top:1px solid var(--line)}.bf-chat{display:flex;flex-direction:column;min-height:0;min-width:0}.bf-chat>header{padding:16px 20px;border-bottom:1px solid var(--line);flex:none;display:flex;align-items:center;gap:10px}.bf-chat>header .person{width:36px;height:36px}.bf-chat>header b,.bf-chat>header small{display:block}.bf-chat>header small{color:var(--muted);font-size:11px}.bf-chat-stream{padding:18px;overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.bf-bubble{max-width:78%;align-self:flex-start}.bf-bubble.mine{align-self:flex-end}.bf-bubble p{margin:0;padding:11px 14px;background:#f1f3f5;border-radius:15px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.bf-bubble.mine p{background:var(--bf-orange-soft)}.bf-bubble small{color:var(--muted);font-size:10px;display:block;margin:5px}.bf-bubble h3{font-size:13px;margin:0 0 4px}.bf-bubble button{font-size:10px;background:transparent;border:0;color:var(--muted);padding:3px 6px}.bf-composer{flex:none;border-top:1px solid var(--line);display:flex;align-items:end;gap:10px;padding:12px 16px}.bf-composer textarea{resize:none;min-height:44px;max-height:100px;flex:1;border:1px solid var(--line);border-radius:10px;padding:10px}.bf-composer button{height:42px;border-radius:12px;padding:0 18px}.bf-chat-note{padding:12px 18px;color:var(--muted);font-size:12px}.bf-dialog{position:fixed;inset:0;background:#25323855;z-index:90;display:grid;place-items:center;padding:20px}.bf-dialog>section{background:white;border-radius:16px;max-width:650px;width:100%;max-height:85dvh;overflow:auto;padding:20px}.bf-dialog .message-compose{margin:0;padding:0;border:0}.bf-dialog>section>button{float:right}.bf-error{color:#a73322;background:#fff0ed;padding:10px;border-radius:8px;font-size:12px}.bf-prognosis{display:block;font-size:10px;color:#65727c;white-space:normal}.bf-prognosis b{font-size:11px!important}
@media(min-width:901px){
 body:has(.topbar){overflow:hidden}body:has(.topbar) #root>main{height:100dvh!important;margin:0!important;padding:98px 28px 20px!important;overflow:auto;overscroll-behavior:contain}
 .topbar{position:fixed!important;inset:0 0 auto!important;flex-direction:row!important;align-items:center!important;width:100%!important;height:78px!important;min-height:78px!important;padding:0 24px!important;border-right:0!important;border-bottom:1px solid var(--line)!important;background:#ffffffee!important;backdrop-filter:blur(18px)}
 .topbar .brand{width:150px!important;height:62px!important;border:0!important;padding:0!important;flex:none!important}.topbar .brand .brand-logo{width:130px!important;max-height:54px!important;object-fit:contain}.topbar .desktop-nav{display:flex!important;flex-direction:row!important;flex:1!important;justify-content:center!important;align-items:center!important;gap:4px!important;margin:0 14px!important;overflow:visible!important}.topbar .desktop-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:auto!important;min-width:70px!important;min-height:56px!important;margin:0!important;padding:5px 9px!important;font-size:20px!important;border:0!important;border-radius:10px!important;color:#697681!important;background:transparent!important}.topbar .desktop-nav button span{font-size:11px!important}.topbar .desktop-nav button.active{background:var(--bf-orange-soft)!important;color:#c85312!important}.topbar .header-actions{margin:0!important;position:relative!important;padding:0!important;width:auto!important;border:0!important}.topbar .save-state,.topbar .profile{display:none!important}.topbar .account-menu-trigger{padding:5px!important;gap:5px!important}.topbar .account-menu{top:64px!important;bottom:auto!important;left:auto!important;right:0!important;min-width:240px}.mobile-menu-toggle{display:none!important}
 main:has(.bf-messages){overflow:hidden!important}.time-employee-strip{position:fixed;top:234px;bottom:24px;left:28px;width:245px;padding:8px!important;margin:0!important;display:flex!important;flex-direction:column;overflow:auto!important;background:white;border:1px solid var(--line);border-radius:12px}.time-employee-strip button{min-width:0!important;width:100%;padding:10px;grid-template-columns:32px minmax(0,1fr)!important;gap:8px}.time-employee-strip em{grid-column:2;font-size:10px}.time-employee-strip b{font-size:12px}.time-employee-strip small{font-size:10px}
 main:has(.time-employee-strip)>:is(.time-report-kpis,.time-week-panel,.time-report-panel,.month-end-panel,.month-end-year,.balance-panel){margin-left:265px!important;width:calc(100% - 265px)!important;padding-left:0!important;padding-right:0!important}.time-report-kpis{padding:0!important;gap:10px}.time-report-kpis article{min-height:70px;padding:12px}.time-week-days,.time-report-table{max-height:calc(100dvh - 430px);overflow:auto}.time-day-row{font-size:12px}.time-week-panel{margin-bottom:16px}.time-subnav{padding:0 0 12px!important}.time-subnav button{font-size:13px}
}
@media(min-width:901px) and (max-width:1250px){.topbar{padding:0 12px!important}.topbar .brand{width:110px!important}.topbar .brand .brand-logo{width:100px!important}.topbar .desktop-nav{gap:0!important;margin:0 6px!important}.topbar .desktop-nav button{min-width:61px!important;padding:5px!important}.topbar .desktop-nav button span{font-size:10px!important}}
@media(max-width:900px){.bf-chat-layout{grid-template-columns:190px minmax(0,1fr)}.bf-messages{height:calc(100dvh - 100px)}.bf-period input{width:128px}.bf-chats input{font-size:11px}.bf-contact-list small{display:none}.bf-chat>header{padding:12px}.bf-chat-stream{padding:10px}.bf-period button{font-size:11px}.page-head h1{font-size:26px!important}.bf-dialog{padding:10px}}
@media(max-width:900px){.topbar:not(.menu-open) .desktop-nav{display:none!important}#root>main:has(.bf-messages){height:100dvh!important;overflow:hidden!important;padding:76px 12px 14px!important;margin:0!important}.bf-messages{height:100%}.topbar .desktop-nav svg{display:inline-block;flex:none}.topbar.menu-open .desktop-nav button{gap:10px}}
@media(max-width:600px){.bf-chat-layout{grid-template-columns:110px minmax(0,1fr)}.bf-contact-list>button{display:block;padding:8px 5px}.bf-contact-list .person{display:none}.bf-contact-list b{font-size:11px}.bf-chats input{margin:6px;width:calc(100% - 12px);padding:7px}.bf-chats>footer{padding:6px}.bf-chats>footer button{font-size:10px;padding:6px}.bf-period{gap:5px}.bf-bubble{max-width:95%}.bf-composer{padding:8px;gap:5px}.bf-composer textarea{font-size:12px}.bf-composer button{padding:0 10px}.bf-messages .page-head{padding-top:12px!important}.bf-messages .page-head p{display:none}}
@media print{body:has(.topbar) #root>main{height:auto!important;overflow:visible!important;padding:0!important}.topbar,.time-employee-strip{display:none!important}.schedule-wrap,.time-week-days,.time-report-table{max-height:none!important;overflow:visible!important}}
/* Content-driven row heights and bounded data lists. */
.ec-root{width:100%!important;margin:0!important;padding:24px 0!important}.ec-head h1,.ec-detail-head h1{font-size:30px!important;font-family:var(--bf-font)!important}.ec-button{border-color:#d5dade!important;color:var(--ink)!important}.ec-primary,.ec-toolbar .ec-primary{background:var(--bf-orange)!important;border-color:var(--bf-orange)!important;color:white!important}.ec-tabs button.active{color:#c85312!important;border-bottom-color:var(--bf-orange)!important}.ec-check input{accent-color:var(--bf-orange)!important}
.time-week-panel{display:flex;flex-direction:column;min-height:0}.time-week-panel>header,.time-session-head,.time-week-panel>footer{flex:none}.time-session-list{flex:1;min-height:0}
.employee-cell,.day-cell{height:auto!important;min-height:64px!important}.shift,.shift-stack .shift{height:auto!important;min-height:38px!important}.shift-stack{gap:4px}.area-heading{min-height:32px!important;padding:7px 12px!important}.time-session-list,.time-day-list,.month-end-table,.month-end-year-table,.balance-table{overflow:auto;overscroll-behavior:contain}.time-session-list>article{min-height:58px!important;padding-top:10px!important;padding-bottom:10px!important}.time-session-head,.time-day-head,.month-end-head,.month-end-year-head{position:sticky;top:0;z-index:2;background:#f5f7f8}.time-day-list,.month-end-table,.month-end-year-table{max-height:calc(100dvh - 350px)}
@media(min-width:901px){.time-employee-strip{top:var(--bf-time-list-top,292px)!important}.time-subnav{position:relative;z-index:1}}
