.rs-wdt-dialog{border:0;border-radius:12px;box-shadow:0 20px 70px #1b123855;width:min(850px,94vw);max-height:85vh;padding:0;color:#2d2540;background:#fff}
.rs-wdt-dialog::backdrop{background:#1b123899}
.rs-wdt-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;background:#54338b;color:#fff}
.rs-wdt-head h2{margin:0;color:inherit;font-size:1.25rem}
.rs-wdt-close{font-size:1.7rem;border:0;background:transparent;color:#fff;cursor:pointer}
.rs-wdt-content{padding:1.25rem 1.5rem;overflow:auto;max-height:calc(85vh - 5rem)}
.rs-wdt-revision{border-bottom:1px solid #ddd;padding:0 0 1.25rem;margin:0 0 1.25rem}
.rs-wdt-revision h3{font-size:1rem;margin:.5rem 0}
.rs-wdt-revision table{border-collapse:collapse;width:100%;table-layout:fixed;margin:.6rem 0}
.rs-wdt-revision th,.rs-wdt-revision td{border:1px solid #ddd;padding:.5rem;overflow-wrap:anywhere;text-align:left;vertical-align:top}
.rs-wdt-revision th{background:#f3eef8}
.rs-wdt-revision details{margin:.7rem 0}
.rs-wdt-alert{background:#fff1d6;padding:1rem}
.rs-wdt-open,.rs-wdt-restore,.rs-wdt-recover{cursor:pointer}
.rs-wdt-dashboard{color:#302b46;background:linear-gradient(145deg,#fbf9ff,#f0fffa);padding:clamp(1rem,3vw,2rem);border:1px solid #e9e0f3;border-radius:20px;box-shadow:0 12px 36px #40276b14}
.rs-wdt-dashboard h2{color:#54338b;margin:0 0 1.3rem;font-size:1.55rem}
.rs-wdt-dashboard-table{width:100%;border-collapse:separate;border-spacing:0 .55rem}
.rs-wdt-dashboard-table th{text-align:left;color:#66567e;font-weight:650;padding:.5rem .8rem}
.rs-wdt-dashboard-table td{background:#fff;padding:.85rem .8rem;box-shadow:0 3px 13px #43296910;vertical-align:top;overflow-wrap:anywhere}
.rs-wdt-dashboard-table td:first-child{border-radius:12px 0 0 12px}
.rs-wdt-dashboard-table td:last-child{border-radius:0 12px 12px 0}
.rs-wdt-open,.rs-wdt-restore,.rs-wdt-recover{border:0;border-radius:999px;padding:.55rem 1rem;background:linear-gradient(120deg,#6945a1,#53318d);color:#fff;font-weight:650;box-shadow:0 5px 13px #54338b35;transition:transform .15s,box-shadow .15s}
.rs-wdt-open:hover,.rs-wdt-restore:hover,.rs-wdt-recover:hover{color:#fff;transform:translateY(-1px);box-shadow:0 7px 18px #54338b50}
.rs-wdt-open:focus-visible,.rs-wdt-restore:focus-visible,.rs-wdt-recover:focus-visible,.rs-wdt-close:focus-visible{outline:3px solid #ff87bc;outline-offset:2px}
.rs-wdt-restore,.rs-wdt-recover{background:linear-gradient(120deg,#268c88,#32ad9e)}
.rs-wdt-restore:disabled,.rs-wdt-recover:disabled{opacity:.5;cursor:wait}
.rs-wdt-dialog{border-radius:20px;box-shadow:0 24px 72px #24114150}
.rs-wdt-head{background:linear-gradient(110deg,#54338b,#8a59a9);padding:1.1rem 1.5rem}
.rs-wdt-revision{background:#fff;border:1px solid #e8e0ef;border-radius:16px;padding:1rem;margin:0 0 1rem;box-shadow:0 6px 22px #39206212}
.rs-wdt-revision h3{color:#54338b}
.rs-wdt-revision th{background:#f5effb}
.rs-wdt-revision details summary{cursor:pointer;color:#6b449a;font-weight:600}
.rs-wdt-alert{border-left:4px solid #e055cb;border-radius:10px;background:#fff1fa}
.rs-wdt-page{display:inline-block;background:#fff;color:#54338b;padding:.4rem .7rem;border-radius:9px;margin:.4rem .2rem;box-shadow:0 3px 12px #39206218}
.rs-wdt-page[aria-current]{background:#54338b;color:#fff}
@media(max-width:700px){.rs-wdt-dashboard-table{display:block;overflow-x:auto}.rs-wdt-dashboard-table th,.rs-wdt-dashboard-table td{min-width:110px}.rs-wdt-dialog{width:96vw}}
.rs-wdt-toolbar-clock{min-width:2.3rem;padding:.48rem .65rem;font-size:1.2rem;line-height:1.2;vertical-align:middle;margin:.2rem .35rem}
.rs-wdt-toolbar-clock:disabled{background:#ded7e8;color:#6b6476;box-shadow:none;cursor:not-allowed;transform:none}
.rs-wdt-review-request{cursor:pointer;border:0;border-radius:999px;padding:.55rem 1rem;background:#77539f;color:#fff;font-weight:650;margin:.35rem .35rem .35rem 0}
.rs-wdt-review-request:disabled{opacity:.5}
.rs-wdt-review-decision{border-left:4px solid #238d75;background:#ecfff8;border-radius:9px;padding:1rem;margin:1rem 0}
.rs-wdt-review-decision.rejected{border-color:#c74677;background:#fff1f7}
.rs-wdt-review-page{max-width:900px;margin:1.5rem auto;padding:1.5rem;background:#fff;border:1px solid #e9e0f3;border-radius:16px;color:#302445}
.rs-wdt-review-page table{width:100%;border-collapse:collapse;margin:1rem 0}
.rs-wdt-review-page th,.rs-wdt-review-page td{border:1px solid #e4dcec;padding:.7rem;text-align:left;overflow-wrap:anywhere}
.rs-wdt-review-page textarea,.rs-wdt-review-page input[type=url]{width:100%;max-width:700px}
.rs-wdt-review-page button{border:0;border-radius:8px;padding:.7rem 1.1rem;margin:.3rem;background:#583b8c;color:white;cursor:pointer}
.rs-wdt-review-submit{border:0;border-radius:999px;background:#583b8c;color:#fff;padding:.7rem 1.2rem;cursor:pointer}
.rs-wdt-review-close{font-size:1.7rem;border:0;background:transparent;color:#fff;cursor:pointer}
.rs-wdt-review-dialog label{display:block;margin:.7rem 0}
.rs-wdt-review-dialog select,.rs-wdt-review-dialog input{max-width:100%;min-width:min(330px,80vw);padding:.45rem}
.rs-wdt-review-dialog details{margin-top:1rem;border-top:1px solid #e9e0f3;padding-top:.8rem}
.rs-wdt-review-dialog summary{cursor:pointer;color:#583b8c}
.rs-wdt-toolbar-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;float:none;vertical-align:middle;padding:0 4px 0 12px;order:999;flex:0 0 auto}
.rs-wdt-edit-toolbar{align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px}
.rs-wdt-edit-toolbar > :not(.rs-wdt-toolbar-actions){align-self:center;float:none!important;margin-top:0!important;margin-bottom:0!important}
.wpDataTablesPopover.editTools.rs-wdt-edit-toolbar{width:max-content!important;max-width:calc(100vw - 24px);box-sizing:border-box}
.wpDataTablesWrapper .rs-wdt-toolbar-clock{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:8px;margin:0;flex:0 0 44px;border-radius:50%;line-height:1}
.wpDataTablesWrapper .rs-wdt-toolbar-clock svg{display:block;width:28px;height:28px;min-width:28px;max-width:none;pointer-events:none}
.rs-wdt-row-review{border:0;border-radius:999px;background:linear-gradient(120deg,#6945a1,#53318d);color:#fff;padding:10px 16px;min-height:44px;margin:0;line-height:1.2;font:inherit;font-weight:650;cursor:pointer;white-space:nowrap}
.rs-wdt-row-review:disabled{background:#ded7e8;color:#6b6476;cursor:not-allowed}
.rs-wdt-row-review:focus-visible{outline:3px solid #ff87bc;outline-offset:2px}

.rs-wdt-review-dialog .rs-wdt-review-edit-option[hidden]{display:none}
.rs-wdt-review-dialog .rs-wdt-review-edit-option input{min-width:0;width:auto;margin-right:.5rem}
.rs-wdt-review-editor{margin-top:2rem;border-top:2px solid #e9e0f3;padding-top:1rem}
.rs-wdt-review-editor input:not([type=checkbox]):not([type=hidden]),.rs-wdt-review-editor textarea{width:100%;min-width:100px;box-sizing:border-box;padding:.5rem;border:1px solid #c9badc;border-radius:6px}
.rs-wdt-review-editor .rs-wdt-null{display:block;font-size:.8rem;margin-top:.5rem}
.rs-wdt-review-editor td{vertical-align:top}
.rs-wdt-review-editor form{overflow-x:auto}
.rs-wdt-review-editor input:focus-visible,.rs-wdt-review-editor textarea:focus-visible{outline:2px solid #77539f}

.rs-wdt-revision > .rs-wdt-review-decision{margin:1rem 0 0;box-shadow:none}
.rs-wdt-review-page-edit .rs-wdt-review-editor{margin-top:1rem;padding-top:0;border-top:0}
.rs-wdt-edit-table{table-layout:fixed}
.rs-wdt-edit-table th:nth-child(1){width:30%}
.rs-wdt-edit-table th:nth-child(2){width:27%}
.rs-wdt-edit-table th:nth-child(3){width:43%}
.rs-wdt-review-page .rs-wdt-edit-table thead th:nth-child(3),.rs-wdt-review-page .rs-wdt-edit-table tbody td:nth-child(3){background:#f3ecfb;color:#392650}
.rs-wdt-review-editor .rs-wdt-change-toggle{display:flex;align-items:center;gap:.45rem;font-size:.85rem;margin:0 0 .6rem;color:#694393}
.rs-wdt-review-editor .rs-wdt-change-toggle input{margin:0;flex:0 0 auto}
.rs-wdt-review-editor form > label{display:block;margin:.9rem 0}
.rs-wdt-review-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}
@media(max-width:650px){.rs-wdt-review-editor .rs-wdt-edit-table{min-width:560px}}

.rs-wdt-review-dialog .rs-wdt-review-note{display:block;width:100%;box-sizing:border-box;padding:.7rem;margin:.4rem 0;resize:vertical;border:1px solid #c9badc;border-radius:8px;background:#f3ecfb;color:#302445;font:inherit}
.rs-wdt-review-dialog .rs-wdt-review-note:focus-visible{outline:2px solid #77539f}
.rs-wdt-request-note-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:.8rem}

.rs-production-picker { margin-top: 8px; padding: 10px; background: #f5effc; border-radius: 6px; }
.rs-production-picker small { display: block; margin-top: 6px; line-height: 1.4; }
.rs-production-picker select { width: 100%; }
.rs-wdt-production-operation { margin: 10px 8px 6px 0; background: #ede3fa; border: 1px solid #c4a6e4; border-radius: 5px; padding: 7px 12px; cursor: pointer; }

/* Production chooser: aligned columns, native keyboard-accessible buttons. */
.rs-production-picker { padding: 12px; border: 1px solid #e4ddef; border-radius: 12px; background: #faf8fd; min-width: 0; }
.rs-production-picker [hidden] { display: none !important; }
.rs-production-picker .rs-production-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #d9cde9; border-radius: 9px; color: #493663; background: white; font: inherit; font-weight: 600; text-align: left; cursor: pointer; white-space: normal; }
.rs-production-toggle::after { content: '⌄'; }
.rs-production-toggle[aria-expanded="true"]::after { content: '⌃'; }
.rs-production-toggle:disabled { opacity: .65; cursor: default; }
.rs-production-summary { margin-top: 8px; color: #493663; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-production-summary:empty { display: none; }
.rs-production-panel { margin-top: 10px; max-height: 340px; overflow: auto; border: 1px solid #e5dfed; border-radius: 10px; background: #fff; }
.rs-production-picker table.rs-production-grid { width: 100%; min-width: 650px; border: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 13px; line-height: 1.45; margin: 0; }
.rs-production-picker .rs-production-grid th, .rs-production-picker .rs-production-grid td { padding: 11px 12px; border: 0; border-bottom: 1px solid #eee9f3; text-align: left; vertical-align: middle; color: #393543; background: transparent; }
.rs-production-picker .rs-production-grid th { position: sticky; top: 0; z-index: 1; background: #f1edf7; color: #655276; font-weight: 600; white-space: nowrap; }
.rs-production-grid td:nth-child(4) { min-width: 160px; overflow-wrap: anywhere; }
.rs-production-picker .rs-production-grid .rs-production-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-production-grid tbody tr:hover { background: #f8f5fc; }
.rs-production-grid tbody tr.is-total { background: #edf8f5; font-weight: 600; }
.rs-production-grid tbody tr.is-selected { background: #ede5f8; }
.rs-production-grid tbody tr:last-child td { border-bottom: 0; }
.rs-production-picker .rs-production-choose { min-width: 54px; padding: 6px 9px; border: 1px solid #d5c6e7; border-radius: 7px; background: #fff; color: #634381; cursor: pointer; font: inherit; font-size: 12px; }
.rs-production-picker .rs-production-choose[aria-pressed="true"] { background: #705093; border-color: #705093; color: white; }
.rs-production-picker button:focus-visible { outline: 3px solid #9e80c0; outline-offset: 2px; }
.rs-production-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.rs-production-grid td:first-child { white-space: nowrap; }
.rs-production-picker input.rs-production-check { display: inline-block !important; position: static !important; opacity: 1 !important; width: 17px !important; height: 17px !important; margin: 0 9px 0 0 !important; vertical-align: middle; accent-color: #705093; cursor: pointer; }
.rs-production-picker input.rs-production-check:disabled { opacity: .35 !important; cursor: default; }
.rs-production-actions { position: sticky; bottom: 0; left: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; background: #f4f0fa; border-top: 1px solid #e4ddef; font-size: 13px; }
.rs-production-picker .rs-production-use-sum { padding: 9px 13px; border: 0; border-radius: 8px; background: #705093; color: white; font: inherit; font-weight: 600; cursor: pointer; }
.rs-production-picker .rs-production-use-sum:disabled { opacity: .45; cursor: default; }

/* Optional manual production entry: keep its two fields on a separate line. */
.rs-production-manual{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin-top:.75rem}
.rs-production-manual>label:first-child{flex-basis:100%}
.rs-production-manual>label[hidden]{display:none}
.rs-production-manual input[type=text]{width:12rem;max-width:100%;margin-left:.35rem}
.rs-production-filter-help{padding:12px 14px;border-left:4px solid #1664a3;background:#eef5fc;color:#20354a;line-height:1.5}
.rs-production-filter-help .rs-production-filter-centre{display:block!important;margin:10px 0 0!important;padding:10px 16px!important;background:#1664a3!important;color:#fff!important;border:2px solid #1664a3!important;border-radius:6px!important;font-size:15px!important;font-weight:700!important;line-height:1.4!important;text-transform:none!important;cursor:pointer;box-shadow:0 2px 4px #0002}
.rs-production-filter-help .rs-production-filter-centre:hover{background:#104b7c!important;border-color:#104b7c!important}
.rs-production-filter-help .rs-production-filter-centre[aria-pressed="true"]{background:#146044!important;border-color:#146044!important}
.rs-production-filter-help .rs-production-filter-centre:focus-visible{outline:3px solid #f0ad24!important;outline-offset:3px}

