/* Royal Tent Dispatch — scoped, dependency-free workspace styles. */
:root{--rtd-red:#d7192d;--rtd-red-dark:#b40f21;--rtd-ink:#1c2330;--rtd-muted:#738093;--rtd-line:#e7ebf0;--rtd-bg:#f6f7f9;--rtd-white:#fff}
#royal-dispatch-app{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--rtd-ink);background:var(--rtd-bg);min-height:100vh;text-align:left;-webkit-font-smoothing:antialiased}
#royal-dispatch-app *,#rtd-modal-root *,#rtd-toast *{box-sizing:border-box}
#royal-dispatch-app button,#royal-dispatch-app input,#royal-dispatch-app select,#rtd-modal-root button,#rtd-modal-root input,#rtd-modal-root select{font:inherit}
#royal-dispatch-app button,#rtd-modal-root button{cursor:pointer}
#royal-dispatch-app button:disabled,#rtd-modal-root button:disabled{cursor:not-allowed;opacity:.5}
#royal-dispatch-app a{color:inherit;text-decoration:none}
#royal-dispatch-app button,#royal-dispatch-app a,#royal-dispatch-app input,#royal-dispatch-app select,#rtd-modal-root button,#rtd-modal-root input,#rtd-modal-root select{outline-offset:3px}
#royal-dispatch-app :focus-visible,#rtd-modal-root :focus-visible{outline:3px solid #548eff}
.rtd-icon{width:20px;height:20px;flex:0 0 auto;vertical-align:middle}
.rtd-shell{display:flex;min-height:100vh}
.rtd-sidebar{width:242px;position:fixed;left:0;top:0;bottom:0;z-index:40;background:#181e28;color:#aeb7c5;display:flex;flex-direction:column;padding:34px 20px 22px;border-right:1px solid #242c3a;overflow-y:auto}
.rtd-brand{display:flex;flex-direction:column;padding:0 13px 38px;align-items:flex-start}
.rtd-brand-name{display:inline-block;font-size:26px;font-weight:850;letter-spacing:-1.2px;line-height:1.05;color:#fff;white-space:nowrap}
.rtd-brand-name span{color:#f04455;margin-left:5px}
.rtd-brand-subtitle{font-size:9px;font-weight:600;letter-spacing:2.3px;margin-top:10px;color:#8e9bab}
.rtd-workspace-label,.rtd-nav-section{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#778496;padding:0 13px;margin-bottom:13px}
.rtd-nav-section{margin-top:32px}
.rtd-nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;margin:3px 0;border:0;background:none;color:#b3bfce;text-align:left;border-radius:7px;font-size:13px;font-weight:550;transition:background .15s,color .15s}
.rtd-nav-item:hover{background:#222c3a;color:#fff}
.rtd-nav-item.is-current{background:var(--rtd-red);color:#fff;box-shadow:0 5px 14px #00000014}
.rtd-nav-item .rtd-icon{width:19px;height:19px}
.rtd-sidebar-bottom{margin-top:auto;padding-top:48px}
.rtd-connection{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.1px;color:#8f9cad;padding:13px 10px;border-bottom:1px solid #2b3341;margin-bottom:19px}
.rtd-status-dot{background:#5cbe97;width:6px;height:6px;display:inline-block;border-radius:50%;flex:none}
.rtd-user{display:flex;align-items:center;gap:10px;padding:0 10px;min-width:0}
.rtd-user>div{min-width:0}
.rtd-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:#313c4b;color:#e8edf5;font-size:11px;font-weight:700;letter-spacing:.3px}
.rtd-user-name{color:#e4eaf1;font-size:12px;font-weight:600;display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rtd-user-role{font-size:10px;color:#8693a5;display:block;margin-top:2px}
.rtd-signout{display:flex;gap:8px;align-items:center;padding:16px 10px 0;font-size:11px!important;color:#8e9bad!important}
.rtd-signout:hover{color:white!important}
.rtd-signout .rtd-icon{width:14px;height:14px}
.rtd-main-wrap{margin-left:242px;min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}
.rtd-topbar{height:75px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fff;border-bottom:1px solid var(--rtd-line)}
.rtd-topbar-left{display:flex;align-items:center;gap:12px}
.rtd-breadcrumb{font-size:12px;color:#8993a3;display:flex;align-items:center;gap:14px}
.rtd-breadcrumb>span{color:#c0c7d2}.rtd-breadcrumb strong{color:#444f60;font-weight:600}
.rtd-today{display:flex;align-items:center;gap:8px;font-size:11px;color:#7d8796}.rtd-today .rtd-icon{width:15px;height:15px}
.rtd-main{padding:38px 40px 30px;max-width:1600px;width:100%;margin:0 auto;flex:1;outline:none!important}
.rtd-page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.rtd-eyebrow{color:var(--rtd-red);font-size:10px;letter-spacing:1.7px;font-weight:750;margin-bottom:8px}
.rtd-page-heading h1{margin:0 0 7px;font-size:30px;line-height:1.2;letter-spacing:-.9px;font-weight:750;outline:none}
.rtd-page-heading p{margin:0;color:#7d8796;font-size:12px;line-height:1.6}
.rtd-heading-actions{display:flex;align-items:center;gap:9px;flex:none;flex-wrap:wrap;justify-content:flex-end}
.rtd-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border-radius:6px;padding:9px 14px;font-size:12px!important;font-weight:650!important;line-height:1.4;border:1px solid transparent;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}
.rtd-button .rtd-icon{width:16px;height:16px}
.rtd-button-primary{background:var(--rtd-red);color:#fff;box-shadow:0 3px 7px #d7192d15}
.rtd-button-primary:hover{background:var(--rtd-red-dark)}
.rtd-button-secondary{background:#fff;color:#4f5c6c;border-color:#dce2e9}.rtd-button-secondary:hover{background:#f7f9fb;border-color:#c3cbd7}
.rtd-button-dark{color:#fff;background:#263143}.rtd-button-dark:hover{background:#171f2d}
.rtd-button-text{border:none;background:none;color:#67768c;box-shadow:none;padding-left:7px;padding-right:7px}.rtd-button-text:hover{background:#eff2f7;color:#28374b}
.rtd-button-danger{color:#fff;background:#c61c30}.rtd-button-danger:hover{background:#a31325}
.rtd-viewer-label{display:flex;align-items:center;gap:7px;background:#edf0f4;color:#6b788b;border-radius:5px;padding:8px 12px;font-size:11px}.rtd-viewer-label .rtd-icon{width:14px;height:14px}
.rtd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:39px}
.rtd-stat{background:#fff;border:1px solid var(--rtd-line);border-radius:9px;display:flex;gap:12px;padding:20px 16px;align-items:flex-start;box-shadow:0 2px 4px #172e4c02}
.rtd-stat-icon{height:35px;width:35px;display:grid;place-items:center;border-radius:7px;background:#f3f5f8;color:#6a788c;flex:none}
.rtd-stat-icon .rtd-icon{height:18px;width:18px}.rtd-stat>div{min-width:0}
.rtd-stat-label{font-size:10px;font-weight:600;color:#7d8899;display:block;margin-top:1px;white-space:nowrap}
.rtd-stat strong{font-size:27px;line-height:1.4;font-weight:730;color:#293342;display:block;letter-spacing:-.6px}
.rtd-stat-detail{font-size:9px;color:#9aa3b0;display:block;margin-top:3px;white-space:nowrap}
.rtd-product-section{margin-bottom:32px}
.rtd-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}
.rtd-section-heading>div{display:flex;align-items:center;gap:10px}
.rtd-section-heading h2{font-size:17px;font-weight:700;letter-spacing:-.3px;margin:0}
.rtd-section-marker{width:4px;height:18px;border-radius:2px;background:var(--rtd-red)}
.rtd-marker-cold{background:#5285a8}
.rtd-count-badge{display:inline-flex;align-items:center;padding:3px 7px;font-size:9px;font-weight:550;line-height:1.2;border-radius:4px;background:#edf0f4;color:#8490a0;vertical-align:middle;white-space:nowrap}
.rtd-section-hint{font-size:10px;color:#9aa3b0}
.rtd-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rtd-product-card{appearance:none;display:block;text-align:left;background:#fff;border:1px solid var(--rtd-line);border-radius:10px;padding:22px 21px 0;color:var(--rtd-ink);box-shadow:0 3px 7px #182b4303;transition:transform .15s,box-shadow .15s,border-color .15s;min-width:0;overflow:hidden}
.rtd-product-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #2436530c;border-color:#e2a6af}
.rtd-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.rtd-product-symbol{width:43px;height:43px;border-radius:10px;background:#fff1f2;color:#cf3a4c;display:grid;place-items:center}
.rtd-product-symbol .rtd-icon{width:25px;height:25px;stroke-width:1.45}
.rtd-product-code{font-size:8px;letter-spacing:1.6px;color:#b2bac5;font-weight:650}
.rtd-product-card h3{font-size:16px;font-weight:700;letter-spacing:-.25px;line-height:1.4;margin:0 0 7px;min-height:22px}
.rtd-product-card p{font-size:10px;color:#a0a9b5;margin:0 0 24px}.rtd-product-card p strong{font-weight:650;color:#7c899a}
.rtd-card-bottom{border-top:1px solid #f0f2f5;display:flex;align-items:center;justify-content:space-between;padding:13px 0;font-size:10px;font-weight:650;color:#9a5460}
.rtd-card-bottom .rtd-icon{width:17px;height:17px}
.rtd-card-cold .rtd-product-symbol{background:#f0f6fa;color:#5686a7}.rtd-card-cold .rtd-card-bottom{color:#65869e}
.rtd-card-cold:hover{border-color:#b3cede}
.rtd-overview-note{display:flex;align-items:center;gap:13px;border:1px solid #e5eaf0;background:#f0f3f7;border-radius:8px;padding:18px 20px;color:#8290a2;margin-top:5px}
.rtd-overview-note>.rtd-icon{width:22px;height:22px;color:#9aa7b8}.rtd-overview-note>div{flex:1}.rtd-overview-note strong{font-size:11px;color:#6e7b8c;font-weight:650}.rtd-overview-note p{margin:3px 0 0;font-size:10px;color:#98a2b0}
.rtd-overview-note .rtd-button{font-size:10px!important}
.rtd-footer{max-width:1600px;width:100%;margin:auto auto 0;display:flex;align-items:center;justify-content:space-between;color:#a7afbb;font-size:9px;padding:20px 40px 23px;gap:10px}.rtd-footer>span{display:flex;align-items:center;gap:5px}.rtd-footer .rtd-icon{width:11px;height:11px}
.rtd-back-link{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:0;margin:-6px 0 23px;color:#8b96a5;font-size:11px!important}.rtd-back-link:hover{color:var(--rtd-red)}.rtd-back-link .rtd-icon{width:14px;height:14px;transform:rotate(180deg)}
.rtd-panel{border:1px solid var(--rtd-line);border-radius:10px;background:white;box-shadow:0 3px 10px #142b4c02;overflow:hidden}
.rtd-filters{display:flex;align-items:flex-end;gap:12px;padding:22px;border-bottom:1px solid var(--rtd-line);background:#fcfdfe;flex-wrap:wrap}
.rtd-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.rtd-field label{display:block;font-size:10px;font-weight:650;color:#6a7688}.rtd-field label>span{color:var(--rtd-red);margin-left:2px}
.rtd-field input,.rtd-field select,.rtd-access-select{height:39px;border:1px solid #dfe5ed;border-radius:5px;background:white;color:#3e4a5c;padding:8px 10px;font-size:11px!important;line-height:1.4;min-width:0;width:100%}
.rtd-field input:hover,.rtd-field select:hover,.rtd-access-select:hover{border-color:#bcc8d8}
.rtd-field input::placeholder{color:#a5aebb}
.rtd-field input:focus,.rtd-field select:focus,.rtd-access-select:focus{border-color:#738da9}
.rtd-input-icon{position:relative;display:flex;align-items:center}.rtd-input-icon>.rtd-icon{position:absolute;left:10px;color:#a3adbc;width:15px;height:15px;pointer-events:none}.rtd-input-icon input{padding-left:33px}
.rtd-search-field{flex:1.1;min-width:150px}.rtd-branch-filter{flex:1.25;min-width:180px}
.rtd-filters>.rtd-field:not(.rtd-search-field):not(.rtd-branch-filter){width:139px}
.rtd-filter-actions{display:flex;align-items:center;gap:3px}
.rtd-register-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 22px 19px}.rtd-register-heading h2{font-size:13px;font-weight:650;margin:0;display:flex;align-items:center;gap:9px}.rtd-register-heading>span{font-size:10px;color:#9aa5b4}
.rtd-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.rtd-table{border-collapse:collapse;text-align:left;width:100%;font-size:12px;white-space:normal;border:0;margin:0;background:white}
.rtd-table thead{background:#f8f9fb;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}
.rtd-table th{font-size:9px;font-weight:650;text-transform:uppercase;letter-spacing:.7px;color:#8893a4;padding:13px 22px;text-align:left;white-space:nowrap;border:0}
.rtd-table td{padding:16px 22px;border:0;border-bottom:1px solid #f0f2f5;color:#667387;vertical-align:middle;font-size:11px}
.rtd-table tbody tr:last-child td{border-bottom:0}.rtd-table tbody tr:hover{background:#fcfdff}
.rtd-date-cell{white-space:nowrap}.rtd-product-cell{font-weight:600;color:#48566b!important}
.rtd-invoice{display:inline-block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f3f5f8;border:1px solid #e9edf2;border-radius:4px;padding:4px 7px;font-size:10px;color:#63738a;overflow-wrap:anywhere}
.rtd-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.rtd-icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;background:none;color:#96a0af;padding:6px;min-height:30px;min-width:30px}
.rtd-icon-button>.rtd-icon{width:15px;height:15px}.rtd-icon-button:hover{background:#eef2f7;color:#52647c;border-color:#e4e9f0}.rtd-delete-button:hover{color:#c92f43;background:#fff2f4;border-color:#f5dce1}
.rtd-table .rtd-actions-heading{text-align:right}
.rtd-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;border-top:1px solid #edf0f4;color:#9aa3b1;font-size:10px}.rtd-pagination>div{display:flex;align-items:center;gap:12px}.rtd-pagination .rtd-button{font-size:10px!important;min-height:31px;padding:6px 9px}
.rtd-export-note{display:flex;align-items:center;gap:7px;margin:17px 2px;color:#9aa4b2;font-size:10px;line-height:1.7}.rtd-export-note .rtd-icon{height:13px;width:13px}
.rtd-empty{text-align:center;padding:48px 24px 52px;max-width:560px;margin:0 auto}.rtd-empty-icon{display:grid;place-items:center;height:51px;width:51px;border-radius:12px;background:#f3f5f8;color:#a6b0be;margin:0 auto 16px}.rtd-empty-icon .rtd-icon{height:25px;width:25px}.rtd-empty h3{font-size:16px;margin:0 0 6px;font-weight:650;color:#58677b}.rtd-empty p{font-size:11px;color:#9ba5b3;margin:0 0 20px;line-height:1.7}
.rtd-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:70px 20px;color:#8d98a8;font-size:12px}
.rtd-spinner{display:inline-block;width:18px;height:18px;border:2px solid #dfe4eb;border-right-color:var(--rtd-red);border-radius:50%;animation:rtd-spin .75s linear infinite;flex:none}
.rtd-spinner-white{border-color:#ffffff55;border-right-color:#fff;width:15px;height:15px}
@keyframes rtd-spin{to{transform:rotate(360deg)}}
.rtd-inline-alert{margin:15px 22px;display:flex;align-items:center;gap:10px;background:#fff2f3;border:1px solid #f4d3d9;border-radius:5px;padding:10px 13px;color:#b32c40;font-size:12px}.rtd-inline-alert>span{flex:1}.rtd-inline-alert .rtd-button{color:#b32c40}
.rtd-archive-banner,.rtd-help-banner{display:flex;align-items:center;gap:10px;padding:13px 16px;border:1px solid #e1e7f0;border-radius:6px;background:#eff3f8;color:#7a899d;font-size:11px;margin:0 0 20px}.rtd-archive-banner .rtd-icon,.rtd-help-banner .rtd-icon{width:17px;height:17px}
.rtd-item-name{font-weight:600;color:#526178;font-size:12px}
.rtd-status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:4px;font-size:9px;padding:4px 7px;font-weight:550}.rtd-status-pill>span{width:5px;height:5px;display:inline-block;border-radius:50%;background:currentColor}.rtd-status-pill.is-active{background:#eef7f2;color:#63927a}.rtd-status-pill.is-archived{background:#f0f2f6;color:#9ba4b2}
.rtd-access-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.rtd-access-guide>div{background:#fff;border:1px solid var(--rtd-line);border-radius:8px;padding:18px 20px}.rtd-access-guide strong{display:block;font-size:12px;color:#56667c;margin-bottom:3px}.rtd-access-guide span{font-size:10px;color:#97a1af}
.rtd-access-search{display:flex;align-items:flex-end;gap:10px;padding:20px 22px;border-bottom:1px solid var(--rtd-line);background:#fcfdfe}.rtd-access-search>.rtd-field{width:310px;max-width:100%}
.rtd-access-select{max-width:200px;min-width:130px}
.rtd-user-email{display:block;font-size:10px;color:#98a3b2;margin-top:4px}.rtd-admin-access{display:inline-flex;gap:6px;align-items:center;font-size:11px;color:#7c8a9e}.rtd-admin-access .rtd-icon{width:14px;height:14px}.rtd-muted{font-size:10px;color:#a5adba}
.rtd-gate{min-height:100vh;display:grid;place-items:center;padding:30px;background:#f6f7f9}.rtd-gate-card{background:#fff;border:1px solid var(--rtd-line);border-radius:14px;box-shadow:0 12px 60px #172b4510;padding:43px 36px;text-align:center;max-width:440px;width:100%}.rtd-gate .rtd-brand-name{color:#252f3c}.rtd-gate h1{font-size:22px;letter-spacing:-.5px;margin:22px 0 10px}.rtd-gate p{font-size:13px;line-height:1.7;color:#8792a2;margin:0 0 24px}.rtd-gate-symbol{margin:34px auto 0;display:grid;place-items:center}.rtd-gate-symbol .rtd-icon{width:31px;height:31px;color:#a6b1c0}.rtd-gate-login{display:block!important;margin-top:17px;font-size:12px;color:#b71c30!important}
.rtd-modal-is-open{overflow:hidden}
#rtd-modal-root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--rtd-ink)}
.rtd-modal-backdrop{position:fixed;inset:0;z-index:99990;background:#111b2d91;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
.rtd-modal{width:480px;max-width:100%;max-height:calc(100dvh - 48px);background:white;border-radius:12px;box-shadow:0 24px 80px #0003;display:flex;flex-direction:column;overflow:hidden}
.rtd-modal-header{display:flex;align-items:flex-start;gap:16px;padding:27px 27px 20px;border-bottom:1px solid var(--rtd-line)}
.rtd-modal-header>div{flex:1}.rtd-modal-header>.rtd-icon-button{margin:-8px -8px 0 0}.rtd-modal-header .rtd-eyebrow{font-size:8px;letter-spacing:1.4px}.rtd-modal-header h2{margin:0 0 8px;font-size:22px;letter-spacing:-.5px;line-height:1.3;color:#2a3647}.rtd-modal-header p{margin:0;font-size:11px;color:#929dab;line-height:1.7}
.rtd-modal form{display:flex;flex-direction:column;min-height:0}.rtd-modal-body{padding:23px 27px;display:flex;flex-direction:column;gap:20px;overflow-y:auto}.rtd-modal-body .rtd-field label{font-size:11px}.rtd-modal-body .rtd-field input,.rtd-modal-body .rtd-field select{height:42px;font-size:12px!important}
.rtd-field-hint{font-size:10px;color:#a0a9b5;line-height:1.6}
.rtd-modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:17px 27px;border-top:1px solid var(--rtd-line);background:#fafbfc}
.rtd-modal-error{font-size:12px;line-height:1.7;background:#fff1f3;color:#b4263c;padding:12px 14px;border:1px solid #f4cdd5;border-radius:5px}.rtd-modal-error>div{margin-top:10px}
.rtd-delete-summary{background:#f8f9fb;border:1px solid #e9edf3;border-radius:7px;padding:16px}.rtd-delete-summary dl{margin:0}.rtd-delete-summary dl>div{display:flex;gap:18px;justify-content:space-between;margin:10px 0;font-size:11px}.rtd-delete-summary dl>div:first-child{margin-top:0}.rtd-delete-summary dl>div:last-child{margin-bottom:0}.rtd-delete-summary dt{color:#929caa;flex:none}.rtd-delete-summary dd{margin:0;color:#4e5e74;font-weight:550;text-align:right;overflow-wrap:anywhere}
.rtd-toast{position:fixed;bottom:25px;left:calc(50% + 121px);transform:translateX(-50%);display:flex;align-items:center;gap:11px;background:#263749;color:#fff;padding:14px 20px;border-radius:8px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:12px;line-height:1.5;z-index:100000;box-shadow:0 6px 25px #172d4633;max-width:calc(100vw - 40px);width:max-content}.rtd-toast[hidden]{display:none}.rtd-toast .rtd-icon{width:18px;height:18px;color:#8ec3b0}.rtd-toast-error{background:#982339}.rtd-toast-error .rtd-icon{color:#ffdce1}
.rtd-skip-link{position:fixed;top:-60px;left:20px;padding:10px 15px;background:white;color:var(--rtd-red)!important;z-index:100001;border:2px solid var(--rtd-red);border-radius:4px}.rtd-skip-link:focus{top:12px}
.rtd-menu-toggle{display:none}.rtd-nav-backdrop{display:none}
@media(min-width:1550px){.rtd-main{padding-top:45px}.rtd-product-card{padding:26px 26px 0}.rtd-card-top{margin-bottom:23px}.rtd-product-card h3{font-size:18px}.rtd-product-card p{margin-bottom:26px}.rtd-card-bottom{padding:15px 0}.rtd-stats{gap:20px}.rtd-stat{padding:23px 21px}}
@media(max-width:1240px){.rtd-sidebar{width:218px;padding-left:15px;padding-right:15px}.rtd-main-wrap{margin-left:218px}.rtd-main{padding:30px 28px}.rtd-topbar{padding:0 28px;height:69px}.rtd-footer{padding-left:28px;padding-right:28px}.rtd-brand{padding-left:10px}.rtd-brand-name{font-size:24px}.rtd-brand-subtitle{font-size:8px;letter-spacing:2px}.rtd-stats{gap:10px}.rtd-stat{padding:17px 12px;gap:9px}.rtd-stat-icon{width:29px;height:29px}.rtd-stat-icon .rtd-icon{width:16px;height:16px}.rtd-stat-label{font-size:9px}.rtd-stat-detail{font-size:8px}.rtd-stat strong{font-size:25px}.rtd-product-grid{gap:13px}.rtd-product-card{padding:18px 17px 0}.rtd-product-card h3{font-size:14px}.rtd-product-code{font-size:7px;letter-spacing:1.1px}.rtd-page-heading h1{font-size:26px}.rtd-heading-actions{gap:6px}.rtd-heading-actions .rtd-button{padding:8px 11px;font-size:11px!important}.rtd-toast{left:calc(50% + 109px)}}
@media(max-width:1050px){.rtd-main{padding:28px 23px}.rtd-topbar{padding:0 23px}.rtd-page-heading{align-items:flex-start}.rtd-heading-actions{max-width:210px}.rtd-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:30px}.rtd-stat{padding:17px 19px;gap:13px}.rtd-stat-label{font-size:10px}.rtd-stat-detail{font-size:9px}.rtd-stat-icon{width:33px;height:33px}.rtd-product-card h3{min-height:40px}.rtd-product-code{display:none}.rtd-card-top{margin-bottom:16px}.rtd-section-hint{display:none}.rtd-overview-note{padding:15px;gap:10px}.rtd-overview-note>.rtd-button{display:none}.rtd-table td,.rtd-table th{padding-left:16px;padding-right:16px}.rtd-filters{padding:18px;gap:10px}.rtd-filters>.rtd-field:not(.rtd-search-field):not(.rtd-branch-filter){width:calc(50% - 52px)}.rtd-search-field,.rtd-branch-filter{flex:none;width:calc(50% - 5px);min-width:0}.rtd-access-guide{gap:10px}.rtd-access-guide>div{padding:15px}.rtd-register-heading{padding-left:18px;padding-right:18px}.rtd-register-heading>span{font-size:9px}.rtd-pagination{padding:14px 16px}.rtd-pagination>div{gap:7px}}
@media(max-width:800px){.rtd-sidebar{transform:translateX(-100%);transition:transform .2s;width:242px;padding:30px 20px 22px;z-index:9990}.rtd-nav-open .rtd-sidebar{transform:translateX(0)}.rtd-main-wrap{margin-left:0}.rtd-menu-toggle{display:inline-flex;min-width:30px;padding:3px;margin-left:-4px}.rtd-menu-toggle>.rtd-icon{width:21px;height:21px}.rtd-nav-backdrop{display:block;position:fixed;inset:0;background:#111a2c80;z-index:9989;border:none}.rtd-topbar{height:62px}.rtd-breadcrumb{gap:9px;font-size:11px}.rtd-page-heading h1{font-size:27px}.rtd-brand-name{font-size:26px}.rtd-brand-subtitle{font-size:9px}.rtd-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rtd-stat{padding:17px 12px;display:block}.rtd-stat-icon{display:none}.rtd-stat-label{font-size:9px}.rtd-stat-detail{font-size:8px}.rtd-product-card h3{min-height:40px}.rtd-product-symbol{width:40px;height:40px}.rtd-footer{padding:15px 23px 20px}.rtd-toast{left:50%}.rtd-main{max-width:800px}.rtd-heading-actions{max-width:none}.rtd-page-heading{align-items:center}.rtd-access-guide span{font-size:9px}}
@media(max-width:600px){.rtd-main{padding:26px 18px 20px}.rtd-topbar{padding:0 18px}.rtd-today{font-size:9px;gap:5px}.rtd-today .rtd-icon{width:13px;height:13px}.rtd-breadcrumb{font-size:10px}.rtd-page-heading{display:block;margin-bottom:22px}.rtd-page-heading h1{font-size:27px}.rtd-page-heading p{font-size:11px;max-width:350px}.rtd-heading-actions{justify-content:flex-start;margin-top:17px}.rtd-heading-actions:empty{display:none}.rtd-heading-actions .rtd-button{min-height:38px;font-size:11px!important;padding:9px 13px}.rtd-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:30px}.rtd-stat{display:flex;gap:10px;padding:16px 13px}.rtd-stat-icon{display:grid;width:30px;height:30px}.rtd-stat-label{font-size:9px}.rtd-stat-detail{font-size:8px}.rtd-stat strong{font-size:25px;line-height:1.4}.rtd-product-grid{grid-template-columns:1fr;gap:12px}.rtd-product-card{padding:18px 18px 0;position:relative}.rtd-card-top{margin-bottom:0}.rtd-product-symbol{height:39px;width:39px}.rtd-product-code{display:block;font-size:7px}.rtd-product-card h3{font-size:16px;min-height:0;padding-left:53px;margin-top:-37px;margin-bottom:5px;padding-right:65px;line-height:1.4;position:relative}.rtd-product-card p{padding-left:53px;margin-bottom:18px;font-size:10px}.rtd-product-code{align-self:flex-start;margin-top:3px}.rtd-product-card .rtd-card-bottom{padding:12px 0;font-size:10px}.rtd-product-section{margin-bottom:27px}.rtd-section-heading h2{font-size:17px}.rtd-count-badge{font-size:8px}.rtd-section-heading{margin-bottom:13px}.rtd-overview-note{align-items:flex-start;padding:14px}.rtd-overview-note>.rtd-icon{margin-top:1px;width:18px;height:18px}.rtd-overview-note strong{font-size:10px}.rtd-overview-note p{font-size:9px}.rtd-footer{font-size:8px;padding-left:18px;padding-right:18px}.rtd-footer>span:last-child{display:none}.rtd-filters{padding:16px 14px;gap:12px}.rtd-search-field,.rtd-branch-filter{width:100%}.rtd-filters>.rtd-field:not(.rtd-search-field):not(.rtd-branch-filter){width:calc(50% - 6px)}.rtd-filter-actions{width:100%}.rtd-filter-actions .rtd-button-dark{flex:1}.rtd-register-heading{padding:17px 14px}.rtd-register-heading h2{font-size:12px}.rtd-register-heading>span{display:none}.rtd-table{min-width:520px}.rtd-table th{font-size:8px;padding:12px 14px}.rtd-table td{font-size:11px;padding:14px}.rtd-pagination{padding:13px 14px;flex-direction:column;align-items:flex-start;gap:12px}.rtd-pagination>div{width:100%;justify-content:space-between}.rtd-pagination .rtd-button{min-height:35px;padding:8px 11px}.rtd-pagination>span{font-size:9px}.rtd-export-note{font-size:9px;align-items:flex-start;line-height:1.7}.rtd-export-note>.rtd-icon{margin-top:2px}.rtd-empty{padding:40px 20px}.rtd-empty p{font-size:10px}.rtd-empty h3{font-size:15px}.rtd-back-link{margin-bottom:19px}.rtd-access-guide{grid-template-columns:1fr;gap:9px}.rtd-access-guide>div{display:flex;gap:13px;align-items:center;padding:12px 15px}.rtd-access-guide strong{margin:0;min-width:56px;font-size:11px}.rtd-access-guide span{font-size:10px}.rtd-help-banner{font-size:10px;align-items:flex-start}.rtd-help-banner .rtd-icon{margin-top:2px}.rtd-modal-backdrop{padding:14px;align-items:center}.rtd-modal{max-height:calc(100dvh - 28px);border-radius:10px}.rtd-modal-header{padding:24px 22px 18px}.rtd-modal-header h2{font-size:21px}.rtd-modal-body{padding:20px 22px;gap:17px}.rtd-modal-footer{padding:16px 22px}.rtd-modal-body input,.rtd-modal-body select{font-size:16px!important}.rtd-modal-header p{font-size:10px}.rtd-toast{font-size:11px;bottom:17px;padding:12px 16px}.rtd-gate-card{padding:34px 25px}.rtd-gate h1{font-size:21px}.rtd-inline-alert{margin:14px;font-size:11px;align-items:flex-start}.rtd-inline-alert>.rtd-icon{width:17px;height:17px;margin-top:2px}}
@media(max-width:375px){.rtd-stat{gap:7px;padding:14px 10px}.rtd-stat-icon{display:none}.rtd-product-card h3{padding-right:0;font-size:15px}.rtd-product-code{display:none}.rtd-section-heading h2{font-size:16px}.rtd-breadcrumb{gap:6px}.rtd-today{font-size:8px}.rtd-main{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){.rtd-product-card,.rtd-sidebar,.rtd-button,.rtd-nav-item{transition:none}.rtd-product-card:hover{transform:none}.rtd-spinner{animation-duration:1.6s}}
@media print{.rtd-sidebar,.rtd-topbar,.rtd-heading-actions,.rtd-filters,.rtd-row-actions,.rtd-pagination,.rtd-back-link,.rtd-footer,.rtd-export-note,.rtd-toast,#rtd-modal-root{display:none!important}.rtd-main-wrap{margin:0}.rtd-main{padding:0;max-width:none}.rtd-panel{border:none;box-shadow:none}.rtd-table-wrap{overflow:visible}.rtd-table{min-width:0}.rtd-table thead{display:table-header-group}.rtd-table tr{break-inside:avoid}.rtd-table .rtd-actions-heading{display:none}}

/* Manufacturing module; shared styles above preserve the dispatch register. */
.rtd-manufacturing-entry{display:flex;align-items:center;gap:18px;padding:22px 24px;border:1px solid #e0e7ef;border-left:4px solid #607c97;border-radius:9px;background:#fff;margin:0 0 34px;box-shadow:0 3px 10px #172b4403}
.rtd-module-icon{display:grid;place-items:center;background:#eef3f8;color:#627d98;width:48px;height:48px;flex:none;border-radius:11px}.rtd-module-icon .rtd-icon{width:27px;height:27px}
.rtd-manufacturing-entry>div{flex:1;min-width:0}.rtd-manufacturing-entry .rtd-eyebrow{font-size:8px;color:#71869d;display:block;margin:0 0 5px;letter-spacing:1.4px}.rtd-manufacturing-entry h2{font-size:17px;line-height:1.3;letter-spacing:-.25px;margin:0 0 5px;color:#35475e}.rtd-manufacturing-entry p{font-size:10px;color:#8c99ab;line-height:1.7;margin:0}.rtd-manufacturing-entry .rtd-button{font-size:11px!important}
.rtd-manufacturing-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 24px}.rtd-manufacturing-stat{padding:18px 20px;background:#fff;border:1px solid var(--rtd-line);border-radius:8px}.rtd-manufacturing-stat>span{display:block;font-size:10px;color:#7e8b9c;font-weight:600}.rtd-manufacturing-stat>strong{display:block;font-size:27px;font-weight:700;color:#334358;line-height:1.45;letter-spacing:-.4px}.rtd-manufacturing-stat>small{font-size:9px;color:#a1aab6;display:block;line-height:1.5}
.rtd-dispatch-context{display:flex;align-items:center;gap:13px;background:#eef4f9;border:1px solid #dce7f0;padding:16px 19px;margin:0 0 20px;border-radius:7px;color:#7189a0}.rtd-dispatch-context>div{flex:1;min-width:0}.rtd-dispatch-context strong{display:block;font-size:12px;font-weight:600;color:#526c86;overflow-wrap:anywhere}.rtd-dispatch-context span{display:block;font-size:10px;margin-top:3px;color:#8b9daf}.rtd-dispatch-context .rtd-button{font-size:10px!important;min-height:34px}
.rtd-filters.rtd-manufacturing-filters{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(180px,1.5fr) minmax(125px,1fr) repeat(2,minmax(128px,.8fr)) auto;gap:12px}.rtd-filters.rtd-manufacturing-filters>.rtd-field{width:auto;min-width:0}.rtd-manufacturing-filters .rtd-filter-actions{align-self:end}
.rtd-manufacturing-table{min-width:1400px;table-layout:fixed}.rtd-manufacturing-table th:nth-child(1),.rtd-manufacturing-table th:nth-child(2){width:12%}.rtd-manufacturing-table th:nth-child(3){width:8%}.rtd-manufacturing-table th:nth-child(n+4):nth-child(-n+6){width:7%;text-align:right}.rtd-manufacturing-table th:nth-child(n+7):nth-child(-n+9){width:7%}.rtd-manufacturing-table th:nth-child(10){width:14%}.rtd-manufacturing-table th:nth-child(11){width:12%}.rtd-manufacturing-table th,.rtd-manufacturing-table td{padding-left:12px;padding-right:12px}.rtd-manufacturing-table th{white-space:normal;line-height:1.7;font-size:8px}.rtd-manufacturing-table td{vertical-align:top;padding-top:19px;padding-bottom:19px}.rtd-manufacturing-table .rtd-item-name{font-size:11px;line-height:1.6;display:block;overflow-wrap:anywhere}.rtd-row-reference{display:block;font-size:9px;color:#a5aeb9;margin-top:5px}.rtd-manufacturing-table .rtd-invoice{max-width:100%;word-break:break-word;font-size:9px;line-height:1.6}
.rtd-manufacturing-table .rtd-quantity-cell,.rtd-manufacturing-table .rtd-quantity-heading{text-align:right;white-space:nowrap;padding-left:8px;padding-right:12px}.rtd-quantity-cell{font-variant-numeric:tabular-nums;font-weight:600;color:#5e738c!important}
.rtd-note-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere;max-height:5.1em;color:#8591a2}
.rtd-link-status{font-size:8px;white-space:nowrap;margin-bottom:5px}.rtd-link-status.is-linked{background:#ecf6f0;color:#638b75}.rtd-link-status.is-unlinked{background:#f0f2f6;color:#919eae}.rtd-link-status.is-removed{background:#fff0e7;color:#b28258}
.rtd-linked-invoice{display:block;font-size:10px;color:#7a8b9f;font-weight:550;overflow-wrap:anywhere}.rtd-linked-branch{display:block;font-size:9px;color:#a3adba;line-height:1.6;overflow-wrap:anywhere;margin-top:3px}.rtd-manufacturing-link-cell>.rtd-button{padding:4px 0;min-height:26px;white-space:normal;font-size:9px!important;color:#6f889f}.rtd-manufacturing-link-cell>.rtd-button .rtd-icon{height:13px;width:13px}.rtd-manufacturing-table .rtd-row-actions{gap:2px;align-items:flex-start}
.rtd-source-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 13px;font-size:10px;color:#a0a9b5;margin:0 2px 15px;line-height:1.7}#royal-dispatch-app .rtd-source-note a{color:#718aa1;text-decoration:underline;text-underline-offset:3px}
.rtd-modal-wide{width:660px}.rtd-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rtd-modal-footer{flex-wrap:wrap}
.rtd-form-grid.rtd-form-grid-quantity{grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(90px,.7fr)}
#rtd-modal-root textarea{font:inherit;outline-offset:3px}.rtd-field textarea{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:78px;resize:vertical;padding:10px 12px;border:1px solid #dfe5ed;border-radius:5px;font-size:12px!important;line-height:1.6;background:#fff;color:#3e4a5c}.rtd-field textarea:hover{border-color:#bcc8d8}.rtd-field textarea:focus{border-color:#738da9}.rtd-field textarea::placeholder{color:#a5aebb}.rtd-field textarea:disabled{background:#f6f8fb;color:#94a0b0}
.rtd-dispatch-link-editor{border:1px solid #dde5ee;border-radius:8px;padding:17px 18px 18px;margin:4px 0 0;min-width:0;background:#fbfcfd}.rtd-dispatch-link-editor legend{padding:0 7px;font-size:12px;font-weight:650;color:#62788e}.rtd-dispatch-link-editor legend .rtd-icon{width:15px;height:15px;margin-right:5px}.rtd-dispatch-link-editor legend>span{font-size:9px;color:#a0adbb;font-weight:400;margin-left:6px}.rtd-link-explanation{font-size:10px;line-height:1.7;color:#94a0af;margin:0 0 14px}.rtd-dispatch-link-editor>.rtd-button{font-size:10px!important;min-height:34px;margin-top:4px}
.rtd-selected-dispatch{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f1f7f4;border:1px solid #dcebe3;border-radius:6px;padding:14px;margin-bottom:10px}.rtd-selected-dispatch>div{min-width:0}.rtd-selected-dispatch strong{display:block;font-size:12px;font-weight:600;color:#627b6d;overflow-wrap:anywhere;margin-top:2px}.rtd-selected-dispatch>div>span:not(.rtd-status-pill){font-size:10px;color:#91a396;display:block;margin-top:4px;line-height:1.6}.rtd-selected-dispatch small{font-size:9px;color:#a2afa7;display:block;margin-top:3px}.rtd-selected-dispatch>.rtd-button{font-size:10px!important;color:#8b9e92;min-height:32px}.rtd-selected-dispatch.is-removed{background:#fff7f0;border-color:#f0e2d5}.rtd-selected-dispatch.is-removed strong{color:#aa8868}.rtd-selected-dispatch.is-removed>div>span:not(.rtd-status-pill){color:#b39b86}
.rtd-no-dispatch{display:flex;align-items:center;gap:9px;font-size:10px;color:#9ca8b6;line-height:1.7;padding:4px 0 15px}.rtd-no-dispatch .rtd-icon{width:18px;height:18px;color:#b1bac5}
.rtd-dispatch-picker{border-top:1px solid #e6ebf2;margin-top:16px;padding-top:12px}.rtd-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.rtd-picker-heading>strong{font-size:11px;color:#788da3;font-weight:600}.rtd-picker-heading>.rtd-button{font-size:9px!important;padding-right:0;min-height:30px}.rtd-picker-search{display:flex;align-items:flex-end;gap:8px;margin-top:8px}.rtd-picker-search>.rtd-field{flex:1}.rtd-picker-search .rtd-field>label{font-size:9px}.rtd-picker-search .rtd-field>input{height:36px;font-size:10px!important}.rtd-picker-search>.rtd-button{min-height:36px;font-size:10px!important}
.rtd-picker-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:30px 10px;font-size:11px;color:#94a2b2}.rtd-picker-error,.rtd-picker-empty{padding:17px 3px;font-size:10px;line-height:1.7;color:#94a2b2;margin:0}.rtd-picker-error{color:#b84055}
.rtd-dispatch-choices{display:flex;flex-direction:column;gap:8px;margin:16px 0;max-height:300px;overflow-y:auto}.rtd-dispatch-choice{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e5eaf0;border-radius:5px;background:#fff;cursor:pointer}.rtd-dispatch-choice:hover{border-color:#b2c1d1;background:#fafcfe}.rtd-dispatch-choice:has(input:checked){border-color:#8fa8bf;background:#f1f6fa}.rtd-dispatch-choice>input{margin:4px 0 0;flex:none;accent-color:var(--rtd-red);width:15px;height:15px}.rtd-dispatch-choice>span{min-width:0}.rtd-dispatch-choice strong{display:block;font-size:11px;color:#6c8097;font-weight:600;overflow-wrap:anywhere}.rtd-dispatch-choice>span>span{display:block;font-size:10px;color:#96a3b2;line-height:1.6;margin-top:4px}.rtd-dispatch-choice small{display:block;font-size:8px;color:#afbac6;margin-top:3px}
.rtd-picker-pagination{display:flex;align-items:center;justify-content:space-between;gap:9px}.rtd-picker-pagination>span{font-size:9px;color:#a0adbb;line-height:1.5;text-align:center}.rtd-picker-pagination>.rtd-button{font-size:9px!important;min-height:30px;padding:6px 9px}.rtd-picker-use{display:flex;justify-content:flex-end;margin-top:17px}.rtd-picker-use>.rtd-button{font-size:10px!important;min-height:35px}
.rtd-manufacturing-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px;margin:0}.rtd-manufacturing-details>div{min-width:0}.rtd-manufacturing-details dt{color:#9aa7b6;font-size:10px;font-weight:500;margin-bottom:7px}.rtd-manufacturing-details dd{margin:0;color:#66798f;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.rtd-manufacturing-details .rtd-detail-wide{grid-column:1/-1;border-top:1px solid #edf0f5;padding-top:18px}.rtd-detail-text{white-space:pre-wrap}.rtd-detail-link-info{font-size:11px;margin:3px 0 13px;color:#92a1b1;line-height:1.8}.rtd-manufacturing-details dd>.rtd-button{font-size:10px!important;min-height:34px}
@media(max-width:1280px){.rtd-filters.rtd-manufacturing-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.rtd-manufacturing-stats{gap:12px}.rtd-manufacturing-stat{padding:17px 16px}.rtd-manufacturing-entry{gap:15px;padding:20px}.rtd-manufacturing-entry h2{font-size:16px}.rtd-manufacturing-entry .rtd-button{font-size:10px!important}}
@media(max-width:950px){.rtd-manufacturing-entry{flex-wrap:wrap;gap:13px 16px}.rtd-manufacturing-entry>div{flex-basis:calc(100% - 70px)}.rtd-manufacturing-entry>.rtd-button{margin-left:64px}.rtd-manufacturing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rtd-manufacturing-stat{padding:16px 19px}.rtd-dispatch-context{align-items:flex-start;flex-wrap:wrap}.rtd-dispatch-context>div{min-width:calc(100% - 40px);flex-basis:calc(100% - 40px)}.rtd-dispatch-context>.rtd-button{margin-left:33px}}
@media(max-width:600px){.rtd-manufacturing-entry{padding:18px 16px;margin-bottom:28px;gap:10px 13px}.rtd-module-icon{width:38px;height:38px;border-radius:8px}.rtd-module-icon .rtd-icon{width:23px;height:23px}.rtd-manufacturing-entry>div{flex-basis:calc(100% - 55px)}.rtd-manufacturing-entry h2{font-size:15px}.rtd-manufacturing-entry p{font-size:9px}.rtd-manufacturing-entry>.rtd-button{margin-left:51px;font-size:10px!important}.rtd-manufacturing-stats{gap:10px;margin-bottom:19px}.rtd-manufacturing-stat{padding:14px}.rtd-manufacturing-stat>span{font-size:9px}.rtd-manufacturing-stat>strong{font-size:25px}.rtd-manufacturing-stat>small{font-size:8px}.rtd-filters.rtd-manufacturing-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rtd-manufacturing-filters>.rtd-manufacturing-search,.rtd-manufacturing-filters>.rtd-manufacturing-product{grid-column:1/-1}.rtd-manufacturing-filters .rtd-filter-actions{grid-column:1/-1}.rtd-manufacturing-filters>.rtd-field:nth-child(3){grid-column:1/-1}.rtd-dispatch-context{padding:14px;gap:10px}.rtd-dispatch-context strong{font-size:11px}.rtd-dispatch-context span{font-size:9px}.rtd-dispatch-context>.rtd-button{margin-left:30px}.rtd-form-grid{grid-template-columns:1fr;gap:17px}.rtd-field textarea{font-size:16px!important}.rtd-modal-wide .rtd-modal-footer .rtd-button{font-size:11px!important}.rtd-dispatch-link-editor{padding:13px 12px 15px}.rtd-dispatch-link-editor legend{font-size:11px}.rtd-picker-search{gap:6px}.rtd-picker-search .rtd-field>input{font-size:16px!important}.rtd-picker-heading{align-items:flex-start}.rtd-picker-heading>strong{font-size:10px}.rtd-picker-heading>.rtd-button{font-size:8px!important;min-height:25px;padding-top:0}.rtd-picker-pagination{gap:5px}.rtd-picker-pagination>span{font-size:8px}.rtd-picker-pagination>.rtd-button{font-size:8px!important;min-height:32px;padding:6px}.rtd-selected-dispatch{padding:12px;gap:8px}.rtd-selected-dispatch strong{font-size:11px}.rtd-selected-dispatch>div>span:not(.rtd-status-pill){font-size:9px}.rtd-manufacturing-details{grid-template-columns:1fr;gap:18px}.rtd-manufacturing-details dd{font-size:11px}.rtd-source-note{font-size:9px}.rtd-manufacturing-table .rtd-icon-button{min-width:32px;min-height:36px}}
@media print{.rtd-manufacturing-table{table-layout:auto;min-width:0}.rtd-note-preview{display:block;overflow:visible;max-height:none;-webkit-line-clamp:unset}.rtd-manufacturing-link-cell>.rtd-button,.rtd-manufacturing-entry,.rtd-dispatch-context>.rtd-button,.rtd-source-note{display:none!important}}
@media(max-width:600px){.rtd-form-grid.rtd-form-grid-quantity{grid-template-columns:repeat(2,minmax(0,1fr))}.rtd-form-grid-quantity>.rtd-field:first-child{grid-column:1/-1}}

/* Completion and shared batch allocations. */
.rtd-production-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.rtd-production-stats .rtd-manufacturing-stat{padding:17px 15px}.rtd-production-stats .rtd-manufacturing-stat>span{font-size:9px}.rtd-production-stats .rtd-manufacturing-stat>small{font-size:8px;line-height:1.6}.rtd-production-stats .rtd-manufacturing-stat>strong{font-size:25px;letter-spacing:-.8px;overflow-wrap:anywhere}
.rtd-production-status{display:inline-flex;align-items:center;gap:6px;font-size:8px;font-weight:600;line-height:1.6;border-radius:4px;padding:4px 7px;color:#7e8fa3;background:#eef2f6;white-space:nowrap}.rtd-production-status>span{width:5px;height:5px;background:currentColor;border-radius:50%;flex:none}.rtd-production-status.is-in_manufacturing{background:#edf2f8;color:#7087a0}.rtd-production-status.is-partially_completed{background:#fff6e4;color:#a4884b}.rtd-production-status.is-completed{background:#eaf6ef;color:#5d8b71}.rtd-production-status.is-unavailable{background:#fff0f1;color:#b26d77}.rtd-production-status-cell>.rtd-button{display:flex;margin-top:10px;min-height:31px;font-size:9px!important;padding:6px 8px}.rtd-production-status-cell>.rtd-button .rtd-icon{height:13px;width:13px}
.rtd-production-note{font-size:10px;line-height:1.8;color:#8b99aa;margin:16px 3px 0;max-width:1050px}.rtd-dispatch-production-table{min-width:1600px}.rtd-dispatch-production-table th{font-size:8px;white-space:normal;line-height:1.6}.rtd-dispatch-production-table td{vertical-align:top}.rtd-dispatch-production-table .rtd-quantity-cell{min-width:75px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.rtd-dispatch-workflow-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.rtd-dispatch-workflow-actions>.rtd-button{font-size:9px!important;padding:5px 8px;min-height:30px}.rtd-dispatch-workflow-actions>.rtd-button .rtd-icon{height:13px;width:13px}
.rtd-production-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 2px}.rtd-production-metrics>div{border:1px solid #e7ecf2;border-radius:5px;background:#f8fafc;padding:11px 10px;min-width:0}.rtd-production-metrics span{display:block;font-size:8px;font-weight:550;color:#97a4b4;line-height:1.5;margin-bottom:5px}.rtd-production-metrics strong{display:block;font-size:16px;font-weight:650;color:#61778f;font-variant-numeric:tabular-nums;letter-spacing:-.5px;line-height:1.4}.rtd-manufacturing-detail-status{margin:0 0 -7px}.rtd-dispatch-production-summary{display:flex;flex-direction:column;gap:12px}.rtd-dispatch-production-summary>.rtd-production-status{align-self:flex-start}.rtd-dispatch-production-summary>.rtd-field-hint{margin:0}
.rtd-completion-batch{display:flex;flex-direction:column;gap:5px}.rtd-completion-batch>strong{font-size:14px;font-weight:650;color:#62778f;overflow-wrap:anywhere}.rtd-completion-batch>span{font-size:10px;color:#9cabbc;line-height:1.7;overflow-wrap:anywhere}.rtd-completion-preview{border:1px solid #dae8e0;background:#f0f7f3;border-radius:6px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}.rtd-completion-preview>span{font-size:9px;font-weight:600;color:#8da898}.rtd-completion-preview>strong{font-size:11px;font-weight:600;line-height:1.8;color:#6b8a78}.rtd-completion-correction{padding:16px;border:1px solid #e6eaf1;background:#f8fafc;border-radius:6px}.rtd-completion-correction input{max-width:230px}.rtd-new-production-note{font-size:10px;color:#91a1b3;background:#f3f6fa;border:1px solid #e7ecf3;border-radius:5px;padding:12px 14px;margin:0;line-height:1.8}
.rtd-form-allocation-note{display:flex;align-items:flex-start;gap:11px;background:#f4f7fa;border:1px solid #e3eaf2;border-radius:6px;padding:14px;color:#9aacbf}.rtd-form-allocation-note>.rtd-icon{width:19px;height:19px;margin-top:3px}.rtd-form-allocation-note strong{font-size:11px;font-weight:600;color:#7b90a7}.rtd-form-allocation-note p{font-size:10px;line-height:1.8;margin:5px 0 0;color:#9caabc}
.rtd-linked-dispatch-list{display:flex;flex-direction:column;gap:11px;margin-bottom:16px}.rtd-linked-dispatch-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;border:1px solid #e3eaf2;border-radius:6px;background:#f9fbfd}.rtd-linked-dispatch-item>div:first-child{min-width:0}.rtd-linked-dispatch-item strong{display:block;font-size:12px;color:#6c829a;overflow-wrap:anywhere;margin:3px 0}.rtd-linked-dispatch-item>div>span:not(.rtd-status-pill){display:block;color:#9cacbe;font-size:10px;line-height:1.8}.rtd-linked-dispatch-item small{display:block;font-size:9px;color:#abb7c5;line-height:1.7;margin-top:3px}.rtd-linked-dispatch-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.rtd-linked-dispatch-actions>.rtd-button{font-size:10px!important;min-height:32px}
.rtd-modal-allocations{width:920px}.rtd-modal-allocations .rtd-modal-body{gap:0}.rtd-allocation-dispatch{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:18px 20px;background:#f1f5fa;border:1px solid #e0e8f2;border-radius:7px}.rtd-allocation-dispatch>div:first-child{min-width:0;flex:1}.rtd-allocation-dispatch span{display:block;font-size:8px;font-weight:650;letter-spacing:1px;color:#8da1b7;margin-bottom:7px}.rtd-allocation-dispatch strong{display:block;font-size:19px;line-height:1.4;color:#607893;font-weight:650;overflow-wrap:anywhere}.rtd-allocation-dispatch p{margin:7px 0 0;font-size:10px;line-height:1.8;color:#98a9bb}.rtd-allocation-dispatch>div:last-child{text-align:right;min-width:90px}.rtd-allocation-explanation{font-size:10px;color:#9baabd;line-height:1.9;margin:14px 1px 22px}.rtd-existing-allocations h3,.rtd-allocation-candidates h3{font-size:13px;font-weight:650;color:#7389a1;margin:0 0 13px;display:flex;align-items:center;gap:8px}.rtd-existing-allocations .rtd-table-wrap{border:1px solid #e8edf4;border-radius:6px;max-height:320px;overflow:auto}.rtd-allocation-table{min-width:650px}.rtd-allocation-table th{font-size:8px;letter-spacing:.3px;padding:11px 12px}.rtd-allocation-table td{font-size:10px;padding:13px 12px}.rtd-allocation-table td:first-child{min-width:170px}.rtd-allocation-table td:first-child>strong{color:#7288a1;font-weight:600;display:block;overflow-wrap:anywhere}.rtd-allocation-table td:not(:first-child):not(:last-child){font-variant-numeric:tabular-nums;white-space:nowrap}.rtd-allocation-table .rtd-allocated-value{font-weight:700;color:#637d98}.rtd-allocation-table .rtd-button{font-size:9px!important;min-height:30px;padding:5px 8px}.rtd-allocation-table .rtd-row-reference{font-size:8px;margin-top:4px}
.rtd-allocation-editor{padding:19px 20px;margin:24px 0;border:1px solid #cddde9;background:#f7fbfe;border-radius:8px}.rtd-allocation-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.rtd-allocation-editor-heading>div{min-width:0}.rtd-allocation-editor-heading>div>span{font-size:8px;color:#8da4ba;font-weight:650;letter-spacing:.8px}.rtd-allocation-editor-heading h3{font-size:14px;font-weight:650;color:#6b849e;line-height:1.5;overflow-wrap:anywhere;margin:5px 0 0}.rtd-allocation-editor .rtd-production-metrics>div{background:#fff}.rtd-allocation-entry{display:flex;align-items:flex-start;gap:15px;margin-top:20px}.rtd-allocation-entry>.rtd-field{flex:1}.rtd-allocation-entry .rtd-field input{max-width:230px}.rtd-allocation-entry>.rtd-button{margin-top:24px;min-height:42px;font-size:11px!important}.rtd-allocation-preview{font-size:10px;line-height:1.8;color:#92a7b9;margin-top:13px}.rtd-allocation-candidates{border-top:1px solid #e4eaf2;margin-top:25px;padding-top:23px}.rtd-allocation-candidates>p{font-size:10px;line-height:1.8;color:#9aabbd;margin:-5px 0 14px}.rtd-allocation-candidates .rtd-picker-search{margin-bottom:15px}.rtd-allocation-candidates .rtd-table-wrap{border:1px solid #e7edf4;border-radius:6px}.rtd-allocation-candidates .rtd-picker-pagination{margin-top:13px}.rtd-allocation-error{display:flex;align-items:center;gap:12px;border:1px solid #efcbd3;border-radius:6px;background:#fff2f5;color:#af6377;padding:13px 15px;font-size:11px;line-height:1.8;margin:17px 0}.rtd-allocation-error>span{flex:1}.rtd-allocation-error>.rtd-button{font-size:10px!important}
@media(max-width:1280px){.rtd-production-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.rtd-modal-allocations .rtd-modal-body{padding-left:17px;padding-right:17px}.rtd-allocation-dispatch{padding:16px}.rtd-allocation-dispatch strong{font-size:17px}.rtd-allocation-editor{padding:17px 15px}.rtd-allocation-entry{display:block}.rtd-allocation-entry>.rtd-button{margin-top:13px}.rtd-allocation-editor-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.rtd-linked-dispatch-item{align-items:flex-start;flex-wrap:wrap}.rtd-linked-dispatch-actions{flex-direction:row;align-items:center;justify-content:flex-start}.rtd-allocation-error{flex-direction:column;align-items:flex-start}.rtd-production-metrics{gap:6px}.rtd-production-metrics>div{padding:10px 8px}}
@media(max-width:600px){.rtd-production-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rtd-production-stats .rtd-manufacturing-stat{padding:14px}.rtd-production-stats .rtd-manufacturing-stat>strong{font-size:24px}.rtd-production-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rtd-production-metrics>div{padding:11px 10px}.rtd-production-metrics strong{font-size:17px}.rtd-production-metrics span{font-size:8px}.rtd-production-note{font-size:9px}.rtd-allocation-dispatch{gap:12px}.rtd-allocation-dispatch span{font-size:7px;letter-spacing:.6px}.rtd-allocation-dispatch strong{font-size:16px}.rtd-allocation-dispatch>div:last-child{min-width:75px}.rtd-allocation-dispatch p{font-size:9px}.rtd-allocation-explanation{font-size:9px}.rtd-completion-correction{padding:13px}.rtd-completion-correction input{max-width:none}.rtd-allocation-entry .rtd-field input{max-width:none}.rtd-allocation-entry>.rtd-button{width:100%}.rtd-linked-dispatch-item{padding:13px}.rtd-linked-dispatch-item small{font-size:8px}.rtd-linked-dispatch-actions>.rtd-button{font-size:9px!important}.rtd-modal-footer{justify-content:flex-end;gap:7px}.rtd-modal-footer .rtd-button{font-size:10px!important}}
@media print{.rtd-production-status-cell>.rtd-button,.rtd-dispatch-workflow-actions{display:none!important}.rtd-manufacturing-table,.rtd-dispatch-production-table{table-layout:auto;min-width:0}.rtd-manufacturing-table th{width:auto!important}}

/* Both dispatch registers show the order and its two dispatch stages. */
.rtd-workflow-register-table{min-width:1700px;table-layout:fixed}
.rtd-workflow-register-table th:nth-child(1){width:7%}
.rtd-workflow-register-table th:nth-child(2){width:9%}
.rtd-workflow-register-table th:nth-child(3){width:8%}
.rtd-workflow-register-table th:nth-child(4){width:12%}
.rtd-workflow-register-table th:nth-child(5){width:9%}
.rtd-workflow-register-table th:nth-child(6),.rtd-workflow-register-table th:nth-child(7){width:8%}
.rtd-workflow-register-table th:nth-child(8){width:6%;text-align:right}
.rtd-workflow-register-table th:nth-child(9){width:11%}
.rtd-workflow-register-table th:nth-child(10){width:10%}
.rtd-workflow-register-table th:nth-child(11){width:12%}
.rtd-workflow-register-table th,.rtd-workflow-register-table td{padding-left:12px;padding-right:12px}
.rtd-workflow-register-table th{font-size:8px;white-space:normal;line-height:1.6}
.rtd-workflow-register-table td{vertical-align:top;line-height:1.7;overflow-wrap:anywhere}
.rtd-workflow-register-table .rtd-quantity-cell{text-align:right;white-space:nowrap}
.rtd-product-record-actions{gap:3px}
.rtd-product-record-actions>.rtd-button{padding:6px 8px;min-height:32px;font-size:9px!important;gap:5px}
.rtd-product-record-actions>.rtd-button .rtd-icon{width:13px;height:13px}
.rtd-product-record-actions>.rtd-icon-button{width:30px;height:32px;min-width:30px}
.rtd-dispatch-vins{list-style:none!important;padding:0!important;margin:0!important;display:flex;flex-direction:column;gap:12px}
.rtd-dispatch-vins>li{margin:0;padding:0;min-width:0}
.rtd-vin-value{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#52667e;font-size:10px;font-weight:550;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.rtd-vin-value.is-unset{font-family:inherit;font-weight:400;color:#a5adba}
.rtd-dispatch-vins small{display:block;font-size:8px;line-height:1.7;color:#98a5b5;margin-top:3px}
.rtd-dispatch-vin-panel{border:1px solid #e7ecf2;background:#f8fafc;border-radius:7px;padding:16px}
.rtd-dispatch-vin-panel h3{font-size:11px;font-weight:600;color:#6c7d93;margin:0 0 12px;line-height:1.5}
.rtd-dispatch-vin-panel>.rtd-field-hint{margin:13px 0 0}
.rtd-dispatch-vin-panel .rtd-dispatch-vins{gap:14px}
.rtd-dispatch-vin-panel .rtd-vin-value{font-size:11px}
.rtd-dispatch-vin-panel .rtd-dispatch-vins small{font-size:9px}
@media print{.rtd-workflow-register-table{min-width:0;table-layout:auto}.rtd-workflow-register-table th{width:auto!important}.rtd-product-record-actions{display:none!important}}

/* Dispatch saves assign available completed stock by VIN in one form. */
.rtd-form-grid.rtd-dispatch-stock-fields{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.rtd-stock-save-note{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.8;color:#6f839a;background:#f1f6fa;border:1px solid #dfe8f0;border-radius:6px;padding:13px 15px;margin:0}
.rtd-stock-save-note>.rtd-icon{width:17px;height:17px;flex:none;margin-top:2px}
.rtd-stock-edit-notice{display:flex;gap:10px;align-items:flex-start;background:#fff8e9;border:1px solid #efe1b8;color:#8a7139;padding:14px 16px;border-radius:6px;font-size:11px;line-height:1.8}
.rtd-stock-edit-notice>.rtd-icon{flex:none;width:18px;height:18px;margin-top:2px}
.rtd-production-metrics.rtd-stock-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.rtd-current-stock h3{font-size:11px;line-height:1.5;margin:0 0 10px;color:#73869c;font-weight:600}
.rtd-current-stock>.rtd-field-hint{margin:9px 0 0}
.rtd-stock-explanation{font-size:11px;line-height:1.7;color:#8a9bad;margin:0}
@media(max-width:600px){.rtd-form-grid.rtd-dispatch-stock-fields{grid-template-columns:1fr}.rtd-stock-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rtd-stock-save-note,.rtd-stock-edit-notice{font-size:10px;padding:12px}.rtd-stock-explanation{font-size:10px}}

/* Location overview stays neutral; the same catalogue is used in every group. */
.rtd-location-sections{display:flex;flex-direction:column;gap:38px}
.rtd-location-heading{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.rtd-location-heading>div{flex:1}.rtd-location-heading h2{margin:0;font-size:20px;line-height:1.4;letter-spacing:-.4px}.rtd-location-heading p{margin:4px 0 0;color:#8999ac;font-size:11px}
.rtd-location-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:10px;background:#eaf0f6;color:#657d95}
.rtd-location-symbol .rtd-icon{width:22px;height:22px}
.rtd-location-product .rtd-product-symbol{background:#eef3f8;color:#617f9a}.rtd-location-product .rtd-card-bottom{color:#657d95}.rtd-location-product:hover{border-color:#aebfd0}
.rtd-location-product .rtd-product-code{font-size:8px;letter-spacing:.6px;text-transform:uppercase}
.rtd-specialised-section{margin-top:20px;padding:19px;border:1px solid #e1e8f0;background:#f4f7fa;border-radius:9px}
.rtd-specialised-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.rtd-specialised-heading h3{margin:0;font-size:15px;line-height:1.5;color:#5b7188}.rtd-specialised-heading p{margin:3px 0 0;color:#8999ac;font-size:10px}
.rtd-specialised-heading .rtd-button{font-size:10px!important}.rtd-specialised-empty{font-size:11px;color:#8392a4;margin:0;line-height:1.8;padding:12px 0 3px}
.rtd-location-review{display:flex;align-items:center;gap:14px;border:1px solid #dae4ee;background:#edf3f8;border-radius:8px;padding:18px 20px;margin:0 0 28px;color:#6c8298}.rtd-location-review>.rtd-icon{flex:none;width:22px;height:22px}.rtd-location-review>div{flex:1}.rtd-location-review strong{font-size:12px;font-weight:650}.rtd-location-review p{font-size:11px;line-height:1.7;margin:4px 0 0}.rtd-location-review>.rtd-button{font-size:10px!important}
.rtd-order-context{display:flex;align-items:center;gap:8px;margin:0;color:#647f98;background:#eef4f9;border:1px solid #e0e8f1;padding:11px 13px;border-radius:6px;font-size:12px;font-weight:600}
.rtd-order-context .rtd-icon{width:18px;height:18px}.rtd-field label .rtd-optional-label{color:#8d9aab;font-size:10px;font-weight:400;margin-left:5px}
.rtd-dispatch-dates{border:1px solid #e0e7ef;border-radius:7px;padding:15px;margin:0;min-width:0}.rtd-dispatch-dates legend{font-size:12px;color:#5f758c;font-weight:600;padding:0 6px}.rtd-dispatch-dates>p{font-size:10px;color:#8b9bad;line-height:1.8;margin:0 0 15px}
.rtd-previous-details{border:1px solid #e4eaf1;border-radius:6px;padding:13px 15px;background:#f8fafc}.rtd-previous-details summary{font-size:11px;font-weight:600;color:#73869c;cursor:pointer}.rtd-previous-details p{font-size:10px;line-height:1.8;color:#8b9bad}.rtd-previous-details dl{margin:12px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rtd-previous-details dt{font-size:9px;color:#8a99ab}.rtd-previous-details dd{font-size:11px;color:#647a93;margin:5px 0 0;line-height:1.7}
.rtd-filters.rtd-order-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rtd-filters.rtd-order-filters>.rtd-field{width:auto;min-width:0}.rtd-order-filters .rtd-filter-actions{align-self:end}
/* Dispatch colours appear in the register and its sidebar shortcuts. */
.rtd-dispatch-register .rtd-dispatch-status{display:inline-flex;align-items:center;gap:6px;border-radius:4px;padding:5px 7px;font-size:9px;font-weight:650;line-height:1.5;color:#64748b;background:#edf1f5;white-space:normal}
.rtd-dispatch-register .rtd-dispatch-status-list{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.rtd-dispatch-register .rtd-dispatch-status>span{flex:none;width:6px;height:6px;border-radius:50%;background:currentColor}
.rtd-dispatch-register .rtd-dispatch-status.is-red{color:#952b3e;background:#fde9ed}.rtd-dispatch-register .rtd-dispatch-status.is-orange{color:#8b5412;background:#fff0d5}.rtd-dispatch-register .rtd-dispatch-status.is-green{color:#246a43;background:#e3f3e8}
.rtd-dispatch-register .rtd-rag-red>td{background:#fff6f7}.rtd-dispatch-register .rtd-rag-orange>td{background:#fffbf2}.rtd-dispatch-register .rtd-rag-green>td{background:#f2faf5}
.rtd-dispatch-register .rtd-rag-red>td:first-child{box-shadow:inset 3px 0 #b63c50}.rtd-dispatch-register .rtd-rag-orange>td:first-child{box-shadow:inset 3px 0 #b47a25}.rtd-dispatch-register .rtd-rag-green>td:first-child{box-shadow:inset 3px 0 #418660}
.rtd-dispatch-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0 22px 18px}.rtd-dispatch-legend>strong{font-size:10px;font-weight:600;color:#6c7f95}.rtd-dispatch-legend p{flex-basis:100%;margin:1px 0 0;font-size:10px;color:#8293a7;line-height:1.7}
/* Manufacturing association and stock states remain neutral. */
.rtd-link-status.is-linked,.rtd-link-status.is-unlinked,.rtd-link-status.is-removed{background:#edf2f7;color:#687d93}
.rtd-production-status.is-in_manufacturing,.rtd-production-status.is-partially_completed,.rtd-production-status.is-completed,.rtd-production-status.is-unavailable{background:#edf2f7;color:#687d93}
@media(max-width:800px){.rtd-filters.rtd-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.rtd-location-review{flex-wrap:wrap}.rtd-location-review>.rtd-button{margin-left:36px}.rtd-location-heading h2{font-size:18px}}
@media(max-width:600px){.rtd-location-sections{gap:30px}.rtd-location-heading{gap:10px;align-items:flex-start}.rtd-location-heading h2{font-size:17px}.rtd-location-heading p{font-size:10px}.rtd-location-heading>.rtd-count-badge{margin-top:8px;font-size:8px}.rtd-location-symbol{height:37px;width:37px}.rtd-location-product .rtd-product-code{display:none}.rtd-location-product h3{padding-right:0}.rtd-specialised-section{padding:14px}.rtd-specialised-heading{align-items:flex-start;flex-direction:column;gap:12px}.rtd-specialised-heading h3{font-size:14px}.rtd-location-review{padding:14px;gap:10px}.rtd-location-review strong{font-size:11px}.rtd-location-review p{font-size:10px}.rtd-location-review>.rtd-button{margin-left:32px}.rtd-filters.rtd-order-filters>.rtd-search-field,.rtd-order-filters .rtd-filter-actions{grid-column:1/-1}.rtd-order-filters .rtd-filter-actions{width:auto}.rtd-dispatch-legend{padding:0 14px 16px;gap:7px}.rtd-dispatch-register .rtd-dispatch-status{font-size:8px}.rtd-dispatch-legend p{font-size:9px}.rtd-previous-details dl{grid-template-columns:1fr}.rtd-dispatch-dates{padding:13px}}


/* Shared overview layout editor: layout changes do not change order locations. */
.rtd-overview-editor-bar{position:sticky;top:12px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 19px;margin:-5px 0 24px;background:#fff;border:1px solid #cbd7e3;border-radius:9px;box-shadow:0 6px 18px #182b4310}
.rtd-overview-editor-bar>div:first-child{flex:1;min-width:0}.rtd-overview-editor-bar strong{display:block;font-size:13px;line-height:1.5;color:#28394e}.rtd-overview-editor-bar span{display:block;font-size:11px;line-height:1.7;color:#718298;margin-top:3px}.rtd-overview-editor-bar>div:last-child{display:flex;gap:8px;flex:none}
.rtd-layout-error{margin:0 0 24px;align-items:center}.rtd-layout-error>span{flex:1}
.rtd-overview-product-section{margin:0 0 24px;min-width:0;border-radius:8px}.rtd-overview-product-section:last-child{margin-bottom:0}
.rtd-overview-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-width:0}.rtd-overview-section-heading>div:not(.rtd-layout-order-controls):not(.rtd-layout-section-actions){flex:1;min-width:0}
.rtd-overview-section-heading h3{margin:0;color:#586c83;font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}.rtd-overview-section-heading p{margin:3px 0 0;color:#8797aa;font-size:10px}
.rtd-layout-section-actions,.rtd-layout-location-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.rtd-location-heading>.rtd-layout-location-actions{flex:none}
.rtd-layout-section-actions .rtd-button,.rtd-layout-location-actions .rtd-button{font-size:10px!important;min-height:32px;padding:7px 10px}
.rtd-layout-order-controls{display:flex;align-items:center;gap:2px;flex:none!important}.rtd-layout-order-controls .rtd-button{padding:4px 7px;min-width:27px;min-height:32px;font-size:15px!important}.rtd-layout-order-controls .rtd-icon-button{min-width:29px;min-height:32px;padding:5px}
.rtd-drag-handle{cursor:grab;touch-action:none;user-select:none;color:#71859c}.rtd-drag-handle:active{cursor:grabbing}.rtd-drag-handle:disabled{cursor:wait}.rtd-drag-handle .rtd-icon{height:19px;width:19px}
.rtd-location-sections.is-editing>.rtd-location-section{padding:19px;border:1px solid #dbe4ee;border-radius:10px;background:#f0f4f8}
.is-editing .rtd-location-heading{flex-wrap:wrap}.is-editing .rtd-location-heading h2{overflow-wrap:anywhere}.is-editing .rtd-overview-product-section{padding:15px;background:#f8fafc;border:1px dashed #cad7e4}
.is-editing .rtd-overview-section-heading{flex-wrap:wrap}
.rtd-layout-card{padding-top:12px!important}.rtd-layout-card:hover{transform:none;box-shadow:0 3px 7px #182b4303}.rtd-layout-card-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #edf1f5}
.rtd-layout-card-controls>.rtd-layout-order-controls{margin-right:auto}.rtd-layout-card-controls>.rtd-button{font-size:10px!important;min-height:29px;padding:5px 6px}.rtd-layout-card-controls>.rtd-icon-button{min-height:29px;min-width:26px;padding:5px}.rtd-layout-card-controls .rtd-icon{width:16px;height:16px}
.rtd-layout-card .rtd-card-bottom{justify-content:flex-end}.rtd-layout-card .rtd-card-bottom .rtd-button{font-size:10px!important;min-height:26px;padding:3px 0}.rtd-layout-card h3{overflow-wrap:anywhere}
.rtd-layout-product-zone{min-height:55px;border-radius:6px}.rtd-layout-empty{margin:0;grid-column:1/-1;padding:20px 13px;color:#7b8da1;font-size:11px;line-height:1.7;text-align:center;border:1px dashed #ccd8e5;border-radius:6px;background:#f9fbfd}
.rtd-layout-hidden{margin:15px 0 0;font-size:10px;line-height:1.7;color:#71859b}
.rtd-layout-drag-over{outline:3px solid #829bb7!important;outline-offset:3px;background-color:#e7eef6!important}
.rtd-layout-create-choice{border-top:1px solid var(--rtd-line);padding-top:16px}.rtd-layout-create-choice p{font-size:12px;color:#718298;margin:0 0 10px}.rtd-layout-product-name{font-size:14px;font-weight:650;color:#344960;margin:0}
@media(max-width:1050px){.rtd-overview-editor-bar{align-items:flex-start;gap:14px}.rtd-overview-editor-bar>div:last-child{flex-direction:column}.rtd-layout-section-actions{width:100%;justify-content:flex-start}.is-editing .rtd-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rtd-overview-editor-bar{position:static;display:block;padding:15px}.rtd-overview-editor-bar>div:last-child{flex-direction:row;flex-wrap:wrap;margin-top:13px}.rtd-overview-editor-bar .rtd-button{flex:1;font-size:10px!important;min-height:38px}.rtd-overview-editor-bar span{font-size:10px}.rtd-location-sections.is-editing>.rtd-location-section{padding:13px}.is-editing .rtd-overview-product-section{padding:11px}.is-editing .rtd-location-heading>.rtd-layout-location-actions{width:100%;justify-content:flex-start;margin-top:4px}.is-editing .rtd-location-heading h2{font-size:16px}.is-editing .rtd-location-heading>.rtd-count-badge{display:none}.rtd-layout-section-actions{gap:3px}.rtd-layout-section-actions .rtd-button{font-size:9px!important;padding:7px;min-height:36px}.is-editing .rtd-product-grid{grid-template-columns:1fr}.rtd-layout-card .rtd-card-top{margin-bottom:13px}.rtd-layout-card h3{margin-top:0;padding-left:0;padding-right:0}.rtd-layout-card p{padding-left:0;margin-bottom:14px}.rtd-layout-card-controls{margin-bottom:14px}.rtd-layout-card-controls .rtd-button,.rtd-layout-order-controls .rtd-button{min-height:36px}.rtd-layout-card-controls>.rtd-icon-button,.rtd-drag-handle{min-height:36px!important}.rtd-layout-error{flex-wrap:wrap}.rtd-layout-error>.rtd-button{margin-left:30px}.rtd-overview-section-heading h3{font-size:13px}}
@media print{.rtd-overview-editor-bar,.rtd-layout-card-controls,.rtd-layout-order-controls,.rtd-layout-section-actions,.rtd-layout-location-actions,.rtd-layout-hidden{display:none!important}.rtd-location-sections.is-editing>.rtd-location-section,.is-editing .rtd-overview-product-section{border:0;background:none;padding:0}}

/* Shared dispatch shortcuts and view-only overview filters. */
.rtd-alerts-label{margin-top:25px;margin-bottom:9px}
.rtd-dispatch-alerts{display:flex;flex-direction:column;gap:7px}
.rtd-nav-alert{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px 11px;border:1px solid transparent;border-radius:7px;text-align:left;font-size:11px!important;font-weight:650;line-height:1.5;transition:box-shadow .15s,filter .15s}
.rtd-nav-alert.is-red{color:#952b3e;background:#fde9ed}.rtd-nav-alert.is-orange{color:#8b5412;background:#fff0d5}.rtd-nav-alert.is-green{color:#246a43;background:#e3f3e8}
.rtd-nav-alert:hover{filter:brightness(.97)}.rtd-nav-alert.is-current{box-shadow:inset 0 0 0 2px currentColor}
.rtd-alert-dot{display:block;width:7px;height:7px;border-radius:50%;background:currentColor}
.rtd-alert-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.rtd-alert-count{display:inline-block;min-width:23px;max-width:58px;padding:2px 5px;border-radius:4px;background:#ffffffa6;text-align:center;font-size:10px;overflow-wrap:anywhere}
.rtd-dispatch-alerts>p{margin:0 11px;font-size:9px;line-height:1.7;color:#91a0b3}
.rtd-dispatch-legend>button.rtd-dispatch-status{border:1px solid transparent;min-height:34px;padding:6px 10px}
.rtd-dispatch-legend>button.rtd-dispatch-status:hover{filter:brightness(.97)}.rtd-dispatch-legend>button.rtd-dispatch-status[aria-pressed="true"]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}
.rtd-overview-filter-panel{margin:0 0 28px}
.rtd-overview-filter-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px 0}
.rtd-overview-filter-heading h2{margin:0;color:#34465b;font-size:13px;font-weight:650;line-height:1.5}
.rtd-overview-filter-heading p{margin:5px 0 0;color:#74869c;font-size:11px;line-height:1.7}
.rtd-overview-filter-heading>.rtd-count-badge{flex:none;margin-top:3px}
.rtd-filters.rtd-overview-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;border-bottom:0;padding-top:16px}
#royal-dispatch-app .rtd-filters.rtd-overview-filters>.rtd-field,#royal-dispatch-app .rtd-filters.rtd-order-filters>.rtd-field{width:auto;min-width:0}
.rtd-overview-filters .rtd-filter-actions{grid-column:1/-1;align-self:end;justify-content:flex-end}
.rtd-order-filters .rtd-filter-actions{grid-column:1/-1;justify-content:flex-end}
@media(max-width:800px){.rtd-filters.rtd-overview-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rtd-overview-filter-heading{padding:15px 14px 0;gap:9px}.rtd-overview-filter-heading p{font-size:10px}.rtd-overview-filter-heading>.rtd-count-badge{font-size:8px}.rtd-filters.rtd-overview-filters{gap:12px;padding:14px}.rtd-overview-filters .rtd-filter-actions{justify-content:flex-start}.rtd-overview-filters .rtd-filter-actions>.rtd-button{min-height:40px}.rtd-dispatch-legend>button.rtd-dispatch-status{min-height:38px}}
@media(max-width:400px){.rtd-filters.rtd-overview-filters{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.rtd-nav-alert{transition:none}}
@media print{.rtd-overview-filter-panel{display:none!important}}
