.cn-cost-overview [hidden]{display:none!important}
.cn-cost-table [data-cn-cost-row] td{vertical-align:top}
.cn-cost-links{display:grid;gap:7px;margin:11px 0}
.cn-cost-table .cn-cost-quote-number{color:#176252;background:#edf7f2;border:1px solid #c5dfd1;border-radius:6px;padding:7px 9px;font-size:12px;font-weight:600;line-height:1.45}
.cn-cost-links>.btn{justify-self:start}
.cn-cost-row-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.cn-cost-row-actions .btn,.cn-cost-links .btn{font-size:12px;min-height:36px;white-space:normal}
.cn-cost-reason{width:100%;font-size:12px;font-weight:500;text-align:left;line-height:1.5}
.cn-cost-table .cn-cost-reason input{max-width:none;text-align:left;margin-top:5px}
.cn-cost-table [data-cn-cost-adjustment-help]{max-width:none;line-height:1.5}
.cn-cost-table input[data-cn-cost-value]{min-height:40px;font-weight:600;background:#fff}
.cn-cost-table input:focus,.cn-cost-inline-quote select:focus{outline:2px solid #307ba5;outline-offset:2px}
.cn-cost-history{font-size:12px;font-weight:400;line-height:1.6;margin-top:10px}
.cn-cost-history summary{cursor:pointer;color:#345e7a}
.cn-cost-history p{border-bottom:1px solid #e2e9ee;padding:8px 0;margin:0}
.cn-cost-row-status,.cn-cost-save-result{font-size:12px;line-height:1.5;color:#176252;white-space:normal}
.cn-cost-row-status.is-error{color:#a32a21;background:#fff3ef;border-radius:5px;padding:8px}
.cn-cost-pending{padding:12px;background:#fff6df;border:1px solid #dcc58c;border-radius:8px;color:#775414;font-size:13px}
.cn-cost-inline-quote{display:grid;gap:12px;background:#f7fafc;border:1px solid #c9dbe7;border-radius:10px;padding:16px;margin:12px 0;font-weight:400;min-width:0}
.cn-cost-inline-quote>label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0}
.cn-cost-inline-quote select{font:inherit;background:#fff;color:#17334c;border:1px solid #a9bfce;padding:10px;border-radius:6px;min-width:0;max-width:100%;width:100%;min-height:44px}
.cn-cost-table .cn-cost-inline-quote>label input{max-width:none;text-align:left;min-height:44px}
.cn-cost-inline-actions{display:flex;flex-wrap:wrap;gap:8px}
.cn-lump-inline{width:100%;max-width:100%;max-height:none;box-shadow:none;margin:0;box-sizing:border-box}
.cn-lump-inline .cn-lump-form{max-height:none}
.cn-lump-inline .cn-lump-body{overflow:visible}
.cn-cost-table .cn-lump-inline input,.cn-cost-table .cn-lump-inline textarea{text-align:left;max-width:none}
.cn-cost-table .cn-lump-inline input[type=checkbox]{width:18px;min-width:18px;max-width:18px}
.cn-cost-table .cn-lump-inline label{font-weight:600}
.cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden])){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #c9dbe7;border-radius:8px;margin:10px 0}
.cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden]))>td:first-child{grid-column:1/-1;width:auto}
.cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden]))>td:not(:first-child)::before{content:attr(data-label);display:block;color:#52677a;font-size:11px;margin-bottom:7px}
@media(max-width:640px){
 .cn-cost-row-actions .btn,.cn-cost-links .btn,.cn-cost-inline-actions .btn{min-height:44px}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden])){display:block}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden]))>td:first-child{width:100%}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden])){padding:4px}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden]))>td:first-child{padding:4px}
 .cn-cost-inline-quote{padding:10px}
 .cn-cost-table .cn-cost-row-actions small{max-width:none}
 .cn-cost-table .cn-cost-quote-number{font-size:12px;max-width:none}
 .cn-cost-inline-quote .cn-lump-inline{width:100%;border-radius:8px}
 .cn-lump-inline .cn-lump-header{padding:12px;flex-wrap:wrap}
 .cn-lump-inline .cn-lump-body{padding:12px}
 .cn-lump-inline .cn-lump-footer{padding:10px;flex-wrap:wrap}
}
@media print{.cn-cost-row-actions,.cn-cost-links>.btn,.cn-cost-inline-quote,.cn-cost-pending{display:none!important}}

@media(min-width:641px){
 .cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden])),.cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden]))>thead,.cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden]))>tbody,.cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden]))>tfoot{display:block;width:100%}
 .cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden])) tr{display:grid;grid-template-columns:minmax(0,2.25fr) repeat(4,minmax(0,1fr));width:100%;box-sizing:border-box}
 .cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden])) tr>th,.cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden])) tr>td{width:auto;min-width:0;box-sizing:border-box}
 .cn-cost-table:has([data-cn-cost-quote-panel]:not([hidden])) tr:has([data-cn-cost-quote-panel]:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden])) .cn-cost-links{display:flex;flex-wrap:wrap;gap:7px}
 .cn-cost-table tr:has([data-cn-cost-quote-panel]:not([hidden])) .cn-cost-quote-number{margin:0}
}
