/* One business field per column; wide tables scroll within their own region. */
.data-table th{white-space:nowrap}
.data-table td{min-width:100px;max-width:320px;overflow-wrap:break-word}
.data-table td:has(>a:not(.button)){min-width:160px}
.data-table .op-cell{min-width:120px}
.data-table td:has(>.row-actions){position:sticky;right:0;z-index:1;min-width:150px;box-shadow:-4px 0 7px #203a5d08}
.table-scroll{max-width:100%;overscroll-behavior-inline:contain}
.filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.filter-grid{grid-template-columns:minmax(0,1fr)}}
/* Task child pages share one horizontal menu above the full-width content. */
.wf-task-layout{grid-template-columns:minmax(0,1fr);gap:12px}
.wf-task-nav{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:6px;min-width:0}
.wf-task-nav a{display:flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:7px 10px;border:1px solid #d4deed;border-radius:4px;background:#fff;color:#284568;text-align:center;font-size:14px;line-height:20px}
.wf-task-nav a:hover{background:#f3f7fd;border-color:#aabfdf}
.wf-task-nav a.active,.wf-task-nav a.active:hover{background:#2672ef;border-color:#2672ef;color:#fff;font-weight:600}
@media(max-width:1100px){.wf-task-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.wf-task-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
.task-overview{padding:20px}
.task-fact-group+.task-fact-group{margin-top:20px;padding-top:16px;border-top:1px solid #e5eaf2}
.task-fact-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;margin-bottom:8px}
.task-fact-heading h2{margin:0;font-size:15px;font-weight:600;color:#1d2939}
.task-fact-heading button{min-height:32px;padding:4px 14px;font-size:14px}
.task-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;margin:0}
.task-fact{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;align-items:baseline;min-height:44px;padding:10px 0;font-size:14px;line-height:24px}
.task-fact dt{color:#697586;text-align:right;font-weight:400}
.task-fact dd{margin:0;color:#243247;overflow-wrap:anywhere}
.task-fact-wide{grid-column:1/-1}
main:has(.wf-task-layout)>.page-header{min-height:56px;padding:12px 20px;margin-bottom:12px}
.wf-task-main{gap:12px}
.wf-task-main .reference-query{margin:0!important;padding:16px}
.wf-task-main .reference-query input,.wf-task-main .reference-query select{height:36px;min-height:36px}
.wf-task-main .reference-query .filter-actions button{height:36px;min-height:36px}
.wf-task-main .list-toolbar{min-height:52px;padding:10px 16px}
.wf-task-main .filter-chips{padding:10px 16px 0;margin:0}
.wf-task-main .empty{min-height:160px;padding:28px 20px}
.wf-task-main .empty p:empty{display:none}
.wf-task-main .reference-page-actions{margin-right:auto}
.tm-picker{display:grid!important;grid-template-columns:90px minmax(0,1fr) 120px;gap:16px;align-items:center;padding-bottom:12px;border-bottom:1px solid #e5eaf2}
.tm-picker strong{font-size:14px;font-weight:500}.tm-picker label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;color:#697586}.tm-picker select{width:100%;min-width:0}
@media(max-width:600px){.tm-picker{grid-template-columns:1fr!important}.tm-picker strong{grid-column:1/-1}}
@media(max-width:1100px){.task-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.task-overview{padding:16px}.task-facts{grid-template-columns:minmax(0,1fr)}.task-fact{grid-template-columns:84px minmax(0,1fr)}}
/* Task tabs remain one row, with local scrolling only on narrow screens. */
.wf-task-nav{display:flex;flex-wrap:nowrap;gap:4px;padding:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.wf-task-nav a{flex:1 0 88px;min-height:34px;padding:6px 10px;white-space:nowrap;font-size:14px;line-height:20px}
.requirement-overview .requirement-copy{margin:0;line-height:1.7;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#243247}
.requirement-overview .requirement-empty{margin:0;font-size:14px;line-height:24px;color:#86909c}
.wf-task-main:has(.requirement-overview)>.page-header{padding:12px 20px;min-height:56px}
.wf-task-main:has(.requirement-overview)>.page-header h2{font-size:16px;margin:0;font-weight:600}
.wf-task-main:has(.requirement-overview)>.page-header .actions{gap:8px;flex-wrap:wrap}
.requirement-overview .table-scroll{min-height:0}
.requirement-heading{flex-wrap:wrap;margin-bottom:12px}
.requirement-heading h1,.requirement-heading h2{font-size:15px;font-weight:600;margin:0;color:#1d2939}
.requirement-heading .actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
.requirement-overview .task-fact-wide dd{white-space:pre-wrap}
.ds-editor{align-items:start;gap:16px;grid-template-columns:230px minmax(0,1fr)}
.ds-document{min-width:0;padding:16px!important}.ds-document>h2{font-size:16px;margin:0 0 16px}
.ds-table{margin-bottom:20px;min-width:0}.ds-table .list-toolbar{padding:8px 0;min-height:44px}.ds-table h3{font-size:14px;font-weight:600;margin:0}
.ds-table .table-scroll{min-height:0;max-height:360px}.ds-table table{font-size:13px}.ds-table td,.ds-table th{padding:8px 12px}
.ds-notes{border-top:1px solid #e5eaf2;padding-top:12px}.ds-notes summary{cursor:pointer;color:#52647a;font-size:14px}.ds-notes textarea{min-height:100px!important;height:120px}.ds-notes .form-grid{margin-top:12px!important}.ds-notes p{white-space:pre-wrap;line-height:1.7}
.ds-instruction-tabs{display:flex;gap:4px;overflow-x:auto}.ds-instruction-tabs a{flex:1 0 auto;text-align:center;padding:8px 12px;border:1px solid #d4deed;border-radius:4px;background:white;color:#284568;text-decoration:none;font-size:14px}.ds-instruction-tabs a.active{background:#2672ef;color:white;border-color:#2672ef}
.ds-check-result,.ds-empty-note{margin:8px 0 0;padding:8px 0;color:#52647a;font-size:14px;line-height:24px}
.ds-check-result{color:#237347}.ds-check .table-scroll{min-height:0}
@media(max-width:900px){.ds-editor{grid-template-columns:minmax(0,1fr)}.ds-editor .tb-chapters{max-height:180px;position:static}}
