/* Spreadsheet-style recipe operation, with persistent step columns. */
.recipe-page.rm-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.recipe-page.rm-layout.rm-library-open{grid-template-columns:240px minmax(0,1fr);gap:14px}
.rm-layout .rp-workspace{border-radius:6px}
.rm-layout .rp-heading{padding:14px 18px 10px;flex-wrap:nowrap;min-height:66px}
.rm-layout .rp-title-line{flex-wrap:nowrap;gap:10px}
.rm-layout .rp-title-line h3{font-size:20px;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rm-layout .rp-title-line>.rp-button{font-size:13px;background:#eff4fd;border-color:#d6e3f5;color:#2e65b8}
.rm-layout .rp-heading-actions{gap:7px;flex-shrink:0}
.rm-layout .rp-heading-actions .rp-button{font-size:13px;padding:8px 12px;min-height:44px}
.rm-layout .rp-save-state{font-size:11px}
.rm-layout .rp-overview{display:flex;gap:0;padding:0 18px 11px;align-items:center;border-bottom:1px solid #e4eaf2;flex-shrink:0}
.rm-layout .rp-overview>div{display:flex;align-items:center;gap:8px;background:none;border:0;border-radius:0;padding:0 22px;border-right:1px solid #e0e7f1}
.rm-layout .rp-overview>div:first-child{padding-left:0}
.rm-layout .rp-overview>div:last-child{border:0}
.rm-layout .rp-overview strong,.rm-layout .rp-overview-check strong{font-size:14px;margin:0;white-space:nowrap;font-weight:600}
.rm-layout .rp-overview>div>span{font-size:11px;margin:0;white-space:nowrap}
.rm-layout .rp-overview-check{margin-left:auto}
.rm-layout .rp-overview-check>span{max-width:220px;overflow:hidden;text-overflow:ellipsis}
.rm-layout .rp-work-tabs{min-height:51px;padding:0 18px}
.rm-layout .rp-work-tabs>div:first-child>button{font-size:14px}
.rm-layout .rp-work-scroll{overflow:hidden;display:flex;flex-direction:column}
.rm-layout .rp-run-layout{flex:1;min-height:0;width:100%}
.rm-layout .rp-run-empty{width:100%}
.rm-layout .rp-work-footer{padding:7px 16px;min-height:54px}
.rm-file-actions{display:flex;gap:8px}
.rm-runtime-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;background:#f2f8ff;border-top:1px solid #d3e3f5;flex-shrink:0;min-height:60px}
.rm-runtime-strip>div{display:flex;align-items:center;gap:12px;min-width:0}
.rm-preview-tag{font-size:11px;color:#306aaa;border:1px solid #c6dcf5;background:white;border-radius:4px;padding:5px 8px;white-space:nowrap}
.rm-runtime-strip strong{font-size:12px;color:#426b99;max-width:330px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rm-runtime-strip small{font-size:10px;color:#9aabbd;white-space:nowrap}
.rm-runtime-strip [data-run-total-time]{font:12px ui-monospace,Consolas,monospace;color:#6280a5;white-space:nowrap}
.rm-runtime-strip .rp-button{font-size:12px;min-height:42px;padding:8px 12px}
.rm-layout .rp-work-footer .rp-button{min-height:40px;padding:7px 12px;font-size:12px}
.rm-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;position:relative}
.rm-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:12px;flex-shrink:0;background:#fbfcff;border-bottom:1px solid #e2eaf4}
.rm-step-actions,.rm-table-settings{display:flex;align-items:center;gap:7px}
.rm-table-toolbar .rp-button{font-size:12px;min-height:42px;padding:8px 12px}
.rm-table-settings .rp-button:first-child{background:#f0f5ff;color:#3168ba;border-color:#cadcf4}
.rm-group-jumps{display:flex;align-items:center;gap:5px;padding:5px 12px;flex-shrink:0;overflow:auto;border-bottom:1px solid #d8e3f1;background:white;scrollbar-width:thin;min-height:44px}
.rm-group-jumps>span{color:#97a8bc;font-size:10px;white-space:nowrap;padding:0 8px 0 2px}
.rm-group-jumps button{border:0;background:#f5f7fb;color:#6582a5;padding:7px 11px;font-size:11px;min-height:32px;border-radius:4px;white-space:nowrap;flex-shrink:0}
.rm-group-jumps button:hover{background:#e7effc;color:#2864ba}
.rm-scroll{overflow:auto;min-width:0;min-height:0;flex:1;position:relative;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#a5bad4 #edf2f8;background:linear-gradient(#fff,#fbfcff)}
.rm-scroll:focus-visible{outline:2px solid #91b3e4;outline-offset:-2px}
.rm-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-variant-numeric:tabular-nums;text-align:center;font-size:13px;color:#304f77}
.rm-table th,.rm-table td{padding:0;border-right:1px solid #dce5f1;border-bottom:1px solid #dce5f1;box-sizing:border-box}
.rm-table thead th{position:sticky;text-align:center;z-index:5}
.rm-table .rm-group-row th{height:36px;top:0;color:#fff;background:#2b63ac;font-size:13px;font-weight:600;letter-spacing:.3px;border-color:#4b7bb9}
.rm-table .rm-group-row .rm-base{background:#35577e}
.rm-table .rm-group-row .rm-temperature{background:#367ab5}
.rm-table .rm-group-row .rm-pressure{background:#437d9f}
.rm-table .rm-group-row .rm-condition{background:#57749e}
.rm-table .rm-group-row .rm-carrier{background:#317e91}
.rm-table .rm-group-row .rm-source{background:#3876b3}
.rm-table .rm-column-row th{height:57px;top:36px;padding:7px 6px;background:#edf3fb;color:#3e6494;font-size:12px;line-height:1.5;font-weight:600}
.rm-table .rm-column-row th small{display:block;color:#8b9fb8;font-size:10px;font-weight:400;line-height:1.8}
.rm-table .rm-fixed{position:sticky;z-index:3;background:#f9fbff}
.rm-table .rm-column-row .rm-fixed{z-index:11;background:#e8eff9}
.rm-table .rm-group-row .rm-group-fixed{left:0;z-index:12;background:#35577e}
.rm-table .rm-fixed-edge{box-shadow:3px 0 6px #2e537318}
.rm-table tbody tr{height:63px}
.rm-table tbody tr:nth-child(even) td{background:#f8fafd}
.rm-table tbody tr:nth-child(even) .rm-fixed{background:#f4f7fc}
.rm-table tbody tr.selected td{background:#eaf2ff}
.rm-table tbody tr.selected .rm-fixed{background:#e6efff}
.rm-table tbody tr.selected td:first-child{box-shadow:inset 3px 0 #2464ca}
.rm-table tbody tr.rm-running-row td,.rm-table tbody tr.rm-running-row .rm-fixed{background:#e3f5ef}
.rm-table tbody tr.rm-running-row td:first-child{box-shadow:inset 3px 0 #1c9c79}
.rm-table tbody tr:hover td{background:#f0f5fe}
.rm-table td.rm-readonly{background:#f5f8fc;color:#7890ad}
.rm-table td output{display:block;padding:10px 5px;font-size:12px}
.rm-cell{border:0;background:transparent;color:#2b527f;width:100%;min-height:62px;height:100%;border-radius:0;padding:9px 7px;font:inherit;line-height:1.6;overflow:hidden;overflow-wrap:anywhere;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px}
.rm-cell:disabled{opacity:.8;color:#587392}
.rm-cell:hover:not(:disabled){background:#dceaff!important;box-shadow:inset 0 0 0 1px #8fb4e5;filter:none}
.rm-cell:focus-visible{outline:2px solid #2b6bca;outline-offset:-2px;background:#deebff}
.rm-cell[data-path="name"]{text-align:left;align-items:flex-start;font-weight:600;padding-left:12px;font-size:13px}
.rm-cell[data-path="$index"]{font:500 14px ui-monospace,Consolas,monospace;color:#577ba9}
.rm-cell strong{font-size:11px;font-weight:500}
.rm-cell small{font-size:10px;color:#91a2b8;line-height:1.5;display:block;max-width:100%}
.rm-cell.inherited{color:#8ea0b7;font-size:12px}
.rm-cell .rm-inline-unit{display:inline;font-size:9px;margin-left:3px;color:#7c94b0}
.rm-channel.supply{color:#148665;font-weight:600}
.rm-channel.preflow,.rm-channel.prepare{color:#246ac2}
.rm-channel.off{color:#a16870}
.rm-channel.cutoff{color:#a97936}
.rm-condition-cell{padding-inline:12px}
.rm-condition-cell small{max-height:31px;overflow:hidden;font-size:10px}
.rm-table-footnote{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px;min-height:35px;flex-shrink:0;color:#8d9eb3;font-size:10px;border-top:1px solid #e0e8f2;background:#fbfcff}
.rm-swatch{display:inline-block;width:6px;height:6px;background:#3e7bd0;border-radius:50%;margin-right:5px}
.rm-legend-keep{color:#889bb2;background:#eff3f8;border-radius:3px;padding:2px 4px}.rm-legend-zero{color:#315f94;font-weight:600}
.rm-drawer-backdrop{position:fixed;top:var(--top);left:var(--rail);right:0;bottom:var(--bottom);z-index:35;background:#16324e24;backdrop-filter:blur(1px)}
.rm-drawer{position:fixed;top:calc(var(--top) + 14px);bottom:calc(var(--bottom) + 14px);right:18px;width:490px;max-width:calc(100vw - 36px);z-index:36;background:white;border:1px solid #ceddeb;border-radius:8px;box-shadow:-10px 5px 45px #1b3b6226;display:flex;flex-direction:column;overflow:hidden;text-align:left}
.rm-drawer-close{display:flex;justify-content:flex-end;border-bottom:1px solid #e1eaf4;padding:7px 12px;background:#f6f9ff;flex-shrink:0}
.rm-drawer-close .rp-button{min-height:40px;font-size:12px;background:transparent;border-color:transparent;color:#587fae}
.rm-drawer .rp-detail-panel{flex:1;min-height:0}
.rm-bulk-option{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;background:#f1f6fd;border:1px solid #dde8f6;border-radius:5px;color:#6080a6;font-size:12px;cursor:pointer;min-height:46px}
.rm-bulk-option input{width:20px;min-height:20px;height:20px;flex-shrink:0;accent-color:#2864be}
.rp-modal-body textarea{width:100%;min-height:110px;resize:vertical;border:1px solid #ccd9e8;border-radius:5px;font:inherit;padding:10px;color:#315477}
.rm-column-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.rm-column-options label{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #dce6f2;border-radius:5px;cursor:pointer;min-height:54px;font-size:13px}
.rm-column-options input{width:19px;height:19px;min-height:19px;flex-shrink:0;accent-color:#2864be}
.rm-column-options small{display:block;color:#8fa1b7;font-size:10px}
@media(min-width:1000px) and (max-height:850px){.rm-layout .rp-heading{padding:8px 12px;min-height:54px}.rm-layout .rp-heading-actions .rp-button,.rm-layout .rp-title-line>.rp-button{min-height:38px}.rm-layout .rp-overview{display:none}.rm-layout .rp-work-tabs{min-height:44px}.rm-table-toolbar{padding:6px 10px}.rm-table-toolbar .rp-button{min-height:38px}.rm-group-jumps{min-height:38px;padding-block:3px}.rm-table-footnote{min-height:27px;padding-block:5px}.rm-layout .rp-work-footer{min-height:44px;padding:4px 12px}.rm-layout .rp-work-footer .rp-button{min-height:34px;padding-block:5px}.rm-runtime-strip{min-height:50px;padding:5px 12px}.rm-runtime-strip .rp-button{min-height:38px}}
@media(max-width:1600px){.rm-layout .rp-title-line h3{max-width:280px;font-size:17px}.rm-layout .rp-title-line{gap:7px}.rm-layout .rp-heading-actions .rp-button{font-size:12px;padding:7px 10px}.rm-layout .rp-overview-check>span{display:none}.rm-layout .rp-heading{flex-wrap:wrap}.rm-layout .rp-heading-actions{width:auto;margin-left:auto}.rm-layout .rp-overview>div{padding-inline:15px}.rm-layout .rp-overview>div:first-child{padding-left:0}.rm-layout .rp-overview>div>span{font-size:10px}.rm-layout .rp-overview strong{font-size:12px}.rm-layout .rp-title-line>.rp-button{font-size:12px}}
@media(max-width:1250px){.rm-layout .rp-save-state{display:none}.rm-layout .rp-heading-actions{gap:4px}.rm-layout .rp-heading{padding:10px 12px}.rm-layout .rp-heading-actions .rp-button{padding:7px 8px}.rm-layout .rp-title-line h3{max-width:230px}.rm-table-footnote>span:last-child{display:none}.recipe-page.rm-layout.rm-library-open{grid-template-columns:200px minmax(0,1fr)}.rm-library-open .rp-heading-actions{width:100%;justify-content:flex-end}.rm-layout .rp-overview>div:last-child{display:none}}
@media(max-width:999px){.recipe-page.rm-layout,.recipe-page.rm-layout.rm-library-open{display:flex;min-height:800px;gap:12px}.rm-layout .rp-workspace{min-height:700px;overflow:hidden;flex:1}.rm-layout .rp-heading{flex-wrap:wrap}.rm-layout .rp-title-line h3{max-width:260px}.rm-layout .rp-heading-actions{margin:8px 0 0;flex-wrap:wrap}.rm-layout .rp-overview{flex-wrap:wrap;row-gap:8px}.rm-layout .rp-overview>div>span{white-space:normal}.rm-layout .rp-overview>div{padding-inline:10px}.rm-layout .rp-overview>div:last-child{display:none}.rm-editor{min-height:500px}.rm-scroll{min-height:300px;max-height:550px}.rm-table-toolbar{flex-wrap:wrap}.rm-step-actions{flex-wrap:wrap;gap:5px}.rm-table-settings{margin-left:auto}.rm-layout .rp-work-scroll{overflow:auto;display:block;min-height:400px}.rm-table .rm-fixed{position:static}.rm-table .rm-column-row .rm-fixed{position:sticky;left:auto!important}.rm-table .rm-group-row .rm-group-fixed{position:sticky;left:auto}.rm-table-footnote{font-size:9px}.rm-drawer{top:calc(var(--top) + 10px);bottom:calc(var(--bottom) + 10px);right:10px;width:490px}.rm-layout .rp-work-footer{flex-wrap:wrap;gap:7px}.rm-layout .rp-library-title,.rm-layout .rp-search,.rm-layout .rp-filters{display:flex}.rm-layout .rp-library{max-height:350px}}
.recipe-page.rm-layout[hidden],.recipe-page.rm-layout.rm-library-open[hidden]{display:none}
