.orxorm29-layout{font:inherit;min-width:0}.orxorm29-field{display:flex;flex-direction:column;gap:3px;min-width:0}.orxorm29-field input,.orxorm29-field textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line);border-radius:5px;background:#fff;padding:6px;color:var(--navy);font:inherit}.orxorm29-field input:disabled,.orxorm29-field textarea:disabled{background:#f4f6fc;color:var(--muted)}.orxorm29-header{display:grid;grid-template-columns:minmax(210px,1fr) repeat(2,minmax(150px,1fr));gap:10px;padding:12px;background:#f0f4ff;border:1px solid var(--line)}.orxorm29-h0{grid-column:1;grid-row:1}.orxorm29-h1{grid-column:1;grid-row:2/4}.orxorm29-h2{grid-column:2;grid-row:1}.orxorm29-h3{grid-column:3;grid-row:1}.orxorm29-h4{grid-column:2;grid-row:2}.orxorm29-h5{grid-column:3;grid-row:2}.orxorm29-h6{grid-column:2/4;grid-row:3}.orxorm29-grid-wrap{max-width:100%;overflow:auto;border:1px solid var(--line)}.orxorm29-grid{border-collapse:collapse;table-layout:fixed;width:1580px;min-width:1580px}.orxorm29-grid th,.orxorm29-grid td{border:1px solid var(--line);padding:4px;vertical-align:top}.orxorm29-grid th{background:#e9eefb;font-weight:600}.orxorm29-grid th:first-child{width:32px}.orxorm29-grid th:nth-child(2){width:36px}.orxorm29-grid th:nth-child(3){width:170px}.orxorm29-grid th:nth-child(4){width:240px}.orxorm29-grid input{font:inherit;width:100%;min-width:0;box-sizing:border-box;padding:5px;border:1px solid var(--line)}.orxorm29-code-cell{display:flex;gap:3px}.orxorm29-code-cell input{flex:1}.orxorm29-grid [aria-pressed=true]{background:var(--navy);color:#fff}.orxorm29-row-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:8px 0}.orxorm29-bottom{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,400px);gap:15px;margin-top:12px}.orxorm29-summary{display:grid;gap:5px}.orxorm29-discounts{display:grid;grid-template-columns:1fr 1fr auto;gap:5px;align-items:end}.orxorm29-additional,.orxorm29-payment{display:grid;grid-template-columns:1fr 1fr;gap:10px}.orxorm29-additional>div{min-width:0;display:flex;gap:4px;align-items:end}.orxorm29-additional .orxorm29-field{flex:1}.orxorm29-additional>div:nth-child(-n+5),.orxorm29-d7,.orxorm29-d8{grid-column:1/-1}.orxorm29-p4,.orxorm29-p5{grid-column:1/-1}.orxorm29-conditions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;border:1px solid var(--line)}.orxorm29-commands{margin-top:12px}.orxorm29-review dd,.orxorm29-review .print-memo{white-space:pre-wrap}.orxorm29-variant{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.orxorm29-header-slot>button{max-width:36px}.orxorm29-header-slot .orxorm29-field{min-width:0}@media(max-width:700px){.orxorm29-header{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.orxorm29-h0,.orxorm29-h1,.orxorm29-h6{grid-column:1/-1;grid-row:auto}.orxorm29-h2,.orxorm29-h4{grid-column:1;grid-row:auto}.orxorm29-h3,.orxorm29-h5{grid-column:2;grid-row:auto}.orxorm29-bottom{grid-template-columns:minmax(0,1fr)}.orxorm29-additional,.orxorm29-payment{grid-template-columns:minmax(0,1fr)}.orxorm29-additional>div,.orxorm29-payment>div{grid-column:1}.orxorm29-variant select{max-width:100%}}

/* Child widths follow their own resizable container, not only the viewport. */
.orxorm29-layout{container-type:inline-size}.orxorm29-additional,.orxorm29-payment{gap:6px 10px}.orxorm29-additional .orxorm29-field{display:grid;grid-template-columns:155px minmax(0,1fr);gap:6px;align-items:center}.orxorm29-payment .orxorm29-field{display:grid;grid-template-columns:126px minmax(0,1fr);gap:4px;align-items:center}.orxorm29-additional .orxorm29-field input,.orxorm29-payment .orxorm29-field input{padding:4px 6px;min-height:30px}.orxorm29-additional>div>button,.orxorm29-payment>div>button{min-height:30px;padding:3px 6px}.orxorm29-additional .orxorm29-field>span,.orxorm29-payment .orxorm29-field>span{font-size:13px}.orxorm29-conditions{gap:5px 12px;margin-top:9px;padding:8px}.orxorm29-conditions label{display:flex;gap:5px;align-items:center;font-size:13px}.orxorm29-layout button:focus-visible{outline-color:var(--red)}@container(max-width:440px){.orxorm29-additional,.orxorm29-payment{grid-template-columns:minmax(0,1fr)}.orxorm29-additional>div,.orxorm29-payment>div{grid-column:1}.orxorm29-additional .orxorm29-field,.orxorm29-payment .orxorm29-field{grid-template-columns:minmax(0,1fr)}}

/* SW container: chooser placeholder, row marker and separate conditions. */
.orxorm29-h6{display:flex;align-items:end;gap:4px}.orxorm29-h6>.orxorm29-field{flex:1}.orxorm29-h6>button{flex:0 0 32px;min-width:0;min-height:38px;padding:4px}.orxorm29-grid td:first-child>button{box-sizing:border-box;width:100%;min-width:0;min-height:30px;padding:4px 0;font:inherit}.orxorm29-conditions{display:flex;flex-direction:column;gap:2px;padding:5px 8px}.orxorm29-conditions label{min-height:18px;line-height:18px}.orxorm29-conditions input{margin:0}.orxorm29-additional{row-gap:4px}

/* SW payment inline unknown chooser: disabled beside cash-discount input. */
.orxorm29-p4{display:flex;gap:4px;align-items:end}.orxorm29-p4>.orxorm29-field{flex:1;min-width:0}.orxorm29-p4>button{flex:0 0 28px;min-width:0;max-width:28px}

/* ORX/ORM SW review only: print as a flowing sheet, not inside a floating frame. */
@media print{
html:has(.orxorm29-review),body:has(.orxorm29-review){background:#fff!important}
#panel-dialog:has(.orxorm29-review){position:static!important;inset:auto!important;transform:none!important;display:block!important;width:100%!important;inline-size:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}
#panel-dialog:has(.orxorm29-review)::backdrop{background:transparent!important}
#panel-dialog:has(.orxorm29-review)>#panel-content,#panel-dialog:has(.orxorm29-review)>#panel-content>[data-orxorm29-owner]{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;container-type:normal!important}
#panel-dialog:has(.orxorm29-review) button,#panel-dialog:has(.orxorm29-review)>.dialog-heading,#panel-dialog:has(.orxorm29-review)>.dialog-actions,#panel-dialog:has(.orxorm29-review)>.sw-child-resize{display:none!important}
#sw-preview-print-sheet.orxorm29-review{container-type:normal!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;background:#fff!important;color:#000!important}
.orxorm29-review .table-wrap{width:100%!important;max-width:100%!important;overflow:visible!important}.orxorm29-review table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;font-size:9pt!important}.orxorm29-review th,.orxorm29-review td{min-width:0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;vertical-align:top;padding:4px 3px!important}.orxorm29-review th{color:#000!important;font-weight:600!important}.orxorm29-review th:first-child{width:24px}.orxorm29-review thead{display:table-header-group}
#sw-preview-print-sheet.orxorm29-review dl{grid-template-columns:minmax(0,.35fr) minmax(0,1fr)!important}.orxorm29-review dt,.orxorm29-review dd,.orxorm29-review p{min-width:0!important;max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
}

.orxorm29-discounts{grid-template-columns:1fr 1fr}.orxorm29-layout .orxorm29-grid input:disabled{background:#f4f6fc;color:var(--muted)}

/* A floating document can be narrow inside a wide desktop viewport. */
@container(max-width:650px){.orxorm29-header{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.orxorm29-h0,.orxorm29-h1,.orxorm29-h6{grid-column:1/-1;grid-row:auto}.orxorm29-h2,.orxorm29-h4{grid-column:1;grid-row:auto}.orxorm29-h3,.orxorm29-h5{grid-column:2;grid-row:auto}.orxorm29-bottom{grid-template-columns:minmax(0,1fr)}}
@container(max-width:440px){.orxorm29-header{grid-template-columns:minmax(0,1fr)}.orxorm29-h0,.orxorm29-h1,.orxorm29-h2,.orxorm29-h3,.orxorm29-h4,.orxorm29-h5,.orxorm29-h6{grid-column:1;grid-row:auto}}

.orxorm29-workflow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.orxorm29-workflow select{max-width:100%;font:inherit}
