/* Компактная таблица расчётов v37 */
.sa-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.sa-options label{display:flex;flex-direction:column;gap:6px;color:#445470;font-size:13px;font-weight:750}
.sa-options input,.sa-options select,.sa-table input{min-width:0;width:100%;padding:9px 10px;border:1px solid #cbd6e5;background:#fff;border-radius:9px;color:#1c2d48;font:inherit}
.sa-options input:focus,.sa-table input:focus{outline:2px solid #97b5ff;outline-offset:1px}
.sa-note{font-size:13px;color:#65738a;line-height:1.65}
.sa-head{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.sa-head .actions{flex-wrap:wrap}
.sa-scroll{width:100%;overflow-x:auto;border:1px solid #dce5f1;border-radius:12px}
.sa-table{border-collapse:collapse;width:100%;font-size:13px;min-width:900px}
.sa-table th,.sa-table td{border-bottom:1px solid #e2e8f1;padding:9px 9px;text-align:right;vertical-align:middle;white-space:nowrap}
.sa-table th{background:#edf3ff;text-align:right;color:#334a6c;font-size:12px;font-weight:800}
.sa-table th:nth-child(2),.sa-table td:nth-child(2){text-align:left}
.sa-table td:first-child,.sa-table th:first-child{text-align:center;width:40px}
.sa-table tbody tr:hover{background:#f7faff}
.sa-table td[data-result]{font-weight:700;font-variant-numeric:tabular-nums;background:#f7fafe}
.sa-table input{min-width:90px;max-width:190px}
.sa-table input[data-field="name"]{min-width:190px;max-width:300px}
.sa-table tfoot td{background:#f7faff;font-weight:800;color:#26476d}
.sa-table tfoot .sa-grand td{background:#e9f5ee;color:#086538;font-size:15px;border-top:2px solid #96d6ad}
.sa-table .sa-del{background:#fff3f1;color:#a7342b;border:1px solid #efc7c0;border-radius:8px;font-weight:800;padding:7px 10px;cursor:pointer;white-space:nowrap}
.sa-table th:last-child,.sa-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-1px 0 0 #dde5f1}
.sa-table tfoot td:last-child{position:static;box-shadow:none;background:inherit}
.sa-table .sa-row-warning{color:#af5528;font-size:11px;white-space:normal;max-width:210px;text-align:left}
.sa-status{font-size:13px;min-height:20px;color:#a45019}
#sa-report{width:100%;min-height:125px;resize:vertical;border-radius:10px;border:1px solid #cdd9e7;padding:12px;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f7faff;color:#243450;margin:6px 0 14px}
.sa-file{cursor:pointer}
@media(max-width:640px){.sa-page .panel{padding:16px}.sa-table{font-size:12px}.sa-table th,.sa-table td{padding:8px 7px}.sa-table input{min-width:90px}}
@media print{header.site-head,.page-hero,.footer,.sa-head .actions,.sa-table .sa-del,#sa-report,.sa-file,.sa-page .panel:nth-of-type(3),.sa-page .panel:nth-of-type(4){display:none!important}body{background:#fff!important}.sa-page{padding:0!important}.sa-page .panel{border:0!important;box-shadow:none!important;padding:0!important;margin-bottom:20px!important}.sa-scroll{overflow:visible;border:0}.sa-table{min-width:0;width:100%;font-size:9px}.sa-table input{border:0;background:transparent!important;padding:0!important;font-size:9px;min-width:0;width:100%}.sa-table th:last-child,.sa-table td:last-child{display:none!important} .sa-table td,.sa-table th{white-space:normal;page-break-inside:avoid}}
