.rtm{--ink:#183b49;--muted:#607580;--teal:#126d6a;--line:#dce6ec;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f3f6fa;box-sizing:border-box;min-height:100vh}.rtm *,.rtm *:before,.rtm *:after{box-sizing:border-box}.rtm h1,.rtm h2,.rtm h3,.rtm p{margin:0 0 12px;color:inherit;font-family:inherit}.rtm h1{font-size:32px;line-height:1.2;letter-spacing:-.8px}.rtm h2{font-size:21px;line-height:1.3}.rtm h3{font-size:16px}.rtm small{font-size:12px}.rtm a{color:var(--teal);text-decoration:none}.rtm button,.rtm .file{font:600 13px/1.4 inherit;font-family:inherit;font-size:13px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:10px 15px;cursor:pointer;display:inline-block;text-decoration:none}.rtm button:hover{background:#e9f2f4}.rtm button:disabled{opacity:.55;cursor:wait}.rtm button:focus-visible,.rtm a:focus-visible{outline:3px solid #34a8a0;outline-offset:2px}.rtm .primary{background:var(--teal);border-color:var(--teal);color:white}.rtm .primary:hover{background:#0d5351}.rtm .link{border:0;background:transparent;padding:7px;color:var(--teal)}.rtm .danger{color:#b43e40}.rtm .wide{width:100%;margin:5px 0}.rtm .top{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:22px 4%;gap:20px;border-bottom:1px solid var(--line)}.rtm .brand{display:flex;gap:13px;align-items:center;font-weight:750;font-size:20px;color:var(--ink)}.rtm .brand small{display:block;font-size:12px;font-weight:400;color:var(--muted)}.rtm .mark{background:var(--ink);color:white;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;font-weight:800}.rtm .top-actions{display:flex;align-items:center;gap:18px}.rtm .top-actions label{margin:0;font-size:11px}.rtm .top-actions select{padding:6px;max-width:250px}.rtm .nav{display:flex;background:#fff;gap:10px;padding:0 4%;border-bottom:1px solid var(--line);overflow:auto}.rtm .nav button{border:0;border-radius:0;padding:18px 13px;white-space:nowrap;background:transparent;color:var(--muted)}.rtm .nav .selected{color:var(--teal);box-shadow:inset 0 -3px var(--teal)}.rtm main{max-width:1480px;margin:auto;padding:24px 4% 60px}.rtm .page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 28px}.rtm .page-title p:not(.eyebrow){color:var(--muted);max-width:720px}.rtm .eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:750;color:var(--teal);margin-bottom:10px}.rtm .actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.rtm .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.rtm .kpis article{padding:25px;border:1px solid var(--line);border-radius:15px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;min-height:145px}.rtm .kpis strong{font-size:30px;letter-spacing:-1px;margin:5px 0}.rtm .kpis small,.rtm .kpis span{color:var(--muted)}.rtm .kpis span{font-size:12px}.rtm .kpis .accent{background:var(--ink);color:white;border:0}.rtm .kpis .accent small,.rtm .kpis .accent span{color:#c6e0e4}.rtm .negative{background:#fff0ef!important;color:#ae3338!important}.rtm .panel{background:white;border:1px solid var(--line);border-radius:15px;padding:25px;margin-bottom:22px}.rtm .section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.rtm .section-title h2{margin:0}.rtm .order-list article{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line);gap:20px}.rtm .order-list article:last-child{border-bottom:0}.rtm .order-list h3{margin:7px 0 3px}.rtm .order-right{text-align:right;display:grid;gap:8px}.rtm .order-right strong{font-size:21px}.rtm .tag{display:inline-block;padding:3px 8px;border-radius:5px;background:#edf3f7;font-size:11px;color:#4a6572}.rtm .tag.requested,.rtm .tag.delivered{background:#e5f5ef;color:#217056}.rtm .tag.cancelled{background:#fce7e7;color:#ab3e3e}.rtm .audit{display:flex;flex-direction:column;padding:11px 0;border-bottom:1px solid var(--line)}.rtm .audit small,.rtm .muted{color:var(--muted)}.rtm .toast:empty{display:none}.rtm .toast{padding:12px 16px;background:#e4f3ec;border-radius:10px;margin-bottom:15px}.rtm .catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.rtm .product-card{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden}.rtm .photo{width:70px;height:70px;object-fit:contain;border-radius:9px;background:#edf2f6;flex-shrink:0;display:block}.rtm .empty{display:grid;place-items:center;color:#9fb6c2;font-size:40px}.rtm .product-card>.photo{width:100%;height:170px;border-radius:0;object-fit:contain;padding:12px;background:#e9f0f3}.rtm .product-info{padding:20px}.rtm .product-info h2{font-size:18px;margin:10px 0 3px}.rtm .prices{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0;gap:6px}.rtm .prices small,.rtm .prices b{display:block}.rtm .prices small{font-size:10px;color:var(--muted)}.rtm .product-info .actions{margin-top:15px}.rtm .file{font-size:12px;color:var(--teal);margin:6px 0}.rtm .editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.rtm .counter{position:sticky;top:20px}.rtm .counter>div:not(.balance){display:flex;justify-content:space-between;gap:10px;margin:10px 0}.rtm .counter .total{border-top:1px solid var(--line);padding-top:15px;font-size:20px}.rtm .balance{background:#e7f4ef;padding:16px;border-radius:10px;margin:20px 0}.rtm .balance strong{display:block;font-size:25px}.rtm .order-line{display:flex;gap:15px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.rtm .order-line h3{margin-bottom:5px}.rtm .order-line p{margin:0;font-size:13px}.rtm .order-line small{font-size:11px;color:var(--muted)}.rtm .line-end{margin-left:auto;text-align:right;min-width:105px}.rtm .order-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.rtm label{display:block;font-size:13px;font-weight:600;margin:0 0 17px}.rtm input,.rtm select,.rtm textarea{display:block;width:100%;border:1px solid #c5d6df;border-radius:8px;padding:11px 12px;margin-top:6px;font:400 15px/1.5 inherit;font-family:inherit;font-size:15px;color:var(--ink);background:#fff;max-width:100%;box-shadow:none}.rtm input:focus,.rtm select:focus,.rtm textarea:focus{outline:2px solid #73b7b0;outline-offset:1px}.rtm textarea{min-height:85px;resize:vertical}.rtm .empty-state{text-align:center;padding:45px 20px;color:var(--muted)}.rtm .table-scroll{overflow-x:auto}.rtm table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.rtm th,.rtm td{padding:13px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.rtm td:first-child,.rtm th:first-child{white-space:normal;min-width:190px}.rtm th{font-size:12px;background:#eff5f7}.rtm .rtm-dialog{color:var(--ink);background:#fff;border:0;border-radius:18px;padding:25px;width:min(580px,94vw);max-height:90vh;overflow:auto;box-shadow:0 25px 100px #102c4555}.rtm .rtm-dialog::backdrop{background:#0a233b88;backdrop-filter:blur(3px)}.rtm .modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:10px;letter-spacing:1px;color:var(--muted)}.rtm .icon{border:0;padding:4px 8px}.rtm .wizard-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.rtm .review{background:#f1f6f8;border-radius:12px;padding:18px;margin:15px 0}.rtm .review p{display:flex;justify-content:space-between;gap:10px}.rtm .review p:last-child{margin:0}.rtm .picker{max-height:45vh;overflow:auto}.rtm .picker button{display:flex;width:100%;gap:14px;text-align:left;align-items:center;margin:7px 0}.rtm .picker button[hidden]{display:none}.rtm .picker small{display:block;font-weight:400;margin-top:5px}.rtm .picker .photo{width:45px;height:45px}.rtm .modal-error{color:#b53640;margin-top:15px}.rtm .login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(150deg,#133b48,#31666b)}.rtm .login{width:min(440px,100%);padding:35px}.rtm .login .mark{margin-bottom:20px}.rtm .login a{display:block;text-align:center;margin-top:16px}.rtm [role="alert"]{color:#b53640}#rtm-print{display:none}
@media(max-width:1100px){.rtm .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rtm .page-title{align-items:flex-start;flex-direction:column}.rtm .editor-layout{grid-template-columns:minmax(0,1fr) 280px}.rtm .order-line .photo{display:none}}
@media(max-width:700px){.rtm .top{padding:16px;flex-wrap:wrap;gap:14px}.rtm .brand{font-size:18px}.rtm .top-actions{width:100%;gap:12px}.rtm .top-actions label{flex:1}.rtm .top-actions select{max-width:none}.rtm .nav{padding:0 8px;gap:0}.rtm .nav button{padding:14px 10px;font-size:12px}.rtm main{padding:20px 14px 40px}.rtm h1{font-size:26px}.rtm .kpis{grid-template-columns:1fr;gap:10px}.rtm .kpis article{padding:18px;min-height:0}.rtm .kpis strong{font-size:28px}.rtm .panel{padding:18px}.rtm .catalog-grid{grid-template-columns:1fr}.rtm .editor-layout{grid-template-columns:1fr}.rtm .counter{position:static}.rtm .order-details{grid-template-columns:1fr}.rtm .order-line{flex-wrap:wrap}.rtm .line-end{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left}.rtm .order-list article{gap:10px}.rtm .order-right strong{font-size:17px}.rtm .order-right button{padding:8px;font-size:11px}.rtm .rtm-dialog{padding:20px;max-height:94vh}.rtm .section-title{align-items:flex-start}.rtm .back{font-size:13px}}
@media print{body>*{display:none!important}body>#rtm-print{display:block!important;background:#fff;min-height:0;font-size:10pt;color:#000}#rtm-print h1{font-size:20pt}#rtm-print h2{font-size:14pt;margin-top:20px}#rtm-print table{font-size:9pt}#rtm-print td,#rtm-print th{padding:6px;white-space:normal}#rtm-print section{break-inside:auto}#rtm-print tr{break-inside:avoid}#rtm-print thead{display:table-header-group}@page{size:A4 landscape;margin:14mm}}
.rtm .annual-order{border-bottom:1px solid var(--line)}.rtm .annual-order:last-child{border-bottom:0}.rtm .annual-order summary{display:flex;align-items:center;gap:18px;padding:20px 0;cursor:pointer;list-style:none}.rtm .annual-order summary::-webkit-details-marker{display:none}.rtm .annual-order summary:focus-visible{outline:2px solid var(--teal)}.rtm .order-heading{flex:1;min-width:0}.rtm .order-heading h3{margin:6px 0}.rtm .order-peek{display:flex;align-items:center;gap:5px}.rtm .order-peek .photo{width:44px;height:44px}.rtm .expand-arrow{font-size:24px;transition:transform .15s}.rtm .annual-order[open] .expand-arrow{transform:rotate(180deg)}.rtm .annual-lines{border-top:1px solid var(--line);padding:0 12px;background:#f8fafb;border-radius:10px;margin-bottom:18px}.rtm .annual-line{display:flex;gap:16px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.rtm .annual-line>div{flex:1;min-width:0}.rtm .annual-line p{font-size:12px;color:var(--muted);margin:0}.rtm .annual-line h3{margin:0 0 5px}.rtm .annual-line>.photo{width:82px;height:82px}.rtm .annual-order-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;font-size:12px}@media(max-width:700px){.rtm .annual-order summary{gap:8px;flex-wrap:wrap}.rtm .order-heading{flex-basis:65%}.rtm .order-peek{order:4;width:100%}.rtm .annual-line{flex-wrap:wrap;gap:10px}.rtm .annual-line>.photo{width:64px;height:64px}.rtm .annual-line>strong{width:100%;text-align:right}.rtm .annual-order summary>strong{font-size:14px}}@media print{#rtm-print .photo{width:60px;height:60px}#rtm-print td:first-child,#rtm-print th:first-child{min-width:0;width:70px}}
.rtm .public-notes{margin:12px 0;padding:12px 14px;background:#f0f5f7;border-radius:8px;font-size:13px;overflow-wrap:anywhere}.rtm .public-notes p{white-space:pre-wrap;margin:5px 0 0}.rtm .public-notes strong{font-size:12px}.rtm label:has([name="order_public_notes"]){margin-top:20px}

.rtm .budget-alert{padding:22px;background:#fff3eb;border:1px solid #edc5a9;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.rtm .budget-alert h2{font-size:19px}.rtm .budget-alert p{margin:0}.rtm .adjust-products{border:1px solid var(--line);padding:14px;border-radius:12px;margin:18px 0}.rtm .adjust-products summary{cursor:pointer;font-weight:600}.rtm .adjust-check{display:flex;align-items:center;gap:12px;margin:14px 0}.rtm .adjust-check input{width:20px;height:20px;flex-shrink:0}.rtm .adjust-check small{display:block;color:var(--muted)}.rtm .adjust-option{padding:18px;border:1px solid var(--line);border-radius:12px;margin:16px 0}.rtm .adjust-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--line)}.rtm .adjust-row small{grid-column:1/-1;color:var(--muted)}.rtm .adjust-row span{overflow-wrap:anywhere}.rtm .adjust-result{display:grid;gap:8px;margin:16px 0}.rtm .adjust-result span{display:flex;justify-content:space-between;gap:15px}.rtm .status-controls{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.rtm .tag.pending_delivery{background:#e7e7ff;color:#4c4390}.rtm .tag.approved{background:#d9f1ea;color:#126d6a}@media(max-width:600px){.rtm .budget-alert{align-items:stretch;flex-direction:column}.rtm .adjust-row{grid-template-columns:1fr}.rtm .adjust-result span{flex-wrap:wrap}.rtm .adjust-option{padding:14px}}

.rtm .conflict-field{border:1px solid var(--line);border-radius:12px;margin:18px 0;padding:18px}.rtm .conflict-values{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.rtm .conflict-values>div{background:#f3f6fa;border-radius:9px;padding:12px;min-width:0;overflow-wrap:anywhere}.rtm .conflict-values strong{display:block;margin-bottom:12px;font-size:13px}.rtm .conflict-values .photo{display:block;width:100%;height:140px;object-fit:contain}.rtm .conflict-values p{white-space:pre-wrap}@media(max-width:500px){.rtm .conflict-values{grid-template-columns:1fr}.rtm .conflict-field{padding:12px}}

.rtm .tag.delivered{background:#fde7e7;color:#a32328;border:1px solid #efb5b8}.rtm .annual-order.is-delivered{border-color:#efb5b8}.rtm .annual-order.is-delivered>summary{background:#fff2f2}.rtm .annual-order.is-delivered .order-heading h3,.rtm .annual-order.is-delivered>summary>strong{color:#a32328}

/* Compact product cards with optional variant selector. */
.rtm .product-card .actions{flex-wrap:wrap}
.rtm .product-card select[name="catalog_variant"]{width:100%;min-width:0;max-width:100%}
.rtm .product-info{min-width:0}

/* 2.5.3: prevent WordPress/theme select heights clipping the text. */
#rtm-app.rtm select {
  box-sizing: border-box;
  height: auto !important;
  min-height: 48px;
  max-height: none;
  padding: 10px 36px 10px 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  vertical-align: middle;
}
#rtm-app.rtm select option {
  font-size: 15px;
  line-height: normal;
}

.rtm .order-sort-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rtm .order-sort-controls button{padding:6px 10px;font-size:12px;line-height:1.4;min-height:32px;background:#f2f7f8;color:#244c58;border:1px solid #cedde2}
.rtm [data-action="drag-order"]{cursor:grab;user-select:none}
.rtm [data-action="drag-order"]:active{cursor:grabbing}
.rtm .annual-order.is-dragging{opacity:.45}
.rtm .annual-order.drop-before{box-shadow:0 -4px 0 #168277}
.rtm .annual-order.drop-after{box-shadow:0 4px 0 #168277}
@media print{.rtm .order-sort-controls{display:none}}

/* Embedded portal responsiveness 1.5.35 */
.rfp .rtm,.rfp .rtm main,.rfp .rtm .top,.rfp .rtm .panel{max-width:100%;min-width:0;box-sizing:border-box}
.rfp .rtm .top,.rfp .rtm .page-title,.rfp .rtm .top-actions{flex-wrap:wrap}
.rfp .rtm .catalog-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.rfp .rtm .editor-layout{grid-template-columns:minmax(0,1fr) minmax(240px,310px)}
.rfp .rtm .nav{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.rfp .rtm .table-scroll{max-width:100%;overflow-x:auto}
.rfp .rtm :is(.panel,.product-card,.order-list,.order-line){min-width:0;max-width:100%}
.rfp .rtm .nav button:nth-child(4n+1){background:#e9f2ff;color:#205390}
.rfp .rtm .nav button:nth-child(4n+2){background:#e8f7ef;color:#1a7052}
.rfp .rtm .nav button:nth-child(4n+3){background:#fff1e1;color:#98601d}
.rfp .rtm .nav button:nth-child(4n+4){background:#f0ebff;color:#6944a1}
.rfp .rtm .nav button.selected{box-shadow:inset 0 -4px #126d6a;font-weight:800}
@media(max-width:850px){.rfp .rtm .editor-layout{grid-template-columns:1fr}.rfp .rtm .counter{position:static}}
