.bw-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;padding:0;background:#fff;min-height:calc(100vh - 76px)}
.bw-sidebar,.bw-main{background:#fff;border:1px solid #e1e7f0;border-radius:13px;box-shadow:0 1px 3px #16233a0a;min-width:0}.bw-sidebar{overflow:hidden}.bw-sidebar header{height:54px;display:flex;align-items:center;gap:7px;padding:0 12px;border-bottom:1px solid #e7ebf2}.bw-sidebar header strong{font-size:16px;flex:1}.bw-sidebar header span{color:#8793a8;font-size:13px}.bw-sidebar header button{width:30px;height:30px;min-width:30px;padding:0;border:0;border-radius:8px;background:#eef2ff;color:#3454c5;font-size:20px}
.bw-series-list{padding:6px;max-height:calc(100vh - 150px);overflow:auto}.bw-series-item{position:relative;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:8px 32px 8px 9px;margin:0;color:#263244;font-size:13px}.bw-series-item.active{background:#eef2ff;color:#3152bf}.bw-series-item strong,.bw-series-item small{display:block}.bw-series-item strong{line-height:1.25}.bw-series-item small{color:#95a1b5;margin-top:2px;font-size:11px}.bw-series-actions{position:absolute;right:4px;top:7px;display:flex;gap:0}.bw-series-actions button{min-width:18px!important;width:18px!important;height:20px;padding:0!important;border:0;background:transparent;color:#8290a6;font-size:11px}.bw-series-editor{margin:8px;padding:8px;border:1px solid #cfdaef;border-radius:9px;background:#f8faff}.bw-series-editor input{width:100%;box-sizing:border-box;margin-bottom:6px}.bw-series-editor div{display:flex;gap:6px}.bw-series-editor button{flex:1;padding:6px}
.bw-toolbar{display:flex;align-items:center;gap:12px;padding:7px 12px;min-height:0;border-bottom:1px solid #e7ebf2}.bw-toolbar>div{flex:1;min-width:0}.bw-toolbar h2{margin:0 0 2px;font-size:15px;line-height:20px}.bw-toolbar p{margin:0;color:#929eb1;font-size:11px;line-height:15px}.bw-toolbar input{width:min(240px,30vw);height:28px;min-height:0;box-sizing:border-box;padding:0 8px;font-size:12px;border:1px solid #d7deea;border-radius:5px;background:white}
.bw-table-wrap{overflow:auto;max-height:calc(100vh - 235px)}.bw-table{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:14px}.bw-table th{position:sticky;top:0;z-index:3;background:#f8f9fc;border-bottom:1px solid #dfe5ee;border-right:1px solid #e7ebf2;padding:0;white-space:nowrap;text-align:left}.bw-table th:first-child,.bw-table td:first-child{position:sticky;left:0;z-index:4;text-align:center;background:#fafbfe}.bw-th{position:relative;display:flex;align-items:center;gap:5px;padding:12px 14px 12px 10px;overflow:hidden}.bw-th>span{overflow:hidden;text-overflow:ellipsis}.bw-filter-toggle{border:0;background:transparent;color:#7c899e;padding:2px 4px;flex:none}.bw-filter-toggle.active{color:#315ed1}.bw-col-resizer{position:absolute;right:-3px;top:0;width:8px;height:100%;cursor:col-resize;z-index:8}.bw-col-resizer:hover,.bw-col-resizer.dragging{background:#6c8ee8}.bw-table td{height:60px;border-bottom:1px solid #e7ebf2;border-right:1px solid #edf0f5;padding:5px 8px;vertical-align:top;background:#fff;overflow:hidden}.bw-table input,.bw-table textarea,.bw-table select{width:100%;box-sizing:border-box;border:1px solid transparent;background:transparent;border-radius:7px;padding:8px;font:inherit;color:#283447}.bw-table textarea{height:82px;resize:vertical}.bw-table input:focus,.bw-table textarea:focus,.bw-table select:focus{outline:2px solid #87a8ff;border-color:transparent;background:#fff}.bw-add-row{margin:12px 18px 18px;border:1px dashed #b8c4d8;background:#fff;border-radius:9px;padding:10px 18px;color:#52627b}
.bw-row-index{display:flex;flex-direction:column;align-items:center;gap:5px;color:#7f8ca0}.bw-row-delete{width:22px!important;min-width:22px!important;height:22px!important;min-height:22px;padding:0!important;border:0!important;border-radius:50%!important;background:#f2f4f8!important;color:#8c98aa!important;font-size:13px;line-height:22px;cursor:pointer}.bw-row-delete:hover{background:#fde8e8!important;color:#c63d3d!important}
.bw-images{position:relative;display:flex;gap:6px;align-items:center;min-width:170px;min-height:50px;padding:0 24px 12px 0;flex-wrap:wrap}.bw-thumb{position:relative;width:46px;height:46px;flex:0 0 46px}.bw-thumb img{width:46px;height:46px;object-fit:cover;border-radius:7px;border:1px solid #d7deea;cursor:zoom-in}.bw-thumb button{position:absolute;right:-5px;top:-5px;width:18px!important;min-width:18px!important;max-width:18px;height:18px!important;min-height:18px;padding:0!important;margin:0;border:0;border-radius:50%!important;background:#253550;color:white;font-size:12px;line-height:18px;text-align:center;display:block;box-shadow:0 1px 3px #16243a38}.bw-upload{width:46px;height:46px;flex:0 0 46px;border:1px dashed #aebbd0;border-radius:7px;display:grid;place-items:center;color:#6f7d93;cursor:pointer;font-size:20px}.bw-upload input{display:none}.bw-group-download{position:absolute;right:2px;bottom:1px;width:21px!important;min-width:21px!important;height:21px!important;min-height:21px;padding:0!important;border:0!important;border-radius:50%!important;background:#edf2fa!important;color:#51627c!important;font-size:14px;line-height:21px;display:grid!important;place-items:center;cursor:pointer}.bw-group-download:hover{background:#dfe8f7!important;color:#264fa7!important}
.bw-filter-menu{position:fixed;z-index:50;width:240px;background:white;border:1px solid #d7deea;border-radius:11px;box-shadow:0 12px 35px #1c2d4a2b;padding:12px}.bw-filter-menu h4{margin:0 0 8px}.bw-filter-options{max-height:220px;overflow:auto;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:6px 0}.bw-filter-options label{display:flex;gap:8px;padding:6px 2px}.bw-filter-actions{display:flex;gap:7px;margin-top:10px}.bw-filter-actions button{flex:1}.bw-image-dialog{width:min(90vw,980px);border:0;border-radius:14px;padding:18px;background:#121721}.bw-image-dialog::backdrop{background:#07101dcc}.bw-image-dialog img{display:block;max-width:100%;max-height:78vh;margin:auto;object-fit:contain}.bw-image-dialog>a{display:block;width:max-content;margin:14px auto 0;color:white}.bw-image-dialog>button{position:absolute;right:14px;top:10px;border:0;background:#ffffff1f;color:#fff;font-size:25px;border-radius:50%;width:36px;height:36px}.hidden{display:none!important}
@media(max-width:900px){.bw-layout{grid-template-columns:200px minmax(0,1fr)}.bw-sidebar{max-height:calc(100vh - 96px)}.bw-toolbar{align-items:flex-start;flex-direction:column}.bw-toolbar input{width:100%}}

/* Fixed record height: image-heavy cells scroll internally instead of stretching rows. */
.bw-table tbody tr{height:112px}
.bw-table tbody td{height:112px;max-height:112px;box-sizing:border-box}
.bw-table tbody textarea{height:100px;resize:none;overflow:auto}
.bw-table tbody .bw-images{align-content:flex-start;align-items:flex-start;height:100px;min-height:100px;max-height:100px;padding:1px 25px 8px 1px;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;scrollbar-gutter:stable}
.bw-table tbody .bw-images::-webkit-scrollbar{width:6px}
.bw-table tbody .bw-images::-webkit-scrollbar-thumb{background:#c7d0df;border-radius:6px}
.bw-table tbody .bw-group-download{position:sticky;right:2px;bottom:1px;margin-left:auto}

/* Base-style people and colored single-select fields. */
.bw-select-button{width:100%;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:2px 6px;border:1px solid transparent;border-radius:5px;background:transparent;color:#253145;font:inherit;text-align:left;cursor:pointer}.bw-select-button:hover{background:#f7f8fb}.bw-select-button:focus{outline:2px solid #2f6fec;background:#fff}.bw-select-button>span{min-width:0;display:flex;align-items:center}.bw-select-button>b{font-size:17px;line-height:1;color:#526175;font-weight:500;transform:translateY(-1px)}
.bw-person-chip{display:flex;align-items:center;gap:5px;min-width:0}.bw-person-chip i,.bw-member-option i{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;color:#fff;font-size:9px;font-style:normal;background:linear-gradient(145deg,#6d55ec,#2eb9bc)}.bw-person-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bw-person-chip i.pink,.bw-member-option i.pink{background:linear-gradient(145deg,#cf2a91,#ec88da)}.bw-person-chip i.violet,.bw-member-option i.violet{background:linear-gradient(145deg,#7c4ce4,#27b7bb)}.bw-person-chip i.green,.bw-member-option i.green{background:linear-gradient(145deg,#148c47,#16b5cf)}.bw-person-chip i.purple,.bw-member-option i.purple{background:linear-gradient(145deg,#7752e8,#37b6bd)}.bw-person-chip i.photo,.bw-member-option i.photo{background:linear-gradient(145deg,#b98b62,#f1d6a6)}
.bw-status-chip,.bw-priority-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:12px;font-size:13px;font-weight:600;white-space:nowrap}.bw-status-chip.linked{background:#dce6ff}.bw-status-chip.checked{background:#ffe8d0}.bw-status-chip.pending{background:#d5f2fb}.bw-status-chip.custom-0{background:#e8defa}.bw-status-chip.custom-1{background:#dff3e5}.bw-status-chip.custom-2{background:#fde3ed}.bw-status-chip.custom-3{background:#fff1c7}.bw-status-chip.custom-4{background:#e1edf8}.bw-priority-chip{background:#eef0f3;color:#f2ad00;font-size:14px;line-height:1;letter-spacing:0;padding:0 7px}
.bw-choice-menu{position:fixed;z-index:80;width:248px;max-height:330px;overflow:hidden;background:#fff;border:1px solid #d5dae3;border-radius:9px;box-shadow:0 10px 28px #1d2c4630}.bw-choice-search{display:block!important;width:100%!important;height:42px!important;box-sizing:border-box!important;border:0!important;border-bottom:1px solid #e1e5eb!important;border-radius:0!important;padding:0 12px!important;background:#fff!important;font-size:14px!important;outline:0!important}.bw-choice-options{padding:6px;max-height:278px;overflow:auto}.bw-choice-options button{display:flex;width:100%;min-height:34px;box-sizing:border-box;align-items:center;border:0;border-radius:6px;background:#fff;padding:4px 8px;text-align:left;color:#242c38;font:inherit;cursor:pointer}.bw-choice-options button:hover,.bw-choice-options button.selected{background:#f0f1f3}.bw-choice-empty{color:#8a95a6!important}.bw-member-option{gap:8px}.bw-member-option i{width:32px;height:32px;flex-basis:32px;font-size:11px}.bw-member-option span{display:flex;min-width:0;flex-direction:column}.bw-member-option strong{font-size:14px;font-weight:500}.bw-member-option small{color:#9099a7;margin-top:0;font-size:12px}.bw-tag-option{justify-content:flex-start!important}.bw-choice-menu.priority .bw-choice-options,.bw-choice-menu.progress .bw-choice-options{padding:6px}.bw-choice-menu.priority .bw-choice-empty,.bw-choice-menu.progress .bw-choice-empty{min-height:30px}
.bw-choice-no-results{padding:10px 9px;color:#8a95a6;font-size:13px;line-height:1.4}
.bw-row-export{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px;padding:0!important;border:0;border-radius:5px;background:#eaf0ff;color:#345ac4;font-size:17px;line-height:24px;cursor:pointer}.bw-row-export:hover{background:#dce6ff}.bw-row-export:disabled{opacity:.55;cursor:wait}
/* Flat workspace: override the global main padding only in this workbench. */
body:has(#batch-workbench.active){background:#fff}
main:has(>#batch-workbench.active){padding:0;max-width:none;width:100%;box-sizing:border-box;background:#fff}
#batch-workbench{margin:0;padding:0;background:#fff}
#batch-workbench .bw-sidebar,#batch-workbench .bw-main{border:0;border-radius:0;box-shadow:none;margin:0;padding:0;background:#fff}
#batch-workbench .bw-table-wrap{margin:0;padding:0;max-height:calc(100vh - 180px)}
#batch-workbench .bw-add-row{margin:8px 10px}
#batch-workbench .bw-layout{display:block;position:relative}
#batch-workbench .bw-sidebar{position:absolute;left:8px;top:48px;z-index:45;width:min(280px,calc(100vw - 16px));max-height:calc(100vh - 145px);overflow:auto;border:1px solid #e1e7f0;border-radius:10px;box-shadow:0 12px 32px #25355026}
#batch-workbench .bw-sidebar[hidden]{display:none!important}
#batch-workbench .bw-series-list{max-height:calc(100vh - 205px)}
#batch-workbench .bw-sidebar-toggle{flex:none;height:28px;min-height:28px;padding:0 9px;border:0;border-radius:5px;background:#eef2ff;color:#3454c5;font-size:12px;cursor:pointer}
#batch-workbench .bw-sidebar-toggle[aria-expanded="true"]{background:#dce6ff}
#batch-workbench .bw-work-nav{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #e7ebf2;flex-wrap:wrap;font-size:12px}
#batch-workbench .bw-work-nav button{padding:5px 10px;min-height:28px;border:0;border-radius:5px;background:#f5f6f9;color:#52627b;font-size:13px;cursor:pointer}
#batch-workbench .bw-work-nav button.active{background:#eaf0ff;color:#3454c5;font-weight:600}
#batch-workbench .bw-work-nav label{margin-left:12px;display:flex;gap:6px;align-items:center}
#batch-workbench .bw-work-nav input{font:inherit;padding:4px;border:1px solid #dce2ec;border-radius:4px}
#batch-workbench .bw-work-nav small{color:#8895a8}
#batch-workbench .bw-readonly{display:block;padding:8px;color:#52627b;font-size:13px}
#batch-workbench .bw-table-wrap{max-height:calc(100vh - 225px)}
#batch-workbench #bwAddRow[hidden],#batch-workbench #bwSidebarToggle[hidden]{display:none!important}
#batch-workbench .bw-work-done td{background:#edf8ee!important}
#batch-workbench #bwDailyActions{display:flex;gap:8px;margin-left:auto;white-space:nowrap}
#batch-workbench #bwDailyActions[hidden],#batch-workbench #bwPlanning[hidden],#batch-workbench #bwHistory[hidden],#batch-workbench .bw-row-delete[hidden]{display:none!important}
#batch-workbench #bwDailyActions button,#batch-workbench #bwDateLink{border:1px solid #dce3ef;border-radius:5px;background:#fff;padding:6px 10px;font-size:13px;color:#3454a5;cursor:pointer}
#batch-workbench #bwDailyActions button:disabled{opacity:.45;cursor:default}
#batch-workbench #bwHistory{position:absolute;z-index:60;left:10px;max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:6px;background:white;border:1px solid #dce3ef;border-radius:8px;padding:12px;box-shadow:0 8px 24px #23344d22}
#batch-workbench #bwHistory button{border:0;background:#f3f6fc;padding:8px;cursor:pointer}
#batch-workbench .bw-history-image{width:46px;height:46px;object-fit:cover;margin:3px;cursor:zoom-in}
#batch-workbench .bw-history-text{white-space:pre-wrap;max-height:120px;overflow:auto;font-size:13px;padding:6px}
#batch-workbench #bwTitle{display:flex;align-items:center;gap:8px;white-space:nowrap}
#batch-workbench .bw-count-block{display:inline-flex;align-items:center;box-sizing:border-box;border:1px solid #dce3ef;border-radius:5px;background:#fff;padding:6px 10px;font-size:13px;line-height:normal;font-weight:400;color:#3454a5}
#batch-workbench #bwDateLink{line-height:normal;font-weight:400}
#batch-workbench #bwDailyActions{flex:0 0 auto;margin-left:0}
#batch-workbench #bwSearch{margin-left:auto;flex:0 1 240px}
#batch-workbench .bw-toolbar{flex-direction:row;align-items:center}
#batch-workbench .bw-toolbar>div:first-of-type{flex:0 1 auto}
@media(max-width:800px){#batch-workbench .bw-toolbar{flex-wrap:wrap}#batch-workbench #bwTitle{flex-wrap:wrap}#batch-workbench #bwSearch{margin-left:auto}}
#batch-workbench .bw-toolbar>div:first-of-type:has(#bwDateLink){display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex:0 0 auto}
#batch-workbench .bw-toolbar:has(#bwDateLink){flex-wrap:wrap}
#batch-workbench .bw-toolbar:has(#bwDateLink) #bwMeta{display:inline-flex;align-items:center;border:1px solid #dce3ef;border-radius:5px;background:#fff;padding:6px 10px;font-size:13px;line-height:normal;color:#929eb1;white-space:nowrap}
#batch-workbench .bw-toolbar:has(#bwDateLink) #bwTitle{margin:0}
body.is-batch-only-user .topbar .nav-left,body.is-batch-only-user .topbar .nav-menu,body.is-batch-only-user .topbar .management-menu,body.is-batch-only-user .topbar .nav-right,body.is-batch-only-user .topbar [data-view]:not([data-view="batch-workbench"]),body.is-batch-only-user .topbar #managementMenuToggle{display:none!important}
body.is-batch-only-user main>.view:not(#batch-workbench):not(#batch-profile):not(#chair-new):not(#chair-about):not(#chair-todo):not(#chair-home){display:none!important}
#batchOnlyLogout[hidden]{display:none!important}
#batchOnlyLogout{margin-left:auto;border:1px solid #dce3ef;border-radius:5px;padding:6px 12px;background:#fff;color:#52627b}
.bw-sync-bar{display:flex;align-items:center;gap:12px;padding:5px 12px;color:#65788e;background:#f4f8fc;font-size:12px;min-height:24px}
.bw-sync-bar button{border:1px solid #b6c7e5;border-radius:5px;background:#fff;padding:4px 10px;cursor:pointer}
.bw-sync-bar button[hidden]{display:none!important}
body.is-batch-only-user .topbar .tabs{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;width:100%;max-width:none;gap:16px}
body.is-batch-only-user .topbar .nav-center{grid-column:1;grid-row:1;position:static!important;transform:none!important;justify-content:flex-start!important;width:auto;min-width:0;overflow:visible}
body.is-batch-only-user .topbar .bw-work-nav{grid-column:2;grid-row:1;display:flex;justify-content:center;gap:4px;padding:3px;background:#f2f5f9;border-radius:7px;white-space:nowrap}
body.is-batch-only-user .topbar .bw-work-nav button{border:0;border-radius:5px;padding:7px 14px;background:transparent;color:var(--muted);font-size:14px;cursor:pointer}
body.is-batch-only-user .topbar .bw-work-nav button.active{background:#fff;color:var(--accent);box-shadow:0 1px 4px #20304012;font-weight:600}
body.is-batch-only-user .topbar #bwPlanning{display:none!important}
body.is-batch-only-user .topbar #batchOnlyLogout{grid-column:3;grid-row:1;justify-self:end;margin:0}
body.is-batch-only-user .topbar{padding:10px 16px}
@media(max-width:540px){body.is-batch-only-user .topbar .tabs{gap:6px;grid-template-columns:auto 1fr auto}body.is-batch-only-user .topbar .bw-work-nav button{padding:6px;font-size:12px}body.is-batch-only-user .topbar .tab{font-size:12px;padding:4px}body.is-batch-only-user .topbar #batchOnlyLogout{font-size:12px;padding:5px}}
body.is-batch-only-user .topbar .bw-work-nav,body.is-batch-only-user .topbar .bw-work-nav button{border-radius:0!important;transition:none!important}
body.is-batch-only-user .topbar #batchOnlyLogout{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;text-align:left;border-radius:0}
.bw-account-avatar{display:grid;place-items:center;width:32px;height:32px;background:#d449a2;color:#fff;font-size:12px;font-weight:600;overflow:hidden;border-radius:0}
.bw-account-avatar img{width:100%;height:100%;object-fit:cover}
.bw-account-name{display:flex;flex-direction:column;gap:1px;font-size:14px;color:var(--text)}
.bw-account-name small{font-size:11px;color:var(--muted);font-weight:400}
body.is-batch-only-user #batch-profile.active{display:block!important;min-height:calc(100vh - 85px);background:white}

/* Keep table scrolling responsive while initial shared state is loading. */
#bwLayout.bw-sync-locked button,#bwLayout.bw-sync-locked input,#bwLayout.bw-sync-locked select,#bwLayout.bw-sync-locked textarea{pointer-events:none}
