.rt-dialog,.rt-workspace{--rt-blue:#086d93;--rt-claret:#782642;--rt-line:#d7e1e6;color:#172a34;font-family:Arial,Helvetica,sans-serif;letter-spacing:0}
.rt-dialog{width:min(860px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--rt-line);border-radius:8px;background:#fff;overflow:auto}
.rt-dialog::backdrop{background:#16242d80}.rt-dialog *,.rt-workspace *{box-sizing:border-box;letter-spacing:0;min-width:0}
.rt-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border-bottom:1px solid var(--rt-line)}
.rt-head h1,.rt-head h2{margin:5px 0;font-size:26px;line-height:1.2}.rt-head span{font-size:13px;color:#546b77}.rt-head h2{overflow-wrap:anywhere}
.rt-icon{width:44px;height:44px;flex:0 0 44px;border:1px solid var(--rt-line);border-radius:6px;background:#fff;font-size:26px;cursor:pointer}
.rt-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:20px 24px;list-style:none;border-bottom:1px solid var(--rt-line)}
.rt-progress li{font-size:13px;display:flex;align-items:center;gap:8px;color:#566c77}.rt-progress li[aria-current=step]{color:var(--rt-claret);font-weight:700}
.rt-progress li span{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border:1px solid currentColor;border-radius:50%}
.rt-body{padding:20px 24px}.rt-body h3{font-size:20px;margin:0 0 18px}.rt-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rt-fields label,.rt-duplicates>label{display:flex;flex-wrap:wrap;gap:6px;font-size:14px;font-weight:600}.rt-fields input,.rt-fields select,.rt-duplicates input:not([type=checkbox]){width:100%;min-height:46px;padding:10px;border:1px solid #afc0c8;border-radius:5px;background:#fff;color:#172a34;font-size:16px}
.rt-fields small{color:#637984;font-weight:400}.rt-optional{margin-top:18px}.rt-optional summary{padding:10px 0;cursor:pointer;font-size:14px}
.rt-field select{height:46px}
.rt-field input[type=file],.rt-field select{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.rt-footer{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;padding:16px 24px;border-top:1px solid var(--rt-line);background:#fff;z-index:1}
.rt-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border:1px solid #aebfc7;border-radius:5px;background:#fff;color:#163342;font:600 14px/1.3 Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:normal;text-align:center}
.rt-primary{background:var(--rt-blue);border-color:var(--rt-blue);color:white}.rt-btn:disabled,.rt-stepper button:disabled{opacity:.5;cursor:not-allowed}.rt-btn:focus-visible,.rt-icon:focus-visible{outline:3px solid #45a8cb;outline-offset:3px}
.rt-offer{border-left:4px solid var(--rt-claret);padding:18px 20px;background:#faf4f6;margin-bottom:20px}.rt-offer span{color:var(--rt-claret);font-size:12px;font-weight:700}.rt-offer h3{font-size:21px;margin:9px 0}.rt-offer p{font-size:14px;line-height:1.6;margin:8px 0}.rt-offer strong{font-size:24px}.rt-offer label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600}.rt-offer input{width:20px;height:20px}
.rt-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rt-product{display:flex;align-items:center;gap:16px;padding:20px 12px;border:1px solid var(--rt-line);border-radius:8px;background:#fff}.rt-product img{width:74px;height:160px;object-fit:contain;flex:0 0 74px}.rt-product h3{font-size:17px;line-height:1.35;margin:0 0 6px}.rt-product p,.rt-product small{font-size:12px;color:#596f79}.rt-product strong{font-size:14px}
.rt-stepper{display:grid;grid-template-columns:42px minmax(45px,68px) 42px;align-items:center;margin:14px 0 6px}.rt-stepper button{height:44px;border:1px solid #acbec7;background:#f4f9fb;font-size:22px;cursor:pointer}.rt-stepper input{width:100%;height:44px;border:1px solid #acbec7;border-left:0;border-right:0;border-radius:0;text-align:center;font-size:16px;appearance:textfield}.rt-stepper input::-webkit-inner-spin-button{appearance:none}
.rt-summary{margin-top:20px;border-top:1px solid var(--rt-line)}.rt-line{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--rt-line);font-size:14px}.rt-line small{display:block;color:#617884;margin-top:5px}.rt-line strong{white-space:normal}.rt-facts{margin:12px 0}.rt-facts>div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;font-size:14px}.rt-facts dt{color:#5d737e}.rt-facts dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}.rt-summary .rt-facts>div:last-child{font-size:20px;border-top:1px solid var(--rt-line);padding-top:15px}
.rt-error{color:#922c2c;font-size:14px}.rt-error:empty{display:none}.rt-duplicates{border:1px solid #bd8b33;padding:18px;margin-top:20px;border-radius:6px;background:#fffef6}.rt-duplicates>div{display:flex;flex-wrap:wrap;gap:10px;border-bottom:1px solid #ded7bd;padding:12px 0}.rt-duplicates>label{margin:15px 0}.rt-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ci-workspace{border-top:1px solid #d6e2e8;margin-top:24px;padding-top:16px;color:#16333f}.ci-workspace .rt-head{padding:12px 0}.ci-workspace h3{font-size:20px;margin:0}.ci-list>article{border-bottom:1px solid #d6e2e8;padding:18px 0}.ci-list header{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}.ci-controls{margin-top:24px}.ci-message,[data-invoice-message]{font-size:14px;overflow-wrap:anywhere}.rt-field textarea{width:100%;box-sizing:border-box;min-height:90px;font:inherit;border:1px solid #aebfc8;border-radius:5px;padding:10px}.rt-field input[type=file]{max-width:100%;padding:10px 0;border:0}.ci-list .rt-btn{min-height:44px}.rt-dialog .rt-fields{min-width:0}.rt-dialog .rt-field{min-width:0}
.rt-actions{display:flex;flex-wrap:wrap;gap:10px}.rt-tabs{display:flex;border-bottom:1px solid var(--rt-line);gap:20px;margin-bottom:18px}.rt-tabs button{border:0;border-bottom:3px solid transparent;background:#fff;padding:15px 10px;min-height:46px;font-size:15px;cursor:pointer}.rt-tabs [aria-current=page]{border-bottom-color:var(--rt-claret);font-weight:700}.rt-retailers{display:grid;gap:0}.rt-retailers>button{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:20px 10px;border:0;border-bottom:1px solid var(--rt-line);background:#fff;text-align:left;cursor:pointer}.rt-retailers strong{font-size:16px;flex:1 1 180px}.rt-retailers span,.rt-retailers small{color:#536d78}.rt-orders>article{border-bottom:1px solid var(--rt-line);padding:20px 0}.rt-orders header{display:flex;justify-content:space-between;gap:15px;overflow-wrap:anywhere}.rt-orders header span{color:#47715f;font-size:13px}.rt-orders p{font-size:13px;color:#526d7b}.rt-workspace>form,.rt-workspace>.rt-orders{padding:20px 0}
@media(max-width:640px){.rt-head{padding:18px;align-items:flex-start;flex-wrap:wrap}.rt-head h1,.rt-head h2{font-size:24px}.rt-progress{gap:8px;padding:16px}.rt-progress li{display:block;font-size:11px;line-height:1.5}.rt-progress li span{margin-bottom:6px}.rt-body{padding:18px 16px}.rt-fields{grid-template-columns:1fr}.rt-products{grid-template-columns:1fr}.rt-product{padding:18px;gap:24px}.rt-product img{width:80px;flex-basis:80px;height:165px}.rt-footer{padding:12px 16px}.rt-footer .rt-primary{flex:1}.rt-offer{padding:16px}.rt-offer h3{font-size:20px}.rt-facts>div{gap:12px}.rt-facts dd{max-width:65%}.rt-actions{width:100%}.rt-actions .rt-btn{flex:1}.rt-workspace .rt-head{padding-left:0;padding-right:0}.rt-orders header{flex-wrap:wrap}}
.ci-register{color:var(--ct-navy,#172a34);min-width:0;letter-spacing:0}
.ci-register *{box-sizing:border-box;letter-spacing:0}
.ci-register .ct-view-head{margin-bottom:24px}
.ci-register .rt-primary{background:#0b6b70;border-color:#0b6b70}
.ci-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.ci-status-filters{display:flex;flex-wrap:wrap;border:1px solid #d6e2e8;border-radius:6px;background:#fff;padding:3px;gap:2px}
.ci-status-filters button{min-height:38px;padding:8px 12px;border:0;border-radius:4px;background:transparent;color:#334b58;font:600 12px Arial,sans-serif;cursor:pointer}
.ci-status-filters [aria-pressed=true]{background:#d8efed;color:#145357}
.ci-filters input,.ci-filters select{min-height:44px;border:1px solid #c9d9df;border-radius:6px;padding:10px 12px;background:#fff;color:#344f5b;font:14px Arial,sans-serif;min-width:0;max-width:100%}
.ci-filters input{flex:1 1 230px}.ci-filters select{flex:0 1 185px}
.ci-register .ci-table{min-width:0;width:100%;font-size:12px;border-top:1px solid #d6e2e8}
.ci-register .ci-table th{padding:12px 8px}.ci-register .ci-table td{padding:16px 8px;vertical-align:middle}
.ci-table th:nth-child(1){width:12%}.ci-table th:nth-child(2){width:16%}.ci-table th:nth-child(3),.ci-table th:nth-child(4){width:10%}.ci-table th:nth-child(5){width:9%}.ci-table th:nth-child(6){width:7%}.ci-table th:nth-child(7){width:8%}.ci-table th:nth-child(8){width:8%}.ci-table th:nth-child(9){width:7%}.ci-table th:nth-child(10){width:13%}
.ci-register .ci-table small{font-size:11px;line-height:1.4}
.ci-register .ci-number{border:0;background:transparent;padding:8px 0;color:#143e50;font:700 12px/1.5 Arial,sans-serif;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.ci-number:hover{text-decoration:underline}.ci-register .ci-total{font-variant-numeric:tabular-nums}
.ci-order{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ci-table .ci-badge{justify-self:start;max-width:100%}
.ci-table th:nth-child(8){width:9%}.ci-table th:nth-child(10){width:12%}
.ci-register .ci-table .ci-badge{white-space:nowrap;overflow-wrap:normal}
.ci-row-actions>.rt-btn{flex:0 0 auto}
.ci-badge{display:inline-block;padding:3px 6px;border:1px solid transparent;border-radius:4px;font-size:11px;line-height:1.4}
.ci-status-open,.ci-source-hub{background:#e4f3e9;color:#216344;border-color:#c9e6d3}.ci-status-paid{background:#daf3ed;color:#086657;border-color:#bce5d9}.ci-status-overdue{background:#fff1d8;color:#815200;border-color:#f0d59a}.ci-status-cancelled{background:#ffebee;color:#a32337;border-color:#f5cbd2}.ci-status-credited{background:#f0eafa;color:#654291;border-color:#ded0ef}.ci-source-xero{background:#e7f4ff;color:#126294;border-color:#c4e2f7}.ci-source-external,.ci-status-other{background:#f1f4f5;color:#4d636e;border-color:#dae3e6}
.ci-row-actions{display:flex;gap:6px;align-items:center}.ci-register .ci-row-actions>.rt-btn{min-height:36px;padding:7px 9px;font-size:12px}.ci-register .ci-row-actions>.ci-more{width:30px;flex:0 0 30px;padding:0;font-size:22px}
.ci-register [data-invoice-message]:empty{display:none}.ci-register [data-invoice-message]{margin:8px 0 0;font-size:12px}
.ci-action-menu[popover]{position:fixed;inset:auto;margin:0;width:210px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;border:1px solid #c9d9df;border-radius:6px;box-shadow:0 8px 24px #17364326;background:#fff}
.ci-action-menu .rt-btn{display:flex;width:100%;justify-content:flex-start;border:0;min-height:40px;font-size:13px;padding:10px;border-radius:3px}.ci-action-menu .rt-btn:hover{background:#edf6f5}
.ci-action-menu [data-action=cancel-invoice]{color:#a32337}
.ci-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 8px;border-top:1px solid #d6e2e8;font-size:12px;color:#546b77}.ci-pagination nav{display:flex;align-items:center;gap:12px}.ci-register .ci-page{width:36px;min-height:36px;padding:6px;font-size:18px}.ci-empty{padding:28px 8px;color:#546b77;font-size:14px}
.ci-register button:focus-visible,.ci-register input:focus-visible,.ci-register select:focus-visible{outline:3px solid #45a8cb;outline-offset:2px}
@media(max-width:1100px) and (min-width:761px){.ci-register .ci-table th,.ci-register .ci-table td{padding-left:5px;padding-right:5px}.ci-row-actions{flex-wrap:wrap}.ci-register .ci-row-actions>.rt-btn{min-height:36px}}
@media(max-width:760px){.ci-register .ci-table td{grid-template-columns:76px minmax(0,1fr)}.ci-row-actions{flex-wrap:wrap}}
@media(max-width:760px){.ci-filters{align-items:stretch}.ci-status-filters{width:100%}.ci-status-filters button{flex:1;min-height:44px;padding:8px}.ci-filters input{flex-basis:100%;font-size:16px}.ci-filters select{flex:1;font-size:16px}.ci-register .ci-table{border:0}.ci-register .ci-table td{padding:10px 0;align-items:center}.ci-register .ci-table td[data-label=Customer]{display:grid}.ci-table td[data-label=Customer] small{grid-column:2}.ci-register .ci-row-actions>.rt-btn{min-height:44px}.ci-register .ci-more{min-width:44px}.ci-pagination{padding:18px 0}.ci-pagination nav{margin-left:auto}.ci-register .ci-page{width:44px;min-height:44px}}
