.tc-top,.tc-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.65rem}
.tc-top{justify-content:space-between;margin-bottom:1rem}
.tc-top h2{margin-bottom:.4rem}
.tc-top p,.tc-note{margin:0;color:#3c4f6a}
.tc-actions .button{margin:0}
.tc-secondary{background:#e8f1ed;color:#075743;padding:.55rem .85rem}
.tc-secondary:hover{background:#d8e9e0}
.tc-panel .button:disabled{cursor:not-allowed;background:#e5ecf1;color:#4b5b6b}
.tc-row{margin:0 0 .8rem;padding:.65rem 1rem .8rem;border:1px solid #dce5ef;border-radius:.65rem;min-width:0;background:#fbfdff}
.tc-row legend{font-weight:740;padding:0 .35rem}
.tc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(5.5rem,.8fr) minmax(6.1rem,.85fr);align-items:end;gap:.65rem}
.tc-grid label{min-width:0;margin:0;font-size:.88rem}
.tc-grid input:not([type="checkbox"]){display:block;margin-top:.2rem;min-width:0;max-width:100%;min-height:2.75rem;font-size:1rem}
.tc-grid .tc-check{display:flex;align-items:center;gap:.4rem;min-height:2.75rem;cursor:pointer;white-space:nowrap}
.tc-check input{width:1.1rem;height:1.1rem;min-height:0;max-width:none;margin:0;accent-color:#08705c}
.tc-row-result{display:grid;align-self:center;min-width:0;gap:.15rem}
.tc-row-result span{font-size:.875rem;color:#3c4f6a}
.tc-row-result output{font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.tc-error{color:#98241c;margin:.4rem 0 0;font-size:.9rem;font-weight:650}
.tc-grid input[aria-invalid="true"]{outline:2px solid #b3443a;outline-offset:-2px}
.tc-summary{margin:1.25rem 0 1rem;padding:1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem 1rem;background:#eaf5f0;border:1px solid #c7e5d8;border-radius:.7rem}
.tc-summary-label{font-size:.9rem;font-weight:650;margin:0}
.tc-total,.tc-decimal{margin:0;color:#124a3a;font-weight:850;font-size:clamp(1.35rem,4vw,1.85rem)}
.tc-status{grid-column:1/-1;margin:.35rem 0 0}
.tc-export{align-items:center;margin-bottom:.7rem}
.tc-invoice{font-weight:700;padding:.35rem}
.tc-note{font-size:.9rem}
.tc-panel [hidden]{display:none}
@media(max-width:48rem){.tc-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}.tc-row-result{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;border-top:1px solid #e7eef4;padding-top:.35rem}.tc-grid .tc-check{padding-top:.7rem}}
@media(max-width:22rem){.tc-row{padding:.5rem .55rem}.tc-grid{gap:.55rem}.tc-summary{padding:.65rem;gap:.15rem .45rem}}
