.work-layout{max-width:1700px;margin:30px auto;padding:0 24px}.work-toolbar,.work-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}.work-filters label{flex:1;min-width:140px}.work-scroll{overflow:auto;max-height:68vh;border:1px solid #e0e4ec;border-radius:12px}.work-table{border-collapse:separate;border-spacing:0;min-width:1600px;width:100%;font-size:13px}.work-table td,.work-table th{padding:12px;text-align:left;border-bottom:1px solid #e5e9f0;vertical-align:top;max-width:260px;overflow-wrap:anywhere}.work-table th{position:sticky;top:0;background:#f2f5fa;z-index:1;white-space:nowrap}.work-table td:first-child,.work-table th:first-child{position:sticky;left:0;background:#fff}.work-table th:first-child{z-index:2;background:#f2f5fa}.work-table input[type=checkbox]{width:19px;height:19px;accent-color:#198754}.work-taken td,.work-taken td:first-child{background:#e7f6eb}.work-bm{min-width:160px;font-variant-numeric:tabular-nums}.work-warning{padding:15px;border-radius:12px;background:#fff6df;color:#775311;line-height:1.5}.work-pagination{display:flex;gap:15px;align-items:center;justify-content:flex-end;margin-top:18px}#workDialog{border:1px solid #dde2eb;border-radius:20px;padding:28px;max-height:90vh;overflow:auto;width:min(880px,94vw)}#workDialog::backdrop{background:#14203188}#workFields{display:grid;grid-template-columns:1fr 1fr;gap:16px}#workFields input[type=checkbox]{display:block;width:22px;height:22px}#workHistory p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}#workHistory>div{padding:14px 0;border-bottom:1px solid #e5e9f0}#workNotice,#workEditError{color:#9e392c}#workSearch{min-width:240px}@media(max-width:650px){#workFields{grid-template-columns:1fr}.work-layout{padding:0 10px}.work-pagination{justify-content:flex-start;flex-wrap:wrap}}
.work-filters label:last-child{flex:2;min-width:240px}#workSearch{min-width:0;width:100%}.work-table td:nth-child(2),.work-table td:nth-child(4),.work-table td:nth-child(6),.work-table td:nth-child(10){white-space:nowrap}.work-table td:nth-child(3){min-width:120px}.work-table td:nth-child(11){min-width:170px}.work-table td:nth-child(12),.work-table td:nth-child(15){min-width:160px}#workFields label{display:flex;flex-direction:column;gap:8px}#workFields select{width:100%}
.work-filters label{display:flex;flex-direction:column;gap:8px}.work-table td:nth-child(16){min-width:230px}

.work-table{min-width:2400px}.work-table td{padding:3px 4px;vertical-align:middle}.work-table th{padding:10px 7px}.work-table .grid-cell{padding:8px 6px;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;box-shadow:none;width:100%;min-width:80px;font:inherit;color:inherit;min-height:36px}.work-table .grid-cell:focus{border-color:#3980dc;background:#fff;outline:2px solid #3980dc33}.work-table td[data-field=bm_id]{min-width:190px}.work-table td[data-field=date]{min-width:180px}.work-table td[data-field=result]{min-width:125px}.work-table td[data-field=company]{min-width:220px}.work-table td[data-field=link1],.work-table td[data-field=link2]{min-width:160px}.work-table td[data-field=year]{min-width:80px}.work-table td[data-field=taken]{text-align:center}.grid-new td{background:#f4f8ff}.grid-selected td{box-shadow:inset 0 2px #558cdc,inset 0 -2px #558cdc}.grid-dirty td{border-bottom-color:#eab65e}.grid-dirty .grid-cell{background:#fff9eb}.grid-cell[aria-invalid=true]{border-color:#b94343}.grid-actions,.grid-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.grid-actions label{display:flex;gap:10px;align-items:center;margin:0}.grid-actions select{min-width:220px}.grid-selection{padding:12px 16px;background:#eef3fa;border-radius:12px}.grid-selection button{padding:9px 14px}.grid-detail{padding:6px 9px}.grid-jump{font-size:11px;display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid-placeholder td{border-top:1px dashed #b4c9e3}.grid-placeholder .grid-cell::placeholder{color:#8091a9}.work-table td:first-child{min-width:42px;text-align:center}.work-table td:nth-child(3){min-width:140px}.work-table input[type=checkbox]{cursor:pointer}#gridSaveStatus{flex:1;min-width:160px}#gridSaveStatus.error{color:#aa342b}#gridSaveStatus.ok{color:#19784d}.grid-actions [hidden]{display:none!important}
.work-layout .card{padding:22px}.work-layout h1{font-size:30px;margin:10px 0}.work-warning{padding:10px 14px;font-size:13px}.grid-filter-panel summary{cursor:pointer;font-weight:600;padding:7px 0}.work-toolbar{margin:12px 0}.grid-actions,.grid-selection{margin:10px 0}.work-layout .eyebrow{font-size:10px}.work-scroll{max-height:70vh}
.work-table .grid-cell[type=checkbox]{width:19px;height:19px;min-width:19px;min-height:19px;margin:0 auto;display:block}.grid-selection{position:sticky;top:var(--peaky-header-height,90px);z-index:8;box-shadow:0 3px 10px #172e4b0a}

.work-table .grid-cell.grid-ready-status{background:#d9f3e2;color:#146c38;font-weight:600}.work-table .grid-cell.grid-ready-status:focus{background:#ccebd7}

/* Compact spreadsheet columns; avoid auto-layout distributing empty space. */
.work-table{table-layout:fixed;width:1934px;min-width:0}
.work-table td,.work-table th,.work-table td[data-field],.work-table td:nth-child(n){min-width:0;max-width:none;padding:3px 4px;overflow:hidden}
.work-table th{padding:9px 4px;font-size:12px}
.work-table .grid-cell{min-width:0;min-height:32px;padding:6px 4px}
.work-table td[data-field=employee]{white-space:nowrap;text-overflow:ellipsis}
.work-table td:first-child,.work-table th:first-child,.work-table td[data-field=taken],.work-table th:nth-child(7){text-align:center;padding-left:3px;padding-right:3px}
.work-table td:first-child input,.work-table th:first-child input{display:block;margin:0 auto}
.work-table .grid-jump{font-size:10px;line-height:15px;margin:0 4px}
.work-table .grid-detail{padding:4px 6px;font-size:12px}

.work-table{width:2114px;min-width:2114px}

.work-table textarea.grid-cell{display:block;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:20px;box-sizing:border-box}.work-table td[data-field=employee]{white-space:normal;overflow-wrap:anywhere}.work-sort{display:flex;gap:8px;align-items:center}.work-sort select{width:200px}


.work-table{width:1948px;min-width:1948px}
.work-table col:nth-child(1){width:34px}.work-table col:nth-child(2){width:174px}.work-table col:nth-child(3){width:80px}.work-table col:nth-child(4){width:190px}.work-table col:nth-child(5){width:100px}.work-table col:nth-child(6){width:100px}.work-table col:nth-child(7){width:66px}.work-table col:nth-child(8){width:110px}.work-table col:nth-child(9){width:56px}.work-table col:nth-child(10){width:70px}.work-table col:nth-child(11){width:56px}.work-table col:nth-child(13){width:58px}.work-table col:nth-child(14){width:170px}.work-table col:nth-child(15){width:140px}.work-table col:nth-child(16){width:170px}.work-table col:nth-child(17){width:190px}.work-table col:nth-child(18){width:130px}.work-table col:nth-child(19){width:54px}
.work-table .grid-cell[hidden],.work-table .grid-link-edit[hidden]{display:none!important}.work-table td[data-field=link1] .grid-jump,.work-table td[data-field=link2] .grid-jump{display:inline-block;margin:0 3px;font-size:11px;vertical-align:middle}.grid-link-edit{padding:3px 4px;font-size:11px;background:transparent;border:0;color:#526a87;box-shadow:none}.work-table td[data-field=date] .grid-cell{padding-left:3px;padding-right:2px;font-size:12px}

.work-table td[data-field=date] .grid-cell{width:156px;max-width:100%}

/* Compact controls; table geometry and full BM IDs stay unchanged. */
body::before{display:none!important}.work-layout{margin:20px auto;padding:0 20px}.work-layout>.card{padding:16px 20px}.work-layout h1{font-size:26px;margin:4px 0 12px}.work-layout .eyebrow{font-size:9px}.grid-actions,.grid-selection,.work-toolbar{gap:8px;margin:8px 0}.grid-actions label,.work-toolbar label{font-size:12px;margin:0}.grid-actions select{min-width:160px;max-width:210px}.grid-actions button,.grid-selection button,.work-toolbar button{font-size:12px;padding:7px 10px;min-height:34px;box-shadow:none}.grid-actions select,.work-toolbar select,.work-filters input,.work-filters select{font-size:12px;padding:7px 9px;min-height:34px}.work-sort select{width:175px}.grid-selection{padding:7px 10px;border-radius:8px;position:static;box-shadow:none;font-size:12px}.grid-selection .small{font-size:10px}.grid-filter-panel{margin:6px 0 10px}.grid-filter-panel summary{font-size:13px;padding:5px 0}#gridSaveStatus{font-size:12px;min-width:120px}#workNotice:empty{display:none}.work-filters{margin:8px 0;gap:8px}.work-filters label{margin:0;font-size:12px}.work-pagination{font-size:12px;margin-top:10px}.work-pagination button{padding:7px 10px;font-size:12px}#gridDelete{color:#a94343}#gridSelectionBar [hidden]{display:none!important}@media(max-width:650px){.work-layout{padding:0 8px}.work-layout>.card{padding:12px}.grid-selection .small{display:none}.grid-actions select{min-width:120px}}

.work-table{width:1992px;min-width:1992px}.work-table col:nth-child(12){width:44px}.work-table td[data-field=rk],.work-table th:nth-child(12){text-align:center}.work-table td[data-field=rk] input{display:block;margin:0 auto;width:19px;height:19px;min-height:19px;padding:0}

/* Single-record transfer: kept in the dialog top layer, above the row editor. */
.work-current-owner{padding:11px 14px;border:1px solid #e0e6ef;background:#f5f7fb;border-radius:10px;font-size:13px;color:#44546b;overflow-wrap:anywhere}
#workTransferDialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:28px;border:1px solid #dce3ed;border-radius:20px;overflow:auto;box-shadow:0 24px 80px #14203138;color:#172337;background:#fff}
#workTransferDialog::backdrop{background:#15233766;backdrop-filter:blur(3px)}
#workTransferDialog [hidden]{display:none!important}
.work-transfer-heading{margin-bottom:20px}.work-transfer-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:700;color:#6c7c91}.work-transfer-heading h2{margin:8px 0;font-size:26px;line-height:1.2;letter-spacing:-.025em}.work-transfer-heading p{margin:0;font-size:14px;line-height:1.5;color:#63748b}
.work-transfer-record{display:flex;flex-direction:column;gap:5px;padding:15px 16px;background:#f3f6fa;border:1px solid #e2e8f0;border-radius:12px;overflow-wrap:anywhere}.work-transfer-record strong{font-size:14px;font-variant-numeric:tabular-nums}.work-transfer-record span{font-size:12px;line-height:1.5;color:#62728a}
.work-transfer-owner{display:flex;flex-direction:column;gap:5px;margin:20px 0}.work-transfer-owner>span{font-size:12px;color:#718096}.work-transfer-owner>strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.work-transfer-target{display:flex;flex-direction:column;gap:8px;margin:0;font-size:13px;font-weight:600}.work-transfer-target select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;font:inherit;font-weight:400;border:1px solid #ced9e7;border-radius:10px;background:#fff;color:#172337}.work-transfer-target select:focus{outline:3px solid #367ae31c;border-color:#437dd0}
.work-transfer-note{margin:15px 0 0;font-size:12px;line-height:1.65;color:#66768c}#workTransferError{margin:12px 0 0;color:#a33b32;font-size:13px;line-height:1.5;overflow-wrap:anywhere}#workTransferError:empty{display:none}
.work-transfer-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:18px;border-top:1px solid #e8edf3}.work-transfer-actions button{min-height:42px;padding:10px 15px;font-size:13px;border-radius:10px}.work-transfer-actions button:disabled{cursor:default;opacity:.55}#workTransferRefresh{margin-right:auto}
@media(max-width:540px){#workTransferDialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px 18px;border-radius:16px}.work-transfer-heading h2{font-size:23px}.work-transfer-actions button{flex:1}#workTransferRefresh{flex-basis:100%;margin:0}}
