/* Reference workspace geometry. Kept separate from print styles. */
@media screen {
 :root{--blue:#1d5183;--ink:rgba(0,0,0,.85);--muted:rgba(0,0,0,.65);--line:#e2e7ec;--bg:#eef1f5;--nav:#122c44}
 body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;color:var(--ink)}
 .shell{grid-template-columns:210px minmax(0,1fr)}
 .sidebar .brand{height:60px;padding:0 12px;background:#0e2438}.sidebar .brand strong{font-size:18px;line-height:60px;font-weight:600;white-space:nowrap}
 .nav-search,.sidebar-foot{display:none}.nav{padding-top:0;background:#122c44}.nav summary,.nav .nav-direct{min-height:48px;height:48px;padding:0 14px;display:flex;align-items:center;gap:10px;font-weight:400;font-size:14px;color:#c9d2db}
 .nav .nav-direct span{flex:1;text-align:left}.nav details[open]{background:#1a3a58}.nav button{height:48px;min-height:48px;padding:0 16px 0 36px;font-size:14px;display:flex;align-items:center;text-align:left}
 .nav summary:hover{color:white}.nav .nav-direct.active,.nav button.active{background:var(--blue);color:#fff}
 .topbar{height:60px;min-height:60px;padding:0 14px;background:#16385a}.header-title{gap:16px}.product-title{font-size:14px}.company-select{height:32px;max-width:230px}.top-right{gap:10px}.topbar .username{font-size:14px}
 .tabs{height:50px;flex-basis:50px;padding:0;box-shadow:0 2px 5px #00000008}.tabs .tab-list{padding:0 16px}.tabs .tab-list button{height:49px;padding:0 23px;font-size:14px;flex-shrink:0}.tabs .tab-list button.active:after{left:8px;right:8px;height:2px}
 .tab-scroll{width:22px;min-width:22px}.tab-scroll:disabled{display:none}.tabs .tab-refresh{width:40px;min-width:40px;height:49px;border:0;border-left:1px solid #e2e7ec;border-radius:0;background:white;color:#5c6b7a}
 .content,.content.table-page{padding:10px;gap:8px}.content>.heading{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%)}
 .page-panel{border-radius:2px}.page-panel>.reference-filters{padding:12px 16px;border-bottom:8px solid var(--bg);gap:12px 22px;display:flex;align-items:center;flex-wrap:wrap}
 .reference-filters .filter{display:flex;align-items:center;gap:0;min-width:0;flex:1 1 25%;max-width:calc(33.333% - 15px)}
 .reference-filters .filter>span{flex-shrink:0;white-space:nowrap;margin-right:6px;color:#5c6b7a}
 .reference-filters input,.reference-filters select,.personnel-filters #search,.personnel-filters #employee-department,.personnel-filters #employee-type{height:32px;width:100%;max-width:none;min-width:0;flex:1 1 0;padding:4px 10px;font-size:14px;border:1px solid #c9d2db}
 .reference-filters input:focus,.reference-filters select:focus,.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#2a659e;box-shadow:0 0 0 2px #1d518322;outline:none}
 .reference-filters .range{min-width:0;flex:1;display:flex;align-items:center;gap:4px}.reference-filters .range input{width:116px;padding-left:6px;padding-right:2px}
 .reference-filters .filter-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}.filter-actions button{padding:4px 12px;min-height:32px}
 .filter-actions .ghost{padding:4px 0;color:var(--blue);border:0}.filter-actions .ghost span{padding-left:4px}
 .reference-filters:has(.filter:nth-of-type(3)){display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .reference-filters:has(.filter:nth-of-type(3)) .filter{max-width:none;width:auto;flex-basis:auto}
 .reference-filters:has(.filter:nth-of-type(3)) .filter-actions{grid-column:4;grid-row:1;margin-left:0;justify-self:start}
 .reference-filters select:has(option:checked[value=""]){color:#98a4b0}.reference-filters select option{color:#5c6b7a}
 .reference-filters .filter-extra{order:2;max-width:none!important;flex-basis:auto!important}
 .reference-filters:has(.filter:only-of-type) .filter{max-width:330px;flex-basis:330px}.reference-filters:has(.filter:only-of-type) .filter-actions{margin-left:0}
 .reference-family{display:flex;flex-wrap:wrap;padding:10px 12px;background:white;gap:0;border-radius:2px;flex-shrink:0}
 .reference-family button{padding:5px 14px;min-height:32px;border-radius:0;border:1px solid #c9d2db;margin-left:-1px;line-height:20px;font-size:14px}
 .reference-family button:first-child{border-radius:3px 0 0 3px;margin-left:0}.reference-family button:last-child{border-radius:0 3px 3px 0}.reference-family button.active{position:relative;background:var(--blue);border-color:var(--blue);color:white}
 .reference-family button:hover{position:relative;color:var(--blue);border-color:var(--blue)}.reference-family button.active:hover{color:white}
 .project-tabs{gap:0!important;border-bottom:1px solid #e2e7ec;padding:0!important;margin-bottom:16px}.project-tabs button{border:0;border-radius:0;background:white;padding:10px 14px;min-height:42px;font-size:14px}.project-tabs button.active{color:var(--blue);background:white;border-bottom:2px solid var(--blue)}
 #pack-options .pack-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}.pack-check-item{border:0;background:white;border-radius:0;padding:6px 0}.pack-check-item b{font-size:14px;font-weight:400}.pack-check-item small{font-size:12px}.pack-group-switches{padding-top:8px;font-size:13px}
 .page-panel>.toolbar{padding:6px 6px;min-height:44px;gap:4px}.toolbar button{border-radius:3px;min-height:32px}.view-controls{gap:2px;margin-right:8px}.toolbar>.page-help{order:4}
 .selection-bar{margin:0 6px 6px;min-height:38px;font-size:14px;padding:7px 12px}.selection-info{height:14px;width:14px;line-height:14px}
 .table-region>.table-wrap{margin:0 6px;width:calc(100% - 12px);border:1px solid #e2e7ec;border-bottom:0;min-height:150px}
 .table-wrap table{color:#5c6b7a;font-size:14px}.table-wrap th{padding:13px 18px 13px 12px;font-size:14px;line-height:22px;color:#20303f;background:#f5f7fa;border-color:#e2e7ec}
 .table-wrap td,.table-region td{padding:12px;font-size:14px;line-height:22px;border-color:#e2e7ec;vertical-align:middle}
 .table-wrap th .column-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:not([data-table-wrap="true"]) .table-wrap td:not(.actions){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .table-wrap td.text-cell{text-align:center}.table-wrap .reference-fixed-left{position:sticky;z-index:2;background:white}.table-wrap thead .reference-fixed-left{z-index:5;background:#f5f7fa}
 .table-wrap tr:hover>td{background:#f5f7fa}.table-wrap tr.is-selected>td{background:#eaf1f8}.table-wrap td.actions{padding:12px 4px;box-shadow:-5px 0 8px -5px #0002}.actions .ghost{font-size:14px;padding:0 8px}.actions .danger{color:#b03a37}
 .table-wrap th[data-sort]{font-weight:600}.reference-fixed-left:has(+ :not(.reference-fixed-left)){box-shadow:4px 0 6px -5px #0002}
 .tfoot,.table-region>.tfoot{justify-content:flex-end;min-height:58px;padding:14px 6px;border:0;gap:10px;font-size:14px}.pagination{gap:8px}.pagination button,.pagination select{height:26px;min-height:26px;padding:2px 8px;font-size:14px;border-color:#c9d2db}.pagination button:not(.active){border-color:transparent}.pagination .page-number{min-width:24px}.pagination select{min-width:94px}
 .pagination-total{white-space:nowrap}.page-jump{display:flex;align-items:center;gap:6px;white-space:nowrap}.page-jump input{width:46px;height:26px;padding:2px 5px;text-align:center;font-size:14px;border:1px solid #c9d2db}
 .reference-form-modal{max-width:calc(100vw - 40px);max-height:calc(100vh - 48px);border-radius:2px}.modal-backdrop{padding:24px 20px;background:#0006}.modal-header{min-height:54px;padding:14px 24px;border-bottom:1px solid #e2e7ec}.modal-header h2{font-size:16px;font-weight:500}.modal-body{padding:20px 24px}.modal-foot{padding:10px 16px;border-top:1px solid #e2e7ec}
 .reference-form-modal .form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.reference-form-modal .form-grid>.field{display:grid;grid-template-columns:var(--reference-label-width,230px) minmax(0,1fr);gap:8px;margin:0;grid-column:1/-1;align-items:start;min-width:0}
 .reference-form-modal .form-grid>.field>label{display:flex;justify-content:flex-end;font-size:14px;text-align:right;line-height:22px;padding:5px 0;color:#20303f;font-weight:400}.reference-form-modal .form-grid>.field>label:after{content:'：'}.reference-form-modal .required{order:-1;float:none;margin:0 4px 0 0;color:#b03a37}
 .reference-form-modal .form-grid>.field>input,.reference-form-modal .form-grid>.field>select{width:100%;height:32px;font-size:14px;border-color:#c9d2db;min-width:0}.reference-form-modal textarea{min-height:80px;font-size:14px;border-color:#c9d2db}.reference-form-modal .field>small{grid-column:2;font-size:12px;color:#8a97a3;line-height:16px}.reference-form-modal .file-control{min-width:0}.file-control input[type=file]{max-width:100%}
 .vertical-form-modal .form-grid>.field{grid-template-columns:minmax(0,1fr);gap:6px}.vertical-form-modal .form-grid>.field>label{text-align:left;justify-content:flex-start;padding:0}.vertical-form-modal .field>small{grid-column:1}.vertical-form-modal .form-grid{gap:18px}
 .project-form-modal .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-form-modal .form-grid>.field{grid-column:auto;grid-template-columns:120px minmax(0,1fr)}.project-form-modal .form-grid>.field.full{grid-column:1/-1}.project-form-modal .field>label{font-size:13px!important}
 .readonly-form input:disabled,.readonly-form select:disabled,.readonly-form textarea:disabled{color:#6b7a89;background:#f2f4f7;border-color:#c9d2db;cursor:default;opacity:1;-webkit-text-fill-color:#6b7a89}
 .modal.drawer{position:fixed;right:0;top:0;bottom:0;max-height:100vh;max-width:100vw;margin:0;border-radius:0}.drawer .form-grid>.field{grid-template-columns:170px minmax(0,1fr)}
 .modal-window-controls{display:flex;gap:6px}.modal.modal-maximized{position:fixed;inset:0;width:100vw!important;max-width:100vw;max-height:100vh;height:100vh;border-radius:0}.header-settings .ui-icon{width:18px;height:18px}.appearance-settings{display:grid;gap:24px}.appearance-settings>label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.appearance-settings select{width:120px}.appearance-settings input{width:16px;height:16px}
 .allocation-commands{padding:6px 12px;background:white;display:flex;gap:8px;flex-shrink:0}.inline-report-variants{display:flex;margin-right:8px}.inline-report-variants button{border-radius:0;border-color:#c9d2db;margin-left:-1px}.inline-report-variants .active{color:var(--blue);border-color:var(--blue);position:relative}.holiday-guide{font-size:13px;line-height:20px;color:#b03a37;margin:6px 12px 0}
 .company-card{background:white;border-radius:2px;padding:0 24px 20px;flex-shrink:0}.company-heading{display:flex;align-items:center;gap:12px;min-height:58px;border-bottom:1px solid #e2e7ec;margin:0 -24px 24px;padding:0 24px}.company-heading h2{font-size:16px;font-weight:500;flex:1;margin:0}.company-description{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px;margin:0}.company-pair{display:flex;align-items:baseline;min-width:0;font-size:14px;line-height:24px}.company-pair dt{color:#20303f;flex-shrink:0}.company-pair dd{margin:0;color:#5c6b7a;overflow-wrap:anywhere}.company-wide{display:block;margin-top:24px}.company-service{padding-top:24px}.company-service dl{margin:0;display:grid;gap:24px}.company-card .rowcode{font-size:14px}
 .scope-tabs{display:flex;gap:24px;padding:0 16px;border-bottom:1px solid #e2e7ec;background:white;flex-shrink:0}.scope-tabs button{border:0;border-radius:0;background:white;min-height:46px;position:relative;padding:10px 0}.scope-tabs button.active{color:var(--blue)}.scope-tabs button.active:after{content:'';height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--blue)}
 .column-setting-actions{display:flex;gap:4px}.column-options{max-height:min(560px,65vh);overflow:auto;min-width:230px}.column-options label{font-size:13px}
 .table-wrap-setting{display:flex;gap:6px;font-size:13px;padding:8px;white-space:nowrap;border-top:1px solid #e2e7ec}.table-wrap-setting input{width:14px;height:14px}
 #ui-update{position:fixed;right:16px;top:64px;z-index:10020;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid #c3d4e4;background:#eaf1f8;box-shadow:0 3px 12px #0002;border-radius:3px;font-size:14px}
 #ui-update button{white-space:nowrap;color:#1d5183;border-color:#c3d4e4;background:white}
 .dashboard-filter{display:flex;align-items:center;gap:24px;background:white;padding:12px 24px}.dashboard-filter label{display:flex;align-items:center;gap:8px;font-size:14px}.dashboard-filter input{width:300px;height:32px}
 .overview-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.overview-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}
 .overview-card{background:white;border-radius:2px;min-width:0}.overview-card h2{margin:0;padding:18px 24px;border-bottom:1px solid #e2e7ec;font-size:16px;font-weight:500}.overview-chart{padding:20px 12px;min-height:300px;display:flex;align-items:center;justify-content:center}.overview-chart svg{width:100%;height:auto;max-height:330px}.overview-bottom .overview-chart{min-height:330px}
 .reference-pie{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%;gap:10px}.pie-disc{width:220px;max-width:88%;aspect-ratio:1;border-radius:50%}.reference-pie ul{list-style:none;padding:0;margin:0;max-width:90%;font-size:12px;color:#6b7a89}.reference-pie li{display:flex;align-items:center;gap:6px;line-height:20px}.reference-pie li i{width:8px;height:8px;flex-shrink:0}.reference-pie li span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:165px}.reference-pie li b{font-weight:400;white-space:nowrap}.overview-bottom .reference-pie{flex-wrap:nowrap;gap:30px}
 html[data-density=comfortable] .table-wrap td{padding-top:12px;padding-bottom:12px}
 html[data-density=compact] .table-wrap td{padding-top:7px;padding-bottom:7px}
 html[data-density=compact] .table-wrap th{padding-top:9px;padding-bottom:9px}
}
@media screen and (max-width:1250px){
 .reference-filters:has(.filter:nth-of-type(3)){display:flex}
 .reference-filters .filter,.reference-filters:has(.filter:nth-of-type(3)) .filter{max-width:calc(50% - 12px);flex-basis:calc(50% - 12px)}.reference-filters .filter-actions{margin-left:0}.reference-filters .filter-extra{max-width:calc(50% - 12px)!important;flex-basis:calc(50% - 12px)!important}
 .company-description{grid-template-columns:repeat(3,minmax(0,1fr))}.company-select{max-width:210px}.project-form-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .overview-top{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-bottom{grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:1000px){.company-description{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar .product-title{max-width:280px;overflow:hidden;text-overflow:ellipsis}.scope-tabs{gap:16px}.scope-tabs button{font-size:13px}}
@media screen and (max-width:760px){
 .shell,.shell.nav-collapsed{grid-template-columns:minmax(0,1fr)}.shell.nav-open>.sidebar{top:44px;width:210px}.topbar{min-height:44px;padding:6px 10px}.topbar .product-title{max-width:230px;font-size:13px}.company-select{max-width:160px}.tabs{height:42px;flex-basis:42px}.tabs .tab-list button,.tabs .tab-refresh{height:41px}
 .reference-filters .filter,.reference-filters:has(.filter:nth-of-type(3)) .filter,.reference-filters:has(.filter:only-of-type) .filter{width:100%;max-width:100%;flex-basis:100%}.reference-filters .filter-extra{max-width:100%!important;flex-basis:100%!important}.reference-filters .filter>span{min-width:80px;white-space:normal}.reference-filters .filter-actions{justify-content:flex-end;width:100%;margin:0}.reference-filters .range input{min-width:0;width:100px}.page-panel>.reference-filters{padding:10px;gap:10px}
 .reference-family{padding:8px;gap:4px}.reference-family button{border-radius:3px!important;margin:0;font-size:13px;padding:4px 9px}.company-card{padding:0 14px 16px}.company-heading{margin:0 -14px 18px;padding:8px 14px}.company-description{grid-template-columns:minmax(0,1fr);gap:12px}.company-service{padding-top:18px}.company-pair{font-size:13px}.company-service dl{gap:12px}
 .reference-form-modal{max-width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.modal-backdrop{padding:10px}.reference-form-modal .form-grid,.project-form-modal .form-grid{grid-template-columns:minmax(0,1fr);gap:14px}.reference-form-modal .form-grid>.field,.drawer .form-grid>.field{grid-template-columns:minmax(0,1fr);gap:6px;grid-column:1/-1}.reference-form-modal .form-grid>.field>label{text-align:left;justify-content:flex-start;padding:0}.reference-form-modal .field>small{grid-column:1}.modal-body{padding:14px}.scope-tabs{flex-wrap:wrap;gap:0 14px}.scope-tabs button{min-height:36px}
 .tfoot,.table-region>.tfoot{gap:8px;justify-content:flex-start}.pagination{gap:4px}.pagination-total{width:100%}.page-jump input{width:36px}.table-wrap td.actions{position:sticky;right:0;min-width:150px}.table-wrap table:has(td.actions) th:last-child{position:sticky;right:0}
 .dashboard-filter{padding:12px;gap:10px;flex-wrap:wrap}.dashboard-filter input{width:150px}.overview-top{grid-template-columns:minmax(0,1fr)}.overview-bottom .reference-pie{flex-wrap:wrap}.overview-chart{min-height:230px}
 #pack-options .pack-check-grid{grid-template-columns:minmax(0,1fr)}.project-tabs{flex-wrap:wrap}.project-tabs button{padding:8px;font-size:13px}
}
.project-attachment-group{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:start;gap:12px;margin:20px 0 28px}.project-attachment-group>label{padding-top:10px;text-align:right}.project-attachment-group .toolbar{padding-top:0!important}.project-file-list{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.project-asset-group{margin-bottom:24px}.project-asset-group .table-wrap{max-height:260px!important}.project-asset-group th{white-space:normal}.project-asset-group td{font-size:14px}.project-asset-group td.empty{height:90px;padding:20px}
/* The project dialog keeps all six tab drafts within one save operation. */
.project-workspace-modal{width:1200px;max-width:calc(100vw - 32px)}
.project-workspace-modal .modal-body{min-width:0;max-height:calc(100vh - 180px)}
.project-workspace-modal .project-tabs{display:flex;flex-wrap:wrap;gap:0;margin-bottom:20px}
.project-workspace-modal .project-tabs button{font-size:14px;padding:10px 16px}
.project-group-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.project-group-heading .toolbar{padding:8px 0;border:0}
.project-link-table{max-height:440px;overflow:auto}
.project-link-table table{width:max-content;min-width:100%}
.project-link-table th,.project-link-table td{padding:12px 10px;white-space:nowrap;font-weight:400}
.project-link-table th{font-weight:600}
.project-link-table input[type=text]{width:160px;min-width:0}
.project-link-table input[type=date]{width:140px;min-width:0}
.project-link-table input[type=number]{width:74px;min-width:0}
.project-link-table input[type=checkbox],.project-link-table input[type=radio],.project-picker input[type=checkbox]{width:16px;height:16px;min-width:0;accent-color:#1d5183}
.project-radio-group,.project-radio-group label,.project-dates,.project-ratio{display:inline-flex;align-items:center;gap:6px}
.project-radio-group{gap:12px}
.project-file-item{display:flex;align-items:center;gap:6px}
.project-picker-backdrop{position:fixed;inset:0;z-index:2000;background:#0006;display:flex;justify-content:center;align-items:center;padding:20px}
.project-picker{width:1000px;max-width:calc(100vw - 40px);max-height:calc(100vh - 40px)}
.project-picker .modal-body{overflow:auto;min-width:0}
.project-picker .table-wrap{max-height:50vh;overflow:auto}
@media(max-width:760px){.project-workspace-modal{max-width:calc(100vw - 20px)}.project-workspace-modal .project-tabs button{padding:8px;font-size:13px}.project-picker-backdrop{padding:10px}.project-picker{max-width:calc(100vw - 20px)}}
.project-workspace-modal .project-tabs{border-bottom:0;flex-wrap:wrap;align-content:flex-start}
.project-workspace-modal .project-tabs button{border:1px solid #c9d2db;border-radius:0;margin-left:-1px;min-height:32px;padding:4px 16px;background:#fff;color:#20303f;line-height:22px}
.project-workspace-modal .project-tabs button:first-child{border-radius:4px 0 0 4px;margin-left:0}
.project-workspace-modal .project-tabs button:last-child{border-radius:0 4px 4px 0}
.project-workspace-modal .project-tabs button.active{background:#1d5183;border-color:#1d5183;color:#fff;position:relative}
.modal-backdrop:has(.project-workspace-modal){align-items:flex-start;padding-top:min(100px,10vh)}
.project-workspace-modal{height:min(764px,calc(100vh - 120px))}
.project-workspace-modal .modal-header{height:48px;min-height:48px;padding:12px 16px}
.project-workspace-modal .modal-body{flex:1;padding:24px;max-height:none}
@media(max-width:760px){.modal-backdrop:has(.project-workspace-modal){padding-top:20px}.project-workspace-modal{height:calc(100vh - 40px)}.project-workspace-modal .modal-body{padding:14px}.project-workspace-modal .project-tabs button{padding:4px 10px}}
.project-workspace-modal .project-workspace{padding:24px 12px 0}
.project-workspace-modal .form-grid{padding:20px 28px 0 30px;gap:24px 8px}
.project-workspace-modal .field[data-field-key=stage]{grid-template-columns:170px minmax(0,1fr)}
.project-workspace-modal .field[data-field-key=stage]>label{white-space:nowrap}
.project-workspace-modal .project-date-control{display:flex;align-items:center;gap:4px;border:1px solid #c9d2db;border-radius:4px;min-width:0}
.project-workspace-modal .project-date-control:has(input:disabled){background:#f2f4f7}
.project-workspace-modal .project-date-control input{border:0;width:50%;padding:4px 5px;min-width:0;background:transparent}
.project-workspace-modal .project-date-control input:disabled::-webkit-calendar-picker-indicator{display:none}
.project-workspace-modal .field[data-field-key=description] textarea{min-height:98px;max-width:804px}
@media(max-width:1024px){.project-workspace-modal .form-grid{padding:14px 0 0;gap:18px}.project-workspace-modal .project-workspace{padding:10px 0 0}}
@media(max-width:760px){.project-workspace-modal .field[data-field-key=stage]{grid-template-columns:minmax(0,1fr)}}
.reference-form-modal .field-error{grid-column:2;color:#b03a37;font-size:14px;line-height:1.5;margin-top:2px}
.vertical-form-modal .field-error{grid-column:1}
.reference-form-modal [aria-invalid=true]{border-color:#b03a37}
.company-form-modal .modal-header{justify-content:flex-start;gap:16px;padding:16px 24px;min-height:58px}
.company-form-modal .modal-header>h2{flex:1}.company-form-modal .modal-window-controls{display:none}
.company-form-modal .modal-body{padding:24px;overflow:auto}
.company-form-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
.company-form-modal .form-grid>.field{display:flex;flex-direction:column;align-items:stretch;gap:8px;grid-column:1/-1}
.company-form-modal .form-grid>.field[hidden]{display:none}
.company-form-modal .form-grid>.field.company-half{grid-column:auto}
.company-form-modal .form-grid>.field>label{justify-content:flex-start;text-align:left;padding:0;line-height:22px}
.company-form-modal .form-grid>.field>label:after{content:none}
.company-form-modal .form-grid>.field>input,.company-form-modal .form-grid>.field>select{height:32px;width:100%}
.company-form-modal .company-attendance{display:flex;align-items:center;gap:12px;min-height:32px;flex-wrap:wrap}
.company-form-modal .company-attendance label,.company-form-modal .company-qualification label{display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap;font-size:14px;line-height:22px}
.company-form-modal .company-attendance input,.company-form-modal .company-qualification input[type=checkbox]{width:16px;height:16px;padding:0;margin:0}
.company-form-modal .company-qualification>label:after{content:none}
.company-form-modal .form-grid>.field>small{grid-column:1/-1}.company-form-modal [hidden]{display:none!important}
.company-form-modal .modal-foot{padding:12px 16px}
.company-badge{border:1px solid #c3d4e4;background:#eaf1f8;color:#1d5183;padding:0 7px;line-height:20px;border-radius:2px;font-size:12px}.company-badge-green{border-color:#bcd9c6;background:#e9f4ee;color:#1e7a4f}
@media(max-width:600px){.company-form-modal .form-grid{grid-template-columns:minmax(0,1fr)}.company-form-modal .form-grid>.field.company-half{grid-column:1/-1}}
@media(max-width:760px){.reference-form-modal .field-error{grid-column:1}}
.project-eligibility-modal{width:760px}.project-eligibility{font-size:14px;line-height:1.8}.project-eligibility p{margin:0 0 12px}.project-eligibility li{padding-bottom:5px}

.form-month-range{display:flex;align-items:center;gap:8px}.form-month-range input{min-width:0;flex:1}

/* File controls use the observed compact upload action, with the native picker retained. */
.reference-upload-button{position:relative;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:1px solid #c9d2db;border-radius:2px;background:#fff;color:#5c6b7a;cursor:pointer;overflow:hidden}
.reference-upload-button:hover{color:#1d5183;border-color:#2a659e}
.reference-upload-button svg{width:14px;height:14px}
.reference-upload-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.reference-upload-button:focus-within{outline:2px solid #c3d4e4;outline-offset:2px}
.file-control>span{display:block;margin-top:5px}.legacy-evidence{grid-column:1/-1;font-size:13px;color:#8a97a3}.legacy-evidence>summary{cursor:pointer}
/* Live-verified dropdowns and two-/three-level choices. */
.reference-choice{position:relative;width:100%;min-width:0}.reference-choice-value{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none;left:0;top:0;padding:0!important;border:0!important}.reference-choice-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;height:32px;padding:4px 11px;background:#fff;border:1px solid #c9d2db;border-radius:4px;text-align:left;color:#5c6b7a;font:inherit;box-shadow:none}.reference-choice-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:14px}.reference-choice-trigger .placeholder{color:#98a4b0}.reference-choice-trigger svg{width:12px;height:12px;color:#98a4b0;flex-shrink:0}.reference-choice-trigger:focus,.reference-choice-trigger[aria-expanded=true]{border-color:#2a659e;box-shadow:0 0 0 2px #1d518320;outline:0}.reference-choice-trigger:disabled{background:#f2f4f7;color:#98a4b0;cursor:not-allowed}.reference-choice-trigger.invalid{border-color:#b03a37}.reference-choice-clear{display:none;position:absolute;right:7px;top:5px;border:0;background:#fff;padding:0;width:22px;height:22px;color:#98a4b0;border-radius:50%}.reference-choice:hover .reference-choice-clear:not([hidden]){display:block}.reference-choice-popup{position:fixed;z-index:10040;background:white;box-shadow:0 6px 16px #0002;border:1px solid #e2e7ec;border-radius:4px;padding:4px 0;color:#5c6b7a;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif}.reference-choice-search{margin:4px 8px 8px!important;width:calc(100% - 16px)!important;min-height:32px!important;height:32px;padding:4px 8px;border:1px solid #c9d2db;border-radius:4px}.reference-choice-options{max-height:260px;overflow:auto}.reference-choice-option{display:block;min-height:32px;width:100%;padding:5px 12px;text-align:left;border:0;border-radius:0;box-shadow:none;background:white;font:inherit;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reference-choice-option:hover,.reference-choice-option.focused{background:#f2f4f7}.reference-choice-option.selected{background:#eaf1f8;color:#1d5183}.reference-choice-empty{text-align:center;color:#98a4b0;padding:20px}.reference-choice-popup.cascade .reference-choice-options{display:flex;overflow-x:auto}.reference-choice-level{min-width:175px;flex:1;max-height:260px;overflow:auto;border-right:1px solid #e2e7ec}.reference-choice-popup.cascade .reference-choice-level:last-child{border:0}.reference-choice-popup.cascade .reference-choice-options>.reference-choice-option{white-space:normal}.reference-choice-level .reference-choice-option{min-width:100%}
body .reference-form-modal .reference-choice-trigger{display:flex;justify-content:space-between;text-align:left;font-weight:400}body .reference-form-modal .reference-choice-trigger>span{flex:1;text-align:left}body .reference-form-modal .reference-choice-trigger svg{width:12px;height:12px;margin:0}body .reference-form-modal .reference-choice-clear{min-width:0;height:22px;padding:0}

/* Shared alignment for regular pages and nested tables. Numeric columns retain
   their explicit right alignment; headers reserve sorting space symmetrically. */
@media screen {
 .table-wrap td:not(.num):not(.money){text-align:center}
 .table-wrap th{padding-left:12px;padding-right:12px}
 .table-wrap th[data-sort],.table-wrap th[aria-sort]{padding-left:20px;padding-right:20px}
 .table-wrap th.num{padding-right:12px}
 .table-wrap table:has(td.actions) th:last-child{padding-left:12px;padding-right:12px}
 .table-wrap .selection-cell{width:50px;min-width:50px;text-align:center;padding:8px!important}
 .project-picker-table table{min-width:650px}
 .project-picker .filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:8px 0 12px}
 .project-picker .filters label{display:flex;align-items:center;gap:8px;min-width:0}
 .project-picker .filters input{width:240px;min-width:0;max-width:100%;height:32px}
 .project-picker .selection-bar{margin:0 0 6px}
 .project-picker .pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding-top:12px}
 .project-link-table td.actions,.project-link-table th.actions{width:80px;min-width:80px}
 .project-link-table .project-radio-group,.project-link-table .project-dates,.project-link-table .project-ratio{vertical-align:middle}
 .project-picker .modal-header [data-picker-close]{border:0;box-shadow:none;width:28px;height:28px;min-height:28px;padding:0;color:#8a97a3}
}

/* Three reference table density choices. */
html[data-density=loose] .table-wrap td{padding-top:18px;padding-bottom:18px}
html[data-density=loose] .table-wrap th{padding-top:18px;padding-bottom:18px}

.column-order-row{display:flex;align-items:center;gap:4px;cursor:grab}.column-order-row>label{flex:1;min-width:0}.column-order-row>button{padding:2px 5px;min-height:24px}.column-order-list{max-height:360px;overflow:auto}

.multiscope-axes{display:flex;gap:40px;padding:16px 20px;flex-wrap:wrap}.multiscope-axes>div{display:flex;gap:24px}.multiscope-axes label{display:flex;align-items:center;gap:7px;cursor:pointer}.multiscope-axes input{width:16px;height:16px;accent-color:#1d5183}

/* Nested selectors keep density scoped to their own table. */
.project-picker-toolbar{display:flex;justify-content:space-between;align-items:center}
.project-picker[data-picker-density="loose"] .project-picker-table td{padding-top:20px;padding-bottom:20px}
.project-picker[data-picker-density="comfortable"] .project-picker-table td{padding-top:16px;padding-bottom:16px}
.project-picker[data-picker-density="compact"] .project-picker-table td{padding-top:8px;padding-bottom:8px}
