/* RD is the primary interaction reference; Dongjia keeps its own navigation and brand. */
:root{--workspace-purple:#8052a0;--workspace-purple-soft:#f0eaf6;--workspace-red:#b64552;--workspace-red-soft:#fbe6e8;--workspace-motion:160ms;--workspace-surface:#fff}
.workspace-menu{position:relative;display:inline-block;font-size:14px;max-width:100%;z-index:12}.workspace-menu>summary{list-style:none;border:1px solid var(--border);border-radius:10px;padding:9px 14px;cursor:pointer;background:var(--workspace-surface);font-weight:600;min-height:44px}.workspace-menu>summary::after{content:' ▾'}.workspace-menu>summary::-webkit-details-marker{display:none}.workspace-menu-body{position:absolute;top:calc(100% + 6px);right:0;width:min(290px,calc(100vw - 40px));max-height:65dvh;overflow:auto;padding:14px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 40px #20364e22}.workspace-menu-body label{display:flex;align-items:center;gap:10px;padding:8px 0}.workspace-menu-body input[type=checkbox]{width:18px;min-height:18px;margin:0}.workspace-menu-body button{margin:3px}.workspace-menu-body .actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}.workspace-menu-body .actions button{width:100%;text-align:left}
.workspace-table-tools{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin:8px 0}.workspace-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:14px;max-height:70dvh;background:#fff}.workspace-records{min-width:0;grid-column:1/-1}.workspace-table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:0!important;font-size:14px;background:white}.workspace-table th,.workspace-table td{width:var(--workspace-column-width)!important;min-width:var(--workspace-column-width)!important;max-width:var(--workspace-column-width)!important;overflow-wrap:anywhere;vertical-align:middle;padding:12px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);position:relative}.workspace-table th{position:sticky;top:0;background:#f0f4f3;text-align:left;z-index:2;padding-right:20px}.workspace-table td button{border:0;text-align:left;background:transparent;width:100%;padding:4px;white-space:normal;word-break:break-word}.workspace-table .workspace-resize{position:absolute;right:-1px;top:0;width:16px;min-width:16px;height:100%;min-height:30px;padding:0;border:0;border-radius:0;cursor:col-resize;touch-action:none;background:transparent;z-index:4}.workspace-resize:after{content:'';display:block;height:24px;width:3px;margin:auto;background:#9bacb7;border-radius:2px}.workspace-resize:hover:after,.workspace-resize:focus:after{background:var(--workspace-purple)}
.workspace-save-state{position:fixed;right:24px;bottom:14px;z-index:15;background:#edf5f0;color:#285640;border:1px solid #c8ddd0;border-radius:10px;padding:7px 12px;margin:0;font-size:12px;pointer-events:none}.workspace-save-state[data-state=saving]{background:#f0eaf6;color:#714e88}.workspace-save-state[data-state=error]{background:#fbe6e8;color:#9b303e}.workspace-save-state[data-state=warning]{background:#fff5dc;color:#755b20}.workspace-draft-status{font-size:13px;color:#805c22;margin:8px 0 0}.workspace-draft-status:empty{display:none}.workspace-discard{position:sticky;bottom:0;border:1px solid #e1c387;background:#fff8e9;border-radius:12px;padding:18px;margin-top:16px;z-index:8}.workspace-discard p{margin:8px 0}.workspace-discard button{margin-right:8px}.workspace-row-changed>td,.workspace-row-changed>th{animation:workspace-row-change 1.4s ease-in-out 3}.workspace-row-changed>.workspace-cell-changed{outline:2px solid var(--workspace-red);outline-offset:-2px;animation:workspace-cell-change 1.4s ease-in-out 3}
@keyframes workspace-row-change{0%,100%{box-shadow:inset 0 0 0 999px #8052a02b}50%{box-shadow:inset 0 0 0 999px #8052a006}}
@keyframes workspace-cell-change{0%,100%{box-shadow:inset 0 0 0 999px #b6455238}50%{box-shadow:inset 0 0 0 999px #b6455210}}
button:active:not(:disabled){transform:scale(.98)}.workspace-menu[open]>.workspace-menu-body{animation:workspace-menu-in var(--workspace-motion) ease-out}@keyframes workspace-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.workspace-table td small{display:block}.workspace-table tr:hover>td{box-shadow:inset 0 0 0 999px #20364e03}.workspace-table td.workspace-cell-changed{box-shadow:none}.schedule-command-bar .workspace-menu{margin-left:auto}.schedule-matrix.workspace-table .schedule-row-name,.schedule-matrix.workspace-table .schedule-corner{width:var(--workspace-column-width)!important;min-width:var(--workspace-column-width)!important;max-width:var(--workspace-column-width)!important}.schedule-matrix.workspace-table .schedule-item-name{max-width:calc(var(--workspace-column-width) - 34px)}.workspace-table .schedule-project-info{padding-right:18px}.workspace-table-tools:has(+.claim-table-scroll){justify-content:flex-end}
@media(max-width:700px){.workspace-table-scroll{max-height:65dvh}.workspace-table{font-size:14px}.workspace-table td,.workspace-table th{padding:10px}.workspace-table-tools{flex-wrap:wrap}.workspace-save-state{right:12px;bottom:10px;max-width:calc(100vw - 24px)}dialog{max-height:90dvh;overflow:auto;padding:20px}.workspace-menu-body{right:0}.workspace-table td button{min-height:44px}.workspace-resize:after{height:32px}}
@media(prefers-reduced-motion:reduce){.workspace-row-changed>td,.workspace-row-changed>th,.workspace-row-changed>.workspace-cell-changed{animation:none;background:var(--workspace-purple-soft)}.workspace-row-changed>.workspace-cell-changed{background:var(--workspace-red-soft)}.workspace-menu[open]>.workspace-menu-body{animation:none}button:active:not(:disabled){transform:none}}
@media print{.workspace-table-tools,.workspace-resize,.workspace-save-state,.workspace-draft-status{display:none!important}.workspace-table-scroll{overflow:visible;max-height:none}.workspace-row-changed>td,.workspace-row-changed>th{animation:none}}

.schedule-command-bar{overflow:visible;flex-wrap:wrap}.schedule-command-bar .schedule-toolbar{flex:1 1 540px;flex-wrap:wrap}.schedule-command-bar .workspace-menu{flex:none}.schedule-command-bar .workspace-menu-body{z-index:20}.schedule-matrix.workspace-table .schedule-project{min-width:var(--workspace-column-width)!important;width:var(--workspace-column-width)!important;max-width:var(--workspace-column-width)!important}
@media(max-width:700px){.schedule-command-bar .schedule-toolbar{order:4;flex-basis:100%;gap:8px}.schedule-command-bar .schedule-toolbar>input{width:100%;flex-basis:100%}.schedule-command-bar .schedule-field{flex:1}.schedule-command-bar input[type=date]{width:125px}.schedule-command-bar .schedule-toggle{min-height:44px}}
@media(prefers-reduced-motion:reduce){.workspace-row-changed>td,.workspace-row-changed>th{box-shadow:inset 0 0 0 999px #8052a02b}.workspace-row-changed>.workspace-cell-changed{box-shadow:inset 0 0 0 999px #b6455238}}

.workspace-menu[open]{z-index:40}

.workspace-record-table th:first-child,.workspace-record-table td:first-child{position:sticky;left:0;background:#fff;z-index:1}.workspace-record-table thead th:first-child{top:0;background:#f0f4f3;z-index:3}
@media(prefers-reduced-motion:reduce){.workspace-table.workspace-table .workspace-row-changed>.workspace-cell-changed{background:var(--workspace-red-soft)!important;outline:2px solid var(--workspace-red);outline-offset:-2px;box-shadow:inset 0 0 0 999px #b6455238}}

.project-progress{display:grid;gap:4px}.project-progress progress{display:block;width:min(100%,9rem);height:6px;accent-color:var(--accent,#315874)}
