/* Business voucher workspaces: compact header, related tabs, full-width detail table. */
.app-workspace :is(.invops-page,.supply-page,.production-page,.delivery-page,.accept-page,.com-page){min-width:0;gap:10px}
.app-workspace :is(.supply-page:has(.supply-doc-list),.production-page,.delivery-page:has(.delivery-list-scroll),.accept-page){height:auto;min-height:0;padding:0;background:transparent}
.app-workspace :is(.invops-heading,.supply-heading,.production-heading,.delivery-heading,.accept-heading,.com-page-heading){min-height:0;padding:0 2px 5px;margin:0;gap:10px}
.app-workspace :is(.invops-heading,.supply-heading,.production-heading,.delivery-heading,.accept-heading,.com-page-heading) h1{font-size:var(--em-font-page);line-height:1.3;margin:2px 0}
.app-workspace :is(.invops-heading,.supply-heading,.production-heading,.delivery-heading,.accept-heading,.com-page-heading) p{font-size:var(--em-font-small);line-height:1.45;margin:0}
.app-workspace :is(.supply-workspace:has(.supply-doc-list),.production-workspace,.delivery-workspace:has(.delivery-list-scroll),.accept-workspace,.invops-layout){display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;min-height:0}
.app-workspace :is(.supply-workspace:has(.supply-doc-list),.production-workspace,.delivery-workspace:has(.delivery-list-scroll),.accept-workspace,.invops-layout)>:is(aside,.supply-list-panel,.production-list-panel,.delivery-list-panel,.accept-list-panel,.invops-list-panel){position:static;min-height:0;max-height:none;overflow:hidden}
.app-workspace :is(.supply-workspace:has(.supply-doc-list),.production-workspace,.delivery-workspace:has(.delivery-list-scroll),.accept-workspace,.invops-layout) :is(.supply-panel-heading,.production-panel-heading,.delivery-list-heading,.accept-list-heading,.invops-list-head){padding:8px 12px;min-height:0;border-bottom:1px solid #e8edf0}
.app-workspace :is(.supply-doc-list,.production-doc-list,.delivery-list-scroll,.accept-list-scroll,.invops-doc-list){display:flex;align-items:stretch;gap:7px;max-height:105px;min-height:0;overflow-x:auto;overflow-y:auto;padding:6px;scrollbar-width:thin}
.app-workspace :is(.supply-doc-card,.production-doc-card,.delivery-list-card,.accept-list-card,.invops-doc-card){flex:0 0 270px;width:270px;max-width:270px;min-height:68px;margin:0;padding:9px 10px;border-radius:6px}
.app-workspace :is(.supply-doc-copy,.production-doc-copy,.delivery-card-copy,.accept-card-copy,.invops-doc-main){min-width:0;gap:4px}
.app-workspace :is(.supply-doc-copy,.production-doc-copy,.delivery-card-copy,.accept-card-copy,.invops-doc-main)>strong{font-size:var(--em-font-ui)}
.app-workspace :is(.supply-detail-panel,.production-detail-panel,.delivery-detail-panel,.accept-detail-panel,.invops-detail-panel,.com-detail){min-height:0;border-radius:8px;overflow:visible;background:#fff}
.app-workspace :is(.supply-detail-panel,.production-detail-panel,.delivery-detail-panel,.accept-detail-panel,.com-detail)>.document-relations{border:0;border-bottom:1px solid #e1e8ed;border-radius:8px 8px 0 0;flex:0 0 auto}
.app-workspace :is(.supply-detail-head,.production-detail-head,.delivery-detail-head,.accept-detail-head,.invops-detail-head,.com-detail-heading){padding:12px 15px;gap:12px;min-height:0;align-items:center;flex-direction:row;flex-wrap:wrap}
.app-workspace :is(.supply-detail-head,.production-detail-head,.delivery-detail-head,.accept-detail-head,.invops-detail-head,.com-detail-heading)>div:first-child{min-width:0;flex:1 1 300px}
.app-workspace :is(.supply-detail-head,.production-detail-head,.delivery-detail-head,.accept-detail-head,.invops-detail-head,.com-detail-heading) h2{font-size:var(--em-font-section);line-height:1.35;margin:4px 0}
.app-workspace :is(.supply-detail-actions,.production-detail-actions,.delivery-detail-actions,.accept-actions,.invops-detail-actions,.com-detail-actions){display:flex;align-items:center;justify-content:flex-end;gap:7px;max-width:none;margin-left:auto;flex-wrap:wrap}
.app-workspace :is(.supply-detail-content,.production-detail-content,.com-tab-body){padding:12px 15px;gap:15px}
.app-workspace :is(.supply-summary-grid,.production-summary-grid,.delivery-summary-grid,.accept-summary-grid,.com-highlights){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;padding:11px 15px;margin:0;background:#f9fbfc;border-bottom:1px solid #e8edf1}
.app-workspace :is(.supply-summary-grid,.production-summary-grid,.delivery-summary-grid,.accept-summary-grid,.com-highlights) .wide{grid-column:1/-1;margin:0}
.app-workspace :is(.supply-summary-grid,.production-summary-grid,.delivery-summary-grid,.accept-summary-grid,.com-highlights) :is(small,dt){font-size:var(--em-font-small);margin:0 0 5px;color:#81909c}
.app-workspace :is(.supply-summary-grid,.production-summary-grid,.delivery-summary-grid,.accept-summary-grid,.com-highlights) :is(strong,dd){font-size:var(--em-font-ui);margin:0;line-height:1.45;font-variant-numeric:tabular-nums}
.app-workspace :is(.supply-table-wrap,.production-table-wrap,.delivery-lines-scroll,.accept-lines-scroll,.invops-lines-scroll,.cat-table-wrap){min-width:0;overscroll-behavior:contain;scrollbar-width:thin}
.app-workspace :is(.supply-table,.production-table,.delivery-lines,.accept-lines,.invops-lines,.cat-table) th{padding:9px 10px;white-space:nowrap;font-size:var(--em-font-table);background:#f4f7fa;letter-spacing:normal}
.app-workspace :is(.supply-table,.production-table,.delivery-lines,.accept-lines,.invops-lines,.cat-table) td{padding:8px 10px;min-width:0;font-size:var(--em-font-table);vertical-align:middle}
.app-workspace :is(.supply-table,.production-table,.delivery-lines,.accept-lines,.invops-lines,.cat-table) tbody tr:hover{background:#f7faf8}
.app-workspace :is(.supply-entry-body,.production-entry-scroll,.delivery-entry-scroll,.invops-entry-body){min-width:0;overscroll-behavior:contain}
.app-workspace :is(.supply-form-grid.compact,.production-form-grid,.delivery-form-grid,.invops-entry .invops-form-grid,.accept-form-grid){grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 13px}
.app-workspace :is(.supply-editor,.production-entry,.delivery-entry,.invops-entry,.accept-editor){border-radius:8px}
.app-workspace :is(.supply-entry-title,.production-entry-title,.delivery-entry-title,.invops-entry-title){padding:10px 14px;gap:10px}
.app-workspace :is(.supply-entry-title,.production-entry-title,.delivery-entry-title,.invops-entry-title) h2{font-size:var(--em-font-section);margin:3px 0}
.app-workspace :is(.supply-form-section,.production-section,.delivery-section,.invops-entry-section){padding:11px 14px}
.app-workspace :is(.supply-form-grid,.production-form-grid,.delivery-form-grid,.invops-form-grid,.accept-form-grid) label{margin:0;font-size:var(--em-font-ui);gap:5px;font-weight:500}
.app-workspace :is(.supply-form-grid,.production-form-grid,.delivery-form-grid,.invops-form-grid,.accept-form-grid) :is(input:not([type=checkbox]),select){height:34px;min-height:34px;padding:6px 9px;font-size:var(--em-current-control-size,var(--em-font-control))}
.app-workspace :is(.supply-form-grid,.production-form-grid,.delivery-form-grid,.invops-form-grid,.accept-form-grid) textarea{min-height:48px;padding:7px 9px;font-size:var(--em-current-control-size,var(--em-font-control))}
.app-workspace :is(.supply-section-title,.production-section-heading,.delivery-section-heading,.invops-section-heading,.accept-section-title){margin-bottom:9px;gap:10px}
.app-workspace :is(.supply-section-title,.production-section-heading,.delivery-section-heading,.invops-section-heading,.accept-section-title) h3{font-size:var(--em-font-heading);margin:0}
.app-workspace :is(.supply-section-title,.production-section-heading,.delivery-section-heading,.invops-section-heading,.accept-section-title) p{font-size:var(--em-font-small);margin:3px 0 0}
.app-workspace :is(.supply-entry-footer,.production-entry-footer,.delivery-entry-footer,.invops-entry-footer,.accept-editor-footer){position:sticky;bottom:0;z-index:3;min-height:48px;padding:9px 14px;border-top:1px solid #dfe7ec;background:#fff;box-shadow:0 -3px 10px #203b2d08;text-align:left;font-size:var(--em-font-small)}
.app-workspace :is(.supply-detail-foot,.production-detail-foot,.delivery-detail-foot,.accept-detail-foot,.invops-detail-foot){padding:10px 14px;gap:12px;font-size:var(--em-font-small);align-items:center;text-align:left}
.app-workspace .com-school-connections{margin-bottom:4px;padding:12px 14px}
.app-workspace .com-school-connections-heading p{font-size:var(--em-font-small)}
.app-workspace .com-school-connection-list{max-height:130px;overflow:auto}
.cat-full-page-editor .cat-form{padding:12px 16px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;align-content:start}
.cat-full-page-editor>.cat-document-page-head{min-height:64px;padding:9px 16px}
.cat-full-page-editor .cat-form textarea{min-height:50px}
@media(max-width:1150px){.app-workspace :is(.supply-form-grid.compact,.production-form-grid,.delivery-form-grid,.invops-entry .invops-form-grid,.accept-form-grid),.cat-full-page-editor .cat-form{grid-template-columns:repeat(2,minmax(0,1fr))}.app-workspace :is(.supply-summary-grid,.production-summary-grid,.delivery-summary-grid,.accept-summary-grid,.com-highlights){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.app-workspace :is(.supply-doc-card,.production-doc-card,.delivery-list-card,.accept-list-card,.invops-doc-card){flex-basis:245px;width:245px;max-width:245px}.app-workspace :is(.supply-form-grid.compact,.production-form-grid,.delivery-form-grid,.invops-entry .invops-form-grid,.accept-form-grid),.cat-full-page-editor .cat-form{grid-template-columns:minmax(0,1fr)}.app-workspace :is(.production-form-grid,.delivery-form-grid,.accept-form-grid) :is(.span-2,.span-3){grid-column:1/-1}.app-workspace :is(.supply-detail-head,.production-detail-head,.delivery-detail-head,.accept-detail-head,.invops-detail-head,.com-detail-heading){align-items:flex-start}.app-workspace :is(.supply-detail-actions,.production-detail-actions,.delivery-detail-actions,.accept-actions,.invops-detail-actions,.com-detail-actions){width:100%;justify-content:flex-end}.app-workspace :is(.supply-entry-footer,.production-entry-footer,.delivery-entry-footer,.invops-entry-footer,.accept-editor-footer){flex-wrap:wrap}.app-workspace :is(.invops-layout,.accept-workspace,.production-workspace){display:grid}.app-workspace :is(.invops-detail-panel,.accept-detail-panel){min-height:0}}


.document-notes {
    display: grid;
    gap: 10px 20px;
    min-width: 0;
    margin: 0;
    align-items: start;
}
.document-notes--inset {
    padding: 10px 16px;
    border-top: 1px solid #e2eaee;
}
.document-notes > div { min-width: 0; }
.document-notes > .document-note--wide { grid-column: 1 / -1; }
.document-notes dt {
    margin-bottom: 3px;
    color: #516a78;
    font-size: var(--em-font-small);
    font-weight: 650;
}
.document-notes dd {
    margin: 0;
    color: #253f4d;
    font-size: var(--em-font-ui);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
@media (min-width: 950px) {
    .document-notes--columns:has(> :nth-child(2)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
