/* ЕЛИН | 2026-11-03: Кратка проверка преди разгъваемия инженерен разчет; запазена подредба за графики и печат. */
.ems{color:var(--base-contrast,#263746);margin:1.5em auto 2.5em;max-width:1100px;scroll-margin-top:6rem}
.ems details.ems-nameplate{margin:.85em 0 0}
.ems header{border-left:4px solid var(--accent,#24547a);padding:0 1.2em;margin-bottom:1.4em}
.ems .ems-tag{font-weight:650;color:#24547a;margin:0 0 .3em}
.ems header h2{margin:0 0 .35em}
.ems fieldset,.ems details{min-width:0;border:1px solid #c6d3de;border-radius:5px;background:#fff;margin:0 0 .7em;padding:.8em 1em}
.ems legend,.ems summary{font-weight:650;color:#234b6c}
.ems summary{cursor:pointer}
.ems details[open]>summary{margin-bottom:.65em}
.ems .ems-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:.75em 1em}
.ems .ems-field{display:flex;flex-direction:column;gap:.25em;font-size:.93em;min-width:0;justify-content:flex-end}
.ems .ems-field span{font-weight:550}
.ems :is(input,select,textarea){width:100%;min-width:0;color:#172e41;background:white;border:1px solid #91a5b3;border-radius:3px;padding:.42em .55em;font:inherit;box-sizing:border-box}
.ems textarea{font-family:monospace}
.ems .ems-actions,.ems .ems-metrics{display:flex;gap:.5em;flex-wrap:wrap;margin:.8em 0}
.ems .ems-actions button{background:#24547a;color:#fff;border:1px solid #24547a;padding:.55em .9em;border-radius:4px;font:inherit;cursor:pointer}
.ems .ems-actions button:not(:first-child){background:#fff;color:#214968}
.ems .ems-actions button:hover,.ems .ems-actions button:focus-visible{background:#173b56;color:#fff}
.ems :is(button,summary,a,input,select,textarea):focus-visible{outline:3px solid #166597;outline-offset:2px}
.ems [data-result]{scroll-margin-top:1rem}
.ems [data-result] h3{margin-top:1em}
.ems .ems-metrics span{background:#f1f5f8;padding:.25em .55em;border-radius:3px}
.ems .ems-card small{font-weight:400}
.ems .ems-card.excluded{border-left:4px solid #9d483b}
.ems .ems-card.checked{border-left:4px solid #30745f}
.ems .ems-lead,.ems .ems-note{background:#eff4f7;padding:.8em 1em}
.ems .ems-note{font-size:.92em}
.ems .ems-hint{font-size:.9em;margin:.4em 0 .8em}
.ems .ems-quick{margin-bottom:1em}
.ems .ems-quick>.ems-grid:first-child{grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr))}
@media(max-width:600px){.ems .ems-quick>.ems-grid:first-child{grid-template-columns:repeat(2,minmax(0,1fr))}.ems .ems-quick>.ems-grid:first-child>label:first-child{grid-column:1/-1}}
.ems .ems-quick .ems-lead{margin:.8em 0;border-left:3px solid #24547a}
.ems .ems-quick .ems-lead h3{font-size:1.15em;margin:0 0 .4em}
.ems .ems-quick .ems-lead p{margin:0 0 .5em}
.ems .ems-quick .ems-lead p:last-child{margin-bottom:0}
.ems .ems-quick [aria-invalid="true"]{border-color:#9d483b}
.ems .ems-advanced>summary:hover,.ems .ems-advanced>summary:focus-visible{color:#173b56}
.ems .ems-advanced:not([open])>summary .ems-open-label,.ems .ems-advanced[open]>summary .ems-closed-label{display:none}
.ems [data-msg]:empty,.ems [data-copy-status]:empty{display:none}
.ems pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.ems .ems-plot{margin:1em 0;max-width:680px}
.ems .ems-plot svg{width:100%;height:auto}
.ems [hidden]{display:none!important}
.ems-print-report{display:none}
.elin-start-reference{max-width:100%;margin:1em 0;overflow-x:auto}
.entry-content figure.elin-start-reference table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed!important;border-collapse:collapse;line-height:1.35}
.elin-start-reference :is(th,td){padding:.45em;border:1px solid #b9c9d6;text-align:center;vertical-align:middle}
.elin-start-reference :is(th,td):first-child{text-align:left}
.entry-content .elin-start-reference thead th{color:#fff!important;background:#24547a!important;white-space:normal!important}
.entry-content .elin-start-reference :is(th,td){width:auto!important;white-space:normal!important;overflow-wrap:anywhere}
.entry-content .elin-start-reference :is(th,td):first-child{width:31%!important}
.entry-content .ems .ems-actions button{width:auto;max-width:100%}
.elin-start-reference .ems-short{display:none}
.entry-content figure.elin-start-reference::before,.entry-content figure.elin-start-reference::after{content:none!important}
@media(max-width:600px){.elin-start-reference .ems-long{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.elin-start-reference .ems-short{display:inline}}
@media(max-width:600px){.elin-start-reference :is(td,th){font-size:.85em;padding:.28em;overflow-wrap:anywhere}}
@media print{
body.ems-printing>:not(.ems-print-report){display:none!important}
body.ems-printing .ems-print-report{display:block!important;color:#172e41;font:10pt/1.3 Arial,sans-serif;margin:0 auto;width:95%}
.ems-print-report h1{font-size:16pt}.ems-print-report h2{font-size:12pt;margin:.7em 0 .2em}
.ems-print-report :is(p,ul,figure){margin:.35em 0}.ems-print-report ul{padding-left:1.3em}
.ems-print-report table{width:100%;border-collapse:collapse;font:9pt/1.2 Arial,sans-serif}
.ems-print-report :is(td,th){padding:3px;border:1px solid #9da8b2;text-align:left}
.ems-print-report figure{break-inside:avoid;max-width:420px}.ems-print-report svg{width:100%;height:auto}
.ems-print-report pre{white-space:pre-wrap;font:9pt/1.2 Arial,sans-serif;margin:0}
body:has(.ems) :is(header.site-header,nav,footer,.sidebar,.ems-form,.ems-actions){display:none!important}
body:has(.ems) .entry-content>:not(:has(.ems)):not(.ems){display:none!important}
.ems [data-result]{display:block}.ems details{break-inside:avoid}.ems{max-width:none}
.wp-block-group:has(>.ems)>:not(.ems){display:none!important}
}
