/* v0.17 compact hierarchy; last cells share an unambiguous right edge. */
.primaryactions15 .selectactions17 {display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.primaryactions15 .statusactions15 {padding-top:6px;padding-bottom:6px}
.groups17 th:last-child,.groups17 td.detailscell17 {width:38px;min-width:38px;text-align:right;padding-right:8px}
.groups17 .grouptools14 {justify-content:flex-end}
.details17 {border:0!important;background:transparent!important;color:#527083!important;font-size:19px!important;line-height:1!important;min-width:28px!important;width:28px;height:28px;padding:2px!important;border-radius:5px!important;box-shadow:none!important}
.details17:hover,.details17:focus-visible {background:#dcebf5!important;color:#17394d!important;outline:2px solid #9bbace}
.sources13,.assignments13>.table-wrap {width:100%;box-sizing:border-box}
.sources13>table,.assignments13>.table-wrap>table {width:100%;table-layout:auto}
.sources13 td:last-child,.sources13 th:last-child,.assignments13 td:last-child,.assignments13 th:last-child {text-align:right;padding-right:8px!important;width:38px;min-width:38px}
.sources13 .assignments13 {padding-right:0!important;padding-left:0!important;text-align:left!important;width:auto!important}
.source-toggle17 {text-align:left;border:0;background:transparent;padding:2px;color:#214154;font:inherit}
.source-toggle17:hover {background:#e0eef5}
.packsection17>td {background:#eef5f8!important;border-top:1px solid #cbdfe7}
.packsection17 .sourceid13 small {white-space:normal;max-width:430px}
.packsection17 .sourceid13 {min-width:225px}
.packline16 .qty13 {width:76px!important;min-width:65px!important}
.packline16 td:first-child {width:30px!important;min-width:30px!important}
.packline16 td:nth-child(2) {width:82px!important;min-width:82px!important}
.sourceid13 .actions {display:inline-flex}
.recipe-heading17 h3 {margin:0 0 5px;font-size:19px;color:#173f53}
.recipe-heading17 p {margin:0 0 12px;color:#526776}
.recipe-output17,.recipe-version17 {padding:13px;background:#f2f6f9;border:1px solid #d8e3e9;border-radius:8px;margin:12px 0}
.recipe-output17 h4,.recipe-version17 h3 {margin-top:0}
.recipe-output17 .actions {margin:5px 0 10px}
.recipe-components17 input {max-width:150px}
.recipe-kpis17 {display:grid;grid-template-columns:1fr 1fr 2fr;gap:10px;margin:14px 0}
.recipe-kpis17>div {padding:14px;border:1px solid #d3e3ea;border-radius:8px;background:#f0f6fa}
.recipe-kpis17 strong {display:block;font-size:23px;color:#174c64;margin-bottom:5px}
.recipe-kpis17 span {font-size:12px;color:#49616e}
.shortage17 {color:#a94318;font-weight:600}
.ok17 {color:#27663b;font-weight:600}
.pages17 {margin:14px 0;align-items:center}
.reconciliation-balance17 {padding:12px;border:1px solid #b5d7c5;border-radius:8px;background:#eef8f2;margin:13px 0}
.reconciliation-balance17.warning {background:#fff1e6;border-color:#ecc8a5}
.reconciliation-balance17 p {margin:5px 0}
.label-preview17 {max-width:460px;border:2px solid #24495c;background:white;border-radius:6px;padding:22px;margin:15px auto;color:#17394d;word-break:break-word}
.label-preview17 header {text-transform:uppercase;font-size:13px;letter-spacing:.07em;border-bottom:1px solid #aec2cc;padding-bottom:9px}
#dialog-content:has(.recipe-heading17) table small {display:block;color:#60717c;font-size:11px;margin-top:3px}
@media(max-width:800px){.recipe-kpis17{grid-template-columns:1fr 1fr}.recipe-kpis17>div:last-child{grid-column:1/-1}.sourceid13{min-width:200px}.primaryactions15{align-items:stretch}}

.groups17 button.details17,.groups17 .sources14 button.details17{font-size:19px!important;min-width:28px!important;width:28px!important;height:28px!important;padding:2px!important}
