body.rgd-view .sd-dashboard-titles,body.rgd-view .sd-orders-section,body.rgd-view .sd-metrics,body.rgd-view .sd-attention,body.rgd-view .sd-table-card,body.rgd-view .order-workspace,body.rgd-view .toolbar,body.rgd-view .op-toolbar{display:none!important}.sd-sidebar button[data-regional-open][aria-pressed=true]{background:#08657a;color:white}#regional-deliveries-page{padding:4px 12px 28px;color:#173c4c}#regional-deliveries-page h1{font-size:30px;margin:0}#regional-deliveries-page h2{font-size:21px;margin:0}.rgd-page-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.rgd-page-head p{color:#6c8695;margin:6px 0 20px}.rgd-filters{display:flex;gap:10px;padding:16px;background:#fff;border:1px solid #dce7eb;border-radius:10px;margin-bottom:16px}.rgd-filters input{flex:1;min-width:150px}.rgd-filters select{max-width:220px}.rgd-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rgd-metrics>div{background:white;border:1px solid #dce7eb;border-top:3px solid #008b99;border-radius:9px;padding:15px;display:flex;justify-content:space-between;align-items:center}.rgd-metrics b{font-size:28px}.rgd-suggestion{background:#e8f8f5;border:1px solid #b9e4dd;border-radius:9px;padding:14px;margin:16px 0;display:flex;gap:20px;flex-wrap:wrap}.rgd-suggestion small{width:100%;color:#547980}.rgd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rgd-card{background:white;border:1px solid #d5e5ea;border-radius:10px;overflow:hidden;min-width:0}.rgd-card>header{padding:14px;display:flex;justify-content:space-between;gap:8px;align-items:center}.rgd-card small{display:block;color:#6d8794}.rgd-counts{display:flex;gap:14px;font-size:13px;padding:0 14px 12px;color:#567780}.rgd-table-scroll{max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.rgd-card table,.rgd-wizard table{border-collapse:separate;border-spacing:0;width:100%;text-align:right;font-size:14px}.rgd-card th,.rgd-wizard th{position:sticky;top:0;background:#ebf3f8;color:#34576e;z-index:1;padding:11px 8px;white-space:nowrap}.rgd-card td,.rgd-wizard td{padding:10px 8px;border-bottom:1px solid #e9eef2;vertical-align:middle}.rgd-order-link{display:inline;padding:0!important;border:0!important;border-radius:0!important;background:none!important;color:#087eac!important;text-decoration:underline;font-weight:700;min-height:0!important;font-size:15px}.rgd-card td strong,.rgd-wizard td strong{display:block;font-size:13px;margin-top:3px}.rgd-card td:nth-child(2){max-width:140px;overflow-wrap:anywhere}.rgd-card>footer,.rgd-wizard-total{padding:12px 16px;background:#e1f6f2;display:flex;align-items:center;justify-content:space-between;gap:12px}.rgd-card footer bdi{font-size:24px;font-weight:bold}.rgd-footnote{font-size:13px;color:#748b96}.rgd-old{color:#b26612!important}.rgd-wizard{width:min(1050px,94vw);max-height:92dvh;padding:22px;border:1px solid #d6e3e8;border-radius:15px;color:#173c4c;overflow:auto}.rgd-wizard::backdrop{background:#0b293b80}.rgd-wizard>header{display:flex;justify-content:space-between;align-items:center}.rgd-wizard nav{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0}.rgd-wizard nav span{padding:12px;border-radius:8px;background:#edf2f6;font-size:14px}.rgd-wizard nav .current{background:#087a8d;color:white;font-weight:bold}.rgd-wizard nav .done{background:#def2e9}.rgd-wizard-content{max-height:52dvh;overflow:auto;overscroll-behavior:contain}.rgd-wizard-table{max-height:43dvh;overflow:auto;margin:12px 0}.rgd-wizard table th{top:0}.rgd-select-all{padding:10px;background:#eef8fb;border-radius:6px}.rgd-badge{font-size:12px;white-space:nowrap;border-radius:6px;padding:5px;background:#fff0d8;color:#915619}.rgd-badge.ready{background:#e1f5eb;color:#217451}.rgd-badge.production{background:#e6f1fd;color:#236baf}.rgd-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.rgd-fields label{display:flex;flex-direction:column;gap:5px}.rgd-fields textarea{min-height:65px}.rgd-gap-card{border:1px solid #dce7eb;border-radius:8px;padding:15px}.rgd-gap-card ul{background:#fff7e9;border-radius:7px;padding:12px 30px}.rgd-wizard>footer{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.rgd-wizard>small{color:#6b8390}.rgd-good{color:#178858}.rgd-result{text-align:center}.rgd-result>div{font-size:65px}.rgd-loading{display:flex;gap:10px;align-items:center}.rgd-spinner{width:22px;height:22px;border:3px solid #d0e7e7;border-top-color:#008b99;border-radius:50%;animation:rdspin .8s linear infinite}@keyframes rdspin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.rgd-spinner{animation:none}}@media(max-width:1050px){.rgd-grid{grid-template-columns:1fr}}@media(max-width:650px){.rgd-metrics{grid-template-columns:1fr 1fr}.rgd-filters{flex-wrap:wrap}.rgd-page-head{align-items:flex-start;flex-direction:column}.rgd-fields{grid-template-columns:1fr}.rgd-wizard{padding:12px}.rgd-wizard nav span{font-size:11px;padding:8px}.rgd-card table{min-width:550px}}
.rgd-wizard[open]{display:flex;flex-direction:column;overflow:hidden}.rgd-wizard>header,.rgd-wizard>nav,.rgd-wizard>footer,.rgd-wizard-total,.rgd-wizard>small,.rgd-wizard>.sd-dialog-nav{flex-shrink:0}.rgd-wizard-content{flex:1;min-height:0}.rgd-wizard-table{max-height:none;overflow:visible}.rgd-wizard input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;min-width:20px!important;margin:0;transform:none!important;accent-color:#087a8d;flex:none}.rgd-select-all{display:flex;align-items:center;gap:10px}.rgd-wizard td small{display:block;margin-top:5px;color:#8c691f}.rgd-wizard>header>button[data-rgd-close]{display:none}
/* The dashboard locks document scrolling; the regional page owns the remaining height. */
body.rgd-view #regional-deliveries-page{flex:1 1 0%;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior-y:contain;box-sizing:border-box}
body.rgd-view .rgd-table-scroll{overscroll-behavior-y:auto}
body.rgd-view #regional-deliveries-page:focus-visible{outline:2px solid #008b99;outline-offset:-2px}

/* Sort controls keep native button keyboard behavior and expose the active column. */
.rgd-card th:has(.rgd-sort),.rgd-wizard th:has(.rgd-sort){padding:0}.rgd-sort{display:flex!important;align-items:center;justify-content:space-between;gap:5px;width:100%;min-height:42px!important;margin:0!important;padding:10px 8px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font:inherit;font-weight:700;box-shadow:none!important;white-space:nowrap;cursor:pointer}.rgd-sort:hover,.rgd-sort.active{background:#dbeaf2!important;color:#0a5f7e!important}.rgd-sort:focus-visible{outline:2px solid #087eac!important;outline-offset:-3px}.rgd-sort-arrow{font-size:13px;opacity:.55}.rgd-sort.active .rgd-sort-arrow{opacity:1}.rgd-sort-pair{display:flex;align-items:center;justify-content:space-between;white-space:nowrap}.rgd-sort-pair .rgd-sort{width:auto;flex:1}.rgd-sort-pair>span{opacity:.5}
