/* Main CT worksheet: same numeric columns as editor, saved/read-only context. */
.ct577{min-width:0;width:100%;padding:16px;border:1px solid #dce5ed;background:#fff;border-radius:14px;box-shadow:0 3px 14px #183c4f05}
.ct577-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.ct577-heading h2{font-size:22px;margin:0 0 3px}.ct577-heading p{margin:0;font-size:12px;color:#5b7489}
.ct577-saved{display:inline-block;padding:3px 7px;margin-left:6px;color:#116b62;background:#eaf6f2;border-radius:5px;font-size:10px;font-weight:600}
.ct577-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ct577 .btn{min-height:34px;font-size:12px;padding:7px 10px}
.ct577 [data-primary=true],#ct577-detail~* [data-primary=true],#modal.ct577-detail-dialog [data-primary=true]{background:#087584;color:#fff;border-color:#087584}
.ct577 .b575-summary{position:static;margin-bottom:9px;box-shadow:none}.ct577 .b575-summary>div{height:auto;min-height:77px;padding:9px 10px}.ct577 .b575-summary strong{font-size:18px}
.ct577-caption{font-size:12px;color:#49657b;line-height:1.45;margin:6px 0}.ct577-source{font-size:11px;color:#526b80;line-height:1.5;margin:5px 0 10px}.ct577-source strong{color:#8b5711}
.ct577-filters{display:flex;align-items:end;gap:8px;margin:12px 0 4px;flex-wrap:wrap}.ct577-filters label{font-size:11px;display:flex;flex-direction:column;gap:4px;min-width:120px;flex:0 1 175px}.ct577-filters .ct577-search{flex:1 1 260px}.ct577-filters input,.ct577-filters select{min-height:36px;padding:6px 9px;font-size:12px;width:100%;margin:0}.ct577-filter-count{margin:7px 0;font-size:10px;color:#627e90}
.ct577 .ct577-scroll{max-height:min(64vh,720px);min-height:110px}.ct577-table .b575-name{width:240px}.ct577-table .ct577-row-meta{display:block;font-size:9px;color:#668294;margin-top:3px}.ct577-table .ct577-option-note{display:block;font-size:9px;color:#246676;background:#eaf4f5;padding:2px 4px;border-radius:3px;margin-top:2px;line-height:1.3}
.ct577-table .ct577-pending{font-size:10px;color:#8b5b17}.ct577-empty{text-align:center;padding:22px!important;color:#637b8e}.ct577-table .b575-number{font-variant-numeric:tabular-nums}.ct577-table .b575-name button{min-height:30px!important}.ct577-table .b575-row-status{display:block}.ct577-table .b575-name{box-shadow:1px 0 #dde7ee}
.ct577-criteria,.ct577-more{font-size:11px;color:#4d6d82;margin:10px 0 0}.ct577-more{border-top:1px solid #e4edf2;padding-top:10px}.ct577-more .ct577-actions{margin:10px 0}.ct577-more p{font-size:11px}.ct577 summary{cursor:pointer}
#modal.ct577-detail-dialog{width:min(96vw,1440px)!important;max-width:1440px!important}.ct577-detail-summary{display:flex;gap:10px 28px;flex-wrap:wrap;background:#f1f7fa;padding:12px;border-radius:8px;font-size:12px}.ct577-stages{display:flex;gap:6px;overflow:auto;margin:12px 0;padding:3px}.ct577-stages .btn{white-space:nowrap;font-size:12px;min-height:36px}.ct577-stages [aria-pressed=true]{background:#087584;color:#fff;border-color:#087584}
.ct577-components-scroll{overflow:auto;max-height:52vh;border:1px solid #dce7ed;border-radius:8px}.ct577-components{border-collapse:separate;border-spacing:0;width:100%;min-width:960px;font-size:12px}.ct577-components th,.ct577-components td{padding:9px;border-bottom:1px solid #e1eaf0;text-align:right}.ct577-components th{position:sticky;top:0;background:#eef5f8;font-size:11px;z-index:2}.ct577-components td:nth-child(-n+3),.ct577-components th:nth-child(-n+3){text-align:left}.ct577-components small{display:block;font-size:10px;color:#658196}.ct577-components td{font-variant-numeric:tabular-nums}.ct577-components td:first-child{min-width:200px}
@media(min-width:1450px){.ct577-table{min-width:1240px}.ct577-table .b575-name{width:225px}.ct577-table .b575-group{width:82px}}
@media(max-width:1099px){.ct577 .b575-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.ct577 .b575-summary>div{min-height:75px}.ct577 .b575-summary strong{font-size:17px}}
@media(max-width:760px){.ct577{padding:10px;border-radius:9px}.ct577-heading h2{font-size:19px}.ct577 .b575-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ct577 .b575-summary>div{min-height:75px;padding:8px}.ct577 .b575-summary strong{font-size:16px}.ct577 .btn,.ct577-filters select,.ct577-filters input,.ct577-stages .btn{min-height:44px}.ct577-filters label{flex:1 1 130px;min-width:0}.ct577-filters .ct577-search{flex-basis:100%}.ct577 .ct577-scroll{max-height:62vh}.ct577-table .b575-name{width:195px}.ct577-table .b575-name button{min-height:44px!important}.ct577-table td:last-child button{min-width:44px;min-height:44px}.ct577 .ct577-caption{font-size:11px}.ct577-heading .ct577-actions{width:100%}.ct577-stages{gap:5px}#modal.ct577-detail-dialog{width:100vw!important;max-width:100vw!important;margin:0;border-radius:0;max-height:100dvh}.ct577-detail-summary{gap:10px;flex-direction:column}}

/* Keep complete monetary totals legible; never ellipsize a financial value. */
.ct577 .ct577-table{min-width:1516px;table-layout:fixed}
.ct577 .ct577-table td[data-b575],.ct577 .ct577-table [data-b575-total]{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;padding-left:5px!important;padding-right:5px!important;font-variant-numeric:tabular-nums}
.ct577 .ct577-table .b575-totals td{padding:7px 5px!important;overflow:visible!important;text-overflow:clip!important}
.ct577 .ct577-table tfoot>tr:last-child td{white-space:normal!important}
.ct577 .ct577-table .b575-number{font-size:11px}
.ct577 .ct577-table .b575-name{width:225px}
.ct577 .ct577-table .b575-unit{width:55px!important;min-width:55px}
.ct577 .ct577-table .b575-quantity{width:95px}
.ct577 .ct577-table .b575-group{width:90px}
.ct577 [data-primary=true]{color:#fff!important}

.ct577-stages [aria-pressed=true]{color:#fff!important}
