.workspacePage:has(>.transferBoard){grid-template-columns:minmax(0,1fr)}
.transferBoard{--tb-in:#315ce7;--tb-in-bg:#eef3ff;--tb-out:#91611e;--tb-out-bg:#fff6e8;--tb-warn:#b7353f;--tb-warn-bg:#fff1f1;min-width:0;color:var(--text,#202934);padding:20px 0;letter-spacing:0}.transferBoard *,.tbDialog *{box-sizing:border-box;letter-spacing:0}.transferBoard button,.tbDialog button{font:inherit;cursor:pointer}.transferBoard button:disabled{cursor:default;opacity:.55}.transferBoard svg,.tbDialog svg{flex-shrink:0;vertical-align:middle}.tbHeader{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 4px 22px}.tbHeader h2{font-size:23px;line-height:1.3;margin:0 0 8px}.tbHeader p{margin:0;color:var(--muted,#7d8695);font-size:14px}.tbHeaderActions{display:flex;gap:12px;align-items:center}.tbIconButton{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;padding:8px;border:1px solid var(--border,#dce1e9);border-radius:7px;background:var(--surface,#fff);color:var(--muted,#7d8695)}.tbMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-bottom:28px}.tbMetric{padding:18px 20px;border:1px solid var(--border,#e7eaf0);border-radius:8px;background:var(--surface,#fff);text-align:left;color:var(--text,#202934);min-width:0}.tbMetric>span{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--muted,#7d8695);min-height:32px}.tbMetric strong{display:block;font-size:29px;line-height:1.3;margin-top:6px}.tbMetric-incoming{background:var(--tb-in-bg);color:var(--tb-in)}.tbMetric-outgoing{background:var(--tb-out-bg);color:var(--tb-out)}.tbMetric-incoming>span,.tbMetric-outgoing>span{color:inherit}.tbWorkbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border,#dce1e9);gap:12px}.tbTabs{display:flex;gap:24px;min-width:0;overflow-x:auto}.tbTabs button{display:flex;align-items:center;gap:8px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted,#7d8695);padding:12px 0 16px;font-size:14px;font-weight:600;white-space:nowrap;border-radius:0}.tbTabs button[aria-selected=true]{color:var(--primary,#127e73);border-bottom-color:currentColor}.tbExport{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted,#7d8695);padding:10px 0;font-size:13px}.tbFilters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:22px 0 16px}.tbChoice{position:relative;min-width:180px;max-width:300px;font-size:13px}.tbChoice>button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 14px;border:1px solid var(--border,#dce1e9);border-radius:8px;background:var(--surface,#fff);color:var(--text,#202934);min-height:42px;text-align:left}.tbChoice>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tbChoice>button[aria-expanded=true]{border-color:var(--primary,#127e73)}.tbOptions{position:absolute;z-index:40;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:min(320px,calc(100vw - 40px));max-height:300px;overflow:auto;padding:6px;border:1px solid var(--border,#dce1e9);border-radius:8px;background:var(--surface,#fff);box-shadow:0 10px 24px #10213c20}.tbOptions>button{display:block;width:100%;border:0;border-radius:5px;padding:10px;text-align:left;color:var(--text,#202934);background:transparent;font-size:13px;overflow-wrap:anywhere}.tbOptions>.tbActiveOption{background:var(--border-soft,#f3f6f9)}.tbOptions>button[aria-selected=true]{color:var(--primary,#127e73);font-weight:600;background:var(--primary-soft,#e5f3ef)}.tbCheck{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:13px;color:var(--muted,#7d8695)}.tbCheck input{width:16px;height:16px;margin:0;accent-color:var(--primary,#127e73)}.tbSearch{display:flex;gap:9px;align-items:center;flex:1;min-width:230px;padding:0 12px;border:1px solid var(--border,#dce1e9);border-radius:8px;background:var(--surface,#fff);color:var(--muted,#7d8695);min-height:42px}.transferBoard .tbSearch input{min-width:0;width:100%;border:0;border-radius:0;outline:0;background:transparent;color:var(--text,#202934);font:inherit;font-size:13px;padding:10px 0;box-shadow:none}.tbSearch:focus-within{outline:2px solid var(--primary,#127e73);outline-offset:2px}.tbResults{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:0 2px 16px;color:var(--muted,#7d8695);font-size:12px}.tbResults>div{display:flex;gap:14px}.tbTextButton{padding:4px 0;background:transparent;border:0;color:var(--primary,#127e73);font-size:12px!important}.tbSharedNote{margin:0 0 16px;padding:10px 12px;border-left:3px solid var(--primary,#127e73);background:var(--primary-soft,#e5f3ef);color:var(--text,#202934);font-size:12px}.tbTableWrap{max-width:100%;overflow-x:auto}.transferBoard table{border-collapse:collapse;width:100%;min-width:760px;table-layout:fixed;font-size:13px}.transferBoard th,.transferBoard td{padding:16px 14px;text-align:left;border-bottom:1px solid var(--border-soft,var(--border,#e7eaf0));white-space:normal;overflow-wrap:anywhere!important;word-break:normal}.transferBoard th{font-size:11px;color:var(--muted,#7d8695);font-weight:500;background:var(--surface-alt,#f7f9fb)}.transferBoard th:first-child{width:34%}.transferBoard th:last-child{width:18%}.transferBoard td{vertical-align:top}.transferBoard td small{display:block;margin-top:6px;font-size:11px;color:var(--muted,#7d8695);font-weight:400}.tbClientName{border:0;background:transparent;padding:0;color:var(--text,#202934);text-align:left;font-weight:600!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.tbClientName:hover{color:var(--primary,#127e73);text-decoration:underline}.tbNeedsReview td:first-child{box-shadow:inset 3px 0 var(--tb-warn)}.tbRowBadges{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.tbBadge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:5px;font-size:11px;line-height:1.3;font-weight:600;white-space:nowrap;background:var(--surface-alt,#f0f3f6);color:var(--muted,#647981)}.tb-incoming{background:var(--tb-in-bg);color:var(--tb-in)}.tb-outgoing{background:var(--tb-out-bg);color:var(--tb-out)}.tb-staying{background:var(--primary-soft,#e5f3ef);color:var(--primary,#127e73)}.tb-unassigned{background:var(--surface-alt,#f0f3f6);color:var(--muted,#647981)}.tbReview{display:inline-flex;gap:5px;align-items:center;color:var(--tb-warn);font-size:11px}.tbReview svg{width:14px;height:14px}.tbMuted{color:var(--muted,#7d8695)}.tbDirector{border:1px solid var(--border,#e7eaf0);border-radius:8px;background:var(--surface,#fff);margin-bottom:10px;overflow:hidden;min-width:0}.tbStatusGroup{border-top:1px solid var(--border,#e7eaf0)}.tbGroupHead{display:flex;align-items:center;gap:12px;width:100%;padding:18px 16px;border:0;background:transparent;color:var(--text,#202934);text-align:left;min-width:0}.tbGroupName{font-size:14px;font-weight:600;overflow-wrap:anywhere;flex:1;min-width:0}.tbGroupCount{font-size:12px;color:var(--muted,#7d8695);white-space:nowrap}.tbGroupBadges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:45%}.tbEmpty{padding:42px 10px;text-align:center;color:var(--muted,#7d8695)}.tbFooter{margin-top:20px;color:var(--muted,#7d8695);font-size:11px}.tbError{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px;border-left:3px solid var(--tb-warn);color:var(--tb-warn);background:var(--tb-warn-bg);margin-bottom:20px}.tbError button{border:1px solid currentColor;background:transparent;padding:7px 12px;border-radius:6px;color:inherit}.tbDialog{--tb-in:#315ce7;--tb-in-bg:#eef3ff;--tb-out:#91611e;--tb-out-bg:#fff6e8;--tb-warn:#b7353f;max-width:740px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;border:1px solid var(--border,#dce1e9);border-radius:8px;padding:24px;color:var(--text,#202934);background:var(--surface,#fff);box-shadow:0 24px 80px #0003}.tbDialog::backdrop{background:#10182080}.tbDialog header{display:flex;justify-content:space-between;gap:16px;align-items:center}.tbDialog h2{font-size:21px;line-height:1.5;overflow-wrap:anywhere;margin:20px 0}.tbDialog h3{font-size:15px;display:flex;align-items:center;gap:8px}.tbDetailGrid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}.tbDetailGrid dt{font-size:12px;color:var(--muted,#7d8695);line-height:1.5}.tbDetailGrid dd{font-size:14px;margin:7px 0 0;overflow-wrap:anywhere;line-height:1.5}.tbDetailReview{border-top:1px solid var(--border,#dce1e9);border-bottom:1px solid var(--border,#dce1e9);padding:8px 0;color:var(--tb-warn)}.tbDialog li{font-size:13px;line-height:1.6;margin-bottom:8px;overflow-wrap:anywhere}.tbMatched{color:var(--primary,#127e73)}.transferBoard button:focus-visible,.tbDialog button:focus-visible{outline:2px solid var(--primary,#127e73);outline-offset:3px}.transferBoard .tbSearch input:focus-visible{outline:0}
html[data-theme=night] .transferBoard,html[data-theme=night] .tbDialog,body[data-theme=night] .transferBoard,body[data-theme=night] .tbDialog{--tb-in:#9eb9ff;--tb-in-bg:#24314a;--tb-out:#f1cb8b;--tb-out-bg:#352e23;--tb-warn:#ffa3a8;--tb-warn-bg:#39252a}
@media(max-width:900px){.tbFilters{gap:10px}.tbSearch{order:3;flex-basis:100%}.tbGroupHead{flex-wrap:wrap}.tbGroupBadges{max-width:none;width:100%;justify-content:flex-start;padding-left:30px}.tbMetrics{gap:8px}.tbMetric{padding:14px}.tbTabs{gap:18px}}
@media(max-width:600px){.transferBoard{padding:14px 0}.tbHeader{align-items:flex-start;flex-wrap:wrap;padding-bottom:18px}.tbHeaderActions{max-width:100%;flex:1;justify-content:flex-end}.tbHeaderActions .tbChoice{min-width:0;max-width:260px}.tbMetrics{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:20px}.tbMetric>span{font-size:11px;min-height:32px}.tbMetric strong{font-size:26px}.tbMetric>span svg{width:16px;height:16px}.tbTabs{gap:16px}.tbTabs button{font-size:12px;gap:5px}.tbTabs button:nth-child(2){white-space:normal;min-width:116px;max-width:130px}.tbTabs button svg{display:none}.tbExport{font-size:12px}.tbExport span{display:none}.tbFilters>.tbChoice{flex:1;min-width:160px;max-width:100%}.tbFilters>.tbChoice:last-child{order:4;flex-basis:100%}.tbOptions{width:100%;max-width:100%}.tbSearch{min-width:0}.tbResults{align-items:flex-start}.tbResults>div{flex-wrap:wrap}.tbGroupHead{padding:15px 12px;gap:8px}.tbGroupName{font-size:13px}.tbGroupCount{font-size:11px}.tbDetailGrid{grid-template-columns:1fr;gap:16px}.tbDialog{padding:20px}.tbDialog h2{font-size:18px}}
